/* Форум недвижимости 23.11. Бренд Pride, светлое исполнение (брендбук Дизайн/Pride/design-system/README.md, §1.2).
   Структура и анти-паттерны от ui-ux-pro-max: 90-forum/design-system/forum-pride-23-11/MASTER.md.
   Радиусы: кнопки и чипы полностью скруглены, карточки 24px, поля 12px, места 7px. */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD;
}

:root {
  --bg: #FFFFFF;
  --bg-soft: #F4F6FA;
  --ink: #16203A;
  --muted: #56617A;
  --accent: #2F4C7E;
  --accent-deep: #1B3357;
  --navy: #263145;
  --line: rgba(38, 49, 69, 0.14);
  --line-strong: rgba(38, 49, 69, 0.24);

  --z1: #1B3357;
  --z2: #3E6096;
  --z3: #8EA7CF;
  --z4: #CFDBEE;
  --sold: #E4E8EF;

  --r-card: 24px;
  --r-field: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-press: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-soft: 0 24px 60px -32px rgba(22, 32, 58, 0.35);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 68px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--z3) var(--bg-soft);
  caret-color: var(--accent);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent-deep); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid rgba(47, 76, 126, 0.5); outline-offset: 3px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--z3); border-radius: 999px; border: 2px solid var(--bg-soft); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 32px; height: 32px; stroke-width: 1.5; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-press), background-color 200ms var(--ease), box-shadow 240ms var(--ease), color 200ms var(--ease);
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn--primary { color: #fff; background-color: #1C2739; background-image: linear-gradient(180deg, #2B3850, #1C2739); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn--primary:hover { color: #fff; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.btn--primary:disabled { background: #C9D0DC; background-image: none; color: #56617A; box-shadow: none; cursor: not-allowed; }
.btn--ghost { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--ink); background: var(--bg-soft); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn .ico { width: 18px; height: 18px; stroke-width: 2; }
.btn.is-busy { opacity: 0.7; pointer-events: none; }
.link-quiet { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); }
.link-quiet:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease), background-color 240ms var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.94); }
.site-header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.brand img { width: auto; height: 26px; }
.brand img[alt="Недвигатор"] { height: 22px; }
.brand__x { color: var(--muted); font-size: 0.875rem; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding-block: 10px; }
.nav a:hover { color: var(--accent); }
@media (max-width: 1080px) { .nav { display: none; } .site-header__in > .btn { margin-left: auto; } }
@media (max-width: 480px) {
  .brand img { height: 20px; }
  .brand img[alt="Недвигатор"] { height: 17px; }
  .brand__x { display: none; }
  .brand { gap: 10px; }
  .site-header__in > .btn { padding: 0 14px; font-size: 0.875rem; }
}

/* ---------- 1. первый экран ---------- */
.hero { position: relative; padding-block: clamp(28px, 5vw, 64px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0 0 0 auto; width: 38%;
  background: var(--bg-soft); z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__meta { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 600; font-size: 0.9875rem; }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .ico { color: var(--accent); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); letter-spacing: -0.035em; line-height: 1.02; max-width: 12ch; }
.hero__lead { margin-top: 24px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: #36415A; max-width: 44ch; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.hero__photo { position: relative; margin: 0; justify-self: end; width: min(100%, 460px); background: #0E1014; border-radius: 32px; }
.hero__photo img {
  width: 100%; aspect-ratio: 788 / 1014; object-fit: cover; object-position: 50% 30%;
  border-radius: 32px; background: #0E1014;
  box-shadow: 0 48px 90px -48px rgba(0, 0, 0, 0.45);
  max-height: calc(100dvh - var(--header-h) - 120px); min-height: 380px;
}
.plaque {
  position: absolute; left: 18px; right: 18px; max-width: 290px;
  padding: 12px 16px; border-radius: 16px;
  color: #fff; font-weight: 700; font-size: 0.9875rem; line-height: 1.3;
  background: rgba(20, 26, 40, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.plaque--a { bottom: 132px; }
.plaque--b { bottom: 62px; }
.hero__photo::after { content: ''; position: absolute; inset: auto 0 0; height: 46%; border-radius: 0 0 32px 32px; background: linear-gradient(0deg, rgba(10, 12, 18, 0.72), transparent); pointer-events: none; }
.plaque, .hero__photo figcaption { z-index: 1; }
.hero__photo figcaption { position: absolute; left: 22px; bottom: 22px; color: rgba(255, 255, 255, 0.78); font-size: 0.875rem; font-weight: 600; }
@media (prefers-reduced-transparency: reduce) { .plaque { background: rgba(20, 26, 40, 0.88); backdrop-filter: none; } }

@media (max-width: 900px) {
  .hero::before { width: 100%; top: auto; height: 42%; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { justify-self: stretch; width: 100%; max-width: 520px; margin-inline: auto; }
  .hero__photo img { aspect-ratio: 4 / 4.2; max-height: none; min-height: 0; object-position: 50% 18%; }
  .hero__photo::after { border-radius: 0 0 32px 32px; }
}

/* ---------- 2. программа и спикер ---------- */
.program { padding-block: var(--section); }
.program__grid { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.speaker { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--r-card); background: var(--navy); color: #E9EDF5; overflow: hidden; }
.speaker__body { padding: 32px 30px 34px; display: grid; gap: 14px; }
.speaker__name { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.15; }
.speaker__role { color: #fff; font-weight: 600; }
.speaker__link { color: #fff; font-weight: 700; margin-top: 6px; justify-self: start; }
.speaker__link:hover { color: #CFDBEE; }

.topics { display: grid; }
.topic-group { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding-block: 26px; border-top: 1px solid var(--line); }
.topic-group:first-child { padding-top: 6px; border-top: 0; }
.topic-group h3 { color: var(--accent); padding-top: 3px; }
.topic-group--accent { margin-top: 10px; padding: 26px 28px; border-top: 0; border-radius: var(--r-card); background: var(--bg-soft); }
.topic-list { margin: 0; padding: 0; list-style: none; counter-reset: t var(--start, 0); display: grid; gap: 16px; font-size: 1.0625rem; }
.topic-list li { position: relative; padding-left: 40px; }
.topic-list li::before {
  counter-increment: t; content: counter(t);
  position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 0.8125rem; font-weight: 800; color: var(--accent);
  border: 1px solid var(--line-strong); font-variant-numeric: tabular-nums;
}
.topic-list[start="5"] { counter-reset: t 4; }
.topic-list[start="6"] { counter-reset: t 5; }

.day { margin-top: clamp(56px, 7vw, 88px); }
.day__title { font-size: 1.375rem; }
.day__line {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px;
  border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--line);
}
.day__line li { padding: 18px 14px 20px; display: grid; gap: 4px; align-content: start; background: var(--bg); }
.day__line time { font-weight: 800; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.day__line span { font-size: 0.9375rem; color: var(--muted); line-height: 1.3; }
.day__line .is-talk { background: var(--navy); }
.day__line .is-talk time { color: #fff; }
.day__line .is-talk span { color: #D6DEEB; }
.day__line .is-break { background: var(--bg-soft); }
@media (max-width: 1080px) { .day__line { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) {
  .day__line { grid-template-columns: 1fr 1fr; }
  .day__line li:last-child { grid-column: 1 / -1; }
  .topic-group--accent { padding: 22px 20px; }
}
@media (max-width: 900px) {
  .program__grid { grid-template-columns: 1fr; }
  .speaker { position: static; }
  .topic-group { grid-template-columns: 1fr; gap: 12px; }
}
/* ---------- 3. зал и виджет рассадки ---------- */
.hall { padding-block: var(--section); background: var(--bg-soft); }
.hall__head { display: grid; gap: 16px; max-width: 760px; }
.hall__lead { font-size: 1.125rem; color: #36415A; max-width: 60ch; }
.raise { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 10px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; font-size: 0.9375rem; }
.raise .ico { color: var(--accent); width: 18px; height: 18px; }

.seatmap { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.seatmap__main { min-width: 0; background: var(--bg); border-radius: var(--r-card); border: 1px solid var(--line); padding: clamp(18px, 3vw, 36px); }

.zone-list { display: none; }
.zone-view__bar { display: none; }
.stage {
  position: relative; height: 44px; margin: 0 auto 30px; width: min(72%, 560px);
  display: grid; place-items: center;
}
.stage::before { content: ''; position: absolute; inset: 0; border-radius: 0 0 50% 50% / 0 0 100% 100%; border-bottom: 3px solid var(--navy); }
.stage span { position: relative; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.map { container-type: inline-size; display: grid; gap: 22px; }
.zone { display: grid; gap: 6px; }
.zone-head { display: flex; align-items: baseline; justify-content: center; gap: 12px; font-size: 0.9375rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.zone-head strong { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }

.row {
  --seat: clamp(18px, calc((100cqw - 116px) / 29), 30px);
  display: flex; align-items: center; justify-content: center; gap: calc(var(--seat) * 0.12);
}
.row-num { width: 22px; flex: none; text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.block { display: flex; gap: calc(var(--seat) * 0.12); }
.block + .block { margin-left: calc(var(--seat) * 0.6); }

.seat {
  width: var(--seat); height: var(--seat); padding: 0; flex: none;
  border: 0; border-radius: 7px 7px 5px 5px;
  font: inherit; font-size: calc(var(--seat) * 0.38); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  color: #fff; cursor: pointer;
  transition: transform 140ms var(--ease-press), box-shadow 180ms var(--ease), background-color 180ms var(--ease);
  position: relative;
}
.seat::after { content: ''; position: absolute; inset: -3px; } /* зона нажатия чуть больше самой клетки */
.is-desktop .seat { font-size: 0; }
.seat--z1 { background: var(--z1); }
.seat--z2 { background: var(--z2); }
.seat--z3 { background: var(--z3); color: var(--ink); }
.seat--z4 { background: var(--z4); color: var(--ink); }
@media (hover: hover) { .seat:not(:disabled):hover { transform: translateY(-2px) scale(1.12); box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.35); z-index: 1; } }
.seat:not(:disabled):active { transform: scale(0.94); }
.seat.is-selected { background: #fff; color: var(--ink); outline: 2.5px solid var(--ink); outline-offset: -2.5px; transform: scale(1.06); }
.seat.is-sold { background: var(--sold); color: transparent; cursor: not-allowed; }
.seat.is-later { background: #F7F8FB; outline: 1.5px dashed #B7C0CF; outline-offset: -1.5px; color: transparent; cursor: not-allowed; }

.legend { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 0.9375rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.lg--free { background: linear-gradient(90deg, var(--z1) 0 25%, var(--z2) 25% 50%, var(--z3) 50% 75%, var(--z4) 75%); }
.lg--sel { background: #fff; outline: 2px solid var(--ink); outline-offset: -2px; }
.lg--sold { background: var(--sold); }
.lg--later { background: #F7F8FB; outline: 1.5px dashed #B7C0CF; outline-offset: -1.5px; }
.draft-note { margin-top: 16px; text-align: center; font-size: 0.875rem; color: var(--muted); }

/* волна от сцены: один раз при первом показе */
.will-reveal .row { opacity: 0; transform: translateY(12px); }
.will-reveal.is-revealed .row { opacity: 1; transform: none; transition: opacity 520ms var(--ease), transform 620ms var(--ease); transition-delay: calc(var(--i) * 55ms); }

.order { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.info, .order__sel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.info { min-height: 132px; display: grid; align-content: start; gap: 2px; }
.info__place { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.info__zone { color: var(--muted); font-size: 0.9375rem; }
.info__price { font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; margin-top: 6px; }
.info__price:empty { display: none; }
.info__action { color: var(--muted); font-size: 0.9375rem; margin-top: 4px; }
.info:not(.is-filled) .info__action { margin-top: 0; }
.order__sel { display: grid; gap: 14px; }
.order__count { font-weight: 800; }
.order__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.order__list:empty { display: none; }
.order__list li, .checkout__list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; font-size: 0.9375rem; padding: 6px 4px 6px 12px; border-radius: 12px; background: var(--bg-soft); }
.chip-x { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.chip-x:hover { background: #E4E8EF; color: var(--ink); }
.chip-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.order__hint { font-size: 0.9375rem; padding: 10px 12px; border-radius: 12px; background: #FFF7E0; color: #5A4210; }
.order__hint a { color: #5A4210; font-weight: 700; }
.order__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.order__total strong { font-size: 1.5rem; font-weight: 800; }
.order__small { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 959px) {
  .seatmap { grid-template-columns: 1fr; }
  .seatmap__main { padding: 0; background: transparent; border: 0; }
  .zone-list { display: grid; gap: 10px; }
  .zone-view { display: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 0 22px; scroll-margin-top: calc(var(--header-h) + 8px); }
  .is-zone-open .zone-list { display: none; }
  .is-zone-open .zone-view { display: block; }
  .zone-view__bar { display: flex; align-items: center; gap: 12px; padding: 0 16px 18px; }
  .zone-view__title { font-weight: 800; }
  .stage { width: 76%; margin-bottom: 20px; }
  .map { overflow-x: auto; overscroll-behavior-x: contain; padding: 4px 16px 10px; container-type: normal; gap: 0; }
  .zone { width: max-content; margin-inline: auto; gap: 10px; }
  .row { --seat: 38px; justify-content: flex-start; }
  .row-num { width: 30px; font-size: 0.875rem; position: sticky; left: -16px; z-index: 2; background: var(--bg); align-self: stretch; display: grid; place-items: center; }
  .row-num:last-child { left: auto; right: -16px; }
  .seat { font-size: 0.875rem; }
  .legend { padding-inline: 16px; font-size: 0.875rem; }
  .draft-note { padding-inline: 16px; }
  .order { position: static; }
  .info { display: none; }
  .seatmap.is-zone-open .info, .seatmap.has-selection .info { display: grid; min-height: 0; }
}
.zone-pick {
  display: grid; grid-template-columns: 14px 1fr auto; grid-template-areas: 'sw name price' 'sw meta meta';
  gap: 2px 14px; align-items: center; text-align: left;
  width: 100%; min-height: 76px; padding: 16px 20px;
  font: inherit; color: var(--ink); cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  transition: transform 160ms var(--ease-press), border-color 200ms var(--ease);
}
.zone-pick:hover { border-color: var(--line-strong); }
.zone-pick:active { transform: scale(0.985); }
.zone-pick__swatch { grid-area: sw; width: 14px; height: 40px; border-radius: 999px; background: var(--z1); }
.zone-pick--z2 .zone-pick__swatch { background: var(--z2); }
.zone-pick--z3 .zone-pick__swatch { background: var(--z3); }
.zone-pick--z4 .zone-pick__swatch { background: var(--z4); outline: 1px solid var(--line); outline-offset: -1px; }
.zone-pick__name { grid-area: name; font-weight: 800; font-size: 1.0625rem; }
.zone-pick__price { grid-area: price; font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.zone-pick__meta { grid-area: meta; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }

/* ---------- 4. кейтеринг ---------- */
.catering { padding-block: var(--section); }
.catering__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.catering__text { display: grid; gap: 20px; }
.catering__text > p { font-size: 1.125rem; color: #36415A; max-width: 46ch; }
.meals { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.meals div { padding: 14px 18px; border-radius: 18px; background: var(--bg-soft); min-width: 150px; }
.meals dt { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.meals dt .ico { color: var(--accent); }
.meals dd { margin: 2px 0 0; color: var(--muted); font-size: 0.9375rem; }
.catering__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ph { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; aspect-ratio: 4 / 4.6; background: var(--bg-soft); }
.ph--wide { grid-column: 1 / -1; aspect-ratio: 16 / 8.5; }
@media (max-width: 900px) { .catering__grid { grid-template-columns: 1fr; } }

/* ---------- 5. доверие ---------- */
.trust { padding-block: 0 var(--section); }
.bento { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(0, auto); gap: 16px; }
.cell { margin: 0; border-radius: var(--r-card); overflow: hidden; }
.cell--venue { grid-column: span 7; grid-row: span 2; position: relative; background: #1A1D24; min-height: 460px; }
.cell--venue img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.cell--venue figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 28px 26px;
  display: grid; gap: 4px; color: #fff;
  background: linear-gradient(0deg, rgba(14, 16, 22, 0.88) 0%, rgba(14, 16, 22, 0.55) 55%, transparent 100%);
}
.cell--venue strong { font-size: 1.375rem; letter-spacing: -0.01em; }
.cell--venue span { color: rgba(255, 255, 255, 0.86); max-width: 46ch; }
.cell--speaker { grid-column: span 5; background: var(--navy); color: #fff; padding: 30px; display: flex; align-items: flex-end; min-height: 220px; }
.cell__big { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.32; }
.cell--org { grid-column: span 5; background: var(--bg-soft); padding: 26px 28px; display: grid; gap: 18px; align-content: start; }
.cell__label { font-weight: 800; color: var(--accent); }
.org { display: grid; gap: 6px; }
.org img { width: auto; height: 26px; }
.org p { font-size: 0.9375rem; color: var(--muted); }
.cell--entry { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; padding: 24px 28px; border: 1px solid var(--line); }
.cell--entry .ico { color: var(--accent); }
.cell--entry p { max-width: 64ch; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .cell--venue, .cell--speaker, .cell--org, .cell--entry { grid-column: auto; grid-row: auto; }
  .cell--venue { min-height: 360px; }
  .cell--entry { align-items: flex-start; }
}

/* ---------- 6. агентствам ---------- */
.agency { padding-block: var(--section); background: var(--bg-soft); }
.agency__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.agency__text { display: grid; gap: 18px; }
.agency__text > p { font-size: 1.125rem; color: #36415A; max-width: 44ch; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ticks .ico { color: var(--accent); }
.contact { background: var(--bg); border-radius: var(--r-card); padding: clamp(26px, 3vw, 36px); box-shadow: var(--shadow-soft); display: grid; gap: 6px; }
.contact__name { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; }
.contact__role { color: var(--muted); }
.contact__actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .agency__grid { grid-template-columns: 1fr; } .contact__actions .btn { flex: 1 1 100%; } }

/* ---------- 7. вопросы ---------- */
.faq { padding-block: var(--section); }
.faq__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding-block: 18px;
  font-weight: 700; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--muted); transition: transform 240ms var(--ease); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 40px 22px 0; color: #36415A; max-width: 64ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom)); font-size: 0.9375rem; color: var(--muted); }
.site-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer__title { color: var(--ink); font-weight: 700; }
.site-footer a { color: var(--ink); font-weight: 700; text-decoration: none; }

/* ---------- плавающая кнопка и панель выбора ---------- */
.fab {
  position: fixed; z-index: 40; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 700;
  background-color: #1C2739; background-image: linear-gradient(180deg, #2B3850, #1C2739);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  opacity: 0; transform: translateY(24px) scale(0.96); pointer-events: none;
  transition: opacity 260ms var(--ease), transform 360ms var(--ease);
}
.fab:hover { color: #fff; }
.fab.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.fab .ico { width: 20px; height: 20px; }
@media (max-width: 959px) { .fab { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); justify-content: center; } }

.selbar {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.25);
}
.selbar p { display: grid; line-height: 1.2; font-size: 0.875rem; color: var(--muted); }
.selbar strong { color: var(--ink); font-size: 1.125rem; font-weight: 800; }
@media (min-width: 960px) { .selbar { display: none !important; } }

/* ---------- окно оформления ---------- */
.checkout {
  width: min(100% - 24px, 480px); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 28px; color: var(--ink); background: var(--bg);
  box-shadow: 0 40px 100px -30px rgba(22, 32, 58, 0.55);
}
.checkout::backdrop { background: rgba(22, 32, 58, 0.42); backdrop-filter: blur(3px); }
.checkout[open] { animation: sheet-in 360ms var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.checkout form { padding: 26px; display: grid; gap: 14px; }
.checkout__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout__head h2 { font-size: 1.5rem; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 0; background: var(--bg-soft); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: #E4E8EF; }
.checkout__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 180px; overflow: auto; }
.checkout__list li { grid-template-columns: 1fr auto; padding: 8px 12px; }
.checkout__total { display: flex; justify-content: space-between; align-items: baseline; padding-block: 4px 8px; border-bottom: 1px solid var(--line); }
.checkout__total strong { font-size: 1.375rem; font-weight: 800; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.field input {
  min-height: 50px; padding: 0 14px; border-radius: var(--r-field);
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field input::placeholder { color: #6B7489; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 76, 126, 0.16); }
.field input[aria-invalid="true"] { border-color: #B42318; }
.field__err { color: #B42318; font-size: 0.875rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.checkout__note { padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); font-size: 0.9375rem; }
.checkout__small { font-size: 0.875rem; color: var(--muted); text-align: center; }
@media (max-width: 560px) {
  .checkout { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92dvh; }
  .checkout form { padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; transition-delay: 0ms !important; }
  .will-reveal .row { opacity: 1; transform: none; }
}
.swipe-note { display: none; }
@media (max-width: 959px) { .swipe-note { display: block; text-align: center; font-size: 0.9375rem; color: var(--muted); margin-top: 8px; padding-inline: 16px; } }

/* доводка по визуальной проверке: мелкий текст на телефоне и контраст неактивной кнопки */
input, textarea { caret-color: var(--accent); }
.btn--primary:disabled { color: #3F4964; }
@media (max-width: 959px) {
  .hero__meta, .plaque, .day__line span, .zone-pick__meta, .order__small, .org p, .site-footer, .legend, .order__list li { font-size: 1rem; }
  .site-header__in > .btn { font-size: 1rem; }
}

/* усилители рядом с кнопками (правило 9 из site-build-standards §1.1) */
.assure { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.9375rem; font-weight: 600; color: #36415A; }
.assure .ico { width: 18px; height: 18px; color: var(--accent); }
.contact .assure { margin-top: 12px; }
.assure-inline { display: flex; gap: 8px; align-items: flex-start; }
.assure-inline .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.hero h1 { max-width: 16ch; font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
.trust h2, .program h2, .hall h2, .agency h2, .faq h2 { max-width: 22ch; }
.org + .org { margin-top: 4px; }
@media (max-width: 959px) { .assure { font-size: 1rem; } }
