/* =========================================================
   МАЗ Центр Казахстан — китайская коммунальная техника
   Разработано OG GROUP
   ========================================================= */

/* ---------- Шрифт (локально, без CDN) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-0.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin-1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  /* фирменные цвета (из материалов клиента) */
  --red: #d71920;
  --red-600: #be141b;
  --red-700: #9e1016;
  --red-light: #ff5a5f;   /* красный для тёмного фона */
  --amber: #f2a900;

  --ink: #101317;
  --ink-2: #181c21;
  --ink-3: #242a31;
  --ink-line: #2f363e;

  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eaedf1;
  --line: #dde2e8;

  --text: #101317;
  --muted: #5a6169;       /* 6.3:1 на белом */
  --muted-dark: #a9b1ba;  /* 8.5:1 на --ink */

  --r: 18px;
  --r-sm: 12px;
  --r-xs: 8px;

  --container: 1240px;
  --pad: 20px;
  --head-h: 72px;

  --s1: 8px;  --s2: 16px;  --s3: 24px;  --s4: 32px;
  --s5: 48px; --s6: 64px;  --s7: 88px;

  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .06);
  --shadow: 0 14px 38px rgba(16, 24, 40, .1);
  --shadow-lg: 0 26px 64px rgba(16, 24, 40, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(100% - (var(--pad) * 2), var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 300;
  padding: 12px 20px; background: var(--red); color: #fff;
  font-weight: 700; border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }

/* ---------- Типографика ---------- */
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; font-weight: 800; overflow-wrap: break-word; }
/* длинные термины вроде «автотопливозаправщики» переносим только на узких экранах */
@media (max-width: 640px) { h1, h2, h3 { hyphens: auto; } }
h1 { font-size: clamp(27px, 5.2vw, 52px); }
h2 { font-size: clamp(25px, 3.6vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.25; letter-spacing: -.02em; }
h4 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red-600);   /* 5.4:1 на светлой подложке секций --surface-2 */
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red-600); }
.section--dark .eyebrow, .pagehero .eyebrow { color: var(--amber); }
.section--dark .eyebrow::before, .pagehero .eyebrow::before { background: var(--amber); }

.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); }
.section--dark .lead, .pagehero .lead, .hero .lead { color: var(--muted-dark); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 12px;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  cursor: pointer; text-align: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-600); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }

.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .34); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

.btn--line { background: transparent; color: var(--text); border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); background: var(--surface); }

.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 15px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(16, 19, 23, .97);
  border-bottom: 1px solid var(--ink-line);
  color: #fff;
}
@supports (backdrop-filter: blur(10px)) {
  .header { background: rgba(16, 19, 23, .86); backdrop-filter: blur(12px); }
}
.header__inner {
  position: relative;          /* точка отсчёта для выпадающего каталога */
  min-height: var(--head-h);
  display: flex; align-items: center; gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.brand b { font-size: 15px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; display: block; }
.brand span { font-size: 11.5px; color: var(--muted-dark); letter-spacing: .04em; text-transform: uppercase; }
.brand__text { display: none; }

.nav { display: none; margin-left: auto; align-items: center; gap: 2px; }
.nav > a, .nav__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: #e7eaee;
  background: none; border: 0; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav > a:hover, .nav__btn:hover, .nav > a[aria-current="page"] { background: var(--ink-3); color: #fff; }
/* отметка текущего раздела — подчёркивание, а не рамка */
.nav > a[aria-current="page"], .nav__btn[aria-current="true"] { position: relative; }
.nav > a[aria-current="page"]::after, .nav__btn[aria-current="true"]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 5px;
  height: 2px; border-radius: 2px; background: var(--red-light);
}
.nav__btn svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__btn[aria-expanded="true"], .nav__btn[aria-current="true"] { background: var(--ink-3); color: #fff; }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .header__actions { margin-left: 0; }
.header__phone { display: none; font-weight: 700; font-size: 15px; white-space: nowrap; padding: 10px 6px; }
.header__phone:hover { color: var(--amber); }
.header__cta { display: none; }

/* кнопка быстрого звонка — только на мобильных, где номер не помещается */
.header__call {
  width: 46px; height: 46px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink-3); color: #fff; border-radius: 11px;
}
.header__call:hover { background: var(--red); }
.header__call svg { width: 22px; height: 22px; }

.burger {
  width: 46px; height: 46px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink-3); color: #fff; border: 0; border-radius: 11px; cursor: pointer;
}
.burger svg { width: 23px; height: 23px; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

/* выпадающий каталог (десктоп) — по ширине контейнера шапки */
.mega {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  transform: translateY(-6px);
  padding: 18px;
  background: var(--surface); color: var(--text);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  display: none; opacity: 0;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.mega[data-open="true"] { display: block; opacity: 1; transform: translateY(0); }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mega__item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 12px; border-radius: 12px;
  transition: background-color .16s var(--ease);
}
.mega__item:hover { background: var(--surface-2); }
.mega__item b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.mega__item span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega__ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--red);
}
.mega__ico svg { width: 21px; height: 21px; }
.mega__foot {
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.mega__foot p { font-size: 14px; color: var(--muted); margin: 0; }

/* мобильное меню */
.drawer {
  position: fixed; inset: var(--head-h) 0 0; z-index: 110;
  background: var(--ink); color: #fff;
  padding: 18px var(--pad) 32px;
  overflow-y: auto; overscroll-behavior: contain;
  display: none;
}
.drawer[data-open="true"] { display: block; }
.drawer h4 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-dark); margin: 20px 0 8px;
}
.drawer a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 12px 14px; border-radius: 12px;
  font-size: 16.5px; font-weight: 600;
  border-bottom: 1px solid var(--ink-line);
}
.drawer a:hover, .drawer a[aria-current="page"] { background: var(--ink-3); }
.drawer a span { font-size: 13px; color: var(--muted-dark); font-weight: 500; }
.drawer__foot { display: grid; gap: 10px; margin-top: 22px; }

body.is-locked { overflow: hidden; }

/* ---------- Хлебные крошки ---------- */
.crumbs { padding: 14px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: flex; align-items: center; gap: 6px; color: var(--muted-dark); }
.crumbs li + li::before { content: '/'; color: var(--ink-line); }
.crumbs a { color: var(--muted-dark); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current="page"] { color: #fff; font-weight: 600; }

/* ---------- Герой главной ---------- */
.hero { background: var(--ink); color: #fff; padding: 0 0 var(--s6); overflow: hidden; }
.hero__grid { display: grid; gap: var(--s4); padding-top: var(--s5); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 11px; border-radius: 999px;
  background: rgba(242, 169, 0, .14); border: 1px solid rgba(242, 169, 0, .4);
  font-size: 13.5px; font-weight: 600; color: #ffd98a;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.hero h1 { margin: 18px 0 0; }
.hero h1 em { font-style: normal; color: var(--red-light); }
.hero .lead { margin-top: 18px; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin-top: 34px; background: var(--ink-line);
  border: 1px solid var(--ink-line); border-radius: var(--r); overflow: hidden;
}
.hero__stats > div { background: var(--ink); padding: 16px 18px; }
.hero__stats b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.hero__stats span { display: block; font-size: 13.5px; color: var(--muted-dark); margin-top: 3px; }

.hero__photo { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.hero__photo img { width: 100%; }
.hero__tag {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(16, 19, 23, .82); font-size: 13px; font-weight: 600; color: #fff;
}
@supports (backdrop-filter: blur(6px)) { .hero__tag { backdrop-filter: blur(6px); } }
.hero__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

/* ---------- Герой внутренней страницы ---------- */
.pagehero { background: var(--ink); color: #fff; padding-bottom: var(--s5); }
.pagehero__grid { display: grid; gap: var(--s4); padding-top: var(--s4); align-items: center; }
.pagehero h1 { margin-top: 14px; }
.pagehero .lead { margin-top: 16px; max-width: 62ch; }
.pagehero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pagehero__media { border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.pagehero__media img { width: 100%; }
.pagehero__facts { display: grid; gap: 10px; margin-top: 26px; }
.pagehero__facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: #e4e8ec; }
.pagehero__facts svg { width: 20px; height: 20px; flex: none; color: var(--amber); margin-top: 2px; }

/* ---------- Секции ---------- */
.section { padding: var(--s6) 0; }
.section--tint { background: var(--surface-2); }
.section--dark { background: var(--ink); color: #fff; }
.section--flush { padding-top: 0; }

.section-head { max-width: 72ch; margin-bottom: var(--s5); }
.section-head .lead { margin-top: 14px; }
.section-head h2 { margin-top: 12px; }
.section-head--split {
  max-width: none; display: grid; gap: var(--s3); align-items: end;
}
.section-head--split > div { max-width: 72ch; }

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

/* ---------- Карточка категории ---------- */
.cat {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; height: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cat:hover { border-color: #c6ccd4; box-shadow: var(--shadow); transform: translateY(-3px); }
.cat__media { position: relative; aspect-ratio: 3 / 2; background: var(--ink-2); overflow: hidden; }
.cat__media img, .cat__media svg { width: 100%; height: 100%; object-fit: cover; }
/* схемы показываем целиком — поля сливаются с фоном самой схемы */
.is-illus { object-fit: contain !important; background: #141920; }
.cat__tag {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(16, 19, 23, .84); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.cat__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat__body p { color: var(--muted); font-size: 15.5px; }
.cat__list { display: grid; gap: 6px; margin-top: 2px; }
.cat__list li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--muted); }
.cat__list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--red);
}
.cat__more {
  margin-top: auto; padding-top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15.5px; color: var(--red);
}
.cat__more svg { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.cat:hover .cat__more svg { transform: translateX(4px); }

/* ---------- Карточка-признак ---------- */
.feat {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; height: 100%;
}
.section--tint .feat { background: var(--surface); }
.section--dark .feat { background: var(--ink-2); border-color: var(--ink-line); }
.feat__ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--surface-2); color: var(--red);
}
.section--dark .feat__ico { background: var(--ink-3); color: var(--amber); }
.feat__ico svg { width: 23px; height: 23px; }
.feat h3 { font-size: 18px; }
.feat p { margin-top: 7px; font-size: 15.5px; color: var(--muted); }
.section--dark .feat p { color: var(--muted-dark); }

/* ---------- Нумерованные шаги ---------- */
.steps { counter-reset: st; display: grid; gap: var(--s3); }
.step {
  position: relative; padding: 22px 22px 22px 70px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.section--dark .step { background: var(--ink-2); border-color: var(--ink-line); }
.step::before {
  counter-increment: st; content: counter(st, decimal-leading-zero);
  position: absolute; left: 22px; top: 22px;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 800;
}
.step h3 { font-size: 18px; }
.step p { margin-top: 7px; font-size: 15.5px; color: var(--muted); }
.section--dark .step p { color: var(--muted-dark); }

/* ---------- Таблица характеристик ---------- */
.specs {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.specs caption {
  text-align: left; padding: 18px 20px 0;
  font-weight: 800; font-size: 18px; letter-spacing: -.02em;
}
.specs th, .specs td {
  text-align: left; padding: 13px 20px; font-size: 15.5px; vertical-align: top;
  overflow-wrap: break-word;
}
.specs th { font-weight: 600; color: var(--muted); width: 52%; }
.specs td { font-weight: 700; }
.specs tbody tr + tr { border-top: 1px solid var(--line); }
.specs tbody tr:nth-child(odd) { background: #fafbfc; }

/* на узких экранах строка характеристики складывается в две строки */
@media (max-width: 599px) {
  .specs th, .specs td { display: block; width: auto; padding: 0 16px; }
  .specs th { padding-top: 13px; font-size: 14.5px; }
  .specs td { padding-bottom: 13px; padding-top: 2px; }
  .specs caption { padding: 16px 16px 0; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden;
}
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer;
  font-weight: 700; font-size: 16.5px; letter-spacing: -.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 13px; height: 13px; margin-top: 5px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { background: #fafbfc; }
.faq__a { padding: 0 20px 20px; color: var(--muted); font-size: 15.5px; }
.faq__a p + p { margin-top: 10px; }

/* ---------- Полоса партнёров ---------- */
.partnerbar { background: var(--ink-2); color: #fff; padding: var(--s5) 0; }
.partnerbar__logos {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(18px, 4vw, 44px); flex-wrap: wrap;
}
.partnerbar__logos img { height: 30px; width: auto; }
.partnerbar__logos .pb-mck { height: 48px; border-radius: 10px; }
/* разделитель — декоративная черта, а не текстовый символ */
.partnerbar__sep { width: 1px; height: 30px; background: var(--ink-line); flex: none; }
.partnerbar p {
  max-width: 80ch; margin: var(--s3) auto 0; text-align: center;
  font-size: 16px; color: var(--muted-dark);
}
.partnerbar p b { color: #fff; }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery button {
  position: relative; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--r-sm); overflow: hidden; background: var(--ink-2);
  aspect-ratio: 4 / 3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 10, 12, .94);
  display: none; place-items: center; padding: 56px 16px;
}
.lightbox[data-open="true"] { display: grid; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 78vh; object-fit: contain; border-radius: var(--r-sm); }
.lightbox__cap { margin-top: 14px; color: #dfe3e8; font-size: 14.5px; text-align: center; max-width: 70ch; }
.lb-btn {
  position: absolute; width: 48px; height: 48px;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Призыв ---------- */
.cta {
  background: var(--red); color: #fff;
  border-radius: var(--r); padding: clamp(26px, 4vw, 44px);
  display: grid; gap: var(--s3); align-items: center;
}
.cta h2 { font-size: clamp(23px, 3vw, 32px); }
.cta p { margin-top: 10px; color: rgba(255, 255, 255, .9); font-size: 16.5px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--dark { background: var(--ink); }
.cta .btn--ghost { border-color: rgba(255, 255, 255, .6); }

/* ---------- Форма ---------- */
.form-wrap { display: grid; gap: var(--s5); }
.contact-list { display: grid; gap: 10px; margin-top: var(--s4); }
.contact-list > * {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--ink-2); border: 1px solid var(--ink-line);
}
a.contact-list__i:hover { border-color: var(--amber); }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--amber); }
.contact-list b { display: block; font-size: 16.5px; }
.contact-list small { display: block; font-size: 13.5px; color: var(--muted-dark); }

.form-card { background: var(--surface); color: var(--text); border-radius: var(--r); padding: clamp(20px, 3vw, 30px); }
.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14.5px; font-weight: 600; }
.field .req { color: var(--red); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 11px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa2ab; }
.field input:hover, .field textarea:hover { border-color: #c3cad2; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 25, 32, .14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red-700); background: #fff7f7; }
.field .err { font-size: 13.5px; color: var(--red-700); font-weight: 600; min-height: 0; }
.field .err:empty { display: none; }

.form-submit { display: grid; gap: 10px; margin-top: 20px; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }

.form-alert { display: none; padding: 14px 16px; border-radius: 11px; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.form-alert[data-show="true"] { display: block; }
.form-alert--err { background: #fdeaea; color: #8c0f15; border: 1px solid #f3c2c4; }
.form-alert--ok { background: #e8f6ed; color: #0f6b33; border: 1px solid #b7e0c6; }
.form-alert a { text-decoration: underline; }
.form-alert ul { margin: 8px 0 0; display: grid; gap: 4px; }
.form-alert li { font-weight: 500; }

/* ---------- Статьи ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 42px; font-size: clamp(22px, 2.6vw, 29px); }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { font-size: 17px; color: #2b3138; line-height: 1.68; }
.prose ul, .prose ol { display: grid; gap: 9px; padding-left: 0; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before {
  content: ''; position: absolute; left: 2px; top: 11px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--red);
}
.prose ol { counter-reset: p; }
.prose ol li { position: relative; padding-left: 34px; counter-increment: p; }
.prose ol li::before {
  content: counter(p) '.'; position: absolute; left: 2px; top: 0;
  font-weight: 800; color: var(--red);
}
.prose a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--red-700); }
.prose blockquote {
  padding: 18px 22px; border-left: 4px solid var(--red);
  background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 17px;
}
.prose figure { margin: 26px 0; }
.prose figure img { border-radius: var(--r-sm); width: 100%; }
.prose figcaption { margin-top: 9px; font-size: 14px; color: var(--muted); }

.artmeta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--muted-dark); margin-top: 16px; }
.artmeta span { display: inline-flex; align-items: center; gap: 7px; }
.artmeta svg { width: 16px; height: 16px; }

/* карточка статьи */
.post {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; gap: 10px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.post:hover { border-color: #c6ccd4; box-shadow: var(--shadow); transform: translateY(-3px); }
.post__tag { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--red); }
.post h3 { font-size: 19px; }
.post p { color: var(--muted); font-size: 15.5px; }
.post__more { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--red); font-size: 15.5px; }

/* ---------- Якорные ссылки на смежные разделы ---------- */
.linkrow { display: grid; gap: 10px; }
.linkrow a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 18px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: 15.5px;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.linkrow a:hover { border-color: var(--ink); }
.linkrow svg { width: 18px; height: 18px; color: var(--red); flex: none; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #fff; padding: var(--s6) 0 var(--s3); }
.footer__top { display: grid; gap: var(--s4); padding-bottom: var(--s5); }
.footer__top > div > p { margin-top: 14px; font-size: 15px; color: var(--muted-dark); max-width: 42ch; }
.footer h4 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: 14px;
}
.footer nav, .footer__contacts { display: grid; gap: 2px; }
.footer nav a, .footer__contacts a {
  font-size: 15px; color: #dfe3e8; width: fit-content;
  display: inline-flex; align-items: center; min-height: 44px;
}
.footer nav a:hover, .footer__contacts a:hover { color: var(--amber); text-decoration: underline; }
.footer__contacts b { font-size: 17px; }
.footer__contacts small { display: block; font-size: 14px; color: var(--muted-dark); }
.footer__bottom {
  border-top: 1px solid var(--ink-line); padding-top: var(--s3);
  display: grid; gap: 10px; font-size: 13.5px; color: var(--muted-dark);
}
.footer__bottom a { color: #fff; font-weight: 700; }
.footer__bottom a:hover { color: var(--amber); }

/* ---------- Список-галочки (регионы: задачи) ---------- */
.checklist { display: grid; gap: 12px; max-width: 80ch; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 16px;
}
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--red); margin-top: 2px; }

/* ---------- Карточка города ---------- */
.geo {
  display: flex; gap: 14px; align-items: flex-start; height: 100%;
  padding: 22px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.geo:hover { border-color: #c6ccd4; box-shadow: var(--shadow); transform: translateY(-3px); }
.geo > div { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.geo__ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--amber);
}
.geo__ico svg { width: 24px; height: 24px; }
.geo__tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.geo h3 { font-size: 21px; }
.geo p { color: var(--muted); font-size: 15.5px; }

/* ---------- Регионы в подвале ---------- */
.footer__geo { border-top: 1px solid var(--ink-line); padding: var(--s3) 0; }
.footer__geo nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer__geo nav a { min-height: 40px; }

/* ---------- Плавающий WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 130;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .42);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float:hover { transform: scale(1.07); box-shadow: 0 14px 34px rgba(37, 211, 102, .55); }
.wa-float svg { width: 31px; height: 31px; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .38s var(--ease), transform .38s var(--ease); }

/* ---------- 404 ---------- */
.nf { min-height: 56vh; display: grid; place-items: center; text-align: center; padding: var(--s6) 0; }
.nf__code { font-size: clamp(72px, 16vw, 148px); font-weight: 800; line-height: 1; color: var(--red); letter-spacing: -.05em; }

/* =========================================================
   Адаптив
   ========================================================= */

@media (min-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .form-submit { grid-template-columns: 1fr auto; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
  .brand__text { display: block; }
}

@media (min-width: 768px) {
  :root { --pad: 28px; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .cta { grid-template-columns: 1.6fr auto; }
  .section-head--split { grid-template-columns: 1fr auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* на самых узких экранах кнопки занимают всю ширину — меньше промахов по тапу */
@media (max-width: 479px) {
  .hero__actions .btn, .pagehero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
}

@media (min-width: 1024px) {
  :root { --head-h: 78px; }
  .nav { display: flex; }
  .burger { display: none; }
  .header__cta { display: inline-flex; }
  .drawer { display: none !important; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(5, 1fr); }

  .hero__grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--s6); padding-top: var(--s6); }
  .pagehero__grid { grid-template-columns: 1.15fr 1fr; gap: var(--s6); }
  .form-wrap { grid-template-columns: 1fr 1.05fr; gap: var(--s6); align-items: start; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .linkrow { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  /* номер целиком показываем только там, где он помещается рядом с меню */
  .header__phone { display: inline-flex; }
  .header__call { display: none; }
}

/* ---------- Уважение к системным настройкам ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .drawer, .wa-float, .lightbox, .hero__actions, .cta, .footer nav { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section { padding: 12pt 0; }
}
