/* SurIT - оформление сайта (sitekit). Светлая тема: холодный белый, тёмные чернила, кобальтовый акцент. */
:root {
  --bg: #F5F7FA; --surface: #FFFFFF; --ink: #0D1321; --ink2: #364055; --muted: #6A7387; --line: #E1E5EC; --line2: #CDD3DE;
  --accent: #2B4FEA; --accent-d: #1E3BC2; --accent-soft: #EAEEFF; --amber: #F2A51A; --ok: #16A34A;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 14px; --r2: 20px; --shadow: 0 1px 2px rgba(13,19,33,.04), 0 8px 24px -12px rgba(13,19,33,.12);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink2); font: 400 16.5px/1.62 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }
main { min-width: 0; }
.blk { padding: 88px 0; }
.blk + .blk { padding-top: 0; }
.blk-hero { padding: 56px 0 72px; }
.blk-form { padding-bottom: 96px; }

/* заголовки разделов */
.sh { margin: 0 0 36px; max-width: 760px; }
.eb { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.eb::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }
.ttl { font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.025em; }
.ttl em { font-style: normal; color: var(--accent); }
.blk-hero h1.ttl { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -.035em; }
.sub, .lead { font-size: 18px; color: var(--ink2); margin: 16px 0 0; max-width: 640px; }
.blk-hero .lead { font-size: clamp(17px, 1.6vw, 19.5px); margin-top: 22px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 12px; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn.f { background: var(--accent); color: #fff; }
.btn.f:hover { background: var(--accent-d); }
.btn.o { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn.o:hover { border-color: var(--ink); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: default; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* шапка */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(245,247,250,.86); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mk { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); position: relative; }
.logo-mk::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-radius: 2px; background: #fff; }
.logo-t { font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo-t b { color: var(--accent); font-weight: 800; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.tel { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line2); background: var(--surface); border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* первый экран */
.hero-g { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.blk-hero { background:
  linear-gradient(var(--bg), rgba(245,247,250,.2) 30%, var(--bg)),
  repeating-linear-gradient(0deg, transparent 0 39px, rgba(43,79,234,.05) 39px 40px),
  repeating-linear-gradient(90deg, transparent 0 39px, rgba(43,79,234,.05) 39px 40px); }
.hero-solo { grid-template-columns: minmax(0, 1fr); }
.hero-solo .ttl { max-width: 920px; }
.hero-solo .lead { max-width: 720px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid var(--line2); }
.stats > div { padding: 18px 18px 0 0; }
.stats > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.stats b { display: block; font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.stats span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.flow { display: flex; flex-direction: column; gap: 0; }
.flow-c { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px 14px 44px; box-shadow: var(--shadow); position: relative; }
.flow-c::before { content: ""; position: absolute; left: 18px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.flow-c.ok::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(22,163,74,.14); }
.flow-k { display: block; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.flow-c b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.35; }
.flow-c small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.flow-l { width: 2px; height: 18px; margin-left: 22px; background: repeating-linear-gradient(180deg, var(--line2) 0 4px, transparent 4px 7px); }
.flow-c:nth-child(3) { margin-left: 22px; } .flow-c:nth-child(5) { margin-left: 44px; } .flow-c:nth-child(7) { margin-left: 22px; }
.flow-l:nth-child(4) { margin-left: 44px; } .flow-l:nth-child(6) { margin-left: 66px; }

/* услуги */
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-i { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); transition: border-color .15s, transform .15s, box-shadow .15s; }
.svc-i:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.svc-in { display: flex; flex-direction: column; height: 100%; padding: 24px; }
.svc-n { font: 500 13px/1 var(--mono); color: var(--muted); margin-bottom: 18px; }
.svc-in h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.svc-in p { margin: 10px 0 18px; font-size: 15.5px; color: var(--ink2); flex: 1; }
.svc-m { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.svc-go { color: var(--accent); display: inline-flex; transition: transform .15s; }
.svc-i:hover .svc-go { transform: translateX(3px); }
.svc-i:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.svc-i:last-child:nth-child(3n+1) .svc-in p { max-width: 640px; }

/* этапы */
.stp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.stp-i { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: 24px; position: relative; }
.stp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.stp-n { font: 600 14px/1 var(--mono); width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.stp-ic { color: var(--accent); display: inline-flex; }
.stp-i h3 { font-size: 19px; font-weight: 700; }
.stp-i p { margin: 8px 0 0; font-size: 15px; }

/* карточки и кейсы */
.crd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.crd-i { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: 24px 26px; }
.crd-i h3 { font-size: 19.5px; font-weight: 700; margin-top: 2px; }
.crd-i p { margin: 8px 0 0; font-size: 15.5px; }
.crd-i .k { display: block; font-weight: 800; font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -.025em; color: var(--accent); line-height: 1.1; margin-bottom: 12px; }
.crd-mk { display: inline-flex; width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); align-items: center; justify-content: center; margin-bottom: 14px; }
.blk-cards + .blk-cards { padding-top: 0; }

/* ссылки */
.lks { display: grid; gap: 12px; }
.lk-i { display: flex; text-decoration: none; color: inherit; background: var(--ink); border-radius: var(--r2); padding: 22px 26px; transition: background .15s; }
.lk-i:hover { background: #18213a; }
.lk-i span { display: flex; flex-direction: column; gap: 4px; }
.lk-i b { color: #fff; font-size: 18px; }
.lk-i b::after { content: "  →"; color: #8EA2FF; }
.lk-i small { color: #A9B3C7; font-size: 14.5px; }
.blk-links { padding-top: 0; }

/* вопросы */
.fq { display: grid; gap: 10px; }
.fq-i { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.fq-i summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 600; color: var(--ink); font-size: 17px; position: relative; }
.fq-i summary::-webkit-details-marker { display: none; }
.fq-i summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.fq-i[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fq-i p { margin: 0; padding: 0 22px 20px; }

/* текст и документы */
.rich { font-size: 17px; }
.rich p { margin: 0 0 14px; }
.rich h2 { font-size: 22px; margin: 28px 0 10px; }
.rich ul { padding-left: 20px; }
.doc { padding-top: 24px; max-width: 860px; }
.blk-text .rich ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.blk-text .rich li { background: var(--surface); border: 1px solid var(--line2); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.2; }
.blk-text .rich li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); margin-right: 9px; vertical-align: 2px; }
.doc .ttl { margin-bottom: 26px; }

/* форма */
.fm { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; background: var(--ink); border-radius: 28px; padding: 48px; color: #C5CDDC; }
.fm .eb { color: #8EA2FF; } .fm .eb::before { background: #8EA2FF; }
.fm .ttl { color: #fff; } .fm .ttl em { color: #8EA2FF; }
.fm .sub { color: #C5CDDC; }
.fm-pts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.fm-pts li { display: flex; gap: 10px; align-items: flex-start; color: #E3E8F2; }
.fm-pts svg { color: #6EE7A7; flex: none; margin-top: 3px; }
.ct { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.ct li { display: flex; gap: 10px; align-items: center; }
.ct a { color: #fff; text-decoration: none; }
.fm-f { background: var(--surface); border-radius: var(--r2); padding: 28px; display: grid; gap: 16px; color: var(--ink2); }
.fld { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.fld input, .fld textarea { width: 100%; border: 1.5px solid var(--line2); border-radius: 11px; padding: 13px 14px; font: 400 16px/1.4 var(--font); color: var(--ink); background: #fff; }
.fld input:focus, .fld textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.fld textarea { resize: vertical; min-height: 110px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line2); background: #fff; color: var(--ink2); border-radius: 999px; padding: 8px 14px; font: 500 14px/1 var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.chk input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.fm-f .btn { width: 100%; min-height: 54px; font-size: 17px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fm-msg { margin: 0; font-size: 15px; min-height: 1em; }
.fm-msg.ok { color: var(--ok); font-weight: 600; }
.fm-msg.err { color: #C2410C; font-weight: 600; }

/* подвал */
.ft { background: var(--ink); color: #A9B3C7; padding: 56px 0 96px; font-size: 15px; }
.ft .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.ft .logo { color: #fff; }
.ft-brand p { margin: 14px 0 0; max-width: 300px; }
.ft div:not(.ft-brand) > b { display: block; color: #fff; margin-bottom: 12px; font-size: 14px; }
.ft .logo-t b { color: #8EA2FF; }
.ft div:not(.ft-brand) > a { display: block; color: #A9B3C7; text-decoration: none; padding: 4px 0; }
.ft div:not(.ft-brand) > a:hover { color: #fff; }
.ft .note { grid-column: 1 / -1; border-top: 1px solid #222C44; padding-top: 22px; font-size: 13.5px; color: #7F8AA3; }
body .ms-credit { background: var(--ink); color: #8D97AD; opacity: 1; border-top: 1px solid #222C44; }
body .ms-credit a:hover { color: #fff; }

/* мобильная полоса и cookie */
.mbar { display: none; }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; display: flex; gap: 14px; align-items: center; font-size: 13.5px; }
.cookie[hidden] { display: none; }
.cookie button { flex: none; background: var(--ink); color: #fff; border: 0; border-radius: 9px; padding: 9px 14px; font: 600 13.5px var(--font); cursor: pointer; }

/* 404 */
.nf { padding: 120px 0; }

/* плавное появление */
.rv-ready .blk { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.rv-ready .blk.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv-ready .blk { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* адаптив */
@media (max-width: 1080px) {
  .hero-g { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .flow { max-width: 560px; }
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-i:last-child:nth-child(3n+1) { grid-column: auto; }
  .svc-i:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
  .stp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ft .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .burger { display: inline-flex; margin-left: auto; }
  .tel { display: none; }
  .hd-cta { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .blk { padding: 64px 0; }
  .blk-hero { padding: 36px 0 56px; }
  .crd { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stats > div { padding: 14px 0; }
  .flow-c:nth-child(n) { margin-left: 0; } .flow-l:nth-child(n) { margin-left: 22px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(245,247,250,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mbar a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1.5px solid var(--line2); color: var(--ink); padding: 0 16px; }
  .mbar a.f { flex: 1; background: var(--accent); border-color: var(--accent); color: #fff; }
  .cookie { left: 12px; right: 12px; bottom: 80px; max-width: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .svc, .stp { grid-template-columns: minmax(0, 1fr); }
  .fm { padding: 28px 18px; border-radius: 22px; margin: 0 -6px; }
  .fm-f { padding: 20px; }
  .ft .wrap { grid-template-columns: minmax(0, 1fr); }
  .cta .btn { flex: 1 1 100%; }
}
