:root {
    /* Цветовая палитра Арника — точные цвета из брендбука */
    --primary-color: #C49536;       /* Фирменное золото, Pantone 7563C */
    --primary-dark:  #A67C1E;       /* Тёмное золото */
    --primary-light: #E5CC87;       /* Светлое золото (начало фирменного градиента) */
    --secondary-color: #3a4420;     /* Тёмный оливковый (для фонов/футера) */
    --secondary-mid:   #888E46;     /* Фирменный оливковый, Pantone 5767C */
    --accent-color:  #CFA11F;       /* Акцентное золото (из фирменного градиента) */
    --text-main:  #2a2a2a;
    --text-muted: #6b6b6b;
    --bg-main:  #ffffff;
    --bg-light: #f8f5f0;
    --bg-dark:  #3a4420;

    /* Шрифты */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Отступы и тени */
    --border-radius: 2px;
    --border-radius-md: 6px;
    --box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html {
    /* clip вместо hidden — не создаёт вложенный scroll-context на iOS Safari,
       что лечит баг с залипанием скролла «между блоками» */
    overflow-x: clip;
}
body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
    overflow-x: clip;
    overscroll-behavior-y: auto;
    font-variant-numeric: lining-nums;
}

/* Глобально для всех картинок: на iOS Safari дефолтное поведение <img>
   включает long-press preview — палец «прилипает» к фото и страница
   не скроллится. touch-action: pan-y явно отдаёт вертикальный жест странице.
   -webkit-touch-callout отключает контекстное меню по долгому нажатию.
   Внутри слайдеров мы переопределяем (там pan-y сохраняется, но добавляется
   pinch для масштабирования если нужно). */
img, picture, video {
    touch-action: pan-y;
}
img {
    -webkit-touch-callout: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.text-white { color: white !important; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary-color);
}

.section-label {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(164, 129, 90, 0.3);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 15px;
}

/* Header & Nav */
.header {
    /* Плавающая pill-шапка с эффектом «liquid glass» (frosted glass):
       полупрозрачный фон + сильный blur + saturate, стеклянный край
       (1px белая обводка + внутренний светлый highlight). На мобиле
       работает так же — backdrop-filter поддерживается в iOS Safari 9+
       и современных Android-браузерах через -webkit-. */
    position: fixed;
    top: 14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100vw - 32px);
    background-color: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
            backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, .12),
        inset 0 1px 0 rgba(255, 255, 255, .6);
    border-radius: 999px;
    z-index: 1000;
    padding: 6px 22px;       /* компактная высота шапки */
    transition: var(--transition);
}
/* Fallback: если браузер не умеет backdrop-filter — поднимаем непрозрачность,
   чтобы текст оставался читабельным (никаких «грязных» полупрозрачных пятен). */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .header { background-color: rgba(255, 255, 255, .92); }
}

/* ⚠ MOBILE PERF: backdrop-filter на fixed-шапке постоянно ре-блюрит viewport
   при каждом scroll-кадре — на iOS/Android это душит скролл. На mobile
   blur выключаем и компенсируем плотным фоном. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .header {
        -webkit-backdrop-filter: none;
                backdrop-filter: none;
        background-color: rgba(255, 255, 255, .94);
    }
    body.is-home .header:not(.scrolled) {
        background-color: transparent;
    }
}

/* На главной до скролла шапка прозрачная (поверх hero-видео);
   при скролле и на внутренних страницах — обычная белая pill. */
body.is-home .header:not(.scrolled) {
    background-color: transparent;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    box-shadow: none;
}
body.is-home .header:not(.scrolled) .nav-link,
body.is-home .header:not(.scrolled) .burger-menu {
    color: #fff;
}
body.is-home .header:not(.scrolled) .nav-link:hover { color: var(--primary-color) !important; }
/* Логотип ВСЕГДА золотой (фирменный) — и на тёмном видео, и на белой шапке.
   Раньше для is-home переключали на logo_white.png, но в этом PNG был
   «забагованный» белый градиент, который заметен на тёмном фоне. */
body.is-home .header:not(.scrolled) .logo-subline { color: rgba(255,255,255,.85); }

.header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 28px;
    max-width: none;         /* шапка теперь по содержимому, без ограничения */
    margin: 0;
    padding: 0;
}

/* ── Logo ── */
.logo {
    flex-shrink: 0;
}

/* Лого в шапке: чистый медальон (PNG-mark — квадратный), вровень с навигацией */
.logo a {
    display: block;
    height: 38px;
    width: 38px;
    text-decoration: none;
    transition: var(--transition);
}
.logo-img {
    display: block;
    height: 38px;
    width: 38px;
    transition: opacity 0.35s ease;
}

/* На тёмном хедере — белый логотип */
/* Шапка теперь всегда белая (плавающая pill) — показываем только золотой логотип */
.logo-img--white { display: none;  }
.logo-img--gold  { display: block; }

/* Мобильное меню — медальон побольше */
.mobile-logo a, .mobile-logo .logo-img {
    width: 64px;
    height: 64px;
}

/* .header.scrolled-цвета — больше не нужны, базовые ссылки уже secondary */

/* ── Navigation ── */
.nav-list {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--primary-color) !important; }

/* ── Header Actions ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.phone-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary-color);
    white-space: nowrap;           /* FIX: не переносить номер */
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-link i {
    color: var(--primary-color);
    font-size: 13px;
}

.phone-link:hover { color: var(--primary-color); }

/* Компактная pill-кнопка «Забронировать» в шапке */
.btn-header-cta {
    padding: 8px 22px;
    font-size: 13px;
    line-height: 1;
    border-radius: 999px;
    letter-spacing: .03em;
    text-transform: none;
    white-space: nowrap;
    min-width: 0;
}

/* Кнопка прямого звонка справа от «Забронировать».
   Базовая «коробка» наследуется от .btn .btn-primary .btn-header-cta
   (inline-block, padding, font-weight, hover). Чтобы высота совпала
   точь-в-точь, СОХРАНЯЕМ inline-block (не переключаем на flex —
   inline-flex даёт +1-2px из-за разной обработки content-area
   FA-иконки), а иконку выравниваем через vertical-align. */
.btn-header-phone {
    display: inline-block;
}
.btn-header-phone i {
    font-size: 13px;
    color: inherit;
    margin-right: 8px;
    vertical-align: -1px; /* чуть опустить иконку под baseline текста */
}
.btn-header-phone .btn-header-phone__num {
    vertical-align: baseline;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh; /* fallback для iOS Safari: учитывает нижнюю панель браузера */
    background-color: white;
    z-index: 2000;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-logo {
    margin-bottom: 50px;
}

.mobile-logo a {
    color: var(--secondary-color);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary-color);
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav-link.btn {
    text-align: center;
    margin-top: 20px;
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh; /* fallback для iOS Safari */
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 40%, rgba(196, 149, 54, .14), transparent 42%),
        linear-gradient(180deg, #1e3028 0%, #121f18 100%);
    isolation: isolate;
}

/* Video hero background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(38,60,47,0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-label {
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-title {
    font-size: 64px;
    color: white;
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 45px;
    font-weight: 300;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-body);
    font-size: 40px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-number i {
    font-size: 20px;
    margin-left: 5px;
    color: #eab308; /* Star color */
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-images {
    position: relative;
    padding-right: 30px;
    padding-bottom: 30px;
}

.about-images .img-main {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
}

.img-accent-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background-color: var(--primary-color);
    z-index: 1;
    border-radius: var(--border-radius);
    opacity: 0.1;
}

/* Directions (Medical/SPA) */
.directions-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.directions-layout.reverse {
    flex-direction: row-reverse;
}

.directions-text {
    flex: 1;
}

.directions-text .section-desc {
    margin-left: 0;
}

.directions-image {
    flex: 1;
    position: relative;
}

.directions-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--secondary-color);
    color: white;
    padding: 30px;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(38, 60, 47, 0.4);
    z-index: 3;
}

.exp-number {
    font-family: var(--font-body);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.exp-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    opacity: 0.8;
}

.check-list {
    margin-bottom: 30px;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-muted);
}

.check-list li strong {
    color: var(--text-main);
    font-weight: 600;
}

.check-list li i {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 4px;
}

/* Restaurant Parallax — fixed-attachment ТОЛЬКО на desktop.
   На mobile background-attachment: fixed убивает скролл (iOS/Android
   перекрашивают viewport на каждом frame — лагает).
   Реально картинка ставится через inline-style в index.php из $IMGS['restaurant'];
   тут — наш же файл из /uploads/cdn/ как страховочный fallback. */
.restaurant {
    position: relative;
    background-image: url('/uploads/cdn/image02_d1903b56ae.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
}
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .restaurant { background-attachment: scroll; }
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 60, 47, 0.85);
    z-index: 0;
}

.restaurant > .container {
    position: relative;
    z-index: 1;
}

.restaurant-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 40px;
}

.feature-item i {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Rooms Section */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.room-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.room-img {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.room-card:hover .room-img img {
    transform: scale(1.05);
}

.room-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.room-content {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.room-title {
    font-size: 26px;
    margin-bottom: 20px;
}

.room-features {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    margin-bottom: 5px;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.room-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    display: block;
}

.gallery-item.item-wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 18px;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* CTA */
.cta {
    background-color: var(--bg-light);
    border-top: 1px solid #eee;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 100px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo a {
    display: inline-block;
    color: white;
    /* В футере не кропим — логотип целиком (медальон + надпись «АРНИКА») */
    width: auto;
    height: auto;
    overflow: visible;
}

.footer-logo span {
    color: var(--accent-color);
}

/* Лого в footer: тот же монохром-золотой что на главной hero,
   PNG используется только как mask формы — никакого белого градиента.
   Высота задана явно (а не через aspect-ratio) для совместимости со старыми
   мобильными браузерами Safari iOS < 14, где aspect-ratio не работает. */
.footer-logo-img {
    display: block;
    width: 200px;
    height: 103px;             /* 200 × 620 / 1200 — соотношение PNG */
    max-width: 100%;
    background-color: var(--primary-color, #C49536);
    -webkit-mask-image: url('/img/logo_gold.png');
            mask-image: url('/img/logo_gold.png');
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
    -webkit-mask-position: center;
            mask-position: center;
}
@media (max-width: 600px) {
    .footer-logo-img { width: 160px; height: 83px; } /* 160 × 620 / 1200 */
}

.footer-desc {
    margin: 25px 0;
    opacity: 0.7;
    max-width: 320px;
    font-size: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 20px;
    margin-bottom: 30px;
}

.links-col ul li {
    margin-bottom: 15px;
}

.links-col ul li a {
    opacity: 0.7;
    transition: var(--transition);
    font-size: 15px;
}

.links-col ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 8px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    opacity: 0.8;
    font-size: 15px;
}

.contact-info i {
    color: var(--accent-color);
    margin-top: 5px;
    font-size: 18px;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    opacity: 0.6;
}

/* Animations / Scroll Reveal */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav { display: none; }
    .header-actions .btn-booking { display: none; }
    .burger-menu { display: block; }

    /* На узких экранах оставляем у телефонной кнопки только иконку,
       чтобы шапка-pill не разрасталась и хватало места под бургер. */
    .btn-header-phone { padding: 7px 12px; }
    .btn-header-phone .btn-header-phone__num { display: none; }
    
    .hero-title { font-size: 48px; }
    .about-grid, .directions-layout, .directions-layout.reverse {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 50px;
    }
    .about-images { padding: 0; margin-top: 30px; }
    .experience-badge { bottom: -20px; left: 20px; width: 100px; height: 100px; }
    .exp-number { font-size: 24px; }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .hero-buttons { flex-direction: column; }
    .section { padding: 70px 0; }
    
    .stats-container { flex-direction: column; gap: 20px; text-align: center; }
    .features-row { grid-template-columns: 1fr; gap: 30px; }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .gallery-item.item-wide { grid-column: span 1; }
    .gallery-item { height: 250px; }
    
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Дополнительные стили (добавлены при расширении прототипа)
   ============================================================ */

/* Page Hero (внутренние страницы) */
.page-hero {
    padding: 96px 0 56px; /* верхний отступ с запасом под фиксированный хедер */
    background: #3a4420 linear-gradient(135deg, #3a4420 0%, #1e2610 100%);
    color: #fff;
}
/* Отменяем светлый фон — все hero-секции тёмные */
.page-hero.bg-light {
    background: #3a4420 linear-gradient(135deg, #3a4420 0%, #1e2610 100%) !important;
}
.page-title { font-family: var(--font-heading); font-size: 2.5rem; margin: 8px 0; color: #fff; }
.page-subtitle { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-top: 8px; max-width: 620px; }
.page-hero .section-label { color: var(--primary-color); }
.page-hero h1,
.page-hero h2 { color: #fff; }

/* Breadcrumb back link */
.breadcrumb-back { color: var(--text-muted); text-decoration: none; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.breadcrumb-back:hover { color: var(--primary-color); }

/* News grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.news-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #ede9e2; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.news-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-4px); }
.news-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.news-card-placeholder { height: 200px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #E5CC87; }
.news-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.news-date { font-size: 12px; color: var(--text-muted); }
.news-card-body h3 { font-size: 1rem; line-height: 1.4; }
.news-card-body p { font-size: 13px; color: var(--text-muted); flex: 1; }
.read-more { font-size: 13px; color: var(--primary-color); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }

/* Article */
.article-container { max-width: 780px; margin: 0 auto; }
.article-hero-img { width: 100%; max-width: 100%; height: auto; border-radius: 10px; max-height: 420px; object-fit: cover; margin-bottom: 32px; display: block; }
.article-body { line-height: 1.85; font-size: 1rem; color: #333; overflow-wrap: break-word; word-wrap: break-word; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.article-body h2, .article-body h3 { font-family: var(--font-heading); margin: 2rem 0 1rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }

@media (max-width: 640px) {
    .article-hero-img { max-height: 280px; margin-bottom: 20px; }
    .article-body { font-size: 15px; line-height: 1.7; }
    .article-body h2 { font-size: 1.3rem; margin: 1.4rem 0 .7rem; }
    .article-body h3 { font-size: 1.15rem; margin: 1.2rem 0 .6rem; }
    .article-body p { margin-bottom: .8rem; }
}
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #ede9e2; }
.article-nav-link { text-decoration: none; color: var(--primary-color); font-size: 14px; display: flex; align-items: center; gap: 6px; max-width: 45%; }

/* Promotions */
.promos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.promos-grid-full { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.promo-card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #ede9e2; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s; }
.promo-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.promo-card img { width: 100%; height: 200px; object-fit: cover; }
.promo-icon-placeholder { height: 120px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--primary-color); }
.promo-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.promo-body h3 { font-size: 1.05rem; }
.promo-body p { font-size: 13px; color: var(--text-muted); flex: 1; }
.promo-until { font-size: 12px; color: #c0392b; display: inline-flex; align-items: center; gap: 4px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #ede9e2; border-radius: 6px; text-decoration: none; color: var(--text-main); font-size: 14px; transition: all .2s; }
.page-btn:hover, .page-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 24px; }
.features-grid-4 { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }
.feature-card { background: #fff; border-radius: 10px; padding: 28px 24px; border: 1px solid #ede9e2; text-align: center; }
.feature-icon { width: 56px; height: 56px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.4rem; color: var(--primary-color); }
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Specs grid (medical) */
.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
.specs-grid-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.spec-item { background: #fff; border: 1px solid #ede9e2; border-radius: 8px; padding: 16px 20px; display: flex; align-items: flex-start; gap: 14px; font-size: 14px; transition: box-shadow .2s; }
.spec-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.spec-item i { color: var(--primary-color); width: 22px; text-align: center; font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.spec-item span strong { display: block; font-size: 0.9rem; color: var(--secondary-color); margin-bottom: 2px; }
.spec-item span small { color: var(--text-muted); font-size: 12px; }

/* Gallery filter */
.gallery-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn { padding: 7px 16px; border-radius: 20px; border: 1px solid #ede9e2; background: #fff; color: var(--text-main); font-size: 13px; text-decoration: none; cursor: pointer; transition: all .15s; }
.filter-btn:hover, .filter-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; }
.lightbox img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.lightbox p { color: rgba(255,255,255,.7); font-size: 14px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: fixed; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 1.3rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }

/* FAQ */
/* FAQ — минималистичный стиль в духе .ps-block из program-single:
   плоско, без рамок-карточек, заголовок Playfair тёмным, текст #444
   спокойный, без буллетов и обводок. Между вопросами — тонкая линия. */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ede9e2;
    border-radius: 0;
    overflow: hidden;
}
.faq-item:last-child { border-bottom: none; }
/* color: на iOS Safari по умолчанию текст внутри <button> наследует синий
   (-webkit-text-fill-color от системного link-color), поэтому явно фиксируем
   фирменный тёмный — иначе вопросы выглядят как ссылки */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    text-align: left;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--dark-color, #1e3028);
    -webkit-text-fill-color: currentColor;
}
.faq-icon { transition: transform .3s; flex-shrink: 0; color: var(--text-muted, #888); font-size: .9rem; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .3s; }
.faq-item.open .faq-answer { max-height: 600px; padding-bottom: 1rem; }
.faq-answer p,
.faq-answer ul,
.faq-answer ol,
.faq-answer h3,
.faq-answer h4 {
    padding: 0;
    color: #444;
    line-height: 1.75;
    font-size: 1rem;
    margin: 0 0 .75rem;
}
.faq-answer > *:last-child { margin-bottom: 0; }
.faq-answer > *:last-child { margin-bottom: 18px; }
/* Без буллетов и точек — Леон 2026-05-18: «формат как .ps-block, без точек,
   без абзацев — просто текст». Списки рендерим как плоские строки. */
.faq-answer ul, .faq-answer ol { padding-left: 0; list-style: none; }
.faq-answer ul li, .faq-answer ol li { padding: 0; margin: 0 0 .5rem; }
.faq-answer a { color: var(--primary-color); text-decoration: underline; }

/* ── Базовые стили для rich-text контента (faq-answer, rs-desc, pcard-desc,
   ps-desc, news-content, promo-content и т.п.) — маркеры у списков и
   аккуратные таблицы. */
.rich-text ul,
.rs-desc ul, .pcard-desc ul, .ps-desc ul,
.news-content ul, .promo-content ul, .article-body ul,
.method-detail-grid ul.in-rich,
.program-desc ul {
    list-style: disc outside;
    padding-left: 24px;
    margin: 0 0 12px;
}
.rich-text ol,
.rs-desc ol, .pcard-desc ol, .ps-desc ol,
.news-content ol, .promo-content ol, .article-body ol {
    list-style: decimal outside;
    padding-left: 28px;
    margin: 0 0 12px;
}
.rich-text li,
.rs-desc li, .pcard-desc li, .ps-desc li,
.news-content li, .promo-content li, .article-body li { margin: 4px 0; line-height: 1.6; }

/* Таблицы внутри rich-text — стиль аккуратный, как в брендбуке */
.rich-text table,
.faq-answer table,
.rs-desc table, .pcard-desc table, .ps-desc table,
.news-content table, .promo-content table, .article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 18px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e6e3da;
    border-radius: 8px;
    overflow: hidden;
}
.rich-text thead, .faq-answer thead,
.rs-desc thead, .pcard-desc thead, .ps-desc thead,
.news-content thead, .promo-content thead, .article-body thead { background: #f3f0e6; }
.rich-text th, .rich-text td,
.faq-answer th, .faq-answer td,
.rs-desc th, .rs-desc td,
.pcard-desc th, .pcard-desc td,
.ps-desc th, .ps-desc td,
.news-content th, .news-content td,
.promo-content th, .promo-content td,
.article-body th, .article-body td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #ece8de;
    line-height: 1.5;
    vertical-align: top;
}
.rich-text th, .faq-answer th,
.rs-desc th, .pcard-desc th, .ps-desc th,
.news-content th, .promo-content th, .article-body th {
    font-weight: 600;
    color: #3a4420;
}
.rich-text tr:last-child td,
.faq-answer tr:last-child td,
.rs-desc tr:last-child td, .pcard-desc tr:last-child td, .ps-desc tr:last-child td,
.news-content tr:last-child td, .promo-content tr:last-child td,
.article-body tr:last-child td { border-bottom: none; }

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-large { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.contact-info-large li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-large i { color: var(--primary-color); font-size: 1.2rem; margin-top: 2px; width: 20px; }
.contact-form-wrap h3 { margin-bottom: 20px; font-size: 1.2rem; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #ede9e2; border-radius: 6px; font-family: inherit; font-size: 16px; transition: border-color .2s; } /* 16px — иначе iOS Safari зумит при фокусе */
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid #ede9e2; border-radius: 6px; text-decoration: none; color: var(--text-main); font-size: 13px; transition: all .2s; margin-right: 8px; }
.social-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* Contacts — dept cards layout */
.contact-address-banner { background: var(--secondary-color); color: #fff; padding: 40px 0; }
.contact-address-banner .container { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.cab-item { display: flex; align-items: flex-start; gap: 16px; }
.cab-icon { width: 48px; height: 48px; background: rgba(184,150,106,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cab-icon i { color: var(--primary-color); font-size: 1.1rem; }
.cab-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.cab-value { font-size: 15px; color: #fff; line-height: 1.5; }
.cab-value a { color: #fff; }
.cab-value a:hover { color: var(--primary-color); }
.cab-divider { width: 1px; height: 60px; background: rgba(255,255,255,.12); flex-shrink: 0; }

.dept-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.dept-card { background: #fff; border: 1px solid #ede9e2; border-radius: 10px; padding: 32px; position: relative; overflow: hidden; transition: box-shadow .3s, transform .3s; }
.dept-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--primary-color); }
.dept-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.1); transform: translateY(-3px); }
.dept-card-title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--secondary-color); margin-bottom: 20px; padding-right: 10px; }
.dept-card-rows { display: flex; flex-direction: column; gap: 14px; }
.dept-row { display: flex; align-items: flex-start; gap: 12px; }
.dept-row i { color: var(--primary-color); font-size: 14px; margin-top: 3px; width: 16px; flex-shrink: 0; }
.dept-row-content { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.dept-row-content a { color: var(--text-main); font-weight: 500; transition: color .2s; }
.dept-row-content a:hover { color: var(--primary-color); }
.dept-row-content .phone-main { font-size: 1.05rem; font-weight: 600; color: var(--secondary-color); }
.dept-row-content .phone-free { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.contact-socials-section { background: var(--bg-light); padding: 60px 0; }
.contact-socials-section .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact-socials-text h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--secondary-color); margin-bottom: 6px; }
.contact-socials-text p { color: var(--text-muted); font-size: 14px; }
.contact-socials-links { display: flex; gap: 12px; flex-wrap: wrap; }
.csocial-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all .25s; text-decoration: none; }
.csocial-btn.tg { background: #229ED9; color: #fff; }
.csocial-btn.tg:hover { background: #1a8bbf; }
.csocial-btn.vk { background: #0077FF; color: #fff; }
.csocial-btn.vk:hover { background: #005ecc; }
.csocial-btn.yt { background: #FF0000; color: #fff; }
.csocial-btn.yt:hover { background: #cc0000; }
.csocial-btn.zen { background: #000; color: #fff; }
.csocial-btn.zen:hover { background: #333; }

@media (max-width: 768px) {
    .dept-cards-grid { grid-template-columns: 1fr; }
    .contact-address-banner .container { gap: 28px; }
    .cab-divider { display: none; }
    .contact-socials-section .container { flex-direction: column; align-items: flex-start; }
}

/* Rooms extended */
.rooms-grid-full { grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); }
.room-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: var(--text-muted); }
.room-price { color: var(--primary-color); font-weight: 600; font-size: 15px; }
.room-img-placeholder { height: 220px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #E5CC87; }

/* Prices */
.programs-grid-full { grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; display: grid; }
.program-card-full { display: flex; flex-direction: column; gap: 8px; }
.program-full-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.price-per { font-size: 13px; color: var(--text-muted); }
.program-duration { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.prices-note { background: var(--bg-light); border-radius: 8px; padding: 16px 20px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.prices-note i { color: var(--primary-color); margin-top: 2px; }
/* Не разбивать телефон по символам на узких экранах */
.prices-note a { white-space: nowrap; }
@media (max-width: 600px) {
    .prices-note { flex-direction: column; align-items: flex-start; }
    .prices-note strong { margin-top: 4px; }
}

/* Prices — карточки с фото */
.programs-grid-photo { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 1.5rem; }
.pcard { background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 2px 14px rgba(0,0,0,.07); display:flex; flex-direction:column; transition:transform .25s,box-shadow .25s; }
.pcard:hover { transform:translateY(-4px); box-shadow:0 8px 28px rgba(0,0,0,.12); }
.pcard-img { height:200px; overflow:hidden; }
.pcard-img img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.pcard:hover .pcard-img img { transform:scale(1.05); }
.pcard-body { padding:1.25rem 1.4rem 1.4rem; flex:1; display:flex; flex-direction:column; }
.pcard-title { font-size:22px; font-weight:700; color:var(--secondary-color); margin:0 0 .5rem; line-height:1.2; }
.pcard-desc { font-size:.85rem; color:var(--text-muted); line-height:1.6; flex:1; margin-bottom:1rem; }
.pcard-footer { display:flex; align-items:flex-end; justify-content:space-between; gap:.75rem; flex-wrap:wrap; margin-top:auto; }
.pcard-duration { font-size:.78rem; color:var(--text-muted); display:flex; align-items:center; gap:5px; margin-bottom:.3rem; }
.pcard-price { font-size:1rem; color:var(--secondary-color); }
.pcard-price strong { font-size:1.25rem; color:var(--secondary-color); }
.pcard-price span { font-size:.78rem; color:var(--text-muted); }

/* Docs */
.docs-section { background: #fff; border: 1px solid #ede9e2; border-radius: 10px; padding: 24px; margin-bottom: 20px; }
.docs-section h2 { font-size: 1.1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.docs-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.docs-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.docs-list i { color: #888E46; margin-top: 2px; }
.alert-info { background: #e8f4f8; border: 1px solid #bee5eb; color: #0c5460; border-radius: 8px; padding: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert-info i { margin-top: 2px; }

/* Camera block */
.camera-wrapper { border-radius: 12px; overflow: hidden; max-width: 800px; margin: 0 auto; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.camera-stream { width: 100%; display: block; }

/* News card — camera variant */
.news-card-camera-thumb { position: relative; height: 200px; background: linear-gradient(135deg, #1e2610 0%, #3a4420 60%, #1e2610 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.news-card-camera-icon { font-size: 2.5rem; color: rgba(255,255,255,.2); }
.live-badge { position: absolute; top: 14px; left: 14px; background: #e63946; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 4px 10px; border-radius: 4px; display: flex; align-items: center; gap: 6px; }
.live-badge i { font-size: 8px; animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* Map section */
.map-section { margin-top: 60px; }

/* Alerts (public) */
.alert { border-radius: 8px; padding: 12px 18px; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Room detail responsive */
@media (max-width: 768px) {
    .contacts-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 1.8rem; }
    .room-detail-grid { grid-template-columns: 1fr !important; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 20px; }
}

/* ════════════════════════════════════════════════════
   НОВЫЕ БЛОКИ ГЛАВНОЙ СТРАНИЦЫ
════════════════════════════════════════════════════ */

/* Hero — доп. элементы */
.hero-badge-row {
    position: absolute;
    /* Опущена ниже кнопок: на ~15" экранах при bottom:90px наезжала на CTA-кнопки */
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 40px;
    padding: 10px 28px;
    z-index: 5;
    white-space: nowrap;
}
.hero-badge-item {
    font-size: 13px;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
}
.hero-badge-item i { color: var(--primary-color); font-size: 14px; }
.hero-badge-sep {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.35);
}
.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 5;
}
.hero-scroll-hint span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
}
.scroll-down {
    color: white;
    font-size: 20px;
    animation: bounce 2s infinite;
}

/* Кнопка с белой обводкой (на тёмном фоне) */
.btn-outline-white {
    border: 1px solid rgba(255,255,255,0.7);
    color: white;
    background: transparent;
}
.btn-outline-white:hover {
    background: white;
    color: var(--secondary-color);
}

/* Золотая кнопка */
.btn-gold {
    background: var(--primary-color);
    color: white;
    border: 1px solid transparent;
}
.btn-gold:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184,150,106,0.35);
}

/* Perks bar */
.perks-bar {
    background: var(--secondary-color);
    padding: 0;
}
.perks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
/* Версия с 6 пунктами УТП — 3×2 на десктопе, обнуляем правую границу
   у каждого 3-го элемента и нижнюю у нижнего ряда. */
.perks-grid--6 {
    grid-template-columns: repeat(3, 1fr);
}
.perk-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 32px;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: background .3s;
}
.perk-item:last-child { border-right: none; }
.perk-item:hover { background: rgba(255,255,255,0.04); }
.perks-grid--6 .perk-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.perks-grid--6 .perk-item:nth-child(3n) { border-right: none; }
.perks-grid--6 .perk-item:nth-last-child(-n+3) { border-bottom: none; }
.perk-item i {
    font-size: 26px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}
.perk-item strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: white;
    font-family: var(--font-body);
    margin-bottom: 4px;
}
.perk-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.45;
}

/* About — новая версия */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-img-wrap {
    position: relative;
}
.about-img-wrap img {
    width: 100%;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.about-img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary-color);
    color: white;
    padding: 20px 24px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 30px rgba(30,48,40,0.4);
}
.about-img-badge i {
    font-size: 28px;
    color: #eab308;
}
.about-img-badge strong {
    display: block;
    font-family: var(--font-body);
    font-size: 28px;
    color: white;
    line-height: 1;
}
.about-img-badge span {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.about-divider {
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin: 20px 0 24px;
}
.about-list {
    list-style: none;
    margin-bottom: 36px;
}
.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 15px;
    color: var(--text-muted);
}
.about-list li:last-child { border-bottom: none; }
.about-list li i {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Ресторан — новый layout */
.restaurant {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 0;
}
.restaurant-layout {
    max-width: 600px;
}
.restaurant-features {
    display: flex;
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 10px;
}
.rf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    line-height: 1.4;
}
.rf-item i {
    font-size: 22px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Номера v2 */
.rooms-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}
.room-card-v2 {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.room-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.13);
}
.featured-room {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(30,48,40,0.18);
}
.featured-room:hover { transform: scale(1.02) translateY(-8px); }
.room-img-v2 {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.room-img-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.room-card-v2:hover .room-img-v2 img { transform: scale(1.06); }
.room-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}
.room-badge-v2 {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--secondary-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 2px;
}
.badge-gold { background: var(--primary-color); }
.room-body-v2 {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.room-body-v2 h3 {
    font-size: 22px;
    color: var(--secondary-color);
}
.room-meta-v2 {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.room-meta-v2 i { color: var(--primary-color); margin-right: 4px; }
.room-desc-v2 {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}
.room-footer-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f0ebe3;
    margin-top: 6px;
}
.room-price-v2 {
    font-size: 14px;
    color: var(--text-muted);
}
.room-price-v2 strong {
    font-size: 20px;
    color: var(--secondary-color);
    font-family: var(--font-body);
}

/* Программы — v2 */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.program-card {
    background: white;
    border: 1px solid #ede9e2;
    border-radius: var(--border-radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity .3s;
}
.program-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.09);
    transform: translateY(-4px);
}
.program-card:hover::before { opacity: 1; }
.program-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.program-title {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--secondary-color);
    line-height: 1.3;
}
.program-duration {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.program-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.price-from  { font-size: 13px; color: var(--text-muted); }
.price-value {
    font-family: var(--font-body);
    font-size: 26px;
    color: var(--secondary-color);
    font-weight: 700;
}
.price-unit  { font-size: 12px; color: var(--text-muted); }

/* Галерея v2 */
.gallery-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
    margin-top: 50px;
}
.gi {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    display: block;
}
.gi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gi:hover img { transform: scale(1.08); }
.gi.gi-tall  { grid-row: span 2; }
.gi.gi-wide  { grid-column: span 2; }

/* Карточка с фоном-фото (из БД) — без отдельного <img>, фон через background-image */
a.gi {
    background-size: cover;
    background-position: center;
    transition: transform .35s ease;
    text-decoration: none;
    color: #fff;
}
a.gi:not(.gi-placeholder)::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(30,48,40,.7) 0%, transparent 55%);
    transition: opacity .25s;
}
a.gi:hover { transform: translateY(-2px); }
.gi-cat-label {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 14px 18px;
    z-index: 1;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,48,40,0.75) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity .35s;
}
.gi:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
    color: white;
    font-size: 15px;
    font-weight: 500;
    transform: translateY(10px);
    transition: transform .35s;
}
.gi:hover .gallery-overlay span { transform: translateY(0); }

/* Галерея — плейсхолдер плитки (фото будут загружены через админку) */
.gi-placeholder {
    background: linear-gradient(135deg, #f5efe3 0%, #ebe4d4 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--secondary-color, #3a4420);
}
a.gi-placeholder { text-decoration: none; cursor: pointer; }
.gi-placeholder i {
    font-size: 30px;
    color: var(--primary-color);
    opacity: .55;
}
.gi-placeholder .ph-cat {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--secondary-color);
    opacity: .75;
}

/* Empty state на странице gallery.php */
.gallery-empty {
    text-align: center;
    padding: 100px 24px;
    background: linear-gradient(135deg, #f5efe3 0%, #ebe4d4 100%);
    border-radius: var(--border-radius-md);
    margin-top: 40px;
}
.gallery-empty i {
    font-size: 56px;
    color: var(--primary-color);
    opacity: .45;
    margin-bottom: 22px;
    display: block;
}
.gallery-empty h3 {
    font-size: 26px;
    margin: 0 0 12px;
    color: var(--secondary-color);
    font-weight: 600;
}
.gallery-empty p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1e2610 100%);
    padding: 90px 0;
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}
.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
    min-width: 220px;
}

/* ── Responsive для новых блоков ── */
@media (max-width: 1200px) {
    .nav-list { gap: 20px; }
    .perks-grid { grid-template-columns: repeat(2, 1fr); }
    .perk-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
    /* --6 на 2-х колонках: 6 элементов = 3 ряда. Гасим правую границу
       на чётных, убираем низ у последних двух. */
    .perks-grid--6 { grid-template-columns: repeat(2, 1fr); }
    .perks-grid--6 .perk-item { border-right: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
    .perks-grid--6 .perk-item:nth-child(2n) { border-right: none; }
    .perks-grid--6 .perk-item:nth-last-child(-n+2) { border-bottom: none; }
    .rooms-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .featured-room { transform: none; }
}

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-img-badge { right: 0; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid-v2 { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .gi.gi-tall  { grid-row: span 1; }
    .gi.gi-wide  { grid-column: span 2; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { flex-direction: row; justify-content: center; }
    .hero-badge-row { display: none; }
    .restaurant-layout { max-width: 100%; }
    .restaurant-features { gap: 20px; }
}

@media (max-width: 768px) {
    .perks-grid { grid-template-columns: 1fr 1fr; }
    .perk-item { padding: 20px; }
    .rooms-grid-3 { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: 1fr; }
    .gallery-grid-v2 { grid-template-columns: 1fr 1fr; }
    .gi.gi-wide  { grid-column: span 2; }
    .cta-actions { flex-direction: column; }
    .restaurant-features { flex-direction: column; gap: 16px; }
    .about-img-badge { position: static; margin-top: 16px; border-radius: var(--border-radius-md); }
}

@media (max-width: 480px) {
    .perks-grid { grid-template-columns: 1fr; }
    .perks-grid--6 { grid-template-columns: 1fr; }
    .perks-grid--6 .perk-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .perks-grid--6 .perk-item:last-child { border-bottom: none; }
    .gallery-grid-v2 { grid-template-columns: 1fr; }
    .gi.gi-wide  { grid-column: span 1; }
    .hero-scroll-hint { display: none; }
}

/* ═══════════════════════════════════════
   СТРАНИЦА НОМЕРОВ — сетка + слайдер
   ═══════════════════════════════════════ */

.rooms-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Карточка */
.rp-card {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow .35s ease, transform .35s ease;
}
.rp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.13);
}

/* Слайдер.
   Используем absolute+opacity (а не flex+translateX): надёжно на всех
   браузерах, не зависит от вычисления ширины flex-детей и aspect-ratio.
   JS переключает класс .active — больше ничего не требуется. */
.rp-slider {
    position: relative;
    aspect-ratio: 3 / 2;
    max-height: 400px;
    overflow: hidden;
    flex-shrink: 0;
}
.rp-slides-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.rp-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.rp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease;
}
.rp-slide.active {
    opacity: 1;
    visibility: visible;
}
.rp-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Стрелки */
.rp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    font-size: 14px;
    color: var(--secondary-color);
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    transition: background .2s, transform .2s;
    opacity: 0;
}
.rp-slider:hover .rp-arrow { opacity: 1; }
.rp-arrow:hover { background: white; transform: translateY(-50%) scale(1.08); }
.rp-prev { left: 12px; }
.rp-next { right: 12px; }

/* Точки */
.rp-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 4;
}
.rp-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    transition: background .25s, transform .25s;
}
/* Невидимая 44×44 тач-зона вокруг точки слайдера — Apple HIG минимум */
.rp-dot::before {
    content: '';
    position: absolute;
    inset: -18px;
}
.rp-dot.active {
    background: white;
    transform: scale(1.25);
}

/* Счётчик */
.rp-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.45);
    color: white;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 4;
    letter-spacing: 0.5px;
}

/* Бейдж */
.rp-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 3px;
    z-index: 4;
}
.rp-badge-studio { background: var(--secondary-color); }

/* Тело карточки */
.rp-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.rp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.rp-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.2;
}
.rp-price {
    text-align: right;
    flex-shrink: 0;
}
.rp-price strong {
    display: block;
    font-size: 22px;
    font-family: var(--font-body);
    color: var(--primary-color);
    line-height: 1;
}
.rp-price-from, .rp-price-unit {
    font-size: 12px;
    color: var(--text-muted);
}

.rp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-muted);
}
.rp-meta i { color: var(--primary-color); margin-right: 4px; }

.rp-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

.rp-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 22px;
}
.rp-features li {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.rp-features li i {
    color: var(--primary-color);
    font-size: 12px;
}

.rp-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1100px) {
    .rooms-page-grid { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
}
@media (max-width: 768px) {
    /* На iOS Safari flex-слайдер (.rp-slides display:flex + transform:translateX)
       схлопывал высоту <img> до 0 — было видно только background.
       На мобиле переключаемся на absolute+opacity слайдер: каждый слайд занимает
       всю площадь .rp-slider, активный показывается через opacity. JS уже
       переключает класс .active, так что код менять не надо. */
    .rp-slider { height: 240px; background: #1e3028; position: relative; }
    .rp-slides-wrap { position: relative; height: 100%; }
    .rp-slides { display: block !important; height: 100%; transform: none !important; }
    .rp-slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease;
    }
    .rp-slide.active { opacity: 1; visibility: visible; }
    .rp-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
    .rp-body { padding: 18px 20px 22px; }
    .rp-header { flex-direction: column; gap: 6px; }
    .rp-price { text-align: left; }
    .rp-arrow { opacity: 1; width: 32px; height: 32px; }
}

/* ═══════════════════════════════════════
   СТРАНИЦА РЕСТОРАНОВ — video hero + venue sections
   ═══════════════════════════════════════ */

/* Video Hero */
.video-hero {
    position: relative;
    height: 100vh;
    height: 100dvh; /* fallback для iOS Safari */
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.video-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 48, 40, 0.3) 0%,
        rgba(30, 48, 40, 0.65) 60%,
        rgba(30, 48, 40, 0.82) 100%
    );
    z-index: 1;
}
.video-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: 0 20px;
}
.video-hero-content .section-label {
    color: var(--primary-color);
    margin-bottom: 16px;
}
.video-hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: white;
    line-height: 1.15;
    margin-bottom: 22px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.video-hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.82);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.video-hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.video-hero-scroll i {
    font-size: 18px;
    animation: bounce 2s infinite;
}

/* Venue перки (4 иконки) */
.venue-perks {
    background: var(--secondary-color);
    padding: 0;
}
.venue-perks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.venue-perk {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: background .3s;
}
.venue-perk:last-child { border-right: none; }
.venue-perk:hover { background: rgba(255,255,255,0.04); }
.venue-perk i {
    font-size: 26px;
    color: var(--primary-color);
    flex-shrink: 0;
}
.venue-perk strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: white;
    font-family: var(--font-body);
}
.venue-perk span {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Venue Section — чередующийся 2-col блок */
.venue-section {
    padding: 100px 0;
}
.venue-section.bg-light { background: var(--bg-light); }
.venue-section.bg-dark {
    background: var(--secondary-color);
}
.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.venue-grid.reversed .venue-img-wrap { order: 2; }
.venue-grid.reversed .venue-body     { order: 1; }

.venue-img-wrap {
    position: relative;
}
.venue-img-wrap img {
    width: 100%;
    border-radius: var(--border-radius-md);
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0,0,0,0.16);
    transition: transform .6s ease, box-shadow .6s ease;
}
.venue-img-wrap:hover img {
    transform: scale(1.015);
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}
.venue-img-wrap.panorama-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.venue-img-wrap.panorama-wrap img {
    aspect-ratio: 3/4;
}
.venue-img-wrap.panorama-wrap img:first-child {
    margin-top: 40px;
}

.venue-num {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}
.venue-body .section-label {
    display: block;
    margin-bottom: 8px;
}
.venue-body h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--secondary-color);
}
.venue-section.bg-dark .venue-body h2 { color: white; }
.venue-body p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 24px;
}
.venue-section.bg-dark .venue-body p { color: rgba(255,255,255,0.7); }
.venue-divider {
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    margin: 16px 0 24px;
}
.venue-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.venue-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}
.venue-section.bg-dark .venue-meta-item { color: rgba(255,255,255,0.65); }
.venue-meta-item i {
    color: var(--primary-color);
    font-size: 16px;
}
.venue-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.venue-tag {
    padding: 6px 14px;
    border: 1px solid rgba(184,150,106,0.4);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* Dishes / Кухня */
.dishes-section { padding: 100px 0; }
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}
.dish-card {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
.dish-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.13);
}
.dish-img {
    height: 280px;
    overflow: hidden;
}
.dish-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}
.dish-card:hover .dish-img img { transform: scale(1.06); }
.dish-body {
    padding: 22px 24px;
}
.dish-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}
.dish-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive для страницы ресторанов */
@media (max-width: 1024px) {
    .venue-grid { grid-template-columns: 1fr; gap: 50px; }
    .venue-grid.reversed .venue-img-wrap { order: 0; }
    .venue-grid.reversed .venue-body     { order: 0; }
    .venue-img-wrap.panorama-wrap { grid-template-columns: 1fr 1fr; }
    .venue-perks-grid { grid-template-columns: repeat(2, 1fr); }
    .venue-perk { border-bottom: 1px solid rgba(255,255,255,0.08); }
}
@media (max-width: 768px) {
    .video-hero { height: 85vh; }
    .dishes-grid { grid-template-columns: 1fr; }
    .venue-perks-grid { grid-template-columns: 1fr 1fr; }
    .venue-img-wrap.panorama-wrap img:first-child { margin-top: 0; }
}
@media (max-width: 480px) {
    .venue-perks-grid { grid-template-columns: 1fr; }
    .venue-img-wrap.panorama-wrap { grid-template-columns: 1fr; }
}

/* ─── Cookie Banner ─────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 99999;  /* выше всего: FAB (9000-9500), promo-bar (9600), модалок и т.п. */
    background: #fff;
    border-top: 1px solid #ede9e2;
    box-shadow: 0 -8px 40px rgba(0,0,0,.18);
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.165,.84,.44,1), opacity .25s;
    opacity: 0;
    pointer-events: none;
    padding-bottom: env(safe-area-inset-bottom);
}
.cookie-banner.cookie-banner-visible  { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner.cookie-banner-hidden   { transform: translateY(100%); opacity: 0; pointer-events: none; }

.cookie-banner-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.cookie-banner-icon {
    color: var(--primary-color);
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.cookie-banner-text strong { font-size: 14px; color: var(--secondary-color); display: block; margin-bottom: 3px; }
.cookie-banner-text p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.cookie-banner-text a { color: var(--primary-color); text-decoration: underline; }

.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn { padding: 9px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; transition: all .2s; white-space: nowrap; }
.cookie-btn-primary  { background: var(--secondary-color); color: #fff; }
.cookie-btn-primary:hover  { background: var(--primary-color); }
.cookie-btn-outline  { background: transparent; color: var(--text-muted); border: 1px solid #d4cfc8; }
.cookie-btn-outline:hover  { border-color: var(--secondary-color); color: var(--secondary-color); }

@media (max-width: 640px) {
    /* На mobile: компактнее, иконка меньше, кнопки крупные для тапа, поверх всех FAB */
    .cookie-banner-inner { flex-direction: column; padding: 14px 14px 12px; gap: 12px; }
    .cookie-banner-text { gap: 10px; }
    .cookie-banner-icon { font-size: 1.2rem; }
    .cookie-banner-text strong { font-size: 13.5px; }
    .cookie-banner-text p { font-size: 12.5px; line-height: 1.4; }
    .cookie-banner-actions { width: 100%; gap: 8px; }
    .cookie-btn { flex: 1; text-align: center; padding: 11px 12px; font-size: 13px; min-height: 44px; }
}

/* ─── Stories ────────────────────────────────────────────── */
.stories-section { background: #fff; padding: 20px 0 12px; border-bottom: 1px solid #f0ece6; }
.stories-track-wrap { width: 100%; }
.stories-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 2px; padding: 8px 16px 16px; }

.story-bubble { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 8px; transition: transform .2s; -webkit-tap-highlight-color: transparent; }
.story-bubble:hover { transform: scale(1.06); }
.story-bubble:active { transform: scale(.96); }

.story-ring { width: 92px; height: 92px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, #C49536, #888E46, #C49536); }
.story-ring--gold { background: linear-gradient(135deg, #E5CC87, #C49536, #E5CC87); }
.story-ring--spa  { background: linear-gradient(135deg, #6ec6e6, #2e6b8a, #6ec6e6); }
.story-ring--med  { background: linear-gradient(135deg, #6ed47a, #1e5a2e, #6ed47a); }
.story-ring--act  { background: linear-gradient(135deg, #e67e7e, #8a2e2e, #e67e7e); }
.story-ring--food { background: linear-gradient(135deg, #edba5c, #8a6a2e, #edba5c); }
.story-ring--map  { background: linear-gradient(135deg, #5cadda, #1a3a6a, #5cadda); }

.story-seen .story-ring,
.story-seen .story-ring--gold,
.story-seen .story-ring--spa,
.story-seen .story-ring--med,
.story-seen .story-ring--act,
.story-seen .story-ring--food,
.story-seen .story-ring--map { background: #d4cfc8; }

/* Сегментированная рамка (вместо градиента — N сегментов SVG по числу слайдов) */
.story-ring { position: relative; }
.story-ring--segmented,
.story-ring--segmented.story-ring--gold,
.story-ring--segmented.story-ring--spa,
.story-ring--segmented.story-ring--med,
.story-ring--segmented.story-ring--act,
.story-ring--segmented.story-ring--food,
.story-ring--segmented.story-ring--map { background: transparent; }
.story-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.story-ring-svg circle { transition: stroke .25s; }
.story-seen .story-ring--segmented .story-ring-svg circle { stroke: #d4cfc8; }

.story-thumb { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: rgba(255,255,255,.9); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.story-thumb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,.28); }
.story-thumb i { position: relative; z-index: 1; drop-shadow: 0 1px 4px rgba(0,0,0,.5); }
.story-label { font-size: 11px; font-family: var(--font-body); color: var(--text-main); text-align: center; line-height: 1.3; max-width: 100px; word-break: keep-all; overflow-wrap: break-word; hyphens: manual; }

/* Modal */
.story-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity .25s; }
.story-modal--open { pointer-events: auto; opacity: 1; }
.story-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.story-modal-card { position: relative; width: 100%; max-width: 420px; height: 88vh; max-height: 780px; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; padding: 0; z-index: 2; cursor: pointer; transform: scale(.92); transition: transform .3s cubic-bezier(.165,.84,.44,1); background-size: cover; background-position: center; background-repeat: no-repeat; }

/* Peek соседних сторис — слева и справа от активной карточки.
   Размер совпадает с .story-modal-card (420px / 88vh) — на широких
   экранах виден почти целиком, на средних обрезается краями экрана. */
.story-peek {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(.92);
    width: 100%;
    max-width: 420px;
    height: 88vh;
    max-height: 780px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    cursor: pointer;
    z-index: 1;
    opacity: 0;
    filter: blur(2px) brightness(.55);
    transition: opacity .3s ease, transform .3s cubic-bezier(.165,.84,.44,1), filter .25s;
    /* pointer-events наследуется от .story-modal (none когда закрыта) — это КРИТИЧНО:
       иначе невидимый peek 420×88vh перекрывает крайние сторис-кружки на странице
       и клики по ним проваливаются. Включаем только когда модалка открыта. */
    pointer-events: none;
}
.story-peek::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(0, 0, 0, .35);
    border-radius: inherit;
}
/* Прижимаемся правым/левым краем вплотную к активной карточке (с зазором 12px) */
.story-peek-prev { right: calc(50% + 222px); }
.story-peek-next { left:  calc(50% + 222px); }
.story-modal--open .story-peek:not(.is-empty) {
    opacity: .55;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}
.story-peek:not(.is-empty):hover {
    opacity: .8;
    filter: blur(1px) brightness(.75);
}
.story-peek.is-empty { opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
    .story-peek { display: none; }
}
.story-modal-card::before { content: ''; position: absolute; inset: 0; z-index: 0; transition: background .4s ease; }
.story-modal-card.overlay-dark::before  { background: rgba(0,0,0,.52); }
.story-modal-card.overlay-light::before { background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.45) 100%); }
.story-modal--open .story-modal-card { transform: scale(1); }

.story-progress-bar { display: flex; gap: 4px; padding: 14px 14px 0; position: absolute; top: 0; left: 0; right: 0; z-index: 10; pointer-events: none; }
.spb-item { flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; }
.spb-done .spb-fill { width: 100%; height: 100%; background: #fff; }
.spb-active .spb-fill { width: 0; height: 100%; background: #fff; animation: spb-anim linear forwards; }
@keyframes spb-anim { to { width: 100%; } }

.story-close { position: absolute; top: 32px; right: 14px; z-index: 20; background: rgba(0,0,0,.35); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.story-close:hover { background: rgba(0,0,0,.6); }

.story-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; background: rgba(255,255,255,.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background .2s; backdrop-filter: blur(4px); }
.story-nav:hover { background: rgba(255,255,255,.3); }
.story-nav-prev { left: 10px; }
.story-nav-next { right: 10px; }

.story-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 28px 36px; text-align: center; gap: 14px; pointer-events: none; z-index: 2; }
.story-content a { pointer-events: auto; }

.sc-icon { font-size: 3rem; margin-bottom: 4px; }
.sc-title { font-family: var(--font-heading); font-size: 1.6rem; color: #fff; font-weight: 600; line-height: 1.2; }
.sc-subtitle { font-size: .95rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.sc-text { font-size: .9rem; color: rgba(255,255,255,.88); line-height: 1.65; max-width: 340px; }
.sc-text strong { color: #fff; }
.sc-text ul { text-align: left; }
.sc-cta { display: inline-block; margin-top: 8px; padding: 12px 28px; border-radius: 50px; font-size: .9rem; font-weight: 700; text-decoration: none; transition: opacity .2s, transform .2s; pointer-events: auto; }
.sc-cta:hover { opacity: .88; transform: translateY(-2px); }

@media (max-width: 480px) {
    .story-modal-card { max-width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border-radius: 0; } /* dvh — fallback для iOS Safari */
    .stories-track { padding: 8px 12px 16px; gap: 2px; }
    .story-ring { width: 78px; height: 78px; }
    .story-thumb { font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════════
   FEATURE GRID — универсальная сетка карточек
════════════════════════════════════════════════════ */

.fg-section { padding: 80px 0; }

.fg-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.fg-header {
    text-align: center;
    margin-bottom: 40px;
}

.fg-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.2;
}

/* Сетка */
.fg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Карточка */
.fg-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: #222;
    outline: none;
}

.fg-card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* Фоновое изображение */
.fg-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fg-card-img--placeholder {
    background: linear-gradient(135deg, #2e3818 0%, #3a4420 100%);
}

/* Градиент снизу */
.fg-card-gradient {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Кнопка-глаз */
.fg-card-eye {
    position: absolute;
    top: 16px; right: 16px;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 2;
    transition: background 0.3s ease;
    pointer-events: none;
}

/* Фолбэк для браузеров без backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
    .fg-card-eye { background: rgba(0,0,0,0.45); }
}

/* Текстовый блок */
.fg-card-body {
    position: absolute;
    left: 24px; right: 24px; bottom: 24px;
    color: #fff;
    z-index: 2;
}

.fg-card-kicker {
    display: block;
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 10px;
    font-weight: 400;
    font-family: var(--font-body);
}

.fg-card-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--font-heading);
}

.fg-card-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-body);
    /* скрыт по умолчанию, появляется при наведении */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 0;
    pointer-events: none;
}

/* Hover */
.fg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.fg-card:hover .fg-card-subtitle {
    opacity: 0.9;
    transform: translateY(0);
    max-height: 60px;
}

.fg-card:hover .fg-card-img {
    transform: scale(1.06);
}

.fg-card:hover .fg-card-eye {
    background: rgba(255,255,255,0.30);
}

/* CTA кнопка */
.fg-cta {
    text-align: center;
    margin-top: 40px;
}

/* Адаптив */
@media (max-width: 1199px) {
    .fg-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (max-width: 899px) {
    .fg-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .fg-card-title { font-size: 18px; }
}

@media (max-width: 599px) {
    .fg-grid { grid-template-columns: 1fr; gap: 14px; }
    .fg-container { padding: 0 16px; }
    .fg-section { padding: 60px 0; }
    .fg-title { font-size: 28px; }
}

/* LIVE-кикер на карточке камеры */
.fg-card-kicker--live {
    color: #ff4444;
    font-weight: 600;
    letter-spacing: 1px;
    animation: fg-live-pulse 1.8s ease-in-out infinite;
}

@keyframes fg-live-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* ═══════════════════════════════════════════════════
   ЛЕЧЕБНЫЕ ПРОЦЕДУРЫ — фото-сетка на главной
═══════════════════════════════════════════════════ */
.med-proc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.med-proc-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ede9e2;
    text-decoration: none;
    color: var(--text-main);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.med-proc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.11);
}

.med-proc-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.med-proc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.med-proc-card:hover .med-proc-img img {
    transform: scale(1.06);
}

.med-proc-body {
    padding: 18px 20px 20px;
}

.med-proc-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-main);
}

.med-proc-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 1023px) { .med-proc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px)  { .med-proc-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════
   HORIZONTAL SLIDER  (hs-*)
═══════════════════════════════════════════════════ */
.hs-section {
    overflow: hidden;
}
.hs-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.hs-header-text .section-label { display: block; }
.hs-header-text .section-title { margin: 0; }

.hs-nav { display: flex; gap: 10px; flex-shrink: 0; padding-bottom: 6px; }
.hs-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.22s, color 0.22s, opacity 0.22s;
}
.hs-btn:hover { background: var(--primary-color); color: #fff; }
.hs-btn:disabled { opacity: 0.3; pointer-events: none; }

.hs-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding-bottom: 24px;
    padding-left:  max(20px, calc((100vw - 1200px) / 2 + 20px));
    padding-right: max(20px, calc((100vw - 1200px) / 2 + 20px));
    user-select: none;
    -webkit-user-select: none;
}
.hs-track::-webkit-scrollbar { display: none; }
.hs-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* Ультра-широкие экраны (21:9, 32:9 и т.п., ≥ 1900px).
   Стандартный padding `(100vw - 1200) / 2 + 20` выравнивает начало слайдера
   по «левой границе контейнера 1200px», но на 21:9 это даёт визуальный
   перекос — карточки прижимаются к левому краю, справа остаётся «дыра».

   Используем `justify-content: safe center`:
   - если карточки влезают (мало штук, как «Лечебные процедуры» — 6) —
     центрируется по экрану
   - если карточек больше, чем влезает («Программы лечения» — 9, «Номера»)
     — safe-режим НЕ сдвигает контент в отрицательный offset, первая
     карточка не обрезается, слайдер листается стрелками как раньше. */
@media (min-width: 1900px) {
    .hs-track {
        justify-content: safe center;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.hs-card {
    flex: 0 0 390px;
    height: 530px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    text-decoration: none;
    display: block;
    color: #fff;
    flex-shrink: 0;
}
.hs-card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; inset: 0;
    transition: transform 0.6s ease;
}
.hs-card:hover .hs-card-img { transform: scale(1.05); }

.hs-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.85) 0%,
        rgba(0,0,0,.35) 45%,
        rgba(0,0,0,.05) 100%
    );
    transition: opacity 0.3s;
}
.hs-card:hover .hs-card-overlay { opacity: 0.88; }

.hs-card-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 26px 28px 30px;
}
.hs-card-kicker {
    display: block;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary-light, #E5CC87);
    font-weight: 600;
    margin-bottom: 8px;
}
.hs-card-title {
    font-family: var(--font-heading);
    font-size: 22px; font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}
.hs-card-meta {
    font-size: 13px;
    color: rgba(255,255,255,.72);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.hs-card-meta i { font-size: 11px; color: var(--primary-light); margin-right: 3px; }
.hs-card-price {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-light, #E5CC87);
    margin-bottom: 14px;
}
.hs-card-sub {
    font-size: 13px;
    color: rgba(255,255,255,.72);
    line-height: 1.5;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hs-card-link {
    display: inline-block;
    font-size: 13px; font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.4);
    padding-bottom: 2px;
    transition: border-color 0.2s, color 0.2s;
}
.hs-card:hover .hs-card-link {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.hs-footer {
    display: flex;
    justify-content: flex-start;
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .hs-card  { flex: 0 0 300px; height: 420px; }
    .hs-card-title { font-size: 18px; }
    .hs-track { gap: 14px; padding-left: 20px; padding-right: 20px; }
    .hs-btn   { width: 42px; height: 42px; font-size: 13px; }
}
@media (max-width: 440px) {
    .hs-card  { flex: 0 0 270px; height: 390px; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE FIXES — комплексная адаптация для телефонов
   Breakpoints: 600px → 430px → 375px
   ═══════════════════════════════════════════════════════════ */

/* ── 600px: планшеты / большие телефоны ── */
@media (max-width: 600px) {

    /* Контейнер */
    .container { padding: 0 16px; }

    /* Секции */
    .section { padding: 56px 0; }

    /* Заголовки */
    .section-title  { font-size: 26px; }
    .section-desc   { font-size: 14px; }
    .section-label  { font-size: 10px; }
    .page-title     { font-size: 28px; }
    .page-subtitle  { font-size: 14px; }

    /* Hero */
    .hero-title    { font-size: 30px; line-height: 1.15; }
    .hero-subtitle { font-size: 14px; }
    .hero-buttons  { gap: 10px; }
    .hero-buttons .btn { width: 100%; text-align: center; padding: 14px 20px; }
    .hero-badge-row { gap: 10px; font-size: 11px; flex-wrap: wrap; }

    /* Хедер */
    .phone-link span { display: none; }   /* оставляем только иконку телефона */
    .phone-link i    { font-size: 18px; }
    .header-container { gap: 12px; }

    /* Perks */
    .perks-grid { grid-template-columns: 1fr; gap: 0; }
    .perk-item  { padding: 14px 20px; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-img-badge { position: static; margin-top: 12px; display: inline-flex; }
    .stats-container { grid-template-columns: 1fr 1fr; gap: 16px; }

    /* Directions (medical/spa text+image) */
    .directions-layout,
    .directions-layout.reverse { grid-template-columns: 1fr; gap: 32px; }
    .directions-image img { border-radius: 12px; }
    .experience-badge { display: none; }

    /* Gallery */
    .gallery-grid-v2 { grid-template-columns: 1fr 1fr; gap: 8px; }
    .gi.gi-tall { grid-row: span 1; }

    /* CTA */
    .cta-inner    { flex-direction: column; gap: 24px; text-align: center; }
    .cta-actions  { flex-direction: column; gap: 10px; width: 100%; }
    .cta-actions .btn { width: 100%; text-align: center; }

    /* Feature Grid (8 блоков) */
    .fg-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .fg-card  { border-radius: 16px; }
    .fg-card-title { font-size: 13px; }

    /* Горизонтальные слайдеры */
    .hs-section.section { padding: 48px 0 40px; }
    .hs-header { margin-bottom: 1.25rem; }
    .hs-track  { gap: 12px; padding-left: 16px; padding-right: 16px; }
    .hs-card   { flex: 0 0 calc(100vw - 56px); height: 400px; border-radius: 16px; }
    .hs-card-title { font-size: 19px; }
    .hs-btn    { width: 40px; height: 40px; font-size: 13px; }
    .hs-footer { padding-top: 1rem; }

    /* Programs grid (pcard) на внутренних страницах */
    .programs-grid-photo { grid-template-columns: 1fr; }
    .pcard-img { height: 180px; }

    /* Rooms page */
    .rooms-page-grid { grid-template-columns: 1fr; gap: 24px; }

    /* Restaurant */
    .restaurant-layout { padding: 60px 0; }
    .restaurant-features { gap: 12px; }

    /* Camera corner card */
    .camera-corner-card {
        bottom: 12px; right: 10px; left: 10px;
        max-width: 100%; padding: 18px 16px;
    }
    .camera-corner-card p { font-size: 16px; margin-bottom: 14px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── 430px: iPhone 14 Pro и аналоги ── */
@media (max-width: 430px) {

    .section-title { font-size: 23px; }
    .hero-title    { font-size: 26px; }
    .hero-label    { font-size: 10px; letter-spacing: 1px; }

    /* Stories — предотвращаем горизонтальный скролл страницы */
    .stories-section { overflow-x: hidden; }
    .stories-track-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .story-bubble { min-width: 68px; }
    .story-label  { font-size: 10px; }

    /* Feature grid — 2 в ряду без обрезки */
    .fg-card { border-radius: 12px; }
    .fg-card-kicker { font-size: 9px; letter-spacing: 1px; }
    .fg-card-title  { font-size: 12px; }

    /* Слайдеры — почти на весь экран */
    .hs-card { flex: 0 0 calc(100vw - 32px); height: 360px; }
    .hs-card-body { padding: 20px 20px 22px; }
    .hs-card-title { font-size: 17px; }
    .hs-card-price { font-size: 14px; }

    /* Stat items */
    .stat-number { font-size: 28px; }
    .stat-label  { font-size: 10px; }

    /* Promo cards */
    .promos-grid,
    .promos-grid-full { grid-template-columns: 1fr; }

    /* Map */
    #ymap-index { height: 280px; }
}

/* ── 375px: iPhone SE, Galaxy A ── */
@media (max-width: 375px) {

    .section-title { font-size: 21px; }
    .hero-title    { font-size: 23px; }
    .hero-buttons .btn { font-size: 13px; padding: 12px 16px; }

    /* Хедер ещё компактнее */
    .logo-img { height: 56px; }

    /* Feature grid — сужаем ещё */
    .fg-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

    /* Слайдеры */
    .hs-card { flex: 0 0 calc(100vw - 24px); height: 320px; }
    .hs-card-title { font-size: 16px; }

    /* Gallery — 1 колонка */
    .gallery-grid-v2 { grid-template-columns: 1fr; }
    .gi.gi-wide, .gi.gi-tall { grid-column: span 1; grid-row: span 1; }

    /* Убираем большие декоративные бейджи */
    .hero-badge-row { display: none; }

    /* CTA section */
    .cta-inner .section-title { font-size: 20px; }
}

/* ── Глобальный overflow-x fix ── */
@media (max-width: 600px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    /* Любой блок шире экрана обрезается */
    .section, .container, header, footer {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ═══════════════════════════════════════
   МОБИЛЬНЫЕ ФИКСЫ ДЛЯ СЛАЙДЕРОВ И ИЗОБРАЖЕНИЙ
   - убираем long-press preview (Safari iOS открывает фото на полэкрана)
   - убираем drag-and-drop фото
   - touch-action: pan-y → горизонтальные жесты ловит JS-свайп,
     вертикальный скролл страницы остаётся за браузером
   ═══════════════════════════════════════ */
/* Корневой слайдер: горизонтальные жесты ловит JS, вертикальный скролл — браузеру */
.rp-slider,
.rs-slider,
.story-card,
.lightbox {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
/* Дочерним нужно явное touch-action: pan-y, иначе Safari iOS ловит вертикальный
   жест на самой картинке/слайде и не отдаёт страницу для скролла.
   ВАЖНО: НЕ задавать pointer-events:none или -webkit-user-drag:none — на iOS
   Safari это иногда ломает рендер <img> вообще (видишь только background). */
.rp-slide,
.rp-slide img,
.rs-slide,
.rs-slide img,
.story-card .sc-slide,
.story-card .sc-slide img {
    touch-action: pan-y;
}
/* Long-press preview у галерейных img — отключаем (безопасно, рендер не ломает) */
.gallery-item img {
    -webkit-touch-callout: none;
    user-select: none;
}
/* Lightbox-картинка должна сама ловить touch (для будущего свайпа), но pinch-zoom не нужен */
#lightbox-img {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-select: none;
    touch-action: none;
}
/* Кнопки и интерактивные элементы остаются кликабельными и не лагают */
.rp-arrow, .rp-dot,
.rs-arrow, .rs-dot,
.lightbox-prev, .lightbox-next, .lightbox-close,
.story-nav, .story-close, .sc-cta {
    touch-action: manipulation; /* убирает 300ms задержку и double-tap zoom на самой кнопке */
}

/* Грид-карточки: min-width: 0 предотвращает горизонтальный скролл при длинных
   словах/URL внутри карточки (без него grid-item всегда расширяется до min-content). */
.news-grid > *,
.features-grid > *,
.gallery-grid > *,
.rooms-page-grid > *,
.hs-track > *,
.hs-card,
.feature-card,
.news-card {
    min-width: 0;
}

/* Общая защита: длинные слова и URL должны переноситься, а не выпирать за viewport */
p, h1, h2, h3, h4, h5, h6, li, td, a, span {
    overflow-wrap: break-word;
    word-wrap: break-word; /* старый Safari/IE */
}

/* Hover-эффекты только на устройствах с реальным курсором (десктоп).
   На тач-устройствах :hover «прилипает» после первого тапа — выглядит как баг. */
@media (hover: none) {
    .social-links a:hover,
    .social-btn:hover,
    .btn:hover,
    .nav-link:hover,
    .rp-card:hover { transform: none; }
}


/* ═══════════════════════════════════════════════════════════════════════
   MOBILE PERF — общий блок: отключаем тяжёлые эффекты на touch-устройствах.
   Цель: убрать причины лагающего скролла на телефоне — backdrop-filter
   и background-attachment пересчитываются на каждый scroll-кадр и душат iOS.
   Применяется ко всем элементам сразу, индивидуальные fallback-фоны
   у компонентов уже есть (через @supports). Кому нужен blur — на mobile
   получит просто плотный фон, читаемость сохраняется.
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    /* Все элементы с backdrop-filter переключаются на сплошной фон */
    .fg-card-eye,
    .story-nav,
    [class*="liquid-glass"] {
        -webkit-backdrop-filter: none !important;
                backdrop-filter: none !important;
    }
    .fg-card-eye { background: rgba(0,0,0,0.45); }
    .story-nav   { background: rgba(0,0,0,0.55); }

    /* Перерисованные :hover transform на mobile часто срабатывают «sticky»
       после тапа (iOS оставляет hover-стейт). Точечно гасим тяжёлые hover. */
    .method-card:hover,
    .room-card:hover,
    .hs-card:hover,
    .fg-card:hover { transform: none; }
}
