/*
 * Шапка сайта: контактный блок + закреплённое меню с мега-раскрытием услуг.
 * Загружается после основных стилей, поэтому не затрагивает остальную архитектуру.
 */

html {
    scroll-padding-top: 76px;
}

.site-header {
    position: relative;
    z-index: 100;
    background: #fff;
    color: #17283b;
    font-size: 14px;
}

.site-header a,
.sh-navigation a {
    color: inherit;
    text-decoration: none;
}

.site-header button,
.sh-navigation button {
    font: inherit;
}

.sh-container {
    width: var(--main-container, 1200px);
    max-width: 100%;
    margin-inline: auto;
}

/* ─── Верхний контактный блок ─── */

.sh-contact-row {
    display: grid;
    grid-template-columns: minmax(270px, 1.45fr) minmax(155px, .8fr) minmax(185px, .95fr) minmax(135px, .65fr) auto;
    align-items: center;
    gap: 22px;
    min-height: 112px;
    padding-block: 16px;
}

.sh-identity {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.sh-portrait {
    display: block;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    max-width: 68px;
    object-fit: cover;
    border: 1px solid #d9e3ec;
    border-radius: 50%;
    background: #e5edf4;
}

.sh-identity-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sh-identity-name {
    color: #0f2438;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.sh-identity-description {
    max-width: 330px;
    margin-top: 5px;
    color: #4e5b6a;
    font-size: 14px;
    line-height: 1.45;
}

.sh-contact-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-left: 19px;
    border-left: 1px solid #e3e9ef;
}

.sh-contact-label {
    display: block;
    margin-bottom: 7px;
    color: #4e5b6a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sh-contact-value {
    display: block;
    color: #1d3348;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    transition: color .18s ease;
}

.sh-contact-value + .sh-contact-value {
    margin-top: 2px;
}

.sh-contact-value:hover {
    color: #0055a5;
}

.sh-contact-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #eef4fa;
    color: #4e5b6a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .02em;
    text-transform: uppercase;
    vertical-align: 1px;
}

.sh-contact-subtext {
    display: block;
    margin-top: 3px;
    color: #4e5b6a;
    font-size: 14px;
    line-height: 1.4;
}

.sh-contact-actions {
    display: flex;
    justify-content: flex-end;
}

.sh-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #003366;
    border-radius: 8px;
    background: #003366;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.sh-cta:hover {
    border-color: #0055a5;
    background: #0055a5;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 85, 165, .22);
}

.sh-cta:focus-visible {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}

/* ─── Закреплённое меню ─── */

/*
 * Базовый styles.css задаёт body{height:100%} и overflow-x:hidden.
 * Из-за этого body становится контейнером высотой в один экран,
 * и sticky-меню «отклеивается» после первого экрана. Высота по контенту
 * возвращает меню нормальное поведение на всей странице.
 */
body {
    height: auto;
}

.sh-navigation {
    position: sticky;
    top: 0;
    z-index: 110;
    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #e9eff5;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform .32s cubic-bezier(.22, .61, .36, 1), box-shadow .25s ease, background .25s ease;
    will-change: transform;
}

.sh-navigation.is-stuck {
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 10px 30px rgba(16, 39, 61, .10);
}

.sh-navigation.is-hidden {
    transform: translateY(-101%);
}

/* Якорь «Цены» не должен прятаться под закреплённым меню. */
#price {
    scroll-margin-top: 84px;
}

.sh-nav-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 64px;
}

.sh-nav-list {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 64px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Подвижная подсветка пункта меню */

.sh-pill {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 0;
    width: var(--w, 0px);
    height: 38px;
    border-radius: 999px;
    background: #edf3fb;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(var(--x, 0px), -50%, 0);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), width .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}

.sh-pill.is-on {
    opacity: 1;
}

.sh-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.sh-nav-link,
.sh-services-trigger {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #34475b;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease;
}

.sh-nav-link:hover,
.sh-nav-link:focus-visible,
.sh-services-trigger:hover,
.sh-services-trigger:focus-visible {
    color: #003366;
    outline: none;
}

.sh-nav-link.aLinkActive {
    color: #0055a5 !important;
}

.sh-nav-link:focus-visible,
.sh-services-trigger:focus-visible,
.sh-talk-btn:focus-visible,
.sh-nav-pro:focus-visible,
.sh-nav-cta:focus-visible,
.sh-menu-toggle:focus-visible,
.sh-mega-side-btn:focus-visible {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}

/* Услуги: ссылка + кнопка-стрелка, чтобы раздел оставался доступен */

.sh-services-link {
    padding-right: 3px;
}

.sh-services-trigger {
    padding: 0 12px 0 2px;
    color: #34475b;
}

.sh-chevron {
    display: block;
    width: 6px;
    height: 6px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.sh-services-item.is-open .sh-chevron {
    transform: translateY(1px) rotate(225deg);
}

/* ─── Действия справа ─── */

.sh-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.sh-talk {
    position: relative;
}

.sh-talk-btn,
.sh-nav-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #dbe4ee;
    border-radius: 11px;
    background: #fff;
    color: #1a3048;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.sh-talk-btn:hover,
.sh-talk-btn[aria-expanded="true"],
.sh-nav-pro:hover {
    border-color: #b9cbe0;
    background: #f7fafd;
    color: #003366;
    box-shadow: 0 4px 12px rgba(16, 39, 61, .06);
}

.sh-talk-btn svg,
.sh-nav-pro svg {
    flex: 0 0 auto;
}

.sh-talk-pop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 250px;
    padding: 7px;
    border: 1px solid #e4ebf3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(16, 39, 61, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.sh-talk.is-open .sh-talk-pop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.sh-talk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    color: #1f344a;
    transition: background .16s ease;
}

.sh-talk-item:hover,
.sh-talk-item:focus-visible {
    background: #f3f7fb;
    outline: none;
}

.sh-talk-ico {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: #fff;
}

.sh-talk-ico--tg {
    background: #229ed9;
}

.sh-talk-ico--viber {
    background: #7360f2;
}

.sh-talk-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.sh-talk-copy b {
    font-size: 14px;
    font-weight: 700;
}

.sh-talk-copy small {
    margin-top: 1px;
    color: #4e5b6a;
    font-size: 14px;
}

.sh-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: linear-gradient(135deg, #0055a5, #007aff);
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 102, 204, .24);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.sh-navigation a.sh-nav-cta,
.sh-navigation a.sh-nav-cta:hover {
    color: #fff;
}

.sh-navigation a.sh-nav-pro {
    color: #1a3048;
}

.sh-navigation a.sh-nav-pro:hover {
    color: #003366;
}

.sh-navigation a.sh-mega-side-btn {
    color: #003366;
}

.sh-nav-pro.is-active {
    border-color: #9dc3ea;
    background: #eef6ff;
    color: #003366;
}

.sh-nav-cta.is-active {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, .20), 0 8px 20px rgba(0, 102, 204, .30);
}

.sh-nav-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(0, 102, 204, .30);
    filter: saturate(1.08);
}

.sh-nav-cta-short {
    display: none;
}

/* ─── Мега-раскрытие услуг ─── */

.sh-dropdown {
    position: absolute;
    top: 100%;
    left: var(--sh-dd-left, 0px);
    z-index: 60;
    width: var(--sh-dd-width, min(1200px, calc(100vw - 40px)));
    max-height: var(--sh-dd-max-height, calc(100vh - 76px));
    overflow-y: auto;
    padding: 22px;
    border: 1px solid #dce5ee;
    border-top: 0;
    border-radius: 0 0 20px 20px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(16, 39, 61, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease;
}

.sh-services-item.is-open > .sh-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sh-mega {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: stretch;
}

.sh-mega-main {
    min-width: 0;
}

.sh-dropdown-heading {
    margin: 0 0 14px;
    padding-left: 12px;
    color: #4e5b6a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sh-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
}

.sh-mega-item {
    display: block;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: background .16s ease, border-color .16s ease;
}

.sh-mega-item:hover,
.sh-mega-item:focus-visible,
.sh-mega-item.is-active {
    border-color: #d8e6f3;
    background: #f2f7fc;
    outline: none;
}

.sh-mega-item-name {
    display: block;
    color: #17283b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.sh-mega-item-desc {
    display: block;
    margin-top: 4px;
    color: #4e5b6a;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.sh-mega-item.is-current .sh-mega-item-name {
    color: #0055a5;
}

.sh-dropdown-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    margin-left: 12px;
    color: #0055a5;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.sh-dropdown-all:hover,
.sh-dropdown-all:focus-visible {
    color: #003366;
    outline: none;
}

.sh-mega-side {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    overflow: hidden;
    padding: 24px 22px;
    border-radius: 16px;
    background: linear-gradient(155deg, #062a4f 0%, #0a4276 55%, #0a4d8f 100%);
    color: #fff;
}

.sh-mega-side::after {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    content: "";
    pointer-events: none;
}

.sh-mega-side-eyebrow {
    position: relative;
    color: #d6ecff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.sh-mega-side-title {
    position: relative;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.sh-mega-side-text {
    position: relative;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    line-height: 1.5;
}

.sh-mega-side-list {
    position: relative;
    display: grid;
    gap: 7px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.sh-mega-side-list li {
    position: relative;
    padding-left: 18px;
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    line-height: 1.4;
}

.sh-mega-side-list li::before {
    position: absolute;
    top: 7px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7dd3fc;
    content: "";
}

.sh-mega-side-price {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.sh-mega-side-price-label {
    color: #d6ecff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sh-mega-side-price-value {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.sh-mega-side-price-note {
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
    line-height: 1.3;
}

.sh-mega-side-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #003366;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.sh-mega-side-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.sh-mega-skeleton {
    display: block;
    height: 58px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e5edf6 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: sh-mega-shimmer 1.2s ease-in-out infinite;
}

.sh-mega-side-skeleton {
    width: 100%;
    height: 140px;
    margin-top: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
}

.sh-mega-error {
    margin: 0;
    padding: 12px;
    color: #4e5b6a;
    font-size: 14px;
    line-height: 1.4;
}

@keyframes sh-mega-shimmer {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

/* ─── Кнопка мобильного меню ─── */

.sh-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #fff;
    color: #17283b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.sh-menu-toggle:hover {
    border-color: #b9cbe0;
    background: #f7fafd;
}

.sh-hamburger {
    display: grid;
    gap: 4px;
    width: 17px;
}

.sh-hamburger i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

/* ─── Планшеты и узкие десктопы ─── */

@media (max-width: 1200px) {
    .sh-container {
        width: calc(100% - 40px);
    }

    .sh-nav-link,
    .sh-services-trigger {
        padding-inline: 9px;
        font-size: 14px;
    }

    .sh-services-link {
        padding-right: 3px;
    }

    .sh-services-trigger {
        padding: 0 9px 0 2px;
    }

    .sh-talk-btn,
    .sh-nav-pro {
        min-height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }

    .sh-nav-cta {
        min-height: 42px;
        padding: 0 16px;
        font-size: 14px;
    }
}

@media (max-width: 1140px) {
    .sh-nav-link,
    .sh-services-trigger {
        padding-inline: 8px;
    }

    .sh-services-link {
        padding-right: 3px;
    }

    .sh-services-trigger {
        padding: 0 8px 0 2px;
    }

    .sh-nav-pro {
        width: 38px;
        padding: 0;
    }

    .sh-nav-pro span {
        display: none;
    }
}

@media (max-width: 1010px) {
    .sh-nav-inner {
        gap: 12px;
    }

    .sh-talk-btn {
        width: 38px;
        padding: 0;
    }

    .sh-talk-btn span {
        display: none;
    }

    .sh-dropdown {
        padding: 18px;
    }

    .sh-mega {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 18px;
    }
}

/* ─── Телефоны и узкие планшеты: меню уходит в существующую мобильную панель ─── */

@media (max-width: 1080px) {
    .sh-contact-row {
        grid-template-columns: minmax(220px, 1.3fr) minmax(125px, .75fr) minmax(155px, .85fr) auto;
        gap: 16px;
    }

    .sh-contact-address {
        display: none;
    }

    .sh-contact-tag {
        display: none;
    }
}

@media (max-width: 900px) {
    .sh-contact-row {
        gap: 14px;
    }

    .sh-identity {
        gap: 12px;
    }

    .sh-portrait {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        max-width: 58px;
    }

    .sh-identity-name {
        font-size: 18px;
    }

    .sh-identity-description {
        font-size: 14px;
        line-height: 1.4;
    }

    .sh-nav-inner {
        min-height: 56px;
    }

    .sh-nav-list {
        display: none;
    }

    .sh-nav-pro,
    .sh-talk {
        display: none;
    }

    .sh-nav-cta-long {
        display: none;
    }

    .sh-nav-cta-short {
        display: inline;
    }

    .sh-menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 780px) {
    .sh-contact-row {
        grid-template-columns: 1fr auto;
        gap: 12px;
        min-height: 0;
        padding-block: 14px;
    }

    .sh-contact-email,
    .sh-contact-phones,
    .sh-contact-address {
        display: none;
    }

    .sh-identity {
        gap: 12px;
    }

    .sh-portrait {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        max-width: 58px;
    }

    .sh-identity-name {
        font-size: 18px;
    }

    .sh-identity-description {
        max-width: 380px;
        font-size: 14px;
        line-height: 1.4;
    }

    .sh-cta {
        min-height: 40px;
        padding-inline: 13px;
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    .sh-nav-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .sh-contact-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sh-contact-actions {
        justify-content: stretch;
    }

    .sh-cta {
        width: 100%;
    }

    .sh-identity-description {
        max-width: none;
    }
}

@media (max-width: 576px) {
    .sh-contact-row {
        padding-block: 12px;
    }

    .sh-identity-name {
        font-size: 17px;
    }

    .sh-identity-description {
        font-size: 14px;
    }

    .sh-cta {
        min-height: 38px;
        padding-inline: 11px;
        font-size: 14px;
    }
}

/* ─── Мобильное меню: отдельные ссылки «Аудит» и «Консультация» ─── */

.mm-cta-offers {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.mm-cta-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #fff;
    color: #12325c;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.mm-cta-link:hover {
    border-color: #9dc3ea;
    background: #f4f9ff;
    color: #003366;
}

.mm-cta-link--audit {
    border-color: transparent;
    background: linear-gradient(135deg, #0055a5, #007aff);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 102, 204, .24);
}

.mm-cta-link--audit:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #004a91, #006fe6);
    color: #fff;
    transform: translateY(-1px);
}

.mm-cta-link .mm-cta-icon {
    opacity: .85;
}

/* ─── Мобильная шапка: одна компактная строка — фото, имя, гамбургер ─── */

@media (max-width: 900px) {
    html {
        scroll-padding-top: 74px;
    }

    #price {
        scroll-margin-top: 74px;
    }

    /* Верхняя строка остаётся единственной шапкой и закрепляется сверху */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 120;
        box-shadow: 0 1px 0 #e9eff5, 0 6px 20px rgba(16, 39, 61, .06);
        transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .25s ease;
        will-change: transform;
    }

    /* Прокрутка вниз — шапка уезжает, прокрутка вверх — возвращается */
    .site-header.is-hidden {
        transform: translateY(-101%);
    }

    /* Отдельная строка меню на телефоне не нужна: навигация живёт в панели */
    .sh-navigation {
        display: none;
    }

    .sh-contact-row {
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 64px;
        padding-block: 8px;
    }

    .sh-identity {
        flex: 0 1 auto;
        gap: 12px;
        min-width: 0;
    }

    .sh-portrait {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        max-width: 44px;
    }

    /* Имя стоит сразу за фото, как в шапке открытого меню */
    .sh-identity-copy {
        position: static;
        align-items: flex-start;
        max-width: none;
        min-width: 0;
        text-align: left;
        transform: none;
    }

    .sh-identity-name {
        display: block;
        max-width: 100%;
        overflow: hidden;
        color: #17283b;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -.01em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sh-identity-description {
        display: none;
    }

    .sh-contact-email,
    .sh-contact-phones,
    .sh-contact-address,
    .sh-contact-actions {
        display: none;
    }

    /* Кнопка меню — только иконка-гамбургер в правом углу */
    .sh-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        margin-left: auto;
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border-radius: 12px;
    }

    .sh-hamburger {
        width: 19px;
        gap: 5px;
    }

    .sh-hamburger i {
        height: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header *,
    .site-header *::before,
    .site-header *::after,
    .sh-navigation,
    .sh-navigation *,
    .sh-navigation *::before,
    .sh-navigation *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
