/* ============================================================
   ТОО «МФО «КЗМАНИ» — KZMONEY
   Основная таблица стилей. Один файл, без зависимостей.
   ============================================================ */

/* ============================================================
   Golos Text — self-hosted. Раньше тянулся с fonts.googleapis.com:
   лишние DNS + TLS к чужому домену на каждой загрузке и внешний
   источник в CSP. Подсеты грузятся по unicode-range, то есть
   cyrillic-ext (17 КБ) приезжает только на страницы с казахскими
   буквами ә, ғ, қ, ң, ө, ү, һ — их нет в обычной кириллице.
   ============================================================ */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/static/core/kz_mfo/fonts/golos-text-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/static/core/kz_mfo/fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/static/core/kz_mfo/fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Токены ---------- */
:root {
  --navy-900: #0d1f3a;
  --navy-800: #12294a;
  --navy-700: #1b3a63;
  --navy-600: #24507f;
  --gold-600: #c99a22;
  --gold-500: #e5b73b;
  --gold-400: #f4cf62;
  --ink:      #16263f;
  --muted:    #5c6d85;
  --line:     #e1e8f2;
  --bg:       #f4f7fb;
  --surface:  #ffffff;
  --tint:     #eef4fb;
  --success:  #17875c;
  --warn:     #b9701d;
  --danger:   #c53b3b;
  --radius:   14px;
  --radius-sm: 9px;
  --shadow:   0 1px 2px rgba(16, 38, 66, .05), 0 8px 28px rgba(16, 38, 66, .07);
  --shadow-sm: 0 1px 3px rgba(16, 38, 66, .08);
  --wrap: 1180px;
  /* Golos Text — гротеск, спроектированный от кириллицы, а не с ней «в довесок».
     Держит мелкий кегль в плотных юридических таблицах и даёт сайту тон
     официального документа, а не очередного стартапа. Одна семья на весь сайт. */
  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-head: var(--font);
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Заголовки и текст — одна семья, поэтому иерархию держит вес, а не гарнитура. */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.85rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.4rem, 1.08rem + 1.3vw, 2rem); }
h3 { font-size: clamp(1.08rem, .98rem + .45vw, 1.28rem); }
p + p { margin-top: .8em; }
strong, b { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--tight { padding: 38px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy-800); color: #fff; }
.section__head { max-width: 780px; margin-bottom: 28px; }
.section__head p { color: var(--muted); margin-top: 10px; }
.section--dark .section__head p { color: rgba(255,255,255,.78); }
.lead { font-size: 1.06rem; color: var(--muted); }

.gold { color: var(--gold-500); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; font-weight: 600; font-size: .98rem;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: var(--navy-900); box-shadow: 0 6px 18px rgba(197, 152, 30, .32); }
.btn--primary:hover { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); box-shadow: 0 8px 24px rgba(197, 152, 30, .42); }
.btn--dark { background: var(--navy-700); color: #fff; }
.btn--dark:hover { background: var(--navy-600); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-400); }
.btn--outline { border: 1.5px solid var(--line); background: #fff; color: var(--navy-700); }
.btn--outline:hover { border-color: var(--navy-600); }
.btn--wide { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9rem; }

/* ---------- Шапка ---------- */
.topbar {
  background: var(--navy-900); color: rgba(255,255,255,.8);
  font-size: .84rem; padding: 7px 0;
}
.topbar__row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
.topbar__lic { display: inline-flex; align-items: center; gap: 7px; }
.topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); flex: none; }
.topbar a:hover { color: var(--gold-400); }
@media (max-width: 620px) {
  /* Юридическая строка на телефоне занимала 87px первого экрана.
     Оставляем номер лицензии и телефон, длинные хвосты прячем. */
  .topbar { font-size: .78rem; padding: 6px 0; }
  .topbar__row { gap: 4px 12px; }
  .topbar__lic .topbar__long { display: none; }
  .topbar__addr { display: none; }
}

.site-header { background: var(--navy-800); position: sticky; top: 0; z-index: 60; }
.site-header__row { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: rgba(255,255,255,.88); font-size: .9rem; font-weight: 500; white-space: nowrap;
  padding: 9px 10px; border-radius: 8px; transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav a[aria-current="page"] { color: var(--gold-400); background: rgba(255,255,255,.07); }
.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
/* Переключатель языка. Держим его текстовым и компактным: флаги для
   казахского и русского в РК читаются как политика, а не как язык. */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; min-height: 36px; padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  color: rgba(255,255,255,.9); font-size: .84rem; font-weight: 600;
  transition: border-color .2s, color .2s, background-color .2s;
}
.lang-switch:hover { border-color: var(--gold-500); color: var(--gold-400); background: rgba(255,255,255,.06); }
.header-phone { color: #fff; font-weight: 600; white-space: nowrap; font-size: .96rem; display: none; }
.header-phone span { display: block; font-size: .72rem; font-weight: 400; color: rgba(255,255,255,.6); }

.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.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); }

@media (max-width: 1120px) {
  .nav { display: none; }
  .burger { display: flex; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { display: none; }
  .lang-switch { min-height: 44px; }
  .header-phone { display: block; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-800); padding: 10px 20px 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 14px 30px rgba(0,0,0,.25);
  }
  .nav.is-open a { padding: 13px 10px; border-radius: 8px; }
}
@media (max-width: 620px) {
  .header-phone { display: none; }
  .brand img { height: 38px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 12% -10%, rgba(229,183,59,.20), transparent 60%),
    linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  color: #fff; padding: 54px 0 60px;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.hero h1 { margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero__sub { color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 560px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 7px 14px; border-radius: 999px; font-size: .86rem; color: rgba(255,255,255,.92);
}
.badge b { color: var(--gold-400); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.hero__fact strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-400); }
.hero__fact span { font-size: .86rem; color: rgba(255,255,255,.72); }
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 36px 0 44px; }
}

/* ---------- Калькулятор ---------- */
.calc {
  background: var(--surface); color: var(--ink);
  border-radius: 18px; padding: 24px; box-shadow: 0 20px 50px rgba(8, 24, 48, .28);
}
.calc h2 { font-size: 1.22rem; margin-bottom: 4px; }
.calc__hint { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.calc__tabs { display: flex; gap: 6px; background: var(--tint); padding: 4px; border-radius: 11px; margin-bottom: 20px; }
.calc__tab {
  flex: 1; min-height: 44px; border-radius: 8px; font-size: .88rem; font-weight: 600;
  color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s;
}
.calc__tab[aria-selected="true"] { background: #fff; color: var(--navy-700); box-shadow: var(--shadow-sm); }
.calc__field { margin-bottom: 18px; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.calc__label span { font-size: .88rem; color: var(--muted); }
.calc__label output { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--navy-700); }

/* Высота элемента 24px — это зона касания на телефоне (сама полоса
   остаётся 6px и рисуется фоном по центру). Градиент прогресса JS ставит
   в background-image, поэтому background-size/position тут переживают. */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 24px;
  background-color: transparent;
  background-image: linear-gradient(to right, var(--line) 0%, var(--line) 100%);
  background-repeat: no-repeat; background-position: center;
  background-size: 100% 6px; outline: none; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 24px; background: transparent; }
input[type="range"]::-moz-range-track { height: 24px; background: transparent; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 5px solid var(--gold-500); cursor: pointer; margin-top: 0;
  box-shadow: 0 2px 8px rgba(16,38,66,.22);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  border: 5px solid var(--gold-500); cursor: pointer; box-shadow: 0 2px 8px rgba(16,38,66,.22);
}
input[type="range"]:focus-visible { box-shadow: 0 0 0 3px rgba(36,80,127,.25); }
.calc__scale { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: 6px; }

.calc__result { background: var(--tint); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.calc__row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: .92rem; }
/* Явный display перебивает атрибут hidden — без этой строки скрытая
   строка результата продолжала показываться. */
.calc__row[hidden] { display: none; }
.calc__row + .calc__row { border-top: 1px dashed rgba(36,80,127,.16); }
.calc__row span { color: var(--muted); }
.calc__row b { font-weight: 600; white-space: nowrap; }
/* Значение всегда в одну строку: «105 880 ₸» и «0,28 % в день»
   на 375px ломались пополам и выглядели как две разные цифры. */
.calc__row span { min-width: 0; }
.calc__row--total { font-size: 1.02rem; }
.calc__row--total b { color: var(--navy-700); font-family: var(--font-head); font-size: 1.16rem; }
.calc__row--gesv b { color: var(--warn); }
.calc__note { font-size: .78rem; color: var(--muted); margin-top: 12px; }

/* ---------- Сетки и карточки ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfdbec; }
.card__tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--tint); color: var(--navy-600); margin-bottom: 12px;
}
.card__tag--new { background: rgba(229,183,59,.18); color: var(--gold-600); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .94rem; }
.card__specs { margin: 16px 0 18px; border-top: 1px solid var(--line); }
.card__specs div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
.card__specs dt, .card__specs span:first-child { color: var(--muted); }
.card__specs b { font-weight: 600; text-align: right; }
.card .btn { margin-top: auto; }

/* Шаги */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 62px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .94rem; }
.section--dark .step p { color: rgba(255,255,255,.75); }

/* Плитки-факты */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tile strong { display: block; font-family: var(--font-head); font-size: 1.55rem; color: var(--navy-700); }
.tile span { font-size: .88rem; color: var(--muted); }
@media (max-width: 940px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* Список с галочками */
.checklist li { position: relative; padding-left: 30px; margin-bottom: 11px; font-size: .96rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .38em;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(23,135,92,.13);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.4l2.9 2.9 6-6.2' fill='none' stroke='%2317875c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.crosslist li { position: relative; padding-left: 30px; margin-bottom: 11px; font-size: .96rem; }
.crosslist li::before {
  content: ""; position: absolute; left: 0; top: .38em;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(197,59,59,.12);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%23c53b3b' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.dotlist li { position: relative; padding-left: 20px; margin-bottom: 9px; }
.dotlist li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.numlist { counter-reset: n; }
.numlist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.numlist li::before {
  counter-increment: n; content: counter(n) ".";
  position: absolute; left: 0; top: 0; font-weight: 700; color: var(--navy-600); font-family: var(--font-head);
}

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { min-width: 620px; font-size: .93rem; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--tint); font-weight: 600; color: var(--navy-700); white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td b { font-weight: 600; }

/* ---------- Аккордеон FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 17px 20px; text-align: left; font-weight: 600; font-size: 1rem; min-height: 56px;
}
.faq__q:hover { background: var(--tint); }
.faq__q::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--navy-600); border-bottom: 2px solid var(--navy-600);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s ease;
}
.faq__q[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__a { padding: 0 20px 18px; color: var(--muted); font-size: .95rem; display: none; }
.faq__a p + p, .faq__a ul { margin-top: .7em; }
.faq__item.is-open .faq__a { display: block; }

/* ---------- Заметки / предупреждения ---------- */
.note {
  border: 1px solid rgba(36,80,127,.26); background: #e7eefa;
  padding: 16px 18px; border-radius: var(--radius-sm); font-size: .93rem;
}
.note--warn { border-color: rgba(185,112,29,.34); background: rgba(185,112,29,.09); }
.note--danger { border-color: rgba(197,59,59,.30); background: rgba(197,59,59,.08); }
.note strong { display: block; margin-bottom: 4px; color: var(--navy-700); }
.note--warn strong { color: var(--warn); }
.note--danger strong { color: var(--danger); }

/* ---------- Лицензия ---------- */
.license {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.license__seal {
  width: 92px; height: 92px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--gold-400); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; line-height: 1.1; text-align: center;
  border: 3px solid var(--gold-500); font-size: .74rem; padding: 6px;
}
.license__seal b { font-size: 1.5rem; display: block; }
.license dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 26px; }
.license dt { font-size: .8rem; color: var(--muted); }
.license dd { font-weight: 600; font-size: .96rem; }
@media (max-width: 620px) { .license { grid-template-columns: 1fr; } }

/* ---------- Формы ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 620px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(36,80,127,.14);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .error { font-size: .8rem; color: var(--danger); display: none; }
.field input[aria-invalid="true"] ~ .error { display: block; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--navy-600); }
.consent a { color: var(--navy-600); text-decoration: underline; }
.form__ok {
  display: none; text-align: center; padding: 26px 10px;
}
.form__ok b { display: block; font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 6px; color: var(--success); }
.form.is-sent .form__body { display: none; }
.form.is-sent .form__ok { display: block; }

/* ---------- Страничная шапка ---------- */
.page-head {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff; padding: 40px 0;
}
.page-head h1 { margin-bottom: 10px; }
.page-head p { color: rgba(255,255,255,.82); max-width: 720px; }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.crumbs a:hover { color: var(--gold-400); }
@media (max-width: 620px) {
  .crumbs { font-size: .86rem; }
  .crumbs a { display: inline-block; padding: 10px 0; }
}
.crumbs span { padding: 0 6px; }

/* ---------- Контентная типографика ---------- */
.prose { max-width: 860px; }
.prose h2 { margin: 32px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 8px; }
.prose p, .prose li { color: #33455e; }
.prose ul, .prose ol { margin: 10px 0 10px; }
.prose ul li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.prose ol { counter-reset: p; }
.prose ol li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.prose ol li::before { counter-increment: p; content: counter(p) "."; position: absolute; left: 0; font-weight: 700; color: var(--navy-600); }
.prose a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--gold-600); }
.prose .table-wrap, .prose .note { margin: 18px 0; }

/* ---------- Документы ---------- */
.doc-list { display: grid; gap: 12px; }
.doc {
  display: flex; align-items: center; gap: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.doc:hover { border-color: #c9d7ea; box-shadow: var(--shadow-sm); }
.doc__icon {
  width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; color: var(--navy-600); letter-spacing: .02em;
}
.doc__body { flex: 1 1 auto; min-width: 0; }
.doc__body b { display: block; font-weight: 600; }
.doc__body span { font-size: .84rem; color: var(--muted); }
.doc__meta { font-size: .82rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 620px) { .doc { flex-wrap: wrap; } .doc__meta { width: 100%; } }

/* ---------- Блог ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 940px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.post__date { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.post h3 { font-size: 1.06rem; margin-bottom: 8px; }
.post p { color: var(--muted); font-size: .93rem; flex: 1 1 auto; }
.post a.more { margin-top: 14px; color: var(--navy-600); font-weight: 600; font-size: .9rem; }
.post a.more:hover { color: var(--gold-600); }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.article + .article { margin-top: 22px; }

/* ---------- CTA полоса ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff; border-radius: 18px; padding: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-strip h2 { margin-bottom: 6px; }
.cta-strip p { color: rgba(255,255,255,.8); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); margin-top: auto; padding: 44px 0 26px; font-size: .92rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 940px) { .footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }
.footer__logo img { height: 40px; width: auto; margin-bottom: 14px; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer__col li { margin-bottom: 2px; }
/* Ссылки футера — тап-таргет не ниже 44px на телефоне. */
.footer__col ul a { display: inline-block; padding: 13px 0; line-height: 1.2; }
.footer__col a:hover { color: var(--gold-400); }
.footer__contact li { display: flex; gap: 9px; align-items: center; margin-bottom: 2px; }
.footer__contact li > a, .footer__contact li > span:not(.ic) { display: inline-flex; align-items: center; min-height: 44px; }
.footer__contact .ic { flex: none; opacity: .65; width: 18px; }
.footer__legal { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .84rem; line-height: 1.62; }
.footer__legal strong { color: rgba(255,255,255,.92); }
.footer__legal p + p { margin-top: 10px; }
.footer__bottom { padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer__pay { display: flex; gap: 10px; align-items: center; }
.footer__pay img { height: 22px; opacity: .85; }
.reg-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; }
.reg-links a { text-decoration: underline; text-underline-offset: 2px; }
.reg-links a:hover { color: var(--gold-400); }

/* ---------- Прочее ---------- */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
@media (max-width: 620px) {
  /* На телефоне 6–9 пилюль в перенос съедали до четверти первого экрана.
     Уводим в одну строку с горизонтальной прокруткой. */
  .anchor-nav {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 20px; padding: 2px 20px 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .anchor-nav::-webkit-scrollbar { display: none; }
  .anchor-nav a { flex: none; min-height: 44px; display: inline-flex; align-items: center; }
}
.anchor-nav a {
  font-size: .88rem; padding: 8px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--navy-700);
}
.anchor-nav a:hover { border-color: var(--navy-600); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold-500); color: var(--navy-900); padding: 10px 18px; font-weight: 600;
}
.skip-link:focus { left: 10px; top: 10px; }

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

@media print {
  .site-header, .topbar, .site-footer, .burger, .cta-strip { display: none !important; }
  body { background: #fff; }
}
