/* FinMost — фирменный стиль сайта.
   Layout: глубокий фиолетовый «первый экран» с солнцем-логотипом, дальше спокойные светлые разделы с узкой колонкой текста. */
:root {
  --bg: #F6F5FA;
  --surface: #FFFFFF;
  --ink: #1B1430;
  --muted: #5C5672;
  --line: #E2DEEC;
  --brand: #200359;          /* фиолетовый из логотипа */
  --brand-ink: #200359;      /* фиолетовый для текста и частей логотипа */
  --gold: #EEB604;           /* золотой из логотипа */
  --gold-ink: #7A5A00;       /* золотой, читаемый на светлом фоне */
  --hero-bg: #200359;
  --hero-ink: #F4F0FF;
  --hero-muted: #C9BEEA;
  --field: #FFFFFF;
  --ok: #1E7A4C;
  --ill-p1: #200359; --ill-p2: #B9A8EC; --ill-g2: #F8DE8A; --ill-grid: #E2DEEC;
  --err: #B3261E;

  --f-display: "Fira Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-logo: "Saira Condensed", "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;

  --wrap: 1120px;
  --text: 66ch;
  --r: 6px;
}
:root { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
img, svg { max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.wrap {
  max-width: calc(var(--wrap) + 2 * 24px);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: clamp(23px, 2.4vw, 28px); }
p { margin: 0; }
.eyebrow { font: 600 13px/1.3 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 58ch; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; color: var(--brand-ink); text-decoration: none; flex: none; }
.brand svg { height: 52px; width: auto; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; min-width: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: var(--r); white-space: nowrap; }
.nav a:hover { background: var(--bg); color: var(--brand-ink); }
.nav a[aria-current="page"] { color: var(--brand-ink); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .btn { margin-left: 8px; }
@media (max-width: 760px) {
  .site-header .wrap { gap: 4px; padding-block: 8px; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .nav .btn { margin-left: auto; }
  .brand svg { height: 38px; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: var(--r); border: 2px solid transparent;
  background: var(--gold); color: #200359; transition: transform .15s ease, background .15s ease;
}
.btn:hover { color: #200359; background: #FFC81F; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: transparent; color: var(--gold); }
.nav .btn { padding: 10px 16px; font-size: 15px; }
.nav .btn:hover { background: #FFC81F; color: #200359; }

/* ---------- Первый экран ---------- */
.hero { background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: end; padding-block: clamp(56px, 8vw, 104px) 0; }
.hero-copy { display: grid; gap: 22px; padding-bottom: clamp(48px, 7vw, 96px); min-width: 0; }
.hero .eyebrow { color: var(--gold); }
.hero h1 span { color: var(--gold); }
.hero .lead { color: var(--hero-muted); }
.hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 15rem)); gap: 12px; margin-top: 6px; }
@media (max-width: 480px) { .hero-actions { grid-template-columns: 1fr; } }
.hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: clamp(18px, 1.6vw, 21px); color: var(--hero-ink); }
.hero-list li { display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start; }
.hero-list li::before { content: ""; width: 18px; height: 18px; margin-top: .22em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13 12.5 3.5' stroke='%23EEB604' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath fill='%23EEB604' d='M6.5 2h7.5v7.5z'/%3E%3C/svg%3E") no-repeat center / contain; }
.hero-art { align-self: end; min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art .ray { fill: #6B4FC4; }
.hero-art .sun, .hero-art .arrow { fill: var(--gold); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { max-width: 420px; }
}
.page-hero { background: var(--hero-bg); color: var(--hero-ink); }
.page-hero .wrap { padding-block: clamp(48px, 7vw, 88px); display: grid; gap: 18px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .lead { color: var(--hero-muted); }

/* ---------- Разделы ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 760px; }
.section-head p { color: var(--muted); }

/* Направления — построчный список */
.dir-grid { display: grid; border-top: 2px solid var(--brand-ink); }
.dir {
  display: grid; grid-template-columns: 150px minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 8px 32px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.dir .tag { font: 600 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.dir h3 { color: var(--brand-ink); font-size: clamp(22px, 2.2vw, 27px); min-width: 0; }
.dir p { color: var(--muted); font-size: 16px; min-width: 0; }
.dir .more { font-weight: 600; font-size: 15px; color: var(--brand-ink); white-space: nowrap; }
.dir:hover h3, .dir:hover .more { color: var(--gold-ink); }
@media (max-width: 900px) { .dir { grid-template-columns: minmax(0, 1fr) auto; } .dir .tag { grid-column: 1 / -1; } .dir p { grid-column: 1 / -1; grid-row: 3; } .dir .more { grid-row: 2; grid-column: 2; } }

/* Этапы работы — настоящая последовательность */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before {
  content: counter(s); font: 700 44px/1 var(--f-display); color: var(--gold-ink);
  border-bottom: 2px solid var(--line); padding-bottom: 12px;
}
.steps h3 { font-size: 24px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Принципы */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.principles div { display: grid; gap: 8px; min-width: 0; }
.principles h3 { font-size: 24px; color: var(--brand-ink); }
.principles p { color: var(--muted); }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }

/* Стратегия: путь к фонду */
.strategy { background: var(--surface); }
.strategy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.strategy-copy { display: grid; gap: 18px; }
.strategy-copy p { color: var(--muted); }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.path li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.path li:last-child { border-bottom: 0; }
.path .mark { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; font: 700 18px/1 var(--f-display); color: var(--gold-ink); }
.path li.now .mark { background: var(--gold); color: #200359; }
.path li.goal .mark { background: var(--brand); border-color: var(--brand); color: #fff; }
.path h3 { font-size: 22px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.path h3 small { font: 600 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.path p { color: var(--muted); font-size: 16px; margin-top: 4px; }
@media (max-width: 820px) { .strategy-grid { grid-template-columns: 1fr; } }

/* Полоса с призывом */
.cta-band { background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; left: -40px; bottom: -40px; width: 420px; height: 420px; opacity: .22; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%237B5CE0'%3E%3Cpath d='M10 0h3l-1.5 70z'/%3E%3Cpath d='M30 12l2.6 1.5-17 58z'/%3E%3Cpath d='M55 38l1.3 2.7-38 34z'/%3E%3Cpath d='M78 66l.5 3-60 10z'/%3E%3Cpath d='M100 98v3H22z'/%3E%3C/g%3E%3Cpath fill='%23EEB604' d='M10 100V78a22 22 0 0 1 22 22z'/%3E%3C/svg%3E") no-repeat left bottom / contain;
}
.cta-band .wrap { position: relative; }
.cta-band .wrap { padding-block: clamp(48px, 6vw, 72px); display: flex; gap: 24px 48px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: var(--hero-muted); margin-top: 10px; max-width: 52ch; }

/* ---------- Страница направлений ---------- */
.service-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.service-nav a { color: var(--hero-ink); border: 1px solid rgba(255,255,255,.28); padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; }
.service-nav a:hover { border-color: var(--gold); color: var(--gold); }
.service { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-child { border-top: 0; }
.service-title { display: grid; gap: 12px; align-content: start; position: sticky; top: 100px; }
.service-title .tag { font: 600 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.service-title h2 { color: var(--brand-ink); font-size: clamp(30px, 3.4vw, 40px); }
.service-body { display: grid; gap: 22px; min-width: 0; max-width: var(--text); }
.service-body h3 { font-family: var(--f-body); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.service-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.service-body ul > li { padding-left: 24px; position: relative; }
.service-body ul > li::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13 12.5 3.5' stroke='%23EEB604' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath fill='%23EEB604' d='M6.5 2h7.5v7.5z'/%3E%3C/svg%3E") no-repeat center / contain; }
.result { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; font-weight: 500; }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; } .service-title { position: static; } }

.sectors { display: flex; flex-wrap: wrap; gap: 10px; }
.sectors span { border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; border-radius: 999px; font-weight: 500; }

/* ---------- Статьи ---------- */
.articles-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 4px; }
.toc p { font: 600 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.35; }
.toc a b { font-family: var(--f-display); font-size: 20px; color: var(--gold-ink); line-height: 1; }
.toc a:hover { color: var(--brand-ink); }
.article { padding-block: 0 clamp(56px, 7vw, 88px); margin-bottom: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line); scroll-margin-top: 90px; max-width: var(--text); }
.article:last-child { border-bottom: 0; margin-bottom: 0; }
.article header { display: grid; gap: 14px; margin-bottom: 28px; }
.article .num { font: 600 13px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.article h2 { color: var(--brand-ink); }
.article .standfirst { font-size: 19px; color: var(--muted); }
.article-body { display: grid; gap: 18px; }
.article-body h3 { margin-top: 14px; font-size: 26px; }
.article-body ul, .article-body ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.article-body li::marker { color: var(--gold-ink); font-weight: 700; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; font-size: 16px; }
.note strong { color: var(--brand-ink); }
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.compare table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-weight: 600; color: var(--brand-ink); background: var(--bg); }
.compare tr:last-child td { border-bottom: 0; }
.article-cta { margin-top: 10px; font-weight: 600; }
.disclaimer { color: var(--muted); font-size: 14px; max-width: var(--text); margin-top: 24px; }
@media (max-width: 900px) { .articles-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { scroll-margin-top: 100px; display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 36px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field-label { font-weight: 600; font-size: 15px; }
.multiselect { position: relative; }
.multiselect summary {
  list-style: none; cursor: pointer; font-size: 16px; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: var(--r); padding: 12px 40px 12px 14px; position: relative;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.multiselect summary::-webkit-details-marker { display: none; }
.multiselect summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.multiselect[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.multiselect summary:focus-visible, .multiselect[open] summary { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.multiselect.empty summary { color: var(--muted); }
.ms-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 30px rgba(20, 8, 50, .14); padding: 6px; display: grid; }
.ms-opt { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 4px; cursor: pointer; font-size: 15px; line-height: 1.35; }
.ms-opt:hover { background: var(--bg); }
.ms-opt input { width: 18px; height: 18px; margin: 0; accent-color: #200359; }
.field.invalid .multiselect summary { border-color: var(--err); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field .hint { font-size: 13px; color: var(--muted); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--muted); align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: #200359; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.contact-side { display: grid; gap: 28px; }
.contact-side h3 { font-size: 24px; color: var(--brand-ink); margin-bottom: 8px; }
.contact-side p { color: var(--muted); }
.mail-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.mail-line .addr { font: 600 20px/1.2 var(--f-body); color: var(--brand-ink); user-select: all; }
.copy-btn { font: 500 14px/1 var(--f-body); background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; cursor: pointer; }
.copy-btn:hover { border-color: var(--gold); }
.next-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--muted); }
.next-steps li::marker { color: var(--gold-ink); font-weight: 700; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: 15px; color: var(--muted); }
.site-footer .wrap { padding-block: 40px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer .brand svg { height: 40px; }
.site-footer p { margin-top: 12px; max-width: 40ch; }
.site-footer h4 { font: 600 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand-ink); }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > div:first-child { grid-column: 1 / -1; } }

/* Стратегия */
.steps-tight { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps-tight h3 { font-size: 21px; }
.steps-tight li::before { font-size: 34px; }
@media (max-width: 640px) { .steps-tight { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .steps-tight { grid-template-columns: 1fr; } }
.service-body .principles { gap: 24px 32px; }
.service-body .principles h3 { font-family: var(--f-display); font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--brand-ink); font-weight: 600; }
.service-body .path h3 { font-size: 22px; }
.service-body .steps-tight h3 { font-size: 21px; }
.service-body .path h3, .service-body .steps h3 { font-family: var(--f-display); letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; }
.strategy-more { font-weight: 600; }

/* ---------- Графика ---------- */
.ic { width: 100%; height: 100%; display: block; }
.ic .l { fill: none; stroke: var(--brand-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ic .gs { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ic .gf { fill: var(--gold); }
.dir .tag { display: grid; gap: 14px; align-content: start; }
.dir-ic { width: 44px; height: 44px; display: block; }
.dir:hover .dir-ic .l { stroke: var(--gold-ink); }
@media (max-width: 900px) { .dir .tag { grid-template-columns: 36px auto; align-items: center; } .dir-ic { width: 36px; height: 36px; } }
.step-ic { width: 46px; height: 46px; display: block; margin-top: 4px; }
.art-ic { width: 52px; height: 52px; display: block; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.ill { display: block; width: 100%; height: auto; overflow: visible; }
.ill .t { font: 500 12.5px/1 var(--f-body); fill: var(--ink); }
.ill .tb { font: 600 13px/1 var(--f-body); fill: #200359; }
.ill .ts { font: 600 9.5px/1 var(--f-body); letter-spacing: .08em; fill: var(--muted); }
.ill .p1 { fill: var(--ill-p1); }
.ill .p2 { fill: var(--ill-p2); }
.ill .g1, .ill .gf, .ill .gfm, .ill .gfa { fill: var(--gold); }
.ill .g2 { fill: var(--ill-g2); }
.ill .ax { stroke: var(--muted); stroke-width: 1.2; fill: none; }
.ill .grid { stroke: var(--ill-grid); stroke-width: 1; fill: none; }
.ill .lk { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.ill .gl { stroke: var(--gold); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ill .pl { stroke: var(--ill-p1); stroke-width: 2; stroke-dasharray: 6 5; fill: none; }
.ill .mk { fill: var(--surface); stroke: var(--ill-p1); stroke-width: 2; }
.ill .box { fill: var(--surface); stroke: var(--ill-p1); stroke-width: 1.5; }
.ill .boxg { fill: var(--gold); }
.ill .arr { stroke: var(--gold-ink); stroke-width: 2; fill: none; }
.ill .gs3 { stroke: var(--gold); stroke-width: 6; stroke-linecap: round; fill: none; }
.ill .num { font: 700 26px/1 var(--f-display); fill: var(--ink); }
.ill .num.dk { fill: #200359; }
.ill .num.on { fill: #FFFFFF; }
.ill-wrap { margin-top: 28px; max-width: 300px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.growth-wrap { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
@media (max-width: 820px) { .ill-wrap { max-width: 420px; } }

/* Блок доверия */
.section-trust { padding-block: 0 clamp(56px, 8vw, 96px); border-top: 0 !important; }
.section-trust-inline { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.trust { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 2px solid var(--brand-ink); border-radius: 10px; }
.trust-ic { width: 52px; height: 52px; }
.trust-body { display: grid; gap: 12px; min-width: 0; }
.trust h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--brand-ink); }
.trust h3 { font-size: 22px; color: var(--brand-ink); margin: 0 !important; }
.trust ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.trust li { padding-left: 22px; position: relative; color: var(--ink); }
.trust li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.contact-side .trust { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
.contact-side .trust .trust-ic { width: 40px; height: 40px; }
.contact-side .trust li { font-size: 15px; }
.requisites dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 15px; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; color: var(--ink); }

/* Графики в статьях */
.chart { margin: 8px 0; display: grid; gap: 10px; }
.chart-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 16px; overflow-x: auto; }
.chart-box svg { display: block; width: 100%; min-width: 480px; height: auto; }
.chart-src { font-size: 13px; color: var(--muted); }
.chart .cl { font: 500 13px var(--f-body); fill: var(--ink); }
.chart .cv { font: 600 13px var(--f-body); fill: var(--ink); }
.chart .ca { font: 400 12px var(--f-body); fill: var(--muted); }
.chart .cb { fill: var(--ill-p2); }
.chart .cb-hi { fill: var(--gold); }
.chart .cb-lt { fill: var(--ill-g2); opacity: .9; }
.chart .cb-neg { fill: var(--err); opacity: .7; }
.chart .cg { stroke: var(--ill-grid); stroke-width: 1; }
.chart .ca-l { stroke: var(--muted); stroke-width: 1; }
.chart .cl-rate { fill: none; stroke: var(--ill-p1); stroke-width: 3; }
.chart .cl-infl { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.chart .cd { fill: var(--gold); stroke: var(--surface); stroke-width: 1.5; }
.chart .cl-world { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .cl-target { stroke: var(--ok); stroke-width: 3; }
.chart .cb-rate { fill: var(--ill-p1); }

/* Показатели и новости */
.kpi-section { background: var(--surface); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--brand-ink); }
.kpi { display: grid; gap: 4px; align-content: start; padding: 20px 18px 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.kpi:not(:nth-child(4n+1)) { padding-left: 18px; border-left: 1px solid var(--line); }
.kpi-v { font: 700 30px/1.1 var(--f-display); color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.kpi-l { font-weight: 600; font-size: 15px; line-height: 1.3; }
.kpi-p { font-size: 13px; color: var(--gold-ink); }
.kpi-s { font-size: 12px; color: var(--muted); }
@media (max-width: 980px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; } .kpi:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); } }
.news-list { display: grid; border-top: 2px solid var(--brand-ink); max-width: 860px; }
.news-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-item time { font: 600 14px/1.4 var(--f-body); color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.news-item h3 { font-size: 22px; color: var(--brand-ink); margin-bottom: 6px; }
.news-item p { color: var(--muted); font-size: 16px; }
.news-item a { display: inline-block; margin-top: 6px; font-size: 14px; }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }

/* Политика */
.policy-summary { max-width: var(--text); background: var(--surface); border: 2px solid var(--brand-ink); border-radius: 10px; padding: 22px 26px; margin-bottom: clamp(40px, 5vw, 64px); display: grid; gap: 10px; }
.policy-summary h2 { font-size: 26px; color: var(--brand-ink); }
.policy-summary ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.consent a { color: var(--brand-ink); }

/* Показатели на главной */
.kpi-home { padding-block: clamp(40px, 5vw, 64px); }
.kpi-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 24px; }
.kpi-head h2 { margin-top: 10px; }
.kpi-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.kpi-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi-grid-6 .kpi:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
.kpi-grid-6 .kpi:not(:first-child) { padding-left: 16px; border-left: 1px solid var(--line); }
.kpi-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
@media (max-width: 1100px) {
  .kpi-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-grid-6 .kpi:not(:first-child) { padding-left: 0; border-left: 0; }
  .kpi-grid-6 .kpi:not(:nth-child(3n+1)) { padding-left: 16px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .kpi-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid-6 .kpi:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .kpi-grid-6 .kpi:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
}
.kpi-grid-6 .kpi-v { font-size: 27px; }

.ill .boxw { fill: #FFFFFF; }

/* Мост */
.ill .tw { font: 600 15px var(--f-body); fill: #FFFFFF; }
.ill .tws { font: 400 10.5px var(--f-body); fill: #D8CCFF; }
.ill .deck { stroke: var(--ill-p1); stroke-width: 4; fill: none; }
.ill .hang { stroke: var(--gold); stroke-width: 1.5; fill: none; }
.bridge-wrap { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.sides h3 { font-family: var(--f-display) !important; font-size: 22px !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--brand-ink) !important; margin-bottom: 8px; }
@media (max-width: 640px) { .sides { grid-template-columns: 1fr; } }
.final-note { border-left: 3px solid var(--gold); padding: 6px 0 6px 18px; font-size: 18px; color: var(--ink); }

/* Полный цикл кредита */
.cycle { list-style: none; margin: 0; padding: 0; counter-reset: cy; display: grid; gap: 18px; }
.cycle > li { counter-increment: cy; position: relative; padding-left: 48px; }
.cycle > li::before { content: counter(cy); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 7px; background: var(--gold); color: #200359; font: 700 16px/32px var(--f-display); text-align: center; }
.cycle > li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: -14px; width: 2px; background: var(--line); }
.cycle-h { font-weight: 600; font-size: 18px; color: var(--brand-ink); margin-bottom: 8px !important; padding-top: 4px; }

.ill .tsub { font: 400 11.5px var(--f-body); fill: var(--ink); }

/* Отрасли с иконками */
.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sectors span { min-width: 0; overflow-wrap: anywhere; }
.sectors span { display: flex; align-items: center; gap: 12px; border-radius: 10px !important; padding: 12px 14px !important; line-height: 1.3; }
.sec-ic { width: 42px; height: 42px; flex: none; display: block; padding: 4px; border-radius: 8px; background: var(--bg); }

@media (max-width: 420px) { .sectors { grid-template-columns: 1fr; } }

.compare .muted { font-size: 13px; color: var(--muted); }

/* Таблица сравнения программ */
.compare th, .compare td { vertical-align: middle; }
.compare table.programs { table-layout: fixed; min-width: 720px; }
.programs th { text-align: center; font-size: 14px; line-height: 1.3; padding: 14px 12px; }
.programs td { padding: 14px 12px; line-height: 1.4; }
.programs td:nth-child(2), .programs td:nth-child(3), .programs td:nth-child(4) { text-align: center; }
.programs th:first-child, .programs td:first-child { text-align: left; }
.programs th:last-child, .programs td:last-child { text-align: left; }
.programs td:nth-child(2) { font-weight: 700; font-size: 17px; color: var(--brand-ink); }
.programs td:nth-child(2) .muted { display: block; font-weight: 400; margin-top: 2px; }
.programs tbody tr:nth-child(even) td { background: var(--bg); }
.programs td .plain { font-weight: 400; font-size: 15px; color: var(--ink); }

.note-check { border-left: 3px solid var(--gold); display: grid; gap: 10px; }
.check-links { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.check-links a { display: inline-block; padding: 6px 12px; border: 1px solid var(--brand-ink); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; }
.check-links a:hover { background: var(--brand-ink); color: #fff; }

/* Графики: обновлённый стиль */
.chart-box { padding: 22px 24px 20px !important; border-radius: 14px !important; box-shadow: 0 1px 2px rgba(32,3,89,.04), 0 8px 24px rgba(32,3,89,.06); }
.chart .chart-title { font: 600 16px/1.35 var(--f-body); color: var(--brand-ink); margin-bottom: 16px; padding-left: 12px; border-left: 3px solid var(--gold); }
.chart-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; }
.chart-body:has(.chart-callout) { grid-template-columns: minmax(0, 1fr) 210px; }
.chart-callout { display: grid; gap: 6px; padding: 16px 18px; border-radius: 12px; background: var(--hero-bg); color: #F4F0FF; }
.co-big { font: 700 32px/1.05 var(--f-display); color: var(--gold); white-space: nowrap; }
.co-text { font-size: 14px; line-height: 1.4; color: #D8CCFF; }
.chart .ct { fill: var(--bg); }
.chart .cb { fill: url(#gPurple); }
.chart .cb-hi { fill: url(#gGold); }
.chart .cv-in { font: 700 13px var(--f-body); fill: #FFFFFF; }
.chart .cv-in.dk { fill: #200359; }
.chart .cl { font-size: 13.5px; }
@media (max-width: 760px) { .chart-body:has(.chart-callout) { grid-template-columns: 1fr; } .chart-box svg { min-width: 0 !important; } }

.chart-body svg { min-width: 0 !important; width: 100%; }

/* Акцент над графиком, график на всю ширину */
.chart-body:has(.chart-callout) { grid-template-columns: 1fr !important; }
.chart-callout { order: -1; display: flex !important; align-items: center; gap: 18px !important; padding: 14px 20px !important; }
.co-text { font-size: 15px !important; max-width: 52ch; }
@media (max-width: 560px) { .chart-callout { flex-direction: column; align-items: flex-start; gap: 6px !important; } }

/* Документы */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.doc-card { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 12px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(32,3,89,.05); }
.doc-ic { width: 52px; height: 52px; padding: 8px; border-radius: 12px; background: var(--bg); }
.doc-card h2 { font-size: 26px; color: var(--brand-ink); }
.doc-card p { color: var(--muted); font-size: 16px; }
.doc-meta { font-size: 13px !important; letter-spacing: .04em; color: var(--gold-ink) !important; font-weight: 600; }
.doc-langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.doc-btn { justify-content: center; text-align: center; padding: 10px 6px; font-size: 14px; white-space: nowrap; }
.doc-btn.is-soon { background: var(--bg); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: default; pointer-events: none; }
.doc-note { margin-top: 28px; color: var(--muted); }
@media (max-width: 900px) { .doc-grid { grid-template-columns: 1fr; max-width: 560px; } }
.nav a { padding: 8px 10px; }
