/* Updraft Capital — без внешних шрифтов и CDN. Светлая контрастная тема по умолчанию, тёмная — [data-theme="dark"]. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f3ff;
  --ink: #0c0a24;
  --ink-2: #2a2742;
  --muted: #545069;
  --line: #d8d4ea;
  --line-strong: #b9b3d6;
  --accent: #4a2ff0;
  --accent-hover: #3a1fd6;
  --accent-ink: #ffffff;
  --accent-soft: #ece8ff;
  --warm: #ff6b3d;
  --warm-soft: #fff0ea;
  --sun: #ffc23d;
  --good: #0a8a63;
  --warn: #b5660f;
  --bad: #c0352f;
  --deep: #1a1150;
  --deep-2: #2b1c80;
  --on-deep: #ffffff;
  --on-deep-muted: #cfc8ff;
  --glow-1: rgba(91, 61, 245, .16);
  --glow-2: rgba(255, 107, 61, .14);
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(12, 10, 36, .06), 0 10px 28px rgba(12, 10, 36, .07);
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0d0a1f;
  --surface: #16122f;
  --surface-2: #120e28;
  --ink: #f4f2ff;
  --ink-2: #d3cef0;
  --muted: #a39dc4;
  --line: #2d2752;
  --line-strong: #463e78;
  --accent: #8f7dff;
  --accent-hover: #a596ff;
  --accent-ink: #0d0a1f;
  --accent-soft: #241d4f;
  --warm: #ff8a63;
  --warm-soft: #2e1a1f;
  --deep: #1d1458;
  --deep-2: #33208f;
  --glow-1: rgba(143, 125, 255, .18);
  --glow-2: rgba(255, 138, 99, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; transition: background .2s ease, color .2s ease; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 980px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }
[id] { scroll-margin-top: 80px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 650 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 24px var(--glow-1); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-wide { width: 100%; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- логотип и шапка ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo-glyph { fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.logo-word { font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.logo-word b { font-weight: 800; }
.logo-sub { font-weight: 400; color: var(--muted); }
.site-header, .admin-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a, .admin-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .admin-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; height: 40px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line-strong); }
.lang:hover { border-color: var(--ink); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 48px; overflow: hidden;
  background:
    radial-gradient(55% 70% at 88% 18%, var(--glow-1), transparent 65%),
    radial-gradient(45% 60% at 5% 95%, var(--glow-2), transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px var(--warm-soft); }
.hero h1 { font-size: clamp(42px, 6vw, 74px); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 24px; }
.hero h1 em { font-style: italic; background: linear-gradient(90deg, var(--accent), var(--warm)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-visual { margin: 0; }
.hero-visual svg { width: 100%; height: auto; overflow: visible; }
.stop-a { stop-color: var(--warm); }
.stop-b { stop-color: var(--accent); }
.grid-lines line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
.globe { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; stroke-opacity: .4; }
.globe-line { fill: none; stroke: var(--accent); stroke-opacity: .35; stroke-width: 1.2; }
.route { fill: none; stroke: url(#route); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s .2s ease-out forwards; }
.node circle { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.node:first-of-type circle { stroke: var(--warm); }
.node-end circle { fill: var(--accent); stroke: var(--surface); }
.node text { font: 650 14px var(--sans); fill: var(--ink-2); text-anchor: middle; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .route { animation: none; stroke-dashoffset: 0; } html { scroll-behavior: auto; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 56px 0 0; border-top: 1px solid var(--line-strong); }
.stats > div { padding: 24px 24px 0 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -.01em; }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- секции ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-2); }
.section-lead { font-size: 19px; color: var(--ink-2); max-width: 700px; margin-bottom: 40px; }
.cards { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); margin: 0; }
.svc-num { display: inline-block; font: 800 13px var(--sans); color: var(--warm); margin-bottom: 18px; letter-spacing: .08em; }

/* задачи (крючки) */
.hooks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hook { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.hook:hover { transform: translateY(-2px); border-color: var(--accent); }
.hook h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0; }
.hook h3 a { color: var(--ink); text-decoration: none; }
.hook h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hook p { color: var(--ink-2); font-size: 15px; margin: 0; flex: 1; }
.hook-links { display: flex; gap: 18px; position: relative; z-index: 1; font-size: 14px; font-weight: 700; }
.hook-links a { text-decoration: none; }
.ladder { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.ladder li { padding: 18px 22px; display: flex; flex-direction: column; gap: 2px; }
.ladder li + li { border-left: 1px solid var(--line); }
.ladder li:first-child b { color: var(--warm); }
.ladder li:last-child { background: linear-gradient(120deg, #4a2ff0, #7a3df0); color: #fff; }
.ladder b { font-size: 16px; }
.ladder span { font-size: 14px; color: var(--muted); }
.ladder li:last-child span { color: #e6e0ff; }
.chip.flash span { animation: chipflash 1.2s ease; }
@keyframes chipflash { 0%, 60% { box-shadow: 0 0 0 4px var(--warm); } 100% { box-shadow: none; } }

/* отрасли */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.industry h3 { font-size: 17px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.industry h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; }
.industry:nth-child(4n+2) h3::before { background: var(--warm); }
.industry:nth-child(4n+3) h3::before { background: var(--sun); }
.industry:nth-child(4n+4) h3::before { background: var(--good); }
.industry p { margin: 0; font-size: 15px; color: var(--ink-2); }
.industry-wide { background: var(--accent-soft); border-color: transparent; }

/* как работаем */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.steps li { counter-increment: step; padding: 0 20px 0 0; position: relative; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); font: 800 17px var(--sans); color: var(--accent); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--warm)); opacity: .5; }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--warm); border-color: var(--warm); color: #fff; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* условия */
.section-dark { background: linear-gradient(140deg, var(--deep) 0%, var(--deep-2) 100%); color: var(--on-deep); position: relative; overflow: hidden; }
.section-dark::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 61, .35), transparent 70%); pointer-events: none; }
.section-dark .wrap { position: relative; z-index: 1; }
.section-dark .kicker { color: var(--sun); }
.section-dark .section-lead { color: var(--on-deep-muted); }
.term { border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 28px; background: rgba(255, 255, 255, .06); }
.term p { color: var(--on-deep-muted); margin: 0; }
.term .term-num { font-family: var(--serif); font-size: 30px; font-weight: 600; color: #fff; margin-bottom: 6px; line-height: 1.1; }
.term h3 { font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.term-accent { background: linear-gradient(150deg, #ff6b3d, #e8456a); border-color: transparent; }
.term-accent h3 { color: #fff; }
.term-accent p { color: #fff1ec; }
.fine { margin-top: 28px; font-size: 14px; color: var(--on-deep-muted); max-width: 720px; }

/* ---------- формы ---------- */
.apply-grid, .inv-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.apply-intro { position: sticky; top: 100px; }
.private-note { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.private-note svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--good); stroke-width: 2; stroke-linejoin: round; margin-top: 2px; }
.form { padding: 32px; }
.form h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 18px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding: 0; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 15px; font-weight: 650; margin-bottom: 7px; }
.field > span i { color: var(--warm); font-style: normal; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
input[type=text], input:not([type]), input[type=email], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 16px/1.4 var(--sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
::placeholder { color: var(--muted); opacity: .85; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 14px; color: var(--ink-2); background: var(--surface); transition: all .15s ease; user-select: none; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--warm); outline-offset: 2px; }
.file { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; position: relative; background: var(--surface); }
.file:hover { border-color: var(--accent); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-btn { padding: 9px 16px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.file-name { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name.has-file { color: var(--ink); }
.file-error { display: block; color: var(--bad); margin-top: 6px; font-size: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ticks, .numlist { padding: 0; margin: 0; }
.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.numlist { list-style: none; counter-reset: n; }
.numlist li { counter-increment: n; position: relative; padding-left: 40px; margin-bottom: 14px; color: var(--ink-2); }
.numlist li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--warm-soft); color: var(--warm); font: 800 14px/26px var(--sans); text-align: center; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 28px; font-weight: 300; color: var(--warm); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 720px; }

/* ---------- страницы задач ---------- */
.topic-hero { padding: 56px 0 64px; }
.topic-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.topic-grid h2, .topic-result h2 { font-size: 24px; margin-bottom: 18px; }
.topic-result { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.topic-format { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.topic-format span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.topic-format b { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); }
.topic-format small { color: var(--ink-2); font-size: 14px; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.related a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- CTA и подвал ---------- */
.cta-band { background: linear-gradient(110deg, #4a2ff0 0%, #7a3df0 45%, #ff6b3d 100%); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { margin-bottom: 8px; font-size: clamp(26px, 3.4vw, 40px); }
.cta-band p { margin: 0; color: #f1edff; font-size: 18px; }
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--line); background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr 1fr; gap: 32px; }
.footer-brand p { margin: 14px 0 18px; font-size: 15px; color: var(--ink-2); max-width: 320px; }
.site-footer h4 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 15px; }
.site-footer li a { color: var(--ink-2); text-decoration: none; }
.site-footer li a:hover { color: var(--accent); }
.disclaimer-text { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* ---------- внутренние страницы ---------- */
.page { padding: 64px 0 96px; }
.page-title { font-size: clamp(32px, 4.4vw, 48px); }
.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; margin: 0 0 28px; }
.summary dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.summary dd { margin: 4px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.pill-shortlisted, .pill-packaging, .pill-offered, .pill-active { background: rgba(10, 138, 99, .12); color: var(--good); }
.pill-declined { background: rgba(192, 53, 47, .1); color: var(--bad); }
.pill-reviewing, .pill-contacted { background: rgba(181, 102, 15, .12); color: var(--warn); }
.review { margin-bottom: 32px; }
.review h2 { font-size: 28px; }
.review-pending { display: flex; gap: 14px; align-items: center; color: var(--ink-2); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.score { display: flex; align-items: center; gap: 18px; margin: 6px 0 22px; flex-wrap: wrap; }
.score-num { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; }
.score-num small { font-size: 22px; color: var(--muted); }
.score-bar { display: flex; gap: 4px; }
.score-bar i { width: 16px; height: 8px; border-radius: 3px; background: var(--line); }
.score-bar i.on { background: linear-gradient(90deg, var(--warm), var(--accent)); }
.score-label { width: 100%; color: var(--muted); font-size: 14px; margin-top: -8px; }
.review h3 { margin-top: 22px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.review ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.review li { margin-bottom: 6px; }
.review .disclaimer { font-size: 14px; color: var(--muted); margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.errors { color: var(--bad); padding-left: 20px; }
.prose h2 { font-family: var(--sans); font-size: 20px; font-weight: 700; margin-top: 32px; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------- админка ---------- */
.admin-nav { display: flex; gap: 20px; margin-left: auto; }
.admin-main { padding: 32px 24px 80px; }
.admin h1 { font-family: var(--sans); font-size: 26px; font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar input, .toolbar select { width: auto; min-height: 40px; padding: 8px 12px; }
.toolbar .btn { min-height: 40px; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.counts a { text-decoration: none; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 650; }
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin .card + .card { margin-top: 20px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(10, 138, 99, .12); color: var(--good); margin-bottom: 18px; }


/* ---------- карта «Куда идут деньги» ---------- */
.section-market { background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%); }
.mk-notice { max-width: 860px; margin: -16px 0 28px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--warm-soft); color: var(--ink-2); font-size: 15px; border-left: 4px solid var(--warm); }
.mk-controls { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chip, .mk-seg button { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: 600 14px var(--sans); cursor: pointer; transition: all .15s ease; }
.mk-chip:hover, .mk-seg button:hover { border-color: var(--accent); color: var(--accent); }
.mk-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mk-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-strong); }
.mk-seg button { border: 0; padding: 7px 14px; white-space: nowrap; flex: none; }
.mk-seg { max-width: 100%; overflow-x: auto; }
.mk-controls > * { min-width: 0; }
.mk-seg button.on { background: var(--ink); color: var(--bg); }
.mk-body { display: grid; grid-template-columns: 1fr; gap: 18px; }
.mk-map { position: relative; padding: 14px; overflow: hidden; }
.mk-svg { width: 100%; height: clamp(280px, 36vw, 440px); display: block; border-radius: 12px; background: var(--surface-2); }
.mk-land path { fill: var(--line); stroke: var(--surface); stroke-width: .7; transition: fill .2s ease; vector-effect: non-scaling-stroke; }
.mk-b path, .mk-b circle { vector-effect: non-scaling-stroke; }
.mk-empty { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 2; max-width: 80%; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); color: var(--ink-2); font-size: 15px; text-align: center; }
.mk-controls { min-height: 92px; }
.mk-panel { min-height: 520px; }
.mk-views { max-width: calc(100% - 48px); overflow-x: auto; position: absolute; top: 24px; left: 24px; z-index: 2; display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.mk-views button { border: 0; padding: 6px 12px; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 13px var(--sans); cursor: pointer; white-space: nowrap; }
.mk-views button.on { background: var(--accent); color: var(--accent-ink); }
.mk-land path.has { fill: var(--line-strong); }
.mk-land path.sel { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; }
.mk-b { cursor: pointer; outline: none; }
.mk-disc, .mk-slice { stroke: #fff; stroke-width: 1.2; fill-opacity: .92; transition: opacity .15s ease; }
.mk-ring { stroke: #fff; stroke-width: 1.4; }
.mk-b:hover .mk-disc, .mk-b:hover .mk-slice, .mk-b:focus-visible .mk-disc, .mk-b:focus-visible .mk-slice { fill-opacity: 1; stroke: var(--ink); stroke-width: 2; }
.mk-b.sel .mk-disc, .mk-b.sel .mk-ring { stroke: var(--ink); stroke-width: 2.5; }
.mk-undisclosed { fill: var(--muted); fill-opacity: .55; stroke: #fff; stroke-width: 1; }
.mk-tip { position: absolute; z-index: 2; pointer-events: none; padding: 8px 11px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1.4; box-shadow: var(--shadow); white-space: nowrap; }
.mk-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.mk-legend-title { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-size: 11.5px; margin-right: 4px; }
.mk-legend-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mk-legend-item i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.mk-panel { padding: 24px; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 28px; align-items: start; }
.mk-col > :first-child { margin-top: 0; }
.mk-panel .mk-status { grid-column: 1 / -1; }
.mk-panel h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 14px; }
.mk-panel h4 { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.mk-back { border: 0; background: none; color: var(--accent); font: 700 14px var(--sans); cursor: pointer; padding: 0; margin-bottom: 8px; }
.mk-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mk-kpi div { padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.mk-kpi b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.mk-kpi span { font-size: 13px; color: var(--muted); }
.mk-split { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 16px 0 8px; background: var(--line); }
.mk-split .eq, .mk-split-legend i.eq { background: var(--accent); }
.mk-split .de, .mk-split-legend i.de { background: var(--warm); }
.mk-split .gr, .mk-split-legend i.gr { background: var(--sun); }
.mk-split-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.mk-split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.mk-rank { list-style: none; margin: 0; padding: 0; }
.mk-rank button { position: relative; width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; margin-bottom: 4px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; overflow: hidden; text-align: left; }
.mk-rank button:hover { background: var(--surface-2); }
.mk-rank button span, .mk-rank button em { position: relative; z-index: 1; font-style: normal; }
.mk-rank button em { color: var(--ink-2); font-weight: 700; }
.mk-rank button i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); border-radius: 8px; }
.mk-list { margin: 0; padding-left: 20px; font-size: 14px; }
.mk-list li { margin-bottom: 7px; color: var(--ink-2); }
.mk-list li span { color: var(--ink); font-weight: 600; }
.mk-list li em { font-style: normal; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.mk-list small { color: var(--muted); font-weight: 400; }
.mk-list a { color: var(--ink); }
.mk-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.mk-source { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.mk-source a { color: var(--muted); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .cards-4, .industries, .ladder { grid-template-columns: repeat(2, 1fr); }
  .ladder li + li { border-left: 0; }
  .ladder li:nth-child(even) { border-left: 1px solid var(--line); }
  .ladder li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s ease;
  }
  .nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .hero { padding-top: 40px; }
  .hero-grid, .apply-grid, .inv-grid, .admin-grid, .topic-grid, .topic-result, .mk-body { grid-template-columns: 1fr; gap: 32px; }
  .mk-panel { grid-template-columns: 1fr 1fr; min-height: 760px; }
  .mk-panel .mk-col:first-child { grid-column: 1 / -1; }
  .topic-grid { gap: 18px; }
  .hero-visual { max-width: 480px; }
  .apply-intro { position: static; }
  .cards-3, .hooks { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 0 0 26px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps li::after { top: 44px; bottom: 0; left: 21px; width: 2px; height: auto; right: auto; background: var(--line); opacity: 1; }
  .steps h3 { margin-top: 10px; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { display: none; }
  .logo-word { font-size: 19px; }
  .site-header .logo-sub { display: none; }
  .lead { font-size: 18px; }
  .cards-3, .cards-4, .row-2, .summary, .hooks, .ladder, .industries, .footer-grid { grid-template-columns: 1fr; }
  .ladder li + li, .ladder li:nth-child(even) { border-left: 0; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .stats > div, .stats > div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stats dt { font-size: 28px; }
  .card, .form { padding: 22px; }
  .mk-map { padding: 8px; }
  .mk-panel { grid-template-columns: 1fr; gap: 8px; min-height: 1150px; }
  .mk-controls { min-height: 104px; }
  .mk-svg { height: 260px; }
  .mk-views { top: 14px; left: 14px; }
  .mk-views button { padding: 5px 10px; font-size: 12px; }
  .mk-controls { align-items: flex-start; }
  .mk-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .mk-chip { white-space: nowrap; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .admin-nav { gap: 12px; font-size: 14px; }
  .admin-header .logo-word { display: none; }
}
