/* Игрушечный фронт — светлый детский сайт. Один файл, без внешних библиотек. */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ToyCJK";
  src: url("/fonts/ToyFrontCJK.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff8ec;
  --bg-deep: #f7ead5;
  --bg-soft: #fff3df;
  --panel: #fffdf8;
  --panel-solid: #ffffff;
  --line: #e7d4b8;
  --line-soft: #f1e3cd;
  --ink: #2b2740;
  --text: #3a3450;
  --text-soft: #5b5470;
  --muted: #6f667b;
  --yellow: #ffc93c;
  --yellow-deep: #e8a91c;
  --coral: #ff7a5c;
  --coral-deep: #c2462f;
  --teal: #2fb8a6;
  --teal-deep: #167d70;
  --blue: #4f8fe8;
  --pink: #ff9bc2;
  --green: #3fae6a;
  --error: #d94a3d;
  --radius: 24px;
  --radius-small: 14px;
  --shadow: 0 8px 0 #f0dfc6, 0 20px 44px rgba(83, 62, 38, .10);
  --shadow-soft: 0 4px 0 #f0dfc6;
  --wrap: 1180px;
  --read: 76ch;
  --header-h: 76px;
}

* { box-sizing: border-box; min-width: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 "Nunito", "ToyCJK", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}
body.menu-open { overflow: hidden; }
img, svg, video, canvas, iframe { max-width: 100%; }
img { height: auto; }
p, li, td, th, dd, dt, figcaption, h1, h2, h3, h4, summary, code { overflow-wrap: break-word; }
button, input, textarea, select { font: inherit; }
a { text-underline-offset: .18em; }
main a:not(.btn):not(.card):not(.brand):not(.toc a), footer a { color: var(--teal-deep); text-decoration-color: #9edbd2; }
main a:not(.btn):not(.card):not(.toc a):hover, footer a:hover { color: var(--coral-deep); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }

#sky {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(ellipse 54% 38% at 8% 2%, rgba(255, 213, 92, .55), transparent 68%),
    radial-gradient(ellipse 42% 34% at 96% 16%, rgba(120, 224, 205, .38), transparent 70%),
    radial-gradient(ellipse 52% 40% at 88% 92%, rgba(255, 164, 188, .30), transparent 72%),
    radial-gradient(ellipse 52% 42% at 20% 100%, rgba(152, 196, 255, .24), transparent 72%),
    var(--bg);
}
#sky::after {
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: radial-gradient(#dfcaa9 1.2px, transparent 1.2px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 70%);
}
#toys { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .55; }
#toys canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.read { max-width: var(--read); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mt-24 { margin-top: 24px; }
.eyebrow, .tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 13px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--coral-deep); font-size: 12px; font-weight: 900; letter-spacing: .10em; line-height: 1.3;
  text-transform: uppercase; box-shadow: 0 3px 0 #f0dfc6;
}
.eyebrow { color: var(--teal-deep); }
.eyebrow svg, .tag svg { width: 16px; height: 16px; flex: none; }
.kicker { color: var(--coral-deep); font-weight: 900; }
.lead { max-width: 68ch; color: var(--text-soft); font-size: clamp(17px, 2.1vw, 20px); line-height: 1.65; }
.trust { margin-top: 12px; color: var(--muted); font-size: 14px; font-weight: 700; }

.skip {
  position: fixed; left: 14px; top: 10px; z-index: 100; padding: 12px 16px;
  transform: translateY(-180%); border-radius: 12px; background: var(--ink); color: #fff;
  font-weight: 900; text-decoration: none;
}
.skip:focus { transform: translateY(0); }

/* ── Шапка ─────────────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 40; border-bottom: 2px solid var(--line-soft);
  background: rgba(255, 248, 236, .90); backdrop-filter: blur(16px);
}
.nav { display: flex; min-height: var(--header-h); align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: none; }
.brand img, .brand svg { width: 44px; height: 44px; flex: none; }
.brand-text b { display: block; font-size: 20px; line-height: 1; letter-spacing: .03em; font-weight: 1000; }
.brand-text span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.language-switch {
  display: inline-flex; flex: none; align-items: center; gap: 2px; margin-left: auto; padding: 3px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--panel);
}
.language-switch a, .language-switch span {
  display: grid; min-width: 42px; min-height: 42px; place-items: center; padding: 4px 8px; border-radius: 8px;
  color: var(--muted); font-size: 12px; font-weight: 900; line-height: 1; text-decoration: none;
}
.language-switch a:hover { color: var(--ink); background: #fff0d2; }
.language-switch [aria-current="page"] { background: var(--yellow); color: var(--ink); }
.menu { display: flex; align-items: center; gap: 2px; }
.menu a {
  display: inline-flex; min-height: 44px; align-items: center; padding: 8px 10px; border-radius: 12px;
  color: var(--text-soft); font-size: 14.5px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.menu a:hover, .menu a.on, .menu a[aria-current="page"] { color: var(--ink); background: #fff0d2; }
.menu .menu-cta { margin-left: 5px; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.menu .menu-cta:hover { background: #ffd65e; }
.burger {
  display: none; width: 48px; height: 48px; margin-left: auto; padding: 11px; border: 2px solid var(--line);
  border-radius: 12px; background: var(--panel); color: var(--ink); cursor: pointer;
}
.burger svg { display: block; width: 24px; height: 24px; }

/* ── Основное ──────────────────────────────────────────────────────────── */
main { min-height: 62vh; }
section { padding: clamp(52px, 7vw, 88px) 0 4px; }
.section-tight { padding-top: 34px; }
.section-tint {
  margin-top: clamp(50px, 7vw, 86px); padding: clamp(52px, 7vw, 82px) 0;
  border-block: 2px dashed #eddbbe; background: linear-gradient(180deg, #fff7e7, #fff2dd);
}
.section-tint + section { padding-top: clamp(52px, 7vw, 88px); }
h1, h2, h3, h4 { margin: 0 0 15px; color: var(--ink); line-height: 1.14; font-weight: 1000; }
h1 { max-width: 24ch; font-size: clamp(38px, 6.2vw, 68px); letter-spacing: -.025em; }
h2 { max-width: 30ch; font-size: clamp(27px, 4vw, 42px); letter-spacing: -.015em; }
h3 { font-size: clamp(19px, 2.1vw, 23px); }
h4 { font-size: 18px; }
p { margin: 0 0 15px; color: var(--text-soft); }
ul, ol { margin: 10px 0 18px; padding-left: 1.35em; }
li { margin: 8px 0; color: var(--text-soft); }
strong { color: var(--ink); }

/* ── Герой ─────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(30px, 5vw, 62px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .96fr) minmax(420px, 1.04fr); align-items: center; gap: clamp(30px, 5vw, 66px); }
.hero h1 { max-width: 20ch; font-size: clamp(36px, 5vw, 60px); }
.hero h1 em {
  color: var(--coral-deep); font-style: normal;
  background: linear-gradient(180deg, transparent 67%, #ffe08a 67%, #ffe08a 93%, transparent 93%);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero-actions { margin-top: 24px; }
.hero-stage { position: relative; min-height: 640px; display: grid; place-items: center; }
.hero-phone {
  position: relative; z-index: 3; width: min(310px, 72vw); padding: 10px; border-radius: 44px;
  background: var(--ink); box-shadow: 0 14px 0 #e6d3b5, 0 30px 60px rgba(70, 48, 25, .22);
  transform: rotate(3.2deg);
}
.hero-phone::before {
  content: ""; position: absolute; z-index: 4; top: 17px; left: 50%; width: 74px; height: 7px;
  transform: translateX(-50%); border-radius: 99px; background: #4a4560;
}
.hero-phone img { display: block; width: 100%; border-radius: 35px; }
.hero-phone--back {
  position: absolute; z-index: 1; width: min(235px, 55vw); padding: 8px; border-radius: 36px;
  transform: rotate(-10deg) translate(-118px, 44px); opacity: .92; filter: saturate(.92);
}
.hero-phone--back::before { display: none; }
.hero-phone--back img { border-radius: 29px; }
.hero-caption {
  position: absolute; z-index: 5; right: 0; bottom: 10px; left: 0; margin: 0 auto; width: fit-content; max-width: 90%;
  padding: 9px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel);
  color: var(--text-soft); font-size: 13px; font-weight: 700; box-shadow: 0 3px 0 #f0dfc6;
}
.chip {
  position: absolute; z-index: 6; padding: 9px 13px; border: 2px solid var(--ink); border-radius: 14px;
  background: var(--panel); color: var(--ink); font-size: 14px; font-weight: 900; box-shadow: 0 4px 0 var(--ink);
}
.chip b { color: var(--coral-deep); }
.chip-a { top: 42px; left: 4%; transform: rotate(-5deg); }
.chip-b { top: 126px; right: 1%; transform: rotate(4deg); background: #e8faf5; }
.chip-c { top: 48%; left: -3%; transform: rotate(3deg); background: #fff0d2; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 0; }
.fact { padding: 15px; border: 2px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 4px 0 #f0dfc6; }
.fact b { display: block; color: var(--coral-deep); font-size: clamp(24px, 3vw, 31px); line-height: 1.1; font-weight: 1000; }
.fact:nth-child(2) b { color: var(--teal-deep); }
.fact:nth-child(3) b { color: var(--blue); }
.fact span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.4; font-weight: 700; }

/* ── Кнопки ────────────────────────────────────────────────────────────── */
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.btns.compact { margin-top: 6px; }
.btn {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border: 2px solid transparent; border-radius: 16px; color: var(--ink);
  font-weight: 900; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-main { border-color: var(--ink); background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn-main:hover { background: #ffd65e; transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn-ghost { border-color: var(--line); background: var(--panel); color: var(--ink); box-shadow: 0 4px 0 #e8d5b8; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 0 #e8d5b8; }
.btn-teal { border-color: var(--ink); background: var(--teal); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn-teal:hover { background: #3fcab7; transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn-coral { border-color: var(--ink); background: var(--coral); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ── Карточки ──────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(258px, 100%), 1fr)); gap: 18px; }
.card {
  padding: 23px; border: 2px solid var(--line-soft); border-radius: var(--radius);
  background: var(--panel); box-shadow: var(--shadow-soft);
}
.card > :last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
a.card:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: 0 7px 0 #f0dfc6, 0 16px 36px rgba(83,62,38,.10); }
.card h3 { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.card h3 svg { width: 26px; height: 26px; flex: none; margin-top: 2px; color: var(--teal-deep); }
.card p { font-size: 15.5px; line-height: 1.62; color: var(--text-soft); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--coral-deep); font-size: 14px; font-weight: 900; }
.card .more svg, .page-next a svg { width: 18px; height: 18px; flex: none; }
.card-status { border-left: 7px solid var(--green); }
.card-planned { border-left: 7px solid var(--coral); }
.state {
  display: inline-flex; margin-bottom: 10px; padding: 4px 9px; border-radius: 999px;
  background: #e5f7eb; color: #21804a; font-size: 12px; font-weight: 900;
}
.state.planned { background: #ffe8e2; color: var(--coral-deep); }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before {
  counter-increment: step; content: counter(step); position: absolute; top: 17px; left: 21px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink);
  font-size: 14px; font-weight: 1000; box-shadow: 0 2px 0 var(--ink);
}
.card-icon {
  display: grid; width: 46px; height: 46px; margin-bottom: 14px; place-items: center;
  border: 2px solid var(--ink); border-radius: 14px; background: #ffe8a8; color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.teal { background: #c9f4ec; }
.card-icon.coral { background: #ffd9d0; }
.card-icon.blue { background: #d7e6ff; }
.card-icon.pink { background: #ffdce9; }

/* ── Снимки и телефоны ─────────────────────────────────────────────────── */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.shot-card {
  margin: 0; padding: 12px 12px 14px; border: 2px solid var(--line-soft); border-radius: 26px;
  background: var(--panel); box-shadow: var(--shadow-soft);
}
.shot-screen { overflow: hidden; border: 8px solid var(--ink); border-radius: 30px; background: #1b1828; }
.shot-screen img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.shot-card figcaption { padding: 11px 4px 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; font-weight: 700; }
.shots-large { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }

figure { margin: 0; }
.figure { margin: 22px 0; }
.figure img { width: 100%; border: 2px solid var(--line); border-radius: var(--radius); }
.feature-figure { margin: 22px 0 30px; }
.feature-figure img { display: block; width: 100%; border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.feature-figure figcaption { padding-top: 10px; color: var(--muted); font-size: 13.5px; font-weight: 700; }

/* ── Две колонки ───────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 66px); }
.split.reverse .split-media { order: 2; }
.split-media { display: grid; place-items: center; }
.split-phone {
  width: min(300px, 76vw); padding: 9px; border: 2px solid var(--ink); border-radius: 38px;
  background: var(--ink); box-shadow: 0 10px 0 #e6d3b5, 0 24px 46px rgba(70,48,25,.18);
  transform: rotate(-2.4deg);
}
.split-phone img { display: block; width: 100%; border-radius: 30px; }
.split-copy h2 { max-width: 20ch; }
.split-copy p:last-child { margin-bottom: 0; }
.step-label { display: inline-flex; margin-bottom: 8px; color: var(--coral-deep); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

/* ── Таблицы ───────────────────────────────────────────────────────────── */
.compare { width: 100%; margin: 18px 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 2px solid var(--line); border-radius: 16px; background: var(--panel); }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.compare th { background: #fff0d2; color: var(--ink); font-size: 14px; font-weight: 900; }
.compare td { color: var(--text-soft); font-size: 15px; }
.compare tr:last-child td { border-bottom: 0; }
.price { color: var(--coral-deep); font-weight: 900; white-space: nowrap; }
.keys { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 15px; }
.keys td, .keys th { padding: 9px 11px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.keys td:first-child, .keys th:first-child { color: var(--ink); font-weight: 800; }
kbd { display: inline-block; padding: 1px 8px; border: 2px solid var(--line); border-bottom-width: 3px; border-radius: 7px; background: #fffdf8; color: var(--ink); font-family: inherit; font-size: .92em; font-weight: 800; }

/* ── Заметки, цитаты, таймлайн ─────────────────────────────────────────── */
.callout, .note, .warn {
  margin: 20px 0; padding: 17px 19px; border: 2px solid var(--line); border-left: 6px solid var(--teal);
  border-radius: var(--radius-small); background: var(--panel); color: var(--text-soft);
}
.warn { border-left-color: var(--coral); }
.callout strong, .note strong { color: var(--ink); }
.quote { margin: 24px 0; padding: 19px 22px; border-left: 6px solid var(--coral); border-radius: 0 16px 16px 0; background: #fff0eb; color: var(--text-soft); font-size: 17px; font-weight: 700; }
.quote-final { font-size: 19px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; margin: 0; padding: 0 0 22px 26px; border-left: 2px solid var(--line); }
.timeline li::before { content: ""; position: absolute; top: 8px; left: -7px; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); }
.timeline b { color: var(--ink); }

/* ── Оглавление и руководство ──────────────────────────────────────────── */
.toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 9px; margin: 18px 0 0; }
.toc a { display: flex; min-height: 46px; align-items: center; padding: 10px 13px; border: 2px solid var(--line-soft); border-radius: 12px; background: var(--panel); color: var(--text-soft); font-weight: 800; text-decoration: none; }
.toc a:hover { border-color: var(--line); color: var(--ink); background: #fff0d2; }
.toc a[hidden] { display: none; }
.filter-label { display: block; margin-top: 24px; color: var(--ink); font-weight: 900; }
.toc-filter { width: min(100%, 640px); min-height: 50px; margin-top: 8px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); }
.toc-filter::placeholder { color: var(--muted); }
.toc-filter:focus { border-color: var(--coral); outline: 3px solid #ffe0d8; outline-offset: 2px; }
.guide-page section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.guide-page section[id] > .wrap {
  max-width: min(var(--wrap), 100% - 40px); padding: clamp(20px, 3vw, 36px);
  border: 2px solid var(--line-soft); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow-soft);
}
.guide-page section { padding-top: 18px; }
.guide-page section:first-of-type { padding-top: 0; }
.guide-page .guide-intro { padding: 0; }
.guide-page .guide-intro > .wrap { border: 0; background: transparent; box-shadow: none; padding: 0; }

/* ── Формы ─────────────────────────────────────────────────────────────── */
form { display: grid; max-width: 760px; gap: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
label { display: grid; gap: 6px; color: var(--text-soft); font-size: 14px; font-weight: 800; }
input, textarea, select { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: var(--coral); outline: 3px solid #ffe0d8; outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 24px; color: var(--muted); font-size: 14px; font-weight: 700; }
.form-msg.ok { color: #21804a; }
.form-msg.err { color: var(--error); }

/* ── Аккордеоны ────────────────────────────────────────────────────────── */
details { margin: 11px 0; overflow: hidden; border: 2px solid var(--line-soft); border-radius: 14px; background: var(--panel); }
summary { min-height: 50px; padding: 14px 48px 14px 16px; color: var(--ink); font-weight: 900; cursor: pointer; position: relative; }
summary::after { content: "+"; position: absolute; right: 17px; top: 9px; color: var(--coral-deep); font-size: 25px; font-weight: 900; }
details[open] summary::after { content: "−"; }
details > :not(summary) { margin-right: 16px; margin-left: 16px; }
details > :last-child { margin-bottom: 16px; }

/* ── Ссылки «дальше» ───────────────────────────────────────────────────── */
.page-next { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 36px; padding-top: 26px; border-top: 2px dashed var(--line); }
.page-next a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; border: 2px solid var(--line-soft); border-radius: 14px; background: var(--panel); color: var(--ink); text-decoration: none; box-shadow: 0 4px 0 #f0dfc6; }
.page-next a:hover { border-color: var(--line); transform: translateY(-2px); }
.page-next small { display: block; color: var(--muted); font-weight: 700; }

/* ── Новости ───────────────────────────────────────────────────────────── */
.news-list { display: grid; gap: 20px; }
.news-item { padding: 24px; border: 2px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-soft); }
.news-item h2 { max-width: 28ch; margin-bottom: 8px; font-size: clamp(23px, 3vw, 30px); }
.news-item time { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 800; }
.news-item p:last-child { margin-bottom: 0; }

/* ── Скачать ───────────────────────────────────────────────────────────── */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.download-card { padding: 26px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.download-card h2 { margin-bottom: 6px; font-size: 28px; }
.download-card .os { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--coral-deep); font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.download-card .os svg { width: 20px; height: 20px; }
.download-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.pill { display: inline-flex; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff7e7; color: var(--text-soft); font-size: 12px; font-weight: 800; }
.hash { display: grid; grid-template-columns: minmax(105px, auto) 1fr auto; align-items: center; gap: 10px; margin-top: 12px; }
.hash code { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff7e7; color: var(--muted); font-size: 11.5px; word-break: break-all; }
.copy-btn { min-height: 40px; padding: 7px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font-weight: 800; cursor: pointer; }
.download-note { margin-top: 22px; }
.store-placeholder { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--panel); }

/* ── Пресс-пак ─────────────────────────────────────────────────────────── */
.press-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 34px; }
.press-mark { display: grid; place-items: center; padding: clamp(18px, 4vw, 34px); border: 2px solid var(--line); border-radius: 28px; background: var(--panel); box-shadow: var(--shadow); }
.press-mark img { display: block; width: min(100%, 380px); border-radius: 24px; }
.press-assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.press-asset { display: flex; flex-direction: column; }
.press-asset-preview { display: grid; min-height: 210px; margin-bottom: 18px; place-items: center; padding: 18px; border: 2px solid var(--line-soft); border-radius: 16px; background: #fff7e7; }
.press-asset-preview.checker { background-color: #fff; background-image: linear-gradient(45deg, #f5ead9 25%, transparent 25%), linear-gradient(-45deg, #f5ead9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f5ead9 75%), linear-gradient(-45deg, transparent 75%, #f5ead9 75%); background-position: 0 0, 0 10px, 10px -10px, -10px 0; background-size: 20px 20px; }
.press-asset-preview img { display: block; width: 100%; max-height: 230px; object-fit: contain; }
.press-asset .btns { margin-top: auto; padding-top: 4px; }
.press-copy { margin: 18px 0 0; padding: clamp(18px, 3vw, 28px); border: 2px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.press-copy p:last-child { margin-bottom: 0; }
.press-links { display: grid; gap: 8px; margin-top: 16px; }
.press-links a { width: fit-content; }

/* ── 404 ───────────────────────────────────────────────────────────────── */
.lost { display: grid; place-items: center; min-height: 54vh; text-align: center; }
.lost .big { font-size: clamp(90px, 20vw, 190px); line-height: .9; color: var(--yellow); text-shadow: 4px 5px 0 var(--ink); font-weight: 1000; }
.lost h1 { max-width: none; }

/* ── Появление ─────────────────────────────────────────────────────────── */
.fade { opacity: 1; transform: none; }
.js .fade { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .fade.in { opacity: 1; transform: none; }

/* ── Подвал ────────────────────────────────────────────────────────────── */
footer { margin-top: 82px; padding: 40px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 6px solid var(--yellow); background: var(--ink); color: #e9e2f2; }
footer p { color: #c9c1d8; }
footer .footer-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 28px; }
.footer-title { color: #fff; font-size: 22px; font-weight: 1000; }
.footer-links { display: grid; gap: 7px; }
.footer-links b { margin-bottom: 3px; color: var(--yellow); font-size: 14px; font-weight: 900; }
.footer-links a { display: inline-flex; min-height: 32px; align-items: center; color: #d8d0e6; text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-meta { margin-top: 24px; padding-top: 18px; border-top: 1px solid #47415e; color: #a79eb9; font-size: 13px; font-weight: 700; }
.footer-meta a { color: #d8d0e6; }

#toTop { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 35; display: grid; width: 50px; height: 50px; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); opacity: 0; pointer-events: none; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: opacity .2s; }
#toTop.show { opacity: 1; pointer-events: auto; }
#toTop svg { width: 21px; height: 21px; }

/* ── Адаптив ───────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .menu a { padding-inline: 8px; font-size: 14px; }
  .hero-stage { min-height: 580px; }
  .chip-a { left: 0; }
  .chip-c { left: -1%; }
}
@media (max-width: 980px) {
  header { background: rgba(255, 248, 236, .98); backdrop-filter: none; }
  .burger { display: block; }
  .menu {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 45; display: none;
    align-content: start; align-items: stretch; overflow-y: auto; padding: 18px max(20px, calc((100vw - var(--wrap)) / 2));
    background: var(--bg); border-top: 2px solid var(--line-soft);
  }
  .menu.open { display: grid; grid-auto-rows: min-content; gap: 6px; }
  .menu a { min-height: 52px; padding: 12px 15px; font-size: 18px; }
  .menu .menu-cta { margin-left: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: auto; padding: 40px 0 46px; }
  .hero-phone { width: min(300px, 68vw); }
  .hero-phone--back { width: min(210px, 48vw); transform: rotate(-9deg) translate(-96px, 40px); }
  .hero-caption { position: static; margin: 22px auto 0; }
  .chip-c { display: none; }
  .split, .press-hero { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .wrap { width: min(100% - 28px, var(--wrap)); }
  section { padding-top: 50px; }
  h1 { font-size: clamp(35px, 11vw, 50px); }
  .hero h1 { max-width: 18ch; font-size: clamp(35px, 11vw, 50px); }
  .facts { grid-template-columns: 1fr; }
  .fact { display: grid; grid-template-columns: minmax(100px,.45fr) 1fr; align-items: center; gap: 10px; }
  .fact span { margin-top: 0; }
  .form-grid, .page-next, .download-grid { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; }
  .hash { grid-template-columns: 1fr; }
  .copy-btn { width: 100%; }
  .compare { display: block; overflow: visible; border: 0; background: transparent; }
  .compare thead { display: none; }
  .compare tbody { display: grid; gap: 10px; }
  .compare tr { display: grid; gap: 5px; padding: 13px; border: 2px solid var(--line-soft); border-radius: 13px; background: var(--panel); }
  .compare td { display: block; padding: 2px 0; border: 0; }
  .hero-phone--back { display: none; }
  .chip-b { top: 8px; right: 4%; }
  .chip-a { top: 8px; left: 4%; }
  .chip { font-size: 12px; padding: 7px 10px; }
  .keys { display: block; overflow-x: auto; }
  .read-surface { padding: 18px; }
  .press-hero { gap: 20px; }
}
@media (max-width: 460px) {
  .nav { gap: 8px; }
  .brand-text b { font-size: 18px; }
  .btns .btn { width: 100%; }
  .hero-phone { width: min(270px, 76vw); }
  .chip-a, .chip-b { display: none; }
  .hero-stage { padding-top: 18px; }
  .toc { grid-template-columns: 1fr; }
  .download-card, .news-item, .card { padding: 19px; }
}
@media (max-width: 360px) {
  .brand-text { display: none; }
}
@media print {
  .js .fade { opacity: 1 !important; transform: none !important; }
  header, #toTop, #toys { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .fade { opacity: 1; transform: none; }
  #toys { display: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #655d72; --line: #cbb28c; }
}
