/* =========================================================
   МАЗ Центр Казахстан — КДМ на шасси МАЗ
   Разработано OG GROUP
   ========================================================= */

/* ---------- Шрифт (локально) ---------- */
@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;    /* красный для тёмного фона (контраст 6.1:1) */
  --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: 20px;
  --r-sm: 12px;
  --r-xs: 8px;

  --container: 1240px;
  --pad: 20px;

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

  --shadow: 0 16px 44px rgba(16, 24, 40, .1);
  --shadow-lg: 0 28px 70px 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: 88px;
  -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 { 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 { margin: 0; }
ul { padding: 0; list-style: none; }

: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: 200;
  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.06; letter-spacing: -.035em; font-weight: 800; }

h1 { font-size: clamp(34px, 7.2vw, 66px); }
h2 { font-size: clamp(27px, 4.6vw, 46px); }
h3 { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.2; letter-spacing: -.02em; }

.lead {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 62ch;
}
.section--dark .lead,
.hero .lead { color: var(--muted-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-600);   /* 6.3:1 на белом, 5.4:1 на --surface-2 */
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  border-radius: 99px;
  background: currentColor;
}
.section--dark .eyebrow { color: var(--red-light); }

/* ---------- Секции ---------- */
.section { padding: var(--s6) 0; }
@media (min-width: 768px)  { .section { padding: 76px 0; } }
@media (min-width: 1280px) { .section { padding: var(--s7) 0; } }

.section--dark { background: var(--ink); color: #fff; }
.section--tint { background: var(--surface-2); }

.section-head { margin-bottom: var(--s5); max-width: 760px; }
.section-head .lead { margin-top: 16px; }

@media (min-width: 1024px) {
  .section-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s5);
    max-width: none;
  }
  .section-head--split > div:first-child { max-width: 720px; }
}

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

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 26px rgba(215, 25, 32, .28);
}
.btn--primary:hover { background: var(--red-600); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }

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

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }

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

.btn--wa { background: #1da851; color: #fff; }
.btn--wa:hover { background: #17903f; transform: translateY(-2px); }

.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: rgba(16, 19, 23, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--ink-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
}
@media (min-width: 1024px) { .header__inner { min-height: 82px; gap: 16px; } }

/* Правка №196: подпись «МАЗ Центр Казахстан» снята — в шапке и подвале
   остаётся только значок МЦК, и он показывается заметно крупнее
   (38px -> 52/62px). Исходник логотипа 128px, поэтому на DPR 2 он резкий. */
.brand { display: flex; align-items: center; flex: none; min-height: 44px; }
.brand img { display: block; width: 52px; height: 52px; }
@media (min-width: 1024px) { .brand img { width: 62px; height: 62px; } }

.partner {
  display: none;
  flex: none;
  align-items: center;
  gap: 9px;
  padding-left: 14px;
  border-left: 1px solid var(--ink-line);
}
.partner__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
/* Правка №187: партнёров двое (Kailion и ESM). В строке шапки на них нет
   свободной ширины — ставим логотипы столбиком: пара занимает даже меньше
   места, чем один логотип в строку, а их размер почти не падает. */
.partner__logos { display: grid; gap: 5px; }
.partner__logos img { display: block; width: 92px; height: auto; }
.partner__logos img.p-esm { width: 100px; }
/* Правка №153: белых подложек под логотипами нет. На тёмных поверхностях
   (шапка, меню, партнёрская полоса) Kailion идёт в светлом варианте
   kailion-light.webp, значок МЦК — с прозрачным фоном. */
/* Логотип партнёра в шапке — только там, где он не поджимает меню.
   На меньших ширинах Kailion показан в блоке под первым экраном, в меню и в разделе «О компании». */
/* Правка №196: снятая подпись бренда освободила ~150px в строке шапки,
   поэтому блок партнёров включается уже с 1280px, а не с 1360px. */
@media (min-width: 1280px) { .partner { display: flex; } }

.nav { display: none; margin-left: auto; gap: 2px; }
@media (min-width: 1140px) { .nav { display: flex; } }
/* «Машина» — только в мобильном меню и подвале: в шапке этот пункт вытесняет
   логотип партнёра и телефон, которые важнее для конверсии. */
.nav a.nav--opt { display: none; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 14.5px;
  white-space: nowrap;
  font-weight: 600;
  color: #d8dde3;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 1140px) { .header__actions { margin-left: 0; } }

/* Телефон в шапке: показываем там, где для него есть место.
   В диапазоне 1140-1399px его вытесняет основное меню — там работает пункт «Позвонить» в меню. */
.header__phone {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
}
.header__phone:hover { color: var(--red-light); }
@media (min-width: 680px)  { .header__phone { display: flex; } }
@media (min-width: 1140px) { .header__phone { display: none; } }
@media (min-width: 1400px) { .header__phone { display: flex; } }

.header .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.header__cta { display: none; }
@media (min-width: 880px) { .header__cta { display: inline-flex; } }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  color: #fff;
  cursor: pointer;
}
.burger:hover { background: rgba(255, 255, 255, .16); }
@media (min-width: 1140px) { .burger { display: none; } }
.burger svg { width: 22px; height: 22px; }
.burger .icon-close, .burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

.drawer {
  position: fixed;
  inset: 68px 0 0 0;
  z-index: 89;
  padding: 24px var(--pad) 40px;
  background: var(--ink);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1140px) { .drawer { display: none; } }

.drawer a.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--ink-line);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.drawer a.drawer__link::after { content: "→"; color: var(--muted-dark); }
.drawer__foot { display: grid; gap: 12px; margin-top: 28px; }
.drawer__partner {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
}
.drawer__partner-logos { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.drawer__partner-logos img { width: 118px; height: auto; }
.drawer__partner-logos img.p-esm { width: 128px; }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  padding-top: 104px;
  padding-bottom: var(--s6);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(215, 25, 32, .3), transparent 62%);
  pointer-events: none;
}
@media (min-width: 1024px) { .hero { padding-top: 130px; padding-bottom: 76px; } }

.hero__grid { position: relative; display: grid; gap: var(--s5); }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; gap: 56px; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 8px 15px 8px 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}
.hero__badge .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 4px rgba(46, 204, 113, .22);
}

.hero h1 { margin-bottom: 20px; font-size: clamp(32px, 6vw, 58px); }
.hero h1 em { font-style: normal; color: var(--red-light); }
.hero .lead { margin-bottom: 28px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 210px; }
@media (min-width: 560px) { .hero__actions .btn { flex: 0 0 auto; } }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
@media (min-width: 680px) { .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero__stats div { padding: 16px 14px; background: var(--ink-2); }
.hero__stats b {
  display: block;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -.03em;
}
.hero__stats span { font-size: 13px; color: var(--muted-dark); }

.hero__visual { position: relative; }
.hero__photo {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-line);
}
.hero__photo img { width: 100%; height: auto; }
.hero__tag {
  position: absolute;
  left: 16px; bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(16, 19, 23, .86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
}
.hero__tag i {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--amber);
  flex: none;
}

/* ---------- Партнёрская плашка ---------- */
.partnerbar { background: var(--ink-2); color: #fff; padding: 28px 0; border-top: 1px solid var(--ink-line); }
.partnerbar__inner { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .partnerbar__inner { grid-template-columns: auto 1px minmax(0, 1fr); gap: 32px; } }
.partnerbar__logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.partnerbar__logos img.pb-mck { width: 52px; height: 52px; }
.partnerbar__logos img.pb-kailion { width: 150px; height: auto; }
.partnerbar__logos img.pb-esm { width: 166px; height: auto; }
.partnerbar__x { color: var(--muted-dark); font-size: 20px; font-weight: 300; }
/* Ниже 560px три знака в строку не помещаются: ESM переносится, и разделитель
   «×» повисает в конце первой строки. На узких экранах убираем разделители —
   логотипы просто выстраиваются с отступом. */
@media (max-width: 559px) { .partnerbar__x { display: none; } .partnerbar__logos { gap: 16px 24px; } }
.partnerbar__rule { display: none; align-self: stretch; background: var(--ink-line); }
@media (min-width: 900px) { .partnerbar__rule { display: block; } }
.partnerbar p { color: var(--muted-dark); font-size: 15px; max-width: 70ch; }
.partnerbar b { color: #fff; }

/* ---------- Сетки карточек ---------- */
.grid { display: grid; gap: var(--s3); }
.grid--2 { grid-template-columns: minmax(0, 1fr); }
.grid--3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px)  { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px)  { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Карточка оснащения */
.eq {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.eq:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd6de; }
.eq__media { position: relative; aspect-ratio: 43 / 30; background: var(--surface-2); }
.eq__media img { width: 100%; height: 100%; object-fit: cover; }
.eq__num {
  position: absolute;
  top: 12px; left: 12px;
  display: grid;
  place-items: center;
  min-width: 34px; height: 34px;
  padding: 0 9px;
  background: var(--red);
  color: #fff;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}
.eq__body { padding: 22px; }
.eq__body h3 { margin-bottom: 8px; }
.eq__body p { color: var(--muted); font-size: 15.5px; }

/* Возможности исполнения */
.caps { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  /* Пятая карточка в ряду одна — растягиваем на всю ширину с плоским полем фото. */
  .caps > .cap:nth-child(5) { grid-column: span 2; }
  .caps > .cap:nth-child(5) .cap__media { aspect-ratio: 11 / 5; }
}
@media (min-width: 1024px) {
  .caps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .caps > .cap { grid-column: span 2; }
  .caps > .cap:nth-child(4), .caps > .cap:nth-child(5) { grid-column: span 3; }
  /* Широкие карточки нижнего ряда — более плоское поле изображения,
     чтобы высота медиа совпадала с карточками верхнего ряда. */
  .caps > .cap:nth-child(4) .cap__media,
  .caps > .cap:nth-child(5) .cap__media { aspect-ratio: 11 / 5; }
}
.cap {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.cap:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd6de; }
.cap__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: linear-gradient(160deg, #ffffff 0%, #eef1f5 100%);
  border-bottom: 1px solid var(--line);
}
.cap__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cap__num {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 34px; height: 34px;
  padding: 0 9px;
  background: var(--red);
  color: #fff;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}
.cap__body { padding: 22px; }
.cap__body h3 { margin-bottom: 8px; }
.cap__body p { color: var(--muted); font-size: 15.5px; }
.caps__foot {
  display: grid;
  gap: 16px;
  margin-top: var(--s4);
  padding: 22px 24px;
  background: var(--surface-2);
  border-radius: var(--r);
}
.caps__foot p { color: var(--muted); max-width: 62ch; }
.caps__foot .btn { justify-self: start; }
@media (min-width: 768px) {
  .caps__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 28px; }
  .caps__foot .btn { justify-self: end; }
}

/* Карточка преимущества (тёмная) */
.adv {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.adv:hover { transform: translateY(-4px); border-color: #414a54; background: #1c2127; }
.adv__n {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--red-light);
}
.adv h3 { margin-bottom: 9px; color: #fff; }
.adv p { color: var(--muted-dark); font-size: 15.5px; }

/* Карточка аудитории */
.aud {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.aud:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.aud__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  background: rgba(215, 25, 32, .09);
  color: var(--red-700);
}
.aud__ico svg { width: 25px; height: 25px; }
.aud h3 { margin-bottom: 6px; font-size: 18px; }
.aud p { color: var(--muted); font-size: 15px; }

/* ---------- Сезоны ---------- */
.season { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .season { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.season__card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.season__media { position: relative; aspect-ratio: 46 / 33; }
.season__media img { width: 100%; height: 100%; object-fit: cover; }
.season__chip {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(16, 19, 23, .93);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.season__chip svg { width: 16px; height: 16px; }
.season__chip--w { color: #8fd3ff; }
.season__chip--s { color: var(--amber); }
.season__body { padding: 26px 24px 28px; }
.season__body h3 { margin-bottom: 10px; }
.season__body > p { color: var(--muted); margin-bottom: 18px; }
.ticks { display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; font-size: 15.5px; }
.ticks li::before {
  content: "";
  flex: none;
  width: 21px; height: 21px;
  margin-top: 1px;
  border-radius: 6px;
  background: rgba(215, 25, 32, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be141b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--dark .ticks li::before {
  background-color: rgba(255, 90, 95, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a5f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Галерея ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px)  { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.gallery button {
  position: relative;
  display: block;
  padding: 0;
  width: 100%;
  aspect-ratio: 35 / 26;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery button:hover { box-shadow: var(--shadow); }
.gallery button:hover img { transform: scale(1.06); }
.gallery button::after {
  content: "";
  position: absolute;
  right: 10px; bottom: 10px;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(16, 19, 23, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-8 8M3 21l8-8'/%3E%3C/svg%3E") center / 15px no-repeat;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.gallery button:hover::after, .gallery button:focus-visible::after { opacity: 1; }

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(8, 10, 12, .93);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 130px);
  width: auto;
  border-radius: var(--r-sm);
}
.lightbox__cap {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  max-width: min(92vw, 640px);
  padding: 8px 16px;
  background: rgba(255, 255, 255, .1);
  border-radius: 99px;
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  padding: 0;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; margin-top: -25px; }
.lb-next { right: 12px; top: 50%; margin-top: -25px; }
@media (min-width: 768px) { .lb-prev { left: 26px; } .lb-next { right: 26px; } }

/* ---------- Сервис ---------- */
.svc {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}
.svc__ico svg { width: 23px; height: 23px; }
.svc h3 { margin-bottom: 6px; font-size: 18px; }
.svc p { color: var(--muted); font-size: 15px; }

/* ---------- Наличие / поставка ---------- */
.supply { display: grid; gap: var(--s5); }
@media (min-width: 1024px) { .supply { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; } }

.supply__list { display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 560px) { .supply__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.supply__list li { display: flex; gap: 12px; align-items: flex-start; padding: 20px 18px; background: var(--ink-2); font-size: 15.5px; font-weight: 600; }
.supply__list svg { flex: none; width: 21px; height: 21px; color: var(--red-light); margin-top: 1px; }

.lease {
  padding: 28px 26px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r);
}
.lease h3 { margin-bottom: 18px; color: #fff; }
.lease dl { display: grid; gap: 14px; margin: 0 0 20px; }
.lease .row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--ink-line); }
.lease dt { color: var(--muted-dark); font-size: 15px; }
.lease dd { margin: 0; font-weight: 800; font-size: 17px; text-align: right; }
.lease__note { color: var(--muted-dark); font-size: 13.5px; }

/* ---------- О компании ---------- */
.about { display: grid; gap: var(--s5); }
@media (min-width: 1024px) { .about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; } }
.about__photo { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.about__photo img { width: 100%; height: auto; }
.about__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
@media (min-width: 640px) { .about__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.about__facts div { padding: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.about__facts b { display: block; font-size: clamp(19px, 2.6vw, 24px); font-weight: 800; letter-spacing: -.03em; }
.about__facts span { font-size: 13.5px; color: var(--muted); }

.partner-card {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--r-sm);
}
@media (min-width: 680px) { .partner-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 26px; } }
.partner-card__logos { display: grid; gap: 16px; justify-items: start; }
.partner-card__logos img { display: block; width: 156px; height: auto; }
.partner-card__logos img.p-esm { width: 170px; }
.partner-card p { color: var(--muted); font-size: 15.5px; }
.partner-card b { color: var(--text); }

/* ---------- Форма ---------- */
.form-wrap { display: grid; gap: var(--s5); }
@media (min-width: 1024px) { .form-wrap { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; } }

.form-card {
  padding: 24px 20px 26px;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
@media (min-width: 560px) { .form-card { padding: 32px 30px 34px; } }

.form-grid { display: grid; gap: 16px; }
@media (min-width: 560px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field label .req { color: var(--red-700); }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  background: #fbfcfd;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 16px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #98a1ab; }
.field input:hover, .field textarea:hover { border-color: #c3ccd6; }
.field input:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, .13);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--red-700);
  background: #fff6f6;
}
.field .err { display: none; font-size: 13.5px; font-weight: 600; color: var(--red-700); }
.field .err.is-shown { display: block; }

.form-alert {
  display: none;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
}
.form-alert.is-shown { display: block; }
.form-alert--err { background: #fdecec; border: 1px solid #f5c3c5; color: #8d0d13; }
.form-alert--ok { background: #e9f8ef; border: 1px solid #b9e6ca; color: #10643a; }
.form-alert a { text-decoration: underline; }

.form-submit { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 560px) { .form-submit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

.contact-list { display: grid; gap: 12px; margin-top: 28px; }
.contact-list a, .contact-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--r-sm);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.contact-list a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.contact-list svg { flex: none; width: 22px; height: 22px; color: var(--red-light); }
.contact-list b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.contact-list span { font-size: 13px; color: var(--muted-dark); }

/* ---------- Подвал ---------- */
/* Нижний отступ с запасом: плавающая кнопка WhatsApp (58px + 16px) не должна
   перекрывать строку копирайта и подпись OG GROUP на самом низу страницы. */
.footer { background: var(--ink-2); color: #fff; padding: var(--s6) 0 92px; border-top: 1px solid var(--ink-line); }
.footer__top { display: grid; gap: var(--s4); padding-bottom: var(--s5); border-bottom: 1px solid var(--ink-line); }
@media (min-width: 900px) { .footer__top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); } }
.footer .brand img { width: 64px; height: 64px; }
.footer p { margin-top: 16px; color: var(--muted-dark); font-size: 15px; max-width: 46ch; }
.footer h4 { margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.footer nav { display: grid; gap: 2px; }
.footer nav a, .footer__contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #dfe4ea;
  font-size: 15px;
}
.footer nav a:hover, .footer__contacts a:hover { color: var(--red-light); }
.footer__contacts { display: grid; gap: 2px; }
.footer__contacts span { display: inline-flex; align-items: center; min-height: 40px; }
.footer__contacts b { font-size: 18px; font-weight: 800; color: #fff; }
.footer__bottom {
  display: grid;
  gap: 12px;
  padding-top: 22px;
  font-size: 13.5px;
  color: var(--muted-dark);
}
@media (min-width: 768px) { .footer__bottom { grid-template-columns: 1fr auto; align-items: center; } }
.footer__bottom a { color: #fff; font-weight: 700; }
.footer__bottom a:hover { color: var(--red-light); }

/* ---------- Плавающий WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .42);
  transition: transform .22s var(--ease), background-color .22s var(--ease);
}
.wa-float:hover { transform: scale(1.07); background: #1eb857; }
.wa-float svg { width: 31px; height: 31px; }
@media (min-width: 768px) { .wa-float { right: 24px; bottom: 24px; width: 62px; height: 62px; } }
/* При открытом меню плавающая кнопка перекрывала кнопку «Получить предложение»
   в подвале меню — на время открытия убираем её. */
body.is-locked .wa-float { opacity: 0; visibility: hidden; transition: none; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

body.is-locked { overflow: hidden; }
