/* Bagt köşgi — светлое небо, белый мрамор здания, золото шара и ковровый красный.
   Системные шрифты, чистый CSS: страница лёгкая и быстрая. */

:root {
  /* Цвета и размеры меняются в админке (файл /theme.css переопределяет значения) */
  --navy: #0f1b3f;
  --ink: #0f1b3f;
  --sapphire: #1f3c88;
  --gold: #d4a437;
  --rose: #a4243b;
  --sky: #e6effa;
  --page: #f7f9fd;
  --text: #2b3452;
  --muted: #66708f;
  --white: #fff;
  --line: #dfe7f3;
  --gold-1: #f3d98b;
  --gold-3: #9a6f14;
  --navy-2: #162a61;
  --navy-3: #13234f;
  --navy-d: #09112a;
  --hero-1: #d4e5f8;
  --hero-2: #eaf2fb;
  --glow: rgba(255, 238, 190, .9);
  --haze: rgba(150, 190, 240, .55);
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs: 1; --hs: 1; --hw: 600; --lh: 1.7; --ls: 0em; --sp: 1; --rad: 1;
  --wrap: 1180px;
  --head: 76px;
  --pattern: none; --pat-vis: 1; --pat-o: .1; --pat-s: 120px;
  --bg-o: .85; --hero-bg-o: .7;
  --fx1: #f4aebf; --fx2: #e98aa0; --fx-o: .9;
  --hero-radius: 50%; --hero-ratio: 1 / 1; --hero-order: 0;
  --r: calc(26px * var(--rad));
  --r-s: calc(18px * var(--rad));
  --shadow: 0 18px 50px rgba(20, 33, 61, .12);
  --grad-gold: linear-gradient(135deg, var(--gold-1) 0%, var(--gold) 48%, var(--gold-3) 100%);
}
/* Оттенки считаются из выбранных цветов (в очень старых браузерах остаются значения выше) */
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --gold-1: color-mix(in srgb, var(--gold) 55%, #fff);
    --gold-3: color-mix(in srgb, var(--gold) 62%, #000);
    --navy-2: color-mix(in srgb, var(--navy) 62%, var(--sapphire));
    --navy-3: color-mix(in srgb, var(--navy) 78%, var(--sapphire));
    --navy-d: color-mix(in srgb, var(--navy) 62%, #000);
    --hero-1: color-mix(in srgb, var(--sky) 72%, var(--sapphire));
    --hero-2: color-mix(in srgb, var(--sky) 85%, #fff);
    --glow: color-mix(in srgb, var(--gold) 22%, #fff);
    --haze: color-mix(in srgb, var(--sapphire) 38%, transparent);
    --muted: color-mix(in srgb, var(--text) 72%, #fff);
    --line: color-mix(in srgb, var(--sky) 80%, var(--sapphire));
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); -webkit-text-size-adjust: 100%; font-size: calc(16px * var(--fs)); background: var(--page); }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: var(--lh); letter-spacing: var(--ls); color: var(--text); overflow-x: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: var(--hw); line-height: 1.12; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.bgphoto { position: fixed; inset: 0; z-index: -1; background: center / cover no-repeat; opacity: 0; pointer-events: none; }
.bgphoto::after { content: ""; position: absolute; inset: 0; background: var(--page); opacity: var(--bg-o); }
.has-bg .bgphoto { opacity: 1; }
.has-bg .section--sky { background: color-mix(in srgb, var(--sky) 70%, transparent); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ================= Шапка ================= */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head); color: var(--ink); transition: background .3s, box-shadow .3s, height .3s; }
.site-header.solid { background: rgba(255, 255, 255, .92); box-shadow: 0 4px 24px rgba(20, 33, 61, .1); height: 64px; }
@supports (backdrop-filter: blur(10px)) { .site-header.solid { backdrop-filter: blur(12px) saturate(1.4); } }
.bar { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-right: auto; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; color: var(--gold); flex: none; }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; padding: 8px 14px; font-size: .96rem; font-weight: 500; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: color-mix(in srgb, var(--gold) 15%, transparent); }
.nav a.active { background: var(--ink); color: #fff; }
.langs { display: flex; gap: 2px; padding: 3px; background: rgba(20, 33, 61, .07); border-radius: 999px; }
.langs a { text-decoration: none; font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; transition: background .2s; }
.langs a:hover { background: color-mix(in srgb, var(--gold) 20%, transparent); }
.langs a[aria-current] { background: var(--ink); color: var(--gold-1); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================= Главный экран ================= */
.hero {
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding: calc(var(--head) + 24px) 0 70px;
  background:
    radial-gradient(700px 520px at 78% 30%, var(--glow), transparent 70%),
    radial-gradient(900px 600px at 5% 0%, var(--haze), transparent 70%),
    linear-gradient(180deg, var(--hero-1) 0%, var(--hero-2) 60%, var(--page) 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; opacity: 0; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: var(--page); opacity: var(--hero-bg-o); }
.has-hero-bg .hero__bg { opacity: 1; }
/* узор: цвет — акцент, рисунок — выбранный узор */
.hero::before, .section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--gold);
  opacity: calc(var(--pat-o) * var(--pat-vis));
  -webkit-mask: var(--pattern) center / var(--pat-s); mask: var(--pattern) center / var(--pat-s);
}
.section--navy::before { opacity: calc(var(--pat-o) * var(--pat-vis) * .6); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 5vw, 72px); width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.hero h1 { font-size: calc(clamp(3.6rem, 9vw, 7.4rem) * var(--hs)); letter-spacing: -.025em; line-height: .98; padding-bottom: .06em;
  background: linear-gradient(120deg, var(--navy) 10%, var(--sapphire) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__official { margin: 18px 0 0; max-width: 28em; font-size: 1rem; color: var(--muted); }
.hero__tagline { margin: 22px 0 0; max-width: 16em; font-family: var(--serif); font-size: calc(clamp(1.55rem, 3vw, 2.3rem) * var(--hs)); line-height: 1.25; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 38px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(20, 33, 61, .15); }
.hero__facts li { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); line-height: 1.2; }
.hero__facts span { display: block; font: 500 .82rem var(--sans); color: var(--muted); }
.hero__facts a { text-decoration: none; }

/* Окно с фото на главном экране: форма выбирается в админке, не вращается */
.hero__visual { position: relative; justify-self: center; width: min(100%, var(--hero-w, 470px)); order: var(--hero-order); }
.orbit { position: absolute; inset: -9%; width: 118%; height: 118%; pointer-events: none; color: var(--gold); }
.arch { position: relative; aspect-ratio: var(--hero-ratio); border-radius: var(--hero-radius); overflow: hidden; background: var(--hero-1);
  border: 7px solid #fff; box-shadow: var(--shadow), 0 0 0 2px color-mix(in srgb, var(--gold) 55%, transparent), 0 0 0 14px rgba(255, 255, 255, .35); }
.arch img, .arch .scene { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; display: block; }
.arch .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.arch .slide.on { opacity: 1; }
.badge { position: absolute; left: var(--badge-x, -7%); bottom: var(--badge-y, 10%); width: var(--badge, 150px); height: var(--badge, 150px); filter: drop-shadow(0 10px 20px rgba(20, 33, 61, .3)); }
.badge__bg { fill: var(--navy); stroke: var(--gold); }
.badge__star { color: var(--gold-1); }
.badge__img { pointer-events: none; }
.no-ring .orbit, .no-badge .badge { display: none; }

/* Падающие элементы: лепестки, сердечки, звёзды… (создаются скриптом по настройкам из админки) */
.petals { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; height: 100svh; pointer-events: none; overflow: hidden; z-index: 2; }
.petals--page { position: fixed; inset: 0; height: auto; }
.petal { position: absolute; top: -60px; left: var(--x); width: var(--s); height: var(--s); color: var(--fx1); opacity: 0; animation: fall var(--d) linear var(--w) infinite; }
.petal:nth-child(even) { color: var(--fx2); }
img.petal { height: auto; object-fit: contain; }

@keyframes fall { 0% { transform: translate3d(0, -30px, 0) rotate(0); opacity: 0; } 8% { opacity: var(--fx-o); } 92% { opacity: var(--fx-o); } 100% { transform: translate3d(var(--dx), 108vh, 0) rotate(var(--rot)); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes unfold { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slide { to { transform: translateX(-50%); } }

.hero__text > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .24s; }
.hero__text > :nth-child(5) { animation-delay: .32s; }
.hero__visual { animation: unfold 1.2s cubic-bezier(.2, .7, .2, 1) .1s both; }

/* ================= Кнопки ================= */
.btn { display: inline-block; padding: 14px 30px; border: 2px solid transparent; border-radius: 999px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--grad-gold); color: #2a1d02; box-shadow: 0 10px 26px color-mix(in srgb, var(--gold) 40%, transparent); }
.btn--gold:hover { box-shadow: 0 14px 34px color-mix(in srgb, var(--gold) 55%, transparent); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--line-light { border-color: color-mix(in srgb, var(--gold-1) 70%, transparent); color: #fff; }
.btn--line-light:hover { background: color-mix(in srgb, var(--gold-1) 15%, transparent); }

/* ================= Бегущая строка ================= */
.marquee { background: var(--mq-bg, var(--navy)); color: var(--mq-text, var(--gold-1)); overflow: hidden; padding: 15px 0; border-block: 2px solid var(--mq-line, var(--gold)); }
.marquee[hidden] { display: none; }
.marquee__track { display: flex; width: max-content; align-items: center; animation: slide var(--mq-speed, 40s) linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: calc(1.35rem * var(--mq-fs, 1)); padding: 0 26px; white-space: nowrap; }
.marquee span img { width: 1.4em; height: 1.4em; object-fit: contain; flex: none; }
.marquee i { flex: none; width: var(--mq-sep-w, 14px); height: var(--mq-sep-h, 14px); border-radius: var(--mq-sep-r, 0); transform: rotate(var(--mq-sep-rot, 45deg));
  background: var(--mq-sep-bg, transparent); border: var(--mq-sep-b, 2px) solid var(--mq-line, var(--gold)); }

/* ================= Секции ================= */
.section { position: relative; isolation: isolate; padding: calc(clamp(64px, 9vw, 120px) * var(--sp)) 0; }
.section--sky { background: linear-gradient(180deg, var(--sky), color-mix(in srgb, var(--sky) 55%, #fff)); }
.section--navy { background: radial-gradient(800px 500px at 85% 0%, color-mix(in srgb, var(--sapphire) 55%, transparent), transparent 70%), linear-gradient(165deg, var(--navy-3), var(--navy)); color: rgba(255, 255, 255, .86); }
.section--navy h2, .section--navy h3 { color: #fff; }
.title { font-size: calc(clamp(2.1rem, 4.6vw, 3.4rem) * var(--hs)); margin-bottom: .7em; letter-spacing: -.01em; }
.title::after { content: ""; display: block; width: 84px; height: 4px; margin-top: .5em; border-radius: 4px; background: var(--grad-gold); }
.lead { max-width: 44em; font-size: 1.1rem; color: var(--muted); margin-bottom: 2.2em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }

/* анимация появления при прокрутке (если нет JS — всё видно сразу) */
.js:not(.no-reveal) [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js:not(.no-reveal) [data-reveal].in { opacity: 1; transform: none; }

/* ---------- О центре ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__text p { max-width: 36em; }
.feature { position: relative; aspect-ratio: 1; display: grid; place-content: center; text-align: center; color: #fff; border-radius: 999px 999px 28px 28px; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 30%, color-mix(in srgb, var(--gold-1) 35%, transparent), transparent 70%), linear-gradient(160deg, var(--sapphire), var(--navy)); box-shadow: var(--shadow); }
.feature::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.a30e84cf2eaa.svg") center / 120px; opacity: .6; }
.feature__star { position: absolute; inset: 14%; width: 72%; height: 72%; color: var(--gold); opacity: .55; }
.feature b { position: relative; font-family: var(--serif); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature span { position: relative; font-family: var(--serif); font-size: 1.6rem; color: var(--gold-1); }

.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 480px; }
.collage figure { margin: 0; overflow: hidden; min-height: 150px; }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.collage figure:hover img { transform: scale(1.05); }
.c1 { grid-row: 1 / 3; border-radius: 999px 999px 24px 24px; box-shadow: var(--shadow); }
.c2 { border-radius: var(--r-s) var(--r-s) var(--r-s) 80px; }
.c3 { border-radius: var(--r-s) 80px var(--r-s) var(--r-s); }

.stats { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 34px 36px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; border-radius: var(--r); color: #fff;
  background: radial-gradient(500px 200px at 90% 0%, color-mix(in srgb, var(--gold-1) 22%, transparent), transparent 70%), linear-gradient(135deg, var(--navy), var(--navy-2)); box-shadow: var(--shadow); }
.stats li { display: flex; flex-direction: column; padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--gold-1) 45%, transparent); }
.stats b { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; font-weight: 600; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stats span { margin-top: 8px; font-size: .88rem; line-height: 1.35; color: rgba(255, 255, 255, .78); }

/* ---------- Залы ---------- */
.tabs { display: none; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.js .tabs { display: flex; }
.tabs button { font: 600 1rem var(--sans); padding: 12px 24px; border: 1px solid #c9d8ee; background: var(--white); color: var(--ink); border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.tabs button:hover { border-color: var(--gold); transform: translateY(-1px); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--gold-1); box-shadow: 0 8px 22px rgba(20, 33, 61, .25); }
.panel[hidden] { display: none; }
.panel + .panel { margin-top: 56px; }
.js .panel + .panel { margin-top: 0; }
.panel__title { font-size: 1.7rem; margin-bottom: 20px; }
.js .panel__title { position: absolute; left: -9999px; }
.banner { position: relative; margin: 0 0 26px; height: clamp(190px, 30vw, 340px); overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner figcaption { position: absolute; inset: auto 0 0 0; padding: 70px 28px 20px; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); color: #fff; background: linear-gradient(0deg, rgba(15, 27, 63, .85), transparent); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.hall { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: 0 6px 22px rgba(20, 33, 61, .08); transition: transform .3s, box-shadow .3s; }
.hall:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(20, 33, 61, .18); }
.hall__top { position: relative; padding: 26px 24px 22px; min-height: 140px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden;
  background: radial-gradient(240px 140px at 90% 0%, color-mix(in srgb, var(--gold-1) 45%, transparent), transparent 70%), linear-gradient(140deg, var(--sapphire), var(--navy)); }
.hall__top::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.a30e84cf2eaa.svg") center / 120px; opacity: .55; }
.hall__top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hall__top img + .hall__num { text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.hall__top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 27, 63, .78), rgba(15, 27, 63, .12) 80%); }
.hall__num, .hall__seats { z-index: 1; }
.hall__num { position: relative; font-family: var(--serif); font-size: 3.6rem; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.hall__seats { position: relative; font-size: .92rem; color: var(--gold-1); }
.hall__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.hall h4 { font-size: calc(1.7rem * var(--hs)); margin-bottom: 14px; }
.bar-cap { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar-cap i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--grad-gold); }
.hall__note { margin: 16px 0 0; font-size: .93rem; line-height: 1.6; color: var(--muted); }
.hall__book { margin-top: auto; padding-top: 18px; }
.hall__book span { display: block; font-size: .8rem; color: var(--muted); }
.hall__book a { display: block; text-decoration: none; font-weight: 600; font-size: 1.02rem; color: var(--rose); line-height: 1.6; }
.hall__book a:hover { text-decoration: underline; }
.hall__note + .hall__book { margin-top: 18px; }

/* ---------- Мозаики ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(120px, 15vw, 200px); gap: 12px; grid-auto-flow: dense; }
.mosaic .shot:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic--hotel { margin-top: clamp(36px, 5vw, 64px); }
.mosaic--hotel .shot:last-child { grid-column: span 2; }
.shot { position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--navy); border-radius: var(--r-s); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.shot:hover img { transform: scale(1.07); }
.shot span { position: absolute; inset: auto 0 0 0; padding: 34px 16px 12px; text-align: left; font-size: .9rem; color: #fff; background: linear-gradient(0deg, rgba(15, 27, 63, .85), transparent); }

dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 94vh; overflow: visible; color: #fff; }
dialog#lightbox::backdrop { background: rgba(8, 14, 36, .92); }
#lightbox img { max-width: 100%; max-height: 80vh; width: auto; margin: 0 auto; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
#lightbox p { margin: 14px 0 0; text-align: center; font-family: var(--serif); font-size: 1.25rem; }
.lightbox__close { position: absolute; top: -46px; right: 0; width: 42px; height: 42px; font-size: 2rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* ---------- Отель ---------- */
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.perks li { position: relative; padding: 20px 18px 18px 56px; background: var(--white); border-radius: var(--r-s); box-shadow: 0 6px 22px rgba(20, 33, 61, .07); font-weight: 500; line-height: 1.4; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.perks li:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20, 33, 61, .13); }
.perks li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 16px; height: 16px; background: var(--grad-gold); transform: rotate(45deg); border-radius: 3px; }

/* ---------- Автопарк ---------- */
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.car { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: 0 6px 22px rgba(20, 33, 61, .08); transition: transform .3s, box-shadow .3s; }
.car:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(20, 33, 61, .18); }
.car__top { position: relative; aspect-ratio: 3 / 2; display: flex; align-items: flex-end; padding: 16px;
  background: radial-gradient(260px 160px at 85% 0%, color-mix(in srgb, var(--gold-1) 50%, transparent), transparent 70%), linear-gradient(140deg, var(--sapphire), var(--navy)); overflow: hidden; }
.car__top::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.a30e84cf2eaa.svg") center / 120px; opacity: .5; }
.car__top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.car:hover .car__top img { transform: scale(1.06); }
.car__price { position: relative; margin-left: auto; padding: 9px 18px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .92rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.car__price b { font-family: var(--serif); font-size: 1.45rem; color: var(--rose); }
.car__body { padding: 22px 24px 24px; }
.car h3 { font-size: calc(1.4rem * var(--hs)); }
.car__body p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Курсы ---------- */
.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.course { position: relative; padding: 30px 28px 28px; background: var(--white); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.course::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad-gold); }
.course:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.course__dir { font-size: .93rem; color: var(--muted); margin-bottom: 12px; }
.course h3 { font-size: calc(1.55rem * var(--hs)); color: var(--sapphire); }
.price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; margin-top: 28px; padding: 26px 32px; border-radius: var(--r); color: #fff;
  background: radial-gradient(420px 200px at 95% 0%, color-mix(in srgb, var(--gold-1) 30%, transparent), transparent 70%), linear-gradient(135deg, var(--navy), var(--navy-2)); }
.price b { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price div { font-family: var(--serif); font-size: 1.35rem; }
.price p { margin: 0; flex: 1 1 280px; font-size: .95rem; color: rgba(255, 255, 255, .78); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.duo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }

/* ---------- Контакты ---------- */
.contact { overflow: hidden; }
.contact .wrap { position: relative; }
.info { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 22px; }
.info li { display: flex; gap: 16px; align-items: flex-start; font-size: 1.15rem; }
.info svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 50%; fill: none; stroke: var(--gold-1); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, var(--gold-1) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold-1) 40%, transparent); }
.info span { display: block; font-size: .85rem; color: var(--gold-1); }
.info a { text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--gold-1) 50%, transparent); }
.info em { font-style: normal; font-size: .95rem; color: rgba(255, 255, 255, .6); }
.form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 38px); border-radius: var(--r); background: rgba(255, 255, 255, .08); border: 1px solid color-mix(in srgb, var(--gold-1) 30%, transparent); }
@supports (backdrop-filter: blur(10px)) { .form { backdrop-filter: blur(14px); } }
.form label { display: grid; gap: 6px; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.form input:not(.hp), .form textarea { width: 100%; font: inherit; font-size: 1rem; color: #fff; padding: 14px 18px; background: rgba(255, 255, 255, .09); border: 1px solid color-mix(in srgb, var(--gold-1) 35%, transparent); border-radius: 16px; }
.form input:focus, .form textarea:focus { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 0; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.6em; margin: 0; color: var(--gold-1); }
.form__status.error { color: #ffb4bd; }

/* ---------- Кнопка звонка и подвал ---------- */
.callfab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: none; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; background: var(--grad-gold); color: #2a1d02; font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px color-mix(in srgb, var(--gold-3) 50%, transparent); }
.callfab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-footer { background: var(--navy-d); color: rgba(255, 255, 255, .7); padding: 26px 0; font-size: .9rem; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }

/* ================= Планшет и телефон ================= */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .burger { display: flex; }
  .nav { position: fixed; inset: 64px 12px auto 12px; flex-direction: column; gap: 0; padding: 10px; border-radius: 24px; background: rgba(255, 255, 255, .98); box-shadow: var(--shadow);
    transform: translateY(-14px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; }
  .hero__grid, .about, .two { grid-template-columns: 1fr; }
  .hero { padding-bottom: 56px; }
  .hero__visual { width: min(78%, 400px); order: -1; margin-bottom: 10px; }
  .hero h1 { line-height: 1; }
  .feature { max-width: 380px; justify-self: center; width: 100%; }
  .collage { min-height: 400px; }
}
@media (max-width: 640px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .mosaic .shot:first-child { grid-column: span 2; grid-row: span 2; }
  .mosaic--hotel .shot:last-child { grid-column: auto; }
  .perks { grid-template-columns: 1fr; }
  .callfab { display: inline-flex; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .brand { font-size: 1.3rem; }
  .hero__visual { width: min(86%, 340px); }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .hero__facts { gap: 10px 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 26px 22px; }
  .stats li:last-child { grid-column: 1 / -1; }
  .collage { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .c1 { grid-row: auto; }
  .collage figure { min-height: 0; }
  .collage img { aspect-ratio: 4 / 3; }
  .duo { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .badge { width: calc(var(--badge, 150px) * .72); height: calc(var(--badge, 150px) * .72); left: max(var(--badge-x, -7%), -4%); }
  .form .btn { justify-self: stretch; }
  .langs a { padding: 5px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js:not(.no-reveal) [data-reveal] { opacity: 1; transform: none; }
  .petals { display: none; }
}

.no-marquee .marquee, .no-stats .stats { display: none; }

/* ================= Карточки, открывающие окно ================= */
.tile { position: relative; cursor: pointer; }
.more { all: unset; cursor: pointer; display: block; }
.more::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.more:focus-visible { outline: none; }
.tile:has(.more:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.tile .hall__book a { position: relative; z-index: 2; }
.tile__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: .92rem; color: var(--sapphire); }
.tile__more::after { content: "\203A"; font-size: 1.4em; line-height: 1; transition: transform .25s; }
.tile:hover .tile__more::after { transform: translateX(5px); }
.hall__body .tile__more { margin-top: 12px; }
.hall__book + .tile__more { margin-top: 14px; }
.course__img { width: calc(100% + 56px); max-width: none; margin: -30px -28px 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.course__body { position: relative; }

/* ================= Окно с подробностями ================= */
html.modal-open { overflow: hidden; }
dialog.modal { border: 0; padding: 0; width: min(1040px, 94vw); max-height: 92vh; overflow: auto; border-radius: var(--r); background: var(--white); color: var(--text); box-shadow: 0 30px 90px rgba(8, 14, 36, .5); }
dialog.modal[open] { animation: pop .35s cubic-bezier(.2, .7, .2, 1); }
dialog.modal::backdrop { background: rgba(8, 14, 36, .72); backdrop-filter: blur(3px); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__close { position: sticky; top: 10px; float: right; z-index: 5; margin: 10px 10px -52px 0; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.9rem; line-height: 1; color: var(--ink); background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.modal__close:hover { background: var(--gold); }
.mdl { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 420px; }
.mdl--solo { grid-template-columns: 1fr; }
.mdl__info { padding: clamp(24px, 4vw, 44px); align-self: center; }
.mdl__info h3 { font-size: calc(clamp(1.8rem, 3.4vw, 2.6rem) * var(--hs)); }
.mdl__kind { margin: 6px 0 0; color: var(--muted); }
.mdl__fact { margin: 18px 0 14px; font-size: 1.05rem; color: var(--ink); }
.mdl__fact b { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--rose); }
.mdl__note { padding: 12px 16px; border-left: 4px solid var(--gold); background: var(--sky); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: .95rem; }
.mdl__book { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.mdl__book span { display: block; font-size: .85rem; color: var(--muted); }
.mdl__book a { display: block; font-weight: 700; font-size: 1.15rem; line-height: 1.7; color: var(--rose); text-decoration: none; }
.mdl__info .btn { margin-top: 10px; }

.gal { background: var(--navy); display: flex; flex-direction: column; min-width: 0; }
.gal__stage { position: relative; flex: 1; min-height: 280px; background: #000; overflow: hidden; }
.gal__big { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal__nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.8rem; line-height: 1; color: var(--ink); background: rgba(255, 255, 255, .88); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: background .2s, transform .2s; }
.gal__nav:hover { background: var(--gold); }
.gal__prev { left: 12px; }
.gal__next { right: 12px; }
.gal__count { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; color: #fff; background: rgba(15, 27, 63, .75); }
.gal__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; background: var(--navy); }
.gal__thumb { flex: none; width: 84px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .6; background: none; transition: opacity .2s, border-color .2s; }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumb:hover { opacity: 1; }
.gal__thumb.on { opacity: 1; border-color: var(--gold); }

@media (max-width: 860px) {
  .mdl { grid-template-columns: 1fr; }
  .gal__stage { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
  dialog.modal { max-height: 94vh; width: 96vw; }
}

/* Новости с tdh.gov.tm */
.newsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--news-min, 300px)), 1fr)); gap: var(--news-gap, 20px); margin-bottom: 1.4em; }
.newscard { position: relative; display: flex; flex-wrap: wrap; flex-direction: var(--news-row, column); align-items: var(--news-ai, stretch); gap: 8px 18px; padding: var(--news-pad, 20px 22px 22px); border-radius: var(--news-rad, var(--r)); background: var(--news-bg, #fff); color: var(--news-fg, var(--text)); border: solid var(--line); border-width: var(--news-bw, 1px); box-shadow: var(--news-shadow, var(--shadow)); transition: transform .25s, border-color .2s; }
.newscard:hover, .newscard:focus-within { border-color: var(--gold); }
.newscard time { color: var(--news-time, var(--muted)); font-size: .88rem; font-variant-numeric: tabular-nums; flex: none; }
.newscard__main { flex: 1 1 var(--news-basis, auto); min-width: 0; }
.newscard h3 { font-size: calc(var(--news-fs, 1.08rem) * var(--hs)); line-height: 1.35; margin: 0 0 6px; color: inherit; display: -webkit-box; -webkit-line-clamp: var(--news-clamp, 3); -webkit-box-orient: vertical; overflow: hidden; }
.newscard__sum { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; display: var(--news-sum, -webkit-box); -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.newscard__go { display: var(--news-btn, inline-flex); font-weight: 700; font-size: .9rem; color: var(--rose); }
.no-news-src .news__src, .no-news-src .mdl--news .mdl__note { display: none; }
.news__src { color: var(--muted); font-size: .88rem; }
.news__src a { color: var(--sapphire); }
.mdl__note a { color: var(--sapphire); }

/* Окно новости: текст может быть длинным, поэтому фото не растягивается на всю высоту, а остаётся на виду */
.mdl--news { align-items: start; }
.mdl--news .gal { position: sticky; top: 0; align-self: start; }
.mdl--news .gal__stage { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
.mdl--news .mdl__info { align-self: start; }

/* ---- Цены в окне номера ---- */
.rates { margin-top: 18px; }
.rates h4 { margin: 18px 0 8px; font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.rates__t { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rates__t th, .rates__t td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rates__t thead th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.rates__t tbody th { font-weight: 600; }
.rates__t td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rates__note { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 480px) {
  .rates__t th, .rates__t td { padding: 8px 6px; font-size: .9rem; }
  .rates__t td { white-space: normal; }
}
