/*
  Сайт Strassio — один файл стилей, без библиотек. Шрифт Onest лежит у сайта (fonts/, лицензия OFL):
  защита сайта (CSP) не пускает чужие шрифты.
  Правила вида (владелец 2026-11-17): ярко и «как камни» — камни с огранкой, как в логотипе, блестят и собираются
  в фигуры; сплошные цвета без прозрачных фонов, видимые границы и тени, удобно с телефона.

  Тема: «Авто» — как в системе, плюс ручной выбор. Выбор пишется в <html data-theme="light|dark"> файлом /theme.js;
  поэтому тёмные цвета заданы дважды — для системной тёмной темы (пока человек ничего не выбрал) и для выбранной.
  Камни раскладывает /site.js (только главная).
*/

@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/onest-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/onest-latin.woff2) format("woff2"); 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: light dark;
  --bg: #f5f5f7; --bg-sunken: #ebebef; --card: #ffffff; --card-2: #fbfbfd;
  --text: #1d1d1f; --muted: #5f5f66; --faint: #6e6e73;
  --line: #d8d8de; --line-strong: #c4c4cc;
  --accent: #0a68e0; --accent-hover: #0858c0; --accent-soft: #e3eeff; --accent-text: #0a5ccc; --on-accent: #ffffff;
  --ok: #1d7a33; --bad: #c9342c;
  --band: #0b1530; --band-text: #f5f7ff; --band-muted: #aab6d6; --band-line: #24345e;
  --sheet: #ffffff; --sheet-line: #e2e2e8; --guide: #9aa3b5;
  --warn-bg: #fff1d6; --warn-text: #7a4b00;
  --shadow-s: 0 1px 2px rgba(15, 20, 40, .06);
  --shadow-m: 0 1px 2px rgba(15, 20, 40, .06), 0 10px 30px rgba(15, 20, 40, .08);
  --shadow-l: 0 2px 6px rgba(15, 20, 40, .08), 0 30px 80px rgba(15, 20, 40, .16);
  --r-s: 10px; --r-m: 16px; --r-l: 24px; --r-xl: 36px;
  --t-fast: 120ms cubic-bezier(.32, .72, 0, 1);
  --t-base: 240ms cubic-bezier(.32, .72, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0a0d; --bg-sunken: #111115; --card: #16161b; --card-2: #1c1c22;
    --text: #f5f5f7; --muted: #a8a8b0; --faint: #8e8e96;
    --line: #2a2a32; --line-strong: #3a3a44;
    --accent: #1a6cf0; --accent-hover: #2d7bff; --accent-soft: #10213f; --accent-text: #74abff; --on-accent: #ffffff;
    --ok: #4ad06a; --bad: #ff6b60;
    --band: #10182c; --band-text: #f5f7ff; --band-muted: #9aa8c8; --band-line: #263556;
    --sheet: #1f1f26; --sheet-line: #2e2e38; --guide: #59607a;
    --warn-bg: #3a2a0a; --warn-text: #ffd27a;
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-m: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-l: 0 2px 6px rgba(0, 0, 0, .6), 0 30px 80px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0d; --bg-sunken: #111115; --card: #16161b; --card-2: #1c1c22;
  --text: #f5f5f7; --muted: #a8a8b0; --faint: #8e8e96;
  --line: #2a2a32; --line-strong: #3a3a44;
  --accent: #1a6cf0; --accent-hover: #2d7bff; --accent-soft: #10213f; --accent-text: #74abff; --on-accent: #ffffff;
  --ok: #4ad06a; --bad: #ff6b60;
  --band: #10182c; --band-text: #f5f7ff; --band-muted: #9aa8c8; --band-line: #263556;
  --sheet: #1f1f26; --sheet-line: #2e2e38; --guide: #59607a;
  --warn-bg: #3a2a0a; --warn-text: #ffd27a;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-m: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-l: 0 2px 6px rgba(0, 0, 0, .6), 0 30px 80px rgba(0, 0, 0, .6);
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
/* Скрытое остаётся скрытым: display у кнопок и панелей не должен перебивать атрибут hidden. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--t-base), color var(--t-base);
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.accent { color: var(--accent-text); }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; }

/* ── Шапка ───────────────────────────────────────────────────────────── */
header.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; flex: none; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; }
nav { margin-left: auto; display: flex; gap: 2px; align-items: center; min-width: 0; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 7px 10px; border-radius: 999px; white-space: nowrap; transition: color var(--t-fast), background var(--t-fast); }
nav a:hover { color: var(--text); background: var(--bg-sunken); text-decoration: none; }
nav a.on { color: var(--text); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tools { display: flex; align-items: center; gap: 10px; }
/* На узком ноутбуке меню главной не влезает: «Моя лицензия» остаётся в подвале и в вопросах. */
@media (min-width: 761px) and (max-width: 1240px) { nav a.nav-extra { display: none; } }

/* Язык сайта: «RU ▾» и список из 4 языков — без JS, на <details>. */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; min-width: 48px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.lang-menu[open] summary { background: var(--text); color: var(--bg); border-color: var(--text); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: flex; flex-direction: column; min-width: 170px; padding: 6px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-l); }
.lang-list a { padding: 9px 12px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: 15px; }
.lang-list a:hover { background: var(--bg-sunken); text-decoration: none; }
.lang-list a[aria-current] { color: var(--accent-text); }

/* Переключатель темы (его строит theme.js): три состояния в одной «таблетке». */
.theme-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-strong); }
.theme-switch button { display: grid; place-items: center; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.theme-switch button svg { width: 16px; height: 16px; display: block; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button:active { transform: scale(.92); }
.theme-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ── Кнопки: отклик на нажатие, а не по отпусканию ────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--text);
  font: inherit; font-weight: 700; font-size: 16px; white-space: nowrap; cursor: pointer;
  box-shadow: var(--shadow-m);
  transition: transform var(--t-fast), background var(--t-fast), opacity var(--t-fast);
}
.btn:hover { background: var(--card-2); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--faint); margin: 16px 0 0; }
.dots { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 14px; color: var(--muted); }
.dots span { display: inline-flex; align-items: center; gap: 7px; }
.dots span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-m); }
.chip b { background: var(--accent); color: var(--on-accent); font-size: 12px; border-radius: 999px; padding: 3px 9px; }
.tag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.tag.warn { background: var(--warn-bg); color: var(--warn-text); }

/* ── Заголовки разделов ─────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; }
.h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0; }
.sec { padding: 120px 0; }
.sec.tight { padding-top: 0; }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 56px; }

/* ── Первый экран ───────────────────────────────────────────────────── */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-art { flex: 1 1 560px; min-width: 0; }
.stage.hero-stage { transform: scale(.85); margin: -25.5px -28.5px; }

/* Окно CorelDRAW — рисунок, а не снимок экрана. */
.win { background: var(--card); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-l); overflow: hidden; }
.win-bar { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--card-2); font-size: 13px; color: var(--muted); }
.win-ctl { display: flex; gap: 16px; }
.win-ctl i { width: 11px; height: 11px; border: 1.5px solid var(--muted); display: block; }
.win-ctl i:first-child { height: 0; border-width: 1.5px 0 0; margin-top: 6px; }
.win-body { display: flex; }
.win-canvas { flex: 1; min-width: 0; background: var(--bg-sunken); padding: 16px; display: grid; place-items: center; }
.sheet { background: var(--sheet); border: 1px solid var(--sheet-line); border-radius: 4px; box-shadow: var(--shadow-m); padding: 12px; }
.win-docker { width: 184px; flex: none; border-left: 1px solid var(--line); padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; font-size: 12px; background: var(--card); }
.dk-title { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; }
.dk-label { font-weight: 700; margin-bottom: 6px; }
.dk-field { border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 9px; display: flex; justify-content: space-between; }
.dk-colors { display: flex; gap: 8px; }
.dk-colors .st { position: relative; width: 22px; height: 22px; }
.dk-sel { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent) !important; }
.dk-tabs { display: flex; background: var(--bg-sunken); border-radius: 9px; padding: 3px; gap: 2px; }
.dk-tabs span { flex: 1; text-align: center; padding: 5px 4px; border-radius: 7px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.dk-tabs .on { background: var(--card); color: var(--text); box-shadow: var(--shadow-m); }
.dk-count { display: flex; justify-content: space-between; color: var(--muted); }
.dk-count b { color: var(--text); }
.dk-go { background: var(--accent); color: var(--on-accent); border-radius: 8px; text-align: center; padding: 9px 0; font-weight: 700; font-size: 13px; animation: press 9s infinite; }

/* ── Камни ──────────────────────────────────────────────────────────── */
/* Сцена: камни внутри неё расставляет site.js; анимации идут, только пока сцена на экране (класс play). */
.stage { position: relative; margin: 0 auto; flex: none; }
.stage svg { position: absolute; inset: 0; overflow: visible; }
.stage:not(.play) .st, .stage:not(.play) .spark, .stage:not(.play) .draw, .stage:not(.play) .hole { animation-play-state: paused; }
/* Огранка как в логотипе: светлая площадка в центре и 8 граней вокруг. */
.st {
  position: absolute; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--c0) 0 36%, transparent 37%),
    conic-gradient(from 22.5deg, var(--c1) 0 12.5%, var(--c2) 0 25%, var(--c1) 0 37.5%, var(--c2) 0 50%, var(--c1) 0 62.5%, var(--c2) 0 75%, var(--c1) 0 87.5%, var(--c2) 0);
  box-shadow: inset 0 0 0 1px var(--rim), 0 1px 2px rgba(0, 0, 0, .28);
}
.k-cr { --c0: #f6f9ff; --c1: #dfe8f5; --c2: #9db0ca; --rim: #6c7d98; }
.k-sa { --c0: #d3e6ff; --c1: #5ea2ff; --c2: #1a55c2; --rim: #0f3a8a; }
.k-ru { --c0: #ffdcdf; --c1: #f2646e; --c2: #b31f2b; --rim: #6e0f17; }
.k-em { --c0: #d6f7e4; --c1: #40c682; --c2: #127a45; --rim: #0a4a2a; }
.k-go { --c0: #fff3c9; --c1: #f2c650; --c2: #b8861d; --rim: #6e4c0c; }
.pop { animation: pop 6s infinite both; }
.hpop { animation: hpop 9s infinite both; }
.spark { position: absolute; width: 16px; height: 16px; background: #ffffff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 2.6s infinite both; pointer-events: none; filter: drop-shadow(0 0 3px #ffffff); }
.hole { position: absolute; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--guide); animation: drill 6s infinite both; }
.guide { fill: none; stroke: var(--text); stroke-width: 2; }
.draw { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1300; animation: hdraw 9s infinite both; }
.selbox { position: absolute; border: 1.5px dashed var(--accent); }
.handle { position: absolute; width: 8px; height: 8px; background: var(--card); border: 1.5px solid var(--accent); }

@keyframes pop { 0% { transform: scale(0); opacity: 0; } 5% { transform: scale(1.3); opacity: 1; } 9%, 78% { transform: scale(1); opacity: 1; } 88%, 100% { transform: scale(0); opacity: 0; } }
@keyframes hpop { 0% { transform: scale(0); opacity: 0; } 3% { transform: scale(1.35); opacity: 1; } 6%, 70% { transform: scale(1); opacity: 1; } 77%, 100% { transform: scale(0); opacity: 0; } }
@keyframes hdraw { 0% { stroke-dashoffset: 1300; opacity: 1; } 18% { stroke-dashoffset: 0; opacity: 1; } 30%, 80% { stroke-dashoffset: 0; opacity: .25; } 88%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes press { 0%, 14% { transform: scale(1); } 16% { transform: scale(.92); } 19%, 100% { transform: scale(1); } }
@keyframes twinkle { 0%, 55%, 100% { transform: scale(0) rotate(0deg); opacity: 0; } 70% { transform: scale(1) rotate(45deg); opacity: 1; } 85% { transform: scale(.2) rotate(90deg); opacity: .6; } }
@keyframes drill { 0% { background: transparent; } 6%, 80% { background: var(--accent); border-color: var(--accent); } 90%, 100% { background: transparent; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes typing { 0% { width: 0; } 30%, 85% { width: 100%; } 95%, 100% { width: 0; } }
@keyframes keypress { 0%, 30% { transform: translateY(0); box-shadow: 0 4px 0 var(--line-strong); } 36%, 44% { transform: translateY(3px); box-shadow: 0 1px 0 var(--line-strong); } 50%, 100% { transform: translateY(0); box-shadow: 0 4px 0 var(--line-strong); } }

/* ── Бегущая строка ─────────────────────────────────────────────────── */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); overflow: hidden; }
.marquee-in { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.mq { display: inline-flex; align-items: center; gap: 14px; padding: 18px 22px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.mq .st { position: relative; width: 14px; height: 14px; flex: none; }

/* ── Карточки ───────────────────────────────────────────────────────── */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-m); padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card h3 { font-size: 21px; letter-spacing: -.015em; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.viz { background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--r-m); height: 176px; display: grid; place-items: center; overflow: hidden; margin-bottom: 8px; position: relative; }
.viz.tall { height: 260px; }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.step-title { display: flex; gap: 12px; align-items: center; }
.method { display: flex; flex-direction: column; gap: 14px; width: 250px; font-size: 13px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.sizes span { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-weight: 700; background: var(--card); }
.sizes .on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.method .dk-colors .st { width: 26px; height: 26px; }
.badge { position: absolute; right: 14px; bottom: 12px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow-m); }
.gcode { position: absolute; left: 166px; top: 30px; width: 124px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.75; }
.gcode span { display: block; overflow: hidden; white-space: nowrap; width: 0; animation: typing 6s steps(14) infinite both; }
.keys { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 22px; color: var(--muted); }
.key { min-width: 58px; height: 58px; padding: 0 16px; display: grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line-strong); color: var(--text); animation: keypress 3s infinite both; }

/* ── Цифры ──────────────────────────────────────────────────────────── */
.band { background: var(--band); color: var(--band-text); }
.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.band-item { padding: 48px 28px; border-left: 1px solid var(--band-line); display: flex; flex-direction: column; gap: 8px; }
.band-item:first-child { border-left: none; }
.band-item b { font-size: clamp(36px, 3.4vw, 50px); letter-spacing: -.04em; line-height: 1; font-weight: 800; white-space: nowrap; }
.band-item span { color: var(--band-muted); font-size: 16px; }

/* ── Работы ─────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile { margin: 0; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-m); overflow: hidden; display: flex; flex-direction: column; }
.tile-art { height: 300px; display: grid; place-items: center; background: #0d1120; border-bottom: 1px solid var(--line); }
.tile-art.white { background: #ffffff; }
.tile-art img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.tile-cap { padding: 16px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 10px; font-weight: 700; }
.tile-cap span:first-child { white-space: nowrap; }

/* ── Отзывы ─────────────────────────────────────────────────────────── */
.review { margin: 0; gap: 18px; }
.review-top { display: flex; justify-content: space-between; align-items: center; }
.stars { display: flex; gap: 5px; }
.stars .st { position: relative; width: 16px; height: 16px; }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 500; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: auto; font-size: 15px; }

/* ── Цены ───────────────────────────────────────────────────────────── */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.price { padding: 32px; gap: 18px; }
.price.main { border: 2px solid var(--accent); }
.price-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price-sum { font-size: 52px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price-sum small { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-sum.ask { font-size: 38px; }
.price-sub { color: var(--muted); font-size: 15px; margin: -8px 0 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.ticks li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; background: var(--accent-text); clip-path: polygon(14% 52%, 24% 42%, 40% 58%, 76% 22%, 86% 32%, 40% 78%); }
.price .btns { margin-top: auto; }
.price .btn { flex: 1; }

/* ── Как купить ─────────────────────────────────────────────────────── */
.path { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.path .card { gap: 14px; }
.path-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.path-ico svg { width: 24px; height: 24px; }
.path-top { display: flex; justify-content: space-between; align-items: center; }

/* ── Вопросы ────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 880px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; box-shadow: var(--shadow-m); }
.faq summary { cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: var(--muted); }

/* ── Финал ──────────────────────────────────────────────────────────── */
.cta { background: var(--band); color: var(--band-text); border-radius: var(--r-xl); padding: 72px 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; overflow: hidden; }
.cta .lead { color: var(--band-muted); }
.cta-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; }
.cta-art { flex: 1 1 260px; display: grid; place-items: center; }
.cta .btn:not(.primary) { background: var(--band); color: var(--band-text); border-color: var(--band-line); }

/* ── Подвал ─────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 48px 0 56px; margin-top: 120px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--muted); }
.foot-col a.logo { color: var(--text); }
.foot-col b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* ── Страницы с формами (Купить, Активация, Моя лицензия) ─────────────── */
section.block { padding: 64px 0 0; }
section.block h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 0 0 12px; }
section.block > .wrap > p.sub { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 62ch; }
form.panel, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; margin-bottom: 18px; box-shadow: var(--shadow-m); }
label.field { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
label.field input, label.field textarea, label.field select {
  display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 12px 14px;
  font-family: inherit; font-size: 16px; line-height: 1.4; color: var(--text);
  background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--r-s);
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
label.field input:hover, label.field textarea:hover, label.field select:hover { border-color: var(--line-strong); }
label.field input:focus, label.field textarea:focus, label.field select:focus { outline: none; background: var(--card); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
label.field textarea { min-height: 84px; resize: vertical; }
/* Ключ, код компьютера, код активации — моноширинным: так видно каждый символ. */
label.field input.mono, label.field textarea.mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; font-size: 15px; letter-spacing: .01em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 16px; color: var(--text); cursor: pointer; }
label.check input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
label.check small { display: block; margin-top: 2px; font-size: 14px; color: var(--faint); }
.msg { min-height: 24px; margin: 10px 0 0; font-size: 15px; }
table.pcs { width: 100%; border-collapse: collapse; font-size: 15px; }
table.pcs th, table.pcs td { text-align: left; padding: 11px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
table.pcs th { color: var(--faint); font-weight: 600; font-size: 13px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 4px 0 18px; }
.facts b { display: block; font-size: 13px; color: var(--faint); font-weight: 600; }

/* ── Появление разделов при прокрутке (Chrome, Edge, Safari 26+); где не умеет — всё видно сразу ── */
@supports (animation-timeline: view()) {
  .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
}
@keyframes rv { from { opacity: 0; transform: translateY(48px) scale(.97); } to { opacity: 1; transform: none; } }

/* ── Телефон ────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  header.top .wrap { flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; padding-bottom: 8px; min-height: 0; }
  .tools { margin-left: auto; }
  .tools .btn.small { display: none; }
  nav { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { font-size: 14px; padding: 6px 10px; }
  .sec { padding: 72px 0; }
  .sec.tight { padding-top: 0; }
  .hero { padding: 36px 0 56px; }
  .hero .wrap { gap: 36px; }
  .head { margin-bottom: 32px; }
  .win-docker { display: none; }
  .win-canvas { padding: 12px; }
  .sheet { padding: 6px; }
  .stage.hero-stage { transform: scale(.78); margin: -37px -42px; }
  .grid3, .gallery, .prices, .path { grid-template-columns: 1fr; }
  .band-item { padding: 28px 20px; border-left: none; border-top: 1px solid var(--band-line); }
  .band-item:first-child { border-top: none; }
  .cta { padding: 44px 22px; border-radius: 28px; }
  .btns .btn { width: 100%; }
  .price { padding: 26px; }
  .tile-art { height: 280px; }
  footer { margin-top: 72px; }
  .row2 { grid-template-columns: 1fr; }
  .panel, form.panel { padding: 20px; }
}
@media (max-width: 380px) {
  .stage.hero-stage { transform: scale(.7); margin: -51px -57px; }
}

/* ── Системные настройки доступности ────────────────────────────────── */
/* «Уменьшить движение»: камни стоят на местах, без анимаций и выездов. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .gcode span { width: auto; }
  .spark { display: none; }
  .draw { opacity: .25; }
}
/* «Повышенный контраст»: чёткие границы вместо мягких теней. */
@media (prefers-contrast: more) {
  :root { --line: #8a8a92; --line-strong: #5a5a62; --muted: #3a3a3c; --faint: #4a4a4e; }
  .card, .panel, form.panel, .faq details, .tile { box-shadow: none; border-color: var(--line-strong); }
  .btn { box-shadow: none; }
}

/* «Как это работает» — ролик из шагов плагина (public/demo.js) */
.demo { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.demo-steps li { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.demo-steps li b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-sunken); color: var(--muted); font-size: 13px; }
.demo-steps li.on { border-color: var(--accent); color: var(--text); box-shadow: var(--shadow-m); }
.demo-steps li.on b { background: var(--accent); color: var(--on-accent); }
.demo-steps li.done b { background: var(--accent-soft); color: var(--accent-text); }
.demo-canvas { position: relative; width: 100%; max-width: 420px; aspect-ratio: 300 / 220; background: var(--sheet); border: 1px solid var(--sheet-line); border-radius: 6px; }
.demo-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-line { fill: none; stroke: var(--guide); stroke-width: 1.6; }
.demo-stones .st { transform: scale(0); opacity: 0; transition: transform .18s, opacity .18s; }
.demo-stones .st.in { transform: scale(1); opacity: 1; }
.demo .dk-group { border-radius: 10px; padding: 4px; margin: -4px; transition: box-shadow .3s, background .3s; }
.demo .dk-group.hl { box-shadow: 0 0 0 2px var(--accent); background: var(--accent-soft); }
.demo .dk-tabs span { transition: background .3s, color .3s; }
.demo-go { animation: none; transition: transform .15s; }
.demo-go.press { transform: scale(.92); }
.demo-caption { margin: 14px 2px 0; min-height: 48px; color: var(--muted); font-size: 16px; }
.tile-art.photo { background: var(--bg-sunken); }
.tile-art.photo img { width: 100%; height: 100%; object-fit: cover; }

/* «Установка» — шаги с картинками */
.install { display: flex; flex-direction: column; gap: 20px; max-width: 980px; }
.install .card { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: center; }
.install .viz { margin: 0; height: auto; min-height: 220px; padding: 18px 0; }
.install ol { margin: 0; padding-left: 20px; color: var(--muted); }
.mock { width: 300px; max-width: 92%; background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-m); overflow: hidden; font-size: 12px; }
.mock-bar { padding: 7px 10px; border-bottom: 1px solid var(--line); background: var(--card-2); color: var(--muted); font-weight: 600; }
.mock-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mock-row { display: flex; gap: 8px; align-items: center; }
.mock-box { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--accent); background: var(--accent); flex: none; }
.mock-btn { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-radius: 7px; padding: 6px 14px; font-weight: 700; }
.mock-btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line-strong); align-self: stretch; text-align: center; }
.mock-btn.hl, .mock-tool.hl { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 5px var(--accent); }
.mock-field { border: 1px solid var(--line-strong); border-radius: 7px; padding: 6px 8px; color: var(--muted); font-family: ui-monospace, monospace; }
.mock-tools { display: flex; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mock-tool { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; }
.mock-tool .st { position: relative; width: 16px; height: 16px; }
.mock-file { display: flex; gap: 10px; align-items: center; padding: 12px 14px; font-family: ui-monospace, monospace; }
.mock-file b { font-size: 22px; color: var(--accent-text); }

@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; }
  .demo-steps { display: none; }
  .install .card { grid-template-columns: 1fr; }
}
