/* =========================================================
   CARDIOBEAT
   main.css
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --cb-red: #a71932;
    --cb-red-dark: #861326;
    --cb-red-soft: #f9eaed;

    --cb-text: #172231;
    --cb-muted: #687386;
    --cb-light-text: #9098a5;

    --cb-bg: #f7f8fa;
    --cb-card: #ffffff;

    --cb-border: #e4e8ed;

    --cb-radius: 16px;

    --cb-shadow:
        0 10px 35px rgba(24, 34, 48, 0.06);
}


/* =========================================================
   BASIC
   ========================================================= */

body {

    background: var(--cb-bg);

    color: var(--cb-text);
}


.screen-reader-text {

    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {

    position: relative;

    z-index: 100;

    background: #ffffff;

    border-bottom:
        1px solid var(--cb-border);
}


.site-header__inner {

    min-height: 108px;

    display: grid;

    grid-template-columns:
        280px
        minmax(380px, 1fr)
        200px
        155px;

    grid-template-areas:
        "branding navigation search motto";

    align-items: center;

    column-gap: 22px;

    padding-top: 14px;
    padding-bottom: 14px;
}


/* =========================================================
   BRANDING
   ========================================================= */

.site-branding {

    grid-area: branding;

    min-width: 0;
}


.site-branding__text {

    width: max-content;

    display: flex;

    align-items: center;

    gap: 11px;
}


.site-branding__heart {

    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;

    align-items: center;
    justify-content: center;
}


.site-branding__heart svg {

    width: 100%;
    height: 100%;

    overflow: visible;
}


.site-branding__heart svg > path:first-child {

    fill: #fff;

    stroke: var(--cb-red);

    stroke-width: 2.4;
}


.site-branding__pulse {

    fill: none !important;

    stroke: var(--cb-red) !important;

    stroke-width: 3;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.site-branding__name {

    display: flex;

    align-items: baseline;

    font-family: Georgia, serif;

    font-size: 31px;

    font-weight: 700;

    line-height: 1;
}


.site-branding__name-main {
    color: var(--cb-text);
}


.site-branding__name-accent {
    color: var(--cb-red);
}


.site-branding__description {

    margin-top: 7px;

    max-width: 275px;

    color: var(--cb-muted);

    font-size: 12px;

    line-height: 1.4;
}


.custom-logo-link {
    display: block;
}


.custom-logo {

    max-height: 56px;

    width: auto;
}


/* =========================================================
   MAIN MENU
   ========================================================= */

.main-navigation {

    grid-area: navigation;

    align-self: center;
}


.main-menu {

    list-style: none;

    margin: 0;
    padding: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 22px;
}


.main-menu > li {

    position: relative;
}


.main-menu > li > a {

    position: relative;

    display: block;

    padding:
        12px
        0;

    color: #25303d;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        color .2s ease;
}


.main-menu > li > a:hover {

    color: var(--cb-red);
}


.main-menu > .current-menu-item > a,
.main-menu > .current-menu-ancestor > a,
.main-menu > .current_page_item > a {

    color: var(--cb-red);
}


.main-menu > .current-menu-item > a::after,
.main-menu > .current-menu-ancestor > a::after,
.main-menu > .current_page_item > a::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 4px;

    height: 2px;

    background: var(--cb-red);

    border-radius: 2px;
}


/* =========================================================
   SUBMENU
   ========================================================= */

.main-menu .sub-menu {

    list-style: none;

    position: absolute;

    top: 100%;
    left: -16px;

    min-width: 220px;

    margin: 0;

    padding: 9px;

    background: #fff;

    border:
        1px solid var(--cb-border);

    border-radius: 12px;

    box-shadow: var(--cb-shadow);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(8px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}


.main-menu li:hover > .sub-menu {

    opacity: 1;
    visibility: visible;

    transform:
        translateY(0);
}


.main-menu .sub-menu a {

    display: block;

    padding:
        9px
        11px;

    border-radius: 7px;

    color: var(--cb-text);

    font-size: 13px;
}


.main-menu .sub-menu a:hover {

    color: var(--cb-red);

    background:
        var(--cb-red-soft);
}


/* =========================================================
   HEADER SEARCH
   ========================================================= */

.header-search {

    grid-area: search;

    justify-self: end;
}


.header-search__form {

    position: relative;

    width: 200px;
    height: 40px;
}


.header-search__input {

    width: 100%;
    height: 100%;

    padding:
        0
        42px
        0
        14px;

    outline: none;

    border:
        1px solid var(--cb-border);

    border-radius: 10px;

    background: #fafbfc;

    color: var(--cb-text);

    font-size: 13px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.header-search__input:focus {

    background: #fff;

    border-color:
        rgba(167, 25, 50, .45);

    box-shadow:
        0 0 0 3px
        rgba(167, 25, 50, .07);
}


.header-search__button {

    position: absolute;

    top: 50%;
    right: 8px;

    transform:
        translateY(-50%);

    width: 31px;
    height: 31px;

    border: 0;

    padding: 0;

    background: transparent;

    color: #727d8c;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;
}


.header-search__button:hover {
    color: var(--cb-red);
}


.header-search__button svg {

    width: 18px;
    height: 18px;

    fill: currentColor;
}


/* =========================================================
   MOTTO
   ========================================================= */

.header-motto {

    grid-area: motto;

    justify-self: end;

    display: grid;

    grid-template-columns:
        auto
        27px;

    grid-template-rows:
        auto
        auto;

    align-items: center;

    column-gap: 10px;

    color: #697386;

    font-family: Georgia, serif;

    font-size: 11px;

    line-height: 1.45;
}


.header-motto span:nth-child(1) {

    grid-column: 1;

    grid-row: 1;
}


.header-motto span:nth-child(2) {

    grid-column: 1;

    grid-row: 2;
}


.header-motto__heart {

    grid-column: 2;

    grid-row:
        1 / span 2;

    width: 26px;
    height: 26px;
}


.header-motto__heart svg {

    width: 100%;
    height: 100%;

    fill: none;

    stroke: var(--cb-red);

    stroke-width: 1.7;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {

    display: none;

    width: 42px;
    height: 42px;

    padding: 9px;

    border:
        1px solid var(--cb-border);

    border-radius: 9px;

    background: #fff;

    cursor: pointer;
}


.menu-toggle__line {

    display: block;

    height: 2px;

    margin:
        4px
        0;

    background: var(--cb-text);

    border-radius: 2px;
}


/* =========================================================
   MAIN
   ========================================================= */

.site-main {

    min-height: 55vh;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.cb-button {

    min-height: 43px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding:
        0
        20px;

    border:
        1px solid var(--cb-red);

    border-radius: 9px;

    background: var(--cb-red);

    color: #fff;

    font-size: 13px;

    font-weight: 700;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}


.cb-button:hover {

    color: #fff;

    background: var(--cb-red-dark);

    border-color:
        var(--cb-red-dark);

    transform:
        translateY(-1px);
}


.cb-button--outline {

    color: var(--cb-red);

    background: transparent;
}


.cb-button--outline:hover {

    color: #fff;
}


.cb-button__icon,
.cb-button__icon svg {

    width: 16px;
    height: 16px;
}


.cb-button__icon svg {

    fill: currentColor;
}


/* =========================================================
   HOME
   ========================================================= */

.home-page {

    padding-top: 34px;
}


/* =========================================================
   HERO
   ========================================================= */

.home-hero {

    margin-bottom: 48px;
}


.home-hero__card {

    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(390px, .75fr);

    min-height: 400px;

    overflow: hidden;

    background: #fff;

    border:
        1px solid var(--cb-border);

    border-radius: 22px;

    box-shadow: var(--cb-shadow);
}


.home-hero__image {

    min-height: 400px;

    position: relative;

    overflow: hidden;

    background: #eceff2;
}


.home-hero__image img {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.home-hero__placeholder {

    min-height: 400px;

    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 12px;

    background:
        linear-gradient(
            135deg,
            #f9eaed,
            #f4f5f7
        );

    color: var(--cb-red);

    font-family: Georgia, serif;

    font-size: 24px;
}


.home-hero__placeholder-heart {

    font-size: 70px;

    line-height: 1;
}


.home-hero__content {

    padding:
        34px
        42px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;
}


.home-hero__category {

    display: inline-block;

    margin-bottom: 13px;

    color: var(--cb-red);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .09em;
}


.home-hero__label {

    margin-bottom: 16px;

    color: #718096;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.home-hero__title {

    max-width: 530px;

    margin:
        0
        0
        16px;

    font-size:
        clamp(
            34px,
            2.65vw,
            44px
        );

    line-height: 1.08;
}


.home-hero__title a:hover {

    color: var(--cb-red);
}


.home-hero__excerpt {

    max-width: 520px;

    margin-bottom: 14px;

    color: #55606f;

    font-size: 14px;

    line-height: 1.65;
}


.home-hero__meta {

    margin-bottom: 20px;

    color: var(--cb-light-text);

    font-size: 11px;
}


/* =========================================================
   HOME MAIN LAYOUT
   ========================================================= */

.home-content {

    margin-bottom: 60px;
}


.home-content__layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        285px;

    gap: 28px;

    align-items: start;
}


/* =========================================================
   SECTION TITLES
   ========================================================= */

.home-section-heading {

    margin-bottom: 24px;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 25px;
}


.home-section-heading__eyebrow {

    display: block;

    color: var(--cb-red);

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .12em;
}


.home-section-heading h2 {

    margin:
        4px
        0
        0;

    font-size: 29px;

    line-height: 1.15;
}


.home-section-heading__link {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(--cb-red);

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;
}


.home-section-heading__link svg {

    width: 14px;
    height: 14px;

    fill: currentColor;
}


/* =========================================================
   ARTICLE GRID
   ========================================================= */

.article-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   ARTICLE CARD
   ========================================================= */

.article-card {

    overflow: hidden;

    background: #fff;

    border:
        1px solid var(--cb-border);

    border-radius: 15px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.article-card:hover {

    transform:
        translateY(-3px);

    box-shadow: var(--cb-shadow);
}


.article-card__image {

    height: 190px;

    display: block;

    position: relative;

    overflow: hidden;

    background: #eef0f3;
}


.article-card__image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .35s ease;
}


.article-card:hover
.article-card__image img {

    transform:
        scale(1.035);
}


.article-card__placeholder {

    width: 100%;
    height: 100%;

    display: flex;

    justify-content: center;
    align-items: center;

    background:
        linear-gradient(
            135deg,
            #f7e9ec,
            #f2f4f6
        );
}


.article-card__placeholder svg {

    width: 42px;
    height: 42px;

    fill: var(--cb-red);

    opacity: .7;
}


.article-card__category {

    position: absolute;

    left: 12px;
    bottom: 11px;

    max-width:
        calc(100% - 24px);

    padding:
        5px
        8px;

    background:
        rgba(255, 255, 255, .94);

    border-radius: 6px;

    color: var(--cb-red);

    font-size: 8px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .05em;
}


.article-card__body {

    padding:
        18px
        17px
        15px;
}


.article-card__title {

    margin:
        0
        0
        10px;

    font-size: 18px;

    line-height: 1.28;
}


.article-card__title a:hover {

    color: var(--cb-red);
}


.article-card__excerpt {

    min-height: 70px;

    color: var(--cb-muted);

    font-size: 12px;

    line-height: 1.55;
}


.article-card__footer {

    margin-top: 14px;

    padding-top: 13px;

    border-top:
        1px solid #eef0f3;

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.article-card__date {

    display: flex;

    align-items: center;

    gap: 6px;

    color: #8c95a2;

    font-size: 10px;
}


.article-card__date svg {

    width: 13px;
    height: 13px;

    fill: currentColor;
}


.article-card__read {

    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--cb-red);

    background: var(--cb-red-soft);
}


.article-card__read svg {

    width: 14px;
    height: 14px;

    fill: currentColor;
}


/* =========================================================
   HOME SIDEBAR
   ========================================================= */

.home-sidebar {

    display: flex;

    flex-direction: column;

    gap: 17px;
}


.home-sidebar-card {

    padding: 21px;

    background: #fff;

    border:
        1px solid var(--cb-border);

    border-radius: 15px;
}


.home-sidebar-card__label {

    margin-bottom: 7px;

    color: var(--cb-red);

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .1em;
}


.home-sidebar-card h2,
.home-sidebar-card h3 {

    margin:
        0
        0
        10px;

    font-size: 19px;

    line-height: 1.3;
}


.home-sidebar-card p {

    margin:
        0
        0
        17px;

    color: var(--cb-muted);

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   GENERIC SEARCH FORM
   ========================================================= */

.search-form {

    width: 100%;
}


.search-form label {

    display: block;
}


.search-field {

    width: 100%;

    height: 41px;

    padding:
        0
        12px;

    outline: none;

    border:
        1px solid var(--cb-border);

    border-radius: 8px;

    background: #fff;

    color: var(--cb-text);

    font-family: inherit;

    font-size: 13px;
}


.search-field:focus {

    border-color:
        rgba(167, 25, 50, .45);

    box-shadow:
        0 0 0 3px
        rgba(167, 25, 50, .06);
}


.search-submit {

    width: 100%;
    height: 38px;

    margin-top: 7px;

    border: 0;

    border-radius: 8px;

    background: var(--cb-red);

    color: #fff;

    font-family: inherit;

    font-weight: 600;

    cursor: pointer;
}


.search-submit:hover {

    background:
        var(--cb-red-dark);
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.home-categories {

    padding:
        43px
        0
        6px;
}


.category-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 11px;
}


.category-card {

    min-height: 65px;

    padding:
        11px
        15px;

    display: flex;

    align-items: center;

    gap: 12px;

    background: #fff;

    border:
        1px solid var(--cb-border);

    border-radius: 12px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


.category-card:hover {

    border-color:
        rgba(167, 25, 50, .25);

    box-shadow:
        0 7px 22px
        rgba(24, 34, 48, .04);

    transform:
        translateY(-2px);
}


.category-card__icon {

    width: 38px;
    height: 38px;

    flex:
        0 0 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        var(--cb-red-soft);

    color: var(--cb-red);

    font-size: 14px;

    font-weight: 800;
}


.category-card__title {

    flex: 1;

    font-size: 12px;

    font-weight: 700;
}


.category-card__arrow {

    color: #a2a9b4;
}


.category-card__arrow svg {

    width: 15px;
    height: 15px;

    fill: currentColor;
}


/* =========================================================
   SINGLE PAGE
   ========================================================= */

.single-page {

    padding-top: 26px;
}


/* =========================================================
   BREADCRUMBS
   ========================================================= */

.cb-breadcrumbs {

    margin-bottom: 22px;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    color: #8a93a0;

    font-size: 11px;
}


.cb-breadcrumbs a {

    color: #697386;
}


.cb-breadcrumbs a:hover {

    color: var(--cb-red);
}


.cb-breadcrumbs__separator {

    color: #c0c5cc;
}


.cb-breadcrumbs__current {

    max-width: 500px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   SINGLE LAYOUT
   ========================================================= */

.single-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        285px;

    gap: 32px;

    align-items: start;
}


/* =========================================================
   SINGLE ARTICLE
   ========================================================= */

.single-article {

    min-width: 0;

    padding:
        38px
        42px;

    background: #fff;

    border:
        1px solid var(--cb-border);

    border-radius: 19px;

    box-shadow:
        0 7px 30px
        rgba(24, 34, 48, .035);
}


/* =========================================================
   ARTICLE HEADER
   ========================================================= */

.single-article__header {

    margin-bottom: 25px;
}


.single-article__category {

    display: inline-block;

    margin-bottom: 13px;

    color: var(--cb-red);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.single-article__title {

    max-width: 850px;

    margin:
        0
        0
        17px;

    font-size:
        clamp(
            32px,
            3.3vw,
            46px
        );

    line-height: 1.12;
}


.single-article__meta {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 16px;

    color: #8a93a0;

    font-size: 11px;
}


.single-article__date {

    display: inline-flex;

    align-items: center;

    gap: 6px;
}


.single-article__date svg {

    width: 14px !important;
    height: 14px !important;

    display: block;

    flex:
        0 0 14px;

    fill: currentColor;
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.single-article__featured {

    margin:
        0
        0
        32px;

    overflow: hidden;

    border-radius: 15px;

    background: #eef0f2;
}


.single-article__featured img {

    width: 100%;
    height: auto;

    max-height: 650px;

    object-fit: cover;
}


/* =========================================================
   ARTICLE CONTENT
   ========================================================= */

.single-article__content {

    color: #303946;

    font-size: 17px;

    line-height: 1.8;
}


.single-article__content > *:first-child {

    margin-top: 0;
}


.single-article__content p {

    margin:
        0
        0
        1.4em;
}


.single-article__content h2 {

    margin:
        1.9em
        0
        .7em;

    color: var(--cb-text);

    font-size: 28px;

    line-height: 1.25;
}


.single-article__content h3 {

    margin:
        1.7em
        0
        .65em;

    color: var(--cb-text);

    font-size: 23px;

    line-height: 1.3;
}


.single-article__content h4 {

    margin:
        1.6em
        0
        .6em;

    color: var(--cb-text);

    font-size: 19px;
}


.single-article__content a {

    color: var(--cb-red);

    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 3px;
}


.single-article__content ul,
.single-article__content ol {

    margin:
        0
        0
        1.45em;

    padding-left: 1.5em;
}


.single-article__content li {

    margin-bottom: .45em;
}


.single-article__content blockquote {

    margin:
        1.8em
        0;

    padding:
        19px
        23px;

    border-left:
        4px solid var(--cb-red);

    border-radius:
        0
        11px
        11px
        0;

    background: #faf5f6;

    color: #46505c;

    font-family: Georgia, serif;

    font-size: 18px;

    line-height: 1.65;
}


.single-article__content figure {

    margin:
        2em
        0;
}


.single-article__content img {

    max-width: 100%;
    height: auto;

    border-radius: 11px;
}


.single-article__content figcaption {

    margin-top: 7px;

    color: #8a93a0;

    text-align: center;

    font-size: 11px;
}


/* =========================================================
   ARTICLE TABLES
   ========================================================= */

.single-article__content table {

    width: 100%;

    margin:
        2em
        0;

    border-collapse: collapse;

    font-size: 14px;
}


.single-article__content th,
.single-article__content td {

    padding:
        11px
        13px;

    border:
        1px solid var(--cb-border);

    text-align: left;

    vertical-align: top;
}


.single-article__content th {

    background: #f5f6f8;

    color: var(--cb-text);
}


/* =========================================================
   VK SOURCE
   ========================================================= */

.single-article__content
.vk-source {

    margin-top: 30px;

    padding-top: 17px;

    border-top:
        1px solid var(--cb-border);

    color: #8a93a0;

    font-size: 12px;
}


/* =========================================================
   MEDICAL NOTICE
   ========================================================= */

.single-article__notice {

    margin-top: 36px;

    padding: 19px;

    display: flex;

    gap: 14px;

    background: #f7f8fa;

    border:
        1px solid var(--cb-border);

    border-radius: 12px;
}


.single-article__notice-icon {

    width: 32px;
    height: 32px;

    flex:
        0 0 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--cb-red);

    color: #fff;

    font-family: Georgia, serif;

    font-weight: bold;
}


.single-article__notice strong {

    display: block;

    margin-bottom: 4px;
}


.single-article__notice p {

    margin: 0;

    color: var(--cb-muted);

    font-size: 12px;

    line-height: 1.55;
}


/* =========================================================
   ARTICLE CATEGORIES
   ========================================================= */

.single-article__categories {

    margin-top: 27px;

    padding-top: 21px;

    border-top:
        1px solid var(--cb-border);

    display: flex;

    align-items: flex-start;

    gap: 10px;

    color: var(--cb-muted);

    font-size: 12px;
}


.single-article__categories > div {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.single-article__categories a {

    padding:
        4px
        9px;

    border-radius: 6px;

    background: var(--cb-red-soft);

    color: var(--cb-red);

    font-weight: 600;
}


/* =========================================================
   PREV / NEXT
   ========================================================= */

.post-navigation-custom {

    margin-top: 33px;

    padding-top: 25px;

    border-top:
        1px solid var(--cb-border);

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 28px;
}


.post-navigation-custom span {

    display: block;

    margin-bottom: 6px;

    color: #9aa1ab;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .07em;
}


.post-navigation-custom a {

    color: var(--cb-text);

    font-family: Georgia, serif;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.35;
}


.post-navigation-custom a:hover {

    color: var(--cb-red);
}


.post-navigation-custom__next {

    text-align: right;
}


/* =========================================================
   SINGLE SIDEBAR
   ========================================================= */

.single-sidebar {

    position: sticky;

    top: 22px;

    display: flex;

    flex-direction: column;

    gap: 17px;
}


.single-sidebar__card {

    padding: 21px;

    background: #fff;

    border:
        1px solid var(--cb-border);

    border-radius: 15px;
}


.single-sidebar__label {

    margin-bottom: 7px;

    color: var(--cb-red);

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .1em;
}


.single-sidebar__card h3 {

    margin:
        0
        0
        10px;

    font-size: 18px;

    line-height: 1.3;
}


.single-sidebar__card p {

    margin:
        0
        0
        16px;

    color: var(--cb-muted);

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   RELATED POSTS
   ========================================================= */

.related-posts {

    margin-top: 52px;
}


/* =========================================================
   PAGE
   ========================================================= */

.cb-page {

    padding:
        38px
        0;
}


.cb-page__article {

    max-width: 900px;

    margin: 0 auto;

    padding:
        42px
        46px;

    background: #fff;

    border:
        1px solid var(--cb-border);

    border-radius: 19px;
}


.cb-page__header {

    margin-bottom: 28px;
}


.cb-page__title {

    margin: 0;

    font-size:
        clamp(
            33px,
            4vw,
            47px
        );

    line-height: 1.15;
}


.cb-page__featured {

    margin:
        0
        0
        32px;

    overflow: hidden;

    border-radius: 14px;
}


.cb-page__featured img {

    width: 100%;
}


.cb-page__content {

    color: #303946;

    font-size: 17px;

    line-height: 1.8;
}


.cb-page__content p {

    margin:
        0
        0
        1.4em;
}


.cb-page__content h2 {

    margin:
        1.8em
        0
        .7em;

    font-size: 28px;
}


.cb-page__content h3 {

    margin:
        1.6em
        0
        .6em;

    font-size: 22px;
}


/* =========================================================
   ARCHIVES / SEARCH
   ========================================================= */

.cb-archive,
.cb-search-page,
.cb-index {

    padding:
        40px
        0;
}


.cb-archive__header,
.cb-search-page__header,
.cb-index__header {

    margin-bottom: 30px;

    padding-bottom: 22px;

    border-bottom:
        1px solid var(--cb-border);
}


.cb-archive__eyebrow {

    display: block;

    margin-bottom: 7px;

    color: var(--cb-red);

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .12em;
}


.cb-archive__title,
.cb-search-page__header h1,
.cb-index__header h1 {

    margin: 0;

    font-size:
        clamp(
            30px,
            4vw,
            41px
        );

    line-height: 1.15;
}


.cb-archive__description {

    max-width: 750px;

    margin-top: 12px;

    color: var(--cb-muted);

    font-size: 14px;
}


.cb-archive__description p {

    margin: 0;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.cb-pagination {

    margin-top: 38px;
}


.cb-pagination .nav-links {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.cb-pagination .page-numbers {

    min-width: 37px;
    height: 37px;

    padding:
        0
        10px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #fff;

    border:
        1px solid var(--cb-border);

    border-radius: 8px;

    font-size: 12px;
}


.cb-pagination .page-numbers.current {

    background: var(--cb-red);

    border-color: var(--cb-red);

    color: #fff;
}


/* =========================================================
   EMPTY
   ========================================================= */

.cb-empty,
.cb-search-empty {

    max-width: 620px;

    margin:
        40px
        auto;

    padding: 42px;

    background: #fff;

    border:
        1px solid var(--cb-border);

    border-radius: 17px;

    text-align: center;
}


.cb-empty h2,
.cb-search-empty h2 {

    margin:
        0
        0
        10px;

    font-size: 26px;
}


.cb-empty p,
.cb-search-empty p {

    color: var(--cb-muted);
}


.cb-search-empty__icon {

    width: 56px;
    height: 56px;

    margin:
        0
        auto
        19px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        var(--cb-red-soft);

    color: var(--cb-red);
}


.cb-search-empty__icon svg {

    width: 26px;
    height: 26px;

    fill: currentColor;
}


/* =========================================================
   404
   ========================================================= */

.cb-404 {

    padding:
        70px
        0;
}


.cb-404__card {

    max-width: 640px;

    margin: 0 auto;

    padding:
        50px
        42px;

    background: #fff;

    border:
        1px solid var(--cb-border);

    border-radius: 20px;

    box-shadow: var(--cb-shadow);

    text-align: center;
}


.cb-404__heart {

    width: 64px;
    height: 64px;

    margin:
        0
        auto
        13px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        var(--cb-red-soft);
}


.cb-404__heart svg {

    width: 31px;
    height: 31px;

    fill: var(--cb-red);
}


.cb-404__number {

    color: var(--cb-red);

    font-family: Georgia, serif;

    font-size: 68px;

    font-weight: 700;

    line-height: 1;
}


.cb-404 h1 {

    margin:
        12px
        0;

    font-size: 30px;
}


.cb-404 p {

    max-width: 480px;

    margin:
        0
        auto
        24px;

    color: var(--cb-muted);
}


.cb-404__search {

    max-width: 390px;

    margin:
        0
        auto
        24px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {

    margin-top: 48px;

    background: #fff;

    border-top:
        1px solid var(--cb-border);
}


.site-footer__top {

    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr;

    gap: 45px;

    padding-top: 31px;
    padding-bottom: 28px;
}


.site-footer__logo {

    display: inline-flex;

    font-family: Georgia, serif;

    font-size: 25px;

    font-weight: 700;
}


.site-footer__logo-main {

    color: var(--cb-text);
}


.site-footer__logo-accent {

    color: var(--cb-red);
}


.site-footer__description {

    max-width: 320px;

    margin:
        9px
        0
        0;

    color: var(--cb-muted);

    font-size: 12px;
}


.footer-menu {

    list-style: none;

    margin: 0;

    padding: 0;
}


.footer-menu li + li {

    margin-top: 7px;
}


.footer-menu a,
.site-footer__links a {

    color: #55606d;

    font-size: 12px;
}


.footer-menu a:hover,
.site-footer__links a:hover {

    color: var(--cb-red);
}


.site-footer__links {

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.site-footer__bottom {

    border-top:
        1px solid var(--cb-border);
}


.site-footer__bottom-inner {

    min-height: 50px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 25px;

    color: var(--cb-muted);

    font-size: 11px;
}


.site-footer__legal a:hover {

    color: var(--cb-red);
}


/* =========================================================
   LARGE / MEDIUM SCREEN
   ========================================================= */

@media (max-width: 1180px) {

    .site-header__inner {

        grid-template-columns:
            260px
            minmax(360px, 1fr)
            190px;

        grid-template-areas:
            "branding navigation search";

        column-gap: 18px;
    }


    .header-motto {

        display: none;
    }


    .main-menu {

        gap: 17px;
    }


    .article-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .site-header__inner {

        min-height: 80px;

        grid-template-columns:
            1fr
            auto;

        grid-template-areas:
            "branding menu"
            "navigation navigation"
            "search search";

        row-gap: 13px;

        padding-top: 13px;
        padding-bottom: 13px;
    }


    .site-branding__description {

        display: none;
    }


    .menu-toggle {

        grid-area: menu;

        display: block;
    }


    .main-navigation {

        display: none;

        width: 100%;

        padding-top: 9px;

        border-top:
            1px solid var(--cb-border);
    }


    .main-navigation.is-open {

        display: block;
    }


    .main-menu {

        flex-direction: column;

        align-items: stretch;

        gap: 0;
    }


    .main-menu > li > a {

        padding:
            10px
            4px;
    }


    .main-menu > .current-menu-item > a::after,
    .main-menu > .current-menu-ancestor > a::after,
    .main-menu > .current_page_item > a::after {

        display: none;
    }


    .main-menu .sub-menu {

        position: static;

        min-width: 0;

        display: block;

        padding:
            0
            0
            5px
            15px;

        border: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        transform: none;
    }


    .header-search {

        width: 100%;

        justify-self: stretch;
    }


    .header-search__form {

        width: 100%;

        max-width: none;
    }


    .home-hero__card {

        grid-template-columns: 1fr;
    }


    .home-hero__image {

        min-height: 350px;
    }


    .home-hero__content {

        padding:
            31px
            29px;
    }


    .home-content__layout {

        grid-template-columns: 1fr;
    }


    .home-sidebar {

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .single-layout {

        grid-template-columns: 1fr;
    }


    .single-sidebar {

        position: static;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }




    .site-footer__top {

        grid-template-columns:
            1fr
            1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .home-page {

        padding-top: 18px;
    }


    .site-branding__name {

        font-size: 24px;
    }


    .site-branding__heart {

        width: 35px;
        height: 35px;

        flex-basis: 35px;
    }


    .home-hero__card {

        border-radius: 16px;
    }


    .home-hero__image {

        min-height: 270px;
    }


    .home-hero__content {

        padding:
            25px
            21px;
    }


    .home-hero__title {

        font-size: 30px;
    }


    .home-section-heading h2 {

        font-size: 24px;
    }


    .article-grid {

        grid-template-columns: 1fr;
    }


    .article-card__image {

        height: 230px;
    }


    .article-card__excerpt {

        min-height: auto;
    }


    .home-sidebar {

        grid-template-columns: 1fr;
    }




    .category-grid {

        grid-template-columns: 1fr;
    }


    .single-page {

        padding-top: 18px;
    }


    .cb-breadcrumbs {

        display: none;
    }


    .single-article {

        padding:
            26px
            20px;

        border-radius: 15px;
    }


    .single-article__title {

        font-size: 30px;
    }


    .single-article__featured {

        margin-bottom: 26px;
    }


    .single-article__content {

        font-size: 16px;

        line-height: 1.75;
    }


    .single-article__content h2 {

        font-size: 25px;
    }


    .single-article__content h3 {

        font-size: 21px;
    }


    .single-sidebar {

        grid-template-columns: 1fr;
    }


    .post-navigation-custom {

        grid-template-columns: 1fr;
    }


    .post-navigation-custom__next {

        text-align: left;
    }


    .cb-page {

        padding-top: 20px;
    }


    .cb-page__article {

        padding:
            26px
            20px;

        border-radius: 15px;
    }


    .cb-page__content {

        font-size: 16px;
    }


    .cb-archive,
    .cb-search-page,
    .cb-index {

        padding-top: 25px;
    }


    .cb-404 {

        padding:
            35px
            0;
    }


    .cb-404__card {

        padding:
            36px
            21px;
    }


    .site-footer__top {

        grid-template-columns: 1fr;

        gap: 24px;
    }


    .site-footer__bottom-inner {

        flex-direction: column;

        justify-content: center;

        gap: 5px;

        padding:
            13px
            0;

        text-align: center;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .container {

        width: 94%;
    }


    .site-branding__name {

        font-size: 21px;
    }


    .site-branding__heart {

        width: 32px;
        height: 32px;

        flex-basis: 32px;
    }



}

/* =========================================================
   MEDICAL CALCULATORS
   Bootstrap compatibility layer
   ========================================================= */

.cb-page__article:has([class*="calc-"]) {
    padding: 28px 28px 20px;
}

.cb-page__article:has([class*="calc-"]) .cb-page__header {
    margin-bottom: 18px;
}

.cb-page__article:has([class*="calc-"]) .cb-page__title {
    margin-bottom: 26px;
    font-size: 36px;
    line-height: 1.12;
}

.cb-page__article:has([class*="calc-"]) .cb-page__content {
    margin-bottom: 0;
}

.cb-page:has([class*="calc-"]) {
    padding-top: 28px;
    padding-bottom: 20px;
}

body:has(.cb-page__article [class*="calc-"]) .site-footer {
    margin-top: 28px;
}


/* Calculator card */

.cb-page__content .card {
    margin: 14px 0 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cb-border);
    border-radius: 14px;
}

.cb-page__content .card.border-secondary {
    border-color: var(--cb-border) !important;
}

.cb-page__content .card.bg-white {
    background: #fff !important;
}

.cb-page__content .card-header {
    padding: 14px 18px;
    background: #f8f9fb;
    border-bottom: 1px solid var(--cb-border);
}

.cb-page__content .card-title {
    margin: 0 !important;
    color: var(--cb-text);
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1.35;
}

.cb-page__content .card-body {
    padding: 18px 18px 16px;
}


/* Calculator form */

.cb-page__content .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    margin: 0;
}

.cb-page__content .form-group {
    min-width: 0;
    margin: 0;
}

.cb-page__content .col-md-6 {
    width: auto;
    max-width: none;
    padding: 0;
}

.cb-page__content .col-12 {
    grid-column: 1 / -1;
    width: auto;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cb-page__content .form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--cb-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.cb-page__content .form-control {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #d8dde4;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--cb-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.cb-page__content .form-control::placeholder {
    color: #9aa2ad;
}

.cb-page__content .form-control:focus {
    border-color: rgba(167, 25, 50, .55);
    box-shadow: 0 0 0 3px rgba(167, 25, 50, .08);
}


/* Validation */

.cb-page__content .invalid-feedback {
    display: none;
    margin-top: 6px;
    color: #b42318;
    font-size: 12px;
    line-height: 1.35;
}

.cb-page__content .form-control.is-invalid {
    border-color: #d92d20;
}

.cb-page__content .form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.cb-page__content .was-validated .form-control:invalid {
    border-color: #d92d20;
}

.cb-page__content .was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}


/* Calculator buttons */

.cb-page__content .btn {
    min-height: 42px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.cb-page__content .btn-primary {
    background: var(--cb-red);
    border-color: var(--cb-red);
    color: #fff;
}

.cb-page__content .btn-primary:hover {
    background: var(--cb-red-dark);
    border-color: var(--cb-red-dark);
    color: #fff;
}

.cb-page__content .btn-light {
    background: #f4f5f7;
    border-color: #e1e5ea;
    color: #344054;
}

.cb-page__content .btn-light:hover {
    background: #e9ebef;
    border-color: #d5dae1;
    color: var(--cb-text);
}

.cb-page__content .mr-2 {
    margin-right: 0 !important;
}


/* Calculator result */

.cb-page__content [id^="result_"] {
    grid-column: 1 / -1;
    position: relative;
}

.cb-page__content [id^="result_"]:not(:empty) {
    margin-top: 14px !important;
    padding: 14px 42px 12px 16px !important;
    background: #f8f9fb;
    border: 1px solid var(--cb-border);
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.45;
}

.cb-page__content [id^="result_"] p {
    margin: 0 0 4px;
}

.cb-page__content [id^="result_"] p:last-child {
    margin-bottom: 0;
}


/* Close button */

.cb-page__content [id^="result_"] .alert .close {
    position: absolute !important;
    top: 12px !important;
    right: 14px !important;
    left: auto !important;
    float: none !important;

    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: #7b8490 !important;
    opacity: 1 !important;
    cursor: pointer;
}

.cb-page__content [id^="result_"] .alert .close span {
    display: block;
    color: inherit;
    font-family: Arial, sans-serif;
    font-size: 25px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
}

.cb-page__content [id^="result_"] .alert .close:hover {
    color: var(--cb-red) !important;
}


/* Disclaimer */

.cb-page__content .form-text {
    display: block;
    margin-top: 6px;
}

.cb-page__content .text-muted {
    color: var(--cb-muted) !important;
}

.cb-page__content #passwordHelpBlock {
    padding: 13px 15px;
    background: #f8f9fb;
    border-left: 3px solid var(--cb-red);
    border-radius: 0 8px 8px 0;
    color: var(--cb-muted);
    font-size: 13px;
    line-height: 1.45;
}

.cb-page__content .icon-calc {
    color: var(--cb-red);
}


/* =========================================================
   CALCULATOR MENU
   Used on home sidebar and article sidebar
   ========================================================= */

.home-sidebar-calculators {
    padding-bottom: 14px;
}

.home-sidebar-calculators h3 {
    margin-bottom: 15px;
}

.calculator-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.calculator-menu li {
    margin: 0;
    border-bottom: 1px solid #eef0f3;
}

.calculator-menu li:last-child {
    border-bottom: 0;
}

.calculator-menu a {
    min-height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 28px 10px 0;
    color: var(--cb-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    transition:
        color .2s ease,
        padding-left .2s ease;
}

.calculator-menu a::after {
    content: "→";
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    color: #a7aeb8;
    font-size: 15px;
    transition:
        color .2s ease,
        right .2s ease;
}

.calculator-menu a:hover {
    padding-left: 3px;
    color: var(--cb-red);
}

.calculator-menu a:hover::after {
    right: 0;
    color: var(--cb-red);
}

.single-sidebar__card .calculator-menu {
    margin-top: 8px;
}

.single-sidebar__card .calculator-menu a {
    min-height: 45px;
    padding: 9px 25px 9px 0;
    font-size: 12px;
}

.single-sidebar__card .calculator-menu a::after {
    right: 2px;
}


/* =========================================================
   CALCULATOR RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .cb-page__article:has([class*="calc-"]) {
        padding: 20px 18px 16px;
    }

    .cb-page__article:has([class*="calc-"]) .cb-page__title {
        margin-bottom: 20px;
        font-size: 30px;
    }

    .cb-page__content .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cb-page__content .col-12 {
        grid-column: 1;
    }

    .cb-page__content .card-header {
        padding: 15px 16px;
    }

    .cb-page__content .card-body {
        padding: 16px 14px 14px;
    }

    .cb-page__content .btn {
        flex: 1 1 auto;
        font-size: 15px;
    }

    .cb-page__content [id^="result_"]:not(:empty) {
        padding: 14px 40px 12px 14px !important;
        font-size: 15px;
    }
}

/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.cb-page-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        285px;

    gap: 32px;

    align-items: start;
}


.cb-page-layout .cb-page__article {
    max-width: none;

    width: 100%;

    margin: 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .cb-page-layout {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   КАЛЬКУЛЯТОРЫ СО СПИСКОМ CHECKBOX
   CHADS2, CHA2DS2-VASc и аналогичные
   ========================================================= */

/*
 * Если form-group содержит строки col-md-24,
 * он должен занимать обе колонки калькулятора.
 */
.cb-page__content
.form-row > .form-group:has(.col-md-24) {
    grid-column: 1 / -1;
    width: 100%;
}


/* каждая строка вопроса */

.cb-page__content .col-md-24 {
    width: 100%;
    max-width: none;
    padding: 0;
}


/* строка checkbox */

.cb-page__content .form-check {
    width: 100%;

    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);

    align-items: start;

    gap: 10px;

    margin: 0 0 14px !important;
    padding: 0;
}


/* сам checkbox */

.cb-page__content .form-check-input {
    width: 17px;
    height: 17px;

    margin: 3px 0 0 0;

    cursor: pointer;

    accent-color: var(--cb-red);
}


/* подпись */

.cb-page__content .form-check-label {
    margin: 0 !important;

    color: var(--cb-text);

    font-size: 15px;
    font-weight: 600;

    line-height: 1.45;

    cursor: pointer;
}


/* количество баллов */

.cb-page__content .badge {
    display: inline;

    padding: 0;

    background: transparent;

    color: var(--cb-red);

    font-size: inherit;
    font-weight: 700;
}


/* Bootstrap-подобные служебные отступы здесь не нужны */

.cb-page__content .ml-1 {
    margin-left: 0 !important;
}

.cb-page__content .mb-1 {
    margin-bottom: 14px !important;
}

/* =========================================================
   RADIO BUTTON GROUP — В ОДНУ СТРОКУ
   ========================================================= */

.cb-page__content .btn-group {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: nowrap;

    width: auto;
    max-width: 100%;

    padding: 0;
    margin-bottom: 18px !important;
}


/* каждая кнопка */

.cb-page__content .btn-group > .btn {
    flex: 0 0 auto;

    min-width: 0;

    margin: 0;

    border-radius: 0;

    white-space: nowrap;
}


/* первая */

.cb-page__content .btn-group > .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}


/* последняя */

.cb-page__content .btn-group > .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}


/* чтобы границы не удваивались */

.cb-page__content .btn-group > .btn + .btn {
    margin-left: -1px;
}


/* radio внутри label не ломает разметку */

.cb-page__content .btn-group input[type="radio"] {
    margin-right: 6px;
}

/* =========================================================
   TOGGLE RADIO GROUP — БЕЗ RADIO-ЗНАЧКОВ
   ========================================================= */

.cb-page__content .btn-group {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: nowrap;

    width: auto;
    max-width: 100%;

    padding: 0;
    margin-bottom: 18px !important;
}


/* скрываем сами radio */
.cb-page__content .btn-group input[type="radio"] {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    opacity: 0 !important;

    pointer-events: none;
}


/* сами кнопки */
.cb-page__content .btn-group > .btn {
    flex: 0 0 auto;

    min-width: 0;

    margin: 0;

    padding:
        10px
        18px;

    border:
        1px solid var(--cb-border);

    border-radius: 0;

    background: #f5f6f8;

    color: var(--cb-text);

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


/* первая */
.cb-page__content .btn-group > .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}


/* последняя */
.cb-page__content .btn-group > .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}


/* соседние границы не дублируются */
.cb-page__content .btn-group > .btn + .btn {
    margin-left: -1px;
}


/* активная выбранная кнопка */
.cb-page__content .btn-group > .btn.active {
    position: relative;

    z-index: 1;

    background: #dfe3e8;

    border-color: #cfd5dc;

    color: var(--cb-text);
}


/* hover */
.cb-page__content .btn-group > .btn:hover {
    background: #eceff2;
}

.cb-page__content .form-control:disabled,
.cb-page__content .form-control[disabled] {
    background: #f1f3f5 !important;

    color: #98a2b3 !important;

    border-color: #e1e5ea !important;

    opacity: .65;

    cursor: not-allowed;

    box-shadow: none !important;
}


/* placeholder у disabled-поля */

.cb-page__content .form-control:disabled::placeholder,
.cb-page__content .form-control[disabled]::placeholder {
    color: #b7bdc7 !important;
}


/* label рядом с disabled-полем тоже немного приглушаем */

.cb-page__content .form-group:has(.form-control:disabled) label {
    color: #8c95a2;
}

/* =========================================================
   SCORE — 3 КОЛОНКИ
   ========================================================= */

.cb-page__content .calc-score {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}


/* Bootstrap col-md-4 внутри SCORE */
.cb-page__content .calc-score > .col-md-4,
.cb-page__content .calc-score > .form-group.col-md-4 {
    width: auto;
    max-width: none;
    padding: 0;
}


/* группы переключателей занимают свои колонки */
.cb-page__content .calc-score > .btn-group {
    width: 100%;
    max-width: none;

    display: flex;
}


/* две кнопки внутри группы делят ширину поровну */
.cb-page__content .calc-score > .btn-group > .btn {
    flex: 1 1 50%;

    justify-content: center;

    text-align: center;
}


/* Рассчитать / Очистить — на всю ширину */
.cb-page__content .calc-score > .col-12 {
    grid-column: 1 / -1;
}


/* =========================================================
   SCORE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .cb-page__content .calc-score {
        grid-template-columns: 1fr;
    }


    /*
     * Пустую среднюю колонку на телефоне скрываем
     */
    .cb-page__content .calc-score > .col-md-4:empty {
        display: none;
    }


    .cb-page__content .calc-score > .col-12 {
        grid-column: 1;
    }
}

.gp-img {
    display: block;
    margin-left: auto;
    margin-right: 10px;
}

/* =========================================================
   ПОПУЛЯРНЫЕ РУБРИКИ — УМЕНЬШАЕМ ОТСТУП СВЕРХУ
   ========================================================= */

.home-content {
    margin-bottom: 28px;
}

.home-categories {
    padding-top: 24px;
}