/* ==========================================================
   МТК — базовые стили и общие компоненты
   Макеты: Figma «МТК / Все страницы — десктоп и мобильная версия»
   Десктоп 1470px, мобильная 375px. Мобильная раскладка ≤ 767px.
   ========================================================== */

/* ---------- Шрифты: свои файлы (OFL), без Google Fonts ---------- */
/* Onest — основной текст. Пока грузится, показываем Arial, подогнанный по метрикам Onest, — текст не прыгает */
@font-face {
  font-family: "Onest";
  src: url("../assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("../assets/fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Onest Fallback";
  src: local("Arial");
  size-adjust: 104.2%;
  ascent-override: 93.06%;
  descent-override: 29.26%;
  line-gap-override: 0%;
}
/* Oswald — заголовки. Узкий шрифт без похожей замены: короткая пауза вместо перерисовки широким шрифтом */
@font-face {
  font-family: "Oswald";
  src: url("../assets/fonts/oswald-cyrillic.woff2") format("woff2");
  font-weight: 200 700;
  font-display: block;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oswald";
  src: url("../assets/fonts/oswald-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-display: block;
  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 {
  --c-accent: #f60;
  --c-accent-hover: #e85d00;
  --c-accent-soft: rgba(255, 102, 0, .1);
  --c-accent-soft-solid: #ffe8d9;
  --c-page: #f6f6f6;
  --c-surface: #e6e6e6;
  --c-white: #fff;
  --c-ink: #151515;
  --c-ink-2: #171717;
  --c-black: #0e0e0e;
  --c-text: #62625e;
  --c-text-2: #636361;
  --c-muted: #666;
  --c-footer: #111;
  --c-footer-line: #373733;
  --c-footer-label: #969691;
  --c-footer-text: #b5b5b0;
  --c-dark-btn: #292929;
  --c-line: #dcdcd6;

  --f-display: "Oswald", "Arial Narrow", sans-serif;
  --f-text: "Onest", "Onest Fallback", sans-serif;

  --r-sm: 16px;
  --r: 20px;
  --r-lg: 24px;
  --r-xl: 32px;

  --wrap: 1470px;
  --gutter: 32px;
  --section-y: 80px;

  --fs-h1: clamp(36px, 4.354vw, 64px);
  --fs-h2: clamp(36px, 4.354vw, 64px);
  --header-h: 64px;
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --section-y: 40px;
    --header-h: 64px;
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.4;
  color: var(--c-ink);
  background: var(--c-page);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
/* атрибуты width/height в разметке — только для резерва пропорций, размер задаёт CSS */
img { width: auto; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

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

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

/* только скрываем: на «своей» ширине элемент сохраняет display из своих стилей */
@media (min-width: 768px) {
  .only-mobile { display: none !important; }
}
@media (max-width: 767px) {
  .only-desktop { display: none !important; }
}

/* ---------- Layout ---------- */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.section--flush-top { padding-top: 0; }
.section--tight-bottom { padding-bottom: 0; }
.stack { display: flex; flex-direction: column; }

/* ---------- Типографика ---------- */

.h1, .h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.125;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.h1 { font-size: var(--fs-h1); color: var(--c-black); }
.h1, .h2 { overflow-wrap: anywhere; }
.accent { color: var(--c-accent); }
.h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.lead {
  font-weight: 500;
  font-size: 22px;
  line-height: 30px;
  color: var(--c-text);
}
.text { font-size: 18px; line-height: 26px; }
.text-muted { color: var(--c-text); }

@media (max-width: 767px) {
  .h1, .h2 { font-size: 36px; line-height: 1.12; }
  .h3 { font-size: 24px; }
  .lead { font-size: 16px; line-height: 23px; }
  .text { font-size: 16px; line-height: 24px; }
}

/* Чип-надзаголовок */
.chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .chip { padding: 6px 12px; }
}

/* Заголовок секции */
.heading { display: flex; flex-direction: column; gap: 16px; }
.heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.heading-row > .heading { max-width: 906px; }
@media (max-width: 1023px) {
  .heading-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 767px) {
  .heading { gap: 12px; }
}

/* Ссылка со стрелкой */
.link-arrow {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color: var(--c-accent);
  transition: color .2s;
}
.link-arrow:hover { color: var(--c-accent-hover); }
@media (max-width: 767px) { .link-arrow { font-size: 16px; } }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--sm { min-height: 56px; }
.btn--accent { background: var(--c-accent); color: var(--c-white); }
.btn--accent:hover { background: var(--c-accent-hover); }
.btn--white { background: var(--c-white); border-color: var(--c-surface); color: var(--c-ink); }
.btn--white:hover { border-color: var(--c-ink); }
.btn--dark { background: var(--c-ink); color: var(--c-white); }
.btn--dark:hover { background: #2a2a2a; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (max-width: 767px) {
  .btn { min-height: 56px; font-size: 16px; }
  .actions { grid-template-columns: 1fr; }
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-footer);
  color: var(--c-white);
}
.header__inner {
  position: relative;
  max-width: var(--wrap);
  height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
}
.header__logo img { width: 207px; height: 48px; }
.header__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}
.header__phone { font-weight: 600; }
.header__hours { opacity: .6; }
.header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}
.header__nav a { transition: color .2s; }
.header__nav a:hover,
.header__nav a[aria-current="page"] { color: var(--c-accent); }
.header__actions { display: none; gap: 8px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--c-dark-btn);
  color: var(--c-white);
  transition: background-color .2s;
}
.icon-btn:hover { background: #3a3a3a; }
.icon-btn img { width: 24px; height: 24px; }
.icon-btn .icon-close { display: none; width: 22px; height: 22px; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.header__logo-m { display: none; width: 136px; }
.header__logo-m img { width: 136px; height: 32px; }
.header__logo-m span {
  display: block;
  margin-top: 3px;
  font-weight: 700;
  font-size: 5.7px;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--c-accent);
  white-space: nowrap;
}

/* Мобильное меню (в макетах не нарисовано — оформлено в стиле шапки) */
.menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 24px;
  padding: 24px var(--gutter) 32px;
  overflow-y: auto;
  background: var(--c-footer);
  color: var(--c-white);
}
.menu.is-open { display: flex; }
.menu__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}
.menu__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  line-height: 20px;
  border-bottom: 1px solid var(--c-footer-line);
}
.menu__list a[aria-current="page"] { color: var(--c-accent); }
.menu__contacts { display: flex; flex-direction: column; gap: 8px; }
.menu__phone { font-weight: 600; font-size: 25px; line-height: 35px; }
.menu__hours { font-size: 14px; line-height: 20px; color: var(--c-footer-text); }

@media (max-width: 1180px) {
  .header__hours { display: none; }
}
@media (max-width: 1023px) {
  .header__inner { padding: 0 var(--gutter); }
  .header__nav, .header__contact { display: none; }
  .header__actions { display: flex; }
}
@media (max-width: 767px) {
  .header__logo { display: none; }
  .header__logo-m { display: block; }
}
@media (min-width: 1024px) {
  .menu { display: none !important; }
}

/* ---------- Хлебные крошки ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-text);
}
.crumbs a:hover { color: var(--c-accent); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--c-line); }
.crumbs [aria-current] { color: var(--c-ink); }
@media (max-width: 767px) { .crumbs { font-size: 13px; line-height: 18px; } }

/* ---------- Footer ---------- */

.footer {
  background: var(--c-footer);
  color: var(--c-white);
}
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 32px 32px;
}
.footer__groups {
  display: flex;
  gap: 50px;
  min-height: 194px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-footer-line);
}
.footer__brand { flex: 0 0 338px; }
.footer__brand img { width: 240px; height: auto; }
.footer__col {
  flex: 0 0 246px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  line-height: 22px;
}
.footer__col--contacts { flex-basis: 328px; gap: 14px; }
.footer__col a:hover { color: var(--c-accent); }
.footer__label { font-size: 13px; line-height: 18px; color: var(--c-footer-label); }
.footer__phone { font-weight: 600; font-size: 25px; line-height: 35px; }
.footer__hours { font-size: 14px; line-height: 20px; color: var(--c-footer-text); }
.footer__messengers { font-size: 15px; line-height: 21px; }
.footer__messengers a:hover { color: var(--c-accent); }
.footer__msg-btns { display: none; }
.footer__logo-m { width: 136px; }
.footer__logo-m img { width: 136px; height: 31px; filter: brightness(0) invert(1); }
.footer__logo-m span { display: block; margin-top: 3px; font-weight: 700; font-size: 5.7px; line-height: 1.2; letter-spacing: .02em; white-space: nowrap; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 24px; font-size: 13px; line-height: 18px; color: var(--c-footer-text); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a:hover { color: var(--c-accent); }

@media (max-width: 1280px) {
  .footer__inner { padding-inline: 32px; }
  .footer__groups { gap: 32px; }
  .footer__brand { flex: 1 1 auto; }
}
@media (max-width: 1023px) {
  .footer__groups { flex-wrap: wrap; }
  .footer__brand { flex-basis: 100%; }
}
@media (max-width: 767px) {
  .footer__inner { padding: 32px 16px 28px; }
  .footer__groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    min-height: 0;
    padding-bottom: 28px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand img { width: 136px; height: auto; }
  .footer__col--contacts { grid-column: 1 / -1; grid-row: 2; gap: 8px; }
  .footer__col { gap: 4px; font-size: 14px; line-height: 20px; }
  .footer__col a:not(.footer__phone) { display: flex; align-items: center; min-height: 44px; }
  .footer__label { color: var(--c-footer-text); }
  .footer__messengers { display: none; }
  .footer__msg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
  .footer__msg-btns a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--c-footer-line);
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 14px;
  }
  .footer__bottom { flex-direction: column; gap: 12px; margin-top: 28px; }
  .footer__legal { flex-direction: column; gap: 12px; }
}

/* ==========================================================
   Общие блоки
   ========================================================== */

/* ---------- Карточки преимуществ ---------- */

.proofs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 228px;
  padding: 24px 24px 20px;
  border: 1px solid var(--c-surface);
  border-radius: var(--r);
  background: var(--c-white);
  text-align: center;
}
.proof__icon { position: relative; flex-shrink: 0; width: 64px; height: 64px; overflow: hidden; }
.proof__icon > span { position: absolute; }
.proof__icon img { position: absolute; max-width: none; }
.proof__copy { display: flex; flex-direction: column; gap: 6px; }
.proof__title { font-weight: 600; font-size: 18px; line-height: 22px; color: var(--c-ink-2); }
.proof__text { font-weight: 500; font-size: 14px; line-height: 18px; color: var(--c-muted); }

@media (max-width: 767px) {
  .proofs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .proof { min-height: 192px; padding: 16px; gap: 8px; border: 0; }
}

/* ---------- Табы и карточки топлива ---------- */

.fuels { display: flex; flex-direction: column; gap: 50px; }
.fuels__body { display: flex; flex-direction: column; gap: 12px; }

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tab {
  height: 64px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r);
  background: var(--c-surface);
  color: #000;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.tab:hover { background: #dadada; }
.tab__count { margin-left: .4em; color: rgba(0, 0, 0, .25); }
.tab.is-active { background: var(--c-ink); color: var(--c-white); }
.tab.is-active .tab__count { color: rgba(255, 255, 255, .6); }

.fuel-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fuel-panel[hidden] { display: none; }

.fuel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 500px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  overflow: hidden;
}
.fuel-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-weight: 700;
  line-height: .9;
  color: #000;
}
.fuel-card__name { font-size: 48px; letter-spacing: -0.04em; text-transform: uppercase; }
.fuel-card__type { font-size: 32px; letter-spacing: -0.04em; text-transform: uppercase; opacity: .58; }
.fuel-card__note { font-weight: 500; font-size: 16px; line-height: 1.4; letter-spacing: 0; opacity: .7; }
.fuel-card__barrel {
  position: absolute;
  top: 192px;
  left: 50%;
  width: 278px;
  height: 480px;
  transform: translateX(-50%);
  border-radius: var(--r-xl);
  overflow: hidden;
  pointer-events: none;
}
.fuel-card__barrel img {
  position: absolute;
  max-width: none;
  width: 163.08%;
  height: 118.01%;
  left: -31.18%;
  top: -9.34%;
}
.fuel-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 159px;
  background: linear-gradient(to bottom, rgba(230, 230, 230, 0), var(--c-surface));
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.fuel-card .btn {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, background-color .2s;
}
.fuel-card:hover::after, .fuel-card:focus-within::after { opacity: 1; }
.fuel-card:hover .btn, .fuel-card:focus-within .btn { opacity: 1; transform: none; }
@media (hover: none) {
  .fuel-card::after { opacity: 1; }
  .fuel-card .btn { opacity: 1; transform: none; }
}

@media (max-width: 1200px) {
  .fuel-card__name { font-size: 40px; }
  .fuel-card__type { font-size: 26px; }
}
@media (max-width: 1023px) {
  .fuel-panel { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .fuels { gap: 24px; }
  .tabs { gap: 6px; }
  .tab { height: 48px; padding: 0 6px; border-radius: var(--r-sm); font-size: 13px; }
  .fuel-panel { grid-template-columns: 1fr; }
  .fuel-card {
    height: auto;
    gap: 12px;
    padding: 16px;
    border-radius: var(--r);
  }
  .fuel-card__head { min-height: 104px; padding-right: 100px; justify-content: center; gap: 6px; }
  .fuel-card__name { font-family: var(--f-display); font-size: 28px; line-height: 28px; letter-spacing: 0; }
  .fuel-card__type { font-weight: 500; font-size: 13px; line-height: 18px; letter-spacing: 0; }
  .fuel-card__barrel {
    top: 16px;
    left: auto;
    right: 16px;
    width: 88px;
    height: 104px;
    transform: none;
    border-radius: 0;
  }
  .fuel-card .fuel-card__barrel img { left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; }
  .fuel-card::after { display: none; }
  .fuel-card .btn { opacity: 1; transform: none; }
}

/* ---------- Форматы поставки ---------- */

.formats-sec { display: flex; flex-direction: column; gap: 64px; }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.format-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 620px;
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--c-surface);
  color: var(--c-ink);
  overflow: hidden;
}
.format-card__copy { display: flex; flex-direction: column; gap: 12px; }
.format-card__title {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 42px;
  letter-spacing: -0.03em;
}
.format-card__title b { min-width: 250px; font-weight: 700; color: var(--c-ink); }
.format-card__title span { color: var(--c-accent); }
.format-card__text { font-size: 18px; line-height: 24px; }
.format-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 631 / 360;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.format-card__media img { position: absolute; max-width: none; }
.format-card__media--van img { width: 93.6%; height: 152.61%; left: 3.92%; top: -34.36%; }
.format-card__media--tanker img { width: 106.72%; height: 150.23%; left: -4.32%; top: -27.93%; }

@media (max-width: 1023px) {
  .formats { grid-template-columns: 1fr; }
  .format-card { min-height: 0; }
}
@media (max-width: 767px) {
  .formats-sec { gap: 24px; }
  .format-card { padding: 20px; border-radius: var(--r-lg); }
  .format-card__title { flex-direction: column; font-size: 28px; line-height: 34px; }
  .format-card__title b { min-width: 0; }
  .format-card__text { font-size: 16px; }
  .format-card__text br { display: none; }
  .format-card__media { aspect-ratio: 303 / 220; border-radius: var(--r); }
}

/* ---------- География: карта + округа ---------- */

.geo { display: flex; flex-direction: column; gap: 64px; }
.geo__body { display: flex; align-items: stretch; gap: 24px; }
.map {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 991.737 / 565.385;
  align-self: flex-start;
  overflow: hidden;
}
.map__part { position: absolute; }
.map__part img { position: absolute; max-width: none; }
.map__label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(11px, 1.22vw, 18px);
  line-height: 1.33;
  color: var(--c-page);
  white-space: nowrap;
}
.districts { flex: 0 0 512px; display: flex; flex-direction: column; gap: 6px; }
.district {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.district__code { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 38px; }
.district__name { margin-top: 6px; font-weight: 500; font-size: 14px; line-height: 20px; color: var(--c-text-2); }
.district__text { font-size: 18px; line-height: 26px; }

@media (max-width: 1200px) { .districts { flex-basis: 380px; } }
@media (max-width: 1023px) {
  .geo__body { flex-direction: column; }
  .map { width: 100%; }
  .districts { flex: none; }
}
@media (max-width: 767px) {
  .geo { gap: 32px; }
  .geo__body { gap: 16px; }
  .district { padding: 16px; gap: 12px; }
  .district__code { font-size: 28px; line-height: 34px; }
  .district__text { font-size: 16px; line-height: 24px; }
}

/* ---------- Форма заявки ---------- */

.request {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}
.request__intro { display: flex; flex-direction: column; gap: 32px; max-width: 589px; }
.request__call { display: flex; flex-direction: column; gap: 12px; }
.big-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(44px, 5.442vw, 80px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  white-space: nowrap;
  transition: color .2s;
}
.big-phone:hover { color: var(--c-accent); }
.big-phone img { display: none; width: 20px; height: 20px; margin: 2px; }

.form { flex: 0 1 732px; display: flex; flex-direction: column; gap: 12px; }
.form__label { font-weight: 500; font-size: 14px; line-height: 18px; color: var(--c-ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 8px;
  border-radius: var(--r);
  background: var(--c-surface);
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  transition: background-color .2s, color .2s;
}
.option:hover span { background: #dadada; }
.option input:checked + span { background: var(--c-ink); color: var(--c-white); }
.option input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.field { position: relative; display: block; }
.field__control {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 15px 20px;
  border: 1px solid var(--c-surface);
  border-radius: var(--r);
  background: var(--c-white);
  font-size: 16px;
  line-height: 24px;
  color: var(--c-ink);
  outline: none;
  appearance: none;
  transition: border-color .2s;
}
textarea.field__control { min-height: 104px; resize: vertical; }
select.field__control {
  padding-right: 48px;
  background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23151515' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 20px center / 12px 8px no-repeat;
}
select.field__control:invalid { color: var(--c-text); }
.field__control:focus { border-color: var(--c-ink); }
.field.is-invalid .field__control { border-color: var(--c-accent); }
.field__label {
  position: absolute;
  top: 16px;
  left: 21px;
  right: 21px;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.field__label i { font-style: normal; color: var(--c-accent); }
.field__control:not(:placeholder-shown) + .field__label,
.field__control:focus + .field__label { opacity: 0; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--c-text);
  cursor: pointer;
}
.check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-white);
  appearance: none;
  cursor: pointer;
}
.check input:checked {
  border-color: var(--c-accent);
  background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' fill='none'%3E%3Cpath d='m1 4.5 3.5 3.5L11 1' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 9px no-repeat;
}
.check a { color: var(--c-accent); text-decoration: underline; text-underline-position: from-font; }
.check.is-invalid input { border-color: var(--c-accent); }

.consent {
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  color: var(--c-text);
}
.consent a { color: var(--c-accent); text-decoration: underline; text-underline-position: from-font; }
.form__status { min-height: 18px; font-size: 14px; line-height: 18px; text-align: center; }
/* пустой статус не занимает места, но остаётся live-регионом для скринридеров */
.form__status:empty { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); }
.form__status.is-error { color: var(--c-accent); }
.form__status.is-ok { color: #1f8a3c; }

@media (max-width: 1023px) {
  .request { flex-direction: column; }
  .request__intro { max-width: none; }
  .form { flex: none; width: 100%; }
}
@media (max-width: 767px) {
  .request { gap: 24px; }
  .request__intro { gap: 24px; }
  .big-phone { font-size: 32px; }
  .big-phone img { display: block; }
  .options { grid-template-columns: 1fr 1fr; gap: 8px; }
  .option span { height: 48px; border-radius: var(--r-sm); font-size: 14px; }
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- Hero внутренних страниц ---------- */

.page-hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
}

/* ---------- Карточки, шаги, CTA ---------- */

.card {
  border-radius: var(--r-lg);
  background: var(--c-surface);
  padding: 32px;
}
.card--white { background: var(--c-white); border: 1px solid var(--c-surface); }

.steps-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--c-accent);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  border-radius: var(--r-xl);
  background: var(--c-ink);
  color: var(--c-white);
}
.cta .h2 { color: var(--c-white); }
.cta__copy { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.cta__text { font-weight: 500; font-size: 22px; line-height: 30px; color: rgba(255, 255, 255, .7); }
.cta__actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 340px; }
.cta__phone { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 40px; text-align: center; }
.cta__phone:hover { color: var(--c-accent); }

@media (max-width: 1023px) {
  .cta { flex-direction: column; align-items: flex-start; }
  .cta__actions { min-width: 0; width: 100%; }
}
@media (max-width: 767px) {
  .card { padding: 20px; }
  .cta { padding: 24px 20px; border-radius: var(--r-lg); gap: 24px; }
  .cta__text { font-size: 16px; line-height: 23px; }
  .cta__phone { font-size: 28px; }
}

/* ---------- Модальное окно просмотра ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, .8);
}
.modal.is-open { display: flex; }
.modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: min(960px, 100%);
  max-height: 100%;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--c-white);
  overflow: hidden;
}
.modal__title { min-height: 44px; padding-right: 56px; font-weight: 600; font-size: 20px; line-height: 26px; display: flex; align-items: center; }
.modal__close { position: absolute; top: 24px; right: 24px; }
/* документ целиком в окне, без прокрутки; клик — оригинал в новой вкладке */
.modal__body { display: flex; justify-content: center; flex: 1 1 auto; min-height: 0; overflow: auto; }
.modal__body a { display: block; cursor: zoom-in; }
.modal__body img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 156px);   /* поля окна 48 + отступы 48 + заголовок 44 + зазор 16 */
  max-height: calc(100dvh - 156px);
  object-fit: contain;
  border: 1px solid var(--c-surface);
  border-radius: var(--r);
}
@media (max-width: 767px) {
  .modal { padding: 12px; }
  .modal__dialog { gap: 12px; padding: 16px; }
  .modal__close { top: 16px; right: 16px; }
  .modal__body img { max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); }
}

/* ---------- Дополнения: формы, заголовок внутренних страниц ---------- */

.form__group { display: flex; flex-direction: column; gap: 8px; }
.options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) {
  .options--3 { grid-template-columns: 1fr 1fr; }
  .options--3 .option:last-child { grid-column: 1 / -1; }
}

/* Заголовок внутренней страницы: крошки + H1 */
.page-head { display: flex; flex-direction: column; gap: 32px; }
.page-head .h1 { color: var(--c-ink); }
.page-sub { font-weight: 500; font-size: 20px; line-height: 28px; color: var(--c-text); }
@media (max-width: 767px) {
  .page-head { gap: 24px; }
  .page-head .h1 { font-size: 40px; line-height: 46px; }
  .page-sub { font-size: 16px; line-height: 24px; }
}

/* ---------- Вводный ряд внутренних страниц: H1 слева, текст + кнопка справа ---------- */

.intro-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
.intro-row__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.intro-row__btn { width: 288px; }
.lead--ink { color: var(--c-ink); }
.h2--48 { font-size: clamp(32px, 3.27vw, 48px); line-height: 1.167; }
@media (max-width: 1023px) {
  .intro-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 767px) {
  .intro-row__aside { gap: 24px; }
  .intro-row__btn { width: 100%; }
  .h2--48 { font-size: 36px; line-height: 1.14; }
}

/* ---------- Нумерованные шаги ---------- */

.steps { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px; }
.steps--3 { --cols: 3; }
.steps--4 { --cols: 4; }
.steps--5 { --cols: 5; }
.step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 264px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  color: var(--c-ink);
}
.step--white { background: var(--c-white); border: 1px solid var(--c-surface); }
.step__num { font-family: var(--f-display); font-weight: 700; font-size: 64px; line-height: 70px; color: var(--c-accent); }
.step__copy { display: flex; flex-direction: column; gap: 12px; }
.step__title { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 38px; letter-spacing: -0.03em; }
.step__text { font-size: 18px; line-height: 24px; }

@media (max-width: 1200px) {
  .steps--5 { --cols: 3; }
  .step__text br { display: none; }
}
@media (max-width: 1023px) {
  .steps { --cols: 2 !important; }
}
@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 224px; padding: 20px; }
  .step__num { font-size: 48px; line-height: 54px; }
  .step__copy { gap: 8px; }
  .step__title { font-size: 26px; line-height: 32px; text-transform: uppercase; }
  .step__text { font-size: 16px; }
}

/* ---------- Полоса фона на всю ширину ---------- */
.band { background: var(--c-page); }
.page-white { background: var(--c-white); }

/* ---------- Логотипы партнёров ---------- */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  padding: 20px 32px;
  border-radius: var(--r-lg);
  background: var(--c-white);
}
.logo-card img { width: 100%; height: 100px; object-fit: contain; }
@media (max-width: 767px) {
  .logos { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .logo-card { height: 100px; padding: 12px 16px; border-radius: var(--r); }
  .logo-card img { height: 60px; }
}

/* ---------- Форма поставки (фото + форма) ---------- */
.photo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.photo-form__photo { width: 100%; height: 650px; object-fit: cover; border-radius: var(--r-xl); background: #d9d9d9; }
.photo-form__body { display: flex; flex-direction: column; gap: 32px; }
.form--supply { gap: 32px; flex: none; }
.form--supply .form__row { gap: 24px; }
.form--supply .field__control { border-color: var(--c-line); }
.form--supply .check { font-size: 14px; line-height: 20px; }
.form--supply .check input { width: 24px; height: 24px; border-radius: 4px; border-color: var(--c-text); }
@media (max-width: 1023px) {
  .photo-form { grid-template-columns: 1fr; }
  .photo-form__photo { height: 420px; }
}
@media (max-width: 767px) {
  .photo-form { gap: 20px; }
  .photo-form__photo { height: 326px; border-radius: var(--r-lg); }
  .photo-form__body { gap: 20px; }
  .form--supply { gap: 12px; }
  .form--supply .form__row { gap: 12px; }
  .form--supply .check { margin: 8px 0; }
}

/* ---------- Документы (A4) ---------- */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 442px)); gap: 40px; }
.doc { display: flex; flex-direction: column; gap: 20px; }
.doc__preview {
  display: block;
  aspect-ratio: 442 / 612.5;
  border: 1px solid var(--c-surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-white);
  transition: box-shadow .2s, transform .2s;
}
.doc__preview img { width: 100%; height: 100%; object-fit: contain; }  /* документ целиком, без обрезки */
/* документ без превью (PDF): плашка с типом файла */
.doc__preview--file { display: flex; align-items: center; justify-content: center; background: var(--c-surface); font-family: var(--f-display); font-weight: 700; font-size: 48px; color: var(--c-text); }
.doc:hover .doc__preview { box-shadow: 0 12px 32px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.doc__name { font-weight: 500; font-size: 16px; line-height: 24px; }
.doc:hover .doc__name { color: var(--c-accent); }
@media (max-width: 1023px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 767px) {
  .docs { grid-template-columns: 1fr; gap: 20px; }
  .doc__preview { border-radius: var(--r-lg); }
}

/* ---------- Надзаголовок-подпись ---------- */
.eyebrow { font-weight: 500; font-size: 14px; line-height: 20px; color: var(--c-text-2); text-transform: uppercase; }

/* ---------- Тёмная полоса ---------- */
.dark-band { background: var(--c-ink); color: var(--c-white); }
.dark-band .h2 { color: var(--c-white); }

/* ---------- Форма в белой карточке ---------- */
.form--card { flex: none; gap: 22px; padding: 32px; border-radius: var(--r-xl); background: var(--c-white); color: var(--c-ink); }
.form--card__title { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 37px; text-transform: uppercase; }
.form--card .form__row { gap: 24px; }
.form--card .field__control { border-color: #d4d4d1; }
@media (max-width: 767px) {
  .form--card { gap: 20px; padding: 20px; border-radius: var(--r-lg); }
  .form--card__title { font-size: 26px; line-height: 32px; }
  .form--card .form__row { gap: 20px; }
}

/* ---------- Тёмный CTA-блок ---------- */
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  border-radius: var(--r-lg);
  background: var(--c-footer);
  color: var(--c-white);
}
.cta-box__copy { display: flex; flex-direction: column; gap: 32px; max-width: 986px; }
.cta-box__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 3.27vw, 48px); line-height: 1.167; letter-spacing: -0.03em; text-transform: uppercase; }
.cta-box__text { max-width: 850px; font-size: 18px; line-height: 27px; }
.cta-box__btn { flex: 0 0 300px; }
@media (max-width: 1023px) {
  .cta-box { flex-direction: column; align-items: stretch; }
  .cta-box__btn { flex: none; }
}
@media (max-width: 767px) {
  .cta-box { gap: 20px; padding: 20px; }
  .cta-box__copy { gap: 20px; }
  .cta-box__title { font-size: 28px; line-height: 34px; }
  .cta-box__text { font-size: 16px; line-height: 24px; }
}

/* ---------- Белая полоса фона ---------- */
.page-white-band { background: var(--c-white); }

/* ---------- Карточки-особенности ---------- */
.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-lg); background: var(--c-surface); color: var(--c-ink); }
.feature__title { font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 34px; text-transform: uppercase; }
.feature__text { font-size: 18px; line-height: 26px; }
.feature--dark { background: rgba(255, 255, 255, .04); color: var(--c-white); }
.feature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .feature-row { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .feature { padding: 20px; }
  .feature__title { font-size: 24px; line-height: 30px; }
  .feature__text { font-size: 16px; line-height: 24px; }
}

.steps--dark .step { background: rgba(255, 255, 255, .04); color: var(--c-white); }

/* ---------- Тёмный CTA с телефоном ---------- */
.dark-cta { display: flex; align-items: flex-start; justify-content: space-between; gap: 80px; }
.dark-cta__copy { display: flex; flex-direction: column; gap: 32px; max-width: 890px; }
.dark-cta__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 3.27vw, 48px); line-height: 1.167; text-transform: uppercase; color: var(--c-white); }
.dark-cta__text { font-size: 20px; line-height: 29px; color: #b2b2ad; }
.dark-cta__contact { flex: 0 0 435px; display: flex; flex-direction: column; gap: 26px; }
.dark-cta__phone { font-weight: 600; font-size: 27px; line-height: 39px; }
.dark-cta__phone:hover { color: var(--c-accent); }
.dark-cta__hint { margin-top: -18px; font-weight: 500; font-size: 14px; line-height: 20px; color: #b2b2ad; }
@media (max-width: 1023px) {
  .dark-cta { flex-direction: column; gap: 32px; }
  .dark-cta__contact { flex: none; width: 100%; }
}
@media (max-width: 767px) {
  .dark-cta__copy { gap: 20px; }
  .dark-cta__title { font-size: 28px; line-height: 34px; }
  .dark-cta__text { font-size: 16px; line-height: 24px; }
  .dark-cta__contact { gap: 20px; }
  .dark-cta__hint { margin-top: -12px; }
}

/* ---------- Блок внутри секции ---------- */
.block { display: flex; flex-direction: column; gap: 32px; }
.block--60 { gap: 60px; }
@media (max-width: 767px) { .block, .block--60 { gap: 20px; } }

/* ---------- Факты ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { display: flex; flex-direction: column; gap: 12px; min-height: 156px; padding: 24px; border-radius: var(--r-lg); background: var(--c-surface); }
.fact__value { font-family: var(--f-display); font-weight: 700; font-size: 64px; line-height: 70px; letter-spacing: -0.03em; }
.fact__value--sm { font-size: 32px; line-height: 38px; text-transform: uppercase; color: var(--c-ink); }
.fact__label { font-size: 18px; line-height: 26px; }
@media (max-width: 767px) {
  .facts { grid-template-columns: 1fr; gap: 12px; }
  .fact { min-height: 0; padding: 20px; gap: 8px; }
  .fact__value { font-size: 48px; line-height: 54px; }
  .fact__value--sm { font-size: 26px; line-height: 32px; }
  .fact__label { font-size: 16px; line-height: 24px; }
}

/* ---------- Аккордеон ---------- */
.acc { border-radius: var(--r-lg); background: var(--c-white); }
.acc__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  cursor: pointer;
  list-style: none;
}
.acc__q::-webkit-details-marker { display: none; }
.acc__q:hover { color: var(--c-accent); }
.acc__icon { flex: 0 0 24px; height: 24px; background: url("../assets/img/icons/plus.svg") center / contain no-repeat; }
.acc[open] .acc__icon { background-image: url("../assets/img/icons/minus.svg"); }
.acc__a { margin-top: -8px; padding: 0 64px 24px 24px; font-size: 18px; line-height: 27px; color: var(--c-text); }
@media (max-width: 767px) {
  .acc { border-radius: var(--r); }
  .acc__q { padding: 18px 16px; font-size: 16px; line-height: 22px; }
  .acc__a { padding: 0 16px 18px; font-size: 15px; line-height: 23px; }
}
