/* Лендинг «Играем в хоккей»: те же цвета, что в приложении (#132646 и #f7971d), красная центральная линия как мотив */
:root {
  --navy-900: #091426;
  --navy-800: #0d1d38;
  --navy-700: #132646;
  --navy-600: #1b3560;
  --navy-500: #2b4a7c;
  --orange: #f7971d;
  --orange-hi: #ffb54a;
  --orange-lo: #dd7f0c;
  --orange-deep: #a95a05;
  --red: #d62c2c;
  --ice: #f3f6fb;
  --ice-2: #e5ebf4;
  --ink: #132646;
  --muted: #55688a;
  --on-dark: #e8eefb;
  --on-dark-2: #a9b9d6;
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--ice); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--navy-800); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 800; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; border-radius: 6px; }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(9, 20, 38, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 900; font-size: 13px; line-height: 1.1; letter-spacing: 0.06em; text-transform: uppercase; }
.brand img { height: 40px; width: auto; }
.brand-word { font-size: 21px; letter-spacing: 0.08em; line-height: 1; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--on-dark-2); text-decoration: none; font-weight: 700; font-size: 14px; transition: color 0.2s; }
.nav a:hover { color: var(--orange-hi); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.burger i { display: block; height: 3px; border-radius: 2px; background: #fff; transition: transform 0.25s var(--ease), opacity 0.2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none; font: 800 15px/1.1 var(--font); letter-spacing: 0.03em; color: var(--navy-800);
  background: linear-gradient(180deg, var(--orange-hi), var(--orange) 60%, var(--orange-lo)); box-shadow: 0 4px 0 var(--orange-deep), 0 14px 28px rgba(247, 151, 29, 0.28); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--orange-deep), 0 18px 32px rgba(247, 151, 29, 0.34); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-deep); }
.btn-sm { padding: 10px 16px; font-size: 13px; border-radius: 11px; box-shadow: 0 3px 0 var(--orange-deep); }
.btn-lg { padding: 18px 30px; font-size: 16px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--orange-hi); color: var(--orange-hi); }
.link { color: var(--orange-hi); font-weight: 800; text-decoration: none; font-size: 14px; }
.link:hover { text-decoration: underline; }

/* ---------- каток-подложка ---------- */
.rink { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rink svg { width: 100%; height: 100%; }
.r-ring { stroke: rgba(120, 160, 220, 0.22); stroke-width: 3; }
.r-red { stroke: var(--red); stroke-width: 6; opacity: 0.55; }
.r-dot { fill: rgba(120, 160, 220, 0.3); }

/* ---------- герой ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 78% 30%, var(--navy-600) 0%, var(--navy-800) 52%, var(--navy-900) 100%); padding: 64px 0 88px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-hi); }
.eyebrow i { width: 26px; height: 4px; border-radius: 2px; background: var(--red); }
h1 { margin-top: 18px; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.04; font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; }
.hl { color: var(--orange); }
.lead { margin-top: 20px; max-width: 540px; font-size: clamp(16px, 1.6vw, 19px); color: var(--on-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--on-dark-2); font-size: 14px; font-weight: 600; }
.ticks li::before { content: "✓"; color: var(--orange); font-weight: 900; margin-right: 8px; }

.hero-visual { position: relative; height: 560px; }
.phone { margin: 0; width: 100%; max-width: 270px; padding: 8px; border-radius: 38px; background: linear-gradient(160deg, #2b3a56, #0a1220); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12); }
.phone .screen { border-radius: 30px; overflow: hidden; background: var(--navy-900); aspect-ratio: 780 / 1688; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .phone { position: absolute; width: 260px; }
.phone-back { left: 4%; top: 46px; transform: rotate(-6deg); opacity: 0.95; }
.phone-front { right: 6%; top: 0; transform: rotate(4deg); z-index: 2; }
.float { position: absolute; z-index: 3; display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3); font-size: 12px; animation: bob 5s ease-in-out infinite; }
.float b { font-size: 13px; font-weight: 800; }
.float span { color: var(--muted); font-weight: 600; }
.float::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 3px 3px 0; background: var(--orange); }
.f1 { left: -2%; top: 150px; }
.f2 { right: -2%; bottom: 40px; animation-delay: -2.4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- секции ---------- */
.sec { padding: 92px 0; }
.sec.light { background: var(--ice); color: var(--ink); }
.sec.dark { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #fff; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-lo); }
.dark .kicker, .final .kicker { color: var(--orange-hi); }
h2 { margin-top: 12px; max-width: 760px; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.12; font-weight: 900; letter-spacing: -0.015em; text-wrap: balance; }
.sub { margin-top: 14px; max-width: 620px; color: var(--muted); font-size: 16px; }
.dark .sub { color: var(--on-dark-2); }
h3 { font-size: 19px; line-height: 1.25; font-weight: 800; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.card { position: relative; padding: 30px 28px 32px; border-radius: 22px; background: #fff; box-shadow: 0 1px 0 var(--ice-2), 0 18px 40px rgba(19, 38, 70, 0.08); }
.card p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.card .num { display: block; margin-bottom: 14px; font-size: 38px; font-weight: 900; line-height: 1; color: var(--orange); }
.card::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, var(--orange), transparent); }

.aud { padding: 30px 28px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; gap: 14px; transition: border-color 0.25s, transform 0.25s var(--ease); }
.aud:hover { border-color: var(--orange); transform: translateY(-4px); }
.aud p { color: var(--on-dark-2); font-size: 15px; flex: 1; }

/* ---------- шаги ---------- */
.step { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: center; margin-top: 64px; }
.step.flip { grid-template-columns: 300px 1fr; }
.step.flip .step-text { order: 2; }
.step .phone { justify-self: center; max-width: 280px; border-radius: 38px 38px 0 0; padding-bottom: 0; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.step .phone .screen { aspect-ratio: 780 / 1280; border-radius: 30px 30px 0 0; }
.step .phone .screen img { object-position: top; }
.step-no { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%; font-size: 20px; font-weight: 900; color: var(--navy-800); background: radial-gradient(circle at 35% 28%, var(--orange-hi), var(--orange) 55%, var(--orange-lo)); box-shadow: 0 4px 0 var(--orange-deep); }
.step h3 { font-size: clamp(22px, 2.6vw, 30px); }
.step p { margin-top: 14px; max-width: 480px; color: var(--muted); font-size: 16px; }

/* ---------- возможности ---------- */
.feat article { padding: 6px 4px; }
.feat svg { width: 40px; height: 40px; padding: 8px; box-sizing: content-box; border-radius: 14px; background: rgba(247, 151, 29, 0.12); fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin-top: 18px; }
.feat p { margin-top: 8px; color: var(--on-dark-2); font-size: 15px; }

/* ---------- скриншоты ---------- */
.carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 48px max(20px, calc((100vw - 1160px) / 2)) 14px; scroll-padding-left: max(20px, calc((100vw - 1160px) / 2)); scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: none; width: 250px; scroll-snap-align: start; }
.slide figcaption { margin-top: 16px; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.car-ctl { display: flex; gap: 10px; margin-top: 10px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--navy-700); background: transparent; color: var(--navy-700); font: 800 20px var(--font); cursor: pointer; transition: background 0.2s, color 0.2s; }
.round:hover { background: var(--navy-700); color: #fff; }

/* ---------- цифры ---------- */
.stats { background: var(--navy-700); color: #fff; border-top: 4px solid var(--red); }
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 72px; padding: 44px 0; text-align: center; } /* плитки с нулём прячутся, остальные остаются по центру */
.stats-grid > div { min-width: 150px; }
.stats-grid b { display: block; font-size: clamp(30px, 3.8vw, 48px); font-weight: 900; line-height: 1; color: var(--orange); white-space: nowrap; }
.stats-grid span { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--on-dark-2); }
.stats-grid [data-live][hidden] { display: none; }

/* ---------- доверие ---------- */
.trust { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.trust-list { display: grid; gap: 18px; }
.trust-list li { display: flex; gap: 18px; padding: 22px 24px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.trust-list svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-list b { font-size: 17px; }
.trust-list p { margin-top: 4px; color: var(--on-dark-2); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: start; }
.seo-text { display: grid; gap: 36px; }
.seo-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.seo-cols article { background: #fff; border: 1px solid var(--ice-2); border-radius: 16px; padding: 22px 24px; }
.seo-cols h3 { margin: 0 0 8px; font-size: 18px; }
.seo-cols p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 760px) { .seo-cols { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--ice-2); background: #fff; }
.faq details:first-child { border-radius: 16px 16px 0 0; }
.faq details:last-child { border-radius: 0 0 16px 16px; border-bottom: 0; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 800; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ice); color: var(--orange-lo); font-size: 20px; font-weight: 800; transition: transform 0.25s var(--ease), background 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--orange); color: var(--navy-800); }
.inline-link { font-weight: 800; color: var(--orange-lo); text-decoration: underline; text-underline-offset: 3px; }
.faq details p { padding: 0 24px 22px; max-width: 640px; color: var(--muted); font-size: 15px; }

/* ---------- финал ---------- */
.final { position: relative; overflow: hidden; color: #fff; background: radial-gradient(110% 120% at 85% 40%, var(--navy-600), var(--navy-800) 60%, var(--navy-900)); padding: 88px 0; }
.final-grid { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.final h2 { margin-top: 0; }
.final .lead { max-width: 520px; }
.qr { display: grid; gap: 10px; justify-items: center; padding: 18px 18px 14px; border-radius: 22px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.qr img { width: 148px; height: 148px; }
.qr-row { display: flex; gap: 16px; }

.site-footer { background: var(--navy-900); color: var(--on-dark-2); padding: 32px 0; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.foot p { flex: 1; min-width: 220px; font-size: 14px; }
.foot .credit { flex: 0 0 100%; font-size: 12px; opacity: 0.6; margin: 0; }
.foot .credit a { color: inherit; text-decoration: underline; }

/* ---------- как начать: Telegram или приложение на телефоне ---------- */
.start { background: linear-gradient(180deg, var(--ice), #e8eef8); }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.way { appearance: none; cursor: pointer; text-align: left; display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 20px; border: 2px solid transparent; background: #fff; color: var(--ink); font: inherit;
  box-shadow: 0 1px 0 var(--ice-2), 0 14px 34px rgba(19, 38, 70, 0.08); transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.way:hover { transform: translateY(-2px); }
.way.on { border-color: var(--orange); background: linear-gradient(180deg, #fff, #fff6e9); box-shadow: 0 0 0 4px rgba(247, 151, 29, 0.16), 0 18px 40px rgba(247, 151, 29, 0.18); }
.way-ico { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--navy-700); color: var(--orange-hi); transition: background 0.2s, color 0.2s; }
.way.on .way-ico { background: linear-gradient(160deg, var(--orange-hi), var(--orange-lo)); color: var(--navy-800); }
.way-ico svg { width: 28px; height: 28px; }
.way-text b { display: block; font-size: 18px; font-weight: 800; }
.way-text small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--muted); }

.way-panel { margin-top: 24px; padding: 38px; border-radius: 28px; background: #fff; box-shadow: 0 24px 60px rgba(19, 38, 70, 0.1); animation: panel-in 0.35s var(--ease) both; }
.way-panel[hidden], .os-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.way-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; }
@media (min-width: 961px) {
  #way-phone .way-grid { grid-template-columns: 1.05fr 0.95fr; gap: 36px; }
  .way-grid > :last-child { position: sticky; top: 100px; } /* картинки остаются на виду, пока читаешь шаги */
}

.os-tabs { display: inline-flex; padding: 5px; margin-bottom: 28px; border-radius: 999px; background: var(--ice); box-shadow: inset 0 0 0 1px var(--ice-2); }
.os { appearance: none; border: 0; cursor: pointer; padding: 11px 28px; border-radius: 999px; background: transparent; font: 800 15px var(--font); color: var(--muted); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.os.on { background: var(--navy-700); color: #fff; box-shadow: 0 6px 16px rgba(19, 38, 70, 0.25); }

.steps { display: grid; }
.steps > li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding-bottom: 26px; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 52px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(var(--orange), rgba(247, 151, 29, 0.12)); }
.steps .n { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font: 900 20px var(--font); color: var(--navy-800);
  background: radial-gradient(circle at 35% 28%, var(--orange-hi), var(--orange) 55%, var(--orange-lo)); box-shadow: 0 4px 0 var(--orange-deep); }
.steps h3 { padding-top: 9px; font-size: 18px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ico { display: inline-grid; place-items: center; vertical-align: -6px; width: 26px; height: 26px; border-radius: 8px; background: var(--ice); color: var(--navy-700); box-shadow: inset 0 0 0 1px var(--ice-2); }
.ico svg { width: 17px; height: 17px; fill: currentColor; }
.way-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
.qr-inline { grid-auto-flow: column; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; box-shadow: none; border: 1px solid var(--ice-2); }
.qr-inline img { width: 96px; height: 96px; }
.qr-inline span { max-width: 130px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.way-note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; border-left: 4px solid var(--orange); background: var(--ice); font-size: 14px; line-height: 1.5; color: var(--ink); }
.way-cta + .way-note { margin-top: 24px; }

/* макет чата с ботом */
.chat-mock { justify-self: center; max-width: 290px; }
.screen.chat { display: flex; flex-direction: column; aspect-ratio: 780 / 1320; background: #0e1621; color: #e8eefb; font-size: 12.5px; }
.chat-top { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: #17212b; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.chat-ava { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-700); }
.chat-ava img { height: 22px; width: auto; }
.chat-top b { display: block; font-size: 12.5px; line-height: 1.25; }
.chat-top small { color: #6d7f91; font-size: 11px; }
.chat-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 10px; }
.bubble { position: relative; align-self: flex-start; max-width: 94%; padding: 10px 12px 20px; border-radius: 14px 14px 14px 4px; background: #182533; line-height: 1.45; }
.bubble time { position: absolute; right: 10px; bottom: 5px; font-size: 10px; color: #6d7f91; }
.inline-btn { position: relative; align-self: flex-start; width: 94%; padding: 10px 8px; text-align: center; border-radius: 10px; background: rgba(255, 255, 255, 0.11); font-weight: 700; }
.pulse { position: absolute; inset: -4px; border-radius: 13px; border: 2px solid var(--orange); animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { opacity: 0.95; transform: scale(1); } 100% { opacity: 0; transform: scale(1.07); } }
.chat-bar { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: #17212b; }
.menu-btn { padding: 7px 13px; border-radius: 999px; background: var(--orange); color: var(--navy-800); font-weight: 800; font-size: 12px; }
.chat-input { flex: 1; padding: 8px 12px; border-radius: 999px; background: #0e1621; color: #6d7f91; }

/* три экрана приложения без Telegram */
.shots3 { display: flex; gap: 14px; justify-content: center; }
.shots3 figure { flex: 1 1 0; min-width: 0; margin: 0; text-align: center; }
.shots3 figure:nth-child(odd) { margin-top: 22px; }
.shots3 .phone { max-width: none; padding: 5px; border-radius: 22px; box-shadow: 0 18px 36px rgba(19, 38, 70, 0.28), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12); }
.shots3 .phone .screen { border-radius: 17px; }
.shots3 figcaption { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.shots3 figcaption b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--orange); color: var(--navy-800); font-size: 12px; }
/* схематичные макеты экранов телефона: подсвечено, куда нажать (рисунки, не снимки экрана) */
.mk { max-width: 360px; margin: 14px 0 6px; }
.mk figcaption { margin-top: 8px; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.mk-card { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid #d5d9e2; background: #f2f2f7; color: #15171c; box-shadow: 0 12px 28px rgba(19, 38, 70, 0.14);
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif; }
.mk-hl { position: relative; border-radius: 10px; outline: 3px solid var(--orange); outline-offset: 3px; animation: mk-pulse 1.8s ease-in-out infinite; }
@keyframes mk-pulse { 50% { outline-color: rgba(247, 151, 29, 0.3); } }

.mk-home { padding: 16px 16px 12px; background: linear-gradient(160deg, #cfe0ff, #f1d9ff); }
.mk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mk-grid i, .mk-dock i { display: block; aspect-ratio: 1; border-radius: 22%; background: var(--c, #bbb); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08); }
.mk-dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; padding: 10px; border-radius: 22px; background: rgba(255, 255, 255, 0.5); }
.mk-dock i.mk-safari { background: none; box-shadow: none; }
.mk-safari svg { display: block; width: 100%; height: 100%; }

.mk-paste { padding: 14px 14px 12px; }
.mk-page { height: 74px; padding: 6px 4px; }
.mk-page b { display: block; height: 8px; margin: 0 0 9px; border-radius: 4px; background: #dfe2ea; }
.mk-page b:nth-child(2) { width: 70%; }
.mk-page b:nth-child(3) { width: 45%; }
.mk-bubble { position: relative; width: max-content; max-width: 100%; margin: 0 auto 12px; padding: 8px 14px; border-radius: 10px; background: #2b2d33; color: #fff; font-size: 13px; font-weight: 600; }
.mk-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 12px; height: 12px; background: #2b2d33; transform: translateX(-50%) rotate(45deg); }
.mk-addr { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #e3e5ec; font-size: 13.5px; font-weight: 600; }
.mk-addr svg { flex: none; width: 14px; height: 14px; color: #5b6070; }
.mk-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-addr.small { margin: 12px 14px 6px; padding: 8px 12px; font-size: 12.5px; }

.mk-bar { padding-bottom: 4px; }
.mk-tools { display: flex; align-items: center; justify-content: space-around; padding: 10px 6px 12px; color: #2a7bff; }
.mk-tools svg { display: block; width: 26px; height: 26px; }
.mk-tools svg.dim { opacity: 0.35; }
.mk-tools > span { display: grid; place-items: center; padding: 4px; }

.mk-sheet { background: #f7f7fa; }
.mk-sh-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #dcdee6; }
.mk-sh-head img { width: 42px; height: 42px; border-radius: 10px; }
.mk-sh-head b { display: block; font-size: 14px; }
.mk-sh-head small { font-size: 12px; color: #7a8090; }
.mk-sheet ul { margin: 10px 12px 12px; padding: 0; overflow: hidden; border-radius: 12px; background: #fff; list-style: none; }
.mk-sheet li { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid #ececf1; font-size: 14px; }
.mk-sheet li:last-child { border-bottom: 0; }
.mk-sheet li svg { width: 20px; height: 20px; }
.mk-sheet li.mk-hl, .mk-menu li.mk-hl { border-radius: 0; outline-offset: -3px; background: #fff6e9; font-weight: 700; }

.mk-add { padding-bottom: 14px; }
.mk-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #dcdee6; background: #f8f8fb; font-size: 14px; }
.mk-nav span { color: #2a7bff; }
.mk-nav .blue { padding: 2px 8px; font-weight: 700; }
.mk-form { display: flex; align-items: center; gap: 12px; margin: 14px 14px 8px; padding: 10px; border-radius: 12px; background: #fff; }
.mk-form img { flex: none; width: 52px; height: 52px; border-radius: 12px; }
.mk-name { flex: 1; padding: 8px 0; border-bottom: 1px solid #e1e3ea; font-size: 16px; font-weight: 600; }
.mk-url, .mk-note { margin: 0 16px; font-size: 12px; color: #7a8090; }
.mk-note { margin-top: 8px; }

.mk-and { max-width: 250px; padding: 6px 0; background: #fff; }
.mk-menu { margin: 0; padding: 0; list-style: none; }
.mk-menu li { padding: 11px 18px; font-size: 14px; }
.mk-and-dialog { padding: 18px; background: #fff; }
.mk-d-head { display: flex; align-items: center; gap: 12px; }
.mk-d-head img { width: 44px; height: 44px; border-radius: 10px; }
.mk-d-head b { display: block; font-size: 15px; }
.mk-d-head small { font-size: 12.5px; color: #70778a; }
.mk-d-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; font-size: 14px; font-weight: 700; color: #2a7bff; }
.mk-d-btns span { padding: 8px 16px; border-radius: 999px; }
.mk-d-btns .fill { background: #2a7bff; color: #fff; }

/* «Открылось не в Safari?»: раскрывающаяся подсказка */
.help { margin-top: 14px; border: 1px solid rgba(247, 151, 29, 0.5); border-radius: 16px; background: #fff7ea; }
.help summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "▾"; margin-left: auto; padding-left: 8px; font-size: 18px; color: var(--orange-lo); transition: transform 0.25s var(--ease); }
.help[open] summary::after { transform: rotate(180deg); }
.help-ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); font-weight: 900; color: var(--navy-800); }
.help-body { padding: 0 16px 16px; }
.steps .help-body > p, .help-body > p { margin: 0 0 4px; font-size: 14.5px; color: var(--ink); }
.mini { display: grid; gap: 18px; margin: 14px 0; padding: 0; list-style: none; counter-reset: mini; }
.mini > li { position: relative; padding-left: 36px; font-size: 14.5px; line-height: 1.5; color: var(--ink); counter-increment: mini; }
.mini > li::before { content: counter(mini); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-700); font-size: 13px; font-weight: 800; color: #fff; }
.help-note, .steps .help-note { margin-top: 12px; padding: 12px 14px; border-left: 4px solid var(--orange); border-radius: 12px; background: #fff; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.copybox { display: flex; gap: 8px; margin-top: 10px; }
.copybox input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--ice-2); border-radius: 12px; background: #fff; font: 600 13px var(--font); color: var(--ink); }

/* перенос профиля из Telegram: шаги и два настоящих экрана приложения */
.codeflow { margin-top: 26px; padding: 22px 22px 20px; border: 1px solid rgba(247, 151, 29, 0.5); border-radius: 20px; background: #fffaf2; }
.codeflow h3 { font-size: 19px; }
.codeflow-lead { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.codeflow-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; margin-top: 16px; }
.codeflow .way-note { background: #fff; }
.shots2 figure:nth-child(odd) { margin-top: 0; }
.shots2 figure:nth-child(even) { margin-top: 22px; }

/* ---------- появление при прокрутке (только если JS работает) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- планшет и телефон ---------- */
@media (max-width: 960px) {
  .hero { padding: 40px 0 64px; }
  .hero .r-red, .hero .r-ring { display: none; } /* на узком экране линии шли бы через текст */
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { height: 500px; max-width: 460px; width: 100%; margin: 0 auto; }
  .grid3 { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .sec { padding: 64px 0; }
  .step, .step.flip { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .step.flip .step-text { order: 0; }
  .stats-grid { gap: 24px 40px; padding: 34px 0; }
  .trust, .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .final-grid { flex-direction: column; align-items: flex-start; }
  .qr-row { flex-wrap: wrap; }
  .ways { grid-template-columns: 1fr; margin-top: 28px; }
  .way { padding: 16px 16px; }
  .way-panel { padding: 22px 14px; border-radius: 22px; }
  .steps > li { grid-template-columns: 38px 1fr; gap: 12px; padding-bottom: 22px; }
  .steps .n { width: 38px; height: 38px; font-size: 17px; }
  .steps > li:not(:last-child)::before { left: 18px; top: 44px; }
  .steps h3 { padding-top: 6px; font-size: 17px; }
  .steps p { font-size: 14.5px; }
  .way-grid { grid-template-columns: 1fr; gap: 30px; }
  .qr-inline { display: none; }
  .way-cta { margin-top: 28px; }
  .way-cta .btn { width: 100%; }
  .shots3 { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; scrollbar-width: none; }
  .shots3::-webkit-scrollbar { display: none; }
  .shots3 figure { flex: 0 0 150px; scroll-snap-align: start; }
  .codeflow { padding: 18px 14px; }
  .codeflow-grid { grid-template-columns: 1fr; }
  .shots2 { justify-content: center; overflow: visible; margin: 0; padding: 0 0 6px; }
  .shots2 figure { flex: 1 1 0; }
  .mk { max-width: none; }
  .mk-and { max-width: 100%; }
  .copybox { flex-direction: column; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: var(--navy-900); border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .burger { display: flex; }
  .bar .btn-sm { display: none; }
}
@media (max-width: 480px) {
  .brand { font-size: 12px; }
  .brand-word { font-size: 18px; }
  .hero-visual { height: 440px; }
  .hero-visual .phone { width: 215px; }
  .phone-back { left: 0; }
  .phone-front { right: 0; }
  .f1 { left: 0; top: 120px; }
  .f2 { right: 0; bottom: 20px; }
  .btn-lg { width: 100%; }
  .slide { width: 220px; }
}
