/* ============================================================
   Ресторан «Циклоп» — стили
   Палитра и типографика взяты с текущего cyclope.rest:
   Kazimir — основной текст, Bad Russian — крупные заголовки.
   ============================================================ */

@font-face { font-family: 'Kazimir'; src: url('../fonts/kazimir-300.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Kazimir'; src: url('../fonts/kazimir-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Kazimir'; src: url('../fonts/kazimir-500.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Kazimir'; src: url('../fonts/kazimir-600.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Kazimir'; src: url('../fonts/kazimir-700.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bad Russian'; src: url('../fonts/bad-russian-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #e2ddd2;          /* основной бежевый фон */
  --bg-deep: #ccc5b7;     /* более тёмный бежевый для чередования блоков */
  --bg-light: #ebe7df;
  --ink: #373d38;         /* основной текст, тёмно-зелёный */
  --ink-soft: #5c615d;
  --muted: #8a8d86;
  --dark: #1f1f1f;        /* тёмные блоки и подвал */
  --olive: #676636;       /* кнопки */
  --olive-hover: #55542c;
  --gold: #85764f;        /* акценты */
  --cream: #faf7cd;       /* цвет логотипа */
  --line: rgba(55, 61, 56, .18);
  --line-dark: rgba(255, 255, 255, .16);
  --font-body: 'Kazimir', Georgia, 'Times New Roman', serif;
  --font-display: 'Bad Russian', 'Kazimir', Georgia, serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 600; }
button { font: inherit; color: inherit; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
main section[id] { scroll-margin-top: var(--header-h); }
.section--deep { background: var(--bg-deep); }
.section--light { background: var(--bg-light); }
.section--dark { background: var(--dark); color: #fff; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* ---------- Типографика ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section--dark .eyebrow { color: #c9bc92; }
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: .01em;
  margin: 0 0 28px;
}
h1.h-display { font-size: clamp(42px, 7vw, 96px); }
h2.h-display { font-size: clamp(34px, 4.6vw, 60px); }
h3.h-display { font-size: clamp(26px, 3vw, 40px); }
.h-serif {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
  margin: 0 0 20px;
}
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; }
.text { max-width: 62ch; }
.text p + p { margin-top: 1em; }
.text--center { margin-inline: auto; text-align: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 36px;
  border: 1px solid var(--olive);
  background: var(--olive);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--olive-hover); border-color: var(--olive-hover); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); border-color: var(--gold); }
.btn--gold:hover { background: #6f6240; border-color: #6f6240; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: 13px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 400; letter-spacing: .04em;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: opacity .2s;
}
.link-arrow:hover { opacity: .65; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: block; width: 120px; flex: none; }
.header__logo img { width: 100%; }
.header__logo .logo-dark { display: none; }
.header__nav { display: flex; align-items: center; gap: 22px; }
.header__nav a {
  font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  position: relative; padding: 6px 0; white-space: nowrap;
}
.header__nav .nav__btn { display: none; }
.header__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.header__nav a:hover::after, .header__nav a.is-active::after { transform: scaleX(1); }
.header__right { display: flex; align-items: center; gap: 22px; flex: none; }
.header__phone { font-size: 15px; font-weight: 400; letter-spacing: .02em; white-space: nowrap; }
.header__phone:hover { opacity: .75; }
.header.is-scrolled, .header.is-solid {
  background: rgba(226, 221, 210, .96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(8px);
}
.header.is-scrolled .logo-cream, .header.is-solid .logo-cream { display: none; }
.header.is-scrolled .logo-dark, .header.is-solid .logo-dark { display: block; }
.header.is-open { background: var(--bg); color: var(--ink); }
.header.is-open .logo-cream { display: none; }
.header.is-open .logo-dark { display: block; }

.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; cursor: pointer; position: relative; flex: none;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .3s, opacity .3s, top .3s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.header.is-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1320px) { .header__phone { display: none; } }
@media (max-width: 1100px) {
  .header__nav a { font-size: 12px; letter-spacing: .06em; }
  .header__nav { gap: 16px; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  /* A backdrop filter makes fixed descendants relative to the 72px header
     in WebKit. Keep the mobile menu anchored to the viewport instead. */
  .header, .header.is-scrolled, .header.is-solid {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .header__logo { width: 100px; }
  .burger { display: block; }
  .header__nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: auto;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overscroll-behavior: contain;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    padding: 24px var(--gutter) 40px; background: var(--bg); color: var(--ink);
    overflow-y: auto; transform: translateX(100%); transition: transform .3s; visibility: hidden;
  }
  .header.is-open .header__nav { transform: none; visibility: visible; }
  .header__nav a { font-size: 22px; letter-spacing: .06em; padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .header__nav a::after { display: none; }
  .header__nav .nav__btn { display: inline-flex; margin-top: 28px; border-bottom: 0; width: auto; font-size: 13px; letter-spacing: .12em; padding: 10px 22px; }
  .header__right .btn { display: none; }
}

/* ---------- Обложка ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.7) 100%);
}
.hero__inner { padding: calc(var(--header-h) + 60px) 0 clamp(56px, 8vw, 110px); }
.hero__kicker {
  font-family: var(--font-display); font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 22px; opacity: .9;
}
.hero__title { max-width: 14ch; margin-bottom: 26px; }
.hero__descr { max-width: 56ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 36px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .7;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* ---------- Сетка «текст + фото» ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.split__media--wide img { aspect-ratio: 4 / 3; }
.split__media--frame::after {
  content: ''; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.55); pointer-events: none;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .split__media img { aspect-ratio: 4 / 3; }
}

/* ---------- Шеф ---------- */
.chef__name { margin-bottom: 8px; }
.chef__role { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.chef__quote { font-size: clamp(20px, 1.9vw, 26px); font-weight: 400; line-height: 1.4; margin-bottom: 24px; }
.chef .split__media img { aspect-ratio: 3 / 4; filter: grayscale(1) contrast(1.05); }

/* ---------- Видео ---------- */
.video {
  position: relative; min-height: 72vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden; isolation: isolate; padding: 80px var(--gutter);
}
.video__media { position: absolute; inset: 0; z-index: -2; }
.video__media video, .video__media img { width: 100%; height: 100%; object-fit: cover; }
.video__shade { position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .6); } /* затемнение 60% по ТЗ */
.video__title { margin-bottom: 18px; }
.video__text { max-width: 52ch; margin-inline: auto; font-size: clamp(17px, 1.5vw, 21px); opacity: .9; }

/* ---------- Меню ---------- */
.menu__head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: 48px; }
.menu__set { font-family: var(--font-body); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.menu__set strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: .06em; color: var(--ink); margin-left: 12px; }
.menu__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.menu__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 80px);
  border-top: 1px solid var(--line);
}
.menu__item {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.menu__num { font-family: var(--font-display); font-size: 20px; color: var(--gold); }
.menu__dish { font-size: 17px; line-height: 1.4; }
.menu__note { margin-top: 28px; font-size: 15px; color: var(--ink-soft); max-width: 70ch; }
.menu__why { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.menu__why .split { align-items: start; }
@media (max-width: 860px) {
  .menu__head { grid-template-columns: 1fr; align-items: start; }
  .menu__grid { grid-template-columns: 1fr; }
}

/* ---------- Банкеты ---------- */
.banquets { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.banquets__bg { position: absolute; inset: 0; z-index: -2; }
.banquets__bg img { width: 100%; height: 100%; object-fit: cover; }
.banquets__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,20,20,.85) 0%, rgba(20,20,20,.55) 60%, rgba(20,20,20,.35) 100%); }
.banquets__inner { max-width: 640px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; margin: 36px 0 8px; }
.facts__num { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1; margin-bottom: 6px; }
.facts__label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } }

/* ---------- Сертификаты ---------- */
.certs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.cert {
  display: flex; flex-direction: column; gap: 14px;
  padding: 36px; background: var(--bg); border: 1px solid var(--line);
}
.cert__price { font-family: var(--font-display); font-size: clamp(30px, 3vw, 40px); line-height: 1; }
.cert__descr { color: var(--ink-soft); flex: 1; }
.cert__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.certs__media img { aspect-ratio: 4 / 3; }
@media (max-width: 720px) { .certs__grid { grid-template-columns: 1fr; } }

/* ---------- События ---------- */
.events__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.event { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #2a2a2a; color: #fff; display: flex; }
.event__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.55); transform: scale(1.06); transition: transform .6s; }
.event:hover .event__img { transform: scale(1.1); }
.event__body { position: relative; margin-top: auto; padding: 24px; width: 100%; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55)); }
.event__date { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 8px; }
.event__title { font-family: var(--font-display); font-size: 22px; line-height: 1.1; text-transform: uppercase; margin-bottom: 8px; }
.event__text { font-size: 15px; opacity: .85; }
.event__badge {
  position: absolute; top: 16px; left: 16px; padding: 6px 10px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(4px);
}
@media (max-width: 1000px) { .events__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .events__grid { grid-template-columns: 1fr; } .event { aspect-ratio: 4 / 3; } }

/* ---------- Посещение (1:1 с UPPA) ---------- */
.visit__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.visit-card { display: flex; flex-direction: column; gap: 16px; }
.visit-card__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-deep); }
.visit-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.visit-card:hover .visit-card__img img { transform: scale(1.04); }
.visit-card__title {
  font-family: var(--font-display); font-size: 22px; line-height: 1.1; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
}
.visit-card__title span:last-child { font-family: var(--font-body); font-size: 24px; transition: transform .25s; }
.visit-card:hover .visit-card__title span:last-child { transform: translateX(6px); }
.visit-card__text { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 1000px) { .visit__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .visit__grid { grid-template-columns: 1fr; } }

/* ---------- Часы и контакты (кратко, на главной) ---------- */
.hours { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.hours__col h3 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; font-weight: 400; }
.hours__col p { font-size: 17px; }
.hours__col a:hover { opacity: .7; }
@media (max-width: 800px) { .hours { grid-template-columns: 1fr; } }

/* ---------- Страница «Контакты» (1:1 с UPPA) ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px)); padding-bottom: clamp(32px, 5vw, 56px); }
.page-head .h-display { margin-bottom: 0; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contacts__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.contact-item { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item__name { font-style: italic; font-weight: 400; color: var(--ink-soft); font-size: 17px; }
.contact-item__body { font-size: 17px; }
.contact-item__body a:not(.link-arrow) { border-bottom: 1px solid var(--line); }
.contact-item__body a:not(.link-arrow):hover { border-color: currentColor; }
.contact-item__body .link-arrow { margin-top: 12px; font-size: 15px; }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } .contacts__media img { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .contact-item { grid-template-columns: 1fr; gap: 8px; } }

.map { margin-top: clamp(48px, 7vw, 96px); }
.map__frame { width: 100%; min-width: 0; aspect-ratio: 16 / 7; min-height: 320px; overflow: hidden; background: var(--bg-deep); position: relative; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.15); }
@media (max-width: 900px) {
  /* Avoid deriving a wide frame from the desktop ratio and minimum height. */
  .map__frame { aspect-ratio: auto; height: 320px; min-height: 0; }
  .contacts > * { min-width: 0; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; text-align: left; background: none; border: 0; cursor: pointer;
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; line-height: 1.3;
}
.faq__icon { flex: none; width: 28px; height: 28px; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; background: var(--gold); top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform .3s;
}
.faq__icon::before { width: 16px; height: 1px; }
.faq__icon::after { width: 1px; height: 16px; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 26px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Подвал (CN403, 1:1 с UPPA) ---------- */
.footer { background: var(--dark); color: #fff; padding: clamp(48px, 6vw, 80px) 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__cta {
  font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; text-transform: uppercase;
  display: inline-block;
}
.footer__cta:hover { opacity: .75; }
.footer__tagline { margin-top: 18px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
.footer__col li + li { margin-top: 10px; }
.footer__col a { font-size: 16px; font-weight: 400; opacity: .9; }
.footer__col a:hover { opacity: .6; }
.footer__col .footer__big { font-size: 20px; }
.footer__bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px; opacity: .7;
}
.footer__bottom a:hover { opacity: .7; }
.footer__logo { width: 110px; margin-bottom: 20px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Модальное окно бронирования ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .7); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative; width: min(100%, 960px); max-height: calc(100svh - 40px); overflow-y: auto;
  background: var(--bg); color: var(--ink); display: grid; grid-template-columns: 1fr 1.1fr;
  animation: modal-in .3s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal__aside { position: relative; background: var(--dark); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; isolation: isolate; }
.modal__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .75; }
.modal__aside::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.8)); }
.modal__aside .h-display { font-size: 34px; margin-bottom: 12px; }
.modal__aside p { font-size: 15px; opacity: .9; }
.modal__aside a { border-bottom: 1px solid rgba(255,255,255,.5); }
.modal__form { padding: 40px; }
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; font-size: 28px; line-height: 1; color: var(--ink); z-index: 2;
}
.modal__close:hover { opacity: .6; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form__field label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.form__field input, .form__field select, .form__field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: var(--radius); outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(133,118,79,.18); }
.form__field textarea { min-height: 84px; resize: vertical; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); margin: 4px 0 20px; }
.form__consent input { margin-top: 4px; }
.form__consent a { border-bottom: 1px solid currentColor; }
.form__status { margin-top: 14px; font-size: 15px; min-height: 1.4em; }
.form__status.is-error { color: #a33b2e; }
.form__status.is-ok { color: var(--olive); }
@media (max-width: 760px) {
  .modal { padding: 0; }
  .modal__panel { grid-template-columns: 1fr; max-height: 100svh; }
  .modal__aside { min-height: 220px; padding: 28px; }
  .modal__form { padding: 28px 20px 40px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Политика ---------- */
.policy { max-width: 820px; font-size: 16px; }
.policy h2 { font-family: var(--font-body); font-weight: 500; font-size: 22px; margin: 36px 0 14px; }
.policy p { margin-bottom: .8em; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Утилиты ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }

/* ============================================================
   Стили выбранных вариантов из пикера (designs.html)
   ============================================================ */
.v-giant { font-size: clamp(48px, 9vw, 150px) !important; line-height: .95; letter-spacing: 0; }
.v-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: 32px; }
.v-shade-even { background: rgba(0,0,0,.45) !important; }
.v-bigquote { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; font-weight: 400; max-width: 30ch; margin-bottom: 32px; }
.v-hero-frame { align-items: center; justify-content: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 64px; }
.v-hero-frame__box { border: 1px solid rgba(255,255,255,.6); padding: clamp(32px, 6vw, 80px); max-width: 820px; }
.v-hero-frame__box .hero__descr { margin-inline: auto; }
.v-video-bl { align-items: flex-end; text-align: left; justify-content: flex-start; padding-bottom: 56px; }
.v-video-bl .video__text { margin-inline: 0; }
.v-menu-frame { border: 1px solid var(--ink); padding: clamp(28px, 5vw, 64px); text-align: center; }
.v-menu-frame__head { margin-bottom: 32px; }
.v-menu-list { max-width: 720px; margin-inline: auto; border-top: 1px solid var(--line); }
.v-menu-list__item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; }
.v-menu-list__item .menu__dish { font-size: 17px; }
.v-cert-h { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; align-items: stretch; }
.v-cert-h__text { padding-right: 24px; }
.v-cert-h .cert { background: var(--bg); }
@media (max-width: 900px) { .v-cert-h { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .v-cols-2 { grid-template-columns: 1fr; } }

/* ---------- Страница «Камерные банкеты» ---------- */
.v-hero-page { min-height: 72svh; }
.v-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.v-card { display: block; padding: 32px; background: var(--bg); border: 1px solid var(--line); }
.v-card .facts__num { margin-bottom: 14px; }
.v-card p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .v-cards-3 { grid-template-columns: 1fr; } }

/* ---------- Страница «Книга» ---------- */
.book-hero { background: var(--dark); color: #fff; padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(56px, 8vw, 100px); }
.book-hero__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.book-hero__cover img { width: 100%; max-width: 440px; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.book-hero .eyebrow { color: #c9bc92; }
.book-hero__authors { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 24px; }
.book-hero .facts { margin: 32px 0 8px; }
.book-chapters { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 8px; }
.book-chapters li { padding: 24px 0; border-top: 1px solid var(--ink); font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 34px); text-transform: uppercase; line-height: 1; }
.book-chapters .menu__num { display: block; font-size: 16px; margin-bottom: 14px; }
.book-teaser__cover img { width: 100%; max-width: 340px; margin-inline: auto; filter: drop-shadow(0 24px 36px rgba(0,0,0,.5)); }
@media (max-width: 900px) { .book-hero__grid { grid-template-columns: 1fr; } .book-chapters { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .book-chapters { grid-template-columns: 1fr 1fr; } }

/* Booking availability and summary */
.form__field[hidden], .form__summary[hidden] { display: none; }
.form__summary { margin: 0 0 20px; padding: 14px 0; border-top: 1px solid var(--gold); font-size: 15px; line-height: 1.5; }
.modal__form :disabled { opacity: .55; cursor: not-allowed; }

.form__row[hidden] { display: none; }

/* Only restaurant working days can be selected. */
.booking-calendar-toggle { text-align: left; width: 100%; min-height: 50px; padding: 12px 14px; background: #fff; border: 1px solid transparent; color: var(--ink); font: inherit; cursor: pointer; }
.booking-calendar-toggle:focus-visible, .booking-calendar button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.booking-calendar { margin: 0 0 20px; padding: 16px; border: 1px solid var(--gold); }
.booking-calendar[hidden], .booking-calendar-toggle[hidden] { display: none; }
.booking-calendar__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; text-transform: capitalize; }
.booking-calendar button { border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; min-height: 40px; }
.booking-calendar__heading button { min-width: 40px; }
.booking-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.booking-calendar__grid > span { font-size: 13px; padding: 4px 0; }
.booking-calendar__grid button:disabled { opacity: .3; cursor: not-allowed; }
.booking-calendar__grid button:not(:disabled):hover { background: rgba(133,118,79,.18); }
.booking-calendar__grid button[aria-pressed="true"] { background: var(--gold); color: #fff; }
.booking-calendar p { font-size: 13px; line-height: 1.5; margin: 12px 0 0; }

.form__row--time { grid-template-columns: 1fr; }

.analytics-choice { position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 1500; max-width: 720px; margin: auto; padding: 20px; background: var(--cream, #e5dfd3); color: var(--ink, #373d38); border: 1px solid currentColor; box-shadow: 0 4px 24px #0002; }
.analytics-choice[hidden] { display: none; }
.analytics-choice p { margin: 0 0 16px; font-size: 16px; line-height: 1.5; }
.analytics-choice a { text-decoration: underline; }
.analytics-choice > div { display: flex; flex-wrap: wrap; gap: 10px; }
.analytics-settings { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
