/* AGroup — 2026 refresh.
   Ведущий цвет — глубокий синий из логотипа (монограмма «G» и волна):
   верхняя строка, подвал, крупные секции, ссылки и акценты.
   Кирпично-бордовый остаётся фирменным акцентом на кнопках заявки и ценах. */

:root {
  --brand: #8b1105;
  --brand-dark: #5a0b02;
  --brand-deep: #3a0701;
  --brand-bright: #c4261a;

  --sea: #0c3d5c;
  --sea-dark: #082a40;
  --sea-deep: #061d2c;
  --sea-mid: #14587f;
  --sea-bright: #1c7fb8;
  --sea-soft: rgba(12, 61, 92, .08);
  --ice: var(--sea-mid);

  --ink: #0d1418;
  --ink-soft: #3a464d;
  --muted: #6b7880;
  --line: #e2e8ec;
  --surface: #f6f8f9;
  --surface-2: #eaeff2;
  --white: #fff;

  /* Скругления небольшие, тени почти отсутствуют: строгая сетка и линии
     читаются как «серьёзная компания» лучше, чем пилюли и мягкие облака. */
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 14px;
  --shadow-s: 0 1px 2px rgba(9, 30, 45, .04);
  --shadow: 0 2px 6px rgba(9, 30, 45, .06);
  --shadow-l: 0 8px 28px rgba(9, 30, 45, .1);
  --ease: cubic-bezier(.2, .7, .3, 1);

  --container: 1280px;
  --header-h: 76px;
  /* верхняя строка с графиком и адресами: 40px + линия */
  --topbar-h: 41px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Плавный переход между страницами вместо белой вспышки.
   Шапка и подвал остаются на месте — логотип больше не моргает.
   Браузеры без поддержки просто игнорируют правило. */
@view-transition { navigation: auto; }
.topbar { view-transition-name: site-topbar; }
.header { view-transition-name: site-header; }
.footer { view-transition-name: site-footer; }
::view-transition-old(root) { animation: vt-out .16s ease both; }
::view-transition-new(root) { animation: vt-in .28s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga", "tnum";
}

body.is-locked { overflow: hidden; }

/* height:auto обязателен: без него атрибуты width/height в разметке отменяют
   заданный в CSS aspect-ratio и картинка тянется на всю натуральную высоту. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  /* длинные слова («Политика конфиденциальности») не рвут вёрстку на узком экране */
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 5.4vw, 64px); letter-spacing: -.03em; }
h2 { font-size: clamp(29px, 3.8vw, 48px); }
h3 { font-size: clamp(20px, 2.1vw, 25px); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(64px, 9vw, 132px) 0; }
.section--tight { padding: clamp(44px, 5.5vw, 76px) 0; }
.section--surface { background: var(--surface); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4.5vw, 60px);
}
.section-head p { color: var(--muted); max-width: 56ch; margin: 14px 0 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sea-mid);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sea-mid);
  border-radius: 2px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-bright); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--sea); color: var(--sea); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
/* Верхняя строка светлая: весь верх сайта — один спокойный белый блок. */
.topbar {
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar__list { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
a.topbar__item { padding: 7px 0; }
.topbar__item svg { flex: none; opacity: .55; }
.topbar a:hover { color: var(--sea); }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.header.is-stuck { box-shadow: 0 1px 0 rgba(9, 30, 45, .06), 0 6px 18px rgba(9, 30, 45, .06); }
.header__row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 12px; flex: none; min-height: 44px; }
.logo img { height: 48px; width: auto; }
.logo__text { display: none; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .18s var(--ease);
}
.nav__link:hover { color: var(--sea); }
/* активный раздел помечаем тонкой чертой, а не заливкой */
.nav__link.is-active { color: var(--ink); font-weight: 600; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--sea);
}

.nav__group { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.nav__toggle svg { transition: transform .2s var(--ease); }
.nav__group:hover .nav__toggle svg { transform: rotate(180deg); }
.nav__drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s var(--ease);
}
.nav__group:hover .nav__drop, .nav__group:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drop a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-size: 15px;
  color: var(--ink-soft);
}
.nav__drop a:hover { background: var(--surface-2); color: var(--sea); }

.header__cta { display: flex; align-items: center; gap: 14px; flex: none; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.header__phone-ic {
  width: 32px; height: 32px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--sea);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.header__phone:hover .header__phone-ic { background: var(--sea); color: #fff; }
.header__phone-txt { display: grid; line-height: 1.15; }
.header__phone-txt b { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.header__phone-txt small { font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s var(--ease); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s var(--ease); }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Выезжает вниз из-под шапки, а не сбоку: top выставляет JS по фактической
   нижней кромке .header (она sticky и её положение зависит от прокрутки).
   z-index ниже шапки (60) — сверху панели ничего не видно, шапка её перекрывает.
   translateY(-100%) сдвигает панель на ЕЁ СОБСТВЕННУЮ высоту (viewport минус
   top), а не на всю высоту экрана — нижний край после сдвига остаётся ровно
   на границе top. В браузере, где реальная высота шапки хоть на пиксель
   отличается от --topbar-h+--header-h (другой рендер шрифтов, масштаб экрана),
   из-под шапки высовывается полоска низа панели. visibility:hidden закрывает
   это гарантированно, независимо от точности расчёта transform. */
.mobile-nav {
  position: fixed;
  left: 0; right: 0;
  top: var(--mnav-top, calc(var(--topbar-h) + var(--header-h)));
  /* bottom:0 у fixed-элемента на iOS Safari иногда не дотягивает до реального
     низа экрана, когда открываешь меню после скролла длинной страницы
     (адресная строка сворачивается/разворачивается, а расчёт «до низа» не
     успевает) — снизу панели оставался пустой хвост, и подвал с номером и
     кнопкой прайса уезжал за экран. Задаём высоту явно от --vh (реальный
     window.innerHeight), а не от bottom:0. */
  height: calc(var(--vh, 100vh) - var(--mnav-top, calc(var(--topbar-h) + var(--header-h))));
  z-index: 55;
  /* Матовое полупрозрачное стекло: rgba-фон — запасной вариант для браузеров
     без backdrop-filter (Firefox без флага и т.п.), тогда просто чуть светлее
     сплошной белой панели, ничего не ломается. Прозрачность держим заметной
     даже когда за панелью светлый фон (открыли меню в верху страницы, не
     проскроллив тёмный hero) — иначе эффект виден только поверх тёмных блоков. */
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  padding: 8px 24px 24px;
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s .3s;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
/* только прямые ссылки пунктов меню — иначе правило перебивает display:flex
   у кнопки с номером в подвале, и текст в ней съезжает влево вместо центра */
.mobile-nav > a { display: block; padding: 14px 0; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav > a.sub { font-size: 17px; font-weight: 500; color: var(--ink-soft); padding-left: 16px; }
.mobile-nav__foot { margin-top: 28px; display: grid; gap: 12px; }

/* ---------- Hero ---------- */
/* Первый экран ровно в высоту окна: заголовок сразу под шапкой,
   цифры прижаты к нижней кромке — следующий блок открывается только скроллом. */
.hero {
  position: relative;
  color: #fff;
  background: var(--sea-deep);
  overflow: hidden;
  /* var(--vh) — реальная window.innerHeight в px, выставлена в <head> до первой отрисовки:
     100svh на iOS Safari иногда пересчитывается через мгновение после загрузки и «раздвигает»
     нижний блок статистики (у него margin-top:auto). Точный px не пересчитывается сам. */
  min-height: calc(var(--vh, 100svh) - var(--header-h) - var(--topbar-h));
  display: flex;
  flex-direction: column;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .85;
}
/* Одна ровная вуаль слева направо: фото читается, текст контрастен,
   никаких радиальных пятен и движения. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 29, 44, .93) 0%, rgba(6, 29, 44, .8) 42%, rgba(6, 29, 44, .34) 100%);
}
/* Только вертикальный отступ: боковые поля приходят от .container,
   сокращённая запись padding их обнуляла и текст прилипал к краю экрана. */
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(30px, 3vw, 44px);
  padding-bottom: clamp(24px, 2.4vw, 34px);
}
/* Не пилюля с плашкой, а строгая строка над заголовком. */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 22px;
  padding-left: 36px;
  position: relative;
}
.hero__badge::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 26px; height: 1px;
  background: rgba(255, 255, 255, .5);
}
/* на узком экране строка переносится — рвать её надо после «5%», а не внутри */
.hero__badge b { color: #fff; font-weight: 700; white-space: nowrap; }
.hero h1 { max-width: 15ch; font-size: clamp(36px, 5vw, 64px); }
.hero__lead { margin-top: 20px; max-width: 52ch; font-size: clamp(17px, 1.7vw, 21px); color: rgba(255, 255, 255, .86); }
.hero__actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__foot { position: relative; z-index: 2; margin-top: auto; }
.hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero__stat { padding: 18px 20px; border-left: 1px solid rgba(255, 255, 255, .16); }
.hero__stat:first-child { border-left: 0; padding-left: 0; }
/* моноширинные цифры: пока счётчик набегает, строка не дёргается по ширине */
.hero__stat b { display: block; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero__stat span { font-size: 14.5px; color: rgba(255, 255, 255, .68); }

/* ---------- Преимущества ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .25s var(--ease);
}
.feature:hover { border-color: var(--sea); }
.feature__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--sea);
  margin-bottom: 20px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.feature:hover .feature__icon { background: var(--sea); color: #fff; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ---------- Категории ---------- */
/* Фото сверху, подпись на белом снизу: спокойнее и честнее, чем текст
   поверх снимка под тёмной вуалью. */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s var(--ease);
}
.cat:hover { border-color: var(--sea); }
.cat__pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat:hover img { transform: scale(1.04); }
.cat__body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat h3 { font-size: 20px; }
.cat__count { font-size: 14.5px; color: var(--muted); }
.cat__go {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sea);
}
.cat__go svg { transition: transform .25s var(--ease); }
.cat:hover .cat__go svg { transform: translateX(4px); }

/* ---------- Карточки товаров ---------- */
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.search {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
  width: 100%;
  padding: 13px 16px 13px 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search input:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(12, 61, 92, .12); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.chip:hover { border-color: var(--sea); color: var(--sea); }
.chip.is-active { background: var(--sea); border-color: var(--sea); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.card:hover { border-color: var(--sea); }
/* переключение раздела в каталоге: карточки уходят и появляются волной */
[data-card] { transition: opacity .3s var(--ease), transform .3s var(--ease); }
[data-card].is-out { opacity: 0; transform: scale(.96) translateY(10px); pointer-events: none; }
/* Фото — квадрат: товар виден крупно и сетка не рвётся при разной высоте названий. */
.card__media { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
/* Категория — мелкой строкой над названием, без плашки поверх фотографии. */
.card__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { font-size: 18px; font-weight: 650; line-height: 1.28; margin-top: -4px; }
.card__specs { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.card__specs div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.card__specs span { color: var(--ink-soft); text-align: right; }
.card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; }
.card__price { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.card__price small { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card__btn {
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid var(--sea);
  background: var(--sea);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s var(--ease);
}
.card__btn:hover { background: var(--sea-mid); }

.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- О компании / текст ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; }
.split__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* На странице «О компании» текста больше — кадр выше, колонки заканчиваются вровень. */
.split--tall .split__media img { aspect-ratio: 4 / 5; }
.prose { max-width: 72ch; }
.prose p { color: var(--ink-soft); }
.prose h2 { margin: 1.6em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 12px; margin: 24px 0; }
.prose ul li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--sea-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230c3d5c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Широкая полоса с фотографией ---------- */
/* Фон чуть выше блока и двигается медленнее страницы (JS ставит --band-shift):
   даёт ощущение глубины без тяжёлого background-attachment: fixed. */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: clamp(72px, 10vw, 132px) 0;
}
.band__bg {
  position: absolute;
  left: 0; top: -12%;
  z-index: -2;
  width: 100%; height: 124%;
  object-fit: cover;
  transform: translate3d(0, var(--band-shift, 0px), 0);
  will-change: transform;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 29, 44, .94) 0%, rgba(6, 29, 44, .8) 46%, rgba(6, 29, 44, .42) 100%);
}
.band__inner { max-width: 640px; }
.band h2 { font-size: clamp(28px, 3.6vw, 44px); }
.band p { margin-top: 18px; color: rgba(255, 255, 255, .82); font-size: clamp(16px, 1.6vw, 19px); }
.band__list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.band__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, .9);
}
.band__list svg { flex: none; color: #7cc4ec; }

/* ---------- Клиенты ---------- */
/* Секция во втором фирменном цвете — синем из логотипа. */
.section--sea { background: var(--sea-deep); color: #fff; }
.section--sea .eyebrow { color: rgba(255, 255, 255, .6); }
.section--sea .eyebrow::before { background: rgba(255, 255, 255, .45); }
.section--sea .section-head p { color: rgba(255, 255, 255, .7); }

.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.client {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: 28px 26px;
  border-radius: var(--radius);
  color: #fff;
}
.client__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.client:hover .client__bg { transform: scale(1.06); }
.client::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 29, 44, .18) 0%, rgba(6, 29, 44, .58) 50%, rgba(6, 29, 44, .92) 100%);
}
.client__icon {
  width: 40px; height: 40px;
  margin-bottom: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.client h3 { font-size: 20px; line-height: 1.28; margin-top: 20px; }
.client p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.45; color: rgba(255, 255, 255, .8); }

/* ---------- CTA ---------- */
/* Раньше блок был целиком бордовым — слишком громко для B2B.
   Теперь тёмно-синий как остальные акценты, красной остаётся только кнопка. */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sea-deep);
  color: #fff;
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.cta h2 { max-width: 18ch; }
.cta p { margin-top: 16px; color: rgba(255, 255, 255, .82); max-width: 46ch; }
.cta__form { position: relative; z-index: 2; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 12px; }
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(12, 61, 92, .12); }
.form input::placeholder, .form textarea::placeholder { color: #9aa5ac; }
.form .agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.form .agree input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--sea); }
.form .agree a { text-decoration: underline; }
.cta .form .agree { color: rgba(255, 255, 255, .75); }
.cta .form .agree a { color: #fff; }
.form__note { font-size: 14px; }
.form__note.is-ok { color: #157a4a; }
.form__note.is-err { color: #b3261e; }
.cta .form__note.is-ok { color: #d6ffe9; }
.cta .form__note.is-err { color: #ffd9d6; }
.form.is-sending { opacity: .65; pointer-events: none; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.contact-card h3 { font-size: 18px; margin-bottom: 14px; }
.contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-card li { color: var(--ink-soft); font-size: 15.5px; line-height: 1.45; }
.contact-card b { display: block; font-weight: 650; color: var(--ink); }
.contact-card a { display: inline-block; padding: 8px 0; }
.contact-card a:hover { color: var(--sea-mid); }
.contact-card__phone { font-size: 21px; font-weight: 700; color: var(--sea); letter-spacing: -.01em; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 420px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Карта складов — статичная картинка (Static Maps API): у двух складов точки
   далеко друг от друга (Пермь и Кунгур), интерактивный виджет с несколькими
   разнесёнными метками нестабильно рисует обе разом. */
.map a { display: block; width: 100%; height: 100%; background: #eef2f0; }
.map img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Встроенная карта перехватывает колесо мыши на себя — пролистываешь страницу,
   а вместо этого зумится карта. Пока не кликнули, сверху лежит прозрачная
   кнопка на всю карту, она глотает скролл и клики; после клика прячется —
   дальше карта работает как обычно. */
.map__lock {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; border: 0; background: rgba(15, 32, 45, .06); cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14.5px; color: #fff; text-align: center;
}
.map__lock span { background: rgba(12, 61, 92, .85); padding: 10px 18px; border-radius: 999px; }
.map--lock.is-unlocked .map__lock { display: none; }

/* ---------- Розница ---------- */
/* Три адреса на главной: вся плитка — ссылка на маршрут, чтобы с телефона
   путь до магазина открывался одним касанием. */
.shops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shop {
  display: grid;
  gap: 6px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.shop:hover { border-color: var(--sea); transform: translateY(-3px); }
.shop__city { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.shop__addr { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.shop__hours { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-soft); margin-top: 4px; }
.shop__hours svg { width: 16px; height: 16px; flex: none; color: var(--sea-mid); }
.shop__route { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--sea); }
.shop__route svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.shop:hover .shop__route svg { transform: translateX(4px); }

.shop-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shop-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.shop-card__media { background: var(--surface); }
.shop-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shop-card__body { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.shop-card__body h3 { font-size: 20px; letter-spacing: -.01em; }
.shop-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; flex: 1; }
.shop-card__list li { display: flex; gap: 10px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.45; }
.shop-card__list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--sea-mid); }
.shop-card__list small { color: var(--muted); font-size: 13.5px; }
/* телефон — самостоятельная цель тапа, поэтому не строка, а полоса в 40px */
.shop-card__list a { display: inline-block; padding: 10px 0; color: var(--sea); font-weight: 650; }

/* ---------- Хлебные крошки + шапка страницы ---------- */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 4vw, 52px);
}
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a { display: inline-block; padding: 7px 0; }
.crumbs a:hover { color: var(--sea-mid); }
.crumbs span { color: var(--ink-soft); }
.page-head p { margin-top: 14px; color: var(--muted); max-width: 70ch; }
/* Своя граница у шапки страницы уже даёт паузу — сверху следующего блока
   отступ меньше, иначе между заголовком и текстом зияет пустота. */
.page-head + .section { padding-top: clamp(30px, 3.4vw, 48px); }

/* ---------- Подвал ---------- */
.footer { background: var(--sea-deep); color: rgba(255, 255, 255, .72); padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; font-weight: 650; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 15px; }
.footer li b { display: block; color: #fff; font-weight: 650; }
/* палец попадает в ссылку: цель не меньше 36px по высоте */
.footer ul a { display: inline-block; padding: 8px 0; }
.footer ul li:not(:has(a)) { padding: 8px 0; }
.footer__logo img { height: 44px; width: auto; margin-bottom: 18px; }
.footer__about { font-size: 15px; line-height: 1.55; max-width: 34ch; }
.footer__phone { display: inline-block; color: #fff; font-size: 21px; font-weight: 700; margin-bottom: 6px; padding: 5px 0; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .55);
}
.footer__req { display: grid; gap: 4px; }

/* ---------- Модалка ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 29, 44, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-l);
  transform: translateY(10px);
  transition: transform .25s var(--ease);
  max-height: 90vh;
  overflow-y: auto;
}
.modal.is-open .modal__box { transform: none; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.modal__close {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--muted);
  transition: all .18s var(--ease);
}
.modal__close:hover { background: var(--surface-2); color: var(--ink); }
.modal p.modal__sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

/* ---------- Плавающая связь ---------- */
/* Повторяет кнопку с первого экрана: те же размеры и тот же правый край,
   что у контейнера, — чтобы читалась как её продолжение, а не второй элемент. */
.fab {
  position: fixed;
  right: max(20px, calc((100vw - var(--container)) / 2 + 24px));
  bottom: 24px;
  z-index: 55;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(9, 30, 45, .18);
  cursor: pointer;
  transition: background-color .2s var(--ease), opacity .2s var(--ease), visibility .2s var(--ease);
}
.fab:hover { background: var(--brand-bright); }
.fab.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
/* Пока открыто мобильное меню, внизу его собственной панели уже есть номер и
   кнопка прайса — плавающая кнопка та же самая, но поверх, конфликтует. body
   получает .is-locked одновременно с открытием меню (см. app.js). */
body.is-locked .fab { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Анимации появления ---------- */
/* Анимация включается только если JS жив — иначе контент виден сразу. */
html.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .grid, .features, .clients { grid-template-columns: repeat(3, 1fr); }
  .shops, .shop-cards { grid-template-columns: repeat(3, 1fr); }
  /* пять пунктов меню, телефон и кнопка перестают помещаться в строку:
     поджимаем шаг и шрифт навигации, кнопка прайса остаётся плавающей */
  .header__row { gap: 16px; }
  .nav__link { padding: 10px 10px; font-size: 15px; }
  .header__cta .btn { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat--wide { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header__cta { margin-left: auto; }   /* nav скрыт — прижимаем звонок и бургер к правому краю */
  /* места на подпись нет, но звонок в один тап должен остаться: оставляем кружок-иконку */
  .header__phone-txt { display: none; }
  .header__phone-ic { width: 42px; height: 42px; border-radius: 8px; background: var(--sea); color: #fff; }
  .burger { display: flex; }
  /* Матовое полупрозрачное стекло у шапки на мобилке — она липкая (position:
     sticky) и всегда лежит поверх контента, который уезжает под неё при
     скролле. rgba-фон — запасной вариант для браузеров без backdrop-filter. */
  .header {
    background: rgba(255, 255, 255, .68);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
  }
  .split { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  /* на 2 колонках левой становится и 3-й элемент — тот же сброс border/padding,
     что и у первого, плюс верхняя граница между строками вместо голого зазора */
  .hero__stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero__stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
  .topbar__list .topbar__item:nth-child(n+3) { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  /* в шапке остаётся логотип, звонок и бургер: кнопка прайса есть в меню и снизу экрана */
  .header__cta .btn { display: none; }
  .header__cta { gap: 10px; }
  /* строка узкая: график и города прячем, оставляем только строку про доставку */
  .topbar__row > .topbar__list:first-child { display: none; }
  .grid, .features, .clients, .cats { grid-template-columns: repeat(2, 1fr); }
  .shops, .shop-cards { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .card__body { padding: 16px; }
  .card__title { font-size: 17px; }
  .card__price { font-size: 21px; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card__btn { width: 100%; }
  .fab { right: 16px; bottom: 16px; padding: 13px 20px; font-size: 15px; }
  /* Телефон высокий, но узкий: тот же набор блоков занимает вдвое больше строк.
     Поджимаем шаг между ними и сами цифры, чтобы первый экран остался экраном. */
  .hero__inner { padding-top: 22px; padding-bottom: 18px; }
  .hero__badge { font-size: 13px; margin-bottom: 14px; padding-left: 28px; }
  .hero__badge::before { width: 18px; }
  .hero h1 { font-size: 31px; }
  .hero__lead { margin-top: 12px; font-size: 16px; }
  /* на телефоне кнопки во всю ширину: палец попадает наверняка,
     подпись не рвётся посреди слова и обе выглядят одинаково */
  .hero__actions { margin-top: 18px; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero__actions .btn { padding: 14px 16px; font-size: 15.5px; text-align: center; min-width: 0; white-space: normal; }
  .hero__stat { padding: 12px 14px; }
  .hero__stat b { font-size: 24px; }
  .hero__stat span { font-size: 12.5px; }
}

@media (max-width: 520px) {
  .features, .clients, .cats { grid-template-columns: 1fr; }
  /* товары держим в две колонки: карточка с квадратным фото на всю ширину смотрится непомерной */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card__body { padding: 13px; gap: 10px; }
  .card__title { font-size: 15.5px; }
  .card__specs { font-size: 13px; }
  .card__price { font-size: 19px; }
  .card__btn { padding: 10px 14px; font-size: 14px; }
  .cat { min-height: 220px; }
  .modal__box { padding: 24px 20px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Невысокие телефоны (iPhone SE, 667px): свободного места нет совсем.
   Снимаем воздух и ставим кнопки в ряд — иначе первый экран не влезает. */
@media (max-width: 700px) and (max-height: 740px) {
  .hero__badge { margin-bottom: 10px; }
  .hero__lead { margin-top: 10px; font-size: 15.5px; }
  .hero__actions { margin-top: 14px; grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { padding: 12px 8px; font-size: 15px; line-height: 1.2; }
  .hero__stat { padding: 10px 12px; }
  .hero__stat b { font-size: 22px; }
}

/* Узкие экраны (iPhone SE, 320px): кнопка «Запросить прайс» не помещается
   рядом с логотипом и бургером. Она продублирована в меню и в кнопке снизу. */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .header__cta { gap: 8px; }
  .logo img { height: 34px; }
  /* «конфиденциальности» — самое длинное слово на сайте, должно влезать в строку целиком */
  h1 { font-size: 25px; }
}
