/* Шапка RehabScience — ПК и мобильная навигация */
.rs-header {
    position: relative;
    z-index: 100;
    background: #fff;
    color: #2c2c2a;
    font-family: Gilroy, Arial, sans-serif;
}
.rs-header *, .rs-header *::before, .rs-header *::after { box-sizing: border-box; }
.rs-header a { color: inherit; text-decoration: none; }
.rs-header a:hover { color: #0088cc; }
.rs-header a:focus-visible, .rs-header button:focus-visible { outline: 2px solid #0088cc; outline-offset: 3px; }
.rs-header__utility { border-bottom: 1px solid #edf0f2; background: #f7f9fb; font-size: 14px; }
.rs-header__utility-inner, .rs-header__utility-links { display: flex; align-items: center; gap: 24px; }
.rs-header__utility-inner { justify-content: space-between; min-height: 40px; }
.rs-header .rs-header__login { padding: 6px 16px; border-radius: 6px; background: #edf5fa; color: #0078b5; font-weight: 600; }
.rs-header__row { display: flex; align-items: center; gap: 28px; min-height: 100px; padding-top: 12px; padding-bottom: 12px; }
.rs-header__logo { display: block; flex: 0 0 160px; }
.rs-header__logo img { display: block; width: 100%; height: auto; }
.rs-header__panel { min-width: 0; margin-left: auto; }
.rs-header .rs-header__list { display: flex; align-items: center; justify-content: flex-end; gap: 22px; margin: 0; padding: 0; list-style: none; }
.rs-header .rs-header__list > li { margin: 0; padding: 0; list-style: none; }
.rs-header .rs-header__list > li > a { display: block; padding: 12px 0; color: #2c2c2a; font-size: 16px; font-weight: 600; line-height: 1.4; white-space: nowrap; border-bottom: 2px solid transparent; }
.rs-header .rs-header__list > li > a:hover { color: #0088cc; }
.rs-header .rs-header__list > .current-menu-item > a,
.rs-header .rs-header__list > .current-menu-ancestor > a,
.rs-header .rs-header__list > li > a[aria-current="page"] { color: #0088cc; border-bottom-color: #0088cc; }
.rs-header .rs-header__list > li > a[href$="/free/"],
.rs-header .rs-header__list > li > a[href$="/free"] { padding: 10px 16px; border: 1px solid #0088cc; border-radius: 8px; color: #0078b5; background: #fff; }
.rs-header .rs-header__list > li > a[href$="/free/"]:hover,
.rs-header .rs-header__list > li > a[href$="/free"]:hover { background: #edf7fc; }
.rs-header .rs-header__list > .current-menu-item > a[href$="/free/"],
.rs-header .rs-header__list > .current-menu-item > a[href$="/free"] { background: #edf7fc; }
.rs-header__toggle, .rs-header__mobile-login, .rs-header__mobile-contacts, .rs-header__backdrop { display: none; }

@media (max-width: 1099px) {
    .rs-header__utility { display: none; }
    .rs-header__row { flex-wrap: wrap; min-height: 76px; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
    .rs-header__logo { flex-basis: 116px; margin-right: auto; }
    .rs-header .rs-header__mobile-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: #0078b5; font-size: 15px; font-weight: 600; white-space: nowrap; }
    .rs-header__panel { width: 100%; margin: 0; }
    .rs-header .rs-header__list { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .rs-header .rs-header__list > li > a { min-height: 48px; padding: 13px 12px; border: 0; border-radius: 8px; font-size: 17px; white-space: normal; }
    .rs-header .rs-header__list > .current-menu-item > a,
    .rs-header .rs-header__list > .current-menu-ancestor > a { background: #edf7fc; }
    .rs-header .rs-header__list > li > a[href$="/free/"],
    .rs-header .rs-header__list > li > a[href$="/free"] { margin-top: 8px; padding: 12px; border: 1px solid #0088cc; }
    .rs-header__mobile-contacts { display: block; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e2e8ec; }
    .rs-header__support { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; }
    .rs-header__mobile-contacts p { margin: 12px 0 8px; color: #596570; font-size: 14px; }
    .rs-header__messengers { display: flex; flex-wrap: wrap; gap: 12px; }
    .rs-header__messengers a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid #dce8ef; border-radius: 8px; font-size: 15px; }
    .rs-header[data-enhanced] .rs-header__toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid #dce8ef; border-radius: 8px; background: #fff; color: #2c2c2a; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
    .rs-header__toggle-icon { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 18px; height: 20px; }
    .rs-header__toggle-icon > span { display: block; width: 18px; height: 2px; background: currentColor; }
    .rs-header__toggle[aria-expanded="true"] .rs-header__toggle-icon > span:first-child { transform: translateY(6px) rotate(45deg); }
    .rs-header__toggle[aria-expanded="true"] .rs-header__toggle-icon > span:nth-child(2) { opacity: 0; }
    .rs-header__toggle[aria-expanded="true"] .rs-header__toggle-icon > span:last-child { transform: translateY(-6px) rotate(-45deg); }
    .rs-header[data-enhanced] .rs-header__panel { display: none; }
    .rs-header[data-enhanced] .rs-header__panel.is-open { display: block; position: fixed; z-index: 2; top: var(--rs-header-bottom, 76px); right: 0; left: 0; width: 100%; max-height: calc(100dvh - var(--rs-header-bottom, 76px)); overflow-y: auto; overscroll-behavior: contain; padding: 16px max(20px, calc((100vw - 720px) / 2)) 28px; background: #fff; border-top: 1px solid #edf0f2; box-shadow: 0 12px 24px rgba(0, 40, 65, .1); }
    .rs-header__backdrop:not([hidden]) { display: block; position: fixed; z-index: 1; top: var(--rs-header-bottom, 76px); right: 0; bottom: 0; left: 0; background: rgba(15, 35, 50, .28); }
}
/* Акция над шапкой */
.rs-promo-bar {
    position: relative;
    background: #ffb347;
    color: #17212b;
    font-family: Gilroy, Arial, sans-serif;
}

.rs-promo-bar__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.rs-promo-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 54px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.rs-promo-bar__offer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 20px;
    font-size: 16px;
    line-height: 1.4;
}

.rs-promo-bar__offer strong {
    font-weight: 700;
}

.rs-promo-bar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 7px;
    background: #17212b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.rs-promo-bar__link:hover {
    color: inherit;
    background: rgba(255, 255, 255, .12);
}

.rs-promo-bar__link:focus-visible {
    outline: 3px solid #17212b;
    outline-offset: -3px;
}

@media (max-width: 600px) {
    .rs-promo-bar__inner {
        justify-content: space-between;
        gap: 12px;
    }

    .rs-promo-bar__offer {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        font-size: 14px;
    }

    .rs-promo-bar__offer span {
        font-size: 12px;
    }

    .rs-promo-bar__button {
        padding: 7px 10px;
        font-size: 12px;
    }
}