/* =========================================================
   Lavika — фіксована шапка, бургер-меню та слайдер акцій
   ========================================================= */

:root {
    --nav-h: 104px;
    --nav-pink: #cf65a5;
    --nav-dark: #1f1a1c;
}

/* Лого в шапці героя ховаємо — його дає фіксована шапка.
   А контактну плашку (Instagram + телефон) лишаємо по центру. */
.hero-top-bar .hero-logo {
    display: none;
}

.hero-top-bar {
    justify-content: center;
}

/* На головному опускаємо плашку нижче фіксованої шапки */
#hero .hero-top-bar {
    padding-top: calc(var(--nav-h) + 0.6rem);
    z-index: 8;
}

/* ---------- ФІКСОВАНА ШАПКА ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    /* На головному екрані — повністю прозора */
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .35s ease, box-shadow .35s ease,
        border-color .35s ease, backdrop-filter .35s ease;
}

/* При прокрутці — ефект "матового скла" (glassmorphism) */
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.site-header__inner {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.site-header__logo img {
    max-height: 88px;
    width: auto;
    display: block;
    /* Лого біле — на головному добре видно поверх темного героя.
       При прокрутці робимо темним під світле скло. */
    transition: filter .35s ease;
}

.site-header.is-scrolled .site-header__logo img {
    filter: brightness(0);
}

.site-header__logo-text {
    font-family: 'Tenor Sans', 'Playfair Display', serif;
    letter-spacing: .28em;
    font-size: 1.05rem;
    color: #fff;
}

.site-header.is-scrolled .site-header__logo-text {
    color: var(--nav-dark);
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-header__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    transition: background .25s ease, color .25s ease;
}

.site-header.is-scrolled .site-header__icon {
    color: var(--nav-dark);
}

.site-header__icon svg {
    width: 19px;
    height: 19px;
}

.site-header__icon:hover {
    background: rgba(207, 101, 165, 0.12);
    color: var(--nav-pink);
}

/* ---------- БУРГЕР ---------- */
.site-burger {
    width: 44px;
    height: 44px;
    margin-left: 2px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
}

.site-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease, background .35s ease;
}

.site-header.is-scrolled .site-burger span {
    background: var(--nav-dark);
}

.site-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.site-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- OFF-CANVAS МЕНЮ ---------- */
.site-menu__overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 18, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    z-index: 1100;
}

.site-menu__overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.site-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    height: 100dvh;
    width: 360px;
    max-width: 86vw;
    background: #fff;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
}

.site-menu.is-open {
    transform: translateX(0);
}

.site-menu__head {
    height: var(--nav-h);
    padding: 0 18px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    flex-shrink: 0;
}

.site-menu__title {
    font-family: 'Tenor Sans', 'Playfair Display', serif;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-size: .95rem;
    color: var(--nav-dark);
}

.site-menu__close {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--nav-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .25s ease, color .25s ease;
}

.site-menu__close svg {
    width: 22px;
    height: 22px;
}

.site-menu__close:hover {
    background: rgba(207, 101, 165, 0.1);
    color: var(--nav-pink);
}

.site-menu__nav {
    flex-grow: 1;
    padding: 4px 0 8px;
    overflow-y: auto;
}

.site-menu__nav a {
    display: block;
    /* Висота пунктів масштабується під екран, щоб усі влізли без прокрутки */
    padding: clamp(6px, 1.25vh, 15px) 26px;
    font-family: 'Tenor Sans', 'Playfair Display', serif;
    font-size: clamp(1rem, 2vh, 1.32rem);
    color: var(--nav-dark);
    text-decoration: none;
    position: relative;
    transition: color .25s ease, padding-left .25s ease;
}

.site-menu__nav a::before {
    content: '';
    position: absolute;
    left: 26px;
    bottom: 10px;
    width: 0;
    height: 1px;
    background: var(--nav-pink);
    transition: width .3s ease;
}

.site-menu__nav a:hover {
    color: var(--nav-pink);
    padding-left: 32px;
}

.site-menu__nav a:hover::before {
    width: 28px;
}

.site-menu__footer {
    padding: clamp(10px, 1.8vh, 20px) 26px clamp(12px, 2vh, 24px);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: clamp(4px, .9vh, 9px);
    flex-shrink: 0;
}

.site-menu__cta {
    border: none;
    background: var(--nav-pink);
    color: #fff;
    padding: clamp(9px, 1.5vh, 14px) 18px;
    border-radius: 40px;
    cursor: pointer;
    font-size: .95rem;
    letter-spacing: .12em;
    margin-bottom: 6px;
    box-shadow: 0 8px 20px rgba(207, 101, 165, .3);
    transition: background .3s ease, transform .2s ease, box-shadow .3s ease;
}

.site-menu__cta:hover {
    background: #b85491;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(207, 101, 165, .4);
}

.site-menu__line {
    color: #555;
    font-size: .9rem;
    text-decoration: none;
    transition: color .25s ease;
}

a.site-menu__line:hover {
    color: var(--nav-pink);
}

.site-menu__hours {
    color: #999;
}

body.menu-open {
    overflow: hidden;
}

/* ---------- Гармошка «Послуги» у меню ---------- */
/* Кнопка виглядає як звичайний пункт меню, лише зі стрілкою праворуч */
.site-menu__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: clamp(6px, 1.25vh, 15px) 26px;
    font-family: 'Tenor Sans', 'Playfair Display', serif;
    font-size: clamp(1rem, 2vh, 1.32rem);
    color: var(--nav-dark);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: color .25s ease;
}

.site-menu__toggle:hover,
.site-menu__group.is-open > .site-menu__toggle,
.site-menu__group.is-open > .site-menu__row > .site-menu__toggle {
    color: var(--nav-pink);
}

.site-menu__toggle:focus-visible {
    outline: 2px solid var(--nav-pink);
    outline-offset: -2px;
}

.site-menu__chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform .3s ease;
}

.site-menu__group.is-open > .site-menu__toggle .site-menu__chevron,
.site-menu__group.is-open > .site-menu__row > .site-menu__toggle .site-menu__chevron {
    transform: rotate(180deg);
}

/* Висота розкривається переходом grid 0fr → 1fr: анімується будь-яка
   кількість послуг без підрахунку висоти в JS. visibility прибирає
   згорнуті посилання з переходу клавішею Tab */
.site-menu__sub {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .35s cubic-bezier(.4, 0, .2, 1), visibility .35s;
}

.site-menu__group.is-open > .site-menu__sub {
    grid-template-rows: 1fr;
    visibility: visible;
}

.site-menu__sub-inner {
    overflow: hidden;
    min-height: 0;
    margin-left: 26px;
    border-left: 1px solid rgba(207, 101, 165, .25);
}

.site-menu__nav .site-menu__sub a {
    padding: 7px 26px 7px 18px;
    font-size: clamp(.92rem, 1.7vh, 1.08rem);
    color: #6b5558;
}

.site-menu__nav .site-menu__sub a:last-child {
    margin-bottom: 6px;
}

.site-menu__nav .site-menu__sub a::before {
    left: 18px;
    bottom: 4px;
}

.site-menu__nav .site-menu__sub a:hover {
    color: var(--nav-pink);
    padding-left: 24px;
}

.site-menu__nav .site-menu__sub a[aria-current="page"] {
    color: var(--nav-pink);
}

/* ---------- Розділ із підсторінками ---------- */
/* Назва веде на сам розділ, список розкриває окрема стрілка праворуч:
   клік по назві не має вимагати зайвого пункту «Огляд розділу» */
.site-menu__row {
    display: flex;
    align-items: center;
}

.site-menu__nav .site-menu__row > a {
    flex: 1 1 auto;
    min-width: 0;
}

/* Стрілка має читатися як окрема кнопка, інакше людина тисне назву
   і йде на сторінку розділу, так і не побачивши його підсторінок */
.site-menu__toggle--icon {
    flex: 0 0 auto;
    width: auto;
    justify-content: center;
    padding: 4px 20px 4px 10px;
    color: var(--nav-pink);
}

.site-menu__toggle--icon .site-menu__chevron {
    box-sizing: content-box;
    width: 16px;
    height: 16px;
    padding: 8px;
    border: 1px solid rgba(207, 101, 165, .3);
    border-radius: 50%;
    background: rgba(207, 101, 165, .08);
    transition: transform .3s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.site-menu__toggle--icon:hover .site-menu__chevron {
    background: rgba(207, 101, 165, .16);
    border-color: rgba(207, 101, 165, .5);
}

.site-menu__group.is-open > .site-menu__row > .site-menu__toggle .site-menu__chevron {
    background: var(--nav-pink);
    border-color: var(--nav-pink);
    color: #fff;
}

.site-menu__group.is-open > .site-menu__row > a,
.site-menu__nav .site-menu__row > a[aria-current="page"] {
    color: var(--nav-pink);
}

/* Другий рівень: назва розділу виглядає як пункт списку послуг, а не як «Послуги» */
.site-menu__nav .site-menu__group--sub > .site-menu__sub .site-menu__sub-inner {
    margin-left: 18px;
    border-left-color: rgba(207, 101, 165, .18);
}

.site-menu__nav .site-menu__group--sub .site-menu__sub a {
    padding-left: 16px;
    font-size: clamp(.88rem, 1.55vh, 1rem);
    color: #7d6a6d;
}

.site-menu__nav .site-menu__group--sub > .site-menu__row > a {
    padding: 7px 0 7px 18px;
    font-size: clamp(.92rem, 1.7vh, 1.08rem);
    color: #6b5558;
}

.site-menu__nav .site-menu__group--sub > .site-menu__row > a::before {
    left: 18px;
}

.site-menu__nav .site-menu__group--sub > .site-menu__row > a:hover {
    padding-left: 24px;
}

.site-menu__group--sub > .site-menu__row > .site-menu__toggle .site-menu__chevron {
    width: 14px;
    height: 14px;
    padding: 7px;
}

.site-menu__nav .site-menu__group--sub .site-menu__sub a::before {
    left: 16px;
}

.site-menu__nav .site-menu__group--sub .site-menu__sub a:hover {
    padding-left: 22px;
}

@media (prefers-reduced-motion: reduce) {
    .site-menu__sub,
    .site-menu__chevron {
        transition: none;
    }
}

/* =========================================================
   СЛАЙДЕР АКЦІЙ У ГЕРОЇ
   ========================================================= */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    /* над відео-фоном, але під маркі/скрол-індикатором */
}

/* Перетягування мишею на ПК */
.hero-slider:not(.is-single) {
    cursor: grab;
}

.hero-slider.is-dragging {
    cursor: grabbing;
    user-select: none;
}

/* Стрічка слайдів — рухається горизонтально (безшовно, як в Instagram) */
.hero-slides {
    position: absolute;
    inset: 0;
    display: flex;
    /* Дозволяємо вертикальний скрол сторінки, горизонталь обробляємо самі */
    touch-action: pan-y;
}

/* will-change вмикаємо лише під час перетягування, щоб не тримати зайвий
   GPU-шар постійно (це сповільнювало старт відео на фоні героя) */
.hero-slider.is-dragging .hero-slides {
    will-change: transform;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slide img,
.hero-slide a {
    -webkit-user-drag: none;
    user-drag: none;
}

/* Брендовий слайд лишається прозорим — крізь нього видно відео-фон.
   display:flex відновлює центрування .stage (flex-grow:1), яке було,
   коли .stage був прямим нащадком #hero */
.hero-slide--brand {
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* Опускаємо контент нижче (зверху — фіксована шапка + плашка контактів) */
#hero .hero-slide--brand .stage {
    padding-top: clamp(72px, 13vh, 150px);
}

/* Лого вже є у шапці зверху — нижнє прибираємо */
#hero .hero-mobile-static-logo {
    display: none !important;
}

/* Кнопку «ЗАПИСАТИСЯ» опускаємо нижче й даємо їй повітря (органічніше) */
#hero .hero-content .hero-services-typography {
    margin-bottom: 0;
}

#hero .hero-content .hero-btn-action {
    margin-top: clamp(36px, 7vh, 84px);
}

#hero .hero-content .hero-location-info {
    margin-top: clamp(22px, 4vh, 40px);
}

/* Промо-слайд: фото + затемнення + контент */
/* Фото-шар з фільтром затемнення (текст лишається яскравим, бо він окремо).
   Фото вантажиться ліниво (<img loading=lazy>), щоб не конкурувати з відео героя. */
.promo-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #1a1416;
    /* темний фон, поки фото не завантажилось */
    filter: brightness(.5) saturate(.95);
    z-index: 0;
}

.promo-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Легкий градієнт поверх затемненого фото — для контрасту тексту й кнопки */
    background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .4) 100%);
}

.promo-content {
    position: relative;
    z-index: 2;
    height: 100%;
    text-align: center;
    color: #fff;
}

/* Текст — по центру слайда */
.promo-text {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promo-content .promo-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin: 0 0 16px;
    max-width: 18ch;
    /* Темний ореол навколо тексту — читається навіть на світлому/строкатому фото */
    text-shadow:
        0 0 3px rgba(0, 0, 0, .7),
        0 2px 8px rgba(0, 0, 0, .85),
        0 6px 30px rgba(0, 0, 0, .7);
}

.promo-content .promo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(.95rem, 2vw, 1.2rem);
    letter-spacing: .03em;
    margin: 0;
    max-width: 48ch;
    opacity: .95;
    text-shadow:
        0 0 3px rgba(0, 0, 0, .7),
        0 2px 12px rgba(0, 0, 0, .85);
}

.promo-btn {
    position: absolute;
    bottom: clamp(100px, 14vh, 150px);
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--nav-dark);
    border: none;
    padding: 16px 34px;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: .14em;
    font-size: .85rem;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transition: background .3s ease, color .3s ease, transform .25s ease;
}

.promo-btn:hover {
    background: var(--nav-pink);
    color: #fff;
    transform: translateX(-50%) translateY(-3px);
}

/* Стрілки */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(0, 0, 0, .18);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, border-color .25s ease;
    backdrop-filter: blur(2px);
}

.hero-arrow:hover {
    background: rgba(207, 101, 165, .85);
    border-color: transparent;
}

.hero-arrow svg {
    width: 22px;
    height: 22px;
}

.hero-arrow--prev {
    left: 18px;
}

.hero-arrow--next {
    right: 18px;
}

/* Стрілки показуємо лише на ПК (пристрої з мишею). На тач — лише свайп + крапки */
@media (hover: none),
(pointer: coarse) {
    .hero-arrow {
        display: none !important;
    }
}

/* Крапки */
.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 86px;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

.hero-dots button.is-active {
    background: #fff;
    transform: scale(1.25);
}

/* Якщо слайд лише один (немає акцій) — ховаємо керування */
.hero-slider.is-single .hero-arrow,
.hero-slider.is-single .hero-dots {
    display: none;
}

/* Маркі та скрол-індикатор мають бути над слайдером */
#hero .marquee-wrap {
    z-index: 7;
}

#hero .scroll-ind {
    z-index: 7;
}

/* ---------- КНОПКА «ДО / ПІСЛЯ» У ПРАЙСІ ---------- */
.pricing-actions {
    gap: 1rem;
    flex-wrap: wrap;
}

.pricing-btn--ba {
    background: var(--nav-pink);
    color: #fcffff;
    border: 1px solid var(--nav-pink);
    text-decoration: none;
}

.pricing-btn--ba:hover {
    background: #b85491;
    border-color: #b85491;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(207, 101, 165, .28);
}

/* ---------- ВІДСТУПИ ПІД ФІКСОВАНУ ШАПКУ ---------- */
html {
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

/* Липкі таби секцій (прайс + майстри) мають прилипати ПІД шапкою,
   а не ховатись за нею. Значення адаптивне до висоти шапки. */
#pricing .price-tabs,
#team .team-nav {
    top: calc(var(--nav-h) - 1px);
    z-index: 40;
    /* нижче за шапку (1000), щоб при потребі вона була зверху */
}

/* Підсторінки (блог, пост): щоб заголовок не ховався під шапкою */
.subpage-hero {
    padding-top: var(--nav-h);
}

/* ---------- МОБІЛЬНА АДАПТАЦІЯ ---------- */
@media (max-width: 768px) {
    :root {
        --nav-h: 82px;
    }

    .site-header__logo img {
        max-height: 66px;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
    }

    .hero-arrow--prev {
        left: 8px;
    }

    .hero-arrow--next {
        right: 8px;
    }

    .hero-dots {
        bottom: 74px;
    }

    .site-header__icon {
        width: 38px;
        height: 38px;
    }
}
