/* ===== Tokens ===== */
:root {
  --bg: #FFFFFF;
  --surface: #F2F0EC;
  --ink: #2A211D;
  --muted: #6B5E55;
  --line: #E6E1DA;
  --accent: #9A3B2E;
  --on-accent: #FFFFFF;

  --night: #1B1613;
  --night-2: #241D19;
  --night-ink: #F2EADF;
  --night-muted: #A89B8E;
  --night-line: #3A302A;
  --night-accent: #E08A6B;

  --ff-display: "Old Standard TT", "Times New Roman", Georgia, serif;
  --ff-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-h1: clamp(2.4rem, 1.4rem + 4.2vw, 5.2rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem);
  --fs-h3: clamp(1.4rem, 1.2rem + .8vw, 1.9rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-small: 0.875rem;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 1rem; --s4: 1.5rem; --s5: 2rem; --s6: 3rem; --s7: 4rem;
  --section-y: clamp(4rem, 2rem + 6vw, 8rem);
  --gutter: clamp(16px, 2vw, 32px);
  --side: clamp(16px, 5vw, 64px);
  --container: 1240px;

  --radius: 10px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ff-text); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(154, 59, 46, .18); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.night :focus-visible { outline-color: var(--night-accent); }

h1, h2, h3 { font-family: var(--ff-display); font-weight: 400; line-height: 1.1; letter-spacing: -0.005em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
p { margin: 0; }
.specs dd, .guests__value, .result__price, .menu-set__price, .rating b, .contacts__phone, .calc-mini b { font-variant-numeric: lining-nums tabular-nums; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--side)); margin-inline: auto; padding-inline: var(--side); }
.section { padding-block: var(--section-y); }
.lead { color: var(--muted); max-width: 52ch; }
.lead a { color: var(--ink); }
.section-head { display: grid; gap: var(--s3); margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.5rem); }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: var(--s6); } }

.night { background: var(--night); color: var(--night-ink); }
.night .lead { color: var(--night-muted); }
.night .lead a { color: var(--night-ink); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Buttons ===== */
.btn {
  --b-bg: var(--accent); --b-ink: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 6px; border: 1px solid transparent;
  background: var(--b-bg); color: var(--b-ink); font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { filter: brightness(1.06); }
.btn--ghost { --b-bg: transparent; --b-ink: currentColor; border-color: currentColor; }
.night .btn:not(.btn--ghost), .hero .btn:not(.btn--ghost) { --b-bg: var(--night-accent); --b-ink: var(--night); }
.btn svg { width: 18px; height: 18px; }

/* ===== Demo ribbon ===== */
.demo { position: relative; z-index: 60; background: var(--ink); color: var(--bg); font-size: .8125rem; text-align: center; padding: 7px 40px 7px 14px; line-height: 1.35; }
.demo a { color: var(--night-accent); }
.demo button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 20px; line-height: 1; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); color: var(--night-ink); transition: background-color .3s, color .3s, box-shadow .3s; }
.header__in { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.brand { text-decoration: none; display: grid; line-height: 1; }
.brand__name { font-family: var(--ff-display); font-size: 1.6rem; }
.brand__kind { font-size: .8125rem; opacity: .75; margin-top: 4px; }
.nav { display: none; gap: var(--s4); margin-left: auto; }
.nav a { text-decoration: none; font-size: .9375rem; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: underline; }
.header__phone { margin-left: auto; text-decoration: none; font-weight: 500; white-space: nowrap; }
.header__cta { display: none; min-height: 44px; padding: 8px 18px; font-size: .9375rem; }
.header.is-solid, .header--solid { background: var(--bg); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header.is-solid .btn, .header--solid .btn { --b-bg: var(--accent); --b-ink: var(--on-accent); }
@media (min-width: 1080px) {
  .nav { display: flex; }
  .header__phone { margin-left: 0; }
  .header__cta { display: inline-flex; }
}
body[data-page="home"] .header { margin-bottom: calc(-1 * var(--header-h)); }

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; min-height: min(92svh, 900px); display: flex; align-items: flex-end; color: var(--night-ink); background: var(--night); padding: calc(var(--header-h) + 3rem) 0 clamp(2.5rem, 2rem + 4vw, 5rem); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27,22,19,.55) 0%, rgba(27,22,19,.2) 25%, rgba(27,22,19,.7) 50%, rgba(27,22,19,.92) 100%); }
.hero__in { display: grid; gap: var(--s4); }
.hero h1 { max-width: 18ch; }
.hero__text { max-width: 46ch; color: rgba(242, 234, 223, .9); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }
.hero__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9375rem; color: rgba(242, 234, 223, .9); }
.hero__facts li { position: relative; }
.hero__facts li + li::before { content: ""; position: absolute; left: -13px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--night-accent); transform: translateY(-50%); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s2); }
@media (min-width: 900px) { .hero::before { background: linear-gradient(90deg, rgba(27,22,19,.75) 0%, rgba(27,22,19,.3) 55%, rgba(27,22,19,0) 80%), linear-gradient(180deg, rgba(27,22,19,.45) 0%, rgba(27,22,19,0) 30%, rgba(27,22,19,.6) 100%); } }
@media (max-width: 899px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 8rem); padding-bottom: 6rem; }
  .hero__actions .btn--ghost { display: none; }
}

/* ===== Formats ===== */
.formats__grid { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
.format { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; color: var(--night-ink); text-decoration: none; display: flex; align-items: flex-end; isolation: isolate; background: var(--night-2); }
.format img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.format::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(27,22,19,.85)); }
.format__body { padding: var(--s4); display: grid; gap: 6px; }
.format h3 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.format p { font-size: var(--fs-small); color: rgba(242,234,223,.88); line-height: 1.45; max-width: 34ch; }
.format:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (min-width: 640px) { .formats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .formats__grid { grid-template-columns: repeat(4, 1fr); } .format { aspect-ratio: 3 / 4; } }

/* ===== Halls ===== */
.halls__track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: var(--s3); scrollbar-width: thin; margin-inline: calc(-1 * var(--side)); padding-inline: var(--side); scroll-padding-inline: var(--side); }
.hall-card { position: relative; scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.hall-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.hall-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hall-card__body { padding: var(--s4); display: grid; gap: var(--s3); align-content: start; }
.hall-card h3 a { text-decoration: none; }
.hall-card h3 a::after { content: ""; position: absolute; inset: 0; }
.hall-card:hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; }
.hall-card__text { color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: 0; }
.specs div { padding-top: var(--s3); }
.specs dt { font-size: .8125rem; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-family: var(--ff-display); font-size: 1.5rem; line-height: 1.15; }
@media (min-width: 900px) { .halls__track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; } }

/* ===== Calculator ===== */
.calc { position: relative; }
.calc__grid { display: grid; gap: var(--s6); }
@media (min-width: 1080px) { .calc__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s7); align-items: start; } }
.calc__form, #calcForm { display: grid; gap: clamp(1.6rem, 1.3rem + 1vw, 2.3rem); }
.calc fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s3); min-width: 0; }
.calc legend { font-size: 1rem; font-weight: 500; color: var(--night-ink); padding: 0; margin-bottom: var(--s3); }
.leadform legend.label { font-size: .875rem; font-weight: 400; color: var(--night-muted); margin-bottom: var(--s2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1px solid var(--night-line); border-radius: 6px; color: var(--night-ink); transition: background-color .2s, border-color .2s, color .2s; cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--night-accent); outline-offset: 3px; }
.chip small { opacity: .75; font-size: .8125rem; }

.guests__value { font-family: var(--ff-display); font-size: clamp(3rem, 2.4rem + 2.6vw, 4.6rem); line-height: .95; color: var(--night-ink); }
.guests__value small { font-family: var(--ff-text); font-size: 1rem; color: var(--night-muted); margin-left: 8px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; --p: 30%; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--night-accent) var(--p), var(--night-line) var(--p)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--night-line); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--night-accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: var(--night-ink); border: 6px solid var(--night-accent); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--night-ink); border: 6px solid var(--night-accent); }
.range__scale { display: flex; justify-content: space-between; font-size: var(--fs-small); color: var(--night-muted); margin-top: -6px; }

.field { display: grid; gap: 8px; }
.field label { font-size: var(--fs-small); color: var(--night-muted); }
.input { min-height: 52px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--night-line); background: var(--night-2); color: var(--night-ink); width: 100%; }
.input::placeholder { color: #8d8077; }
.input[type="date"] { color-scheme: dark; }

.result { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 1080px) { .result { position: sticky; top: calc(var(--header-h) + 16px); } }
.plan { display: block; width: 100%; height: auto; background: #201915; border-bottom: 1px solid var(--night-line); }
.plan .floor { fill: #201915; }
.plan .stage { fill: none; stroke: var(--night-line); stroke-dasharray: 4 6; }
.plan .stage-label, .plan .plan-label { fill: var(--night-muted); font: 500 12px var(--ff-text); letter-spacing: .08em; text-transform: uppercase; }
.plan .plan-label { text-transform: none; letter-spacing: .02em; }
.plan .table { fill: #2E2520; stroke: #4A3C33; }
.plan .seat { fill: transparent; stroke: #4A3C33; stroke-width: 1.5; }
.plan .seat.on { fill: var(--night-accent); stroke: var(--night-accent); }
.plan .seat.new { transform-box: fill-box; transform-origin: center; animation: seat-in .45s var(--ease) both; }
@keyframes seat-in { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result__body { padding: var(--s4); display: grid; gap: var(--s4); }
@media (min-width: 640px) { .result__body { padding: var(--s5); } }
#resultText { display: grid; gap: var(--s3); }
.result__hall { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
.result__hall b { font-family: var(--ff-display); font-size: 1.7rem; font-weight: 400; line-height: 1.1; }
.result__hall a { color: var(--night-accent); font-size: var(--fs-small); }
.breakdown { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-small); }
.breakdown li { display: flex; justify-content: space-between; gap: var(--s3); border-bottom: 1px solid var(--night-line); padding-bottom: 6px; }
.breakdown li span:last-child { white-space: nowrap; color: var(--night-ink); font-variant-numeric: tabular-nums; }
.breakdown li span:first-child { color: var(--night-muted); }
.result__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; padding-top: 4px; }
.result__total span { color: var(--night-muted); }
.result__price { font-family: var(--ff-display); font-weight: 400; font-size: clamp(2.2rem, 1.8rem + 1.8vw, 3.2rem); line-height: 1; color: var(--night-ink); }
.result__per { color: var(--night-muted); font-size: var(--fs-small); }
.note { font-size: var(--fs-small); color: var(--night-muted); line-height: 1.45; }
.note--warn { color: var(--night-accent); }

/* compact sum bar on phones while choosing */
.calc-mini { position: sticky; top: var(--header-h); z-index: 20; display: none; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px var(--side); background: rgba(36, 29, 25, .97); border-bottom: 1px solid var(--night-line); color: var(--night-ink); }
.calc-mini b { font-family: var(--ff-display); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.calc-mini span { font-size: .8125rem; color: var(--night-muted); text-align: right; }
@media (max-width: 1079px) { .calc-mini.is-on { display: flex; } }

.leadform { display: grid; gap: var(--s3); border-top: 1px solid var(--night-line); padding-top: var(--s4); }
.leadform__title { font-family: var(--ff-display); font-size: 1.6rem; line-height: 1.15; }
.leadform__row { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .leadform__row { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; color: var(--night-muted); line-height: 1.4; }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--night-accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.leadform .btn { width: 100%; }
.form-ok { display: grid; gap: var(--s3); padding: var(--s4); border: 1px solid var(--night-accent); border-radius: var(--radius); }
.form-ok b { font-family: var(--ff-display); font-size: 1.7rem; font-weight: 400; }
.form-error { color: var(--night-accent); font-size: var(--fs-small); }

/* ===== Menu: like the printed banquet menu ===== */
.menu-card { border-top: 2px solid var(--ink); max-width: 980px; }
.menu-set { padding: var(--s4) 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.menu-set__line { display: flex; align-items: baseline; gap: 12px; }
.menu-set__line h3 { flex: none; }
.menu-set__dots { flex: 1; border-bottom: 2px dotted #CFC8BE; transform: translateY(-6px); min-width: 20px; }
.menu-set__price { flex: none; font-family: var(--ff-display); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); white-space: nowrap; }
.menu-set__price small { font-family: var(--ff-text); font-size: .875rem; color: var(--muted); }
.menu-set__items { color: var(--ink); max-width: 70ch; }
.menu-set__note { color: var(--muted); font-size: var(--fs-small); }
.menu__foot { margin-top: var(--s4); color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 520px) { .menu-set__line { flex-wrap: wrap; } .menu-set__dots { display: none; } .menu-set__price { width: 100%; } }

/* ===== FAQ ===== */
.faq__grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .faq__grid { grid-template-columns: 1fr 1.5fr; } }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: var(--s4) 44px var(--s4) 0; position: relative; font-family: var(--ff-display); font-size: clamp(1.25rem, 1.15rem + .5vw, 1.6rem); line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--ff-text); font-size: 1.6rem; color: var(--accent); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { padding: 0 0 var(--s4); color: var(--muted); max-width: 60ch; }

/* ===== Gallery ===== */
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.gallery__grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1080px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Reviews ===== */
.reviews__grid { display: grid; gap: var(--gutter); }
@media (min-width: 900px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: var(--s4) 0; border-top: 2px solid var(--ink); display: grid; gap: var(--s3); align-content: space-between; }
.review blockquote { margin: 0; font-family: var(--ff-display); font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); line-height: 1.35; }
.review figcaption { font-size: var(--fs-small); color: var(--muted); }
.review figcaption b { color: var(--ink); font-weight: 500; display: block; }
.rating { display: flex; align-items: baseline; gap: 12px; }
.rating b { font-family: var(--ff-display); font-size: 3.4rem; line-height: 1; font-weight: 400; }
.rating span { color: var(--muted); font-size: var(--fs-small); }

/* ===== Contacts ===== */
.contacts__grid { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .contacts__grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; } }
.contacts__list { display: grid; gap: var(--s4); margin: var(--s5) 0; }
.contacts__list dt { font-size: .8125rem; color: var(--night-muted); }
.contacts__list dd { margin: 4px 0 0; font-size: 1.125rem; }
.contacts__list a { text-decoration: none; }
.contacts__phone { font-family: var(--ff-display); font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem); line-height: 1.1; }
.contacts__msg { display: flex; flex-wrap: wrap; gap: 10px; }
.map { border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; background: var(--night-2); border: 1px solid var(--night-line); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ===== Footer ===== */
.footer { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); font-size: var(--fs-small); padding: var(--s5) 0 calc(var(--s5) + 76px); }
.footer__in { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; }
.footer a { color: var(--night-ink); }
@media (min-width: 900px) { .footer { padding-bottom: var(--s5); } }

/* ===== Mobile action bar ===== */
.actionbar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 6px; padding: 6px; background: rgba(27, 22, 19, .95); border: 1px solid var(--night-line); border-radius: 12px; transition: transform .3s var(--ease); }
.actionbar a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; text-decoration: none; color: var(--night-ink); font-size: .9375rem; font-weight: 500; }
.actionbar a.is-main { background: var(--night-accent); color: var(--night); }
.actionbar svg { width: 18px; height: 18px; }
.actionbar.is-hidden { transform: translateY(140%); }
@media (min-width: 900px) { .actionbar { display: none; } }

/* ===== Hall page ===== */
.hall-hero { padding: clamp(2rem, 1rem + 4vw, 4rem) 0 var(--s5); }
.crumbs { font-size: var(--fs-small); color: var(--muted); margin-bottom: var(--s5); }
.crumbs a { color: inherit; }
.hall-hero__grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .hall-hero__grid { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.hall-hero .specs { max-width: 520px; }
.hall-gallery { display: grid; gap: var(--gutter); grid-template-columns: repeat(2, 1fr); }
.hall-gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
.hall-gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.hall-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .hall-gallery { grid-template-columns: repeat(3, 1fr); } .hall-gallery figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }
.hall-about { display: grid; gap: var(--s5); padding-block: var(--section-y) 0; }
@media (min-width: 900px) { .hall-about { grid-template-columns: 1fr 1fr; } }
.hall-about p { font-size: clamp(1.1rem, 1.05rem + .3vw, 1.3rem); line-height: 1.5; }
.features { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.features li { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.hall-cta { margin-top: var(--section-y); border-radius: var(--radius-lg); padding: clamp(2rem, 1.2rem + 3vw, 3.5rem); display: grid; gap: var(--s4); }
@media (min-width: 900px) { .hall-cta { grid-template-columns: 1.4fr auto; align-items: center; } }
.halls--other { padding-top: var(--section-y); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* small fixes */
a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 640px) {
  .hero__facts { flex-direction: column; gap: 4px; }
  .hero__facts li + li::before { display: none; }
}

/* ===== Motion (only with html.fx, set by assets/theme.js when motion is allowed) ===== */
/* page-to-page: the clicked hall photo becomes the big photo of the hall page (Chrome, Edge, Safari) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
  ::view-transition-group(hall-photo) { animation-duration: .8s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  ::view-transition-old(hall-photo), ::view-transition-new(hall-photo) { height: 100%; object-fit: cover; overflow: clip; }
}
[data-style="classic"] .hall-gallery figure:first-child img { view-transition-name: hall-photo; }

/* SplitText line masks */
.fx-line-mask { padding-bottom: .08em; margin-bottom: -.08em; }

/* intro overlay, shared box (styles draw the inside) */
#fx-intro { position: fixed; inset: 0; z-index: 1000; overflow: hidden; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { #fx-intro { display: none; } }

/* «Классика» intro: the doors of the hall open */
[data-style="classic"] #fx-intro { perspective: 1800px; animation: fxc-out .25s 1.9s linear both; }
[data-style="classic"] .fxi-door { position: absolute; top: 0; bottom: 0; width: 50.2%; background: var(--night); backface-visibility: hidden; will-change: transform; }
[data-style="classic"] .fxi-door::before, [data-style="classic"] .fxi-door::after { content: ""; position: absolute; border: 1px solid rgba(242, 234, 223, .1); }
[data-style="classic"] .fxi-door::before { inset: 9% 14% 52% 14%; }
[data-style="classic"] .fxi-door::after { inset: 52% 14% 9% 14%; }
[data-style="classic"] .fxi-door--l { left: 0; transform-origin: 0 50%; animation: fxc-door-l 1.15s .85s cubic-bezier(.7, 0, .25, 1) both; }
[data-style="classic"] .fxi-door--r { right: 0; transform-origin: 100% 50%; animation: fxc-door-r 1.15s .85s cubic-bezier(.7, 0, .25, 1) both; }
[data-style="classic"] .fxi-line { position: absolute; left: 50%; top: 14%; bottom: 14%; width: 1px; margin-left: -.5px; background: var(--night-accent); transform: scaleY(0); animation: fxc-line .75s .1s cubic-bezier(.65, 0, .35, 1) both, fxc-fade .25s .8s linear both; }
[data-style="classic"] .fxi-brand { position: absolute; left: 50%; top: 50%; padding: .25em .7em; background: var(--night); color: var(--night-ink); font: 400 clamp(2.2rem, 1.4rem + 3vw, 3.6rem)/1 var(--ff-display); letter-spacing: .04em; white-space: nowrap; transform: translate(-50%, -50%); animation: fxc-brand .7s .2s cubic-bezier(.2, .7, .2, 1) both, fxc-fade .25s .78s linear both; }
@keyframes fxc-line { to { transform: scaleY(1); } }
@keyframes fxc-brand { from { opacity: 0; transform: translate(-50%, -38%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes fxc-fade { to { opacity: 0; } }
@keyframes fxc-door-l { to { transform: rotateY(82deg); } }
@keyframes fxc-door-r { to { transform: rotateY(-82deg); } }
@keyframes fxc-out { to { opacity: 0; visibility: hidden; } }

/* the hero text waits for the doors while .fx-wait is on (theme.js drops it when the effects come late) */
.fx-wait[data-style="classic"] .hero h1, .fx-wait[data-style="classic"] .hero__text, .fx-wait[data-style="classic"] .hero__facts, .fx-wait[data-style="classic"] .hero__actions { opacity: 0; }

/* header progress line */
.fx-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--night-accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.header.is-solid .fx-progress, .header--solid .fx-progress { background: var(--accent); }

/* hover: photos slowly come closer, the hall name underlines itself */
@media (hover: hover) {
  .fx[data-style="classic"] .format img, .fx[data-style="classic"] .hall-card__media img { transition: transform 1.4s var(--ease); }
  .fx[data-style="classic"] .format:hover img, .fx[data-style="classic"] .hall-card:hover .hall-card__media img { transform: scale(1.06); }
  .fx[data-style="classic"] .hall-card h3 a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ease); }
  .fx[data-style="classic"] .hall-card:hover h3 a { text-decoration: none; background-size: 100% 1px; }
}
