/* ---------- Токены ---------- */
:root {
  --green-950: #0F241A;
  --green-900: #163326;
  --green-800: #1E4232;
  --gold: #C9A96E;
  --gold-light: #E2C99A;
  --gold-pale: #F1E3C4;
  --cream: #F5EEE2;
  --ivory: #FBF7F0;
  --bronze: #7A5A26;
  --ink: #1C1F1A;
  --ink-2: #4E4A42;
  --ink-3: #5E5A50;
  --ink-4: #6E6656;
  --line: #D9CCB4;
  --line-2: #E2D6C1;
  --line-3: #E6DBC8;
  --on-gold: #10261B;
  --text-on-dark: #EFE7D8;
  --muted-on-dark: #A99F8B;
  --hairline-on-dark: rgba(201, 169, 110, 0.18);
  --outline-on-dark: rgba(226, 201, 154, 0.35);
  --outline-cream: rgba(245, 238, 226, 0.5);
  --rule-on-photo: rgba(226, 201, 154, 0.22);
  --rule-gold: rgba(201, 169, 110, 0.25);
  --frame-gold: rgba(201, 169, 110, 0.35);
  --shade-rgb: 15, 36, 26;
  --text-hero-desc: #DDD4C3;
  --text-soft-on-dark: #D6CDBB;
  --ink-on-gold: #22261C;
  --focus-on-light: var(--green-900);
  --note-on-dark: #CFC6B4;
  --line-tab: #D3C5AC;
  --cream-glass: rgba(245, 238, 226, 0.96);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', system-ui, sans-serif;

  --header-h: 72px;
  --page-max: 1280px;
  --page-pad: clamp(20px, 4vw, 48px);
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--green-950);
  color: var(--cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.site-main { flex: 1; }
/* Страница ошибки тянется на всю высоту между шапкой и подвалом. */
.site-main--fill { display: flex; flex-direction: column; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Логотип ---------- */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.logo__word {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.06em;
  padding-left: 0.06em;
  color: var(--gold-light);
}
.logo__sub {
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.44em;
  padding-left: 0.44em;
  color: var(--gold);
}
.logo--footer .logo__word { font-size: 34px; }
.logo--footer .logo__sub { margin-top: 5px; font-size: 9px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: var(--gold-light); color: var(--on-gold); }
.btn--outline { border: 1px solid var(--outline-cream); color: var(--cream); font-weight: 600; }
.btn--outline:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn--dark { background: var(--green-900); color: var(--cream); }
.btn--dark:hover { background: var(--green-950); color: var(--cream); }
.btn--outline-dark { border: 1.5px solid var(--green-900); color: var(--green-900); }
.btn--outline-dark:hover { background: var(--green-900); color: var(--cream); }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 15px; }
.btn__arrow { font-size: 18px; line-height: 1; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 36, 26, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-on-dark);
}
.site-header__bar {
  max-width: var(--page-max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav, .site-cta { display: none; }
.site-nav { align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-on-dark);
}
.site-nav__link:hover { color: var(--gold-light); }

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--outline-on-dark);
  border-radius: 999px;
}
.lang-switch__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-on-dark);
}
/* Область нажатия до 44 px по высоте при пилюле в 38 px. */
.lang-switch__item::after { content: ''; position: absolute; inset: -3px 0; }
a.lang-switch__item:hover { color: var(--gold-light); }
.lang-switch__item.is-active { background: var(--cream); color: var(--green-900); font-weight: 700; }

.burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--outline-on-dark);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.burger__line { display: block; width: 18px; height: 1.5px; background: var(--cream); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 12px var(--page-pad) 28px;
  border-top: 1px solid var(--hairline-on-dark);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__link {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-on-dark);
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--cream);
}
.mobile-nav__link:hover { color: var(--gold-light); }
.mobile-nav__link--cta { font-weight: 600; color: var(--gold-light); }

@media (min-width: 920px) {
  .site-header__bar { gap: 24px; }
  .site-header__tools { gap: 14px; }
  .site-nav { display: flex; }
  .site-cta { display: inline-flex; }
  .burger, .mobile-nav { display: none; }
}

/* ---------- Подвал ---------- */
.site-footer {
  padding: 44px var(--page-pad);
  background: var(--green-950);
  border-top: 1px solid var(--hairline-on-dark);
}
.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--text-on-dark);
}
.footer-nav__link:hover { color: var(--gold-light); }
.site-footer__copy { font-size: 13px; color: var(--muted-on-dark); }

/* ---------- Главная: общее ---------- */
.section { padding: clamp(72px, 9vw, 128px) var(--page-pad); }
.section__inner { max-width: var(--page-max); margin: 0 auto; }
.section--dark { background: var(--green-900); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--strong { font-weight: 700; color: var(--on-gold); }

.section-title {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.04;
  color: var(--green-900);
  text-wrap: balance;
}
.section-title--light { color: var(--cream); }

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

/* Фото и заглушка занимают всю рамку-родителя (position: relative). */
.photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-800);
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 6vw, 56px);
  letter-spacing: 0.12em;
  padding-left: 0.12em;
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(620px, calc(100svh - var(--header-h)));
  background: var(--green-950);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--shade-rgb), 0.70) 0%,
    rgba(var(--shade-rgb), 0.50) 45%,
    rgba(var(--shade-rgb), 0.94) 100%
  );
}
.hero__content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 48px;
  text-align: center;
}
.hero__floor {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero__title {
  margin: 22px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(88px, 14vw, 184px);
  line-height: 0.86;
  letter-spacing: 0.05em;
  padding-left: 0.05em;
  color: var(--gold-pale);
}
.hero__sub {
  margin-top: 14px;
  font-size: clamp(12px, 1.3vw, 16px);
  font-weight: 500;
  letter-spacing: 0.52em;
  padding-left: 0.52em;
  color: var(--gold);
}
.hero__rule { width: 56px; height: 1px; margin: 36px 0 28px; background: var(--gold); }
.hero__tagline {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  color: var(--cream);
  text-wrap: balance;
}
.hero__desc {
  max-width: 560px;
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-hero-desc);
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero__info { position: relative; border-top: 1px solid var(--rule-on-photo); }
.hero__info-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 22px var(--page-pad);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 56px;
}
.info-item { display: flex; align-items: baseline; gap: 12px; }
.info-item__value { font-size: 15px; color: var(--cream); }

/* ---------- О нас ---------- */
.about { background: var(--ivory); color: var(--ink); }
.about__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--green-800);
}
.about__title { margin-top: 18px; }
.about__text {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
}
.about__text--first { margin-top: 28px; }
.features {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}
.feature { padding-top: 16px; border-top: 1px solid var(--line); }
.feature__title {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-900);
}
.feature__text { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* ---------- Атмосфера ---------- */
.gallery__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 48px;
}
.gallery__desc {
  max-width: 420px;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft-on-dark);
  text-wrap: pretty;
}
.gallery__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 170px;
  gap: 14px;
}
.gallery__item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--green-800);
}
.gallery__item--1 { grid-column: span 2; }
.gallery__item--3 { grid-row: span 2; }

@media (min-width: 920px) {
  .gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; }
  .gallery__item--1 { grid-row: span 2; }
}

/* ---------- Онлайн-заказ ---------- */
.order {
  padding: clamp(56px, 7vw, 96px) var(--page-pad);
  background: var(--gold);
  color: var(--on-gold);
}
.order__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px 64px;
}
.order__text { flex: 1 1 480px; max-width: 680px; }
.order__title {
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  color: var(--on-gold);
  text-wrap: balance;
}
.order__desc {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-on-gold);
  text-wrap: pretty;
}
.order__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Золотой фокус из :focus-visible теряется на золотом и светлом фоне. */
.order :focus-visible,
.contact :focus-visible { outline-color: var(--focus-on-light); }

/* ---------- Контакты ---------- */
.contact { background: var(--cream); color: var(--ink); }
.contact__inner { max-width: 1200px; margin: 0 auto; }
.contact__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 176px;
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--ivory);
  color: var(--green-900);
}
.contact-card:hover { border-color: var(--gold); color: var(--green-900); }
.contact-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
}
.contact-card__body { display: flex; flex-direction: column; gap: 6px; }
.contact-card__value {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--green-900);
}
.contact-card__hint { font-size: 14px; color: var(--ink-3); }

/* ---------- Как добраться ---------- */
.location__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: stretch;
}
.location__info { display: flex; flex-direction: column; justify-content: center; }
.location__facts { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.location__fact { display: flex; flex-direction: column; gap: 6px; }
.location__fact:first-child { padding-bottom: 20px; border-bottom: 1px solid var(--rule-gold); }
.location__value { font-size: 18px; color: var(--cream); }
.location__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.location__map {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--frame-gold);
  border-radius: 24px;
  overflow: hidden;
  background: var(--green-800);
}
.location__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.4) sepia(0.12) contrast(1.02);
}

/* ---------- Страницы 404 и 500 ---------- */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 72px 24px;
  background: var(--green-900);
  text-align: center;
}
.error-page__inner { max-width: 560px; }
.error-page__code {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(88px, 22vw, 168px);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
}
.error-page__title {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--gold-light);
}
.error-page__text {
  margin: 16px 0 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-dark);
}

/* ---------- Меню ---------- */
.menu-page { background: var(--cream); color: var(--ink); }

.menu-intro {
  padding: clamp(48px, 6vw, 80px) var(--page-pad) clamp(36px, 4vw, 56px);
  background: var(--green-900);
}
.menu-intro__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
}
.menu-intro__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.menu-intro__title {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(60px, 8vw, 112px);
  line-height: 0.9;
  color: var(--cream);
}
.menu-intro__meta { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.menu-intro__hours { font-size: 15px; color: var(--cream); }
.menu-intro__note { font-size: 14px; color: var(--note-on-dark); }

/* Полоса вкладок прилипает под шапкой; без JS вкладки остаются якорными ссылками. */
.tabs-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--cream-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.tabs {
  position: relative; /* offsetParent для centerTab() в menu.js */
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 14px var(--page-pad);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-tab);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--green-900);
}
.tab:hover { border-color: var(--green-900); color: var(--green-900); }
.tab.is-active,
.tab.is-active:hover { border-color: var(--green-900); background: var(--green-900); color: var(--cream); }

/* Фокус на светлом фоне: золотое кольцо из :focus-visible здесь не видно. */
.tabs-bar :focus-visible,
.menu-cats :focus-visible,
.sheet :focus-visible { outline-color: var(--focus-on-light); }

.menu-cats { padding: 0 var(--page-pad) clamp(72px, 8vw, 112px); }
.menu-cat {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-top: clamp(44px, 5vw, 64px);
  /* Переход по якорю без JS: заголовок не прячется под шапкой и вкладками. */
  scroll-margin-top: 44px;
}
.menu-cat__head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.menu-cat__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1;
  color: var(--green-900);
  overflow-wrap: anywhere;
}
.menu-cat__rule { flex: 1 0 24px; height: 1px; background: var(--line); }

/* До 600 px — две колонки; карточка открывает нижнюю карточку блюда (menu.js). */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dish {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-3);
  border-radius: 20px;
  background: var(--ivory);
  overflow: hidden;
}
.dish[role="button"] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dish[role="button"]:active { border-color: var(--gold); }
.dish__media { position: relative; aspect-ratio: 4 / 3; background: var(--green-800); }
.dish__media .ph { font-size: clamp(22px, 7vw, 32px); }
.dish__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 14px; }
.dish__name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.15;
  color: var(--green-900);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.dish__desc { display: none; }
.dish__foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 12px;
}
.dish__amount { font-size: 12.5px; color: var(--ink-4); white-space: nowrap; }
.dish__price { font-size: 15px; font-weight: 700; color: var(--green-900); white-space: nowrap; }
.dish__cur { font-size: 12px; font-weight: 600; }

@media (min-width: 600px) {
  .dish-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr)); gap: 18px; }
  .dish__media .ph { font-size: 32px; }
  .dish__body { padding: 18px 20px 20px; }
  .dish__name {
    display: block;
    overflow: visible;
    font-size: 24px;
    line-height: 1.12;
    text-wrap: balance;
  }
  .dish__desc {
    display: block;
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-3);
    text-wrap: pretty;
    overflow-wrap: anywhere;
  }
  .dish__foot { margin-top: 10px; padding-top: 14px; }
  .dish__amount { font-size: 13px; }
  .dish__price { font-size: 18px; }
  .dish__cur { font-size: 13px; }
}

/* ---------- Нижняя карточка блюда ---------- */
.sheet {
  width: 100%;
  max-width: 100%;
  max-height: 90vh;
  max-height: 90svh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--ivory);
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.2s ease-out;
}
.sheet.is-dragging { transition: none; }
.sheet::backdrop { background: rgba(15, 36, 26, 0.6); }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in 0.25s ease-out; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
/* Фон за карточкой не прокручивается. */
html:has(.sheet[open]) { overflow: hidden; overscroll-behavior: contain; }

.sheet__body {
  max-height: 90vh;
  max-height: 90svh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet__body:focus-visible { outline-offset: -3px; }
.sheet__handle {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 1;
  width: 40px;
  height: 5px;
  margin-left: -20px;
  border-radius: 3px;
  background: rgba(251, 247, 240, 0.9);
  box-shadow: 0 0 0 1px rgba(15, 36, 26, 0.25);
  pointer-events: none;
}
.sheet__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 247, 240, 0.92);
  color: var(--green-900);
  cursor: pointer;
}
/* Кольцо внутри кнопки: снаружи за ним оказалась бы фотография, а внутри — светлая заливка. */
.sheet__close:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: -5px; }
.sheet__media { position: relative; aspect-ratio: 4 / 3; background: var(--green-800); }
.sheet__img[hidden], .sheet__media .ph[hidden] { display: none; }
.sheet__media .ph { font-size: 44px; }
.sheet__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
}
.sheet__name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  color: var(--green-900);
  overflow-wrap: anywhere;
}
.sheet__desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-3); overflow-wrap: anywhere; }
.sheet__desc:empty { display: none; }
.sheet__foot {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
}
.sheet__amount { font-size: 14px; color: var(--ink-4); }
.sheet__price { font-size: 22px; font-weight: 700; color: var(--green-900); white-space: nowrap; }
.sheet__price .dish__cur { font-size: 14px; }
