/* Layout: строгая 12-колоночная сетка, тонкие линейки вместо карточек, моноширинные метки как в консоли мониторинга. Один акцент — кобальт. */
:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --ink: #0B0F17;
  --muted: #586174;
  --line: #DCE0E7;
  --accent: #2346E8;
  --accent-ink: #FFFFFF;
  --ok: #1A9152;
  --panel: #0B0F17;
  --panel-ink: #E6E9EF;
  --panel-muted: #7D8697;
  --panel-line: #222937;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0D12; --surface: #11151C; --ink: #E8EBF0; --muted: #8C95A6; --line: #232A36;
    --accent: #6F88FF; --accent-ink: #0A0D12; --ok: #3CCB7F;
    --panel: #11151C; --panel-ink: #E6E9EF; --panel-muted: #7D8697; --panel-line: #232A36;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0D12; --surface: #11151C; --ink: #E8EBF0; --muted: #8C95A6; --line: #232A36;
  --accent: #6F88FF; --accent-ink: #0A0D12; --ok: #3CCB7F;
  --panel: #11151C; --panel-ink: #E6E9EF; --panel-muted: #7D8697; --panel-line: #232A36;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px/1 var(--f-body); text-decoration: none; cursor: pointer;
  padding: 16px 22px; border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--bg);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn .arr { font-family: var(--f-mono); }

/* Header */
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { font: 600 17px/1 var(--f-display); letter-spacing: -0.01em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.top nav { display: flex; gap: 22px; margin-left: 8px; }
.top nav a { text-decoration: none; font-size: 15px; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.top .phone { font: 500 15px/1 var(--f-mono); text-decoration: none; white-space: nowrap; }
.top .btn { padding: 12px 16px; font-size: 14px; }


/* Hero */
.hero { padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(38px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 34em; }
.hero .ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .eyebrow { margin-bottom: 28px; display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero .grid { grid-template-columns: 1fr; } }

/* Status panel */
.panel {
  background: var(--panel); color: var(--panel-ink); border: 1px solid var(--panel-line); border-radius: 4px;
  font-family: var(--f-mono); font-size: 13px; overflow: hidden;
}
.panel .ph { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--panel-line); color: var(--panel-muted); text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; }
.panel ul { list-style: none; margin: 0; padding: 6px 0; }
.panel li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 10px 18px; }
.panel li + li { border-top: 1px dashed var(--panel-line); }
.panel .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s ease-in-out infinite; }
.panel li:nth-child(2) .dot { animation-delay: .4s } .panel li:nth-child(3) .dot { animation-delay: .8s }
.panel li:nth-child(4) .dot { animation-delay: 1.2s } .panel li:nth-child(5) .dot { animation-delay: 1.6s }
.panel .v { color: var(--panel-muted); font-variant-numeric: tabular-nums; }
.panel .pf { padding: 14px 18px; border-top: 1px solid var(--panel-line); display: flex; justify-content: space-between; gap: 12px; color: var(--panel-muted); font-size: 11.5px; }
.panel .pf b { color: var(--ok); font-weight: 500; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* Clients */
.clients { padding-block: 36px; border-bottom: 1px solid var(--line); }
.clients .wrap { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.clients li { font: 500 18px/1.2 var(--f-display); letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .clients .wrap { grid-template-columns: 1fr; gap: 18px; } .clients li { font-size: 16px; } }

/* Sections */
section.block { padding-block: clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.shead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: end; margin-bottom: 56px; }
.shead p { color: var(--muted); max-width: 36em; }
.shead .mono { margin-bottom: 18px; }
@media (max-width: 860px) { .shead { grid-template-columns: 1fr; margin-bottom: 40px; } }

/* Services: table-like grid with hairlines */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 24px 30px; display: flex; flex-direction: column; gap: 14px; min-height: 250px; background: transparent; transition: background .2s; }
.svc:hover { background: var(--surface); }
.svc .code { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: .04em; }
.svc p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.svc .tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.svc .tags span { font: 400 11.5px/1 var(--f-mono); color: var(--muted); border: 1px solid var(--line); padding: 5px 7px; border-radius: 2px; }
@media (max-width: 1040px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .svc { min-height: 0; } }

/* Model (subscription) */
.model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.model .facts { display: grid; grid-template-columns: 1fr; }
.fact { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding-block: 22px; border-top: 1px solid var(--line); }
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact .k { font: 500 28px/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fact .k small { font: 400 13px/1 var(--f-mono); color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.fact p { color: var(--muted); font-size: 15px; }
.fact b { color: var(--ink); font-weight: 500; display: block; margin-bottom: 2px; }
.model .text p + p { margin-top: 18px; }
.model .text p { color: var(--muted); max-width: 32em; }
.model .text h2 { margin-bottom: 28px; }
.model .text .mono { margin-bottom: 18px; }
@media (max-width: 860px) { .model { grid-template-columns: 1fr; } .fact { grid-template-columns: 96px 1fr; gap: 16px; } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { padding: 26px 28px 0 0; border-top: 2px solid var(--ink); position: relative; }
.steps li + li { padding-left: 0; }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--f-mono); font-size: 12.5px; color: var(--accent); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }
.steps .t { margin-top: 16px; font: 400 12px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Partner (B2B for federal outsourcers) — inverted band */
.partner { background: var(--panel); color: var(--panel-ink); padding-block: clamp(64px, 9vw, 112px); }
.partner .grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.partner .mono { color: var(--panel-muted); margin-bottom: 18px; }
.partner p.l { color: var(--panel-muted); margin-top: 24px; max-width: 32em; }
.partner dl { margin: 0; display: grid; grid-template-columns: auto 1fr; font-size: 15px; }
.partner dt, .partner dd { padding-block: 14px; border-top: 1px solid var(--panel-line); margin: 0; }
.partner dt { font-family: var(--f-mono); font-size: 12px; color: var(--panel-muted); text-transform: uppercase; letter-spacing: .04em; padding-right: 24px; padding-top: 17px; }
.partner .btn { margin-top: 32px; background: var(--panel-ink); color: var(--panel); border-color: var(--panel-ink); }
.partner .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 860px) { .partner .grid { grid-template-columns: 1fr; } }

/* Credentials */
.creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.cred { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 10px; }
.cred + .cred { padding-left: 28px; border-left: 1px solid var(--line); }
.cred .big { font: 500 clamp(36px, 4vw, 52px)/1 var(--f-display); letter-spacing: -0.03em; }
.cred p { color: var(--muted); font-size: 15px; max-width: 26em; }
@media (max-width: 760px) { .creds { grid-template-columns: 1fr; } .cred, .cred + .cred { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); } .cred:first-child { border-top: 0; } }

/* Contact */
.contact .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.contact .info { display: grid; gap: 22px; margin-top: 36px; }
.contact .info div { display: grid; gap: 4px; }
.contact .info .val { font-size: 19px; font-weight: 500; user-select: all; }
.contact .info .val.big { font: 500 clamp(24px, 2.6vw, 32px)/1.1 var(--f-mono); letter-spacing: -0.01em; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-content: start; }
.field { display: grid; gap: 8px; padding-block: 14px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 400 12px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select, .field textarea {
  font: 400 17px/1.4 var(--f-body); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0 10px; width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 18px; }
.form-foot small { color: var(--muted); font-size: 13px; max-width: 30em; }
.sent { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 13px; color: var(--ok); }
@media (max-width: 860px) { .contact .grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { form { grid-template-columns: 1fr; } }



/* ---------- Навигация: активный пункт и мобильное меню ---------- */
.top nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.top .sup { font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.top .sup:hover { color: var(--ink); }
.menu-btn { display: none; font: 500 14px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; padding: 11px 14px; cursor: pointer; }
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
  .top .sup { display: none; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 16px; }
  .top nav.open { display: flex; }
  .top nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .top nav a[aria-current="page"] { box-shadow: none; color: var(--accent); padding-bottom: 14px; }
}
@media (max-width: 640px) { .top .btn { display: none; } .top .phone { font-size: 14px; } }
@media (max-width: 380px) { .top .phone { display: none; } }

/* ---------- Заголовок внутренней страницы ---------- */
.phero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.phero h1 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.035em; max-width: 16em; }
.phero h1 em { font-style: normal; color: var(--accent); }
.phero .lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 38em; }
.phero .ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Оглавление услуг ---------- */
.toc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.toc a { display: flex; gap: 14px; align-items: baseline; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.toc a span { font: 400 12px/1 var(--f-mono); color: var(--accent); }
.toc a:hover { color: var(--accent); }
@media (max-width: 900px) { .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .toc { grid-template-columns: 1fr; } }

/* ---------- Подробное описание услуги ---------- */
.sd { padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.sd .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); }
.sd .code { font: 400 12.5px/1 var(--f-mono); color: var(--accent); letter-spacing: .04em; display: block; margin-bottom: 16px; }
.sd h2 { font-size: clamp(26px, 3vw, 36px); }
.sd .intro { margin-top: 18px; color: var(--muted); max-width: 30em; }
.sd .badge { display: inline-block; margin-top: 20px; font: 400 12px/1.3 var(--f-mono); border: 1px solid var(--line); padding: 7px 10px; border-radius: 2px; }
.sd .more { display: inline-flex; margin-top: 24px; font-weight: 500; color: var(--accent); text-decoration: none; gap: 8px; }
.sd .more:hover { text-decoration: underline; }
@media (max-width: 860px) { .sd .wrap { grid-template-columns: 1fr; } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.ticks li { padding: 13px 0 13px 26px; border-top: 1px solid var(--line); position: relative; font-size: 16px; line-height: 1.45; }
.ticks li::before { content: "—"; position: absolute; left: 0; top: 13px; font-family: var(--f-mono); color: var(--accent); }
.ticks.one { grid-template-columns: 1fr; }
@media (max-width: 560px) { .ticks { grid-template-columns: 1fr; } }
.sublabel { margin: 0 0 14px; }
.ticks + .sublabel { margin-top: 36px; }

/* ---------- Сравнение (таблица) ---------- */
.tbl-wrap { overflow-x: auto; }
table.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-top: 1px solid var(--line); }
.cmp thead th { font: 400 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-top: 0; padding-bottom: 14px; }
.cmp tbody th { font-weight: 500; width: 24%; }
.cmp td { color: var(--muted); width: 38%; }
.cmp td.us { color: var(--ink); }
.cmp thead th.us { color: var(--accent); }

/* ---------- Каналы связи / список-определения ---------- */
.dl { margin: 0; display: grid; grid-template-columns: minmax(140px, 220px) 1fr; }
.dl dt, .dl dd { margin: 0; padding-block: 16px; border-top: 1px solid var(--line); }
.dl dt { font: 400 12px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 19px; padding-right: 20px; }
.dl dd { font-size: 17px; min-width: 0; overflow-wrap: anywhere; }
.dl dd .sel { user-select: all; font-family: var(--f-mono); font-size: 16px; }
.dl dd small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } .dl dd { border-top: 0; padding-top: 0; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 500 18px/1.35 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font: 400 22px/1 var(--f-mono); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 46em; }

/* ---------- Клиенты по отраслям ---------- */
.ind { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); padding-block: 36px; border-top: 1px solid var(--line); }
.ind:last-child { border-bottom: 1px solid var(--line); }
.ind h3 { font-size: 22px; }
.ind .n { margin-top: 10px; }
.ind ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.ind li b { display: block; font: 500 18px/1.25 var(--f-display); letter-spacing: -0.01em; margin-bottom: 6px; }
.ind li span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .ind { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ind ul { grid-template-columns: 1fr; } }

/* ---------- Крупные проекты ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.proj { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.proj .yr { font: 500 clamp(44px, 5vw, 64px)/1 var(--f-display); letter-spacing: -0.04em; color: var(--accent); }
.proj p { color: var(--muted); }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } }

/* ---------- Хронология ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding-block: 22px; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .y { font: 500 26px/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 15.5px; max-width: 40em; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Принципы ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principles > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 24px 30px; display: grid; gap: 10px; align-content: start; }
.principles p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Цитата-миссия ---------- */
.quote { font: 500 clamp(26px, 3.4vw, 42px)/1.2 var(--f-display); letter-spacing: -0.025em; max-width: 22em; text-wrap: balance; margin: 0; }
.quote + .mono { margin-top: 24px; }

/* ---------- Полоса призыва ---------- */
.cta { padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: end; justify-content: space-between; }
.cta h2 { max-width: 18em; margin-top: 16px; }
.cta p { color: var(--muted); margin-top: 16px; max-width: 34em; }

/* ---------- Карточки услуг-ссылки на главной ---------- */
a.svc { text-decoration: none; color: inherit; }
a.svc .go { font: 400 12px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; transition: color .15s; }
a.svc:hover .go { color: var(--accent); }

/* ---------- Подвал ---------- */
footer.foot { padding-block: 56px 32px; }
.fgrid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 32px; }
.fgrid p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 22em; }
.fgrid ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.fgrid ul a { text-decoration: none; color: var(--muted); }
.fgrid ul a:hover { color: var(--ink); }
.fbot a { color: inherit; } .fbot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; text-transform: none; letter-spacing: 0; }
@media (max-width: 900px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .fgrid { grid-template-columns: 1fr; } }

.note { font-size: 14px; color: var(--muted); }
.sec-gap { margin-top: 56px; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .steps.three { grid-template-columns: 1fr; row-gap: 40px; } }
.timeline .y { color: var(--ink); }
.toc a span { white-space: nowrap; }
@media (max-width: 900px) { .hero .grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) { .hero h1 { font-size: 27px; } .phero h1 { font-size: 30px; } h1 { hyphens: auto; } }

/* ---------- Форма заявки (по мотивам VK Cloud) ---------- */
.lead-form .req { color: var(--accent); margin-left: 2px; }
.lead-form .field.bad input, .lead-form .field.bad select, .lead-form .field.bad textarea { border-bottom-color: #D33A2C; }
.lead-form .err { font-size: 13px; color: #D33A2C; min-height: 0; }
.lead-form .err:empty { display: none; }
.lead-form .hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; font: 400 14px/1 var(--f-body); padding: 10px 14px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consents { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 18px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.check a { color: var(--ink); }
.check.bad { color: #D33A2C; }
.lead-form .btn[disabled] { opacity: .45; cursor: not-allowed; }
.lead-form .btn[disabled]:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.done { grid-column: 1 / -1; display: grid; gap: 14px; padding-block: 24px; }
.done .ok { font: 400 12.5px/1 var(--f-mono); color: var(--ok); text-transform: uppercase; letter-spacing: .05em; }
.done h3 { font-size: 26px; }
.done p { color: var(--muted); max-width: 32em; }

/* Модальное окно */
dialog.modal { width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); }
dialog.modal::backdrop { background: rgb(5 8 14 / .62); backdrop-filter: blur(3px); }
.modal .mh { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 28px 28px 0; }
.modal .mh h2 { font-size: clamp(24px, 3vw, 32px); }
.modal .mh p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.modal .x { background: transparent; border: 1px solid var(--line); color: var(--ink); width: 40px; height: 40px; flex: none; border-radius: 2px; font: 400 20px/1 var(--f-mono); cursor: pointer; }
.modal .x:hover { border-color: var(--ink); }
.modal form { padding: 8px 28px 28px; }
@media (max-width: 520px) { .modal .mh { padding: 20px 18px 0; } .modal form { padding: 4px 18px 22px; } }

/* Cookie-плашка */
.cookie { position: fixed; z-index: 30; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-left: auto; background: var(--panel); color: var(--panel-ink); border: 1px solid var(--panel-line); border-radius: 4px; padding: 18px 20px; display: grid; gap: 14px; font-size: 14px; line-height: 1.5; box-shadow: 0 12px 40px rgb(0 0 0 / .25); }
.cookie p { color: var(--panel-muted); }
.cookie a { color: var(--panel-ink); }
.cookie .row { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie button { font: 500 14px/1 var(--f-body); padding: 11px 14px; border-radius: 2px; cursor: pointer; border: 1px solid var(--panel-line); background: transparent; color: var(--panel-ink); }
.cookie button.pri { background: var(--panel-ink); color: var(--panel); border-color: var(--panel-ink); }

/* ---------- Юридические документы ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); padding-block: clamp(40px, 6vw, 72px); }
.doc aside { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.doc aside ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; font-size: 14px; counter-reset: t; }
.doc aside a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted); }
.doc aside a:hover { color: var(--ink); }
.doc article { max-width: 46rem; font-size: 16px; line-height: 1.65; }
.doc article h2 { font-size: 22px; letter-spacing: -0.01em; margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.doc article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc article h3 { font-size: 17px; margin: 28px 0 10px; }
.doc article p, .doc article li { color: var(--ink); }
.doc article p + p { margin-top: 12px; }
.doc article ul, .doc article ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.doc .pn { font-family: var(--f-mono); font-size: 13px; color: var(--muted); margin-right: 6px; }
.doc .meta { display: grid; gap: 6px; margin-bottom: 32px; }
.doc .tbl-wrap { margin: 16px 0; }
table.pd { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.pd th, .pd td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--line); }
.pd thead th { font: 400 11.5px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-top: 0; }
.pd td { color: var(--muted); }
.pd td:first-child { color: var(--ink); font-weight: 500; }
mark.fill { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--ink); padding: 0 4px; border-radius: 2px; font-family: var(--f-mono); font-size: .9em; }
.legal-note { border: 1px dashed var(--line); padding: 14px 16px; font-size: 14px; color: var(--muted); border-radius: 2px; margin-bottom: 28px; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc aside { position: static; max-height: none; } }
.field label.chip { font: 400 14px/1 var(--f-body); text-transform: none; letter-spacing: 0; color: var(--ink); }

/* ---------- 9 услуг: сетка 3×3 ---------- */
.services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.toc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .services, .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services, .toc { grid-template-columns: 1fr; } }
/* в договоре абонентки 8 пунктов — оставляем 4 колонки */
.services.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .services.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services.four { grid-template-columns: 1fr; } }

/* ---------- Схема серверной стойки ---------- */
.rack { margin: 0; background: var(--panel); color: var(--panel-ink); border: 1px solid var(--panel-line); border-radius: 4px; font-family: var(--f-mono); font-size: 12.5px; overflow: hidden; align-self: start; }
.rack .ph { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--panel-line); color: var(--panel-muted); text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; }
.rack ol { list-style: none; margin: 0; padding: 14px; display: grid; gap: 3px; }
.rack li { --u: 1; display: grid; grid-template-columns: 52px 1fr 10px; align-items: center; gap: 12px; min-height: calc(var(--u) * 27px + (var(--u) - 1) * 3px); padding: 0 12px 0 0; border: 1px solid var(--panel-line); border-radius: 2px; background: color-mix(in srgb, var(--panel-ink) 6%, var(--panel)); }
.rack li.u2 { --u: 2; } .rack li.u4 { --u: 4; }
.rack li.sw { background: color-mix(in srgb, var(--accent) 22%, var(--panel)); }
.rack li.ups { background: color-mix(in srgb, var(--panel-ink) 12%, var(--panel)); }
.rack li.gap { min-height: 14px; border-style: dashed; background: transparent; }
.rack .un { color: var(--panel-muted); font-size: 11px; text-align: right; border-right: 1px solid var(--panel-line); padding-right: 8px; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.rack .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rack .st { width: 7px; height: 7px; border-radius: 50%; background: var(--panel-line); }
.rack .st.on { background: var(--ok); animation: pulse 2.4s ease-in-out infinite; }
.rack li:nth-child(odd) .st.on { animation-delay: .8s; }
.rack .pf { padding: 14px 18px; border-top: 1px solid var(--panel-line); display: flex; justify-content: space-between; gap: 12px; color: var(--panel-muted); font-size: 11.5px; }
.rack .pf b { color: var(--ok); font-weight: 500; }

[hidden] { display: none !important; }

/* ---------- Шапка: пункты меню в одну строку, без сдвигов ---------- */
.top nav a { white-space: nowrap; position: relative; padding-block: 6px; }
.top nav a[aria-current="page"] { box-shadow: none; padding-bottom: 6px; }
.top nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); }
.top .phone, .top .sup, .top .btn { white-space: nowrap; }
@media (max-width: 1180px) {
  .top nav a, .top nav a[aria-current="page"] { padding-block: 14px; }
  .top nav a[aria-current="page"]::after { display: none; }
}
html, body { margin: 0; }
@media (max-width: 1240px) {
  .menu-btn { display: inline-flex; }
  .top .sup { display: none; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 16px; }
  .top nav.open { display: flex; }
  .top nav a, .top nav a[aria-current="page"] { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .top nav a[aria-current="page"] { color: var(--accent); }
  .top nav a[aria-current="page"]::after { display: none; }
}

/* ---------- Логотип: красный треугольник над T, как в фирменном знаке ---------- */
:root { --brand-red: #E3141B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand-red: #FF3B3B; } }
:root[data-theme="dark"] { --brand-red: #FF3B3B; }
.logo { font: 400 18px/1 var(--f-display); letter-spacing: -0.01em; padding-top: 10px; }
.logo .lg { font-weight: 600; white-space: nowrap; }
.logo .ln { font-weight: 400; }
.logo .t { position: relative; display: inline-block; }
.logo .t::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% - 0.03em); transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 0.29em solid transparent; border-right: 0.29em solid transparent; border-top: 0.42em solid var(--brand-red);
}
.logo:hover .lg { color: var(--ink); }
.fgrid .logo { display: inline-block; }

/* Фирменный треугольник над T в заголовках */
.tri { position: relative; }
.tri::before {
  content: ""; position: absolute; left: 50%; top: -0.19em; transform: translateX(-50%);
  border-left: 0.24em solid transparent; border-right: 0.24em solid transparent; border-top: 0.34em solid var(--brand-red);
}
h1:has(.tri), h2:has(.tri) { margin-top: 0.5em; }

/* Центр треугольника = центр буквы T: у самой T межбуквенный интервал 0,
   а сжатие до следующей буквы сохраняем отрицательным отступом */
.logo { --ls: -0.01em; }
h2 { --ls: -0.02em; }
.hero h1 { --ls: -0.035em; }
.tri, .logo .t { letter-spacing: 0; margin-right: var(--ls, 0em); }
h1:has(.tri), h2:has(.tri) { margin-top: 0.42em; }

/* ---------- Первый экран: заголовок во всю ширину, «IT-инфраструктура,» одной строкой ---------- */
.hero .grid { align-items: start; row-gap: clamp(28px, 4vw, 48px); }
.hero .hero-head { grid-column: 1 / -1; }
.hero .nw { white-space: nowrap; }
/* слово занимает ~12,1 кегля, берём 12,5 с запасом под полосу прокрутки */
.hero h1 { font-size: clamp(24px, calc((min(100vw, var(--wrap)) - 2 * var(--gut)) / 12.5), 84px); max-width: none; }
.hero .lead { margin-top: 0; }
/* точный расчёт от ширины блока заголовка (без влияния полосы прокрутки) */
.hero .hero-head { container-type: inline-size; }
@supports (width: 1cqw) { .hero h1 { font-size: min(84px, calc(100cqw / 12.4)); } }
@media (max-width: 860px) { .model { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { h2, h3 { hyphens: auto; -webkit-hyphens: auto; } }
