/* ══════════════════════════════════════════════════════════════
   ORIONIX · landing v3 · общие стили публичного сайта
   (главная + страницы направлений; см. templates/landing/_base.html)
   Палитра — родная (Telegram-blue #2aabee на графите Orionix).
   Светлая тема — ПО УМОЛЧАНИЮ (LAND-03), тёмная — по переключателю.
   Дисплей — Unbounded, набор — Inter.
   ══════════════════════════════════════════════════════════════ */
:root {
  --accent:      #2aabee;
  --accent-deep: #4dbdf5;
  --accent-dim:  rgba(42,171,238,.13);
  --accent-mid:  rgba(42,171,238,.34);

  --bg:     #0b1117;
  --panel:  #141d26;
  --card:   #1d2937;
  --ink:    #f2f6fa;
  --muted:  #a7b4c1;
  --faint:  #74828f;
  --line:   rgba(255,255,255,.10);
  --line-soft: rgba(255,255,255,.05);
  --band:   #0e151d;               /* контраст-лента */
  --band-card: #1a242f;
  --shadow: 0 18px 45px rgba(0,0,0,.45);
  --shadow-soft: 0 7px 20px rgba(0,0,0,.28);
  --header-bg: rgba(11,17,23,.85);      /* = фон по бокам колонки */
  --glow: 0 0 26px rgba(42,171,238,.35);
  color-scheme: dark;
}
html[data-theme="light"] {
  --accent-deep: #1183c4;
  --accent-dim:  rgba(42,171,238,.10);

  --bg:     #d9dfe7;
  --panel:  #f4f6f9;
  --card:   #ffffff;
  --ink:    #101720;
  --muted:  #4b5663;
  --faint:  #6e7a87;
  --line:   rgba(16,23,32,.12);
  --line-soft: rgba(16,23,32,.06);
  --band:   #e7ecf2;               /* контраст-лента в светлой теме — светлая */
  --band-card: #ffffff;
  --shadow: 0 18px 45px rgba(16,23,32,.12);
  --shadow-soft: 0 7px 20px rgba(16,23,32,.06);
  --header-bg: rgba(217,223,231,.88);   /* = фон по бокам колонки */
  --glow: 0 0 26px rgba(42,171,238,.25);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* горизонтальный скролл запрещён всегда: раньше off-canvas меню на части
   Android-браузеров раздувало документ вправо (баг MIUI и др.) */
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html { overflow-x: hidden; }
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* скрываем НЕактивный язык — так локальные display-правила не мешают */
html[data-lang="ru"] [data-lang="en"] { display: none !important; }
html[data-lang="en"] [data-lang="ru"] { display: none !important; }

/* ── ПЕРЕХОД МЕЖДУ СТРАНИЦАМИ ──
   вход: фейд на body + мягкий подъём КОЛОНКИ; выход: JS вешает .page-leave
   на <html> и через 220 мс выполняет переход (см. landing.js).
   ВАЖНО: на body нельзя анимировать transform — «заполненная» (fill-mode)
   анимация трансформа делает body containing block'ом для fixed-потомков,
   и полноэкранное мобильное меню якорится к началу документа, а не к экрану */
@keyframes pageIn { from { opacity: 0; } }
@keyframes pageRise { from { transform: translateY(10px); } }
body { animation: pageIn .45s cubic-bezier(.22,1,.36,1) both; }
.page { animation: pageRise .45s cubic-bezier(.22,1,.36,1) both; }
html.page-leave body {
  animation: none;
  opacity: 0;
  transition: opacity .22s ease;
}
html.page-leave .page {
  animation: none;
  transform: translateY(-8px);
  transition: transform .22s ease;
}

/* ── ШАПКА ── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  transition: transform .38s cubic-bezier(.22,1,.36,1);
}
/* фон и blur — на псевдоэлементе: backdrop-filter на самой шапке делал её
   containing block для fixed-потомков, и полноэкранное меню привязывалось
   к шапке, а не к вьюпорту */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header.hide { transform: translateY(-100%); }
.site-header.menu-open { transform: none !important; }
.brand {
  font-family: Unbounded, Inter, sans-serif;
  font-weight: 800; font-size: 15px; letter-spacing: .04em; line-height: 1;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand em { font-style: normal; color: var(--accent); }
.header-menu { display: flex; flex: 1 1 auto; align-items: center; gap: 20px; min-width: 0; }
.nav {
  display: flex; align-items: center; gap: 22px;
  margin-right: auto; font-size: 13.5px; font-weight: 500; color: var(--muted);
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--accent-deep); }
.m-only { display: none; }               /* элементы только для мобильного меню */

/* выпадающий список «Направления» (desktop) */
.nav-drop { position: relative; }
.nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; padding: 0; background: transparent; cursor: pointer;
  font: inherit; color: inherit;
}
.nav-drop > button::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.nav-drop:hover > button, .nav-drop.open > button { color: var(--ink); }
.nav-drop.open > button::after { transform: rotate(225deg); margin-top: 3px; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 14px); left: -16px; z-index: 40;
  min-width: 224px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s cubic-bezier(.22,1,.36,1), visibility .22s;
}
.nav-drop-menu::before {   /* невидимый мостик, чтобы hover не рвался в зазоре */
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-drop.open .nav-drop-menu,
.nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 550; color: var(--ink); white-space: nowrap;
}
.nav-drop-menu a:hover { background: var(--accent-dim); }
.nav-drop-menu a .or {
  font-family: Unbounded, Inter, sans-serif;
  font-size: 9px; font-weight: 700; color: var(--accent-deep);
  letter-spacing: .08em; min-width: 52px; flex: 0 0 auto;
}
.nav-drop-menu a.active { color: var(--accent-deep); }

.actions { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 40px; height: 40px; padding: 0;
  position: relative; z-index: 45;      /* поверх полноэкранного меню — работает как «закрыть» */
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  cursor: pointer; align-content: center; justify-items: center; row-gap: 4px;
}
.burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.lang-switch {
  display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
}
.lang-switch button {
  border: 0; border-radius: 999px; padding: 6px 10px; min-width: 36px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer;
}
.lang-switch button.active { color: #06121b; background: var(--accent); }
.theme-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 0 18px; border-radius: 999px;
  background: var(--accent); color: #06121b;
  font-size: 13.5px; font-weight: 750; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 20px rgba(42,171,238,.35);
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s cubic-bezier(.22,1,.36,1);
}
.pill:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 28px rgba(42,171,238,.5); }
.pill.line {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); box-shadow: none;
}
.pill.line:hover { border-color: var(--accent-mid); box-shadow: none; }
.pill.lg { min-height: 48px; padding: 0 28px; font-size: 15px; }
/* в светлой теме текст на синих кнопках — белый */
html[data-theme="light"] .pill { color: #fff; }
html[data-theme="light"] .pill.line { color: var(--ink); }
html[data-theme="light"] .lang-switch button.active { color: #fff; }

/* ── КОЛОННА ── */
.page {
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  background: var(--panel);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* ── HERO ГЛАВНОЙ: живой граф сети ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 680px;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
}
#netCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {              /* виньетка, чтобы текст читался поверх графа */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 62% 52% at 50% 46%,
    var(--panel) 0%, color-mix(in srgb, var(--panel) 82%, transparent) 55%, transparent 100%);
}
/* синие уголки-штрихи по углам hero */
.hc {
  position: absolute; width: 20px; height: 20px; z-index: 2; pointer-events: none;
  border: 0 solid var(--accent);
}
.hc.tl { top: 16px; left: 16px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 4px; }
.hc.tr { top: 16px; right: 16px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 4px; }
.hc.bl { bottom: 16px; left: 16px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 4px; }
.hc.br { bottom: 16px; right: 16px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 4px; }
.hero-inner {
  position: relative; z-index: 1;
  width: min(860px, calc(100% - 48px));
  text-align: center; padding: 88px 0 96px;
}
h1 {
  margin: 0;
  font-family: Unbounded, Inter, sans-serif;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.08; font-weight: 800; letter-spacing: -.01em;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }
.hero-lede {
  margin: 30px auto 0; max-width: 640px;
  color: var(--muted); font-size: 18.5px; line-height: 1.55; font-weight: 500;
  text-wrap: pretty;
}
.hero-cta { margin-top: 38px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 30px; color: var(--faint); font-size: 13px; font-weight: 600;
}
.hero-note .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-mid); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
/* хореография загрузки hero */
.hero-inner > * { animation: rise .8s cubic-bezier(.22,1,.36,1) backwards; }
.hero-inner > :nth-child(1) { animation-delay: .05s; }
.hero-inner > :nth-child(2) { animation-delay: .15s; }
.hero-inner > :nth-child(3) { animation-delay: .15s; }
.hero-inner > :nth-child(4) { animation-delay: .28s; }
.hero-inner > :nth-child(5) { animation-delay: .28s; }
.hero-inner > :nth-child(6) { animation-delay: .42s; }
.hero-inner > :nth-child(7) { animation-delay: .42s; }
.hero-inner > :nth-child(8) { animation-delay: .55s; }
.hero-inner > :nth-child(9) { animation-delay: .55s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ── HERO СТРАНИЦЫ НАПРАВЛЕНИЯ ── */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: clip;
}
.page-hero .ph-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: right bottom;
  pointer-events: none;
}
.page-hero .ph-inner {
  position: relative; z-index: 1;
  max-width: 720px; padding: 84px 58px 88px;
}
.page-hero .crumbs {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 22px;
  color: var(--faint); font-size: 12.5px; font-weight: 600;
}
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero .crumbs .sep { color: var(--line); }
.page-hero .tag {
  display: block; margin-bottom: 14px;
  color: var(--accent-deep);
  font-family: Unbounded, Inter, sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
}
.page-hero h1 { font-size: clamp(27px, 3.6vw, 42px); line-height: 1.12; }
.page-hero .ph-lede {
  margin: 22px 0 0; max-width: 60ch;
  color: var(--muted); font-size: 17px; line-height: 1.6; font-weight: 500;
  text-wrap: pretty;
}
.page-hero .ph-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
/* хореография появления hero страницы */
.page-hero .ph-inner > * { animation: rise .7s cubic-bezier(.22,1,.36,1) backwards; }
.page-hero .ph-inner > :nth-child(1) { animation-delay: .04s; }
.page-hero .ph-inner > :nth-child(2) { animation-delay: .10s; }
.page-hero .ph-inner > :nth-child(3) { animation-delay: .16s; }
.page-hero .ph-inner > :nth-child(4) { animation-delay: .16s; }
.page-hero .ph-inner > :nth-child(5) { animation-delay: .26s; }
.page-hero .ph-inner > :nth-child(6) { animation-delay: .26s; }
.page-hero .ph-inner > :nth-child(7) { animation-delay: .36s; }
.page-hero .ph-inner > :nth-child(8) { animation-delay: .36s; }

/* ── BENTO «НАПРАВЛЕНИЯ» ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.cell {
  position: relative;
  min-height: 300px; padding: 38px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: background .2s ease;
}
.cell:nth-child(3n) { border-right: 0; }
.cell:hover { background: color-mix(in srgb, var(--accent-dim) 55%, transparent); }
.cell h3 {
  margin: 0 0 14px; font-size: 21px; line-height: 1.14;
  font-weight: 800; letter-spacing: -.005em;
}
.cell h3 .or {
  font-family: Unbounded, Inter, sans-serif;
  font-size: 12px; font-weight: 700; color: var(--accent-deep);
  display: block; margin-bottom: 8px; letter-spacing: .08em;
}
.cell > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.52; }
.cell.lead h2 {
  margin: 0 0 18px;
  font-family: Unbounded, Inter, sans-serif;
  font-size: clamp(24px, 2.6vw, 31px); line-height: 1.14;
  font-weight: 800; letter-spacing: -.005em;
}
.cell.lead p { color: var(--muted); font-size: 15.5px; line-height: 1.58; margin: 0; }
.arrow {
  width: 40px; height: 40px; margin-top: auto;
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); box-shadow: var(--shadow-soft);
  font-size: 19px; color: var(--ink);
  transition: background .18s ease, color .18s ease, transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease;
}
/* вся карточка направления кликабельна — растянутая ссылка стрелки */
.cell .arrow::after { content: ""; position: absolute; inset: 0; }
.cell:hover .arrow { background: var(--accent); color: #06121b; transform: translateX(4px); box-shadow: var(--glow); }
html[data-theme="light"] .cell:hover .arrow { color: #fff; }
.cell .art { margin: 22px 0; width: 100%; }

/* ── трио устройств (OR NODE) ── */
.node-trio { display: flex; gap: 12px; }
.node-mini {
  width: 78px; height: 78px; border-radius: 19px; flex: 0 0 auto;
  background: linear-gradient(145deg, var(--band-card), var(--band));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), var(--shadow);
  display: grid; place-items: center;
}
.node-mini .led-grid { display: grid; grid-template-columns: repeat(3, 7px); gap: 7px; }
.node-mini .led-grid i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.node-mini .led-grid i.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: led 2.8s ease-in-out infinite; }
.node-mini .led-grid i.on:nth-child(6) { animation-delay: 1.3s; }
@keyframes led { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.node-mini .core {
  position: relative;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
}
.node-mini .core::before {
  content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line);
}
.node-mini .core i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 9px var(--accent);
  animation: led 3.4s ease-in-out infinite;
}
.node-mini .sq-grid { display: grid; grid-template-columns: repeat(2, 13px); gap: 8px; }
.node-mini .sq-grid i { width: 13px; height: 13px; border-radius: 4px; background: var(--line); }
.node-mini .sq-grid i.on { background: var(--accent); box-shadow: 0 0 9px var(--accent); animation: led 3.1s ease-in-out infinite .6s; }

/* ── «микросхемы»: дорожки + бегущий заряд ── */
.cir { display: block; width: 100%; height: 96px; }
.cir.big { height: 190px; }
.cir .trace path { stroke: var(--line); stroke-width: 1.5; fill: none; }
.cir .pulse path {
  stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-linecap: round;
  stroke-dasharray: 16 400;
  animation: flow 4.4s linear infinite;
  filter: drop-shadow(0 0 3px var(--accent));
}
.cir .pulse path.d2 { animation-delay: -1.1s; }
.cir .pulse path.d3 { animation-delay: -2.2s; }
.cir .pulse path.d4 { animation-delay: -3.3s; }
@keyframes flow { to { stroke-dashoffset: -416; } }
.cir .pad { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.cir .chip {
  fill: var(--band-card); stroke: var(--line); stroke-width: 1.5;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));
}
.cir .core { fill: var(--accent); animation: led 3s ease-in-out infinite; }
.cir .ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.cir .ring-dash {
  fill: none; stroke: var(--accent); stroke-width: 1.5;
  stroke-dasharray: 5 8; stroke-linecap: round;
  animation: spin-dash 7s linear infinite;
  filter: drop-shadow(0 0 3px var(--accent));
}
@keyframes spin-dash { to { stroke-dashoffset: -130; } }
.cir .dot { fill: var(--faint); }
.cir .hub { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.cir .fill {
  fill: var(--accent); opacity: .3;
  transform-box: fill-box; transform-origin: bottom;
  animation: fill-rise 5.5s ease-in-out infinite;
}
@keyframes fill-rise { 0%, 100% { transform: scaleY(.28); } 55%, 78% { transform: scaleY(.85); } }

/* сетка буллетов (Академия / Интеграторы) */
.fact-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px; margin: 28px 0 0; padding: 0; list-style: none; max-width: 900px;
}
.fact-grid li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0 15px; border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.45;
}
.fact-grid li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.fact-grid.num li b {
  font-family: Unbounded, Inter, sans-serif;
  font-size: 10px; font-weight: 700; color: var(--accent-deep);
  min-width: 24px; letter-spacing: .05em; flex: 0 0 auto;
}
.fact-grid.dot li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: 0 0 auto; transform: translateY(-2px);
}

/* ── СЕКЦИИ КОНТЕНТА ──
   Ярлык секции живёт СЛЕВА ОТ КОЛОННЫ, во внешнем поле (как в референсе),
   и скроллится sticky вдоль своей секции. На узких экранах — над контентом. */
.section {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.section-label {
  position: absolute; top: 0; bottom: 0; right: 100%;
  width: min(220px, calc((100vw - 1160px) / 2));
  padding: 60px 26px 0 0;
  text-align: right;
}
.section-label .tag {
  position: sticky; top: 88px;
  display: block; color: var(--accent-deep);
  font-family: Unbounded, Inter, sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.7;
  white-space: nowrap;
}
.section-body { padding: 56px 58px 62px; min-width: 0; }

/* секции с фото-фоном: картинка растянута на всю секцию (контент справа,
   слева у исходников прозрачно — текст читается без оверлеев).
   ВАЖНО: без overflow:hidden — ярлык секции живёт за левой границей. */
.section.art .sec-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: right bottom;
  pointer-events: none;
}
.section.art .section-body { position: relative; max-width: 760px; }
.section-body h2 {
  margin: 0 0 20px;
  font-family: Unbounded, Inter, sans-serif;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.16; font-weight: 700; letter-spacing: -.005em;
  text-wrap: balance;
}
.section-body > p, .col-copy > p {
  max-width: 66ch; margin: 0 0 15px;
  color: var(--muted); font-size: 16px; line-height: 1.62;
  text-wrap: pretty;
}
.hair-list { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); max-width: 640px; }
.hair-list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.45;
}
.hair-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: 0 0 auto; transform: translateY(-2px);
}
.section-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.two-col {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px; align-items: start;
}

/* ── «ДРУГИЕ НАПРАВЛЕНИЯ» (низ страниц направлений) ── */
.dir-strip { border-bottom: 1px solid var(--line); padding: 40px 58px 46px; }
.dir-strip h4 {
  margin: 0 0 18px; color: var(--faint);
  font-size: 10.5px; letter-spacing: .15em; font-weight: 800; text-transform: uppercase;
}
.dir-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dir-chips a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  transition: border-color .18s ease, background .18s ease, transform .18s cubic-bezier(.22,1,.36,1);
}
.dir-chips a:hover { border-color: var(--accent-mid); background: var(--accent-dim); transform: translateY(-1px); }
.dir-chips a.current { border-color: var(--accent); color: var(--accent-deep); pointer-events: none; }
.dir-chips a .or {
  font-family: Unbounded, Inter, sans-serif;
  font-size: 9px; font-weight: 700; color: var(--accent-deep); letter-spacing: .08em;
}

/* ── КОНТАКТЫ ── */
.contacts { border-bottom: 1px solid var(--line); }
.contacts-head { padding: 68px 58px 8px; }
.contacts-head h2 {
  margin: 0 0 14px;
  font-family: Unbounded, Inter, sans-serif;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800; letter-spacing: -.005em; line-height: 1.1;
}
.contacts-head p { margin: 0; color: var(--muted); font-size: 16px; max-width: 58ch; line-height: 1.6; }
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 44px; border-top: 1px solid var(--line);
}
.contact-tile {
  position: relative; padding: 32px 28px 38px;
  border-right: 1px solid var(--line);
  transition: background .2s ease;
}
.contact-tile:nth-child(4n) { border-right: 0; }
.contact-tile:hover { background: var(--accent-dim); }
.contact-tile .c-label {
  display: flex; align-items: center; gap: 8px;
  color: var(--faint); font-size: 10.5px; font-weight: 800; letter-spacing: .15em;
}
.contact-tile .c-label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: var(--glow);
}
.contact-tile .c-value {
  margin-top: 13px;
  font-size: 16px; font-weight: 650; word-break: break-all; line-height: 1.4;
}
.contact-tile .c-arr {
  position: absolute; right: 22px; bottom: 20px; font-size: 17px; color: var(--faint);
  transition: transform .18s cubic-bezier(.22,1,.36,1), color .18s ease;
}
.contact-tile:hover .c-arr { color: var(--accent-deep); transform: translate(3px, -3px); }

/* ── ФУТЕР ── */
footer { padding: 42px 32px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 38px; }
footer h4 {
  margin: 0 0 14px; color: var(--faint);
  font-size: 10.5px; letter-spacing: .15em; font-weight: 800;
}
footer a, footer p { display: block; margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
footer a:hover { color: var(--ink); }
.foot-brand {
  font-family: Unbounded, Inter, sans-serif;
  font-weight: 800; font-size: 15px; letter-spacing: .04em; color: var(--ink);
}
.foot-brand em { font-style: normal; color: var(--accent); }
.copyright {
  padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--faint); font-size: 12px;
}

/* ── ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ (класс вешает JS — без JS всё видно) ── */
.js-reveal { opacity: 0; transform: translateY(14px); }
.js-reveal.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }

@media (prefers-reduced-motion: reduce) {
  body, .page { animation: none; }
  html.page-leave body, html.page-leave .page { opacity: 1; transform: none; transition: none; }
  .js-reveal { opacity: 1; transform: none; }
  .hero-inner > *, .page-hero .ph-inner > * { animation: none; }
  .hero-note .pulse, .node-mini .led-grid i.on,
  .node-mini .core i, .node-mini .sq-grid i.on,
  .cir .pulse path, .cir .core, .cir .ring-dash, .cir .fill { animation: none; }
  .pill, .arrow, .c-arr, .site-header, .header-menu, .burger span,
  .nav-drop-menu, .dir-chips a { transition: none; }
  html { scroll-behavior: auto; }
}

/* ── АДАПТИВ ── */
@media (max-width: 1339px) {
  /* поле слева уже не вмещает ярлык — переносим его над контентом секции */
  .section-label { position: static; width: auto; padding: 44px 58px 0; text-align: left; }
  .section-label .tag { position: static; }
  .section-body { padding-top: 16px; }
}
/* планшет и уже: фоновые фото секций не показываем */
@media (max-width: 1139px) {
  .section.art .sec-art { display: none; }
  .section.art .section-body { max-width: none; }
  .page-hero .ph-art { opacity: .38; }
}
@media (max-width: 940px) {
  .site-header { padding: 8px 16px; }
  .burger { display: inline-grid; }

  /* ── МОБИЛЬНОЕ МЕНЮ: полноэкранный оверлей ──
     Никакого off-canvas transform — часть Android-браузеров расширяла
     из-за него документ вправо (горизонтальный скролл). Тема — слева
     сверху, язык — справа сверху (рядом с крестиком-гамбургером). */
  .header-menu {
    position: fixed; inset: 0; z-index: 40;
    height: 100dvh; width: 100%;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0;
    padding: 92px 24px 28px;
    background: var(--panel);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s ease, visibility 0s linear .3s;
    overflow-y: auto;
  }
  .header-menu.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .3s ease;
  }
  .m-only { display: revert; }
  .m-hide { display: none !important; }

  /* выпадашка раскрыта плоским списком */
  .nav-drop { display: contents; }
  .nav-drop > button { display: none; }
  .nav-drop-menu {
    display: contents;
    /* сбрасываем desktop-вид */
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 0; min-width: 0;
  }
  .nav-drop-menu::before { display: none; }
  .header-menu .nav {
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0 0 26px; font-size: 17px; font-weight: 600; color: var(--ink);
  }
  .header-menu .nav a,
  .header-menu .nav-drop-menu a {
    display: flex; align-items: baseline; gap: 12px;
    padding: 15px 2px; border-bottom: 1px solid var(--line);
    border-radius: 0; font-size: 17px; font-weight: 600; color: var(--ink);
    white-space: normal;
  }
  .header-menu .nav a.active { color: var(--accent-deep); }
  .header-menu .nav-drop-menu a .or { font-size: 10px; min-width: 58px; }
  /* каскад появления пунктов при открытии */
  .header-menu .nav a, .header-menu .actions .pill {
    opacity: 0; transform: translateY(10px);
    transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1);
  }
  .header-menu.open .nav a, .header-menu.open .actions .pill { opacity: 1; transform: none; }
  .header-menu.open .nav a:nth-child(n)     { transition-delay: .05s; }
  .header-menu.open .nav a:nth-child(n+4)   { transition-delay: .1s; }
  .header-menu.open .nav a:nth-child(n+7)   { transition-delay: .15s; }
  .header-menu.open .actions .pill          { transition-delay: .2s; }

  /* тема — левый верхний угол, язык — правый верхний (левее крестика) */
  .header-menu .theme-btn {
    position: absolute; top: 16px; left: 20px;
    width: 40px; height: 40px; font-size: 17px;
  }
  .header-menu .lang-switch { position: absolute; top: 19px; right: 72px; }

  .header-menu .actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: auto; }
  .header-menu .pill { min-height: 48px; font-size: 15px; }

  .page { width: 100%; border-left: 0; border-right: 0; }
  .hero { min-height: 560px; }
  .hero-inner { padding: 64px 0 72px; }
  .hero-lede { font-size: 16px; }
  .page-hero { min-height: 0; }
  .page-hero .ph-inner { padding: 52px 22px 58px; }
  .page-hero .ph-lede { font-size: 15.5px; }
  .grid { grid-template-columns: 1fr; }
  .cell { border-right: 0; min-height: auto; padding: 30px 22px; }
  .section-label { padding: 30px 22px 0; }
  .section-body { padding: 16px 22px 42px; }
  .two-col { grid-template-columns: 1fr; gap: 26px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid li:nth-last-child(2) { border-bottom: 0; }
  .dir-strip { padding: 32px 22px 38px; }
  .contacts-head { padding: 46px 22px 0; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-tile { border-bottom: 1px solid var(--line); }
  .contact-tile:nth-child(2n) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-tile { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(26px, 8vw, 34px); }
}
