/* =========================================================
   Ресторан «В своей тарелке» — стили
   ========================================================= */

:root {
  --navy: #10263a;
  --navy-2: #0b1b2a;
  --navy-3: #173049;
  --gold: #c9a86a;
  --gold-2: #dcc08b;
  --cream: #f5efe4;
  --paper: #faf7f1;
  --ink: #1d2a36;
  --muted: rgba(245, 239, 228, .72);
  --line: rgba(245, 239, 228, .16);
  --error: #f08a78;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Мелкое зерно для керамики тарелок */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--navy-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Ровные цифры: у Playfair Display по умолчанию «старинные» цифры, которые прыгают выше/ниже строки */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(80px, 11vw, 140px) 0; }

.section-head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.eyebrow {
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.title {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 1.08;
  letter-spacing: .01em;
  color: var(--cream);
}
.title--left { text-align: left; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 34px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.btn--outline {
  color: var(--cream);
  background: transparent;
  border-color: rgba(245, 239, 228, .8);
}
.btn--outline:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn--gold {
  color: #0f2030;
  background: var(--gold);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 13px; }
.btn:disabled { cursor: progress; opacity: .7; }

/* ---------- Логотип ---------- */
.logo {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--cream);
  white-space: nowrap;
}

/* =========================================================
   ШАПКА
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: height .3s ease;
}
/* Фон вынесен в псевдоэлемент: backdrop-filter на самой шапке сломал бы
   полноэкранное мобильное меню (position: fixed внутри шапки). */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 42, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 106, .18);
  opacity: 0;
  transition: opacity .35s ease;
}
.header.is-scrolled::before { opacity: 1; }

.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.header .logo { position: relative; z-index: 2; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  color: rgba(245, 239, 228, .85);
  transition: color .25s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__phone { display: none; }

.header__phone {
  font-size: 14px;
  letter-spacing: .03em;
  text-decoration: none;
  color: var(--cream);
  white-space: nowrap;
}
.header__phone:hover { color: var(--gold-2); }

.burger {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Кнопка корзины в шапке */
.cart-btn {
  position: relative;
  z-index: 2;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--cream);
  background: none;
  border: 1px solid rgba(245, 239, 228, .35);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.cart-btn:hover { border-color: var(--gold); color: var(--gold-2); }
.cart-btn__count {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--gold);
  color: #10202f;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.cart-btn__count.is-bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* «Корзина» внутри мобильного меню */
.nav__cart { display: none; }

@media (max-width: 1279px) {
  .header__phone { display: none; }
  .header__cta { margin-left: 0; }
}

@media (max-width: 1099px) {
  .header__inner { gap: 16px; }
  .header__cta { margin-left: auto; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    margin: 0;
    padding: calc(var(--header-h) + 24px) 24px 40px;
    background: var(--navy-2);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility 0s linear .35s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease;
  }
  .nav.no-anim { transition: none; }
  .nav__link {
    font-family: var(--serif);
    font-size: clamp(26px, 6vw, 34px);
    letter-spacing: .01em;
    color: var(--cream);
  }
  .nav__link::after { bottom: -4px; }
  .nav__cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav__cart-count {
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 13px;
    background: var(--gold);
    color: #10202f;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 26px;
    letter-spacing: 0;
    text-align: center;
  }
  .nav__phone {
    display: block;
    margin-top: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(201, 168, 106, .35);
    font-size: 18px;
    letter-spacing: .04em;
    text-decoration: none;
    color: var(--gold-2);
  }
}

@media (max-width: 599px) {
  :root { --header-h: 64px; }
  .logo { font-size: 20px; }
  .header__cta { display: none; }
  .cart-btn { margin-left: auto; }
}

/* =========================================================
   ГЛАВНЫЙ ЭКРАН
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  text-align: center;
  background: var(--navy-2);
}

/* Фон из двух половин: сверху зал, снизу тёмно-синий фон с блюдами (вид сверху).
   Граница проходит через центр логотипа (--split считает js/main.js, в пикселях).
   Половины не режутся резкой линией — верхняя чуть заходит на нижнюю и плавно тает
   (--blend), поэтому зал перетекает в тёмно-синий фон без шва. */
.hero__bgs {
  position: absolute;
  inset: 0;
  z-index: 0;          /* свой слой: половины фона никогда не перекрывают логотип и текст */
  --blend: clamp(56px, 9vw, 120px);
}
.hero__half {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
}
.hero__half::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__half--top {
  top: 0;
  height: calc(var(--split, 50%) + var(--blend));
  z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--blend)), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--blend)), transparent 100%);
}
.hero__half--top::after {
  background: linear-gradient(180deg, rgba(8, 20, 32, .82) 0%, rgba(8, 20, 32, .5) 38%, rgba(8, 20, 32, .5) 100%);
}
.hero__hall {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: 50% 58%;
  filter: blur(1px) saturate(.85);
  animation: fadeIn 1.2s ease both;
}
.hero__half--bottom {
  top: var(--split, 50%);
  bottom: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201, 168, 106, .08) 0%, rgba(201, 168, 106, 0) 60%),
    var(--navy-2);
}
.hero__half--bottom::after {
  background:
    radial-gradient(ellipse 36% 60% at 50% 30%, rgba(8, 20, 32, .32) 0%, rgba(8, 20, 32, 0) 100%),
    linear-gradient(180deg, rgba(8, 20, 32, .28) 0%, rgba(8, 20, 32, .42) 55%, rgba(8, 20, 32, .8) 100%);
}

/* Блюда на столе (вид сверху) */
.flatlay { position: absolute; inset: 0; }
.flatlay__item {
  position: absolute;
  width: var(--s);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  animation: fadeIn 1.2s ease both;
  animation-delay: var(--d, 0s);
}
.flatlay__item .plate { box-shadow: 0 18px 30px -6px rgba(0, 0, 0, .7); }
.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px var(--gutter);
}
/* Логотип кафе в белом круге с тонким золотым кольцом */
.hero__logo {
  width: clamp(230px, 30vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  outline: 1px solid rgba(201, 168, 106, .55);
  outline-offset: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65);
  animation: fadeUp 1.2s var(--ease) .15s both;
}
.hero__logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
/* «Открыто сейчас» — зелёная точка днём, янтарная перед закрытием, серая ночью (текст ставит js/main.js) */
.hero__status,
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: .03em;
  color: rgba(245, 239, 228, .82);
}
.hero__status:empty,
.open-status:empty { display: none; }
.hero__status::before,
.open-status::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a9aa8;
}
.hero__status[data-state="open"]::before,
.open-status[data-state="open"]::before { background: #62c37e; box-shadow: 0 0 0 3px rgba(98, 195, 126, .22); }
.hero__status[data-state="soon"]::before,
.open-status[data-state="soon"]::before { background: #e3b04b; box-shadow: 0 0 0 3px rgba(227, 176, 75, .22); }
/* плотно под адресом, чтобы кнопка «забронировать» почти не сдвинулась и не наезжала на тарелки */
.hero__status { margin: -24px 0 16px; line-height: 1.4; animation: fadeUp 1.2s var(--ease) .45s both; }
@media (max-width: 599px) {
  .hero__status { font-size: 13px; }
}
.open-status { margin-top: 8px; }

.hero__place {
  margin: 34px 0 30px;
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: .06em;
  color: rgba(245, 239, 228, .8);
  animation: fadeUp 1.2s var(--ease) .35s both;
}
.hero__btn {
  min-width: 230px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .06em;
  animation: fadeUp 1.2s var(--ease) .55s both;
}
.hero__features {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  padding: 0 var(--gutter) clamp(28px, 4vw, 44px);
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: .03em;
  color: rgba(245, 239, 228, .88);
  animation: fadeIn 1.4s ease .8s both;
}
.hero__features li::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  margin: 0 auto 12px;
  background: var(--gold);
}

@media (max-width: 699px) {
  .hero__place { margin: 30px 0 26px; }
  .hero__features {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    font-size: 14px;
  }
  .hero__features li::before {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 8px 2px 0;
    border-radius: 50%;
    vertical-align: middle;
  }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   О РЕСТОРАНЕ
   ========================================================= */
.about { background: var(--navy); }
/* «О нас» сразу переходит в меню — оба раздела тёмно-синие, поэтому отступы на стыке сокращены */
.about.section { padding-bottom: clamp(40px, 5vw, 64px); }
.about + .menu { padding-top: clamp(40px, 5vw, 64px); }

.about__text {
  max-width: 780px;
  margin: 0 auto clamp(48px, 7vw, 72px);
  text-align: center;
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  color: rgba(245, 239, 228, .8);
}
.about__text p + p { margin-top: 1em; }

.about__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 4.5vw, 60px);
}
.about__photo {
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: var(--navy-3);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.about__photo:hover img { transform: scale(1.05); }
.about__photo:nth-child(2) { transition-delay: .12s; }
.about__photo:nth-child(3) { transition-delay: .24s; }

@media (max-width: 699px) {
  /* На телефоне фото листаются по горизонтали */
  .about__gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 14px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .about__gallery::-webkit-scrollbar { display: none; }
  .about__photo { scroll-snap-align: start; }
}

/* =========================================================
   МЕНЮ
   ========================================================= */
.menu {
  position: relative;
  color: #f2f2f2;
  background: var(--navy);
}
.menu .eyebrow { color: var(--muted); }

.menu__title {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.05;
  letter-spacing: .02em;
  color: #ececec;
}

.menu__tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  padding: 10px 0;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.menu__tabs.is-stuck {
  background: rgba(16, 38, 58, .96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.menu__tab {
  position: relative;
  padding: 12px 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, .6);
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
}
.menu__tab:hover { color: #fff; }
.menu__tab[aria-selected="true"] {
  color: #fff;
  border-color: rgba(201, 168, 106, .7);
}

.menu__head {
  margin-bottom: clamp(36px, 5vw, 56px);
  text-align: center;
}
.menu__cat {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--cream);
}
.menu__note {
  margin: 14px auto 0;
  max-width: 560px;
  font-size: 14px;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .55);
}

.menu__noscript { text-align: center; color: var(--muted); }
/* Оговорка в конце меню */
.menu__disclaimer {
  max-width: 560px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 168, 106, .3);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: rgba(245, 239, 228, .6);
}

.dishes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 48px);
}

.dish {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}
.dish:focus-visible { outline-offset: 8px; }
/* Карточки появляются плавно, без сдвига — фото не «плывёт» */
.menu__panel.is-active .dish {
  animation: fadeIn .6s ease both;
  animation-delay: calc(min(var(--i, 0), 6) * 50ms);
}

.dish__media {
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 1;
  margin-bottom: 26px;
}
.dish__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.dish__name {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.2;
  letter-spacing: .03em;
  color: #fff;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.dish__sub {
  margin-top: 5px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .85);
}
.dish__desc {
  max-width: 310px;
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
}
/* Вес и цена прижаты к низу карточки, чтобы цены в ряду стояли на одной линии */
.dish__foot {
  margin-top: auto;
  padding-top: 12px;
}
.dish__weight {
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .5);
}
.dish__buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.dish__price {
  font-weight: 600;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--gold);
  white-space: nowrap;
}
.dish__price span { font-size: .7em; margin-left: 4px; }
.dish__plus {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201, 168, 106, .7);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  transition: background-color .25s ease, color .25s ease;
}
.dish:hover .dish__plus,
.dish:focus-visible .dish__plus { background: var(--gold); color: #10202f; }

.dish__badge {
  position: absolute;
  top: 3%;
  right: -2%;
  z-index: 2;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: .1em;
  color: #fff;
  background: #d5392b;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.dish__badge::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #d5392b;
  border-bottom: 0;
}

/* Тарелка: либо фото блюда, либо керамическая заглушка */
.plate {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #efe6d6 0%, #cfbfa2 36%, #a99a7e 72%, #7e705a 100%);
  box-shadow: 0 32px 50px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .05);
}
.plate::before {
  content: '';
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  background: radial-gradient(circle at 58% 64%, #d9ccb4 0%, #c3b294 55%, #a89778 100%);
  box-shadow:
    inset 0 10px 20px rgba(60, 44, 24, .45),
    inset 0 -2px 6px rgba(255, 255, 255, .35),
    0 1px 1px rgba(255, 255, 255, .4);
}
.plate::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--grain);
  opacity: .22;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.plate__icon {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(95, 78, 52, .5);
}
/* Блюдо на цветной керамической тарелке: внешнее кольцо — бежевая керамика,
   внутри — фото блюда (размер и положение считает js/main.js) с мягкой тенью к краю */
.plate--photo { transition: box-shadow .3s ease; }
.plate--photo::before { display: none; }
.plate--photo::after { z-index: 0; }
.plate__in {
  position: absolute;
  inset: 8%;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(90, 70, 40, .25), 0 6px 14px rgba(60, 40, 20, .45);
}
.plate__in::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 44%, rgba(150, 120, 80, .26) 78%, rgba(110, 85, 50, .48) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.plate--photo img,
.dm__photo img {
  position: absolute;
  max-width: none;
  /* Фильтр не нужен: фото блюд уже отретушированы (сочнее, теплее, чётче),
     оригиналы лежат в _originals/dishes */
}
/* Белая «заплатка» на водяной знак ВКонтакте (фон фото тоже белый) */
.photo-wm {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px 4px #fff;
  pointer-events: none;
}
.dish:hover .plate--photo { box-shadow: 0 32px 50px -18px rgba(0, 0, 0, .9), 0 0 0 3px rgba(201, 168, 106, .75); }

@media (max-width: 899px) {
  .dishes { grid-template-columns: repeat(2, 1fr); }
}

/* На планшетах и телефонах вкладки меню — одна строка с прокруткой вбок */
@media (max-width: 1023px) {
  .menu__tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .menu__tabs::-webkit-scrollbar { display: none; }
}

@media (max-width: 599px) {
  .menu__tab { padding: 11px 14px; font-size: 14px; }

  /* На телефоне — компактный список: тарелка слева, текст справа */
  .dishes { grid-template-columns: 1fr; gap: 34px; }
  .dish {
    display: grid;
    grid-template-columns: 112px 1fr;
    column-gap: 18px;
    align-items: start;
    text-align: left;
  }
  .dish__media { width: 112px; margin: 0; }
  .dish__body { align-items: flex-start; }
  .dish__badge { top: -4px; right: -8px; padding: 4px 7px; font-size: 10.5px; }
  .dish__badge::after { bottom: -5px; border-width: 5px; }
  .plate__icon svg { width: 22px; height: 22px; }
  .dish__name { font-size: 18px; }
  .dish__sub { font-size: 11.5px; }
  .dish__desc { margin-top: 6px; font-size: 13.5px; }
  .dish__foot { padding-top: 8px; width: 100%; }
  .dish__buy { justify-content: space-between; }
  .dish__price { font-size: 22px; white-space: normal; }
}

/* Узкие телефоны (320–380 px) */
@media (max-width: 380px) {
  .dish { grid-template-columns: 92px 1fr; column-gap: 14px; }
  .dish__media { width: 92px; }
  .dish__name { font-size: 16px; letter-spacing: .02em; }
  .dish__sub { font-size: 11px; letter-spacing: .08em; }
  .dish__price { font-size: 19px; }
  .dish__plus { flex-basis: 30px; width: 30px; height: 30px; font-size: 18px; }
}

/* =========================================================
   БРОНИРОВАНИЕ
   ========================================================= */
.booking {
  position: relative;
  background: var(--navy);
}
.booking__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.booking__info .title {
  margin-bottom: 22px;
  font-size: clamp(32px, 4vw, 52px);
}
/* на самых узких телефонах слово «ЗАБРОНИРОВАТЬ» не должно выступать за край */
@media (max-width: 359px) {
  .booking__info .title { font-size: 28px; overflow-wrap: anywhere; }
}
.booking__lead {
  max-width: 440px;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(245, 239, 228, .82);
}
.booking__list {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}
.booking__list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.booking__list a { text-decoration: none; }
.booking__list a:hover { color: var(--gold-2); }
.banquet-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 440px;
  margin-top: 28px;
  padding: 17px 20px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  border: 1px solid rgba(201, 168, 106, .5);
  background: linear-gradient(110deg, rgba(201, 168, 106, .16), rgba(201, 168, 106, .035));
  transition: transform .25s var(--ease), background-color .25s ease, border-color .25s ease;
}
.banquet-menu-link b { font: 300 28px/1 var(--sans); color: var(--gold-2); }
.banquet-menu-link:hover { transform: translateX(5px); border-color: var(--gold-2); background-color: rgba(201, 168, 106, .2); }
.booking__label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 3px;
}

.booking__card {
  padding: clamp(24px, 4vw, 48px);
  background: rgba(11, 27, 42, .72);
  border: 1px solid rgba(201, 168, 106, .28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}

/* Поля формы */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form__row--3 { grid-template-columns: 1.3fr 1fr 1fr; }

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.field__label {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, .62);
}
.field__optional { text-transform: none; letter-spacing: .02em; opacity: .7; }
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--cream);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(245, 239, 228, .2);
  border-radius: 2px;
  transition: border-color .2s ease, background-color .2s ease;
  color-scheme: dark;
}
.field__input::placeholder { color: rgba(245, 239, 228, .38); }
.field__input:hover { border-color: rgba(245, 239, 228, .35); }
.field__input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, .07);
}
.field__input.is-invalid { border-color: var(--error); }
.field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c9a86a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field__select option { color: #111; background: #fff; }
.field__textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field__error {
  min-height: 18px;
  margin: 5px 0 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--error);
}

/* кнопка и так на всю ширину — узкие поля не дают форме стать шире маленького экрана */
.form__submit { width: 100%; margin-top: 18px; padding-inline: 12px; }
.form__submit.is-loading .form__submit-text::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.form__status {
  min-height: 0;
  margin-top: 12px;
  font-size: 14px;
  color: var(--error);
}
.form__status:empty { margin: 0; }

/* Строка о согласии на обработку персональных данных под кнопкой отправки */
.form__consent {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.form__consent a { color: var(--gold-2); text-underline-offset: 2px; }
.form__consent a:hover { color: var(--cream); }

/* Скрытое поле-ловушка для спам-ботов: людям не видно, боты заполняют */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Сообщение об успешной заявке */
.form-success {
  padding: 24px 0;
  text-align: center;
  outline: none;
}
.form-success__icon { color: var(--gold); display: flex; justify-content: center; margin-bottom: 18px; }
.form-success__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 12px;
}
.form-success__text {
  max-width: 420px;
  margin: 0 auto 26px;
  color: rgba(245, 239, 228, .8);
}

/* Банкеты: форма слева, описание справа; между двумя похожими блоками отступы поменьше */
.banquet { padding-bottom: clamp(48px, 7vw, 90px); }
.banquet + .booking { padding-top: clamp(48px, 7vw, 90px); }
.banquet .booking__card { order: -1; }
.banquet__photo { order: -1; width: 100%; height: clamp(280px, 40vw, 480px); overflow: hidden; border: 1px solid rgba(201, 168, 106, .28); }
.banquet__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .banquet__photo { order: 0; } }
.field__input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field__input[type="number"]::-webkit-outer-spin-button,
.field__input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 959px) {
  .booking__inner { grid-template-columns: 1fr; }
  .banquet .booking__card { order: 0; }
}
@media (max-width: 559px) {
  .form__row { grid-template-columns: 1fr; }
  .form__row--3 { grid-template-columns: 1fr 1fr; }
  .form__row--3 .field:first-child { grid-column: 1 / -1; }
  .booking__list li { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================
   КОНТАКТЫ И ПОДВАЛ
   ========================================================= */
.contacts {
  background: var(--navy);
  text-align: center;
}
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px clamp(20px, 3vw, 40px);
  max-width: 1000px;
  margin: 0 auto clamp(40px, 5vw, 56px);
}
.contacts__item {
  padding-top: 26px;
  border-top: 1px solid rgba(201, 168, 106, .4);
}
.contacts__label {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.contacts__value {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--cream);
  text-decoration: none;
}
a.contacts__value:hover { color: var(--gold-2); }
.contacts__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Ссылка «Техподдержка» — чуть ниже кнопок, неброско */
.contacts__support {
  margin-top: clamp(28px, 4vw, 40px);
  font-size: 14px;
  letter-spacing: .06em;
}
.contacts__support a {
  color: rgba(245, 239, 228, .6);
  text-underline-offset: 4px;
}
.contacts__support a:hover { color: var(--gold-2); }

@media (max-width: 767px) {
  .contacts__grid { grid-template-columns: 1fr; }
}

.footer {
  padding: 28px 0;
  background: var(--navy);
  font-size: 14px;
  color: rgba(245, 239, 228, .55);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.logo--footer { font-size: 20px; }
.footer__up { text-decoration: none; letter-spacing: .06em; }
.footer__up:hover { color: var(--gold-2); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a { text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--gold-2); }
.footer__seller {
  flex: 0 0 100%;
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 239, 228, .1);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: rgba(245, 239, 228, .42);
}

@media (max-width: 599px) {
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; }
}

/* =========================================================
   СТРАНИЦЫ ПОЛИТИКИ И СОГЛАСИЯ (privacy.html, consent.html)
   ========================================================= */
.legal-top {
  padding: 22px 0;
  background: var(--navy-2);
  border-bottom: 1px solid rgba(201, 168, 106, .15);
}
.legal-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-top__back { font-size: 14px; text-decoration: none; letter-spacing: .04em; color: var(--muted); }
.legal-top__back:hover { color: var(--gold-2); }

.legal {
  padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px);
  background: var(--paper);
  color: var(--ink);
}
.legal__inner { max-width: 780px; }
.legal h1 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
}
.legal__date { margin-bottom: clamp(28px, 4vw, 40px); font-size: 14px; color: rgba(29, 42, 54, .6); }
.legal h2 {
  margin: 34px 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 24px);
}
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; }
.legal p + p { margin-top: 10px; }
.legal ul { margin-top: 8px; padding-left: 22px; list-style: disc; }
.legal ul + p { margin-top: 12px; }
.legal li + li { margin-top: 4px; }
.legal a { color: #7a5b25; text-underline-offset: 2px; }
/* Сведения, которые владелец кафе должен вписать перед публикацией */
.legal mark { padding: 0 4px; background: #ffe7a3; color: inherit; border-radius: 3px; }

/* =========================================================
   КАРТОЧКА БЛЮДА (с КБЖУ)
   ========================================================= */
.modal,
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.modal__backdrop,
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 16, .72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .28s ease;
}
.modal.is-open .modal__backdrop,
.drawer.is-open .drawer__backdrop { opacity: 1; }

.modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  width: min(520px, calc(100% - 32px));
  max-height: min(880px, calc(100% - 48px));
  overflow: hidden;
  color: #fff;
  background: #181818;
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translate(-50%, -46%) scale(.97);
  transition: transform .28s var(--ease), opacity .28s ease;
}
.modal.is-open .modal__dialog { opacity: 1; transform: translate(-50%, -50%); }

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(16, 32, 47, .78);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal__close:hover { background: rgba(16, 32, 47, .95); }

.dm__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Пропорция 4:3 должна совпадать с расчётом в js/main.js (frameStyle(..., 0.75, 'modal')) */
.dm__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}
/* мягкая тёплая виньетка по краям — белый фон не «плоский» */
.dm__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 75% 75% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(170, 140, 100, .22) 85%, rgba(120, 95, 60, .38) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.dm__info { padding: 22px 24px 20px; }
.dm__desc { font-size: 16.5px; line-height: 1.5; color: #fff; }
.dm__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.dm__opt {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 9px 14px;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.dm__opt span { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.dm__opt:hover { border-color: rgba(201, 168, 106, .6); }
.dm__opt[aria-checked="true"] { border-color: var(--gold); background: rgba(201, 168, 106, .14); }
.dm__opt[aria-checked="true"] span { color: var(--gold-2); }

.dm__nutr { margin-top: 24px; }
.dm__label { margin-bottom: 12px; font-size: 15px; color: rgba(255, 255, 255, .55); }
.dm__kbju {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.dm__kbju b { display: block; font-size: 19px; font-weight: 600; color: #fff; }
.dm__kbju span { display: block; margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .55); }
.dm__note { margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, .38); }

.dm__bar {
  flex: 0 0 auto;
  padding: 18px 24px calc(22px + env(safe-area-inset-bottom, 0px));
  background: #262626;
}
.dm__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.dm__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
}
.dm__price {
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--gold-2);
}
.dm__weight { margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, .5); }
.dm__actions { display: flex; gap: 12px; margin-top: 16px; }

.qty {
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  background: #161616;
  border-radius: 14px;
}
.qty__btn {
  width: 48px;
  height: 100%;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
}
.qty__btn:hover { color: var(--gold-2); }
.qty__val { min-width: 24px; text-align: center; font-size: 19px; font-weight: 600; }
.dm__add {
  flex: 1;
  min-height: 56px;
  padding: 0 20px;
  font-size: 17px;
  letter-spacing: .04em;
  border-radius: 14px;
}

@media (max-width: 599px) {
  /* На телефоне карточка выезжает снизу, как в приложении */
  .modal__dialog {
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: calc(100% - 20px);
    border-radius: 18px 18px 0 0;
    opacity: 1;
    transform: translateY(100%);
  }
  .modal.is-open .modal__dialog { transform: none; }
  .dm__info { padding: 18px 18px 16px; }
  .dm__bar { padding-left: 18px; padding-right: 18px; }
  .dm__kbju b { font-size: 17px; }
  .dm__kbju span { font-size: 12.5px; }
  .qty { flex-basis: 128px; }
  .qty__btn { width: 42px; }
}

/* =========================================================
   КОРЗИНА
   ========================================================= */
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: var(--navy-2);
  border-left: 1px solid rgba(201, 168, 106, .2);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .5);
  transform: translateX(100%);
  transition: transform .3s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 68px;
  padding: 12px 14px 12px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer__head .drawer__icon:first-child { margin-left: -12px; }
.drawer__title {
  flex: 1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}
.drawer__icon {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--cream);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.drawer__icon:hover { background: rgba(255, 255, 255, .06); }
.drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 24px 24px;
}
.drawer__foot {
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.drawer__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--muted);
}
.drawer__total b { font-size: 24px; font-weight: 700; color: var(--cream); }
.drawer__cta { width: 100%; }

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr 32px;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line__thumb { position: relative; width: 64px; height: 64px; }
.cart-line__thumb .plate { box-shadow: none; }
.cart-line__name { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.cart-line__variant { margin-top: 2px; font-size: 13px; color: var(--muted); }
.cart-line__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.cart-line__sum { font-weight: 700; white-space: nowrap; }
.cart-line__remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.cart-line__remove:hover { color: var(--error); background: rgba(255, 255, 255, .05); }
.qty--sm {
  flex: 0 0 auto;
  height: 36px;
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
}
.qty--sm .qty__btn { width: 34px; font-size: 18px; }
.qty--sm .qty__val { min-width: 22px; font-size: 15px; }

.cart-empty { padding: 48px 8px; text-align: center; }
.cart-empty__plate {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  color: rgba(201, 168, 106, .6);
  border: 1px solid rgba(201, 168, 106, .35);
  border-radius: 50%;
}
.cart-empty__title { margin-bottom: 8px; font-family: var(--serif); font-size: 24px; }
.cart-empty__text { margin-bottom: 22px; font-size: 15px; color: var(--muted); }

/* Самовывоз / доставка */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 18px 0 10px;
  padding: 5px;
  background: rgba(255, 255, 255, .05);
  border-radius: 14px;
}
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg__opt span {
  display: block;
  padding: 11px 8px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  color: var(--muted);
  border-radius: 10px;
  transition: background-color .2s ease, color .2s ease;
}
.seg__opt input:checked + span { background: var(--gold); color: #10202f; }
.seg__opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.order-form__hint { margin-bottom: 16px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.order-form .drawer__total { margin-top: 6px; }

/* Уведомление «Добавлено в корзину» */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 300;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: #10202f;
  background: var(--cream);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: transform .3s var(--ease), opacity .3s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 767px) {
  .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   МОБИЛЬНАЯ ПАНЕЛЬ «ПОЗВОНИТЬ / ЗАБРОНИРОВАТЬ»
   ========================================================= */
.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: none;
  gap: 10px;
  transform: translateY(160%);
  transition: transform .4s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta__call {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 10px;
  color: var(--gold-2);
  background: rgba(11, 27, 42, .94);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.mobile-cta__book {
  flex: 1.15 1 0;
  min-width: 0;
  padding: 0 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
@media (max-width: 767px) {
  .mobile-cta { display: flex; }
}

/* =========================================================
   ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Подсказка под полем формы */
.field__hint { margin: 6px 0 10px; font-size: 12px; line-height: 1.4; color: rgba(245, 239, 228, .6); }
.field__hint a { color: inherit; text-decoration: underline; }
.hero__logo picture { display: block; width: 100%; height: 100%; }
