*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --marquee-to:  50%;            /* JS перезапишет точное значение */
    --black:       #0f0f0f;
    --charcoal:    #1e1e1e;
    --mid:         #6a6a6a;
    --light:       #b0b0b0;
    --border:      #dedede;
    --surface:     #f7f7f7;
    --white:       #ffffff;
    --emerald:     #1a5c41;
    --emerald-mid: #2d7a57;
    --emerald-lt:  #e6f0eb;
    --emerald-nav: #2B5F45;
    --gold:        #B8965A;
    --gold-lt:     rgba(184, 150, 90, 0.10);
    --font:        'Assistant', sans-serif;
    --nav-h:       110px;
    --text-gray:   #6e6e6e;
    --cream:       #ede9e1;
    --cream-dark:  #e6e1d8;
    --gold-line:   rgba(184, 150, 90, 0.28);
}

html { scroll-behavior: smooth; }
body, input, button, a { font-family: var(--font); }
body { background: var(--cream); color: var(--charcoal); font-size: 16px; line-height: 1.7; font-weight: 300; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; color: var(--black); line-height: 1.15; }
em { font-style: italic; font-weight: 400; }

.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.85s ease, transform 0.85s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.has-wm { position: relative; overflow: hidden; }
.wm-img { position: absolute; width: clamp(200px, 36vw, 440px); height: clamp(200px, 36vw, 440px); /* background-image: url('/images/watermark.png'); */ background-size: contain; background-repeat: no-repeat; background-position: center; opacity: 0.12; mix-blend-mode: multiply; pointer-events: none; user-select: none; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0; }
.has-wm > *:not(.wm-img) { position: relative; z-index: 1; }

nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 40px; height: var(--nav-h); gap: 60px; background: rgba(247, 243, 235, 0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); border-bottom: 0.5px solid rgba(210, 198, 175, 0); transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease; }
nav.scrolled { box-shadow: 0 1px 0 rgba(255, 251, 240, 1), 0 4px 40px rgba(184, 150, 90, 0.07), 0 1px 20px rgba(0, 0, 0, 0.04); }
.nav-links--right { display: flex; align-items: center; gap: 55px; list-style: none; justify-content: flex-end; }
.nav-logo { display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 5px 0; }
.nav-logo-img { height: 70px; width: auto; object-fit: contain; display: block; }
.nav-actions { display: flex; align-items: center; gap: 0; }
.nav-links--left { display: flex; align-items: center; gap: 55px; list-style: none; justify-content: flex-start; flex: 1; }

.nav-links--right a, .nav-links--left a {
    position: relative; text-decoration: none;
    font-size: 20px; font-weight: 400;
    color: #2a2a2a; letter-spacing: 0.06em; padding-bottom: 4px; transition: color 0.25s ease; white-space: nowrap; cursor: pointer; text-shadow: 0 1px 8px rgba(247, 243, 235, 0.7);
}
.nav-links--right a::after, .nav-links--left a::after { content: ''; position: absolute; bottom: 0; right: 0; left: 0; height: 0.5px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-links--right a:hover, .nav-links--left a:hover { color: var(--emerald-nav); }
.nav-links--right a:hover::after, .nav-links--left a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--charcoal); transition: all 0.3s; transform-origin: center; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; top: var(--nav-h); z-index: 190; background: rgba(247, 243, 235, 0.97); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-links { list-style: none; text-align: center; width: 100%; }
.mobile-links li { border-bottom: 0.5px solid var(--border); }
.mobile-link { display: block; padding: 22px 24px; font-size: 20px; font-weight: 400; color: var(--black); text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s, background 0.2s; }
.mobile-link:hover { color: var(--emerald-nav); background: rgba(247,243,235,0.6); }
.mobile-wa { margin: 32px auto 0; display: inline-block; }

.hero { position: relative; height: 100vh; min-height: 600px; max-height: 1080px; margin-top: 0; display: block; overflow: hidden; }
.hero-right { position: absolute; inset: 0; z-index: 0; background: var(--cream); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide--active { opacity: 1; }
.slide-img { width: 100%; height: 100%; object-position: right center; object-fit: cover; display: block; }
.slide-img--1 { object-position: 68% 28%; }
.slide-img--2 { object-position: 70% 18%; }
.hero-right::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(247,245,243,0.92) 0%, rgba(247,245,243,0.72) 30%, rgba(247,245,243,0.28) 46%, transparent 60%); pointer-events: none; }
.hero-left { position: absolute; top: 0; left: 0; width: 40%; height: 100%; z-index: 3; background: transparent; border: none; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; padding-top: var(--nav-h); padding-right: 52px; padding-bottom: 130px; padding-left: 44px; overflow: hidden; }
.hero-text-block { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; text-align: right; }
.hero-welcome-text, .hero-welcome-closing, .hero-consult-btn { opacity: 0; transform: translateY(32px); transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease; }
.hero-welcome-text.hero-line-visible, .hero-welcome-closing.hero-line-visible, .hero-consult-btn.hero-line-visible { opacity: 1; transform: translateY(0); }
.hero-welcome-text:hover { color: var(--gold); }
.hero-welcome-closing:hover { color: var(--gold); }
.hero-welcome-text { font-size: clamp(14px, 1.2vw, 18px); font-weight: 400; color: #2a2a2a; line-height: 1.9; text-align: right; width: 100%; display: block; margin-bottom: 10px; text-shadow: 0 1px 10px rgba(247,245,243,0.95), 0 0 24px rgba(247,245,243,0.8); cursor: default; }
.hero-welcome-text:first-child { font-size: clamp(22px, 1.8vw, 26px); font-weight: 600; margin-bottom: 16px; line-height: 1.4; }
.hero-welcome-closing { font-size: clamp(22px, 2vw, 29px); font-weight: 400; color: #0f0f0f; text-align: right; width: 100%; display: block; margin-top: 14px; margin-bottom: 0; letter-spacing: 0.01em; line-height: 1.25; text-shadow: 0 1px 10px rgba(247,245,243,0.95); cursor: default; }
.hero-consult-btn { display: inline-block; margin-top: 24px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--charcoal); text-decoration: none; text-align: right; transition: color 0.3s ease; text-shadow: 0 1px 6px rgba(247,245,243,0.85); }
.hero-consult-btn:hover { color: var(--gold); }
.btn-outline { font-size: 16px; font-weight: 600; color: #1a1a1a; text-decoration: none; display: inline-block; text-align: right; transition: color 0.2s, border-color 0.2s; border-bottom: 1.5px solid #1a1a1a; padding-bottom: 3px; letter-spacing: 0.04em; text-shadow: 0 1px 6px rgba(247,245,243,0.8); }
.btn-outline:hover { color: var(--emerald); border-color: var(--emerald); }

.strip { position: absolute; bottom: 0; left: 0; right: 0; z-index: 4; background: transparent; padding: 14px 0; overflow: hidden; white-space: nowrap; }
.strip-track { display: inline-flex; align-items: center; animation: marquee-lux 210s linear infinite; will-change: transform; }
@keyframes marquee-lux { from { transform: translateX(0); } to { transform: translateX(50%); } }
.strip-item { font-family: 'Assistant', Arial, sans-serif; font-size: 11px; letter-spacing: 0.22em; color: var(--emerald); font-weight: 500; font-style: normal; font-variant: normal; font-synthesis: none; -webkit-font-smoothing: antialiased; padding: 0 28px; flex-shrink: 0; text-shadow: 0 1px 8px rgba(247, 245, 243, 0.9); }
.strip-sep { display: none; }

.philosophy { background: var(--cream); border-top: 1px solid var(--gold-line); display: grid; grid-template-columns: 1.4fr 1fr; min-height: calc(100vh - var(--nav-h)); align-items: start; }
.phil-wm { display: none; }
.philosophy-stats .stat-item { position: relative; z-index: 1; }
.stat-item { display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.stat-item:not(:last-child) { border-bottom: 0.5px solid var(--border); }
.stat-num { font-size: clamp(56px, 7vw, 80px); font-weight: 300; color: var(--mid); line-height: 1; letter-spacing: -0.02em; }
.stat-num sup { font-size: 28px; vertical-align: super; font-weight: 300; }
.stat-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--light); font-weight: 400; margin-top: 8px; }
.philosophy-quote { padding: 72px 56px 72px 56px; display: flex; flex-direction: column; justify-content: flex-start; align-self: stretch; }
.philosophy-text-block { display: flex; flex-direction: column; gap: 14px; text-align: right; }

.phil-title, .procedures-title, .videos-section .section-title, .ba-section .section-title, .testimonials .section-title {
    font-size: clamp(14px, 2vw, 25px); font-weight: 500; transition: color 0.35s ease; cursor: default;
}
.ba-section .section-title:hover { color: var(--gold); }
.phil-title { color: var(--black); line-height: 1.3; margin-bottom: 10px; transition: color 0.3s; cursor: default; }
.phil-title:hover { color: var(--gold); }
.phil-body { font-size: clamp(13px, 1.09vw, 15px); font-weight: 400; color: var(--black); line-height: 1.85; transition: color 0.3s; cursor: default; }
.phil-body:hover { color: var(--gold); }
.phil-closing { font-size: clamp(15px, 1.15vw, 18px); font-weight: 600; color: var(--black); line-height: 1.6; margin-top: 8px; transition: color 0.3s; cursor: default; }
.phil-closing:hover { color: var(--gold); }

.section { padding: 96px 56px; }
.section-tag { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mid); font-weight: 500; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-tag::after { content:''; width: 20px; height: 1px; background: var(--mid); display: block; }
.procedures-header .section-tag { font-size: 20px; letter-spacing: 0.18em; }
.section-title { font-size: clamp(28px, 4vw, 50px); font-weight: 700; color: var(--black); }
.section-title em { font-style: italic; font-weight: 500; }

.procedures { background: var(--cream-dark); border-top: 1px solid var(--gold-line); }
.procedures-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 24px; }
.procedures-intro { max-width: 340px; font-size: 15px; color: var(--mid); line-height: 1.9; font-weight: 400; margin-top: 14px; }
.procedures-hint { font-size: 11px; letter-spacing: 0.1em; color: var(--light); margin-top: 8px; text-align: right; }
.procedures-title { font-family: var(--font); font-size: clamp(14px, 2vw, 25px); color: var(--black); line-height: 1.3; transition: color 0.3s; cursor: default; font-style: normal; }
.procedures-title:hover { color: var(--gold); }
.procedures-title em { font-style: italic; font-weight: 400; }
.procedures-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proc-card--wide { grid-column: 1 / -1; max-width: calc(33.333% - 12px); margin-right: auto; margin-left: 0; }

.proc-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 28px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
    user-select: none;
}
.proc-card:hover {
    box-shadow: 0 8px 36px rgba(184, 150, 90, 0.14);
    transform: translateY(-4px);
    border-color: rgba(184, 150, 90, 0.45);
}
.proc-card::after {
    content: '';
    position: absolute;
    top: -60%; right: -80%;
    width: 55%; height: 200%;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
    transform: skewX(-15deg);
    transition: right 0.6s ease;
    pointer-events: none;
    z-index: 5;
}
.proc-card:hover::after { right: 120%; }
.proc-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 2px;
    background: var(--gold);
    border-radius: 0 14px 0 0;
    transition: width 0.4s ease;
    z-index: 6;
}
.proc-card:hover::before, .proc-card--open::before { width: 100%; }

.proc-card-front { display: flex; flex-direction: column; align-items: flex-end; text-align: right; position: relative; z-index: 1; }
.proc-num { display: none; }
.proc-name { font-size: 20px; font-weight: 700; color: var(--black); line-height: 1.25; transition: color 0.25s; }
.proc-card:hover .proc-name, .proc-card--open .proc-name { color: var(--gold); }
.proc-hint-icon { display: none; }

.proc-desc {
    font-size: 14px; font-weight: 400; color: var(--mid); line-height: 1.8;
    text-align: right; max-height: 0; overflow: hidden; opacity: 0; margin-top: 0;
    transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.35s ease;
    position: relative; z-index: 1;
}
/* Описание: открывается при наведении И при клике */
.proc-card:hover .proc-desc,
.proc-card--row-hover .proc-desc,
.proc-card--open .proc-desc { max-height: 220px; opacity: 1; margin-top: 18px; }

/* Разделитель под названием */
.proc-card:hover .proc-card-front::after,
.proc-card--row-hover .proc-card-front::after,
.proc-card--open .proc-card-front::after { content: ''; display: block; width: 100%; height: 0.5px; background: var(--border); margin-top: 18px; }

.proc-video-wrap {
    width: calc(100% + 56px);
    margin-left: -28px;
    margin-right: -28px;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.4s ease,
    margin-top 0.4s ease;
}
.proc-card:hover .proc-video-wrap,
.proc-card--row-hover .proc-video-wrap,
.proc-card--open .proc-video-wrap {
    max-height: 260px;
    opacity: 1;
    margin-top: 14px;
}
/* ══════════════════════════════════════
   ВИДЕО/ФОТО В КАРТОЧКЕ ПРОЦЕДУРЫ
   Позиция задаётся через JS в supabase-media.js:
     position: 'center top'    ← фокус вверху (лицо, зона лба)
     position: 'center center' ← центр кадра (по умолчанию)
     position: 'center bottom' ← фокус внизу
   ══════════════════════════════════════ */
.proc-video-wrap video,
.proc-video-wrap img {
    width: 100%;
    height: 260px;          /* фиксированная высота — совпадает с max-height */
    object-fit: cover;      /* заполняет БЕЗ чёрных полос */
    object-position: center center; /* JS перезапишет если нужно */
    display: block;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .proc-video-wrap { width: calc(100% + 56px); margin-left: -28px; margin-right: -28px; }
    /* hover показывает видео/фото на мобиле тоже — первый тап открывает сразу описание + картинку */
    .proc-card.proc-card--open .proc-video-wrap { max-height: 220px; opacity: 1; margin-top: 14px; } /* specificity fix: 0-3-0 beats :hover 0-3-0 by coming later */
    .proc-video-wrap video,
    .proc-video-wrap img { height: 220px; }
}

.videos-section { background: var(--cream); border-top: 1px solid var(--gold-line); }
.videos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.video-card { display: flex; flex-direction: column; }
.video-wrap { position: relative; background: var(--charcoal); aspect-ratio: 4/5; overflow: hidden; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-info { padding: 16px 0 4px; }
.video-title { font-size: 17px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.video-sub { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); font-weight: 400; }

/* ══════════════════════════════════════
   TESTIMONIALS CAROUSEL
   ══════════════════════════════════════ */
.testimonials { background: var(--cream-dark); border-top: 1px solid var(--gold-line); padding: 96px 56px; display: flex; flex-direction: column; justify-content: center; }
.test-carousel-outer { margin-top: 52px; }
.test-carousel { display: flex; align-items: center; gap: 0; direction: ltr; }
.test-track-wrap { overflow: hidden; flex: 1; margin: 0 12px; direction: rtl; }
/* ══════════════════════════════════════════════════════
   КАРУСЕЛЬ ОТЗЫВОВ — CSS анимация (как бегущая строка в герое)
   Скорость: animation-duration в @keyframes testimonials-marquee
     25s = быстро | 40s = средне | 60s = медленно
   Остановка при наведении: .test-track-wrap:hover
   ══════════════════════════════════════════════════════ */
@keyframes testimonials-marquee {
    from { transform: translateX(0)                        translateZ(0); }
    to   { transform: translateX(var(--marquee-to, 50%)) translateZ(0); }
}
.test-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    will-change: transform;
    backface-visibility: hidden;
    /* движение управляется через JS requestAnimationFrame — нет прыжков */
}

/* ══════════════════════════════════════════════════════
   КАРТОЧКА ОТЗЫВА — параметры для настройки

   📦 ШИРИНА карточки (сколько видно одновременно):
      calc(33.333% - 12px) = 3 карточки на десктопе
      calc(25% - 12px)     = 4 карточки
      calc(50% - 12px)     = 2 карточки

   📐 PADDING (внутренние отступы карточки):
      36px 28px — стандарт
      48px 36px — больше воздуха
   ══════════════════════════════════════════════════════ */
.testimonial-card {
    flex: 0 0 calc(33.333% - 12px); /* ← ШИРИНА: 3 карточки в ряду */
    min-width: 0;
    background: var(--cream);
    border: 0.5px solid var(--border);
    border-radius: 14px;
    padding: 36px 28px;              /* ← PADDING карточки */
    display: flex;
    flex-direction: column;
    position: relative;              /* нужен для глянцевого эффекта */
    overflow: hidden;                /* нужен для глянцевого эффекта */
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover {
    box-shadow: 0 8px 36px rgba(184, 150, 90, 0.14);
    border-color: rgba(184, 150, 90, 0.45);
}
/* ✨ Глянцевый блик — только при наведении (не мерцает во время авто-прокрутки) */
.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
    transform: skewX(-15deg) translateX(-200%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}
.testimonial-card:hover::after {
    opacity: 1;
    animation: shimmerPass 0.65s ease forwards;
}
@keyframes shimmerPass {
    from { transform: skewX(-15deg) translateX(-200%); }
    to   { transform: skewX(-15deg) translateX( 200%); }
}
.test-stars {
    color: var(--gold);            /* ← цвет в покое — только золото */
    font-size: 22px;               /* ← РАЗМЕР звёзд */
    margin-bottom: 16px;
    letter-spacing: 4px;
    cursor: default;
    text-align: right;
    display: block;
    transition: color 0.4s ease;
}
.testimonial-card:hover .test-stars {
    animation: starsColorCycle 2s ease-in-out infinite; /* ← меняется только при наведении */
}
.test-quote { font-size: 15px; font-weight: 400; font-style: italic; color: var(--text-gray); line-height: 1.75; margin-bottom: 20px; flex: 1; }
.test-name { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); font-weight: 600; border-top: 0.5px solid var(--border); padding-top: 14px; margin-top: auto; }

.test-arrow {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    z-index: 10;
}
.test-arrow:hover { background: var(--gold); color: var(--white); transform: scale(1.1); }
.test-arrow svg { display: block; pointer-events: none; }

@media (max-width: 1024px) { .testimonial-card { flex: 0 0 calc(50% - 9px); } } /* ← 2 карточки на планшете */
@media (max-width: 768px) {
    .testimonials { padding: 60px 20px; }
    .test-track { gap: 10px; }
    .testimonial-card { flex: 0 0 calc(100% - 5px); }
    .test-carousel { gap: 0; }
}

.location { background: var(--cream-dark); border-top: 1px solid var(--gold-line); display: grid; grid-template-columns: 1fr 1fr; min-height: calc(42vh - var(--nav-h)); }
.location-map-side { position: relative; overflow: hidden; min-height: 294px; }
.location-map-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; display: block; }
.location-content { padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 18px; position: relative; overflow: hidden; }
.location-wm { display: none; }
.location-content > *:not(.location-wm) { position: relative; z-index: 1; }
.location-title { font-family: var(--font) !important; font-size: 15px !important; font-weight: 700 !important; color: var(--black) !important; line-height: 1.4; transition: color 0.35s ease; cursor: default; }
.location-title:hover { color: var(--gold) !important; }
.location-address { margin: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.location-content .address-line, .location-content .address-city, .location-content .location-detail, .location-content .hour-day, .location-content .hour-time { font-family: var(--font); font-size: 15px; font-weight: 400; color: var(--black); transition: color 0.35s ease; letter-spacing: normal; text-transform: none; }
.location-content .address-line { font-weight: 500; }
.location-content .address-line:first-child { font-size: 18px; font-weight: 600; }
.location-content .location-detail { font-weight: 600; margin-bottom: 0; }
.location-hours { display: flex; flex-direction: column; margin-bottom: 0; width: 100%; max-width: 290px; }
.hour-row { display: flex; justify-content: space-between; font-size: 15px; font-family: var(--font); color: var(--black); padding: 9px 0; border-bottom: 0.5px solid var(--border); width: 100%; max-width: 290px; }
.hour-day { font-weight: 600; font-family: var(--font); }
.hour-time { font-weight: 400; font-family: var(--font); }
.map-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 0; justify-content: center; }
.map-btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 22px; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--black); background: transparent; border: 1px solid var(--gold); border-radius: 32px; transition: background 0.3s ease, color 0.3s ease, transform 0.2s; }
.map-btn:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }

footer { background: var(--cream-dark); border-top: 1px solid var(--gold-line); padding: 36px 56px 24px; }
.footer-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 120px; padding-bottom: 48px; padding-left: 250px; border-bottom: 0.5px solid var(--gold-line); margin-bottom: 20px; justify-items: end; }
.footer-logo-img { height: 48px; width: auto; object-fit: contain; display: block; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.9; font-weight: 300; color: var(--mid); max-width: 220px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; text-align: right; }
.footer-col h4 { font-family: var(--font); font-size: 15px; font-weight: 700; color: var(--black); letter-spacing: 0.04em; text-transform: none; margin-bottom: 14px; cursor: default; transition: color 0.25s ease; }
.footer-col h4:hover { animation: footerColorShift 0.38s forwards; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-col ul a, .footer-social-link { font-weight: 500; }
.footer-col ul a { text-decoration: none; font-size: 15px; color: var(--charcoal); display: inline-flex; align-items: center; gap: 7px; transition: color 0.25s ease; }
.footer-col ul a:hover { animation: footerColorShift 0.38s forwards; }
@keyframes footerColorShift {
    0%   { color: var(--charcoal); }
    45%  { color: var(--emerald); }
    100% { color: var(--gold); }
}
.footer-bottom { display: none; }

.btn-primary { background: var(--black); color: var(--white); padding: 13px 28px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; border: none; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.25s, transform 0.2s; }
.btn-primary:hover { background: var(--charcoal); transform: translateY(-1px); }
.btn-ghost { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--mid); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.btn-ghost:hover { color: var(--black); }
.btn-white { background: var(--white); color: var(--emerald); padding: 14px 40px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; border: none; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.25s, transform 0.2s; }
.btn-white:hover { background: var(--emerald-lt); transform: translateY(-2px); }
.wa-float { display: none; position: fixed; bottom: 20px; left: 20px; z-index: 300; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: var(--white); align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: transform 0.2s; }
.wa-float:hover { transform: scale(1.08); }

@media (max-width: 1024px) {
    nav { padding: 0 24px; gap: 8px; }
    .nav-links--right a, .nav-links--left a { font-size: 13px; }
    .nav-links--right, .nav-links--left { gap: 16px; }
    .nav-logo-img { height: 64px; }
    .hero-left { width: 46%; }
    .philosophy { grid-template-columns: 1fr; }
    .philosophy-quote { padding: 48px 32px; }
    .philosophy-sidebar { position: static; padding: 0 32px 48px; }
    .section { padding: 80px 36px; }
    .testimonials { padding: 80px 36px; }
    .footer-top { grid-template-columns: 1fr 1fr; padding-left: 0; }
    footer { padding: 56px 36px 24px; }
    .footer-top { justify-items: center; }
    .footer-col { align-items: center; text-align: center; }
    .footer-col h4 { text-align: center; }
    .footer-col ul { align-items: center; }
    .footer-col ul a { justify-content: center; }
    .footer-social { justify-content: center; }
    /* 3-й столбик (צרו קשר) в 2-колоночной сетке — растягивается на всю ширину и центрируется */
    .footer-top .footer-col:last-child { grid-column: 1 / -1; }
    .procedures-grid { grid-template-columns: 1fr 1fr; }
    .proc-card--wide { grid-column: auto; max-width: 100%; margin-right: 0; }
    .videos-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .location-content { padding: 48px 36px; }
    .procedures-title { white-space: normal; }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }
    nav { display: flex; justify-content: space-between; padding: 0 20px; gap: 0; }
    .nav-links--right { display: none; }
    .nav-links--left { display: none; }
    .nav-logo { padding: 8px 0; }
    .nav-logo-img { height: 44px; }
    .nav-actions { flex: none; }
    .burger { display: flex; }
    .wa-float { display: flex; }
    .hero { display: flex; flex-direction: column; height: auto; min-height: auto; max-height: none; }
    .hero-right { position: relative; inset: auto; height: 75vw; z-index: 0; }
    .hero-right::after { display: none; }
    .slide-img--1 { object-position: 65% 20%; }
    .slide-img--2 { object-position: 60% 20%; }
    .hero-left { position: relative; inset: auto; width: 100%; height: auto; background: var(--white); border-top: 0.5px solid var(--border); padding: 28px 20px 36px; justify-content: flex-start; }
    .hero-welcome-text, .hero-welcome-closing { opacity: 1; transform: translateY(0); transition: none; }
    .hero-welcome-text { text-shadow: none; font-size: 14px; }
    .hero-welcome-text:first-child { font-size: 20px; }
    .hero-welcome-closing { text-shadow: none; font-size: 20px; }
    .btn-outline { text-shadow: none; }
    .strip { position: static; background: transparent; border-top: 0.5px solid var(--border); }
    .strip-item { font-family: 'Assistant', Arial, sans-serif; font-size: 10px; padding: 0 20px; color: var(--emerald); font-style: normal; font-variant: normal; font-synthesis: none; text-shadow: none; }
    .strip-sep { display: none; }
    .philosophy { grid-template-columns: 1fr; }
    .philosophy-stats { padding: 48px 20px; border-right: none; border-top: 0.5px solid var(--border); }
    .philosophy-quote { padding: 48px 20px; }
    .stat-num { font-size: 52px; }
    .section { padding: 60px 20px; }
    .testimonials { padding: 60px 20px; }
    .procedures-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .procedures-title { white-space: normal; font-size: clamp(14px, 2vw, 25px); }
    .procedures-grid { grid-template-columns: 1fr; gap: 12px; }
    .proc-card--wide { grid-column: auto; max-width: 100%; margin-right: 0; }
    .videos-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card { border-right: 0.5px solid var(--border); }
    .location { grid-template-columns: 1fr; }
    .location-map-side { min-height: 220px; }
    .location-map-iframe { position: relative; height: 220px; }
    .location-content { padding: 40px 20px; gap: 14px; align-items: center; text-align: center; }
    .location-hours { max-width: 100%; }
    .hour-row { max-width: 100%; width: 100%; }
    footer { padding: 48px 20px 20px; }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 0;
        justify-items: stretch;
    }
    .footer-col {
        align-items: center !important;
        text-align: center !important;
        padding: 24px 0;
        border-bottom: 0.5px solid var(--gold-line);
        width: 100%;
    }
    .footer-col:last-child { border-bottom: none; }
    .footer-col h4 { text-align: center; }
    .footer-col ul {
        align-items: center !important;
        width: 100%;
    }
    .footer-col ul li { width: 100%; text-align: center; }
    .footer-col ul a {
        justify-content: center !important;
        width: 100%;
        direction: ltr;
        unicode-bidi: normal;
    }
    .footer-social { justify-content: center !important; }
    .footer-social-link { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; font-size: 10px; }
    .wm-img { width: 200px; height: 200px; }
    .procedures-header .section-tag { font-size: 14px; }
    .map-btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
    .section-title { font-size: 26px; }
    .hero-right { height: 88vw; }
    .map-actions { flex-direction: column; }
}

.phil-animate { opacity: 0; transform: translateY(24px); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); }
.phil-animate.phil-visible { opacity: 1; transform: translateY(0); }

.phil-stats-row { display: flex; gap: 0; margin-top: 48px; border-top: 0.5px solid var(--gold-line); justify-content: center; }
.phil-stats-row .stat-item { flex: 1; padding: 28px 32px; border-bottom: none; display: flex; flex-direction: column; align-items: center; text-align: center; }
.phil-stats-row .stat-item:not(:last-child) { border-left: 0.5px solid var(--gold-line); padding-left: 32px; }

.philosophy-sidebar { padding: 72px 48px 72px 32px; position: relative; align-self: start; background: transparent; }

.booking-form-card { background: transparent; border: 1px solid var(--gold); border-radius: 16px; padding: 36px 32px 40px; }
.booking-form-title { font-size: 18px; font-weight: 600; color: var(--black); text-align: center; margin-bottom: 28px; letter-spacing: 0.04em; padding-bottom: 18px; border-bottom: 0.5px solid var(--gold-line); }
.booking-form { display: flex; flex-direction: column; gap: 12px; }
.booking-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.booking-input { width: 100%; padding: 12px 14px; font-family: var(--font); font-size: 14px; font-weight: 300; color: var(--black); background: rgba(255,255,255,0.55); border: 0.5px solid rgba(184, 150, 90, 0.4); border-radius: 8px; outline: none; transition: border-color 0.25s ease, background 0.25s ease; text-align: right; resize: none; }
.booking-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.8); }
.booking-input::placeholder { color: var(--light); }
.booking-textarea { height: 72px; grid-column: 1 / -1; }
.booking-checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; font-weight: 300; color: var(--mid); line-height: 1.5; text-align: right; cursor: pointer; flex-direction: row-reverse; }
.booking-checkbox { flex-shrink: 0; width: 14px; height: 14px; margin-top: 2px; accent-color: var(--emerald); cursor: pointer; }
.booking-submit { width: auto; padding: 12px 32px; background: transparent; color: var(--black); font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; border: 1px solid var(--gold); border-radius: 24px; cursor: pointer; transition: background 0.3s ease, color 0.3s ease, transform 0.2s; margin-top: 8px; display: block; margin-left: auto; margin-right: auto; }
.booking-submit:hover { background: var(--gold); color: var(--white); transform: translateY(-1px); }

.videos-section .section-title { font-size: clamp(14px, 2vw, 25px); letter-spacing: 0.06em; opacity: 0; transform: translateY(18px); transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease; cursor: default; }
.videos-section .section-title.visible { opacity: 1; transform: translateY(0); }
.videos-section .section-title:hover { color: var(--gold); }
.testimonials .section-title { font-size: clamp(14px, 2vw, 25px); letter-spacing: 0.06em; transition: color 0.35s ease; cursor: default; }
.testimonials .section-title:hover { color: var(--gold); }

.footer-social { margin-top: 4px; display: flex; justify-content: flex-start; }
.footer-social-link { display: inline-flex; align-items: center; gap: 7px; color: var(--charcoal); text-decoration: none; font-family: var(--font); font-size: 15px; letter-spacing: normal; transition: color 0.25s ease; }
.footer-social-link:hover { animation: footerColorShift 0.38s forwards; }
.footer-social-link svg { display: inline-block; width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; transition: stroke 0.25s ease; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f7f3eb; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a07840; }
* { scrollbar-width: thin; scrollbar-color: var(--gold) #f7f3eb; }

.location-hover { cursor: default; }
.location-hover:hover, .location-content .address-line:hover, .location-content .address-city:hover, .location-content .hour-row:hover .hour-day, .location-content .hour-row:hover .hour-time { color: var(--gold); }

.phil-stats-row .stat-num, .phil-stats-row .stat-num sup, .phil-stats-row .stat-label { transition: color 0.35s ease; cursor: default; }
.phil-stats-row .stat-item:hover .stat-num, .phil-stats-row .stat-item:hover .stat-num sup, .phil-stats-row .stat-item:hover .stat-label { color: var(--gold); }

/* ══════════════════════════════════════
   BEFORE / AFTER SLIDER
   ══════════════════════════════════════ */
.ba-section { background: var(--cream); border-top: 1px solid var(--gold-line); }
.ba-carousel { position: relative; margin-top: 48px; display: flex; align-items: center; gap: 0; direction: ltr; }
.ba-track-wrap { direction: rtl; overflow: hidden; flex: 1; margin: 0 12px; }
.ba-arrow { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--black); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.3s, color 0.3s, transform 0.2s; font-size: 14px; line-height: 1; z-index: 10; direction: ltr; unicode-bidi: isolate; }
.ba-arrow:hover { background: var(--gold); color: var(--white); transform: scale(1.1); }
.ba-arrow:disabled { opacity: 0.25; cursor: default; transform: none; }
.ba-arrow svg { display: block; pointer-events: none; }
.ba-track { display: flex; flex-wrap: nowrap; gap: 18px; transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }

/* ══════════════════════════════════════════════════════
   КАРТОЧКИ ДО/ПОСЛЕ — параметры для настройки
   ══════════════════════════════════════════════════════

   📐 РАЗМЕР КАРТОЧКИ:
      aspect-ratio: 3 / 4.93
      — первое число (3) = ширина
      — второе число (4.93) = высота
      — чтобы сделать ВЫШЕ: увеличь второе число (напр. 5.5)
      — чтобы сделать НИЖЕ: уменьши второе число (напр. 4.0)

   🎨 ФОН карточки (виден на горизонтальных фото):
      background: #1a1a1a  ← тёмный
      можно заменить на: var(--cream) для светлого

   📦 ШИРИНА карточки (сколько видно за раз):
      flex: 0 0 calc(25% - 14px)  ← 4 карточки в ряду
      для 3 карточек: calc(33.333% - 12px)

   🖼 ФОТО внутри карточки:
      object-fit: cover          ← заполняет, обрезает края
      object-position: center top ← фокус вверху (лица)
      image-orientation: from-image ← учитывает поворот телефона

   ══════════════════════════════════════════════════════ */
.ba-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 4.93;        /* ← ВЫСОТА карточки (+12% от 4.4) */
    cursor: col-resize;
    user-select: none;
    touch-action: none;
    box-shadow: 0 2px 18px rgba(0,0,0,0.08);
    flex: 0 0 calc(25% - 14px);    /* ← ШИРИНА: 4 карточки в ряду */
    min-width: 0;
    background: #1a1a1a;           /* ← ФОН карточки */
}
.ba-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;             /* ← cover=обрезает, contain=целиком */
    object-position: center top;   /* ← фокус: top=вверх, center=центр */
    display: block;
    pointer-events: none;
    image-orientation: from-image; /* ← учитывать EXIF-поворот телефона */
}
/* горизонтальные фото — JS меняет на center center */
.ba-card img.ba-landscape {
    object-position: center center;
}

.ba-after  { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 50% 0 0); }
.ba-divider { position: absolute; top: 0; left: 50%; width: 1.5px; height: 100%; background: var(--black); z-index: 3; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 6px rgba(0,0,0,0.25); }
.ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; background: var(--black); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.35); pointer-events: none; gap: 3px; }
.ba-handle svg { flex-shrink: 0; }
.ba-label { position: absolute; top: 12px; z-index: 4; font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); background: var(--black); padding: 4px 10px; border-radius: 20px; pointer-events: none; }
.ba-label--before { right: 12px; }
.ba-label--after  { left:  12px; }
.ba-dots { display: none; }
.ba-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border); transition: background 0.3s, transform 0.3s; cursor: pointer; border: none; padding: 0; }
.ba-dot.active { background: var(--black); transform: scale(1.5); }
.ba-carousel-outer { margin-top: 48px; }
.ba-carousel { margin-top: 0; }

@media (max-width: 1024px) { .ba-card { flex: 0 0 calc(50% - 9px); } }
@media (max-width: 768px) { .ba-track { gap: 10px; } .ba-card { flex: 0 0 calc(50% - 5px); } .ba-handle { width: 28px; height: 28px; } }