/* avto-investor.ru — «Позиция-Партнёр 15/30». Тёмная тема, без зависимостей, системный шрифт. */
:root {
  --bg: #0d0e12;
  --panel: #111318;
  --card: #14161c;
  --line: #1f2229;
  --line2: #23262e;
  --line3: #2a2d36;
  --line4: #3a3f4c;
  --text: #c9ced8;
  --head: #f2f3f5;
  --muted: #9aa3b0;
  --dim: #7d8594;
  --accent: #7c9bff;
  --blue: #2559fd;
  --violet: #662df7;
  --ok: #4ade80;
  --bad: #f87171;
  --warn: #fbbf24;
  --grad: linear-gradient(90deg, #2559fd 0%, #662df7 100%);
  --grad-text: linear-gradient(90deg, #5b82ff 0%, #9b6bff 100%);
  --r: 16px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--head); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 12px; font-weight: 650; font-size: 16px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: .15s; font-family: inherit; }
.btn:hover { text-decoration: none; }
.btn--main { background: var(--grad); color: #fff; }
.btn--main:hover { filter: brightness(1.12); }
.btn--ghost { border-color: var(--line4); color: var(--head); background: transparent; }
.btn--ghost:hover { border-color: #5b82ff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 10px; }

/* Шапка (не fixed: прокручивается вместе со страницей) */
.hdr { border-bottom: 1px solid var(--line); background: rgba(13,14,18,.92); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--head); font-weight: 750; font-size: 17px; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--dim); letter-spacing: .02em; }
.nav { display: none; gap: 24px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--head); text-decoration: none; }
.nav a[aria-current] { color: var(--head); }
@media (min-width: 900px) { .nav { display: flex; } }
.hdr__cta { white-space: nowrap; }
@media (max-width: 480px) { .logo { font-size: 15px; } .logo small { display: none; } }
@media (max-width: 380px) { .hdr__cta { padding: 8px 12px; font-size: 14px; } }
.mnav { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; font-size: 14px; scrollbar-width: none; }
.mnav::-webkit-scrollbar { display: none; }
.mnav a { color: var(--muted); white-space: nowrap; }
@media (min-width: 900px) { .mnav { display: none; } }

/* Секции */
.sec { padding: 64px 0; }
@media (min-width: 768px) { .sec { padding: 96px 0; } }
.sec--alt { background: var(--panel); border-top: 1px solid var(--line); }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }
.h2 { margin-top: 12px; font-size: 26px; font-weight: 800; }
@media (min-width: 768px) { .h2 { font-size: 38px; } }
.lead-p { margin-top: 20px; font-size: 18px; line-height: 1.65; max-width: 720px; }
.narrow { max-width: 760px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .g3l { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) and (max-width: 1023px) { .g3l { grid-template-columns: 1fr 1fr; } }
.split { display: grid; gap: 40px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; align-items: center; } }
.card { border: 1px solid var(--line2); background: var(--panel); border-radius: var(--r); padding: 24px; }
.card--dark { background: var(--bg); }
.card__t { font-size: 18px; font-weight: 700; color: var(--head); }
.card__d { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt40 { margin-top: 40px; }
.note { margin-top: 12px; font-size: 13px; color: var(--dim); }

/* Первый экран */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 85% 20%, rgba(102,45,247,.35) 0%, transparent 70%), radial-gradient(50% 50% at 10% 90%, rgba(37,89,253,.28) 0%, transparent 70%); }
.hero__in { position: relative; display: grid; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 768px) { .hero__in { padding-top: 80px; padding-bottom: 80px; } }
@media (min-width: 1024px) { .hero__in { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.hero h1 { margin-top: 16px; font-size: 36px; font-weight: 800; line-height: 1.06; letter-spacing: -.02em; }
@media (min-width: 768px) { .hero h1 { font-size: 56px; } }
.hero__p { margin-top: 20px; font-size: 18px; line-height: 1.65; max-width: 600px; }
.hero__btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slot { border: 1px solid var(--line3); background: rgba(20,22,28,.9); border-radius: var(--r); padding: 16px; }
.slot__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slot__k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.pill { border-radius: 999px; background: rgba(74,222,128,.15); color: var(--ok); font-size: 11px; font-weight: 650; padding: 2px 8px; }
.slot__row { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.dot { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); flex: none; }
.slot__l { font-size: 14px; font-weight: 650; color: var(--head); line-height: 1.3; }
.slot__s { font-size: 12px; color: var(--muted); }
.slot__n { margin-top: 12px; font-size: 30px; font-weight: 800; color: var(--head); }
.cover { margin-top: 12px; border-radius: var(--r); background: var(--grad); padding: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cover p { color: rgba(255,255,255,.85); font-size: 14px; }
.cover small { display: block; color: rgba(255,255,255,.7); font-size: 12px; }
.cover b { color: #fff; font-size: 48px; font-weight: 800; line-height: 1; }

/* Три цифры */
.nums { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nums__in { display: grid; padding-top: 8px; padding-bottom: 8px; }
@media (min-width: 768px) { .nums__in { grid-template-columns: repeat(3, 1fr); } }
.num { padding: 28px 8px; }
@media (min-width: 768px) { .num { padding: 32px; } }
.num b { display: block; font-size: 48px; font-weight: 800; line-height: 1.1; }
.num p { margin-top: 8px; font-weight: 650; color: var(--head); }
.num span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Шаги */
.steps { list-style: none; margin: 40px 0 0; padding: 0; }
.steps li { border: 1px solid var(--line2); background: var(--bg); border-radius: var(--r); padding: 24px; }
.steps i { font-style: normal; font-size: 14px; font-weight: 700; color: var(--accent); }

/* Списки с галочками */
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.ic { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.ic--ok { color: var(--ok); } .ic--no { color: var(--bad); }

/* Паспорт позиции */
.pass { border: 1px solid var(--line2); background: var(--panel); border-radius: 24px; padding: 24px; }
@media (min-width: 768px) { .pass { padding: 32px; } }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--dim); }
.pass__t { margin-top: 4px; font-size: 20px; font-weight: 700; color: var(--head); }
.lbl { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 60px; padding: 8px 6px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.sw:hover { background: rgba(255,255,255,.05); }
.sw[aria-checked="true"] { background: rgba(37,89,253,.15); color: var(--head); }
.sw__c { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.sw[aria-checked="true"] .sw__c { border-color: #5b82ff; box-shadow: 0 0 0 2px rgba(91,130,255,.6); }
.sw__b { position: absolute; right: -4px; top: -4px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; padding: 0 6px; }
.tr { border: 1px solid var(--line3); border-radius: 10px; padding: 8px 12px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.tr:hover { border-color: var(--line4); }
.tr[aria-checked="true"] { border-color: #5b82ff; background: rgba(37,89,253,.15); color: var(--head); }
.tr small { margin-left: 6px; font-size: 11px; color: var(--dim); }
.verdict { margin-top: 24px; border-radius: var(--r); padding: 16px; border: 1px solid rgba(74,222,128,.3); background: rgba(74,222,128,.05); }
.verdict b { color: var(--ok); }
.verdict.is-out { border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.05); }
.verdict.is-out b { color: var(--bad); }
.verdict p { margin-top: 4px; font-size: 14px; }
.pass__stats { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line2); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.pass__stats b { display: block; font-size: 24px; font-weight: 800; color: var(--head); }
.pass__stats span { font-size: 12px; color: var(--muted); }

/* Калькулятор */
.calc { margin-top: 40px; display: grid; gap: 24px; border: 1px solid var(--line3); background: var(--card); border-radius: 24px; padding: 20px; }
@media (min-width: 768px) { .calc { grid-template-columns: 1.1fr 1fr; padding: 32px; } }
.calc__slots { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { text-align: left; border: 1px solid var(--line3); background: transparent; border-radius: 12px; padding: 12px 14px; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.opt b { display: block; font-size: 17px; color: var(--head); }
.opt[aria-pressed="true"] { border-color: var(--blue); background: rgba(37,89,253,.15); }
.rng { display: block; margin-top: 24px; }
.rng__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 650; color: var(--muted); }
.rng__h output { font-size: 16px; font-weight: 700; color: var(--head); white-space: nowrap; }
.rng input { margin-top: 12px; width: 100%; accent-color: var(--blue); }
.calc__res { display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--r); background: linear-gradient(135deg, #2559fd 0%, #662df7 100%); padding: 24px; color: rgba(255,255,255,.85); }
.calc__res .big { margin-top: 8px; font-size: 38px; font-weight: 800; color: #fff; letter-spacing: -.01em; line-height: 1.1; }
@media (min-width: 768px) { .calc__res .big { font-size: 46px; } }
.calc__res small { display: block; margin-top: 24px; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.78); }

/* Таблицы */
.tbl-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line2); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.tbl-wrap table { min-width: 560px; }
th { background: var(--bg); color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; padding: 12px 16px; }
td { padding: 13px 16px; border-top: 1px solid var(--line2); vertical-align: top; }
td.r, th.r { text-align: right; } td.b { font-weight: 700; color: var(--head); } .nw { white-space: nowrap; }

/* Кабинет */
.cab { border: 1px solid var(--line2); background: var(--panel); border-radius: 24px; padding: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.4); }
.cab__dots { display: flex; gap: 6px; padding-bottom: 16px; }
.cab__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line4); }
.cab__k { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 768px) { .cab__k { grid-template-columns: repeat(4, 1fr); } }
.cab__k div { border-radius: 12px; background: var(--bg); padding: 12px; }
.cab__k b { display: block; font-size: 18px; font-weight: 800; color: var(--head); }
.cab__k span { font-size: 11px; color: var(--dim); }
.cab__rows { margin-top: 16px; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; font-size: 12px; }
.cab__rows div { display: grid; grid-template-columns: 1.3fr 1fr .6fr 1fr; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line2); }
.cab__rows div:first-child { border-top: 0; }
.cab__rows span:last-child { text-align: right; font-weight: 650; }

/* Предупреждение */
.warnbox { margin-top: 16px; border: 1px solid rgba(245,158,11,.3); background: rgba(245,158,11,.05); border-radius: var(--r); padding: 24px; }
.warnbox b { color: var(--warn); }
.warnbox p { margin-top: 8px; font-size: 15px; }

/* FAQ */
.faq { margin-top: 32px; border: 1px solid var(--line2); background: var(--panel); border-radius: var(--r); }
.faq details { padding: 0 20px; border-top: 1px solid var(--line2); }
.faq details:first-child { border-top: 0; }
@media (min-width: 768px) { .faq details { padding: 0 24px; } }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 650; color: var(--head); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--accent); transition: transform .15s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; font-size: 15px; color: var(--muted); }

/* Заявка */
.apply { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.apply::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 50% 0%, rgba(37,89,253,.22) 0%, transparent 70%); }
.apply__in { position: relative; display: grid; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) { .apply__in { padding-top: 96px; padding-bottom: 96px; } }
@media (min-width: 1024px) { .apply__in { grid-template-columns: 1fr 440px; align-items: start; } }
.formbox { border-radius: 24px; background: #fff; color: #111827; padding: 24px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); }
@media (min-width: 768px) { .formbox { padding: 28px; } }
.formbox__t { font-size: 20px; font-weight: 800; color: #111827; }
.formbox__s { margin: 4px 0 20px; font-size: 14px; color: #6b7280; }
.lead { display: grid; gap: 12px; }
.lead label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #374151; }
.lead input[type=text], .lead input[type=tel], .lead textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 16px; color: #111827; background: #fff; }
.lead textarea { min-height: 88px; resize: vertical; }
.lead input:focus, .lead textarea:focus { outline: 2px solid #2559fd; outline-offset: 1px; border-color: #2559fd; }
.lead [aria-invalid="true"] { border-color: #dc2626; }
.lead .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: #4b5563; line-height: 1.45; }
.lead .agree input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: #2559fd; }
.lead .agree a { color: #2559fd; }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead button { width: 100%; }
.lead button:disabled { opacity: .6; cursor: default; }
.lead__status { min-height: 1em; font-size: 14px; }
.lead__status.is-err { color: #dc2626; }
.lead__status.is-ok { color: #15803d; font-weight: 650; font-size: 16px; }
.lead.is-done label, .lead.is-done button { display: none; }
.disclaimer { position: relative; padding-bottom: 40px; font-size: 12px; color: #5f6673; }

/* Статьи */
.crumbs { padding-top: 20px; font-size: 13px; color: var(--dim); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line4); }
.crumbs a { color: var(--muted); }
.art { padding: 24px 0 64px; }
.art__h1 { font-size: 30px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
@media (min-width: 768px) { .art__h1 { font-size: 44px; } }
.art__meta { margin-top: 14px; font-size: 14px; color: var(--dim); }
.art__lead { margin-top: 20px; font-size: 19px; line-height: 1.6; color: var(--head); }
.toc { margin-top: 28px; border: 1px solid var(--line2); background: var(--panel); border-radius: var(--r); padding: 18px 22px; }
.toc p { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.toc a { color: var(--text); }
.prose { margin-top: 8px; font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 44px; font-size: 25px; font-weight: 800; scroll-margin-top: 20px; }
@media (min-width: 768px) { .prose h2 { font-size: 29px; } }
.prose h3 { margin-top: 28px; font-size: 20px; font-weight: 700; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--head); }
.prose blockquote { margin: 20px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--violet); color: var(--head); font-style: italic; }
.prose table { font-size: 15px; }
.prose .tbl-wrap table { min-width: 520px; }
.prose a { text-decoration: underline; text-decoration-color: rgba(124,155,255,.4); text-underline-offset: 3px; }
.cta { margin-top: 28px !important; border-radius: var(--r); padding: 22px; background: linear-gradient(135deg, rgba(37,89,253,.18), rgba(102,45,247,.18)); border: 1px solid rgba(124,155,255,.3); display: grid; gap: 14px; }
.cta p { color: var(--head); font-size: 17px; line-height: 1.55; }
.cta .btn { justify-self: start; text-decoration: none; }
.related { margin-top: 48px; }
.related h2 { font-size: 22px; }
.alist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .alist { grid-template-columns: 1fr 1fr; } }
.alist li { border: 1px solid var(--line2); background: var(--panel); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; }
.alist a.t { font-size: 19px; font-weight: 700; color: var(--head); line-height: 1.3; }
.alist p { margin-top: 10px; font-size: 15px; color: var(--muted); flex: 1; }
.alist time { margin-top: 12px; font-size: 13px; color: var(--dim); }

/* Подвал */
.ftr { border-top: 1px solid var(--line); background: var(--panel); padding: 40px 0; font-size: 14px; color: var(--dim); }
.ftr__in { display: grid; gap: 24px; }
@media (min-width: 768px) { .ftr__in { grid-template-columns: 1.4fr 1fr 1fr; } }
.ftr b { display: block; color: var(--head); margin-bottom: 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr a { color: var(--muted); }
.ftr__legal { margin-top: 28px; font-size: 12px; line-height: 1.6; }

/* Простые страницы */
.page { padding: 24px 0 64px; }
.page h1 { font-size: 30px; font-weight: 800; }
@media (min-width: 768px) { .page h1 { font-size: 40px; } }
.e404 { padding-top: 96px; padding-bottom: 96px; text-align: center; }
.e404 b { display: block; font-size: 88px; font-weight: 800; line-height: 1; }
.e404 .hero__btns { justify-content: center; }
.sm-only { display: none; }
@media (max-width: 480px) { .lg-only { display: none; } .sm-only { display: inline; } .logo span { white-space: nowrap; } }
