/* Сайт «Десятки» (часть 16) — в стиле приложения («Десятка ярче», miniapp/src/styles.css; владелец 06.10.2026:
   «сайт для нашего приложения в таком же стиле и шрифтами как и у нас»). Сине-серая палитра студии, тёмная тема по
   умолчанию и светлая по кнопке, шрифты Unbounded (заголовки) и Nunito (текст) — те же файлы, что в приложении,
   фон — тетрадная клетка и мягкий свет цветами инструментов. Яркое — наклейки: плитки инструментов, шапки страниц
   и главные кнопки цвета инструмента с тёмным контуром и тенью; остальное — спокойные карточки. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("fonts/nunito-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("fonts/nunito-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; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/unbounded-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; }

/* Палитры — как в приложении. Новый цвет — только переменной или color-mix от них */
:root {
  color-scheme: light;
  --bg: #ffffff;           /* карточки */
  --bg2: #f2f5f8;          /* фон страницы */
  --text: #202c43;
  --hint: #596980;
  --link: #285fca;
  --accent: #326cdb;
  --ok: #207c48;
  --stroke: #dde4ed;
  --gold: #c98a12;
  --soft-shadow: 0 4px 20px #23426b0d;
  --ink: #1a2438;          /* контур и тень наклеек */
  --on-tool: #10182b;      /* текст на цветной плашке — тёмный, читается на любом цвете инструмента */
  --bg-grid: #2f5f9a1c;
  --bg-glow: 30%;
  /* Цвета инструментов — KIND_INFO в miniapp/src/i18n.ts */
  --blue: #4f8cff;
  --pink: #ff6b8b;
  --orange: #f5b83d;
  --yellow: #f5b83d;
  --green: #3ecf8e;
  --purple: #a07cff;
  --cyan: #36c5d9;
  --band: var(--blue);     /* цвет страницы: шапка-плашка внутренних страниц (block band в шаблоне) */
  --wrap: 1180px;
  --display: "Unbounded", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .68, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #222e40;
  --bg2: #172130;
  --text: #e8edf6;
  --hint: #b0bdcf;
  --link: #86aefc;
  --accent: #3570d9;
  --ok: #5bd08f;
  --stroke: #354256;
  --gold: #f5c04f;
  --soft-shadow: 0 5px 20px #0713221c;
  --ink: #0b1322;
  --bg-grid: #ffffff10;
  --bg-glow: 26%;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html, body { margin: 0; background: var(--bg2); color: var(--text); }
body { font: 500 16.5px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; isolation: isolate; }
img { max-width: 100%; height: auto; display: block; }
/* «Скрыто» сильнее любого display: у бесплатного тарифа .price { display: flex } показывал все шесть цен разом */
[hidden] { display: none !important; }
a { color: var(--link); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 14px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 56px); margin: 0 auto; padding: 0 28px; }

/* Фон: клетка у верха и свет цветами инструментов — стоят на месте при прокрутке, как в приложении.
   Карточки непрозрачные — клетка и свет видны только в просветах */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(140% 60% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(140% 60% at 50% 0%, #000 30%, transparent 100%);
}
body::after {
  background:
    radial-gradient(45% 30% at 0% 4%, color-mix(in srgb, var(--blue) var(--bg-glow), transparent), transparent 70%),
    radial-gradient(40% 28% at 100% 10%, color-mix(in srgb, var(--pink) var(--bg-glow), transparent), transparent 70%),
    radial-gradient(50% 26% at 100% 64%, color-mix(in srgb, var(--purple) calc(var(--bg-glow) * .7), transparent), transparent 70%),
    radial-gradient(50% 26% at 0% 92%, color-mix(in srgb, var(--green) calc(var(--bg-glow) * .6), transparent), transparent 70%);
}

/* ---------- Типографика: заголовки — Unbounded (он широкий — размеры меньше обычных) ---------- */
.h1, .h2, .h3, .h-xl { font-family: var(--display); letter-spacing: -.035em; text-wrap: balance; }
.h1 { font-size: clamp(31px, 5.4vw, 60px); font-weight: 700; line-height: 1.06; }
.h-xl { font-size: clamp(30px, 5.4vw, 62px); font-weight: 700; line-height: 1.06; letter-spacing: -.04em; }
.h2 { font-size: clamp(25px, 3.8vw, 44px); font-weight: 700; line-height: 1.1; }
.h3 { font-size: clamp(19px, 1.9vw, 24px); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; }
.lead { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: var(--hint); }
.muted { color: var(--hint); }
.center { text-align: center; }
.small { font-size: 14px; }
.link { font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-thickness: 2.5px; }

/* ---------- Кнопки: главная — наклейкой, как «Создать …» в приложении ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 0 24px;
  border: 2px solid var(--ink); border-radius: 16px; background: var(--accent); color: #fff; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink); font: 600 15px/1.15 var(--display); letter-spacing: -.2px; text-decoration: none;
  white-space: nowrap; transition: transform .14s var(--ease), box-shadow .14s var(--ease), background-color .14s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-wide { min-width: 280px; }

/* Спокойная кнопка — карточкой, без контура */
.btn-line { color: var(--text); background: var(--bg); border: 1px solid var(--stroke); box-shadow: var(--soft-shadow); }
.btn-line:hover { transform: none; box-shadow: var(--soft-shadow); border-color: color-mix(in srgb, var(--link) 55%, var(--stroke)); }
.btn-line:active { transform: scale(.98); box-shadow: var(--soft-shadow); }
.btn-sm { min-height: 44px; padding: 0 16px; border-radius: 14px; font-size: 13.5px; gap: 7px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns.center { justify-content: center; }
.round-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); background: var(--bg); color: var(--text); }
.round-btn:hover { border-color: color-mix(in srgb, var(--link) 50%, var(--stroke)); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* ---------- Полоса акции ---------- */
.promo { position: relative; background: color-mix(in srgb, var(--orange) 16%, var(--bg2));
  border-bottom: 1px solid color-mix(in srgb, var(--orange) 35%, var(--stroke)); }
.promo .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding-top: 8px;
  padding-bottom: 8px; font: 700 14.5px/1.35 var(--body); text-align: center; }
.promo svg { color: color-mix(in srgb, var(--orange) 80%, var(--text)); flex: none; }
.promo a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.promo-close { position: absolute; right: 14px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 34px;
  height: 34px; border: 0; border-radius: 50%; background: none; color: var(--hint); cursor: pointer; }
.promo-close:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.promo-hidden .promo { display: none; }

/* ---------- Шапка: как в студии — «10», название, круглые кнопки ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg2) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--stroke) 70%, transparent); }
.header-row { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); text-decoration: none; }
.brand-ten { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 13px; color: #fff;
  background: var(--accent); font: 700 15px/1 var(--display); letter-spacing: -.5px; }
.brand-name { font: 600 19px/1.1 var(--display); letter-spacing: -.4px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 9px 14px; border-radius: 999px; color: var(--hint); font: 700 15px/1 var(--body); text-decoration: none;
  transition: color .14s, background-color .14s; }
.nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.nav a[aria-current="page"] { color: #fff; background: var(--accent); box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent); }
.nav .nav-cta { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.menu-btn .x { display: none; }
.menu-open .menu-btn .x { display: block; }
.menu-open .menu-btn .bars { display: none; }

/* ---------- Первый экран ---------- */
.hero { padding: 56px 0 40px; }
.hero .h1 { max-width: 13ch; }
.hero .lead { margin-top: 20px; max-width: 36ch; }
.hero .btns { margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font: 700 15px/1.4 var(--body); }
.hero-note svg { flex: none; color: var(--ok); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; font: 800 12px/1.2 var(--body);
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--link); }
.hero h1 em, .h-xl em, .h2 em { font-style: normal; color: var(--link); }

/* Внутренние страницы: шапка — плашка цвета страницы (как шапка формы в приложении), значок в белом круге */
.plate { position: relative; overflow: hidden; padding: 44px 44px 48px; border-radius: 30px; background: var(--band); color: var(--on-tool);
  border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.plate::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#ffffff26 1px, transparent 1px), linear-gradient(90deg, #ffffff26 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%); mask-image: linear-gradient(120deg, #000, transparent 70%); }
.plate > * { position: relative; }
.plate .lead { color: color-mix(in srgb, var(--on-tool) 82%, transparent); font-weight: 600; }
.plate .hero-note svg { color: var(--on-tool); }
.plate-ic { position: absolute; right: 26px; top: 26px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; color: var(--on-tool); }
.plate .btns { margin-top: 28px; }

/* В шапке-плашке заголовок шире и чуть меньше: Unbounded широкий, длинная фраза иначе занимает пять строк */
.plate .h1 { max-width: 16ch; font-size: clamp(30px, 4.4vw, 52px); }

/* С картинкой справа значок — над заголовком, а не в углу */
.plate.center { text-align: center; padding: 56px 28px 60px; }
.plate.center .h1 { margin: 0 auto; max-width: 16ch; }
.plate.center .lead { margin: 18px auto 0; max-width: 46ch; }
.plate.center .btns { justify-content: center; }
.plate.center .hero-note { justify-content: center; }
.hero.center-hero .h1, .hero.center-hero .lead { margin-left: auto; margin-right: auto; }

/* ---------- Плитки инструментов — наклейки, как в студии приложения ---------- */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat { --tool: var(--blue); position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 0;
  min-height: 200px; padding: 20px; border-radius: 22px; background: var(--tool); color: var(--on-tool); text-decoration: none;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
a.cat:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
a.cat:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.cat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cat-ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--on-tool); }
.cat .chev { flex: none; opacity: .7; transition: transform .2s var(--ease); }
a.cat:hover .chev { transform: translate(2px, -2px); }
.cat .t b { display: block; font: 600 clamp(17px, 1.7vw, 21px)/1.15 var(--display); letter-spacing: -.4px; overflow-wrap: break-word; }
.cat .t span { display: block; margin-top: 5px; font: 700 14px/1.4 var(--body); color: color-mix(in srgb, var(--on-tool) 80%, transparent); }
.cat-big { grid-row: span 2; }
.cat-big .t b { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.8px; }
.cat-wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; }
.cat-wide .cat-top { display: contents; }
.cat-wide .t { flex: 1; min-width: 0; order: 2; }
.cat-wide .cat-ic { order: 1; }
.cat-wide .chev { order: 3; }

/* Пример в большой плитке — вопрос квиза, как на главной приложения */
.tool-sample { --dot: 15px; display: flex; flex-direction: column; gap: 6px; padding: 13px 14px; border-radius: 15px; background: #fff;
  color: var(--on-tool); border: 2px solid var(--ink); }
.tool-sample b { margin-bottom: 3px; font: 800 13.5px/1.3 var(--body); }
/* Квиз и «Ход урока» стоят рядом и должны быть одного размера: заголовок резервирует две строки (вопрос квиза переносится,
   «Ход урока» — нет), а строка не ниже кружка с контуром, даже когда кружка нет (у плана он скрыт) */
.tool-sample-quiz b, .tool-sample-plan b { min-height: 2.6em; }
.tool-sample i { display: flex; align-items: center; gap: 9px; min-height: calc(var(--dot) + 4px); font: 700 13.5px/1.2 var(--body); font-style: normal; }
.tool-sample i::before { content: ""; flex: none; width: var(--dot); height: var(--dot); border-radius: 50%; border: 2px solid color-mix(in srgb, var(--on-tool) 35%, transparent); }
.tool-sample i.on::before { border-color: var(--on-tool); background: radial-gradient(var(--on-tool) 0 3px, #fff 3.5px); }
/* Решение по фото и план подготовки — клетки-квадраты, сделанное закрашено (как SolveSample и PrepSample в приложении) */
.tool-sample-solve i::before, .tool-sample-prep i::before { border-radius: 4px; }
.tool-sample-solve i.on::before, .tool-sample-prep i.on::before { background: var(--on-tool); }
.tool-sample-solve b { font-size: 15px; letter-spacing: -.2px; }
/* Ход урока: этап и минуты; текущий этап — минуты плашкой цвета плитки, без кружков */
.tool-sample-plan i { justify-content: space-between; gap: 6px; }
.tool-sample-plan i::before { display: none; }
.tool-sample-plan span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-sample-plan u { flex: none; min-width: 24px; padding: 1px 6px; border-radius: 999px; text-align: center; text-decoration: none;
  background: color-mix(in srgb, var(--on-tool) 9%, transparent); font-size: 12px; font-weight: 800; }
.tool-sample-plan i.on u { background: var(--tool); }
.tool-sample-prep { overflow: hidden; }
.tool-sample-prep i { white-space: nowrap; }
/* «новое» торчит над верхним краем плитки — как в студии приложения (LessonPlan.css) */
.cat-badge { position: absolute; top: -10px; right: 14px; padding: 2px 9px; border-radius: 999px; background: #f5c542; color: #3a2a00;
  border: 2px solid var(--ink); font: 800 11.5px/1.3 var(--body); font-style: normal; letter-spacing: .2px; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--stroke);
  background: var(--bg); color: var(--text); font: 700 15px/1 var(--body); text-decoration: none; box-shadow: var(--soft-shadow); }
.more svg { color: var(--link); }
.more:hover { border-color: color-mix(in srgb, var(--link) 55%, var(--stroke)); }

/* ---------- Разделы ---------- */
.section { padding: 96px 0; }
.section.soft { background: color-mix(in srgb, var(--bg) 42%, transparent); border-block: 1px solid color-mix(in srgb, var(--stroke) 60%, transparent); }
.head { max-width: 860px; margin-bottom: 40px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head .lead { margin-top: 16px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--stroke); font: 700 14px/1 var(--body); color: var(--text); }
.kicker .ico { width: 34px; height: 34px; }

/* Значок в мягком круге цвета инструмента — как в строках приложения */
.ico { --c: var(--blue); display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, var(--bg)); color: color-mix(in srgb, var(--c) 72%, var(--text)); }

/* Как это работает: карточки с цифрой-наклейкой */
.num { --c: var(--blue); display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--c);
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font: 700 19px/1 var(--display); color: var(--on-tool); }

/* Крупная фраза на плашке цвета инструмента */
.band { padding: 24px 0; }
.band-plate { --c: var(--yellow); position: relative; overflow: hidden; padding: 64px 32px 68px; border-radius: 30px; text-align: center;
  background: var(--c); color: var(--on-tool); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.band-plate::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#ffffff2e 1px, transparent 1px), linear-gradient(90deg, #ffffff2e 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, transparent 30%, #000); mask-image: radial-gradient(70% 90% at 50% 50%, transparent 30%, #000); }
.band-plate > * { position: relative; }
.band .h-xl { max-width: 18ch; margin: 0 auto; }
.band p { margin: 20px auto 0; max-width: 54ch; font: 600 clamp(16px, 1.35vw, 19px)/1.55 var(--body); color: color-mix(in srgb, var(--on-tool) 82%, transparent); }
.band .btns { margin-top: 30px; justify-content: center; }

/* Карточка «картинка + цветная половина» */
.split { --c: var(--green); display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); border-radius: 30px;
  overflow: hidden; background: var(--bg); box-shadow: 5px 5px 0 var(--ink); }
.split .pic { position: relative; display: grid; place-items: center; min-height: 600px; padding: 56px 32px; overflow: hidden;
  background-color: color-mix(in srgb, var(--c) 14%, var(--bg));
  background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px); background-size: 22px 22px; }
.split .body { display: flex; flex-direction: column; justify-content: center; padding: 64px 56px; background: var(--c); color: var(--on-tool);
  border-left: 2px solid var(--ink); }
.split .body .lead { margin-top: 18px; color: color-mix(in srgb, var(--on-tool) 82%, transparent); font-weight: 600; }
.split .h-xl { font-size: clamp(28px, 3.8vw, 50px); }
.split .body .btn { margin-top: 32px; width: 100%; }
.split .body .link { margin-top: 18px; align-self: center; color: var(--on-tool); }
.split .steps li > div > span { color: var(--hint); }

/* ---------- Витрина презентации: окно «Вулканы.pptx», как в программе (макет site-samples-20261006/витрина.html) ---------- */
.pres { --thumb: 150px; }
.pres-compact { --thumb: 112px; }
.win { border-radius: 24px; overflow: hidden; background: var(--bg); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.win-bar { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px; border-bottom: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--text) 5%, var(--bg)); }
.win-dots { display: flex; gap: 7px; flex: none; }
.win-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--pink); }
.win-dots i:nth-child(2) { background: var(--yellow); }
.win-dots i:nth-child(3) { background: var(--green); }
.win-title { display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 14px/1 var(--display); letter-spacing: -.2px; white-space: nowrap; }
.win-title span { overflow: hidden; text-overflow: ellipsis; }
/* Имя файла: на узком экране сокращается только имя, «.pdf» остаётся целым (было «Квиз «Вулканы»....», 15.10.2026) */
.win-title .win-name { display: flex; min-width: 0; }
.win-title .win-ext { flex: none; overflow: visible; }
.win-title svg { flex: none; color: var(--pink); }
.win-chips { margin-left: auto; display: flex; gap: 6px; }
.wchip { padding: 6px 10px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--stroke); font: 800 12px/1 var(--body); white-space: nowrap; }
.win-body { display: grid; grid-template-columns: var(--thumb) minmax(0, 1fr); gap: 16px; padding: 16px; background-color: var(--bg2);
  background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px); background-size: 22px 22px; }
.win-thumbs { display: grid; gap: 10px; align-content: start; }
.win-th { display: block; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--ink) 40%, var(--stroke)); transition: outline-color .15s; outline: 3px solid transparent; outline-offset: 2px; }
.win-th:hover { outline-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.win-th[aria-pressed="true"] { outline-color: var(--accent); border-color: var(--ink); }
.win-th img, .win-slide img { width: 100%; display: block; }
.pres-compact .win-th:nth-child(n+5) { display: none; }
.win-slide { border-radius: 12px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); background: #232327; aspect-ratio: 16 / 9; }
.win-notes { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--bg);
  border: 1px solid var(--stroke); font: 600 14px/1.45 var(--body); }
.win-notes b { flex: none; font: 800 11px/1.75 var(--body); text-transform: uppercase; letter-spacing: 1.2px; color: var(--hint); }
.credit { margin-top: 12px; font: 600 12.5px/1.4 var(--body); color: var(--hint); text-align: right; }

/* ---------- Лист в окне, как презентация: слева страницы файла, справа страница целиком (макет site-sheets-20261006) ---------- */
.doc { --thumb: 92px; --page: 430px; }
.doc.pres-compact { --thumb: 80px; --page: 380px; }
.doc .win-title svg { color: var(--c); }
.doc-thumbs { display: grid; gap: 12px; align-content: start; }
.doc-th { display: grid; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--hint); font: 800 11px/1.2 var(--body); text-align: center; }
.doc-th .pg { display: block; border-radius: 4px; overflow: hidden; background: #fff; border: 1.5px solid color-mix(in srgb, var(--ink) 40%, var(--stroke));
  outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.doc-th:hover .pg { outline-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.doc-th[aria-pressed="true"] { color: var(--text); }
.doc-th[aria-pressed="true"] .pg { outline-color: var(--accent); border-color: var(--ink); }
.doc-th img, .doc-page img { width: 100%; display: block; }
.doc-main { display: grid; justify-items: center; align-content: start; }
.doc-page { display: block; width: min(100%, var(--page)); border-radius: 6px; overflow: hidden; background: #fff; border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); cursor: zoom-in; }
.doc-page.land { width: 100%; }
.doc .win-notes { width: 100%; }

/* ---------- Витрина решения по фото: большое фото учебника с рамкой и поверх края — карточка с решением ---------- */
/* Фото и карточка в одной клетке сетки внахлёст: высота блока — по самой высокой части, ничего не вылезает */
.solve-show { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.solve-photo { grid-column: 1 / 10; grid-row: 1; }
.solve-card { grid-column: 7 / 13; grid-row: 1; margin-top: 70px; z-index: 2; }
.tagline { --c: var(--blue); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--c); color: var(--on-tool); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font: 600 14px/1 var(--display); letter-spacing: -.2px; }
.tagline i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--ink);
  font: 700 12px/1 var(--display); font-style: normal; }
.photo-card { position: relative; border-radius: 22px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); background: #8e9bab; }
.photo-card picture, .photo-card img { width: 100%; display: block; }

/* Рамка ровно вокруг задачи 312: проценты считает site_images.py по учебник-сайт.html (фото без наклона) */
.crop-frame { position: absolute; left: 7.33%; top: 52.27%; width: 51.17%; height: 10.76%; border: 3px solid #4f8cff; border-radius: 8px;
  box-shadow: 0 0 0 999px #0b132240; }
.crop-frame::before, .crop-frame::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 5px; background: #326cdb; border: 2px solid #fff; }
.crop-frame::before { left: -9px; top: -9px; }
.crop-frame::after { right: -9px; bottom: -9px; }
.sol { padding: 18px; border-radius: 22px; background: var(--bg); color: var(--text); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.sol-task { font: 700 16px/1.5 var(--body); }
.nw { white-space: nowrap; }
.fr { display: inline-grid; vertical-align: middle; text-align: center; margin: 0 2px; font: italic 400 21px/1.05 "Times New Roman", Times, serif; }
.fr span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 3px; }
.sol-hint { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--yellow) 12%, var(--bg2)); border-left: 4px solid var(--yellow); }
.sol-hint b { display: flex; align-items: center; gap: 6px; font: 600 14px/1.2 var(--display); color: var(--gold); }
.sol-hint p { margin: 5px 0 0; font: 700 15px/1.4 var(--body); }
.sol-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.sol-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--bg2); }
.sol-steps i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 30%, var(--bg));
  color: var(--link); font: 700 12px/1 var(--display); font-style: normal; }
.sol-steps small { font: 700 14px/1.35 var(--body); color: var(--hint); }
.sol .math { font: italic 400 22px/1 "Times New Roman", Times, serif; white-space: nowrap; }
.sol-answer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; font: 600 16px/1 var(--display);
  background: color-mix(in srgb, var(--green) 18%, var(--bg)); color: var(--ok); }
.sol-answer .ok { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--on-tool); }
.sol-answer .math { font-size: 24px; color: var(--text); }
.sol-answer small { margin-left: auto; white-space: nowrap; font: 700 13px/1 var(--body); color: var(--hint); }

/* Главная, блок «Ученикам»: фото с решением — шире, текст — уже */
.split .pic > .solve-show { width: 100%; }

/* Раскладка решения — по ширине самого блока, а не экрана (владелец 06.10.2026: слова не должны рваться и наезжать):
   хватает места — фото и карточка внахлёст, узко (колонка, телефон) — фото, под ним карточка; узкая карточка — мельче
   дроби и отступы, подпись шага не наезжает на дробь */
.solve-show, .sol { container-type: inline-size; }
@container (max-width: 639px) {
  .solve-photo, .solve-card { grid-column: 1 / -1; grid-row: auto; }
  .solve-card { margin-top: 18px; }
}
@container (max-width: 340px) {
  .sol-steps li { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; }
  .sol-steps i { width: 26px; height: 26px; }
  .sol-steps small { font-size: 13px; }
  .sol .math { font-size: 19px; }
  .sol .fr { font-size: 18px; }
}
@container (max-width: 270px) {
  .sol-steps li { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px; padding: 8px; }
  .sol-steps i { width: 22px; height: 22px; font-size: 11px; }
  .sol-steps small { font-size: 12px; }
  .sol .math { font-size: 16px; }
  .sol .fr { font-size: 15.5px; }
}

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font: 600 16px/1.45 var(--body); }
.ticks .ok { flex: none; display: grid; place-items: center; width: 23px; height: 23px; margin-top: 1px; border-radius: 50%;
  background: var(--green); color: var(--on-tool); }
.ticks li.off { color: var(--hint); }
.ticks li.off .ok { background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--hint); }

/* Плитки-карточки (инструменты ученика, источники, способы оплаты) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tiles.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }  /* «Как оплатить»: карта и звёзды */
.tile { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--stroke); border-radius: 22px; background: var(--bg);
  box-shadow: var(--soft-shadow); }
.tile b { font: 600 clamp(17px, 1.5vw, 20px)/1.2 var(--display); letter-spacing: -.4px; }
.tile span { font: 500 15px/1.5 var(--body); color: var(--hint); }

/* Шаги — нумерованный список */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.steps li > div > b { display: block; font: 600 18px/1.25 var(--display); letter-spacing: -.3px; }
.steps li > div > span { display: block; margin-top: 3px; font: 500 15px/1.5 var(--body); color: var(--hint); }

/* ---------- Цены ---------- */
.switches { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 36px; }
/* Кнопки в полоске — одной ширины (по самой длинной): выбранная «₽» не сжимается в квадратик */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; border: 1px solid var(--stroke);
  border-radius: 16px; background: var(--bg); box-shadow: var(--soft-shadow); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 12px;
  background: none; cursor: pointer; color: var(--hint); font: 700 15px/1 var(--body); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent); }
.seg .save { padding: 4px 7px; border-radius: 999px; background: var(--green); color: var(--on-tool); font-size: 12px; font-weight: 800; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border: 1px solid var(--stroke);
  border-radius: 26px; background: var(--bg); box-shadow: var(--soft-shadow); }
.plan.best { border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  background: linear-gradient(150deg, color-mix(in srgb, var(--orange) 14%, var(--bg)), color-mix(in srgb, var(--purple) 16%, var(--bg))); }
.plan-badge { position: absolute; top: -16px; left: 24px; padding: 7px 13px; border-radius: 999px; background: var(--purple); color: var(--on-tool);
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font: 600 12.5px/1 var(--display); letter-spacing: -.2px; }
.plan .h3 { font-size: clamp(22px, 2vw, 27px); }
.plan .note { margin-top: 8px; min-height: 46px; font: 500 15px/1.45 var(--body); color: var(--hint); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 20px; }
.price .amount { font: 700 clamp(38px, 3.6vw, 48px)/1 var(--display); letter-spacing: -.05em; }
.price .unit { font: 600 19px/1 var(--display); }
.price .unit svg { vertical-align: -3px; color: var(--gold); }
.price .per { font: 600 15px/1 var(--body); color: var(--hint); }
.price .old { font: 600 15px/1 var(--body); color: var(--hint); text-decoration: line-through; }
.price-sub { margin-top: 10px; min-height: 22px; font: 600 14.5px/1.4 var(--body); color: var(--hint); }
.price-sub .save { color: var(--ok); font-weight: 800; }
.plan .ticks { margin: 22px 0 28px; gap: 10px; }
.plan .ticks li { font-size: 15.5px; }
.plan .btn { margin-top: auto; width: 100%; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--stroke); border-radius: 22px; background: var(--bg); box-shadow: var(--soft-shadow); }
.compare { width: 100%; border-collapse: collapse; font: 600 15.5px/1.35 var(--body); }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--stroke); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font: 600 18px/1.1 var(--display); letter-spacing: -.3px; background: color-mix(in srgb, var(--text) 4%, var(--bg)); }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare td:first-child { font-weight: 700; }
.compare small { font-weight: 600; }
.compare .free-cell b { display: block; font: 700 16px/1.3 var(--body); }
.compare .free-cell small { display: block; max-width: 22ch; margin: 6px auto 0; font: 600 13.5px/1.4 var(--body); color: var(--hint); }
.yesno { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.yesno.yes { background: var(--green); color: var(--on-tool); }
.yesno.no { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--hint); }

/* ---------- Вопросы ---------- */
/* minmax(0, 1fr): у колонки без размера нижняя граница — самое длинное слово, на 280 px «Вопросы» ехали вбок на 17 px */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 900px; text-align: left; }
.faq.center { margin: 0 auto; }
.faq details { border: 1px solid var(--stroke); border-radius: 20px; background: var(--bg); box-shadow: var(--soft-shadow); transition: border-color .15s; }
.faq details[open] { border-color: color-mix(in srgb, var(--link) 50%, var(--stroke)); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 22px;
  font: 600 clamp(15.5px, 1.3vw, 17.5px)/1.35 var(--display); letter-spacing: -.3px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--link); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 22px; font: 500 16px/1.6 var(--body); color: color-mix(in srgb, var(--text) 82%, transparent); max-width: 75ch; }
.faq .answer a { font-weight: 700; }
/* «Помощь»: колонка вопросов по центру под центрованной плашкой, как на главной и в ценах */
.faq-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 52px; max-width: 900px; margin: 0 auto; }
.faq-group .h3 { margin-bottom: 18px; }

/* ---------- Образцы ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.tab { --c: var(--blue); display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border: 1px solid var(--stroke);
  border-radius: 999px; background: var(--bg); color: var(--text); cursor: pointer; font: 700 15px/1 var(--body); box-shadow: var(--soft-shadow); }
.tab:hover { border-color: color-mix(in srgb, var(--link) 55%, var(--stroke)); }
.tab .sq { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab[aria-selected="true"] .sq { box-shadow: 0 0 0 2px #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 34px 22px; }
.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.gallery-panel[hidden] { display: none; }
.gallery-group > .lead { margin: 12px 0 34px; }
.sample { display: block; color: var(--text); text-decoration: none; cursor: zoom-in; background: none; border: 0; padding: 0; text-align: left; }
.sample .paper { border-radius: 8px; overflow: hidden; background: #fff; border: 2px solid color-mix(in srgb, var(--ink) 25%, var(--stroke));
  transition: border-color .2s, box-shadow .2s var(--ease), transform .2s var(--ease); }
.sample:hover .paper { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.sample b { display: block; margin-top: 12px; font: 600 15.5px/1.25 var(--display); letter-spacing: -.3px; overflow-wrap: anywhere; }
.sample .hint { display: block; margin-top: 4px; font: 600 14px/1.4 var(--body); color: var(--hint); }
.styles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.style-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--stroke); box-shadow: var(--soft-shadow); }
.style-card figcaption { margin-top: 11px; font: 600 15.5px/1.25 var(--display); letter-spacing: -.3px; overflow-wrap: anywhere; }
.style-card figcaption span { display: block; margin-top: 3px; font: 600 14px/1.4 var(--body); color: var(--hint); letter-spacing: 0; }
.lightbox { width: min(980px, 94vw); max-height: 94vh; padding: 0; border: 2px solid var(--ink); border-radius: 26px; background: var(--bg);
  color: var(--text); overflow: hidden; box-shadow: 6px 6px 0 var(--ink), 0 40px 100px #0a101e80; }
.lightbox::backdrop { background: #0a101eb8; }
.lightbox-body { display: grid; grid-template-rows: auto 1fr; max-height: 94vh; }
.lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--stroke); }
.lightbox-head b { font: 600 18px/1.2 var(--display); letter-spacing: -.3px; }
.lightbox-head span { margin-left: 10px; font: 600 14px/1.3 var(--body); color: var(--hint); }
.lightbox-img { overflow: auto; padding: 22px; background: var(--bg2); display: grid; place-items: start center; }
.lightbox-img img { max-width: 100%; border-radius: 8px; background: #fff; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg2); cursor: pointer; color: var(--text); }
.icon-btn:hover { background: color-mix(in srgb, var(--text) 10%, var(--bg2)); }

/* ---------- Призыв внизу: синяя плашка-наклейка, с компьютера — QR-код ---------- */
.cta { padding: 40px 0 96px; }
.cta-grid { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center;
  padding: 52px 52px; border-radius: 30px; background: var(--accent); color: #fff; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.cta-grid::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#ffffff17 1px, transparent 1px), linear-gradient(90deg, #ffffff17 1px, transparent 1px); background-size: 22px 22px; }
.cta-grid > * { position: relative; }
.cta .lead { margin-top: 16px; max-width: 46ch; color: #ffffffd9; font-weight: 600; }
.cta .btns { margin-top: 28px; }
.cta .btn { background: #fff; color: var(--on-tool); }
.qr-card { display: grid; justify-items: center; gap: 12px; padding: 18px 18px 14px; border: 2px solid var(--ink); border-radius: 22px;
  background: #fff; color: var(--on-tool); box-shadow: 3px 3px 0 var(--ink); }
.qr-card .qr-svg { width: 156px; height: 156px; display: block; }
.qr-card span { max-width: 170px; text-align: center; font: 700 13.5px/1.3 var(--body); }

/* ---------- Подвал ---------- */
.site-footer { position: relative; padding: 64px 0 36px; background: var(--bg); border-top: 1px solid var(--stroke); }
.to-top { position: absolute; right: 28px; top: -24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; text-decoration: none; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.to-top:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

/* 404 */
.notfound .h-xl { font-size: clamp(96px, 18vw, 200px); line-height: 1; }

/* Появление при прокрутке */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .5s var(--ease), translate .5s var(--ease); }
.js .reveal.in-view { opacity: 1; translate: 0 0; }

/* ---------- Главная — простая (владелец 06.10.2026: «не перегружен… чтобы новый пользователь легко понял функции и в
   студии начал работать»; макет output/design/site-simple-20261006/) ---------- */
.s-hero { padding: 44px 0 56px; }
.s-head { max-width: 780px; margin: 0 auto; text-align: center; }
.s-head .h1 { max-width: none; }
.s-head .lead { margin: 16px auto 0; max-width: 58ch; }

/* Студия — карточка, как главная приложения: «10 Студия», переключатель «Учителю / Ученику», плитки */
.studio { container-type: inline-size; max-width: 880px; margin: 34px auto 0; padding: 22px; border-radius: 30px; background: var(--bg);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.studio-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.studio-name { display: flex; align-items: center; gap: 12px; }
.studio-name b { display: block; font: 700 26px/1 var(--display); letter-spacing: -.8px; }
.studio-name small { display: block; margin-top: 4px; font: 600 14px/1.2 var(--body); color: var(--hint); }
.role-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--stroke); }
.role-seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: none;
  color: var(--hint); font: 700 15px/1 var(--body); cursor: pointer; }
.role-seg button[aria-selected="true"] { background: var(--accent); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent); }

/* Какая студия открыта — <html data-role> (base.html, site.js); без скрипта видны обе подряд */
:root[data-role="t"] .studio [data-role-panel="s"], :root[data-role="s"] .studio [data-role-panel="t"] { display: none; }
.studio .cats + .cats { margin-top: 12px; }
.tool-sample .eq { font: 700 15px/1.2 var(--body); }
.tool-sample em { font-family: "Times New Roman", Times, serif; font-style: italic; font-size: 1.12em; }
.studio-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font: 700 14.5px/1.35 var(--body); color: var(--hint); text-align: center; }
.studio-hint svg { flex: none; color: var(--link); }
.s-cta { margin-top: 30px; }
.s-note { justify-content: center; }

/* Широкая студия (компьютер, планшет): три колонки вместо двух. Порядок плиток в разметке — как в приложении; здесь
   вторая высокая плитка («План урока», «План подготовки») встаёт в правую колонку, нижний ряд — три обычные плитки */
@container (min-width: 640px) {
  .studio .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .studio .cat:nth-child(1) { order: 1; }
  .studio .cat:nth-child(2) { order: 2; }
  .studio .cat:nth-child(5) { order: 3; }
  .studio .cat:nth-child(3) { order: 4; }
  .studio .cat:nth-child(4) { order: 5; }
  .studio .cat:nth-child(6) { order: 6; }
  .studio .cat:nth-child(7) { order: 7; }
  .studio .cat.cat-wide { grid-column: auto; min-height: 200px; flex-direction: column; align-items: stretch; }
  .studio .cat-wide .cat-top { display: flex; }
  .studio .cat-wide .t, .studio .cat-wide .cat-ic, .studio .cat-wide .chev { order: 0; }
  .studio .cat-wide .t { flex: none; }
}
/* «подготовки» — длинное слово: у плитки плана подготовки заголовок мельче, чтобы слово не рвалось */
.cat[data-tool="prep"] .t b { font-size: clamp(22px, 2.3vw, 28px); }

/* Плитки — по ширине самой студии, а не экрана: «Презентация» и «Фудзияма» не рвутся и не вылезают */
@container (max-width: 400px) {
  .studio .cat { padding: 13px; }
  .studio .cat .t b { font-size: 14px; letter-spacing: -.4px; }
  .studio .cat-big .t b { font-size: 20px; }
  .studio .cat[data-tool="prep"] .t b { font-size: clamp(12px, 4.7cqw, 18px); }
  .studio .tool-sample { padding: 9px 10px; }
  .studio .tool-sample b, .studio .tool-sample i { font-size: 11px; }
  .studio .tool-sample-plan u { font-size: 10.5px; }
}
@container (max-width: 310px) {
  .studio .cats { gap: 8px; }
  .studio .cat { padding: 11px; }
  .studio .cat .t b { font-size: 12.5px; letter-spacing: -.5px; }
  .studio .cat .t span { font-size: 11.5px; }
  .studio .cat-big .t b { font-size: 17px; }
  .studio .tool-sample { --dot: 11px; }
  .studio .tool-sample-prep { --dot: 10px; padding: 9px 7px; }
  .studio .tool-sample-prep b, .studio .tool-sample-prep i { font-size: 9px; white-space: nowrap; }
  .studio .tool-sample-prep i { gap: 4px; }
}
/* Вопрос квиза переносится на разное число строк; «Ход урока» резервирует столько же, чтобы две карточки были одного размера
   (пороги — по замеру: 3 строки при ширине студии до 315 px, 4 — до 258 px) */
@container (max-width: 315px) { .studio .tool-sample-quiz b, .studio .tool-sample-plan b { min-height: 3.9em; } }
@container (max-width: 258px) { .studio .tool-sample-quiz b, .studio .tool-sample-plan b { min-height: 5.2em; } }

/* Как начать — три шага в ряд, без картинок */
.s-section { padding: 72px 0; }
.s-title { margin-bottom: 28px; }
.start { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.start li { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 22px; background: var(--bg); border: 1px solid var(--stroke); box-shadow: var(--soft-shadow); }
.start .num { margin-bottom: 6px; }
.start b { font: 600 clamp(18px, 1.7vw, 21px)/1.2 var(--display); letter-spacing: -.4px; }
.start li > span:last-child { font: 500 15.5px/1.5 var(--body); color: var(--hint); }

/* Как выглядит результат — вкладки; слева окно по размеру листа, справа что это и кнопка сразу в инструмент */
.s-tabs { margin-bottom: 26px; }
.s-sample { display: grid; grid-template-columns: minmax(0, 590px) minmax(0, 1fr); gap: 48px; align-items: center; }
.s-sample.wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.s-sample[hidden] { display: none; }
.s-sample .doc .win-notes { width: min(100%, var(--page)); }
.s-sample .doc .doc-page.land + .win-notes { width: 100%; }
.s-about .kicker { margin-bottom: 12px; }
.s-about .h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.04em; }
.s-about p { margin-top: 12px; font: 500 16.5px/1.55 var(--body); color: var(--hint); }
.s-about .ticks { margin-top: 18px; }
.s-about .btn { margin-top: 26px; }
.s-section .more { margin-top: 30px; }

/* Реквизиты владельца в подвале (требование закона о защите прав потребителей и платёжных касс, 20.10.2026) */
.foot-legal { margin: 18px 0 0; font: 600 13.5px/1.55 var(--body); color: var(--hint); max-width: 900px; }
.foot-legal a { color: inherit; text-underline-offset: 3px; }
.foot-legal a:hover { color: var(--link); }

/* Документы — оферта, политика данных, контакты: спокойный текст в колонке */
.doc { max-width: 820px; margin: 0 auto; font: 500 16.5px/1.65 var(--body); }
.doc h2 { margin: 44px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 0 0 8px; }
.doc a { font-weight: 700; overflow-wrap: anywhere; }
.doc-note { padding: 16px 20px; border: 1px solid var(--stroke); border-radius: 18px; background: var(--bg); box-shadow: var(--soft-shadow); }
.doc-table-wrap { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--stroke); border-radius: 18px; background: var(--bg); box-shadow: var(--soft-shadow); }
.doc-table { width: 100%; border-collapse: collapse; font: 600 15px/1.45 var(--body); }
.doc-table th, .doc-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--stroke); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table th { font: 700 14px/1.25 var(--body); background: color-mix(in srgb, var(--text) 4%, var(--bg)); }
.requisites { display: grid; gap: 0; margin: 0 0 14px; border: 1px solid var(--stroke); border-radius: 18px; background: var(--bg); box-shadow: var(--soft-shadow); overflow: hidden; }
.requisites > div { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr); gap: 4px 18px; padding: 12px 18px; border-bottom: 1px solid var(--stroke); }
.requisites > div:last-child { border-bottom: 0; }
.requisites dt { color: var(--hint); font-weight: 700; }
.requisites dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
/* «Коротко» над документом (юридическая вычитка 20.10.2026): пересказ главного карточкой — полоса цвета страницы слева,
   значки в кругах, как в приложении; полный текст ниже остаётся главным */
.doc-brief { position: relative; margin: 0 0 18px; padding: 20px 22px 6px 28px; border: 1px solid var(--stroke); border-radius: 22px;
  background: var(--bg); box-shadow: var(--soft-shadow); overflow: hidden; }
.doc-brief::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--band); }
.doc .doc-brief-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 16px; }
.doc-brief-head b { font: 700 17px/1.2 var(--display); }
.doc-brief-head span { color: var(--hint); font: 600 14px/1.4 var(--body); }
.doc .doc-brief-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.doc .doc-brief-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 0 16px; }
.doc-brief-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text);
  background: color-mix(in srgb, var(--band) 26%, var(--bg)); }
.doc-brief-list b { font: 800 15.5px/1.3 var(--body); }
.doc .doc-brief-list p { margin: 2px 0 0; font: 600 15px/1.45 var(--body); }
/* Оглавление: номера разделов — ссылки к заголовкам */
.doc-toc { margin: 0 0 8px; padding: 16px 22px 10px; border: 1px solid var(--stroke); border-radius: 18px; background: var(--bg); box-shadow: var(--soft-shadow); }
.doc-toc > b { font: 700 15px/1.2 var(--display); }
.doc .doc-toc ol { margin: 12px 0 0; padding-left: 26px; columns: 2; column-gap: 32px; font: 700 15px/1.4 var(--body); }
.doc .doc-toc li { margin: 0 0 7px; break-inside: avoid; }
.doc-toc li::marker { color: var(--hint); }
.doc .doc-toc a { text-decoration: none; }
.doc .doc-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* «Ваши права» — отдельным блоком: закон № 99-З (ст. 5 п. 5) велит разъяснять права отдельно от остального текста */
.doc-rights { margin: 0 0 14px; padding: 18px 22px 4px; border: 1px solid var(--stroke); border-radius: 18px; background: var(--bg); box-shadow: var(--soft-shadow); }
/* Таблица «цель — данные — основание — срок» в политике */
.doc-table-purposes th:nth-child(1) { width: 24%; }
.doc-table-purposes th:nth-child(2) { width: 38%; }
.doc-table-purposes th:nth-child(3) { width: 15%; }
@media (max-width: 640px) {
  .doc { font-size: 16px; }
  .doc-table { font-size: 14px; }
  .doc-table th, .doc-table td { padding: 10px 12px; }
  .requisites > div { grid-template-columns: minmax(0, 1fr); }
  .doc-brief { padding: 18px 16px 4px 22px; }
  .doc .doc-brief-list { grid-template-columns: minmax(0, 1fr); }
  .doc .doc-toc ol { columns: 1; }
  /* Широкие таблицы политики на телефоне не читаются — каждая строка становится карточкой с подписями */
  .doc-table-stack thead { display: none; }
  .doc-table-stack, .doc-table-stack tbody, .doc-table-stack tr, .doc-table-stack td { display: block; width: auto; }
  .doc-table-stack tr { padding: 12px 14px; border-bottom: 1px solid var(--stroke); }
  .doc-table-stack tr:last-child { border-bottom: 0; }
  .doc-table-stack td { padding: 2px 0; border: 0; }
  .doc-table-stack td:first-child { margin-bottom: 4px; font-size: 15px; }
  .doc-table-recipients td:first-child { font-weight: 800; }
  .doc-table-stack td::before { color: var(--hint); font-weight: 800; }
  .doc-table-stack td[data-label]::before { content: attr(data-label) ": "; }
  .doc-table-purposes td:nth-child(2)::before { content: "Данные: "; }
  .doc-table-purposes td:nth-child(3)::before { content: "Основание: "; }
  .doc-table-purposes td:nth-child(4)::before { content: "Срок: "; }
  .doc-table-recipients td:nth-child(2)::before { content: "Что получает: "; }
  .doc-table-recipients td:nth-child(3)::before { content: "Где: "; }
}

/* Подвал — одна строка разделов */
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-nav a { font: 700 15px/1.3 var(--body); color: var(--text); text-decoration: none; }
.foot-nav a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--stroke); }
.foot-copy { flex: 1 1 280px; margin: 0; font: 600 14px/1.4 var(--body); color: var(--hint); }
.foot-social { display: flex; gap: 10px; }
.foot-social .round-btn { text-decoration: none; transition: color .15s, border-color .15s; }
.foot-social .round-btn:hover { color: var(--link); }
.foot-social .round-btn:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
@media (max-width: 1100px) {
  .s-sample { gap: 32px; }
}
@media (max-width: 900px) {
  .start { grid-template-columns: minmax(0, 1fr); }
  .s-sample, .s-sample.wide { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .s-sample .s-shot { max-width: 640px; }
}
@media (max-width: 640px) {
  .s-hero { padding: 24px 0 40px; }
  .s-head { text-align: left; }
  .s-head .lead { margin-left: 0; }
  .studio { margin-top: 24px; padding: 14px; border-radius: 24px; box-shadow: 4px 4px 0 var(--ink); }
  .studio-top { margin-bottom: 14px; }
  .studio-name .brand-ten { display: none; }
  .studio-name b { font-size: 22px; }
  .role-seg { width: 100%; }
  .role-seg button { flex: 1; justify-content: center; padding: 0 10px; }
  .studio-hint { justify-content: flex-start; text-align: left; }
  .s-cta .btn { width: 100%; }
  .s-note { justify-content: flex-start; }
  .s-section { padding: 52px 0; }
  .s-sample .doc .win-notes { width: 100%; }
  .s-about .btn { width: 100%; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .header-actions .btn-sm .lg { display: none; }
}
@media (max-width: 360px) {
  .studio { padding: 10px; }
}

/* ---------- Планшет ---------- */
@media (max-width: 1100px) {
  .header-row { gap: 14px; }
  .nav a { padding: 9px 10px; font-size: 14.5px; }
  .hero .h1 { max-width: 16ch; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* minmax(0, 1fr): длинная строка без переноса (имя файла в окне) не растягивает колонку шире экрана */
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .pic { min-height: 460px; }
  .split .body { border-left: 0; border-top: 2px solid var(--ink); }
  .plans { grid-template-columns: 1fr 1fr; }
  .plans .plan.best { grid-column: 1 / -1; }
  .cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .menu-open .nav { display: flex; position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; border-radius: 24px; background: var(--bg); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
  .menu-open .nav a { padding: 14px 16px; border-radius: 16px; color: var(--text); font: 600 19px/1.1 var(--display); letter-spacing: -.4px; }
  .menu-open .nav .nav-cta { display: inline-flex; justify-content: center; margin-top: 8px; border: 2px solid var(--ink); background: var(--accent);
    color: #fff; box-shadow: 3px 3px 0 var(--ink); font-size: 15px; padding: 17px 0; }
  .qr-card { display: none; }
  .cat { min-height: 170px; padding: 16px; }
  .cat.cat-wide { min-height: 0; }
  .cat-ic { width: 46px; height: 46px; }
}

/* ---------- Телефон ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .promo .wrap { padding-right: 48px; justify-content: flex-start; text-align: left; font-size: 13.5px; }
  .promo-close { right: 8px; }
  .header-row { height: 64px; gap: 10px; }
  .brand-ten { width: 36px; height: 36px; border-radius: 12px; font-size: 14px; }
  .brand-name { font-size: 17px; }
  .hero { padding: 28px 0 24px; }
  .hero .btns .btn { width: 100%; }
  .btn-wide { min-width: 0; }
  .plate { padding: 26px 20px 30px; border-radius: 24px; box-shadow: 4px 4px 0 var(--ink); }
  .plate-ic { right: 16px; top: 16px; width: 50px; height: 50px; }
  .plate.center .h1, .plate.center .h-xl { padding-right: 52px; }
  .plate.center { padding: 30px 20px 34px; text-align: left; }
  .plate.center .h1, .plate.center .lead { margin-left: 0; }
  .plate.center .btns { justify-content: flex-start; }
  .plate.center .hero-note { justify-content: flex-start; }
  .tiles, .tiles.tiles-2 { grid-template-columns: 1fr; }
  /* «404» не заходит под круглый значок справа: Unbounded широкий, при 96 px цифры занимали место значка на 320 */
  .notfound .h-xl { font-size: clamp(56px, 22vw, 96px); }
  .cat { min-height: 150px; padding: 14px; border-radius: 20px; gap: 14px; }
  .cat-ic { width: 42px; height: 42px; }
  .cat .t b { font-size: 15.5px; }
  .cat .t span { font-size: 12.5px; }
  .cat-big .t b { font-size: 22px; }
  .cat .chev { display: none; }
  .cat.cat-wide { min-height: 0; }
  .tool-sample { --dot: 13px; padding: 10px 11px; border-radius: 13px; }
  .tool-sample b, .tool-sample i { font-size: 11.5px; }
  .ico { width: 44px; height: 44px; }
  .section { padding: 64px 0; }
  .head { margin-bottom: 28px; }
  .band-plate { padding: 40px 20px 44px; border-radius: 24px; box-shadow: 4px 4px 0 var(--ink); text-align: left; }
  .band .h-xl, .band p { margin-left: 0; }
  .band .btns { justify-content: flex-start; }
  .split { border-radius: 24px; box-shadow: 4px 4px 0 var(--ink); }
  .split .pic { min-height: 380px; padding: 32px 16px; }
  .split .body { padding: 34px 20px 28px; }
  /* Окно презентации: лента слайдов — под большим слайдом, три штуки */
  .win-bar { height: 46px; padding: 0 14px; }
  .win-chips { display: none; }
  .win { border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); }
  .win-body { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
  .win-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; order: 2; }
  .win-th:nth-child(n+4) { display: none; }
  /* Окно листа: страницы — под листом, до четырёх в ряд */
  .doc-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; order: 2; }
  .doc-th:nth-child(n+5) { display: none; }
  .doc-page { width: 100%; }
  .win-slide { box-shadow: 3px 3px 0 var(--ink); }
  .win-notes { margin-top: 12px; }
  .credit { text-align: left; }
  /* Решение по фото: фото, под ним карточка */
  .photo-card { border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
  /* На телефоне — свой кадр страницы (solve-photo-phone.webp, текст крупнее) и своё место рамки */
  .crop-frame { left: 6.50%; top: 50.92%; width: 76.76%; height: 11.07%; border-width: 2px; border-radius: 6px; }
  .crop-frame::before, .crop-frame::after { width: 11px; height: 11px; border-radius: 4px; }
  .crop-frame::before { left: -7px; top: -7px; }
  .crop-frame::after { right: -7px; bottom: -7px; }
  .sol { padding: 14px; border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); }
  .sol-steps li { gap: 10px; padding: 9px 11px; }
  .plans { grid-template-columns: 1fr; }
  .plans .plan.best { grid-column: auto; }
  /* Полоски одна под другой — одной ширины, края совпадают */
  .switches { flex-direction: column; align-items: stretch; max-width: 380px; margin-inline: auto; }
  .seg { display: grid; }
  .seg button { padding: 0 10px; }
  .faq summary { padding: 14px 16px; }
  .faq .answer { padding: 0 16px 18px; font-size: 15.5px; }
  .compare th, .compare td { padding: 12px 12px; font-size: 14px; }
  .compare th { font-size: 15px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .gallery.wide { grid-template-columns: 1fr; }
  .styles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .style-card figcaption, .sample b { font-size: 13.5px; letter-spacing: -.4px; }
  .to-top { right: 16px; }
  .cta { padding: 24px 0 64px; }
  .cta-grid { padding: 32px 20px; border-radius: 24px; box-shadow: 4px 4px 0 var(--ink); }
  .cta .btns .btn { width: 100%; }
}
@media (max-width: 400px) {
  /* Окно листа: подписи страниц («Кроссворд») не вылезают — три страницы в ряд */
  .doc-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc-th:nth-child(n+4) { display: none; }
  .btn { white-space: normal; text-align: center; line-height: 1.2; padding: 10px 18px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 0 12px; }
}
@media (max-width: 419px) {
  /* Шапка в ряд: «10 Десятка» + тема + «Открыть» + меню в полных размерах занимают 370 px (на ≤ 400 — с меньшими
     отступами) или 382 px (выше 400) и вместе с полями 402 / 414 — на 361…413 это вылезало за поля или за экран
     (iPhone 16 Pro — 402, Pixel — 412). Компактные размеры (кнопки 40, название 16) умещают «Открыть» с надписью от 390 px;
     порог 419, а не 413 — запас 6 px. Проверка — сканирование 280…430 в обеих темах
     (output/design/site-header-375-20261010/scan_menu.py) */
  .round-btn { width: 40px; height: 40px; }
  .header-row .brand-name { font-size: 16px; }
  .header-row .brand { gap: 8px; }
}
@media (max-width: 389px) {
  /* Узкий телефон: у «Открыть» остаётся только значок (надпись — для чтения с экрана) */
  .header-actions .btn-sm { width: 44px; padding: 0; }
  .header-actions .btn-sm span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 16px; }
  .brand { gap: 8px; }
  .cats { gap: 10px; }
  .cat { padding: 12px; }
  /* «Презентация» на плитке 320 px — одним словом, без переноса посередине */
  .cat .t b { font-size: 13px; letter-spacing: -.5px; }
  .cat-big .t b { font-size: 19px; }
  /* Окно образца: имя файла важнее украшения — кнопки окна прячем, «Квиз «Вулканы».pdf» помещается целиком на 320 */
  .win-dots { display: none; }
  .win-title { font-size: 13px; }
}
@media (max-width: 309px) {
  /* Складной телефон (280 px): «10 Десятка» + три кнопки — 306 px с полями; название прячем, остаётся «10» (для чтения с экрана у ссылки есть подпись) */
  .header-row .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: none; }
  .btn:hover, .btn:active, a.cat:hover, a.cat:active, .sample:hover .paper, .to-top:hover { transform: none !important; }
}

/* ---------- Липкая полоска «Pro — цена» внизу экрана главной (вариант Г, 10.10.2026) ---------- */
.paybar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 35; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--bg); box-shadow: 0 12px 34px #0a14264d;
  transition: opacity .24s var(--ease), translate .24s var(--ease), visibility .24s; }
/* Прячется, пока на экране блок цен или конец страницы */
.paybar.paybar-off { opacity: 0; translate: 0 16px; visibility: hidden; pointer-events: none; }
.paybar-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--on-tool); }
.paybar-t { flex: 1; min-width: 0; }
.paybar-t b { display: block; font: 600 14px/1.2 var(--display); letter-spacing: -.3px; white-space: nowrap; }
.paybar-t span { display: block; font: 700 12px/1.3 var(--body); color: var(--hint); white-space: nowrap; }
.paybar .btn { flex: none; min-height: 40px; padding: 0 14px; font-size: 13px; }
/* ≤ 380 px: тот же вид, что на большом экране, только мельче — круг с короной остаётся, обе строки по одной */
@media (max-width: 380px) {
  .paybar { gap: 8px; padding: 9px 9px 9px 10px; }
  .paybar-ic { width: 34px; height: 34px; }
  .paybar-ic svg { width: 18px; height: 18px; }
  .paybar-t b { font-size: 13px; }
  .paybar-t span { font-size: clamp(10.3px, 3.3vw, 11px); }
  .paybar .btn { padding: 0 10px; }
}

/* ---------- «Что входит» на телефоне: все четыре колонки без прокрутки вбок (проверка 15.10.2026) ----------
   Было: на 320 колонки Ultima не видно, на 390 — «Ultim», таблица листалась вбок незаметно. Теперь колонки фиксированной
   ширины, заголовки мельче («Бес­платно» делится мягким переносом), пояснение к бесплатным попыткам — под таблицей. */
.compare-star, .compare-note { display: none; }
@media (max-width: 480px) {
  .compare { table-layout: fixed; font-size: 13px; }
  .compare th:first-child { width: 36%; }
  .compare th, .compare td { padding: 10px 4px; font-size: clamp(11.5px, 4vw, 13px); line-height: 1.3; }
  .compare td:first-child, .compare th:first-child { padding-left: 12px; padding-right: 6px; }
  .compare th { font-size: clamp(10.5px, 3.3vw, 13px); letter-spacing: -.4px; hyphens: manual; }
  .compare .yesno { width: 24px; height: 24px; }
  .compare .yesno svg { width: 14px; height: 14px; }
  .compare .free-cell { padding-inline: 0; }
  .compare .free-cell b { font-size: clamp(10px, 3.5vw, 13px); }
  .compare .free-cell small { display: none; }
  .compare-star { display: inline; }
  .compare-note { display: block; margin: 12px 4px 0; font: 600 13.5px/1.45 var(--body); color: var(--hint); }
}

/* ---------- Печать (юридическая вычитка 20.10.2026) ----------
   Оферту и политику печатают и несут юристу или в кассу: на бумаге — только документ чёрным по белому, без шапки, меню,
   кнопок, фона и цветной плашки; тёмная тема на печать не влияет. Строка с реквизитами из подвала остаётся. */
@media print {
  :root, :root[data-theme] { color-scheme: light; --bg: #fff; --bg2: #fff; --text: #000; --hint: #444; --link: #000;
    --stroke: #b8b8b8; --soft-shadow: none; --on-tool: #000; --band: #9a9a9a; }
  html, body { background: #fff; }
  body { font-size: 11pt; }
  body::before, body::after, .promo, .site-header, .paybar, .to-top, .foot-row, .foot-bottom, .plate-ic { display: none !important; }
  .hero { padding: 0; }
  .plate, .plate.center { padding: 0 0 6mm; border: 0; border-radius: 0; box-shadow: none; background: none; color: #000; text-align: left; }
  .plate::before { display: none; }
  .hero .plate .h1 { font-size: 22pt; }
  .plate.center .h1, .plate.center .lead { margin-left: 0; max-width: none; }
  .wrap { max-width: none; padding: 0; }
  .doc { max-width: none; font-size: 10.5pt; line-height: 1.45; }
  .doc-table-wrap { overflow: visible; border-radius: 8px; box-shadow: none; }
  .doc-table { table-layout: fixed; font-size: 9pt; line-height: 1.35; }
  .doc-table th, .doc-table td { padding: 5px 8px; overflow-wrap: break-word; hyphens: auto; }
  .doc-table-purposes th:nth-child(1) { width: 21%; }
  .doc-table-purposes th:nth-child(3) { width: 19%; }
  .plate .lead { color: #000; }
  .section { padding: 0 !important; }
  .site-footer { padding: 4mm 0 0; border-top: 1px solid var(--stroke); }
  .foot-legal { margin: 0; color: #000; }
  .doc-brief, .doc-toc, .doc-rights, .requisites { box-shadow: none; break-inside: avoid; }
  .doc-brief-ic { background: none; border: 1px solid var(--stroke); }
  .doc h2 { break-after: avoid; }
  .doc-table tr { break-inside: avoid; }
  .doc a { color: inherit; text-decoration: none; }
}
