/* Titlebar: фон titlebar-bg.jpg, навигация + заголовок + крошки */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

body.yoge-shell-body {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    background: #e9f0ec;
    color: #181a17;
    padding: 0;
    margin: 0;
}

/* Карточка баннера: отступы от краёв экрана (фон body), скругление, вырез справа сверху */
.yoge-titlebar-wrap {
    width: 100%;
    max-width: var(--yoge-container-max, 1580px);
    margin: 14px auto 0;
    padding: 0 var(--yoge-container-gutter, 16px);
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    .yoge-titlebar-wrap {
        margin-top: 18px;
    }
}

.yoge-titlebar {
    position: relative;
    width: 100%;
    border-radius: 36px;
    overflow: hidden;
    min-height: 320px;
    background:
        linear-gradient(90deg, rgba(8, 28, 22, 0.72) 0%, rgba(8, 28, 22, 0.45) 42%, rgba(8, 28, 22, 0.25) 100%),
        url("/images/yoge/titlebar-bg.jpg") center center / cover no-repeat;
    color: #fff;
}

/* «Вырез» под фон страницы (#e9f0ec) — как в макете */
.yoge-titlebar:not(.yoge-titlebar--below-hero)::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(373px, 46vw);
    height: 76px;
    background: #e9f0ec;
    border-bottom-left-radius: 22px;
    z-index: 3;
    pointer-events: none;
}

@media (max-width: 991px) {
    .yoge-titlebar:not(.yoge-titlebar--below-hero)::before {
        display: none;
    }
}

.yoge-titlebar--below-hero {
    min-height: 240px;
    margin-top: 0;
    border-radius: 28px;
}

@media (min-width: 992px) {
    .yoge-titlebar {
        min-height: 380px;
    }

    .yoge-titlebar--below-hero {
        min-height: 260px;
    }
}

.yoge-titlebar__inner {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    min-height: inherit;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 24px 36px 28px;
}

@media (min-width: 768px) {
    .yoge-titlebar__inner {
        padding: 20px 32px 44px 36px;
    }
}

.yoge-titlebar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    min-height: 60px;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .yoge-titlebar:not(.yoge-titlebar--below-hero) .yoge-titlebar__top {
        padding-right: min(373px, 46vw);
    }
}

/* Как на главном баннере: меню по центру между логотипом и блоком справа */
@media (min-width: 1201px) {
    .yoge-titlebar__top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 20px;
        flex-wrap: nowrap;
    }

    .yoge-titlebar__logo {
        justify-self: start;
    }

    .yoge-titlebar__nav {
        justify-self: center;
    }

    .yoge-titlebar__tools {
        justify-self: end;
    }
}

.yoge-titlebar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.yoge-titlebar__logo img {
    width: 150px;
    height: 60px;
    max-height: 60px;
    object-fit: contain;
}

/* Совпадает с .menu на главной (home-banner.css) */
.yoge-titlebar__nav {
    display: none;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.9px;
    flex-shrink: 0;
}

@media (min-width: 1201px) {
    .yoge-titlebar__nav {
        display: flex;
    }
}

.yoge-titlebar__nav li {
    position: relative;
    display: flex;
    align-items: center;
}

.yoge-titlebar__nav li + li {
    padding-left: 20px;
}

.yoge-titlebar__nav 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%);
}

.yoge-titlebar__nav a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.yoge-titlebar__nav a:hover {
    color: #fff;
}

.yoge-titlebar__nav a.is-active {
    color: #e5c466;
}

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

.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) {
    .yoge-titlebar__phone {
        display: inline-flex;
    }
}

.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;
}

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

.yoge-titlebar__cart {
    position: relative;
}

.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;
}

.yoge-titlebar__auth-cutout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(340px, 46vw);
    box-shadow: none;
    border: 0;
    outline: none;
}

.yoge-titlebar__user-name {
    font-size: 12px;
    font-weight: 600;
    color: #181a17;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(160px, 28vw);
    line-height: 1.2;
}

@media (min-width: 992px) {
    .yoge-titlebar__user-name {
        max-width: 220px;
    }
}

.yoge-titlebar__logout-form {
    margin: 0;
    flex-shrink: 0;
}

.yoge-titlebar__cta--logout {
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    font-family: inherit;
}

.yoge-titlebar__cta--logout:focus,
.yoge-titlebar__cta--logout:focus-visible {
    outline: none;
    box-shadow: none;
}

.yoge-titlebar__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    box-sizing: border-box;
    padding: 0 16px 0 18px;
    border-radius: 999px;
    background: #448C74;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    white-space: nowrap;
}

.yoge-titlebar__cta--account {
    font-size: 8px;
    letter-spacing: 0.28px;
    padding: 0 12px 0 14px;
}

.yoge-titlebar__guest-cutout {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    align-self: center;
}

.yoge-titlebar__cta--register {
    background: #181a17;
    color: #fff !important;
    border: 2px solid #181a17;
    box-sizing: border-box;
    padding: 0 12px 0 14px;
    font-size: 8px;
    letter-spacing: 0.28px;
}

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

/* Кнопка в вырезе правого верхнего угла */
.yoge-titlebar__cta--cutout {
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    z-index: 6;
    box-shadow: none;
    border: 0;
    outline: none;
}

@media (max-width: 991px) {
    .yoge-titlebar__cta--cutout {
        position: static;
        top: auto;
        right: auto;
        transform: none;
        order: 99;
        flex: 1 1 100%;
        justify-content: center;
        margin-top: 4px;
        box-shadow: none;
    }

    .yoge-titlebar__guest-cutout.yoge-titlebar__cta--cutout {
        justify-content: center;
        gap: 8px;
    }

    .yoge-titlebar__auth-cutout.yoge-titlebar__cta--cutout {
        max-width: none;
        flex-wrap: wrap;
    }

    .yoge-titlebar__user-name {
        max-width: none;
        text-align: center;
        flex: 1 1 100%;
    }

    .yoge-titlebar__logout-form {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
    }

    .yoge-titlebar__top {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }
}

.yoge-titlebar__cta:hover {
    background: #3d836b;
    color: #fff;
}

.yoge-titlebar__cta.yoge-titlebar__cta--cutout:focus,
.yoge-titlebar__cta.yoge-titlebar__cta--cutout:focus-visible {
    outline: none;
    box-shadow: none;
}

.yoge-titlebar__page {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 28px;
    max-width: 720px;
}

.yoge-titlebar--below-hero .yoge-titlebar__page {
    padding-top: 12px;
}

.yoge-titlebar--below-hero .yoge-titlebar__inner {
    padding-top: 28px;
    padding-bottom: 32px;
}

.yoge-titlebar__kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.92;
    margin: 0 0 10px;
    color: #fff;
}

.yoge-titlebar h1.yoge-titlebar__heading,
.yoge-titlebar__heading {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    color: #fff;
}

.yoge-titlebar__crumbs {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.88;
    line-height: 1.6;
}

.yoge-titlebar__crumbs a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.yoge-titlebar__crumbs a:hover {
    text-decoration: underline;
    color: #fff;
}

.yoge-titlebar__sep {
    margin: 0 0.35em;
    opacity: 0.55;
}
