/* Vincent — одна страница, одна задача: довести гостя до брони.
   Фото зала лежит фоном под всем содержимым, а текст и форма — на
   затемнённой панели с размытием: так кадр виден целиком, а поля читаются. */

/* ── шрифты ────────────────────────────────────────────────────────────────
   Ван Гог подписывал холсты одним словом — «Vincent», от руки. Отсюда
   рукописная вывеска. Рядом — антиква конца XIX века. Файлы локальные:
   сайт не должен зависеть от доступности Google. */

@font-face {
  font-family: "Signature";
  src: url("/static/fonts/marck-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F;
  font-display: swap;
}
@font-face {
  font-family: "Signature";
  src: url("/static/fonts/marck-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-display: swap;
}
@font-face {
  font-family: "Antiqua";
  src: url("/static/fonts/cormorant-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F;
  font-weight: 300 500;
  font-display: swap;
}
@font-face {
  font-family: "Antiqua";
  src: url("/static/fonts/cormorant-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-weight: 300 500;
  font-display: swap;
}

:root {
  --ink: #f4efe7;
  --ink-dim: #a9a199;
  --bg: #100f0e;
  --line: rgba(244,239,231,.16);
  --accent: #c9a227;
  --bad: #e8836f;
  --ok: #8fbf7a;
  --panel: rgba(16,15,14,.66);
  --field: rgba(10,9,8,.55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── фон ───────────────────────────────────────────────────────────────────
   Фиксирован: страница прокручивается, кадр остаётся на месте, и панель
   с формой едет по нему. Затемнение мягкое — фото должно оставаться фотом. */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(16,15,14,.45), rgba(16,15,14,.62)),
    image-set(url("/static/img/hero.webp") type("image/webp"),
              url("/static/img/hero.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* Телефону незачем тянуть кадр под десктоп: 182 КБ вместо 474 КБ */
@media (max-width: 700px) {
  .backdrop {
    background-image:
      linear-gradient(180deg, rgba(16,15,14,.45), rgba(16,15,14,.62)),
      image-set(url("/static/img/hero-small.webp") type("image/webp"),
                url("/static/img/hero-small.jpg") type("image/jpeg"));
    background-size: cover;
    background-position: center 38%;
  }
}

/* ── панель ────────────────────────────────────────────────────────────── */

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 20px;
}

.card {
  width: 100%;
  max-width: 480px;
  padding: 40px 34px 32px;
  text-align: center;
  background: var(--panel);
  /* Размытие делает фон под панелью спокойным, но не превращает его в пятно */
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.mark {
  margin: 0;
  font-family: "Signature", Georgia, serif;
  font-size: clamp(52px, 13vw, 76px);
  font-weight: 400;
  line-height: 1.05;
  text-shadow: 0 2px 22px rgba(0,0,0,.5);
}

.tagline {
  margin: 4px 0 0;
  font-family: "Antiqua", Georgia, serif;
  color: var(--ink-dim);
  font-size: 18px;
  letter-spacing: 0.16em;
}

/* ── кнопки ────────────────────────────────────────────────────────────── */

.actions {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid rgba(244,239,231,.34);
  border-radius: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .16s, border-color .16s;
}

.btn:hover { border-color: var(--accent); }

.btn-main {
  background: var(--accent);
  border-color: var(--accent);
  color: #17120a;
}

.btn-main:hover { background: #d8b03a; border-color: #d8b03a; }

/* ── форма ─────────────────────────────────────────────────────────────── */

/* Свёрнуто — не display:none: остаётся плавное раскрытие */
.booking {
  max-height: 1400px;
  opacity: 1;
  overflow: hidden;
  transition: max-height .45s ease, opacity .3s ease, margin .3s ease;
  margin-top: 30px;
}

.booking.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.title {
  margin: 0 0 22px;
  font-family: "Antiqua", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.form { display: flex; flex-direction: column; gap: 14px; text-align: left; }

.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field > span {
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--ink-dim);
}

.field i { font-style: normal; opacity: .7; }

input, select, textarea {
  width: 100%;
  padding: 12px 13px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;               /* меньше 16px — iOS зумит страницу при фокусе */
  transition: border-color .15s, background .15s;
}

textarea { resize: vertical; min-height: 46px; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(10,9,8,.72);
}

input::placeholder, textarea::placeholder { color: #6d665f; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%),
                    linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* Впервые у нас — переключатель, а не список: два варианта,
   и оба должны быть видны сразу, без раскрытия. */

.choice { border: 0; margin: 0; padding: 0; }

.choice legend {
  padding: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--ink-dim);
}

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.segmented label { cursor: pointer; }

.segmented input { position: absolute; opacity: 0; pointer-events: none; }

.segmented span {
  display: block;
  padding: 11px 8px;
  text-align: center;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 14px;
  color: var(--ink-dim);
  transition: border-color .15s, color .15s, background .15s;
}

.segmented input:checked + span {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(201,162,39,.12);
}

.segmented label:hover span { border-color: rgba(244,239,231,.32); }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  margin-top: 8px;
  padding: 15px;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  color: #17120a;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  transition: opacity .15s;
}

.submit:hover { opacity: .88; }
.submit:disabled { opacity: .45; cursor: default; }

.form.done .row, .form.done .field, .form.done .submit { display: none; }

.note { margin: 2px 0 0; min-height: 18px; font-size: 14px; color: var(--ink-dim); }
.note.bad { color: var(--bad); }
.note.ok { color: var(--ok); font-size: 16px; text-align: center; padding: 10px 0; }

/* ── контакты ──────────────────────────────────────────────────────────── */

.contacts {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.line { margin: 5px 0; font-size: 14px; }
.line.muted { color: var(--ink-dim); }
.social { margin-top: 14px; display: flex; gap: 20px; justify-content: center; }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
a:hover { border-color: var(--accent); }
.btn { border-bottom: 1px solid rgba(244,239,231,.34); }
.btn-main { border-bottom-color: var(--accent); }

/* ── страница меню ─────────────────────────────────────────────────────── */

.soon { padding: 6px 0 4px; }

.soon-line {
  margin: 0;
  font-family: "Antiqua", Georgia, serif;
  font-size: 24px;
}

.soon-note { margin: 10px 0 0; color: var(--ink-dim); font-size: 15px; }

@media (max-width: 420px) {
  .card { padding: 32px 22px 26px; }
  .row.two { grid-template-columns: 1fr; }
}

/* ── страница меню ─────────────────────────────────────────────────────────
   Меню показываем страницами-картинками, как оно свёрстано на печать.
   Пересобирать его в текст значило бы поддерживать вторую версию, которая
   разойдётся с бумажной при первой же смене цен. */

.page-wide { align-items: flex-start; padding-top: 6vh; }

.card-wide { max-width: 1120px; }

.group {
  margin: 30px 0 14px;
  font-family: "Antiqua", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.group .hours {
  display: block;
  margin-top: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-dim);
}

/* Колонки задаём явно, а не auto-fit: страницы меню вертикальные и
   узкие, и «сколько влезет» раскладывало их то в три колонки, то в одну
   — на разных экранах вёрстка выглядела по-разному. */
.sheets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

/* Бранч — две страницы, растягивать их на три колонки незачем */
.sheets.two { grid-template-columns: repeat(2, 1fr); max-width: 68%; }

@media (max-width: 900px) {
  .sheets, .sheets.two { grid-template-columns: repeat(2, 1fr); max-width: none; }
}

@media (max-width: 560px) {
  .sheets, .sheets.two { grid-template-columns: 1fr; max-width: none; }
}

.sheet {
  display: block;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  transition: border-color .16s, transform .16s;
}

.sheet:hover { border-color: var(--accent); transform: translateY(-2px); }

.sheet img { display: block; width: 100%; height: auto; }

.allergy {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--ink-dim);
  text-align: center;
}

/* Просмотр во весь экран.
   display:flex перебивает атрибут hidden — без этой строки оверлей
   висел бы поверх страницы с самого начала. */
.viewer[hidden] { display: none; }

.viewer {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(8,7,6,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: zoom-out;
  overflow: auto;
}

.viewer img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

@media (max-width: 420px) {
  .viewer { padding: 8px; align-items: flex-start; }
}
