/* BEEPORIA · лендинг beeporia.com, v2 «зашёл в игру» (KONCEPCIYA.md §11–12).
   Без сторонних шрифтов и ресурсов (CSP: только свой домен). Графика — настоящие слои игры (img/igra/, tools/art-iz-igry.py),
   рисунки Codex (img/art/) подключаются поверх по мере готовности. */
:root {
  --ink: #3b2416;          /* шоколад — весь основной текст, серого нет */
  --ink2: #4e3020;
  --cream: #fbe9c8;
  --teal: #086e6b;         /* 4,88:1 на самом светлом дереве — мелкий бирюзовый текст */
  --teal-l: #16b3b0;
  --teal-d: #0b4f52;
  --amber: #f2a531;
  --amber-d: #e07a1f;
  --wood: #c98a4e;
  --wood-d: #8a5a33;
  --wood-dd: #5e3a1e;
  --night: #12303a;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --top: 68px;
  --hint: 0px;           /* высота полосы «есть на вашем языке», если она показана */
}
body:has(.lang-hint:not([hidden])) { --hint: 42px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 8px); }
body { margin: 0; background: #f0cf9c; color: var(--ink); font: 600 20px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--teal-l); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 36px); }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 900; line-height: 1.04; }
p { margin: 0 0 1em; }

/* ---------- кнопка-«конфета», как в игре ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 900 20px/1 var(--font); color: var(--ink);
  background: linear-gradient(180deg, #ffd673 0%, #f7b03c 46%, #e98620 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .7), inset 0 -5px 0 rgba(170, 70, 0, .3), 0 6px 0 #a4521a, 0 12px 22px rgba(90, 40, 0, .35);
  transition: transform .12s, box-shadow .12s;
}
.btn::after { content: ""; position: absolute; left: 16%; right: 16%; top: 5px; height: 30%; border-radius: 999px; background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); pointer-events: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(170, 70, 0, .3), 0 2px 0 #a4521a, 0 5px 10px rgba(90, 40, 0, .3); }
.btn:focus-visible { outline: 4px solid var(--teal-d); outline-offset: 4px; }
.btn-big { min-height: 74px; padding: 0 36px; font-size: 25px; }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 18px; }
.tri { width: 0; height: 0; border-left: 17px solid currentColor; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }

/* ---------- шапка: светлая доска ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #fbeacb, #f1d4a2);
  border-bottom: 4px solid #b27a44; box-shadow: 0 3px 0 rgba(90, 50, 20, .22);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: var(--top); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; }
.nav a:hover { color: var(--teal); }
/* меню языков: <details> — работает без JS, вмещает любое число языков */
.lang { position: relative; flex: none; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px;
  min-height: 46px; padding: 0 14px 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .55); border: 2px solid #d9a868;
  color: var(--ink); font-size: 16px; font-weight: 900; letter-spacing: .04em; user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-inline-start: 2px; }
.lang[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30;
  min-width: 210px; max-height: min(70vh, 420px); overflow: auto;
  list-style: none; margin: 0; padding: 6px; background: #fffaf0; border: 3px solid #c98a4e; border-radius: 16px;
  box-shadow: 0 6px 0 var(--wood-d), 0 18px 40px -12px rgba(90, 50, 20, .5);
}
.lang li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; }
.lang li a span { font-size: 14px; font-weight: 900; letter-spacing: .06em; color: var(--ink2); }
.lang li a:hover { background: #fbe9c8; }
.lang li a[aria-current="page"] { background: #dff3f1; }
.lang li a[aria-current="page"] span { color: var(--teal); }
.lang-hint { background: var(--night); color: #fff; text-align: center; font-size: 17px; padding: 9px 12px; }
.lang-hint a { color: #5fe0dc; font-weight: 900; }

/* ---------- живой Бип: слои игры на холсте 4:5 (координаты rig.json, 800×1000) ---------- */
.bip { position: relative; aspect-ratio: 4 / 5; width: 100%; transform-origin: 50% 96%; animation: b-breathe 3.4s ease-in-out infinite; }
.bip::before { content: ""; position: absolute; left: 27%; right: 27%; bottom: 0; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 35, 10, .45), rgba(70, 35, 10, 0)); }
.bip > img, .b-golova, .b-golova > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.b-golova { transform-origin: 50% 47%; animation: b-head 5.6s ease-in-out infinite; }
.b-linza { position: absolute; width: 18%; height: 14.4%; transform-origin: 50% 50%; animation: b-blink 5.2s infinite; }
.b-linza img { width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(60, 240, 232, .8)); }
.b-linza.l { left: 30%; top: 26.9%; }
.b-linza.r { left: 52.25%; top: 27.2%; }
.b-glow { position: absolute; left: 43.1%; top: 1.2%; width: 13.75%; height: 11%; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 255, 245, .85), rgba(46, 196, 192, 0)); mix-blend-mode: screen; animation: b-glow 2.4s ease-in-out infinite; }
.b-ruka { transform-origin: 65.75% 51.8%; animation: b-wave 4.2s ease-in-out infinite; }
@keyframes b-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(.994, 1.016); } }
@keyframes b-head { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }
@keyframes b-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
@keyframes b-glow { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: .95; transform: scale(1.35); } }
@keyframes b-wave { 0%, 52%, 100% { transform: rotate(0); } 8%, 24%, 40% { transform: rotate(-9deg); } 16%, 32% { transform: rotate(11deg); } }

/* ---------- 1. первый экран ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; min-height: max(560px, min(calc(100svh - var(--top) - var(--hint)), 900px)); }
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-stena { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 35%; }
.hero-scene::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(251, 236, 208, .95) 0%, rgba(251, 236, 208, .88) 38%, rgba(251, 236, 208, .25) 60%, rgba(251, 236, 208, 0) 72%); }
.hero-verstak { position: absolute; left: 0; bottom: 0; width: 100%; height: 15%; object-fit: cover; object-position: 50% 0; z-index: 2; }
.hero-shar { position: absolute; z-index: 2; right: 7%; top: 9%; width: clamp(56px, 7vw, 110px); animation: shar 7s ease-in-out infinite; }
.gear { position: absolute; z-index: 2; animation: spin 26s linear infinite; filter: drop-shadow(0 6px 4px rgba(60, 30, 10, .35)); }
.gear-1 { width: clamp(90px, 12vw, 170px); right: -3%; bottom: 13%; }
.gear-2 { width: clamp(56px, 7vw, 100px); right: 7%; bottom: 8%; animation-direction: reverse; animation-duration: 16s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shar { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(-8px, -14px) rotate(2deg); } }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: center; width: 100%; padding-top: 32px; padding-bottom: 0; }
.hero-text { padding-bottom: 7%; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 8px 16px; border-radius: 12px; background: var(--teal-d); color: #fff; font-size: 18px; font-weight: 800; box-shadow: 0 4px 0 #062f33; }
.hero h1 { font-size: clamp(42px, min(6.3vw, 10svh), 92px); font-weight: 900; line-height: 1.02; text-shadow: 0 2px 0 rgba(255, 255, 255, .6); margin-bottom: 20px; }
.hl { color: #0a5f5c; background: linear-gradient(transparent 64%, rgba(242, 165, 49, .6) 64%, rgba(242, 165, 49, .6) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; max-width: 30em; margin-bottom: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.shields { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.shields li {
  display: flex; align-items: center; gap: 10px; min-height: 74px; padding: 0 22px 0 14px; border-radius: 20px;
  font-size: 22px; font-weight: 900; line-height: 1.1;
  background: linear-gradient(180deg, #fffaf0, #f6e0ba); border: 3px solid var(--wood);
  box-shadow: inset 0 2px 0 #fff, 0 5px 0 var(--wood-d), 0 10px 18px rgba(60, 30, 10, .22);
}
.shields img { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 2px 1px rgba(90, 50, 20, .3)); }
.sw-state { margin: 18px 0 0; font-size: 17px; font-weight: 700; }
.sw-state.sw-done::before { content: "✓ "; color: var(--teal); font-weight: 900; }
.note { margin: 18px 0 0; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .78); border: 2px solid var(--teal-l); font-size: 22px; font-weight: 800; max-width: 34em; }
.hero-bip { align-self: end; display: flex; justify-content: center; padding-bottom: 1.5%; }
.hero-bip .bip { width: min(100%, 470px, calc((100svh - var(--top) - var(--hint)) * .6)); }

/* ---------- общие разделы ---------- */
.sec { position: relative; padding: clamp(60px, 8vw, 110px) 0; }
.sec-head { text-align: center; max-width: 900px; margin: 0 auto clamp(32px, 4.5vw, 56px); }
.sec-head h2 { text-shadow: 0 2px 0 rgba(255, 255, 255, .5); }
.sec-head .sub { margin: 16px auto 0; font-size: clamp(20px, 1.9vw, 25px); font-weight: 700; max-width: 40em; }
.sec-head.light h2 { color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.sec-head.light .sub { color: #ffe7c2; }
.sec-head.left { text-align: left; margin-left: 0; }
/* светлое дерево мастерской: бесшовная текстура Codex (img/art/fon-doski.png → img/web), высветлена под текст */
.doski {
  background-color: #ebc48f;
  background-image: linear-gradient(rgba(255, 236, 200, .5), rgba(255, 236, 200, .5)), url(../img/web/fon-doski.webp);
  background-size: auto, 512px 512px;
}
/* тёмное дерево */
.doski-t {
  background-color: #6b4226;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 124px, rgba(30, 14, 4, .5) 124px 127px, rgba(255, 210, 160, .12) 127px 129px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 13px, rgba(255, 255, 255, .03) 13px 15px, transparent 15px 31px),
    linear-gradient(180deg, #7a4b2a, #5a361d);
}

/* деревянная рамка кадра с гвоздиком */
.ramka {
  position: relative; margin: 0; padding: 10px; background: #fffaf0; border-radius: 18px;
  border: 10px solid #a8693a; box-shadow: inset 0 0 0 3px #7a4a26, 0 8px 0 var(--wood-dd), 0 20px 30px rgba(0, 0, 0, .3);
}
.ramka img { border-radius: 6px; width: 100%; }
.ramka figcaption { padding: 12px 4px 2px; text-align: center; font-size: 20px; font-weight: 800; line-height: 1.2; }
.tag { position: absolute; top: -20px; left: 16px; padding: 7px 18px !important; border-radius: 12px; background: var(--ink); color: #fff; font-size: 20px !important; font-weight: 900 !important; box-shadow: 0 4px 0 #1d1008; }
.tag.ok { background: var(--teal); box-shadow: 0 4px 0 #04403e; }

/* ---------- 2. навыки для мира с ИИ ---------- */
.tabs { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 22px; counter-reset: t; }
.tab, .mind4 li, .p3 li {
  position: relative; border-radius: 24px;
  background: linear-gradient(180deg, #fff6e4, #f6dcae); border: 4px solid #9a6438;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .8), 0 8px 0 #6b4024, 0 18px 28px rgba(60, 30, 10, .28);
}
.tab { padding: 60px 20px 26px; text-align: center; }
.tab::before, .tab::after { content: ""; position: absolute; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e9c48d, #7a4a26); }
.tab::before { left: 14px; } .tab::after { right: 14px; }
.tab b { display: block; font-size: 24px; font-weight: 900; line-height: 1.12; margin-bottom: 10px; }
.tab > span:not(.ico) { display: block; font-size: 20px; font-weight: 600; line-height: 1.35; }
.ico {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #fffdf6, #fbe6bf 60%, #efc88a); border: 4px solid #9a6438;
  box-shadow: inset 0 3px 0 #fff, 0 6px 0 #6b4024, 0 10px 16px rgba(0, 0, 0, .25);
}
.ico img { width: 74%; height: 74%; filter: drop-shadow(0 3px 2px rgba(90, 50, 20, .3)); }
.tab .ico { position: absolute; top: -48px; left: 50%; transform: translateX(-50%); }
.bs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; margin-top: 76px; }
.bs-arrow { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 34% 28%, #ffe08f, #f2a531 52%, #c8611a); box-shadow: 0 6px 0 #6b4024; }
.bs-arrow::before { content: ""; width: 26px; height: 26px; border-top: 8px solid #fff; border-right: 8px solid #fff; transform: translateX(-4px) rotate(45deg); border-radius: 3px; }
.bs-cap { grid-column: 1 / -1; text-align: center; font-size: 21px; font-weight: 700; max-width: 820px; margin: 22px auto 0; }

/* ---------- 3. логика, реакция, смекалка — небо и остров ---------- */
.nebo { background: #8fd6f6 url(../img/igra/nebo.webp) center / cover no-repeat; overflow: hidden; }
.nebo .sec-head h2 { color: var(--ink); text-shadow: 0 3px 0 rgba(255, 255, 255, .8); }
.nebo .sec-head .sub { background: rgba(255, 255, 255, .78); display: inline-block; padding: 8px 18px; border-radius: 14px; }
.oblaka { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.nebo > .wrap { position: relative; z-index: 1; }
.ob { position: absolute; width: clamp(200px, 26vw, 340px); aspect-ratio: 2 / 1; opacity: .92;
  background: url(../img/web/oblako-1.webp) center / contain no-repeat; animation: plyt 38s linear infinite; }
.ob-2, .ob-3 { background-image: url(../img/web/oblako-2.webp); }
.ob-1 { top: 2%; left: -10%; }
.ob-2 { top: 44%; left: 60%; transform: scale(.7); animation-duration: 52s; animation-delay: -20s; }
.ob-3 { bottom: 8%; left: 20%; transform: scale(.85); animation-duration: 46s; animation-delay: -34s; }
@keyframes plyt { from { translate: -20vw 0; } to { translate: 110vw 0; } }
.mind { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ostrov { border-radius: 30px; border: 8px solid #fff; box-shadow: 0 10px 0 rgba(30, 90, 130, .35), 0 26px 40px rgba(20, 60, 90, .3); animation: parit 8s ease-in-out infinite; }
@keyframes parit { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.mind4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mind4 li { display: grid; grid-template-columns: 70px 1fr; column-gap: 14px; align-items: center; padding: 18px 16px; }
.mind4 .ico { width: 70px; height: 70px; grid-row: span 2; border-width: 3px; box-shadow: 0 4px 0 #6b4024; }

.mind4 b { font-size: 25px; font-weight: 900; line-height: 1.1; }
.mind4 li > span:not(.ico) { font-size: 20px; font-weight: 800; color: var(--teal); line-height: 1.25; }

/* ---------- 4. это настоящая игра ---------- */
.lenta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; }
.lenta .ramka:nth-child(odd) { transform: rotate(-1.3deg); }
.lenta .ramka:nth-child(even) { transform: rotate(1.1deg); }
.lenta .ramka::before { content: ""; position: absolute; top: -18px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6ff0ea, #0f8f8b 60%, #0a5552); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); z-index: 1; }

/* ---------- 5. здесь безопасно ---------- */
.safe { background: radial-gradient(ellipse at 15% 0%, #12807d, var(--teal-d) 55%, #083a3d); color: #fff; }
.safe-kicker { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; color: #ffd27a; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.safe-big { font-size: clamp(40px, 6.4vw, 88px); font-weight: 900; line-height: 1.04; margin: 0 0 44px; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.safe3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.safe3 li { padding: 24px 24px 26px; border-radius: 22px; background: rgba(255, 255, 255, .09); border: 2px solid rgba(255, 255, 255, .22); }
.safe3 b { display: block; font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.safe3 span { font-size: 20px; font-weight: 600; color: #e6f6f4; }
.safe .after { margin: 30px 0 0; font-size: 20px; }
.safe a { color: #ffd27a; font-weight: 800; }

/* ---------- 6. для родителей ---------- */
.parents { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.p3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: p; }
.p3 li { padding: 20px 22px 22px 92px; min-height: 96px; counter-increment: p; }
.p3 li::before { content: counter(p); position: absolute; left: 18px; top: 18px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 900; color: var(--ink); background: radial-gradient(circle at 34% 28%, #ffe08f, #f2a531 52%, #c8611a); box-shadow: 0 4px 0 #6b4024; }
.p3 b { display: block; font-size: 24px; font-weight: 900; line-height: 1.15; margin-bottom: 6px; }
.p3 li > span { display: block; font-size: 20px; font-weight: 600; }
.p3 .p-spit { padding-right: 128px; }
.p-spit img { position: absolute; right: 6px; bottom: 4px; width: 116px; }
.parents .after { margin: 24px 0 0; font-size: 20px; font-weight: 800; }

/* ---------- 7. финал: вечерняя мастерская ---------- */
.final { position: relative; overflow: hidden; color: #fff; padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  background: radial-gradient(ellipse at 30% 110%, rgba(242, 165, 49, .35), transparent 55%), linear-gradient(180deg, #12303a, #0b4f52); }
.final-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.final-bip { display: flex; align-items: flex-end; justify-content: center; }
.final-bip .bip { width: min(310px, 44vw); }
.final-lera { width: min(190px, 26vw); margin-left: -18px; margin-bottom: 2%; }
.final h2 { color: #fff; margin-bottom: 18px; }
.final p { font-size: 21px; color: #e6f6f4; max-width: 30em; margin-bottom: 30px; }
.final .note { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(95, 224, 220, .6); }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.stores span { border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; padding: 10px 16px; font-size: 18px; font-weight: 800; color: #fff; }
.stores em { font-style: normal; color: #5fe0dc; margin-left: 8px; }

/* подвал */
.foot { background: #0a2228; color: #cfdedb; padding: 28px 0; font-size: 18px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.foot a { color: #fff; }
.foot .copy { margin-left: auto; }
.foot-langs { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---------- адаптив ---------- */
/* планшет и узкий ноутбук: кнопка в своей строке, обе плашки — одной строкой под ней */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 12px; }
  .hero h1 { font-size: clamp(40px, min(5.8vw, 8.5svh), 60px); }
  .shields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
  .shields li { min-height: 64px; font-size: 20px; padding: 6px 14px 6px 12px; }
  .shields img { width: 40px; height: 40px; }
}
@media (max-width: 1000px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .mind, .parents { grid-template-columns: 1fr; }
  .lenta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --top: 60px; }
  .brand img { height: 34px; }
  .btn-sm { min-height: 42px; padding: 0 16px; font-size: 17px; }
  .top .wrap { gap: 10px; }
  .hero { min-height: 0; }
  .hero-in { grid-template-columns: 1fr; gap: 0; padding-top: 22px; }
  .hero-text { padding-bottom: 8px; }
  .hero-scene::after { background: linear-gradient(180deg, rgba(251, 236, 208, .95) 0%, rgba(251, 236, 208, .9) 58%, rgba(251, 236, 208, .25) 80%, rgba(251, 236, 208, 0) 92%); }
  .hero-stena { object-position: 88% 50%; }
  .hero-verstak { height: 92px; }
  .eyebrow { font-size: 16px; padding: 6px 12px; margin-bottom: 14px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); margin-bottom: 12px; }
  .lead { font-size: 20px; line-height: 1.35; margin-bottom: 16px; }
  .lang-hint { font-size: 15px; padding: 6px 10px; }
  body:has(.lang-hint:not([hidden])) { --hint: 34px; }
  .cta { gap: 14px; }
  .btn-big { width: 100%; min-height: 62px; font-size: 23px; }
  .shields { gap: 10px; }
  .shields li { min-height: 60px; font-size: 18px; padding: 6px 10px 6px 8px; gap: 8px; border-radius: 16px; }
  .shields img { width: 36px; height: 36px; }
  .hero-bip { padding-top: 0; }
  .hero-bip .bip { width: min(46vw, 200px); }
  .note { font-size: 18px; padding: 8px 12px; margin-top: 12px; }
  .gear-1 { bottom: 60px; } .gear-2 { bottom: 40px; }
  .hero-shar { top: auto; bottom: 125px; right: auto; left: 5%; width: 48px; }
  /* Строка статуса скачивания видна (2 строки): ужимаем её, пометку и Бипа, чтобы Бип с ботинками остался в первом экране 390×844 (k9, ход 36). */
  body:has(#sw-state:not([hidden])) .sw-state { font-size: 15px; line-height: 1.3; margin-top: 10px; }
  body:has(#sw-state:not([hidden])) .note { margin-top: 8px; font-size: 15px; padding: 6px 10px; }
  body:has(#sw-state:not([hidden])) .hero-bip .bip { width: min(40vw, 150px); }
  body:has(#sw-state:not([hidden])) .hero-shar { bottom: 105px; }
  .tabs { grid-template-columns: 1fr; gap: 58px; }
  .bs { grid-template-columns: 1fr; justify-items: center; gap: 28px; }
  .bs .ramka { width: 100%; }
  .bs-arrow { transform: rotate(90deg); }
  .p3 li { padding-left: 84px; }
  /* «Бип устал»: спящий Бип обтекается текстом справа, а не отнимает 92 px у всей карточки */
  .p3 .p-spit { padding-right: 16px; }
  .p-spit img { position: static; float: right; width: 78px; margin: -6px -6px 0 6px; }
  .mind4 { grid-template-columns: 1fr; }
  .mind4 li { grid-template-columns: 76px 1fr; }
  .mind4 .ico { width: 76px; height: 76px; }
  /* лента кадров на телефоне — листается вбок */
  .lenta { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 8px 30px; margin: 0 -8px; }
  .lenta .ramka { scroll-snap-align: center; transform: none !important; }
  .safe3 { grid-template-columns: 1fr; }
  .final-in { grid-template-columns: 1fr; text-align: center; }
  .final p { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .foot .copy { margin-left: 0; }
}
/* телефон боком: низкий экран — две колонки, всё главное в первом экране */
@media (max-height: 500px) and (min-width: 600px) {
  :root { --top: 54px; }
  .brand img { height: 34px; }
  .btn-sm { min-height: 40px; font-size: 17px; }
  .lang summary { min-height: 40px; }
  .lang-hint { font-size: 14px; padding: 4px 10px; }
  body:has(.lang-hint:not([hidden])) { --hint: 28px; }
  .hero { min-height: calc(100svh - var(--top) - var(--hint)); }
  .hero-in { grid-template-columns: minmax(0, 1.8fr) minmax(0, .5fr); gap: 8px; padding-top: 10px; }
  .hero-text { padding-bottom: 10px; }
  .eyebrow { font-size: 14px; padding: 3px 10px; margin-bottom: 6px; border-radius: 9px; box-shadow: 0 3px 0 #062f33; }
  .hero h1 { font-size: min(4.6vw, 10.5vh); margin-bottom: 6px; }
  .lead { font-size: 17px; line-height: 1.3; margin-bottom: 10px; max-width: 34em; }
  .cta { flex-wrap: nowrap; gap: 8px; }
  .shields { display: flex; flex-wrap: nowrap; gap: 8px; width: auto; }
  .btn-big { width: auto; min-height: 50px; font-size: 18px; padding: 0 18px; gap: 8px; }
  .btn-big .tri { border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
  .shields li { min-height: 50px; max-width: 190px; font-size: 15px; line-height: 1.1; padding: 4px 10px 4px 7px; gap: 6px; border-radius: 14px; border-width: 2px; }
  .shields img { width: 30px; height: 30px; }
  .sw-state { margin-top: 6px; font-size: 15px; }
  .hero-bip { padding-bottom: 2%; }
  .hero-bip .bip { width: calc((100svh - var(--top) - var(--hint)) * .6); }
  .note { margin-top: 6px; padding: 4px 12px; font-size: 16px; max-width: none; }
  .hero-verstak { height: 18%; }
  .gear-1 { width: 80px; } .gear-2 { width: 50px; }
  .hero-scene::after { background: linear-gradient(90deg, rgba(251, 236, 208, .95) 0%, rgba(251, 236, 208, .9) 60%, rgba(251, 236, 208, .2) 78%, rgba(251, 236, 208, 0) 88%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
