/* стили для верхнего меню*/
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&display=swap');
#gkhsMobileSidebar {
    display: none !important;
}   

.header-top {
    position: fixed;
    top: 24px;
    z-index: 1000;
    width: 100%;
}

.container-sm {
    padding-left: 24px;
    padding-right: 24px;
}

.header-top__col {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: #FAF6EC;
    padding: 8px 16px;
    border-radius: 24px;
    transition: border-radius 0.3s ease;
}

.header__logo {
    position: absolute;
    transform: translate(-50%);
    left: 50%;
    top: -10px;
    background: rgb(250, 246, 236);
    border-radius: 1000px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 4px 4px 0px;
    z-index: 999999;
    height: 120px;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.header__logo img {
    width: 100%;
    max-width: 321px;
}

.header__logo-mobile {
    display: none;
    z-index: 9999;
    flex-shrink: 0;
    position: relative;
}

.header__logo-mobile img {
    height: 40px;
    width: auto;
}

/* ===== НАВИГАЦИЯ ===== */
.header-nav {
    position: static;
}

.header-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.header-nav__item {
    position: static;
    display: inline-block;
    border-radius: 100px;
    transition: background 0.3s ease;
}

.header-nav__item:hover {
    background: #BAC0AF;
}

.header-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #403F2B;
    font-family: Jost;
    font-weight: 400;

    font-size: clamp(14px, 4.2vw, 16px);
    line-height: 150%;
    padding: 8px 16px;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    border-radius: 100px;
    transition: background 0.3s ease;
}

.header-nav__item:hover .header-nav__link {
    background: transparent;
}

.nav-arrow {
    pointer-events: none;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.header-nav__item:hover .nav-arrow {
    transform: rotate(180deg);
}

.header-top__links {
    display: flex;
    align-items: center;
    gap: 20px;
    height: max-content;
}

.header-phone {
    color: #403F2B;
    font-family: Jost;
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    text-decoration: none;
}

.btn-club {
    background: #BAC0AF;
    color: #403F2B;
    font-family: Jost;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    padding: 8px 24px;
    border-radius: 1000px;
    text-decoration: none;
}

.btn-ls {
    background: linear-gradient(90deg, #859E76 0%, #5E7153 100%);
    font-weight: 500;
    font-family: Jost;
    font-size: 16px;
    line-height: 150%;
    padding: 8px 24px;
    border-radius: 1000px;
    color: #FAF6EC !important;
    text-decoration: none;
}

 /* ===== БУРГЕР ===== */
.header-burger-new {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    background: #E7E6DA !important;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 9999;
    width: 72px;
    height: 72px;
    position: relative;
    border-radius: 100px;
    transition: background 0.3s ease;
}

.header-burger-new span {
    display: block;
    width: 20px;
    height: 2px;
    background: #403F2B;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    position: absolute;
    left: 50%;
}

.header-burger-new span:nth-child(1) {
    top: 10px;
    transform: translateX(-50%);
}

.header-burger-new span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.header-burger-new span:nth-child(3) {
    bottom: 10px;
    transform: translateX(-50%);
}

/* Активное состояние - бургер превращается в крестик */
.header-burger-new.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 28px;
}

.header-burger-new.active span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0);
}

.header-burger-new.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 28px;
}

.header-burger-new.active {
    background: #403F2B;
}

.header-burger-new.active span {
    background: #FAF6EC;
}
    .header-top__links-mobile {
        display: none;
        align-items: center;
        gap: 8px;
        z-index: 9999;
        position: relative;
    }

    .header-lk-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        /* width: 40px;
        height: 40px; */
        text-decoration: none;
    }

    .header-lk-mobile svg {
        width: 40px;
        height: 40px;
        background: linear-gradient(90deg, #859E76 0%, #5E7153 100%);
        padding: 7px;
        border-radius: 100px;
    }

    /* ===== ВЫПАДАЮЩЕЕ МЕНЮ ===== */
    .header-nav__dropdown {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: calc(100%);
        left: 0;
        right: 0;
        width: 100%;
        background: #FAF6EC;
        border-radius: 0 0 24px 24px;
        z-index: 100;
        padding: 8px;
        box-sizing: border-box;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .header-nav__item:hover .header-nav__dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header-nav__dropdown-inner {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 40px;
    }

    .header-nav__item-list {
        columns: 2;
        column-gap: 12px;
        list-style: none;
        margin: 0;
        padding: 24px;
        flex: 1;
        max-width: 580px;
        border: 1px solid #6A6958;
        border-radius: 20px;
        background: #E7E6DA;
    }

    .header-nav__item-list li {
        list-style: none;
        break-inside: avoid;
        margin-bottom: 12px;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .header-nav__item:hover .header-nav__item-list li {
        opacity: 1;
        transform: translateY(0);
    }

    .header-nav__item:hover .header-nav__item-list li:nth-child(1) {
        transition-delay: 0.05s;
    }

    .header-nav__item:hover .header-nav__item-list li:nth-child(2) {
        transition-delay: 0.10s;
    }

    .header-nav__item:hover .header-nav__item-list li:nth-child(3) {
        transition-delay: 0.15s;
    }

    .header-nav__item:hover .header-nav__item-list li:nth-child(4) {
        transition-delay: 0.20s;
    }

    .header-nav__item:hover .header-nav__item-list li:nth-child(5) {
        transition-delay: 0.25s;
    }

    .header-nav__item:hover .header-nav__item-list li:nth-child(6) {
        transition-delay: 0.30s;
    }

    .header-nav__item:hover .header-nav__item-list li:nth-child(7) {
        transition-delay: 0.35s;
    }

    .header-nav__item:hover .header-nav__item-list li:nth-child(8) {
        transition-delay: 0.40s;
    }

    .header-nav__item-list a {
        display: block;
        color: #403F2B;
        text-decoration: none;
        font-family: Jost;
        font-size: 16px;
        line-height: 1.4;
        border-radius: 8px;
        transition: background 0.2s;
        padding: 4px 8px;
    }

    .header-nav__item-list a:hover {
        background: rgba(133, 158, 118, 0.1);
    }

    /* Соцсети в десктопном выпадающем меню */
    .header-nav__dropdown-social {
        flex-shrink: 0;
        min-width: 140px;
        opacity: 0;
        transform: translateX(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: 0.1s;
    }

    .header-nav__item:hover .header-nav__dropdown-social {
        opacity: 1;
        transform: translateX(0);
    }

    .social-links {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        padding: 16px;
    }

    .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #403f2b;
        transition: background 0.2s, transform 0.2s;
        text-decoration: none;
    }

    .social-link:hover {
        background: #5E7153;
        transform: scale(1.1);
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .header-top:has(.header-nav__item:hover) .header-top__col {
        border-radius: 24px 24px 0 0;
    }

    /* ===== МОБИЛЬНЫЙ ФУТЕР ===== */
    .header-mobile-footer {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 20px 0 10px;
        margin-top: 20px;
    }

    .mobile-social-links {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mobile-social-links .social-link {
        background: #403f2b;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-social-links .social-link svg {
        width: 20px;
        height: 20px;
    }

    .mobile-phone {
        color: #403F2B;
        font-family: Jost;
        font-weight: 500;
        font-size: 20px;
        line-height: 150%;
        text-decoration: none;
    }

    .btn-ls-mobile {
        background: linear-gradient(90deg, #859E76 0%, #5E7153 100%);
        font-weight: 500;
        font-family: Jost;
        font-size: 16px;
        line-height: 150%;
        padding: 10px 32px;
        border-radius: 1000px;
        color: #FAF6EC;
        text-decoration: none;
        display: inline-block;
    }

    #gkhsTopNav {
        display: none !important;
    }

    .mobile-link {
        display: none;
    }

    @media (max-width: 1200px) {
        .header__logo {
            display: none;
        }

        .header__logo-mobile {
            display: flex !important;
            align-items: center;
        }

        .header-burger-new {
            display: flex;
        }

        .header-top__links-mobile {
            display: flex;
        }

        .header-top__links {
            display: none;
        }

        .header-top__nav {
            position: absolute;
            top: 0;
            left: -200%;
            width: 100%;
            /* height: 100vh; */
            background: #FAF6EC;
            padding: 100px 24px 30px;
            transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            z-index: 9998;
            border-radius: 24px;
        }

        .mobile-social-links .social-link {
            width: 40px;
            height: 40px;
        }

        .header-top__nav.active {
            left: 0;
        }

        .header-nav {
            width: 100%;
        }

        .header-nav__list {
            flex-direction: column;
            gap: 0;
            width: 100%;
        }

        .header-nav__item {
            display: block;
            width: 100%;
            border-radius: 0;
            border-bottom: 1px solid rgba(64, 63, 43, 0.08);
        }

        .header-nav__item:last-child {
            border-bottom: none;
        }

        .header-nav__item:hover {
            background: transparent;
        }

        .header-nav__link {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 16px 0;
            white-space: normal;
            border-radius: 0;
            font-size: 18px;
        }

        .header-nav__item:hover .header-nav__link {
            background: transparent;
        }

        .header-nav__dropdown {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            padding: 0;
            border-radius: 0;
            box-shadow: none;
            background: transparent;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, padding 0.3s ease;
        }

        .header-nav__item.active .header-nav__dropdown {
            max-height: 2000px;
            padding: 12px 0 20px;
        }

        .header-nav__dropdown-inner {
            flex-direction: column;
            align-items: stretch;
            gap: 0;
        }

        .header-nav__item-list {
            columns: 1;
            max-width: 100%;
            padding: 16px;
            background: #E7E6DA;
            border-radius: 16px;
        }

        .header-nav__item-list li {
            opacity: 1;
            transform: none;
            margin-bottom: 8px;
        }

        .header-nav__item:hover .header-nav__item-list li {
            opacity: 1;
            transform: none;
        }

        .header-nav__item-list li:nth-child(1),
        .header-nav__item-list li:nth-child(2),
        .header-nav__item-list li:nth-child(3),
        .header-nav__item-list li:nth-child(4),
        .header-nav__item-list li:nth-child(5),
        .header-nav__item-list li:nth-child(6),
        .header-nav__item-list li:nth-child(7),
        .header-nav__item-list li:nth-child(8) {
            transition-delay: 0s !important;
        }

        /* Скрываем соцсети в десктопном выпадающем меню на мобильных */
        .header-nav__dropdown-social {
            display: none;
        }

        .header-mobile-footer {
            display: flex;
        }

        .header-top__col {
            padding: 8px 16px;
            width: 100%;
        }
    }

    @media (max-width: 768px) {
        .header-top__nav {
            padding: 130px 20px 30px;
        }

        .header-nav__link {
            font-size: 30px;
        }

        .mobile-link {
            display: block;
        }

.header__logo-mobile img {
    height: 72px;
}

        .header-top__col {
            padding: 20px;
            border-radius: 100px;
        }

        .mobile-phone {
            font-size: 18px;
        }

        .btn-ls-mobile {
            font-size: 14px;
            padding: 8px 28px;
        }

        .header-nav__item-list a {
            font-size: 28px;
        }
    }

    @media (max-width: 480px) {
        .header-top__nav {
            padding: 70px 16px 30px;
        }

        .header-nav__link {
            font-size: 15px;
            padding: 12px 0;
        }

        .header__logo-mobile img {
            height: 28px;
        }

        .header-burger-new span {
            width: 20px;
            height: 2px;
        }

        .header-burger-new {
            width: 34px;
            height: 34px;
        }

        .header-lk-mobile {
            width: 34px;
            height: 34px;
        }

        .header-lk-mobile svg {
            width: 20px;
            height: 20px;
        }

        .header-top__col {
            padding: 10px;
        }

        .mobile-phone {
            font-size: 16px;
        }
        .container-sm {
            padding-left: 0;
            padding-right: 0;
        }
    }

/* стили для подвала */
    .site-footer {
        background: rgb(61, 61, 41);
        color: rgb(250, 246, 236);
        margin-top: 0px;
        padding: 64px 0;
        border-radius: 30px 30px 0px 0px;
        margin-top: 64px;
    }

    .site-footer .container {
        width: 100%;
        max-width: 1348px;
        margin: 0px auto;
        margin-top: 32px;
    }


    .footer-main {
        display: grid;
        grid-template-columns:
            minmax(230px, 0.95fr) minmax(420px, 2.2fr) minmax(180px, 0.9fr) minmax(190px, 0.95fr);
        gap: 50px;
        align-items: start;
    }



    .footer-logo {
        display: inline-flex;
        align-items: flex-start;
        width: 105px;
        margin-bottom: 25px;
    }

    .footer-logo img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }


    .footer-description {
        font-size: 12px;
        line-height: 1.3;
        color: #FAF6EC;
        margin-bottom: 32px;
    }

    .footer-description span {
        display: block;
        margin-bottom: 2px;
    }


    .footer-buttons {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 157px;
        min-height: 40px;
        padding: 8px 18px;
        border-radius: 50px;
        text-decoration: none;
        font-size: 14px;
        line-height: 1;
        transition:
            background-color 0.25s ease,
            transform 0.25s ease;
    }

    .footer-btn:hover {
        transform: translateY(-2px);
    }

    .footer-btn-light {
        background: #c7c9b9;
        color: #3d3d29;
    }

    .footer-btn-green {
        background: #6f8c63;
        color: #faf6ec;
    }


    .footer-column {
        min-width: 0;
    }

    .footer-title {
        font-size: 16px;
        line-height: 1.2;
        padding-bottom: 24px;
        margin-bottom: 24px;
        border-bottom: 1px solid #FAF6EC33;
        color: #FAF6EC;
    }

    .footer-menu {
        display: flex;
        flex-direction: column;

        gap: 15px;
    }

    .footer-menu a {
        display: block;
        color: #FAF6EC;
        text-decoration: none;
        font-size: 16px;
        line-height: 120%;
        transition: opacity 0.2s;
    }

    .footer-menu a:hover {
        opacity: 0.65;
    }


    .footer-contacts {
        display: flex;

        justify-content: space-between;
        align-items: center;

        margin-top: 30px;
        margin-bottom: 28px;
    }

    .footer-phone {
        color: #FAF6EC;
        text-decoration: none;
        font-size: 25px;
        line-height: 150%;
        font-weight: 500;
    }


    .social-links__footer {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .social-links__footer .social-link {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #FAF6EC;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }

    .social-links.social-links__footer {
        gap: 16px;
    }

    .footer-map iframe {
        overflow: hidden;
        border-radius: 12px;
        line-height: 0;
    }

    .footer-map iframe {
        display: block;
        width: 100%;
        height: 444px;
        border: 0;
    }


    .footer-bottom {
        display: grid;
        grid-template-columns:
            1.25fr 1.25fr 1.55fr 1fr;

        gap: 35px;
        padding-top: 30px;
        margin-top: 30px;
        border-top: 1px solid rgba(250, 246, 236, 0.18);
        align-items: start;
    }

    .footer-bottom,
    .footer-bottom a {
        color: #faf6ec;
    }

    .footer-bottom a {
        text-decoration: none;
        font-size: 16px;
        line-height: 1.35;
    }

    .footer-bottom a:hover {
        opacity: 0.65;
    }

    .footer-requisites,
    .footer-address {
        font-size: 12px;
        line-height: 1.3;
    }

    .footer-address {
        text-align: right;
    }

    .footer-address span {
        display: inline;
    }

    .footer-bottom.container-sm {
        margin-left: 24px;
        margin-right: 24px;
        padding-left: 0;
        padding-right: 0;
    }

    @media (max-width: 1200px) {
        .footer-main {
            grid-template-columns:
                220px minmax(350px, 1fr) 190px 190px;
            gap: 30px;
        }

        .footer-menu a {
            font-size: 14px;
        }
    }

    @media (max-width: 1000px) {

        .site-footer {
            padding: 50px 20px 25px;
        }

        .footer-main {
            grid-template-columns: 1fr 1fr;
            row-gap: 45px;
        }

        .footer-programs {
            grid-column: span 1;
        }

        .footer-contacts {
            margin-top: 45px;
        }

        .footer-bottom {
            grid-template-columns: 1fr 1fr;
            row-gap: 25px;
        }

        .footer-address {
            text-align: left;
        }

    }


    @media (max-width: 700px) {

        .site-footer {
            padding: 40px 16px 20px;
            border-radius: 20px 20px 0 0;
        }

        .footer-main {
            display: grid;
            grid-template-columns: 1fr;
            gap: 38px;
        }

        .footer-brand {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .footer-logo {
            width: 90px;
            margin-bottom: 20px;
        }

        .footer-description {
            max-width: 310px;
            font-size: 12px;
        }

        .footer-buttons {
            width: 100%;
        }

        .footer-btn {
            width: 157px;
        }

        .footer-column {
            width: 100%;
        }

        .footer-title {
            padding-bottom: 15px;
            margin-bottom: 17px;
            font-size: 14px;
        }

        .footer-menu {
            gap: 12px;
        }

        .footer-menu a {
            font-size: 14px;
        }

        .footer-contacts {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 32px;
            margin-bottom: 32px;
        }

        .footer-phone {
            font-size: 22px;
        }

        .social-links {
            width: 100%;
            justify-content: flex-start;
            gap: 9px;
        }

        .social-link {
            width: 40px;
            height: 40px;
        }

        .footer-map iframe {
            height: 380px;
        }

        .footer-bottom {
            display: flex;
            flex-direction: column;
            gap: 18px;
            padding-top: 23px;
            margin-top: 25px;
        }

        .footer-requisites,
        .footer-address,
        .footer-bottom a {
            font-size: 11px;
        }

    }


    @media (max-width: 480px) {

        .site-footer {
            padding-left: 14px;
            padding-right: 14px;
        }

        .footer-logo {
            width: 82px;
        }

        .footer-phone {
            font-size: 20px;
        }

        .social-links {
            gap: 7px;
        }

        .social-link {
            width: 38px;
            height: 38px;
        }

        .footer-map {
            border-radius: 10px;
        }

        .footer-map iframe {
            height: 320px;
        }

    }

/* стили модалки (взяты из 001-gk-desctop-mega-final.php) */

/*
 * Стили модалки «Личный кабинет» (вход / регистрация / сброс пароля).
 * Вырезано из gkhs-css (mu-plugin 001-gk-desktop-mega-final.php) — только то,
 * что нужно для рендера .gkhs-auth-modal. Селекторы сохранены с префиксом
 * #gkhs-root, поэтому в разметке модалки обёртка <div id="gkhs-root"> обязательна.
 * Шапка/меню/футер отсюда намеренно убраны.
 */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&display=swap');

/* Scroll-lock под открытой модалкой (класс вешает встроенный JS триггера) */
body.gkhs-auth-open {
    overflow: hidden;
}

/* ---------- База обёртки (CSS-переменные используются всеми правилами ниже) ---------- */
#gkhs-root {
    --main-dark: rgba(64, 63, 43, 1);
    --main-milk: rgba(250, 246, 236, 1);
    --light-green: rgba(186, 192, 175, 1);
    --white: rgba(252, 250, 245, 1);
    --main-green: rgba(94, 113, 83, 1);
    font-family: 'Jost', Helvetica, sans-serif;
    color: var(--main-dark);
    line-height: 1;
}

#gkhs-root,
#gkhs-root *,
#gkhs-root *::before,
#gkhs-root *::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

#gkhs-root a {
    text-decoration: none;
    color: inherit;
}

#gkhs-root button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---------- Модалка ---------- */
#gkhs-root .gkhs-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 12110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

#gkhs-root .gkhs-auth-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#gkhs-root .gkhs-auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.46);
}

#gkhs-root .gkhs-auth-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(494px, calc(100vw - 32px));
    background: var(--main-milk);
    border: 1px solid rgba(64, 63, 43, 0.2);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(22, 24, 18, 0.22);
    padding: 24px;
}

#gkhs-root .gkhs-auth-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--main-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background-color 0.2s ease;
}

#gkhs-root .gkhs-auth-modal__close:hover {
    background: rgba(64, 63, 43, 0.08);
}

#gkhs-root .gkhs-auth-modal__title {
    margin: 0 0 16px;
    color: var(--main-dark);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.08;
}

#gkhs-root .gkhs-auth-modal__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(64, 63, 43, 0.18);
    background: rgba(252, 250, 245, 1);
    margin-bottom: 18px;
}

#gkhs-root .gkhs-auth-modal__tab {
    min-height: 49px;
    border-radius: 10px;
    color: var(--main-dark);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

#gkhs-root .gkhs-auth-modal__tab.is-active {
    background: linear-gradient(90deg, rgba(127, 154, 111, 1) 0%, rgba(94, 113, 83, 1) 67%);
    color: var(--main-milk);
    font-weight: 500;
}

#gkhs-root .gkhs-auth-form {
    display: none;
    flex-direction: column;
    gap: 16px;
}

#gkhs-root .gkhs-auth-form.is-active {
    display: flex;
}

#gkhs-root .gkhs-auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#gkhs-root .gkhs-auth-label {
    color: var(--main-dark);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

#gkhs-root .gkhs-auth-input-wrap {
    position: relative;
}

#gkhs-root .gkhs-auth-input {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(64, 63, 43, 0.2);
    background: rgba(252, 250, 245, 1);
    padding: 12px 16px;
    color: var(--main-dark);
    font-size: 16px;
    line-height: 1.35;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#gkhs-root .gkhs-auth-input:focus {
    border-color: rgba(94, 113, 83, 0.9);
    box-shadow: 0 0 0 3px rgba(127, 154, 111, 0.16);
}

#gkhs-root .gkhs-auth-input[type="password"],
#gkhs-root .gkhs-auth-input[data-has-toggle="true"] {
    padding-right: 54px;
}

#gkhs-root .gkhs-auth-toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    color: rgba(64, 63, 43, 0.72);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#gkhs-root .gkhs-auth-toggle-password:hover {
    background: rgba(64, 63, 43, 0.08);
    color: var(--main-dark);
}

#gkhs-root .gkhs-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

#gkhs-root .gkhs-auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--main-dark);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

#gkhs-root .gkhs-auth-checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: rgba(94, 113, 83, 1);
}

#gkhs-root .gkhs-auth-link {
    color: var(--main-dark);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#gkhs-root .gkhs-auth-link:hover {
    opacity: 0.72;
}

#gkhs-root .gkhs-auth-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

#gkhs-root .gkhs-auth-social__title {
    margin: 0;
    color: rgba(64, 63, 43, 0.74);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

#gkhs-root .gkhs-auth-social__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#gkhs-root .gkhs-auth-social__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(64, 63, 43, 0.16);
    background: rgba(252, 250, 245, 1);
    color: var(--main-dark);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#gkhs-root .gkhs-auth-social__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(22, 24, 18, 0.08);
    border-color: rgba(64, 63, 43, 0.26);
    opacity: 1;
}

#gkhs-root .gkhs-auth-social__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

#gkhs-root .gkhs-auth-social__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

#gkhs-root .gkhs-auth-notice {
    display: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
}

#gkhs-root .gkhs-auth-notice.is-visible {
    display: block;
}

#gkhs-root .gkhs-auth-notice.is-error {
    background: rgba(190, 76, 76, 0.12);
    color: #8f2222;
}

#gkhs-root .gkhs-auth-notice.is-success {
    background: rgba(94, 113, 83, 0.12);
    color: rgba(47, 69, 39, 1);
}

#gkhs-root .gkhs-auth-modal__submit {
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(127, 154, 111, 1) 0%, rgba(94, 113, 83, 1) 67%);
    color: var(--main-milk);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    transition: opacity 0.2s ease;
}

#gkhs-root .gkhs-auth-modal__submit:hover {
    opacity: 0.85;
}

#gkhs-root .gkhs-auth-modal__submit[disabled] {
    opacity: 0.68;
    cursor: wait;
}

#gkhs-root .gkhs-auth-form.is-loading .gkhs-auth-modal__submit {
    opacity: 0.68;
}

#gkhs-root .gkhs-auth-note {
    color: rgba(64, 63, 43, 0.7);
    font-size: 13px;
    line-height: 1.45;
    margin: -4px 0 0;
}

/* ---------- Адаптив модалки ---------- */
@media (max-width: 520px) {
    #gkhs-root .gkhs-auth-social__list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    #gkhs-root .gkhs-auth-modal {
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    #gkhs-root .gkhs-auth-modal__dialog {
        width: min(668px, calc(100vw - 40px));
        width: min(668px, calc(100svw - 40px));
        max-height: calc(100vh - 40px);
        max-height: calc(100svh - 40px);
        overflow-y: auto;
        padding: 20px 16px 18px;
        border-radius: 18px;
    }

    #gkhs-root .gkhs-auth-modal__title {
        font-size: 24px;
        margin-bottom: 14px;
    }

    #gkhs-root .gkhs-auth-modal__tab {
        min-height: 46px;
        font-size: 18px;
    }

    #gkhs-root .gkhs-auth-modal__submit {
        min-height: 50px;
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    #gkhs-root .gkhs-auth-modal__dialog {
        width: calc(100vw - 24px);
        width: calc(100svw - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100svh - 24px);
    }
}