/* ==========================================================================
   Карабас-Барабас — театральный ресторан
   Общая дизайн-система и стили всех страниц
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  /* Фон */
  --bg: #2D2A26;
  --bg-darker: #221F1C;
  --bg-lighter: #37332D;
  --bg-deep: #1A1816;

  /* Текст */
  --white: #F9F7F2;
  --sand: #E8DCC4;
  --sand-dim: #A89F8C;
  --ink: #2B2723; /* текст на светлых полях формы */

  /* Золото */
  --gold-light: #F3D89A;
  --gold: #C9A24B;
  --gold-dark: #8A6A2F;
  --grad-gold: linear-gradient(115deg, #F3D89A 0%, #C9A24B 50%, #8A6A2F 100%);
  --grad-gold-text: linear-gradient(115deg, #F3D89A 0%, #E7C47C 30%, #C9A24B 62%, #8A6A2F 100%);
  --line: rgba(201, 162, 75, 0.26);
  --line-strong: rgba(201, 162, 75, 0.62);
  --line-soft: rgba(232, 220, 196, 0.12);

  /* Статусы */
  --danger: #D9644F;
  --danger-text: #F2A493;

  /* Шрифты */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Геометрия */
  --container: 1200px;
  --gutter: 24px;
  --radius: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --header-h: 78px;

  /* Движение — единые параметры на весь сайт */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-reveal: 0.85s;
  --dur-modal: 0.55s;
  --dur-btn: 0.25s;
  --stagger: 0.09s;

  /* Тени */
  --shadow-card: 0 30px 60px -32px rgba(0, 0, 0, 0.85);
  --shadow-gold: 0 8px 22px -10px rgba(201, 162, 75, 0.6);
  --shadow-gold-strong: 0 16px 34px -12px rgba(201, 162, 75, 0.8);
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
    --header-h: 64px;
  }
}

/* ---------- 2. База ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--sand);
  font-family: var(--font-sans);
  font-size: clamp(16px, 0.92rem + 0.2vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  /* У Cormorant по умолчанию «старостильные» цифры (1 похожа на I, 0 — на o).
     Для цен и счётчиков нужны обычные — включаем lining-цифры для всего сайта. */
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

::selection {
  background: rgba(201, 162, 75, 0.35);
  color: var(--white);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold-light);
  color: var(--bg-deep);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
  transition: transform var(--dur-btn) var(--ease);
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* Золотая рамка страницы — как в референсе */
body::after {
  content: "";
  position: fixed;
  inset: 10px;
  z-index: 60;
  border: 1px solid rgba(201, 162, 75, 0.3);
  pointer-events: none;
}

@media (max-width: 720px) {
  body::after {
    display: none;
  }
}

/* ---------- 3. Типографика ---------- */
.h1,
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em; /* не обрезать выносные элементы при background-clip */
}

.h2,
h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
}

.h3,
h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.3;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow--left::after {
  display: none;
}

.lead {
  font-size: clamp(17px, 1rem + 0.35vw, 19px);
  line-height: 1.7;
  color: var(--sand);
}

.muted {
  color: var(--sand-dim);
}

.accent {
  color: var(--gold-light);
  font-weight: 700;
}

.price {
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- 4. Раскладка ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
}

.section--darker {
  background: var(--bg-darker);
}

.section--glow {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(201, 162, 75, 0.08), transparent 70%),
    var(--bg);
}

/* Тонкая золотая линия-разделитель с ромбом по центру */
.section--divided::before,
.section--divided::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.section--divided::before {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}

.section--divided::after {
  top: -4px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  background: var(--bg);
  transform: translateX(-50%) rotate(45deg);
}

.section--darker.section--divided::after {
  background: var(--bg-darker);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head .lead {
  margin-top: 18px;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

/* ---------- 5. Кнопки ---------- */
.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-position var(--dur-btn) var(--ease),
    transform var(--dur-btn) var(--ease),
    box-shadow var(--dur-btn) var(--ease),
    border-color var(--dur-btn) var(--ease),
    background-color var(--dur-btn) var(--ease),
    color var(--dur-btn) var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

/* Золотая: «живой» градиент — сдвиг background-position на hover */
.btn--gold {
  color: #1E1A15;
  background-image: var(--grad-gold);
  background-size: 180% 100%;
  background-position: 0% 50%;
  border-color: rgba(243, 216, 154, 0.55);
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--outline {
  color: var(--white);
  border-color: var(--line-strong);
  background-color: rgba(201, 162, 75, 0);
}

.btn--ghost {
  color: var(--sand);
  padding-inline: 14px;
}

.btn--sm {
  --btn-h: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.btn--lg {
  --btn-h: 58px;
  padding: 0 34px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

@media (hover: hover) {
  .btn--gold:hover {
    background-position: 100% 50%;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-strong), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  .btn--outline:hover {
    transform: translateY(-2px);
    border-color: var(--gold-light);
    background-color: rgba(201, 162, 75, 0.12);
    box-shadow: 0 12px 28px -14px rgba(201, 162, 75, 0.55);
  }

  .btn--ghost:hover {
    color: var(--gold-light);
  }
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Круглая кнопка-иконка (стрелки карусели, закрытие) */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(232, 220, 196, 0.45);
  border-radius: 50%;
  background: rgba(34, 31, 28, 0.35);
  color: var(--white);
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-btn) var(--ease),
    border-color var(--dur-btn) var(--ease),
    background-color var(--dur-btn) var(--ease),
    opacity var(--dur-btn) var(--ease);
}

@media (hover: hover) {
  .icon-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--gold-light);
    background-color: rgba(201, 162, 75, 0.14);
  }
}

.icon-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--gold-light);
  text-decoration: none;
}

.link-arrow .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-btn) var(--ease);
}

@media (hover: hover) {
  .link-arrow:hover .icon {
    transform: translateX(4px);
  }
}

/* ---------- 6. Изображения с театральным фолбэком ---------- */
/* Под каждой картинкой — стилизованная панель: градиент, тонкая сетка
   и мотив маски. Если файл не загрузится, гость увидит арт, а не битую иконку. */
.media {
  position: relative;
  overflow: hidden;
  background-color: #262320;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23C9A24B' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 14.5c0-4 6-6.3 16-4.3 10-2 16 .3 16 4.3 0 6.5-5 10.3-10.3 8.1-2.5-1-3.8-2.3-5.7-2.3s-3.2 1.3-5.7 2.3C13 24.8 8 21 8 14.5Z'/%3E%3Cpath d='M13.6 15.2c1.7-1.5 4.4-1.5 6 0M28.4 15.2c1.7-1.5 4.4-1.5 6 0'/%3E%3Cpath d='M24 26.2c-2.6-2.2-6.6-2.3-9.2.3-.8.8-.3 2 .8 1.8M24 26.2c2.6-2.2 6.6-2.3 9.2.3.8.8.3 2-.8 1.8'/%3E%3Cpath d='M16.2 28.4c.9 6.3 3.8 11.2 7.8 14.6 4-3.4 6.9-8.3 7.8-14.6M24 29.5v10'/%3E%3C/svg%3E"),
    linear-gradient(rgba(201, 162, 75, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 75, 0.07) 1px, transparent 1px),
    radial-gradient(120% 90% at 30% 15%, #3F3830 0%, #2A2622 55%, #1C1A17 100%);
  background-size: 64px 64px, 26px 26px, 26px 26px, 100% 100%;
  background-position: center, center, center, center;
  background-repeat: no-repeat, repeat, repeat, no-repeat;
}

.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.7s var(--ease),
    transform 0.9s var(--ease),
    filter 0.6s var(--ease);
}

.js .media:not(.is-loaded) > img {
  opacity: 0;
}

.media.is-broken > img {
  display: none;
}

/* ---------- 7. Хедер ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(34, 31, 28, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition:
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(26, 24, 22, 0.95);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.9);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__mark {
  width: 38px;
  height: 38px;
  color: var(--gold);
  transition: transform 0.6s var(--ease);
}

@media (hover: hover) {
  .logo:hover .logo__mark {
    transform: rotate(-8deg) scale(1.05);
  }
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.logo__sub {
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 8px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--sand);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-btn) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav__link[aria-current="page"] {
  color: var(--gold-light);
}

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (hover: hover) {
  .nav__link:hover {
    color: var(--white);
  }

  .nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.header__cta {
  flex-shrink: 0;
}

.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  -webkit-tap-highlight-color: transparent;
}

.burger__line {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.45s var(--ease),
    opacity 0.3s var(--ease);
}

.burger__line:nth-child(1) { top: 16px; }
.burger__line:nth-child(2) { top: 22px; }
.burger__line:nth-child(3) { top: 28px; }

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 8. Мобильное меню (slide-in справа) ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  transition: visibility 0s linear 0.55s;
}

.mobile-nav.is-open {
  visibility: visible;
  transition: visibility 0s;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 10, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(88vw, 380px);
  padding: 20px 28px 32px;
  overflow-y: auto;
  background:
    radial-gradient(80% 40% at 100% 0%, rgba(201, 162, 75, 0.1), transparent 70%),
    var(--bg-darker);
  border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.8);
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: none;
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  text-decoration: none;
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    color var(--dur-btn) var(--ease);
  transition-delay: calc(var(--i, 0) * 0.05s + 0.12s);
}

.mobile-nav.is-open .mobile-nav__link {
  opacity: 1;
  transform: none;
}

.mobile-nav__link[aria-current="page"] {
  color: var(--gold-light);
}

.mobile-nav__link .icon {
  color: var(--gold);
}

.mobile-nav__footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: auto;
  padding-top: 32px;
}

.mobile-nav__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sand);
  text-decoration: none;
}

.mobile-nav__contact .icon {
  color: var(--gold);
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 96px 0 120px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media > img {
  transform: scale(1.08);
  transition:
    opacity 1.2s var(--ease),
    transform 6s var(--ease);
}

.hero__media.is-loaded > img {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 48%, rgba(26, 24, 22, 0.3) 0%, rgba(26, 24, 22, 0.6) 70%, rgba(26, 24, 22, 0.88) 100%),
    linear-gradient(180deg, rgba(26, 24, 22, 0.45) 0%, rgba(26, 24, 22, 0.25) 40%, var(--bg) 100%);
}

.hero__content {
  max-width: 860px;
  padding-inline: var(--gutter);
}

.hero .h1 {
  font-size: clamp(48px, 9vw, 104px);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55));
}

.hero__lead {
  max-width: 640px;
  margin: 26px auto 0;
  color: var(--sand);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.hero__actions .btn--outline {
  background-color: rgba(26, 24, 22, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand-dim);
  text-decoration: none;
  transform: translateX(-50%);
  transition: color var(--dur-btn) var(--ease);
}

.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgba(232, 220, 196, 0.18);
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 50%;
  background: var(--gold-light);
  animation: scroll-cue 2.2s var(--ease) infinite;
}

@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

@media (hover: hover) {
  .scroll-cue:hover {
    color: var(--gold-light);
  }
}

/* Hero внутренних страниц */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 62vh, 620px);
  padding: 120px 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(26, 24, 22, 0.92) 0%, rgba(26, 24, 22, 0.7) 45%, rgba(26, 24, 22, 0.35) 100%),
    linear-gradient(180deg, rgba(26, 24, 22, 0.4) 0%, transparent 40%, var(--bg) 100%);
}

.page-hero__content {
  max-width: 700px;
}

.page-hero .lead {
  margin-top: 22px;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.page-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 36px;
  font-size: 14px;
  color: var(--sand-dim);
}

.page-hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-hero__facts .icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

/* ---------- 10. О ресторане ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__text .h2 {
  margin-bottom: 6px;
}

.dropcap::first-letter {
  float: left;
  margin: 8px 12px 0 0;
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 700;
  line-height: 0.8;
  color: var(--gold-light);
}

.about__sign {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about__sign-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold-light);
}

.about__sign-role {
  font-size: 14px;
  color: var(--sand-dim);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(34, 31, 28, 0.5);
}

.stats,
.quote-card,
.hours,
.summary__rows {
  margin: 0;
}

/* В разметке dt идёт первым (так требует HTML), визуально число — сверху */
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.stat dd {
  margin: 0;
}

.stat:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.stat:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--sand-dim);
}

.about__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quote-card {
  position: relative;
  padding: 28px 28px 28px 32px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(201, 162, 75, 0.08), transparent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-style: italic;
  line-height: 1.45;
  color: var(--white);
}

/* ---------- 11. Карусель ---------- */
.carousel {
  --gap: 20px;
  --per-view: 3;
  margin-top: clamp(48px, 7vw, 80px);
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--line);
}

.carousel__slide .media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 64px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(20, 18, 16, 0.88));
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--sand);
}

.carousel__caption strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--white);
}

@media (hover: hover) {
  .carousel__slide:hover .media > img {
    transform: scale(1.05);
  }
}

.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.carousel__arrows {
  display: flex;
  gap: 12px;
}

.dots {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: rgba(232, 220, 196, 0.28);
  transition:
    width 0.45s var(--ease),
    background-color 0.3s var(--ease);
}

.dot[aria-current="true"]::before {
  width: 26px;
  background: var(--gold);
}

/* ---------- 12. Карточки «Кухня / Бар / Лояльность» ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 28px);
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-lighter) 0%, var(--bg-darker) 100%);
  transition:
    transform 0.55s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.55s var(--ease);
}

.feature-card__media {
  aspect-ratio: 16 / 10;
}

.feature-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 6px 12px;
  border: 1px solid rgba(243, 216, 154, 0.5);
  border-radius: 999px;
  background: rgba(26, 24, 22, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.feature-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 32px);
}

.feature-card__body p {
  color: var(--sand-dim);
  font-size: 15.5px;
}

.feature-card__footer {
  margin-top: auto;
  padding-top: 10px;
}

.feature-card__note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--sand-dim);
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-card);
  }

  .feature-card:hover .media > img {
    transform: scale(1.05);
  }
}

.loyalty-list {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.loyalty-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(232, 220, 196, 0.16);
}

.loyalty-item:last-child {
  border-bottom: 0;
}

.loyalty-item__mask {
  width: 30px;
  height: 30px;
  color: var(--mask-color, var(--gold));
}

.loyalty-item__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}

.loyalty-item__cond {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--sand-dim);
}

.loyalty-item__pct {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--mask-color, var(--gold-light));
}

/* ---------- 13. Команда ---------- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 2.2vw, 28px);
}

.team-card {
  --cols: 5;
  width: calc((100% - (var(--cols) - 1) * clamp(20px, 2.2vw, 28px)) / var(--cols));
  display: flex;
  flex-direction: column;
}

.team-card__media {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.5s var(--ease);
}

.team-card__media > img {
  filter: grayscale(0.4) contrast(1.02);
}

/* Золотая рамка на hover */
.team-card__media::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease),
    transform 0.6s var(--ease);
}

@media (hover: hover) {
  .team-card:hover .team-card__media {
    box-shadow: 0 0 0 1px var(--gold), 0 24px 44px -24px rgba(201, 162, 75, 0.55);
  }

  .team-card:hover .team-card__media::after {
    opacity: 0.9;
    transform: scale(1);
  }

  .team-card:hover .team-card__media > img {
    filter: grayscale(0) contrast(1.02);
    transform: scale(1.04);
  }
}

.team-card__name {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.3;
}

.team-card__role {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.team-card__quote {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--sand-dim);
}

/* ---------- 14. Локация ---------- */
.location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.info-list {
  display: flex;
  flex-direction: column;
  margin: 32px 0 36px;
  border-top: 1px solid var(--line);
}

.info-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.info-item__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
}

.info-item__label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.info-item__value {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-weight: 500;
}

.info-item__value a {
  text-decoration: none;
  transition: color var(--dur-btn) var(--ease);
}

@media (hover: hover) {
  .info-item__value a:hover {
    color: var(--gold-light);
  }
}

.info-item__hint {
  display: block;
  font-size: 14px;
  color: var(--sand-dim);
}

.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 18px;
  margin-top: 4px;
  color: var(--white);
  font-weight: 500;
}

.hours dt {
  color: var(--sand-dim);
  font-weight: 400;
}

.hours dd {
  margin: 0;
  font-variant-numeric: lining-nums tabular-nums;
}

.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Театральный билет-пригласительный */
.ticket {
  --notch: 18px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 132px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(201, 162, 75, 0.14), transparent 60%),
    linear-gradient(160deg, #3A352E 0%, #2A2622 60%, #211E1B 100%);
  box-shadow: var(--shadow-card);
  transform: rotate(-1.5deg);
  transition: transform 0.7s var(--ease);
}

@media (hover: hover) {
  .ticket:hover {
    transform: rotate(0deg) translateY(-4px);
  }
}

.ticket__main {
  padding: clamp(26px, 3.4vw, 40px);
}

.ticket__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.ticket__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.05;
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.ticket__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px dashed rgba(232, 220, 196, 0.2);
}

.ticket__grid dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.ticket__grid dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
}

.ticket__note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--sand-dim);
}

.ticket__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 16px;
  border-left: 1px dashed rgba(232, 220, 196, 0.3);
}

/* Вырезы перфорации */
.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  left: calc(var(--notch) / -2 - 0.5px);
  width: var(--notch);
  height: var(--notch);
  border-radius: 50%;
  background: var(--bg-darker);
  border: 1px solid var(--line-strong);
}

.ticket__stub::before {
  top: calc(var(--notch) / -2 - 1px);
  clip-path: inset(50% 0 0 0);
}

.ticket__stub::after {
  bottom: calc(var(--notch) / -2 - 1px);
  clip-path: inset(0 0 50% 0);
}

.ticket__no {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-light);
}

.ticket__barcode {
  width: 44px;
  height: 120px;
  background: repeating-linear-gradient(
    180deg,
    var(--sand) 0 2px,
    transparent 2px 4px,
    var(--sand) 4px 5px,
    transparent 5px 8px,
    var(--sand) 8px 11px,
    transparent 11px 13px
  );
  opacity: 0.55;
}

/* ---------- 15. Футер ---------- */
.site-footer {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0 32px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__about {
  margin-top: 20px;
  max-width: 320px;
  font-size: 15px;
  color: var(--sand-dim);
}

.footer__title {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer__list a {
  color: var(--sand);
  text-decoration: none;
  transition: color var(--dur-btn) var(--ease);
}

@media (hover: hover) {
  .footer__list a:hover {
    color: var(--gold-light);
  }
}

.footer__list .muted {
  font-size: 14px;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--sand);
  transition:
    transform var(--dur-btn) var(--ease),
    color var(--dur-btn) var(--ease),
    border-color var(--dur-btn) var(--ease),
    background-color var(--dur-btn) var(--ease);
}

.social .icon {
  width: 19px;
  height: 19px;
}

@media (hover: hover) {
  .social:hover {
    transform: translateY(-2px);
    color: var(--bg-deep);
    border-color: var(--gold-light);
    background-color: var(--gold-light);
  }
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--sand-dim);
}

/* ---------- 16. Меню: табы ---------- */
.menu-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  margin-bottom: clamp(36px, 5vw, 56px);
  background: rgba(45, 42, 38, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tabs {
  position: relative;
  display: flex;
  gap: clamp(22px, 3vw, 40px);
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: inset 0 -1px 0 var(--line-strong);
  scroll-padding-inline: 8px;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  flex-shrink: 0;
  padding: 18px 0 16px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--sand-dim);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-btn) var(--ease);
}

.tab__count {
  margin-left: 6px;
  font-size: 12px;
  color: var(--sand-dim);
  opacity: 0.7;
}

.tab[aria-selected="true"] {
  color: var(--gold-light);
}

@media (hover: hover) {
  .tab:hover {
    color: var(--white);
  }
}

.tabs__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
  pointer-events: none;
  transition:
    transform 0.5s var(--ease),
    width 0.5s var(--ease);
}

/* ---------- 17. Меню: сетка и карточки ---------- */
.menu-panel {
  transition: opacity 0.25s var(--ease);
}

.menu-panel.is-switching {
  opacity: 0;
}

.menu-group + .menu-group {
  margin-top: clamp(56px, 8vw, 88px);
}

.menu-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.menu-group__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}

.menu-group__note {
  font-size: 14px;
  color: var(--sand-dim);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 44px) clamp(20px, 2.4vw, 28px);
}

.dish-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

/* внутри <button> допустимы только phrasing-элементы — делаем span блочными */
.dish-card__media,
.dish-card__excerpt,
.dish-card__weight {
  display: block;
}

.dish-card__media {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.5s var(--ease);
}

.dish-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--grad-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1E1A15;
}

.dish-card__more {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(243, 216, 154, 0.6);
  border-radius: 999px;
  background: rgba(26, 24, 22, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.dish-card__more .icon {
  width: 16px;
  height: 16px;
}

.dish-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.dish-card__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  transition: color var(--dur-btn) var(--ease);
}

.dish-card__price {
  font-size: 17px;
}

.dish-card__excerpt {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--sand-dim);
}

.dish-card__weight {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
}

@media (hover: hover) {
  .dish-card:hover .dish-card__media {
    box-shadow: 0 0 0 1px var(--gold), 0 24px 44px -26px rgba(201, 162, 75, 0.5);
  }

  .dish-card:hover .media > img {
    transform: scale(1.06);
  }

  .dish-card:hover .dish-card__more {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .dish-card:hover .dish-card__name {
    color: var(--gold-light);
  }
}

.dish-card:focus-visible {
  outline: none;
}

.dish-card:focus-visible .dish-card__media {
  box-shadow: 0 0 0 2px var(--gold-light);
}

.menu-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(64px, 8vw, 96px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(60% 120% at 100% 50%, rgba(201, 162, 75, 0.12), transparent 70%),
    var(--bg-darker);
}

.menu-cta__text {
  max-width: 560px;
}

.menu-cta__text p {
  margin-top: 8px;
  color: var(--sand-dim);
}

/* ---------- 18. Модальные окна ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity var(--dur-modal) var(--ease),
    visibility 0s linear var(--dur-modal);
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition:
    opacity var(--dur-modal) var(--ease),
    visibility 0s;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 10, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: min(100%, 640px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(201, 162, 75, 0.08), transparent 70%),
    var(--bg);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  transform: translateY(24px) scale(0.92);
  transition: transform var(--dur-modal) var(--ease);
}

.modal.is-open .modal__dialog {
  transform: none;
}

.modal__dialog--wide {
  width: min(100%, 1040px);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  background: rgba(26, 24, 22, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal__body {
  padding: clamp(28px, 4vw, 44px);
}

.modal__head {
  margin-bottom: 28px;
  padding-right: 48px;
}

.modal__head > p:not(.eyebrow) {
  margin-top: 8px;
  font-size: 15px;
  color: var(--sand-dim);
}

/* Модалка блюда */
.dish-modal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dish-modal__media {
  min-height: 100%;
  aspect-ratio: auto;
  border-radius: var(--radius) 0 0 var(--radius);
}

.dish-modal__content {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
}

.dish-modal__category {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.dish-modal__title {
  padding-right: 40px;
}

.dish-modal__price {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}

.dish-modal__desc {
  margin-top: 18px;
  font-size: 16px;
  color: var(--sand);
}

.nutrition {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
  font-size: 15px;
}

.nutrition caption {
  padding-bottom: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: left;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.nutrition th,
.nutrition td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.nutrition tr:first-child th,
.nutrition tr:first-child td {
  border-top: 1px solid var(--line);
}

.nutrition th {
  font-weight: 400;
  text-align: left;
  color: var(--sand);
}

.nutrition td {
  font-weight: 700;
  text-align: right;
  color: var(--white);
  font-variant-numeric: lining-nums tabular-nums;
}

.dish-modal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 28px;
}

.dish-modal__weight-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.dish-modal__weight {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

/* ---------- 19. Формы ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.field__label .req {
  color: var(--gold);
}

.field__control {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--ink);
  font-size: 16px; /* 16px — iOS не зумит страницу при фокусе */
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: light;
  transition:
    border-color var(--dur-btn) var(--ease),
    box-shadow var(--dur-btn) var(--ease);
}

.field__control::placeholder {
  color: #9C9384;
  opacity: 1;
}

.field__control:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.38);
}

textarea.field__control {
  min-height: 112px;
  resize: vertical;
}

select.field__control {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6A2F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}

select.field__control:invalid,
select.field__control option[value=""] {
  color: #9C9384;
}

select.field__control option {
  color: var(--ink);
}

input[type="date"].field__control {
  min-height: 50px;
}

input[type="number"].field__control {
  -moz-appearance: textfield;
}

input[type="number"].field__control::-webkit-inner-spin-button,
input[type="number"].field__control::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field__hint {
  font-size: 13px;
  line-height: 1.4;
  color: var(--sand-dim);
}

.field__error {
  display: none;
  align-items: flex-start;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--danger-text);
}

.field__error::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2A493' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field.is-invalid .field__control {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(217, 100, 79, 0.22);
}

.field.is-invalid .field__label {
  color: var(--danger-text);
}

.field.is-invalid .field__error {
  display: flex;
  animation: field-error 0.4s var(--ease);
}

@keyframes field-error {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--sand-dim);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

/* Success-состояние (общий для обеих форм) */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(12px, 3vw, 24px) 0;
}

.is-success > form {
  display: none;
}

.is-success > .form-success {
  display: flex;
  animation: success-in 0.7s var(--ease) both;
}

@keyframes success-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.success-check {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  color: var(--gold);
}

.success-check__circle {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: draw 0.9s var(--ease) 0.15s forwards;
}

.success-check__mark {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 0.55s var(--ease) 0.75s forwards;
}

.success-check__glow {
  transform-origin: center;
  opacity: 0;
  animation: glow 1.4s var(--ease) 0.6s forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes glow {
  0% { opacity: 0; transform: scale(0.6); }
  40% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(1.35); }
}

.form-success__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}

.form-success__text {
  max-width: 460px;
  margin-top: 14px;
  color: var(--sand);
}

.form-success__details {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 20px;
  margin: 24px 0 0;
  padding: 18px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 15px;
}

.form-success__details dt {
  color: var(--sand-dim);
}

.form-success__details dd {
  margin: 0;
  font-weight: 600;
  color: var(--white);
}

.form-success .btn {
  margin-top: 28px;
}

/* ---------- 20. Toast ---------- */
.toast-region {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 36px 1fr 32px;
  align-items: start;
  gap: 14px;
  width: 100%;
  padding: 16px 14px 16px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(30, 27, 24, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.95);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #1E1A15;
}

.toast__icon .icon {
  width: 18px;
  height: 18px;
}

.toast__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}

.toast__text {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sand-dim);
}

.toast__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sand-dim);
  transition:
    color var(--dur-btn) var(--ease),
    background-color var(--dur-btn) var(--ease);
}

.toast__close .icon {
  width: 16px;
  height: 16px;
}

@media (hover: hover) {
  .toast__close:hover {
    color: var(--white);
    background-color: rgba(232, 220, 196, 0.1);
  }
}

/* ---------- 21. Банкеты: залы ---------- */
.halls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 28px);
}

.hall-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-darker);
  transition:
    transform 0.55s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.55s var(--ease);
}

.hall-card__media {
  aspect-ratio: 4 / 3;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(243, 216, 154, 0.5);
  border-radius: 999px;
  background: rgba(26, 24, 22, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
}

.chip .icon {
  width: 16px;
  height: 16px;
}

.hall-card__chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
}

.hall-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 30px);
}

.hall-card__body > p {
  font-size: 15.5px;
  color: var(--sand-dim);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  color: var(--sand);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hall-card__footer {
  margin-top: auto;
  padding-top: 8px;
}

@media (hover: hover) {
  .hall-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-card);
  }

  .hall-card:hover .media > img {
    transform: scale(1.05);
  }
}

/* ---------- 22. Банкеты: готовые сеты ---------- */
.sets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 28px);
  align-items: stretch;
}

.set-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-lighter), var(--bg-darker));
  transition:
    transform 0.55s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.55s var(--ease);
}

.set-card--featured {
  border-color: var(--line-strong);
}

.set-card.is-selected {
  border-color: var(--gold-light);
  box-shadow:
    0 0 0 1px var(--gold-light),
    0 30px 70px -30px rgba(201, 162, 75, 0.55);
}

@media (hover: hover) {
  .set-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
  }

  .set-card.is-selected:hover {
    box-shadow:
      0 0 0 1px var(--gold-light),
      0 30px 70px -30px rgba(201, 162, 75, 0.65);
  }

  .set-card:hover .media > img {
    transform: scale(1.05);
  }
}

.set-card__media {
  aspect-ratio: 16 / 10;
}

.set-card__format {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
}

.set-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--grad-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1E1A15;
}

.set-card__check {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #1E1A15;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.4s var(--ease),
    transform 0.5s var(--ease);
}

.set-card.is-selected .set-card__check {
  opacity: 1;
  transform: none;
}

.set-card.is-selected .set-card__badge {
  opacity: 0;
}

.set-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 30px);
}

.set-card__name {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
}

.set-card__lead {
  margin-top: 10px;
  font-size: 15px;
  color: var(--sand-dim);
}

.set-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 22px 0 24px;
  font-size: 14.5px;
}

.set-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.set-list__name {
  color: var(--sand);
}

.set-list__leader {
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted rgba(232, 220, 196, 0.3);
  transform: translateY(-4px);
}

.set-list__weight {
  color: var(--sand-dim);
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

.set-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.set-card__price-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em;
}

.set-card__price-unit {
  color: var(--sand-dim);
  font-size: 15px;
}

.set-card__min {
  width: 100%;
  font-size: 13px;
  color: var(--sand-dim);
}

.set-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

/* ---------- 23. Банкеты: калькулятор ---------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.calc__groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-darker);
  overflow: hidden;
}

.calc-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(201, 162, 75, 0.08), transparent 70%);
}

.calc-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.calc-group__title .icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.calc-group__sum {
  font-size: 14px;
  color: var(--sand-dim);
  white-space: nowrap;
}

.calc-group__sum strong {
  color: var(--gold-light);
}

.calc-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 20px;
  padding: 14px clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.3s var(--ease);
}

.calc-item:last-child {
  border-bottom: 0;
}

.calc-item.is-active {
  background-color: rgba(201, 162, 75, 0.07);
}

.calc-item__name {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  transition: color var(--dur-btn) var(--ease);
}

.calc-item.is-active .calc-item__name {
  color: var(--gold-light);
}

.calc-item__weight {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--sand-dim);
}

.calc-item__price {
  font-size: 15.5px;
  text-align: right;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(26, 24, 22, 0.5);
}

.stepper__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gold-light);
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur-btn) var(--ease),
    color var(--dur-btn) var(--ease),
    opacity var(--dur-btn) var(--ease);
}

.stepper__btn .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

@media (hover: hover) {
  .stepper__btn:hover:not(:disabled) {
    background-color: rgba(201, 162, 75, 0.18);
  }
}

.stepper__btn:active:not(:disabled) {
  background-color: rgba(201, 162, 75, 0.3);
}

.stepper__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.stepper__value {
  min-width: 30px;
  font-weight: 700;
  text-align: center;
  color: var(--white);
  font-variant-numeric: lining-nums tabular-nums;
}

/* Липкая панель итога */
.summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 40% at 50% 0%, rgba(201, 162, 75, 0.12), transparent 70%),
    var(--bg-darker);
  box-shadow: var(--shadow-card);
}

.summary__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 20px;
}

.summary__reset {
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sand-dim);
  text-decoration: underline;
  text-decoration-color: rgba(232, 220, 196, 0.3);
  text-underline-offset: 4px;
  transition: color var(--dur-btn) var(--ease);
}

@media (hover: hover) {
  .summary__reset:hover {
    color: var(--gold-light);
  }
}

.summary__rows {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}

.summary__row dt,
.summary__label {
  color: var(--sand-dim);
}

.summary__row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  color: var(--white);
}

.summary__set {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary__remove {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--sand-dim);
  transition:
    color var(--dur-btn) var(--ease),
    border-color var(--dur-btn) var(--ease);
}

.summary__remove .icon {
  width: 13px;
  height: 13px;
}

@media (hover: hover) {
  .summary__remove:hover {
    color: var(--white);
    border-color: var(--gold);
  }
}

.summary__items {
  max-height: 210px;
  overflow-y: auto;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}

.summary__items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--sand);
}

.summary__items li span:last-child {
  white-space: nowrap;
  color: var(--white);
  font-variant-numeric: lining-nums tabular-nums;
}

.summary__empty {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--sand-dim);
}

.summary__warn {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 100, 79, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(217, 100, 79, 0.08);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--danger-text);
}

.summary__guests {
  display: inline-flex;
  align-items: center;
}

.summary__guests .stepper__btn {
  width: 32px;
  height: 32px;
}

.summary__total {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
}

.summary__total-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.summary__total-value {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 50px);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em;
  font-variant-numeric: lining-nums tabular-nums;
}

.summary__per-guest {
  margin-top: 6px;
  font-size: 14px;
  color: var(--sand-dim);
}

.summary .btn {
  margin-top: 22px;
}

/* Короткий «импульс» при изменении суммы — сама цифра меняется мгновенно */
.is-bumped {
  animation: bump 0.45s var(--ease);
}

@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Мобильная панель итога */
.calc-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--gold);
  background: rgba(26, 24, 22, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform 0.5s var(--ease);
}

.calc-bar.is-visible {
  transform: none;
}

.calc-bar__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.calc-bar__value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-light);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- 24. Банкеты: форма заявки ---------- */
.form-card {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-card);
}

.form-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px dotted var(--line-strong);
}

.budget__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.budget__value {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: lining-nums tabular-nums;
}

.budget__breakdown {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--sand-dim);
}

.form-card__submit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 320px;
}

.form-card__submit .form-note {
  text-align: right;
}

/* ---------- 25. Анимация появления при скролле ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity var(--dur-reveal) var(--ease),
    transform var(--dur-reveal) var(--ease);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 26. Адаптив: планшет ---------- */
@media (max-width: 1180px) and (min-width: 981px) {
  .header__inner {
    gap: 22px;
  }

  .logo__name {
    font-size: 19px;
    letter-spacing: 0.1em;
  }

  .nav {
    gap: 20px;
  }

  .nav__link {
    font-size: 14px;
  }
}

@media (max-width: 1100px) {
  .team-card {
    --cols: 3;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .nav,
  .header__cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .about,
  .location {
    grid-template-columns: 1fr;
  }

  .carousel {
    --per-view: 2;
  }

  .cards-3,
  .halls,
  .sets {
    grid-template-columns: 1fr 1fr;
  }

  .cards-3 > :last-child,
  .halls > :last-child,
  .sets > :last-child {
    grid-column: 1 / -1;
  }

  .cards-3 > :last-child .feature-card__media,
  .halls > :last-child .hall-card__media,
  .sets > :last-child .set-card__media {
    aspect-ratio: 21 / 9;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .calc-bar {
    display: flex;
  }

  .dish-modal {
    grid-template-columns: 1fr;
  }

  .dish-modal__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .ticket {
    max-width: 560px;
    transform: none;
  }
}

/* ---------- 27. Адаптив: мобильный ---------- */
@media (max-width: 720px) {
  .logo__mark {
    width: 32px;
    height: 32px;
  }

  .logo__name {
    font-size: 17px;
    letter-spacing: 0.1em;
  }

  .logo__sub {
    font-size: 8.5px;
    letter-spacing: 0.3em;
  }

  .burger {
    width: 42px;
    height: 42px;
  }

  .burger__line { left: 12px; right: 12px; }
  .burger__line:nth-child(1) { top: 14px; }
  .burger__line:nth-child(2) { top: 20px; }
  .burger__line:nth-child(3) { top: 26px; }

  .hero {
    padding: 72px 0 112px;
  }

  .hero__actions,
  .page-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .eyebrow {
    letter-spacing: 0.22em;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: 20px;
  }

  .carousel {
    --per-view: 1.15;
    --gap: 14px;
  }

  .carousel__track {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    border-radius: 0;
  }

  .carousel__slide {
    aspect-ratio: 4 / 4.6;
  }

  .cards-3,
  .halls,
  .sets,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .cards-3 > :last-child,
  .halls > :last-child,
  .sets > :last-child {
    grid-column: auto;
  }

  .cards-3 > :last-child .feature-card__media,
  .halls > :last-child .hall-card__media,
  .sets > :last-child .set-card__media {
    aspect-ratio: 16 / 10;
  }

  .team-card {
    --cols: 2;
  }

  .team-card__name {
    font-size: 15.5px;
  }

  .team-card__quote {
    font-size: 13.5px;
  }

  .stat__label {
    font-size: 13.5px;
  }

  .ticket {
    grid-template-columns: 1fr 76px;
  }

  .ticket__grid {
    grid-template-columns: 1fr 1fr;
  }

  .ticket__barcode {
    width: 30px;
    height: 90px;
  }

  .ticket__no {
    font-size: 18px;
  }

  .location__actions .btn {
    flex: 1 1 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  /* навигация и часы — в одну строку, контакты — ниже на всю ширину */
  .footer__contacts {
    grid-column: 1 / -1;
    order: 1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .modal {
    padding: 10px;
    align-items: end;
  }

  .modal__dialog {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .modal__close {
    top: 12px;
    right: 12px;
  }

  .calc-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "info info"
      "price stepper";
    gap: 10px 12px;
  }

  .calc-item__info { grid-area: info; }
  .calc-item__price { grid-area: price; text-align: left; }
  .calc-item .stepper { grid-area: stepper; }

  .calc-group__head {
    flex-wrap: wrap;
  }

  .form-card__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .form-card__submit {
    align-items: stretch;
    max-width: none;
  }

  .form-card__submit .form-note {
    text-align: left;
  }

  .set-card__actions-row {
    grid-template-columns: 1fr;
  }

  .menu-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .toast-region {
    right: 16px;
    bottom: 16px;
  }

  .has-calc-bar .toast-region {
    bottom: 96px;
  }
}

@media (max-width: 480px) {
  .hero .eyebrow {
    letter-spacing: 0.2em;
  }

  .hero .eyebrow::before,
  .hero .eyebrow::after {
    display: none;
  }
}

@media (max-width: 380px) {
  .logo__sub {
    display: none;
  }
}

/* ---------- 28. Уважение к prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .carousel__track {
    scroll-behavior: auto;
  }
}
