* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    background: #E9F0EC;
    color: #fff;
    padding: 0px;
}

.hero {
    max-width: var(--yoge-container-max, 1580px);
    margin: 16px auto 0;
    min-height: 730px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    background:
        linear-gradient(90deg, rgba(5, 20, 15, 0.68) 0%, rgba(5, 20, 15, 0.48) 40%, rgba(5, 20, 15, 0.18) 65%, rgba(5, 20, 15, 0.30) 100%),
        url('/images/yoge/banner-1.jpg') center/cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(413px, 58vw);
    height: 78px;
    background: #E9F0EC;
    border-bottom-left-radius: 15px;
    z-index: 4;
}

.hero.hero--auth::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(225px, 58vw);
    height: 78px;
    background: #E9F0EC;
    border-bottom-left-radius: 15px;
    z-index: 4;
}

.topbar {
    position: relative;
    z-index: 5;
    min-height: 72px;
    padding: 12px 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}

/* Место под кнопки ЛК в вырезе (как yoge-titlebar__top) */
@media (min-width: 992px) {
    .topbar {
        padding-right: min(413px, 58vw);
    }
}

/* Кнопки входа/регистрации вынесены из .tools — абсолютно в светлом углу */
.hero-topbar__cta-cutout {
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    z-index: 6;
    max-width: min(720px, calc(100vw - 40px));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.logo img { width: 150px; height: 60px; object-fit: contain; }
.logo span { font-size: 30px; font-weight: 500; letter-spacing: 0.2px; }

.menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.9px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.menu li + li {
    position: relative;
    padding-left: 20px;
    display: flex;
    align-items: center;
}

.menu li + li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-50%);
}

.menu a {
    color: rgba(255,255,255,.95);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}
.menu a.is-active,
.menu a.active {
    color: #e5c466;
}

/* Широкий экран: меню по центру между логотипом и кнопками */
@media (min-width: 1201px) {
    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 20px;
        justify-content: unset;
    }

    .logo {
        justify-self: start;
    }

    .menu {
        justify-self: center;
    }

    .tools {
        justify-self: end;
    }
}

.tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    min-height: 34px;
}

/* Как на детальной (yoge-titlebar): телефон + корзина */
.tools .yoge-titlebar__phone {
    display: none;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .tools .yoge-titlebar__phone {
        display: inline-flex;
    }
}

.tools .yoge-titlebar__icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #181a17;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.tools .yoge-titlebar__icon-btn:hover {
    color: #448c74;
}

.tools .yoge-titlebar__cart {
    position: relative;
}

.tools .yoge-titlebar__cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e5c466;
    color: #181a17;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 999px;
    border: 0;
    background: #448C74;
    color: #fff !important;
    padding: 0 26px;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    box-sizing: border-box;
}

.appt:hover {
    background: #3d836b;
    color: #fff !important;
}

.appt--account {
    letter-spacing: 0.35px;
    padding: 0 18px;
    font-size: 9px;
}

.appt-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

/* Чёрная «Зарегистрироваться»: двойной класс + !important перебивает .appt / .appt:hover */
.appt.appt--register-black {
    background: #181a17 !important;
    color: #fff !important;
    border: 2px solid #181a17 !important;
    box-sizing: border-box;
}

.appt.appt--register-black:hover {
    background: #2a2f2c !important;
    border-color: #2a2f2c !important;
    color: #fff !important;
}

.appt-corner-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0;
}

/* Две класса: .appt-corner-wrap задаёт position:relative позже в файле — без этого гостевой блок снова «в потоке» и уезжает под логотип */
.hero-topbar__cta-cutout.appt-corner-wrap {
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    z-index: 6;
    max-width: min(720px, calc(100vw - 40px));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 0;
}

/* Две кнопки гостя всегда в один ряд (не сужать родителем и не переносить) */
.hero-topbar__cta-cutout .appt-row {
    flex-wrap: nowrap;
    flex-direction: row;
}

.pbmit-sticky-corner {
    width: 30px;
    height: 30px;
    position: absolute;
    transform: rotate(-90deg);
}

.pbmit-sticky-corner svg {
    width: 30px;
    height: 30px;
    display: block;
}

.pbmit-top-left-corner {
    top: -19px;
    left: -50px;
}

.pbmit-bottom-right-corner {
    bottom: -48px;
    right: -23px;
}

.content {
    position: relative;
    z-index: 4;
    margin-left: 190px;
    margin-top: 78px;
    max-width: 700px;
}

.kicker {
    display: inline-block;
    border: 1px solid rgba(255,255,255,.60);
    border-radius: 999px;
    padding: 5px 11px;
    text-transform: uppercase;
    font-size: 8px;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

h1 {
    font-size: 62px;
    line-height: .95;
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

h1 strong { display: block; font-weight: 700; }

.sub {
    font-size: 20px;
    color: rgba(255,255,255,.92);
    margin-bottom: 22px;
    font-weight: 400;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    background: #fff;
    color: #1a2922;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .9px;
}

.slider-dots {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 8px;
    z-index: 5;
}

.slider-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: .95;
}

.slider-dots span.active { background: #e5c466; }

.bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 84px;
    background-color: #e5c466;
    background-image: url('/images/yoge/yoga-pattern-new-01.png');
    background-repeat: repeat;
    background-size: 180px auto;
    background-position: 0 0;
    color: #181a17;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 26px;
    z-index: 6;
}

.members {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
}

.avatars { display: flex; align-items: center; }

.avatars img {
    width: 104px;
    height: 42px;
    object-fit: cover;
    margin-left: -8px;
}

.avatars img:first-child { margin-left: 0; }
.members strong { font-weight: 700; }

.pbmit-spinner {
    width: 105px;
    height: 105px;
    position: relative;
    flex: 0 0 105px;
}

.pbmit-scroll-section {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.pbmit-ihbox-box {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    position: relative;
}

.pbmit-ihbox-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.pbmit-icon-wrapper {
    font-size: 44px;
    line-height: 1;
    color: #181a17;
    transform: translateY(-2px);
}

.pbmit-heading-box {
    position: absolute;
    inset: 0;
    padding: 5px;
    animation: spin-circle 12s linear infinite;
}

.pbmit-heading-box svg {
    width: 100%;
    height: 100%;
}

.pbmit-heading-box text {
    fill: #181a17;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes spin-circle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.video-text {
    font-size: 12px;
    text-align: right;
    font-weight: 500;
    line-height: 1.2;
}

.video-box {
    width: 172px;
    height: 105px;
    border-radius: 10px;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-box img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1200px) {
    .menu { display: none; }
    .content { margin-left: 50px; }
}

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        border-radius: 14px;
    }

    .hero::before {
        width: 120px;
        height: 52px;
        border-bottom-left-radius: 14px;
    }

    .topbar {
        display: flex;
        height: auto;
        min-height: 0;
        padding: 12px 14px 0;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .hero-topbar__cta-cutout {
        position: static;
        top: auto;
        right: auto;
        transform: none;
        max-width: none;
        width: 100%;
        flex: 1 1 100%;
        order: 99;
        justify-content: center;
        margin-top: 4px;
    }

    .hero-topbar__cta-cutout .appt-row {
        justify-content: center;
    }

    .logo img {
        width: 120px;
        height: 46px;
    }

    .tools {
        gap: 8px;
        flex-wrap: wrap;
    }

    .tools .yoge-titlebar__icon-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .appt-corner-wrap {
        margin-left: 0;
    }

    .appt-row {
        justify-content: flex-end;
        align-items: center;
    }

    .appt {
        height: 40px;
        padding: 0 16px;
        font-size: 9px;
    }

    .pbmit-top-left-corner,
    .pbmit-bottom-right-corner {
        display: none;
    }

    .content {
        margin: 30px 16px 0;
        max-width: 100%;
        padding-right: 8px;
        box-sizing: border-box;
    }

    h1 {
        font-size: clamp(1.85rem, 7vw, 2.9rem);
        line-height: 1.05;
        margin-bottom: 16px;
    }

    .sub {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .contact-btn {
        height: 40px;
        padding: 0 16px;
        font-size: 9px;
    }

    .slider-dots {
        display: none;
    }

    .bottom {
        position: relative;
        margin-top: 30px;
        min-height: 0;
        border-radius: 0 0 14px 14px;
        padding: 16px;
        gap: 14px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .members {
        width: 100%;
        font-size: 11px;
        gap: 10px;
    }

    .avatars img {
        width: 88px;
        height: 35px;
    }

    .pbmit-spinner {
        width: 88px;
        height: 88px;
        flex: 0 0 88px;
    }

    .pbmit-icon-wrapper {
        font-size: 34px;
    }

    .video-text {
        order: 3;
        text-align: left;
        font-size: 11px;
        flex: 1 1 140px;
    }

    .video-box {
        order: 4;
        width: 150px;
        height: 92px;
    }
}

/* Узкие экраны: шапка столбиком, удобные зоны нажатия */
@media (max-width: 576px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 12px 8px;
        gap: 12px;
    }

    .logo {
        justify-content: center;
        margin-top: 0;
    }

    .tools {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 10px 12px;
    }

    .tools .yoge-titlebar__icon-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .hero-topbar__cta-cutout {
        margin-left: 0;
        flex: 1 1 100%;
        display: flex;
        justify-content: center;
    }

    .appt-row {
        flex-direction: column;
        width: 100%;
        max-width: min(320px, 100%);
    }

    .hero-topbar__cta-cutout .appt-row {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .appt {
        width: 100%;
        max-width: min(320px, 100%);
        height: 44px;
        padding: 0 20px;
    }

    .hero-topbar__cta-cutout .appt {
        width: auto;
        flex: 0 0 auto;
        min-width: 0;
        max-width: none;
        padding: 0 10px;
        font-size: 8px;
    }

    .appt-row .appt {
        max-width: none;
    }

    .content {
        margin-top: 24px;
        text-align: center;
        padding: 0 14px;
    }

    .kicker {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-btn {
        width: 100%;
        max-width: min(300px, 100%);
        margin: 0 auto;
    }

    .bottom {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
    }

    .members {
        justify-content: center;
        flex-wrap: wrap;
    }

    .pbmit-spinner {
        align-self: center;
    }

    .video-text {
        text-align: center;
        flex: 1 1 100%;
    }

    .video-box {
        align-self: center;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 10px 10px 0;
    }

    .logo img {
        width: 104px;
        height: 40px;
    }

    .tools .yoge-titlebar__icon-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .appt {
        height: 36px;
        padding: 0 12px;
        font-size: 8px;
    }

    .hero::before {
        width: 0;
        height: 0;
    }

    .content {
        margin: 20px 12px 0;
        padding: 0 10px;
    }

    h1 {
        font-size: clamp(1.65rem, 9vw, 2.15rem);
    }

    .kicker {
        font-size: 7px;
        padding: 4px 9px;
    }

    .sub {
        font-size: 13px;
    }

    .bottom {
        margin-top: 20px;
        padding: 12px;
    }

    .members {
        font-size: 10px;
    }

    .pbmit-spinner {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }

    .pbmit-icon-wrapper {
        font-size: 28px;
    }

    .video-box {
        width: 128px;
        height: 78px;
    }
}
