/* ===========================================================
   «Зона вкуса» — обеды в офис и кейтеринг, Дмитров
   Общий файл стилей всех страниц сайта.
   Архетип первого экрана — «Витрина» (согласовано в КП 02.09.2026).
   =========================================================== */

:root {
  /* Палитра бренда — с брендбука клиента, IMG_5812 */
  --green-dark: #137D3F;
  --green: #2F7A1F;      /* затемнённая версия #499010 — 4.6:1 на белом, для текста/ссылок */
  --green-light: #82BB29;
  --orange: #FD7901;      /* крупные фоны/значки/бейджи — не для мелкого текста */
  --orange-text: #B85200; /* тёмный оранжевый — для текста/ссылок, контраст ок */

  --ink: #21281F;
  --muted: #5C6B57;
  --bg: #FFFFFF;
  --bg-soft: #FAF6EC;
  --bg-green: #F1F7EC;
  --border: #E5E0CF;

  --font-head: 'Nunito', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(19, 125, 63, .22);
  --shadow-sm: 0 4px 14px -6px rgba(33, 40, 31, .16);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--green-dark);
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Декоративный фон (волны/круги, как в брендбуке) ---------- */
.deco-dots {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, 10px);
  gap: 14px;
  opacity: .35;
}
.deco-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green-dark);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(253, 121, 1, .55);
}
.btn--outline {
  background: #fff;
  border-color: var(--green-dark);
  color: var(--green-dark);
}
.btn--ghost {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.6);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Бейджи ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.badge--green { background: var(--green-dark); }

/* =========================================================
   Шапка
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Плотность подобрана замером, а не на глаз: при .74 и .80 пункты меню
     поверх зелёной полосы давали контраст 4,19 и 4,40 при норме 4,5.
     .84 — самое прозрачное значение, которое норму держит (4,55). */
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid rgba(229,224,207,.7);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(19,125,63,.35); }
.site-header__row {
  display: flex;
  align-items: center;
  /* логотип, меню и кнопки стоят одной группой по центру, а не разъезжаются
     по краям — иначе между ними остаётся много пустого места */
  justify-content: center;
  gap: 30px;
  transition: padding .25s ease;
}
/* Отступы шапки сверху и снизу маленькие: высоту задаёт сам логотип, чтобы знак
   был крупным, а полоса шапки не разрасталась. Селектор из двух классов и
   padding-block — намеренно: у этого же элемента есть класс .container, а он в
   медиазапросе (max-width:1180px) переопределяет padding целиком и обнулял
   вертикальные отступы шапки. Боковые отступы остаются за .container. */
.site-header .site-header__row { padding-block: 8px; }
.site-header.is-scrolled .site-header__row { padding-block: 5px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand { position: relative; z-index: 2; }
.brand img {
  height: 92px;
  width: auto;
  /* растём от левого верхнего угла: логотип уходит вправо-вниз и виден
     целиком, а не обрезается верхним краем шапки */
  transform-origin: top left;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), height .25s ease;
}
.site-header.is-scrolled .brand img { height: 66px; }
@media (prefers-reduced-motion: reduce) {
  .brand:hover img { transform: none; }
}
.main-nav { display: flex; }
.main-nav ul { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--green-dark);
  white-space: nowrap;
}
/* оранжевая линия выезжает слева направо при наведении,
   у текущего раздела стоит постоянно */
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .main-nav a::after { transition: none; }
}
.header-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Телефон и мессенджеры — три одинаковых кружка подряд. 36px, а не 40:
   на 1180px контейнера свободного места в шапке всего 103px, три кнопки по
   40 с зазорами туда не помещаются (замерено). */
.header-phone,
.header-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* Телефон — залитый фирменный кружок: рядом с цветными знаками мессенджеров
   бледная подложка терялась */
.header-phone {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(19,125,63,.6);
  transition: background .15s ease, transform .18s cubic-bezier(.34,1.56,.64,1),
    box-shadow .18s ease;
}
/* у мессенджеров подложки нет: их фирменные знаки сами круглые и цветные */
.header-msg { transition: transform .18s cubic-bezier(.34,1.56,.64,1); }
.header-msg img { width: 36px; height: 36px; display: block; }
.header-phone__icon { flex-shrink: 0; animation: phone-pulse 1.8s ease-in-out 3; animation-delay: 2s; }
@keyframes phone-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .header-phone__icon { animation: none; }
}

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span { width: 20px; height: 2px; background: var(--green-dark); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Первый экран — «Витрина»: сразу сетка блюд/предложений
   ========================================================= */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--bg-green) 0%, #fff 70%);
  padding: 32px 0 36px;
  overflow: hidden;
}
.hero__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.hero__title { font-size: clamp(30px, 4vw, 46px); max-width: 960px; margin-bottom: .3em; }
.hero__subtitle { font-size: 18px; color: var(--muted); max-width: 960px; margin: 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dish-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.dish-card__media { position: relative; aspect-ratio: 4/3; background: var(--bg-green); overflow: hidden; }
.dish-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dish-card__badge { position: absolute; top: 12px; left: 12px; }
.dish-card__body { padding: 14px 18px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.dish-card__title { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--ink); }
.dish-card__desc { font-size: 14px; color: var(--muted); flex: 1; }
.dish-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.dish-card__price { font-family: var(--font-head); font-weight: 900; color: var(--orange-text); font-size: 18px; }

/* =========================================================
   Полоса доверия / цифры
   ========================================================= */
.trust-strip {
  position: relative;
  overflow: hidden;
  background: var(--green-dark);
  color: #fff;
  padding: 20px 0;
}
.trust-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: .45;
  pointer-events: none;
}
.trust-strip__row { position: relative; }
.trust-strip__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-strip__num { font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 3vw, 34px); }
.trust-strip__label { font-size: 13px; opacity: .85; margin-top: 4px; }
/* Зелёная лента-бейдж на четвёртой позиции — источник цифры (Яндекс Карты),
   светлее фона полосы, чтобы не сливаться с общим зелёным. */
.trust-strip__ribbon {
  display: inline-block; margin-top: 8px; padding: 3px 12px;
  background: var(--green-light); color: var(--green-dark);
  font-size: 11px; font-weight: 700; border-radius: 999px;
  text-decoration: none;
}
.trust-strip__ribbon:hover { background: #fff; }
/* Звезда рейтинга — золотая, как в привычном виджете Яндекс.Бизнеса, не в тон
   зелёной полосы: рейтинг должен читаться сразу, без подписи, что это оценка.
   display:inline-block — иначе общая нормализация svg{display:block} ставит
   звезду отдельной строкой над числом, а не рядом с ним. */
.trust-strip__star { display: inline-block; color: #FFC94D; vertical-align: -0.08em; margin-right: 2px; }

/* =========================================================
   Секции общего назначения
   ========================================================= */
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--green { background: var(--bg-green); }
/* Встроенная карта на «Контактах» — рамка в стиле карточек сайта, iframe
   без своих отступов внутри заполняет обёртку целиком. */
.map-embed {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  line-height: 0;
}
.map-embed iframe { display: block; border: 0; }
.section__head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section__eyebrow {
  display: inline-block;
  color: var(--orange-text);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section__title { font-size: clamp(26px, 3.4vw, 36px); }
.section__lead { color: var(--muted); font-size: 17px; margin: 0; }

/* minmax(0,…), не голый 1fr: иначе трек не сжимается уже min-content
   содержимого — нашлось 11.09.2026 на карточке «Истории» (свайп-полоса
   фото раздвинула страницу на 320px), студийное правило 14. */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.feature-card {
  background: #fff;
  border: 1.5px solid rgba(19,125,63,.22);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.feature-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}
.feature-card__title { font-family: var(--font-head); font-weight: 800; font-size: 17px; margin-bottom: 6px; color: var(--ink); }
.feature-card__text { font-size: 14.5px; color: var(--muted); margin: 0; }

/* Шаги процесса */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card { position: relative; padding: 28px 22px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.step-card__num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step-card__title { font-family: var(--font-head); font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.step-card__text { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Горизонтальная карусель (правило студии — вместо стопки на мобильной и при неполном ряде) ---------- */
.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex-shrink: 0; }
.rail.is-rail > * { width: calc((100% - 2*18px) / 3.15); }
@media (max-width: 860px) { .rail.is-rail > * { width: calc((100% - 18px) / 2.15); } }
@media (max-width: 600px) { .rail.is-rail > * { width: 82%; } }

/* ---------- Аккордеон (FAQ, дни меню) ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--orange-text);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 18px; color: var(--muted); font-size: 15px; margin: 0; }

/* =========================================================
   Форма заявки
   ========================================================= */
.form-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 32px;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row input:not([type=radio]):not([type=checkbox]),
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font: inherit;
  background: var(--bg-soft);
  color: var(--ink);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--green); background: #fff;
}
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.form-note a { color: var(--green); text-decoration: underline; }
.form-status { font-size: 14px; font-weight: 700; margin-top: 12px; display: none; }
.form-status--ok { color: var(--green-dark); }
.form-status--err { color: #B3261E; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* =========================================================
   Подвал
   ========================================================= */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.95); padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 56px; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.8); font-size: 14.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.studio-sign { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.95); }
.studio-sign a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; }
.studio-sign svg { display: inline-block; vertical-align: middle; }

/* Подпись студии в подвале — вариант «тёмный подвал» */
.made-by { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.9); }
.made-by a {
  color: rgba(255,255,255,.86);
  text-decoration: underline; text-underline-offset: 3px;
  display: inline-flex; align-items: center; vertical-align: middle;
}

/* =========================================================
   Cookie-баннер
   ========================================================= */
/* Плавающая карточка у нижнего края — компактная: меньше отступы и кегль,
   чем в первой версии, чтобы не закрывать содержимое страницы. */
/* Уведомление с крестиком (закрыл = продолжил пользоваться сайтом), по
   образцу крупных сайтов. Явный выбор «Принять»/«Отклонить»
   (.cookie-banner__actions) скрыт по умолчанию — показывается только через
   «Настройки cookie» в подвале (см. app.js), не всем посетителям сразу. */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 14px;
  box-shadow: 0 16px 36px -14px rgba(19,125,63,.28);
  padding: 14px 52px 14px 16px;
  display: none;
}
/* Старые браузеры без размытия фона: стекло превратилось бы в мутную плёнку,
   сквозь которую читается подвал — им отдаём плотный фон. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: #fff; }
  .cookie-banner { background: #fff; border-color: var(--border); }
}
.cookie-banner.is-visible { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
/* На стекле фон под текстом светлее и «зеленее», чем белый: приглушённый цвет
   давал контраст 3,96 при норме 4,5 (замерено по пикселям), поэтому здесь
   основной тёмный цвет текста, а не серый. */
.cookie-banner p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink); flex: 1; min-width: 200px; }
.cookie-banner p a { color: var(--green-dark); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 8px; flex-shrink: 0; width: 100%; }
.cookie-banner__actions[hidden] { display: none; }
.cookie-banner__actions .btn { padding: 8px 18px; font-size: 13px; }
/* Крестик закрытия — правый верхний угол плашки, кликабельная область
   44×44px (тач-таргет), сам символ визуально мельче. */
.cookie-banner__close {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--ink); font-size: 1.25rem; line-height: 1;
  cursor: pointer; border-radius: 9px; padding: 0; opacity: .6;
}
@media (hover: hover) {
  .cookie-banner__close:hover { opacity: 1; background: rgba(0,0,0,.06); }
}
/* ⚠️ Форма заявки ([data-lead-form], есть на каждой странице) может
   физически оказаться там же, где висит баннер (position:fixed внизу
   экрана) — при любой прокрутке, не только у самого конца документа. Тот же
   класс бага найден и исправлен 14.09.2026 на flowersbygordins.ru. Пока
   геометрия формы пересекается с зоной баннера — баннер временно уезжает за
   нижний край экрана; возвращается, когда пересечения нет (см. app.js). */
.cookie-banner { transition: transform .22s ease; }
.cookie-banner.is-yielding { transform: translateY(150%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

/* =========================================================
   Внутренние страницы — общий баннер-шапка раздела
   ========================================================= */
.page-hero {
  background: var(--bg-green);
  padding: 40px 0 36px;
  position: relative;
  overflow: hidden;
}
.breadcrumbs { display: flex; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--green); }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: .25em; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0; }
.page-hero .btn { margin-top: 18px; }
@media (max-width: 380px) { .page-hero .btn { white-space: normal; text-align: center; } }

/* Таблица цен / меню по дням */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; }
.price-table th { background: var(--bg-green); color: var(--green-dark); font-family: var(--font-head); font-weight: 800; font-size: 13.5px; text-transform: uppercase; letter-spacing: .03em; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td.price { font-family: var(--font-head); font-weight: 900; color: var(--orange-text); white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.callout {
  border-radius: var(--radius);
  border: 1px solid rgba(19,125,63,.2);
  background: var(--bg-green);
  padding: 22px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout--warn { background: #FFF6EA; border-color: rgba(253,121,1,.28); }
.callout__icon { font-size: 22px; line-height: 1; }
.callout p { margin: 0; font-size: 14.5px; color: var(--ink); }

/* Меню кейтеринга — десять категорий плитками-кнопками: два ряда по пять на
   десктопе и планшете, пять рядов по две на телефоне (три колонки дали бы
   3+3+3+1 — неполный ряд). Фото/видео из панели (/backend-admin/) занимает
   всю площадь плитки, название лежит поверх на затемняющем градиенте снизу —
   целиком кликабельная на вид «кнопка», не маленькая иконка с подписью. */
.cat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cat-tile {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius);
  aspect-ratio: 4 / 5; overflow: hidden;
}
.cat-tile__icon { position: absolute; inset: 0; }
/* Пока фото не загружено — эмодзи-заглушка по центру на светлом фоне;
   как только панель отдаёт снимок, cms.js снимает этот класс. */
.cat-tile__icon--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; line-height: 1; background: var(--bg-green);
}
.cat-tile__icon img, .cat-tile__icon video {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.cat-tile__name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 12px 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 85%);
}
@media (max-width: 900px) {
  .cat-tile__icon--placeholder { font-size: 28px; }
  .cat-tile__name { font-size: 14px; padding: 10px 8px 8px; hyphens: auto; overflow-wrap: break-word; }
}
@media (max-width: 640px) {
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat-tile { border-radius: 14px; }
}
.cat-tile--clickable { cursor: pointer; }
.cat-tile--clickable:hover .cat-tile__name,
.cat-tile--clickable:focus-visible .cat-tile__name { background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 85%); }
.cat-tile--clickable:focus-visible { outline: 2px solid var(--green-light); outline-offset: 2px; }
/* Подпись «Посмотреть меню →» — без неё курсор-указатель незаметен, а на
   тач-экране его вообще нет (js/cms.js, setupCateringMenu). */
.cat-tile__hint {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: 12.5px; color: rgba(255, 255, 255, .85); margin-top: 3px;
}
@media (max-width: 640px) { .cat-tile__hint { font-size: 11px; } }

/* Модалка списка позиций категории кейтеринга — открывается кликом по
   плитке (js/cms.js, setupCateringMenu). Одна на страницу, создаётся
   при первом открытии. */
body.menu-modal-open { overflow: hidden; }
.menu-modal { position: fixed; inset: 0; z-index: 200; }
.menu-modal[hidden] { display: none; }
.menu-modal__backdrop { position: absolute; inset: 0; background: rgba(33,40,31,.55); }
.menu-modal__panel {
  position: relative; margin: 6vh auto; width: min(560px, calc(100% - 32px));
  max-height: 88vh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.menu-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.menu-modal__title { font-family: var(--font-head); font-size: 20px; color: var(--green-dark); margin: 0; }
.menu-modal__close {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: none;
  background: var(--bg-green); color: var(--ink); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.menu-modal__body { padding: 8px 20px 20px; overflow-y: auto; }
.menu-modal__item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.menu-modal__item:last-child { border-bottom: none; }
.menu-modal__item-info { flex: 1; min-width: 0; }
.menu-modal__item-name { font-weight: 700; color: var(--ink); font-size: 15px; }
.menu-modal__item-note { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.menu-modal__item-note-text { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.menu-modal__item-price { text-align: right; flex-shrink: 0; }
.menu-modal__item-unit { display: block; color: var(--muted); font-size: 12.5px; }
.menu-modal__item-value { display: block; font-family: var(--font-head); font-weight: 900; color: var(--orange-text); font-size: 17px; }
@media (max-width: 560px) {
  .menu-modal__panel { margin: 0; width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}

/* Корзина кейтеринга (js/cms.js, блок «Корзина»): кнопка «Добавить» и
   степпер в строке позиции, полоса итога внизу модалки категории, плавающая
   кнопка заказа на странице и экран заказа на той же оболочке .menu-modal. */
.menu-modal__item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.menu-modal__add { padding: 7px 16px; font-size: 13.5px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--green-dark); border-radius: 999px; overflow: hidden; background: #fff; }
.qty__btn {
  width: 34px; height: 32px; border: none; background: transparent; color: var(--green-dark);
  font-family: var(--font-head); font-size: 20px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
}
.qty__btn:hover { background: var(--bg-green); }
.qty__num { min-width: 30px; text-align: center; font-family: var(--font-head); font-weight: 900; font-size: 15px; color: var(--ink); }
.menu-modal__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-green); flex-shrink: 0;
}
.menu-modal__foot[hidden] { display: none; }
.menu-modal__foot-text { font-size: 14.5px; color: var(--ink); }
.menu-modal__foot-text b { font-family: var(--font-head); font-weight: 900; color: var(--green-dark); }
.cart-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 190;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px 12px 16px; border-radius: 999px; border: none;
  background: var(--green-dark); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  box-shadow: 0 12px 28px -10px rgba(19, 125, 63, .65); cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.cart-fab[hidden] { display: none; }
.cart-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.cart-fab:hover { background: var(--green); transform: translateY(-1px); }
.cart-fab.cart-fab--yield { transform: translateY(150%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .cart-fab { transition: none; } }
.cart-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-row__info { flex: 1; min-width: 0; }
.cart-row__name { font-weight: 700; font-size: 15px; color: var(--ink); }
.cart-row__meta { font-size: 12.5px; color: var(--muted); }
.cart-row__sum { font-family: var(--font-head); font-weight: 900; color: var(--orange-text); min-width: 84px; text-align: right; }
.cart-row__remove {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: none; padding: 0;
  background: var(--bg-soft); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cart-row__remove:hover { background: #F6DADA; color: #B3261E; }
.cart-row--gone .cart-row__name { text-decoration: line-through; color: var(--muted); }
.cart-row__gone-note { font-size: 12.5px; color: #B3261E; margin-top: 2px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 8px; font-family: var(--font-head); font-size: 17px; font-weight: 800; color: var(--ink); }
.cart-total b { font-size: 24px; font-weight: 900; color: var(--green-dark); }
.cart-min { font-size: 13.5px; font-weight: 700; margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); }
.cart-min--warn { background: #FFF1E4; color: var(--orange-text); }
.cart-min--ok { background: var(--bg-green); color: var(--green-dark); }
.cart-form { border-top: 1px solid var(--border); padding-top: 18px; }
.cart-form .form-row { margin-bottom: 12px; }
.cart-form .form-row label { margin-bottom: 0; }
.cart-form .form-row input, .cart-form .form-row textarea { margin-top: 6px; }
.cart-form .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.form-optional { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.form-row--error input:not([type=radio]):not([type=checkbox]), .form-row--error textarea { border-color: #B3261E; background: #FFF5F5; }
.form-error { color: #B3261E; font-size: 13px; font-weight: 700; margin: 6px 0 0; }
.cart-actions { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 2px; }
.cart-link {
  border: none; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.cart-link--muted { color: var(--muted); font-weight: 600; }
.cart-link:hover { color: var(--green-dark); }
.cart-empty { padding: 36px 0; text-align: center; color: var(--muted); }
.cart-empty p { margin-bottom: 18px; }
.cart-done { padding: 36px 12px; text-align: center; }
.cart-done h4 { font-size: 22px; margin-bottom: 8px; }
.cart-done p { color: var(--muted); margin: 0 0 18px; }
/* Cookie-баннер по центру (до 560px) и кнопка заказа справа пересекаются на
   ширинах уже ~1040px — пока корзина не пуста, баннер поднимается над ней. */
@media (max-width: 1040px) {
  body:has(.cart-fab:not([hidden])) .cookie-banner { bottom: 84px; }
}
@media (max-width: 640px) {
  .cart-fab { left: 16px; right: 16px; justify-content: center; }
}
@media (max-width: 560px) {
  .menu-modal__foot .btn { width: 100%; }
  .cart-row { flex-wrap: wrap; }
  .cart-row__info { flex-basis: 100%; }
  .cart-row__sum { flex: 1; }
}

/* Зона обслуживания — таблица «услуга → города».
   Раньше это были три карточки с городами-пилюлями: у обедов один город,
   у производств шесть, высота тянулась по самой длинной, и снизу оставалась
   пустота на полкарточки. Содержимое во всех трёх одинаковое по типу —
   название услуги и перечень городов, — поэтому таблица честнее коробок:
   разницу между зонами видно одной строкой. */
.zone-table { width: 100%; border-collapse: collapse; }
.zone-table th {
  text-align: left; font-family: var(--font-head); font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  padding: 0 0 12px; border-bottom: 1px solid var(--border);
}
.zone-table td { padding: 16px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.zone-table tr:last-child td { border-bottom: 0; }
.zone-table .zt-name {
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px;
  color: var(--ink); width: 34%; padding-right: 24px;
}
.zone-table .zt-name small {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: 13.5px; color: var(--muted); margin-top: 3px;
}
.zone-table .zt-cities { font-size: 15.5px; color: var(--green-dark); font-weight: 600; line-height: 1.7; }
/* На узком экране колонки не помещаются — строка становится блоком:
   название услуги сверху, города под ним. */
@media (max-width: 720px) {
  .zone-table, .zone-table tbody, .zone-table tr, .zone-table td { display: block; width: 100%; }
  .zone-table thead { display: none; }
  .zone-table td { padding: 0; border: 0; }
  .zone-table tr { padding: 16px 0; border-bottom: 1px solid var(--border); }
  .zone-table tr:last-child { border-bottom: 0; }
  .zone-table .zt-name { padding: 0 0 6px; }
}

/* Фото и видео из мини-админки (/backend-admin/) — контент попадает сюда
   после публикации (site/data/content.json), скрипт js/cms.js. Пока раздел
   пуст, элементы стоят с hidden и на вёрстку не влияют. */
.dish-card__visual {
  width: 100%; height: 100%; position: relative;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.dish-card__visual::-webkit-scrollbar { display: none; }
.dish-card__visual--placeholder { align-items: center; justify-content: center; }
.dish-card__visual img, .dish-card__visual video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Слайд карточки-направления на главной — до 3 фото/видео листаются свайпом
   в самой карточке (js/cms.js, renderHeroGallery). Заполняет ровно ширину
   .dish-card__visual, следующий слайд не подглядывает (в отличие от .cms-media
   ниже) — тут именно один кадр на экран, а не лента-подсказка. */
.dish-card__slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; }
.dish-card__dots {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.dish-card__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
  transition: background .2s ease;
}
.dish-card__dot.is-active { background: #fff; }
/* Стрелки листания кликом мыши — поверх любой свайп-галереи сайта (карточки
   на главной и обычные .cms-media). Не внутри прокручиваемого элемента:
   расположены в его непрокручивающемся родителе (js/cms.js), иначе сами
   уезжали бы при свайпе вместе с содержимым. */
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, .45); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3; padding: 0;
  transition: background .15s ease;
}
.gallery-arrow:hover { background: rgba(0, 0, 0, .65); }
.gallery-arrow--prev { left: 8px; }
.gallery-arrow--next { right: 8px; }
/* Свайп-карусель, не перенос строк: несколько фото листаются вбок,
   а не складываются стопкой. Кадры квадратные. */
/* «О компании», карточка истории: столбик цифр слева, галерея справа. */
.about-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: stretch; padding: 30px; }
.about-facts__nums { display: flex; flex-direction: column; gap: 18px; }
.about-facts__nums .trust-strip__num { color: var(--orange-text); font-size: 32px; }
.about-facts__label { color: var(--muted); font-size: 14px; }
/* Галерея растягивается на высоту столбика цифр: кадры 4:5 во всю высоту,
   ширина — от высоты; на телефоне колонки одна под другой, кадры обычные. */
.about-facts__media { position: relative; min-height: 0; }
/* Абсолютное позиционирование — чтобы высоту ряда задавал столбик цифр, а не
   кадры (иначе «100% высоты» замыкается само на себя и карточка растёт). */
.about-facts__media > .cms-media-wrap, .about-facts__media > .cms-media { position: absolute; inset: 0; height: 100%; }
.about-facts__media .cms-media-wrap .cms-media { height: 100%; }
.about-facts__media .cms-media { margin-top: 0; padding-bottom: 0; }
.about-facts__media .cms-media__item { height: 100%; width: auto; aspect-ratio: 4 / 5; }
@media (max-width: 560px) {
  .about-facts { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .about-facts__media > .cms-media-wrap, .about-facts__media > .cms-media,
  .about-facts__media .cms-media-wrap .cms-media { position: static; height: auto; }
  .about-facts__media .cms-media__item { height: auto; width: 200px; }
}
.cms-media-wrap { position: relative; }
.cms-media {
  display: flex; gap: 12px; margin-top: 16px; padding-bottom: 2px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.cms-media__item {
  width: 210px; aspect-ratio: 1/1; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-green); flex-shrink: 0;
  scroll-snap-align: start;
}
.cms-media__item img, .cms-media__item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@media (max-width: 560px) { .cms-media__item { width: 160px; } }
/* «Почему Зона вкуса» — фото-карточки процесса (Готовим/Упаковываем/Доставляем) с
   подписью, впечатанной в само фото у самого края. Стандарт заказчицы для таких
   фото — 4:5 (портрет), не квадрат: в квадрате текст у края обрезался. Карточка
   крупнее обычной галереи — мелкий текст на фото иначе не читается. */
[data-cms-section="index.pochemu"] .cms-media__item { width: 220px; aspect-ratio: 4/5; }
@media (max-width: 560px) {
  [data-cms-section="index.pochemu"] .cms-media__item { width: 170px; }
}

/* «Как устроены обеды» — карточки-плакаты дневного/недельного меню (вертикальный
   дизайн-макет с ценой и составом, не фото еды), до 10 штук в ленте. Окно вдвое
   больше обычной галереи — на плакате мелкий текст, в стандартном размере
   нечитаем. object-fit: contain — обрезки нет, даже если пропорция конкретного
   макета чуть разойдётся с 4:5. */
[data-cms-section="menu.kak-ustroeny"] .cms-media__item {
  width: 420px; aspect-ratio: 4/5; background: var(--bg-green);
}
[data-cms-section="menu.kak-ustroeny"] .cms-media__item img,
[data-cms-section="menu.kak-ustroeny"] .cms-media__item video {
  width: 100%; height: 100%; object-fit: contain;
}
@media (max-width: 560px) {
  [data-cms-section="menu.kak-ustroeny"] .cms-media__item { width: 320px; }
}

/* Увеличение плаката по клику — крупно по центру экрана, не лупа по
   наведению (js/cms.js, makeSlidesLightbox). Одна на страницу. */
.image-lightbox { position: fixed; inset: 0; z-index: 210; }
.image-lightbox[hidden] { display: none; }
.image-lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); }
.image-lightbox__frame {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: center; padding: 56px 20px;
}
.image-lightbox__frame img, .image-lightbox__frame video {
  max-width: 100%; max-height: 100%; border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,.5); display: block;
}
.image-lightbox__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
}
/* .gallery-arrow сама задаёт display:flex — атрибут hidden без этого правила
   не подействует (одинаковая специфичность, класс идёт в разметке позже). */
.image-lightbox__arrow[hidden] { display: none; }

/* Контакты — компактные строки: иконка слева, текст справа */
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.contact-card .feature-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  margin-bottom: 0;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-card__body { min-width: 0; }
.contact-card .feature-card__title { font-size: 15px; margin: 0 0 2px; }
.contact-card .feature-card__text { margin: 0; font-size: 14.5px; line-height: 1.45; }

/* Номер телефона в контактах: крупная нажимаемая строка. Раньше это была
   обычная ссылка высотой 17px — попасть по ней пальцем на телефоне трудно,
   рекомендуемый минимум зоны нажатия 44px. */
.contact-phone {
  display: inline-block;
  padding: 6px 0;
  min-height: 32px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--green-dark);
  text-decoration: none;
  white-space: nowrap;   /* номер не разрывается между цифрами ни на какой ширине */
}
.contact-note { display: block; font-size: 13.5px; color: var(--muted); }

/* Кнопки мессенджеров — в карточке контактов и рядом с формой заявки */
.msg-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--green-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.msg-btn img { width: 18px; height: 18px; flex-shrink: 0; display: block; }

/* Реквизиты продавца в подвале — обязательны по ст. 9 ЗоЗПП, отдельной
   строкой под копирайтом, приглушённо, чтобы не спорить с основным текстом */
.footer-legal { margin-top: 8px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.62); }

/* Контакты рядом с формой заявки: позвонить или написать можно сразу,
   не заполняя форму */
.lead-contacts { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.lead-contacts__row { display: flex; align-items: center; gap: 12px; }
.lead-contacts__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  flex-shrink: 0;
}
.lead-contacts__val { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--green-dark); text-decoration: none; }
.lead-contacts__note { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13.5px; color: var(--muted); }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1180px) {
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (max-width: 1120px) {
  /* На узком экране контент идёт во всю ширину и заезжает прямо под шапку:
     стекло здесь делаем плотнее, иначе сквозь него читается текст страницы
     (правило студии, поймано на другом сайте). */
  .site-header { background: rgba(255,255,255,.9); }

  /* меню скрыто — логотипу и кнопкам незачем жаться к середине:
     логотип уходит к левому краю, бургер к правому */
  .site-header__row { justify-content: space-between; }
  .main-nav { display: none; }
  /* Телефон и мессенджеры на телефоне ОСТАЮТСЯ в шапке: на мобильном именно
     они и есть основной способ связаться, а прятать их в бургер — значит
     требовать лишнее нажатие. Кнопка «Оставить заявку» на планшете остаётся
     рядом с ними — места хватает; она скрывается ниже 860px (см. дальше). */
  .burger { display: flex; }
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Три карточки в двух колонках дают ряд «2 + 1 и пустота справа» — блок
     читается как недовёрстанный. Последняя карточка нечётной сетки занимает
     обе колонки, тогда пустоты нет. При чётном числе карточек правило не
     срабатывает и ничего не меняет. */
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* Три шага стоят в ряд и на телефоне: стопкой они занимали 553–597px,
     почти три четверти экрана. Узкие вертикальные карточки, перенос по
     слогам — иначе длинные слова («сотрудничестве») рвут колонку. */
  /* minmax(0,1fr), а не голый 1fr: иначе колонки берут ширину по своему
     содержимому и разъезжаются (замер: 97 / 78 / 127px вместо равных) */
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .step-card { padding: 14px 10px 12px; border-radius: 14px; }
  .step-card__num { width: 28px; height: 28px; border-radius: 9px; font-size: 14px; margin-bottom: 8px; }
  /* «Сотрудничество» длиннее узкой колонки — разрешаем перенос по слогам,
     иначе слово вылезает за карточку */
  .step-card__title { font-size: 13px; margin-bottom: 4px; hyphens: auto; overflow-wrap: break-word; }
  .step-card__text { font-size: 11.5px; line-height: 1.35; hyphens: auto; }
  .trust-strip__row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* backdrop-filter на .site-header создаёт новый containing block для
     position:fixed потомков — без сброса меню схлопывается в узкую полоску
     вместо полноэкранного (см. правило студии про мобильное меню). */
  .site-header.is-open {
    backdrop-filter: none;
    background: #fff;
  }
  /* Меню — панель под шапкой по высоте содержимого, а не на весь экран:
     страница остаётся видна, и человек понимает, куда вернётся. Закрывается
     кнопкой, клавишей Esc и нажатием мимо меню (обработчик в app.js). */
  .site-header.is-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 16px 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 20px 34px -20px rgba(19,125,63,.5);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    z-index: 90;
  }
  .site-header.is-open .main-nav ul { flex-direction: column; gap: 2px; }
  /* в раскрытом мобильном меню пункты идут столбцом — там уместна
     подсветка плашкой, а не линия во всю ширину экрана */
  .site-header.is-open .main-nav a { padding: 12px 14px; font-size: 16.5px; border-radius: 12px; }
  .site-header.is-open .main-nav a::after { display: none; }
  .site-header.is-open .main-nav a[aria-current="page"] { background: var(--bg-green); }
}
@media (max-width: 460px) {
  .header-cta .btn--primary { display: none; }
  .site-header__row { gap: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  /* На телефоне шапка липкая и висит поверх контента: логотип во всю высоту
     съедал бы восьмую часть экрана. Уменьшаем знак и отступы. */
  .brand img { height: 64px; }
  .site-header.is-scrolled .brand img { height: 50px; }
  .site-header .site-header__row { padding-block: 6px; }
  .site-header.is-scrolled .site-header__row { padding-block: 4px; }
  .header-cta { gap: 6px; }
  .header-phone, .header-msg { width: 34px; height: 34px; }
  .header-msg img { width: 34px; height: 34px; }
  .hero { padding: 24px 0 28px; }
  .hero__top { margin-bottom: 20px; }
  /* Три карточки-направления — было в столбик (1908 px только на них), теперь
     горизонтальная лента как у остальных фото-галерей сайта (правило студии:
     несколько однотипных карточек на мобильной — лента, не стопка). Следующая
     карточка выглядывает с края (82% ширины) — подсказка, что можно свайпнуть. */
  .showcase {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 6px; scrollbar-width: none;
  }
  .showcase::-webkit-scrollbar { display: none; }
  .showcase > .dish-card { scroll-snap-align: start; flex-shrink: 0; width: 82%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .section__head { margin-bottom: 28px; }
  .trust-strip__row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  /* Подвал на телефоне: четыре блока в стопку давали 1102px — треть лишнего
     экрана прокрутки. Разделы «Меню сайта» и «Контакты» встают в две колонки,
     города обслуживания — строкой вместо списка, описание компании убрано
     (оно уже сказано на первом экране). */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .footer-grid > * { min-width: 0; }
  .footer-grid > :nth-child(1) { grid-column: 1 / -1; order: 1; }
  .footer-grid > :nth-child(1) p { display: none; }
  .footer-brand img { height: 46px; }
  .footer-grid > :nth-child(2) { order: 2; }   /* Меню сайта */
  .footer-grid > :nth-child(4) { order: 3; }   /* Контакты */
  .footer-grid > :nth-child(3) { grid-column: 1 / -1; order: 4; }  /* Зона обслуживания */
  .footer-grid > :nth-child(3) ul { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .footer-grid > :nth-child(3) li { margin-bottom: 0; }
  .footer-col h4 { margin-bottom: 10px; }
  .footer-col ul li { margin-bottom: 8px; }
  .footer-col a, .footer-col li { line-height: 1.35; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 12.5px; }
  .footer-legal { font-size: 12px; }
  .form-card { padding: 22px; }
  .section { padding: 36px 0; }
}
/* «Почему Зона вкуса» — плашки короткие (заголовок + одна фраза), в 2 колонки
   читаются нормально и вдвое короче по высоте, чем в столбик. Только от 380px:
   на самом узком экране (320px, iPhone SE) слово «Индивидуальная» не
   переносится и вылезает за рамки колонки — там оставляем 1 столбец. */
@media (min-width: 380px) and (max-width: 640px) {
  [data-cms-section="index.pochemu"] .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* =========================================================
   Интро главной: логотип показывается крупно и уезжает в шапку.
   Оверлей создаёт JS — без него страница открывается обычным образом.
   ========================================================= */
.logo-intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  transition: opacity .45s ease, background-color .9s ease;
}
/* фон растворяется, пока логотип летит, — страница проступает постепенно */
.logo-intro.is-flying { background-color: rgba(250, 246, 236, 0); }
.logo-intro img {
  /* логотип квадратный: ограничиваем по высоте окна напрямую */
  width: min(760px, 88vw, 72vh);
  height: auto;
  transform-origin: top left;
  will-change: transform;
}
.logo-intro.is-flying img { transition: transform 1.15s cubic-bezier(.62,0,.2,1); }
.logo-intro.is-done { opacity: 0; pointer-events: none; }
.site-header.intro-pending .brand img { visibility: hidden; }

/* =========================================================
   Scroll-reveal — появление карточек при подскролле.
   Класс reveal-ready ставит JS: без него (или без IntersectionObserver)
   карточки видны сразу, анимация — прогрессивное улучшение, не требование.
   ========================================================= */
body.reveal-ready .feature-card,
body.reveal-ready .dish-card,
body.reveal-ready .step-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
body.reveal-ready .feature-card.is-visible,
body.reveal-ready .dish-card.is-visible,
body.reveal-ready .step-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  body.reveal-ready .feature-card,
  body.reveal-ready .dish-card,
  body.reveal-ready .step-card { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Плавные переходы между страницами (View Transitions API).
   Правило обязано быть на обеих страницах перехода — потому
   лежит в общем styles.css, а не на отдельной странице.
   Имена view-transition-name уникальны на странице: иначе
   браузер молча отменяет переход целиком.
   В Firefox перехода не будет — это не поломка.
   ========================================================= */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: page-out .22s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: page-in .34s cubic-bezier(0,0,.2,1) both; }
@keyframes page-out { to   { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in  { from { opacity: 0; transform: translateY(16px); } }

/* шапка и подвал остаются на месте, не мигают вместе со страницей */
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .01ms; }
}

/* =========================================================
   Отклик на нажатие: вдавливание + волна от точки касания.
   На телефоне наведения не существует — без этого человек
   тыкает в кнопку повторно, отсюда дубли заявок.
   ========================================================= */
.btn {
  position: relative;
  overflow: hidden;
  transition:
    transform .18s cubic-bezier(.34,1.56,.64,1),
    box-shadow .18s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(2px) scale(.97); }
.btn--primary:active { box-shadow: 0 4px 10px -6px rgba(253,121,1,.7); }

/* карточки тоже отвечают на нажатие, а не только на наведение */
.dish-card:active, .feature-card:active { transform: translateY(-1px) scale(.995); }

.fx-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, .55);
  pointer-events: none;
  animation: fx-ripple .55s cubic-bezier(.2,.6,.3,1) forwards;
}
/* на белой кнопке с зелёной обводкой белая волна не видна — нужна зелёная */
.btn--outline .fx-ripple { background: rgba(19, 125, 63, .28); }

@keyframes fx-ripple { to { transform: scale(2.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .fx-ripple { display: none; }
}

/* =========================================================
   Наведение мышью — только там, где мышь есть.
   Без этой обёртки на телефоне после тапа кнопка залипает
   в поднятом состоянии, пока человек не тапнет в другое место.
   Нажатие (:active) сюда НЕ входит — оно как раз для тача.
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn--primary:hover { background: #E86D00; }
  .btn--outline:hover { background: var(--bg-green); }

  /* небольшой сдвиг вправо-вниз, чтобы увеличенный логотип ушёл
     ниже строки меню и не перекрывал пункты навигации */
  /* коэффициент подобран по зазору: прирост ширины (92px → 120px) укладывается
     в 30px между логотипом и меню, поэтому знак не наезжает на пункты */
  .brand:hover img { transform: translate(4px, 6px) scale(1.3); }
  .header-phone:hover {
    background: #0F6733;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 10px 18px -8px rgba(19,125,63,.75);
  }
  .header-msg:hover { transform: translateY(-2px) scale(1.06); }
  .msg-btn:hover { border-color: var(--green-dark); background: var(--bg-green); }
  .main-nav a:hover::after { transform: scaleX(1); }

  .dish-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .dish-card:hover .dish-card__media img { transform: scale(1.06); }

  .feature-card:hover {
    border-color: rgba(19,125,63,.45);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
  }

  /* Появление при прокрутке задаёт карточке transform через более сильный
     селектор (body.reveal-ready .card.is-visible), и он перебивал подъём при
     наведении — карточки переставали реагировать на мышь, как только отработал
     scroll-reveal. Повторяем подъём с той же специфичностью. Правила намеренно
     стоят ВНУТРИ @media (hover: hover): иначе на телефоне карточка залипала бы
     поднятой после касания. */
  body.reveal-ready .dish-card.is-visible:hover {
    transform: translateY(-4px);
    transition: transform .22s ease, box-shadow .22s ease;
  }
  body.reveal-ready .feature-card.is-visible:hover {
    transform: translateY(-3px);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  }

  .footer-col a:hover { color: #fff; text-decoration: underline; }
  .made-by a:hover { color: #fff; }
}

/* =========================================================
   Типографика: без висячих строк.
   balance — браузер выравнивает длину строк заголовка, чтобы
   последнее слово не висело одно; pretty — то же для абзацев.
   В Firefox работает только balance, там переносы как раньше.
   ========================================================= */
h1, h2, h3, h4,
.section__title, .dish-card__title, .feature-card h3, .step-card h3 {
  text-wrap: balance;
}
p, li, .dish-card__desc, .section__lead {
  text-wrap: pretty;
}
