/* Сайт-витрина TatarStars. Одна таблица стилей на все страницы.
   Три ширины: компьютер (от 1200 px), планшет и узкий ноутбук, телефон (до 760 px).
   Цвета — из утверждённого макета «тёплое в компоновке графитового». Шрифт заголовков —
   Vollkorn 700 (выбран владельцем 23.09 вместо Yeseva One), текст — Onest; оба под
   свободной лицензией SIL OFL 1.1. */

/* --- Шрифты ---
   Файлы лежат на своём сервере в /fonts/, а не грузятся с Google: иначе IP каждого
   посетителя уходил бы в Google (спорно по закону о персональных данных), а при
   блокировке Google Fonts, как в 2018-м, сайт остался бы без своих шрифтов.
   Наборы букв: кириллица с татарскими Ә Ө Ү Җ Ң Һ (cyrillic-ext), латиница и latin-ext
   (в нём знак ₽). Браузер скачивает только наборы, буквы из которых есть на странице.
   Лицензии — fonts/OFL-*.txt. Скачаны с fonts.gstatic.com 23.09.2026. */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/onest-400-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/onest-400-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/onest-400-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/onest-400-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/vollkorn-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/vollkorn-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/vollkorn-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/vollkorn-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sand: #EFE5D2;
  --band: #E6D8BD;
  --card: #F4ECDC;
  --line: #D8C7A6;
  --line-strong: #D3BF9C;
  --dash: #BFA77F;
  --ink: #2B2118;
  --body: #4A3D2F;
  --muted: #6A5A48;
  --brass: #8A5412;
  /* На полосе #E6D8BD обычная латунь даёт контраст 4.4 — чуть ниже нормы для мелких подписей */
  --brass-deep: #7A4A0F;
  --accent: #2F4A3A;
  --accent-hover: #243B2E;
  --on-accent: #F7F0E1;
  --dark: #2B2118;
  --on-dark: #F3EADA;
  --on-dark-muted: #CDBFA8;
  --on-dark-soft: #B3A48C;
  --gold: #D9A75A;
  --dark-line: #4A3D2F;

  --display: 'Vollkorn', Georgia, 'Times New Roman', serif;
  /* У Yeseva One было одно начертание; Vollkorn обычного веса для заголовков бледен */
  --display-weight: 700;
  --text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pad: 80px;
  --header: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 16px/1.5 var(--text);
  /* У Vollkorn по умолчанию книжные цифры разной высоты — а им набраны цены, время
     сеансов и оценки. У Onest цифры и так обычные, на него это не влияет */
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  text-wrap: balance;
}
h2 { font-size: 44px; line-height: 1.12; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.icon-solid { fill: currentColor; stroke: none; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: var(--sand); text-decoration: none;
}
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brass);
}
.band { background: var(--band); }
.band .eyebrow, .band .label { color: var(--brass-deep); }

/* --- Кнопки --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 24px; border-radius: 12px;
  font: 600 16px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn .icon { width: 19px; height: 19px; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); font-weight: 500; }
.btn-outline:hover { background: var(--ink); color: var(--sand); }
.btn-light { background: var(--sand); color: var(--ink); }
/* Светлая кнопка на тёмном подвале: прежняя подсветка (#FBF4E6) была незаметна,
   владелец попросил, чтобы кнопка брони выделялась под курсором */
.btn-light:hover { background: var(--gold); }
/* Кнопка брони приподнимается под курсором. Только там, где есть мышь: на телефоне
   :hover «залипает» после нажатия, и кнопка осталась бы приподнятой */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(36, 59, 46, .9); }
  .btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(217, 167, 90, .8); }
}
.btn-sm { height: 46px; padding: 0 22px; }
.btn-md { height: 48px; padding: 0 20px; font-size: 15.5px; }
.btn-md .icon { width: 16px; height: 16px; }

/* Ссылки в бота внутри блоков («Написать в бот», «Узнать в боте»…) — кнопки с рамкой:
   владелец попросил, чтобы они выделялись, как кнопки брони (23.09). Рамка — цветом
   текста, поэтому на тёмной панели она сама светлая */
.text-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  height: 46px; padding: 0 18px; border: 1.5px solid currentColor; border-radius: 12px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.text-link .icon { width: 17px; height: 17px; transition: transform .15s; }
.text-link:hover { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.text-link:hover .icon { transform: translateX(3px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .text-link:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(43, 33, 24, .7); }
}

.phone-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--body); text-decoration: none;
}
.phone-line .icon { width: 17px; height: 17px; }
.phone-line b { font-weight: 600; color: var(--ink); }
.phone-line:hover b { text-decoration: underline; }

/* --- Шапка --- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(239, 229, 210, .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-seal { flex-shrink: 0; width: 44px; height: 44px; }
.brand-text { display: flex; align-items: baseline; gap: 12px; }
.brand-name { font-family: var(--display); font-weight: var(--display-weight); font-size: 28px; }
.brand-note { font-size: 14px; color: var(--muted); }
.main-nav { display: flex; gap: 36px; }
.main-nav a { font-size: 16px; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { color: var(--brass); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-phone { font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--brass); }
.icon-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid #CDB894; align-items: center; justify-content: center;
}
.icon-btn .icon { width: 18px; height: 18px; }

/* --- Первый экран --- */

.hero { padding-top: 44px; }
.hero-row { display: flex; gap: 64px; align-items: flex-end; }
.hero-title { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: 56px; line-height: 1.08; }
.hero-side { width: 500px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--body); }
.lead strong { font-weight: 600; color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.trust-inline { display: none; }
.trust-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px;
  padding-top: 40px; padding-bottom: 30px;
  font-size: 14px; color: var(--muted);
}
.trust-row b, .trust-inline b { font-weight: 600; color: var(--ink); }
.trust-row .addr { margin-left: auto; }
/* Со «средней оценкой на всех площадках» строка на экранах уже ~1240 px не влезает
   в одну линию: перенесённый адрес прижат влево, под оценку, а не висит справа */
@media (max-width: 1279px) {
  .trust-row .addr { margin-left: 0; }
}
.star { width: 16px; height: 16px; color: var(--brass); }
.trust-item { display: inline-flex; align-items: center; gap: 8px; }

/* --- Карточки-афиши квестов: на главной 2×2, на странице квеста — «Другие квесты» ---
   Фото под затемнением, поверх — цена, плашка, значок, название, состав, время и
   сложность. Цвет рамки, плашки и значков у каждого квеста свой, взят с его фото (--c).
   Владелец выбрал такой вид по примеру чужого сайта 23.09. */

.poster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hero .poster-grid { padding-top: 36px; }
.poster {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; aspect-ratio: 2 / 1;
  /* Рамка — настоящая, а не тень внутрь: внутреннюю тень перекрывает фото */
  border: 1.5px solid var(--c); border-radius: 18px;
  background: var(--dark); color: #fff; text-decoration: none;
  box-shadow: 0 18px 34px -24px rgba(43, 33, 24, .9);
}
.poster img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s;
}
.poster::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 58%, rgba(14, 10, 6, .55), transparent 75%),
    linear-gradient(180deg, rgba(14, 10, 6, .35), rgba(14, 10, 6, .25) 40%, rgba(14, 10, 6, .7));
}
.poster:hover img { transform: scale(1.04); }
.poster-price {
  position: absolute; top: 18px; left: 22px;
  font-size: 15px; font-weight: 500; text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.poster-badge {
  position: absolute; top: 16px; right: 18px; padding: 6px 11px; border-radius: 7px;
  background: var(--c); color: var(--on-c);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.poster-body {
  margin: auto auto 26px; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.poster-emblem { width: 40px; height: 40px; stroke-width: 1.6; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.poster-name { font-family: var(--display); font-weight: var(--display-weight); font-size: 36px; line-height: 1.1; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.poster-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  font-size: 15px; text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}
.poster-meta > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.poster-meta .icon { width: 16px; height: 16px; color: var(--c); stroke-width: 2.2; }

/* Три карточки в ряд — «Другие квесты» на странице квеста */
.poster-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.poster-grid.n3 .poster { aspect-ratio: 4 / 3; }
.poster-grid.n3 .poster-emblem { width: 34px; height: 34px; }
.poster-grid.n3 .poster-name { font-size: 28px; }
.poster-grid.n3 .poster-meta { font-size: 14px; gap: 4px 14px; }

/* --- Общие секции --- */

.section { padding: 88px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 64px;
  margin-bottom: 40px;
}
.titles { display: flex; flex-direction: column; gap: 14px; }
.section-lead { width: 460px; flex-shrink: 0; font-size: 17px; line-height: 1.55; color: var(--body); }
.note { margin-top: 40px; font-size: 17px; line-height: 1.55; color: var(--body); }
.note strong { font-weight: 600; color: var(--ink); }

.split { display: flex; gap: 64px; align-items: flex-start; }
.split-intro { width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
.intro-text { margin-top: 6px; font-size: 17px; line-height: 1.6; color: var(--body); }

.circle-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 999px;
  background: var(--band); display: flex; align-items: center; justify-content: center;
}
.circle-icon .icon { width: 22px; height: 22px; }

/* --- Подбор квеста --- */

.pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pick-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px; border-radius: 16px; background: var(--card);
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.pick-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(43, 33, 24, .45); }
.label {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brass-deep);
}
.pick-name {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: var(--display-weight); font-size: 24px; line-height: 1.2;
}
.pick-name .icon { display: none; }
.pick-text { font-size: 15.5px; line-height: 1.5; color: var(--body); }
.more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.more .icon { width: 16px; height: 16px; }

/* --- Чего здесь не будет --- */

.feature-grid { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px; border-radius: 16px; background: var(--card);
}
.feature-body { display: flex; flex-direction: column; gap: 12px; }
.feature h3 { font-size: 22px; line-height: 1.2; }
.feature p { font-size: 15.5px; line-height: 1.5; color: var(--body); }

/* --- Компанией / ночью --- */

.duo-section { padding: 0 0 88px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { border-radius: 24px; overflow: hidden; background: var(--band); display: flex; flex-direction: column; }
.panel img { width: 100%; height: 220px; object-fit: cover; }
.panel-body { flex: 1; padding: 34px 36px 36px; display: flex; flex-direction: column; gap: 14px; }
.panel h3 { font-size: 32px; line-height: 1.15; }
.panel p { font-size: 16.5px; line-height: 1.55; color: var(--body); }
.panel p strong { font-weight: 600; color: var(--ink); }
.panel .small { font-size: 14.5px; line-height: 1.5; }
.panel .text-link { margin-top: auto; }
.panel-body > p:last-of-type { margin-bottom: 8px; }
.panel .eyebrow { color: var(--brass-deep); }
.panel-dark { background: var(--dark); color: var(--on-dark); }
.panel-dark .eyebrow { color: var(--gold); }
.panel-dark p { color: var(--on-dark-muted); }
.panel-dark .small { color: var(--on-dark-soft); }
.panel-dark .text-link { color: var(--on-dark); }
.panel-dark .text-link:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* --- Как забронировать --- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 18px; }
/* Нарисованный чат с ботом: тексты и кнопки взяты из настоящего бота,
   реквизиты скрыты точками. Сообщения прижаты к низу, как в открытом чате,
   а то, что не влезло, уходит под затухание сверху. */
.chat {
  height: 380px; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: #E9DDC4; border: 1px solid var(--line-strong);
  box-shadow: 0 18px 32px -26px rgba(43, 33, 24, .6);
}
.chat-top {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.chat-top img { width: 30px; height: 30px; flex-shrink: 0; }
.chat-top span { display: flex; flex-direction: column; line-height: 1.2; }
.chat-top b { font-size: 14px; font-weight: 600; }
.chat-top small { font-size: 12px; color: var(--muted); }
.chat-body {
  flex: 1; min-height: 0; padding: 12px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  font-size: 13px; line-height: 1.4;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}
.msg {
  flex-shrink: 0; align-self: flex-start; max-width: 88%;
  padding: 8px 11px; border-radius: 14px 14px 14px 4px;
  background: #FFFCF6; color: var(--ink); box-shadow: 0 1px 1px rgba(43, 33, 24, .12);
}
.msg.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #D9E6D5; }
.msg b { font-weight: 600; }
.msg i { color: var(--muted); }
.msg code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12px; }
.kb { flex-shrink: 0; align-self: flex-start; width: 88%; display: grid; gap: 4px; }
.kb span {
  padding: 6px 8px; border-radius: 8px; background: rgba(255, 252, 246, .72);
  text-align: center; font-size: 12.5px; font-weight: 500; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kb-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kb-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step-body { display: flex; flex-direction: column; gap: 18px; }
.step-title { display: flex; align-items: center; gap: 12px; }
.step-num {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600;
}
.step h3 { font-size: 23px; line-height: 1.2; }
.step p { font-size: 16px; line-height: 1.55; color: var(--body); }
.bron-bottom { margin-top: 40px; display: flex; align-items: center; gap: 32px; }
.info {
  flex: 1; padding: 20px 24px; border-radius: 16px; background: var(--card);
  font-size: 15.5px; line-height: 1.55; color: var(--body);
}
.info strong { font-weight: 600; color: var(--ink); }
.cta-stack { flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.small-phone { font-size: 14.5px; color: var(--body); text-decoration: none; white-space: nowrap; }
.small-phone b { font-weight: 600; color: var(--ink); }

/* --- Цены --- */

.price-intro { width: 540px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
.price-big { margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.price-big .num { font-family: var(--display); font-weight: var(--display-weight); font-size: 64px; line-height: 1; }
.price-big .unit { font-size: 19px; color: var(--body); }
.price-text { font-size: 18px; line-height: 1.55; color: var(--body); }
.price-intro .fine { font-size: 15px; color: var(--muted); }
.price-panel { flex: 1; padding: 30px 34px; border-radius: 20px; background: var(--band); }
.price-panel-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; }
.price-panel-head h3 { font-size: 23px; }
.price-panel-head span { font-size: 14px; color: var(--muted); }
.price-rows { border-bottom: 1px solid var(--line-strong); }
.price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line-strong); text-decoration: none;
}
.price-row .q { display: flex; flex-direction: column; gap: 2px; }
.price-row .q b { font-size: 17px; font-weight: 600; }
.price-row .q span { font-size: 14px; color: var(--muted); }
.price-row .sum { font-size: 17px; font-weight: 600; white-space: nowrap; }
.price-row:hover .q b { text-decoration: underline; text-underline-offset: 3px; }
.included-title {
  margin-top: 22px; font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brass-deep);
}
.included {
  margin: 12px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px;
  font-size: 15.5px; line-height: 1.4;
}
.included li { display: flex; align-items: flex-start; gap: 10px; }
.included .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); stroke-width: 2.4; }
.price-note { margin-top: 20px; font-size: 14.5px; color: var(--muted); }

/* --- Поводы --- */

.occasions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.occasion {
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px 28px; border-radius: 18px; background: var(--card);
}
.occasion.featured { box-shadow: inset 0 0 0 1.5px var(--accent); }
.occasion-head { display: flex; flex-direction: column; gap: 14px; }
.occasion h3 { font-size: 26px; line-height: 1.2; }
.occasion p { font-size: 16px; line-height: 1.55; color: var(--body); }
.occasion .text-link { margin-top: auto; font-size: 15.5px; }

/* --- Отзывы --- */

.reviews-intro { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
.rating { margin-top: 12px; display: flex; align-items: center; gap: 16px; }
.rating .num { font-family: var(--display); font-weight: var(--display-weight); font-size: 64px; line-height: 1; }
.rating-meta { display: flex; flex-direction: column; gap: 6px; }
.stars { display: flex; gap: 3px; color: var(--brass); }
.stars .icon { width: 18px; height: 18px; }
.rating-note { font-size: 15px; line-height: 1.4; color: var(--body); }
.games { font-size: 15px; color: var(--muted); }
.stack-buttons { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.review-list { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review {
  margin: 0;
  min-height: 320px; padding: 28px 26px; border-radius: 16px; background: var(--card);
  display: flex; flex-direction: column; gap: 16px;
}
.review-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.review .stars .icon { width: 15px; height: 15px; }
.review-quest { font-size: 13px; font-weight: 600; color: var(--brass-deep); text-decoration: none; }
.review-quest:hover { text-decoration: underline; }
.review blockquote { margin: 0; }
.review p { font-size: 16px; line-height: 1.55; color: var(--body); }
.review-who { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.review-who b { font-size: 15.5px; font-weight: 600; }
.review-who span { font-size: 14px; color: var(--muted); }

/* --- Как добраться --- */

.route {
  display: grid; grid-template-columns: 480px minmax(0, 1fr);
  grid-template-areas: "head map" "list map" "links map";
  grid-template-rows: auto auto 1fr;
  column-gap: 64px; align-items: start;
}
.route-head { grid-area: head; display: flex; flex-direction: column; gap: 14px; }
.route-map {
  grid-area: map; display: block; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--line-strong);
}
.route-map img { width: 100%; height: auto; transition: filter .2s; }
.route-map:hover img { filter: brightness(1.04); }
.route-list { grid-area: list; margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.route-list li { display: flex; gap: 16px; align-items: flex-start; }
.route-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 999px; background: var(--card);
  display: flex; align-items: center; justify-content: center;
}
.route-icon .icon { width: 19px; height: 19px; }
.route-text { display: flex; flex-direction: column; gap: 3px; padding-top: 1px; }
.route-text b { font-size: 17px; font-weight: 600; }
.route-text span { font-size: 15.5px; line-height: 1.5; color: var(--body); }
.route-links { grid-area: links; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Вопросы --- */

.faq-side { width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.faq-side p, .faq-after { font-size: 17px; line-height: 1.55; color: var(--body); }
.faq-after { display: none; }
.faq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; align-items: start; }
.faq-col { border-bottom: 1px solid var(--line); }
.faq-col details { border-top: 1px solid var(--line); }
.faq-col summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500; line-height: 1.4;
}
.faq-col summary::-webkit-details-marker { display: none; }
.faq-col summary:hover { color: var(--brass); }
.faq-col details[open] summary { font-weight: 600; padding-bottom: 10px; }
.faq-icon { width: 20px; height: 20px; margin-top: 3px; transition: transform .2s; }
.faq-col details[open] .faq-icon { transform: rotate(45deg); }
.answer { padding: 0 40px 22px 0; font-size: 16px; line-height: 1.55; color: var(--body); }

/* --- Подвал --- */

.site-footer { background: var(--dark); color: var(--on-dark); padding: 88px 0 40px; }
.footer-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; }
.footer-cta h2 { max-width: 760px; font-size: 46px; color: var(--on-dark); }
.footer-cta .cta-stack { align-items: flex-start; gap: 14px; }
.footer-cta .phone-line { color: var(--on-dark-muted); }
.footer-cta .phone-line b { color: var(--on-dark); }
.footer-rule { height: 1px; margin: 64px 0 48px; border: 0; background: var(--dark-line); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--on-dark-muted); }
.footer-col a { color: var(--on-dark-muted); text-decoration: none; }
.footer-col a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-col .strong { color: var(--on-dark); font-weight: 600; }
.footer-seal { display: block; flex-shrink: 0; width: 128px; height: 128px; margin-bottom: 6px; }
/* Печать — по центру над подписью (просьба владельца 23.09), а сам блок у левого края,
   как остальные колонки: колонка сжимается до ширины подписи */
.footer-brand { justify-self: start; align-items: center; text-align: center; }
.footer-label {
  padding-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
}
.footer-legal {
  margin-top: 48px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px 32px; font-size: 14px; color: var(--on-dark-soft);
}
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-legal a { color: var(--on-dark-soft); }
.footer-legal a:hover { color: var(--on-dark); }

/* На телефоне кнопка брони закреплена внизу экрана */
.sticky-cta { display: none; }

/* Стрелка «наверх» (создаёт main.js): появляется после первого экрана и едет вместе
   с прокруткой. Тёмный круг со светлым ободком виден и на песке, и на тёмном подвале */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 45;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(43, 33, 24, .9); color: var(--on-dark); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(243, 234, 218, .2), 0 10px 24px -10px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s, visibility .2s, transform .2s, background-color .15s, color .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .icon { width: 22px; height: 22px; }
.to-top:hover { background: var(--accent); }
.to-top:focus-visible { outline-color: var(--gold); }
/* Над тёмным подвалом тёмный круг сливался с фоном (замечание владельца 23.09) —
   там стрелка светлая; класс ставит main.js */
.to-top.on-dark {
  background: var(--sand); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(43, 33, 24, .25), 0 10px 24px -10px rgba(0, 0, 0, .7);
}
.to-top.on-dark:hover { background: var(--gold); }

/* Меню ещё в шапке, но подпись «квесты в Казани» рядом с печатью уже не помещается */
@media (min-width: 1200px) and (max-width: 1319px) {
  .brand-note { display: none; }
}

/* === Узкий ноутбук и планшет === */

@media (max-width: 1199px) {
  :root { --pad: 40px; }
  h2 { font-size: 38px; }
  .main-nav { display: none; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero h1 { font-size: 46px; }
  .hero-side { width: 100%; max-width: 640px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-lead, .faq-side { width: auto; max-width: 640px; }
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { flex-direction: column; gap: 32px; }
  .split-intro, .price-intro, .reviews-intro { width: auto; max-width: 640px; }
  .price-panel, .review-list, .feature-grid { width: 100%; }
  .route { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "map" "list" "links"; grid-template-rows: none; }
  .route-map { margin-top: 24px; }
  .footer-cta { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster-name { font-size: 30px; }
  .poster-grid.n3 .poster-name { font-size: 24px; }
}

@media (max-width: 900px) {
  .header-phone { display: none; }
  .poster { aspect-ratio: 4 / 3; }
  .poster-body { margin-bottom: 20px; padding: 0 16px; gap: 8px; }
  .poster-name { font-size: 24px; }
  .poster-meta { font-size: 13.5px; gap: 4px 14px; }
  .poster-grid.n3 { grid-template-columns: minmax(0, 1fr); }
  .poster-grid.n3 .poster { aspect-ratio: 5 / 2; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .occasions { grid-template-columns: minmax(0, 1fr); }
  .faq-cols { grid-template-columns: minmax(0, 1fr); }
  .faq-col:first-child { border-bottom: 0; }
  .review-list {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-right: calc(-1 * var(--pad)); padding-right: var(--pad);
    scrollbar-width: none;
  }
  .review-list::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 300px; scroll-snap-align: start; }
}

/* === Телефон === */

@media (max-width: 760px) {
  :root { --pad: 20px; --header: 60px; }
  html { scroll-padding-top: 0; }
  body { padding-bottom: 84px; }
  h2 { font-size: 28px; line-height: 1.14; }
  .eyebrow { font-size: 11.5px; }

  .site-header { position: static; }
  .brand { gap: 10px; }
  .brand-seal { width: 36px; height: 36px; }
  .brand-name { font-size: 22px; }
  .brand-note, .header-actions { display: none; }
  .icon-btn { display: flex; }

  .hero { padding-top: 22px; }
  .hero-row, .hero-title, .hero-side { gap: 12px; }
  .hero h1 { font-size: 28px; line-height: 1.14; }
  .lead { font-size: 15.5px; line-height: 1.5; }
  .hero .btn-row, .hero .phone-line, .trust-row { display: none; }
  .trust-inline { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
  .trust-inline .star { width: 15px; height: 15px; }

  .poster-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero .poster-grid { padding-top: 20px; padding-bottom: 40px; }
  .poster, .poster-grid.n3 .poster { aspect-ratio: 16 / 10; border-radius: 14px; }
  .poster-price { top: 12px; left: 14px; font-size: 13px; }
  .poster-badge { top: 10px; right: 12px; padding: 4px 8px; font-size: 10.5px; }
  .poster-body { margin-bottom: 16px; gap: 7px; }
  .poster-emblem, .poster-grid.n3 .poster-emblem { width: 30px; height: 30px; }
  .poster-name, .poster-grid.n3 .poster-name { font-size: 25px; }
  .poster-meta, .poster-grid.n3 .poster-meta { font-size: 13px; }
  .poster-meta .icon { width: 14px; height: 14px; }

  .section { padding: 48px 0; }
  .section-head { margin-bottom: 20px; gap: 12px; }
  .titles { gap: 12px; }
  .section-lead { font-size: 15px; }
  #podbor .section-lead { display: none; }
  .note { margin-top: 20px; font-size: 14.5px; line-height: 1.5; }

  .pick-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pick-card { padding: 16px 18px; gap: 6px; border-radius: 14px; }
  .label { font-size: 11px; }
  .pick-name { font-size: 19px; }
  .pick-name .icon { display: block; width: 18px; height: 18px; }
  .pick-text { font-size: 14.5px; line-height: 1.45; }
  .more { display: none; }

  .split { gap: 20px; }
  .split-intro { gap: 12px; }
  .intro-text { margin-top: 0; font-size: 15px; line-height: 1.55; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .feature { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 14px; }
  .feature .circle-icon { width: 40px; height: 40px; }
  .feature .circle-icon .icon { width: 19px; height: 19px; }
  .feature-body { gap: 4px; }
  .feature h3 { font-size: 18px; line-height: 1.25; }
  .feature p { font-size: 14.5px; line-height: 1.45; }

  .duo-section { padding-bottom: 48px; }
  .duo { gap: 14px; }
  .panel { border-radius: 18px; }
  .panel img { height: 170px; }
  .panel-body { padding: 22px 20px 24px; gap: 10px; }
  .panel h3 { font-size: 24px; line-height: 1.17; }
  .panel p { font-size: 15px; line-height: 1.5; }
  .panel .small { font-size: 13.5px; }
  .panel .text-link { height: 44px; font-size: 15px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .step { gap: 14px; }
  .chat { height: 340px; }
  .step-body { gap: 6px; padding-top: 2px; }
  .step-title { align-items: flex-start; gap: 10px; }
  .step-num { width: 26px; height: 26px; font-size: 13.5px; }
  .step h3 { font-size: 18px; line-height: 1.25; }
  .step p { font-size: 14.5px; line-height: 1.45; }
  .bron-bottom { margin-top: 20px; flex-direction: column; align-items: stretch; gap: 12px; }
  .info { padding: 16px 18px; font-size: 14.5px; line-height: 1.5; }
  .bron-bottom .btn { display: none; }
  .small-phone { white-space: normal; }

  .price-intro { gap: 12px; }
  .price-big { margin-top: 0; }
  .price-big .num { font-size: 44px; }
  .price-big .unit { font-size: 16px; }
  .price-text { font-size: 15px; }
  .price-intro .fine { font-size: 13.5px; }
  .price-panel { padding: 18px 18px 20px; border-radius: 16px; }
  .price-panel-head h3 { font-size: 19px; }
  .price-panel-head span { font-size: 12.5px; }
  .price-row { padding: 12px 0; gap: 12px; }
  .price-row .q b, .price-row .sum { font-size: 15px; }
  .price-row .q span { font-size: 12.5px; }
  .included-title { margin-top: 16px; font-size: 11px; }
  .included { grid-template-columns: minmax(0, 1fr); gap: 8px; font-size: 14.5px; }
  .price-note { margin-top: 14px; font-size: 13.5px; }

  .occasions { gap: 10px; }
  .occasion { padding: 18px; gap: 10px; border-radius: 14px; }
  .occasion-head { flex-direction: row; align-items: center; gap: 12px; }
  .occasion .circle-icon { width: 38px; height: 38px; }
  .occasion .circle-icon .icon { width: 18px; height: 18px; }
  .occasion h3 { font-size: 20px; }
  .occasion p { font-size: 14.5px; line-height: 1.5; }
  .occasion .text-link { height: 44px; font-size: 14.5px; }

  .rating { margin-top: 4px; gap: 14px; }
  .rating .num { font-size: 48px; }
  .stars .icon { width: 15px; height: 15px; }
  .rating-note { font-size: 13.5px; }
  .games { display: none; }
  .review { flex-basis: 272px; min-height: 210px; padding: 20px; gap: 12px; border-radius: 14px; }
  .review p { font-size: 14.5px; line-height: 1.5; }
  .review-who b { font-size: 14px; }
  .review-who span { font-size: 12.5px; }
  .stack-buttons { align-items: stretch; margin-top: 8px; }

  .route-map { margin-top: 20px; border-radius: 14px; }
  .route-list { margin-top: 20px; gap: 14px; }
  .route-list li { gap: 12px; }
  .route-icon { width: 36px; height: 36px; }
  .route-icon .icon { width: 17px; height: 17px; }
  .route-text { gap: 2px; padding-top: 0; }
  .route-text b { font-size: 15px; }
  .route-text span { font-size: 14px; line-height: 1.45; }
  .route-links { margin-top: 20px; flex-direction: column; }
  .route-links .btn { width: 100%; }

  .faq-side { display: none; }
  .faq-after { display: block; margin-top: 16px; font-size: 14.5px; line-height: 1.5; }
  .faq-after a { font-weight: 600; }
  .faq-col summary { padding: 16px 0; gap: 14px; font-size: 15.5px; }
  .faq-col details[open] summary { padding-bottom: 8px; }
  .faq-icon { width: 19px; height: 19px; margin-top: 1px; }
  .answer { padding: 0 20px 18px 0; font-size: 14.5px; line-height: 1.5; }

  .site-footer { padding: 48px 0 32px; }
  .footer-cta { gap: 16px; }
  .footer-cta h2 { font-size: 28px; }
  .footer-cta .cta-stack { width: 100%; gap: 12px; }
  .footer-cta .btn { width: 100%; height: 52px; }
  .footer-rule { margin: 32px 0 28px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-seal { width: 112px; height: 112px; }
  .footer-col { font-size: 14.5px; gap: 8px; }
  .footer-label { font-size: 11.5px; padding-bottom: 2px; }
  .footer-legal { margin-top: 32px; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 13px; }
  .footer-legal nav { flex-direction: column; gap: 8px; }

  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
    background: var(--sand); border-top: 1px solid var(--line);
  }
  .sticky-cta .btn { width: 100%; height: 52px; }
  /* Стрелка — над закреплённой кнопкой брони, а не поверх неё */
  .to-top { right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
}

/* Номер телефона, цены и время не должны рваться на две строки */
a[href^="tel:"] b, .header-phone, .nowrap { white-space: nowrap; }


/* ================================================================
   Страница квеста: /kvest/<slug>/
   Кнопки, карточки, блок «Что внутри», цены, отзывы и подвал — те же,
   что на главной. Здесь только то, чего на главной нет.
   ================================================================ */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { color: var(--dash); }
.crumbs [aria-current] { color: var(--ink); }

/* Первый экран: название сверху слева, текст и кнопки прижаты к низу фото */
.q-hero { padding-top: 28px; }
.q-hero-grid {
  margin-top: 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  grid-template-areas: "title photo" "text photo";
  grid-template-rows: auto 1fr;
  column-gap: 64px; row-gap: 28px;
}
.q-hero-title { grid-area: title; display: flex; flex-direction: column; gap: 16px; }
.q-hero h1 { font-size: 56px; line-height: 1.08; }
.q-hero-text { grid-area: text; align-self: end; display: flex; flex-direction: column; gap: 20px; }
.q-hero-photo { grid-area: photo; display: block; overflow: hidden; border-radius: 20px; cursor: zoom-in; }
.q-hero-photo img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; transition: filter .2s; }
.q-hero-photo:hover img { filter: brightness(1.06); }
.q-rating { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.q-rating b { font-weight: 600; color: var(--ink); }
/* Выделение на первом экране квеста — у каждого своё главное. У «Атомного сердца» —
   для тех, кто ищет «Штаб-квартиру КГБ»: должны сразу понять, что попали куда надо */
.q-plate {
  padding: 14px 18px; border-radius: 12px; background: var(--card);
  box-shadow: inset 3px 0 0 var(--brass);
  font-size: 15.5px; line-height: 1.5; color: var(--body);
}
.q-plate strong { font-weight: 600; color: var(--ink); }

.q-facts {
  margin: 40px 0 0; padding: 26px 0 36px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px;
}
.q-fact { display: flex; flex-direction: column; gap: 4px; }
.q-fact dt {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brass);
}
.q-fact dd { margin: 0; }
.q-fact-value { font-family: var(--display); font-weight: var(--display-weight); font-size: 24px; line-height: 1.2; }
.q-fact-note { font-size: 14px; line-height: 1.4; color: var(--muted); }

/* Галерея: по нажатию фото открывается крупно (main.js), без скрипта — отдельной страницей */
.q-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.q-gallery.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-gallery.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.q-gallery a { display: block; overflow: hidden; border-radius: 16px; cursor: zoom-in; }
.q-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s, filter .2s; }
.q-gallery a:hover img { transform: scale(1.03); filter: brightness(1.08); }

/* Расписание: все сеансы с ценой. Занятость не показываем — её знает только бот */
.q-price-intro { width: 420px; }
.q-schedule { flex: 1; min-width: 0; }
.slots { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.slot {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px 15px; border-radius: 14px; background: var(--card);
}
.slot-time { font-family: var(--display); font-weight: var(--display-weight); font-size: 26px; line-height: 1.1; }
.slot-price { font-size: 15px; font-weight: 600; color: var(--body); white-space: nowrap; }
.slot.best { background: #DCE4D4; }
.slot.best .slot-price { color: var(--accent); }
.slot.night { background: var(--dark); color: var(--on-dark); }
.slot.night .slot-price { color: var(--gold); }
.slot .icon { position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; color: var(--gold); }
.slot-legend {
  margin: 16px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted);
}
.slot-legend li { display: flex; align-items: center; gap: 8px; }
/* Образец — уменьшенная плитка, а не квадратик: квадратик читался как пустая галочка */
.swatch { width: 22px; height: 14px; flex-shrink: 0; border-radius: 4px; }
.swatch.best { background: #DCE4D4; box-shadow: inset 0 0 0 1px #9FB294; }
.swatch.night { background: var(--dark); }
.q-schedule .bron-bottom { margin-top: 28px; }

/* Один отзыв крупно. Класс свой, а не .review: на узком экране .review
   становится карточкой ленты фиксированной ширины */
.q-review {
  flex: 1; margin: 0; padding: 40px 44px; border-radius: 20px; background: var(--card);
  display: flex; flex-direction: column; gap: 22px;
}
.q-review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-quote { width: 34px; height: 34px; color: var(--brass); }
.q-review .stars .icon { width: 16px; height: 16px; }
.q-review blockquote { margin: 0; }
.q-review p { font-size: 20px; line-height: 1.6; color: var(--ink); }

/* Сюжет квеста. Последний абзац у всех четырёх — обращение к игрокам, он набран
   Vollkorn как точка в конце. Всю легенду им не набираем: загружен только жирный 700 */
.q-legend {
  flex: 1; min-width: 0; max-width: 720px;
  display: flex; flex-direction: column; gap: 16px;
  font-size: 19px; line-height: 1.6; color: var(--body);
  text-wrap: pretty; /* без одиноких слов в последней строке абзаца */
}
.q-hero .lead { text-wrap: pretty; }
.q-legend p:last-child {
  margin-top: 4px; font-family: var(--display); font-weight: var(--display-weight);
  font-size: 24px; line-height: 1.35; color: var(--ink);
}

/* --- Просмотр фото крупно --- */

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(24, 18, 12, .95); color: var(--on-dark);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure {
  margin: 0; max-width: calc(100% - 200px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lightbox img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 130px); border-radius: 10px; }
.lightbox figcaption { font-size: 15px; line-height: 1.4; color: var(--on-dark-muted); text-align: center; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 999px;
  background: rgba(243, 234, 218, .12); color: var(--on-dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: rgba(243, 234, 218, .24); }
.lb-btn:focus-visible { outline-color: var(--gold); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-prev .icon { transform: scaleX(-1); }
html.lb-open { overflow: hidden; }

@media (max-width: 1199px) {
  .q-hero h1 { font-size: 46px; }
  .q-hero-grid { column-gap: 40px; }
  .q-hero-photo img { min-height: 420px; }
  .q-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .q-gallery.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-price-intro { width: auto; }
  .q-schedule { width: 100%; }
}

@media (max-width: 900px) {
  .q-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "photo" "text";
    grid-template-rows: none; row-gap: 20px;
  }
  .q-hero-photo img { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .q-hero-text { align-self: start; max-width: 640px; }
}

@media (max-width: 760px) {
  .q-hero { padding-top: 16px; }
  .crumbs { font-size: 13px; }
  .q-hero-grid { margin-top: 14px; row-gap: 14px; }
  .q-hero-title { gap: 10px; }
  .q-hero h1 { font-size: 30px; line-height: 1.12; }
  .q-hero-photo { border-radius: 14px; }
  .q-hero-text { gap: 12px; }
  /* Кнопку брони и телефон заменяет закреплённая внизу кнопка; «Расписание и цены»
     остаётся — короткий путь к сеансам мимо сюжета и фото */
  .q-hero .btn-row .btn-accent, .q-hero .phone-line { display: none; }
  .q-hero .btn-row .btn-outline { width: 100%; height: 48px; font-size: 15.5px; }
  .q-rating { font-size: 13.5px; }
  .q-rating .star { width: 15px; height: 15px; }
  .q-plate { padding: 12px 14px; font-size: 14px; }
  .q-facts {
    margin-top: 22px; padding: 18px 0 36px;
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px;
  }
  .q-fact dt { font-size: 11px; }
  .q-fact-value { font-size: 19px; }
  .q-fact-note { font-size: 12.5px; }

  /* Фото на телефоне листаются вбок, следующее выглядывает справа */
  .q-gallery, .q-gallery.n2, .q-gallery.n4 {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-right: calc(-1 * var(--pad)); padding-right: var(--pad);
    scrollbar-width: none;
  }
  .q-gallery::-webkit-scrollbar { display: none; }
  .q-gallery a { flex: 0 0 84%; scroll-snap-align: start; border-radius: 14px; }

  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .slot { padding: 10px 12px 11px; border-radius: 12px; gap: 2px; }
  .slot-time { font-size: 20px; }
  .slot-price { font-size: 13.5px; }
  .slot .icon { top: 10px; right: 10px; width: 14px; height: 14px; }
  .slot-legend { margin-top: 12px; flex-direction: column; gap: 6px; font-size: 13px; }
  .q-schedule .bron-bottom { margin-top: 20px; }

  .q-review { padding: 22px 20px; gap: 14px; border-radius: 14px; }
  .q-quote { width: 26px; height: 26px; }
  .q-review p { font-size: 16px; line-height: 1.55; }

  .q-legend { gap: 12px; font-size: 16px; line-height: 1.55; }
  .q-legend p:last-child { margin-top: 2px; font-size: 19px; }

  .lightbox figure { max-width: 100%; }
  .lightbox img { max-height: calc(100vh - 170px); border-radius: 0; }
  .lb-close { top: 12px; right: 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}


/* ================================================================
   Документы: /politika/ и /pravila/
   Длинный текст для чтения: строка не шире ~75 знаков, слева
   закреплённое содержание со ссылками на разделы.
   ================================================================ */

.doc { padding: 28px 0 96px; }
.doc-head { margin-top: 28px; max-width: 860px; display: flex; flex-direction: column; gap: 14px; }
.doc-head h1 { font-size: 52px; line-height: 1.1; }
.doc-meta { font-size: 15px; color: var(--muted); }
.doc-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: 280px minmax(0, 760px); gap: 64px; align-items: start;
}
.doc-toc {
  position: sticky; top: calc(var(--header) + 24px);
  padding: 22px 24px; border-radius: 16px; background: var(--card);
}
.doc-toc-title {
  margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brass);
}
.doc-toc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.doc-toc a { font-size: 14.5px; line-height: 1.4; color: var(--body); text-decoration: none; }
.doc-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc-body { font-size: 17px; line-height: 1.65; color: var(--body); }
.doc-body h2 { margin: 44px 0 14px; font-size: 26px; line-height: 1.2; color: var(--ink); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p { margin: 0 0 14px; }
.doc-body ul { margin: 0 0 14px; padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }
.doc-body a { color: var(--accent); font-weight: 500; }
.doc-body strong { font-weight: 600; color: var(--ink); }
.doc-card {
  margin-bottom: 36px; padding: 20px 24px; border-radius: 16px; background: var(--card);
  box-shadow: inset 3px 0 0 var(--brass); font-size: 16px; line-height: 1.6;
}
.doc-card p { margin: 0; }
/* Место, которое надо заполнить до публикации (ОГРНИП, почта, адрес сайта, дата) —
   жёлтое, чтобы не проглядеть */
.todo { padding: 1px 6px; border-radius: 4px; background: #F6D98B; color: var(--ink); }

@media (max-width: 1199px) {
  .doc-head h1 { font-size: 44px; }
  .doc-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 900px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .doc-toc { position: static; }
}

@media (max-width: 760px) {
  .doc { padding: 16px 0 56px; }
  .doc-head { margin-top: 14px; gap: 10px; }
  .doc-head h1 { font-size: 28px; line-height: 1.15; }
  .doc-meta { font-size: 13.5px; }
  .doc-grid { margin-top: 24px; gap: 20px; }
  .doc-toc { padding: 16px 18px; border-radius: 14px; }
  .doc-toc a { font-size: 14px; }
  .doc-body { font-size: 15.5px; line-height: 1.6; }
  .doc-body h2 { margin: 32px 0 10px; font-size: 21px; }
  .doc-card { margin-bottom: 28px; padding: 16px 18px; font-size: 15px; }
}
