/* Общие стили сайта компании «Архитекторы программных систем» (брендбук v2.0 «Техно», см. docs/brand/README.md) */
:root {
  --bg: #FFFFFF;
  --bg-2: #F6F8FC;        /* Frost */
  --ink: #0A1226;         /* Ink */
  --ink-2: #3A4664;
  --ink-3: #5A6785;       /* Mute: подписи */
  --line: #DDE3EF;
  --accent: #2E5BFF;      /* Cobalt: кнопки и ссылки (белый 5.2:1) */
  --accent-2: #3D6BFF;    /* Cobalt glow */
  --accent-soft: #EBF0FF;
  --pale: #DCE6FA;        /* Pale blue: подложки, диаграммы */
  --navy: #102347;        /* Midnight navy */
  --navy-2: #1A3566;
  --void: #070B14;        /* фон тёмной темы */
  --frost: #E8EDFA;       /* текст на тёмном */
  --d-mute: #8C9AB8;      /* подписи на тёмном */
  --signal: #3EE0FF;      /* статусы на тёмном */
  --signal-l: #0E7490;    /* статусы на светлом */
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ok: #1F9D62;
  --warn: #C98112;
  color-scheme: light;
  --font-head: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-icubix: "Days One", "Onest", system-ui, sans-serif;
  --radius: 10px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(15, 26, 51, .04), 0 8px 24px rgba(15, 26, 51, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 "Onest", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.ico { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Шапка */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; flex: none; text-decoration: none; }
/* трёхстрочный логотип (знак + «Архитекторы / программных / систем», 810×200): однострочный в шапку не влезает */
.logo img { height: 46px; width: auto; display: block; }
nav.links { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
nav.links a { text-decoration: none; color: var(--ink); }
nav.links a:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
  border: 1px solid var(--accent); transition: background .15s; }
.btn:hover { background: #1F49E6; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.small { padding: 10px 18px; font-size: 15px; }

/* Первый экран */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); }
.hero .grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 16px; color: var(--accent); font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::after { content: ""; width: 44px; height: 1px; background: var(--accent); opacity: .6; }
.hero h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.02em; margin: 18px 0 22px; font-weight: 700; }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 540px; margin: 0 0 34px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.facts li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 14px; color: var(--ink-2); }

.hero .grid > *, .product > *, .clients > *, .panel > * { min-width: 0; }
/* Макет интерфейса */
.app { display: grid; grid-template-columns: 150px 1fr; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 4px rgba(15,26,51,.05), 0 24px 60px rgba(15,26,51,.14); border: 1px solid var(--line); font-size: 12px; }
.app aside { background: var(--navy); color: #C9D3EE; padding: 18px 10px; }
.app aside .mark { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 13px; padding: 0 8px 18px; }
.app aside .mark i { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--accent-2), #6C8EF0); display: block; }
.app aside span { display: block; padding: 7px 10px; border-radius: 6px; margin-bottom: 2px; }
.app aside span.on { background: rgba(255,255,255,.12); color: #fff; }
.app .body { padding: 18px 18px 16px; min-width: 0; overflow: hidden; }
.app .bar-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.app h4 { margin: 0; font-size: 16px; }
.app .pill-btn { background: var(--accent); color: #fff; padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.app table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.app th { text-align: left; font-weight: 500; color: var(--ink-3); background: var(--bg-2); padding: 7px 8px; font-size: 11px; }
.app td { padding: 7px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.app td.num { text-align: right; font-variant-numeric: tabular-nums; }
.st { display: inline-block; padding: 2px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 500; }
.st.ok { background: #E3F5EC; color: var(--ok); }
.st.warn { background: #FCF1DE; color: var(--warn); }
.st.info { background: var(--accent-soft); color: var(--accent); }
.app .widgets { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 10px; }
.widget { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.widget b { display: block; font-size: 11.5px; margin-bottom: 8px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.chart i { flex: 1; background: var(--accent-2); border-radius: 3px 3px 0 0; opacity: .85; }
.chart i:nth-child(odd) { background: #9DB4EE; }
.donut { display: flex; align-items: center; gap: 10px; }
.donut svg { width: 62px; height: 62px; flex: none; }
.donut ul { margin: 0; padding: 0; list-style: none; font-size: 10.5px; color: var(--ink-2); }
.donut li { white-space: nowrap; display: flex; align-items: center; gap: 5px; margin: 2px 0; }
.donut li i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.app-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); text-align: right; }

/* Секции */
section { padding: 88px 0 0; }
.head { display: grid; grid-template-columns: auto 72px 1fr; gap: 24px; align-items: center; margin-bottom: 36px; }
.head h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.015em; margin: 0; }
.head .rule { height: 1px; background: var(--accent); opacity: .5; }
.head p { color: var(--ink-2); margin: 0; font-size: 16px; max-width: 560px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Принципы */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.principles article { padding: 28px 24px; }
.principles h3 { font-size: 20px; line-height: 1.2; margin: 18px 0 10px; }
.principles p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Продукт */
.product { display: grid; grid-template-columns: 1fr 1.15fr; overflow: hidden; }
.product .visual { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.product .visual small { color: #A9B6DC; font-size: 13px; }
.meter { display: grid; grid-template-columns: 1fr auto; font-size: 14px; color: #C9D3EE; padding: 13px 16px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.meter b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.meter .bar { height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; margin-top: 10px; grid-column: 1 / -1; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: #7E9CF2; }
.product .info { padding: 40px 44px; }
.kicker { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.product h3 { font-size: 30px; line-height: 1.15; margin: 10px 0 12px; letter-spacing: -.01em; }
.product .info > p { color: var(--ink-2); margin: 0 0 20px; font-size: 16px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 8px 0; font-size: 15.5px; border-top: 1px solid var(--line); }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232148C0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15.5px; }
.link:hover { text-decoration: underline; }
.link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.next { margin-top: 20px; padding: 22px 26px; display: flex; gap: 18px; align-items: center; border: 1px dashed #BFCBE4; border-radius: var(--radius); color: var(--ink-2); font-size: 16px; background: var(--bg-2); }

/* Процесс */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; margin: 0; }
.steps li { list-style: none; padding: 24px 22px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1.6px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 14px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -16px; top: 50%; width: 12px; height: 12px;
  border-top: 1.6px solid #B5C3E6; border-right: 1.6px solid #B5C3E6; transform: translateY(-50%) rotate(45deg); }
.steps h3 { font-size: 18px; margin: 16px 0 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Кому */
.clients { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: stretch; }
.spec { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: var(--radius); padding: 32px; margin: 0; }
.spec .kicker { color: #9DB4EE; }
.spec div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.spec div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec dt { color: #A9B6DC; }
.spec dd { margin: 0; }
.who { display: flex; flex-direction: column; justify-content: center; }
.who .head { margin-bottom: 20px; }
.who-list { display: grid; grid-template-columns: 1fr; }
.who-list article { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.who-list article:last-child { border-bottom: 0; }
.who-list h3 { margin: 2px 0 4px; font-size: 18px; }
.who-list p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Контакты */
.contact { margin: 96px 0 0; }
.contact .panel { display: grid; grid-template-columns: .9fr 1.5fr auto; gap: 36px; align-items: center; padding: 44px 48px;
  border-radius: 16px; background: linear-gradient(120deg, #EEF3FE 0%, #DFE8FB 100%); border: 1px solid #D3DDF4; }
.contact h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.015em; }
.contact .panel > div:first-child p { color: var(--ink-2); margin: 0; font-size: 16px; }
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-left: 36px; border-left: 1px solid #C6D3EF; }
.req div { background: #fff; border: 1px solid #D3DDF4; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.req div.wide { grid-column: 1 / -1; }
.req .k { display: block; color: var(--ink-3); font-size: 12.5px; }
.req a { color: var(--accent); }
.send { display: flex; flex-direction: column; gap: 12px; max-width: 220px; }
.send .btn { white-space: nowrap; }
.send p { margin: 0; font-size: 13px; color: var(--ink-2); }
.send p a { color: var(--accent); }

footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-2); }
footer .row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
footer .row img { height: 36px; width: auto; display: block; }
footer .row .sep { width: 1px; height: 28px; background: var(--line); }
footer nav { display: flex; gap: 28px; font-weight: 500; color: var(--ink); }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--accent); }
footer .mail { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
footer .mail svg { width: 18px; height: 18px; stroke: var(--ink-2); fill: none; stroke-width: 1.6; }
footer .legal { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--ink-3); }
footer .legal a { color: var(--ink-3); }
footer .legal a:hover { color: var(--ink); }

nav.links a, header.top .btn { white-space: nowrap; }
@media (max-width: 1240px) {
  nav.links { gap: 22px; }
}
@media (max-width: 1180px) {
  nav.links { gap: 14px; font-size: 14px; }
  header.top .logo img { height: 42px; width: auto; }
  header.top .wrap { gap: 16px; }
}
@media (max-width: 1020px) {
  nav.links { gap: 11px; }
  header.top .logo img { height: 38px; }
  header.top .btn { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 1080px) {
  .contact .panel { grid-template-columns: 1fr 1fr; }
  .send { grid-column: 1 / -1; max-width: none; flex-direction: row; align-items: center; gap: 20px; }
}
@media (max-width: 960px) {
  nav.links { display: none; }
  .hero { padding: 48px 0 56px; }
  .hero .grid, .product, .clients { grid-template-columns: 1fr; gap: 36px; }
  .head { grid-template-columns: 1fr; gap: 10px; }
  .head .rule { display: none; }
  .principles, .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  section { padding-top: 64px; }
  .contact .panel { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .req { padding-left: 0; border-left: 0; }
  .send { flex-direction: column; align-items: flex-start; }
  footer .mail { margin-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  header.top .wrap { height: 64px; }
  .logo img { height: 38px; }
  header.top .btn { display: none; }
  .eyebrow::after { display: none; }
  .principles, .steps { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .app aside { display: none; }
  .app .widgets { grid-template-columns: 1fr; }
  .app .hide-sm { display: none; }
  .app .pill-btn { display: none; }
  .product .info, .product .visual { padding: 26px 22px; }
  .spec { padding: 24px; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .req { grid-template-columns: 1fr; }
  .contact .panel { padding: 26px 20px; }
  footer .row .sep { display: none; }
  footer nav { flex-wrap: wrap; gap: 12px 20px; }
}

/* ===== Добавлено для линейки icubix ===== */
.logo-ico { display: inline-block; }
nav.links a.on { color: var(--accent); }

/* Схема платформы на первом экране */
.stack { padding: 22px; display: flex; flex-direction: column; gap: 12px; border-radius: 14px;
  box-shadow: 0 2px 4px rgba(15,26,51,.05), 0 24px 60px rgba(15,26,51,.14); }
.stack .lvl { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: 12px 12px 10px; font-size: 14px; font-weight: 600; line-height: 1.25; background: #fff; }
.tile small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; margin-bottom: 4px; }
.tile.ready { border-color: #B9C9F2; background: var(--accent-soft); }
.tile.ready small { color: var(--accent); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge.ready { background: #E3F5EC; color: var(--ok); }
.badge.dev { background: #EEF1F6; color: var(--ink-2); }
.core { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 10px; padding: 16px 18px; }
.core b { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; }
.core b i { width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, var(--accent-2), #6C8EF0); display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 4px 9px; border-radius: 6px; font-size: 12.5px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); color: #DCE3F6; }
.base { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px dashed #BFCBE4; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--ink-2); }
.base strong { color: var(--ink); margin-right: 6px; }
.base span { padding: 3px 8px; background: var(--bg-2); border-radius: 6px; }

/* Блок icubix */
.flagship { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0; overflow: hidden; }
.flagship .intro { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.flagship .intro .kicker { color: #9DB4EE; }
.flagship .intro h3 { font-size: 34px; margin: 0; letter-spacing: -.01em; }
.flagship .intro p { margin: 0; color: #C9D3EE; font-size: 16px; }
.flagship .intro .link { color: #fff; margin-top: auto; }
.prods { display: grid; grid-template-columns: 1fr 1fr; }
.prods article { padding: 28px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.prods article:nth-child(n+3) { border-bottom: 0; }
.prods h4 { margin: 0; font-size: 19px; }
.prods p { margin: 0; color: var(--ink-2); font-size: 15px; }
.prods .link { margin-top: auto; font-size: 15px; }
.prods .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Разработка под задачу */
.custom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 36px 40px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.custom h3 { margin: 0 0 10px; font-size: 24px; }
.custom p { margin: 0; color: var(--ink-2); }
.custom ul { margin: 0; padding: 0; list-style: none; }
.custom li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; display: flex; gap: 12px; }
.custom li:last-child { border-bottom: 0; }
.custom li b { color: var(--accent); font-variant-numeric: tabular-nums; min-width: 44px; }

/* Кому — три карточки */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience article { padding: 28px 24px; }
.audience h3 { font-size: 19px; margin: 16px 0 8px; }
.audience p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Внутренние страницы */
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-hero { padding: 56px 0 72px; background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); }
.page-hero .grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.page-hero h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.02em; margin: 16px 0 20px; }
.page-hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 0 0 30px; }
.page-hero .cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn.ghost { background: #fff; color: var(--accent); border-color: #C6D3EF; }
.btn.ghost:hover { background: var(--accent-soft); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features article { padding: 26px 24px; }
.features h3 { font-size: 18px; margin: 16px 0 8px; }
.features p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.specs div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.specs div:nth-child(odd) { border-right: 1px solid var(--line); }
.specs .k { color: var(--ink-3); }
.note-box { margin-top: 20px; padding: 18px 22px; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink-2); font-size: 15px; }

/* Текстовые страницы (политика) */
.doc { padding: 56px 0 24px; }
.doc article { max-width: 780px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.015em; margin: 14px 0 12px; }
.doc .meta { color: var(--ink-3); margin: 0 0 40px; }
.doc h2 { font-size: 22px; line-height: 1.25; margin: 40px 0 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent); }
.doc .req { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc .req div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 15px; background: #fff; }
.doc .req div:last-child { border-bottom: 0; }
.doc .req .k { display: block; font-size: 15px; }

@media (max-width: 960px) {
  .page-hero .grid, .flagship, .custom { grid-template-columns: 1fr; gap: 32px; }
  .flagship { gap: 0; }
  .prods article { border-left: 0; }
  .prods article:nth-child(3) { border-bottom: 1px solid var(--line); }
  .audience, .features { grid-template-columns: 1fr 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs div:nth-child(odd) { border-right: 0; }
  .custom { padding: 28px; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .prods { grid-template-columns: 1fr; }
  .prods article { border-bottom: 1px solid var(--line) !important; }
  .prods article:last-child { border-bottom: 0 !important; }
  .audience, .features { grid-template-columns: 1fr; }
  .flagship .intro { padding: 28px 22px; }
  .specs div, .doc .req div { grid-template-columns: 1fr; gap: 2px; padding: 12px 18px; }
  .page-hero { padding: 36px 0 48px; }
}

/* Логотип icubix */
.icubix-logo { height: 43px; width: auto; display: block; }
.icubix-hero { height: 60px; width: auto; display: block; margin: 0 0 22px; }
@media (max-width: 560px) { .icubix-hero { height: 46px; } }

/* Документация */
.docs-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; padding-top: 6px; }
.toc b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 4px; }
.toc b:first-child { margin-top: 0; }
.toc a { color: var(--ink-2); text-decoration: none; padding: 5px 10px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }
.doc h3 { font-size: 17px; margin: 26px 0 8px; }
.doc h2[id], .doc h3 { scroll-margin-top: 96px; }
.doc code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .86em; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
.doc pre { background: var(--navy); color: #DCE3F6; padding: 14px 18px; border-radius: 8px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
.doc pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; background: var(--bg-2); color: var(--ink-3); font-weight: 500; padding: 9px 12px; }
.tbl td { padding: 9px 12px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .docs-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; }
}

/* Статьи */
.page-hero .wrap > .lead { font-size: 19px; color: var(--ink-2); max-width: 720px; margin: 0; }
.article-hero h1 { max-width: 900px; }
.art-meta { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }
.art-layout { display: grid; grid-template-columns: minmax(0, 740px) 250px; gap: 64px; justify-content: space-between; padding: 56px 24px 24px; }
.art-layout .toc { order: 2; }
.prose { font-size: 17px; }
.prose h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.01em; margin: 44px 0 14px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .86em; background: var(--bg-2); padding: 1px 6px; border-radius: 4px; }
.prose pre { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13.5px; line-height: 1.55; background: var(--navy); color: #DCE3F6;
  border-radius: 8px; padding: 14px 18px; overflow-x: auto; margin: 0 0 22px; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-2); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose .note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; margin: 0 0 24px; border-radius: 0 8px 8px 0; }
.prose .note p:last-child { margin-bottom: 0; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border: 1.6px solid var(--accent); border-radius: 4px; }
.cta-box { margin-top: 48px; padding: 30px 32px; border-radius: 14px; background: linear-gradient(120deg, #EEF3FE 0%, #DFE8FB 100%); border: 1px solid #D3DDF4; }
.cta-box h2 { margin: 6px 0 8px !important; font-size: 23px !important; }
.cta-box p { margin: 0 0 20px; color: var(--ink-2); }
.cta-box .row { display: flex; gap: 12px; flex-wrap: wrap; }
.acards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.acard { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.acard:hover { border-color: #B9C9F2; box-shadow: 0 2px 4px rgba(15,26,51,.05), 0 14px 36px rgba(15,26,51,.10); }
.acard .meta { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.acard h3 { font-size: 19px; line-height: 1.25; margin: 0; }
.acard p { margin: 0; color: var(--ink-2); font-size: 15px; }
.related { padding-top: 64px; }
.articles-index + footer, .art-layout + .related + footer { margin-top: 80px; }
@media (max-width: 960px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  .art-layout .toc { order: -1; position: static; }
  .acards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .art-layout { padding: 24px 16px 0; }
  .acards { grid-template-columns: 1fr; }
  .prose h2 { font-size: 23px; }
  .cta-box { padding: 24px 20px; }
}

/* Проекты команды */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj { overflow: hidden; display: flex; flex-direction: column; }
.proj .cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.proj div.cover { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px 26px; color: #fff; position: relative; }
div.cover .url { position: absolute; top: 14px; left: 26px; font-size: 12px; opacity: .7; letter-spacing: .02em; }
div.cover b { font-size: 21px; line-height: 1.2; max-width: 300px; }
div.cover .chips { display: flex; flex-wrap: wrap; gap: 6px; }
div.cover .chips i { font-style: normal; font-size: 12px; padding: 3px 9px; border-radius: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); }
.proj .cover-360 { background: linear-gradient(150deg, #0B2A5B 0%, #12458F 100%); }
.proj .cover-ipilot { background: linear-gradient(150deg, #101418 0%, #33404D 100%); }
.proj .cover-robtor { background: linear-gradient(150deg, #0F3D3A 0%, #17766C 100%); }
.proj .cover-lymi { background: linear-gradient(150deg, #3B1F7A 0%, #7A4BD6 100%); }
.proj .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proj .tag { color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.proj h3 { margin: 0; font-size: 20px; }
.proj p { margin: 0; color: var(--ink-2); font-size: 15px; }
.proj .link { margin-top: auto; padding-top: 8px; font-size: 15px; }
.proj.wide { grid-column: span 2; flex-direction: row; }
.proj.wide .cover { width: 50%; aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); flex: none; }
.proj.wide .body { justify-content: center; padding: 32px; }
.proj.wide h3 { font-size: 24px; }
@media (max-width: 960px) {
  .projects { grid-template-columns: 1fr 1fr; }
  .proj.wide { flex-direction: column; }
  .proj.wide .cover { width: 100%; aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) { .projects { grid-template-columns: 1fr; } .proj.wide { grid-column: auto; } }

/* Фирменные заголовки (брендбук v2.0 «Техно»): Onest, жирный, плотный интервал. */
.hero h1, .page-hero h1, .doc h1, .article-hero h1,
.head h2, .contact h2, .cta-box h2,
.product h3, .flagship .intro h3, .custom h3, .proj h3 {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -.025em;
}
/* Страницы линейки iCubix (body.icubix): заголовки — Days One, шрифт логотипа. У него одно начертание 400,
   поэтому жирность сбрасываем и запрещаем браузеру дорисовывать полужирный. */
body.icubix :is(.hero h1, .page-hero h1, .doc h1, .article-hero h1, .head h2, .contact h2, .cta-box h2,
  .product h3, .flagship .intro h3, .custom h3, .proj h3) {
  font-family: var(--font-icubix); font-weight: 400; font-synthesis: none; letter-spacing: -.01em;
}
.hero h1 { font-size: clamp(30px, 3.5vw, 42px); line-height: 1.14; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; }
.doc h1, .article-hero h1 { font-size: clamp(26px, 3.3vw, 38px); line-height: 1.15; }
.head h2, .contact h2 { font-size: clamp(24px, 2.7vw, 32px); line-height: 1.15; }
.cta-box h2 { font-size: 20px !important; }
.product h3 { font-size: 25px; }
.flagship .intro h3 { font-size: 28px; }
.custom h3 { font-size: 20px; }
.proj h3 { font-size: 17px; }
.proj.wide h3 { font-size: 20px; }

/* Мобильные приложения в карточках проектов */
.proj .apps { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; }
.proj .apps b { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.proj .stores { display: flex; flex-wrap: wrap; gap: 8px; }
.store { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 9px; background: var(--ink); color: #fff; text-decoration: none; line-height: 1.1; }
a.store:hover { background: #24304F; }
span.store { background: var(--navy); }
.store svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; }
.store small { font-size: 10px; font-weight: 400; opacity: .75; }

/* Цены и новости */
.price-tbl td.num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.price-tbl td:first-child { white-space: nowrap; }
.price-tbl td:nth-child(2) { color: var(--ink-2); }
.page-hero .cta .btn.ghost { margin-left: 4px; }
.features a, .note-box a { color: var(--accent); }
.news { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item time { color: var(--accent); font-weight: 600; font-size: 14px; padding-top: 3px; }
.news-item h3 { margin: 0 0 6px; font-size: 19px; }
.news-item p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.news-item a { color: var(--accent); }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; gap: 6px; } .price-tbl td:first-child { white-space: normal; } }

/* ===== Структура 2: меню icubix, мобильное меню, подвал колонками ===== */
nav.links { align-items: center; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 4px; }
.dd-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .15s; }
nav.links .dd-btn.on { color: var(--accent); }
.dd-menu { position: absolute; left: -24px; top: 100%; padding-top: 18px; display: none; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: grid; }
.dd:hover .dd-btn svg, .dd:focus-within .dd-btn svg { transform: rotate(180deg); }
.dd-menu { grid-template-columns: 420px 220px; }
.dd-col { background: #fff; border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 2px 4px rgba(15,26,51,.05), 0 24px 60px rgba(15,26,51,.16); }
.dd-col:first-child { border-radius: 14px 0 0 14px; }
.dd-side { border-left: 0; border-radius: 0 14px 14px 0; background: var(--bg-2); }
.dd-h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px 8px; }
nav.links .dd-col a { padding: 8px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 15px; }
nav.links .dd-col a:hover { background: var(--accent-soft); color: var(--accent); }
.dd-col a.mi { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.dd-col a.mi .ico { width: 24px; height: 24px; margin-top: 2px; }
.dd-col a.mi b { display: block; font-weight: 600; }
.dd-col a.mi small { display: block; color: var(--ink-3); font-weight: 400; font-size: 13px; line-height: 1.35; margin-top: 2px; }

.burger { display: none; }
.burger summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; }
.burger summary::-webkit-details-marker { display: none; }
.burger summary span, .burger summary span::before, .burger summary span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.burger summary span::before { position: absolute; top: -6px; }
.burger summary span::after { position: absolute; top: 6px; }
.burger[open] summary span { background: transparent; }
.burger[open] summary span::before { top: 0; transform: rotate(45deg); }
.burger[open] summary span::after { top: 0; transform: rotate(-45deg); }
.mob { position: fixed; left: 0; right: 0; top: 64px; bottom: 0; background: #fff; overflow-y: auto; padding: 16px 20px 40px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mob b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 6px; }
.mob a:not(.btn) { padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 17px; }
.mob .btn { margin-top: 24px; justify-content: center; }

footer .fcols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
footer .fbrand img { height: 44px; width: auto; display: block; }
footer .fbrand p { margin: 14px 0 12px; color: var(--ink-2); max-width: 280px; }
footer .fbrand .mail { margin-left: 0; }
footer .msgr { display: flex; gap: 16px; margin-top: 12px; }
footer .msgr a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; }
footer .msgr a:hover { color: var(--accent); }
footer .msgr img { width: 20px; height: 20px; display: block; }
footer .fcols nav { display: flex; flex-direction: column; gap: 9px; font-weight: 400; }
footer .fcols nav b { color: var(--ink); font-size: 14px; margin-bottom: 4px; }
footer .fcols nav a { color: var(--ink-2); text-decoration: none; }
footer .fcols nav a:hover { color: var(--accent); }
footer .legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; }

/* Подменю продукта */
.subnav { position: sticky; top: 76px; z-index: 9; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; align-items: center; overflow-x: auto; height: 52px; }
.subnav b { margin-right: 14px; white-space: nowrap; font-size: 15px; }
.subnav a { white-space: nowrap; text-decoration: none; color: var(--ink-2); font-size: 14.5px; padding: 6px 12px; border-radius: 8px; }
.subnav a:hover { color: var(--accent); }
.subnav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Каталог продуктов */
.catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pcard { padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.pcard:hover { border-color: #B9C9F2; box-shadow: 0 2px 4px rgba(15,26,51,.05), 0 14px 36px rgba(15,26,51,.10); }
.pcard .top { display: flex; justify-content: space-between; align-items: center; }
.pcard h3 { margin: 4px 0 0; font-size: 21px; }
.pcard p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.pcard .aud { font-size: 13.5px; color: var(--ink-3); }
.pcard .link { margin-top: auto; padding-top: 6px; }

@media (max-width: 1080px) { .dd-menu { grid-template-columns: 380px 200px; } }
@media (max-width: 960px) {
  .burger { display: block; }
  header.top .btn.small { display: none; }
  footer .fcols { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .subnav { top: 64px; }
}
@media (max-width: 560px) { footer .fcols { grid-template-columns: 1fr; } }

a.tile { text-decoration: none; color: var(--ink); transition: border-color .15s; }
a.tile:hover { border-color: var(--accent); }
.more { margin-top: 24px; text-align: center; }
.note-box.big { font-size: 17px; color: var(--ink); padding: 26px 28px; line-height: 1.6; }
@media (max-width: 960px) { .mob { top: 76px; } }
@media (max-width: 560px) { .mob { top: 64px; } }

.mob { position: absolute; top: 100%; left: 0; right: 0; bottom: auto; height: calc(100vh - 64px); }
@media (max-width: 960px) { .mob { top: 100%; } }
.features.two { grid-template-columns: repeat(2, 1fr); }
.features.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .features.four { grid-template-columns: 1fr 1fr; } }
.catalog.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .catalog.three { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .features.two, .features.four { grid-template-columns: 1fr; } }

/* ===== Первый экран «Контур» (главная) ===== */
header.top.dark { background: rgba(6,11,26,.92); border-bottom-color: rgba(140,170,255,.12); }
header.top.dark .logo img { filter: brightness(0) invert(1); }
header.top.dark nav.links > a, header.top.dark .dd-btn { color: #B9C6E8; }
header.top.dark nav.links > a:hover, header.top.dark .dd-btn:hover { color: #fff; }
header.top.dark .btn.small { background: #2F5BFF; border-color: #2F5BFF; box-shadow: 0 8px 24px rgba(47,91,255,.4); }
header.top.dark .burger summary { border-color: rgba(255,255,255,.2); }
header.top.dark .burger summary span, header.top.dark .burger summary span::before, header.top.dark .burger summary span::after { background: #fff; }
header.top.dark .burger[open] summary span { background: transparent; }

.hx { position: relative; overflow: hidden; color: #EAF0FF; padding: 64px 0 88px;
  background: radial-gradient(1100px 650px at 74% 45%, rgba(36,91,255,.22), transparent 60%),
              radial-gradient(800px 500px at 8% 100%, rgba(110,143,255,.10), transparent 60%), #0B1A36; }
.hx::before { content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: linear-gradient(rgba(140,170,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(140,170,255,.12) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(900px 600px at 72% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(900px 600px at 72% 45%, #000 20%, transparent 75%); }
.hx-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hx-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 99px; background: rgba(91,131,255,.10); border: 1px solid rgba(91,131,255,.28); font-size: 13.5px; color: #C9D6FF; }
.hx-pill i { width: 8px; height: 8px; border-radius: 50%; background: #3BE08A; box-shadow: 0 0 10px #3BE08A; }
.hx h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.04; letter-spacing: -.03em; margin: 22px 0; color: #fff; }
.hx h1 em { font-style: normal; background: linear-gradient(90deg, #8FA9FF, #4C74FF 60%, #9BB2FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-lead { font-size: 19px; color: #93A3C8; max-width: 520px; margin: 0 0 34px; }
.hx-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.hx-btn { background: var(--accent); border-color: var(--accent); box-shadow: 0 10px 30px rgba(36,91,255,.45); }
.btn.hx-btn:hover { background: #3F6FFF; }
.btn.hx-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.16); color: #fff; }
.btn.hx-ghost:hover { background: rgba(255,255,255,.08); }
.hx-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 34px; margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.hx-stats b { display: block; font-family: var(--font-head); font-size: 32px; font-weight: 700; color: #fff; line-height: 1.2; }
.hx-stats span { font-size: 13px; color: #93A3C8; }
.hx-scene { width: 100%; height: auto; overflow: visible; font-family: "Onest", sans-serif; }
.hx-border { fill: rgba(47,91,255,.04); stroke: #5B83FF; stroke-opacity: .55; stroke-width: 1.5; }
.hx-ring { transform-origin: 300px 300px; animation: hx-spin 60s linear infinite; }
.hx-ring circle { fill: none; stroke: #5B83FF; stroke-opacity: .35; stroke-dasharray: 2 10; }
.hx-cap { fill: #93A3C8; font: 12px "JetBrains Mono", monospace; letter-spacing: 3px; }
.hx-net circle { fill: rgba(255,93,108,.08); stroke: #FF5D6C; stroke-opacity: .6; }
.hx-net path { fill: none; stroke: #FF8A95; stroke-width: 1.5; }
.hx-net line { stroke: #FF5D6C; stroke-width: 2.5; }
.hx-net text { fill: #FF8A95; font: 11px "JetBrains Mono", monospace; }
.hx-out { fill: none; stroke: #FF5D6C; stroke-opacity: .35; stroke-dasharray: 4 6; }
.hx-blocked { fill: #FF5D6C; }
.hx-node rect { fill: #0E1A3F; stroke: #3B5CC9; }
.hx-node .hx-ic * { fill: none; stroke: #8FA9FF; stroke-width: 1.5; }
.hx-node text { fill: #C9D6FF; font-size: 12px; }
.hx-lines path { fill: none; stroke: #5B83FF; stroke-opacity: .35; stroke-width: 1.2; }
.hx-dot { fill: #9FB6FF; }
.hx-core { animation: hx-pulse 3s ease-in-out infinite; }
.hx-server > rect { stroke: #7E9CF2; stroke-opacity: .7; }
.hx-slots rect { fill: #0A1433; stroke: #5B83FF; stroke-opacity: .5; }
.hx-led circle { fill: #3BE08A; }
.hx-name { fill: #fff; font-size: 13px; font-weight: 600; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
@keyframes hx-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ===== Первый экран /icubix/: изометрия ===== */
.ihx { padding: 40px 0 64px; background: radial-gradient(900px 600px at 78% 40%, #DCE6FF 0%, transparent 65%), radial-gradient(700px 500px at 0% 100%, #EEF2FF, transparent 60%), #F7F9FE; }
.ihx-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; }
.ihx .crumbs { margin-bottom: 22px; }
.ihx-logo { height: 46px; width: auto; display: block; margin-bottom: 18px; }
.ihx h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 22px; }
.ihx h1 span { color: var(--accent); }
.ihx .lead { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 0 0 30px; }
.ihx .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ihx-chips { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 30px 0 0; }
.ihx-chips li { padding: 7px 14px; border-radius: 99px; background: #fff; font-size: 14px; color: var(--ink-2); box-shadow: 0 4px 14px rgba(14,23,52,.06); }
.ihx-scene { position: relative; }
.iso { width: 100%; height: auto; overflow: visible; font-family: "Onest", sans-serif; }
.iso-shadow { fill: rgba(14,23,52,.16); filter: url(#isobl); }
.iso-b-t { fill: #13244F; stroke: rgba(255,255,255,.2); } .iso-b-l { fill: #0A1533; } .iso-b-r { fill: #1A3170; }
.iso-ready-t { fill: url(#isoG); stroke: rgba(255,255,255,.4); } .iso-ready-l { fill: #167A4B; } .iso-ready-r { fill: #1C8C57; }
.iso-dev-t { fill: url(#isoB); stroke: rgba(255,255,255,.35); } .iso-dev-l { fill: #1A39A0; } .iso-dev-r { fill: #2A4FD0; }
.iso-m text { fill: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
.iso-m { cursor: pointer; animation: iso-fall 1.1s cubic-bezier(.2,.9,.25,1.15) both; transition: transform .2s; }
.iso-m:hover, .iso-m:focus { transform: translateY(-8px); }
.iso-m:focus { outline: none; }
.iso-m:focus-visible polygon[class$="-t"] { stroke: #fff; stroke-width: 2; }
.iso-cap { fill: rgba(255,255,255,.55); font: 12px "JetBrains Mono", monospace; letter-spacing: 2px; }
@keyframes iso-fall { from { transform: translateY(-220px); opacity: 0; } to { transform: none; opacity: 1; } }
.ihx-tag { position: absolute; font-size: 13px; background: #fff; padding: 8px 12px; border-radius: 10px; box-shadow: 0 8px 24px rgba(14,23,52,.10); white-space: nowrap; }
.ihx-tag i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.ihx-tag i.g { background: #1F9D62; } .ihx-tag i.b { background: var(--accent); } .ihx-tag i.n { background: var(--navy); }
.ihx-tag.t1 { left: 0; top: 0; } .ihx-tag.t2 { right: 0; bottom: 16%; } .ihx-tag.t3 { left: 4%; bottom: 0; }

@media (max-width: 960px) {
  .hx-grid, .ihx-grid { grid-template-columns: 1fr; }
  .hx { padding: 40px 0 56px; }
  .hx-scene { max-width: 520px; margin: 0 auto; }
  .ihx-tag { position: static; display: inline-block; margin: 6px 6px 0 0; white-space: normal; }
}
@media (max-width: 560px) { .hx-stats { grid-template-columns: repeat(2, auto); gap: 18px 28px; } .hx-stats b { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) {
  .hx-ring, .hx-core, .iso-m { animation: none !important; }
  .hx-dot, .hx-blocked { display: none; }
  html { scroll-behavior: auto; }
}

/* ===== Скролл-история «Как это работает» ===== */
.story { padding-bottom: 24px; }
.st-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.st-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .4s; padding-right: 8px; }
.st-step:first-child { min-height: 46vh; justify-content: flex-start; padding-top: 8vh; }
.st-step:last-child { min-height: 70vh; }
.story[data-step="1"] .st-step[data-n="1"], .story[data-step="2"] .st-step[data-n="2"],
.story[data-step="3"] .st-step[data-n="3"], .story[data-step="4"] .st-step[data-n="4"] { opacity: 1; }
.st-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #4C74FF, #2148C0); box-shadow: 0 8px 20px rgba(33,72,192,.3); }
.st-step h3 { font-size: 28px; line-height: 1.15; margin: 18px 0 12px; letter-spacing: -.01em; }
.st-step p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 460px; }
.st-sticky { position: sticky; top: 150px; align-self: start; }
.st-scene { position: relative; height: 470px; border-radius: 18px; overflow: hidden; color: #EAF0FF;
  background: radial-gradient(600px 400px at 50% 55%, rgba(36,91,255,.25), transparent 65%), #0B1A36;
  box-shadow: 0 2px 4px rgba(15,26,51,.06), 0 30px 70px rgba(15,26,51,.22); }
.st-svg { position: absolute; inset: 20px 0 0; width: 100%; height: auto; font-family: "Onest", sans-serif; transition: opacity .5s, transform .5s; }
.st-radar circle { fill: none; stroke: #5B83FF; stroke-opacity: .18; }
.st-lines path { fill: none; stroke: #5B83FF; stroke-opacity: .3; stroke-width: 1.2; opacity: 0; transition: opacity .5s; }
.st-dots { opacity: 0; transition: opacity .5s; } .st-dots circle { fill: #9FB6FF; }
.st-pr rect { fill: #0E1A3F; stroke: #3B5CC9; } .st-pr path { fill: none; stroke: #8FA9FF; stroke-width: 1.4; }
.st-pr { opacity: 0; transform-box: fill-box; transform-origin: center; animation: none; }
.st-ok { fill: #3BE08A; opacity: 0; transition: opacity .3s; }
.st-srv > rect { fill: var(--navy-2); stroke: #7E9CF2; } .st-srv .slot { fill: #0A1433; stroke: #5B83FF; stroke-opacity: .5; }
.st-srv text { fill: #93A3C8; font: 11px "JetBrains Mono", monospace; }
.st-scan { fill: #8FA9FF; font: 12px "JetBrains Mono", monospace; opacity: 0; transition: opacity .4s; }
.st-meter, .st-recon, .st-xls { position: absolute; left: 24px; right: 24px; opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .45s; pointer-events: none; }

/* шаг 1 — аппараты появляются, радар */
.story .st-pr { opacity: 1; animation: st-pop .5s var(--d) both; }
.story[data-step="1"] .st-scan { opacity: 1; }
.story[data-step="1"] .st-radar circle { animation: st-ping 2.4s ease-out infinite; transform-origin: 300px 250px; }
.story[data-step="1"] .st-radar circle:nth-child(2) { animation-delay: .8s; } .story[data-step="1"] .st-radar circle:nth-child(3) { animation-delay: 1.6s; }
.story:not([data-step="1"]) .st-ok { opacity: 1; }
/* шаг 2 — данные текут, счётчики */
.story[data-step="2"] .st-lines path, .story[data-step="2"] .st-dots { opacity: 1; }
.story[data-step="2"] .st-svg { transform: translateY(-48px) scale(.86); }
.st-meter { bottom: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.st-meter div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px; }
.st-meter span { display: block; font-size: 12px; color: #93A3C8; } .st-meter b { font-size: 18px; font-variant-numeric: tabular-nums; }
.st-meter small { grid-column: 1 / -1; color: #93A3C8; font-size: 12px; }
.story[data-step="2"] .st-meter { opacity: 1; transform: none; }
/* шаг 3 — сверка */
.story[data-step="3"] .st-svg, .story[data-step="4"] .st-svg { opacity: .12; transform: scale(.9); }
.st-recon { top: 22px; background: #fff; color: var(--ink); border-radius: 14px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.st-h { display: block; font-size: 14px; margin-bottom: 12px; }
.st-sums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.st-sum { background: var(--bg-2); border-radius: 10px; padding: 10px 12px; }
.st-sum span { display: block; font-size: 11.5px; color: var(--ink-3); } .st-sum b { font-size: 17px; font-variant-numeric: tabular-nums; }
.st-sum.over { background: #FDECEC; } .st-sum.over b { color: #C4321F; }
.st-recon table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-recon th { text-align: left; color: var(--ink-3); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.st-recon td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.st-recon tr.bad td:nth-child(3) { color: #C4321F; font-weight: 600; }
.st-recon tr.ghost td { color: #C4321F; } .st-recon tr.ghost td:first-child::after { content: " · нет в нашем учёте"; font-size: 11px; }
.st-recon small { display: block; margin-top: 8px; color: var(--ink-3); font-size: 11.5px; }
.story[data-step="3"] .st-recon { opacity: 1; transform: none; }
/* шаг 4 — Excel */
.st-xls { top: 90px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.st-file { display: flex; gap: 14px; align-items: center; width: 100%; max-width: 380px; background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.st-file:nth-child(2) { transform: translateX(26px); }
.st-ext { flex: none; width: 46px; height: 54px; border-radius: 8px; background: linear-gradient(160deg, #22A05A, #167A3F); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: end center; padding-bottom: 8px; }
.st-file b { display: block; font-size: 15px; } .st-file small { color: var(--ink-3); font-size: 12.5px; }
.st-mail { color: #C9D6FF; font-size: 14px; margin-top: 4px; }
.story[data-step="4"] .st-xls { opacity: 1; transform: none; }

@keyframes st-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes st-ping { 0% { stroke-opacity: .5; transform: scale(.6); } 100% { stroke-opacity: 0; transform: scale(1.15); } }

@media (max-width: 960px) {
  .st-grid { grid-template-columns: 1fr; gap: 0; }
  .st-sticky { position: sticky; top: 128px; order: -1; z-index: 2; padding: 8px 0; background: #fff; }
  .st-scene { height: 340px; }
  .st-step, .st-step:first-child, .st-step:last-child { min-height: 70vh; justify-content: center; padding-top: 0; }
  .st-meter { grid-template-columns: repeat(2, 1fr); }
  .st-recon { padding: 12px; } .st-recon table { display: none; }
  .st-xls { top: 50px; }
}
@media (max-width: 560px) { .st-sticky { top: 116px; } .st-scene { height: 300px; } .st-step h3 { font-size: 23px; } .st-sums { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .st-pr, .st-radar circle { animation: none !important; }
  .st-dots { display: none; }
  .st-svg, .st-meter, .st-recon, .st-xls, .st-step { transition: none; }
}

/* ===== Проекты: мокапы устройств ===== */
.projects.two { grid-template-columns: repeat(2, 1fr); }
.dv-stage { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 1px solid var(--line); perspective: 1200px; padding: 26px 30px 18px; }
.proj.wide .dv-stage { width: 52%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); flex: none; }
.st-light { background: radial-gradient(120% 90% at 30% 0%, #fff 0%, #EAF0FD 70%); }
.st-navy { background: radial-gradient(120% 90% at 30% 0%, #1E3C8F 0%, #0B1A45 75%); }
.st-dark { background: radial-gradient(120% 90% at 30% 0%, #36414E 0%, #0F1318 75%); }
.st-teal { background: radial-gradient(120% 90% at 30% 0%, #1E8C80 0%, #0C3936 75%); }
.st-pink { background: radial-gradient(120% 90% at 30% 0%, #8F2A86 0%, #1B0F2A 75%); }
.st-violet { background: radial-gradient(120% 90% at 30% 0%, #8A62E6 0%, #2E1863 75%); }
.dv-laptop { width: 86%; transform: rotateX(4deg) rotateY(-10deg); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.dv-screen { aspect-ratio: 16 / 10; background: #0B0D12; border: 7px solid #0B0D12; border-bottom-width: 12px; border-radius: 12px 12px 4px 4px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(8,12,30,.35), 0 0 0 1px rgba(255,255,255,.06) inset; }
.dv-screen img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.dv-base { height: 10px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #C9CDD6, #8E94A1); box-shadow: 0 14px 24px rgba(8,12,30,.3); position: relative; }
.dv-base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: #7C828F; }
.dv-phone { position: absolute; right: 7%; bottom: 7%; width: 22%; aspect-ratio: 390 / 844; background: #0B0D12; border: 5px solid #0B0D12; border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(8,12,30,.45), 0 0 0 1px rgba(255,255,255,.12); transform: rotateY(-14deg) rotateZ(2deg) translateZ(40px); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.proj.wide .dv-phone { width: 20%; }
.dv-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; border-radius: 16px; }
.dv-notch { position: absolute; top: 4px; left: 50%; width: 32%; height: 9px; transform: translateX(-50%); background: #0B0D12; border-radius: 99px; z-index: 2; }
.proj:hover .dv-laptop { transform: rotateX(2deg) rotateY(-4deg) translateY(-4px); }
.proj:hover .dv-phone { transform: rotateY(-6deg) rotateZ(0deg) translateY(-10px) translateZ(60px); }
/* нарисованные экраны */
.plate { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 8% 9%; color: #fff; position: relative; }
.plate .url { position: absolute; top: 7%; left: 9%; font-size: 11px; opacity: .65; }
.plate b { font-size: clamp(14px, 1.6vw, 20px); line-height: 1.2; }
.plate .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.plate .chips i { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); }
.plate.st-360, .pplate.st-360 { background: linear-gradient(150deg, #0B2A5B, #12458F); }
.plate.st-ipilot { background: linear-gradient(150deg, #101418, #33404D); }
.plate.st-robtor { background: linear-gradient(150deg, #0F3D3A, #17766C); }
.plate.st-lymi, .pplate.st-lymi { background: linear-gradient(150deg, #3B1F7A, #7A4BD6); }
.pplate { width: 100%; height: 100%; border-radius: 16px; padding: 22% 8% 8%; color: #fff; font-size: 9px; }
.pplate b { display: block; font-size: 11px; margin-bottom: 8px; }
.pplate ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pplate li { display: flex; justify-content: space-between; gap: 4px; padding: 5px 6px; border-radius: 6px; background: rgba(255,255,255,.12); line-height: 1.25; }
.pplate li em { font-style: normal; opacity: .75; }
.pplate.st-lymi li { max-width: 85%; } .pplate.st-lymi li.me { align-self: flex-end; background: rgba(255,255,255,.28); }
@media (max-width: 960px) {
  .projects.two { grid-template-columns: 1fr 1fr; }
  .proj.wide .dv-stage { width: 100%; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) { .projects.two { grid-template-columns: 1fr; } .dv-stage { padding: 20px 22px 14px; } }
@media (prefers-reduced-motion: reduce) { .dv-laptop, .dv-phone { transition: none; } }
.pplate { font-size: 8px; padding-top: 24%; }
.pplate li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 5px; }
.pplate.st-lymi li { white-space: normal; }
.projects:not(.two) .proj:not(.wide) .dv-laptop { width: 80%; }

/* ===== Картинки первых экранов и обложки статей ===== */
.page-hero.dark-img { position: relative; color: #EAF0FF; padding: 96px 0 104px;
  background: linear-gradient(90deg, #060B1A 0%, rgba(6,11,26,.92) 38%, rgba(6,11,26,.45) 68%, rgba(6,11,26,.15) 100%), var(--hero-img) right center / cover no-repeat, #060B1A; }
.page-hero.dark-img h1 { color: #fff; max-width: 680px; }
.page-hero.dark-img .lead, .page-hero.dark-img p.lead { color: #B9C6E8; max-width: 560px; }
.page-hero.dark-img .crumbs, .page-hero.dark-img .crumbs a { color: #93A3C8; }
.page-hero.dark-img .eyebrow { color: #8FA9FF; } .page-hero.dark-img .eyebrow::after { background: #8FA9FF; }
.page-hero.dark-img .btn.ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.page-hero.dark-img .grid > div:nth-child(2) { display: none; }
.page-hero.side-img { position: relative; overflow: hidden; }
.page-hero.side-img::after { content: ""; position: absolute; top: 24px; bottom: 24px; right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); width: min(41%, 540px);
  background: var(--hero-img) center / cover no-repeat; border-radius: 20px; box-shadow: 0 2px 4px rgba(15,26,51,.06), 0 30px 70px rgba(15,26,51,.16); }
.page-hero.side-img .wrap > *, .page-hero.side-img .grid > div:first-child { max-width: 50%; }
.page-hero.side-img .grid { display: block; }
.page-hero.side-img .grid > div:nth-child(2) { display: none; }
.page-hero.side-img .wrap > .crumbs { max-width: none; }
.acard.has-cover { padding-top: 0; overflow: hidden; }
.acover { display: block; width: calc(100% + 48px); margin: 0 -24px 6px; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
@media (max-width: 960px) {
  .page-hero.dark-img { padding: 64px 0 72px; background: linear-gradient(180deg, rgba(6,11,26,.75), #060B1A 85%), var(--hero-img) center top / cover no-repeat, #060B1A; }
  .page-hero.side-img { padding-top: calc(56vw + 32px); }
  .page-hero.side-img::after { top: 16px; left: 16px; right: 16px; bottom: auto; width: auto; height: 52vw; }
  .page-hero.side-img .wrap > *, .page-hero.side-img .grid > div:first-child { max-width: none; }
}

/* ===== Полировка: появление, микродвижение ===== */
header.top { transition: box-shadow .25s, background-color .25s; }
header.top.scrolled { box-shadow: 0 1px 0 rgba(15,26,51,.04), 0 10px 30px rgba(15,26,51,.08); }
.rv { opacity: .3; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--rv, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--rv, 0ms); }
.rv.in { opacity: 1; transform: none; }
.btn { transition: background-color .15s, box-shadow .2s, transform .2s, border-color .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(33,72,192,.28); }
.btn.ghost:hover { box-shadow: 0 8px 20px rgba(15,26,51,.08); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg, .link svg { transition: transform .2s; }
.btn:hover svg, .link:hover svg, a.pcard:hover .link svg, .acard:hover svg { transform: translateX(3px); }
.card { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; }
.features .card:hover, .principles .card:hover, .audience .card:hover, .steps .card:hover, .proj:hover, .pcard:hover, .acard:hover {
  transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,26,51,.05), 0 18px 40px rgba(15,26,51,.10); border-color: #C9D6F5; }
.features .card .ico, .principles .card .ico, .audience .card .ico { transition: transform .25s; }
.features .card:hover .ico, .principles .card:hover .ico, .audience .card:hover .ico { transform: scale(1.08) rotate(-3deg); }
nav.links > a, .dd-btn { position: relative; }
nav.links > a::after, .dd-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform .2s; transform-origin: left; }
nav.links > a:hover::after, nav.links > a.on::after, .dd-btn:hover::after, .dd-btn.on::after { transform: scaleX(1); }
.dd-menu { animation: dd-in .18s ease-out; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .btn svg, .link svg, .ico, header.top, .dd-menu { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover, .proj:hover { transform: none !important; }
}

/* ===== Калькулятор цен ===== */
.calc { display: grid; grid-template-columns: 1fr 1.05fr; gap: 0; overflow: hidden; }
.cc-form { padding: 30px 32px; display: flex; flex-direction: column; gap: 22px; border-right: 1px solid var(--line); }
.cc-tabs { display: inline-flex; background: var(--bg-2); border-radius: 10px; padding: 4px; gap: 4px; align-self: start; }
.cc-tabs input, .cc-years input { position: absolute; opacity: 0; pointer-events: none; }
.cc-tabs span { display: block; padding: 8px 16px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.cc-tabs input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,26,51,.12); }
.cc-tabs input:focus-visible + span, .cc-years input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.cc-field { display: flex; flex-direction: column; gap: 10px; }
.cc-field > label, .cc-l { font-weight: 600; font-size: 15px; }
.cc-n { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.cc-n input[type=number] { font: 600 20px "Onest", sans-serif; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; width: 100%; color: var(--ink); }
.cc-n input[type=number]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cc-n input[type=range] { width: 100%; accent-color: var(--accent); }
.cc-warn { color: #B4540A; font-size: 13px; }
.cc-mod { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.cc-mod:has(input:checked) { border-color: #B9C9F2; background: var(--accent-soft); }
.cc-mod input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.cc-mod b { display: block; font-size: 15px; } .cc-mod small { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.4; font-weight: 400; }
.cc-years { display: flex; gap: 6px; flex-wrap: wrap; }
.cc-years span { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14.5px; cursor: pointer; }
.cc-years input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; }
.cc-impl { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.cc-impl input { width: 18px; height: 18px; accent-color: var(--accent); }
.cc-out { padding: 30px 32px; background: var(--bg-2); display: flex; flex-direction: column; gap: 16px; }
.cc-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc-cmp[hidden], .cc-service[hidden], .cc-org[hidden] { display: none; }
.cc-opt { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 18px; position: relative; transition: border-color .2s, box-shadow .2s; }
.cc-opt.best { border-color: var(--accent); box-shadow: 0 10px 30px rgba(33,72,192,.14); }
.cc-opt.best::before { content: "Выгоднее на этот срок"; position: absolute; top: -11px; left: 14px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.cc-service .cc-opt.best::before { content: "Для сервисных компаний"; }
.cc-h { display: block; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.cc-total { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 700; margin: 6px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cc-sub { color: var(--ink-3); font-size: 13px; }
.cc-lines { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; }
.cc-note { margin: 0; font-size: 13px; color: var(--ink-3); }
.cc-kp { align-self: flex-start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } .cc-form { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .cc-cmp { grid-template-columns: 1fr; } .cc-form, .cc-out { padding: 22px 18px; } .cc-n { grid-template-columns: 90px 1fr; } }

/* Уровни поддержки */
.sla-tbl th:not(:first-child) { color: var(--ink); font-weight: 700; font-size: 15px; }
.sla-tbl th:last-child, .sla-tbl td:last-child { background: var(--accent-soft); }
.sla-tbl td:first-child { color: var(--ink-3); white-space: nowrap; }
.sla-tbl td { vertical-align: top; }
.prio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.prio div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; color: var(--ink-2); }
.prio b { display: block; color: var(--ink); margin-bottom: 4px; }
.sla-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
@media (max-width: 960px) { .prio { grid-template-columns: 1fr; } .sla-tbl td:first-child { white-space: normal; } }

/* Уведомление о cookie */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 30; max-width: 440px;
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 26, 51, .16); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--accent); }
.cookie .btn { flex: none; }
@media (max-width: 560px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie .btn { justify-content: center; }
}

/* выпуски на странице «Версии» */
.release { padding: 26px 28px; }
.release:hover { transform: none; }
.release h3 { margin: 0 0 8px; }
.release h3 small { font: 500 14px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--ink-3); margin-left: 10px; }
.release h4 { margin: 22px 0 8px; font-size: 15px; }
.release ul { margin: 0; padding-left: 20px; }
.release li { margin: 4px 0; }
.release ul.pkgs { list-style: none; padding: 0; margin: 8px 0 14px; border: 1px solid var(--line); border-radius: 8px; }
.pkgs li { margin: 0; padding: 10px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; }
.pkgs li + li { border-top: 1px solid var(--line); }
.pkgs b { font: 500 14px/1.4 "JetBrains Mono", ui-monospace, monospace; word-break: break-all; }
.pkgs span { color: var(--ink-3); font-size: 14px; text-align: right; }
.pkgs code.hash { grid-column: 1 / -1; background: none; padding: 0; color: var(--ink-3); }
@media (max-width: 640px) { .pkgs li { grid-template-columns: 1fr; } .pkgs span { text-align: left; } }
.release code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .86em; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
.release code.hash { font-size: 11.5px; word-break: break-all; }
@media (max-width: 640px) { .release { padding: 20px 16px; } }

/* ── Доводка дизайна, шаг 1 ── */
/* призыв внизу страниц: куда написать вместо простыни реквизитов */
@media (min-width: 1101px) { .contact .panel { grid-template-columns: 1fr 1.1fr auto; } }
.ch-list { display: grid; gap: 10px; padding-left: 36px; border-left: 1px solid #C6D3EF; }
.ch { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: #fff; border: 1px solid #D3DDF4; border-radius: 12px;
  color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ch:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 20px -12px rgba(30, 64, 175, .45); text-decoration: none; }
.ch-i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: #EEF3FF; }
.ch-i svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ch b { display: block; font-weight: 600; font-size: 15.5px; }
.ch small { display: block; color: var(--ink-2); font-size: 13px; }
.send .send-req { font-size: 13px; }
@media (min-width: 861px) and (max-width: 1100px) { .contact .panel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .ch-list { padding-left: 0; border-left: 0; } }
/* цены: метка статуса и цена не рвутся посередине; продукты в разработке — одной строкой */
.price-tbl .badge, .price-tbl td:last-child a { white-space: nowrap; }
.price-tbl tr.later td { background: var(--bg-2, #F5F7FB); }
/* появление при прокрутке: блок никогда не прозрачен целиком — робот, снимок страницы и печать видят текст */
@media print { .rv { opacity: 1 !important; transform: none !important; } }

/* ── Доводка дизайна, шаг 2 ── */
/* обложки статей — 16:9: атрибут height="675" без height:auto растягивал картинку в высоту */
.acover { height: auto; }
/* четыре статьи в группе — сеткой 2×2, без одинокой карточки в последнем ряду */
@media (min-width: 961px) { .acards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
/* первый экран на телефоне: обе кнопки на всю ширину */
@media (max-width: 560px) { .hx-cta { flex-direction: column; align-items: stretch; } .hx-cta .btn { width: 100%; justify-content: center; } }
/* «Стать партнёром» на /partneram/ — отправляет js/consultant.js */
.papply { padding: 24px; display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.papply-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.papply label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.papply input, .papply select, .papply textarea { font: inherit; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.papply input:focus, .papply select:focus, .papply textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.papply .papply-consent { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 13px; }
.papply-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.papply-msg { margin: 0; min-height: 1.2em; font-size: 14px; }
.papply-msg.err { color: #b42318; } .papply-msg.ok { color: #067647; }
.papply .btn { align-self: flex-start; font-family: inherit; border: 0; cursor: pointer; }

/* Подпись «Продукт Архитекторов программных систем» у продуктов (брендбук, стр. 08): связывает продукт с компанией */
.by-brand { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 18px; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; color: var(--ink-2); }
.by-brand img { height: 15px; width: auto; display: block; }

/* Строка над шапкой: телефон и почта */
.topbar { background: var(--navy); color: #C9D3EE; font-size: 13.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 24px; height: 36px; }
.topbar .tb-note { margin-right: auto; color: #93A3C8; }
.topbar .tb-l { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; font-weight: 500; white-space: nowrap; }
.topbar .tb-l:hover { color: #A9C0FF; }
.topbar svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
@media (max-width: 720px) { .topbar .tb-note { display: none; } .topbar .wrap { justify-content: space-between; gap: 12px; } }
@media (max-width: 380px) { .topbar { font-size: 12.5px; } .topbar svg { display: none; } }

/* ===================================================================================
   Брендбук v2.0 «Техно» (решение владельца 21.11.2026; бренд — «Архитекторы программных систем»)
   Тёмное: строка контактов, шапка, первые экраны, подвал. Светлое: разделы с текстом.
   =================================================================================== */
body { font-family: "Onest", system-ui, sans-serif; }
.hero h1, .page-hero h1, .doc h1, .article-hero h1, .head h2 { font-weight: 800; letter-spacing: -.03em; }
.head h2 { letter-spacing: -.025em; }
/* моно-подписи: «01 / РАЗДЕЛ» */
.eyebrow, .kicker, .dd-h, .crumbs { font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 12.5px; }
.crumbs { letter-spacing: .06em; font-size: 12px; }
.head .rule { opacity: .35; }

/* строка контактов и шапка */
.topbar { background: var(--void); color: var(--d-mute); border-bottom: 1px solid rgba(120,150,255,.10); }
.topbar .tb-note { color: var(--d-mute); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.topbar .tb-l { color: var(--frost); }
.topbar .tb-l:hover { color: var(--signal); }
header.top { background: rgba(255,255,255,.97); border-bottom-color: var(--line); backdrop-filter: blur(12px) saturate(1.4); }
header.top.scrolled { box-shadow: 0 1px 0 rgba(15,26,51,.04), 0 10px 30px rgba(15,26,51,.08); }
header.top nav.links > a, header.top .dd-btn { color: var(--ink-2); }
header.top nav.links > a:hover, header.top .dd-btn:hover, header.top nav.links > a.on, header.top .dd-btn.on { color: var(--ink); }
header.top .btn.small { box-shadow: 0 6px 22px rgba(61,107,255,.30), inset 0 1px 0 rgba(255,255,255,.2); }
.subnav { top: 76px; }

/* кнопки */
.btn { border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.btn:hover { box-shadow: 0 10px 28px rgba(46,91,255,.35); }

/* первые экраны внутренних страниц — тёмные, сетка 40 px и кобальтовый ореол */
.page-hero:not(.side-img):not(.dark-img), .ihx { position: relative; overflow: hidden; color: var(--frost);
  background: radial-gradient(900px 520px at 78% 40%, rgba(61,107,255,.26), transparent 65%), var(--void); }
.page-hero:not(.side-img):not(.dark-img)::before, .ihx::before, .hx::before, .page-hero.side-img::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(120,150,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(120,150,255,.08) 1px, transparent 1px);
  background-size: 40px 40px; -webkit-mask-image: radial-gradient(1000px 600px at 70% 40%, #000 25%, transparent 80%); mask-image: radial-gradient(1000px 600px at 70% 40%, #000 25%, transparent 80%); }
.page-hero.side-img { color: var(--frost); background: radial-gradient(800px 500px at 20% 40%, rgba(61,107,255,.20), transparent 65%), var(--void); }
.page-hero > .wrap, .ihx > .wrap { position: relative; }
.page-hero h1, .ihx h1 { color: #fff; }
.page-hero p.lead, .page-hero .wrap > .lead, .page-hero .lead, .ihx p, .ihx .lead { color: #B6C1DA; }
.page-hero .crumbs, .page-hero .crumbs a, .ihx .crumbs, .ihx .crumbs a { color: var(--d-mute); }
.page-hero .eyebrow, .ihx .eyebrow, .page-hero .kicker { color: #7FA0FF; }
.page-hero .eyebrow::after, .ihx .eyebrow::after { background: #7FA0FF; }
.page-hero .btn.ghost, .ihx .btn.ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(120,150,255,.32); }
.page-hero .btn.ghost:hover, .ihx .btn.ghost:hover { background: rgba(255,255,255,.08); }
.page-hero .btn:not(.ghost), .ihx .btn:not(.ghost) { box-shadow: 0 10px 30px rgba(61,107,255,.5), inset 0 1px 0 rgba(255,255,255,.22); }
.page-hero .facts li, .ihx-chips li { background: rgba(255,255,255,.03); border: 1px solid rgba(120,150,255,.22); color: #B6C1DA; box-shadow: none; }
.page-hero .by-brand, .ihx .by-brand { color: var(--d-mute); }
.page-hero .app, .ihx .app { color: var(--ink); }
.page-hero .app, .ihx .app { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(120,150,255,.18); border-color: transparent; }
.page-hero .app-note { color: var(--d-mute); }
.page-hero .st.ok, .page-hero .badge.ready { box-shadow: none; }
.page-hero.dark-img { background: linear-gradient(90deg, var(--void) 0%, rgba(7,11,20,.92) 38%, rgba(7,11,20,.45) 68%, rgba(7,11,20,.15) 100%), var(--hero-img) right center / cover no-repeat, var(--void); }
.ihx-tag { color: var(--ink); }

/* акцентное слово заголовка — единственный градиент бренда */
.ihx h1 span, .page-hero h1 em { font-style: normal; color: #7FA0FF; background: linear-gradient(90deg, #7FA0FF, #3EE0FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero .badge, .page-hero .st { box-shadow: none; }
.page-hero .tag-pilot, .page-hero small { color: var(--d-mute); }

/* главная */
.hx { background: radial-gradient(1100px 650px at 74% 45%, rgba(61,107,255,.26), transparent 60%), var(--void); }
.hx::before { opacity: 1; }
.hx-pill { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--signal); background: transparent; border-color: rgba(62,224,255,.35); }
.hx-pill i { background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.hx h1 { font-weight: 800; letter-spacing: -.04em; }
.hx h1 em { background: linear-gradient(90deg, #7FA0FF, #3EE0FF); -webkit-background-clip: text; background-clip: text; }
.hx-lead, .hx-stats span { color: #B6C1DA; }
.hx-stats span { font-family: var(--font-mono); font-size: 12px; color: var(--d-mute); }
.hx-stats b { font-weight: 800; letter-spacing: -.02em; }
.btn.hx-btn { background: var(--accent); border-color: var(--accent); box-shadow: 0 10px 30px rgba(61,107,255,.5), inset 0 1px 0 rgba(255,255,255,.22); }
.btn.hx-ghost { border-color: rgba(120,150,255,.32); }
.hx-led circle { fill: var(--signal); }

/* тёмные панели внутри светлых разделов: navy → void с ореолом */
.product .visual, .spec, .core, .flagship .intro { background: radial-gradient(500px 320px at 80% 0%, rgba(61,107,255,.28), transparent 70%), linear-gradient(180deg, #0C1428, var(--void)); }
.doc pre, .prose pre { background: #0A1226; color: #A9B6D3; border: 1px solid rgba(120,150,255,.18); }

/* карточки: мягкая тень, без жёстких контуров */
.card { border-color: var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(10,18,38,.04), 0 16px 40px rgba(10,18,38,.06); }
.badge.ready, .st.ok { color: var(--signal-l); background: rgba(8,145,178,.08); }

/* подвал — тёмный */
footer { background: var(--void); color: var(--d-mute); border-top: 1px solid rgba(120,150,255,.14); margin-top: 80px; padding: 48px 0 40px; }
footer .fcols nav b, footer .msgr a, footer .mail, footer .row nav { color: var(--frost); }
footer .fcols nav b { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--d-mute); }
footer .fcols nav a, footer .fbrand p { color: #B6C1DA; }
footer .fcols nav a:hover, footer .msgr a:hover, footer .mail:hover { color: #fff; }
footer .mail svg { stroke: var(--d-mute); }
footer .legal { border-top-color: rgba(120,150,255,.14); color: var(--d-mute); }
footer .legal a { color: var(--d-mute); }
footer .legal a:hover { color: #fff; }
@media (max-width: 560px) { .hx-pill { white-space: normal; line-height: 1.5; font-size: 11px; } footer { margin-top: 56px; } }

/* «Для закупки»: карточки-ссылки на документы */
a.dl-card { padding: 26px 24px; text-decoration: none; color: inherit; }
a.dl-card h3 { color: var(--accent); }

/* Блок контактов с формой заявки (layout.contact / lead_form) */
.contact .panel.lp { grid-template-columns: 1fr 1.15fr; align-items: start; gap: 40px; }
.contact .lp-intro { display: flex; flex-direction: column; gap: 18px; }
.contact .lp-intro .ch-list { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; }
.contact .lp-intro .send-req { margin: 0; font-size: 14px; color: var(--ink-3); }
.lead-form { padding: 24px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.lf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.lead-form input, .lead-form select, .lead-form textarea { min-width: 0; width: 100%; box-sizing: border-box; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.lead-form input, .lead-form select, .lead-form textarea { font: inherit; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.lead-form .lf-consent { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 13px; }
.lf-msg { margin: 0; min-height: 1.2em; font-size: 14px; }
.lf-msg.err { color: #b42318; } .lf-msg.ok { color: #067647; }
.lead-form .btn { align-self: flex-start; font-family: inherit; border: 0; cursor: pointer; }
@media (max-width: 860px) { .contact .panel.lp { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .lf-grid { grid-template-columns: 1fr; } .lead-form { padding: 18px; } .lead-form .btn { align-self: stretch; justify-content: center; } }

/* якоря документов не прячутся под закреплённой шапкой и подменю продукта */
.doc h2[id], .doc h3[id] { scroll-margin-top: 150px; }
@media (max-width: 960px) { .doc h2[id], .doc h3[id] { scroll-margin-top: 130px; } }

/* Версии: контрольные суммы под спойлером */
details.sums { margin-top: 12px; }
details.sums summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
details.sums[open] summary { margin-bottom: 8px; }

/* Мобильная версия: длинные адреса, OID и имена пакетов переносятся, а не распирают страницу */
.prose p, .prose li, .doc p, .doc li { overflow-wrap: anywhere; }
.prose p code, .prose li code, .doc p code, .doc li code { overflow-wrap: anywhere; }

/* Таблицы цен, поддержки и партнёрских уровней на телефоне — карточками: строка таблицы = карточка,
   у ячейки подпись из data-label (название колонки) */
@media (max-width: 640px) {
  .tbl.stack { border: 0; border-radius: 0; overflow: visible; }
  .tbl.stack thead { display: none; }
  .tbl.stack table, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
  .tbl.stack tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 6px 0; background: #fff; overflow: hidden; }
  .tbl.stack td { border-top: 0; padding: 6px 16px; white-space: normal !important; background: none !important; }
  .tbl.stack td:first-child { font-weight: 600; color: var(--ink); padding-top: 10px; }
  .tbl.stack td[data-label] { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
  .tbl.stack td[data-label]::before { content: attr(data-label); flex: none; max-width: 62%; color: var(--ink-3); font-weight: 500; font-size: 14px; }
  .sla-tbl.stack td[data-label] { display: block; }
  .sla-tbl.stack td[data-label]::before { display: block; max-width: none; font-size: 13px; }
}

/* Подменю продукта: затухание у края, за которым есть ещё пункты (классы ставит site.js) */
.subnav .wrap { scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav .wrap.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.subnav .wrap.more-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px); mask-image: linear-gradient(to right, transparent, #000 48px); }
.subnav .wrap.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }

/* Статус «Для пилота»: модуль в поставке, ставим пилотным заказчикам */
.badge.pilot { background: #FFF4E0; color: #8A5A00; }

/* Коробки продуктов iCubix (site/img/boxes/): карточки каталога, шапка страницы продукта */
.pcard .top, .prods .top { align-items: flex-start; }
.pbox { display: block; height: 132px; width: auto; filter: drop-shadow(0 10px 14px rgba(15,26,51,.18)); transition: transform .2s; }
.prods .pbox { height: 104px; }
.pcard:hover .pbox, .prods article:hover .pbox { transform: translateY(-3px) rotate(-1deg); }
.page-hero:has(.hero-box) { min-height: 460px; }
.page-hero:has(.hero-box) .wrap { position: relative; }
.page-hero:has(.hero-box) .wrap > :not(.hero-box):not(.crumbs) { max-width: 58%; }
.hero-box { position: absolute; right: 40px; top: 50%; transform: translateY(-46%) rotate(2deg); height: 400px; width: auto;
  filter: drop-shadow(0 24px 36px rgba(0,0,0,.45)); pointer-events: none; }
@media (max-width: 960px) {
  .page-hero:has(.hero-box) { min-height: 0; }
  .page-hero:has(.hero-box) .wrap > :not(.hero-box):not(.crumbs) { max-width: none; }
  .hero-box { position: static; transform: none; display: block; height: 220px; margin: 8px 0 16px; }
}
@media (max-width: 560px) { .pbox { height: 104px; } }

/* Шапка /icubix/: белый куб «Ядро для организаций» (прозрачный фон из генерации) */
.ihx-cube { display: block; width: 100%; max-width: 520px; height: auto; margin: 24px auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); animation: ihx-float 6s ease-in-out infinite; }
@keyframes ihx-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .ihx-cube { animation: none; } }
@media (max-width: 960px) { .ihx-cube { max-width: 360px; margin: 8px auto 16px; } }
.flagship-cube { display: block; width: 100%; max-width: 280px; height: auto; margin: 8px auto 0; filter: drop-shadow(0 22px 30px rgba(0,0,0,.45)); }
@media (max-width: 960px) { .flagship-cube { max-width: 220px; } }

/* Верхняя полоса: демо без регистрации и вход в порталы клиентов и партнёров */
.topbar .tb-demo { color: #A9C0FF; }
.topbar .tb-demo:hover { color: #fff; }
.topbar .tb-in { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--d-mute, #93A3C8); }
.topbar .tb-in a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar .tb-in a:hover { color: #A9C0FF; }
@media (max-width: 1080px) { .topbar .tb-demo, .topbar .tb-in { display: none; } }
/* С пунктом «Партнёрам» меню не помещается на 961–1060 px — там уже бургер */
@media (max-width: 1060px) {
  nav.links { display: none; }
  .burger { display: block; }
  header.top .btn.small { display: none; }

/* Таблица соответствия функций (/icubix/zamena-papercut/): длинный текст в ячейках, на телефоне — блоками */
.cmp-tbl td:first-child { font-weight: 600; color: var(--ink); min-width: 160px; }
.cmp-tbl td:nth-child(2) { color: var(--ink-2); }
.cmp-tbl td .badge { margin-left: 6px; vertical-align: 1px; }
@media (max-width: 640px) {
  .cmp-tbl.stack td[data-label] { display: block; }
  .cmp-tbl.stack td[data-label]::before { display: block; max-width: none; margin-bottom: 2px; }
}

/* Полоса доверия под первым экраном главной: пилот ФЕРМО и на чём работает */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.trust span { font: 500 11.5px var(--font-mono, "JetBrains Mono", monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.trust-pilot { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.trust-pilot img { height: 28px; width: auto; display: block; }
.trust-pilot:hover img { opacity: .8; }
.trust-os { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.trust-os ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; }
.trust-os li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--bg-2); }
@media (max-width: 560px) { .trust .wrap { flex-direction: column; align-items: flex-start; gap: 16px; } .trust-os { gap: 10px; } }
