/* KapitalOS — премиальная дизайн-система лендинга (refero). Общая для index/about/blog. */

:root {
  --brand-50: #eef2ff; --brand-100: #e0e7ff; --brand-200: #c7d2fe; --brand-400: #4f6bf0;
  --brand-500: #2563eb; --brand-600: #1e40af; --brand-700: #1b3a9e; --brand-800: #16307f;
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #1e40af 60%, #16307f 100%);
  --grad-ink: linear-gradient(165deg, #142a63 0%, #0c1733 70%);
  --ink: #0a1020; --bg: #ffffff; --bg-2: #f5f7fb; --surface: #ffffff;
  --text: #0a1020; --muted: #555f73; --faint: #8b94a6; --line: #e7ebf3; --line-2: #eef1f7;
  --pos: #0c9e6e; --pos-soft: #e6f6ef; --neg: #dc2626; --warn: #d97706;
  --sh-1: 0 1px 2px rgba(10,16,32,.04), 0 6px 16px -8px rgba(10,16,32,.10);
  --sh-2: 0 2px 4px rgba(10,16,32,.05), 0 18px 40px -18px rgba(16,30,70,.20);
  --sh-3: 0 4px 8px rgba(10,16,32,.06), 0 40px 80px -28px rgba(16,30,70,.34);
  --sh-brand: 0 8px 24px -8px rgba(30,64,175,.45);
  --rs: 10px; --rm: 14px; --rl: 20px; --rx: 26px;
  --maxw: 1200px;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --e: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; letter-spacing: -0.012em; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--brand-100); color: var(--brand-700); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sec { padding: 100px 0; position: relative; }
.sec--tight { padding: 60px 0; }
/* Ритм секций: чередуем белый / лёгкий тинт / тёмную драматичную секцию */
.sec--tint { background: #f1f5fd; border-top: 1px solid #e8eef9; border-bottom: 1px solid #e8eef9; }
.sec--dark { background: var(--grad-ink); color: #fff; position: relative; }
.sec--dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background: radial-gradient(40% 60% at 82% 18%, rgba(37,99,235,.4), transparent 60%); }
.sec--dark > .wrap { position: relative; z-index: 1; }
.sec--dark .h2 { color: #fff; }
.sec--dark .lead { color: #aeb8d4; }
.sec--dark .eyebrow { color: #a9c0ff; background: rgba(99,130,255,.14); border-color: rgba(99,130,255,.24); }
.sec--dark .spot__list strong { color: #fff; }
.sec--dark .spot__list p { color: #99a5c3; }
.sec--dark .spot__list .b { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.sec--dark .spot__list svg { stroke: #8fb0ff; }
.sec--dark .card { color: var(--text); } /* белые карточки на тёмной секции — текст обратно тёмный */
/* широкая светлая плитка + теги-детали в бенто */
.f-w2 { grid-column: span 2; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feat-tags span { font-size: 12.5px; font-family: var(--mono); color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 6px 11px; border-radius: 8px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }

/* Типографика */
h1, h2, h3 { letter-spacing: -0.04em; line-height: 1.04; font-weight: 800; }
.display { font-size: clamp(46px, 6.4vw, 86px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.96; }
.h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 800; letter-spacing: -0.045em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); line-height: 1.6; letter-spacing: -0.012em; }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-700); background: rgba(37,99,235,.07); border: 1px solid rgba(37,99,235,.14); padding: 8px 15px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-brand); flex-shrink: 0; }
.eyebrow svg { width: 14px; height: 14px; flex-shrink: 0; }
.eyebrow .dot.live { position: relative; background: #16a34a; }
.eyebrow .dot.live::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #16a34a; animation: pulse 2.2s var(--e) infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(2.5); opacity: 0; } }

/* Полоса цифр доверия */
.stats { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--rl); box-shadow: var(--sh-2); overflow: hidden; }
.stat { padding: 28px 26px; border-left: 1px solid var(--line-2); }
.stat:first-child { border-left: 0; }
.stat .si { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); margin-bottom: 14px; }
.stat .si svg { width: 19px; height: 19px; }
.stat .sv { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; display: flex; align-items: baseline; gap: 3px; }
.stat .sv .u { font-size: 17px; color: var(--brand-600); font-weight: 700; letter-spacing: -0.02em; }
.stat .sl { font-size: 13.5px; color: var(--muted); margin-top: 9px; line-height: 1.4; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(odd) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line-2); } }

/* «Живые» анимации: заполнение полосок капитала + прорисовка графика */
.cap .bar i, .capmap__bar i { transition: width 1.2s var(--e); }
.sec-head { max-width: 720px; margin: 0 auto 68px; text-align: center; }
.sec-head .h2 { margin: 20px 0 16px; }
.pos { color: var(--pos); } .neg { color: var(--neg); } .muted { color: var(--muted); }

/* Кнопки — как в кабинете: квадратные, градиент, синее свечение */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--sans);
  font-size: 15px; font-weight: 600; padding: 0.7rem 1.15rem; min-height: 46px; border: 1px solid var(--line); border-radius: var(--rs);
  background: #fff; color: var(--text); cursor: pointer; transition: transform .18s var(--e), box-shadow .22s var(--e), border-color .18s var(--e), color .18s var(--e); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-grad { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--sh-brand); }
.btn-grad:hover { box-shadow: 0 16px 34px -8px rgba(30,64,175,.5); }
.btn-out:hover { border-color: var(--brand-400); color: var(--brand-600); box-shadow: var(--sh-1); }
.btn-lg { min-height: 54px; padding: 0.95rem 1.7rem; font-size: 16px; border-radius: var(--rm); }
.btn-block { width: 100%; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rl); box-shadow: var(--sh-1); }
.ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.ico svg { width: 23px; height: 23px; }
.ico-grad { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-brand); }
.ico-soft { background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--e), transform .7s var(--e); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } .floaty { animation: none !important; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line-2); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.logo__mark { width: 35px; height: 35px; border-radius: 10px; background: var(--grad-brand); display: grid; place-items: center; box-shadow: var(--sh-brand); }
.logo__mark svg { width: 19px; height: 19px; }
.logo__os { color: var(--brand-600); }
.nav-links { display: flex; gap: 2px; margin-left: 16px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 9px 13px; border-radius: 9px; transition: .16s; }
.nav-links a:hover { color: var(--text); background: rgba(16,30,70,.05); }
.nav-links .nav-m { display: none; }
.nav-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-act .lk { font-size: 14.5px; font-weight: 600; padding: 10px 14px; border-radius: var(--rs); }
.nav-act .lk:hover { background: rgba(16,30,70,.05); }
.burger { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.burger svg { width: 22px; height: 22px; stroke: var(--text); }

/* Hero */
.hero { padding: 84px 0 0; text-align: center; position: relative; }
.hero::before { content: ""; position: absolute; inset: -40px 0 auto 0; height: 900px; z-index: -2; pointer-events: none;
  background:
    radial-gradient(46% 38% at 50% 0%, rgba(37,99,235,.18), transparent 62%),
    radial-gradient(30% 26% at 16% 14%, rgba(79,107,240,.12), transparent 60%),
    radial-gradient(30% 26% at 84% 16%, rgba(37,99,235,.12), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 720px; z-index: -2; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(16,30,70,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(16,30,70,.045) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(64% 54% at 50% 18%, #000, transparent 76%); }
.hero h1 { margin: 26px auto 24px; max-width: 16ch; }
.hero .lead { max-width: 600px; margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 36px 0 20px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .chk { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-50); }
.trust .chk svg { width: 12px; height: 12px; stroke: var(--brand-600); }

/* Hero — showcase дашборда */
.show { position: relative; margin-top: 72px; padding-bottom: 8px; }
.show::before { content: ""; position: absolute; left: 50%; top: 8%; width: 86%; height: 84%; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(37,99,235,.30), transparent 75%); filter: blur(46px); }
.show__inner { max-width: 1120px; margin: 0 auto; position: relative; }
.float { position: absolute; z-index: 3; padding: 15px 17px; border-radius: var(--rm); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); }
.float--a { left: -30px; top: 56%; width: 218px; }
.float--b { right: -26px; top: 30%; width: 188px; }
.float .fl { font-size: 11.5px; color: var(--faint); font-weight: 500; }
.float .fv { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin-top: 2px; }
.pill-up { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--pos); background: var(--pos-soft); padding: 3px 8px; border-radius: 999px; }
.pill-up svg { width: 12px; height: 12px; }
.floaty { animation: fl 7s ease-in-out infinite; }
.floaty.d { animation-delay: -3.5s; }
@keyframes fl { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* === Дашборд-мокап (как в кабинете) === */
.mock { border-radius: var(--rx); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); display: flex; }
.mock__side { width: 68px; background: #fbfcfe; border-right: 1px solid var(--line-2); padding: 18px 0; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.mock__logo { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand); display: grid; place-items: center; margin-bottom: 10px; box-shadow: var(--sh-brand); }
.mock__logo svg { width: 18px; height: 18px; }
.mside-i { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--faint); }
.mside-i svg { width: 20px; height: 20px; }
.mside-i.on { background: var(--brand-50); color: var(--brand-600); }
.mock__main { flex: 1; min-width: 0; padding: 20px 24px 24px; background: #fbfcfe; }
.mock__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock__title { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.mock__sub { font-size: 12px; color: var(--faint); }
.seg { display: flex; gap: 3px; background: #eef1f7; border-radius: 10px; padding: 3px; }
.seg b { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 8px; }
.seg b.on { background: #fff; color: var(--text); box-shadow: var(--sh-1); }
.mkpi { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 14px; }
.mkpi .k { background: #fff; border: 1px solid var(--line); border-radius: var(--rm); padding: 14px 15px; }
.mkpi .k.khi { background: var(--grad-ink); border-color: transparent; color: #fff; }
.mkpi .kl { font-size: 11.5px; color: var(--faint); font-weight: 500; }
.mkpi .k.khi .kl { color: #a9b6d8; }
.mkpi .kv { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; margin-top: 5px; }
.mkpi .km { font-size: 11px; margin-top: 4px; color: var(--muted); }
.mkpi .k.khi .km { color: #a9b6d8; }
.mgrid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 12px; }
.mpanel { background: #fff; border: 1px solid var(--line); border-radius: var(--rm); padding: 16px 18px; }
.mph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mph .t { font-size: 13.5px; font-weight: 700; }
.mph .d { font-size: 11.5px; color: var(--faint); }
.area { width: 100%; height: 132px; }
.ax { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); margin-top: 6px; }
.cap { display: grid; gap: 11px; margin-top: 12px; }
.cap .r { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; font-size: 12px; }
.cap .bar { height: 8px; border-radius: 999px; background: #eef1f7; overflow: hidden; }
.cap .bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); }
.cap .r .n { font-weight: 700; font-family: var(--mono); }
.cap-tot { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.cap-tot .v { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }

/* Logos strip */
.marq { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.marq span { font-size: 14px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 9px 17px; border-radius: 999px; box-shadow: var(--sh-1); }

/* Problem */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.quote { font-size: 21px; font-weight: 600; line-height: 1.45; margin-top: 28px; padding: 22px 26px; border-radius: var(--rm); background: var(--brand-50); border: 1px solid var(--brand-100); letter-spacing: -0.02em; }
.know { display: grid; gap: 12px; }
.know i { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--rm); background: #fff; border: 1px solid var(--line); font-style: normal; font-size: 15px; box-shadow: var(--sh-1); }
.know i .b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0; }
.know i svg { width: 16px; height: 16px; }
.know .yes .b { background: var(--pos-soft); } .know .yes svg { stroke: var(--pos); }
.know .no .b { background: #fbeae8; } .know .no svg { stroke: var(--neg); }
.excel { display: flex; gap: 15px; align-items: flex-start; margin-top: 16px; padding: 22px; border-radius: var(--rm); background: var(--grad-ink); color: #fff; box-shadow: var(--sh-2); }
.excel .ico { width: 44px; height: 44px; background: rgba(255,255,255,.08); color: #fff; }
.excel b { display: block; margin-bottom: 5px; }
.excel p { font-size: 13.5px; color: #aab4cf; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.step { padding: 30px 26px; border-radius: var(--rl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .25s var(--e), box-shadow .25s var(--e); }
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.step .n { font-family: var(--mono); font-size: 15px; font-weight: 700; color: #fff; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-brand); box-shadow: var(--sh-brand); margin-bottom: 20px; }
.step h3 { font-size: 18px; margin-bottom: 9px; }
.step p { font-size: 14px; color: var(--muted); }

/* Features bento */
.feat { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.fcard { padding: 30px; border-radius: var(--rl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .25s var(--e), box-shadow .25s var(--e); position: relative; overflow: hidden; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.fcard .ico { margin-bottom: 18px; }
.fcard h3 { font-size: 19px; margin-bottom: 9px; letter-spacing: -0.025em; }
.fcard p { font-size: 14.5px; color: var(--muted); }
.f-wide { grid-column: span 2; background: var(--grad-ink); color: #fff; border-color: transparent; }
.f-wide p { color: #aab4cf; }
.f-wide .ico { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
.f-wide::after { content: ""; position: absolute; right: -70px; top: -70px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.42), transparent 70%); pointer-events: none; }
.pl-mini { display: grid; gap: 8px; margin-top: 22px; max-width: 470px; position: relative; }
.pl-mini .r { display: flex; justify-content: space-between; font-size: 13.5px; padding: 11px 15px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 11px; }
.pl-mini .r.tot { background: rgba(37,99,235,.2); border-color: rgba(37,99,235,.36); font-weight: 700; }
.pl-mini .num { font-family: var(--mono); }

/* Spotlight */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spot__list { list-style: none; display: grid; gap: 20px; margin-top: 30px; }
.spot__list li { display: flex; gap: 14px; }
.spot__list .b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-50); border: 1px solid var(--brand-100); flex-shrink: 0; }
.spot__list svg { width: 16px; height: 16px; stroke: var(--brand-600); }
.spot__list strong { display: block; font-size: 15.5px; }
.spot__list p { font-size: 14px; color: var(--muted); }
.capmap { padding: 28px; }
.capmap__top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.capmap__top .v { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.capmap__row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 14px; }
.capmap__bar { height: 10px; border-radius: 999px; background: #eef1f7; overflow: hidden; }
.capmap__bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); }
.capmap__row .num { font-weight: 700; }
.insight { padding: 24px; display: grid; gap: 14px; }
.insight__card { border: 1px solid var(--line); border-radius: var(--rm); padding: 18px; background: #fff; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--neg { color: var(--neg); background: #fbeae8; } .badge--pos { color: var(--pos); background: var(--pos-soft); }
.insight__q { font-weight: 600; margin: 12px 0; font-size: 15px; }
.insight__f { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 13px; background: var(--bg-2); border-radius: 10px; margin-bottom: 7px; }

/* ICP */
.icp { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; }
.icp .c { text-align: center; padding: 28px 16px; border-radius: var(--rl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .25s var(--e), box-shadow .25s var(--e); }
.icp .c:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.icp .ico { margin: 0 auto 14px; }
.icp h3 { font-size: 15px; }

/* Pricing */
.price { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: start; }
.plan { padding: 36px 28px; border-radius: var(--rx); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.plan--feat { position: relative; border: 0; background: var(--grad-brand); color: #fff; box-shadow: var(--sh-3); padding-top: 46px; }
.plan--feat::before { content: "Популярный"; position: absolute; top: 22px; right: 24px; font-size: 11.5px; font-weight: 700; color: var(--brand-700); background: #fff; padding: 5px 13px; border-radius: 999px; }
.plan--feat p, .plan--feat .per { color: rgba(255,255,255,.85) !important; }
.p-name { font-family: var(--mono); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-600); }
.plan--feat .p-name { color: #fff; }
.p-price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; }
.p-price .v { font-size: 42px; font-weight: 800; letter-spacing: -0.04em; }
.p-price .per { color: var(--muted); font-size: 15px; }
.plan > p { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.p-feat { list-style: none; display: grid; gap: 13px; margin-top: 24px; }
.p-feat li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.p-feat svg { width: 18px; height: 18px; stroke: var(--brand-600); flex-shrink: 0; margin-top: 1px; }
.plan--feat .p-feat svg { stroke: #fff; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--rm); background: #fff; overflow: hidden; box-shadow: var(--sh-1); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-50); flex-shrink: 0; transition: transform .25s var(--e); }
.faq summary svg { width: 17px; height: 17px; stroke: var(--brand-600); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .a { padding: 0 26px 24px; color: var(--muted); font-size: 15px; }

/* CTA */
.cta { position: relative; text-align: center; padding: 84px 36px; border-radius: var(--rx); background: var(--grad-brand); color: #fff; overflow: hidden; box-shadow: var(--sh-3); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 130% at 50% -10%, rgba(255,255,255,.22), transparent 60%); }
.cta::after { content: ""; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(60% 80% at 50% 30%, #000, transparent 75%); }
.cta > * { position: relative; z-index: 1; }
.cta .h2 { margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.88); max-width: 600px; margin: 0 auto 30px; font-size: 18px; }
.cta .btn-grad { background: #fff; color: var(--brand-700); border-color: transparent; box-shadow: 0 16px 40px -12px rgba(0,0,0,.35); }
.cta .btn-grad:hover { box-shadow: 0 22px 50px -12px rgba(0,0,0,.42); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 66px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 34px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 290px; }
.foot-col h4 { font-size: 14px; margin-bottom: 15px; }
.foot-col a { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; margin-bottom: 11px; transition: .14s; }
.foot-col a:hover { color: var(--brand-600); }
.foot-col a svg { width: 15px; height: 15px; }
.foot-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

@media (max-width: 1000px) {
  .float { display: none; }
  .mock__side { width: 56px; }
}
@media (max-width: 940px) {
  .two, .spot { grid-template-columns: 1fr; gap: 44px; }
  .feat, .steps { grid-template-columns: 1fr 1fr; } .f-wide { grid-column: span 2; }
  .icp { grid-template-columns: repeat(2,1fr); }
  .price { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; box-shadow: var(--sh-2); }
  .nav-links.open { display: flex; } .nav-links a { padding: 13px 0; border-radius: 0; }
  .nav-act .lk { display: none; } .burger { display: grid; }
  .nav-links .nav-m { display: block; border-top: 1px solid var(--line-2); }
  .nav-links .nav-m--cta { margin-top: 10px; border-top: 0; padding: 13px 16px; border-radius: var(--rs); background: var(--grad-brand); color: #fff; font-weight: 600; text-align: center; box-shadow: var(--sh-brand); }
  .mkpi { grid-template-columns: 1fr 1fr; } .mgrid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .feat, .steps, .icp, .foot-grid { grid-template-columns: 1fr; }
  .f-wide, .f-w2 { grid-column: span 1; } /* широкие плитки тоже в одну колонку, иначе ломают сетку */
  .sec { padding: 76px 0; } .hero { padding-top: 56px; }
  .mock__side { display: none; } .mock__main { padding: 16px; } .mkpi { grid-template-columns: 1fr 1fr; }
  /* Шапка мокапа «Обзор»: заголовок над переключателем дат, чтобы не налезали */
  .mock__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .seg { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .seg b { padding: 6px 11px; white-space: nowrap; }
  /* На телефоне в шапке оставляем только логотип и бургер — действия уходят в меню */
  .nav-act .btn-grad { display: none; }
}

/* ============================================================= */
/* Страница «О нас» */
/* ============================================================= */
.ab-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.ab-hero h1 { margin: 22px 0 20px; font-size: clamp(38px, 4.8vw, 60px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.02; }
.ab-note { position: relative; padding: 40px 38px; border-radius: var(--rx); background: var(--grad-ink); color: #fff; box-shadow: var(--sh-3); overflow: hidden; }
.ab-note::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background: radial-gradient(46% 60% at 84% 12%, rgba(37,99,235,.45), transparent 62%); }
.ab-note__qm { position: relative; font-size: 64px; line-height: .6; font-weight: 800; color: var(--brand-400); height: 28px; }
.ab-note .q { position: relative; font-size: 21px; font-weight: 600; line-height: 1.5; letter-spacing: -0.02em; margin-top: 12px; }
.ab-note .sign { position: relative; margin-top: 28px; display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.ab-note .sign .av { width: 48px; height: 48px; border-radius: 14px; background: var(--grad-brand); display: grid; place-items: center; box-shadow: var(--sh-brand); }
.ab-note .sign .av svg { width: 24px; height: 24px; }
.ab-note .sign b { display: block; font-size: 15px; }
.ab-note .sign span { font-size: 13px; color: #a9b6d8; }

.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 17px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose b { color: var(--text); font-weight: 700; }
.prose h2 { font-size: clamp(25px, 3vw, 33px); margin: 40px 0 16px; letter-spacing: -0.035em; }
.prose-card { background: #fff; border: 1px solid var(--line); border-radius: var(--rx); box-shadow: var(--sh-1); padding: clamp(28px, 4vw, 54px); }

/* ============================================================= */
/* Блог — список статей */
/* ============================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--rl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .25s var(--e), box-shadow .25s var(--e); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.post-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.icon-badge { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; background: var(--brand-50); color: var(--brand-600); box-shadow: var(--sh-1); }
.icon-badge svg { width: 23px; height: 23px; }
.post-card__tag { font-size: 11.5px; font-weight: 700; font-family: var(--mono); color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.post-card h2, .post-card h3 { font-size: 19px; letter-spacing: -0.025em; margin-bottom: 10px; line-height: 1.25; font-weight: 800; }
.post-card p { font-size: 14.5px; color: var(--muted); flex: 1 1 auto; line-height: 1.6; }
.post-card__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--brand-600); }
.post-card__more svg { width: 17px; height: 17px; transition: transform .2s var(--e); }
.post-card:hover .post-card__more svg { transform: translateX(3px); }

/* первая (ведущая) карточка — широкая и тёмная */
.post-card--lead { grid-column: span 2; background: var(--grad-ink); border-color: transparent; color: #fff; position: relative; overflow: hidden; }
.post-card--lead::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.4), transparent 70%); pointer-events: none; }
.post-card--lead h2 { font-size: 27px; }
.post-card--lead p { color: #aab4cf; font-size: 15.5px; }
.post-card--lead .post-card__more { color: #8fb0ff; }
.post-card--lead .icon-badge { box-shadow: none; }
.post-card--lead .post-card__tag { background: rgba(255,255,255,.1); color: #cdd8f5; border-color: rgba(255,255,255,.16); }

.blog-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 56px; }
.blog-pager__btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--rm); border: 1px solid var(--line); background: #fff; font-size: 14.5px; font-weight: 600; box-shadow: var(--sh-1); transition: transform .18s var(--e), border-color .18s var(--e), color .18s var(--e); }
.blog-pager__btn:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-1px); }
.blog-pager__btn svg { width: 18px; height: 18px; }
.blog-pager__btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.blog-pager__info { font-size: 14px; color: var(--faint); font-family: var(--mono); }

/* ============================================================= */
/* Адаптив для about/blog */
/* ============================================================= */
@media (max-width: 940px) {
  .ab-hero { grid-template-columns: 1fr; gap: 40px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .post-card--lead { grid-column: span 2; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-card--lead { grid-column: span 1; }
  .post-card--lead h2 { font-size: 23px; }
  .blog-pager { gap: 10px; }
  .blog-pager__btn { padding: 10px 13px; font-size: 13.5px; }
  .ab-note { padding: 30px 26px; }
}

/* ============================================================= */
/* Принципы «О нас» — всегда 3 в ряд (десктоп), 1 колонка на телефоне */
/* ============================================================= */
.wrap .feat--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .wrap .feat--3 { grid-template-columns: 1fr; } }

/* ============================================================= */
/* Единичная статья блога */
/* ============================================================= */
.reading { max-width: 768px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 26px; transition: color .16s var(--e); }
.back-link:hover { color: var(--brand-600); }
.back-link svg { width: 18px; height: 18px; }
.article-hero { position: relative; border-radius: var(--rx); padding: 46px 46px 42px; color: #fff; overflow: hidden; box-shadow: var(--sh-3); margin-bottom: 38px; }
.article-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 120% at 86% 8%, rgba(255,255,255,.20), transparent 60%); }
.article-hero .ic { position: relative; width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.16); display: grid; place-items: center; margin-bottom: 20px; backdrop-filter: blur(4px); }
.article-hero .ic svg { width: 28px; height: 28px; }
.article-hero .tag { position: relative; display: inline-block; font-size: 12px; font-weight: 700; font-family: var(--mono); letter-spacing: .04em; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 999px; margin-bottom: 15px; }
.article-hero h1 { position: relative; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.04em; line-height: 1.08; }
.article-hero .art-meta { position: relative; margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.82); display: flex; gap: 18px; flex-wrap: wrap; }
.article-hero .art-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-hero .art-meta svg { width: 15px; height: 15px; }

.article-body { font-size: 17px; line-height: 1.78; color: #313a4d; }
.article-body > * + * { margin-top: 20px; }
.article-body h2 { font-size: 27px; letter-spacing: -0.035em; margin-top: 42px; color: var(--text); line-height: 1.15; }
.article-body h3 { font-size: 20px; margin-top: 30px; color: var(--text); }
.article-body a { color: var(--brand-600); font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 4px; display: grid; gap: 12px; list-style: none; }
.article-body ul li, .article-body ol li { position: relative; padding-left: 30px; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 3px; background: var(--grad-brand); }
.article-body ol { counter-reset: ol; }
.article-body ol li { counter-increment: ol; }
.article-body ol li::before { content: counter(ol); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px; background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-weight: 700; font-family: var(--mono); display: grid; place-items: center; }
.article-body blockquote { margin: 10px 0; padding: 20px 26px; border-radius: var(--rm); background: var(--brand-50); border: 1px solid var(--brand-100); border-left: 4px solid var(--brand-500); font-size: 18px; font-weight: 600; color: var(--brand-800); line-height: 1.55; }
.article-body strong, .article-body b { color: var(--text); font-weight: 700; }
.article-body .callout { padding: 20px 24px; border-radius: var(--rm); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); display: flex; gap: 14px; align-items: flex-start; }
.article-body .callout .ci { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; }
.article-body .callout .ci svg { width: 19px; height: 19px; }
.article-body .callout p { font-size: 15px; color: var(--muted); margin: 0; }

.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-top: 46px; padding: 28px 32px; border-radius: var(--rx); background: var(--grad-ink); color: #fff; box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.article-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.4), transparent 70%); pointer-events: none; }
.article-cta b { font-size: 17px; position: relative; } .article-cta p { color: #aab4cf; font-size: 14px; margin-top: 3px; position: relative; }
.article-cta .btn-grad { background: #fff; color: var(--brand-700); border-color: transparent; box-shadow: none; position: relative; }
.article-cta .btn-grad:hover { box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; font-size: 14px; }
.article-nav a { color: var(--muted); font-weight: 600; max-width: 46%; transition: color .16s var(--e); }
.article-nav a:hover { color: var(--brand-600); }

@media (max-width: 600px) {
  .article-hero { padding: 30px 26px 28px; }
  .article-cta { padding: 24px 22px; }
  .article-body { font-size: 16px; }
}

/* ============================================================= */
/* Контактная модалка (scripts/main.js) + поля формы */
/* ============================================================= */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(10,16,32,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s var(--e); }
.modal-overlay.is-open { opacity: 1; }
.modal { width: 100%; max-width: 480px; background: #fff; border-radius: var(--rl); box-shadow: var(--sh-3); transform: translateY(10px) scale(.99); transition: transform .2s var(--e); overflow: hidden; }
.modal-overlay.is-open .modal { transform: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.modal__close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: .16s var(--e); }
.modal__close:hover { color: var(--text); border-color: var(--brand-400); }
.modal__close svg { width: 18px; height: 18px; }
.modal__body { padding: 22px 24px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--bg-2); }
.field { margin-bottom: 14px; }
.field__label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.input { width: 100%; font-family: var(--sans); font-size: 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--rs); background: #fff; color: var(--text); transition: border-color .16s var(--e), box-shadow .16s var(--e); }
.input:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
textarea.input { resize: vertical; min-height: 92px; }
.btn--primary { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--sh-brand); }
.btn--primary:hover { box-shadow: 0 16px 34px -8px rgba(30,64,175,.5); }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-400); color: var(--brand-600); }

/* Баннер-объявление платформы (scripts/main.js) */
.kos-banner { text-align: center; font-size: 14px; font-weight: 500; padding: 10px 18px; color: #fff; background: var(--grad-brand); }
.kos-banner--warn { background: linear-gradient(135deg, #d97706, #b45309); }
.kos-banner--danger { background: linear-gradient(135deg, #dc2626, #b91c1c); }

/* Тень навбара при скролле (scripts/main.js добавляет .is-scrolled) */
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line-2), 0 8px 24px -16px rgba(16,30,70,.3); }
