/*
 * Biznesa Izaugsmes Fonds — дизайн-система.
 *
 * Цвета взяты из знака: глубокий синий уголок рамки и зелёные
 * столбики. Тёмный синий — первый экран, шапки страниц, шаги, блок
 * консультации и подвал; всё остальное — светлое, с воздухом.
 * Яркий зелёный (--green-400) — только то, что нажимают или что
 * растёт; на светлом фоне для текста есть более тёмный --green-600.
 *
 * Гарнитуры: Onest — заголовки, цифры и текст, JetBrains Mono —
 * подписи. Все три несут латышскую диакритику и кириллицу.
 *
 * Форма страницы: тёмные блоки — не полосы во всю ширину, а панели,
 * вписанные в страницу со скруглением (.panel), шапка — плавающий
 * «остров». Этим сайт и отличается по силуэту от grand_credit.
 */

/* Шрифты — со своего сервера (app/assets/fonts, лицензия SIL OFL),
   только латиница и латышская диакритика: русской ветки больше нет. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/onest-latin-ext-59c69f90.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/onest-latin-3d436d4d.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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/jetbrains-mono-latin-ext-b0c48b7a.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/jetbrains-mono-latin-68dbce1c.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;
}


:root {
  --ink-950: #050a1a;
  --ink-900: #0a1330;
  --ink-800: #101c43;
  --ink-700: #1a2a5c;
  --navy: #1c2b4f;

  --green-700: #1f6b41;
  --green-600: #237a4a;
  --green-500: #2e8b57;
  --green-400: #3ddc84;
  --green-300: #7cf0b0;
  --green-100: #dff7e9;
  --green-50: #f0fbf4;

  --paper: #f6f7f4;
  --tint: #eef2ef;
  --surface: #ffffff;
  --text: #0a1330;
  --muted: #56607a;
  --line: #e1e5eb;
  --line-strong: #cbd2dc;
  --danger: #d93f45;

  --on-dark: #eef2fb;
  --on-dark-muted: #9aa6c2;
  --line-dark: rgba(255, 255, 255, 0.1);

  --display: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-sm: 0 1px 2px rgba(10, 19, 48, 0.06), 0 2px 8px rgba(10, 19, 48, 0.04);
  --shadow: 0 1px 2px rgba(10, 19, 48, 0.05), 0 12px 32px -12px rgba(10, 19, 48, 0.18);
  --shadow-lg: 0 2px 4px rgba(10, 19, 48, 0.04), 0 32px 64px -24px rgba(10, 19, 48, 0.28);
  --glow: 0 0 0 1px rgba(61, 220, 132, 0.35), 0 12px 40px -8px rgba(61, 220, 132, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 92px;
  --inset: clamp(8px, 1.2vw, 16px);
}

/* ── Основа ───────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  overflow-wrap: break-word;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--green-400); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--mid { max-width: 920px; }

.sr-only, .honeypot {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green-400);
  color: var(--ink-900);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip:focus { transform: none; }

.muted { color: var(--muted); }

/* ── Типографика ──────────────────────────────────────────────── */

.display-2 {
  font-size: clamp(2rem, 1.3rem + 2.5vw, 3.3rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}
.display-3 {
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.lead {
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}
.lead--dark { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow--dark { color: var(--green-400); }

/* ── Кнопки ───────────────────────────────────────────────────── */

.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--sm { --btn-h: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { --btn-h: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(180deg, #4fe796, var(--green-400));
  color: var(--ink-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 2px rgba(10, 19, 48, 0.2);
}
.btn--primary:hover { box-shadow: var(--glow); transform: translateY(-1px); }

/* Блик на главной кнопке: пробегает при наведении, а не постоянно —
   постоянное мерцание отвлекает от текста рядом. */
.btn--glow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn--glow:hover::after { transform: translateX(120%); transition: transform 0.8s var(--ease); }

.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-700); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--on-dark);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }

.btn--quiet { background: transparent; color: var(--muted); padding-inline: 12px; }
.btn--quiet:hover { color: var(--text); }

/* ── Шапка-остров ───────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: calc(var(--inset) + 8px) 0 auto;
  z-index: 50;
  padding-inline: calc(var(--inset) + 8px);
  pointer-events: none;
}
.site-header__island {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1240px;
  height: 60px;
  margin-inline: auto;
  padding: 0 8px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(7, 13, 34, 0.72);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  box-shadow: 0 10px 40px -12px rgba(5, 10, 26, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  pointer-events: auto;
  overflow: hidden;
  transition: background 0.35s, box-shadow 0.35s;
}
.site-header[data-scrolled] .site-header__island { background: rgba(7, 13, 34, 0.9); }
.site-header__brand { flex-shrink: 0; }

/* Логотип — SVG со старого сайта (shared/_logo): высота задаёт всё,
   ширина — по пропорциям. */
.logo { display: block; height: 32px; width: auto; }
.logo-mark { display: block; height: 100%; width: auto; }

.site-nav { display: flex; gap: 2px; margin-inline: auto; }
.site-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-muted);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.site-nav a[aria-current="page"] { color: var(--ink-900); background: var(--green-400); }

.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s;
}
.lang:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.site-header__cta { --btn-h: 44px; }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.burger i {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.burger i:first-of-type { top: 17px; }
.burger i:last-of-type { top: 25px; }
.burger[aria-expanded="true"] i:first-of-type { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-of-type { top: 21px; transform: rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 16px) calc(var(--gutter) + 8px) calc(24px + env(safe-area-inset-bottom));
  background: rgba(5, 10, 26, 0.97);
  backdrop-filter: blur(20px);
  color: var(--on-dark);
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
}
.drawer[data-open] { opacity: 1; visibility: visible; transform: none; }
.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
  font: 600 22px/1.15 var(--display);
  letter-spacing: -0.02em;
}
.drawer__nav a .arrow { color: var(--green-400); }
.drawer__foot { display: grid; gap: 16px; }
.drawer__phone { display: flex; align-items: center; justify-content: center; gap: 10px; font: 500 16px var(--mono); color: var(--on-dark-muted); }

.read-progress {
  position: absolute;
  left: 24px; right: 24px; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-500), var(--green-400));
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.site-header[data-scrolled] .read-progress { opacity: 1; }

/* Панель: тёмный блок, вписанный в страницу со скруглением. */
.panel {
  margin: var(--inset);
  border-radius: clamp(24px, 3vw, 40px);
}

/* ── Тёмные поверхности: первый экран и шапки страниц ─────────── */

.hero, .page-hero, .thanks {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--on-dark);
}

/* Фон — только мягкий свет из двух углов. Ни сетки, ни узоров:
   на тёмном фоне держит внимание типографика и кривая роста. */
.hero__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__glow--a {
  width: 70vw; height: 70vw;
  max-width: 1000px; max-height: 1000px;
  right: -25%; bottom: -55%;
  background: radial-gradient(circle, rgba(46, 139, 87, 0.55), rgba(46, 139, 87, 0) 65%);
}
.hero__glow--b {
  width: 50vw; height: 50vw;
  max-width: 760px; max-height: 760px;
  left: -22%; top: -40%;
  background: radial-gradient(circle, rgba(43, 76, 170, 0.45), rgba(43, 76, 170, 0) 65%);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--on-dark);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.15); }

.hero { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: end;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero__title {
  margin-top: 28px;
  font-size: clamp(2.6rem, 1.3rem + 5vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
  color: #fff;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--green-400); }
.js .hero__title .line > span { animation: rise 1.1s var(--ease) both; }
.js .hero__title .line:nth-child(2) > span { animation-delay: 0.1s; }
@keyframes rise { from { transform: translateY(105%); } }

.hero__side { display: grid; gap: 28px; padding-bottom: 8px; }
.hero__lead {
  max-width: 52ch;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  line-height: 1.6;
  color: var(--on-dark-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: grid; gap: 10px; font-size: 14.5px; color: var(--on-dark); }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts svg { color: var(--green-400); flex-shrink: 0; }
.js .hero__side { animation: fade-up 1s var(--ease) 0.25s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }

/* Кривая роста: суммы на логарифмической шкале (ChartsHelper). */
.curve {
  position: relative;
  height: clamp(220px, 26vw, 340px);
  margin-top: clamp(32px, 5vw, 56px);
}
.curve__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.curve__area { fill: url(#curve-fill); }
.curve__line {
  fill: none;
  stroke: var(--green-400);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 10px rgba(61, 220, 132, 0.55));
}
/* Линия «прорисовывается» раскрытием слева направо, а не штриховкой:
   при non-scaling-stroke длина пути для stroke-dasharray считается
   в других единицах, и линия обрывалась на середине. */
.js .curve__svg { clip-path: inset(0 100% 0 0); animation: reveal-x 2.2s var(--ease) 0.4s forwards; }
@keyframes reveal-x { to { clip-path: inset(0 0 0 0); } }
@keyframes fade { to { opacity: 1; } }

.curve__mark { position: absolute; width: 0; height: 0; }
.curve__dot {
  position: absolute;
  left: -8px; top: -8px;
  width: 16px; height: 16px;
  border: 3px solid var(--green-400);
  border-radius: 50%;
  background: var(--ink-900);
  box-shadow: 0 0 0 6px rgba(61, 220, 132, 0.15);
}
.curve__label {
  position: absolute;
  bottom: 18px; left: -8px;
  display: grid;
  gap: 2px;
  width: max-content;
  font-size: 13px;
  color: var(--on-dark-muted);
}
.curve__label strong { font: 600 clamp(1.15rem, 0.9rem + 0.9vw, 1.7rem)/1.1 var(--display); letter-spacing: -0.03em; color: #fff; }
.curve__mark--end .curve__label { left: auto; right: -8px; text-align: right; }
.js .curve__mark { opacity: 0; animation: fade 0.6s ease forwards; animation-delay: calc(0.9s + var(--i) * 0.45s); }

.page-hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(56px, 7vw, 88px); }

/* Ключевые цифры линейки в шапке страницы: две крупные величины
   через вертикальную черту, без карточек. */
.page-facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 8px; }
.page-facts > div { display: flex; flex-direction: column-reverse; gap: 4px; padding-left: 20px; border-left: 2px solid var(--green-400); }
.page-facts dt { font-size: 13px; color: var(--on-dark-muted); }
.page-facts dd { font: 600 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.1 var(--display); letter-spacing: -0.03em; color: #fff; white-space: nowrap; }

/* ── Стекло, переключатели, ползунки ────────────────────────── */

.glass {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span {
  display: block;
  padding: 10px 8px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-muted);
  transition: background 0.25s, color 0.25s;
}
.segmented input:checked + span { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.segmented input:focus-visible + span { outline: 2px solid var(--green-400); }

/* Полоса касания — 44 px (палец), в раскладке занимает прежние 28 px.
   touch-action: none отдаёт жест ползунку (lib/range_touch.js): Safari
   на iPhone иначе двигает его только за сам бегунок. */
.range {
  --fill: 50%;
  --thumb: 24px;
  width: 100%;
  height: 44px;
  margin: -8px 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-500), var(--green-400) var(--fill), rgba(255, 255, 255, 0.12) var(--fill));
}
.range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--green-500), var(--green-400)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  margin-top: -9px;
  border: 5px solid var(--green-400);
  border-radius: 50%;
  background: var(--ink-900);
  box-shadow: 0 0 0 6px rgba(61, 220, 132, 0.18), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.2s;
}
.range::-moz-range-thumb {
  width: 14px; height: 14px;
  border: 5px solid var(--green-400);
  border-radius: 50%;
  background: var(--ink-900);
  box-shadow: 0 0 0 6px rgba(61, 220, 132, 0.18);
}
.range:hover::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0.22), 0 4px 12px rgba(0, 0, 0, 0.4); }
.range:focus-visible { outline: none; }

.select { position: relative; }
.select::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  opacity: 0.6;
}
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
/* ── Разделы ─────────────────────────────────────────────────── */

.section { position: relative; padding: clamp(72px, 10vw, 136px) 0; }
.section--tint { background: var(--tint); }
.section--ink { background: var(--ink-900); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.section--ink .lead { color: var(--on-dark-muted); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); max-width: 780px; }
.section-head--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 24px 64px;
  max-width: none;
}
.section-head--split > div { display: grid; gap: 18px; }

/* ── Две линейки ─────────────────────────────────────────────── */

.program-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.program-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.program-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.program-card h3 { font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); letter-spacing: -0.035em; max-width: 18ch; }
.program-card > p { color: var(--muted); max-width: 46ch; }
.tag {
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-600);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.program-card__terms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 0; border-block: 1px solid var(--line); }
.program-card__terms dt { font-size: 13px; color: var(--muted); }
.program-card__terms dd { font: 600 1.35rem/1.2 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.program-card__list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.program-card__list li:last-child { border-bottom: 0; }
.program-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; color: var(--green-600); }
.program-card:hover .program-card__more .arrow { transform: translateX(4px); }
.program-card__more .arrow { transition: transform 0.3s var(--ease); }

/* Мягкий свет под курсором на карточках, где он остался. */
.has-spotlight { --spot: rgba(61, 220, 132, 0.1); }
.industry.has-spotlight::before, .product.has-spotlight::before, .contact-card.has-spotlight::before, .file-card.has-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(400px circle at var(--mx, -999px) var(--my, -999px), var(--spot), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.has-spotlight:hover::before { opacity: 1; }
.contact-card--dark.has-spotlight { --spot: rgba(61, 220, 132, 0.2); }

/* ── Почему мы ───────────────────────────────────────────────── */

.why { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.why__intro { display: grid; gap: 20px; }
.why__map { margin: 24px 0 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.why__map figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }
.why__points li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 32px 0; border-top: 1px solid var(--line-strong); }
.why__points li:last-child { border-bottom: 1px solid var(--line-strong); }
.why__num { font: 500 13px/2 var(--mono); color: var(--green-600); }
.why__points h3 { font-size: 1.35rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.why__points p { color: var(--muted); max-width: 48ch; }

.latvia { width: 100%; height: auto; overflow: visible; }
.latvia__dot { fill: #cdd6d0; }
.latvia__pin { fill: var(--green-500); }
.latvia__halo { fill: var(--green-400); opacity: 0.18; }
.latvia__city--capital .latvia__pin { fill: var(--ink-900); }
.latvia__city--capital .latvia__halo {
  opacity: 0.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(2.4); opacity: 0; } }

/* ── Отрасли ─────────────────────────────────────────────────── */

.industries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.industry--more { grid-column: span 2; }
.industry {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease), border-color 0.4s;
}
.industry:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); transform: translateY(-4px); }
.industry__num { position: absolute; right: 22px; top: 22px; font: 500 12px/1 var(--mono); color: var(--muted); }
.industry__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--green-50);
  color: var(--green-600);
  transition: background 0.4s, color 0.4s;
}
.industry:hover .industry__icon { background: rgba(61, 220, 132, 0.14); color: var(--green-400); }
.industry__name { margin-top: auto; font: 600 1.2rem/1.2 var(--display); letter-spacing: -0.02em; }
.industry--more { border-style: dashed; background: transparent; }
.industry--more .industry__icon { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
}
.notice svg { flex-shrink: 0; color: var(--green-500); margin-top: 1px; }

/* ── Как получить финансирование ─────────────────────────────── */

.how { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.how__intro { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 28px; }
.how__docs { display: grid; gap: 18px; justify-items: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.how__docs h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
.how__docs ul { display: grid; gap: 14px; width: 100%; }
.how__docs li { display: flex; gap: 14px; font-size: 14.5px; color: var(--muted); }
.how__docs strong { display: block; color: var(--text); font-weight: 600; }
.how__doc-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--green-50); color: var(--green-600); }

.how__steps { position: relative; }
.how__rail { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line-strong); }
.how__rail i { position: absolute; inset: 0; background: var(--green-500); transform: scaleY(var(--progress, 0)); transform-origin: 50% 0; }
html:not(.js) .how__rail i { --progress: 1; }
.how__step { position: relative; padding: 0 0 48px 80px; }
.how__step:last-child { padding-bottom: 0; }
.how__num {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--tint);
  font: 600 16px/1 var(--display);
  color: var(--muted);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.how__step[data-lit] .how__num, html:not(.js) .how__num { background: var(--ink-900); border-color: var(--ink-900); color: var(--green-400); }
.how__step h3 { padding-top: 10px; margin-bottom: 8px; font-size: 1.3rem; letter-spacing: -0.03em; }
.how__step p { color: var(--muted); max-width: 52ch; }

/* ── Вопросы ─────────────────────────────────────────────────── */

.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 18px; justify-items: start; }

.accordion { border-top: 1px solid var(--line-strong); }
.accordion__item { border-bottom: 1px solid var(--line-strong); }
.accordion__item h3 { font: inherit; letter-spacing: normal; }
.accordion__item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  border: 0;
  background: none;
  text-align: left;
  font: 600 clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem)/1.35 var(--display);
  letter-spacing: -0.015em;
  cursor: pointer;
  transition: color 0.2s;
}
.accordion__item button:hover { color: var(--green-600); }
.accordion__sign {
  position: relative;
  flex-shrink: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.accordion__sign::before, .accordion__sign::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.accordion__sign::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.accordion__item[data-open] .accordion__sign { background: var(--green-400); border-color: var(--green-400); color: var(--ink-900); }
.accordion__item[data-open] .accordion__sign::after { transform: translate(-50%, -50%) rotate(0); }

.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding: 0 64px 26px 0; color: var(--muted); }
.accordion__item[data-open] .accordion__panel { grid-template-rows: 1fr; }
html:not(.js) .accordion__panel { grid-template-rows: 1fr; }

/* ── Консультация ────────────────────────────────────────────── */

.consult {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 10vw, 136px) 0;
  background:
    radial-gradient(60% 70% at 100% 100%, rgba(46, 139, 87, 0.4), transparent 70%),
    radial-gradient(50% 50% at 0% 0%, rgba(43, 76, 170, 0.35), transparent 70%),
    var(--ink-900);
  color: var(--on-dark);
}
.consult__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.consult__intro { display: grid; gap: 22px; justify-items: start; }
.consult__intro h2 { color: #fff; }
.consult__contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.consult__card { padding: clamp(24px, 3.4vw, 40px); }

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 10px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font: 500 15px/1.2 var(--mono);
  transition: background 0.2s, border-color 0.2s;
}
.contact-chip:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.contact-chip small { display: block; margin-bottom: 3px; font: 400 12px/1 var(--sans); color: var(--on-dark-muted); }
.contact-chip__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green-400); color: var(--ink-900); }

.sent { display: grid; justify-items: center; gap: 14px; padding: 32px 8px; text-align: center; }
.sent h3 { font-size: 1.6rem; color: #fff; }
.sent p { color: var(--on-dark-muted); max-width: 36ch; }
.sent__check {
  display: grid;
  place-items: center;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--green-400);
  color: var(--ink-900);
  box-shadow: 0 0 0 12px rgba(61, 220, 132, 0.14), 0 0 48px rgba(61, 220, 132, 0.5);
  animation: pop 0.7s var(--ease) both;
}
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

/* ── Формы ───────────────────────────────────────────────────── */

.form { display: grid; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.span-2 { grid-column: 1 / -1; }
.stack { display: grid; gap: 14px; }

.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field__label { font-size: 13.5px; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9aa3b5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aeb7c5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.2);
}
.field__hint { font-size: 12.5px; color: var(--muted); }
.field__error { font-size: 12.5px; font-weight: 500; color: var(--danger); }
/* Cloudflare Turnstile: пустой, пока виджет не нарисован или решил сам. */
.turnstile:not(:empty) { margin-top: 4px; }
.turnstile + .field__error { display: block; margin-top: 6px; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--danger); background: #fff8f8; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green-500); cursor: pointer; }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.check--invalid { color: var(--danger); }

/* Согласие на рассылку — единственная галочка формы, крупная: квадрат
   32px со светлой галкой, чтобы было видно, что его можно отметить;
   отмеченный — зелёный знака. */
.check--big { align-items: center; gap: 14px; font-size: 15px; color: var(--text); }
.check--big input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  transition: background 0.2s, border-color 0.2s;
}
.check--big input::after {
  content: "";
  width: 14px; height: 7px;
  margin-top: -3px;
  border: solid var(--line-strong);
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg);
  transition: border-color 0.2s;
}
.check--big input:hover { border-color: var(--green-500); }
.check--big input:checked { background: var(--green-500); border-color: var(--green-500); }
.check--big input:checked::after { border-color: #fff; }
.check--big input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.25); }

/* Согласие на обработку данных — не галочка, а строка под кнопкой. */
.consent-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form > .consent-note { margin-top: -10px; }
.wizard__consent { text-align: right; }
.wizard:not(.wizard--live) [data-wizard-target="consentNote"], .wizard--live .wizard__consent--static { display: none; }
@media (max-width: 640px) { .wizard__consent { text-align: left; } }
.wizard__note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--green-50); color: var(--green-700); font-size: 14px; font-weight: 600; }
.wizard__note svg { flex: none; margin-top: 2px; }

/* Поля на тёмном фоне — форма консультации. */
.consult .field > label { color: var(--on-dark); }
.consult .field input, .consult .field textarea {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
}
.consult .field input::placeholder, .consult .field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.consult .field input:hover, .consult .field textarea:hover { border-color: rgba(255, 255, 255, 0.28); }
.consult .field input:focus, .consult .field textarea:focus { border-color: var(--green-400); box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.18); }
.consult .field--invalid input { border-color: #ff7a7f; background: rgba(217, 63, 69, 0.12); }
.consult .field__error { color: #ff9a9e; }
.consult .check { color: var(--on-dark-muted); }
.consult .check a { color: #fff; }
.consult .check--big { color: var(--on-dark); }
.consult .check--big input { border-color: rgba(255, 255, 255, 0.28); background: rgba(0, 0, 0, 0.22); }
.consult .check--big input::after { border-color: rgba(255, 255, 255, 0.3); }
.consult .check--big input:hover { border-color: var(--green-400); }
.consult .check--big input:checked { background: var(--green-400); border-color: var(--green-400); }
.consult .check--big input:checked::after { border-color: var(--ink-900); }
.consult .consent-note { color: var(--on-dark-muted); }
.consult .consent-note a { color: #fff; }

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff1f1;
  color: #a1262b;
  font-size: 14.5px;
  font-weight: 500;
}
.flash--ok { background: var(--green-50); color: var(--green-700); }

/* ── Подвал ──────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 8vw, 96px) 0 32px;
  background: var(--ink-950);
  color: var(--on-dark-muted);
  font-size: 14.5px;
}
.site-footer__glow {
  position: absolute;
  left: 50%; top: -1px;
  z-index: -1;
  width: min(900px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-400), transparent);
  transform: translateX(-50%);
  box-shadow: 0 0 60px 20px rgba(61, 220, 132, 0.12);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr)) minmax(0, 1.2fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.site-footer__brand { display: grid; gap: 20px; justify-items: start; color: var(--on-dark); }
.site-footer__brand .logo { height: 40px; }
.site-footer__brand p { max-width: 30ch; color: var(--on-dark-muted); }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col h2 { margin-bottom: 6px; font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark); }
.site-footer__col a { transition: color 0.2s; }
.site-footer__col a:hover { color: #fff; }
.site-footer__col address { line-height: 1.7; }
.site-footer__col address strong { color: var(--on-dark); font-weight: 500; }
.site-footer__contact { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13.5px; }
.site-footer__contact svg { color: var(--green-400); }
.site-footer__bottom { display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; padding-top: 28px; font-size: 13px; }
.site-footer__disclaimer { max-width: 80ch; justify-self: end; text-align: right; opacity: 0.75; }

/* ── Шапки внутренних страниц ────────────────────────────────── */

.page-hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(56px, 7vw, 96px); }
.page-hero__inner { display: grid; justify-items: start; gap: 22px; }
.page-hero__title {
  max-width: 20ch;
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.2rem);
  letter-spacing: -0.042em;
  line-height: 1.02;
  color: #fff;
}
.js .page-hero__title { animation: fade-up 0.9s var(--ease) both; }
.js .page-hero .hero__lead { animation: fade-up 0.9s var(--ease) 0.1s both; }
.page-hero .hero__actions { margin-top: 12px; }
.page-hero--compact { padding-bottom: clamp(44px, 5vw, 64px); }
.page-hero--compact .page-hero__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 400 12.5px/1 var(--mono); color: var(--on-dark-muted); }
.crumbs a:hover { color: #fff; }

/* ── Линейка: продукты и условия ─────────────────────────────── */

.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product__num { position: absolute; right: 24px; top: 24px; font: 500 12px/1 var(--mono); color: var(--muted); }
.product__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: var(--ink-900);
  color: var(--green-400);
  transition: transform 0.5s var(--ease);
}
.product:hover .product__icon { transform: rotate(-6deg) scale(1.06); }
.product h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.product p { font-size: 14.5px; color: var(--muted); }
.product__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; font-size: 14.5px; color: var(--green-600); }
.product:hover .product__link .arrow { transform: translateX(4px); }

.terms-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.terms-panel__copy { display: grid; gap: 20px; align-content: start; justify-items: start; }
.terms-panel__copy p { color: var(--muted); }
.terms-panel__viz { display: grid; gap: 28px; align-content: center; }

.meter { display: grid; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.meter__label { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.meter__value { font: 600 clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem)/1.1 var(--display); letter-spacing: -0.035em; }
.meter__track { position: relative; height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter__track i {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--from); right: calc(100% - var(--to));
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-500), var(--green-400));
  transform-origin: 0 50%;
}
.js .meter__track i { transform: scaleX(0); transition: transform 1.4s var(--ease) 0.2s; }
.js [data-visible] .meter__track i { transform: none; }
.meter__scale { display: flex; justify-content: space-between; font: 400 12px/1 var(--mono); color: var(--muted); }
.years { display: flex; gap: 4px; height: 28px; }
.years i { flex: 1; border-radius: 4px; background: linear-gradient(180deg, var(--green-400), var(--green-500)); }
.js .years i { opacity: 0.12; transition: opacity 0.4s; transition-delay: calc(var(--i) * 60ms + 300ms); }
.js [data-visible] .years i { opacity: 1; }

/* ── О нас ───────────────────────────────────────────────────── */

.story { display: grid; grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 96px); }
.story__label { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 32px; align-content: start; }
.story__mark { height: 120px; color: var(--ink-900); }
.story__list { display: grid; gap: clamp(32px, 4vw, 48px); }
.story__list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.story__num { font: 500 13px/1.9 var(--mono); color: var(--green-600); }
.story__list p { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem); line-height: 1.55; color: var(--muted); letter-spacing: -0.01em; }
.story__list strong { font-weight: 600; color: var(--text); }

.mission__quote {
  max-width: 24ch;
  margin: 24px 0 clamp(48px, 6vw, 80px);
  font: 600 clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem)/1.12 var(--display);
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.value {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.value__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; background: var(--green-50); color: var(--green-600); }
.value h3 { font-size: 1.3rem; }
.value p { color: var(--muted); }

/* ── Контакты и файлы ────────────────────────────────────────── */

.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: auto; border-radius: 16px; background: var(--green-50); color: var(--green-600); }
.contact-card__label { margin-top: 28px; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font: 600 1.2rem/1.35 var(--display); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.contact-card__meta { font-family: var(--mono); font-size: 13.5px; color: var(--on-dark-muted); }
.contact-card--dark { border-color: transparent; background: var(--ink-900); color: #fff; }
.contact-card--dark .contact-card__icon { background: rgba(255, 255, 255, 0.08); color: var(--green-400); }
.contact-card--dark .contact-card__label { color: var(--on-dark-muted); }

.file-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.file-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.file-card__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 84px; height: 96px;
  border-radius: 18px;
  background: var(--ink-900);
  color: var(--green-400);
}
.file-card__icon em { position: absolute; bottom: 10px; font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: 0.1em; color: var(--on-dark-muted); }
.file-card__body { display: grid; gap: 6px; flex: 1; }
.file-card__body strong { font: 600 1.5rem/1.2 var(--display); letter-spacing: -0.02em; }
.file-card__body span { color: var(--muted); font-size: 14.5px; }
.file-note { margin-top: 20px; color: var(--muted); }

/* ── Юридические тексты ──────────────────────────────────────── */

.legal { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 16px; }
.legal__toc nav { display: grid; gap: 2px; max-height: calc(100vh - 200px); overflow: auto; }
.legal__toc a { padding: 7px 12px; border-left: 2px solid var(--line); font-size: 14px; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.legal__toc a:hover { color: var(--text); border-left-color: var(--green-500); }

.prose { max-width: 760px; color: #2a3350; font-size: 16.5px; line-height: 1.75; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 48px; font-size: 1.55rem; color: var(--text); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child, .prose .notice + h2 { margin-top: 0; }
.prose ul { display: grid; gap: 8px; padding-left: 4px; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 8px; height: 2px; background: var(--green-500); }
.prose a { color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .notice { margin: 0 0 32px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prose table, .data { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prose td, .data td, .data th { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose tr:first-child td { background: var(--paper); }
.prose tr:last-child td, .data tr:last-child td { border-bottom: 0; }

/* ── Анкета ─────────────────────────────────────────────────── */

.apply { padding-top: clamp(40px, 5vw, 64px); }
.apply__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.apply__card {
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.apply__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.apply__aside-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: radial-gradient(100% 80% at 100% 100%, rgba(46, 139, 87, 0.5), transparent 65%), var(--ink-900);
  color: var(--on-dark);
}
.apply__aside h2 { font-size: 1.4rem; color: #fff; }
.apply__aside ul { display: grid; gap: 14px; }
.apply__aside li { display: flex; align-items: center; gap: 14px; }
.apply__aside li span { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: rgba(61, 220, 132, 0.14); color: var(--green-400); }
.apply__secure { display: flex; gap: 10px; font-size: 13.5px; color: var(--on-dark-muted); }
.apply__secure svg { flex-shrink: 0; color: var(--green-400); }
.apply__phone { display: grid; gap: 4px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.apply__phone small { color: var(--on-dark-muted); }
.apply__phone strong { font: 600 1.5rem/1.1 var(--mono); color: #fff; }

.wizard__progress { display: none; }
.wizard--live .wizard__progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  counter-reset: step;
}
.wizard__progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.wizard__progress li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  transition: background 0.4s;
}
.wizard__progress li[data-current]::before, .wizard__progress li[data-done]::before { background: linear-gradient(90deg, var(--green-500), var(--green-400)); }
.wizard__progress li span {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font: 500 12px/1 var(--mono);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.wizard__progress li[data-current] { color: var(--text); }
.wizard__progress li[data-current] span { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.wizard__progress li[data-done] span { background: var(--green-400); border-color: var(--green-400); color: var(--ink-900); }

.wizard__step { display: grid; gap: 24px; }
.wizard--live .wizard__step:not([hidden]) { animation: step-in 0.5s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } }
.wizard:not(.wizard--live) .wizard__step + .wizard__step { padding-top: 32px; border-top: 1px solid var(--line); }
.wizard__legend {
  display: grid;
  gap: 8px;
  padding: 0;
  font: 600 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--display);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.wizard__legend:focus { outline: none; }
.wizard__legend small { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-600); }
.wizard__nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 8px; }
.wizard__nav [data-wizard-target="back"] { margin-right: auto; }

.kind-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kind-option { position: relative; cursor: pointer; }
.kind-option input { position: absolute; opacity: 0; }
.kind-option__body {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 100%;
  padding: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.kind-option__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 12px; background: var(--paper); color: var(--muted); transition: background 0.25s, color 0.25s; }
.kind-option strong { font: 600 1.1rem/1.2 var(--display); }
.kind-option small { font-size: 13px; color: var(--muted); }
.kind-option:hover .kind-option__body { border-color: #aeb7c5; }
.kind-option input:checked + .kind-option__body { border-color: var(--green-500); background: var(--green-50); box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.15); }
.kind-option input:checked + .kind-option__body .kind-option__icon { background: var(--ink-900); color: var(--green-400); }
.kind-option input:focus-visible + .kind-option__body { outline: 2px solid var(--green-500); outline-offset: 2px; }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14.5px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.choice:hover span { border-color: #aeb7c5; }
.choice input:checked + span { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--green-500); outline-offset: 2px; }

/* ── Спасибо ─────────────────────────────────────────────────── */

.thanks { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + 48px) 0 80px; }
.thanks__inner { display: grid; justify-items: center; gap: 24px; text-align: center; }
.thanks .hero__lead { margin-inline: auto; }
.thanks__check svg { width: 96px; height: 96px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thanks__check circle { stroke: var(--green-400); stroke-width: 3; stroke-dasharray: 227; stroke-dashoffset: 227; animation: draw 1s var(--ease) forwards; filter: drop-shadow(0 0 12px rgba(61, 220, 132, 0.6)); }
.thanks__check path { stroke: #fff; stroke-width: 4; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.6s var(--ease) 0.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks__next { display: grid; gap: 20px; justify-items: center; width: min(100%, 760px); margin: 24px 0 16px; }
.thanks__next ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: left; }
.thanks__next li { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); }
.thanks__next li > span { font: 500 12px/1 var(--mono); color: var(--green-400); }
.thanks__next strong { color: #fff; font: 600 1.05rem/1.25 var(--display); }
.thanks__next p { margin-top: 6px; font-size: 13.5px; color: var(--on-dark-muted); }


/* ── Графики: легенда и столбики ─────────────────────────────── */

.stack-chart, .mini-stack { width: 100%; height: auto; }
.stack-chart__principal { fill: var(--green-500); }
.stack-chart__interest { fill: #a6e9c4; }

.legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.legend i, .ring-legend i, .calc__tip i { display: inline-block; width: 10px; height: 10px; margin-right: -6px; border-radius: 3px; vertical-align: -1px; }
.legend__principal { background: var(--green-500); }
.legend__interest { background: #a6e9c4; }
.legend__fee { background: var(--ink-700); }
.legend__balance { height: 3px !important; border-radius: 2px !important; background: var(--ink-900); vertical-align: 2px !important; }

/* ── Калькулятор ─────────────────────────────────────────────── */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.calc__controls { display: grid; gap: 26px; align-content: start; padding: clamp(24px, 3.5vw, 40px); border-right: 1px solid var(--line); background: #fbfcfa; }
.calc__result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; padding: clamp(24px, 3.5vw, 40px); min-width: 0; }
.calc__row { display: grid; gap: 10px; }
.calc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.calc__label { font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
fieldset > .calc__label { margin-bottom: 10px; padding: 0; }
.calc__value { font: 600 1.3rem/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc__scale { display: flex; justify-content: space-between; font: 400 11.5px/1 var(--mono); color: var(--muted); }
.calc__number { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 16px; }
.js .calc__number { display: none; }
.js .no-js-only, html:not(.js) .js-only { display: none !important; }

.segmented--light { background: var(--tint); border-color: var(--line); }
.segmented--light span { color: var(--muted); }
.segmented--light input:checked + span { background: var(--ink-900); color: #fff; }
.segmented--light legend { grid-column: 1 / -1; }

.range--light::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--green-500), var(--green-400) var(--fill), var(--line) var(--fill)); }
.range--light::-moz-range-track { background: var(--line); }
.range--light::-webkit-slider-thumb { background: #fff; border-color: var(--green-500); box-shadow: 0 0 0 6px rgba(46, 139, 87, 0.14), 0 2px 8px rgba(10, 19, 48, 0.2); }
.range--light::-moz-range-thumb { background: #fff; border-color: var(--green-500); }

.schemes { display: grid; gap: 8px; }
.scheme { position: relative; cursor: pointer; }
.scheme input { position: absolute; opacity: 0; }
.scheme > span {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.scheme strong { font: 600 0.95rem/1.3 var(--display); }
.scheme small { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.scheme:hover > span { border-color: var(--line-strong); }
.scheme input:checked + span { border-color: var(--green-500); background: var(--green-50); box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.14); }
.scheme input:focus-visible + span { outline: 2px solid var(--green-500); outline-offset: 2px; }

/* Мини-иконка схемы — шесть столбиков платежей. */
.scheme__icon { grid-row: span 2; display: flex; align-items: flex-end; gap: 2px; width: 44px; height: 36px; padding: 4px; border-radius: 10px; background: var(--tint); }
.scheme__icon b { flex: 1; border-radius: 2px; background: var(--green-500); }
.scheme__icon--annuity b { height: 60%; }
.scheme__icon--linear b:nth-child(1) { height: 90%; } .scheme__icon--linear b:nth-child(2) { height: 78%; } .scheme__icon--linear b:nth-child(3) { height: 66%; }
.scheme__icon--linear b:nth-child(4) { height: 54%; } .scheme__icon--linear b:nth-child(5) { height: 42%; } .scheme__icon--linear b:nth-child(6) { height: 30%; }
.scheme__icon--grace b { height: 72%; } .scheme__icon--grace b:nth-child(-n+2) { height: 18%; background: #a6e9c4; }
.scheme input:checked + span .scheme__icon { background: #fff; }

.calc__kpi { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.calc__kpi .calc__label { flex-basis: 100%; }
.calc__payment { font: 600 clamp(1.8rem, 1.2rem + 2vw, 2.9rem)/1.05 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.calc__payment:not([data-scheme="annuity"]) { font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem); }
.calc__badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font: 500 12px/1 var(--mono); }

.calc__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.calc__stats > div { padding: 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.calc__stats dt { font-size: 12.5px; color: var(--muted); }
.calc__stats dd { font: 600 1.05rem/1.3 var(--display); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

.calc__chart { position: relative; padding: 18px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.calc__chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.calc__svg svg { width: 100%; height: auto; }
.calc-chart { overflow: visible; }
.calc-chart__grid { stroke: var(--line); stroke-dasharray: 3 5; }
.calc-chart__principal { fill: var(--green-500); transition: fill 0.2s; }
.calc-chart__interest { fill: #a6e9c4; transition: fill 0.2s; }
.calc-chart__hit { fill: transparent; }
.calc-chart__bar { cursor: pointer; outline: none; }
.calc-chart__bar:hover .calc-chart__principal, .calc-chart__bar:focus .calc-chart__principal { fill: var(--green-600); }
.calc-chart__bar:hover .calc-chart__interest, .calc-chart__bar:focus .calc-chart__interest { fill: #7fdcab; }
.calc-chart__label { font: 400 11px var(--mono); fill: var(--muted); text-anchor: middle; }
.calc-chart__balance { fill: none; stroke: var(--ink-900); stroke-width: 2; stroke-linejoin: round; }
.calc-chart__dot { fill: #fff; stroke: var(--ink-900); stroke-width: 2; }
.calc__tip {
  position: absolute;
  top: 44px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ink-900);
  color: #fff;
  font-size: 12.5px;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}
.calc__tip strong { font: 600 13px var(--display); }
.calc__tip i { margin-right: 6px; }

.calc__split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.calc__ring { display: flex; align-items: center; gap: 18px; }
.calc__ring > div:first-child { width: 104px; flex-shrink: 0; }
.cost-ring { width: 100%; height: auto; }
.cost-ring circle { fill: none; transition: stroke-dasharray 0.4s var(--ease), stroke-dashoffset 0.4s var(--ease); }
.cost-ring__principal { stroke: var(--green-500); }
.cost-ring__interest { stroke: #a6e9c4; }
.cost-ring__fee { stroke: var(--ink-700); }
.ring-legend { display: grid; gap: 4px; margin-top: 8px; font-size: 13.5px; }
.ring-legend i { margin-right: 8px; }
.ring-legend b { font-weight: 600; font-variant-numeric: tabular-nums; }

.calc__table { border-top: 1px solid var(--line); padding-top: 14px; }
.calc__table summary { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; list-style: none; }
.calc__table summary::-webkit-details-marker { display: none; }
.calc__table summary::after { content: "+"; font: 400 18px/1 var(--mono); color: var(--green-600); }
.calc__table[open] summary::after { content: "−"; }
.calc__table .table-scroll { margin-top: 14px; max-height: 420px; overflow: auto; }
.data--compact td, .data--compact th { padding: 8px 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data--compact th { position: sticky; top: 0; }
.calc__note { font-size: 12.5px; color: var(--muted); }

/* ── Примеры расчёта ─────────────────────────────────────────── */

.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.example {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.example:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.example.has-spotlight::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), rgba(61, 220, 132, 0.12), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.example__top { display: flex; align-items: center; justify-content: space-between; }
.example__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ink-900); color: var(--green-400); }
.example__badge { padding: 5px 10px; border: 1px dashed var(--line-strong); border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.example__industry { margin-top: 8px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-600); }
.example h3 { font-size: 1.1rem; }
.example__goal { font-size: 14px; color: var(--muted); min-height: 2.8em; }
.example__chart { display: grid; gap: 6px; margin: 6px 0; padding: 14px; border-radius: 16px; background: var(--paper); }
.mini-area { height: 70px; }
.mini-area__area { fill: rgba(46, 139, 87, 0.12); }
.mini-area__line { fill: none; stroke: var(--green-500); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mini-area__dot { fill: var(--green-500); }
.mini-stack { height: 44px; }
.mini-stack__principal { fill: var(--green-500); }
.mini-stack__interest { fill: #a6e9c4; }
.example__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.example__facts dt { font-size: 12px; color: var(--muted); }
.example__facts dd { font: 600 0.98rem/1.3 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.example__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.example__scheme { font-size: 13px; color: var(--muted); }
.example__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--green-600); }
.example__link:hover .arrow { transform: translateX(3px); }

/* ── Тепловая таблица ────────────────────────────────────────── */

.matrix-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 4px; font-variant-numeric: tabular-nums; }
.matrix th { padding: 12px 10px; font: 500 12.5px/1.2 var(--mono); color: var(--muted); text-align: center; white-space: nowrap; }
.matrix tbody th { text-align: right; padding-right: 16px; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 13.5px; }
.matrix__corner { text-align: left !important; }
.matrix__corner span { display: block; font-size: 11px; }
.matrix td { padding: 0; border-radius: 10px; }
.matrix td a { display: block; padding: 14px 10px; text-align: center; font-size: 13.5px; font-weight: 500; color: var(--text); white-space: nowrap; border-radius: inherit; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.matrix td[data-hot] a { color: #fff; }
.matrix td a:hover { transform: scale(1.06); box-shadow: 0 8px 24px -8px rgba(10, 19, 48, 0.4); position: relative; z-index: 1; }
.js .matrix td { opacity: 0; transition: opacity 0.5s; transition-delay: calc(var(--i) * 45ms); }
.js [data-visible] .matrix td { opacity: 1; }

@media (max-width: 1024px) {
  /* minmax(0, …): иначе колонка растягивается по ширине таблицы графика,
     и её правый край обрезает overflow карточки — таблица не листается. */
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .calc__stats { grid-template-columns: 1fr 1fr; }
  /* «Pašnodarbinātais / IK» длиннее «Uzņēmums»: колонки по тексту, а не
     поровну, — иначе длинная подпись ломается на две строки. */
  .segmented--light { grid-template-columns: auto minmax(0, 1fr); }
  .segmented--light span { padding-inline: 12px; white-space: nowrap; }
  .examples { grid-template-columns: 1fr; }
  .calc__cta { width: 100%; }
}


/* ── Страницы продуктов и отраслей ──────────────────────────── */

.section--compact { padding: 0 0 clamp(48px, 6vw, 80px); }
.section-more { margin-top: 32px; text-align: center; }
.small-note { font-size: 12.5px; color: var(--muted); }

.article-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.article-main { display: grid; gap: 40px; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.block { display: grid; gap: 14px; }
.block p { color: var(--muted); max-width: 62ch; }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex-shrink: 0; margin-top: 4px; color: var(--green-500); }
.num-list { display: grid; gap: 12px; counter-reset: n; }
.num-list li { display: flex; gap: 14px; align-items: flex-start; }
.num-list li > span { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink-900); color: var(--green-400); font: 600 14px/1 var(--display); }

.mini-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-facts > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.mini-facts dt { font-size: 12.5px; color: var(--muted); }
.mini-facts dd { font: 600 1.1rem/1.3 var(--display); letter-spacing: -0.02em; }

.example-card { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.example-card .example__badge { justify-self: start; }
.example-card__amount { font: 600 1.4rem/1.2 var(--display); letter-spacing: -0.03em; }
.example-card__title { font-size: 1rem; margin-top: 4px; }

/* Сравнение схем погашения. */
.compare { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { font-weight: 600; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare tr[data-current] { background: var(--green-50); }
.compare tr[data-current] th { box-shadow: inset 3px 0 0 var(--green-500); }
.compare__best { display: block; font-size: 11px; font-weight: 600; color: var(--green-600); }
.example .compare { margin-top: 4px; }

.industry-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 24px; }
.industry-link { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 600; transition: border-color 0.2s, transform 0.3s var(--ease); }
.industry-link svg:first-child { color: var(--green-600); flex-shrink: 0; }
.industry-link span { flex: 1; }
.industry-link:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.other-links { display: grid; gap: 6px; margin-top: 12px; }
.other-links .eyebrow { margin-bottom: 6px; }
.other-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.other-links a:hover { color: var(--green-600); }

/* Каталог отраслей. */
.filter-bar { display: grid; gap: 16px; margin-bottom: 40px; }
.search { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.search svg { color: var(--muted); }
.search input { flex: 1; height: 50px; border: 0; background: transparent; font-size: 16px; outline: none; }
.industry-group { margin-bottom: 40px; }
.industry-group__title { margin-bottom: 16px; font-size: 1.2rem; letter-spacing: -0.02em; }
.industry-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.industry-card { display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.industry-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.industry-card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 12px; background: var(--green-50); color: var(--green-600); }
.industry-card__name { font: 600 1.05rem/1.3 var(--display); letter-spacing: -0.015em; }
.industry-card__needs { font-size: 13.5px; color: var(--muted); }
.industry-card__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--green-600); }

/* Конструктор «собери финансирование». */
.builder { display: grid; gap: 28px; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); }
.builder__head { display: grid; gap: 18px; }
.builder__head p { margin-top: 8px; }
.builder__industries { display: flex; flex-wrap: wrap; gap: 8px; }
.builder__body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.builder__items { display: grid; gap: 8px; }
.builder-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.builder-item:hover { border-color: var(--line-strong); }
.builder-item input { width: 20px; height: 20px; accent-color: var(--green-500); }
.builder-item:has(input:checked) { border-color: var(--green-500); background: var(--green-50); }
.builder-item__name { font-weight: 500; }
.builder-item__amount { font: 600 0.98rem/1 var(--display); font-variant-numeric: tabular-nums; }
.builder__result { display: grid; gap: 18px; padding: 24px; border-radius: var(--radius-lg); background: var(--ink-900); color: var(--on-dark); }
.builder__result .calc__label { color: var(--on-dark-muted); }
.builder__result .calc__value { color: #fff; }
.builder__result .small-note { color: var(--on-dark-muted); }
.builder__total strong, .builder__payment strong { display: block; margin-top: 4px; font: 600 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.05 var(--display); letter-spacing: -0.035em; color: #fff; font-variant-numeric: tabular-nums; }
.builder__payment strong { color: var(--green-400); font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); }
.builder__result .range--light::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--green-500), var(--green-400) var(--fill), rgba(255, 255, 255, 0.14) var(--fill)); }
.builder [aria-disabled] { opacity: 0.5; pointer-events: none; }

/* Действующим клиентам. */
.callout { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 20px; padding: 22px 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); }
.callout__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-50); color: var(--green-600); }
.callout h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
.callout p { font-size: 14.5px; color: var(--muted); }

/* Ссылки внутри карточек линеек. */
.program-card h3 a:hover { color: var(--green-600); }
.program-card__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.program-card__list a .arrow { color: var(--green-600); opacity: 0.5; transition: transform 0.3s var(--ease), opacity 0.2s; }
.program-card__list a:hover { color: var(--green-600); }
.program-card__list a:hover .arrow { opacity: 1; transform: translateX(3px); }

/* Услуги. */
.service-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.service-info { display: grid; gap: 36px; }
.service-form { display: grid; gap: 20px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 24px); }
.file-input { padding: 12px !important; background: var(--paper) !important; cursor: pointer; }
.file-input::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--ink-900); color: #fff; font: 600 13px var(--sans); cursor: pointer; }

/* Программы поддержки. */
.support-head { display: grid; gap: 10px; justify-items: start; margin-bottom: 32px; max-width: 760px; }
.support-group { margin-bottom: 48px; }
.support-group h2 { margin-bottom: 18px; }
.support-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.support-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s, transform 0.3s var(--ease); }
.support-card:hover { border-color: var(--line-strong); }
.support-card h4 { font: 600 1.05rem/1.3 var(--display); letter-spacing: -0.015em; }
.support-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 6px; }
.support-card__actions .support-card__link { margin-top: 0; }
.support-card p { font-size: 14px; color: var(--muted); }
.support-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--green-600); }
.support-card__status { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: #fff1f1; color: #a1262b; font: 500 11px/1.2 var(--mono); }
.support-card--closed { opacity: 0.7; }

/* Прейскурант: одна таблица, две колонки цен. */
.price-list { display: grid; gap: 40px; }
.price-list__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.price-section { display: grid; gap: 14px; }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.price-table th, .price-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.price-table thead th { background: var(--paper); font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.price-table thead th:not(:first-child) { width: 26%; }
.price-table tbody th { font-weight: 400; }
.price-table__title { display: block; font-weight: 600; }
.price-table__detail { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.price-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.price-table td[colspan] { color: var(--text); text-align: center; } /* общая цена — посередине двух колонок, а не под первой */
.price-table tr[data-differs] td { background: var(--green-50); color: var(--green-700); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.file-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14.5px; font-weight: 600; transition: border-color 0.2s; }
.file-link svg { color: var(--green-600); }
.file-link:hover { border-color: var(--line-strong); }

/* Телефон и заявка внизу экрана на телефоне — как на grand_credit. */
.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 13, 34, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-dark);
}
.sticky-cta .btn { --btn-h: 48px; flex: 1; padding: 0 14px; font-size: 14.5px; }

@media (max-width: 1024px) {
  .article-grid, .builder__body, .service-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}
@media (max-width: 760px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 72px; }
  .callout { grid-template-columns: 1fr; }
  .mini-facts { grid-template-columns: 1fr; }
  /* На телефоне строка — карточка: название, под ним цены с подписью колонки. */
  .price-table thead { display: none; }
  .price-table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td { display: block; width: auto; padding: 0; border: 0; }
  .price-table td { margin-top: 8px; }
  .price-table td[colspan] { text-align: left; }
  .price-table tr[data-differs] td { background: none; }
  .price-table td[data-label]::before { content: attr(data-label); display: block; font: 500 11px/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
}

/* ── Появление при прокрутке ─────────────────────────────────── */

/* Сдвигаем через translate, а не transform: иначе появление перебьёт
   подъём карточек при наведении. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
}
.js [data-reveal][data-visible] { opacity: 1; translate: none; }

/* ── Админка ─────────────────────────────────────────────────── */

.admin-shell { max-width: 1200px; margin: 0 auto; padding: 40px var(--gutter); }
.admin-shell h1 { margin-bottom: 24px; font-size: 2rem; }
.admin-shell a { color: var(--green-600); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs a { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text) !important; font-size: 14px; }
.tabs a[aria-current="page"] { background: var(--ink-900); border-color: var(--ink-900); color: #fff !important; }
.data th { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.nums { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 500 12px/1.2 var(--mono); }
.badge--ok { background: var(--green-100); color: var(--green-700); }
.badge--wait { background: #fff3d6; color: #8a5a00; }
.badge--info { background: #e6ecff; color: #2a3f99; }
.requisites { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.requisites > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.requisites > div:last-child { border-bottom: 0; }
.requisites dt { color: var(--muted); font-size: 14px; }
.requisites dd p { margin: 0; }

/* ── Статьи (гем newsroom) ───────────────────────────────────── */

/* Рубрики — те же «таблетки», что фильтр отраслей; текущая — тёмная. */
.post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.post-cats a {
  white-space: nowrap;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14.5px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.post-cats a:hover { border-color: #aeb7c5; }
.post-cats a[aria-current="page"] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__cover { display: block; border-bottom: 1px solid var(--line); background: var(--ink-900); }
.post-card__cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px 24px; }
.post-card__title { font: 600 1.18rem/1.3 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.post-card__excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.post-card__meta { margin-top: auto; padding-top: 4px; font: 400 12px/1.4 var(--mono); color: var(--muted); }

.posts__title { margin-bottom: 24px; }

.post-hero .page-hero__title { max-width: 26ch; }
.post-hero .hero__lead { max-width: 62ch; }
.post-hero .crumbs { line-height: 1.5; }
.post-hero__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font: 400 12.5px/1.5 var(--mono); color: var(--on-dark-muted); }

.post__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.post__grid:has(.post__toc) { grid-template-columns: 260px minmax(0, 1fr); }
.post__main { min-width: 0; max-width: 760px; }

/* Текст статьи пишет модель: заголовки третьего уровня, нумерованные
   списки, цитаты и таблицы — всё должно выглядеть как у сайта. */
.post__body h3 { margin-top: 32px; font-size: 1.2rem; color: var(--text); letter-spacing: -0.02em; scroll-margin-top: calc(var(--header-h) + 24px); }
.post__body ol { display: grid; gap: 8px; padding-left: 22px; list-style: decimal; }
.post__body ol li::marker { color: var(--green-600); font-weight: 600; }
.post__body blockquote { padding: 4px 0 4px 20px; border-left: 2px solid var(--green-500); color: var(--text); }
.post__body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.post__body code { padding: 1px 6px; border-radius: 6px; background: var(--tint); font: 400 0.9em var(--mono); }
.post__body .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.post__body th { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); text-align: left; font: 500 12px/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); vertical-align: bottom; }
.post__body tr:first-child td { background: none; }
.post__body td { min-width: 120px; }

.post-cta {
  display: grid;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.post-cta__text { display: grid; gap: 10px; }
.post-cta__text p { color: var(--muted); max-width: 56ch; }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1024px) {
  .post__grid:has(.post__toc) { grid-template-columns: minmax(0, 1fr); }
  .post__toc { position: static; }
}
@media (max-width: 760px) {
  /* Рубрики на телефоне — одной прокручиваемой строкой, а не четырьмя. */
  .post-cats { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .post-cats::-webkit-scrollbar { display: none; }
  .post-cats a { flex-shrink: 0; padding: 9px 14px; font-size: 14px; }
  .post-cta__actions .btn { flex: 1 1 100%; }
  .post-card__body { padding: 20px; }
}

/* ── Адаптив ─────────────────────────────────────────────────── */

/* Пунктов меню шесть плюс три языка: на средних экранах ужимаем, а
   ниже 1180 px — в бургер, иначе кнопка заявки уезжает за край. */
@media (max-width: 1360px) {
  .site-nav a { padding: 8px 9px; font-size: 13.5px; }
  .site-header__island { gap: 12px; }
}
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .burger { display: block; }
  .site-header__phone span { display: none; }
  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry--more { grid-column: auto; }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .site-nav, .site-header__phone { display: none; }
  .burger { display: block; }

  .site-nav { display: none; }



  .faq, .consult__grid, .terms-panel, .apply__grid, .why, .how, .hero__inner { grid-template-columns: 1fr; }
  .how__intro { position: static; }
  .faq__head, .apply__aside, .story__label { position: static; }
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .values { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 80px; }
  .site-header__island { height: 56px; padding-left: 16px; }
  .logo { height: 26px; }
  .site-header__cta { display: none; }

  .hero__facts > div { flex: 1 1 40%; }
  .hero__actions .btn { flex: 1 1 100%; }

  .section-head--split { grid-template-columns: 1fr; }
  .program-cards, .products, .contact-cards, .industries, .program-card__terms { grid-template-columns: 1fr; }
  .curve { height: 200px; }
  .curve__mark--mid .curve__label { left: auto; right: -8px; text-align: right; }
  .why__points li { grid-template-columns: 1fr; gap: 4px; }
  .program-card { min-height: 0; }
  .story { grid-template-columns: 1fr; }
  .story__mark { display: none; }
  .story__list li { grid-template-columns: 1fr; gap: 8px; }

  .form-grid, .kind-picker { grid-template-columns: 1fr; }
  .wizard__progress li { font-size: 0; gap: 0; }
  .wizard__progress li span { font-size: 12px; }
  .wizard__nav .btn--lg { flex: 1; }

  .file-card { flex-wrap: wrap; }
  .file-card .btn { width: 100%; }
  .thanks__next ol { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-footer__brand, .site-footer__col { min-width: 0; }
  .site-footer__bottom { grid-template-columns: 1fr; }
  .site-footer__disclaimer { justify-self: start; text-align: left; }
  .accordion__panel p { padding-right: 0; }
  .requisites > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ── Меньше движения ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
  .js .meter__track i { transform: none; }
  .js .curve__svg { clip-path: none; }
  .js .curve__mark { opacity: 1; }
  .js .latvia__city, .js .years i { opacity: 1; transform: none; }
  .hero__glow, .latvia__city--capital .latvia__halo, .pill__dot::after { animation: none !important; }
}

/* Баннер cookies — из гема landing_kit, здесь только цвета сайта. */
.lk-consent {
  --lk-bg: var(--ink-900); --lk-text: #fff; --lk-muted: rgba(255, 255, 255, 0.7); --lk-line: var(--line-dark);
  --lk-accent: var(--green-500); --lk-accent-text: #fff; --lk-radius: var(--radius); --lk-font: var(--sans);
}
.lk-consent__text a { color: var(--green-300); }
