/* Shnurok — стиль «Неоновый шнур». Только системные шрифты, никаких внешних загрузок. */

:root {
  --bg: #090e1d;
  --bg-2: #0e1528;      /* шаг тона вверх от фона: полосы, плитки */
  --surface: #18213d;   /* плашки */
  --surface-2: #222d50; /* шаг тона вверх от плашек */
  --ink: #eef3ff;
  --muted: #8c97b8;
  --accent: #b6ff3b;
  --on-accent: #0a1102;
  --warn: #ffc53d;

  --font: "Avenir Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* пять шагов шрифта */
  --t-display: clamp(30px, 5vw, 80px);
  --t-h2: clamp(32px, 3.4vw, 52px);
  --t-lead: clamp(19px, 1.6vw, 24px);
  --t-body: 17px;
  --t-small: 14px;

  --m: clamp(20px, 3vw, 48px);       /* внешние поля страницы */
  --gap: clamp(16px, 2vw, 32px);     /* промежуток колонок */
  --section: clamp(96px, 12vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
/* списки-компоненты без маркеров; обычные списки в статьях остаются обычными */
.stops, .bands, .need-list ul, .priv-lists ul, .f-nav ul { margin: 0; padding: 0; list-style: none; }
/* не переносить «Wi-Fi», «USB-кабелю» и подобные по дефису */
.nowrap { white-space: nowrap; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
/* атрибут hidden сильнее любых display у компонентов (кнопка паузы, панели вкладок, плашка языка) */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { padding-inline: var(--m); max-width: 1680px; margin-inline: auto; }
.section { margin-top: var(--section); }
h2 { font-size: var(--t-h2); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.muted { color: var(--muted); }

/* ---------- кнопка: плоская, квадратная, одна на всю страницу ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 26px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: var(--t-body); text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s;
}
.btn:hover { color: var(--on-accent); background: #c8ff6a; }
.btn:active { transform: translateY(2px); }
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .18s var(--ease); }
.btn:hover svg { transform: translateY(2px); }

/* ---------- плашка языка ---------- */
/* плашка висит поверх страницы внизу экрана: появляется после загрузки и ничего не сдвигает
   (иначе съезжают переход по якорю и первый экран); под неё оставлено место в конце страницы */
.langbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); }
body:has(.langbar:not([hidden])) { padding-bottom: 120px; }
html:has(.langbar:not([hidden])) { scroll-padding-bottom: 120px; } /* ссылка, на которую перешли клавиатурой, не прячется под плашкой */
.langbar .wrap { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; min-height: 56px; padding-block: 10px; font-size: var(--t-small); }
.langbar a { font-weight: 600; }
.langbar button {
  margin-left: auto; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer;
  min-width: 44px; min-height: 44px; font-size: var(--t-body);
}
.langbar button:hover { color: var(--accent); }

/* ---------- шапка ---------- */
.top { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: var(--t-body); letter-spacing: .14em; }
.logo:hover { color: var(--ink); }
.logo svg { width: 26px; height: 12px; overflow: visible; }
.top nav { margin-left: auto; display: flex; gap: 28px; align-items: center; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; color: var(--ink); }
.top .lang { font-weight: 600; }

/* ---------- первый экран ---------- */
.hero { padding-top: clamp(16px, 3vw, 40px); }
.hero h1 { font-size: var(--t-display); font-weight: 600; line-height: 1.02; letter-spacing: -.03em; max-width: 22em; }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(28px, 3vw, 44px); align-items: start; }
.hero-text { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 28px; }
.hero-text .lead { font-size: var(--t-lead); line-height: 1.45; }
.dl { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dl-meta { font-size: var(--t-small); color: var(--muted); }
.hero-note { font-size: var(--t-small); color: var(--muted); max-width: 30ch; }
.stage { grid-column: 5 / span 8; position: relative; }
.stage figcaption { position: absolute; left: 79%; right: 0; bottom: 3%; font-size: var(--t-small); color: var(--muted); }

/* сцена: телефон лежит боком, шнурок идёт к порту телевизора, на обоих один и тот же кадр */
.scene { position: relative; aspect-ratio: 1000 / 640; container-type: inline-size; }
.scene .tv-body { position: absolute; left: 30%; top: 0; width: 70%; aspect-ratio: 16 / 9.4; background: #04060c; padding: .9% .9% 1.6%; }
.scene .tv-body::after { content: ""; position: absolute; left: 62%; bottom: -1.1%; width: 4.5%; height: 1.4%; background: var(--surface-2); } /* порт снизу */
.scene .tv-screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.scene .ph-body { position: absolute; left: 0; top: 73%; width: 36%; aspect-ratio: 19.5 / 9; background: #04060c; border-radius: 3.6cqi; padding: 1.3cqi 1.6cqi; }
.scene .ph-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 2.4cqi; background: #000; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.xfade .shot { transition: opacity 1.6s ease; } /* класс ставит site.js, когда запускает смену кадров */
/* кнопка паузы смены кадров (видна, только когда кадры меняются) */
.xpause { position: absolute; left: 3%; bottom: 5%; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: rgba(9,14,29,.78); color: var(--ink); cursor: pointer; transition: color .18s; }
.xpause:hover { color: var(--accent); }
.xpause svg { width: 14px; height: 14px; fill: currentColor; }
.xpause .i-play, .xpause[aria-pressed="true"] .i-pause { display: none; }
.xpause[aria-pressed="true"] .i-play { display: inline; }
.shot.on { opacity: 1; }
.scene .cord { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.badge { position: absolute; top: 5%; right: 3.5%; display: flex; align-items: center; gap: .5em; padding: .4em .9em; border-radius: 999px; background: rgba(9,14,29,.78); color: var(--ink); font-size: 1.5cqi; font-weight: 600; }
.badge i { width: .55em; height: .55em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 .5em var(--accent); } /* taste-skill-ignore: плашка интерфейса ТВ (data-ui) */

/* дыхание шнурка (как на заставке ТВ) */
.cord .glow { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .cord .glow { animation: none; opacity: .6; } }

/* ---------- экраны приложения (фрагменты интерфейса Shnurok) ---------- */
.dev { container-type: inline-size; }
.phone { aspect-ratio: 9 / 19.5; background: #04060c; border-radius: 13cqi; padding: 4.5cqi; }
.phone .scr { border-radius: 9cqi; background: #0b1124; }
.tvset { aspect-ratio: 16 / 9; background: #04060c; padding: 1.4cqi; }
.tvset .scr { background: var(--bg); }
.screens { position: relative; width: 100%; height: 100%; overflow: hidden; }
.scr { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; color: var(--ink); }
.scr.on { opacity: 1; visibility: visible; transition: opacity .2s ease; }

/* телефон */
.p { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12cqi 7cqi 8cqi; font-size: 6.2cqi; line-height: 1.3; }
.p-brand { align-self: flex-start; display: flex; align-items: center; gap: .45em; font-weight: 700; font-size: .78em; letter-spacing: .1em; }
.p-brand i, .t-logo i { display: inline-block; width: 1.1em; height: .2em; border-radius: .2em; background: var(--accent); box-shadow: 0 0 .5em var(--accent); } /* taste-skill-ignore: свечение логотипа в интерфейсе приложения (data-ui) */
.p-pill { margin-top: 1.2em; display: flex; align-items: center; gap: .5em; padding: .45em .9em; border-radius: 999px; background: var(--surface); font-size: .82em; }
.p-pill::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 .5em var(--accent); } /* taste-skill-ignore: индикатор в интерфейсе приложения (data-ui) */
.p-pill.off::before { background: #5b6584; box-shadow: none; } /* taste-skill-ignore: интерфейс приложения (data-ui) */
.p-pill.warn::before { background: var(--warn); box-shadow: 0 0 .5em var(--warn); } /* taste-skill-ignore: интерфейс приложения (data-ui) */
.p-mid { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: .8em; }
.p-art { width: 62%; }
.p-title { font-size: 1.18em; font-weight: 600; line-height: 1.25; }
.p-body { font-size: .86em; color: var(--muted); }
.p-btn2 { font-size: .82em; padding: .65em 1.1em; border-radius: 999px; border: 1px solid #2c3963; } /* taste-skill-ignore: вторичная кнопка интерфейса приложения (data-ui) */
.p-big { width: 9.2em; height: 9.2em; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35em; font-weight: 700; font-size: .9em; line-height: 1.2; box-shadow: 0 0 2.4em rgba(182,255,59,.5); } /* taste-skill-ignore: светящаяся кнопка приложения (data-ui) */
.p-big svg { width: 2.2em; height: 2.2em; }
.p-big.pressed { transform: scale(.94); box-shadow: 0 0 3.4em rgba(182,255,59,.75); } /* taste-skill-ignore: интерфейс приложения (data-ui) */
.p-big.stop { background: transparent; color: var(--accent); border: .16em solid var(--accent); box-shadow: 0 0 1.6em rgba(182,255,59,.35), inset 0 0 1.2em rgba(182,255,59,.2); } /* taste-skill-ignore: интерфейс приложения (data-ui) */
.p-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: .82em; padding: .7em .9em; border-radius: .9em; background: var(--surface); text-align: left; }
.p-toggle b { width: 2.3em; height: 1.25em; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.p-toggle b::after { content: ""; position: absolute; right: .2em; top: .2em; width: .85em; height: .85em; border-radius: 50%; background: var(--on-accent); }
.p-foot { display: flex; flex-direction: column; align-items: center; gap: .7em; width: 100%; }

/* телевизор */
.t { font-size: 2.6cqi; line-height: 1.35; }
.t-logo { position: absolute; top: 6%; left: 5%; display: flex; align-items: center; gap: .5em; font-weight: 700; font-size: .9em; letter-spacing: .1em; }
.t-center { position: absolute; inset: 0 6%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55em; text-align: center; }
.t-art { width: 46%; }
.t-title { font-size: 1.55em; font-weight: 600; }
.t-body { font-size: .95em; color: var(--muted); }
.t-steps { position: absolute; bottom: 7%; left: 0; right: 0; display: flex; justify-content: center; gap: 1.6em; font-size: .78em; color: var(--muted); }
.t-steps span { display: flex; align-items: center; gap: .45em; }
.t-steps b { display: inline-flex; width: 1.5em; height: 1.5em; border-radius: 50%; align-items: center; justify-content: center; background: var(--surface); color: var(--ink); font-size: .85em; }
.t-ring { width: 4.6em; height: 4.6em; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: .15em solid var(--accent); color: var(--accent); box-shadow: 0 0 1.4em rgba(182,255,59,.45), inset 0 0 1em rgba(182,255,59,.25); } /* taste-skill-ignore: кольцо на экране ТВ (data-ui) */
.t-ring svg { width: 2em; height: 2em; }
.t-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cordglow { filter: drop-shadow(0 0 .35em rgba(182,255,59,.8)); } /* taste-skill-ignore: светящийся шнурок на заставке ТВ (data-ui) */

/* ---------- как это работает: ползунок ведёт обе половины ---------- */
.how { display: grid; grid-template-columns: 9fr 11fr; grid-template-rows: 1fr auto; min-height: 88svh; }
.how-sec[data-stage="1"] .c-on { opacity: 0; }
.how-sec:not([data-stage="1"]) .c-off { opacity: 0; }
.phone .screens { border-radius: 9cqi; background: #0b1124; }
.how-text { background: var(--bg-2); padding: clamp(32px, 4vw, 64px) var(--m) 0; display: flex; flex-direction: column; gap: 28px; }
.how-text h2 { font-size: var(--t-lead); font-weight: 600; letter-spacing: 0; color: var(--muted); }
.clauses { display: grid; }
.clause { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; }
.clause.on { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.clause p:first-child { font-size: var(--t-h2); font-weight: 600; line-height: 1.06; letter-spacing: -.02em; max-width: 13em; }
.clause p + p { margin-top: 24px; max-width: 40ch; }
.how-pic { background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 48px 32px 64px; }
.pair { position: relative; width: min(820px, 100%); container-type: inline-size; display: grid; grid-template-columns: 31% 1fr; gap: 0 7%; align-items: center; }
.pair .cordline { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cordline path { transition: opacity .2s ease; }
.how-ctrl { grid-column: 1 / -1; background: var(--bg-2); padding: 28px var(--m) 36px; }
.how-ctrl .rail { position: relative; height: 32px; }
.how-ctrl .track, .how-ctrl .fill { position: absolute; left: 0; top: 12px; height: 8px; }
.how-ctrl .track { right: 0; background: var(--surface-2); }
.how-ctrl .fill { width: 0; background: var(--ink); transition: width .2s ease; }
.how-ctrl input[type=range] { position: absolute; inset: 0; width: 100%; height: 32px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.how-ctrl input[type=range]::-webkit-slider-runnable-track { height: 32px; background: transparent; }
.how-ctrl input[type=range]::-moz-range-track { height: 32px; background: transparent; }
.how-ctrl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; background: var(--accent); border: 0; border-radius: 0; transition: transform .15s var(--ease); }
.how-ctrl input[type=range]::-moz-range-thumb { width: 32px; height: 32px; background: var(--accent); border: 0; border-radius: 0; }
.how-ctrl input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.how-ctrl input[type=range]:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
/* подписи стоят под четырьмя положениями бегунка */
.stops { position: relative; min-height: 44px; margin-top: 10px; }
.stops li { position: absolute; top: 0; color: var(--muted); white-space: nowrap; }
.stops li:nth-child(1) { left: 0; }
.stops li:nth-child(2) { left: calc((100% - 32px) / 3 + 16px); transform: translateX(-50%); }
.stops li:nth-child(3) { left: calc((100% - 32px) * 2 / 3 + 16px); transform: translateX(-50%); }
.stops li:nth-child(4) { right: 0; }
/* без JS ползунка нет: все четыре шага идут списком */
.no-js .how-ctrl { display: none; }
.no-js .clause { grid-area: auto; opacity: 1; visibility: visible; }
.no-js .clause + .clause { margin-top: 32px; }
.no-js .clause p:first-child { font-size: var(--t-lead); }
.no-js .clause p + p { margin-top: 8px; }
.stops li.on { color: var(--ink); font-weight: 600; }
.stops button { all: unset; cursor: pointer; padding: 6px 0; }
.stops button:hover { color: var(--ink); }
.stops button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.no-js .rail { display: none; }

/* ---------- почему кабель: сравнение словами ---------- */
.cmp h2 { margin-bottom: 48px; }
.cmp-table { display: grid; grid-template-columns: 5fr 2.33fr 2.33fr 2.33fr; position: relative; }
.cmp-table > div { display: contents; }
.cmp-table > div > * { padding: 20px 20px; min-height: 68px; display: flex; align-items: center; }
.cmp-table > div:nth-child(even) > * { background: var(--bg-2); }
.cmp-table .name { font-size: var(--t-lead); font-weight: 500; line-height: 1.25; }
.cmp-table .us { background: var(--accent) !important; color: var(--on-accent); font-weight: 600; }
.cmp-head > * { font-weight: 700; min-height: 0 !important; padding-block: 14px !important; align-items: flex-end !important; }
.cmp-head .us { padding-top: 38px !important; }

/* ---------- установка: вкладки и полосы шагов ---------- */
.inst-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.inst-head h2 span { display: block; }
.inst-head h2 span:first-child { color: var(--muted); }
.inst { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-top: 56px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tabs button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; justify-content: center;
  min-height: 72px; padding: 10px 18px; background: var(--bg-2); transition: background-color .18s;
}
.tabs button span { font-size: var(--t-small); color: var(--muted); }
.tabs button:hover { background: var(--surface); }
.tabs button[aria-selected=true] { background: var(--ink); color: var(--bg); }
.tabs button[aria-selected=true] span { color: #3a4566; }
.tabs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.no-js .tabs { display: none; }
.no-js .inst { grid-template-columns: 1fr; }
.panel h3 { font-size: var(--t-lead); font-weight: 600; margin-bottom: 16px; }
.js .panel h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.no-js .panel + .panel { margin-top: 48px; }
.bands { display: flex; flex-direction: column; gap: 4px; }
.bands li { display: grid; grid-template-columns: 150px 1fr minmax(0, 220px); gap: 24px; align-items: center; min-height: 84px; padding: 14px 24px; background: var(--bg-2); }
.bands li:nth-child(even) { background: var(--surface); }
.bands .where { color: var(--muted); font-size: var(--t-small); }
.bands .what b { display: block; font-weight: 600; }
.bands .what span { display: block; color: var(--ink); opacity: .82; }
.bands .key { justify-self: end; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bands .key.big { font-size: var(--t-lead); color: var(--accent); }

/* ---------- что нужно: список с двумя концами и фото кабеля ---------- */
.need { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.need-list { grid-column: 1 / span 6; }
.need-list h2 { margin-bottom: 32px; }
.need-list h3 { font-size: var(--t-body); font-weight: 400; color: var(--muted); margin: 40px 0 6px; }
.need-list h3:first-of-type { margin-top: 0; }
.need-list li { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; }
.need-list li i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); transform: translateY(1px); }
.need-list li i.no { background: #5b6584; }
.need-list li i.warn { background: var(--warn); }
.need-list .n { flex: 1; }
.need-list .v { margin-left: auto; text-align: right; color: var(--muted); font-size: var(--t-small); max-width: 46%; }
.need-pic { grid-column: 8 / span 5; position: sticky; top: 32px; }
.need-pic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.need-pic figcaption { margin-top: 12px; font-size: var(--t-small); color: var(--muted); }

/* ---------- вопросы: плитки-аккордеон ---------- */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.faq h2 { grid-column: 1 / span 4; position: sticky; top: 96px; }
.faq-list { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--bg-2); transition: background-color .2s; }
.faq details[open] { background: var(--accent); color: var(--on-accent); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 18px 24px; font-size: var(--t-lead); font-weight: 500; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface); }
.faq details[open] summary:hover { background: transparent; }
.faq .pm { position: relative; flex: none; width: 16px; height: 16px; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform .2s var(--ease); }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq .ans { padding: 0 24px 24px; max-width: 60ch; }
.faq .ans p + p { margin-top: 12px; }
.faq details[open] a { color: var(--on-accent); }

/* ---------- приватность: факты сбоку, широкий абзац ---------- */
.priv { display: grid; grid-template-columns: repeat(12, 1fr); gap: 120px var(--gap); }
.priv-facts { grid-column: 1 / span 4; }
.priv-facts h2 { margin-bottom: 32px; }
.priv-facts dl { display: flex; flex-direction: column; gap: 20px; }
.priv-facts dt { color: var(--muted); font-size: var(--t-small); }
.priv-facts dd { font-size: var(--t-lead); font-weight: 600; }
.priv-text { grid-column: 5 / span 7; font-size: var(--t-lead); line-height: 1.4; align-self: end; }
.priv-text p + p { margin-top: 20px; }
.priv-word { grid-column: 1 / span 4; color: var(--muted); }
.priv-lists { grid-column: 5 / span 8; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.priv-lists h3 { font-size: var(--t-body); font-weight: 600; margin-bottom: 12px; }
.priv-lists li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.priv-lists li span:last-child { color: var(--muted); text-align: right; }
.req { margin: 16px 0 0; padding: 18px 20px; background: var(--bg-2); color: var(--ink); font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; } /* taste-skill-ignore: настоящий код, запрос и ответ сервера */
.req-note { margin-top: 10px; font-size: var(--t-small); color: var(--muted); }

/* ---------- подвал из плиток ---------- */
.foot { margin-top: var(--section); padding: 10px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.foot > * { background: var(--bg-2); padding: 28px; min-height: 230px; display: flex; flex-direction: column; gap: 16px; }
.f-state { grid-column: span 4; justify-content: space-between; }
.f-state > p:first-child { font-size: var(--t-lead); line-height: 1.35; }
.f-state .legal { font-size: var(--t-small); color: var(--muted); }
.f-state .legal a { color: var(--muted); }
.f-nav { grid-column: span 3; }
.f-nav li + li { margin-top: 6px; }
.f-nav a { text-decoration: none; }
.f-nav a:hover { text-decoration: underline; }
.f-ver { grid-column: span 2; justify-content: space-between; }
.f-ver b { font-size: var(--t-lead); font-weight: 600; }
.f-lang { grid-column: span 3; justify-content: space-between; }
.f-lang a { font-size: var(--t-lead); font-weight: 600; text-decoration: none; }
.f-lang a:hover { text-decoration: underline; }
.f-mark { grid-column: span 8; min-height: 320px; background: var(--ink); color: var(--bg); align-items: center; justify-content: center; }
.f-mark svg { width: min(86%, 980px); height: auto; }
.f-go { grid-column: span 4; min-height: 320px; background: var(--accent); color: var(--on-accent); text-decoration: none; justify-content: space-between; transition: background-color .18s; }
.f-go:hover { color: var(--on-accent); background: #c8ff6a; }
.f-go span { font-size: var(--t-h2); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.f-go svg { align-self: flex-end; width: 72px; height: 72px; transition: transform .25s var(--ease); }
.f-go:hover svg { transform: translate(4px, 4px); }

/* ---------- 404 ---------- */
.lost { min-height: calc(100svh - 80px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px var(--gap); align-content: center; padding-block: 24px 48px; }
.lost-art { grid-column: 1 / -1; }
.lost-art svg { width: 100%; height: auto; max-height: 22svh; }
@media (max-width: 900px) { .lost { row-gap: 96px; } }
.lost-art .glow { animation: breathe 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .lost-art .glow { animation: none; opacity: .6; } }
.lost section { grid-column: span 6; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.lost h1, .lost h2 { font-size: var(--t-display); font-weight: 600; line-height: 1.02; letter-spacing: -.03em; }
.lost p { max-width: 42ch; font-size: var(--t-lead); line-height: 1.4; }
.lost p.links { font-size: var(--t-body); }
.lost .links { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center; }

/* ---------- появление частей секций (только с JS и без запрета движения) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
  .js .rise.in { opacity: 1; transform: none; }
}

/* ---------- планшет ---------- */
@media (max-width: 1100px) {
  .hero-text { grid-column: 1 / span 5; }
  .stage { grid-column: 6 / span 7; }
  /* на этих ширинах подписи не хватает места справа от телефона: ставим её под сценой */
  .stage figcaption { position: static; margin-top: 12px; }
  .bands li { grid-template-columns: 120px 1fr minmax(0, 180px); }
}
@media (max-width: 900px) {
  .top nav .sec { display: none; }
  .hero-text, .stage { grid-column: 1 / -1; }
  .hero-text { display: grid; grid-template-columns: 1fr 1fr; gap: 24px var(--gap); }
  .hero-text .lead { grid-column: 1 / -1; }
  .stage { margin-top: 24px; }
  .how { grid-template-columns: 1fr; }
  .how-pic { order: -1; min-height: 46svh; }
  .how-text { padding-bottom: 32px; }
  /* сравнение на узком экране: по блоку на каждый вопрос */
  .cmp-table { display: block; }
  .cmp-head { display: none !important; }
  .cmp-table > div { display: block; padding: 18px 16px; }
  .cmp-table > div:nth-child(even) { background: var(--bg-2); }
  .cmp-table > div > * { display: block; min-height: 0; padding: 4px 0; background: none !important; }
  .cmp-table .name { font-weight: 700; padding-bottom: 8px; }
  .cmp-table .us { padding: 8px 12px; margin: 0 -12px; background: var(--accent) !important; }
  .cmp-table [data-col]::before { content: attr(data-col) ": "; font-weight: 600; white-space: nowrap; }
  .inst { grid-template-columns: 1fr; gap: 16px; }
  .tabs { flex-direction: row; position: sticky; top: 0; z-index: 2; background: var(--bg); padding-block: 6px; }
  .tabs button { flex: 1; min-height: 64px; padding: 8px 12px; }
  .need-list, .need-pic { grid-column: 1 / -1; }
  .need-pic { position: static; }
  .faq h2 { grid-column: 1 / -1; position: static; }
  .faq-list { grid-column: 1 / -1; }
  .priv { row-gap: 48px; }
  .priv-facts, .priv-text, .priv-word, .priv-lists { grid-column: 1 / -1; }
  .f-state, .f-nav, .f-ver, .f-lang { grid-column: span 6; }
  .f-mark, .f-go { grid-column: 1 / -1; }
  .lost section { grid-column: 1 / -1; }
}

/* ---------- телефон ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { min-height: 64px; }
  .logo { font-size: 16px; }
  .hero h1, .js .clause p:first-child { font-size: clamp(24px, 6.6vw, 34px); line-height: 1.08; }
  .hero-text { display: flex; gap: 20px; }
  .btn { width: 100%; justify-content: center; }
  .dl { align-items: stretch; }
  .dl-meta { text-align: center; }
  .stage figcaption { position: static; margin-top: 12px; }
  .xpause { width: 34px; height: 34px; background: rgba(9,14,29,.6); }
  .xpause svg { width: 11px; height: 11px; }
  .how-pic { padding: 32px 20px; }
  .how-ctrl input[type=range]::-webkit-slider-thumb { width: 40px; height: 40px; }
  .how-ctrl .rail { height: 40px; }
  .how-ctrl .track, .how-ctrl .fill { top: 16px; }
  .how-ctrl input[type=range] { height: 40px; }
  .stops { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .stops li, .stops li:nth-child(2), .stops li:nth-child(3), .stops li:nth-child(4) { position: static; transform: none; font-size: var(--t-small); }
  .bands li { grid-template-columns: 1fr; gap: 6px; padding: 16px; }
  .bands .key { justify-self: start; text-align: left; }
  .need-list li { flex-wrap: wrap; min-height: 44px; }
  .need-list .v { margin-left: 26px; text-align: left; max-width: none; flex-basis: 100%; }
  .faq summary { min-height: 64px; padding: 16px 20px; }
  .faq .ans { padding: 0 20px 20px; }
  .priv-lists { grid-template-columns: 1fr; gap: 40px; }
  .foot { padding: 6px; gap: 6px; }
  .foot > * { padding: 20px; min-height: 150px; }
  .f-mark { order: -2; min-height: 160px; }
  .f-go { order: -1; min-height: 200px; }
  .f-state { grid-column: 1 / -1; order: 1; }
  .f-ver { order: 0; }
}

/* ==========================================================================
   Статьи (main.art) и оглавление статей (main.guides).
   Всё ниже действует только внутри этих двух main и посадочную не меняет.
   Какие классы есть и как их ставить в статье, описано в заметках к шаблону
   (.superpowers/sdd/2026-11-29-shnurok-site/site-template-notes.md).
   ========================================================================== */

/* хлебные крошки: Shnurok › Статьи › тема */
.crumbs { padding-top: clamp(8px, 1.5vw, 20px); font-size: var(--t-small); color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin: 0 .6em; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* заголовок страницы, дата и автор */
.art-head, .guides-head { margin-top: clamp(20px, 3vw, 40px); }
.art-head h1, .guides-head h1 { font-size: clamp(32px, 4.4vw, 64px); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; max-width: 18em; text-wrap: balance; }
.art-meta { margin-top: 20px; font-size: var(--t-small); color: var(--muted); }
.art-meta a:hover { color: var(--ink); }

/* сетка статьи: текст на 8 колонках слева, содержание на 3 колонках справа */
.art-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(32px, 4vw, 56px); align-items: start; }
.art-body { grid-column: 1 / span 8; min-width: 0; font-size: 18px; line-height: 1.6; }
.art-side { grid-column: 10 / span 3; position: sticky; top: 24px; }

/* ритм длинного текста */
.art-body > section + section { margin-top: clamp(56px, 6vw, 96px); }
.art-body section > * + * { margin-top: 20px; }
.art-body section > h3 { margin-top: 40px; }
.art-body h2 { font-size: clamp(26px, 2.3vw, 36px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; max-width: 24em; scroll-margin-top: 24px; text-wrap: balance; }
.art-body h3 { font-size: var(--t-lead); font-weight: 600; line-height: 1.3; scroll-margin-top: 24px; text-wrap: balance; }
.art-body p, .art-body li { max-width: 68ch; text-wrap: pretty; }
.art-body b, .art-body strong { font-weight: 600; }
.art-body ul, .art-body ol { margin-bottom: 0; padding-left: 1.3em; }
.art-body li + li { margin-top: 8px; }
.art-body li::marker { color: var(--muted); }
.art-body code { font: .88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); padding: .12em .4em; white-space: nowrap; } /* taste-skill-ignore: адреса и команды, которые человек набирает сам */

/* «Коротко»: прямой ответ, который можно процитировать отдельно */
.short { background: var(--bg-2); padding: clamp(22px, 3vw, 40px); }
.short h2 { font-size: var(--t-lead); font-weight: 600; letter-spacing: 0; color: var(--muted); }
.short p { font-size: var(--t-lead); line-height: 1.45; max-width: 42em; }
.short > * + * { margin-top: 14px !important; }

/* шаги: настоящий нумерованный список, номер в квадрате цвета кнопки */
.art-body ol.steps { list-style: none; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 4px; }
.steps > li { counter-increment: step; position: relative; max-width: none; margin: 0 !important; padding: 20px 24px 20px 84px; min-height: 80px; background: var(--bg-2); }
.steps > li:nth-child(even) { background: var(--surface); }
.steps > li::before { content: counter(step); position: absolute; left: 24px; top: 20px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.steps > li > * + * { margin-top: 8px; }

/* заметка на плашке и предупреждение на жёлтой плашке (как плашка «Кабель подключён» в приложении) */
.note { background: var(--surface); padding: 18px 24px; }
.note.warn { background: var(--warn); color: #1b1300; }
.note.warn a, .note.warn a:hover { color: inherit; }
.note > * + * { margin-top: 10px; }
.note p { max-width: 64ch; }

/* таблица: строки разделены тоном, а не линиями; на телефоне широкая таблица прокручивается
   внутри обёртки (у обёртки tabindex="0", чтобы её можно было прокрутить с клавиатуры) */
.table-wrap { overflow-x: auto; }
.table-wrap:focus-visible { outline-offset: 0; }
.art-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.art-body caption { caption-side: top; text-align: left; font-size: 18px; font-weight: 600; padding-bottom: 12px; }
.art-body th, .art-body td { padding: 14px 16px; text-align: left; vertical-align: top; }
.art-body thead th { background: var(--surface); font-weight: 600; }
.art-body tbody tr:nth-child(odd) { background: var(--bg-2); }
.art-body tbody th { font-weight: 600; }

/* схема (SVG из /assets/) с подписью */
.scheme { background: var(--bg-2); padding: clamp(16px, 3vw, 36px); }
.scheme img { width: 100%; height: auto; }
.scheme figcaption { margin-top: 16px; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 64ch; }

/* «Shnurok решает это так»: поле цвета кнопки, сама кнопка тёмная */
.solve { background: var(--accent); color: var(--on-accent); padding: clamp(24px, 3.4vw, 48px); }
.solve a, .solve a:hover { color: var(--on-accent); }
.solve .btn { background: var(--bg); color: var(--ink); }
.solve .btn:hover { background: var(--surface); color: var(--ink); }
.solve .dl { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px !important; }
.solve .dl-meta { color: #3b4d12; }

/* «Когда Shnurok не подойдёт»: серые точки, как «Не подойдёт» на посадочной */
.art-body ul.limits { list-style: none; padding: 0; }
.limits > li { position: relative; padding-left: 30px; }
.limits > li + li { margin-top: 16px; }
.limits > li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: #5b6584; }

/* вопросы в статье: те же плитки, что на посадочной, но в одной колонке */
.art .faq { display: block; }
.art .faq h2 { position: static; }
.art .faq summary { font-size: 18px; }

/* список ссылок на статьи: «Читайте также» и оглавление */
.art-body ul.guide-links, .guide-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.guide-links > li { max-width: none; margin: 0 !important; }
.guide-links a { display: block; padding: 16px 22px; background: var(--bg-2); text-decoration: none; transition: background-color .18s; }
.guide-links a:hover { background: var(--surface); color: var(--ink); }
.guide-links a:hover b { text-decoration: underline; }
.guide-links b { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; }
.guide-links span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.45; opacity: .82; } /* как вторая строка в полосах установки на посадочной */

/* содержание статьи справа */
.toc { font-size: 16px; line-height: 1.4; }
.toc h2 { font-size: var(--t-small); font-weight: 400; letter-spacing: 0; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 7px 0; text-decoration: none; }
.toc a:hover { text-decoration: underline; color: var(--ink); }

/* оглавление /guides/: вступление и переход к разделам, затем кластеры */
.guides-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px var(--gap); align-items: start; }
.guides-head > div { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 24px; }
.guides-head .lead { font-size: var(--t-lead); line-height: 1.45; max-width: 36em; }
.guides-head .art-meta { margin-top: 0; }
.jump { grid-column: 9 / span 4; font-size: 16px; }
.jump h2 { font-size: var(--t-small); font-weight: 400; letter-spacing: 0; color: var(--muted); margin-bottom: 10px; }
.jump ol { margin: 0; padding: 0; list-style: none; }
.jump a { display: block; padding: 6px 0; text-decoration: none; }
.jump a:hover { text-decoration: underline; color: var(--ink); }
.cluster { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px var(--gap); margin-top: clamp(72px, 9vw, 140px); align-items: start; scroll-margin-top: 24px; }
.cluster-head { grid-column: 1 / span 4; position: sticky; top: 24px; }
.cluster-head h2 { font-size: clamp(26px, 2.3vw, 36px); line-height: 1.12; text-wrap: balance; }
.cluster-head p { margin-top: 14px; max-width: 34ch; }
.cluster .guide-links { grid-column: 5 / span 8; }

/* блоки с классом rise появляются при прокрутке (site.js), но на печати видны все сразу */
@media print { .js .rise { opacity: 1 !important; transform: none !important; } }

@media (max-width: 900px) {
  .art-body { grid-column: 1 / -1; }
  .art-side { display: none; } /* содержание повторяет заголовки, на узком экране оно не нужно */
  .guides-head > div, .jump { grid-column: 1 / -1; }
  .jump ol { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .cluster-head { grid-column: 1 / -1; position: static; }
  .cluster .guide-links { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .art-head h1, .guides-head h1 { font-size: clamp(24px, 6.6vw, 30px); line-height: 1.1; }
  .art-body { font-size: 17px; }
  .art-body h2 { font-size: 24px; }
  .steps > li { padding: 16px 16px 16px 68px; }
  .steps > li::before { left: 16px; top: 16px; width: 36px; height: 36px; }
  .note { padding: 16px 18px; }
  .scheme { padding: 10px; }
  .scheme figcaption { margin: 12px 6px 4px; }
  /* таблица из трёх и более колонок не сжимается в нечитаемые столбики, а прокручивается вбок;
     у правого края видна часть следующей колонки, это и есть подсказка, что можно прокрутить */
  .art-body table:has(tr > :nth-child(3)) { min-width: 560px; }
  .art .faq summary { font-size: 17px; }
  .guide-links a { padding: 14px 16px; }
  .guide-links b { font-size: 17px; }
}
