/* ============================================================
   АЗИД — химические реактивы, Алматы
   Дизайн-система: корпоративно-инженерный стиль
   Палитра: светло-серый + синий. Один файл, без сборщиков.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  /* Бренд */
  --blue:        #0F7A8C;   /* акцент / ссылки — тон логотипа (бирюзово-синий), где градиент неприменим */
  --blue-dark:   #0B3861;   /* тёмно-синий логотипа: заголовки, тёмные фоны */
  --blue-hover:  #0C5E6E;   /* ховер */
  --blue-tint:   #E6F2F3;   /* светлая бирюзовая подложка секций/чипсов */

  /* Цвета логотипа + градиент (замена «плоского синего») */
  --teal:        #0099A5;   /* бирюза логотипа */
  --navy:        #0B3861;   /* тёмно-синий логотипа */
  --grad:        linear-gradient(135deg, #0B3861 0%, #0A7C8A 100%);   /* основной градиент */
  --grad-hover:  linear-gradient(135deg, #082B47 0%, #08606C 100%);   /* ховер кнопок */
  --grad-deep:   linear-gradient(135deg, #0B3861 0%, #0B4C5E 100%);   /* крупные тёмные фоны (подвал/тёмная секция) */
  --grad-text:   linear-gradient(120deg, #0B3861 0%, #0A7C8A 70%, #0099A5 100%); /* для заголовков-текста */
  --green:       #2E8B57;   /* наличие / успех */
  --green-tint:  #E6F2EC;
  --wa:          #25D366;   /* WhatsApp */
  --wa-hover:    #1EB855;

  /* Нейтральные */
  --bg:          #F4F6F8;   /* фон страницы */
  --card:        #FFFFFF;   /* карточки */
  --text:        #1C2530;   /* основной текст */
  --muted:       #5A6A78;   /* второстепенный текст */
  --line:        #E1E6EC;   /* тонкие линии/границы */
  --line-strong: #CDD5DE;

  /* Типографика */
  --font-head: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Радиусы / тени */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 64, 110, .06), 0 1px 3px rgba(20, 64, 110, .05);
  --shadow:    0 2px 6px rgba(20, 64, 110, .07), 0 8px 24px rgba(20, 64, 110, .06);
  --shadow-lg: 0 8px 30px rgba(20, 64, 110, .12);

  /* Раскладка */
  --container: 1280px;
  --gap: 24px;

  /* z-index шкала
     ВАЖНО: .site-header (sticky) создаёт контекст наложения, внутри которого
     лежит мобильный drawer (.main-nav). Чтобы scrim не перекрывал меню,
     контекст шапки должен быть ВЫШЕ scrim: header(50) > scrim(45) > панель/контент. */
  --z-mobilebar: 40;
  --z-scrim: 45;
  --z-header: 50;
  --z-drawer: 50;   /* локальный z drawer'а ВНУТРИ контекста шапки */
  --z-top: 60;
}

/* ---------- Сброс / база ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: clip;   /* страховка: off-canvas drawer / широкий контент не даёт горизонтальный скролл */
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--blue-dark);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem); }
h3 { font-size: 1.25rem; }

/* Заголовки h1/h2 — градиентный текст в цветах логотипа (на тёмных фонах сбрасывается в белый ниже) */
h1, h2 {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
p  { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .3em 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--blue); color: #fff; }

/* Доступность: видимый фокус */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--blue-dark); color: #fff;
  padding: 10px 18px; border-radius: var(--r-sm);
  z-index: var(--z-top); transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Раскладка / утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: clamp(48px, 6vw, 88px) 0; }
.section--tint { background: var(--blue-tint); }
.section--dark { background: var(--grad-deep); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3,
.cta-band h1, .cta-band h2 { color: #fff; -webkit-text-fill-color: #fff; background: none; }
.section--dark p { color: #D6E1EE; }

.section__head { max-width: 780px; margin-bottom: 40px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .eyebrow { margin-bottom: 10px; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  min-height: 48px;
  text-align: center;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

.btn--primary { background: var(--grad); color: #fff; }
.btn--primary:hover { background: var(--grad-hover); color: #fff; box-shadow: var(--shadow); }

.btn--ghost { background: #fff; color: var(--blue-dark); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); color: #fff; box-shadow: var(--shadow); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.btn--sm { padding: 10px 16px; min-height: 42px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Бейджи / чипсы / метки ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600;
  padding: 4px 10px; border-radius: 100px;
  font-family: var(--font-head);
  letter-spacing: .01em;
}
.badge--stock { background: var(--green-tint); color: var(--green); }
.badge--order { background: #FDF2E2; color: #B9761B; }
.badge--sale  { background: #FCE9EC; color: #C2334B; }
.badge--qual  { background: var(--blue-tint); color: var(--blue-dark); border: 1px solid #D3E0EF; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__mark { width: 44px; height: 44px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  color: var(--blue-dark); letter-spacing: .04em;
}
.brand__tag { font-size: .74rem; color: var(--muted); letter-spacing: .01em; }

/* Логотипы: доработанный вертикальный лок-ап (колба+AZID+слоган) в шапке и подвале; подвал крупнее, инверт в белый */
.brand__logo { width: auto; display: block; }
.site-header .brand__logo { height: 40px; }
.footer-brand .brand__logo { height: 120px; filter: brightness(0) invert(1); }
@media (max-width: 720px) {
  .site-header .brand__logo { height: 32px; }
  .footer-brand .brand__logo { height: 96px; }
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.main-nav a {
  display: block; padding: 10px 15px; border-radius: var(--r-sm);
  color: var(--text); font-weight: 500; font-size: .98rem;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.main-nav a:hover { background: var(--blue-tint); color: var(--blue-dark); }
.main-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-tint); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* Переключатель языка RU / ҚАЗ — компактный select (экономит место в шапке под поиск) */
.lang-select {
  flex: 0 0 auto; height: 38px; padding: 0 6px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff; color: var(--blue-dark);
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  cursor: pointer;
}
.lang-select:hover { border-color: var(--blue); }

/* Поиск в шапке: иконка-тумблер + всплывающее поле */
.header-search { position: relative; display: flex; align-items: center; flex: 0 0 auto; }
.header-search__toggle {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; color: var(--blue-dark);
  cursor: pointer; flex: 0 0 auto;
}
.header-search__toggle:hover { border-color: var(--blue); color: var(--blue); }
.header-search__form {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 1;
  width: 0; overflow: hidden; opacity: 0; pointer-events: none;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: var(--shadow);
  transition: width .2s ease, opacity .2s ease;
}
.header-search.is-open .header-search__form { width: 240px; opacity: 1; pointer-events: auto; }
.header-search__input { width: 100%; border: 0; padding: 10px 12px; font-size: .92rem; border-radius: var(--r-sm); }
.header-search__input:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
@media (max-width: 720px) {
  .header-search__form { position: fixed; left: 12px; right: 12px; top: 68px; width: auto; z-index: var(--z-top); }
  .header-search.is-open .header-search__form { width: auto; }
}

.header-phone {
  display: inline-flex; flex-direction: column; align-items: flex-end;
  font-family: var(--font-head); line-height: 1.15;
}
.header-phone__num { font-weight: 700; color: var(--blue-dark); font-size: 1.02rem; }
.header-phone__lbl { font-size: .72rem; color: var(--muted); font-weight: 400; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border: 1px solid var(--line-strong);
  background: #fff; border-radius: var(--r-sm); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--blue-dark); }
.nav-toggle__close { display: none; }

/* Мобильный drawer scrim */
.scrim {
  position: fixed; inset: 0; background: rgba(20,32,45,.5);
  opacity: 0; visibility: hidden; transition: opacity .25s;
  z-index: var(--z-scrim);
}
body.nav-open .scrim { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/img/hero-bg.png") center / cover no-repeat;
  pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: clamp(40px, 5vw, 76px) 0;
}
.hero h1 { margin-bottom: 18px; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; }
.hero__trust-item { display: flex; align-items: center; gap: 9px; font-size: .95rem; color: var(--text); font-weight: 500; }
.hero__trust-item svg { width: 22px; height: 22px; color: var(--blue); flex: 0 0 auto; }

.hero__media { background: transparent; }
.hero__media img { width: 100%; height: auto; display: block; }

/* ---------- Плитки категорий ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-tile {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  color: var(--text);
}
.cat-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.cat-tile__icon {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cat-tile__icon svg { width: 28px; height: 28px; }
.cat-tile h3 { margin: 0; font-size: 1.16rem; }
.cat-tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.cat-tile__more {
  margin-top: auto; font-family: var(--font-head); font-weight: 600;
  font-size: .92rem; color: var(--blue); display: inline-flex; align-items: center; gap: 6px;
}
.cat-tile:hover .cat-tile__more { gap: 10px; }

/* ---------- Преимущества (почему мы) ---------- */
.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px;
}
.feature__icon {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Статы / доверие ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 10px; }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--blue); line-height: 1; }
.stat__lbl { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.section--dark .stat__num { color: #fff; }
.section--dark .stat__lbl { color: #C4D3E4; }

/* ---------- Отрасли ---------- */
.industry {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px;
}
.industry__icon { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.industry__icon svg { width: 24px; height: 24px; }
.industry b { display: block; color: var(--blue-dark); font-family: var(--font-head); }
.industry span { font-size: .9rem; color: var(--muted); }

/* ============================================================
   КАТАЛОГ
   ============================================================ */
.catalog-toolbar {
  position: sticky; top: 74px; z-index: 30;
  background: var(--bg);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.catalog-search {
  position: relative; margin-bottom: 14px; max-width: 520px;
}
.catalog-search input {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 13px 16px 13px 46px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.catalog-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,95,168,.15); }
.catalog-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  padding: 8px 16px; border-radius: 100px;
  background: #fff; color: var(--text);
  border: 1.5px solid var(--line-strong); cursor: pointer;
  transition: all .15s; white-space: nowrap; min-height: 40px;
  display: inline-flex; align-items: center; gap: 7px;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; }
.chip__count { font-size: .8rem; opacity: .7; }

.catalog-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.catalog-count { color: var(--muted); font-size: .95rem; }
.catalog-count b { color: var(--blue-dark); }

/* Легенда квалификаций */
.legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  background: var(--blue-tint); border: 1px solid #D3E0EF;
  border-radius: var(--r); padding: 14px 18px; margin-bottom: 24px;
  font-size: .9rem;
}
.legend b { color: var(--blue-dark); font-family: var(--font-head); }
.legend span { color: var(--muted); }
.legend span b { margin-right: 4px; }

/* Сетка товаров */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.product-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.product-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.product-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1 1 auto; gap: 10px; }
.product-card__cat { font-size: .78rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-head); }
.product-card__name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--blue-dark); line-height: 1.3; margin: 0; }
.product-card__note { font-size: .86rem; color: var(--muted); margin: 0; }

.product-card__price { margin-top: auto; padding-top: 6px; }
.product-card__price-main { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--text); }
.product-card__price-unit { font-size: .9rem; color: var(--muted); font-weight: 500; }
.product-card__pack { font-size: .86rem; color: var(--muted); }
.product-card__whole {
  font-size: .84rem; color: var(--green); background: var(--green-tint);
  border-radius: var(--r-sm); padding: 6px 10px; margin-top: 6px; display: inline-block;
}
.product-card__foot { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 8px; }

/* Пустой результат поиска */
.catalog-empty { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1 / -1; }
.catalog-empty svg { width: 54px; height: 54px; color: var(--line-strong); margin: 0 auto 14px; }

/* Ссылки в карточке (на страницу товара) */
.product-card__media { text-decoration: none; }
.product-card__name a { color: inherit; text-decoration: none; }
.product-card:hover .product-card__name a,
.product-card__name a:hover { color: var(--blue); }

/* ---------- Страница товара ---------- */
.product-page {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px; align-items: start;
}
.product-page__media {
  position: relative; aspect-ratio: 1 / 1; background: var(--blue-tint);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-page__media img { width: 100%; height: 100%; object-fit: cover; }
.product-page__media .product-card__badges { top: 14px; left: 14px; }
.product-page__info { display: flex; flex-direction: column; gap: 14px; }
.product-page__title { margin: 2px 0 0; }
.product-page__price .product-card__price-main { font-size: 1.9rem; }
.product-page__pack { color: var(--muted); font-size: .95rem; margin-top: -6px; }
.product-page__whole {
  align-self: flex-start; font-size: .9rem; color: var(--green);
  background: var(--green-tint); border-radius: var(--r-sm); padding: 8px 12px;
}
.product-page__note { color: var(--muted); margin: 0; }
.product-page__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.product-page__disclaimer { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 720px) {
  .product-page { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- CTA-блок ---------- */
.cta-band {
  background: var(--grad);
  border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px);
  color: #fff; display: grid; grid-template-columns: 1.4fr auto;
  gap: 28px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #D6E1EE; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Форма ---------- */
.lead-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--blue-dark); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm); background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,95,168,.15); }
.field input.invalid, .field textarea.invalid { border-color: #C2334B; }
.field__error { color: #C2334B; font-size: .84rem; margin-top: 5px; display: none; }
.field__error.show { display: block; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--grad-deep); color: #C4D3E4; padding: 56px 0 24px; }
.site-footer a { color: #DCE7F3; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px 40px; margin-bottom: 40px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand { margin-bottom: 4px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: #9FB4CC; }
.footer-about { font-size: .92rem; color: #A9BDD4; margin-top: 14px; max-width: 38ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: .5em 0; font-size: .94rem; }
.footer-contacts { font-size: .94rem; line-height: 1.7; }
.footer-contacts .label { color: #8FA6C0; font-size: .82rem; }
.footer-req {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  font-size: .82rem; color: #90A6BF; line-height: 1.7;
}
.footer-req b { color: #C4D3E4; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .84rem; color: #8299B4;
}

/* ---------- Липкая мобильная панель ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobilebar);
  display: none; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { min-height: 50px; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { font-size: .88rem; color: var(--muted); padding: 16px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "›"; margin-left: 8px; color: var(--line-strong); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--blue); }

/* ---------- Простые страницы (О компании / Доставка / Контакты) ---------- */
.page-head { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.page-head .container { padding-top: 8px; padding-bottom: 40px; }
.page-head h1 { margin-top: 14px; margin-bottom: 12px; }
.page-head .lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--text); }
.prose ul li::marker { color: var(--blue); }

.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.info-card h3 { margin-top: 0; }

.req-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.req-table th, .req-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req-table th { color: var(--muted); font-weight: 500; width: 42%; font-family: var(--font-body); }
.req-table td { color: var(--text); font-weight: 500; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
.steps li { position: relative; padding-left: 56px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding-top: 18px; padding-bottom: 18px; padding-right: 20px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.steps li b { display: block; color: var(--blue-dark); font-family: var(--font-head); margin-bottom: 2px; }

.map-embed { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--blue-tint); aspect-ratio: 16 / 9; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.contact-line { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line__icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: var(--r-sm); background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.contact-line__icon svg { width: 22px; height: 22px; }
.contact-line b { display: block; color: var(--blue-dark); font-family: var(--font-head); }
.contact-line a, .contact-line span { color: var(--text); }

/* ---------- Тост уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--blue-dark); color: #fff; padding: 14px 22px; border-radius: var(--r);
  box-shadow: var(--shadow-lg); z-index: var(--z-top);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s;
  font-family: var(--font-head); font-weight: 500; max-width: 90vw;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast--error { background: #C2334B; }

/* ---------- Cookie-баннер ---------- */
.cookiebar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-top);
  max-width: 900px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 16px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookiebar[hidden] { display: none; }
.cookiebar__text { margin: 0; font-size: .92rem; color: var(--muted); flex: 1 1 320px; line-height: 1.5; }
.cookiebar__text a { color: var(--blue); }
.cookiebar__accept { flex: 0 0 auto; }
@media (max-width: 720px) { .cookiebar { bottom: 84px; } }

/* ---------- Кнопка «наверх» ---------- */
.scrolltop {
  position: fixed; right: 22px; bottom: 22px; z-index: var(--z-mobilebar);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transition: opacity .25s, background-color .18s, transform .18s;
}
.scrolltop svg { width: 22px; height: 22px; }
.scrolltop:hover { background: var(--grad-hover); transform: translateY(-2px); }
.scrolltop.show { opacity: 1; visibility: visible; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { order: -1; max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  /* Хиро-картинка мельче и по центру на мобильном */
  .hero__media { max-width: 80%; margin: 0 auto; }

  /* Мобильное меню-drawer */
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 340px);
    background: #fff; z-index: var(--z-drawer);
    transform: translateX(100%); transition: transform .28s ease;
    padding: 78px 20px 24px; overflow-y: auto;
    box-shadow: -8px 0 30px rgba(20,64,110,.12);
    margin-left: 0;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  body.nav-open .nav-toggle__open { display: none; }
  body.nav-open .nav-toggle__close { display: block; }
  body.nav-open .nav-toggle { position: fixed; right: 20px; top: 14px; z-index: var(--z-top); }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--r-sm); }

  .header-phone { display: none; }
  .header-actions .btn--wa { display: none; }
  .header-actions { margin-left: auto; gap: 8px; }

  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  .mobile-bar { display: grid; }
  body { padding-bottom: 74px; }  /* место под липкую панель */
  .scrolltop { bottom: 84px; }
  .catalog-toolbar { top: 0; }

  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Уважение к reduce-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Reveal при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Печать ---------- */
@media print {
  .site-header, .site-footer, .mobile-bar, .scrolltop, .cta-band, .catalog-toolbar { display: none !important; }
}
