/* =========================================================
   ПОРТМОТОР — таплинк
   Всё оформление на токенах: фирстиль ещё в работе, поэтому
   цвета/шрифты/радиусы меняются в одном месте (:root).
   ========================================================= */

:root {
  /* --- палитра (заглушки под фирстиль) --- */
  --paper:      #EFE3CF;   /* основной тёплый фон */
  --paper-2:    #E7D9C5;   /* вторичная поверхность */
  --paper-3:    #F6EEE1;   /* светлая «бумага» для форм/карточек */
  --paper-card: #FBF6EC;   /* почти-белый кремовый — как карточка на auto.ru */
  --ink:        #1B1B1B;   /* графит: текст, рамки */
  --ink-2:      #3B3833;   /* мягкий графит */
  --ink-soft:   #6A655E;   /* приглушённый текст */
  --red:        #C8191E;   /* фирменный акцент */
  --red-600:    #B0151A;   /* красный на hover */
  --gray:       #8B857D;   /* тёплый серый */
  --gray-2:     #A6A097;
  --line:       rgba(27,27,27,.14);
  --line-2:     rgba(27,27,27,.28);
  --line-light: rgba(239,227,207,.18); /* линии на тёмном */

  /* --- типографика --- */
  --font-display: 'Oswald', 'Golos Text', sans-serif;
  --font-body:    'Golos Text', -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* --- геометрия --- */
  --r-btn:  4px;      /* мизерное скругление кнопок/полей */
  --r-card: 14px;     /* карточки — по-современному мягче */
  --maxw:   1180px;
  --gutter: clamp(18px, 4vw, 56px);

  /* --- движение --- */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur:  .55s;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* фоновый слой: сетка + тёплое свечение.
   Параллакс завязан на --scroll (число пикселей прокрутки, ставит JS). */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg__grid {
  position: absolute;
  inset: -12% -12% -12% -12%;
  background-image:
    linear-gradient(rgba(27,27,27,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,27,27,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  /* сетка «следует» за скроллом с лагом — задний слой параллакса */
  background-position: 0 calc(var(--scroll, 0) * 0.22px);
  translate: 0 calc(var(--scroll, 0) * -0.05px);
  will-change: background-position, translate;
}
.bg__glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  border-radius: 50%;
  will-change: transform, translate;
}
/* верхний-правый: уезжает вниз-вправо при скролле (ближний слой, движется сильнее) */
.bg__glow--a {
  top: -16%;
  right: -8%;
  background: radial-gradient(circle at center, rgba(200,25,30,0.22), rgba(200,25,30,0) 68%);
  filter: blur(64px);
  translate: calc(var(--scroll, 0) * 0.05px) calc(var(--scroll, 0) * 0.24px);
  animation: glowDrift 16s var(--ease) infinite;
}
/* нижний-левый: уходит вверх-влево (дальний слой) */
.bg__glow--b {
  bottom: -24%;
  left: -14%;
  background: radial-gradient(circle at center, rgba(200,25,30,0.14), rgba(200,25,30,0) 66%);
  filter: blur(72px);
  translate: calc(var(--scroll, 0) * -0.03px) calc(var(--scroll, 0) * -0.16px);
  animation: glowDrift 22s var(--ease) infinite reverse;
}
/* центральный тёплый слой: средняя скорость, добавляет глубины */
.bg__glow--c {
  top: 34%;
  left: 42%;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  background: radial-gradient(circle at center, rgba(200,25,30,0.10), rgba(200,25,30,0) 70%);
  filter: blur(80px);
  translate: calc(var(--scroll, 0) * -0.02px) calc(var(--scroll, 0) * 0.12px);
  animation: glowDrift 19s var(--ease) infinite;
}
@keyframes glowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(4%, -5%) scale(1.12); }
}

/* индикатор прокрутки */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--red);
  z-index: 100;
  transition: width .1s linear;
}

/* всё содержимое над canvas */
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* =================== служебные =================== */
.is-hidden { display: none !important; }

.section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--r-btn);
  padding: 2px 8px;
  margin-bottom: 18px;
}
.section-index--dark { color: var(--red); border-color: rgba(200,25,30,.4); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-title--light { color: var(--paper); }

.tag--mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* =================== кнопки =================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  will-change: transform;
}
.btn i { font-size: 18px; transition: transform .2s var(--ease); }
.btn--primary {
  background: var(--red);
  color: var(--paper);
  box-shadow: 0 0 0 0 rgba(200,25,30,.35);
}
.btn--primary:hover {
  background: var(--red-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(200,25,30,.6);
}
.btn--primary:hover i { transform: translateX(4px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(27,27,27,.04); transform: translateY(-2px); }
.btn--lg { padding: 17px 30px; font-size: 16px; }

/* =================== чипы / соцсети =================== */
.connect-group__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}
.connect-group__items { display: flex; gap: 10px; flex-wrap: wrap; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 15px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-btn);
  color: var(--ink);
  transition: all .2s var(--ease);
}
.chip i { font-size: 17px; }
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--solid:hover { background: var(--red); border-color: var(--red); }

.soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--red);
  border-radius: var(--r-btn);
  color: var(--red);
  transition: all .2s var(--ease);
}
.soc i { font-size: 20px; }
.soc:hover { background: var(--red); color: var(--paper); transform: translateY(-2px); }

/* =================== шапка =================== */
.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px var(--gutter);
  /* чуть светлее бежевого фона + матовость → читается как отдельная панель */
  background: rgba(246,238,225,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease), padding .3s var(--ease);
  z-index: 50;
}
.site-header.is-stuck {
  background: rgba(246,238,225,.9);
  box-shadow: 0 8px 24px -18px rgba(27,27,27,.5);
  padding-top: 9px; padding-bottom: 9px;
}

.logo__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--ink);
}
.logo__accent { color: var(--red); }
/* SVG-лого в шапке (эмблема + надпись) */
.logo__img { height: 62px; width: auto; display: block; }
.logo__img--footer { height: 40px; }
@media (max-width: 620px) { .logo__img { height: 48px; } }
.logo__mark--sm { font-size: 18px; }

.header-nav { display: flex; gap: 26px; }
.header-nav__link {
  font-size: 15px;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.header-nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s var(--ease);
}
.header-nav__link:hover { color: var(--ink); }
.header-nav__link:hover::after { width: 100%; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--ink);
  padding: 8px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-btn);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.header-phone i { color: var(--red); font-size: 17px; }
.header-phone:hover { color: var(--red); border-color: var(--red); background: rgba(200,25,30,.05); }

/* =================== HERO =================== */
.hero {
  position: relative;
  min-height: min(90vh, 800px);
  display: flex;
  align-items: center;
  padding: clamp(28px, 5vh, 60px) var(--gutter);
  overflow: hidden;            /* свечение за формой не выпирает за край экрана */
}
.hero__inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero__loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.hero__loc i { color: var(--red); font-size: 18px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.005em;
  text-transform: uppercase;
}
/* строки заголовка как блоки — красная плашка не наезжает на строку выше */
.hero__title-line { display: block; line-height: 1.34; }
.hl {
  color: var(--paper);
  background: var(--red);
  padding: 0 .16em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__lead {
  margin-top: 20px;
  max-width: 42ch;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  color: var(--ink-2);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero__quick {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero__quick-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.hero__quick-phone i { color: var(--red); font-size: 17px; }
.hero__quick-phone:hover { color: var(--red); }
.hero__quick-sep { width: 1px; height: 22px; background: var(--line-2); }
.hero__quick-soc { display: flex; gap: 8px; }
.soc--sm { width: 36px; height: 36px; }
.soc--sm i { font-size: 17px; }

/* --- стеклянная форма обратного звонка --- */
.hero__aside { position: relative; }
/* тёплое свечение за карточкой — «дышит» */
.callback-glow {
  position: absolute;
  inset: -20% -14% -14% -14%;
  background: radial-gradient(58% 58% at 68% 28%, rgba(200,25,30,0.26), rgba(200,25,30,0) 70%);
  filter: blur(34px);
  z-index: -1;
  animation: glowBreathe 7s var(--ease) infinite;
}
@keyframes glowBreathe {
  0%, 100% { transform: scale(1);    opacity: .82; }
  50%      { transform: scale(1.14); opacity: 1;   }
}
.callback {
  position: relative;
  background: rgba(255,255,255,.48);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px;
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: 0 30px 60px -34px rgba(27,27,27,.5), inset 0 1px 0 rgba(255,255,255,.6);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
/* блик, который периодически проходит по стеклу */
.callback::before {
  content: '';
  position: absolute;
  top: 0; left: -65%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  animation: callbackSheen 7.5s ease-in-out infinite;
}
@keyframes callbackSheen {
  0%, 62% { left: -65%; }
  92%, 100% { left: 135%; }
}
.callback:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 44px 74px -34px rgba(27,27,27,.55), inset 0 1px 0 rgba(255,255,255,.7);
}
.hero__aside:hover .callback-glow { animation-duration: 4s; }
.callback__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.callback__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  text-transform: uppercase;
  line-height: 1.12;
  margin: 10px 0 8px;
}
.callback__sub { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.callback__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.callback__field label { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.callback__field input {
  height: 50px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-btn);
  padding: 0 15px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.callback__field input::placeholder { color: var(--gray-2); }
.callback__field input:hover { border-color: var(--ink-soft); }
.callback__field input:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200,25,30,.14);
}
.callback__submit { width: 100%; justify-content: center; margin-top: 4px; }
.callback__submit.is-loading { pointer-events: none; opacity: .75; }
.callback__note { font-size: 12px; color: var(--ink-soft); margin-top: 12px; text-align: center; }
.callback__status {
  margin-top: 12px;
  font-size: 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease), padding .3s var(--ease);
}
.callback__status.is-visible { max-height: 120px; padding: 12px 14px; border-radius: var(--r-btn); }
.callback__status.is-ok { background: rgba(29,110,86,.12); color: #0F6E56; border: 1px solid rgba(29,110,86,.3); }
.callback__status.is-err { background: rgba(200,25,30,.1); color: var(--red-600); border: 1px solid rgba(200,25,30,.3); }

/* индикатор «листать» — заметный: пульсирующая кнопка с шевроном */
.scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  z-index: 3;
}
.scroll-cue__text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.scroll-cue__btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  color: var(--red);
  background: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cueBounce 1.5s var(--ease) infinite;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.scroll-cue__btn i { font-size: 22px; }
.scroll-cue:hover .scroll-cue__btn { background: var(--red); color: var(--paper); }
@keyframes cueBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* =================== бегущая лента =================== */
.marquee {
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  padding: 11px 0;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
}
.marquee__track i { color: var(--red); font-style: normal; font-size: 9px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =================== ПРЕИМУЩЕСТВА (тёмная полоса) =================== */
.advantages {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 9vh, 100px) var(--gutter);
}
.advantages__head {
  max-width: var(--maxw);
  margin: 0 auto 44px;
}
.advantages__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--r-card);
  overflow: hidden;
}
.adv-card {
  background: var(--ink);
  padding: 30px 26px;
  transition: background .25s var(--ease);
}
.adv-card:hover { background: #232320; }
.adv-card__icon {
  font-size: 30px;
  color: var(--red);
  margin-bottom: 18px;
  display: block;
}
.adv-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 12px;
}
.adv-card__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray-2);
}

/* =================== ПОДБОР =================== */
.podbor {
  padding: clamp(56px, 10vh, 110px) var(--gutter);
  background: var(--paper);
}
.podbor__layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.podbor__intro { position: sticky; top: 96px; }
.podbor__lead {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 40ch;
}
.podbor__notes { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.podbor__notes li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.podbor__notes i { color: var(--red); font-size: 18px; }

/* карточка формы — светлый кремовый «как auto.ru» */
.finder {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 30px 60px -40px rgba(27,27,27,.35);
}
.finder__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink-soft);
}
.field__control {
  width: 100%;
  height: 52px;
  font-family: var(--font-body);
  font-size: 16px;            /* минимум 16 по ТЗ */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-btn);
  padding: 0 16px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.field__control::placeholder { color: var(--gray-2); }
.field__control:hover { border-color: var(--ink-soft); }
.field__control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,25,30,.14);
}
.field__control--area { min-height: 108px; height: auto; padding: 14px 16px; resize: none; line-height: 1.5; }

/* диапазон от/до */
.range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.range__dash { width: 12px; height: 1.5px; background: var(--line-2); }

/* обёртка select со стрелкой */
.select-wrap { position: relative; }
.select-wrap select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap__chevron {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-size: 18px;
  pointer-events: none;
}

/* комбобокс марки */
.combobox { position: relative; }
.combobox__input { cursor: pointer; padding-right: 44px; }
.combobox__chevron {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-size: 18px;
  pointer-events: none;
  transition: transform .2s var(--ease);
}
.combobox.is-open .combobox__chevron { transform: translateY(-50%) rotate(180deg); color: var(--red); }
.combobox__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  max-height: 264px;
  overflow-y: auto;
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-btn);
  box-shadow: 0 24px 44px -22px rgba(27,27,27,.4);
  z-index: 30;
  padding: 6px;
  display: none;
}
.combobox.is-open .combobox__list { display: block; }
.combobox__list li {
  padding: 10px 12px;
  font-size: 16px;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: background .12s var(--ease);
}
.combobox__list li:hover,
.combobox__list li.is-active { background: rgba(200,25,30,.09); color: var(--red-600); }
.combobox__list li[aria-selected="true"] { font-weight: 600; }
.combobox__list li.combobox__other { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; color: var(--red); font-weight: 500; }
.combobox__empty { padding: 12px; font-size: 14px; color: var(--gray); text-align: center; }

/* низ формы */
.finder__footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.finder__submit { flex-shrink: 0; }
.finder__submit.is-loading { pointer-events: none; opacity: .75; }
.finder__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 42ch;
}
.finder__hint i { color: var(--gray); font-size: 15px; flex-shrink: 0; }

.finder__status {
  margin-top: 18px;
  font-size: 15px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease), padding .3s var(--ease);
}
.finder__status.is-visible { max-height: 140px; padding: 14px 16px; border-radius: var(--r-btn); }
.finder__status.is-ok { background: rgba(29,110,86,.12); color: #0F6E56; border: 1px solid rgba(29,110,86,.3); }
.finder__status.is-err { background: rgba(200,25,30,.1); color: var(--red-600); border: 1px solid rgba(200,25,30,.3); }

/* =================== ПРОЦЕСС (винтажный красный постер) =================== */
.process {
  padding: clamp(60px, 9vh, 112px) var(--gutter);
  color: #F4EAD6;
  /* приглушённый кирпичный красный + бумажная зернистость + виньетка */
  background-color: #A63A2F;
  background-image:
    radial-gradient(125% 108% at 50% 30%, rgba(0,0,0,0) 50%, rgba(58,10,6,.42)),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='140'%20height='140'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.09%200'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: cover, 140px 140px;
  border-top: 1px solid rgba(0,0,0,.28);
  border-bottom: 1px solid rgba(0,0,0,.28);
}
/* рамка-постер: двойная кремовая линия */
.process__panel {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 54px);
  border: 1.5px solid rgba(244,234,214,.5);
  border-radius: 4px;
}
.process__panel::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(244,234,214,.22);
  border-radius: 2px;
  pointer-events: none;
}
.process__head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.process .section-index { color: #F4EAD6; border-color: rgba(244,234,214,.5); }
.process .section-title { color: #F8F0DC; }
.process__ornament {
  display: block;
  margin-top: 14px;
  color: #E8D3A3;
  font-size: 17px;
  letter-spacing: .3em;
}
.process__lead {
  margin: 12px auto 0;
  font-size: 1.05rem;
  color: rgba(244,234,214,.82);
  max-width: 52ch;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.step {
  padding: 24px 20px 8px 0;
  border-top: 1.5px solid rgba(244,234,214,.4);
  margin-right: 18px;
  position: relative;
  transition: transform .25s var(--ease);
}
.step::before {
  content: '';
  position: absolute;
  top: -1.5px; left: 0;
  width: 0; height: 1.5px;
  background: #E8D3A3;
  transition: width .5s var(--ease);
}
.step:hover::before,
.step.in::before { width: 46px; }
.step:hover { transform: translateY(-4px); }
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: #E8D3A3;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  text-transform: uppercase;
  color: #F8F0DC;
  margin: 12px 0 8px;
}
.step__text { font-size: 14px; line-height: 1.5; color: rgba(244,234,214,.72); }

/* =================== КОНТАКТЫ =================== */
.contacts {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 100px) var(--gutter);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}
.contacts__panel { display: flex; flex-direction: column; }
.contacts__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 16px 0 24px;
}
.contacts__phone {
  color: var(--ink);
  align-self: flex-start;
}
.contacts__phone-number {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.contacts__phone--primary .contacts__phone-number {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.contacts__phone--secondary .contacts__phone-number {
  font-size: clamp(1.45rem, 2.3vw, 1.8rem);
  font-weight: 500;
}
.contacts__phone:hover .contacts__phone-number { color: var(--red); }
.contacts__list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.contacts__list li { display: flex; gap: 14px; align-items: flex-start; }
.contacts__list i { color: var(--red); font-size: 22px; margin-top: 2px; }
.contacts__k { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); margin-bottom: 3px; }
.contacts__list a:hover { color: var(--red); }
.contacts__channels { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }

.contacts__map { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map { width: 100%; height: 100%; min-height: 380px; }
.map__badge {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 500;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.5);
}
.map__badge .tag--mono { color: var(--gray-2); }

/* мягкая монохромная перекраска: акцент бренда есть, но улицы/подписи читаются */
.map .leaflet-tile-pane {
  filter: grayscale(.62) contrast(.98) brightness(1.02) sepia(.22) saturate(.85);
}
.leaflet-container { background: var(--paper-2); font-family: var(--font-body); }
.map-marker {
  width: 22px; height: 22px;
  background: var(--red);
  border: 3px solid var(--paper);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px -2px rgba(0,0,0,.5);
}

/* =================== ФУТЕР =================== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 26px var(--gutter);
}
.site-footer__row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer .logo__mark { color: var(--paper); }
.site-footer .logo__accent { color: var(--red); }
.site-footer__copy { font-size: 13px; color: var(--gray-2); }
.site-footer__top {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  transition: color .2s var(--ease);
}
.site-footer__top i { color: var(--red); transition: transform .2s var(--ease); }
.site-footer__top:hover i { transform: translateY(-3px); }

/* =================== reveal-анимации ===================
   Прячем только если JS доступен (класс .js на <html>).
   Без JS весь контент виден — не завязываем показ на анимацию. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* =================== скроллбар =================== */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb {
  background: var(--gray);
  border: 3px solid var(--paper-2);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--red); }
* { scrollbar-width: thin; scrollbar-color: var(--gray) var(--paper-2); }

/* =================== адаптив =================== */
@media (max-width: 980px) {
  .header-nav { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__aside { max-width: 460px; }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .podbor__layout { grid-template-columns: 1fr; }
  .podbor__intro { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
  .contacts { grid-template-columns: 1fr; }
  .contacts__map { min-height: 320px; }
}

/* Мобайл: мельче элементы, компактнее по вертикали — сайт не раздувается вниз */
@media (max-width: 620px) {
  :root { --gutter: 18px; }
  body { font-size: 15px; }
  .header-phone span { display: none; }
  .logo__mark { font-size: 19px; }

  .hero { min-height: auto; padding: 26px var(--gutter) 32px; display: block; }
  /* индикатор из абсолютного делаем в потоке — не налезает на форму */
  .scroll-cue { position: static; transform: none; margin: 22px auto 0; }
  .hero__loc { font-size: 13px; margin-bottom: 14px; }
  .hero__title { font-size: clamp(1.65rem, 8.5vw, 2.1rem); }
  .hero__title-line { line-height: 1.28; }
  .hero__lead { margin-top: 14px; font-size: .98rem; }
  .hero__actions { margin-top: 20px; gap: 10px; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .hero__quick { margin-top: 20px; gap: 14px; }
  .hero__aside { max-width: none; }
  .callback { padding: 20px; border-radius: 12px; }
  .callback__title { font-size: 1.15rem; }

  /* секции — меньше вертикальных отступов */
  .advantages, .podbor, .process, .contacts { padding-top: 40px; padding-bottom: 40px; }
  .advantages__head, .process__head { margin-bottom: 26px; }
  .section-title { font-size: clamp(1.5rem, 6.5vw, 1.9rem); }
  .section-index { margin-bottom: 12px; }

  .advantages__grid { grid-template-columns: 1fr; }
  .adv-card { padding: 20px 18px; }
  .adv-card__icon { font-size: 24px; margin-bottom: 12px; }
  .adv-card__title { font-size: 1.02rem; margin-bottom: 8px; }
  .adv-card__text { font-size: 13.5px; }

  .podbor__lead, .process__lead { font-size: .98rem; }
  .podbor__notes { margin-top: 18px; gap: 9px; }
  .finder { padding: 18px; border-radius: 12px; }
  .finder__grid { grid-template-columns: 1fr; gap: 14px; }
  .field--range .range { grid-template-columns: 1fr auto 1fr; }
  .field__control { height: 48px; }
  .field__control--area { height: auto; min-height: 100px; }  /* textarea не зажимаем */
  .finder__footer { flex-direction: column; align-items: stretch; gap: 14px; }
  .finder__submit { width: 100%; justify-content: center; }

  .steps { grid-template-columns: 1fr; }
  .step { margin-right: 0; padding: 18px 0; }

  .contacts__phones { margin: 12px 0 18px; }
  .contacts__phone--primary .contacts__phone-number { font-size: 1.7rem; }
  .contacts__phone--secondary .contacts__phone-number { font-size: 1.35rem; }
  .contacts__list { gap: 14px; margin-bottom: 20px; }

  .marquee__track { animation-duration: 22s; }
  .marquee__track span { font-size: 12px; }
}

/* =================== доступность движения =================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Cookie-плашка: тема Портмотор (перекрывает дефолты cookie.css) ── */
:root{ --ck-accent: #8F1115; } /* тёмно-красный акцент кнопки */
.ck-corner{
  background: color-mix(in srgb, var(--paper-card) 92%, transparent);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 14px 34px rgba(27,27,27,.18);
}
.ck-corner .ck-title{ color: var(--ink); font-family: var(--font-display); letter-spacing:.2px; }
.ck-corner .ck-text{ color: var(--ink-soft); }
.ck-corner .ck-link{ color: var(--red); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.ck-corner .ck-link:hover{ color: var(--red-600); }
.ck-corner .ck-ok{ border-radius: 0; }
.ck-ok{ background: #8F1115; }
.ck-ok:hover{ background: #720D10; filter:none; }

/* ── Подвал: правовая строка ── */
.site-footer__legal-row{ display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 16px;
  margin-top:14px; padding-top:14px; border-top:1px solid var(--line-light); }
.site-footer__legal{ color:inherit; opacity:.82; font-size:13px; text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.28); transition:opacity .2s,border-color .2s; }
.site-footer__legal:hover{ opacity:1; border-bottom-color:var(--red); }
.site-footer__req{ font-size:12px; opacity:.55; font-family:var(--font-mono); letter-spacing:.02em; }

/* ── Оффканвас «досье»: политика конфиденциальности ── */
.pv-scrim{ position:fixed; inset:0; z-index:120; background:rgba(27,27,27,.42);
  opacity:0; transition:opacity .38s; -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); }
.pv-scrim.is-open{ opacity:1; }
.pv-panel{ position:fixed; top:0; right:0; z-index:121; height:100%; height:100dvh; width:min(460px,94vw);
  background:var(--paper); color:var(--ink); box-shadow:-24px 0 60px rgba(27,27,27,.30);
  display:flex; flex-direction:column; transform:translateX(100%);
  transition:transform .42s var(--ease); will-change:transform; }
.pv-panel.is-open{ transform:none; }
.pv-head{ flex:0 0 auto; display:flex; align-items:center; justify-content:space-between;
  padding:18px clamp(18px,5vw,32px); border-bottom:1px solid var(--line); }
.pv-eyebrow{ font-family:var(--font-mono); font-size:11px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--red); }
.pv-close{ width:38px; height:38px; border:1px solid var(--line); background:var(--paper-card);
  border-radius:var(--r-btn); color:var(--ink); cursor:pointer; display:flex; align-items:center;
  justify-content:center; font-size:20px; line-height:1; transition:.2s; }
.pv-close:hover{ border-color:var(--red); color:var(--red); }
.pv-body{ flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  padding:clamp(22px,5vw,32px); }
.pv-title{ font-family:var(--font-display); font-weight:700; line-height:1.14;
  font-size:clamp(22px,3.4vw,28px); margin:0 0 6px; }
.pv-lead{ color:var(--ink-soft); font-size:14px; margin:0 0 22px; }
.pv-body h3{ font-family:var(--font-display); font-weight:600; font-size:16px; margin:24px 0 8px;
  padding-left:12px; border-left:3px solid var(--red); }
.pv-body p{ font-size:14px; line-height:1.65; color:var(--ink-2); margin:0 0 6px; }
.pv-body ul{ padding-left:18px; margin:6px 0; list-style:disc; }
.pv-body li{ font-size:14px; line-height:1.6; color:var(--ink-2); margin:3px 0; list-style:disc; }
.pv-body li::marker{ color:var(--red); }
.pv-req{ margin:10px 0 0; background:var(--paper-card); border:1px solid var(--line); }
.pv-req > div{ display:flex; gap:12px; padding:9px 14px; font-size:13px; border-bottom:1px solid var(--line); }
.pv-req > div:last-child{ border-bottom:0; }
.pv-req dt{ flex:0 0 38%; color:var(--ink-soft); }
.pv-req dd{ margin:0; flex:1; color:var(--ink); font-weight:500; word-break:break-word; }
.pv-req a{ color:var(--red); text-decoration:none; }
.pv-req a:hover{ text-decoration:underline; }
body.pv-lock{ overflow:hidden; }
@media(max-width:560px){ .pv-panel{ width:100%; } .pv-req dt{ flex-basis:44%; } }
