/* ==========================================================================
   СЛУЖБА ПО КОНТРАКТУ
   Светлая официальная тема: белый, государственный синий, красный акцент.
   Ноль внешних зависимостей.

   Имена классов исторические: .btn--au и .au когда-то были «золотыми».
   Сейчас .btn--au — главная (красная) кнопка, .au — акцентная цифра (синяя).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ТОКЕНЫ
   Тёмные полосы (.fin, .ftr) переопределяют эти же переменные — см. п. 21.
   -------------------------------------------------------------------------- */
:root,
.fin .glass {
  /* Поверхности */
  --bg:       #f3f5f8;
  --bg-2:     #ffffff;
  --card:     #ffffff;
  --card-2:   #f6f8fb;

  /* Границы */
  --line:     #e2e7ee;
  --line-2:   #cdd5e0;
  --line-3:   #a9b4c4;

  /* Текст */
  --head:     #0d1b2e;
  --txt:      #27344a;
  --txt-2:    #5a6679;
  --txt-3:    #8a94a5;

  /* Триколор */
  --blue:     #1b3f93;
  --blue-2:   #2a55c4;
  --blue-lt:  #eaf0fb;
  --red:      #d42a1f;
  --red-2:    #b52017;
  --red-lt:   #fdeceb;
  --green:    #1e8a4c;
  --green-lt: #e8f5ee;

  --shadow:    0 1px 2px rgba(13, 27, 46, 0.04), 0 8px 24px -12px rgba(13, 27, 46, 0.14);
  --shadow-lg: 0 2px 6px rgba(13, 27, 46, 0.04), 0 30px 60px -28px rgba(13, 27, 46, 0.3);
}

:root {
  /* Типографика */
  --f: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
       Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Раскладка */
  --wrap:   1240px;
  --narrow: 920px;
  --pad:    24px;
  --hh:     74px;   /* высота шапки */

  --r:      14px;
  --r-lg:   20px;
}

/* --------------------------------------------------------------------------
   2. СБРОС
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hh) + 20px);
  -webkit-text-size-adjust: 100%;
  /* Страховка от горизонтального сдвига: hidden на одном body мобильные
     браузеры игнорируют и всё равно дают тянуть страницу вбок.
     clip (а не hidden) не создаёт контейнер прокрутки и не ломает sticky. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.lock { overflow: hidden; }

img, svg, canvas, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; text-wrap: pretty; }

h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; color: var(--head); }

::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: -70px; left: 20px; z-index: 999;
  background: var(--blue); color: #fff; padding: 12px 20px;
  border-radius: 0 0 10px 10px; font-weight: 700; transition: top 0.2s;
}
.skip:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. ТИПОГРАФИЧЕСКИЕ ПРИМИТИВЫ
   -------------------------------------------------------------------------- */
/* Раньше сжимали шрифт в «плакатный»; в новой теме — обычное начертание */
.tight, .tight-c { display: inline-block; }

.h-lg { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }

.au { color: var(--blue); }

.lead { font-size: clamp(16px, 1.45vw, 18.5px); color: var(--txt-2); line-height: 1.62; }
.lead b, .lead strong { color: var(--head); font-weight: 650; }

/* Надпись-метка: короткая сине-красная планка + капс */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue);
}
.kicker::before, .kicker--c::after {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue) 50%, var(--red) 50%);
}

/* --------------------------------------------------------------------------
   4. РАСКЛАДКА
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--n { max-width: var(--narrow); }

.sec { position: relative; padding-block: clamp(64px, 7.5vw, 116px); }
/* Секции чередуются: серый фон страницы ↔ белая полоса */
.sec--edge:nth-of-type(even) { background: var(--bg-2); }
.sec--edge { border-top: 1px solid var(--line); }

.head { margin-bottom: clamp(34px, 4.4vw, 56px); }
.head--c { margin-inline: auto; text-align: center; }
.head .kicker { margin-bottom: 18px; }
.head p { margin-top: 18px; max-width: 640px; }
.head--c p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. ПОЛОСА ПРОГРЕССА
   -------------------------------------------------------------------------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 300;
  width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--blue-2) 60%, var(--red));
  will-change: transform;
}

/* --------------------------------------------------------------------------
   6. КНОПКИ
   -------------------------------------------------------------------------- */
.btn {
  --py: 15px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--py) 28px;
  border: 1px solid transparent; border-radius: 12px;
  font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.2;
  text-align: center; white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.25s,
              background 0.25s, border-color 0.25s, color 0.25s;
}
.btn > * { position: relative; z-index: 1; }
.btn svg { flex: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.btn--au {
  background: var(--red); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(212, 42, 31, 0.7);
}
.btn--au:hover { background: var(--red-2); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(212, 42, 31, 0.75); }

.btn--gh { background: var(--card); border-color: var(--line-2); color: var(--head); }
.btn--gh:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn--sm { --py: 10px; padding-inline: 18px; font-size: 14px; border-radius: 10px; }
.btn--lg { --py: 18px; padding-inline: 34px; font-size: 16.5px; }
.btn--full { width: 100%; }

/* Пульсирующее кольцо у главного CTA */
.btn--ring::before {
  content: ""; position: absolute; inset: -3px; border-radius: 14px; z-index: 0;
  border: 2px solid var(--red); animation: ring 2.6s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
@keyframes ring {
  0%   { opacity: 0.6; transform: scale(1); }
  65%  { opacity: 0;   transform: scale(1.1); }
  100% { opacity: 0;   transform: scale(1.1); }
}

/* --------------------------------------------------------------------------
   7. ШАПКА
   -------------------------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hh);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, height 0.3s, box-shadow 0.3s;
}
.hdr.stuck {
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(13, 27, 46, 0.4);
}
.hdr__in {
  width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  display: flex; align-items: center; gap: 30px;
}

/* Надпись вместо логотипа: флажок-триколор + две строки */
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__f {
  width: 28px; height: 20px; flex: none; border-radius: 3px;
  background: linear-gradient(180deg, #fff 0 33.4%, var(--blue) 33.4% 66.7%, var(--red) 66.7%);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.logo__t { display: flex; flex-direction: column; line-height: 1; }
.logo__n { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--head); }
.logo__s { font-size: 11px; font-weight: 550; color: var(--txt-3); margin-top: 5px; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  position: relative; font-size: 14.5px; font-weight: 600; color: var(--txt-2);
  padding-block: 6px; transition: color 0.2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; border-radius: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.nav a:hover { color: var(--head); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hdr__r { display: flex; align-items: center; gap: 16px; flex: none; }
.hdr__tel { font-size: 16.5px; font-weight: 750; letter-spacing: -0.02em; color: var(--head); white-space: nowrap; transition: color 0.2s; }
.hdr__tel:hover { color: var(--blue); }

/* Флекс, а не грид: в гриде три авто-строки растягиваются по высоте кнопки,
   полоски расходятся на ~17px, и вместо крестика получается «>». */
.burger {
  display: none; width: 46px; height: 46px; flex: none;
  flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--card);
  -webkit-tap-highlight-color: transparent;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--head); border-radius: 2px; transition: transform 0.32s, opacity 0.2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mnav {
  position: fixed; left: 0; right: 0; top: var(--hh); bottom: 0; z-index: 99;
  /* dvh — чтобы низ меню не уезжал под адресную строку на iOS/Android */
  height: calc(100dvh - var(--hh));
  background: var(--bg-2);
  padding: 12px var(--pad) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.mnav.open { opacity: 1; visibility: visible; transform: none; }
.mnav a.ml {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  /* Восемь пунктов плюс кнопки должны помещаться на экране 360×640 без прокрутки */
  font-size: clamp(18px, 5vw, 22px); line-height: 1.2;
  font-weight: 750; letter-spacing: -0.025em;
  padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--head);
  transition: color 0.2s, padding-left 0.25s;
}
.mnav a.ml span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--txt-3); flex: none; }
.mnav a.ml:active { color: var(--blue); }
@media (hover: hover) {
  .mnav a.ml:hover { color: var(--blue); padding-left: 8px; }
}
.mnav__f { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }
.mnav__f .btn { --py: 13px; }

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(var(--hh) + 40px); padding-bottom: 64px;
  background: var(--bg);
}

/* Слои фона: фотография справа → рельеф на канвасе → блики → нижняя растушёвка */
.hero__ph { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.hero__ph img {
  position: absolute; right: 0; top: 0;
  width: 64%; height: 100%; object-fit: cover; object-position: 60% 12%;
  filter: saturate(0.85) contrast(1.04);
  animation: heroPh 1.4s cubic-bezier(0.16, 0.9, 0.3, 1) both;
}
@keyframes heroPh {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: none; }
}
/* Фото растворяется в светлом фоне под заголовком */
.hero__ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    var(--bg) 0%, var(--bg) 36%, rgba(243, 245, 248, 0.82) 48%, rgba(243, 245, 248, 0.2) 66%, rgba(243, 245, 248, 0) 80%);
}

.hero__c { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 50% at 0% 0%,  rgba(27, 63, 147, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(212, 42, 31, 0.05), transparent 62%);
}
.hero__vig {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(243, 245, 248, 0.7) 0%, transparent 18%, transparent 78%, var(--bg) 100%);
}

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(34px, 4.4vw, 64px); align-items: center; width: 100%;
}

/* Бейдж «набор открыт» */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--head); box-shadow: var(--shadow);
}
.pip {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none;
  box-shadow: 0 0 0 0 rgba(30, 138, 76, 0.6); animation: pip 2.2s infinite;
}
@keyframes pip {
  70%  { box-shadow: 0 0 0 9px rgba(30, 138, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 138, 76, 0); }
}

.hero__label {
  display: block;
  margin-top: 28px; font-size: clamp(13px, 1.3vw, 15.5px); font-weight: 750;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--txt-2);
}

/* Главная цифра */
.hero__sum {
  display: block; margin-top: 10px; white-space: nowrap;
  font-size: clamp(50px, 8vw, 118px); font-weight: 850;
  letter-spacing: -0.05em; line-height: 0.95;
}

.hero__plus {
  margin-top: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px;
  font-size: clamp(19px, 2.3vw, 30px); font-weight: 750; letter-spacing: -0.03em;
  color: var(--head);
}
.hero__plus i { font-style: normal; color: var(--red); font-size: 1.1em; line-height: 1; }

.hero__lead { margin-top: 24px; max-width: 540px; }

.hero__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero__trust li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 550; color: var(--txt); }
.hero__trust svg { color: var(--green); flex: none; }

/* Индикатор прокрутки */
.scroller {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; z-index: 1;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--txt-3);
}
.scroller i { display: block; width: 2px; height: 40px; border-radius: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.scroller i::after {
  content: ""; position: absolute; inset: 0; background: var(--blue);
  animation: drip 2.1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* --------------------------------------------------------------------------
   9. КАРТОЧКА-ПАНЕЛЬ (белая, сверху — сине-красная кромка)
   -------------------------------------------------------------------------- */
.glass {
  position: relative; color: var(--txt);
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.glass::before {
  content: ""; position: absolute; top: -1px; left: 28px; width: 72px; height: 4px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--blue) 50%, var(--red) 50%);
}

.fcard { padding: clamp(24px, 2.6vw, 34px); }
.fcard__t { font-size: clamp(21px, 2vw, 25px); font-weight: 800; letter-spacing: -0.03em; }
.fcard__s { margin-top: 8px; font-size: 14.5px; color: var(--txt-2); line-height: 1.5; }
.fcard__n { margin-top: 16px; font-size: 12px; color: var(--txt-3); line-height: 1.55; }
.fcard__n a { color: var(--txt-2); text-decoration: underline; text-underline-offset: 2px; }
.fcard__n a:hover { color: var(--blue); }

/* --------------------------------------------------------------------------
   10. ФОРМА
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 14px; margin-top: 22px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: grid; gap: 7px; }
.field > label { font-size: 12.5px; font-weight: 650; color: var(--txt-2); }

.inp, .sel, .txa {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 14px 16px; font-size: 16px; color: var(--head);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.txa { min-height: 96px; resize: vertical; line-height: 1.5; }
.inp::placeholder, .txa::placeholder { color: var(--txt-3); }
.inp:hover, .sel:hover, .txa:hover { border-color: var(--line-3); }
.inp:focus, .sel:focus, .txa:focus {
  outline: none; border-color: var(--blue-2); background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 85, 196, 0.15);
}

.sel {
  cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5l6-6' stroke='%235a6679' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.sel option { background: #fff; color: var(--head); }

.field.err .inp, .field.err .sel { border-color: var(--red); box-shadow: 0 0 0 3px rgba(212, 42, 31, 0.12); }
.emsg { display: none; font-size: 12.5px; color: var(--red); line-height: 1.4; }
.field.err .emsg { display: block; }

.chk {
  display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start;
  font-size: 12.5px; color: var(--txt-2); line-height: 1.5; cursor: pointer; margin-top: 2px;
}
.chk input {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; flex: none;
  border: 1px solid var(--line-3); border-radius: 5px; background: #fff;
  cursor: pointer; display: grid; place-content: center; transition: background 0.2s, border-color 0.2s;
}
.chk input::before {
  content: ""; width: 11px; height: 11px; transform: scale(0); background: #fff;
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.5);
  clip-path: polygon(14% 46%, 0 60%, 39% 100%, 100% 22%, 85% 8%, 38% 70%);
}
.chk input:checked { background: var(--blue); border-color: var(--blue); }
.chk input:checked::before { transform: scale(1); }
.chk.err input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(212, 42, 31, 0.12); }
.chk a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.chk a:hover { color: var(--blue-2); }

.fmsg {
  display: none; padding: 13px 15px; border-radius: 10px; font-size: 14.5px; line-height: 1.5;
  background: var(--red-lt); border: 1px solid rgba(212, 42, 31, 0.3); color: var(--red-2);
}
.fmsg.on { display: block; }

.spin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.done { display: none; text-align: center; padding: 24px 4px; }
.done.on { display: block; animation: rise 0.5s cubic-bezier(0.2, 0.9, 0.3, 1); }
.done__i {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-lt); color: var(--green);
}
.done h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.done p { margin-top: 12px; color: var(--txt-2); font-size: 15px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* --------------------------------------------------------------------------
   11. БЕГУЩАЯ СТРОКА — синяя лента
   -------------------------------------------------------------------------- */
.tick {
  position: relative; overflow: hidden; background: var(--blue); padding-block: 17px;
}
.tick__r { display: flex; width: max-content; animation: run 42s linear infinite; }
.tick:hover .tick__r { animation-play-state: paused; }
@keyframes run { to { transform: translateX(-50%); } }
.tick__i {
  display: inline-flex; align-items: center; gap: 18px; padding-inline: 24px;
  font-size: clamp(14.5px, 1.4vw, 17px); font-weight: 650; letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.78); white-space: nowrap;
}
.tick__i b { color: #fff; font-weight: 800; }
.tick__i em { font-style: normal; color: #fff; font-weight: 700; }
.tick__i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* --------------------------------------------------------------------------
   12. КАЛЬКУЛЯТОР
   -------------------------------------------------------------------------- */
.calc__box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); overflow: hidden; }

.calc__ctl { padding: clamp(28px, 3.2vw, 42px); }
.calc__gr + .calc__gr { margin-top: 30px; }
.calc__lb { font-size: 13px; font-weight: 700; color: var(--head); margin-bottom: 14px; }

.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  position: relative; padding: 11px 18px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--card);
  font-size: 14.5px; font-weight: 650; color: var(--txt);
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.opt:hover { border-color: var(--blue); color: var(--blue); }
.opt.on { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(27, 63, 147, 0.7); }
.opt small { display: block; font-size: 11.5px; font-weight: 600; opacity: 0.7; margin-top: 2px; }

/* Правая половина — результат */
.calc__out {
  padding: clamp(28px, 3.2vw, 42px);
  background: var(--blue-lt);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.calc__cap { font-size: 12px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.calc__big {
  margin-top: 12px; font-size: clamp(38px, 4.4vw, 58px); font-weight: 850;
  letter-spacing: -0.045em; line-height: 1; white-space: nowrap;
}
.calc__sub { margin-top: 10px; font-size: 14px; color: var(--txt-2); line-height: 1.5; }

.calc__rows { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(27, 63, 147, 0.14); display: grid; gap: 12px; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 14.5px; }
.calc__row span { color: var(--txt-2); }
.calc__row b { font-weight: 750; color: var(--head); white-space: nowrap; }
.calc__cta { margin-top: auto; padding-top: 24px; }
.calc__note { margin-top: 14px; font-size: 12px; color: var(--txt-3); line-height: 1.55; }

/* --------------------------------------------------------------------------
   13. РЕГИОНЫ — таблица-рейтинг
   -------------------------------------------------------------------------- */
.board { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }

.brow {
  position: relative; display: grid;
  grid-template-columns: 48px minmax(150px, 1.05fr) minmax(0, 1.25fr) 164px 138px 118px;
  align-items: center; gap: 18px;
  padding: 20px 26px; width: 100%; text-align: left;
  border-top: 1px solid var(--line);
  transition: background 0.2s;
}
.brow:first-child { border-top: 0; }
.brow:hover { background: var(--card-2); }
.brow--top { background: var(--blue-lt); box-shadow: inset 4px 0 0 var(--blue); }
.brow--top:hover { background: #e1e9f8; }

.brow__n { font-size: 14px; font-weight: 800; color: var(--txt-3); letter-spacing: 0.04em; transition: color 0.2s; }
.brow:hover .brow__n { color: var(--blue); }

.brow__c { font-size: clamp(18px, 1.7vw, 22px); font-weight: 800; letter-spacing: -0.025em; color: var(--head); }
.brow__c span { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--txt-3); margin-top: 3px; }
.brow__c em {
  font-style: normal; display: inline-block; vertical-align: middle; margin-left: 8px;
  font-size: 10.5px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--red); padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}

/* Полоса, показывающая относительный размер выплаты */
.bar { height: 8px; border-radius: 999px; background: #e6ebf2; overflow: hidden; }
.bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  transition: width 1.1s cubic-bezier(0.2, 0.85, 0.3, 1);
}
.brow--top .bar i { background: linear-gradient(90deg, var(--blue), var(--red)); }

.bcell--bar { display: grid; gap: 8px; }
.bcell__c { font-size: 12.5px; color: var(--txt-3); }
.bcell__c b { color: var(--txt); font-weight: 700; }

/* Оба — span внутри span: без display:block подпись и сумма слипаются в одну строку */
.bcell__l { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt-3); line-height: 1.35; }
.bcell__v { display: block; font-size: clamp(17px, 1.55vw, 20px); font-weight: 800; letter-spacing: -0.025em; margin-top: 4px; white-space: nowrap; line-height: 1.15; color: var(--head); }
.bcell__v.au { color: var(--blue); }

.brow .btn { justify-self: end; }

.note {
  margin-top: 36px; display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px; color: var(--txt-3); line-height: 1.6;
}
.note svg { flex: none; margin-top: 3px; color: var(--blue); }

/* --------------------------------------------------------------------------
   14. НАПРАВЛЕНИЯ — липкая колонка + карточки
   -------------------------------------------------------------------------- */
.dir { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(30px, 4vw, 64px); align-items: start; }
.dir__side { position: sticky; top: calc(var(--hh) + 30px); min-width: 0; }
.dir__side .h-lg { font-size: clamp(30px, 3.3vw, 46px); }
.dir__list { display: grid; gap: 20px; }

.dcard {
  --dc-bg: var(--card);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--dc-bg);
  box-shadow: var(--shadow);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.dcard:hover { border-color: rgba(27, 63, 147, 0.35); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.dcard > * { position: relative; z-index: 1; }

.dcard__ph { position: relative; margin: 0; overflow: hidden; background: #dde3ec; }
.dcard__ph img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.dcard:hover .dcard__ph img { transform: scale(1.05); }

/* Значок специальности поверх снимка */
.dcard__art {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow);
  display: grid; place-items: center; color: var(--blue); overflow: hidden;
}

.dcard__body { padding: clamp(24px, 2.6vw, 34px); }
.dcard h3 { font-size: clamp(22px, 2.1vw, 28px); font-weight: 800; letter-spacing: -0.03em; }
.dcard__tag {
  display: inline-block; margin-top: 10px; padding: 5px 11px; border-radius: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--blue); background: var(--blue-lt);
}
.dcard__p { margin-top: 14px; font-size: 15.5px; color: var(--txt-2); line-height: 1.6; }

.dcard__ul { margin-top: 20px; display: grid; gap: 11px; }
.dcard__ul li { display: grid; grid-template-columns: auto 1fr; gap: 11px; font-size: 14.5px; color: var(--txt); line-height: 1.55; }
.dcard__ul svg { color: var(--green); margin-top: 4px; }
.dcard__f { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Анимация иллюстраций.
   transform-box: fill-box — чтобы вращение шло вокруг центра самой фигуры,
   а не вокруг начала координат viewBox. */
.prop { transform-box: fill-box; transform-origin: center; animation: rot 0.55s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.scan { transform-box: fill-box; transform-origin: top center; animation: scan 3.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: rotate(-17deg); } 50% { transform: rotate(17deg); } }

.dash { stroke-dasharray: 6 8; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }

.arc { stroke-dasharray: 132; stroke-dashoffset: 132; animation: arc 3.2s cubic-bezier(0.4, 0, 0.3, 1) infinite; }
@keyframes arc { 42%, 100% { stroke-dashoffset: 0; } }

.ping { transform-box: fill-box; transform-origin: center; animation: ping 3.2s ease-out infinite; }
@keyframes ping {
  0%, 46% { opacity: 0; transform: scale(0.35); }
  62%     { opacity: 0.8; }
  100%    { opacity: 0; transform: scale(1.45); }
}

/* Прочие направления */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--card);
  font-size: 14px; font-weight: 600; color: var(--txt);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.chip svg { color: var(--blue); flex: none; }

/* --------------------------------------------------------------------------
   15. ЛЬГОТЫ — бенто
   -------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.cell {
  position: relative; overflow: hidden; grid-column: span 2;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
  padding: 28px 26px; box-shadow: var(--shadow);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.cell:hover { border-color: rgba(27, 63, 147, 0.35); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* Две главные льготы — синие плашки */
.cell--hero {
  grid-column: span 3; padding: 36px 32px; border-color: transparent;
  background: linear-gradient(150deg, var(--blue-2), var(--blue) 70%);
  color: rgba(255, 255, 255, 0.82);
}
.cell__i {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--blue-lt); color: var(--blue);
}
.cell--hero .cell__i { background: rgba(255, 255, 255, 0.14); color: #fff; }
.cell h3 { font-size: 17.5px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.3; }
.cell--hero h3 { font-size: clamp(21px, 2.1vw, 26px); font-weight: 800; color: #fff; }
.cell p { margin-top: 10px; font-size: 14.5px; color: var(--txt-2); line-height: 1.58; }
.cell--hero p { font-size: 15.5px; color: rgba(255, 255, 255, 0.82); }

/* --------------------------------------------------------------------------
   17. ТРЕБОВАНИЯ
   -------------------------------------------------------------------------- */
.reqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.rq { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: clamp(26px, 3vw, 36px); box-shadow: var(--shadow); }
.rq--ok { border-color: rgba(30, 138, 76, 0.28); }
.rq__h { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.rq__h h3 { font-size: clamp(19px, 1.8vw, 23px); font-weight: 800; letter-spacing: -0.028em; }
.rq__b { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.rq--need .rq__b { background: var(--blue-lt); color: var(--blue); }
.rq--ok   .rq__b { background: var(--green-lt); color: var(--green); }
.rq ul { display: grid; gap: 14px; }
.rq li { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 15.5px; color: var(--txt-2); line-height: 1.55; }
.rq li svg { margin-top: 4px; flex: none; }
.rq--need li svg { color: var(--blue); }
.rq--ok   li svg { color: var(--green); }
.rq li b { color: var(--head); font-weight: 700; }

/* --------------------------------------------------------------------------
   18. ШАГИ — линия, заполняемая при прокрутке
   -------------------------------------------------------------------------- */
.steps { position: relative; padding-left: 88px; }
.steps__line { position: absolute; left: 31px; top: 12px; bottom: 12px; width: 2px; background: var(--line); border-radius: 2px; }
.steps__line i {
  position: absolute; inset: 0 0 auto; height: 0; border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--blue-2) 70%, var(--red));
  transition: height 0.15s linear;
}

.step { position: relative; padding-block: 24px; }
.step + .step { border-top: 1px solid var(--line); }
.step__d {
  position: absolute; left: -73px; top: 24px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line-2); background: var(--bg-2);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: var(--txt-3);
  transition: border-color 0.4s, color 0.4s, background 0.4s, box-shadow 0.4s;
}
.step.in .step__d { border-color: var(--blue); color: #fff; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-lt); }
.step h3 { font-size: clamp(20px, 1.9vw, 24px); font-weight: 800; letter-spacing: -0.028em; }
.step p { margin-top: 10px; font-size: 15.5px; color: var(--txt-2); max-width: 660px; line-height: 1.62; }
.step__t {
  display: inline-block; margin-top: 12px; padding: 5px 11px; border-radius: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--blue); background: var(--blue-lt);
}

/* --------------------------------------------------------------------------
   19. ПОЧЕМУ МЫ
   -------------------------------------------------------------------------- */
/* Ровно 3 колонки: карточек шесть, поэтому auto-fit давал четвёртый столбец
   и две пустые ячейки — сетка выглядела оборванной. */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: border-color 0.3s, transform 0.3s;
}
.wc:hover { border-color: rgba(27, 63, 147, 0.35); transform: translateY(-3px); }
.wc__n {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
  font-size: 13px; font-weight: 800; color: #fff; background: var(--red);
}
.wc h3 { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.32; min-height: 2.64em; }
.wc p { margin-top: 10px; font-size: 14.5px; color: var(--txt-2); line-height: 1.58; }

/* --------------------------------------------------------------------------
   20. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.qa.open { border-color: rgba(27, 63, 147, 0.4); box-shadow: var(--shadow); }
.qa__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 21px 24px; text-align: left;
  font-size: clamp(16px, 1.5vw, 17.5px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.4;
  color: var(--head); transition: color 0.2s;
}
.qa__q:hover, .qa.open .qa__q { color: var(--blue); }
.qa__i { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--blue-lt); display: grid; place-items: center; transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.3s; }
.qa__i::before, .qa__i::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; transition: background 0.3s; }
.qa__i::before { width: 12px; height: 2px; }
.qa__i::after  { width: 2px; height: 12px; }
.qa.open .qa__i { transform: rotate(135deg); background: var(--blue); }
.qa.open .qa__i::before, .qa.open .qa__i::after { background: #fff; }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.85, 0.3, 1); }
.qa.open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 24px 22px; color: var(--txt-2); font-size: 15.5px; line-height: 1.65; max-width: 800px; }
.qa__a p + p { padding-top: 13px; margin-top: -9px; }

/* --------------------------------------------------------------------------
   21. ФИНАЛЬНЫЙ БЛОК И ПОДВАЛ — тёмно-синие полосы.
   Переопределяем те же токены; белая карточка формы внутри возвращает
   светлые (см. селектор «.fin .glass» в п. 1).
   -------------------------------------------------------------------------- */
.fin, .ftr {
  --head:   #ffffff;
  --txt:    #e4eaf5;
  --txt-2:  #b3c0d8;
  --txt-3:  #8796b2;
  --line:   rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.22);
  --card:   rgba(255, 255, 255, 0.06);
  color: var(--txt);
}

.fin {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(42, 85, 196, 0.45), transparent 62%),
    linear-gradient(160deg, #163478, #0f2556 70%);
}
.fin .kicker { color: #c9d6f2; }
.fin .kicker::before { background: linear-gradient(90deg, #fff 50%, var(--red) 50%); }
.fin .lead b { color: #fff; }
.fin__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(38px, 5vw, 72px); align-items: start; }

.ftr { background: #0b1c44; padding-block: 56px 32px; font-size: 14px; }
.ftr__t { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 44px; }
.ftr h4 { font-size: 12px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 16px; }
.ftr ul { display: grid; gap: 10px; }
.ftr a { color: var(--txt-2); transition: color 0.2s; }
.ftr a:hover { color: #fff; }
.ftr .logo__f { box-shadow: none; }
.ftr__l { margin-top: 22px; color: var(--txt-3); font-size: 13px; line-height: 1.75; max-width: 470px; }
.ftr__l b { color: var(--txt-2); font-weight: 650; }
.ftr__b { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 30px; justify-content: space-between; color: var(--txt-3); font-size: 12.5px; line-height: 1.65; }
.ftr__d { max-width: 760px; }

/* --------------------------------------------------------------------------
   23. МОБИЛЬНАЯ ПАНЕЛЬ
   -------------------------------------------------------------------------- */
.mbar {
  position: fixed; inset: auto 0 0; z-index: 90; display: none; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(13, 27, 46, 0.4);
  transform: translateY(115%); transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.mbar.on { transform: none; }
.mbar .btn { flex: 1; --py: 14px; padding-inline: 12px; font-size: 14.5px; }
.mbar__t { width: 52px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 12px; color: var(--blue); }

/* --------------------------------------------------------------------------
   24. МОДАЛЬНОЕ ОКНО
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(13, 27, 46, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; overflow-y: auto;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__b { width: 100%; max-width: 470px; margin: auto; transform: translateY(20px) scale(0.98); transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.3, 1); }
.modal.open .modal__b { transform: none; }
.modal__x {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  background: var(--card-2); color: var(--txt-2);
  display: grid; place-items: center; transition: background 0.2s, color 0.2s, transform 0.3s;
}
.modal__x:hover { background: var(--blue-lt); color: var(--blue); transform: rotate(90deg); }

/* --------------------------------------------------------------------------
   25. ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   -------------------------------------------------------------------------- */
[data-a] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.16, 0.9, 0.3, 1), transform 0.8s cubic-bezier(0.16, 0.9, 0.3, 1); }
[data-a].in { opacity: 1; transform: none; }
[data-a="l"]  { transform: translateX(-30px); }
[data-a="r"]  { transform: translateX(30px); }
[data-a="s"]  { transform: scale(0.96); }
[data-a].in   { transform: none; }
@media (prefers-reduced-motion: reduce) { [data-a] { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   26. ЮРИДИЧЕСКИЕ СТРАНИЦЫ
   -------------------------------------------------------------------------- */
.legal { padding-top: calc(var(--hh) + 52px); padding-bottom: 96px; }
.legal h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 14px; }
.legal__d { color: var(--txt-3); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: clamp(19px, 2.1vw, 24px); font-weight: 800; letter-spacing: -0.025em; margin-top: 46px; margin-bottom: 14px; color: var(--blue); }
.legal p, .legal li { color: var(--txt-2); font-size: 15.5px; line-height: 1.78; }
.legal p + p { margin-top: 14px; }
.legal ul, .legal ol { margin: 16px 0 0; padding-left: 24px; display: grid; gap: 10px; list-style: disc; }
.legal ol { list-style: decimal; }
.legal li::marker { color: var(--red); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal__back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; color: var(--txt-2); font-size: 14.5px; text-decoration: none !important; transition: color 0.2s, gap 0.2s; }
.legal__back:hover { color: var(--blue); gap: 14px; }
.legal__box { margin-top: 22px; padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }

/* --------------------------------------------------------------------------
   27. МНОГОСТРАНИЧНОСТЬ — регион и страницы вакансий
   -------------------------------------------------------------------------- */

/* Выбор региона в шапке — нативный <details>, закрытие по клику мимо в main.js */
.geo { position: relative; }
.geo summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px;
  padding: 8px 13px 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card);
  font-size: 14px; font-weight: 650; color: var(--head); white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.geo summary::-webkit-details-marker { display: none; }
.geo summary svg { color: var(--red); flex: none; }
.geo summary:hover, .geo[open] summary { border-color: var(--blue); color: var(--blue); }
.geo__l {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 2; min-width: 240px;
  display: grid; padding: 6px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); box-shadow: var(--shadow-lg);
}
.geo__l a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 10px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 550; color: var(--txt);
  transition: background 0.15s, color 0.15s;
}
.geo__l a:hover { background: var(--card-2); color: var(--blue); }
.geo__l a[aria-current] { background: var(--blue-lt); color: var(--blue); }
.geo__l small { font-size: 12.5px; font-weight: 700; color: var(--blue); }

.mnav__geo { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; }
.mnav__geo .chip { padding: 8px 13px; font-size: 13.5px; }
.chip.on { border-color: var(--blue); background: var(--blue); color: #fff; }
.chips--c { justify-content: center; max-width: 900px; margin-inline: auto; }

.dcard h3 a { transition: color 0.2s; }
.dcard h3 a:hover { color: var(--blue); }

/* Первый экран вакансии — тот же hero, но по высоте контента */
.hero--sub { min-height: auto; padding-bottom: clamp(56px, 6vw, 92px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 24px; font-size: 13.5px; color: var(--txt-3); }
.crumbs a { color: var(--txt-2); transition: color 0.2s; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--head); font-weight: 600; }
.vac__t {
  display: block; margin-top: 12px;
  font-size: clamp(32px, 5.6vw, 76px); font-weight: 850; line-height: 1;
  letter-spacing: -0.045em;
}
.vac__pay {
  display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 28px;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(255, 255, 255, 0.85); box-shadow: var(--shadow); width: fit-content; max-width: 100%;
}
.vac__card { margin-top: 20px; }

/* Регионов много: выпадающий список прокручивается, подвал — в две колонки */
.geo__l { max-height: min(70vh, 560px); overflow-y: auto; }
.geo__l small.off { color: var(--txt-3); font-weight: 600; }
.ftr .ftr__cols { columns: 2; column-gap: 24px; display: block; }
.ftr .ftr__cols li { break-inside: avoid; margin-bottom: 10px; }

/* Суммы ещё нет в данных */
.bcell__v--na { font-size: 14px; font-weight: 600; color: var(--txt-3); white-space: normal; letter-spacing: 0; }

/* Приостановленный регион */
.brow--off { background: var(--card-2); }
.brow--off .brow__c, .brow--off .bcell__v { color: var(--txt-3); }
.brow__c em.off { background: var(--txt-3); }
.badge--off { color: var(--red-2); border-color: rgba(212, 42, 31, 0.3); }
.badge--off .pip { background: var(--red); animation: none; box-shadow: none; }

/* Первый экран региона без известной выплаты: вместо суммы — название */
.hero__sum--name { font-size: clamp(44px, 6.4vw, 92px); white-space: normal; }
.hero__warn { color: var(--red-2); }

/* Ссылка внутри текста */
.lnk { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.lnk:hover { color: var(--blue-2); }

/* «Кого не примут» */
.rq--no { border-color: rgba(212, 42, 31, 0.22); }
.rq--no .rq__b { background: var(--red-lt); color: var(--red); }
.rq--no li svg { color: var(--red); }
.rq--no li b { color: var(--head); font-weight: 700; }

/* Каталог специальностей */
.ptop { padding-top: calc(var(--hh) + 48px); }
.vgroup + .vgroup { margin-top: 48px; }
.vgroup__t { font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -0.028em; margin-bottom: 18px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.vc {
  display: grid; grid-template-rows: 150px 1fr; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.vc:hover { border-color: rgba(27, 63, 147, 0.35); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.vc__ph { width: 100%; height: 100%; object-fit: cover; background: #dde3ec; }
.vc__b { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 20px 20px; }
.vc .dcard__tag { margin-top: 0; }
.vc__t { margin-top: 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.025em; color: var(--head); }
.vc__p { margin-top: 8px; font-size: 14px; color: var(--txt-2); line-height: 1.55; }
.vc__m {
  display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 14px; width: 100%;
  font-size: 13px; color: var(--txt-2);
}
.vc__m b { color: var(--blue); font-weight: 750; }

/* Сводка условий региона */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.fact {
  display: grid; gap: 4px; align-content: start; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
}
.fact--pay { background: var(--blue-lt); border-color: rgba(27, 63, 147, 0.2); }
.fact--wide { grid-column: 1 / -1; }
/* Выплате с оговорками нужна ширина; на телефоне колонка одна — растягивать некуда */
@media (min-width: 641px) { .fact--pay { grid-column: span 2; } }
.fact__l { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt-3); }
.fact__v { font-size: 17px; font-weight: 750; letter-spacing: -0.02em; color: var(--head); line-height: 1.3; }
.fact--pay .fact__v { font-size: 22px; color: var(--blue); }
.fact__s { font-size: 13px; color: var(--txt-2); line-height: 1.45; }
.fact__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fact__tags span { padding: 5px 10px; border-radius: 7px; background: var(--blue-lt); color: var(--blue); font-size: 13px; font-weight: 650; }

/* Части и вакансии региона */
.unotes { display: grid; gap: 10px; margin-bottom: 24px; }
.unote {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r);
  background: var(--blue-lt); color: var(--txt); font-size: 15px; line-height: 1.55;
}
.unote svg { flex: none; margin-top: 2px; color: var(--blue); }
.unote--warn { background: var(--red-lt); color: var(--red-2); font-weight: 650; }
.unote--warn svg { color: var(--red); }

.units { display: grid; gap: 12px; }
.unit { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.unit[open] { border-color: rgba(27, 63, 147, 0.35); }
.unit__h {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
}
.unit__h::-webkit-details-marker { display: none; }
.unit__h::after {
  content: ""; width: 10px; height: 10px; flex: none; margin-left: 4px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.25s;
}
.unit[open] .unit__h::after { transform: rotate(-135deg) translateY(-3px); }
.unit__h > span:first-child { display: grid; gap: 3px; min-width: 0; }
.unit__n { font-size: clamp(17px, 1.7vw, 20px); font-weight: 800; letter-spacing: -0.022em; color: var(--head); line-height: 1.3; }
.unit__s { font-size: 13.5px; color: var(--txt-3); }
.unit__c { margin-left: auto; flex: none; font-size: 12.5px; font-weight: 700; color: var(--blue); background: var(--blue-lt); padding: 5px 10px; border-radius: 7px; }

.unit__b { padding: 0 24px 24px; display: grid; gap: 18px; justify-items: start; }
.unit__m { display: flex; flex-wrap: wrap; gap: 8px; }
.unit__m li { padding: 6px 11px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--txt); }
.unit__notes { display: grid; gap: 8px; }
.unit__notes li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 14.5px; color: var(--txt-2); line-height: 1.55; }
.unit__notes svg { color: var(--blue); margin-top: 4px; }
.unit__gs { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px 28px; }
.unit__g h4 { font-size: 12px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 10px; }
.unit__g ul { display: grid; gap: 7px; }
.unit__g li { display: grid; grid-template-columns: auto 1fr; gap: 9px; font-size: 14.5px; color: var(--txt); line-height: 1.45; }
.unit__g svg { color: var(--green); margin-top: 3px; }

/* --------------------------------------------------------------------------
   28. АДАПТИВ
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .nav a { font-size: 14px; }
  .brow { grid-template-columns: 44px minmax(140px, 1fr) minmax(0, 1fr) 150px 132px; gap: 14px; padding-inline: 20px; }
  .brow .btn { display: none; }
}

/* Переключатель региона занял место: на средних ширинах телефон из шапки уходит,
   иначе «Подать заявку» обрезается. Номер остаётся в блоке контактов и подвале. */
@media (max-width: 1100px) {
  .hdr__tel { display: none; }
}

@media (max-width: 1000px) {
  .hdr__in { gap: 22px; }
  .nav { gap: 16px; }
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .glass { max-width: 540px; }
  /* Колонки схлопнулись — фото уходит в правый верхний угол и сильно бледнеет */
  .hero__ph img { width: 100%; height: 70%; object-position: 62% 10%; opacity: 0.35; }
  .hero__ph::after {
    background: linear-gradient(180deg, rgba(243, 245, 248, 0.5) 0%, rgba(243, 245, 248, 0.8) 40%, var(--bg) 70%);
  }
  .scroller { display: none; }
  .calc__box { grid-template-columns: 1fr; }
  .calc__out { border-left: 0; border-top: 1px solid var(--line); }
  .dir { grid-template-columns: 1fr; }
  .dir__side { position: static; }
  .dir__side .h-lg { font-size: clamp(30px, 4vw, 52px); }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin__grid { grid-template-columns: 1fr; }
  .fin .glass { max-width: 580px; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .cell, .cell--hero { grid-column: span 2; }
  .ftr__t { grid-template-columns: 1fr 1fr; gap: 34px; }
  .ftr__t > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --hh: 64px; --pad: 18px; }
  .nav, .hdr__r .btn { display: none; }
  .burger { display: flex; margin-left: auto; }
  .hdr { background: rgba(255, 255, 255, 0.92); border-bottom-color: var(--line); }
  .hdr.stuck { height: var(--hh); }
  /* Боковой въезд оставляем только широким экранам: на телефоне сдвинутый
     блок вылезает за правый край и страницу можно тянуть вбок. */
  [data-a="l"], [data-a="r"] { transform: translateY(24px); }
  .mbar { display: flex; }
  .brow { grid-template-columns: 1fr auto; gap: 10px 14px; padding: 18px; align-items: start; }
  .brow__n { display: none; }
  /* Название и полоса — во всю ширину строки, суммы — в два столбца под ними */
  .bcell { grid-column: auto; }
  .brow__c, .bcell.bcell--bar { grid-column: 1 / -1; }
  .bcell.bcell--bar { margin-top: 2px; }
  .bcell--m { text-align: right; }
}

@media (max-width: 640px) {
  .hdr__in { justify-content: space-between; }
  body { font-size: 16px; }
  .h-lg, .dir__side .h-lg { font-size: clamp(26px, 7.4vw, 32px); }
  .hdr__tel, .geo { display: none; }
  .logo__n { font-size: 15.5px; }
  .hero { padding-top: calc(var(--hh) + 28px); }
  .hero__sum { font-size: clamp(42px, 13vw, 62px); }
  .hero__act .btn { width: 100%; }
  .frow { grid-template-columns: 1fr; }
  .sec { padding-block: 58px; }
  .steps { padding-left: 52px; }
  .steps__line { left: 14px; }
  .step__d { left: -52px; }
  .bento { grid-template-columns: 1fr; }
  .cell, .cell--hero { grid-column: span 1; }
  .why { grid-template-columns: 1fr; }
  .wc h3 { min-height: 0; }
  /* Карточка направления складывается: снимок становится верхней полосой */
  .dcard { grid-template-columns: 1fr; }
  .dcard__ph { aspect-ratio: 16 / 10; }
  .dcard__art { left: 16px; bottom: 14px; width: 50px; height: 50px; border-radius: 13px; }
  .dcard__art svg { width: 32px; height: 32px; }

  .qa__q { padding: 18px; }
  .qa__a p { padding-inline: 18px; }
  .ftr__t { grid-template-columns: 1fr; }
  .calc__big { font-size: clamp(32px, 10vw, 46px); }
  .opt { flex: 1; min-width: 44%; text-align: center; }
  .vac__pay { gap: 12px 26px; padding: 16px 18px; }
}

@media print {
  .hdr, .mbar, .modal, .mnav, .progress, .hero__c { display: none !important; }
  body { background: #fff; color: #000; }
}
