/* Лавка Вкуса — одностраничник (редизайн 2026, по мотивам vanderlans.com).
   Все версии (ru, en, zh) — на этом файле. */

/* ---------- Шрифт ---------- */
/* Jost — свой, два woff2 (кириллица и латиница). Google Fonts не подключаем. */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/Jost-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/Jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --green: #1a5319;          /* фирменный зелёный: заголовки, полосы разделов */
  --green-deep: #123b11;     /* подвал, наведение на зелёные кнопки */
  --peach: #f2b65a;          /* персик из логотипа: главная кнопка, акценты */
  --peach-dark: #e09a33;
  --ink: #1d2a1b;            /* тёмный текст, текст на персиковой кнопке */
  --text: #4c5649;           /* основной текст: 7.4:1 на белом */
  --muted: #687165;          /* подписи: 5.1:1 на белом, 4.65:1 на --bg-soft */
  --line: #dfe5da;
  --bg: #ffffff;
  --bg-soft: #f3f6ef;        /* светлые разделы */
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, .78);

  --font: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 84px;
  --radius: 14px;
  --container: 1240px;
  --gutter: 32px;
  --trust-peek: 189px;       /* высота полосы «Нам доверяют» (две строки логотипов): она видна внизу первого экрана */
}
/* китайская версия: в Jost нет иероглифов — латиница остаётся Jost, иероглифы из системного шрифта */
:root:lang(zh) {
  --font: 'Jost', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', system-ui, sans-serif;
}
:lang(zh) .hero__lead { max-width: 600px; }   /* иероглифы шире: подзаголовок в одну строку на компьютере */
@media (max-width: 575px) {
  :lang(zh) .hero__title { font-size: min(38px, 8.8vw); }   /* «新鲜水果供应商» — одной строкой на телефоне */
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
body.is-menu-open, html:has(body.is-menu-open) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.15; }
p { margin: 0; }
p + p { margin-top: 1em; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  /* iPhone боком: не заходить под вырез экрана (viewport-fit=cover) */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
/* на тёмном и зелёном — персиковая рамка: зелёная там не видна (на белом персик — всего 1.8:1) */
.hero :focus-visible, .band :focus-visible, .section--green :focus-visible, .site-footer :focus-visible,
.mobile-menu :focus-visible, .js.page-home .site-header:not(.is-solid) :focus-visible { outline-color: var(--peach); }
/* раздел, в который site.js перенёс фокус после перехода по меню, — без рамки */
section[tabindex="-1"]:focus { outline: none; }

/* Якорь раздела не прячется под шапкой */
[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 500 16px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--peach); color: var(--ink); }
.btn--accent:hover { background: var(--peach-dark); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-deep); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { border-color: var(--green); color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color .3s, box-shadow .3s;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
}
.site-header__logo {
  display: grid;
  flex: none;
}
.site-header__logo .logo {
  grid-area: 1 / 1;
  width: 168px;
  height: auto;
  transition: opacity .3s, visibility .3s;
}
.logo--white { opacity: 0; visibility: hidden; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--peach);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.site-header__cta { min-height: 44px; padding: 8px 22px; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}
.lang:hover { border-color: var(--green); }

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

/* Главная: шапка прозрачная поверх первого экрана, белая после прокрутки (только с JS) */
.js.page-home .site-header {
  position: fixed;
  left: 0; right: 0;
}
.js.page-home .site-header:not(.is-solid) {
  background: transparent;
  box-shadow: none;
}
.js.page-home .site-header:not(.is-solid) .logo--color { opacity: 0; visibility: hidden; }
.js.page-home .site-header:not(.is-solid) .logo--white { opacity: 1; visibility: visible; }
.js.page-home .site-header:not(.is-solid) .nav__link,
.js.page-home .site-header:not(.is-solid) .burger { color: #fff; }
.js.page-home .site-header:not(.is-solid) .lang { color: #fff; border-color: rgba(255, 255, 255, .55); }
.js.page-home .site-header:not(.is-solid) .lang:hover { border-color: #fff; }

/* ---------- Мобильное меню ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 32px max(var(--gutter), env(safe-area-inset-left));
  background: var(--green);
  color: #fff;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s, visibility .3s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.mobile-menu__top img { width: 150px; height: auto; }
.mobile-menu__close {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.mobile-menu__close::before,
.mobile-menu__close::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; top: 21px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}
.mobile-menu__close::after { transform: rotate(-45deg); }
.mobile-menu__list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.mobile-menu__list a {
  display: block;
  padding: 12px 0;
  color: #fff;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}
.mobile-menu__lang { font-size: 18px !important; color: var(--on-dark-muted) !important; }
.mobile-menu__contacts {
  margin-top: auto;
  padding-top: 32px;
  font-size: 18px;
}
.mobile-menu__contacts a { display: block; padding: 6px 0; color: #fff; text-decoration: none; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  /* первый экран короче окна на полосу «Нам доверяют» — логотипы видно сразу, без прокрутки;
     на низком экране растёт по содержимому, а не прячет его под кнопку паузы */
  min-height: max(600px, calc(100svh - var(--trust-peek)));
  color: #fff;
  background: var(--green-deep);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg picture,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__bg img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* видео проявляется, когда пошло; до этого и без него виден кадр-картинка */
.hero__video { opacity: 0; transition: opacity .8s ease; }
.hero__video.is-playing { opacity: 1; }
/* пауза видео (WCAG 2.2.2): справа под шапкой, не мешает тексту и кнопкам */
.hero__toggle {
  position: absolute;
  top: calc(var(--header-h) + 16px);
  right: max(var(--gutter), env(safe-area-inset-right));
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  background: rgba(10, 25, 9, .35);
  color: #fff;
  cursor: pointer;
}
.hero__toggle:hover { background: rgba(10, 25, 9, .6); }
.hero__toggle::before,
.hero__toggle::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 4px;
  height: 14px;
  border-radius: 1px;
  background: currentColor;
}
.hero__toggle::before { left: 13px; }
.hero__toggle::after { right: 13px; }
.hero__toggle.is-paused::before {
  left: 15px;
  width: 0;
  height: 0;
  border: solid transparent;
  border-width: 7px 0 7px 12px;
  border-left-color: currentColor;
  border-radius: 0;
  background: none;
}
.hero__toggle.is-paused::after { display: none; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 25, 9, .65) 0%, rgba(10, 25, 9, 0) 26%),
    linear-gradient(0deg, rgba(10, 25, 9, .55) 0%, rgba(10, 25, 9, 0) 55%),
    linear-gradient(90deg, rgba(10, 25, 9, .7) 0%, rgba(10, 25, 9, .25) 55%, rgba(10, 25, 9, 0) 100%);
}
.hero__inner {
  padding-top: calc(var(--header-h) + 72px);   /* ниже шапки и кнопки паузы (шапка + 16 + 40 px) */
  padding-bottom: 72px;
}
.hero__title {
  max-width: 820px;
  color: #fff;
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.01em;
}
/* тень — текст читается и на светлых кадрах видео (небо, манго) */
.hero__title, .hero__lead,
.js.page-home .site-header:not(.is-solid) .nav__link,
.js.page-home .site-header:not(.is-solid) .lang { text-shadow: 0 1px 12px rgba(10, 25, 9, .55); }
.hero__lead {
  max-width: 560px;
  margin-top: 24px;
  color: #fff;
  font-size: 20px;
  line-height: 1.5;
  text-wrap: pretty;          /* без одинокого слова или иероглифа в последней строке */
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- О компании и цифры (под первым экраном) ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  align-items: center;
}
.intro__text { font-size: 18px; }
.intro__text .section__title { margin-bottom: 28px; }
.intro .stats { grid-template-columns: minmax(0, 1fr); }
.intro .stat { background: var(--bg-soft); }

/* ---------- Нам доверяют: полоса сразу под первым экраном (как «Сертификаты» у vanderlans.com) ---------- */
.trust {
  padding: 28px 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.trust__inner {
  display: flex;
  align-items: center;
  gap: 24px 40px;
}
.trust__title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--green);
  font-size: 19px;
  white-space: nowrap;
}
.trust__icon { width: 22px; height: 22px; flex: none; }
/* девять логотипов: на широком экране две строки, обе видны под первым экраном (--trust-peek) */
.trust__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust__logo { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; min-height: 56px; }
.trust__logo img { max-width: 100%; height: auto; }

/* ---------- Разделы ---------- */
.section { padding: 120px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__label {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section__title {
  color: var(--green);
  font-size: clamp(32px, 4vw, 52px);
}
.section__lead {
  margin-top: 20px;
  font-size: 19px;
}

/* Зелёная полоса с заголовком — как у раздела продукции на образце */
.band {
  padding: 88px 0 96px;
  background: var(--green);
  color: var(--on-dark-muted);
}
.band .section__label { color: var(--peach); }
.band .section__title { color: #fff; }
.band + .section { padding-top: 72px; }

/* ---------- Наша продукция: категории ассортимента ---------- */
.categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* строки карточек общие (subgrid): кнопки календаря стоят на одной линии */
.category {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
}
.category__title {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 28px;
  line-height: 1.15;
}
.category__media {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
}
.category__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.category:hover .category__media img { transform: scale(1.05); }
.category__items {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}
.category__items li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

/* Календарь сбора урожая: раскрывается кнопкой, без JS */
.harvest__toggle {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  list-style: none;
}
.harvest__toggle::-webkit-details-marker { display: none; }
.harvest__toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform .2s;
}
.harvest[open] .harvest__toggle::after { margin-top: 4px; transform: rotate(-135deg); }
.harvest__body { padding-top: 18px; }
.harvest__scale,
.harvest__bar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2px;
}
.harvest__scale span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  text-align: center;
}
.harvest__list { margin: 8px 0 0; padding: 0; list-style: none; }
.harvest__list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.35;
}
.harvest__name { color: var(--ink); font-weight: 500; }
.harvest__when { color: var(--muted); }
.harvest__bar { flex: 1 1 100%; margin-top: 6px; }
.harvest__bar i { height: 6px; border-radius: 2px; background: var(--line); }
.harvest__bar .is-on { background: var(--green); }

/* ---------- Что мы поставляем: заголовок в первой ячейке, пять направлений ---------- */
.supply {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.supply__head { align-self: center; padding-right: 16px; }
.supply__head .section__lead { font-size: 18px; }
.offers { display: contents; list-style: none; }
.offer {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 59, 17, .06);
}
.offer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--green);
}
.offer__icon svg { width: 28px; height: 28px; }
.offer__title { margin-bottom: 10px; color: var(--ink); font-size: 22px; line-height: 1.25; }
.offer__text { font-size: 16px; line-height: 1.55; }

/* ---------- Как это работает: цепочка шагов со стрелками ---------- */
.section--green { background: var(--green); color: var(--on-dark-muted); }
.section--green .section__label { color: var(--peach); }
.section--green .section__title { color: #fff; }
.chain {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: chain;
}
.chain__step { position: relative; counter-increment: chain; }
.chain__step::before {
  content: "0" counter(chain);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border: 2px solid var(--peach);
  border-radius: 50%;
  color: var(--peach);
  font-size: 18px;
  font-weight: 500;
}
/* стрелка к следующему шагу: линия с наконечником, вырезанная clip-path */
.chain__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 68px;
  right: -12px;
  height: 12px;
  background: var(--peach);
  opacity: .75;
  clip-path: polygon(0 5px, calc(100% - 10px) 5px, calc(100% - 10px) 0, 100% 6px, calc(100% - 10px) 12px, calc(100% - 10px) 7px, 0 7px);
}
.chain__title { margin-bottom: 10px; color: #fff; font-size: 20px; line-height: 1.25; }
.chain__text { font-size: 15px; line-height: 1.55; }

/* ---------- О нас ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.about__media {
  border-radius: var(--radius);
  overflow: hidden;
}
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about__text { font-size: 18px; }
.about__text .section__title { margin-bottom: 28px; }
.milestones {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.milestones li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}
.milestones__year { color: var(--green); font-weight: 500; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.stat {
  padding: 36px 20px;
  border-radius: var(--radius);
  background: #fff;
}
.stat__value {
  display: block;
  color: var(--green);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Контакты ---------- */
.contact { display: grid; gap: 48px; }
.contact__head { max-width: 760px; }
/* Две карточки: покупателям и производителям, у каждой своя анкета */
.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.path__title { color: var(--green); font-size: clamp(22px, 2.2vw, 28px); }
.path__text { margin: 14px 0 28px; font-size: 17px; }
.path .btn { margin-top: auto; }
.path__text + .path__text { margin-top: -14px; }
.path--wide { grid-column: 1 / -1; }
.path--wide .path__text { max-width: 860px; }
.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  margin: 0;
  padding: 8px 32px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.contact-list .contact-row:nth-child(2) { border-top: 0; }
.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-row:first-child { border-top: 0; }
.contact-row dt { padding-top: 2px; color: var(--muted); font-size: 15px; }
.contact-row dd {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.contact-row a { color: var(--ink); font-weight: 500; text-decoration: none; }
.contact-row a:hover { color: var(--green); text-decoration: underline; }
.contact-row__note { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.4; }

/* ---------- Форма «Получить предложение» / «Предложить продукцию» ---------- */
.lead-form {
  width: min(600px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  overflow: auto;
}
.lead-form::backdrop { background: rgba(18, 59, 17, .6); }
html:has(.lead-form[open]) { overflow: hidden; }
.lead-form__box { position: relative; padding: 40px; }
.lead-form__close {
  /* залипает у верха окна: у длинной анкеты крестик виден при прокрутке */
  position: sticky;
  top: 14px;
  z-index: 1;
  float: right;
  margin: -26px -26px 0 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
}
.lead-form__close::before,
.lead-form__close::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 13px;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.lead-form__close::after { transform: rotate(-45deg); }
.lead-form__close:hover { background: var(--line); }
.lead-form__title { margin-right: 48px; color: var(--green); font-size: 30px; }
.lead-form__note { margin: 10px 0 24px; color: var(--muted); font-size: 15px; }
.lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.lead-form__grid[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field__label { color: var(--ink); font-size: 15px; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--muted);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input[type="file"] { padding: 10px; font-size: 15px; cursor: pointer; }
.field__hint { color: var(--muted); font-size: 13px; }
/* ловушка для ботов: за экраном, человек её не видит и не заполняет */
.lead-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.lead-form__submit { width: 100%; margin-top: 24px; }
.lead-form__submit[aria-disabled="true"] { opacity: .6; cursor: progress; }
.lead-form__done {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 15px;
}
.lead-form__consent {
  display: flex;
  min-height: 24px;                /* цель нажатия не меньше 24 px и в одну строку */
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.lead-form__consent input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--green); }
.lead-form__done a,
.lead-form__consent a { color: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .lead-form[open] { animation: lead-in .25s ease backwards; }
  .lead-form[open]::backdrop { animation: lead-fade .25s ease backwards; }
}
@keyframes lead-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes lead-fade { from { opacity: 0; } }

/* ---------- Подвал ---------- */
.site-footer {
  padding: 72px 0 32px;
  background: var(--green-deep);
  color: var(--on-dark-muted);
  font-size: 15px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}
.site-footer__logo img { width: 170px; height: auto; }
.site-footer__about { margin-top: 18px; max-width: 320px; }
.site-footer__title {
  margin-bottom: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-footer__menu {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__menu a { display: inline-block; padding: 3px 0; }
.requisites {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 8px 0 0;
}
.requisites dt { color: var(--on-dark-muted); }
.requisites dd { margin: 0; color: #fff; }
.requisites__name { color: #fff; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: 14px;
}
/* ссылка внутри фразы отличается не только цветом (WCAG 1.4.1) */
.site-footer__bottom a { text-decoration: underline; }

/* ---------- Внутренние страницы: политика, 404 ---------- */
.page { padding: 80px 0 120px; }
.page__title { color: var(--green); font-size: clamp(32px, 4vw, 48px); }
.page__meta { margin-top: 12px; color: var(--muted); }
.policy { max-width: 820px; }
.policy h2 { margin: 40px 0 12px; color: var(--ink); font-size: 22px; }
.policy a { color: var(--green); }
.error-page { text-align: center; }
.error-page__code {
  color: var(--green);
  font-size: clamp(96px, 16vw, 180px);
  font-weight: 500;
  line-height: 1;
}
.error-page .page__title { margin-top: 12px; }
.error-page__lead { max-width: 560px; margin: 20px auto 0; font-size: 18px; }
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- Появление при прокрутке ---------- */
/* Прячем только под .js — без JS всё видно сразу */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1199px) {
  :root { --gutter: 28px; --trust-peek: 113px; }
  .trust__inner { gap: 24px 56px; }
  .trust__logos { flex-wrap: wrap; gap: 20px 48px; }
  .site-header__inner { gap: 20px; }
  .nav__link { padding: 10px 10px; font-size: 15px; }
  .nav__link::after { left: 10px; right: 10px; }
  .site-header__cta { display: none; }
  .supply { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supply__head { grid-column: 1 / -1; padding-right: 0; }
  /* цепочка вертикально: номер слева, стрелка вниз */
  .chain { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .chain__step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 24px; padding-bottom: 40px; }
  .chain__step:last-child { padding-bottom: 0; }
  .chain__step::before { grid-row: 1 / span 2; margin-bottom: 0; }
  .chain__title { margin-top: 14px; }
  .chain__step:not(:last-child)::after {
    top: 64px;
    bottom: 8px;
    left: 22px;
    right: auto;
    width: 12px;
    height: auto;
    clip-path: polygon(5px 0, 7px 0, 7px calc(100% - 10px), 12px calc(100% - 10px), 6px 100%, 0 calc(100% - 10px), 5px calc(100% - 10px));
  }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro__grid { gap: 48px; }
  .about { gap: 48px; }
}

/* два столбца контактов узкие: подпись над значением, иначе «suppliers@lavkavkusa.com» рвётся */
@media (min-width: 992px) and (max-width: 1199px) {
  .contact-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 991px) {
  :root { --header-h: 72px; }
  .nav, .site-header__actions { display: none; }
  .js .burger { display: block; }   /* без JS меню не откроется — кнопку не показываем, меню есть в подвале */
  .site-header__logo .logo { width: 150px; }
  .section { padding: 88px 0; }
  .band { padding: 72px 0 88px; }
  .about, .intro__grid, .contact-list { grid-template-columns: minmax(0, 1fr); }
  .contact-list .contact-row:nth-child(2) { border-top: 1px solid var(--line); }
  .intro .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__inner { flex-direction: column; align-items: flex-start; }
  .about__media { order: -1; }
  .about__media img { aspect-ratio: 16 / 10; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .hero__lead { font-size: 18px; }
  .section__head { margin-bottom: 40px; }
  .section__lead { font-size: 17px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .paths { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .stat { padding: 28px 20px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 575px) {
  :root { --gutter: 20px; --trust-peek: 96px; }
  body { font-size: 16px; }
  .hero { min-height: max(560px, calc(100svh - var(--trust-peek))); }
  .hero__inner { padding-bottom: 48px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .path .btn { width: 100%; }
  .section { padding: 72px 0; }
  .band { padding: 60px 0 76px; }
  .categories { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .supply { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .offer { padding: 28px 24px; }
  .milestones li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .trust__logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    width: 100%;
  }
  .trust__logo { min-height: 40px; }
  .trust__logo img { width: auto; max-width: 100%; height: 34px; object-fit: contain; object-position: left center; }
  .about { gap: 32px; }
  .path { padding: 28px 20px; }
  .contact-list { padding: 4px 20px; }
  .contact-row { grid-template-columns: minmax(0, 1fr); padding: 14px 0; }
  .contact-row dd { font-size: 17px; }
  .lead-form__box { padding: 28px 20px 24px; }
  .lead-form__close { margin: -14px -6px 0 0; }
  .lead-form__title { font-size: 25px; }
  .lead-form__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .page { padding: 56px 0 88px; }
}

@media (max-width: 479px) {
  :root { --gutter: 16px; }
  .mobile-menu__list a { font-size: 24px; }
  .page__title { font-size: 27px; }   /* «конфиденциальности» одним словом — шире 320 px при 32 px */
  .stat { padding-left: 14px; padding-right: 14px; }   /* «основатели» в узкой карточке цифр */
}

/* телефон боком: первый экран по высоте окна, текст мельче — кнопки видно без прокрутки */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 100svh; }
  .hero__inner { padding-bottom: 24px; }
  .hero__title { font-size: 34px; }
  .hero__lead { margin-top: 12px; font-size: 16px; }
  .hero__actions { margin-top: 20px; }
}

/* ---------- Без анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .category:hover .category__media img { transform: none; }
  .harvest__toggle::after { transition: none; }
  .hero__video { display: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
