/* Flobas — токены сняты с renders/_reference.png, см. DESIGN-TOKENS.md */

/* Страховка: ни один блок не должен таскать страницу вбок.
   clip, а не hidden — hidden делает body контейнером прокрутки
   и ломает position: sticky. */
html, body { overflow-x: clip; }

:root {
  --bg-page: #FFFFFF;
  --bg-tile: #E5E5E5;
  --bg-dark: #001F10;
  --bg-dark-2: #163726;
  --bg-hero: #000806;
  --accent: #8CC020;
  --accent-deep: #6E9A18;
  --accent-soft: #EEF7DC;
  --text: #121212;
  --text-inv: #F7F7F7;
  --text-2: #888988;
  --text-2-inv: #8B8C8A;
  --bd: #D6D6D6;
  --bd-dark: #25412F;

  --container: 1312px;
  --gutter: 64px;
  --header-h: 104px;
  --r-card: 12px;
  --r-btn: 8px;
  --r-tile: 10px;
  --gap: 24px;
  --gap-lg: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

/* ── типографика ───────────────────────────────────────────── */
.h1, .h2, .h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.h1 { font-size: 72px; line-height: 0.98; text-transform: uppercase; }
.h2 { font-size: 48px; line-height: 1.04; text-transform: uppercase; }
.h3 { font-size: 24px; line-height: 1.3; letter-spacing: 0; }
.lead { margin: 0; font-size: 20px; line-height: 1.55; }
.eyebrow {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.caption { font-size: 13px; line-height: 1.4; color: var(--text-2); }
.muted { color: var(--text-2); }
.muted-inv { color: var(--text-2-inv); }
.accent { color: var(--accent); }

/* ── кнопки ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 256px;
  height: 56px;
  padding-inline: 28px;
  border: 0;
  border-radius: var(--r-btn);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--accent); color: var(--text); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid currentColor;
}
.btn--ghost:hover { color: var(--accent-deep); }
.btn--ghost-inv { background: transparent; color: var(--text-inv); border: 1.5px solid currentColor; }
.btn--ghost-inv:hover { color: var(--accent); }

/* ── фирменная диагональ 8° ────────────────────────────────── */
.diag-b { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%); }
.diag-t { clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%); }

/* ── шапка ─────────────────────────────────────────────────── */
.header {
  position: relative;
  height: var(--header-h);
  background: var(--bg-dark);
  color: var(--text-inv);
  z-index: 3;
}
/* Лаймового клина в шапке нет: замер рендера показал ровный фон #012513
   по всей ширине, лайм там только в самом листке логотипа (x 40..102). */
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 100%;
}
.logo { display: flex; align-items: center; gap: 16px; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--bg-dark-2);
  color: var(--accent);
}
.logo__word { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
/* приписку «цветы и растения оптом» убрали из шапки: с именем «Карго Фреш»
   локап становится слишком широким и контакты не влезают. Слоган остался
   в первом экране и в подвале. */
.logo__rule, .logo__sub { display: none; }

.burger { display: none; }
.cat-card__go { display: none; }
.nav { display: flex; gap: 32px; margin-inline: auto; }
.nav a { font-size: 16px; }
.nav a:hover { color: var(--accent); }

.header__contacts { display: flex; align-items: center; gap: 24px; position: relative; }
/* фирменный лаймовый диагональный штрих слева от контактов (как в рендере) */
.header__contacts::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 50%;
  width: 3px;
  height: 40px;
  background: var(--accent);
  transform: translateY(-50%) rotate(26deg);
  border-radius: 2px;
}
.contact { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; white-space: nowrap; }
.contact svg { color: var(--accent); flex: none; }

/* ── герой ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  color: var(--text-inv);
  background: var(--bg-dark) right top / auto 100% no-repeat;
  isolation: isolate;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(0, 8, 6, .96) 0%, rgba(0, 8, 6, .9) 26%, rgba(0, 8, 6, .5) 42%, rgba(0, 8, 6, .06) 60%);
}
/* Лаймовый клин у левого края под шапкой — фирменный приём с рендера */
.hero__wedge {
  position: absolute;
  top: 0; left: 0;
  width: 470px; height: 74px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 62px) 100%, 0 100%);
}
.hero__col { max-width: 700px; padding-block: 72px 132px; }
.hero .h1 { font-size: 64px; margin-bottom: 20px; }
.hero__lead { margin: 0 0 36px; font-size: 19px; line-height: 1.5; color: #C6C9C4; }

.stats { display: flex; gap: 32px; margin-bottom: 40px; }
.stat { display: flex; align-items: flex-start; gap: 12px; }
.stat + .stat { padding-left: 32px; border-left: 1px solid rgba(247, 247, 247, .18); }
.stat svg { flex: none; margin-top: 6px; color: var(--text-inv); opacity: .85; }
/* Цифры набраны тем же узким шрифтом, что и H1. Проверка по рендеру:
   отношение ширины знака к высоте прописной 0.68 (десктоп) и 0.66..0.70
   (мобилка) — у Manrope 800 оно 0.85, у Oswald 0.65. Manrope давал цифры
   на треть шире и на пятую часть выше, чем в утверждённом рендере. */
.stat__num {
  font-family: Oswald, "Roboto Condensed", Manrope, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
/* подписи в обоих рендерах белые (#FDFEFD), а не серые: замер по кадру.
   Приставка «с» перед годом — наоборот серая #B9B6B6, не лайм. */
.stat__label { font-size: 14px; line-height: 1.3; color: var(--text-inv); }
.stat__pre { color: #B9B6B6; }
/* Цифры у этого показателя нет, поэтому подпись берёт её вес —
   иначе блок проваливается рядом с «15+». */
.stat__label--solo { font-size: 19px; font-weight: 700; line-height: 1.15; color: var(--text-inv); }

.hero__actions { display: flex; gap: 32px; flex-wrap: wrap; }

.cold-badge {
  position: absolute;
  right: var(--gutter);
  bottom: 150px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border: 1.5px solid var(--accent);
  border-radius: var(--r-card);
  background: rgba(22, 55, 38, .92);
}
.cold-badge svg { color: var(--accent); flex: none; }
.cold-badge__title { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.cold-badge__text { font-size: 13px; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; }

/* ── секции ────────────────────────────────────────────────── */
.section { padding-block: 96px; }
.section--tile { background: var(--bg-tile); position: relative; }
.section--tile:not([style*="tile-noafter"])::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30px;
  background: var(--accent);
  clip-path: polygon(0 14px, 100% 0, 100% 100%, 0 100%);
}
.section--dark { background: var(--bg-dark); color: var(--text-inv); }
.section--photo {
  position: relative;
  color: var(--text-inv);
  background: var(--bg-dark) center / cover no-repeat;
  isolation: isolate;
}
.section--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 8, 6, .78);
}
.section__head { margin-bottom: var(--gap-lg); }
.section__head .eyebrow { margin-bottom: 12px; }
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-lg);
}
.section__head--center { text-align: center; max-width: 992px; margin-inline: auto; }
.section__head--center .lead { margin-top: 20px; color: var(--text-2-inv); }

/* ── полоса категорий под героем ───────────────────────────── */
.cat-strip {
  position: relative;
  z-index: 2;
  margin-top: -88px;
  padding-block: 0 32px;
  background: linear-gradient(180deg, transparent 0 88px, var(--bg-tile) 88px);
}
.cat-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  display: flex;
  align-items: stretch;
  min-height: 132px;
  gap: 20px;
  background: var(--bg-page);
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
  overflow: hidden;
}
.cat-card__photo { flex: none; width: 132px; height: 100%; object-fit: cover; }
.cat-card__body { padding: 16px 18px 16px 0; }
.cat-card__icon { color: var(--accent); margin-bottom: 6px; line-height: 0; }
.cat-card__icon svg { width: 32px; height: 32px; stroke-width: 1.4; }
.cat-card__title { font-size: 19px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.cat-card__text { font-size: 13px; line-height: 1.4; color: var(--text-2); margin: 0; }

/* ── бенто категорий (s02) ─────────────────────────────────── */
.bento { display: grid; gap: var(--gap-lg); }
.bento__row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.bento__row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.tile {
  background: var(--bg-page);
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.tile__figure { position: relative; }
.tile__photo { width: 100%; height: 232px; object-fit: cover; display: block; }
.tile__figure::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18px;
  background: var(--accent);
  clip-path: polygon(0 8px, 100% 0, 100% 100%, 0 100%);
}
.tile__body { padding: 26px 24px 28px; }
.tile__icon { color: var(--accent); margin-bottom: 14px; line-height: 0; }
.tile__icon svg { width: 42px; height: 42px; stroke-width: 1.4; }
.tile__title { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.tile__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.tile--wide { display: grid; grid-template-columns: 348px 1fr; align-items: stretch; }
.tile--wide .tile__figure { height: 100%; }
.tile--wide .tile__photo { height: 100%; }
.tile--wide .tile__figure::after {
  left: auto; top: 0; right: 0; bottom: 0;
  width: 18px; height: auto;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}
.tile--wide .tile__body { align-self: center; }

/* ── степпер ───────────────────────────────────────────────── */
.stepper { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); position: relative; }
.step { text-align: center; }
.step__dot {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 24px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--bg-dark);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}
.step--done .step__dot { background: var(--accent); color: var(--bg-dark); }
.step__title { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.step__text { font-size: 13px; line-height: 1.45; color: var(--text-2-inv); margin: 0; }

/* ── карточки на тёмном ────────────────────────────────────── */
.dark-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.dark-card {
  padding: 32px;
  background: var(--bg-dark-2);
  border: 1px solid var(--bd-dark);
  border-radius: var(--r-card);
}
.dark-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 24px;
  border: 2px solid var(--accent);
  border-radius: var(--r-tile);
  background: var(--bg-dark);
  color: var(--accent);
}
.dark-card__title { margin: 0 0 12px; font-size: 24px; font-weight: 800; }
.dark-card__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2-inv); }

/* ── подвал ────────────────────────────────────────────────── */
.footer { background: var(--bg-dark); color: var(--text-inv); padding-block: 64px 40px; }
.footer__cols { display: grid; grid-template-columns: 400px 280px 280px 1fr; gap: var(--gap-lg); }
.footer__title { margin: 0 0 20px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li + li { margin-top: 12px; }
.footer__list a { font-size: 14px; color: var(--text-2-inv); }
.footer__list a:hover { color: var(--accent); }
.footer__legal { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--bd-dark); font-size: 13px; color: var(--text-2-inv); }

/* ── адаптив ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .h1 { font-size: 48px; }
  .h2 { font-size: 34px; }
  .nav { display: none; }
  .bento__row-3, .cat-strip__grid, .dark-cards { grid-template-columns: repeat(2, 1fr); }
  .stepper { grid-template-columns: repeat(3, 1fr); row-gap: var(--gap-lg); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 56px; }
  .h1 { font-size: 34px; }
  .h2 { font-size: 24px; }
  .lead { font-size: 16px; }
  .header__contacts { display: none; }
  /* герой — колонка, иначе плашка холодовой цепи встаёт сбоку от контейнера */
  .hero { min-height: auto; display: block; background-position: 72% top; }
  .hero__col { padding-block: 40px 24px; max-width: none; }
  .hero__wedge { width: 190px; height: 44px; clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%); }
  .stats { flex-direction: column; gap: 0; }
  .stat + .stat { padding: 16px 0 0; margin-top: 16px; border-left: 0; border-top: 1px solid rgba(247, 247, 247, .18); }
  .hero__actions { flex-direction: column; gap: 12px; }
  .btn { width: 100%; }
  .cold-badge {
    position: static;
    width: min(100% - 32px, 100%);
    margin: 0 16px 40px;
  }
  .cold-badge__text { letter-spacing: .04em; }
  .cat-strip { margin-top: 0; padding-top: 24px; background: var(--bg-tile); }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section__head--row .btn { width: 100%; }
  .bento__row-3, .bento__row-2, .cat-strip__grid, .dark-cards { grid-template-columns: 1fr; }
  .tile--wide { grid-template-columns: 1fr; }
  .tile--wide .tile__photo { height: 176px; }
  .stepper { grid-template-columns: 1fr; }
  .section { padding-block: 56px; }
  .footer__cols { grid-template-columns: 1fr; }
}

/* ── s04 География ─────────────────────────────────────────── */
.geo-card {
  position: relative;
  padding: 32px;
  background: var(--bg-page);
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
}
.geo-card__map { width: 100%; height: auto; }
.geo-badge {
  position: absolute;
  top: 32px; right: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 280px;
  padding: 20px 24px;
  background: var(--accent-soft);
  border-radius: var(--r-tile);
}
.geo-badge svg { color: var(--accent); flex: none; }
.geo-badge__text { font-size: 16px; font-weight: 700; line-height: 1.35; }
.geo-card__note { margin: 20px 0 0; font-size: 16px; color: var(--text-2); }

.geo-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: var(--gap); }
.geo-slot {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 362 / 235;
}
.geo-slot img { width: 100%; height: 100%; object-fit: cover; }
.geo-slot__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 20px;
  background: rgba(0, 8, 6, .8);
  color: var(--text-inv);
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .geo-slots { grid-template-columns: repeat(2, 1fr); }
  .geo-badge { position: static; width: auto; margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .geo-card { padding: 16px; }
  .geo-slots { grid-template-columns: 1fr; }
}

/* ── s04: карта и плашка в ряд ─────────────────────────────── */
.geo-card__row { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }
.geo-card .geo-badge { position: static; }

/* ── s05 Цифры ─────────────────────────────────────────────── */
.statcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.statcard {
  padding: 28px;
  background: rgba(22, 55, 38, .82);
  border: 1px solid var(--bd-dark);
  border-radius: var(--r-card);
}
.statcard__num { font-size: 64px; font-weight: 800; line-height: 1; color: var(--accent); }
.statcard__rule { width: 56px; height: 3px; margin: 18px 0; background: var(--accent); }
.statcard__label { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.statcard__sub { font-size: 14px; color: var(--text-2-inv); }

.legal-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: var(--gap);
  padding: 20px 28px;
  background: rgba(22, 55, 38, .82);
  border: 1px solid var(--bd-dark);
  border-radius: var(--r-card);
  font-size: 15px;
  color: var(--text-2-inv);
}
.legal-bar svg { color: var(--text-2-inv); flex: none; }
.legal-bar span { white-space: nowrap; }
.legal-bar span + span { padding-left: 28px; border-left: 1px solid var(--bd-dark); }
.legal-bar strong { color: var(--text-inv); font-weight: 600; }

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: var(--gap-lg);
}
.cta-row__phone { font-size: 30px; font-weight: 700; }

@media (max-width: 1100px) {
  .statcards { grid-template-columns: repeat(2, 1fr); }
  .geo-card__row { grid-template-columns: 1fr; }
  .legal-bar { flex-wrap: wrap; gap: 12px 20px; }
  .legal-bar span + span { padding-left: 20px; }
}
@media (max-width: 640px) {
  .statcards { grid-template-columns: 1fr; }
  .statcard__num { font-size: 48px; }
  .legal-bar span + span { padding-left: 0; border-left: 0; }
  .cta-row { flex-direction: column; gap: 20px; }
  .cta-row__phone { font-size: 24px; }
}

/* ── s07 Склад ─────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 44px; align-items: stretch; }
.split__media { position: relative; height: 100%; }
.split__photo { width: 100%; height: 100%; min-height: 460px; object-fit: cover; border-radius: var(--r-card); }
.split__label {
  position: absolute;
  left: 24px; bottom: 24px;
  padding: 16px 22px;
  background: var(--bg-page);
  border-radius: var(--r-card);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.split__label b { display: block; font-size: 18px; margin-bottom: 2px; }
.split__label span { font-size: 14px; color: var(--text-2); }
.split__inset {
  position: absolute;
  right: 10px; bottom: 10px;
  width: 300px; height: 210px;
  object-fit: cover;
  border: 7px solid var(--bg-page);
  border-radius: 16px;
}

/* плюшки — компактная сетка 2×3 из читабельных карточек, а не длинный столбец */
.feature-list { margin: 0 0 26px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.feature {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 16px 18px;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 14px;
}
.feature__icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature__title { margin: 0 0 3px; font-size: 15.5px; font-weight: 700; line-height: 1.2; }
.feature__text { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text-2); }

.split__cta { display: flex; align-items: center; gap: 20px; margin-top: 4px; flex-wrap: wrap; }
.split__cta .cta-row__phone { font-size: 24px; }
.split__tg { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; color: var(--text-2); }
.split__tg svg { color: var(--text-2); }

@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .split__photo { height: 440px; min-height: 0; }
  .split__inset { width: 220px; height: 160px; }
}
@media (max-width: 640px) {
  .split__photo { height: 280px; min-height: 0; }
  .split__inset { display: none; }
  .split__label { left: 16px; bottom: 16px; padding: 12px 16px; }
  .feature-list { grid-template-columns: 1fr; }
}

/* ── s06 Товары со склада ──────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-lg); }
.prod {
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
  overflow: hidden;
}
.prod__media { position: relative; }
/* Плитка одной пропорции во всей сетке. Раньше высота была задана жёстко (220px),
   и каждое фото садилось в неё своим размером. contain оставляем сознательно:
   в каталоге 19 тысяч снимков неизвестных пропорций, обрезать их нельзя. */
.prod__photo { display: block; width: 100%; aspect-ratio: 680 / 440; height: auto;
               object-fit: contain; background: #fff; }
.chip {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.chip--stock { background: var(--accent); }
.prod__body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.prod__art { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.prod__name { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.prod__meta { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.prod__price { font-size: 28px; font-weight: 800; }
.prod__price span { font-size: 13px; font-weight: 400; color: var(--text-2); }
.prod__pack { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.prod .btn { margin-top: auto; width: 100%; min-width: 0; height: 44px; font-size: 14px; }

/* ── Заглушка вместо цены для незарегистрированных ──────────────────
   Занимает место блока цены: и в плитке каталога, и в карточке товара.
   Кнопки нет у заблокированного клиента — разметку решает price_locked_html(). */
.price-lock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(140, 192, 32, .35);
  border-radius: var(--r-tile);
}
.price-lock__t { font-size: 15px; font-weight: 600; line-height: 1.25; }
.price-lock .btn {
  min-width: 0;
  width: 100%;
  height: 38px;
  padding-inline: 16px;
  font-size: 14px;
  margin-top: 0;          /* у .prod .btn стоит margin-top:auto — здесь он развалил бы блок */
}
.price-lock--big { padding: 18px 20px; gap: 14px; }
.price-lock--big .price-lock__t { font-size: 22px; font-weight: 700; }
.price-lock--big .btn { height: 52px; font-size: 16px; }
@media (max-width: 560px) {
  .price-lock--big .price-lock__t { font-size: 19px; }
}
/* ── Вход, регистрация, кабинет ─────────────────────────────────────
   Отдельные классы полей: .field в проекте свёрстан под тёмную форму
   заявки, а эти страницы светлые. */
.auth { max-width: 560px; }
.auth--wide { max-width: 940px; }
.auth .h2 { margin: 0 0 8px; }
.auth__lead { margin: 0 0 28px; color: var(--text-2); font-size: 16px; }
.auth__form { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.auth__form .btn { margin-top: 12px; }
.auth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; width: 100%; }
.auth__err, .auth__ok {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: var(--r-tile);
  border-left: 3px solid;
  font-size: 15px;
  line-height: 1.45;
}
.auth__err { background: #FBEDE7; border-color: #B4452B; }
.auth__ok  { background: var(--accent-soft); border-color: var(--accent); }
.auth__alt { margin: 24px 0 0; font-size: 15px; }
.auth__note { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.auth__more { width: 100%; margin: 8px 0 4px; }
.auth__more summary { cursor: pointer; padding: 12px 0; font-size: 15px; font-weight: 600; }
.auth__agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 15px; }
.auth__agree input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

.ffield { display: block; width: 100%; margin-bottom: 16px; }
.ffield--wide { grid-column: 1 / -1; }
.ffield__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.ffield__hint { display: block; margin-top: 6px; font-size: 13px; color: var(--text-2); }
.ffield__err { display: block; margin-top: 6px; font-size: 13px; color: #B4452B; }
.finput {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--r-btn);
  font: inherit;
  font-size: 16px;
  color: var(--text);
}
.finput:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.finput:disabled { background: var(--bg-tile); color: var(--text-2); }
textarea.finput { height: auto; padding: 14px 16px; resize: vertical; }

.lk__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lk__out { margin: 0; }
.lk__h { margin: 40px 0 16px; }
.lk__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin: 24px 0 8px; }
.lk__card {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--r-tile);
}
.lk__k { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.lk__v { display: block; font-size: 20px; font-weight: 700; line-height: 1.2; }
.lk__note { display: block; margin-top: 4px; font-size: 12px; color: var(--text-2); }

.btn--sm { min-width: 0; height: 40px; padding-inline: 20px; font-size: 14px; }

/* телефон с выбором кода страны */
.phone { display: flex; gap: 10px; }
.phone__code {
  flex: none;
  width: 104px;
  height: 52px;
  /* Своя стрелка вместо системной: у native-селекта она чужого стиля
     и ломает ряд с полем ввода. */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0 30px 0 14px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238CC020' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 13px 13px;
  border: 1px solid var(--bd);
  border-radius: var(--r-btn);
  font: inherit;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  cursor: pointer;
}
.phone__code::-ms-expand { display: none; }
.phone__code:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.phone__num { flex: 1; min-width: 0; }

/* переключатель способа входа */
.tabs { display: flex; gap: 8px; width: 100%; margin-bottom: 20px; }
.tabs__b {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--bd);
  border-radius: var(--r-btn);
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.tabs__b:hover { border-color: var(--accent); }
.tabs__b.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.ffield__opt { font-weight: 400; color: var(--text-2); }

/* ── Попап входа и регистрации ──────────────────────────────────────
   Форма живёт на своих страницах, попап показывает тот же фрагмент.
   Нативный <dialog> — он сам держит фокус внутри и закрывается на Esc. */
.amodal {
  width: min(100% - 32px, 620px);
  max-height: min(92vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--bg-page);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
  overflow: visible;
}
.amodal::backdrop { background: rgba(6, 26, 16, .62); backdrop-filter: blur(3px); }
.amodal__body { max-height: min(92vh, 900px); overflow-y: auto; padding: 6px 0 4px; }
.amodal__body .auth--modal { width: auto; max-width: none; padding: 26px 32px 32px; }
.amodal__body .auth--modal .h2 { font-size: 30px; }
.amodal__body .auth__grid { grid-template-columns: 1fr 1fr; }
.amodal__wait { padding: 48px 32px; text-align: center; color: var(--text-2); }
.amodal__x {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--bg-tile);
  color: var(--text);
  cursor: pointer;
}
.amodal__x:hover { background: var(--accent); }
@media (max-width: 560px) {
  .amodal__body .auth--modal { padding: 22px 18px 26px; }
  .amodal__body .auth--modal .h2 { font-size: 24px; }
  .amodal__body .auth__grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .phone { flex-wrap: wrap; }
  .phone__code { width: 100%; }
}

@media (max-width: 760px) {
  .auth__grid { grid-template-columns: 1fr; }
  .lk__cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .lk__cards { grid-template-columns: 1fr; }
}


.arrows { display: flex; gap: 16px; }
.arrow {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 1px solid var(--bd);
  background: var(--bg-page);
  color: var(--text-2);
  cursor: pointer;
}
.arrow--on { background: var(--accent); border-color: var(--accent); color: var(--text); }

.wide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg);
  margin-top: 48px;
  padding: 32px 40px;
  background: var(--bg-dark);
  border-radius: var(--r-card);
  color: var(--text-inv);
}
.wide-cta__text { font-size: 24px; font-weight: 700; line-height: 1.35; }
.wide-cta__text span { display: block; font-size: 16px; font-weight: 400; color: var(--text-2-inv); margin-top: 6px; }

/* ── s08 Доверие ───────────────────────────────────────────── */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.logo-plate {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  height: 176px;
  background: var(--bg-dark-2);
  border: 1px solid var(--bd-dark);
  border-radius: var(--r-card);
  color: var(--text-2-inv);
}
.logo-plate span { font-size: 13px; }

.quote {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding: 48px;
  background: var(--bg-dark-2);
  border: 1px solid var(--bd-dark);
  border-radius: var(--r-card);
}
.quote__mark { font-size: 88px; line-height: .8; color: var(--accent); font-weight: 800; }
.quote__text { font-size: 24px; font-weight: 700; line-height: 1.4; margin: 0 0 20px; }
.quote__sub { font-size: 16px; color: var(--text-2-inv); margin: 0 0 24px; }
.pills { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bg-dark);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* ── s10 Услуги ────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.plan {
  position: relative;
  padding: 32px;
  background: var(--bg-page);
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
  overflow: hidden;
}
.plan--hit { background: var(--bg-dark); border-color: var(--bg-dark); color: var(--text-inv); }
.plan__badge {
  position: absolute;
  top: 0; right: 0;
  padding: 8px 20px 8px 34px;
  background: var(--accent);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
}
.plan__icon { color: var(--accent); margin-bottom: 20px; line-height: 0; }
.plan__title { margin: 0 0 12px; font-size: 24px; font-weight: 800; }
.plan__note { font-size: 16px; line-height: 1.5; color: var(--text-2); margin: 0 0 24px; }
.plan--hit .plan__note { color: var(--text-2-inv); }
.plan__list { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--bd); }
.plan--hit .plan__list { border-color: var(--bd-dark); }
.plan__list li { display: flex; gap: 12px; padding: 16px 0; font-size: 16px; line-height: 1.45; color: var(--text-2); border-bottom: 1px solid var(--bd); }
.plan--hit .plan__list li { color: var(--text-2-inv); border-color: var(--bd-dark); }
.plan__list svg { flex: none; color: var(--accent); margin-top: 3px; }
.plan .btn { width: 100%; min-width: 0; height: 48px; }

/* ── s11 Как начать ────────────────────────────────────────── */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.step3 {
  padding: 36px;
  background: var(--bg-dark-2);
  border: 1px solid var(--bd-dark);
  border-radius: var(--r-card);
}
.step3__num { font-size: 64px; font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 20px; }
.step3__title { margin: 0 0 16px; font-size: 24px; font-weight: 800; }
.step3__bubble {
  padding: 20px;
  background: var(--bg-dark);
  border-radius: var(--r-tile);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-2-inv);
}

.accent-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg);
  margin-top: 56px;
  padding: 36px 40px;
  background: var(--accent);
  border-radius: var(--r-card);
  color: var(--text);
}
.accent-bar .h2 { font-size: 40px; }
.accent-bar p { margin: 0; font-size: 16px; line-height: 1.5; max-width: 460px; }
.accent-bar .btn { background: var(--bg-dark); color: var(--text-inv); }
.accent-bar .btn:hover { background: #002a16; }

/* ── s12 Контакты ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 640px 1fr; gap: 32px; }
.form-card { padding: 40px; background: var(--bg-dark-2); border: 1px solid var(--bd-dark); border-radius: var(--r-card); }
.form-card h3 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.form-card > p { margin: 0 0 24px; font-size: 16px; color: var(--text-2-inv); }
.field {
  width: 100%;
  height: 56px;
  margin-bottom: 16px;
  padding: 0 20px;
  background: var(--bg-dark);
  border: 1px solid var(--bd-dark);
  border-radius: var(--r-btn);
  color: var(--text-inv);
  font: inherit;
  font-size: 16px;
}
.field::placeholder { color: var(--text-2-inv); }
.field--area { height: 88px; padding-top: 16px; resize: vertical; }
.form-card .btn { width: 100%; }
.map-card { position: relative; min-height: 400px; border-radius: var(--r-card); overflow: hidden; background: var(--bg-tile); }
.map-card img { width: 100%; height: 100%; object-fit: cover; }
.map-pin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-dark);
  color: var(--text-inv);
  border-radius: var(--r-tile);
  font-size: 14px;
  line-height: 1.3;
}
.map-pin svg { color: var(--accent); flex: none; }

@media (max-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .plans, .steps3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .wide-cta, .accent-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .prod-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .quote { flex-direction: column; gap: 20px; padding: 28px; }
  .accent-bar .h2 { font-size: 26px; }
  .form-card { padding: 24px; }
  .arrows { display: none; }
}

/* ══ КАТАЛОГ ═══════════════════════════════════════════════ */

.crumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  font-size: 13px;
  color: var(--text-2);
}
.crumbs a:hover { color: var(--accent-deep); }

.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 24px; }
.cat-head .h2 { margin-bottom: 12px; }
.cat-head__lead { margin: 0; font-size: 16px; color: var(--text-2); }

.select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 240px;
  height: 44px;
  padding: 0 16px;
  background: var(--bg-page);
  border: 1px solid var(--bd);
  border-radius: var(--r-btn);
  font-size: 14px;
  cursor: pointer;
}
.select svg { color: var(--text-2); }
/* нативный <select> в роли .select: убираем дефолтную стрелку, ставим свою */
select.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  justify-content: flex-start;
  padding-right: 44px;
  color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E9A18' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
select.select::-ms-expand { display: none; }
.select-form { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 24px; }
.chips a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: var(--bg-page);
  font-size: 14px;
}
.chips a:hover { border-color: var(--accent); }
.chips a.is-on { background: var(--accent); border-color: var(--accent); font-weight: 600; }

.cat-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--gap-lg); align-items: start; }

.filters {
  padding: 20px;
  background: var(--bg-page);
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
}
.fgroup { padding: 20px 0; }
.fgroup:first-child { padding-top: 0; }
.fgroup + .fgroup { border-top: 1px solid var(--bd); }
.fgroup__title { margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.fopt { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.fopt:last-child { margin-bottom: 0; }
.fopt input { appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--bd); border-radius: 4px; flex: none; }
.fopt input:checked { background: var(--accent); border-color: var(--accent); }
.frange { height: 4px; margin: 18px 0 10px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) 0 62%, var(--bd) 62%); }
.frange__labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.filters .btn { width: 100%; min-width: 0; height: 48px; margin-top: 20px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }

.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.pager a, .pager span {
  display: grid;
  place-items: center;
  min-width: 44px; height: 44px;
  padding: 0 12px;
  border: 1px solid var(--bd);
  border-radius: var(--r-btn);
  background: var(--bg-page);
  font-size: 15px;
}
.pager .is-on { background: var(--accent); border-color: var(--accent); font-weight: 700; }

/* ── полка родов ───────────────────────────────────────────── */
.rody { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.rod {
  background: var(--bg-page);
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
  overflow: hidden;
}
.rod__figure { position: relative; }
.rod__figure img { width: 100%; height: 226px; object-fit: contain; background: #fff; padding: 12px; }
.rod__figure::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(0 5px, 100% 0, 100% 100%, 0 100%);
}
.rod__body { padding: 20px; }
.rod__name { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.rod__count { font-size: 15px; color: var(--text-2); }

.search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: var(--gap-lg);
  padding: 24px 32px;
  background: var(--bg-tile);
  border-radius: var(--r-card);
}
.search-bar__note { font-size: 16px; color: var(--text-2); }
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 400px;
  height: 48px;
  padding: 0 16px;
  background: var(--bg-page);
  border: 1px solid var(--bd);
  border-radius: var(--r-btn);
}
.search-field input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 14px; background: transparent; }
.search-field svg { color: var(--accent); flex: none; }

/* ── прайс-таблица ─────────────────────────────────────────── */
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table thead th {
  padding: 18px 16px;
  background: var(--bg-dark);
  color: var(--text-inv);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.price-table thead th:first-child { border-radius: var(--r-card) 0 0 0; }
.price-table thead th:last-child { border-radius: 0 var(--r-card) 0 0; }
.price-table tbody tr { border-bottom: 1px solid var(--bd); }
.price-table tbody tr:nth-child(even) { background: var(--bg-tile); }
.price-table td { padding: 12px 16px; vertical-align: middle; }
.price-table img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #fff; }
.price-table .num { text-align: center; white-space: nowrap; }
.price-table .price { font-weight: 700; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.tag--pre { background: var(--bg-tile); color: var(--text-2); }
.tag--in { background: var(--accent-soft); color: var(--text); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty input { width: 72px; height: 40px; padding: 0 10px; border: 1px solid var(--bd); border-radius: 6px; font: inherit; font-size: 14px; }
.qty button { width: 40px; height: 40px; border: 0; border-radius: 6px; background: var(--accent); font-size: 20px; font-weight: 700; cursor: pointer; }
.table-wrap { overflow-x: auto; }

/* ── заявка списком ────────────────────────────────────────── */
.bulk { display: grid; grid-template-columns: 1fr 480px; gap: 32px; align-items: start; }
.bulk__area {
  min-height: 320px;
  padding: 28px;
  background: var(--bg-dark-2);
  border: 1px solid var(--bd-dark);
  border-radius: var(--r-card);
  color: var(--text-2-inv);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  resize: vertical;
}
.bulk__hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 20px; background: var(--bg-dark); border-radius: var(--r-btn); font-size: 14px; color: var(--text-2-inv); }
.bulk__hint svg { color: var(--accent); }
.bulk__note { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2-inv); }
.bulk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: var(--gap-lg); }
.bulk-card { display: flex; gap: 16px; padding: 24px; background: var(--bg-dark-2); border: 1px solid var(--bd-dark); border-radius: var(--r-card); }
.bulk-card svg { color: var(--accent); flex: none; }
.bulk-card b { display: block; font-size: 16px; margin-bottom: 4px; }
.bulk-card span { font-size: 14px; color: var(--text-2-inv); }

/* ── аккордеон и перелинковка ──────────────────────────────── */
.acc { display: grid; gap: 12px; }
.acc__item { background: var(--bg-tile); border-radius: var(--r-tile); overflow: hidden; }
.acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.acc__sign {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--bd);
  background: var(--bg-page);
  font-size: 20px;
}
.acc__item[open] .acc__sign { background: var(--accent); border-color: var(--accent); }
.acc__body { padding: 0 24px 24px; font-size: 16px; line-height: 1.6; color: var(--text-2); }

.links3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 56px; }
.links-card { padding: 28px; background: var(--bg-page); border: 1px solid var(--bd); border-radius: var(--r-card); }
.links-card__title { margin: 0 0 16px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.links-card ul { margin: 0; padding: 0; list-style: none; }
.links-card li { border-bottom: 1px solid var(--bd); }
.links-card li:last-child { border-bottom: 0; }
.links-card a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: 16px; }
.links-card a:hover { color: var(--accent-deep); }
.links-card svg { color: var(--text-2); flex: none; }

@media (max-width: 1100px) {
  .cat-layout { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .rody { grid-template-columns: repeat(2, 1fr); }
  .bulk { grid-template-columns: 1fr; }
  .bulk-cards, .links3 { grid-template-columns: 1fr; }
  .cat-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .search-bar { flex-direction: column; align-items: flex-start; }
  .search-field { width: 100%; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .rody { grid-template-columns: 1fr; }
  .crumbs { flex-direction: column; align-items: flex-start; gap: 8px; }
  .acc__head { font-size: 18px; padding: 18px; }
  .acc__body { padding: 0 18px 18px; }
}

/* ══ КАРТОЧКА ТОВАРА ═══════════════════════════════════════ */
.pcard { display: grid; grid-template-columns: 640px 1fr; gap: 32px; align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 16px; }
/* Колонка под миниатюры заводится только когда они есть. Пустая, она
   зажимала снимок товара в 96px, а 528px справа пустовали. */
.gallery:has(.gallery__thumbs) { grid-template-columns: 96px 1fr; }
.gallery__thumbs { display: grid; gap: 16px; align-content: start; }
.gallery__thumb {
  width: 96px; height: 96px;
  padding: 6px;
  object-fit: contain;
  background: var(--bg-page);
  border: 1px solid var(--bd);
  border-radius: var(--r-btn);
  cursor: pointer;
}
.gallery__thumb.is-on { border: 2px solid var(--accent); }
.gallery__main {
  position: relative;
  background: var(--bg-page);
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
  overflow: hidden;
}
.gallery__main img { width: 100%; height: 528px; object-fit: contain; padding: 24px; background: #fff; }
.gallery__zoom {
  position: absolute;
  top: 16px; right: 16px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--bd);
  color: var(--text-2);
}

.pbuy__chip { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px; background: var(--bg-tile); font-size: 13px; color: var(--text-2); }
.pbuy__title { margin: 16px 0 12px; font-size: 48px; font-weight: 800; line-height: 1.06; }
.pbuy__meta { margin: 0 0 28px; font-size: 16px; color: var(--text-2); }
.pbuy__rule { height: 1px; background: var(--bd); margin-bottom: 28px; }
.pbuy__price { font-size: 64px; font-weight: 800; line-height: 1; }
.pbuy__price span { font-size: 20px; font-weight: 400; color: var(--text-2); }
.pbuy__pack { margin: 10px 0 28px; font-size: 16px; color: var(--text-2); }
.pbuy__qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  background: var(--bg-tile);
  border-radius: var(--r-tile);
  margin-bottom: 24px;
}
.pbuy__qty span { font-size: 15px; }
.stepper-num { display: flex; align-items: center; gap: 8px; }
.stepper-num button { width: 44px; height: 44px; border: 1px solid var(--bd); border-radius: var(--r-btn); background: var(--bg-page); font-size: 20px; cursor: pointer; }
.stepper-num input { width: 88px; height: 44px; border: 1px solid var(--bd); border-radius: var(--r-btn); text-align: center; font: inherit; font-size: 20px; font-weight: 700; }
.pbuy .btn { width: 100%; height: 64px; font-size: 20px; }
.pbuy__min { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--text-2); }

.specs4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: var(--gap-lg); }
.spec4 { display: flex; align-items: center; gap: 20px; padding: 24px; background: var(--bg-tile); border-radius: var(--r-card); }
.spec4 svg { color: var(--accent); flex: none; }
.spec4__num { font-size: 34px; font-weight: 800; line-height: 1; }
.spec4__num span { font-size: 16px; font-weight: 500; }
.spec4__label { font-size: 14px; color: var(--text-2); margin-top: 4px; }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--bd); margin-bottom: 32px; }
.tabs a { padding: 16px 24px; border-radius: var(--r-btn) var(--r-btn) 0 0; font-size: 16px; }
.tabs a.is-on { background: var(--bg-dark); color: var(--text-inv); font-weight: 600; }

.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.spec-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--bd); font-size: 16px; }
.spec-row span { color: var(--text-2); }
.spec-row b { font-weight: 600; }

@media (max-width: 1100px) {
  .pcard { grid-template-columns: 1fr; }
  .specs4 { grid-template-columns: repeat(2, 1fr); }
  .spec-table { grid-template-columns: 1fr; }
  .pbuy__title { font-size: 34px; }
  .pbuy__price { font-size: 48px; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-auto-flow: column; grid-auto-columns: 72px; overflow-x: auto; }
  .gallery__thumb { width: 72px; height: 72px; }
  .gallery__main img { height: 320px; }
  .specs4 { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; }
  .tabs a { white-space: nowrap; padding: 14px 18px; }
}

/* ── форма заявки ──────────────────────────────────────────── */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-note { margin: 14px 0 0; font-size: 14px; line-height: 1.4; min-height: 20px; }
.lead-note.is-ok { color: var(--accent); }
.lead-note.is-err { color: #F0A28A; }

/* ══ ПЕРВЫЙ ЭКРАН — геометрия снята с renders/_reference.png ═══════
   Кадр 1536×1024 = макет 1440×960, K = 0.9375.
   Замеренные опорные точки (в координатах кадра):
     H1 строка 1   y 237..310, x 66..759   высота прописной 73px
     H1 строка 2   y 326..389
     H1 строка 3   y 413..484
     лид           y 516..559
     цифры         y 603..636
     кнопки        y 700..780, x 64..652
     полоса низа   y 843
     клин под шапкой  y 120..180, x 0..756
   Ширина/высота прописной H1 = 9.6 — это узкий шрифт, отсюда Oswald,
   а не Manrope: у Manrope то же слово дало бы отношение около 13.

   Контейнера с max-width здесь НЕТ. Первый экран во всю ширину,
   поля 64px, иначе на широких экранах текст уезжает к центру,
   а в рендере он прижат к левому краю.                            */

.hero { --edge: 64px; }
.header {
  --edge: 40px;                  /* боковое поле первого экрана */
}

/* ── шапка ─────────────────────────────────────────────────── */
.header { height: 112px; }
.header__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--edge);
  gap: 48px;
}

.logo { gap: 16px; }               /* от знака (кончается на 102) до слова (117) */
.logo__img { height: 54px; width: auto; display: block; }
@media (max-width: 900px) { .logo__img { height: 44px; } }
@media (max-width: 560px) { .logo__img { height: 38px; } }
.logo__mark {
  width: 62px; height: 44px;      /* замер знака в рендере: x 40..102, y 30..72 */
  background: none;               /* круглой подложки в рендере нет */
  border-radius: 0;
  color: var(--accent);
}
.logo__mark svg { width: 50px; height: 36px; }
.logo__word { font-size: 38px; letter-spacing: -.02em; }  /* «Карго Фреш» шире «Карго Фреш» — 38px вместо 51, иначе телефон в шапке ломается */
.logo__rule { height: 46px; margin-left: 18px; background: var(--accent); }
.logo__sub {
  font-size: 14px;
  margin-left: 32px;
  white-space: nowrap;      /* в рендере подпись в две строки, а не в три */
  color: #C6C9C4;
}
.nav { gap: 40px; }
.nav a { font-size: 17px; }
.header__contacts { gap: 32px; }
.contact { font-size: 17px; }

/* ── герой ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: block;
  min-height: 731px;             /* шапка 112 + 731 = полоса категорий на y=843 */
  padding: 0;
  overflow: hidden;
  background: var(--bg-dark);
  isolation: isolate;
  display: flex;                 /* короткий текст центрируем по высоте, чтобы низ не пустовал */
  align-items: center;
}

/* фото занимает правые две трети и заходит под маску, а не стоит колонкой */
.hero__photo {
  position: absolute;
  inset: 0 0 0 660px; /* фикс, а не %: иначе на 1920 фото убегает вправо и текст до него не достаёт.
                         660px — правый край «ДЛЯ ЖИЗНИ» (x688) слегка ложится на фото на любой ширине */
  z-index: -2;
  background: url(assets/img/hero-truck.jpg) center top / cover no-repeat;
}

/* тёмная диагональная маска поверх фото — левый край композиции */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(0, 8, 6, .97) 0%,
      rgba(0, 8, 6, .95) 30%,
      rgba(0, 8, 6, .55) 44%,
      rgba(0, 8, 6, .08) 58%,
      rgba(0, 8, 6, 0) 68%);
}
.hero__mask {
  position: absolute;
  inset: 0 auto 0 0;
  width: 58%;
  z-index: -1;
  background: var(--bg-hero);
  clip-path: polygon(0 0, 100% 0, 74% 100%, 0 100%);
  /* мягко: жёсткий срез рисовал линию поперёк фуры, в рендере переход плавный */
  opacity: .5;
}

/* диагональная лента под шапкой: лаймовый клин + тёмно-зелёная грань,
   заходящая на верх фото — «ленточный» узор из референса */
.hero__wedge {
  position: absolute;
  top: 0; left: 0;
  width: 430px;
  height: 56px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  z-index: 2;
}
.hero__fold {
  position: absolute;
  top: 0; left: 0;
  width: 800px;
  height: 56px;
  background: var(--bg-dark-2);
  clip-path: polygon(340px 0, 100% 0, calc(100% - 160px) 100%, 250px 100%);
  z-index: 1;
}

.hero__col {
  position: relative;
  z-index: 2;
  width: 740px;              /* строка H1 занимает 673px, запас на «ОПТОМ ИЗ ЕВРОПЫ,» */
  max-width: calc(100% - var(--edge) * 2);
  margin: 0 0 0 64px;        /* сдвиг блока правее (по просьбе) */
  padding: 0 0 0 var(--edge);  /* обнуляет padding-block из раннего правила */
  box-sizing: content-box;     /* поле не съедает ширину текста */
}

/* H1: узкий тяжёлый дисплейный шрифт. Кегль подобран под замеренную
   высоту прописной 68px в макете; шаг строк 82px из рендера. */
.hero .h1 {
  margin: 0 0 0;
  /* Кегль подобран замером, а не на глаз: у рендера отношение ширины строки
     к высоте прописной 9.5, у Oswald 8.76, у Manrope 12.0 — Manrope шире
     на треть, поэтому заголовок им и выглядел «корпоративным».
     80px даёт прописную 77 при ширине строки 673 (в рендере 73 и 693). */
  padding-top: 0;
  font-family: Oswald, "Roboto Condensed", Manrope, sans-serif;
  font-weight: 700;
  font-size: 118px;              /* крупнее: правый край «ДЛЯ ЖИЗНИ» ложится на фото, как в рендере */
  line-height: 1.05;
  margin-left: -4px;             /* оптическая компенсация левого сайдбира Oswald */
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__lead {
  /* line-height 1.11 оставляет полуинтерлиньяж под последней строкой H1 —
     минус компенсирует его, иначе лид уезжает на 74px вниз от рендера */
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 1.45;
  color: #C6C9C4;
}

.stats { margin: 37px 0 0; gap: 40px; }
.stat + .stat { padding-left: 40px; }
.stat__num { font-size: 34px; }   /* прописная 28 — как в рендере */
/* Замер рендера: иконка ink 40×33 (значок 44px), цифра начинается с x=123,
   центр иконки совпадает с центром цифры. У меня стояло 28px из атрибутов
   svg — иконки были в полтора раза мельче рендера. */
.stats .stat > svg { width: 44px; height: 44px; margin-top: -5px; }
.stat { gap: 15px; }
.stat__label { margin-top: 7px; font-size: 14px; }

/* цифры стали на 12px ниже — возвращаем кнопку на y=706, как в рендере */
.hero__actions { margin-top: 30px; gap: 28px; }
.hero .btn { height: 62px; min-width: 268px; font-size: 17px; }

/* бейдж холодовой цепи: угловатый, со срезанным углом, а не скруглённый */
.cold-badge {
  right: var(--edge);
  bottom: 13px;      /* низ бейджа на y≈830, полоса категорий с 843 */
  gap: 22px;
  padding: 22px 30px;
  border: 2px solid var(--accent);
  border-radius: 0;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  background: rgba(0, 25, 13, .88);
  z-index: 2;
}

/* ── нижняя полоса категорий: одна лента, а не три карточки ───
   Всё ниже — замер по renders/_reference.png (1536×1024, масштаб 1:1):
   верх ленты плоский (y=843), фото 200×142 со срезанными верхним левым
   и нижним правым углом и мягкой тенью, иконка слева от заголовка в одну
   строку, описание — под заголовком узкой колонкой в три строки.
   Вертикальных линеек между ячейками в рендере нет.                    */
.cat-strip {
  position: relative;
  z-index: 3;
  margin-top: 0;
  padding: 0;
  background: none;
}
.cat-strip__band {
  position: relative;
  padding: 30px 0 32px;
  /* фон в рендере не плоский: слева #DBDBDB, справа #E9E9E9 по диагонали */
  background: linear-gradient(101deg, #DADADA 0%, #E3E3E3 44%, #EAEAEA 100%);
  clip-path: none;                      /* верх ленты в рендере ровный */
}
/* Угловые клинья. Карта пикселей рендера даёт по обоим краям одну и ту же
   фигуру под 42°: тёмный треугольник и параллельная ему лаймовая полоса.
   Слева тёмное сверху, справа — в нижнем углу. Обе фигуры режутся одним
   clip-path (их объединение выпуклое), тёмная кладётся слоем-градиентом. */
.cat-strip__band::before,
.cat-strip__band::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 0;
}
.cat-strip__band::before {
  left: 0;
  background:
    linear-gradient(138deg, var(--bg-dark) 0 50%, transparent 50%) left top / 68px 62px no-repeat,
    var(--accent);
  clip-path: polygon(0 0, 136px 0, 0 124px);
}
.cat-strip__band::after {
  right: 0;
  background:
    linear-gradient(138deg, transparent 0 50%, var(--bg-dark) 50%) right bottom / 96px 91px no-repeat,
    var(--accent);
  clip-path: polygon(100% 2px, 100% 100%, 44px 100%, 44px 90px);
}
.cat-strip__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: none;                /* на всю ширину ленты, без пустых полей по бокам */
  margin-inline: 0;
  padding-inline: 150px;          /* отступ под лаймовые клинья (140px) слева/справа */
}
.cat-card {
  display: flex;
  align-items: stretch;
  min-height: 150px;
  gap: 0;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18, 38, 20, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(18, 38, 20, .20); }
.cat-card__body {
  flex: 1;
  min-width: 0;
  padding: 24px 20px 20px 28px;
  display: flex;
  flex-direction: column;
}
.cat-card__head { display: flex; align-items: center; gap: 14px; }
.cat-card__icon { color: var(--accent); margin: 0; }
.cat-card__icon svg { width: 32px; height: 32px; stroke-width: 1.5; }
.cat-card__title { font-size: 21px; color: #17321F; margin: 0; letter-spacing: -.01em; }
.cat-card__text {
  margin: 10px 0 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.cat-card__go {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 16px;
  color: var(--accent);
}
.cat-card__photo {          /* фото справа во всю высоту карточки */
  order: 2;
  width: 240px;
  height: auto;
  flex: none;
  align-self: stretch;
  object-fit: cover;
}

@media (max-width: 1400px) {
  /* при 1280 меню + контакты вылезали за экран на 42px */
  .header { --edge: 40px; }
  .nav { gap: 22px; }
  .nav a { font-size: 16px; }
  .header__contacts { gap: 18px; }
  .contact { font-size: 15px; }
  .cat-strip__grid { padding-inline: 24px; }
  .cat-card { gap: 20px; }
  .cat-card__photo { width: 200px; height: auto; }
  .hero .h1 { font-size: 74px; padding-top: 130px; }
  .hero { min-height: 680px; }
  .cat-strip { margin-top: -130px; }
}
@media (max-width: 1100px) {
  .hero, .header { --edge: 32px; }
  /* колонка героя жёстко 740px + поле 64 не влезала в 768 */
  .hero__col { width: auto; max-width: 100%; }
  .header__contacts { display: none; }   /* без меню контакты не помещались */
  .tile--wide { grid-template-columns: 220px 1fr; }
  .tile--wide .tile__photo { height: 100%; }
  .hero .h1 { font-size: 56px; padding-top: 90px; max-width: 620px; }
  .hero__lead { max-width: 560px; }
  .hero__photo { inset: 0; }
  .hero__mask { width: 100%; clip-path: none; opacity: .8; }
  .cat-strip { margin-top: -80px; }
  .cat-strip__grid { padding-inline: 16px; }
  .cat-card { gap: 14px; }
  .cat-card__photo { width: 132px; height: auto; }
  .cat-card__head { gap: 12px; }
  .cat-card__icon svg { width: 28px; height: 28px; }
  .cat-card__title { font-size: 17px; }
  .cat-card__text { margin-left: 40px; max-width: none; font-size: 12.5px; }
  .cat-card + .cat-card { border: 0; }
}
@media (max-width: 860px) {
  /* три колонки при 860 дают на текст меньше 90px — переходим в столбик */
  .cat-strip__grid { grid-template-columns: 1fr; gap: 10px; }
  .cat-card { gap: 18px; min-height: 0; }
  .cat-card__photo { width: 148px; height: 104px; }
  .cat-card__text { max-width: 460px; }
  /* колонка 220px + текст не влезали и обрезались по overflow:hidden */
  .tile--wide { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero, .header { --edge: 16px; }
  .header { height: 56px; }
  .logo__word { font-size: 22px; }
  .logo__mark { width: 34px; height: 34px; }
  .hero .h1 { font-size: 34px; padding-top: 32px; line-height: 1.06; }
  .hero { min-height: auto; }
  /* новые правила героя идут ниже старого медиазапроса — перекрываем их здесь */
  .hero__lead { margin: 18px 0 0; font-size: 15px; }
  .stat__label { font-size: 13px; }
  .stats { margin: 22px 0 0; }
  .hero__actions { margin-top: 22px; }
  .hero .btn { height: 52px; min-width: 0; font-size: 16px; }
  .cat-card__photo { width: 110px; height: 96px; }
  .cat-card__title { font-size: 18px; }
  .hero__col { padding-bottom: 40px; }
  .hero__wedge { width: 190px; height: 40px; clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%); }
  .cat-strip { margin-top: 0; }
  .cat-strip__band { clip-path: none; padding: 24px 16px; }
  .cat-strip__band::before, .cat-strip__band::after { display: none; }
  .cold-badge { position: static; margin: 0 16px 32px; clip-path: none; }
}

/* ══ МОБИЛЬНАЯ ВЕРСИЯ — по renders/mobile/m01-hero-v2.png ═════════
   Кадр 853×1844 = макет 390 логических px, K = 0.4572.
   Замеренные опорные точки (логические px):
     шапка            0..50
     лаймовая полоса  50..73
     H1 три строки    93 / 123 / 154, шаг 30, высота прописной 21
     лид, 4 строки    196..253
     статистика       332..355   ТРИ КОЛОНКИ, не столбик
     кнопка 1         366..420
     кнопка 2         425..478
     плашка холода    492..548
     панель категорий с 558

   Отношение ширины строки H1 к высоте прописной 8.7 — тот же Oswald,
   что и на десктопе. Кегль 22px даёт ширину строки 184px, как в рендере. */

@media (max-width: 640px) {

  .hero, .header { --edge: 16px; }

  /* ── шапка: логотип и бургер, подписи нет ───────────────── */
  .header { height: 50px; }
  .header__inner { padding: 0 var(--edge); gap: 0; }
  .logo { gap: 10px; }
  .logo__mark { width: 38px; height: 27px; }
  .logo__mark svg { width: 38px; height: 27px; }
  .logo__word { font-size: 27px; }
  .logo__rule, .logo__sub { display: none; }   /* в мобильном рендере их нет */
  .nav, .header__contacts { display: none; }
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px; height: 34px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--text-inv); border-radius: 2px; }

  /* ── герой ──────────────────────────────────────────────── */
  .hero {
    min-height: auto;
    display: block;
    padding-bottom: 0;
    background: var(--bg-dark);
  }
  /* фото — блок сверху справа, ниже уходит в темноту */
  .hero__photo {
    inset: 0 0 auto 30%;
    height: 250px;
    background-position: left top;
    background-size: cover;
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(0,8,6,.15) 0%, rgba(0,8,6,.55) 52%, var(--bg-dark) 74%),
      linear-gradient(90deg, rgba(0,8,6,.98) 0%, rgba(0,8,6,.86) 26%, rgba(0,8,6,.25) 52%, rgba(0,8,6,.05) 72%);
  }
  .hero__mask { display: none; }

  /* лаймовая диагональ под шапкой */
  .hero__wedge {
    width: 258px;
    height: 23px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 34px) 100%, 0 100%);
  }

  .hero__col { width: auto; max-width: none; padding: 0 var(--edge); }

  /* Заголовок и лид занимают только левую половину: справа фото.
     Без этого ограничения лид ложится в две строки вместо четырёх
     и весь низ экрана уезжает на 70px. */
  .hero .h1 {
    max-width: 212px;
    padding-top: 43px;          /* 50 шапка + 43 -> прописная H1 на y≈93 */
    font-size: 22px;
    line-height: 1.39;          /* шаг строк 30px из рендера */
  }
  .hero__lead {
    max-width: 194px;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #C6C9C4;
  }

  /* ── статистика: три колонки, как в рендере ────────────────
     Замер рендера (логические px при ширине 390):
       иконка   ink 24.7..48.5    цифра ink 57.6..104.7
       подпись  ink 57.2..96.5  — то есть подпись начинается ТАМ ЖЕ,
                                  где цифра, а не под иконкой
       разделитель x 131.7, во всю высоту блока 302.7..350.7
     Отрицательный отступ у подписи, который стоял здесь раньше, уводил
     её под иконку — цифра «висела» правее подписи, и ряд читался косым. */
  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 14px 0 0;
    align-items: stretch;      /* линейки идут во всю высоту, как в рендере */
  }
  .stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 8px;
    align-content: start;
  }
  /* Анимация появления сдвигает панель на 24px, и этот сдвиг расширяет область
     прокрутки контейнера — он переставал доходить до истинного низа, и браузер
     не отдавал прокрутку странице. Внутри своей секции анимация не нужна:
     панель и так занимает весь экран. */
  .promo-banners .reveal {
    transform: none;
    opacity: 1;      /* содержимое вверху, тянется только линейка */
    min-width: 0;
    padding: 0 8px;
    border: 0;
  }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { padding-right: 0; }
  .stat + .stat {
    margin: 0;
    /* Селекторы `.stat + .stat` в десктопном (padding-left: 40px) и в
       640-блоке (padding: 16px 0 0) специфичнее, чем `.stat`, и пережили
       мой `padding: 0 8px`: колонки 2 и 3 стояли на 32px правее и на 16px
       ниже своих ячеек. Гасим полной записью, а не одной стороной. */
    padding: 0 8px;
    border-left: 1px solid rgba(247, 247, 247, .18);
    border-top: 0;
  }
  /* иконка выравнивается по строке цифры, а не по центру всей колонки:
     строка цифры 24px, иконка 22px -> ровно 1px сверху */
  .stat > svg { width: 22px; height: 22px; margin: 1px 0 0; opacity: .9; }
  .stat > div { grid-column: 2; min-width: 0; }
  /* прописная в мобильном рендере 16.9 -> Oswald 20.5px.
     clamp вниз: на 320px «с 1997» иначе не влезает в свою треть */
  .stat__num { font-size: clamp(17px, 5.3vw, 21px); line-height: 1; white-space: nowrap; }
  .stat__label {
    margin: 7px 0 0;
    font-size: 11.5px;
    line-height: 1.2;
    text-wrap: balance;      /* «траков / в неделю», а не «траков в / неделю» */
  }

  /* ── кнопки ─────────────────────────────────────────────── */
  .hero__actions { flex-direction: column; gap: 9px; margin-top: 6px; }
  .hero .btn { width: 100%; min-width: 0; height: 54px; font-size: 16px; justify-content: space-between; }

  /* ── плашка холодовой цепи: угловатая, во всю ширину ─────── */
  .cold-badge {
    position: static;
    display: flex;
    align-items: center;
    gap: 18px;
    width: auto;
    margin: 4px var(--edge) 0;
    padding: 9px 18px;
    border: 1.5px solid var(--accent);
    border-radius: 0;
    background: rgba(0, 31, 16, .55);
    /* срезаны левый верхний и правый нижний углы — приём с рендера */
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  }
  .cold-badge > svg {
    flex: none;
    width: 22px; height: 22px;
    padding: 7px;
    box-sizing: content-box;
    border: 1.5px solid var(--accent);
    border-radius: 999px;
  }
  .cold-badge__title { font-size: 13px; letter-spacing: .06em; margin-bottom: 2px; }
  .cold-badge__text { font-size: 12px; line-height: 1.28; letter-spacing: .02em; }

  /* ── категории: одна светлая панель со строками ──────────── */
  .cat-strip { margin-top: 8px; padding: 0 var(--edge) 0; }
  .cat-strip__band {
    padding: 12px;
    background: #EFEFEF;
    border-radius: 14px;
    clip-path: none;
  }
  .cat-strip__band::before, .cat-strip__band::after { display: none; }
  .cat-strip__grid { grid-template-columns: 1fr; gap: 8px; }

  .cat-card {
    display: grid;
    grid-template-columns: 96px 1fr 24px;
    align-items: center;
    gap: 14px;
    min-height: 86px;
    padding: 7px;
    background: var(--bg-page);
    border: 0;
    border-radius: 10px;
  }
  .cat-card + .cat-card { border: 0; }
  .cat-card__photo {
    width: 96px; height: 74px;
    border-radius: 8px;
    clip-path: none;
    object-fit: cover;
  }
  .cat-card__body { padding: 0; min-width: 0; }
  .cat-card__head { gap: 9px; }
  .cat-card__icon { margin: 0; }
  .cat-card__icon svg { width: 23px; height: 23px; }
  .cat-card__title { font-size: 16px; margin: 0; }
  .cat-card__text { margin: 3px 0 0; max-width: none; font-size: 11.5px; line-height: 1.34; }
  .cat-card__go { color: var(--accent); justify-self: end; }
}


/* ── Отдельное направление: Китай от 1 кг ─────────────────────── */
.china__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.china .h2 .accent { color: var(--accent); }
.china__lead .lead { color: var(--text-2-inv); margin-top: 18px; max-width: 520px; }
.china__lead .btn { margin-top: 28px; }
.china__feats { display: grid; gap: 16px; }
.china__feat {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--bd-dark);
  border-radius: 14px;
  padding: 18px 22px;
}
.china__feat svg { color: var(--accent); flex: none; }
.china__feat b { display: block; color: var(--text-inv); font-size: 18px; line-height: 1.1; }
.china__feat span { display: block; color: var(--text-2-inv); font-size: 14px; margin-top: 3px; }
@media (max-width: 900px) {
  .china__grid { grid-template-columns: 1fr; gap: 30px; }
  .china__lead .lead { max-width: none; }
}
@media (max-width: 640px) {
  .china__feat { padding: 14px 16px; gap: 14px; }
  .china__feat b { font-size: 16px; }
  .china__feat span { font-size: 12.5px; }
}


/* ── Секция «Нам доверяют» / отзывы (тёмная, фон-склад) ────────── */
.reviews-sec {
  position: relative;
  overflow: hidden;
  min-height: 900px;
  padding: 96px 0 90px;
  background: #031A11 center center / cover no-repeat;
}
.reviews-sec__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(125% 90% at 50% 45%, transparent 52%, rgba(0, 10, 6, .55) 100%),
    linear-gradient(90deg, rgba(1, 20, 13, .82) 0%, rgba(1, 22, 14, .72) 45%, rgba(0, 15, 10, .86) 100%);
}
.reviews-sec .container { position: relative; z-index: 2; width: min(100%, 1450px); max-width: 1450px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }  /* контент-зона ~1370 (3×445+gap) */

.reviews-head { text-align: center; margin-bottom: 50px; }
.reviews-head .eyebrow { color: var(--accent); letter-spacing: .34em; }
.reviews-title { margin: 0; font-size: 57px; line-height: 1; font-weight: 800; letter-spacing: -1px; color: #fff; text-transform: uppercase; }
.reviews-sub { margin: 25px 0 0; font-size: 21px; line-height: 1.4; font-weight: 400; color: rgba(255, 255, 255, .48); }

.reviews { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.review-card {
  position: relative;
  margin: 0;                        /* у <figure> дефолтный margin 0 40px — обнуляем */
  width: 445px; min-height: 275px;
  display: flex; flex-direction: column;
  padding: 35px 36px 32px;
  background: rgba(0, 29, 18, .78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(140, 192, 32, .70);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .025);
}
.review-card__quote { position: absolute; top: 30px; left: 28px; width: 30px; height: 30px; color: var(--accent); }
.review-card__quote svg { width: 100%; height: 100%; display: block; }
.review-card__text { margin: 2px 0 0 44px; font-size: 18px; line-height: 1.55; font-weight: 400; color: rgba(255, 255, 255, .92); }
.review-card__q2 { color: var(--accent); font-weight: 700; }
.review-card__by { margin: 28px 0 0 44px; }
.review-card__by b { display: block; font-size: 18px; line-height: 1.3; font-weight: 700; color: #fff; }
.review-card__by span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .42); }
.review-card__bar {
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 58px; height: 3px; border-radius: 100px;
  background: #9ED315; box-shadow: 0 0 12px rgba(140, 192, 32, .55);
}

@media (max-width: 1100px) {
  .reviews-sec { min-height: 0; }
  .reviews-title { font-size: 44px; }
  .review-card { width: calc(50% - 8px); }
}
@media (max-width: 700px) {
  .reviews-sec { padding: 60px 0; }
  .reviews-sec .container { padding-left: 20px; padding-right: 20px; }
  .reviews { gap: 14px; }
  .reviews-head { margin-bottom: 34px; }
  .reviews-title { font-size: 36px; line-height: 1.05; }
  .reviews-sub { font-size: 16px; }
  .review-card { width: 100%; min-height: auto; padding: 28px 22px; border-radius: 18px; }
  .review-card__text { font-size: 16px; line-height: 1.5; margin-left: 40px; }
  .review-card__by { margin-left: 40px; }
}


/* ── Почему нам доверяют: фото-карточки с HTML-оверлеями ───────── */
.section--trust {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(620px 420px at 8% 18%, rgba(139, 190, 62, .06), transparent 70%),
    radial-gradient(720px 520px at 93% 26%, rgba(122, 168, 58, .05), transparent 70%),
    radial-gradient(circle at 50% 0%, rgba(139, 190, 62, .04), transparent 38%),
    #FCFDF9;
}
.trust-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.trust-deco svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.section--trust .container { position: relative; z-index: 1; }
.trust-sub { max-width: 650px; margin: 16px auto 0; font-size: 18px; line-height: 1.45; color: #7A7D78; }

.trust-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.trust-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgba(18, 25, 18, .10); border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 45px rgba(20, 35, 20, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.trust-card:hover { transform: translateY(-5px); box-shadow: 0 26px 56px rgba(20, 35, 20, .12); }
.trust-card__media { position: relative; }
.trust-card__media img { width: 100%; aspect-ratio: 2.15 / 1; object-fit: cover; display: block; }
.trust-card__body { padding: 22px 22px 26px; }
.trust-card__icon {
  width: 56px; height: 56px; border-radius: 15px; display: flex; align-items: center;
  justify-content: center; background: #EEF8DB; color: #5E9E1B; margin-bottom: 16px;
}
.trust-card__title { font-size: 22px; font-weight: 700; line-height: 1.15; color: #0D1115; margin: 0; }
.trust-card__text { margin: 12px 0 0; font-size: 15.5px; line-height: 1.55; color: #777D7A; }

/* overlay 1 — стеклянный бейдж «проверено» */
.tc-badge {
  position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(20, 28, 24, .58); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .20); color: #fff;
}
.tc-badge__ic { width: 22px; height: 22px; color: var(--accent); flex: none; }
.tc-badge__ic svg { width: 100%; height: 100%; }
.tc-badge__tx { font-size: 11px; font-weight: 700; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; }

/* overlay 2 — трек маршрута */
.tc-track {
  position: absolute; top: 16px; right: 16px; min-width: 236px;
  padding: 13px 15px; border-radius: 14px;
  background: rgba(5, 25, 17, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .12); color: #fff;
}
.tc-track__top { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.tc-dot { width: 9px; height: 9px; border-radius: 50%; background: #77D72B; box-shadow: 0 0 8px rgba(119, 215, 43, .8); }
.tc-track__route { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.tc-track__route span { color: var(--accent); }
.tc-track__line { display: flex; align-items: center; gap: 5px; margin-top: 12px; }
.tc-node { width: 8px; height: 8px; border-radius: 50%; background: #77D72B; flex: none; }
.tc-seg { flex: 1; height: 2px; background: rgba(119, 215, 43, .6); border-radius: 2px; }
.tc-seg.is-dashed { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 4px, transparent 4px 8px); }
.tc-pin { width: 18px; height: 18px; color: #fff; flex: none; }
.tc-pin svg { width: 100%; height: 100%; }

/* overlay 3 — чек-лист статусов */
.tc-status {
  position: absolute; top: 14px; right: 14px; width: 210px;
  padding: 6px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, .93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(18, 25, 18, .06); box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.tc-row { display: flex; align-items: center; gap: 8px; padding: 7px 4px; }
.tc-row + .tc-row { border-top: 1px solid rgba(18, 25, 18, .06); }
.tc-row__l { flex: 1; font-size: 13px; font-weight: 600; color: #1B211C; }
.tc-row time { font-size: 12px; color: #8A8F88; font-variant-numeric: tabular-nums; }
.tc-row time.is-empty { width: 34px; }
.tc-row__ok { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #6FBF1E; color: #fff; }
.tc-row__ok svg { width: 11px; height: 11px; }

@media (max-width: 1024px) {
  .trust-cards { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .trust-sub { font-size: 16px; }
  .trust-card__body { padding: 20px; }
  .trust-card__icon { width: 48px; height: 48px; border-radius: 13px; }
  .trust-card__title { font-size: 20px; }
  .trust-card__text { font-size: 15px; }
  .tc-track { min-width: 0; left: 14px; }
  .tc-status { width: 190px; }
}

/* ── 5-этапный процесс ────────────────────────────────────────── */
.proc-heading { text-align: center; font-size: 26px; margin: 64px 0 32px; color: var(--text); }
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.proc-card {
  background: var(--bg-page); border: 1px solid var(--bd); border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 38, 20, .08); transition: transform .2s ease, box-shadow .2s ease;
}
.proc-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 18px 42px rgba(18, 38, 20, .16); }
.proc-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--bg-dark); }
.proc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proc-card__num {
  position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; background: var(--accent);
  color: var(--text); font-weight: 800; font-size: 16px;
}
.proc-card__body { padding: 18px 18px 22px; }
.proc-card__title { font-size: 17px; color: var(--text); margin: 0 0 8px; }
.proc-card__text { font-size: 13.5px; line-height: 1.5; color: var(--text-2); margin: 0; }

/* ── 3 CTA ────────────────────────────────────────────────────── */
.proc-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 48px; }

@media (max-width: 1200px) { .process { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .trust-cards { grid-template-columns: 1fr; } .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .process { grid-template-columns: 1fr; } .proc-cta .btn { width: 100%; text-align: center; } }

/* ── Появление блоков при прокрутке (класс .reveal ставит assets/reveal.js) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Промо-баннеры: фон-cover справа, тёмный градиент слева, текст/CTA поверх ── */
.promo-banners { display: grid; gap: 24px; }
.promo {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 340px;
  border-radius: 20px;
  overflow: hidden;
  background: #0B1F16 center right / cover no-repeat;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(11, 31, 22, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.promo:hover { transform: translateY(-4px); box-shadow: 0 22px 54px rgba(11, 31, 22, .28); }
.promo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,31,22,.96) 0%, rgba(11,31,22,.9) 34%, rgba(11,31,22,.42) 62%, rgba(11,31,22,0) 88%);
}
.promo__in { position: relative; z-index: 1; max-width: 560px; padding: 44px 40px 44px 52px; }
.promo__eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.promo__title { margin: 0; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; color: #fff; text-transform: uppercase; }
.promo__text { margin: 16px 0 0; max-width: 440px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.promo__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 700; color: var(--accent); }
.promo__cta svg { transition: transform .2s ease; }
.promo:hover .promo__cta svg { transform: translateX(3px); }

@media (max-width: 900px) {
  .promo { min-height: 320px; }
  .promo__title { font-size: 30px; }
  .promo::before { background: linear-gradient(90deg, rgba(11,31,22,.94) 0%, rgba(11,31,22,.86) 42%, rgba(11,31,22,.40) 74%, rgba(11,31,22,.06) 100%); }
}
@media (max-width: 560px) {
  .promo { min-height: 260px; }
  .promo__in { padding: 28px 24px; }
  .promo__title { font-size: 24px; }
  .promo__text { font-size: 14px; }
}


/* ══ ОБЛИК ПО КП: фиксированная шапка, Prata, кремовый фон ══════════
   Перенесено со страницы-превью, которую утвердил заказчик.
   Правила общие для всех страниц, поэтому шапка и типографика
   одинаковы в каталоге, карточке товара и формах входа. */

/* ── ПРЕВЬЮ: шапка фиксированная, отдельной плашкой ──────────────────
   Шапка выходит из потока и ложится поверх первого экрана — так плашка
   читается как отдельный объект, а не как полоса, приклеенная к верху.
   Тёмный фон героя под ней уже есть, поэтому распорка не нужна.         */

.header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  height: auto;
  background: none;
  padding: 0 20px;
  z-index: 60;
  pointer-events: none;          /* прозрачные поля не должны ловить клики */
}

.header__inner {
  pointer-events: auto;
  width: min(100%, 1600px);
  max-width: 1600px;
  margin: 0 auto;
  height: 84px;
  padding: 0 30px;
  gap: 40px;
  background: rgba(0, 31, 16, .78);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .20);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* когда под шапкой уезжает светлый контент — плашка становится плотнее,
   иначе тёмный текст страницы просвечивает сквозь размытие */
.header.is-scrolled .header__inner {
  background: rgba(0, 31, 16, .95);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .30);
}

.logo__img { height: 46px; }
.nav a { font-size: 16px; }
.contact { font-size: 16px; }
.header__contacts { gap: 26px; }

/* первый экран больше не начинается под 112px шапки — вернём ему воздух сверху,
   чтобы заголовок не оказался вплотную к плашке */
.hero { padding-top: 116px; }

@media (max-width: 1400px) {
  .header { padding: 0 16px; }
  .header__inner { height: 72px; padding: 0 22px; gap: 24px; border-radius: 18px; }
  .logo__img { height: 40px; }
}

@media (max-width: 900px) {
  .header { top: 10px; padding: 0 12px; }
  .header__inner { height: 62px; padding: 0 16px; border-radius: 16px; }
  .logo__img { height: 34px; }
  .hero { padding-top: 84px; }
}

/* ── Полоса категорий целиком в первый экран ────────────────────────
   Высоту карточки задаёт фото: width 240 + height auto даёт 240px, и низ
   уходил за фолд на 20px. Ужимаем фото и поля ленты — карточка попадает
   в первый экран целиком, вместе с нижней границей. */
.cat-card__photo { width: 200px; }
/* Нижнее поле ленты держит «землю» под карточками: раньше зазор под ними
   был белым — следующая секция начиналась прямо у нижней кромки экрана
   и это читалось как обрыв. Теперь до фолда идёт сама лента. */
.cat-strip__band { padding: 16px 0 48px; }


/* ── Карточки категорий по референсу ────────────────────────────────
   Белая плитка: слева текст и лаймовая кнопка, справа фото, растворяющееся
   в белый. Растворение сделано маской в CSS, а не «белым краем» в самом
   файле — так кадр можно менять, не подгоняя градиент под фон карточки.
   Страну показывает лендмарк в глубине снимка (пагода, купол), а не флаг:
   в референсе именно так, и это мягче. */
.cat-card { position: relative; background: #FFFFFF; min-height: 186px; overflow: hidden; }
.cat-card::after { display: none; }        /* тёмная вуаль тут не нужна */
.cat-card__photo {
  position: absolute;
  inset: 0 0 0 auto;
  order: 0;
  width: 54%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* В самих кадрах левый край уже уходит в белый, поэтому маска нужна
     короткая — только чтобы стык с карточкой был бесшовным при любом фото. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
}
.cat-card__body {
  position: relative;
  z-index: 2;
  max-width: 50%;
  padding: 20px 0 20px 28px;
}
.cat-card__head { display: block; }
.cat-card__icon { color: var(--accent); margin-bottom: 7px; }
.cat-card__icon svg { display: block; width: 26px; height: 26px; stroke-width: 1.6; }
.cat-card__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #17321F;
}
.cat-card__title span { color: var(--accent); }   /* страна — лаймом, как в референсе */
.cat-card__text { margin: 7px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.cat-card__go {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #17321F;
  font-size: 15px;
  font-weight: 600;
  transition: background .15s ease;
}
.cat-card:hover .cat-card__go { background: var(--accent-deep); color: #fff; }
.cat-card__go svg { width: 18px; height: 18px; }

@media (max-width: 1100px) {
  .cat-card__body { max-width: 58%; padding-left: 22px; }
  .cat-card__title { font-size: 21px; }
}

/* ══ СКИН ПО КП FITTIN ══════════════════════════════════════════════
   Из презентации взяты только оформительские решения: Prata в заголовках,
   Marck Script в акцентной фразе, кремовый фон, светлые «таблетки» шапки,
   изумрудная палитра. Разметка и тексты страницы не менялись ни в одном месте. */

:root {
  --kp-brand:  #077656;
  --kp-brand-d:#04543C;
  --kp-brand-l:#0E9A70;
  --kp-mint:   #7ECBAE;
  --kp-pale:   #E3F3EB;
  --kp-cream:  #FBF8F5;
  --kp-ink:    #15211C;
  --kp-muted:  #63756C;
  --kp-border: #E3E9E5;
  --kp-rose:   #EF686F;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--kp-cream);
  color: var(--kp-ink);
}

/* ── заголовки: узкий Oswald капсом уступает место Prata ────────── */
/* Класс продублирован намеренно: в styles.css заголовки ловятся связкой
   .hero .h1 — она весомее одиночного класса, и скин бы не применился. */
.h1.h1, .h2.h2, .h3.h3, .reviews-title.reviews-title, .proc-heading.proc-heading,
.pbuy__title.pbuy__title {
  font-family: 'Prata', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 0;
}
.h1.h1 { font-size: clamp(44px, 4.4vw, 84px); line-height: 0.86; }
/* Поджатая строка рукописной фразы вылезает выносными за свой бокс
   и съедает отступ до лида — возвращаем его явно. */
.hero .h1 { margin-bottom: 12px; }   /* сдвиг рукописной строки не трогает поток — компенсируем здесь */
.h2.h2 { font-size: clamp(30px, 3.2vw, 52px); line-height: 1.10; }
.reviews-title.reviews-title { font-size: clamp(30px, 3.4vw, 56px); line-height: 1.08; }
.pbuy__title.pbuy__title { font-size: clamp(28px, 2.6vw, 44px); line-height: 1.12; }

/* акцентная строка первого экрана — рукописным, как «своё приложение» в КП */
.h1.h1 .accent {
  font-family: 'Marck Script', 'Prata', cursive;
  font-weight: 400;
  font-size: 1.06em;
  /* У Marck Script высокие выносные, поэтому собственная строка рукописной
     фразы тянет две строки заголовка врозь. Поджимаем её отдельно от общего
     интерлиньяжа — иначе пришлось бы душить и «Цветы». */
  line-height: 0.80;
  /* line-height режет бокс, но не двигает сами буквы: у Marck Script
     большой внутренний отступ сверху. Замер по пикселям: просвет между
     чернилами 26px при высоте букв 77 — треть строки, оттого и рыхло.
     margin-top на inline-block ничего не дал (вертикальные поля не влияют
     на позицию в строке), поэтому сдвигаем саму отрисовку. */
  position: relative;
  top: -0.22em;
  letter-spacing: -.02em;   /* у Marck Script широкие боковые — при 100px строка расползается */
  display: inline-block;
  padding-right: .08em;   /* у рукописного шрифта хвост уходит за габарит */
}

/* ── надзаголовки: разрядка и лидирующее тире, как в КП ─────────── */
.eyebrow, .promo__eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: .13em;
}
.section__head:not(.section__head--center) > .eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 12px 4px 0;
  background: currentColor;
  opacity: .55;
}

/* ── цифры первого экрана: в КП они серифные, а не узкие ────────── */
.stat__num { font-family: 'Prata', Georgia, serif; font-weight: 400; }

/* ── карточки: белые на кремовом, тонкая граница ────────────────── */
/* .review-card сюда не входит: секция отзывов тёмная, карточки в ней
   стеклянные с белым текстом — белый фон сделал бы их пустыми. */
.prod, .feature, .plan:not(.plan--hit), .proc-card, .trust-card {
  background: #FFFFFF;
  border-color: var(--kp-border);
}

/* ── шапка: две светлые таблетки вместо одной тёмной ───────────── */
.header__inner {
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 0;
  height: 76px;
  gap: 16px;
  justify-content: space-between;
}
.header .logo, .header .nav, .header .header__contacts {
  height: 100%;
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .70);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(4, 84, 60, .14);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  transition: background .25s ease, box-shadow .25s ease;
}
.header .logo { display: flex; padding: 0 30px; }
/* без flex: none картинка как флекс-элемент ужимается до нуля, и на узких
   экранах от логотипа остаётся пустая таблетка */
.logo__img { flex: none; }
.header .nav { display: flex; padding: 0 30px; margin-inline: 0; gap: 30px; }
.header .header__contacts { display: flex; padding: 0 28px; gap: 24px; }
/* Из первой версии превью осталось правило .header.is-scrolled .header__inner —
   оно весомее одиночного класса и при листании подкладывало под таблетки
   тёмно-зелёную плашку. Гасим её явно. */
.header.is-scrolled .header__inner {
  background: none;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.header.is-scrolled .logo,
.header.is-scrolled .nav,
.header.is-scrolled .header__contacts {
  background: #FFFFFF;
  box-shadow: 0 12px 34px rgba(4, 84, 60, .20);
}
.nav a, .contact { color: var(--kp-ink); font-weight: 500; }
.nav a { font-size: 15px; letter-spacing: .01em; }
.nav a:hover { color: var(--kp-brand); }
.contact svg { color: var(--kp-brand); }
.header__contacts::before { display: none; }
.burger {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .70);
  border-radius: 999px;
  width: 46px; height: 46px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(4, 84, 60, .14);
}
.burger { flex-direction: column; justify-content: center; gap: 4px; }
/* display и height у полосок лежали в @media 640 — на планшете
   от бургера оставался пустой кружок. Задаём их вне медиазапроса. */
.burger span { display: block; width: 18px; height: 2px; margin: 0 auto;
               border-radius: 2px; background: var(--kp-ink); }

/* ── подвал: тот же приём, что и в шапке ───────────────────────
   Таблетка обжимает знак, а не тянется на высоту колонки. */
.footer .logo {
  display: inline-flex;
  align-items: center;
  height: auto;
  padding: 15px 30px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .26);
}
.footer .logo__img { height: 42px; }

/* ── Первый экран: фото во всю ширину, поверх — тёмное стекло ──────
   Было: фото начиналось с 660px, слева стояла глухая тёмная плашка, а между
   ними шла диагональная маска. Клиент просил убрать чёрный прямоугольник и
   положить стекло на всю длину. Роль стекла отдана .hero__mask — элемент уже
   есть в разметке, новый заводить не пришлось. */
.hero__photo {
  inset: 0;
  /* Кадр 2172x724 — ровно 3:1, как и полоса первого экрана при 1920.
     Значит на основном разрешении фото ложится без обрезки вообще. */
  background-image: url(assets/img/hero-truck-wide.jpg);
  background-position: center center;
}
.hero__mask {
  inset: 0 auto 0 0;
  /* Ширина в clamp, а не в процентах: текстовый блок фиксированный
     (max-width 700), и на 1440 чистые 47% уводили срез левее текста —
     строки вылезали на светлую часть кадра. Нижняя грань диагонали идёт
     примерно по 700px при любой ширине, текст кончается на 661. */
  width: clamp(870px, 45.5%, 1040px);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  /* Диагональ как на боевой главной; правая часть кадра с закатом
     и фурой остаётся нетронутой. */
  opacity: 1;
  z-index: 1;                       /* выше фото (-2), ниже текста (2) */
  background: rgba(0, 8, 6, .84);
  -webkit-backdrop-filter: blur(3px) saturate(108%);
  backdrop-filter: blur(3px) saturate(108%);
}
/* левый градиент больше не нужен: стекло ровное по всей ширине */
.hero::after { background: none; }

/* ── Высота первого экрана ──────────────────────────────────────────
   Было 731px — всё влезало в фолд, но впритык, а полоса фото выходила
   слишком высокой. Ужимаем до 640: при 1920 это ровно 3:1, картинка
   становится узкой лентой, и под фолдом остаётся запас. Кегль заголовка
   и отступы подтянуты под новую высоту, иначе контент упрётся в край. */
/* padding-top 148, а не 116: заголовок стоял почти вплотную к таблеткам шапки.
   Прибавку в 32px отобрали у отступов ниже, иначе первый экран вырос бы
   и полоса категорий снова ушла за фолд. */
.hero { min-height: 640px; padding-top: 148px; padding-bottom: 32px; }
.h1.h1 { font-size: clamp(44px, 4.4vw, 84px); }
.hero__lead { margin-bottom: 22px; }
.stats { margin-bottom: 20px; }
/* ── Бейдж логистики: рамка по срезанным углам ──────────────────────
   clip-path режет элемент вместе с border, поэтому на скосах рамка
   пропадала. Рисуем её как подложку: лаймовый фон самого бейджа —
   это и есть рамка, а тёмная заливка лежит на 2px внутри тем же
   контуром. Углы внутреннего слоя на 2px меньше: срез идёт под 45°. */
.cold-badge {
  bottom: 40px;
  border: 0;
  background: var(--accent);
}
.cold-badge::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 0;
  background: rgba(0, 25, 13, .92);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.cold-badge > * { position: relative; z-index: 1; }

@media (max-width: 1400px) {
  .hero { min-height: 600px; padding-top: 104px; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 92px; padding-bottom: 32px; }
}

@media (max-width: 1400px) {
  .header__inner { height: 66px; gap: 12px; }
  .header .logo { padding: 0 20px; }
  .nav { padding: 0 20px; gap: 20px; }
  .nav a { font-size: 14px; }
  .header__contacts { padding: 0 18px; gap: 16px; }
  .hero { padding-top: 112px; }
}
/* В «таблетках» шапка шире исходной полосы: у каждой свои поля и зазор между
   ними. Поэтому меню и контакты приходится убирать раньше, чем в styles.css,
   иначе они выдавливают логотип. */
@media (max-width: 1150px) {
  .header__contacts { display: none; }
}

@media (max-width: 900px) {
  .header__inner { height: 58px; }
  .header .logo { padding: 0 16px; }
  .nav { display: none; }
  .burger { display: flex; }
}

/* Скин задаёт .nav и .header__contacts через display: flex и тем самым отменял
   их скрытие на телефоне — меню лезло в шапку и выдавливало логотип в ноль.
   Точка перелома взята из styles.css, там мобильная шапка начинается с 640px. */
@media (max-width: 640px) {
  .nav, .header__contacts { display: none; }
  .header .logo { padding: 0 14px; }
}

/* ── изумрудная палитра КП: включается кнопкой в метке превью ───── */
html.kp-emerald {
  --accent: #077656;
  --accent-deep: #04543C;
  --accent-soft: #E3F3EB;
}
html.kp-emerald .h1.h1 .accent { color: var(--kp-mint); }
html.kp-emerald .stat__num { color: var(--kp-mint); }

/* Шапка выведена из потока и лежит поверх первого экрана. На главной под ней
   тёмный герой, а на остальных страницах контент уехал бы под таблетки —
   поэтому им нужна распорка сверху. */
body:not(.home) { padding-top: 116px; }
@media (max-width: 1400px) { body:not(.home) { padding-top: 100px; } }
@media (max-width: 900px)  { body:not(.home) { padding-top: 86px; } }

/* ── Промо-баннеры на весь экран ─────────────────────────────────────
   Панели остаются в общем потоке страницы. Вложенная область прокрутки
   здесь не годится: из-за дробной высоты у неё оставались 4px хода,
   прилипание не давало на них встать, и каждый жест уходил в них — со
   последней панели было не выбраться.

   Листает assets/promo.js: он лишь выбирает следующую панель, а прокруткой
   занимается браузер. На краях скрипт не вмешивается, и страница идёт дальше. */
@media (min-width: 900px) {
  .promo {
    min-height: calc(100vh - 116px);
    min-height: calc(100svh - 116px);
    scroll-margin-top: 96px;      /* шапка висит поверх и съедает верх экрана */
  }
  .promo__in { max-width: 620px; }
  .promo__title { font-size: 52px; }
  .promo__text { max-width: 520px; font-size: 18px; }
}

/* ══ АДАПТИВ ОБЛИКА ═════════════════════════════════════════════════
   Скин собирался на 1920, и на узких экранах он разъезжался по одной
   общей причине: скин адресует шапку через .header .nav (два класса),
   а прежние мобильные правила прячут её через .nav (один). Скрытие
   проигрывало, меню оставалось в строке и выдавливало логотип в ноль.
   Поэтому здесь всюду та же специфичность, что и в самом скине.     */

/* ── Ноутбук: полоса категорий перестаёт наезжать на первый экран ──
   Ленту подтягивали вверх на 80–130px, потому что герой был ровно 680–731px
   и под ним оставалась пустота. В новом облике высота героя течёт по
   содержимому, и этот подъём кладёт карточки поверх кнопок. */
@media (max-width: 1400px) {
  .cat-strip { margin-top: 0; }
}

/* ── Ноутбук: подвал перестаёт держать фиксированные колонки ──────
   400+280+280 с зазорами дают 1080px, а полоса на 1112 сжимается до 984 —
   четвёртая колонка уезжала за экран. Ниже 1100 её и так складывает
   в две, здесь нужна только текучая раскладка на промежутке. */
@media (min-width: 1101px) and (max-width: 1400px) {
  .footer__cols { grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); }
}

/* ── Планшет: контакты уходят раньше меню ────────────────────────── */
@media (max-width: 1150px) {
  .header .header__contacts { display: none; }
  .header__inner { gap: 12px; }
}

/* ── Планшет и телефон: меню сворачивается в бургер ──────────────── */
@media (max-width: 900px) {
  .header .nav { display: none; }
  .burger { display: flex; flex: none; margin-left: auto; }

  /* Первый экран. Прежняя мобильная вёрстка клала фото полосой на 250px
     сверху, а текст — на глухую темноту под ней; в новом облике кадр идёт
     во всю площадь, и полоса резала фуру пополам. Приём тот же, что на
     десктопе: фото целиком, поверх — тёмное стекло. */
  /* Герой — флекс-строка, и плашка логистики, выйдя из абсолютного
     положения, вставала рядом с кнопками, а не под ними. */
  .hero { display: block; min-height: 0; padding: 96px 0 30px; }
  .hero__photo { inset: 0; height: auto; background-position: center center; }
  .hero::after {
    background: linear-gradient(180deg,
      rgba(0, 8, 6, .42) 0%, rgba(0, 8, 6, .72) 58%, rgba(0, 8, 6, .88) 100%);
  }
  /* Косые плашки старого героя заданы в пикселях под широкий экран:
     у .hero__fold ширина 800px, на телефоне он просто торчит за краем. */
  .hero__fold, .hero__wedge { display: none; }
  /* Диагональное стекло начинается с 870px и на планшете накрывало кадр
     целиком, да ещё вторым слоем поверх градиента выше. */
  .hero__mask { display: none; }

  .hero__col { width: auto; max-width: none; margin: 0; padding: 0 var(--edge); }
  .hero .h1.h1 { max-width: none; padding-top: 0; font-size: clamp(38px, 9vw, 58px); }
  .hero__lead { max-width: none; margin-top: 16px; font-size: 16px; }
  /* В ряд две кнопки при 834 не встают: первая забирает всю ширину,
     вторая переносится и уходит под полосу категорий. */
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }
  /* На планшете кнопка во всю полосу в 770px читается как баннер,
     поэтому потолок; на телефоне до него не доходит и работает 100%. */
  .hero .btn { width: 100%; max-width: 420px; }

  /* Колонок три, а показателей два — третья доля оставалась пустой,
     и «лет на рынке» ломалось на три строки в своей трети. */
  .stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-top: 26px; }
  .stat__label { font-size: 12.5px; }
  /* Плашка приколочена к правому нижнему углу героя, и на планшете
     ложилась поверх полосы категорий. Возвращаем её в поток. */
  .cold-badge { position: static; width: auto; margin: 24px var(--edge) 0; }
}

/* ── Узкие экраны: карточка категории тем же приёмом, но плотнее ─── */
@media (max-width: 760px) {
  .cat-strip__band { padding: 14px 0 18px; }
  .cat-strip__grid { grid-template-columns: 1fr; gap: 12px; }
  /* Прежняя мобильная вёрстка делала из карточки grid 96px|1fr|24px,
     но фото у скина абсолютное — в сетке оно не участвовало и ложилось
     поверх текста. Возвращаем схему скина: текст слева, кадр справа. */
  .cat-card { display: block; min-height: 166px; padding: 0; }
  .cat-card__photo { position: absolute; inset: 0 0 0 auto; width: 46%; height: 100%; border-radius: 0; }
  .cat-card__body { max-width: 60%; padding: 18px 0 18px 20px; }
  .cat-card__title { font-size: 18px; }
  .cat-card__text { font-size: 12.5px; }
  .cat-card__go { margin-top: 10px; padding: 8px 16px; font-size: 14px; }
}

/* ── Телефон: шапка, подвал, форма ───────────────────────────────── */
@media (max-width: 560px) {
  /* Код страны занимал отдельную строку во всю ширину: три символа «RU +7»
     на 358px читаются как пустая полоса. Ставим рядом с номером — «+7» и
     поле ввода в одной строке привычнее и короче на 70px по высоте. */
  .phone { flex-wrap: nowrap; }
  .phone__code { flex: none; width: 108px; }
  .phone__num { flex: 1; min-width: 0; }
  .header { top: 8px; padding: 0 10px; }
  .header__inner { height: 54px; }
  .header .logo { padding: 0 14px; }
  .logo__img { height: 30px; }
  .burger { width: 40px; height: 40px; }
  .footer .logo { padding: 11px 20px; }
  .footer .logo__img { height: 32px; }
  body:not(.home) { padding-top: 76px; }
}

/* ── Выпадающее меню ─────────────────────────────────────────────
   Отдельная панель, а не .nav в другой раскладке: .nav лежит в строке
   таблеток и завязан на её высоту, и раскладывать его вниз пришлось бы
   правилами поверх десятка чужих. Панель собирает menu.js из тех же
   ссылок, так что список нигде не дублируется.                     */
/* Панель висит на полосе таблеток, а не на .header: у шапки свои поля,
   и по left/right она растягивалась от края до края экрана. */
.header__inner { position: relative; }
.mmenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  display: none;
  flex-direction: column;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .70);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 18px 46px rgba(4, 84, 60, .22);
}
.header.is-menu .mmenu { display: flex; }
.mmenu a {
  padding: 13px 16px;
  border-radius: 14px;
  color: var(--kp-ink, #17321F);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.mmenu a:hover, .mmenu a:focus-visible { background: rgba(129, 199, 60, .14); }
.mmenu a + a { box-shadow: inset 0 1px 0 rgba(23, 50, 31, .08); }
.mmenu__contact { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mmenu__contact svg { flex: none; color: var(--kp-brand, #3E9B4F); }
/* Крестик вместо полосок, пока меню открыто. */
.header.is-menu .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.header.is-menu .burger span:nth-child(2) { opacity: 0; }
.header.is-menu .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.burger span { transition: transform .18s ease, opacity .18s ease; }

/* ══ ГЛАВНАЯ КАК ПРЕЗЕНТАЦИЯ ════════════════════════════════════════
   Один проворот колеса — один экран, и для этого каждый блок главной
   должен умещаться в окно за вычетом шапки. Всё ниже привязывает
   вертикальные величины к высоте окна: на 1080 остаётся как было,
   на 890 плотнее, на 768 — совсем плотно, но ничего не прячется.

   Только .home: те же .section живут на каталоге и в карточке товара,
   где листалки нет и ужимать нечего.                                */
/* Условие то же, что у листалки в promo.js: ужимаем только там, где
   блок действительно становится экраном. На планшете листают пальцем,
   и там вёрстка остаётся прежней, просторной. */
@media (min-width: 1440px) and (min-height: 860px) and (hover: hover) and (pointer: fine) {
  /* Два порога, и оба по делу. По ширине: ниже 1400 проектная вёрстка
     складывает тарифы, склад, карточки доверия и путь груза в одну-две
     колонки, и блок становится втрое выше окна — ужимать там нечего.
     По высоте: на окне ниже 820px даже сжатые секции не помещаются,
     и половина экранов обрывалась бы на середине.
     Где презентация не включается, работает обычная прокрутка и
     прежняя, просторная вёрстка.
     96px сверху и снизу — это 192px, почти четверть окна ноутбука.
     Одни эти поля выталкивали половину блоков за край экрана. */
  .home .section { padding-block: clamp(26px, 3.5svh, 96px); }
  .home .section__head { margin-bottom: clamp(14px, 2svh, 40px); }
  .home .proc-heading { margin: 0 0 clamp(16px, 2.4svh, 32px); font-size: clamp(22px, 2.9svh, 26px); }

  /* Отзывам была задана жёсткая высота в 900px — ужаться они не могли
     в принципе, а на 1440 раскладка вдобавок разъезжалась до 1218px. */
  .home .reviews-sec { min-height: 0; padding: clamp(26px, 3.5svh, 96px) 0; }

  /* Внутренние поля карточек — оттуда же берётся остаток высоты. */
  .home .plan { padding: clamp(18px, 2.6svh, 32px); }
  .home .trust-card__body { padding: clamp(14px, 2.2svh, 24px); }
  .home .proc-card__body { padding: clamp(12px, 2svh, 18px) 18px clamp(14px, 2.2svh, 22px); }

  /* Отзывы. Карточка была шириной ровно 445px, три в ряд с зазорами дают 1367,
     а контент-зона на ноутбуке 1440 — только 1360: третья карточка срывалась
     на вторую строку, и секция вырастала с 935 до 1218px. Делаем ширину текучей
     с прежним потолком — на широком экране ничего не меняется. */
  .home .review-card { width: auto; flex: 1 1 398px; max-width: 445px;
                       min-height: clamp(170px, 25svh, 275px);
                       padding: clamp(22px, 3.4svh, 35px) 32px clamp(20px, 3.2svh, 32px); }
  .home .reviews-head { margin-bottom: clamp(14px, 2.3svh, 50px); }
  .home .reviews-title { font-size: clamp(32px, 5.6svh, 57px); }
  .home .reviews-sub { margin-top: clamp(10px, 1.8svh, 25px); font-size: clamp(16px, 2.2svh, 21px); }

  /* Наличие. Высоту карточки задавало фото пропорцией 680/440 — на четырёх
     колонках это 200px только под снимок. Пропорцию отпускаем, но contain
     оставляем: в каталоге 19 тысяч снимков неизвестных пропорций. */
  /* Снимок был ужат до 120px, и растение в нём терялось. Кадры пересобраны
     по границам растения в пропорцию карточки, а высоту блока подняли —
     место под неё взяли у полей секции, шапки и нижней плашки. */
  .home .prod__photo { aspect-ratio: auto; height: clamp(150px, 21svh, 230px); }
  .home .prod__body { padding: 12px 14px 14px; }
  .home .prod__art { margin-bottom: 3px; }
  /* Место под две строки названия резервируем всегда: иначе у карточки
     с длинным именем плашка цены съезжает вниз и ряд выглядит рваным. */
  .home .prod__name { margin-bottom: 3px; font-size: 17px; min-height: 2.6em; }
  .home .prod__pack { margin-bottom: 10px; }
  /* Нижняя плашка «в веб-шопе» — самый дешёвый резерв высоты в этой секции. */
  .home .wide-cta { margin-top: clamp(14px, 2.2svh, 48px); padding: clamp(16px, 2.4svh, 32px) 40px; }
  .home .wide-cta__text { font-size: clamp(18px, 2.6svh, 24px); }
  .home .prod__body { padding: clamp(10px, 1.6svh, 16px) 16px clamp(12px, 1.8svh, 18px); }

  /* Склад и тарифы: остаток высоты добираем полями списков. */
  .home .feature { gap: clamp(10px, 1.6svh, 18px); }
  .home .plan__list { margin-top: clamp(10px, 1.6svh, 18px); }
  .home .plan__list li { margin-bottom: clamp(6px, 1svh, 12px); }

  /* Заголовки секций считались только от ширины окна: на 1920 это 52px
     независимо от того, 1080 у окна высоты или 890. Берём меньшее из двух
     мер — на высоком экране кегль прежний, на низком уступает место. */
  .home .h2.h2 { font-size: clamp(28px, min(3.2vw, 5.2svh), 52px); }
  .home .section__head .lead { margin-top: clamp(8px, 1.4svh, 20px);
                               font-size: clamp(15px, 2.1svh, 18px); }

  /* Первый экран: герой с полосой категорий вместе давали 924px и на окне
     900 не помещались. Высота и верхнее поле — от окна, шапка учтена. */
  .home .hero { min-height: clamp(470px, 57svh, 640px);
                padding-top: clamp(118px, 15svh, 148px);
                padding-bottom: clamp(16px, 2.4svh, 32px); }
  .home .hero__col { padding-block: clamp(20px, 4svh, 72px) clamp(24px, 6svh, 132px); }
  .home .cat-strip__band { padding-block: clamp(10px, 1.6svh, 16px) clamp(16px, 4svh, 48px); }

  /* У секции стоит overflow: hidden ради фоновой графики. В режиме
     презентации это опасно: при системном масштабе 125% или неподхваченном
     шрифте низ карточек был бы срезан, а не прокручен. Графику держит в
     своих границах .trust-deco — у него overflow: hidden свой. */
  .home .section--trust { overflow: visible; }
}

/* Замок прокрутки на время попапа. Ставится на корневой элемент —
   именно он прокручивается, у body своего хода нет. */
html.is-modal { overflow: hidden; }

/* ══ ПОПАП ВХОДА И РЕГИСТРАЦИИ ══════════════════════════════════════
   Пять полей в один столбец не помещались в окно ноутбука, и форму
   приходилось прокручивать внутри попапа. Раскладываем короткие поля
   попарно: рядов становится три вместо пяти, и всё видно сразу.
   На самой странице register.php форма остаётся в столбик — там места
   вдоволь, а привычный порядок чтения сверху вниз удобнее.          */
.amodal__body .auth--modal { padding: 22px 26px 26px; }
.amodal__body .auth--modal .h2 { font-size: 26px; }
.amodal__body .auth--modal .auth__lead { margin-bottom: 16px; font-size: 15px; }

.amodal__body .auth--modal #regform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  align-items: start;
  width: 100%;
}
/* Поля во всю ширину: пароль, свёрнутые реквизиты, согласие и кнопка.
   Ловушка для ботов вынесена за экран абсолютом и ячейку не занимает. */
.amodal__body .auth--modal #regform > .ffield--wide,
.amodal__body .auth--modal #regform > .auth__more,
.amodal__body .auth--modal #regform > .auth__agree,
.amodal__body .auth--modal #regform > .ffield__err,
.amodal__body .auth--modal #regform > .btn { grid-column: 1 / -1; }

.amodal__body .auth--modal .ffield { margin-bottom: 10px; }
.amodal__body .auth--modal .ffield__label { margin-bottom: 4px; }
.amodal__body .auth--modal .ffield__hint { margin-top: 3px; font-size: 12px; line-height: 1.35; }
.amodal__body .auth--modal .finput { height: 46px; }
  .amodal__body .auth--modal .phone { height: 46px; }
/* В два столбца на поле остаётся ~170px, и «+7 999 555-66-22» не влезал —
     начало строки уезжало за левый край. Поджимаем код и кегль номера. */
  .amodal__body .auth--modal .phone__code { width: 84px; flex: none; padding: 0 24px 0 10px;
                                            font-size: 14px; background-position: right 7px center; }
  .amodal__body .auth--modal .phone__num { padding: 0 10px; font-size: 15px; }
.amodal__body .auth--modal .auth__more { margin: 2px 0 0; }
.amodal__body .auth--modal .auth__more summary { padding: 8px 0; font-size: 14px; }
.amodal__body .auth--modal .auth__agree { margin-top: 8px; font-size: 14px; }
.amodal__body .auth--modal .auth__form .btn { width: 100%; margin-top: 10px; }
.amodal__body .auth--modal .auth__alt { margin-top: 12px; font-size: 14px; }

/* На телефоне два столбца не поместятся — возвращаем один и поджимаем
   всё, что можно, чтобы прокрутка внутри попапа осталась минимальной. */
@media (max-width: 560px) {
  .amodal__body .auth--modal #regform { grid-template-columns: 1fr; }
  .amodal__body .auth--modal { padding: 18px 16px 20px; }
  .amodal__body .auth--modal .h2 { font-size: 22px; }
  .amodal__body .auth--modal .auth__lead { margin-bottom: 12px; font-size: 14px; }
  .amodal__body .auth--modal .finput { height: 44px; }
  .amodal__body .auth--modal .phone { height: 44px; }
  .amodal__body .auth--modal .ffield { margin-bottom: 8px; }
  .amodal__body .auth--modal .ffield__hint { font-size: 11.5px; }
  .amodal__body .auth--modal .auth__agree { font-size: 13px; }
}

/* ══ ПОЛЕ ТЕЛЕФОНА ══════════════════════════════════════════════════
   Код страны и номер стояли двумя отдельными прямоугольниками с зазором
   и читались как два несвязанных поля. Собираем их в одну капсулу:
   рамка общая, внутри тонкая перегородка, подсветка при фокусе — на всю
   капсулу, какая бы её часть ни была активна.                        */
.phone {
  gap: 0;
  align-items: stretch;
  /* Высота — у капсулы, внутренностям остаётся всё, что внутри рамки.
     Иначе селект со своими 52px делал ряд телефона толще соседних полей. */
  height: 52px;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--r-btn);
}
.phone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(140, 192, 32, .28); }
.phone .phone__code {
  border: 0;
  border-right: 1px solid var(--bd);
  border-radius: var(--r-btn) 0 0 var(--r-btn);
  background-color: transparent;
}
.phone .phone__code:focus { outline: 0; border-color: var(--bd); border-right-color: var(--bd); }
.phone .phone__num {
  border: 0;
  border-radius: 0 var(--r-btn) var(--r-btn) 0;
  background: transparent;
  font-variant-numeric: tabular-nums;   /* цифры в маске не пляшут по ширине */
  letter-spacing: .01em;
}
.phone .phone__num:focus { outline: 0; border-color: transparent; }
.phone .phone__code, .phone .phone__num { height: 100%; }

/* На узком экране код уезжает в свою строку — там капсула не нужна. */
@media (max-width: 460px) {
  .phone { border: 0; background: none; box-shadow: none; gap: 10px; height: auto; }
  .phone:focus-within { box-shadow: none; }
  .phone .phone__code,
  .phone .phone__num { border: 1px solid var(--bd); border-radius: var(--r-btn); background: #fff; }
  .phone .phone__code:focus,
  .phone .phone__num:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
}

/* ══ ЛЕНТА ТОВАРОВ ══════════════════════════════════════════════════
   Сетка на четыре колонки превращается в прокручиваемую ленту: стрелки
   в шапке секции получают что листать, а на узком экране карточки
   пролистываются пальцем, вместо того чтобы сжиматься до нечитаемых.
   Только на главной: в карточке товара тем же классом свёрстан блок
   «похожие», и лента ему не нужна.                                   */
.home .prod-grid {
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: calc((100% - var(--gap-lg) * 3) / 4);
  overflow-x: auto;
  overscroll-behavior-x: contain;   /* лента не уводит страницу вбок в конце */
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;              /* иначе край ленты срезает тень карточек */
}
.home .prod-grid::-webkit-scrollbar { display: none; }
/* Кадры на главной пересобраны по границам растения в пропорцию 596×400.
   В каталоге пропорция остаётся прежней: там снимки неизвестных форматов,
   и единый ритм плиток держится именно ею. */
.home .prod__photo { aspect-ratio: 596 / 400; }
.arrow:disabled { opacity: .4; cursor: default; }

@media (max-width: 1100px) { .home .prod-grid { grid-auto-columns: calc((100% - var(--gap-lg)) / 2.2); } }
@media (max-width: 640px)  { .home .prod-grid { grid-auto-columns: 78%; } }

/* ══ КОРЗИНА ЗАЯВОК ═════════════════════════════════════════════════ */
.cart { max-width: 1040px; }
.cart__empty { margin: 0 0 24px; color: var(--text-2); font-size: 17px; }

.cart__list { display: grid; gap: 12px; margin: 24px 0 0; }
.cart__row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 150px 170px 28px;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
}
.cart__pic { display: block; }
/* contain, а не cover: в каталоге снимки неизвестных пропорций, обрезать нельзя */
.cart__pic img { width: 84px; height: 64px; object-fit: contain; background: #fff; }
.cart__name { display: block; font-weight: 600; line-height: 1.3; color: var(--text); }
.cart__name:hover { color: var(--accent-deep); }
.cart__meta { margin-top: 4px; font-size: 13px; color: var(--text-2); }

.cart__qty { display: block; }
.cart__qty-label { display: block; margin-bottom: 4px; font-size: 12px; color: var(--text-2); }
.cart__qty .finput { height: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.cart__qty-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--text-2); }

.cart__sum { text-align: right; font-size: 15px; }
.cart__sum b { display: block; font-size: 18px; }
.cart__each { display: block; margin-top: 2px; font-size: 12px; color: var(--text-2); }

.cart__del {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  color: var(--text-2); font-size: 20px; line-height: 1;
  text-decoration: none;
}
.cart__del:hover { background: var(--bg-tile); color: #B4452B; }

.cart__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-top: 18px;
}
.cart__total { display: flex; align-items: baseline; gap: 16px; font-size: 15px; color: var(--text-2); }
.cart__total b { font-size: 22px; color: var(--text); }
.cart__total-lock { font-size: 16px !important; font-weight: 600; color: var(--accent-deep) !important; }

.cart__order { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--bd); }
.cart__lead { margin: 8px 0 24px; color: var(--text-2); }
.cart__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; width: 100%; }

/* Пункт «Заявка» в шапке: лаймовый кружок с числом позиций. */
.nav__cart.is-on { font-weight: 600; }
.nav__cart-n {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--accent); color: #17321F;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.pbuy__incart { margin: 10px 0 0; font-size: 14px; }

@media (max-width: 900px) {
  /* Пять колонок на планшете не помещаются: сумма и счётчик уходят вниз,
     фото и название остаются наверху строки. */
  .cart__row { grid-template-columns: 72px minmax(0, 1fr) 28px; row-gap: 12px; }
  .cart__pic img { width: 72px; height: 56px; }
  .cart__qty { grid-column: 1 / 3; display: flex; align-items: center; gap: 10px; }
  .cart__qty-label { margin: 0; }
  .cart__qty .finput { width: 92px; }
  .cart__qty-hint { margin: 0; }
  .cart__sum { grid-column: 3 / 4; grid-row: 2; text-align: right; }
  .cart__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* Крестик занимал в сетке отдельную строку под карточкой и читался как
     оторванный элемент. Уводим его в угол — там он и ожидается. */
  .cart__row { position: relative; grid-template-columns: 64px minmax(0, 1fr); padding: 12px 40px 12px 14px; gap: 12px; }
  .cart__pic img { width: 64px; height: 52px; }
  .cart__qty { grid-column: 1 / -1; }
  .cart__sum { grid-column: 1 / -1; grid-row: auto; text-align: left; }
  .cart__del { position: absolute; top: 8px; right: 8px; }
  .cart__foot { flex-direction: column; align-items: stretch; }
}

/* ══ ПЛАВАЮЩАЯ КНОПКА ЗВОНКА ════════════════════════════════════════
   С телефона звонят чаще, чем пишут, а номер лежит в подвале — до него
   ещё надо долистать. Кнопка висит в углу и всегда под большим пальцем.  */
.callfab {
  position: fixed;
  right: 16px;
  /* отступ от нижнего края учитывает панель браузера на iPhone */
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 55;                  /* ниже шапки, попап рисуется поверх всего сам */
  display: none;                /* показываем только там, где звонок уместен */
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #17321F;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(4, 84, 60, .32);
}
.callfab:active { background: var(--accent-deep); color: #fff; }
.callfab svg { flex: none; }

/* Только там, где есть чем позвонить: на десктопе tel: обычно ведёт в пустоту. */
@media (max-width: 900px) and (pointer: coarse) {
  .callfab { display: inline-flex; }
  /* Подвалу нужен запас снизу, иначе кнопка накрывает реквизиты. */
  .footer { padding-bottom: 92px; }
}

/* На узком экране подпись съедает место у края — оставляем одну трубку. */
@media (max-width: 420px) {
  .callfab { width: 56px; padding: 0; justify-content: center; }
  .callfab__t { display: none; }
}

/* Пока открыт попап, кнопка не должна торчать поверх затемнения. */
body:has(dialog[open]) .callfab { display: none; }

/* ══ ВЫБОР ТИПА КЛИЕНТА ═════════════════════════════════════════════
   Две кнопки-переключателя вместо радиокнопок: попасть пальцем в точку
   14px на телефоне трудно, а по всей плашке — легко. Сама радиокнопка
   остаётся в разметке и работает без JavaScript. */
.tabs--kind { display: flex; gap: 8px; width: 100%; }
.tabs--kind .tabs__b { flex: 1; display: flex; align-items: center; justify-content: center;
                       gap: 8px; cursor: pointer; text-align: center; }
.tabs--kind input { position: absolute; opacity: 0; width: 0; height: 0; }
/* Без JavaScript подсветку даёт сам браузер по состоянию радиокнопки. */
.tabs--kind .tabs__b:has(input:checked) { background: var(--accent-soft, #EFF6E3);
                                          border-color: var(--accent); font-weight: 600; }
.tabs--kind .tabs__b:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Consent shared by customer forms, including modal forms. */
.legal-agree { display:flex; align-items:flex-start; gap:10px; grid-column:1 / -1; margin:12px 0; font-size:13px; line-height:1.5; text-align:left; }
.legal-agree input[type="checkbox"] { flex:0 0 18px; width:18px; height:18px; margin:2px 0 0; padding:0; accent-color:var(--accent); }
.legal-agree a, .legal-documents a { text-decoration:underline; text-underline-offset:3px; }
.legal-documents { font-size:13px; line-height:1.8; margin:20px 0; }
.legal-page { max-width:860px; }
.legal-page nav { margin-bottom:24px; font-size:14px; }
.legal-page article { overflow-wrap:anywhere; line-height:1.75; }
.legal-page article h1 { margin-bottom:28px; }
.legal-page article h2 { margin:32px 0 16px; font-size:24px; line-height:1.35; }
.legal-page article p { margin:0 0 16px; }
.header .nav { gap:20px; padding-inline:24px; }
.header .nav > a { white-space:nowrap; flex-shrink:0; }
@media (max-width:1650px) { .header .header__contacts { display:none; } }
@media (max-width:1250px) {
  .header .nav { display:none; }
  .header .burger { display:flex; flex:none; margin-left:auto; }
}
@media (max-width:600px) { .legal-page article h1 { font-size:28px; } }
