/* LEEN — одностраничный сайт. Тёмная тема, акцент TeleTeam, Golos Text (self-hosted). */

@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/golos-text-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/golos-text-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0c0c10;
  --surface: #15151b;
  --surface-2: #1b1b22;
  --ink: #ededf2;
  --muted: #a3a3ae;
  --rule: #2a2a33;
  --accent: #906ffe;
  --accent-2: #9858dc;
  --accent-ink: #b39cff;          /* акцент для текста: контраст ≥ 7:1 на фоне */
  --grad: linear-gradient(90deg, #c23afe 0%, #906ffe 50%, #59a8ff 100%);
  --grad-btn: linear-gradient(90deg, #cd2efd 0%, #51afff 100%);
  --input: oklch(0.269 0 0);       /* рамка и фон outline-кнопок, как в Meet */
  --ring: oklch(0.439 0 0);        /* кольцо фокуса, как в Meet */
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 8px;
  --header-h: 64px;                /* первый этаж шапки */
  --subnav-h: 40px;                /* второй этаж: нормативные разделы (на мобильных 0) */
  --header-total: calc(var(--header-h) + var(--subnav-h));
  --container: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #0c0c10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html { scrollbar-color: #3a3a46 var(--bg); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; }
h4.sub { font-size: 18px; margin: 28px 0 10px; }
h4.sub:first-child { margin-top: 0; }
p { margin: 0; }
p + p { margin-top: 12px; }
strong { font-weight: 600; }
a { color: inherit; }
.link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.link:hover { color: var(--ink); }
ul, ol { margin: 0; padding: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 28px; height: 28px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--accent); color: #0c0c10; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Незаполненные данные: пунктирное подчёркивание; пустые места — метка ‹Требуется контент› */
.ph { color: var(--muted); border-bottom: 1px dashed var(--muted); cursor: help; text-decoration: none; }
.ph--empty { color: var(--accent-ink); border-bottom-color: var(--accent-ink); font-style: italic; }
a.ph { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }

/* Кнопки: система из Meet (packages/ui/src/components/ui/button-variants.ts).
   Размеры: lg = 40px / 24px, default = 36px / 16px; текст 14px/20px, вес 500; скругление 8px.
   brand: градиент без повтора, белый текст, тень xs, hover brightness 1.1, active 0.95.
   outline: рамка input, фон input 30% (50% при наведении). Фокус: кольцо 3px ring/50%. */
.btn {
  display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 24px; border-radius: 8px;
  font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 0; outline: none;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn .icon { width: 16px; height: 16px; pointer-events: none; }
.btn:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent); }
.btn:disabled { pointer-events: none; opacity: 0.5; }
.btn--primary { background: var(--grad-btn) no-repeat; color: #fff; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.btn--primary:hover { filter: brightness(1.1); }
.btn--primary:active { filter: brightness(0.95); }
.btn--ghost { border: 1px solid var(--input); background: color-mix(in srgb, var(--input) 30%, transparent); color: var(--ink); box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.btn--ghost:hover { background: color-mix(in srgb, var(--input) 50%, transparent); }
.btn--sm { height: 36px; padding: 0 16px; }
.btn--ph { border-style: dashed; color: var(--muted); }
.btn--ph:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Шапка в два этажа: сверху основные разделы, снизу — нормативные (для технического аудита).
   Второй этаж на фоне --surface, как нормативные секции; линия между этажами — ::after. */
.header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, var(--bg) var(--header-h), var(--surface) var(--header-h));
  border-bottom: 1px solid var(--rule);
}
.header::after { content: ""; position: absolute; left: 0; right: 0; top: var(--header-h); height: 1px; background: var(--rule); pointer-events: none; }
.header__row { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: var(--header-h) var(--subnav-h); align-items: center; }
.header .logo { grid-area: 1 / 1; margin-right: 24px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Логотип LEEN по эталону из правок 3.0: белые буквы (currentColor), вторая буква — бруски градиентом.
   Пропорции символа 713 × 122 — ширину задаёт aspect-ratio. */
.logo { display: inline-flex; align-items: center; flex: none; color: #fff; text-decoration: none; }
.logo__img { display: block; height: 20px; width: auto; aspect-ratio: 713 / 122; }
.nav { grid-area: 1 / 2 / 3 / 3; min-width: 0; display: grid; grid-template-rows: var(--header-h) var(--subnav-h); align-items: center; }
.nav__list { display: flex; justify-content: flex-end; align-items: center; gap: 4px; list-style: none; }
.nav__list a {
  display: inline-block; padding: 6px 10px 4px;
  font-weight: 500; font-size: 15px; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav__list a:hover { color: var(--ink); }
.nav__list a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav__list--audit a { padding: 4px 10px 2px; font-size: 14px; }
/* «Деятельность в ИТ» — ключевой пункт для аудитора, выделен цветом */
.nav__list a.nav__accent { color: var(--accent-ink); }
.nav__list a.nav__accent:hover { color: var(--ink); }
.header__actions { display: none; align-items: center; gap: 12px; }
.burger {
  display: none; width: 36px; height: 36px; padding: 0; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--input) 30%, transparent); color: var(--ink); border: 1px solid var(--input); border-radius: 8px; cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.burger:hover { background: color-mix(in srgb, var(--input) 50%, transparent); }
.burger:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent); }
.burger .icon { width: 16px; height: 16px; }
.burger .icon--close { display: none; }
.burger[aria-expanded="true"] .icon--close { display: block; }
.burger[aria-expanded="true"] .icon:not(.icon--close) { display: none; }

@media (max-width: 1023px) {
  :root { --subnav-h: 0px; }
  .header { background: var(--bg); }
  .header::after { display: none; }
  .header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
  .header .logo { margin-right: 0; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--bg); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav[data-open] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a, .nav__list--audit a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--rule); }
  .nav__list a[aria-current="true"] { border-bottom-color: var(--rule); color: var(--accent-ink); }
  .nav__list--audit { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule); }
  .header__actions { display: flex; }
  .burger { display: inline-flex; }
}
@media (max-width: 479px) {
  .cookie .cookie__row { flex-direction: column; align-items: stretch; } /* блок выше базового .cookie__row — нужна специфичность */
  .header__row { gap: 12px; }
  .logo__img { height: 18px; }
  .header__actions { gap: 8px; }
}

/* Секции */
main > section { scroll-margin-top: calc(var(--header-total) + 8px); }
.section { padding: 96px 0; border-top: 1px solid var(--rule); }
.section h2 { margin-bottom: 24px; }
.lead { font-size: 19px; max-width: 72ch; color: var(--ink); margin-bottom: 44px; }
.lead:last-child { margin-bottom: 0; }
.note { margin-top: 20px; color: var(--muted); font-size: 15px; max-width: 80ch; }
.section__actions { margin-top: 28px; }
.section--normative { background: var(--surface); }
.section--normative + .section--normative { border-top-color: #33333d; }

/* Первый экран */
.hero { padding: 88px 0 96px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero__copy { max-width: 960px; }
.hero__sub { margin-top: 20px; font-size: 20px; color: var(--muted); max-width: 52ch; }

/* Три колонки */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.col__title { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--accent-ink); }
.col__title .icon { flex: none; color: var(--accent-ink); }

/* Двухколоночный блок: подзаголовок слева, содержимое справа (подача 2035) */
.two { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr); gap: 20px 64px; padding: 40px 0; border-top: 1px solid var(--rule); align-items: start; }
.two:last-child { padding-bottom: 0; }
.two__label { font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; color: var(--accent-ink); line-height: 1.3; text-wrap: balance; position: sticky; top: calc(var(--header-total) + 24px); }
.two > .table-scroll { min-width: 0; }
.inline-list { font-size: 17px; }

/* Списки */
.list { padding-left: 1.5em; display: grid; gap: 10px; }
.list li { padding-left: 0.3em; }
.list li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.list--plain { list-style: none; padding-left: 0; }
.list--plain li { padding-left: 0; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  background: no-repeat center / 20px 20px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3ae' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5l10 -10'/></svg>");
}
.checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.checks--lg li { font-size: 17px; }

/* Плитки возможностей: «Конференции» во всю ширину со списком в три колонки, ниже 3 + 2 без пустых ячеек */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 40px; }
.tile { grid-column: span 2; padding: 24px 0 0; border-top: 1px solid var(--rule); }
.tile--wide { grid-column: 1 / -1; }
.tile--wide .checks { display: block; columns: 3; column-gap: 40px; }
.tile--wide .checks li { break-inside: avoid; margin-bottom: 10px; }
.tile:nth-child(5), .tile:nth-child(6) { grid-column: span 3; }
.tile__title { display: flex; align-items: center; gap: 10px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--accent-ink); margin-bottom: 16px; }
.tile__title .icon { color: var(--accent-ink); }
.tile .checks li { font-size: 15px; }

/* Пункты с иконкой (развёртывание) */
.points { display: grid; gap: 28px 40px; }
.points--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Стоимость: условия лицензирования пунктами, ниже — два вида лицензий */
.pricing__plans { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--rule); }

/* Таблицы */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 20px 12px 0; border-bottom: 1px solid var(--rule); }
.table thead th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 0; }
.table tbody th { font-weight: 500; color: var(--ink); }
.table td { color: var(--muted); }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table--kv tbody th { width: 42%; }
.table--kv td { color: var(--ink); }
.table--stack tbody th { width: 40%; }
.table--codes .num { width: 72px; white-space: nowrap; }
.table--registry { min-width: 640px; }

.address { font-style: normal; }
.contacts-list { list-style: none; display: grid; gap: 10px; }
.contacts-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.contacts-list li:last-child { border-bottom: 0; }
.contacts-list__k { color: var(--muted); }

/* Футер */
.footer { border-top: 1px solid var(--rule); padding: 56px 0 48px; font-size: 15px; color: var(--muted); }
.footer__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; }
.footer__brand { display: grid; gap: 20px; justify-items: start; }
.logo--footer .logo__img { height: 28px; }
.footer__copy { margin: 0; }
.footer__group { list-style: none; display: grid; gap: 12px; }
.footer__group a { color: var(--muted); text-decoration: none; }
.footer__group a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; }

/* Диалог с контактами / формой */
.contact { width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid #33333d; border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.contact::backdrop { background: rgba(0, 0, 0, 0.65); }
.contact__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--rule); }
.contact__title { font-size: 20px; text-transform: none; }
.contact__close { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--muted); cursor: pointer; border-radius: 6px; }
.contact__close:hover { color: var(--ink); background: var(--surface-2); }
.contact__body { padding: 24px; }
.contact__intro { color: var(--muted); margin-bottom: 16px; }
.contact__list { list-style: none; display: grid; gap: 12px; font-size: 17px; }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__list .icon { color: var(--muted); }

/* Форма (включается флагом) */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: color-mix(in srgb, var(--input) 30%, transparent); border: 1px solid var(--input); border-radius: 8px; padding: 8px 12px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff6b6b; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.form__error { color: #ff8a8a; font-size: 14px; }

/* Уведомление о cookie: узкая полоса внизу, не модальная — страницу не затемняет и прокрутку не держит.
   Пока полоса видна, body получает отступ снизу (--cookie-h из script.js), чтобы не закрывать подвал. */
body { padding-bottom: var(--cookie-h, 0px); }
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid #33333d; font-size: 14px; color: var(--muted); }
.cookie__row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 10px; }
.cookie p { margin: 0; }

/* Документ (политика конфиденциальности): спокойная читаемая колонка */
.doc { padding: 64px 0 96px; }
.doc h1 { margin-bottom: 40px; }
.doc__body { max-width: 80ch; }
.doc__body h2 { margin: 40px 0 16px; font-size: 22px; font-weight: 600; text-transform: none; letter-spacing: -0.01em; }
.doc__body p, .doc__body li { color: var(--muted); font-size: 16px; }
.doc__body p + p, .doc__body p + ul, .doc__body ul + p { margin-top: 12px; }
.doc__body strong { color: var(--ink); }
.doc__body ul { padding-left: 1.4em; display: grid; gap: 6px; margin-top: 8px; }
.doc__body .link { overflow-wrap: anywhere; }
.header--doc { background: var(--bg); }
.header--doc::after { display: none; }
.header--doc .header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.header--doc .header__actions { display: flex; }

/* Адаптив */
@media (max-width: 1023px) {
  .two { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .two__label { position: static; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile:nth-child(5), .tile:nth-child(6) { grid-column: span 1; }
  .tile--wide { grid-column: 1 / -1; }
  .tile--wide .checks { columns: 2; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 32px 0 40px; }
  .hero__sub { margin-top: 14px; font-size: 17px; }
  :root { --gutter: 20px; }
  .cols-3, .points--2, .checks--2 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile--wide .checks { columns: 1; }
  .table th, .table td { padding: 10px 16px 10px 0; }
  .table-scroll { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .contacts-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer__row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cookie { font-size: 13px; }
  .doc { padding: 40px 0 64px; }
  .doc h1 { margin-bottom: 28px; }
  .doc__body h2 { font-size: 19px; margin-top: 32px; }
  .logo--footer .logo__img { height: 22px; }
}

/* Страница 404: знак без среднего бруска (пунктир = «отсутствует», как у .ph) и разделы сайта блоками .two */
.nf { padding: 88px 0 96px; }
.nf__intro { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr); gap: 32px 64px; align-items: center; padding-bottom: 72px; }
.nf__copy { max-width: 640px; }
.nf__sub { margin-top: 20px; font-size: 20px; color: var(--muted); max-width: 44ch; }
.nf__home { margin-top: 32px; }
.nf__mark { justify-self: start; display: block; width: clamp(160px, 17vw, 220px); height: auto; overflow: visible; }
.nf__gap { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.nf .two__label { position: static; }
.nf__links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin-top: -14px; }
.nf__links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none; transition: color 120ms ease;
}
.nf__links .icon { color: var(--muted); transition: color 120ms ease, transform 120ms ease; }
.nf__links a:hover { color: var(--accent-ink); }
.nf__links a:hover .icon { color: var(--accent-ink); transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .nf__links a, .nf__links .icon { transition: none; }
  .nf__links a:hover .icon { transform: none; }
}
@media (max-width: 1023px) {
  .nf__intro { grid-template-columns: minmax(0, 1fr); }
  .nf__mark { width: 120px; }
  .nf__links { margin-top: 0; }
}
@media (max-width: 767px) {
  .nf { padding: 40px 0 64px; }
  .nf__intro { gap: 28px; padding-bottom: 48px; }
  .nf__mark { width: 88px; }
  .nf__sub { margin-top: 14px; font-size: 17px; }
  .nf__home { margin-top: 24px; width: 100%; }
  .nf__links { grid-template-columns: minmax(0, 1fr); }
}

/* Печать: убираем интерфейс, оставляем содержание */
@media print {
  .header, .burger, .btn, .skip, .cookie { display: none !important; }
  body { padding-bottom: 0; }
  body { background: #fff; color: #000; }
  .section--normative { background: #fff; }
  .ph { color: #333; border-bottom-color: #333; }
  .logo { color: #000; }
}
