:root {
  --bg: #fafaf8;
  --bg-alt: #f1f0ec;
  --ink: #17171a;
  --ink-2: #55555c;
  --line: #e2e0da;
  --dark: #1b181d;                 /* фон тёмного логотипа */
  --accent: #b47c68;               /* розовое золото из логотипа */
  --rose-grad: linear-gradient(100deg, #9a6453 0%, #d6a593 45%, #f1d3c4 55%, #b47c68 100%);
  --festive: #1f3b2d;
  --festive-2: #8f2a2a;
  --ok: #2f7a4f;
  --err: #b3362f;
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 20px 50px -20px rgba(20, 20, 22, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; } /* ровные цифры: у Cormorant по умолчанию «3», «5», «9» опускаются ниже строки */
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 7vw, 92px); }
h2 { font-size: clamp(34px, 4.4vw, 56px); }
h3 { font-size: 28px; }
button { font: inherit; cursor: pointer; }
body.no-scroll, body.is-loading { overflow: hidden; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 14px; }
.eyebrow--light { color: #e3b8a4; }
.center { text-align: center; margin-top: 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #2d2d31; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--dark); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--dark); }
.btn--festive { background: var(--festive); color: #fff; }
.btn--festive:hover { background: #2a4d3c; }
.link-btn { background: none; border: 0; color: var(--ink-2); text-decoration: underline; margin: 18px auto 0; display: block; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; background: linear-gradient(180deg, rgba(250,250,248,.85), rgba(250,250,248,0)); }
.header.is-scrolled { background: rgba(250,250,248,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__word { font-family: "Montserrat", var(--sans); font-weight: 400; font-size: 22px; letter-spacing: .2em; text-transform: uppercase; line-height: 1; text-align: center;
  background: linear-gradient(100deg, #6f4134 0%, #a86f5c 30%, #d9a690 45%, #a86f5c 60%, #6f4134 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s ease-in-out infinite; }
.logo__word small { display: block; font-size: 9.5px; letter-spacing: .5em; margin-top: 6px; font-weight: 500; padding-left: .5em; }
.logo__word--xl { font-size: clamp(40px, 8vw, 84px); letter-spacing: .22em; padding-left: .22em; background-image: linear-gradient(100deg, #8f5a4a 0%, #c89482 30%, #f6dccf 45%, #c89482 60%, #8f5a4a 100%); }
.logo__word--xl small { font-size: clamp(12px, 1.6vw, 18px); margin-top: 14px; }
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .8; white-space: nowrap; }
.nav a[aria-current] { opacity: 1; color: var(--accent); }
@media (max-width: 1140px) and (min-width: 961px) { .nav { gap: 18px; } .nav a { font-size: 14px; } .header__inner { gap: 20px; } }
.nav a:hover { opacity: 1; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s; }
.burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: center; padding: 110px 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(250,250,248,.94) 0%, rgba(250,250,248,.8) 42%, rgba(250,250,248,.25) 75%, rgba(250,250,248,.1) 100%), linear-gradient(180deg, transparent 70%, rgba(250,250,248,.9)); }
.hero__content { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

/* Коллаж фото справа на первом экране */
.hero__collage { position: relative; height: clamp(420px, 56vh, 580px); }
.hc { position: absolute; margin: 0; border-radius: 20px; overflow: hidden; background: #ddd; box-shadow: 0 40px 80px -30px rgba(27,24,29,.45), 0 0 0 6px rgba(255,255,255,.85);
  opacity: 0; transform: translateY(40px) rotate(var(--r, 0deg)) scale(.96); transition: opacity 1.2s var(--ease) calc(var(--d) + .5s), transform 1.4s var(--ease) calc(var(--d) + .5s); }
.hc img { width: 100%; height: 100%; object-fit: cover; }
.is-loaded .hc { opacity: 1; transform: rotate(var(--r, 0deg)); }
.hc--1 { --r: -3deg; width: 64%; height: 70%; left: 4%; top: 4%; z-index: 2; }
.hc--2 { --r: 4deg; width: 46%; height: 52%; right: 0; top: 0; z-index: 1; }
.hc--3 { --r: 2deg; width: 44%; height: 50%; right: 6%; bottom: 0; z-index: 3; }
.hero__collage .hc { animation: drift 9s ease-in-out infinite; }
.hero__collage .hc--2 { animation-delay: -3s; } .hero__collage .hc--3 { animation-delay: -6s; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hc-badge { position: absolute; left: 0; bottom: 8%; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 18px; background: var(--dark); color: #fff; box-shadow: 0 24px 50px -20px rgba(27,24,29,.6);
  opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) calc(var(--d) + .5s), transform 1s var(--ease) calc(var(--d) + .5s); }
.is-loaded .hc-badge { opacity: 1; transform: none; }
.hc-badge b { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1; background: linear-gradient(100deg, #c89482, #f6dccf 50%, #e3b8a4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-badge span { font-size: 13px; color: rgba(255,255,255,.7); max-width: 80px; line-height: 1.3; }
@media (max-width: 960px) {
  .hero { min-height: auto; padding: 110px 0 70px; }
  .hero__content { grid-template-columns: 1fr; gap: 40px; }
  .hero__collage { height: 340px; }
  .hero__scroll { display: none; }
}
@media (max-width: 560px) { .hero__collage { height: 260px; } .hc-badge { padding: 10px 14px; } .hc-badge b { font-size: 26px; } }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 520px; color: var(--ink-2); margin: 0 0 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Stats */
.stats { border-block: 1px solid var(--line); background: var(--bg); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__grid div { padding: 28px 20px; border-left: 1px solid var(--line); }
.stats__grid div:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1.1; }
.stats span { color: var(--ink-2); font-size: 14px; }
.stats b span { color: inherit; font-size: inherit; font-variant-numeric: tabular-nums lining-nums; }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section__head { max-width: 680px; margin-bottom: 36px; }
.section__sub { color: var(--ink-2); font-size: 18px; margin: 0; }

/* Halls */
.halls { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hall { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.hall__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.hall__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; cursor: zoom-in; }
.hall:hover .hall__media img { transform: scale(1.04); }
.hall__count { position: absolute; right: 14px; bottom: 14px; background: rgba(20,20,22,.75); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 0; }
.hall__badge { position: absolute; left: 14px; top: 14px; background: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; }
.hall__body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.hall__sub { color: var(--ink-2); margin: -6px 0 18px; }
.hall__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: auto 0 20px; padding-top: 18px; }
.hall__price b { font-size: 30px; font-family: var(--serif); font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .hall__price span { flex-basis: 100%; } }
.hall__price span { color: var(--ink-2); font-size: 14px; }

/* Festive placeholder (пока нет фото новогоднего зала) */
.festive { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #f6ecd8; padding: 24px;
  background:
    radial-gradient(circle at 20% 25%, rgba(255,214,140,.55) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 15%, rgba(255,214,140,.5) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 60%, rgba(255,214,140,.5) 0 2px, transparent 3px),
    radial-gradient(circle at 35% 70%, rgba(255,214,140,.45) 0 2px, transparent 3px),
    radial-gradient(circle at 55% 40%, rgba(255,214,140,.4) 0 1.5px, transparent 2.5px),
    radial-gradient(ellipse at 50% 120%, rgba(143,42,42,.9), transparent 60%),
    linear-gradient(160deg, #1a3327, #0f1f17);
  background-size: 120px 120px, 140px 140px, 160px 160px, 110px 110px, 90px 90px, 100% 100%, 100% 100%; }
.festive svg { width: 110px; height: auto; margin: 0 auto 14px; filter: drop-shadow(0 0 18px rgba(255,214,140,.35)); }
.festive b { font-family: var(--serif); font-size: 30px; font-weight: 500; display: block; }
.festive small { opacity: .75; }

.checklist { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Prices */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.price-card { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.price-card h3 { margin-bottom: 18px; }
.price-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px dashed var(--line); }
.price-row b { font-weight: 700; }
.extras__title { margin-top: 48px; }
.extras { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.extras li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; display: flex; justify-content: space-between; gap: 12px; }
.extras li b { white-space: nowrap; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split--reverse .split__text { order: 2; }
.split__text p { color: var(--ink-2); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; cursor: zoom-in; }
.mosaic img:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.mosaic--two img, .mosaic--two img:first-child { grid-column: auto; aspect-ratio: 3/4; }

/* Gallery */
/* Альбомы: стопка из трёх фото, при наведении раскрывается веером */
.albums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.album { display: block; min-width: 0; text-align: left; color: inherit; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
/* квадрат задан через padding, а не aspect-ratio: так он одинаков и во встроенном браузере Telegram на iPhone */
.album__stack { position: relative; display: block; height: 0; padding-bottom: calc(100% - 24px); margin: 12px 12px 22px; }
.album__p { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: 5px solid #fff;
  box-shadow: 0 18px 40px -20px rgba(27,24,29,.45); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.album__p--1 { z-index: 3; }
.album__p--2 { z-index: 2; transform: rotate(-5deg) translate(-4%, 1%); }
.album__p--3 { z-index: 1; transform: rotate(5deg) translate(4%, 2%); }
/* веер — только там, где есть мышь: на телефоне после касания он «залипал» */
@media (hover: hover) {
  .album:hover .album__p--1 { transform: translateY(-6px); box-shadow: 0 30px 50px -22px rgba(27,24,29,.55); }
  .album:hover .album__p--2 { transform: rotate(-10deg) translate(-12%, 2%); }
  .album:hover .album__p--3 { transform: rotate(10deg) translate(12%, 3%); }
  .album:hover .album__go { transform: translateX(4px); }
}
.album:focus-visible .album__title { text-decoration: underline; }
.album__count { position: absolute; z-index: 4; right: 12px; bottom: 12px; background: rgba(27,24,29,.78); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.album__title, .album__go { display: block; margin: 0 0 4px 12px; }
.album__title { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.album__go { font-size: 14px; font-weight: 600; color: var(--accent); transition: transform .4s var(--ease); }
/* телефон: альбомы листаются вбок */
@media (max-width: 700px) {
  .albums { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .albums::-webkit-scrollbar { display: none; }
  .album { flex: 0 0 62%; width: 62%; scroll-snap-align: start; }
  /* на телефоне альбом не «въезжает» при прокрутке — в Telegram это давало рывки */
  .album.reveal { opacity: 1; transform: none; transition: none; }
  .album__title { font-size: 21px; }
}
.lightbox__count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 14px; letter-spacing: .1em; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 28px; }
.steps li::before { content: "0" counter(s); font-family: var(--serif); font-size: 44px; color: var(--accent); display: block; line-height: 1; margin-bottom: 18px; }
.steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; transition: transform .3s; color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); margin: 12px 0 0; }
#rules .split { align-items: start; }

/* Contacts */
#contacts.section { padding: 44px 0; }
.contacts { display: grid; grid-template-columns: 190px 1fr auto; gap: 44px; align-items: center; }
.contacts .eyebrow { margin-bottom: 8px; }
.contacts__addr { font-size: 20px; margin: 0 0 2px; }
.contacts__hours { color: rgba(255,255,255,.6); margin: 0 0 12px; font-size: 14px; }
.contacts__hours:last-child { margin-bottom: 0; }
.contacts .transit-pills--dark { margin: 0 0 12px; gap: 8px; }
.contacts .transit-pill { padding: 5px 14px 5px 5px; font-size: 13px; }
.contacts__side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-left: 40px; border-left: 1px solid rgba(255,255,255,.1); }
.contacts__phone { font-family: var(--serif); font-size: 32px; line-height: 1; text-decoration: none; white-space: nowrap; }
.contacts__phone:hover { color: #e3b8a4; }
.contacts__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.contacts__links a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.contacts__links a:hover { border-color: #fff; }
.contacts__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.contacts__logo { width: 190px; } /* PNG с прозрачным фоном */
@media (max-width: 960px) {
  .contacts { grid-template-columns: 1fr; gap: 24px; }
  .contacts__logo { width: 150px; }
  .contacts__side { padding-left: 0; border-left: 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
}

.footer { background: var(--dark); color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; padding: 24px 0; }
.footer a { text-decoration: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,12,.94); display: flex; align-items: center; justify-content: center; padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 8px; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; opacity: .75; padding: 10px 16px; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 12px; right: 14px; }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }

/* ===== Booking ===== */
.booking { position: fixed; inset: 0; z-index: 90; background: rgba(20,20,22,.55); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 40px 16px; }
.booking[hidden] { display: none; }
.booking__panel { position: relative; background: var(--bg); width: min(720px, 100%); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.booking__close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 34px; line-height: 1; color: var(--ink-2); }
.booking__progress { display: flex; gap: 8px; margin-bottom: 28px; font-size: 13px; font-weight: 600; }
.booking__progress span { flex: 1; padding-top: 10px; border-top: 3px solid var(--line); color: var(--ink-2); }
.booking__progress span.is-active, .booking__progress span.is-done { border-color: var(--ink); color: var(--ink); }
.bk-step[hidden] { display: none; }
.bk-step h2 { font-size: 40px; }

.field { margin-bottom: 22px; }
.field > label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field > label small { font-weight: 400; color: var(--ink-2); }
.field--row { display: flex; align-items: center; justify-content: space-between; }
.field--row > label { margin: 0; }
input, textarea { width: 100%; font: inherit; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: transparent; }
input.is-invalid { border-color: var(--err); }

.hall-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hall-opt { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.hall-opt b { display: block; font-size: 16px; }
.hall-opt span { font-size: 13px; color: var(--ink-2); }
.hall-opt.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.calendar { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; text-transform: capitalize; }
.cal-head button { background: none; border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 12px; color: var(--ink-2); padding: 4px 0; }
.cal-grid button { aspect-ratio: 1; max-height: 46px; border: 0; background: none; border-radius: 10px; font-size: 15px; }
.cal-grid button:hover:not(:disabled) { background: var(--bg-alt); }
.cal-grid button:disabled { color: #c5c3bd; cursor: default; }
.cal-grid button.is-weekend { color: var(--festive-2); }
.cal-grid button.is-active { background: var(--ink); color: #fff; }
.cal-grid button.is-today { box-shadow: inset 0 0 0 1px var(--ink-2); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 0; font-size: 14px; font-weight: 500; }
.slot:disabled { background: repeating-linear-gradient(-45deg, #f3f2ee, #f3f2ee 4px, #ebe9e3 4px, #ebe9e3 8px); color: #b5b3ad; text-decoration: line-through; cursor: not-allowed; }
.slot.is-range { background: #e9e5dc; border-color: #d7d0c0; }
.slot.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.slots-empty { color: var(--ink-2); font-size: 14px; grid-column: 1 / -1; margin: 0; }

.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; }
.stepper output { min-width: 56px; text-align: center; font-weight: 600; }

.extras-pick { display: grid; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.extras-pick .check { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.extras-pick .check span { flex: 1; }
.extras-pick .check b { white-space: nowrap; }

.bk-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.bk-total span { display: block; font-size: 13px; color: var(--ink-2); }
.bk-total b { font-size: 26px; font-family: var(--serif); font-weight: 600; }
.bk-error { color: var(--err); font-size: 14px; margin: 12px 0 0; min-height: 1em; }

.summary { background: var(--bg-alt); border-radius: 14px; padding: 16px 20px; margin-bottom: 22px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.summary div span:first-child { color: var(--ink-2); }
.summary div span:last-child { text-align: right; font-weight: 500; }

/* Шаг 3 — реквизиты */
.pay-head { text-align: center; }
.pay-timer { color: var(--ink-2); margin: -6px 0 22px; }
.pay-amount { background: var(--dark); color: #fff; border-radius: 18px; padding: 24px; text-align: center; margin-bottom: 20px; }
.pay-amount span { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; opacity: .65; }
.pay-amount b { display: block; font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1.15; }
.pay-amount small { opacity: .65; }
.requisites { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.req { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.req:first-child { border-top: 0; }
.req__label { font-size: 13px; color: var(--ink-2); width: 130px; flex: none; }
.req__value { flex: 1; font-weight: 600; word-break: break-word; }
.req__copy { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 6px 12px; font-size: 13px; flex: none; }
.req__copy.is-copied { background: var(--ok); color: #fff; border-color: var(--ok); }
.pay-note { font-size: 14px; color: var(--ink-2); background: #fbf5ea; border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 18px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.send-status { font-size: 14px; padding: 12px 16px; border-radius: 12px; margin: 18px 0 0; display: flex; gap: 10px; align-items: flex-start; }
.send-status::before { flex: none; font-weight: 700; }
.send-status--wait { background: var(--bg-alt); color: var(--ink-2); }
.send-status--wait::before { content: ""; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.send-status--ok { background: #eaf4ee; color: #24603e; }
.send-status--ok::before { content: "✓"; }
.send-status--err { background: #fbecea; color: #8e2c25; }
.send-status--err::before { content: "!"; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Статус брони для клиента */
.track { margin-top: 18px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.track__head { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); font-weight: 600; }
.track__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.track--wait .track__dot { animation: pulseRose 1.8s ease-out infinite; }
.track--ok { background: #eef6f1; border-color: #bfdcca; }
.track--ok .track__dot { background: var(--ok); }
.track--err { background: #fbefed; border-color: #ecc8c3; }
.track--err .track__dot { background: var(--err); }
.track__title { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.15; margin: 8px 0 4px; }
.track__text { margin: 0; color: var(--ink-2); font-size: 15px; }
.track__hint { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.track__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mybook { position: fixed; z-index: 70; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  padding: 10px 18px 10px 14px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 14px; text-decoration: none;
  box-shadow: 0 18px 40px -16px rgba(27,24,29,.6); animation: rise .6s var(--ease); }
.mybook[hidden] { display: none; }
.mybook__dot { width: 9px; height: 9px; border-radius: 50%; background: #e3b8a4; flex: none; animation: pulseRose 1.8s ease-out infinite; }
.mybook--confirmed .mybook__dot { background: #6fcf97; animation: none; }
.mybook--rejected .mybook__dot, .mybook--cancelled .mybook__dot, .mybook--expired .mybook__dot { background: #eb7c72; animation: none; }
.again { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.again .link-btn { margin: 0; }
/* список «Мои брони» */
.bron-list { display: grid; gap: 12px; margin-top: 8px; }
.bron-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 16px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.bron-item:hover { transform: translateY(-2px); border-color: #e3c4b6; box-shadow: 0 18px 36px -24px rgba(27,24,29,.45); }
.bron-item__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); grid-row: span 2; }
.bron-item--ok .bron-item__dot { background: var(--ok); }
.bron-item--err { opacity: .7; }
.bron-item--err .bron-item__dot { background: var(--err); }
.bron-item--wait .bron-item__dot { animation: pulseRose 1.8s ease-out infinite; }
.bron-item__main b { display: block; font-size: 16px; }
.bron-item__main span { color: var(--ink-2); font-size: 14px; }
.bron-item__status { font-size: 13px; font-weight: 600; text-align: right; }
.bron-item--ok .bron-item__status { color: var(--ok); }
.bron-item--err .bron-item__status { color: var(--err); }
.bron-item--wait .bron-item__status { color: var(--accent); }
.bron-tg { margin-top: 26px; padding: 18px 20px; border-radius: 16px; background: var(--bg-alt); font-size: 15px; color: var(--ink-2); }
.bron-tg b { color: var(--ink); }
.bron-tg .btn { margin-top: 12px; }
@media (max-width: 560px) { .bron-item { grid-template-columns: auto 1fr; } .bron-item__status { grid-column: 2; text-align: left; } }
.mybron__inner { max-width: 640px; }
.mybron h1 { font-size: clamp(36px, 5vw, 56px); }
.mybron__empty { color: var(--ink-2); }
.mybron__actions { margin-top: 26px; }
.pay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--dark); color: #fff; padding: 12px 22px; border-radius: 999px; z-index: 120; font-size: 14px; }

/* ===== Метро ===== */
.metro-m { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none; background: #a1a2a3; color: #fff; font: 700 13px/1 var(--sans); box-shadow: 0 0 0 3px rgba(161,162,163,.25); }
.metro-m--lg { width: 44px; height: 44px; font-size: 22px; box-shadow: 0 0 0 6px rgba(161,162,163,.2); }
.metro-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; margin-bottom: 22px; border-radius: 999px; text-decoration: none; font-size: 14px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(10px); border: 1px solid rgba(180,124,104,.35); box-shadow: 0 10px 30px -15px rgba(27,24,29,.35); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.metro-badge:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 16px 34px -16px rgba(154,100,83,.6); }
.metro-badge__arrow { color: var(--accent); transition: transform .4s var(--ease); }
.metro-badge:hover .metro-badge__arrow { transform: translateX(4px); }
.metro-badge--dark { background: rgba(255,255,255,.06); border-color: rgba(227,184,164,.35); color: #fff; margin: 4px 0 24px; box-shadow: none; }
.metro-badge--dark .metro-badge__arrow { color: #e3b8a4; }
.metro-badge .metro-m { animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(161,162,163,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(161,162,163,0); } }

.metro-strip { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.metro-strip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 140% at 15% 50%, rgba(200,148,130,.22), transparent 60%), radial-gradient(40% 120% at 90% 50%, rgba(170,140,220,.12), transparent 60%); }
.metro-strip__inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; padding: 56px 0; }
.metro-strip__time { display: flex; align-items: center; gap: 16px; }
.metro-strip__num { font-family: var(--serif); font-size: clamp(64px, 9vw, 120px); line-height: 1; font-weight: 500;
  background: linear-gradient(100deg, #b47c68, #f6dccf 50%, #c89482); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metro-strip__unit { font-size: 15px; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.7); line-height: 1.4; }
.metro-strip__station { display: flex; align-items: center; gap: 16px; font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); line-height: 1; margin: 0 0 10px; }
.metro-strip__text p:last-child { margin: 0; color: rgba(255,255,255,.6); }
@media (max-width: 960px) { .metro-strip__inner { grid-template-columns: 1fr; gap: 22px; padding: 44px 0; } .metro-strip .btn { justify-self: start; } }

/* ===== Транспорт: ж/д станция и метро ===== */
.train-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none; color: #fff; background: linear-gradient(135deg, #c89482, #9a6453); box-shadow: 0 0 0 3px rgba(180,124,104,.22); }
.train-ico svg { width: 15px; height: 15px; }
.train-ico--lg { width: 44px; height: 44px; } .train-ico--lg svg { width: 24px; height: 24px; }
.transit-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.transit-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; text-decoration: none; font-size: 14px;
  background: rgba(255,255,255,.8); backdrop-filter: blur(10px); border: 1px solid rgba(180,124,104,.35); box-shadow: 0 10px 30px -15px rgba(27,24,29,.35); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.transit-pill:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 16px 34px -16px rgba(154,100,83,.6); }
.transit-pill:first-child { background: linear-gradient(100deg, #fff, #fbeee8); border-color: rgba(180,124,104,.6); }
.transit-pill:first-child .train-ico { animation: pulseRose 2.6s ease-out infinite; }
.transit-pill .metro-m { animation: pulse 2.6s ease-out infinite; }
@keyframes pulseRose { 0% { box-shadow: 0 0 0 0 rgba(180,124,104,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(180,124,104,0); } }
.transit-pills--dark { margin: 6px 0 24px; }
.transit-pills--dark .transit-pill { background: rgba(255,255,255,.06); border-color: rgba(227,184,164,.35); color: #fff; box-shadow: none; }

.transit-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.transit-head h2 { margin-bottom: 8px; }
.transit-head__addr { margin: 0; color: rgba(255,255,255,.65); font-size: 17px; }
.metro-strip > .container { position: relative; padding: 56px 0; }
.transit { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.transit-card { position: relative; display: flex; align-items: center; gap: 26px; padding: 30px 32px; border-radius: 24px; text-decoration: none; color: inherit; overflow: hidden;
  background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s, opacity 1s var(--ease) var(--d, 0s); }
a.transit-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(27,24,29,.5); border-color: #e3c4b6; }
.transit-card__time { display: flex; align-items: baseline; gap: 6px; flex: none; }
.transit-card__time b { font-family: var(--serif); font-weight: 500; font-size: clamp(64px, 8vw, 104px); line-height: 1; padding-bottom: .04em;
  background: linear-gradient(100deg, #8f5a4a, #c89482 45%, #e7b9a5 55%, #9a6453); -webkit-background-clip: text; background-clip: text; color: transparent; }
.transit-card__time small { font-size: 15px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); }
.transit-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.transit-card__kind { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.transit-card__name { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; }
.transit-card__line { font-size: 13px; color: var(--ink-2); }
.transit-card__arrow { margin-left: auto; font-size: 24px; color: var(--accent); transition: transform .4s var(--ease); }
a.transit-card:hover .transit-card__arrow { transform: translateX(6px); }
.transit-card--main::after { content: "Ближе всего"; position: absolute; top: 16px; right: 18px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: linear-gradient(100deg, #9a6453, #c89482); padding: 5px 10px; border-radius: 999px; }
/* в тёмном блоке */
.metro-strip .transit-card { background: rgba(255,255,255,.05); border-color: rgba(227,184,164,.18); color: #fff; }
.metro-strip .transit-card--main { background: linear-gradient(120deg, rgba(200,148,130,.22), rgba(255,255,255,.04) 70%); border-color: rgba(227,184,164,.45); }
.metro-strip .transit-card__time small, .metro-strip .transit-card__kind, .metro-strip .transit-card__line { color: rgba(255,255,255,.65); }
.metro-strip .transit-card__time b { background-image: linear-gradient(100deg, #c89482, #f6dccf 50%, #e3b8a4); }
.metro-strip a.transit-card:hover { border-color: rgba(227,184,164,.7); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.transit--page { margin-top: 36px; }
@media (max-width: 960px) { .transit { grid-template-columns: 1fr; } .metro-strip > .container { padding: 44px 0; } }
@media (max-width: 560px) { .transit-card { padding: 24px 20px; gap: 18px; } .transit-card__arrow { display: none; } .transit-card--main { padding-top: 46px; } .transit-card--main::after { top: 14px; right: auto; left: 20px; } .transit-card__time b { font-size: 58px; } }

/* Вкладки маршрутов */
.route-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: -20px 0 34px; }
.route-tab { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 15px; transition: all .3s var(--ease); }
.route-tab small { color: var(--ink-2); font-weight: 600; }
.route-tab.is-active { background: var(--dark); color: #fff; border-color: var(--dark); }
.route-tab.is-active small { color: #e3b8a4; }
.route-steps li { animation: stepIn .5s var(--ease) both; }
.route-steps.route-steps--train li:first-child::before { content: "Ж/Д"; font-size: 12px; background: linear-gradient(135deg, #c89482, #9a6453); border-color: #b47c68; color: #fff; }

/* Ночной тариф */
.moon { display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset -3px -1px 0 0 #6d5a8f; margin-right: 6px; vertical-align: -1px; }
.slot.is-night { position: relative; background: #f4f1f8; }
.slot.is-night::after { content: ""; position: absolute; top: 4px; right: 5px; width: 6px; height: 6px; border-radius: 50%; box-shadow: inset -2px -1px 0 0 #6d5a8f; }
.slot.is-night.is-active { background: var(--ink); }
.slot.is-night:disabled { background: repeating-linear-gradient(-45deg, #f3f2ee, #f3f2ee 4px, #ebe9e3 4px, #ebe9e3 8px); }
.slots-legend { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.price-row--night span { display: flex; align-items: center; }

/* ===== Политика и 404 ===== */
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 4.6vw, 52px); }
.legal h2 { font-size: 26px; margin: 34px 0 10px; }
.legal p { color: var(--ink-2); }
.legal a { color: var(--accent); }
.legal .btn { color: var(--ink); margin-top: 20px; }
.legal__date { font-size: 14px; margin-top: 34px; }
.footer a { color: inherit; }
.notfound { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 32px 16px; background: var(--dark); color: rgba(255,255,255,.7); }
.notfound__code { font-family: var(--serif); font-size: clamp(90px, 18vw, 180px); line-height: 1; margin: 20px 0 0; background: linear-gradient(100deg, #c89482, #f6dccf 50%, #e3b8a4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .hero__actions { justify-content: center; margin-top: 18px; }

/* ===== Страница «Как добраться» ===== */
.page-hero { padding: 130px 0 48px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.page-hero h1 { font-size: clamp(42px, 6vw, 80px); }
.page-hero__lead { font-size: 19px; color: var(--ink-2); max-width: 620px; margin: 0 0 30px; }
.route-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.route-fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: center; }
.route-fact b { display: block; font-size: 18px; }
.route-fact span { color: var(--ink-2); font-size: 14px; }
.route-fact__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, #f6e4da, #ead0c3); color: #8f5a4a; font-size: 22px; }
.route { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.route-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.route-steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(180deg, #a1a2a3, var(--accent)); }
.route-steps li { position: relative; padding: 0 0 34px 68px; }
.route-steps li:last-child { padding-bottom: 0; }
.route-steps li::before { content: counter(list-item); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--accent); font-weight: 700; color: var(--accent); }
.route-steps li:first-child::before { content: "М"; background: #a1a2a3; border-color: #a1a2a3; color: #fff; }
.route-steps li:last-child::before { content: "★"; background: var(--dark); border-color: var(--dark); color: #e3b8a4; }
.route-steps b { display: block; font-size: 19px; margin: 8px 0 4px; }
.route-steps p { margin: 0; color: var(--ink-2); }
.route-map { position: sticky; top: 96px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-alt); aspect-ratio: 4/3.4; }
.route-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.route-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.route-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.route-extra .price-card p { color: var(--ink-2); margin: 0 0 10px; }
.route-extra .price-card a { color: var(--accent); font-weight: 600; text-decoration: none; }
@media (max-width: 960px) { .route, .route-extra { grid-template-columns: 1fr; } .route-map { position: static; aspect-ratio: 1; } .route-facts { grid-template-columns: 1fr; } }

/* ===== Эффекты и анимации ===== */
:root { --ease: cubic-bezier(.22, .9, .24, 1); }

/* Прелоадер */
.preloader { position: fixed; inset: 0; z-index: 200; background: var(--dark); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; transition: clip-path 1.1s var(--ease) .1s, visibility 0s 1.3s; clip-path: inset(0 0 0 0); }
.preloader .logo__word { animation: shimmer 2.4s ease-in-out infinite, fadeUp 1s var(--ease) both; }
.preloader__line { width: 160px; height: 1px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.preloader__line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #e7b9a5, transparent); animation: loadLine 1.2s ease-in-out infinite; }
body.is-loaded .preloader { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes loadLine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }

/* Зерно плёнки и прогресс прокрутки */
.grain { position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .05; animation: grain 1.2s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #9a6453, #f1d3c4, #b47c68); }

/* Шапка: скрывается при прокрутке вниз */
.header { transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.header.is-hidden { transform: translateY(-100%); }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Hero */
.hero__bg { transform: scale(1.12); animation: heroZoom 2.6s var(--ease) both; animation-play-state: paused; will-change: transform; }
.is-loaded .hero__bg { animation-play-state: running; }
@keyframes heroZoom { from { transform: scale(1.28); filter: blur(6px) brightness(1.1); } to { transform: scale(1.12); filter: none; } }
.hero__beam { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light; opacity: .8;
  background: linear-gradient(115deg, transparent 30%, rgba(255,190,170,.55) 42%, rgba(200,170,255,.45) 50%, rgba(255,220,180,.4) 56%, transparent 68%);
  background-size: 250% 100%; animation: beam 9s ease-in-out infinite; }
@keyframes beam { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero__content { z-index: 2; }
h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease) calc(var(--d) + .5s); }
h1 em { font-style: italic; background: linear-gradient(100deg, #7a4738, #b47c68 45%, #d09a85 55%, #8f5a4a); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.hero-in { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease) calc(var(--d) + .5s), transform 1s var(--ease) calc(var(--d) + .5s); }
.is-loaded h1 .line > span, .is-loaded .hero-in { transform: none; opacity: 1; }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 28px; margin-left: -13px; width: 26px; height: 42px; border: 1.5px solid rgba(23,23,26,.4); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Кнопки: блик и «магнит» */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .35s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn:hover::before { transform: translateX(120%); }
.btn--dark:hover { box-shadow: 0 14px 30px -12px rgba(27,24,29,.55); }
.btn--rose, .header__cta { background: linear-gradient(100deg, #9a6453, #c89482 50%, #9a6453); background-size: 200% 100%; color: #fff; border: 0; }
.btn--rose:hover, .header__cta:hover { background-position: 100% 0; box-shadow: 0 14px 30px -12px rgba(154,100,83,.7); }

/* Бегущая строка */
.marquee { overflow: hidden; padding: 26px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 40px); font-style: italic; white-space: nowrap; color: var(--ink); }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--accent); font-style: normal; }
.marquee i { width: 10px; height: 10px; flex: none; transform: rotate(45deg); background: linear-gradient(135deg, #f1d3c4, #b47c68); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.img-reveal { clip-path: inset(12% 12% 12% 12% round 14px); transform: scale(1.15); transition: clip-path 1.4s var(--ease) var(--d, 0s), transform 1.6s var(--ease) var(--d, 0s), opacity .3s; }
.img-reveal.is-visible { clip-path: inset(0 0 0 0 round 14px); transform: none; }
.section__head h2 { transition-delay: .1s; }

/* Карточки залов: наклон и свечение */
.hall { transition: opacity 1.1s var(--ease) var(--d, 0s), transform .6s var(--ease), box-shadow .6s var(--ease); will-change: transform; }
.hall:hover { box-shadow: 0 40px 80px -30px rgba(27,24,29,.4); }
.hall::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(241,211,196,.35), transparent 45%); }
.hall { position: relative; }
.hall:hover::after { opacity: 1; }
.price-card, .steps li, .extras li { transition: opacity 1.1s var(--ease) var(--d, 0s), transform .8s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.price-card:hover, .steps li:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(27,24,29,.35); border-color: #e3c4b6; }
.extras li:hover { border-color: #e3c4b6; transform: translateX(4px); }

/* Галерея */
@keyframes galIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.mosaic img { transition: transform .9s var(--ease), clip-path 1.4s var(--ease) var(--d, 0s); }
.mosaic img:hover { transform: scale(1.03); }

/* Тёмная секция: световое пятно за курсором */
.section--dark { position: relative; overflow: hidden; }
.glow { position: absolute; width: 620px; height: 620px; left: 0; top: 0; border-radius: 50%; pointer-events: none; transform: translate(var(--gx, 60vw), var(--gy, 10px)) translate(-50%, -50%); transition: transform .9s var(--ease);
  background: radial-gradient(circle, rgba(200,148,130,.22), rgba(170,140,220,.08) 40%, transparent 65%); filter: blur(10px); }
.section--dark .container { position: relative; }
.contacts__logo { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Лайтбокс и бронь — плавное открытие */
.lightbox:not([hidden]) { animation: fade .4s ease; }
.lightbox img { animation: zoomIn .5s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }
.booking:not([hidden]) { animation: fade .35s ease; }
.booking__panel { animation: rise .6s var(--ease); }
.bk-step:not([hidden]) { animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
.slot, .cal-grid button, .hall-opt, .chip { transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.slot:not(:disabled):hover, .hall-opt:hover { transform: translateY(-2px); }
.pay-amount { background: radial-gradient(120% 140% at 0% 0%, #3a2a2f 0%, var(--dark) 60%); position: relative; overflow: hidden; }
.pay-amount::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(241,211,196,.18) 50%, transparent 65%); background-size: 250% 100%; animation: beam 4s ease-in-out infinite; }
.pay-amount b { background: linear-gradient(100deg, #e7b9a5, #fff3ec 50%, #e7b9a5); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (hover: none) { .hall::after, .glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .hero-in, h1 .line > span { opacity: 1; transform: none; }
  .img-reveal { clip-path: none; transform: none; }
  html { scroll-behavior: auto; }
  .grain { display: none; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav { position: fixed; inset: 72px 0 auto; background: var(--bg); flex-direction: column; gap: 0; padding: 8px 16px 20px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .burger { display: flex; }
  .header__cta { margin-left: auto; }
  .halls, .price-grid, .split, .contacts { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .split--reverse .split__text { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats__grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 48px 0; }
}
@media (max-width: 560px) {
  .header__cta { display: none; }
  .burger { margin-left: auto; }
  /* шаги: номер слева, текст справа — вместо высоких карточек */
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; align-items: center; column-gap: 12px; padding: 16px 18px; }
  .steps li::before { grid-row: span 2; margin: 0; font-size: 38px; }
  .steps b { font-size: 16px; margin: 0; }
  .stats__grid div { padding: 20px 12px; }
  .stats b { font-size: 28px; }
  .hall__body, .price-card { padding: 22px; }
  .extras { gap: 8px; }
  .extras li { padding: 12px 16px; font-size: 15px; }
  .booking { padding: 0; }
  .booking__panel { border-radius: 0; min-height: 100%; padding: 28px 16px 32px; }
  .booking__progress { font-size: 11px; margin-top: 24px; }
  .bk-step h2 { font-size: 34px; }
  .hall-opt { padding: 12px; }
  .hall-opt b { font-size: 15px; }
  .pay-actions { grid-template-columns: 1fr; }
  .req { flex-wrap: wrap; }
  .req__label { width: 100%; }
  .pay-amount b { font-size: 42px; }
  .lightbox { padding: 60px 8px; }
  .lightbox__nav { bottom: 8px; top: auto; }
}
