/* =========================================================================
   Baytur Resort & Spa
   Фирменное золото на глубоком тёмном фоне, мягкие формы, стекло и
   плавные появления при скролле. Шрифты системные — без внешних запросов.
   ========================================================================= */

:root {
    /* Бронза: тон насыщеннее прежнего шампанского, поэтому на тёмном
       читается как металл и держит внимание, оставаясь тёплым. */
    --gold: #c08a4e;
    --gold-light: #e8c79c;
    --gold-deep: #8a5c2c;
    --gold-grad: linear-gradient(135deg, #f0d6b0 0%, #d5a163 46%, #a9702f 100%);
    --gold-glow: rgba(192, 138, 78, .3);

    /* Шоколадная основа вместо почти чёрной: фон сам по себе коричневый,
       поэтому страница выглядит тёплой и «живой», а не выключенной. */
    --bg: #1e1611;
    --bg-soft: #2b1f18;
    --surface: rgba(240, 214, 176, .055);
    --surface-2: rgba(240, 214, 176, .1);
    --stroke: rgba(240, 214, 176, .13);
    --stroke-gold: rgba(192, 138, 78, .38);

    /* Текст в пастельно-коричневой гамме — не серый, а тёплый */
    --text: #f4ebdf;
    --text-soft: #c3ac95;
    --text-dim: #957e69;
    --on-gold: #241608;

    --danger: #ef8b80;
    --success: #86cf94;

    --r-xs: 10px;
    --r-sm: 14px;
    --r: 22px;
    --r-lg: 30px;
    --r-full: 999px;

    --shadow-sm: 0 4px 18px rgba(0, 0, 0, .35);
    --shadow: 0 18px 50px rgba(0, 0, 0, .5);
    --shadow-lg: 0 34px 90px rgba(0, 0, 0, .62);
    --shadow-gold: 0 12px 32px rgba(0, 0, 0, .42);

    --container: 1300px;
    --gap: 30px;

    /* Высота шапки: строка контактов (46) + основная строка (88).
       Шапка position:fixed, поэтому её схлопывание при скролле не двигает
       страницу — раньше на этом контент прыгал вверх. */
    --header-h: 134px;

    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-soft: cubic-bezier(.4, 0, .2, 1);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.68;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Мягкое золотое свечение в фоне — убирает ощущение плоского чёрного листа */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1050px 640px at 82% -8%, rgba(192, 138, 78, .17), transparent 64%),
        radial-gradient(820px 560px at 4% 44%, rgba(138, 92, 44, .16), transparent 62%);
}
.header, .main, .footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.12;
    margin: 0 0 .5em;
    letter-spacing: -.015em;
    color: var(--text);
}

h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 26px;
}

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

::selection { background: var(--gold); color: var(--on-gold); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #1e1611; }
::-webkit-scrollbar-thumb { background: rgba(192, 138, 78, .3); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(192, 138, 78, .55); }

/* ========================== ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ====================== */

[data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ============================== КНОПКИ ================================= */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px 35px;
    border: 0;
    border-radius: var(--r-full);
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .05em;
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease),
                background-color .3s var(--ease-soft), color .3s var(--ease-soft),
                border-color .3s var(--ease-soft);
    white-space: nowrap;
}

/* Блик, пробегающий по кнопке при наведении */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 252, 245, .22) 50%, transparent 80%);
    transform: translateX(-130%);
    transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(130%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Тень нейтральная, не цветная: бронзовое свечение на тёмном фоне
   расплывается по контуру и читается как светлый ободок. */
.btn--primary { background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .38); }

.btn--accent {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--stroke-gold);
    padding: 15px 34px;
}
.btn--accent:hover { background: rgba(192, 138, 78, .12); border-color: var(--gold); }

.btn--ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--stroke);
    padding: 15px 34px;
    backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: var(--stroke-gold); color: var(--gold); background: var(--surface-2); }

.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #fff; }

.btn--sm { padding: 12px 23px; font-size: .78rem; }
.btn--accent.btn--sm, .btn--ghost.btn--sm { padding: 11px 22px; }
.btn--lg { padding: 19px 45px; font-size: .92rem; }
.btn--accent.btn--lg, .btn--ghost.btn--lg { padding: 18px 44px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.link-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 600;
    font-size: .86rem;
    white-space: nowrap;
    transition: gap .35s var(--ease);
}
.link-more::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s var(--ease);
}
.link-more:hover { gap: 14px; }
.link-more:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================== ШАПКА ================================== */

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }

.header__top {
    background: rgba(30, 22, 17, .9);
    color: var(--text-dim);
    font-size: .8rem;
    letter-spacing: .01em;
    transition: opacity .4s var(--ease), max-height .5s var(--ease);
    max-height: 46px;
    overflow: hidden;
}
.header.is-scrolled .header__top { max-height: 0; opacity: 0; }

.header__top-inner { display: flex; align-items: center; gap: 26px; min-height: 46px; flex-wrap: nowrap; }
.header__contact { transition: color .3s; }
.header__contact:hover { color: var(--gold); }

.header__main {
    background: rgba(30, 22, 17, .72);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: background .4s var(--ease), border-color .4s var(--ease);
}
.header.is-scrolled .header__main {
    background: rgba(30, 22, 17, .88);
    border-bottom-color: var(--stroke);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 88px;
    transition: min-height .4s var(--ease);
}
.header.is-scrolled .header__inner { min-height: 72px; }

.logo { display: inline-flex; align-items: center; transition: transform .4s var(--ease); }
.logo:hover { transform: scale(1.04); }
.logo img { max-height: 56px; width: auto; transition: max-height .4s var(--ease); }
.header.is-scrolled .logo img { max-height: 46px; }
.logo__text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

/* nowrap — единственный надёжный способ не получить вторую строку.
   Ниже брейкпоинта, где пункты перестают помещаться, меню уходит в бургер. */
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; flex-wrap: nowrap; }

.nav__link {
    position: relative;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-soft);
    padding: 6px 0;
    /* Текст пункта не должен переноситься внутри себя — иначе шапка растёт */
    white-space: nowrap;
    transition: color .3s var(--ease-soft);
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--gold-grad);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Ссылка на внешний 3D-тур выделяется на фоне обычных пунктов меню */
.nav__link--tour { color: var(--gold-light); }
.nav__link--tour::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--gold);
    vertical-align: middle;
}

.lang { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.lang__item {
    padding: 4px 11px;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: .76rem;
    color: var(--text-dim);
    transition: color .3s, background .3s;
}
.lang__item:hover { color: var(--gold); }
.lang__item.is-active { color: var(--on-gold); background: var(--gold-grad); }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-full);
    padding: 13px;
}
.burger span { width: 20px; height: 1.5px; background: var(--gold); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================ ПЕРВЫЙ ЭКРАН ============================= */

.hero { position: relative; }

.hero__slides { position: relative; }

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.3s var(--ease-soft);
    display: flex;
    align-items: center;
    min-height: min(100vh, 900px);
    overflow: hidden;
}
.hero__slide.is-active { opacity: 1; position: relative; }

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
}
/* Медленный наезд камеры на активном слайде */
.hero__slide.is-active .hero__img { animation: kenburns 16s ease-out forwards; }
@keyframes kenburns {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to   { transform: scale(1.14) translate3d(-1%, -1.5%, 0); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(30, 22, 17, .82) 0%, rgba(30, 22, 17, .3) 42%, rgba(30, 22, 17, .96) 100%),
        linear-gradient(96deg, rgba(30, 22, 17, .8) 0%, rgba(30, 22, 17, .38) 46%, rgba(30, 22, 17, 0) 82%);
}

.hero__content {
    position: relative;
    padding: 190px 26px 210px;
    max-width: 880px;
    width: 100%;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 9px 20px 9px 16px;
    border: 1px solid var(--stroke-gold);
    border-radius: var(--r-full);
    background: rgba(192, 138, 78, .09);
    backdrop-filter: blur(12px);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 30px;
    animation: fadeUp 1s var(--ease) both;
}
.hero__eyebrow::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 var(--gold-glow);
    animation: pulse 2.6s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(192, 138, 78, .55); }
    70%  { box-shadow: 0 0 0 11px rgba(192, 138, 78, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 138, 78, 0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: none; }
}

.hero__title {
    color: #fff;
    margin-bottom: .3em;
    animation: fadeUp 1.1s var(--ease) .12s both;
    text-shadow: 0 4px 40px rgba(0, 0, 0, .45);
}
.hero__subtitle {
    font-size: clamp(1.02rem, 1.55vw, 1.24rem);
    color: rgba(242, 237, 230, .8);
    margin-bottom: 2.2em;
    max-width: 580px;
    animation: fadeUp 1.1s var(--ease) .24s both;
}
.hero__content .btn { animation: fadeUp 1.1s var(--ease) .36s both; }

.hero__dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 176px; display: flex; gap: 12px; z-index: 3; }
.hero__dot {
    width: 9px; height: 9px;
    padding: 0; border: 0;
    border-radius: var(--r-full);
    background: rgba(242, 237, 230, .3);
    transition: width .5s var(--ease), background .4s;
}
.hero__dot.is-active { width: 40px; background: var(--gold-grad); }

.hero__booking { position: relative; margin-top: -84px; z-index: 5; }

/* ========================= ВИДЖЕТ БРОНИРОВАНИЯ ========================= */

.booking-widget {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr .72fr .72fr auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    border-radius: var(--r-lg);
    border: 1px solid var(--stroke);
    background: rgba(43, 32, 25, .72);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    box-shadow: var(--shadow-lg);
    animation: fadeUp 1.1s var(--ease) .5s both;
}

.booking-widget--inline {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    animation: none;
}

.booking-widget__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 18px;
    border-radius: var(--r-sm);
    transition: background .35s var(--ease);
}
.booking-widget__field:hover { background: var(--surface); }
.booking-widget__field label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.booking-widget__field .field__input {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 1rem;
    font-weight: 500;
}
.booking-widget__field .field__input:focus { box-shadow: none; }
.booking-widget__submit { height: 60px; padding-inline: 30px; }

.field__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--stroke);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .03);
    font-size: .96rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.field__input:focus {
    outline: none;
    border-color: var(--stroke-gold);
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 0 0 4px rgba(192, 138, 78, .13);
}
.field__input::placeholder { color: var(--text-dim); }
.field__input option { background: #261c16; }

/* Иконка календаря в тёмной теме читается только осветлённой */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(.8) sepia(.5) saturate(4) hue-rotate(2deg);
    cursor: pointer;
    opacity: .7;
    transition: opacity .3s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: .82rem; font-weight: 500; color: var(--text-soft); }
.field .errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--danger); font-size: .82rem; }

/* ============================== СЕКЦИИ ================================= */

/* Шапка вынута из потока, поэтому контент отступает под неё сам.
   Страницы с hero или page-head уходят под шапку намеренно — у них
   собственный большой верхний отступ. */
.main { min-height: 50vh; padding-top: var(--header-h); }
.main:has(> .hero), .main:has(> .page-head) { padding-top: 0; }

.section { padding: clamp(64px, 8.5vw, 130px) 0; }
.section--tight { padding: 48px 0; }

/* Чередующиеся полосы отличались слишком слабо: переход между блоками
   выглядел не границей, а грязью на фоне. Полоса стала светлее, а по
   краям добавлена волосяная линия — стык теперь читается как решение. */
.section--muted {
    background: var(--bg-soft);
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
}

/* Две светлые полосы подряд не должны давать двойную линию */
.section--muted + .section--muted { border-top: 0; }

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 54px;
    flex-wrap: wrap;
}

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.section__eyebrow::before {
    content: '';
    width: 34px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.section__title { margin: 0; }
.section__lead { max-width: 730px; color: var(--text-soft); font-size: 1.04rem; }

.page-head {
    position: relative;
    padding: clamp(150px, 15vw, 230px) 0 clamp(58px, 6vw, 92px);
    overflow: hidden;
}
.page-head__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.page-head::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(30, 22, 17, .9) 0%, rgba(30, 22, 17, .6) 45%, rgba(30, 22, 17, .97) 100%);
}
.page-head__inner { position: relative; z-index: 2; }
.page-head h1 { margin-bottom: .25em; animation: fadeUp .9s var(--ease) both; }
.page-head p { color: var(--text-soft); margin: 0; max-width: 680px; animation: fadeUp .9s var(--ease) .12s both; }

.breadcrumbs { font-size: .82rem; color: var(--text-dim); margin-bottom: 20px; animation: fadeUp .8s var(--ease) both; }
.breadcrumbs a { transition: color .3s; }
.breadcrumbs a:hover { color: var(--gold); }

/* =============================== СЕТКИ ================================= */

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* У грид-элементов min-width по умолчанию auto — картинка со своей
   натуральной шириной распирает колонку и ломает вёрстку на телефоне. */
.grid > *,
.detail > *,
.detail__gallery > *,
.gallery-grid > *,
.result > * { min-width: 0; }

.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.advantage {
    text-align: center;
    padding: 42px 26px;
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    background: var(--surface);
    transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.advantage:hover {
    transform: translateY(-6px);
    border-color: var(--stroke-gold);
    background: var(--surface-2);
}
.advantage__icon { width: 46px; height: 46px; margin: 0 auto 20px; object-fit: contain; }
.advantage__title { font-size: 1.2rem; margin-bottom: .45em; color: var(--gold-light); }
.advantage__text { color: var(--text-soft); font-size: .93rem; margin: 0; }

/* =============================== КАРТОЧКИ ============================== */

.card {
    position: relative;
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    background: var(--surface);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .55s var(--ease), border-color .55s var(--ease), box-shadow .55s var(--ease);
}
.card:hover {
    transform: translateY(-8px);
    border-color: var(--stroke-gold);
    box-shadow: var(--shadow), 0 0 0 1px rgba(192, 138, 78, .12);
}

.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: #2a1f18; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(30, 22, 17, .55) 100%);
    opacity: 0;
    transition: opacity .55s var(--ease);
}
.card:hover .card__media::after { opacity: 1; }

.card__badge {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(30, 22, 17, .62);
    backdrop-filter: blur(14px);
    color: var(--gold-light);
    border: 1px solid var(--stroke-gold);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    padding: 7px 15px;
    border-radius: var(--r-full);
}
.card__badge--accent { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }

.card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.42rem; margin-bottom: .35em; }
.card__title a { transition: color .35s; }
.card__title a:hover { color: var(--gold); }
.card__meta { font-size: .84rem; color: var(--text-dim); margin-bottom: .8em; }
.card__text { color: var(--text-soft); font-size: .94rem; margin-bottom: 1.5em; }
.card__footer {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.price { display: flex; align-items: baseline; gap: 7px; }
.price__from { font-size: .78rem; color: var(--text-dim); }
.price__value {
    font-family: var(--font-display);
    font-size: 1.68rem;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.price__unit { font-size: .8rem; color: var(--text-dim); }
.price__old { color: var(--text-dim); font-size: .9rem; }

.tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--r);
    color: #fff;
    border: 1px solid var(--stroke);
    transition: transform .55s var(--ease), border-color .55s var(--ease);
}
.tile:hover { transform: translateY(-6px); border-color: var(--stroke-gold); }
.tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__img { transform: scale(1.09); }
.tile__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(30, 22, 17, 0) 30%, rgba(30, 22, 17, .88) 100%);
    transition: background .5s var(--ease);
}
.tile:hover .tile__overlay { background: linear-gradient(180deg, rgba(30, 22, 17, .2) 0%, rgba(30, 22, 17, .92) 100%); }
.tile__title {
    position: absolute;
    left: 28px; right: 28px; bottom: 26px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    transition: transform .5s var(--ease);
}
.tile:hover .tile__title { transform: translateY(-4px); }

/* =============================== ОТЗЫВЫ ================================ */

.review {
    position: relative;
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    background: var(--surface);
    padding: 36px;
    display: flex;
    flex-direction: column;
    transition: transform .55s var(--ease), border-color .55s var(--ease);
}
.review:hover { transform: translateY(-6px); border-color: var(--stroke-gold); }
.review::before {
    content: '“';
    position: absolute;
    top: 8px; right: 28px;
    font-family: var(--font-display);
    font-size: 5.5rem;
    line-height: 1;
    color: rgba(192, 138, 78, .16);
}
.review__rating { color: rgba(255, 255, 255, .14); margin-bottom: 16px; letter-spacing: 3px; }
.review__rating .star.is-on { color: var(--gold); }
.review__text { color: var(--text-soft); flex: 1; }
.review__author { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--stroke); }
.review__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review__author strong { display: block; font-size: .96rem; font-weight: 600; }
.review__author span { font-size: .82rem; color: var(--text-dim); }

/* Метка источника — где отзыв оставлен. По клику ведёт туда же. */
.review__source {
    margin-left: auto;
    align-self: center;
    padding: 6px 13px;
    border-radius: var(--r-full);
    border: 1px solid var(--stroke);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--text-dim);
    white-space: nowrap;
    transition: color .3s, border-color .3s, background .3s;
}
a.review__source:hover { color: var(--gold); border-color: var(--stroke-gold); background: var(--surface-2); }
.review__source--flat { opacity: .7; }

/* ============================== НАШИ ГОСТИ ============================= */

.guests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
}

.guest {
    margin: 0;
    padding: 34px 30px 30px;
    text-align: center;
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    background: var(--surface);
    transition: transform .55s var(--ease), border-color .55s var(--ease), background .55s var(--ease);
}
.guest:hover {
    transform: translateY(-6px);
    border-color: var(--stroke-gold);
    background: var(--surface-2);
}

/* Квадрат со скруглением: в круге кадр обрезается по краям и теряет
   часть фотографии, квадрат показывает её целиком. */
.guest__photo {
    width: 124px;
    height: 124px;
    margin: 0 auto 24px;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--stroke-gold);
}
.guest__photo img { width: 100%; height: 100%; object-fit: cover; }

.guest__quote {
    margin: 0 0 22px;
    padding: 0;
    color: var(--text-soft);
    font-size: .96rem;
    line-height: 1.6;
}
.guest__quote::before { content: '«'; }
.guest__quote::after { content: '»'; }

/* Разделитель нужен только когда сверху есть цитата: без неё имя идёт
   сразу под фотографией, и черта выглядела бы лишней. */
.guest__caption { padding-top: 4px; }
.guest__quote + .guest__caption { padding-top: 20px; border-top: 1px solid var(--stroke); }
.guest__caption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.14rem;
    font-weight: 400;
    color: var(--text);
}
.guest__caption span { font-size: .84rem; color: var(--text-dim); }

@media (max-width: 540px) {
    .guest { padding: 26px 22px; }
}

/* ============================== ГАЛЕРЕЯ ================================ */

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid a {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--r-sm);
    border: 1px solid var(--stroke);
    transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.gallery-grid a:hover { transform: scale(1.03); border-color: var(--stroke-gold); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.1); }

.embed {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: var(--r);
    background: #2a1f18;
    border: 1px solid var(--stroke);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ======================= ДЕТАЛЬНАЯ СТРАНИЦА НОМЕРА ===================== */

.detail { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: start; }

.detail__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 50px; }
.detail__gallery a:first-child { grid-column: 1 / -1; }
.detail__gallery a {
    overflow: hidden;
    display: block;
    aspect-ratio: 3/2;
    border-radius: var(--r-sm);
    border: 1px solid var(--stroke);
    transition: border-color .5s var(--ease);
}
.detail__gallery a:first-child { border-radius: var(--r); aspect-ratio: 16/9; }
.detail__gallery a:hover { border-color: var(--stroke-gold); }
.detail__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.detail__gallery a:hover img { transform: scale(1.06); }

.detail__aside {
    position: sticky;
    top: 110px;
    border-radius: var(--r);
    border: 1px solid var(--stroke-gold);
    background: rgba(43, 32, 25, .6);
    backdrop-filter: blur(18px);
    padding: 34px;
    box-shadow: var(--shadow);
}

.specs { list-style: none; margin: 24px 0; padding: 0; display: grid; }
.specs li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: .92rem;
    border-bottom: 1px solid var(--stroke);
    padding: 13px 0;
}
.specs li:last-child { border-bottom: 0; }
.specs li > span:first-child { color: var(--text-dim); }
.specs li a { color: var(--gold); }

.amenities { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 38px; }
.amenities li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-full);
    padding: 10px 20px;
    font-size: .86rem;
    color: var(--text-soft);
    transition: border-color .4s var(--ease), color .4s, transform .4s var(--ease);
}
.amenities li:hover { border-color: var(--stroke-gold); color: var(--text); transform: translateY(-2px); }
.amenities img { width: 17px; height: 17px; }

.prose { color: var(--text-soft); font-size: 1.02rem; }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.6em; }
.prose a { color: var(--gold); border-bottom: 1px solid var(--stroke-gold); }
.prose img { margin: 1.5em 0; border-radius: var(--r-full); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid var(--stroke); padding: 13px 16px; text-align: left; }
.prose th { background: var(--surface); color: var(--gold); font-weight: 600; }
.prose blockquote {
    margin: 1.5em 0; padding: 6px 0 6px 26px;
    border-left: 2px solid var(--gold); font-style: italic; color: var(--text);
}

/* ============================ БРОНИРОВАНИЕ ============================= */

.results { display: grid; gap: 22px; }

.result {
    display: grid;
    grid-template-columns: 320px 1fr auto;
    gap: 30px;
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    background: var(--surface);
    overflow: hidden;
    transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.result:hover { transform: translateY(-4px); border-color: var(--stroke-gold); box-shadow: var(--shadow); }
.result__media { aspect-ratio: 4/3; background: #2a1f18; overflow: hidden; }
.result__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.result:hover .result__media img { transform: scale(1.06); }
.result__body { padding: 30px 0; }
.result__body h3 a { transition: color .35s; }
.result__body h3 a:hover { color: var(--gold); }
.result__side {
    padding: 30px 34px;
    background: rgba(255, 255, 255, .035);
    border-left: 1px solid var(--stroke);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
    gap: 14px; min-width: 260px;
}
.result__total {
    font-family: var(--font-display);
    font-size: 2rem;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.result__note { font-size: .84rem; color: var(--text-dim); text-align: right; }
.result__left {
    font-size: .8rem; color: var(--danger); font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
}
.result__left::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; animation: pulse 2.4s infinite;
}

.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 46px; align-items: start; }

.summary {
    position: sticky;
    top: 110px;
    border-radius: var(--r);
    border: 1px solid var(--stroke-gold);
    background: rgba(43, 32, 25, .6);
    backdrop-filter: blur(18px);
    padding: 34px;
    box-shadow: var(--shadow);
}
.summary h3 { color: var(--gold-light); }
.summary__row {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 13px 0; font-size: .93rem; border-bottom: 1px solid var(--stroke);
    color: var(--text-soft);
}
.summary__row strong { color: var(--text); font-weight: 600; }
.summary__row--total {
    border-bottom: 0; padding-top: 22px;
    font-family: var(--font-display); font-size: 1.5rem;
}
.summary__row--total span:last-child {
    background: var(--gold-grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.summary__row--discount, .summary__row--discount strong { color: var(--success); }
.summary__note { font-size: .84rem; color: var(--text-dim); margin-top: 18px; }

.addons { display: grid; gap: 12px; margin: 24px 0; }
.addon {
    display: flex; align-items: center; gap: 15px;
    border: 1px solid var(--stroke);
    border-radius: var(--r-sm);
    background: var(--surface);
    padding: 17px 20px; cursor: pointer;
    color: var(--text-soft);
    transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.addon:hover { border-color: var(--stroke-gold); background: var(--surface-2); transform: translateX(3px); }
.addon input { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.addon__name { font-weight: 600; color: var(--text); }
.addon__price { margin-left: auto; color: var(--gold); font-weight: 600; white-space: nowrap; }
.addon small { color: var(--text-dim); }

.status-card {
    max-width: 680px; margin: 0 auto; text-align: center;
    border-radius: var(--r-lg);
    border: 1px solid var(--stroke-gold);
    background: rgba(43, 32, 25, .6);
    backdrop-filter: blur(18px);
    padding: 62px 44px;
    box-shadow: var(--shadow);
    animation: fadeUp .9s var(--ease) both;
}
.status-card__icon {
    width: 84px; height: 84px; margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 2.4rem;
    background: rgba(192, 138, 78, .12);
    border: 1px solid var(--stroke-gold);
    color: var(--gold);
}
.status-card--ok .status-card__icon { color: var(--success); background: rgba(134, 207, 148, .12); border-color: rgba(134, 207, 148, .35); }
.status-card--fail .status-card__icon { color: var(--danger); background: rgba(239, 139, 128, .12); border-color: rgba(239, 139, 128, .35); }
.status-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0 24px; text-align: left; margin: 34px 0; }
.status-card dt { color: var(--text-dim); font-size: .89rem; padding: 12px 0; border-bottom: 1px solid var(--stroke); }
.status-card dd { margin: 0; font-weight: 600; text-align: right; padding: 12px 0; border-bottom: 1px solid var(--stroke); }
.status-card .btn { margin: 6px; }

/* =============================== ФОРМЫ ================================= */

.form-card {
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    background: var(--surface);
    padding: 36px;
}
.form-card h2 { margin-bottom: .85em; }
.form__note { font-size: .86rem; color: var(--text-dim); display: block; margin-top: 12px; }
.form__note.is-ok { color: var(--success); }
.form__note.is-error { color: var(--danger); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.messages { margin: 26px 0 0; display: grid; gap: 10px; }
.message {
    padding: 16px 22px;
    border-radius: var(--r-sm);
    border: 1px solid var(--stroke-gold);
    background: rgba(192, 138, 78, .07);
    color: var(--text);
    font-size: .93rem;
    animation: fadeUp .7s var(--ease) both;
}
.message--error { border-color: rgba(239, 139, 128, .4); background: rgba(239, 139, 128, .08); color: var(--danger); }
.message--success { border-color: rgba(134, 207, 148, .4); background: rgba(134, 207, 148, .08); color: var(--success); }

.alert {
    padding: 18px 24px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(239, 139, 128, .35);
    background: rgba(239, 139, 128, .08);
    color: var(--danger);
    margin-bottom: 28px;
}
.alert--info { border-color: var(--stroke-gold); background: rgba(192, 138, 78, .07); color: var(--text-soft); }

.empty { text-align: center; padding: 84px 20px; color: var(--text-dim); }

/* ============================== ФИЛЬТРЫ ================================ */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filters a {
    padding: 11px 24px;
    border: 1px solid var(--stroke);
    border-radius: var(--r-full);
    font-size: .85rem;
    color: var(--text-soft);
    background: var(--surface);
    transition: all .35s var(--ease);
}
.filters a:hover { border-color: var(--stroke-gold); color: var(--text); transform: translateY(-2px); }
.filters a.is-active { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }

/* ========================= ФИЛЬТР НОМЕРОВ ============================== */

.roomfilter {
    padding: 26px 28px;
    margin-bottom: 34px;
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    background: var(--surface);
}

.roomfilter__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.roomfilter__field { display: flex; flex-direction: column; gap: 7px; }
.roomfilter__field label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}

.roomfilter__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
    padding: 20px 0 0;
    border: 0;
    border-top: 1px solid var(--stroke);
}
.roomfilter__amenities legend {
    display: block;
    float: left;
    width: 100%;
    padding: 0 0 14px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}

.roomfilter__check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: var(--r-full);
    border: 1px solid var(--stroke);
    font-size: .85rem;
    color: var(--text-soft);
    cursor: pointer;
    transition: border-color .3s var(--ease), color .3s, background .3s;
}
.roomfilter__check:hover { border-color: var(--stroke-gold); color: var(--text); }

/* Свой круглый переключатель вместо системного квадрата: браузер
   не даёт скруглить нативный checkbox, поэтому прячем его и рисуем
   кружок сами. Клик по нему работает через обёртку <label>. */
.roomfilter__check input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    margin: 0;
    border-radius: 50%;
    border: 1px solid var(--stroke-gold);
    background: transparent;
    cursor: pointer;
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.roomfilter__check input::after {
    content: '';
    position: absolute;
    top: 4.5px;
    left: 6.5px;
    width: 4px;
    height: 8px;
    border: solid var(--on-gold);
    border-width: 0 1.8px 1.8px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .28s var(--ease);
}
.roomfilter__check input:checked {
    background: var(--gold-grad);
    border-color: transparent;
}
.roomfilter__check input:checked::after { transform: rotate(45deg) scale(1); }
.roomfilter__check input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Отмеченное удобство должно читаться без разглядывания галочки */
.roomfilter__check:has(input:checked) {
    border-color: var(--stroke-gold);
    background: var(--surface-2);
    color: var(--text);
}

.roomfilter__actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.roomfilter__count {
    color: var(--text-dim);
    font-size: .88rem;
    margin: 0 0 22px;
}

@media (max-width: 540px) {
    .roomfilter { padding: 22px 20px; }
    .roomfilter__actions .btn { flex: 1; }
}

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 58px; }
.pagination a, .pagination span {
    min-width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--stroke);
    border-radius: var(--r-full);
    font-size: .9rem; color: var(--text-soft);
    transition: all .35s var(--ease);
}
.pagination a:hover { border-color: var(--stroke-gold); color: var(--gold); transform: translateY(-2px); }
.pagination .is-active { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }

/* ================================ CTA ================================== */

.cta { position: relative; padding: clamp(60px, 7.5vw, 110px) 0; }
.cta__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 36px; flex-wrap: wrap;
    padding: clamp(38px, 5vw, 64px);
    border-radius: var(--r-lg);
    border: 1px solid var(--stroke-gold);
    background:
        radial-gradient(720px 340px at 88% 12%, rgba(192, 138, 78, .16), transparent 62%),
        rgba(43, 32, 25, .6);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}
.cta__title { margin-bottom: .3em; }
.cta__text { color: var(--text-soft); margin: 0; }

/* =============================== ПОДВАЛ ================================ */

.footer { background: #171009; color: var(--text-soft); padding-top: 84px; font-size: .94rem; border-top: 1px solid var(--stroke); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 58px; }
.footer__title {
    color: var(--gold);
    font-family: var(--font);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.footer__link { display: block; padding: 7px 0; transition: color .3s, transform .35s var(--ease); }
.footer__link:hover { color: var(--gold); transform: translateX(4px); }
.footer__text { margin: 0 0 8px; color: var(--text-dim); }
.footer__tagline { margin: 22px 0; max-width: 340px; color: var(--text-dim); }
.footer .logo img { max-height: 62px; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.socials a {
    font-size: .8rem;
    padding: 9px 18px;
    border: 1px solid var(--stroke);
    border-radius: var(--r-full);
    color: var(--text-dim);
    transition: all .35s var(--ease);
}
.socials a:hover { color: var(--gold); border-color: var(--stroke-gold); transform: translateY(-2px); }

.subscribe { display: grid; gap: 12px; margin-top: 16px; }

.footer__bottom { border-top: 1px solid var(--stroke); padding: 28px 0; font-size: .84rem; color: var(--text-dim); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__legal { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__legal a { transition: color .3s; }
.footer__legal a:hover { color: var(--gold); }

.float-whatsapp {
    position: fixed;
    right: 26px; bottom: 26px;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--gold-grad);
    color: var(--on-gold);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-gold);
    z-index: 70;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.float-whatsapp:hover { transform: scale(1.1) rotate(6deg); }

/* ========================== МИССИЯ И ЦЕЛИ ============================== */

.mission__top { max-width: 860px; margin: 0 auto 56px; text-align: center; }

/* Миссия — короткая и крупная: её читают первой, поэтому набираем
   заголовочным шрифтом, а не основным текстом. */
.mission__statement {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.45;
    color: var(--text);
    margin: 0 0 1em;
}
.mission__content { color: var(--text-soft); }

.mission__goals {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 18px;
}

.mission__goal {
    position: relative;
    padding: 34px 30px 30px;
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    background: var(--surface);
    transition: border-color .5s var(--ease), background .5s var(--ease), transform .5s var(--ease);
}
.mission__goal:hover {
    border-color: var(--stroke-gold);
    background: var(--surface-2);
    transform: translateY(-5px);
}

.mission__goal-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 16px;
}
.mission__goal-title { font-size: 1.2rem; margin: 0 0 .45em; }
.mission__goal-text { color: var(--text-soft); font-size: .93rem; margin: 0; }

.mission__image {
    width: 100%;
    margin-top: 48px;
    border-radius: var(--r);
    border: 1px solid var(--stroke);
}

@media (max-width: 780px) {
    .mission__top { margin-bottom: 36px; text-align: left; }
    .mission__goal { padding: 26px 24px; }
}

/* ==================== ПРЯМОЕ ОБРАЩЕНИЕ В WHATSAPP ====================== */

.booking-direct {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 16px 22px;
    border-radius: var(--r-sm);
    border: 1px solid var(--stroke);
    background: var(--surface);
}
.booking-direct__text { color: var(--text-soft); font-size: .93rem; }

@media (max-width: 640px) {
    .booking-direct { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ========================= СХЕМЫ РАССАДКИ ЗАЛА ========================= */

.layouts__heading { margin-top: 1.8em; }

.layouts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin: 24px 0 8px;
}

.layout {
    margin: 0;
    padding: 18px 18px 16px;
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    background: var(--surface);
    transition: border-color .45s var(--ease), background .45s var(--ease);
}
.layout:hover { border-color: var(--stroke-gold); background: var(--surface-2); }

.layout__scheme { display: block; width: 100%; height: auto; }

/* Мебель приглушена, места — акцентом: так с первого взгляда видно,
   сколько людей и как они сидят относительно сцены. */
.layout__stage,
.layout__table { fill: var(--stroke-gold); }
.layout__table-line {
    fill: none;
    stroke: var(--stroke-gold);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.layout__seat { fill: var(--gold); }

.layout__caption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--stroke);
}
.layout__name { font-weight: 600; font-size: .95rem; color: var(--text); }
.layout__count { font-size: .85rem; color: var(--text-dim); }

/* ============== ПИТАНИЕ И ОБОРУДОВАНИЕ ДЛЯ МЕРОПРИЯТИЙ ================= */

.extras {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 44px;
}

.extras__item {
    break-inside: avoid;
    padding: 11px 0 11px 20px;
    position: relative;
    color: var(--text-soft);
    font-size: .95rem;
    border-bottom: 1px solid var(--stroke);
}
.extras__item::before {
    content: '';
    position: absolute;
    left: 0; top: 21px;
    width: 6px; height: 1px;
    background: var(--gold);
}

/* Строка с двоеточием на конце — заголовок группы */
.extras__item--head {
    padding-left: 0;
    margin-top: 18px;
    color: var(--gold);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-bottom-color: var(--stroke-gold);
}
.extras__item--head::before { display: none; }

@media (max-width: 780px) {
    .extras { columns: 1; }
}

/* ======================= АДРЕС С ВЫБОРОМ КАРТЫ ========================= */

.addr { position: relative; display: inline-block; }

.addr__toggle {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    border-bottom: 1px dashed currentColor;
    transition: color .3s;
}
.addr__toggle:hover { color: var(--gold); }

.addr__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 80;
    min-width: 232px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    border-radius: var(--r-sm);
    border: 1px solid var(--stroke-gold);
    background: rgba(43, 32, 25, .97);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    animation: fadeUp .35s var(--ease) both;
}
.addr__menu[hidden] { display: none; }

/* В подвале меню открывается вверх — снизу для него нет места */
.footer .addr__menu { top: auto; bottom: calc(100% + 12px); }

/* Верхней строке шапки нужен overflow:hidden, чтобы она схлопывалась при
   скролле, — но он же обрезает выпадающее меню. На время показа открываем. */
.header__top.is-addr-open { overflow: visible; }

.addr__link {
    padding: 11px 14px;
    border-radius: var(--r-xs);
    font-size: .88rem;
    color: var(--text-soft);
    white-space: nowrap;
    transition: background .3s, color .3s;
}
.addr__link:hover { background: var(--surface-2); color: var(--gold); }

/* ======================= ПРОСМОТР ФОТОГРАФИЙ ========================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 72px;
}
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 8, 5, .93);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .35s var(--ease-soft);
}
.lightbox.is-open .lightbox__backdrop { opacity: 1; }

.lightbox__figure {
    position: relative;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: scale(.97);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.lightbox.is-open .lightbox__figure { opacity: 1; transform: none; }
.lightbox__figure:focus { outline: none; }

.lightbox__image {
    max-width: 100%;
    /* Оставляем место подписи и счётчику, иначе кадр упирается в край */
    max-height: calc(100vh - 150px);
    width: auto;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}

.lightbox__caption {
    color: var(--text-soft);
    font-size: .9rem;
    text-align: center;
    max-width: 60ch;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--stroke);
    background: rgba(30, 22, 17, .72);
    backdrop-filter: blur(10px);
    color: var(--text);
    transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover {
    color: var(--gold);
    border-color: var(--stroke-gold);
    background: rgba(30, 22, 17, .9);
}

.lightbox__close { top: 20px; right: 20px; width: 46px; height: 46px; }
.lightbox__close:hover { transform: rotate(90deg); }

.lightbox__nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav:hover { transform: scale(1.06); }
.lightbox__nav[hidden] { display: none; }

.lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    font-family: var(--font-mono, monospace);
    font-size: .8rem;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 780px) {
    .lightbox { padding: 16px 12px 56px; }
    .lightbox__image { max-height: calc(100vh - 170px); }
    .lightbox__nav { width: 44px; height: 44px; margin-top: -22px; }
    .lightbox__nav--prev { left: 6px; }
    .lightbox__nav--next { right: 6px; }
    .lightbox__close { top: 12px; right: 12px; width: 42px; height: 42px; }
}

/* ==================== ВСПЛЫВАЮЩЕЕ ОКНО С АКЦИЯМИ ======================= */

.popup {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.popup[hidden] { display: none; }

.popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 12, 8, .74);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .5s var(--ease-soft);
}

.popup__window {
    position: relative;
    width: min(920px, 100%);
    max-height: min(86vh, 820px);
    overflow-y: auto;
    padding: 46px 46px 38px;
    border-radius: var(--r-lg);
    border: 1px solid var(--stroke-gold);
    background: linear-gradient(160deg, rgba(46, 34, 26, .98) 0%, rgba(30, 22, 17, .99) 100%);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(24px) scale(.98);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}
/* Окну ставится фокус для доступности — системная рамка здесь лишняя,
   у клавиатурной навигации подсвечиваются сами кнопки внутри. */
.popup__window:focus { outline: none; }

.popup.is-open .popup__backdrop { opacity: 1; }
.popup.is-open .popup__window { opacity: 1; transform: none; }

.popup__close {
    position: absolute;
    top: 18px; right: 18px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--text-soft);
    transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease);
}
.popup__close:hover {
    color: var(--gold);
    border-color: var(--stroke-gold);
    background: var(--surface-2);
    transform: rotate(90deg);
}

.popup__head { text-align: center; margin-bottom: 34px; padding: 0 30px; }
.popup__eyebrow {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.popup__title { margin: 0 0 .35em; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.popup__text { margin: 0; color: var(--text-soft); font-size: .96rem; }

.popup__list { display: grid; gap: 16px; }

.popup__offer {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 22px;
    align-items: center;
    padding: 14px;
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    background: var(--surface);
    transition: border-color .45s var(--ease), background .45s var(--ease), transform .45s var(--ease);
}
.popup__offer:hover {
    border-color: var(--stroke-gold);
    background: var(--surface-2);
    transform: translateX(4px);
}

.popup__offer-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: #2a1f18;
}
.popup__offer-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.popup__offer:hover .popup__offer-media img { transform: scale(1.06); }

.popup__badge {
    position: absolute;
    top: 10px; left: 10px;
    padding: 5px 12px;
    border-radius: var(--r-full);
    background: var(--gold-grad);
    color: var(--on-gold);
    font-size: .68rem;
    font-weight: 700;
}

.popup__offer-body { display: flex; flex-direction: column; gap: 6px; padding-right: 14px; }
.popup__offer-title { font-family: var(--font-display); font-size: 1.28rem; color: var(--text); }
.popup__offer-text { color: var(--text-soft); font-size: .9rem; }
.popup__offer-price { display: flex; align-items: baseline; gap: 7px; margin-top: 4px; }

.popup__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .popup { padding: 16px; }
    .popup__window { padding: 38px 20px 28px; max-height: 90vh; }
    .popup__head { padding: 0; margin-bottom: 26px; }
    .popup__offer { grid-template-columns: 1fr; gap: 14px; }
    .popup__offer-body { padding-right: 0; }
    .popup__actions .btn { width: 100%; }
}

/* ============================= АДАПТИВНОСТЬ ============================ */

/* Кыргызские пункты меню заметно длиннее русских («Конференц-залдар»,
   «Атайын сунуштар»), плюс добавился пункт 3D-тура. Поджимаем заранее,
   иначе навигация переносится на вторую строку и шапка растёт. */
@media (max-width: 1560px) {
    .nav { gap: 19px; }
    .nav__link { font-size: .85rem; }
}

@media (max-width: 1380px) {
    .nav { gap: 14px; }
    .nav__link { font-size: .81rem; }
    .header__inner { gap: 20px; }
}

@media (max-width: 1280px) {
    .nav { gap: 11px; }
    .nav__link { font-size: .78rem; }
    .header__inner { gap: 14px; }
    .btn.header__cta { padding: 13px 22px; font-size: .78rem; }
}

@media (max-width: 1180px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .advantages { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: repeat(2, 1fr); }
    .nav { gap: 20px; }
    .nav__link { font-size: .84rem; }
    .header__cta { display: none; }
}

@media (max-width: 980px) {
    .booking-widget { grid-template-columns: repeat(2, 1fr); }
    .booking-widget__submit { grid-column: 1 / -1; }
    .detail { grid-template-columns: 1fr; gap: 40px; }
    .detail__aside { position: static; }
    .checkout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .result { grid-template-columns: 1fr; }
    .result__side { align-items: flex-start; border-left: 0; border-top: 1px solid var(--stroke); }
    .result__note { text-align: left; }
    .result__body { padding: 0 30px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Меню уходит в бургер отдельно от остальной раскладки: замер показал, что
   девять пунктов держатся в строку до 1120px, а на кыргызском ниже этого
   текст внутри пунктов начинает переноситься. Порог 1100px — с запасом. */
@media (max-width: 1100px) {
    .nav {
        position: absolute;
        top: calc(100% + 10px); left: 16px; right: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        border-radius: var(--r);
        border: 1px solid var(--stroke);
        background: rgba(20, 18, 16, .96);
        backdrop-filter: blur(24px);
        padding: 10px 24px 20px;
        display: none;
        box-shadow: var(--shadow-lg);
    }
    .nav.is-open { display: flex; animation: fadeUp .45s var(--ease) both; }
    .nav__link { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--stroke); white-space: normal; }
    .nav__link::after { display: none; }
    .burger { display: flex; margin-left: auto; }
    .header__main { position: relative; }
}

@media (max-width: 780px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .detail__gallery { grid-template-columns: repeat(2, 1fr); }
    .hero__content { padding: 150px 26px 170px; }
    .hero__booking { margin-top: -60px; }
    .hero__dots { bottom: 132px; }
    .header__contact--hide-sm { display: none; }
    .footer__inner { grid-template-columns: 1fr; gap: 40px; }
    .cta__inner { flex-direction: column; align-items: flex-start; }
    .advantages { grid-template-columns: 1fr; }
    .review::before { font-size: 4rem; }
}

@media (max-width: 540px) {
    .booking-widget { grid-template-columns: 1fr; }
    .status-card { padding: 40px 26px; }
    .status-card dl { grid-template-columns: 1fr; }
    .status-card dd { text-align: left; border-bottom: 1px solid var(--stroke); padding-bottom: 12px; }
    .status-card dt { border-bottom: 0; padding-bottom: 0; }
    .card__body, .form-card, .review { padding: 24px; }
}

@media print {
    .header, .footer, .float-whatsapp, .btn { display: none !important; }
    body { background: #fff; color: #000; }
    body::before { display: none; }
}
