:root {
  color-scheme: light;
  --bg: #f4f4fa;
  --surface: #ffffff;
  --card: #ebebf7;
  --line: #e0e0ee;
  --ink: #171830;
  --muted: #5b5c74;
  --accent: #3b3aa6;
  --soft: #e4e3ff;
  --on-accent: #ffffff;
  --accent-hover: #2e2d86;
  --line-strong: #d4d4ea;
  --phone-frame: #171830;
  --download-bg: #3b3aa6;
  --light-image: block;
  --dark-image: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
/* Явный выбор важнее системной темы; без JS работает prefers-color-scheme. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c1c;
  --surface: #14162a;
  --card: #1a1c33;
  --line: #25273f;
  --ink: #f1f1fa;
  --muted: #a3a4bf;
  --accent: #8a7cff;
  --soft: #2e2c6b;
  --on-accent: #0b0c1c;
  --accent-hover: #a79bff;
  --line-strong: #343760;
  --phone-frame: #343760;
  --download-bg: #24235a;
  --light-image: none;
  --dark-image: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0b0c1c;
    --surface: #14162a;
    --card: #1a1c33;
    --line: #25273f;
    --ink: #f1f1fa;
    --muted: #a3a4bf;
    --accent: #8a7cff;
    --soft: #2e2c6b;
    --on-accent: #0b0c1c;
    --accent-hover: #a79bff;
    --line-strong: #343760;
    --phone-frame: #343760;
    --download-bg: #24235a;
    --light-image: none;
    --dark-image: block;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.theme-light-image { display: var(--light-image); }
.theme-dark-image { display: var(--dark-image); }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
a { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--soft); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1184px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; padding: 12px; background: var(--surface); transform: translateY(-180%); z-index: 5; }
.skip:focus { transform: none; }
.header { min-height: 112px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; padding-block: 18px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { width: 205px; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 24px; font-size: .875rem; font-weight: 550; }
.theme-control { display: flex; align-items: center; gap: 4px; }
.theme-control button { flex: none; height: 44px; color: var(--ink); cursor: pointer; }
.theme-switch { position: relative; display: flex; justify-content: space-between; align-items: center; width: 72px; padding: 10px; border: 1px solid var(--accent); border-radius: 24px; background: var(--soft); }
.theme-control svg { position: relative; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.theme-thumb { position: absolute; left: 5px; top: 5px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 4px #0003; transition: transform .18s ease; }
.theme-switch[aria-checked="true"] .theme-thumb { transform: translateX(28px); }
.theme-system { display: grid; place-items: center; width: 44px; padding: 0; border: 1px solid transparent; border-radius: 12px; background: transparent; }
.theme-system[aria-pressed="true"] { color: var(--accent); background: var(--soft); }
.theme-control button:hover { border-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.nav a { text-decoration: none; }
.nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .nav-cta { padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px; }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 52px; padding-block: 54px 76px; }
.hero > *, .section-heading > *, .telegram-section > *, .approach > *, .download-section > * { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .13em; font-size: .6875rem; font-weight: 700; }
h1 { margin-top: 27px; font-size: clamp(3.25rem, 5.6vw, 5rem); line-height: 1.06; letter-spacing: -.065em; font-weight: 600; }
h1 span { color: var(--accent); }
.intro { max-width: 450px; margin-top: 28px; font-size: 1.125rem; line-height: 1.65; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; max-width: 100%; min-height: 56px; padding: 15px 23px; border-radius: 18px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-size: .9375rem; font-weight: 650; }
.button:hover { background: var(--accent-hover); }
.button-secondary { background: transparent; color: var(--accent); border: 1px solid var(--line-strong); }
.button-secondary:hover { background: var(--soft); color: var(--ink); }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.text-link { font-size: .875rem; text-underline-offset: 5px; }
.small { font-size: .8125rem; line-height: 1.65; color: var(--muted); }
.hero-note { max-width: 420px; margin-top: 16px; }
.platforms { margin-top: 16px; }
.preview { position: relative; display: grid; place-items: center; min-width: 0; padding: 30px 0 22px; border-radius: 32px; background: var(--card); }
.preview::before { content: ""; position: absolute; inset: 11% 7%; border: 1px solid var(--line-strong); border-radius: 50%; }
.phone { position: relative; width: 270px; border: 7px solid var(--phone-frame); border-radius: 35px; padding: 9px 0 0; background: var(--bg); overflow: hidden; }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 3px 19px 6px; font-size: .625rem; font-weight: 650; }
.phone-top i { width: 39px; height: 5px; background: var(--ink); border-radius: 5px; }
.phone img { width: 100%; }
.phone-bottom { height: 13px; display: grid; place-items: center; }
.phone-bottom::after { content: ""; width: 78px; height: 3px; border-radius: 3px; background: var(--ink); }
.preview-label { position: absolute; right: -13px; top: 70px; padding: 12px 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: .75rem; }
.preview-label span { margin-right: 7px; color: var(--accent); }
.preview figcaption { position: relative; margin-top: 16px; text-align: center; font-size: .6875rem; color: var(--muted); }
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 25px; border-block: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.strip span { display: flex; align-items: center; gap: 10px; }
.strip b { font-size: 1rem; font-weight: 400; color: var(--accent); }
.section { padding-block: 88px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: end; margin-bottom: 34px; }
.section h2, .telegram-section h2, .download-section h2 { margin-top: 15px; font-size: clamp(2rem, 3.3vw, 2.75rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 600; }
.section-heading > p { color: var(--muted); max-width: 410px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 27px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; background: var(--card); border-radius: 12px; color: var(--accent); margin-bottom: 35px; }
.card-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.1875rem; letter-spacing: -.025em; font-weight: 650; }
.card p { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.telegram-section { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; margin-bottom: 64px; padding: 40px; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface); }
.telegram-copy { margin-top: 20px; max-width: 470px; color: var(--muted); font-size: .9375rem; }
.telegram-section .button { margin-top: 26px; }
.telegram-section .small { margin-top: 14px; }
.telegram-section h3 { font-size: 1rem; font-weight: 650; }
.miniapp-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 0; margin: 20px 0 0; list-style: none; }
.miniapp-features li { min-width: 0; padding-block: 18px; border-top: 1px solid var(--line); }
.miniapp-features strong { display: block; font-size: .9375rem; font-weight: 600; }
.miniapp-features span { display: block; margin-top: 5px; font-size: .8125rem; color: var(--muted); }
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 45px 0; border-block: 1px solid var(--line); }
.approach h2 { margin-top: 13px; font-size: 1.75rem; font-weight: 550; letter-spacing: -.035em; }
.approach p { color: var(--muted); font-size: .9375rem; }
.download-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 50px; background: var(--download-bg); color: white; border-radius: 24px; }
.download-section .eyebrow { color: #dedaff; }
.download-section .download-copy { max-width: 420px; margin-top: 20px; color: #dedaff; font-size: .9375rem; }
.download-section .button { background: white; color: #3b3aa6; margin-top: 26px; }
.download-section .button:hover { background: #e4e3ff; }
.download-section .small { margin-top: 13px; color: #dedaff; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; align-self: center; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding-block: 18px; counter-increment: step; }
.steps li + li { border-top: 1px solid #6261b8; }
.steps li::before { content: "0" counter(step); padding-top: 3px; font-size: .75rem; color: #dedaff; }
.steps h3 { font-size: .9375rem; font-weight: 600; }
.steps p { margin-top: 6px; font-size: .8125rem; color: #dedaff; }
.steps a { text-underline-offset: 3px; }
.faq { max-width: 780px; margin-inline: auto; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; list-style: none; padding-block: 21px; font-size: .9375rem; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.375rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); max-width: 680px; font-size: .875rem; padding-bottom: 23px; }
.footer { display: flex; justify-content: space-between; gap: 28px; align-items: center; padding-block: 30px; border-top: 1px solid var(--line); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: .8125rem; }
@media (min-width: 1500px) { .hero { padding-block: 75px 95px; } }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 30px; }
  h1 { font-size: 3.5rem; }
  .preview-label { right: -8px; padding: 10px; }
  .phone { width: 230px; }
  .download-section { gap: 35px; padding: 35px; }
  .card { padding: 23px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 86px; gap: 16px; }
  .brand img { width: 165px; }
  .nav { gap: 0; }
  .nav .desktop-link, .nav .nav-cta { display: none; }
  .nav .nav-cta { font-size: .75rem; padding: 9px 12px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 32px 40px; }
  h1 { max-width: 520px; font-size: clamp(3rem, 10.5vw, 4.5rem); margin-top: 23px; }
  .intro { font-size: 1rem; margin-top: 22px; }
  .actions { margin-top: 25px; gap: 17px; }
  .preview { max-width: 470px; width: 100%; justify-self: center; padding-block: 25px 18px; }
  .phone { width: 250px; }
  .preview-label { right: 12px; top: 58px; }
  .strip { display: grid; grid-template-columns: 1fr 1fr; font-size: .75rem; gap: 15px; }
  .section { padding-block: 56px; }
  .section-heading, .telegram-section, .approach, .download-section { grid-template-columns: 1fr; gap: 24px; }
  .telegram-section { padding: 28px 24px; margin-bottom: 32px; border-radius: 20px; }
  .miniapp-features { grid-template-columns: 1fr; }
  .section-heading { margin-bottom: 26px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 25px; }
  .card-icon { margin-bottom: 23px; }
  .approach { padding-block: 32px; }
  .download-section { padding: 28px 24px; border-radius: 20px; }
  .download-section .button { width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .brand img { width: 145px; }
  .nav .nav-cta { padding-inline: 9px; }
  .phone { width: 225px; }
  .preview-label { top: 47px; right: 7px; font-size: .6875rem; }
  .strip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .theme-thumb { transition: none; } }
