/* ==========================================================================
   ЭКСПРО — дизайн-система 2.0
   Цвета взяты с собственной техники завода: зелёная рама и жёлтые кожухи.
   Жёлтый — только для действий. Индексы моделей набраны Unbounded, как маркировка.
   ========================================================================== */

:root {
  /* поверхности */
  --bg: #EEF1EC;            /* оцинковка: холодный светлый */
  --surface: #FFFFFF;
  --surface-2: #E3E8E1;
  --line: rgba(14, 26, 18, .12);
  --line-strong: rgba(14, 26, 18, .22);

  /* текст */
  --ink: #0E1A12;
  --ink-2: #48554C;
  --ink-3: #78857B;

  /* ливрея */
  --green: #1E7A3C;         /* краска рамы */
  --green-ink: #0F3D22;     /* тёмные полосы */
  --green-deep: #0A2A17;
  --yellow: #F2C10D;        /* кожухи — только действия */
  --yellow-hi: #FFD43B;
  --yellow-ink: #221A00;

  /* служебные */
  --ok: #1E7A3C;
  --warn: #B26A00;
  --danger: #B3261E;
  --sky: #3E8FD6;

  /* типографика */
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .9375rem;   /* 15 */
  --fs-md: 1.0625rem;  /* 17 */
  --fs-lg: clamp(1.1875rem, .9rem + .7vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1rem + .9vw, 1.625rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  --fs-h1: clamp(2.25rem, 1.3rem + 4.2vw, 4.75rem);
  --fs-index: clamp(2.5rem, 1.4rem + 4.6vw, 5.5rem);

  /* ритм */
  --gut: clamp(1rem, .6rem + 2vw, 2.25rem);
  --sec: clamp(3.5rem, 2.4rem + 4.5vw, 7rem);
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --pill: 999px;

  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-md)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--green); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--yellow-ink); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.08; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.02em; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
h4 { font-size: var(--fs-lg); }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- раскладка ---------- */
.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); }
.section--tight { padding-block: calc(var(--sec) * .6); }
.section--flush-top { padding-top: 0; }
.section--white { background: var(--surface); }
.section--tint { background: var(--surface-2); }
.section--dark { background: var(--green-ink); color: #E8F0E9; }
.section--dark .muted, .section--dark .lead { color: #B7C9BB; }
.section--deep { background: var(--green-deep); color: #E8F0E9; }

.head { display: grid; gap: 14px; max-width: 60ch; margin-bottom: clamp(28px, 3vw, 48px); }
.head--row {
  max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 32px;
}
.head--row > :first-child { display: grid; gap: 14px; max-width: 60ch; }
@media (max-width: 760px) { .head--row { grid-template-columns: minmax(0, 1fr); row-gap: 18px; } }

.lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); color: var(--ink-2); }
.tiny { font-size: var(--fs-xs); color: var(--ink-3); }
.label { font-size: var(--fs-sm); font-weight: 600; color: var(--green); }
.section--dark .label, .section--deep .label { color: var(--yellow); }

.grid { display: grid; gap: clamp(14px, 1.6vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--top { align-items: start; }
@media (max-width: 900px) { .split, .split--7-5, .split--5-7 { grid-template-columns: minmax(0, 1fr); } }

.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-s { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- кнопки ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--pill);
  border: 1.5px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font: 600 var(--fs-sm)/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--accent { --b-bg: var(--yellow); --b-fg: var(--yellow-ink); --b-bd: var(--yellow); }
.btn--accent:hover { --b-bg: var(--yellow-hi); --b-bd: var(--yellow-hi); }
.btn--dark:hover { --b-bg: #22352A; --b-bd: #22352A; }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-strong); }
.btn--ghost:hover { --b-bd: var(--ink); }
.btn--light { --b-bg: #fff; --b-fg: var(--ink); --b-bd: #fff; }
.btn--light:hover { --b-bg: var(--yellow); --b-bd: var(--yellow); --b-fg: var(--yellow-ink); }
.btn--on-dark { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255,255,255,.35); }
.btn--on-dark:hover { --b-bd: #fff; }
.btn--wa { --b-bg: #1F9D55; --b-fg: #fff; --b-bd: #1F9D55; }
.btn--wa:hover { --b-bg: #188447; --b-bd: #188447; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn--icon { width: 44px; min-height: 44px; padding: 0; }
.btn.is-added { --b-bg: var(--green); --b-fg: #fff; --b-bd: var(--green); }

.text-link { font-weight: 600; color: var(--green); text-decoration: underline; text-decoration-color: rgba(30,122,60,.35); }
.text-link:hover { text-decoration-color: var(--green); }
.section--dark .text-link { color: var(--yellow); text-decoration-color: rgba(242,193,13,.4); }

/* ---------- шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.site-header.is-solid, .page--inner .site-header {
  background: rgba(238, 241, 236, .9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; }
.brand__name { font: 700 1.25rem/1 var(--font-display); letter-spacing: .01em; }
.brand__sub { display: block; font: 500 .75rem/1.2 var(--font-body); color: var(--ink-2); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative; padding: 10px 14px; border-radius: var(--pill);
  font-weight: 500; font-size: var(--fs-sm); text-decoration: none; transition: background .2s;
}
.nav__link:hover { background: rgba(14, 26, 18, .06); }
.nav__link[aria-current="page"] { background: var(--ink); color: #fff; }
.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.tel-link { font-weight: 700; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; display: flex; flex-direction: column; line-height: 1.2; }
.tel-link small { font-weight: 500; font-size: .72rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.req-btn { position: relative; }
.req-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pill);
  background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700;
  display: inline-grid; place-items: center;
}
.btn--accent .req-count { background: var(--yellow-ink); color: var(--yellow); }
.menu-toggle { display: none; }

@media (max-width: 1120px) {
  .nav, .tel-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .brand__sub { display: none; }
  .brand img { width: 38px; height: 38px; }
  .req-btn .req-label { display: none; }
  .req-btn { padding: 0 14px; }
}

/* статус «открыто сейчас» */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-xs); font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status[data-open="1"]::before { background: #2FB15D; box-shadow: 0 0 0 4px rgba(47,177,93,.18); }
.status[data-open="0"]::before { background: #C9862B; }

/* мобильное меню */
.drawer {
  position: fixed; inset: 0; z-index: 120; background: var(--green-deep); color: #fff;
  display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gut) calc(env(safe-area-inset-bottom, 0px) + 24px);
  transform: translateY(-100%); transition: transform .35s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  font: 600 clamp(1.6rem, 6vw, 2.2rem)/1.2 var(--font-display); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.drawer__nav a[aria-current="page"] { color: var(--yellow); }
.drawer__foot { margin-top: auto; display: grid; gap: 12px; }
.drawer__foot a.tel { font: 700 1.25rem/1.3 var(--font-body); text-decoration: none; }

/* ---------- герой главной ---------- */
.hero { position: relative; min-height: min(100svh, 980px); overflow: hidden; background: #3E8FD6; display: flex; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__content {
  position: relative; z-index: 1; width: 100%;
  padding-top: calc(var(--header-h) + clamp(36px, 7vh, 96px));
  padding-bottom: clamp(220px, 34vh, 360px);
}
.hero__title { font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5.75rem); line-height: .98; max-width: 11ch; color: var(--ink); }
.hero__lede { margin-top: 24px; max-width: 42ch; font-size: var(--fs-lg); line-height: 1.5; color: #1B2A20; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: var(--fs-sm); font-weight: 600; color: #1B2A20;
}
.hero__facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 18px; height: 18px; color: var(--green); }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero__content { padding-bottom: 300px; }
  .hero__facts { margin-top: 28px; }
}

/* бегущая строка индексов */
.ticker { background: var(--ink); color: #fff; overflow: hidden; border-block: 1px solid #000; }
.ticker__track { display: flex; gap: 48px; width: max-content; padding-block: 16px; animation: ticker 38s linear infinite; }
.ticker__item { font: 600 1.05rem/1 var(--font-display); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.ticker__item::after { content: ""; width: 8px; height: 8px; background: var(--yellow); transform: rotate(45deg); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- сегментный переключатель ---------- */
.seg {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill);
}
.seg__btn {
  border: 0; background: transparent; cursor: pointer;
  padding: 11px 20px; border-radius: var(--pill); font-weight: 600; font-size: var(--fs-sm);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.seg__btn:hover { background: var(--surface-2); }
.seg__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg__btn .seg__count { opacity: .55; margin-left: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .seg { display: flex; overflow-x: auto; flex-wrap: nowrap; border-radius: var(--r-m); scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg__btn { flex: none; }
}

/* ---------- плитка модели ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tiles--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tiles, .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles, .tiles--4 { grid-template-columns: minmax(0, 1fr); } }

.tile {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border-radius: var(--r-m); overflow: hidden;
  border: 1px solid var(--line); transition: border-color .2s var(--ease);
}
.tile:hover { border-color: var(--line-strong); }
.tile__media { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .5s var(--ease); }
.tile__media--cover img { object-fit: cover; padding: 0; }
.tile:hover .tile__media img { transform: scale(1.03); }
.tile__media--empty { background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, #E9EDE6 14px 28px); }
.tile__media--empty span { font: 600 var(--fs-sm)/1.3 var(--font-body); color: var(--ink-2); background: var(--surface); padding: 8px 14px; border-radius: var(--pill); }
.tile__badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 6px 11px; border-radius: var(--pill);
}
.tile__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; border-top: 1px solid var(--line); }
.tile__kind { font-size: var(--fs-xs); color: var(--ink-2); font-weight: 500; }
.tile__index { font: 700 clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem)/1 var(--font-display); letter-spacing: -.02em; }
.tile__index a { text-decoration: none; }
.tile__index a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.tile__specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.tile__specs li { font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); padding: 5px 10px; border-radius: var(--pill); }
.tile__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.tile__price { font: 700 1.2rem/1.1 var(--font-body); font-variant-numeric: tabular-nums; }
.tile__price small { display: block; font-size: .72rem; font-weight: 500; color: var(--ink-3); margin-top: 3px; }
.tile__price--ask { font-size: 1rem; color: var(--ink-2); }
.tile__tools { display: flex; gap: 6px; }
.tile .icon-btn { position: relative; z-index: 1; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); display: inline-grid; place-items: center; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.icon-btn--add[aria-pressed="true"] { background: var(--green); border-color: var(--green); }

/* ---------- линейка (главная) ---------- */
.lines { display: grid; gap: clamp(16px, 2vw, 24px); }
.line {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--surface); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line);
}
.line:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.line:nth-child(even) .line__media { order: 2; }
.line__media { background: #fff; display: grid; place-items: center; min-height: 320px; position: relative; }
.line__media img { width: 100%; height: 100%; object-fit: contain; padding: clamp(16px, 2vw, 32px); position: absolute; inset: 0; }
.line__media--cover img { object-fit: cover; padding: 0; }
.line__body { padding: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.line__models { display: grid; gap: 0; border-top: 1px solid var(--line); }
.line__model {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.line__model b { font: 700 clamp(1.15rem, .9rem + .8vw, 1.5rem)/1 var(--font-display); letter-spacing: -.01em; }
.line__model span { font-size: var(--fs-sm); color: var(--ink-2); }
.line__model .num { font-weight: 700; white-space: nowrap; }
@media (max-width: 900px) {
  .line, .line:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .line:nth-child(even) .line__media { order: 0; }
  .line__media { min-height: 240px; }
}
@media (max-width: 520px) {
  .line__model { grid-template-columns: minmax(0, 1fr) auto; }
  .line__model span { grid-column: 1 / -1; order: 3; margin-top: -8px; }
}

/* ---------- подбор по задаче ---------- */
.picker { display: grid; gap: 28px; }
.picker__results { min-height: 200px; }

/* ---------- факты ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid currentColor; border-color: rgba(255,255,255,.18); }
.fact { padding: 24px 24px 0 0; display: grid; gap: 8px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
.fact__num { font: 700 clamp(2rem, 1.3rem + 2.6vw, 3.5rem)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact__label { font-size: var(--fs-sm); color: #B7C9BB; max-width: 22ch; }
.section:not(.section--dark):not(.section--deep) .facts { border-color: var(--line); }
.section:not(.section--dark):not(.section--deep) .fact + .fact { border-color: var(--line); }
.section:not(.section--dark):not(.section--deep) .fact__label { color: var(--ink-2); }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact + .fact { padding-left: 0; border-left: 0; }
}

/* ---------- фото-блок ---------- */
.photo { border-radius: var(--r-l); overflow: hidden; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--contain { background: #fff; }
.photo--contain img { object-fit: contain; padding: clamp(14px, 2vw, 28px); }
.photo-cap { margin-top: 10px; font-size: var(--fs-xs); color: var(--ink-3); }
.section--dark .photo-cap { color: #8FA597; }

/* ---------- сезоны (реальная последовательность) ---------- */
.seasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.season { padding: 28px 28px 0 0; position: relative; border-top: 3px solid rgba(255,255,255,.18); }
.season::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--yellow); }
.season__when { font-weight: 700; color: var(--yellow); font-size: var(--fs-sm); }
.season h3 { margin: 10px 0 14px; color: #fff; }
.season ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.season li { color: #C9D7CD; font-size: var(--fs-sm); padding-left: 0; }
.season li b { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
@media (max-width: 860px) {
  .seasons { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); counter-reset: step; }
.step { background: var(--surface); border-radius: var(--r-m); padding: 24px; display: grid; gap: 12px; align-content: start; border: 1px solid var(--line); }
.step__n {
  width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink);
  display: grid; place-items: center; font: 700 1rem/1 var(--font-display);
}
.step h3 { font-size: 1.15rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- сертификаты ---------- */
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
@media (max-width: 1000px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .certs { grid-template-columns: minmax(0, 1fr); } }
.cert { background: var(--surface); border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; color: var(--ink); }
.cert__thumb { display: block; width: 100%; padding: 0; border: 0; background: #F6F7F3; cursor: zoom-in; aspect-ratio: 3 / 4; overflow: hidden; }
.cert__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.cert__thumb:hover img { transform: scale(1.04); }
.cert__body { padding: 18px 20px 20px; display: grid; gap: 8px; font-size: var(--fs-sm); }
.cert__title { font: 600 1.05rem/1.25 var(--font-display); }
.cert dl { margin: 4px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: var(--fs-xs); }
.cert dt { color: var(--ink-3); }
.cert dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.validity { display: grid; gap: 6px; margin-top: 6px; }
.validity__bar { height: 6px; border-radius: var(--pill); background: var(--surface-2); overflow: hidden; }
.validity__bar i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.validity[data-state="soon"] .validity__bar i { background: var(--warn); }
.validity__text { font-size: var(--fs-xs); font-weight: 600; }
.validity[data-state="soon"] .validity__text { color: var(--warn); }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 20px; align-items: center;
  font: 600 var(--fs-lg)/1.35 var(--font-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%230E1A12' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .25s var(--ease), background-color .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); border-color: var(--yellow); }
.faq__a { padding: 0 56px 24px 0; color: var(--ink-2); max-width: 70ch; }

/* ---------- формы ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field .field__label { font-size: var(--fs-sm); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-width: 0; font: 500 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-s);
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(242,193,13,.35); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background: var(--surface) no-repeat right 16px center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E1A12' stroke-width='2'/%3E%3C/svg%3E"); padding-right: 40px; }
.field.is-bad .input { border-color: var(--danger); }
.field__err { font-size: var(--fs-xs); color: var(--danger); min-height: 1em; }
.section--dark .input, .section--dark .select, .section--dark .textarea { background: #fff; }
.form__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form__note { font-size: var(--fs-xs); color: var(--ink-3); max-width: 46ch; }
.section--dark .form__note, .section--dark .field label { color: #B7C9BB; }
.section--dark .field label { color: #E8F0E9; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--pill);
  background: var(--surface); border: 1.5px solid var(--line-strong); font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- таблицы ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.table th, .table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); background: #F7F8F5; position: sticky; top: 0; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr:hover { background: #FAFBF8; }
.table .t-model { font: 700 1.05rem/1.2 var(--font-display); white-space: nowrap; }
.table .t-price { font-weight: 700; white-space: nowrap; text-align: right; }
.table .t-act { text-align: right; width: 1%; white-space: nowrap; }
.table th.t-price { text-align: right; }
.spec-list { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; border-top: 1px solid var(--line); }
.spec-list dt, .spec-list dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.spec-list dt { color: var(--ink-2); padding-right: 16px; }
.spec-list dd { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- шапка внутренних страниц ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(28px, 5vw, 64px)); padding-bottom: clamp(32px, 4vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: 22px; padding: 0; list-style: none; }
.crumbs a { color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 18px; }

/* ---------- товар: шапка ---------- */
.product-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .product-hero { grid-template-columns: minmax(0, 1fr); } }
.gallery { display: grid; gap: 12px; }
.gallery__main { border-radius: var(--r-l); background: #fff; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); cursor: zoom-in; padding: 0; display: block; width: 100%; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: clamp(10px, 2vw, 24px); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery__thumb { padding: 0; border: 1.5px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: #fff; aspect-ratio: 4 / 3; cursor: pointer; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }

.model-index { font: 700 var(--fs-index)/.92 var(--font-display); letter-spacing: -.035em; }
.variants { display: grid; gap: 10px; }
.variant {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 16px 16px 20px;
}
.variant__name { font: 700 1.35rem/1.1 var(--font-display); letter-spacing: -.01em; }
.variant__specs { font-size: var(--fs-xs); color: var(--ink-2); margin-top: 4px; }
.variant__price { font-weight: 700; font-size: 1.1rem; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.variant__price small { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 500; }
@media (max-width: 520px) {
  .variant { grid-template-columns: minmax(0, 1fr) auto; }
  .variant .btn, .variant .icon-btn--add { grid-column: 1 / -1; width: 100%; border-radius: var(--pill); }
}

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.points li::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow) no-repeat center/14px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='%23221A00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.section--dark .points li { color: #E2ECE4; }

.note { border-left: 3px solid var(--yellow); background: var(--surface); padding: 14px 18px; border-radius: 0 var(--r-s) var(--r-s) 0; font-size: var(--fs-sm); color: var(--ink-2); }
.section--dark .note { background: rgba(255,255,255,.06); color: #C9D7CD; }

/* ---------- конфигуратор ПУН ---------- */
.config { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .config { grid-template-columns: minmax(0, 1fr); } }
.config__group { display: grid; gap: 10px; margin-bottom: 26px; }
.config__group h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
.opt {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 14px 18px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.opt:hover { border-color: var(--line-strong); }
.opt input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.opt:has(input:checked) { border-color: var(--ink); background: #FCFDF9; }
.opt b { font-weight: 700; display: block; }
.opt small { color: var(--ink-2); font-size: var(--fs-xs); }
.opt .num { font-weight: 700; white-space: nowrap; }
.config__sum { position: sticky; top: calc(var(--header-h) + 20px); background: var(--green-ink); color: #fff; border-radius: var(--r-l); padding: 28px; display: grid; gap: 16px; }
.config__sum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); color: #C9D7CD; }
.config__sum li { display: flex; justify-content: space-between; gap: 12px; }
.config__total { font: 700 clamp(1.8rem, 1.2rem + 2vw, 2.6rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* ---------- цены на тёмном ---------- */
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; font: 700 clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem)/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-tag small { font: 500 var(--fs-sm)/1 var(--font-body); color: var(--ink-3); letter-spacing: 0; }

/* ---------- карта ---------- */
.map { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16 / 9; position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 760px) { .map { aspect-ratio: 4 / 5; } }

/* ---------- контактные плитки ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
@media (max-width: 900px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }
.contact-card { background: var(--surface); border-radius: var(--r-m); padding: 22px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); }
.contact-card__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.contact-card__icon svg { width: 20px; height: 20px; color: var(--green); }
.contact-card a.big { font: 700 1.15rem/1.3 var(--font-body); text-decoration: none; }
.contact-card a.big:hover { color: var(--green); }

/* ---------- блок-призыв ---------- */
.cta-panel {
  background: var(--yellow); color: var(--yellow-ink); border-radius: var(--r-l);
  padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
}
.cta-panel h2 { max-width: 20ch; }
.cta-panel p { margin-top: 12px; max-width: 48ch; color: #4A3D00; }
@media (max-width: 800px) { .cta-panel { grid-template-columns: minmax(0, 1fr); } }

/* ---------- подвал ---------- */
.site-footer { background: var(--green-deep); color: #C9D7CD; padding-top: clamp(48px, 6vw, 88px); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
@media (max-width: 900px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__brand .brand__name { color: #fff; font-size: 1.6rem; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 14px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-sm); }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--yellow); }
.footer__big-tel { font: 700 1.4rem/1.2 var(--font-display); color: #fff; text-decoration: none; letter-spacing: -.01em; }
.footer__bottom {
  margin-top: clamp(36px, 5vw, 64px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: var(--fs-xs); color: #8FA597;
}
.footer__word { font: 700 clamp(4rem, 18vw, 15rem)/.8 var(--font-display); letter-spacing: -.05em; color: rgba(255,255,255,.05); margin-top: 40px; user-select: none; white-space: nowrap; overflow: hidden; }

/* ---------- нижняя панель на телефоне ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(238, 241, 236, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .action-bar .btn { min-height: 48px; padding: 0 10px; font-size: .82rem; gap: 6px; }
  body { padding-bottom: 76px; }
}

/* ---------- корзина заявки ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 140; background: rgba(10, 20, 13, .5); opacity: 0; transition: opacity .3s var(--ease); }
.sheet-backdrop.is-open { opacity: 1; }
.sheet {
  position: fixed; z-index: 150; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
  padding-top: env(safe-area-inset-top, 0px);
}
.sheet.is-open { transform: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-size: 1.35rem; }
.sheet__body { flex: 1; overflow-y: auto; padding: 18px 22px; display: grid; gap: 10px; align-content: start; }
.sheet__foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--surface); }
.sheet__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.sheet__total b { font: 700 1.5rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.req-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--r-s); padding: 12px 12px 12px 16px; border: 1px solid var(--line); }
.req-item b { display: block; font-family: var(--font-display); font-weight: 600; }
.req-item small { color: var(--ink-2); font-size: var(--fs-xs); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--pill); }
.qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; font-weight: 700; }
.qty output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet__empty { padding: 40px 0; text-align: left; display: grid; gap: 14px; }

/* ---------- панель сравнения ---------- */
.compare-bar {
  position: fixed; z-index: 75; left: 50%; bottom: 18px; transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; border-radius: var(--pill); padding: 8px 8px 8px 22px;
  display: flex; align-items: center; gap: 16px; transition: transform .35s var(--ease); max-width: calc(100% - 24px);
}
.compare-bar.is-visible { transform: translate(-50%, 0); }
.compare-bar__text { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .compare-bar { bottom: 88px; } }

.modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 16px; }
.modal__box { position: relative; background: var(--bg); border-radius: var(--r-l); width: min(1000px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: clamp(20px, 3vw, 36px); }
.modal__close { position: absolute; top: 14px; right: 14px; }
.compare-table th { font: 700 1.2rem/1.1 var(--font-display); }
.compare-table td:first-child, .compare-table th:first-child { color: var(--ink-2); font-size: var(--fs-sm); font-family: var(--font-body); font-weight: 500; }

/* ---------- лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 170; background: rgba(6, 14, 9, .94); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(env(safe-area-inset-bottom, 0px) + 16px); }
.lightbox__top { display: flex; justify-content: flex-end; gap: 8px; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-s); }
.lightbox__cap { color: #C9D7CD; text-align: center; font-size: var(--fs-sm); padding-top: 12px; }
.lightbox .icon-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ---------- тост ---------- */
.toast {
  position: fixed; z-index: 200; left: 50%; top: calc(var(--header-h) + 14px + env(safe-area-inset-top, 0px));
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--pill); font-size: var(--fs-sm); font-weight: 600;
  transition: opacity .25s var(--ease), transform .25s var(--ease); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--yellow); flex: none; }

/* ---------- поиск ---------- */
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 46px; border-radius: var(--pill); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.toolbar__right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.empty { padding: 48px 0; display: grid; gap: 14px; justify-items: start; }

/* ---------- появление при прокрутке (только с JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- печать прайса ---------- */
@media print {
  .site-header, .site-footer, .action-bar, .compare-bar, .no-print, .ticker, .sheet, .toast { display: none !important; }
  body { background: #fff; padding: 0; font-size: 11pt; }
  .page-head { padding-top: 0; }
  .table-wrap { border: 0; overflow: visible; }
  .table { min-width: 0; }
  .table .t-act { display: none; }
  a { text-decoration: none; }
  .section { padding-block: 12pt; }
}

/* ---------- доступность ---------- */
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  background: var(--yellow); color: var(--yellow-ink); padding: 12px 18px; border-radius: var(--pill);
  font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- единственное «сценарное» движение: заголовок героя при загрузке ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .hero__content > * { animation: rise .9s var(--ease) both; }
.js .hero__content > :nth-child(2) { animation-delay: .1s; }
.js .hero__content > :nth-child(3) { animation-delay: .2s; }
.js .hero__content > :nth-child(4) { animation-delay: .32s; }

/* ---------- правки после первого просмотра ---------- */
.compare-bar { visibility: hidden; }
.compare-bar.is-visible { visibility: visible; }
.fact__num { white-space: nowrap; }
.section--deep .lead, .section--deep .muted { color: #A9BCAE; }
.chip span { color: var(--ink); }

/* на телефоне подбор — лента со свайпом, каталог — компактные строки */
@media (max-width: 560px) {
  .tiles--scroll {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 12px; scrollbar-width: none;
  }
  .tiles--scroll::-webkit-scrollbar { display: none; }
  .tiles--scroll > * { flex: 0 0 84%; scroll-snap-align: start; }
  .tiles--scroll > [hidden] { display: none; }
  .tiles--scroll .tile { height: 100%; }

  .tiles:not(.tiles--scroll) .tile { display: grid; grid-template-columns: 38% minmax(0, 1fr); }
  .tiles:not(.tiles--scroll) .tile__media { aspect-ratio: auto; height: 100%; min-height: 150px; border-right: 1px solid var(--line); }
  .tiles:not(.tiles--scroll) .tile__media img { padding: 8px; }
  .tiles:not(.tiles--scroll) .tile__body { border-top: 0; padding: 14px; gap: 6px; }
  .tiles:not(.tiles--scroll) .tile__index { font-size: 1.35rem; }
  .tiles:not(.tiles--scroll) .tile__specs li { font-size: .72rem; padding: 4px 8px; }
  .tiles:not(.tiles--scroll) .tile__foot { flex-wrap: wrap; padding-top: 8px; }
  .tiles:not(.tiles--scroll) .tile__badge { top: 8px; left: 8px; font-size: .68rem; padding: 4px 8px; }
}
/* бургер виден только когда скрыто основное меню */
.header__actions .menu-toggle { display: none; }
@media (max-width: 1120px) { .header__actions .menu-toggle { display: inline-grid; } }
/* заголовки в узкой колонке раскладок 5/7 — чуть мельче, чтобы длинные слова не рвались */
.split--5-7 > :first-child h2, .split--7-5 > :last-child h2 { font-size: clamp(1.6rem, 1rem + 1.7vw, 2.5rem); }
h1, h2 { hyphens: manual; }

/* ==========================================================================
   Мобильный проход: телефон — основной экран для фермера
   ========================================================================== */

/* характеристики: подпись и значение не налезают друг на друга на любой ширине */
.spec-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.spec-list dd { overflow-wrap: anywhere; }

/* сумма в конфигураторе: цена не переносится */
.config__sum li span { min-width: 0; }
.config__sum li b { white-space: nowrap; }

/* мини-панель итога конфигуратора — только на телефоне */
.config__mini { display: none; }

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .section { padding-block: clamp(2.75rem, 2rem + 4vw, 4rem); }
  .head { margin-bottom: 22px; }
  .head--row > a, .head--row > .btn { justify-self: start; }
  h2 { font-size: clamp(1.6rem, 1.1rem + 3.2vw, 2.1rem); }
  .lead { font-size: 1.05rem; }

  /* шапка компактнее */
  .header__inner { gap: 12px; }
  .brand__name { font-size: 1.1rem; }

  /* линейки: фото ниже, текст плотнее */
  .line__media { min-height: 0; aspect-ratio: 16 / 10; }
  .line__body { padding: 20px; gap: 12px; }
  .line__body h3 { font-size: 1.7rem !important; }
  .line__body > .muted { font-size: var(--fs-sm); }
  .line__model { padding: 11px 0; }

  /* факты 2×2, цифры поменьше */
  .fact__num { font-size: clamp(1.7rem, 1.2rem + 3vw, 2.4rem); }
  .fact { padding-top: 18px; }

  /* шаги — две колонки, компактно */
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .step { padding: 16px; gap: 8px; }
  .step__n { width: 36px; height: 36px; font-size: .9rem; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: .82rem; }

  /* сертификаты — лента со свайпом */
  .certs {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 12px; scrollbar-width: none;
  }
  .certs::-webkit-scrollbar { display: none; }
  .certs > .cert { flex: 0 0 72%; scroll-snap-align: start; }

  /* FAQ: вопрос крупно, но без лишних отступов */
  .faq summary { padding: 18px 0; font-size: 1.02rem; gap: 14px; grid-template-columns: minmax(0, 1fr) 32px; }
  .faq summary::after { width: 32px; height: 32px; }
  .faq__a { padding-right: 0; font-size: var(--fs-sm); }

  /* каталог: поиск и сортировка в одну строку */
  .toolbar { gap: 10px; margin-bottom: 16px; }
  .toolbar__right { width: 100%; flex-wrap: nowrap; }
  .toolbar__right .search { flex: 1; min-width: 0; }
  .toolbar__right .select { flex: none; max-width: 46%; padding-left: 14px; font-size: .9rem; }

  /* сравнения: первая колонка закреплена при горизонтальной прокрутке */
  .table th[scope="row"], .compare-table td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; box-shadow: 1px 0 0 var(--line); }

  /* товар */
  .model-index { font-size: clamp(2.3rem, 1.4rem + 6vw, 3.2rem); }
  .product-hero .row .btn { flex: 1 1 auto; }
  .gallery__thumbs { gap: 6px; }

  /* конфигуратор: итог всегда перед глазами */
  .config__mini {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 5;
    background: var(--green-ink); color: #fff; border-radius: var(--r-m); padding: 12px 12px 12px 18px;
    margin-top: 6px; box-shadow: 0 10px 30px rgba(10, 42, 23, .25);
  }
  .config__mini b { font: 700 1.25rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
  .config__mini small { display: block; font-size: .7rem; color: #9FB4A5; margin-bottom: 4px; }
  .config__sum { position: static; }

  /* подвал компактнее */
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__links { font-size: .88rem; gap: 8px; }
  .footer__word { margin-top: 24px; }
}

/* прайс на телефоне: строки таблицы — карточки, цена и кнопка всегда видны */
@media (max-width: 680px) {
  [data-price-scope] .table-wrap { border: 0; background: transparent; overflow: visible; }
  [data-price-scope] .table { min-width: 0; display: block; }
  [data-price-scope] .table thead { display: none; }
  [data-price-scope] .table tbody { display: grid; gap: 10px; }
  [data-price-scope] .table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px;
  }
  [data-price-scope] .table td, [data-price-scope] .table th { padding: 0; border: 0; display: block; }
  [data-price-scope] .table .t-model { grid-column: 1; font-size: 1.15rem; white-space: normal; }
  [data-price-scope] .table .t-price { grid-column: 2; grid-row: 1; text-align: right; }
  [data-price-scope] .table td:not(.t-model):not(.t-price):not(.t-act) { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--ink-2); }
  [data-price-scope] .table .t-act { grid-column: 1 / -1; text-align: left; margin-top: 8px; width: auto; }
  [data-price-scope] .table .t-act .btn { width: 100%; }
  [data-price-scope] .table tbody tr:hover { background: var(--surface); }
}

@media (max-width: 400px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .certs > .cert { flex-basis: 80%; }
}
/* строка модели на телефоне: цена справа от индекса, характеристика — под ними */
@media (max-width: 520px) {
  .line__model span { grid-column: auto; order: 0; margin-top: 0; }
  .line__model span:not(.num) { grid-column: 1 / -1; order: 3; margin-top: -6px; }
  .line__model .num { text-align: right; }
}
/* факты на узком телефоне — сетка 2×2, а не столбик */
@media (max-width: 420px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.18); }
  .section:not(.section--dark):not(.section--deep) .fact:nth-child(even) { border-color: var(--line); }
}

/* ==========================================================================
   Маленькие телефоны (320–420 px)
   ========================================================================== */

/* нижняя панель: три равные колонки, содержимое не распирает сетку */
.action-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.action-bar .btn { min-width: 0; position: relative; }

@media (max-width: 420px) {
  .action-bar { gap: 6px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px)); }
  .action-bar .btn {
    flex-direction: column; gap: 3px; min-height: 54px; padding: 6px 4px;
    font-size: .72rem; line-height: 1.1; border-radius: 14px;
  }
  .action-bar .btn svg { width: 20px; height: 20px; }
  .action-bar .req-count {
    position: absolute; top: 4px; left: calc(50% + 6px);
    min-width: 18px; height: 18px; padding: 0 5px; font-size: .62rem;
  }
  body { padding-bottom: 70px; }
  .compare-bar { bottom: 80px; }
  .config__mini { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}

/* итог конфигуратора не распирает страницу */
.config__sum { min-width: 0; }
.config__total { font-size: clamp(1.45rem, .9rem + 4.2vw, 2.6rem); white-space: nowrap; }
@media (max-width: 380px) {
  .config__sum { padding: 20px; }
  .opt { padding: 12px 14px; gap: 10px; grid-template-columns: 22px minmax(0, 1fr) auto; }
  .opt .num { font-size: .9rem; }
}

/* шапка на самых узких: логотип, заявка и меню помещаются в одну строку */
@media (max-width: 360px) {
  .header__inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand__name { font-size: 1rem; }
  .req-btn { min-height: 44px; padding: 0 12px; gap: 6px; }
  .menu-toggle { width: 42px; height: 42px; }
}
/* кнопка в итоге конфигуратора может переноситься на узком экране */
.config__sum > * { min-width: 0; }
.config__sum .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }

/* ---------- маленькие экраны: заголовок, тост, сравнение, заявка ---------- */
.hero__title { font-size: clamp(2rem, .95rem + 6.2vw, 5.75rem); hyphens: manual; overflow-wrap: normal; }

/* заявка: низ панели не вылезает, сумма в одну строку */
.sheet__foot > *, .sheet__body > * { min-width: 0; }
.sheet__foot .row { flex-wrap: wrap; }
.sheet__total { flex-wrap: wrap; }
.sheet__total b { white-space: nowrap; font-size: clamp(1.2rem, .8rem + 2.4vw, 1.5rem); }
.req-item { grid-template-columns: minmax(0, 1fr) auto auto; }
.req-item > div:first-child { min-width: 0; }
.req-item small { display: block; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  /* тост — компактная плашка над нижней панелью, не перекрывает шапку */
  .toast {
    top: auto; bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 16px); padding: 10px 16px; font-size: .85rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 32px);
  }
  .toast span { overflow: hidden; text-overflow: ellipsis; }
  .toast.is-on { transform: translate(-50%, 0); }

  /* сравнение — на весь экран */
  .modal { padding: 0; place-items: stretch; }
  .modal__box { width: 100%; max-height: none; height: 100%; border-radius: 0; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 24px; }
  .modal__box h2 { padding-right: 56px; font-size: 1.35rem !important; }
  .modal__close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
  .compare-table { min-width: 0; }
  .compare-table th, .compare-table td { padding: 12px 10px; font-size: .88rem; }
  .compare-table th { font-size: 1rem; }

  /* заявка — компактнее, список виден целиком */
  .sheet__head { padding: 14px 16px; }
  .sheet__body { padding: 14px 16px; }
  .sheet__foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .sheet__foot .input { padding: 11px 14px; }
}
@media (max-width: 420px) {
  .toast { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); }
  .req-item { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 10px 10px 14px; gap: 8px 10px; }
  .req-item .qty { grid-column: 1; grid-row: 2; justify-self: start; }
  .req-item [data-remove] { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .sheet__foot .row .btn { flex: 1 1 auto; }
}
/* подложка сравнения — под окном, а не поверх */
.modal > .sheet-backdrop { z-index: 0; }
.modal__box { z-index: 1; }
@media (max-width: 420px) { .sheet__foot [data-req-note] { font-size: .72rem; } }
/* когда открыта панель сравнения, мини-итог конфигуратора поднимается над ней */
@media (max-width: 760px) { .has-compare .config__mini { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 420px) { .has-compare .config__mini { bottom: calc(142px + env(safe-area-inset-bottom, 0px)); } }
