/* СИАЛ ГРУПП: визуальный язык взят у primet-rnd.ru (цвета, шрифты, прямые углы, плоские кнопки). */

/* ---------- Шрифты (локально, кириллица + латиница) ---------- */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/open-sans-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/open-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto Flex'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/roboto-flex-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Roboto Flex'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/roboto-flex-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
  --color-1: #123E6C;
  --color-1-dark: #0C2D50;
  --color-2: #E31E24;
  --color-3: #0C54A0;
  --color-4: #8D8F93;
  --color-line: #E7E9EB;
  --color-text: #333;
  --color-muted: #5C6168;
  --color-soft: #F3F5F7;
  --color-white: #fff;

  --font-text: 'Open Sans', Arial, sans-serif;
  --font-head: 'Roboto Flex', 'Open Sans', Arial, sans-serif;

  --container: 1400px;
  --gutter: 24px;
  --inset: 48px;
  --header-top-h: 76px;
  --header-nav-h: 52px;
  --header-top-c: 58px; /* верхний слой шапки после прокрутки: она сжимается, чтобы не съедать экран */
  --logo-c: 44px;
  --stick-top: var(--header-top-h); /* от этого отступа липнут панели под шапкой (навигация по разделам) */
  --section-pad: clamp(56px, 8vw, 112px);
}
:root:has(.site-header.is-solid) { --stick-top: var(--header-top-c); }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font-text);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
a { color: var(--color-1); text-decoration: none; }
a:hover { color: var(--color-3); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: 1.12; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-3); outline-offset: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: #fff; color: var(--color-1); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ---------- Кнопки (плоские, без скруглений) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 32px;
  border: 2px solid var(--color-3); background: var(--color-3); color: #fff;
  font: 600 15px/1 var(--font-text); letter-spacing: .04em; text-transform: uppercase;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--color-2); border-color: var(--color-2); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: var(--color-3); border-color: var(--color-3); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--color-1); }
.btn--light:hover { background: var(--color-3); border-color: var(--color-3); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Заголовки секций ---------- */
.section { padding: var(--section-pad) 0; }
/* Цветные секции — это блок по ширине контейнера на белой странице, а не полоса на весь экран. */
.section--soft, .section--dark { --block-bg: var(--color-soft); position: relative; isolation: isolate; }
.section--dark { --block-bg: var(--color-1); color: #fff; }
.section--soft::before, .section--dark::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto;
  width: min(calc(100% - var(--gutter) * 2), var(--container)); background: var(--block-bg);
}
/* Координатная сетка в светлых блоках: шаг 60 px, как модуль потолка в чертеже */
.section--soft::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto;
  width: min(calc(100% - var(--gutter) * 2), var(--container)); pointer-events: none;
  background-image: linear-gradient(rgba(18, 62, 108, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 62, 108, .05) 1px, transparent 1px);
  background-size: 60px 60px;
}
/* Тёмные блоки: та же сетка 60 px, что и в светлых, только светлой линией */
.section--dark::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto;
  width: min(calc(100% - var(--gutter) * 2), var(--container)); pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 60px 60px;
}
:is(.section--soft, .section--dark) + :is(.section--soft, .section--dark) { margin-top: clamp(24px, 4vw, 48px); }
#request { margin-bottom: clamp(32px, 5vw, 64px); } /* белый зазор между блоком и тёмным футером */
.section--soft > .container, .section--dark > .container { padding-inline: calc(var(--gutter) + var(--inset)); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__title { display: inline-block; max-width: 100%; position: relative; padding-bottom: 20px; font-size: clamp(28px, 4.2vw, 48px); color: var(--color-3); }
/* Размерная линия: засечки по краям и линия по центру, как на чертеже */
.section__title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; opacity: .55; color: var(--color-2);
  border-left: 1px solid currentColor; border-right: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.section--dark .section__title { color: #fff; }
.section__lead { margin: 16px 0 0; font-size: 18px; color: var(--color-muted); }
.section--dark .section__lead { color: rgba(255, 255, 255, .8); }

/* ---------- Шапка ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: #fff; transition: background .3s, box-shadow .3s; }
.site-header::before { content: ''; position: absolute; inset: 0 0 -60px; background: linear-gradient(rgba(6, 22, 40, .7), rgba(6, 22, 40, 0)); pointer-events: none; transition: opacity .3s; }
.site-header.is-solid { background: var(--color-1-dark); box-shadow: 0 2px 16px rgba(0, 0, 0, .25); }
.site-header.is-solid::before { opacity: 0; }
.site-header__top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-top-h); transition: height .25s; }
.site-header.is-solid .site-header__top { height: var(--header-top-c); }
.site-header a { color: #fff; }

.logo { display: inline-flex; line-height: 1; }
.logo__img { width: auto; height: 60px; transition: height .25s; }
.site-header.is-solid .logo__img { height: var(--logo-c); }

.header-contacts { display: flex; align-items: center; gap: 28px; }
.header-address { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .8); text-align: right; }
.header-phone { display: inline-block; padding: 14px 0; font: 700 20px/1 var(--font-text); white-space: nowrap; } /* высота нажатия 48px при строке в 20px */

.site-nav { position: relative; border-top: 1px solid rgba(255, 255, 255, .15); }
.site-nav__list { display: flex; align-items: stretch; gap: 8px; height: var(--header-nav-h); }
.nav-item { position: relative; display: flex; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 16px;
  background: none; border: 0; color: #fff; font: 600 15px/1 var(--font-text); letter-spacing: .01em;
  transition: background .2s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-item.is-open > .nav-link { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-link svg { width: 18px; height: 18px; flex: none; }
.nav-link .chevron { width: 10px; height: 10px; transition: transform .2s; }
.nav-item.is-open .chevron { transform: rotate(180deg); }
.nav-sub {
  position: absolute; left: 0; top: 100%; z-index: 5; min-width: 300px; padding: 8px 0;
  background: #fff; border: 1px solid var(--color-line); box-shadow: 0 16px 32px rgba(8, 30, 54, .25);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-item:hover > .nav-sub, .nav-item.is-open > .nav-sub, .nav-item:focus-within > .nav-sub { opacity: 1; visibility: visible; transform: none; }
.site-header .nav-sub a { display: block; padding: 11px 24px; color: var(--color-1); font-size: 15px; border-left: 3px solid transparent; }
.site-header .nav-sub a:hover { background: var(--color-soft); color: var(--color-3); border-left-color: var(--color-2); }

.burger { display: none; width: 48px; height: 48px; padding: 0; background: none; border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; margin: 0 auto; background: currentColor; transition: transform .25s, background .25s; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Лента «Запросить прайс» ---------- */
.ribbon {
  position: fixed; right: 0; top: 34%; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  width: 52px; padding: 36px 0 20px; border: 0; background: var(--color-3); color: #fff;
  clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%);
  writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg);
  font: 600 13px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; text-align: center;
  transition: background .2s;
}
.ribbon:hover { background: var(--color-1); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; background: var(--color-1-dark); overflow: hidden; }
.hero__slides, .hero__slide, .hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__slide { opacity: 0; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12, 45, 80, .94) 0%, rgba(18, 62, 108, .68) 45%, rgba(8, 20, 34, .3) 100%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: end; padding-top: calc(var(--header-top-h) + var(--header-nav-h) + 40px); padding-bottom: 96px; }
.hero__kicker { margin: 0 0 20px; font: 600 14px/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.hero__title { padding-left: 24px; border-left: 4px solid var(--color-2); font-size: clamp(32px, 5.2vw, 68px); }
.hero__brand { display: inline-block; width: auto; height: .75em; vertical-align: -.04em; }
.hero__lead { max-width: 620px; margin: 28px 0 0; padding-left: 28px; font-size: clamp(16px, 1.6vw, 20px); color: rgba(255, 255, 255, .88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 36px 0 0 28px; }
.hero__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 36px; display: flex; gap: 10px; }
.hero__dots .container { display: flex; gap: 10px; }
.hero__dot { position: relative; width: 36px; height: 4px; padding: 0; border: 0; background: rgba(255, 255, 255, .35); transition: background .2s; }
.hero__dot::before { content: ''; position: absolute; inset: -20px -4px; } /* полоса остаётся тонкой, а попасть в неё пальцем можно: область нажатия 44px */
.hero__dot.is-active, .hero__dot:hover { background: #fff; }

/* ---------- Карточки категорий ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-line); transition: border-color .2s, box-shadow .2s; }
.cat-card:hover { border-color: var(--color-1); box-shadow: 0 12px 28px rgba(18, 62, 108, .14); }
.cat-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-soft); }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px 24px 28px; border-bottom: 3px solid var(--color-2); transition: border-color .2s; }
.cat-card:hover .cat-card__body { border-bottom-color: var(--color-1); }
.cat-card__title { font-size: 21px; color: var(--color-1); }
/* Паспортные метки: ключевые параметры изделия */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li { padding: 6px 10px; border: 1px solid var(--color-line); border-left: 3px solid var(--color-2); background: #fff; font: 600 12px/1.2 var(--font-text); letter-spacing: .03em; color: var(--color-1); font-variant-numeric: tabular-nums; }
.cat-card__text { margin: 12px 0 20px; font-size: 15px; color: var(--color-muted); }
.cat-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--color-3); }
.cat-card__more svg { width: 16px; height: 16px; transition: transform .2s; }
.cat-card:hover .cat-card__more svg { transform: translateX(4px); }
.cat-card a.cat-card__link::after { content: ''; position: absolute; inset: 0; }
.cat-card { position: relative; }
.cat-cta { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 36px 32px; background: var(--color-1); color: #fff; }
.cat-cta .cat-cta__title { color: #fff; font-size: 26px; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: 1.12; }
.cat-cta p { margin: 0; color: rgba(255, 255, 255, .85); }

/* ---------- Преимущества ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.why__item { position: relative; padding: 28px 0 28px 92px; border-top: 1px solid var(--color-line); min-height: 112px; }
/* Изометрические иконки (Qwen-Image): светлый фон растра гасится умножением на фон секции */
.why__icon { position: absolute; left: 0; top: 16px; width: 72px; height: 72px; object-fit: contain; }
.why__item h3 { margin-bottom: 8px; font-size: 18px; color: var(--color-1); }
.why__item p { margin: 0; font-size: 15px; color: var(--color-muted); }
.why__media { position: relative; display: grid; gap: 20px; }
.why__media figure { margin: 0; }
.why__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.stat { padding-left: 24px; border-left: 3px solid var(--color-2); }
.stat__num { display: block; font: 800 clamp(40px, 5.4vw, 68px)/1 var(--font-head); }
.stat__label { display: block; overflow-wrap: break-word; margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .8); }
.brands { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .2); }
.brands__title { margin: 0 0 16px; font: 600 14px/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.brands__track { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.brands__logo { display: flex; align-items: center; justify-content: center; flex: none; width: 168px; height: 64px; padding: 12px 18px; background: #fff; }
/* Карусель включает features.js (класс brands--marquee): лента логотипов едет влево по кругу. */
.brands--marquee .brands__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.brands--marquee .brands__track { flex-wrap: nowrap; width: max-content; animation: brands-scroll var(--brands-time, 40s) linear infinite; }
.brands--marquee .brands__viewport:hover .brands__track, .brands--marquee .brands__viewport:focus-within .brands__track { animation-play-state: paused; }
@keyframes brands-scroll { to { transform: translateX(calc(-1 * var(--brands-shift, 0px))); } }
@media (prefers-reduced-motion: reduce) { .brands--marquee .brands__track { animation: none; } }
.brands__logo img { max-width: 100%; max-height: 34px; width: auto; height: auto; object-fit: contain; }

/* ---------- Инфо-плитки ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.info-card { position: relative; display: flex; flex-direction: column; padding: 36px 32px; background: #fff; border: 1px solid var(--color-line); border-top: 4px solid var(--color-2); transition: box-shadow .2s, border-color .2s; }
.info-card:hover { box-shadow: 0 12px 28px rgba(18, 62, 108, .14); border-top-color: var(--color-1); }
.info-card__icon { display: block; width: 80px; height: 80px; margin: -8px 0 12px -8px; object-fit: contain; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.info-card:hover .info-card__icon { transform: translateY(-3px) scale(1.05); }
.info-card h3 { margin-bottom: 12px; font-size: 22px; color: var(--color-1); }
.info-card p { margin: 0 0 20px; font-size: 15px; color: var(--color-muted); }
.info-card .cat-card__more { margin-top: auto; }
.info-card a.cat-card__link::after { content: ''; position: absolute; inset: 0; }

/* ---------- Форма заявки ---------- */
.request { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); background: #fff; color: var(--color-text); }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; } /* KM-7: поля формы в один столбец на любой ширине */
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--color-1); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid #c9ced3; border-radius: 0; background: #fff; font-weight: 400; color: var(--color-text); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--color-3); box-shadow: 0 0 0 3px rgba(12, 84, 160, .18); }
.field.has-error input { border-color: var(--color-2); }
.field__error { min-height: 1em; font-size: 14px; font-weight: 400; color: #c4161c; }
.form__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--color-muted); }
.form__consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--color-3); }
.form__consent a { text-decoration: underline; }
.form__status { margin: 0; padding: 0; font-size: 14px; }
.form__status:not(:empty) { padding: 12px 16px; background: var(--color-soft); border-left: 4px solid var(--color-3); }
.form__status.is-error { border-left-color: var(--color-2); }

/* ---------- Модальное окно ---------- */
.dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; overflow: visible; }
.dialog::backdrop { background: rgba(8, 24, 42, .7); }
.dialog__box { position: relative; background: #fff; }
.dialog__title { margin: 0; padding: 28px 40px 0; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: 1.12;  font-size: 28px; color: var(--color-3); }
.dialog .form { padding-top: 20px; }
.dialog__close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; padding: 0; background: none; border: 0; font-size: 32px; line-height: 1; color: var(--color-muted); }
.dialog__close:hover { color: var(--color-2); }

/* ---------- Подвал ---------- */
.site-footer { padding: 72px 0 0; background: var(--color-1-dark); color: rgba(255, 255, 255, .8); font-size: 14px; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: #fff; }
.footer__title a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 40px; padding-bottom: 56px; }
.footer__title { margin: 0 0 18px; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: 1.12;  font-size: 15px; letter-spacing: .08em; color: #fff; }
.footer__list { display: grid; gap: 2px; }
.footer__list a:not(.footer__phone) { display: inline-block; padding: 9px 0; }
.footer__about { margin: 20px 0 0; max-width: 300px; }
.footer__phone { display: inline-block; padding: 8px 0; font: 700 20px/1.2 var(--font-text); color: #fff; }
.footer__bottom { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.footer__bottom span { padding: 10px 0; }
.footer__bottom a { display: inline-block; padding: 10px 0; }
.footer__bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ---------- Адаптив ---------- */
/* ---------- Карта доставки ---------- */
.rumap { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .85fr); gap: 24px; align-items: stretch; }
.rumap__stage { position: relative; overflow-x: clip; display: flex; align-items: center; padding: clamp(12px, 2vw, 28px); background: #fff; border: 1px solid var(--color-line); }
.rumap__svg { display: block; width: 100%; height: auto; overflow: visible; }
.rumap__region { cursor: pointer; }
.rumap__region path { fill: #D3DCE8; stroke: #fff; stroke-width: calc(.5px * var(--u, 1)); stroke-linejoin: round; transition: fill .2s; }
.rumap__region[data-mode='ask'] path { fill: url(#rumap-hatch); }
.rumap__region[data-mode='own'] path { fill: var(--color-2); }
.rumap__region:hover path { fill: var(--color-3); }
.rumap__region[data-mode='own']:hover path, .rumap__region.is-selected[data-mode='own'] path { fill: #B9151A; }
.rumap__region.is-selected path { fill: var(--color-1); }
.rumap__route { fill: none; stroke: var(--color-2); stroke-width: calc(1.5px * var(--u, 1)); stroke-linecap: round; pointer-events: none; opacity: 0; }
.rumap__route.is-drawn { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: rumap-draw .9s ease-out; }
.rumap__target { r: calc(3.2px * var(--u, 1)); fill: #fff; stroke: var(--color-2); stroke-width: calc(1.5px * var(--u, 1)); pointer-events: none; opacity: 0; transition: opacity .3s .6s; }
.rumap__target.is-shown { opacity: 1; }
.rumap__hub { pointer-events: none; }
.rumap__dot { fill: #fff; stroke: var(--color-1); stroke-width: 1.4; } /* внутри группы hub, она уже масштабирована */
.rumap__pulse { fill: none; stroke: var(--color-1); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: rumap-pulse 2.4s ease-out infinite; }
.rumap__label { font: 700 calc(8px * var(--u, 1))/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; fill: var(--color-1); paint-order: stroke; stroke: #fff; stroke-width: calc(2.5px * var(--u, 1)); pointer-events: none; }
.rumap__tip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; background: var(--color-1-dark); color: #fff; font: 600 13px/1.2 var(--font-text); white-space: nowrap; pointer-events: none; box-shadow: 0 6px 20px rgba(12, 45, 80, .3); transform: translate(-50%, calc(-100% - 16px)); }
.rumap__tip[hidden] { display: none; }
.rumap__tip--below { transform: translate(-50%, 18px); }
.rumap__tip-coats { display: flex; gap: 6px; }
.rumap__tip-coats img { display: block; width: auto; height: 42px; max-width: 42px; object-fit: contain; }
.rumap__tip::after { content: ''; position: absolute; left: var(--arrow-x, 50%); top: 100%; width: 10px; height: 10px; background: var(--color-1-dark); transform: translate(-50%, -50%) rotate(45deg); }
.rumap__tip--below::after { top: 0; }
.rumap__panel { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); background: var(--color-1); color: #fff; }
.rumap__eyebrow { margin: 0 0 12px; font: 600 13px/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.rumap__name { margin: 0; min-height: 2.4em; font-size: clamp(22px, 2.2vw, 30px); color: #fff; }
.rumap__mode { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-weight: 600; }
.rumap__badge, .rumap__swatch { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #D3DCE8; border: 1px solid rgba(255, 255, 255, .5); }
.rumap__badge[data-mode='own'], .rumap__swatch[data-mode='own'] { background: var(--color-2); border-color: var(--color-2); }
.rumap__badge[data-mode='ask'], .rumap__swatch[data-mode='ask'] { background: repeating-linear-gradient(45deg, #E9EEF4 0 2px, #C3CEDD 2px 4px); }
.rumap__text { margin: 10px 0 28px; color: rgba(255, 255, 255, .85); }
.rumap__select-label { margin-bottom: 8px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.rumap__select { width: 100%; min-height: 48px; margin-bottom: 16px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 0; background: rgba(255, 255, 255, .08); color: #fff; font: 400 15px var(--font-text); }
.rumap__select option { color: var(--color-text); background: #fff; }
/* Выпадающий список регионов */
.combo { position: relative; margin-bottom: 16px; }
.combo__btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 0; background: rgba(255, 255, 255, .08); color: #fff; font: 600 15px/1.25 var(--font-text); text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s; }
.combo__btn:hover, .combo.is-open .combo__btn { border-color: #fff; background: rgba(255, 255, 255, .16); }
.combo__value { flex: 1; min-width: 0; padding: 8px 0; }
.combo__coat { flex: none; display: block; width: 22px; height: 26px; object-fit: contain; }
.combo__chev { flex: none; transition: transform .2s; }
.combo.is-open .combo__chev { transform: rotate(180deg); }
.combo__pop { position: absolute; z-index: 6; top: calc(100% + 6px); left: 0; right: 0; background: #fff; color: var(--color-text); border-top: 3px solid var(--color-2); box-shadow: 0 18px 44px rgba(7, 26, 48, .45); }
.combo__find { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--color-line); color: var(--color-muted); }
.combo__search { flex: 1; min-width: 0; height: 48px; border: 0; background: none; color: var(--color-text); font: 400 15px var(--font-text); outline: none; -webkit-appearance: none; appearance: none; }
.combo__search::placeholder { color: var(--color-muted); }
.combo__search::-webkit-search-cancel-button { cursor: pointer; }
.combo__find:focus-within { box-shadow: inset 0 -2px 0 var(--color-3); }
.combo__list { max-height: min(320px, 50vh); margin: 0; padding: 4px 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #B9C3CF transparent; }
.combo__opt { display: flex; align-items: center; gap: 12px; padding: 9px 14px; font-size: 14px; line-height: 1.25; cursor: pointer; }
.combo__opt[hidden] { display: none; }
.combo__opt.is-active { background: var(--color-soft); }
.combo__opt[aria-selected='true'] { color: var(--color-1); font-weight: 700; box-shadow: inset 3px 0 var(--color-1); }
.combo__name { flex: 1; min-width: 0; }
.combo__dot { flex: none; width: 9px; height: 9px; background: #D3DCE8; border-radius: 50%; }
.combo__dot[data-mode='own'] { background: var(--color-2); }
.combo__dot[data-mode='ask'] { background: repeating-linear-gradient(45deg, #E9EEF4 0 2px, #B9C3CF 2px 4px); }
.combo__empty { margin: 0; padding: 18px 14px; font-size: 14px; color: var(--color-muted); }
@media (max-width: 640px) { .combo__search { font-size: 16px; } .combo__opt { padding: 12px 14px; } }
.rumap__legend { display: grid; gap: 10px; margin: auto 0 0; padding: 28px 0 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, .8); }
.rumap__legend li { display: flex; align-items: center; gap: 10px; }
@keyframes rumap-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes rumap-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }

@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .header-address { display: none; }
  .cat-grid, .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why, .request { grid-template-columns: minmax(0, 1fr); }
  .why__media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .rumap { grid-template-columns: minmax(0, 1fr); }
  .rumap__name { min-height: 0; }
  :root { --header-top-h: 68px; }
  .header-contacts { margin-left: auto; }
  .header-phone { font-size: 16px; }
  .hero__inner { padding-bottom: 88px; }
  .hero__dots { bottom: 28px; }
}

/* меню открытое на планшетах (KM-5): бургер только на телефоне */
@media (max-width: 640px) {
  :root { --gutter: 16px; --inset: 20px; }
  .burger { display: block; }
  .site-header.is-menu-open { background: var(--color-1-dark); }
  .site-nav { display: none; border-top: 0; background: var(--color-1-dark); max-height: calc(100vh - var(--header-top-h)); max-height: calc(100dvh - var(--header-top-h)); overflow-y: auto; }
  .site-header.is-menu-open .site-nav { display: block; }
  .site-nav__list { flex-direction: column; gap: 0; height: auto; padding-bottom: 16px; }
  .nav-item { flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .12); }
  .nav-link { width: 100%; min-height: 52px; justify-content: space-between; padding: 0 4px; }
  .nav-sub { position: static; min-width: 0; padding: 0 0 8px; border: 0; box-shadow: none; background: transparent; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-item:hover > .nav-sub { display: none; }
  .nav-item.is-open > .nav-sub { display: block; }
  .site-header .nav-sub a { color: rgba(255, 255, 255, .85); padding: 12px 20px; }
  .site-header .nav-sub a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .logo__img { height: 52px; }
  .hero__title { padding-left: 16px; }
  .hero__lead { padding-left: 20px; }
  .hero__actions { margin-left: 20px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cat-grid, .info-grid, .why__list, .why__media, .form__row, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .stat { padding-left: 14px; }
  /* размеры считаем от --px (единиц viewBox в CSS-пикселе, его ставит map.js): подписи и линии читаемы при любой ширине */
  .rumap__stage { padding: 8px; }
  .rumap__route { stroke-width: calc(2.5px * var(--px, .5)); }
  .rumap__target { r: calc(5px * var(--px, .5)); stroke-width: calc(2px * var(--px, .5)); }
  .rumap__label { font-size: calc(11px * var(--px, .5)); stroke-width: calc(3px * var(--px, .5)); }
  .rumap__region path { stroke-width: calc(1px * var(--px, .5)); }
  .rumap__tip { font-size: 14px; }
  .ribbon {
    top: auto; bottom: 0; left: 0; right: 0; width: auto; padding: 16px 0;
    clip-path: none; writing-mode: horizontal-tb; transform: none; font-size: 14px;
  }
  body { padding-bottom: 48px; }
  .hero__dots { bottom: 72px; }
}

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

/* длинные слова в заголовках карточек не выталкивают сетку (телефон 320) */
.cat-card__title, .cat-card__link, .info-card h3 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 380px) { .cat-card__title { font-size: 18px; } }

/* телефон: подписи не рвутся посреди слова; на самых узких экранах цифры в одну колонку */
@media (max-width: 560px) {
  .stat__num { font-size: 34px; white-space: nowrap; }
  .stat__label { text-wrap: balance; }
}
@media (max-width: 399px) {
  .stats { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .stat { padding-left: 18px; }
}

/* кнопка в панели карты: на узком экране подпись не переносится на вторую строку */
@media (max-width: 480px) { .rumap__panel .btn { padding: 0 12px; font-size: 14px; letter-spacing: .02em; line-height: 1.2; } }
@media (max-width: 380px) { .rumap__panel { padding: 20px 18px; } .rumap__name { font-size: 19px; overflow-wrap: break-word; } }

/* ссылки в подвале на сенсорных экранах: строка выше, чтобы попадать пальцем */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
