/* ============================================================
   МИЦ-ЭТАЛОН — Метрологический испытательный центр
   Дизайн-система: «приборная шкала»
   Палитра: циферблат / графит / стрелочный красный
   ============================================================ */

:root {
  --paper: #FAFBFA;
  --panel: #ECF2F1;
  --panel-deep: #DEE8E6;
  --ink: #143240;             /* текст: графит с синим подтоном */
  --ink-deep: #113C4A;        /* тёмная «рама»: продающий нэви */
  --inv-text: #F5F4F0;
  --inv-soft: #ABC4CB;
  --inv-faint: #7C99A3;
  --inv-line: rgba(255, 255, 255, 0.1);
  --ink-soft: #47616C;
  --ink-faint: #7C929B;
  --line: #DAE2E1;
  --line-strong: #ABBFC1;
  --red: #A9E75B;          /* лайм — акцент на тёмном и в кнопках */      /* сигнальный оранжевый — цвет целевого действия (имя переменной историческое) */
  --red-dark: #8FD348;
  --acc-ink: #4E9430;
  --orange: #EB4E12;       /* фирменный оранжевый: манометр и роадмап */      /* читаемый зелёный для акцентов на светлом */
  --steel: #8FB3C4;    /* стальной синий — вторичный, инфо */
  --bad: #9C4A40;
  --ok: #2E7D46;
  --font-display: "Unbounded", "Golos Text", Arial, sans-serif;
  --font-main: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
  --container: 1200px;
  --radius: 22px;     /* панели, карточки, изображения */
  --radius-sm: 12px;  /* поля, метки, панели меню */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- сквозной мотив: измерительная шкала ---------- */

.scale-rule {
  height: 14px;
  background:
    repeating-linear-gradient(to right,
      var(--line-strong) 0, var(--line-strong) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(to right,
      var(--ink) 0, var(--ink) 1px, transparent 1px, transparent 100px);
  background-size: 100% 7px, 100% 14px;
  background-position: bottom, bottom;
  background-repeat: repeat-x;
}

.scale-rule--red-mark {
  position: relative;
}
.scale-rule--red-mark::after {
  content: "";
  position: absolute;
  left: 200px;
  bottom: 0;
  width: 3px;
  height: 20px;
  background: var(--red);
}

/* ---------- моно-метки ---------- */

.tag {
  font-family: var(--font-main); font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tag--red { color: var(--red); }

/* ---------- верхняя утилитарная полоса ---------- */

.topbar {
  background: #0C242E;
  color: var(--inv-soft);
  font-family: var(--font-main); font-weight: 500;
  font-size: 12px;
}
.topbar .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  min-height: 34px;
}
.topbar a { color: var(--inv-text); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .accr { justify-self: center; color: var(--red); letter-spacing: 0.04em; font-weight: 600; }
.topbar-links {
  justify-self: end;
  display: flex;
  gap: 22px;
  white-space: nowrap;
}

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--inv-line);
}
/* стекло включается только после начала скролла: постоянный backdrop-blur
   пересчитывался каждый кадр из-за анимаций hero и тормозил стрелку манометра */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header.is-glass {
    background: rgba(13, 42, 53, 0.92);
    -webkit-backdrop-filter: saturate(170%) blur(16px);
    backdrop-filter: saturate(170%) blur(16px);
  }
}
.site-header .brand-name { color: var(--inv-text); }
.site-header .brand-sub { color: var(--inv-soft); }
/* текст бренда — только дескриптор, знак «МИЦ-ЭТАЛОН» несёт ромб слева */
.site-header .brand-sub,
.site-footer .brand-sub {
  font-size: 9px;
  white-space: normal;
  width: 90px;
  line-height: 1.5;
}
.site-header .brand-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: auto;
  white-space: nowrap;
  color: var(--inv-text);
}
.site-footer .brand-sub { color: var(--inv-faint); }
.site-header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}
.site-header .btn { min-height: 44px; padding: 10px 14px; font-size: 13px; }
.site-header a:focus-visible,
.site-header button:focus-visible { outline-color: var(--red); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { display: block; flex: none; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-family: var(--font-main);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.main-nav > a,
.main-nav .nav-drop > button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 8px;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.site-header .main-nav > a,
.site-header .nav-drop > button { color: var(--inv-soft); }
.main-nav > a:hover,
.main-nav .nav-drop > button:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.main-nav > a.active { color: #fff; box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }

.nav-drop { position: relative; }
.nav-drop > button::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 6px;
  background-color: currentColor;
  -webkit-mask: url('../assets/chevron-down.svg') center / contain no-repeat;
  mask: url('../assets/chevron-down.svg') center / contain no-repeat;
  transition: transform 0.2s ease;
}
.nav-drop.open > button::after { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: #174B5C;
  border: 1px solid var(--inv-line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(5, 30, 38, 0.4);
  display: none;
  padding: 6px 0;
  overflow: hidden;
}
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
  text-decoration: none;
  color: var(--inv-soft);
}
.nav-drop-menu a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.btn--red {
  background: linear-gradient(180deg, #C4F186 0%, #A9E75B 55%, #8FD348 100%);
  color: var(--ink-deep);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(120, 190, 60, 0.35);
}
.btn--red:hover {
  background: linear-gradient(180deg, #CFF49A 0%, #B5EC6C 55%, #98DA52 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(120, 190, 60, 0.45);
}
.btn--red:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(120, 190, 60, 0.35);
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ink {
  background: linear-gradient(180deg, #1D5568 0%, #113C4A 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(10, 36, 45, 0.25);
}
.btn--ink:hover {
  background: linear-gradient(180deg, #256477 0%, #144452 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(10, 36, 45, 0.3);
}
.btn--ink:active { transform: translateY(0); }
.btn--ghost:hover { background: rgba(17, 60, 74, 0.05); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--acc-ink);
  outline-offset: 2px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.burger:hover { background: var(--inv-line); }
.burger span { width: 22px; height: 2px; background: var(--inv-text); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open { overflow: hidden; }
body.menu-open .cookie-note { visibility: hidden; }

/* ---------- герой ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(90% 130% at 78% 32%, rgba(56, 122, 138, 0.5) 0%, rgba(56, 122, 138, 0) 55%),
    radial-gradient(70% 100% at 10% 100%, rgba(169, 231, 91, 0.07) 0%, transparent 45%),
    linear-gradient(160deg, #14424F 0%, #103743 55%, #0B2831 100%);
  color: var(--inv-text);
  overflow: hidden;
}
.hero-ruler {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 75% 90% at 78% 45%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 78% 45%, black, transparent 72%);
}
/* дрейф через transform: компонуется на GPU, без перерисовок кадра */
.hero-ruler::before {
  content: "";
  position: absolute;
  inset: 0 0 0 -220px;
  background: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 22px);
  animation: ruler-drift 46s linear infinite;
  will-change: transform;
}
@keyframes ruler-drift {
  to { transform: translateX(220px); }
}
.hero .container { position: relative; }

.hero .container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 108px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 18px 0 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.hero .lead {
  font-size: 18px;
  color: var(--inv-soft);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero .btn--ghost { color: var(--inv-text); border-color: rgba(255, 255, 255, 0.3); }
.hero .btn--ghost:hover { border-color: #fff; }
.hero .scale-rule {
  background:
    repeating-linear-gradient(to right,
      rgba(255, 255, 255, 0.25) 0, rgba(255, 255, 255, 0.25) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(to right,
      rgba(255, 255, 255, 0.6) 0, rgba(255, 255, 255, 0.6) 1px, transparent 1px, transparent 100px);
  background-size: 100% 7px, 100% 14px;
  background-position: bottom, bottom;
  background-repeat: repeat-x;
}
.hero .stamp-caption { color: var(--inv-faint); }

/* анимированный циферблат в герое */
.hero-gauge {
  position: relative;
  justify-self: center;
  text-align: center;
  width: 100%;
  max-width: 360px;
  animation: rise-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}
.hero-gauge svg { width: 100%; height: auto; display: block; position: relative; }
/* свечение прибора: холодная подложка + тёплый отсвет рабочей зоны */
.hero-gauge::before {
  content: "";
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background:
    radial-gradient(52% 52% at 50% 46%, rgba(143, 179, 196, 0.24) 0%, transparent 70%),
    radial-gradient(30% 30% at 70% 66%, rgba(235, 78, 18, 0.2) 0%, transparent 74%);
  pointer-events: none;
  /* только opacity — компонуется на GPU и не мешает реакции стрелки на курсор */
  animation: gauge-glow 7s ease-in-out infinite alternate;
}
@keyframes gauge-glow {
  from { opacity: 0.65; }
  to   { opacity: 1; }
}

#gauge .ticks { animation: gauge-fade 0.9s ease 0.35s backwards; }
@keyframes gauge-fade { from { opacity: 0; } }

#gauge .needle-find {
  transform-origin: 200px 200px;
  animation: needle-find 2.2s cubic-bezier(0.34, 1.2, 0.4, 1) 0.5s backwards;
}
@keyframes needle-find {
  0%   { transform: rotate(-118deg); }
  100% { transform: rotate(0deg); }
}
#gauge .needle-hover {
  transform-origin: 200px 200px;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#gauge .needle-breathe {
  transform-origin: 200px 200px;
  animation: needle-breathe 4.5s ease-in-out 2.7s infinite alternate;
}
@keyframes needle-breathe {
  from { transform: rotate(-1.3deg); }
  to   { transform: rotate(1.3deg); }
}

/* клеймо-ромб в герое */
.stamp {
  justify-self: center;
  text-align: center;
}
.stamp svg { margin: 0 auto; }
.stamp-caption {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* строка фактов: панель, выступающая из тёмного hero */

.factline {
  position: relative;
  z-index: 5;
  margin-top: -56px;
}
.factline .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(10, 36, 45, 0.2);
  padding: 10px 36px;
}
.fact {
  padding: 26px 20px 26px 24px;
  border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-icon {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
}
.fact-icon .ic,
.fact-icon .ic-a {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fact-icon .ic { stroke: var(--ink-deep); }
.fact-icon .ic-a { stroke: var(--acc-ink); }
.fact-icon .ic-f { fill: var(--acc-ink); }

/* иконки фактов: прорисовка штриха при появлении + периодический «тик» акцента,
   чтобы взгляд цеплялся за факты при сканировании страницы */
@media (prefers-reduced-motion: no-preference) {
  .fact .fact-icon .ic,
  .fact .fact-icon .ic-a {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .fact .fact-icon .ic-f {
    opacity: 0;
    transform: scale(0.4);
    transform-origin: center;
    transform-box: fill-box;
  }
  .fact.in .fact-icon .ic {
    animation: icon-draw 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
  }
  .fact.in .fact-icon .ic-a {
    animation: icon-draw 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.85s forwards;
  }
  .fact.in .fact-icon .ic-f {
    animation: icon-pop 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
  }
  .fact.in .fact-icon {
    animation: icon-tick 7s ease-in-out 3s infinite;
    transform-origin: center bottom;
  }
  /* лесенка: иконки «тикают» по очереди */
  .fact.in:nth-child(2) .fact-icon { animation-delay: 3.6s; }
  .fact.in:nth-child(3) .fact-icon { animation-delay: 4.2s; }
  .fact.in:nth-child(4) .fact-icon { animation-delay: 4.8s; }
}
@keyframes icon-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes icon-pop {
  to { opacity: 1; transform: scale(1); }
}
@keyframes icon-tick {
  0%, 92%, 100% { transform: none; }
  94% { transform: scale(1.07) rotate(-1.5deg); }
  97% { transform: scale(1.05); }
}
.fact b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.fact span { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- секции ---------- */

.section { padding: 76px 0; }
.section--panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, #F7F9FB 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* гравировка-шкала по верхней кромке панели — риски, как на приборе */
.section--panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  pointer-events: none;
  background:
    repeating-linear-gradient(to right,
      rgba(17, 60, 74, 0.12) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(to right,
      rgba(17, 60, 74, 0.3) 0 1px, transparent 1px 100px);
  background-size: 100% 6px, 100% 12px;
  background-position: top, top;
  background-repeat: repeat-x;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head .tag::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--acc-ink);
  transform: rotate(45deg);
  margin-right: 10px;
  vertical-align: 1px;
}
/* индикатор «онлайн»: пульсирующая точка вместо ромба */
.section-head .tag--live::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  transform: none;
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 125, 70, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(46, 125, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 125, 70, 0); }
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-top: 10px;
}
.section-head .more {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-head .more:hover { border-color: var(--acc-ink); color: var(--acc-ink); }

/* ---------- карточки услуг ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 36, 45, 0.04), 0 10px 28px rgba(10, 36, 45, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
/* маленькая оранжевая риска по центру нижней кромки при наведении */
.svc-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 3px;
  margin-left: -22px;
  border-radius: 2px 2px 0 0;
  background: var(--acc-ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(10, 36, 45, 0.16);
}
.svc-card:hover::after { transform: scaleX(1); }
.svc-imgwrap {
  overflow: hidden;
  /* фото встык к краям карточки, скругление совпадает с её верхними углами */
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  margin: -28px -28px 6px;
}
.svc-imgwrap img {
  width: 100%;
  height: 156px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card:hover .svc-imgwrap img { transform: scale(1.04); }
.svc-card h3 { font-size: 20px; font-weight: 700; }
.svc-card p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.svc-card .svc-price {
  font-family: var(--font-main); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.svc-card .svc-go {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--acc-ink);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card:hover .svc-go { transform: translateX(5px); }

/* ромб-маркер */
.dm {
  width: 12px;
  height: 12px;
  background: var(--ink);
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}
.dm--red { background: var(--red); }
.dm--outline { background: transparent; border: 1.5px solid var(--ink); }

/* ---------- шаги процесса: роадмап по измерительной линии ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 40px;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 7px;
  right: calc(25% - 34px); /* линия заканчивается на узле «шаг 04» */
  height: 2px;
}
.steps::before { background: var(--line-strong); }
.steps::after {
  background: var(--orange);
  transform-origin: left;
  transform: scaleX(0);
  /* равномерный ход, чтобы узлы зажигались ровно под фронтом линии */
  transition: transform 1.6s linear 0.2s;
}
.steps.drawn::after { transform: scaleX(1); }

.step { position: relative; }
.step::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: -41px;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border: 2px solid var(--line-strong);
  transform: rotate(45deg) scale(0.55);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
}
.steps.drawn .step::before {
  transform: rotate(45deg) scale(1);
  background: var(--orange);
  border-color: var(--orange);
}
/* фронт линии проходит узлы на 0 / 1/3 / 2/3 / 1 длины при линейном ходе 1.6s + 0.2s */
.steps.drawn .step:nth-child(1)::before { transition-delay: 0.2s; }
.steps.drawn .step:nth-child(2)::before { transition-delay: 0.73s; }
.steps.drawn .step:nth-child(3)::before { transition-delay: 1.27s; }
.steps.drawn .step:nth-child(4)::before { transition-delay: 1.8s; }

.step .step-num {
  font-family: var(--font-main); font-weight: 700;
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 12px;
}
.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- формы ---------- */

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .hint { font-weight: 400; color: var(--ink-faint); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-note { font-size: 13px; color: var(--ink-faint); margin-top: 14px; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form-success {
  display: none;
  border: 1px solid var(--ok);
  background: #F0F7F2;
  color: var(--ok);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-weight: 600;
  margin-top: 20px;
}
.form-success.show { display: block; }
.form-success .num { font-family: var(--font-mono); }

/* ---------- Сможем ли поверить? ---------- */

.ready-search {
  display: flex;
  gap: 12px;
}
.ready-search input {
  flex: 1;
  font-family: var(--font-main);
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
}
.ready-search input:focus { border-color: var(--ink); }

.status-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.status-table th {
  font-family: var(--font-main); font-weight: 600;
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--ink-soft);
  background: var(--panel);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.status-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.status-table th + th,
.status-table td + td { border-left: 1px solid var(--line); }
.status-table tr:last-child td { border-bottom: 0; }
.status-table .mono { font-family: inherit; font-size: inherit; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block;
  font-family: var(--font-main); font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge--ready { background: #E7F2EA; color: var(--ok); }
.badge--work { background: #FCEEE0; color: #A05A00; }
.badge--wait { background: var(--panel-deep); color: var(--ink-soft); }
.badge--reject { background: #F6ECEA; color: var(--bad); }

/* ---------- новости ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(10, 36, 45, 0.04), 0 10px 28px rgba(10, 36, 45, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.news-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 3px;
  margin-left: -22px;
  border-radius: 2px 2px 0 0;
  background: var(--acc-ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(10, 36, 45, 0.16);
}
.news-card:hover::after { transform: scaleX(1); }
.news-card time {
  font-family: var(--font-main); font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--ink-faint);
}
.news-card h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.news-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- FAQ аккордеон ---------- */

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-size: 17px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-left: auto;
  background-color: currentColor;
  -webkit-mask: url('../assets/chevron-down.svg') center / contain no-repeat;
  mask: url('../assets/chevron-down.svg') center / contain no-repeat;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary .dm { transition: transform 0.2s ease; }
.faq-item[open] summary .dm { background: var(--acc-ink); }
.faq-item .faq-body {
  padding: 0 4px 22px 28px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 760px;
}

/* ---------- документы ---------- */

.doc-list { display: grid; gap: 12px; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.doc-item {
  box-shadow: 0 1px 2px rgba(10, 36, 45, 0.03), 0 8px 22px rgba(10, 36, 45, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.doc-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 36, 45, 0.12);
}
.doc-item .doc-ext {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1.5px solid var(--ink);
  padding: 6px 8px;
  border-radius: 7px;
  flex-shrink: 0;
}
.doc-item .doc-name { font-weight: 600; font-size: 15px; }
.doc-item .doc-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.doc-item .doc-dl { margin-left: auto; color: var(--acc-ink); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- продукция ---------- */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.prod-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prod-card .tag { margin-bottom: 4px; }
.prod-card h3 { font-size: 17px; font-weight: 700; }
.prod-card p { font-size: 14px; color: var(--ink-soft); flex: 1; }
.prod-card .prod-price {
  font-family: var(--font-main); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ---------- контент-страницы ---------- */

.page-head {
  border-bottom: 1px solid var(--line);
  padding: 56px 0 40px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.16;
  margin-top: 14px;
}
.page-head .lead {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 700px;
}
.breadcrumbs {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--ink-faint);
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}

.aside-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 96px;
}
.aside-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.aside-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.aside-card .btn { width: 100%; }
.aside-card .aside-contact {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  font-size: 14px;
}
.aside-card .aside-contact a { font-family: var(--font-main); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.aside-card .aside-contact a:hover { color: var(--red); }

.prose h2 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 44px 0 18px; letter-spacing: -0.005em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; color: var(--ink-soft); max-width: 72ch; }
.prose ul { margin: 0 0 20px; padding: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--ink);
  transform: rotate(45deg);
}
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14.5px; }
.prose table th { font-family: var(--font-main); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; text-align: left; background: var(--panel); color: var(--ink-soft); padding: 11px 16px; border-bottom: 1px solid var(--line); }
.prose table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose table tr:last-child td { border-bottom: 0; }
.prose table th + th,
.prose table td + td { border-left: 1px solid var(--line); }
.prose table .mono { font-family: inherit; font-size: inherit; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- CTA-полоса ---------- */

.cta-band {
  background:
    radial-gradient(75% 160% at 88% 15%, rgba(169, 231, 91, 0.16) 0%, transparent 55%),
    linear-gradient(160deg, #154553 0%, #103743 60%, #0B2A34 100%);
  color: #fff;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 52px;
  padding-bottom: 52px;
  flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.005em; }
.cta-band p { color: #A9B7C6; margin-top: 8px; font-size: 15px; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.cta-band .btn--ghost:hover { border-color: #fff; }

/* ---------- ЛК ---------- */

.lk-login {
  max-width: 440px;
  margin: 0 auto;
}
.lk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.lk-head .lk-org { font-size: 22px; font-weight: 800; }
.lk-head .lk-org span { display: block; font-family: var(--font-mono); font-size: 12.5px; font-weight: 400; color: var(--ink-faint); margin-top: 4px; }

/* ---------- футер ---------- */

.site-footer {
  --inv-faint: var(--inv-soft);
  background: linear-gradient(180deg, #113C4A 0%, #0B2A34 100%);
  color: var(--inv-soft);
}
.site-footer .brand-name { color: var(--inv-text); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer-grid .footer-h {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--inv-faint);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { font-size: 14px; color: var(--inv-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--red); }
.footer-brand p { font-size: 13.5px; color: var(--inv-soft); margin-top: 14px; max-width: 300px; }
.footer-contact a { font-family: var(--font-main); font-weight: 600; font-size: 15px; color: var(--inv-text); font-variant-numeric: tabular-nums; }
.footer-contact .addr { font-size: 13.5px; color: var(--inv-soft); margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid var(--inv-line);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--inv-faint);
}

/* ---------- уведомление о cookie ---------- */

.cookie-note {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(10, 36, 45, 0.22);
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  animation: rise-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s backwards;
}
.cookie-note a { color: var(--ink); font-weight: 600; }
.cookie-note .cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.cookie-note .btn { padding: 8px 16px; font-size: 13px; }
.cookie-note.hide {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
@media (max-width: 640px) {
  .cookie-note { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- анимации ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* шкала-прогресс скролла: «риска» ползёт по странице, как стрелка по циферблату */
.scroll-ruler {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 100;
  pointer-events: none;
}
.scroll-ruler .trail {
  position: absolute;
  inset: 0;
  background: var(--acc-ink);
  opacity: 0.3;
  transform-origin: left;
  transform: scaleX(0);
}
.scroll-ruler .mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--acc-ink);
}

/* фокусная последовательность hero */
.hero .tag      { animation: rise-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s backwards; }
.hero h1        { animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.14s backwards; }
.hero .lead     { animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.26s backwards; }
.hero .hero-cta { animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.38s backwards; }
.hero-photo     { animation: rise-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards; }

@keyframes mark-find {
  from { left: 8px; opacity: 0; }
  30%  { opacity: 1; }
  to   { left: 200px; opacity: 1; }
}
.scale-rule--red-mark::after {
  animation: mark-find 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s backwards;
}

.page-head .breadcrumbs { animation: rise-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.02s backwards; }
.page-head h1           { animation: rise-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards; }
.page-head .lead        { animation: rise-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards; }

.dm { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease; }

/* ---------- баннеры ---------- */

.hero-photo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  align-self: center;
  width: 100%;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-stamp {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(250, 250, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  line-height: 1.45;
}

.page-banner {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 24px;
}
.page-banner img {
  width: 100%;
  height: clamp(190px, 30vw, 330px);
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.cta-band--photo {
  position: relative;
  background-size: cover;
  background-position: center;
}
.cta-band--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 24, 26, 0.82);
}
.cta-band--photo .container { position: relative; }

/* ---------- адаптив ---------- */

.header-actions .hide-md { display: none; }
.header-actions .btn--ghost { color: var(--inv-text); border-color: rgba(255, 255, 255, 0.28); }
.header-actions .btn--ghost:hover { border-color: #fff; }
.main-nav > a.mobile-only,
.main-nav .mobile-contacts { display: none; }
.site-header.nav-open .main-nav > a.mobile-only { display: block; }
.site-header.nav-open .mobile-contacts {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--inv-line);
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--inv-faint);
}
.mobile-contacts a {
  color: var(--inv-text);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 1200px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .btn--ghost.hide-md { display: none; }
  .burger { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0E313D;
    border-bottom: 1px solid var(--inv-line);
    padding: 12px 24px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    max-height: calc(100dvh - var(--menu-top, 73px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .site-header.nav-open .main-nav > a,
  .site-header.nav-open .nav-drop > button { padding: 12px 4px; font-size: 16px; width: 100%; text-align: left; }
  /* «Личный кабинет» в бургер-меню — отдельной кнопкой */
  .site-header.nav-open .main-nav > a.mobile-lk {
    margin-top: 14px;
    padding: 13px 16px;
    text-align: center;
    font-weight: 600;
    color: var(--inv-text);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--radius-sm);
  }
  .site-header.nav-open .main-nav > a.mobile-lk:hover { border-color: #fff; background: none; }
  .nav-drop-menu { position: static; border: 0; box-shadow: none; padding-left: 16px; }
}

@media (max-width: 1080px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 84px; }
  .stamp, .hero-photo, .hero-gauge { display: none; }
  .factline { margin-top: -40px; }
  .factline .container { grid-template-columns: 1fr 1fr; padding: 4px 28px; }
  .fact { border-left: 0; padding-left: 0; padding-top: 18px; padding-bottom: 18px; }
  .svc-grid, .news-grid, .prod-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps::before, .steps::after { display: none; }
  .step { padding-left: 26px; }
  .step::before { top: 5px; left: 0; }
  .two-col { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .svc-grid, .news-grid, .prod-grid, .steps, .factline .container { grid-template-columns: 1fr; }
  .steps { padding-top: 0; row-gap: 36px; }
  .step { padding-left: 32px; }
  .step::before { top: 3px; left: 3px; }
  /* вертикальные соединители: заливаются оранжевым сверху вниз вслед за узлами */
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 22px;
    bottom: -38px;
    width: 2px;
    background-color: var(--line-strong);
    background-image: linear-gradient(var(--orange), var(--orange));
    background-repeat: no-repeat;
    background-position: top;
    background-size: 100% 0%;
  }
  .steps.drawn .step:nth-child(1)::after { background-size: 100% 100%; transition: background-size 0.5s linear 0.3s; }
  .steps.drawn .step:nth-child(2)::after { background-size: 100% 100%; transition: background-size 0.5s linear 0.95s; }
  .steps.drawn .step:nth-child(3)::after { background-size: 100% 100%; transition: background-size 0.5s linear 1.6s; }
  .steps.drawn .step:nth-child(1)::before { transition-delay: 0.2s; }
  .steps.drawn .step:nth-child(2)::before { transition-delay: 0.85s; }
  .steps.drawn .step:nth-child(3)::before { transition-delay: 1.5s; }
  .steps.drawn .step:nth-child(4)::before { transition-delay: 2.15s; }
  /* кнопки геро- и CTA-блоков — колонкой одной ширины */
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .form-card button[type="submit"] { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .ready-search { flex-direction: column; }
  .form-card { padding: 24px 20px; }
  .section { padding: 52px 0; }
  .topbar { display: none; }
  .header-actions .btn--ghost { display: none; }
  .header-actions .btn { padding: 9px 14px; font-size: 13px; }
  .site-header .container { padding-inline: 16px; gap: 8px; }
  .site-header .brand { gap: 8px; min-width: 0; }
  .site-header .brand-sub { font-size: 11px; width: auto; line-height: 1.45; }
  .site-header .header-actions { gap: 0; }
  /* факт-карточка: содержимое по центру */
  .fact { text-align: center; }
  .fact-icon { margin-left: auto; margin-right: auto; }
}

@media (max-width: 360px) {
  .site-header .brand > span { display: none; }
}
