  :root {
    --blue: #0A6FD1;
    --blue-deep: #0052A8;
    --ink: #0E2240;
    --paper: #F2F5F9;
    --white: #FFFFFF;
    --slate: #56657A;
    --line: #D9E1EB;
    --mute: #E5484D;
    --night: #0E2240;
    --night-2: #16305A;
    --night-text: #C9D6EA;

    --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
    --wrap: 1120px;
    --radius-window: 10px;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 76px; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  img { max-width: 100%; display: block; }
  a { color: var(--blue); }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

  .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

  h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
  h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; }
  h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; }
  h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; }
  p  { margin: 0; }

  /* ── кнопки ─────────────────────────────────────────────── */
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    font: 600 1rem/1 var(--font);
    padding: 16px 26px;
    border-radius: 12px;
    text-decoration: none;
    border: 0; cursor: pointer;
    transition: background-color .15s, transform .15s;
  }
  .btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 22px -10px rgba(10,111,209,.8); }
  .btn-primary:hover { background: var(--blue-deep); }
  .btn-primary:active { transform: translateY(1px); }
  .btn svg { width: 20px; height: 20px; flex: none; }

  /* ── шапка ──────────────────────────────────────────────── */
  .top {
    position: sticky; top: 0; z-index: 10;
    background: rgba(242,245,249,.86);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .top.scrolled { border-bottom-color: var(--line); }
  .top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
  .brand img { width: 30px; height: 30px; }
  .top nav { display: flex; gap: 22px; margin-left: auto; }
  .top nav a { color: var(--slate); text-decoration: none; font-size: .95rem; font-weight: 500; }
  .top nav a:hover { color: var(--ink); }
  .top .btn { padding: 10px 16px; font-size: .92rem; border-radius: 10px; box-shadow: none; }
  @media (max-width: 760px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

  /* ── первый экран ───────────────────────────────────────── */
  .hero { padding: 56px 0 40px; }
  .hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
  .hero h1 { max-width: 17ch; }
  .hero .lead { margin-top: 22px; font-size: 1.2rem; color: var(--slate); max-width: 40ch; }
  .hero .cta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
  .hero .note { color: var(--slate); font-size: .92rem; line-height: 1.45; }
  .pronounce { margin-top: 26px; font-size: .88rem; color: var(--slate); }

  /* живая демонстрация */
  .demo { display: flex; flex-direction: column; align-items: center; gap: 26px; }
  .demo-tile {
    position: relative;
    width: min(240px, 60vw); aspect-ratio: 1;
    border: 0; padding: 0; background: none; cursor: pointer;
    border-radius: 23%;
    filter: drop-shadow(0 26px 40px rgba(0,82,168,.34));
    transition: filter .25s;
  }
  .demo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .22s ease; }
  .demo-tile .off { opacity: 0; }
  .demo.muted .demo-tile .on  { opacity: 0; }
  .demo.muted .demo-tile .off { opacity: 1; }
  .demo.muted .demo-tile { filter: drop-shadow(0 26px 40px rgba(40,44,52,.32)); }

  .keys { display: flex; align-items: center; gap: 8px; color: var(--slate); font-weight: 600; }
  kbd {
    font: 650 .95rem/1 var(--font);
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-bottom-width: 4px;
    border-radius: 9px;
    padding: 11px 14px 10px;
    min-width: 46px; text-align: center;
    display: inline-block;
    transition: transform .08s, border-bottom-width .08s;
  }
  .demo.pressing kbd { transform: translateY(3px); border-bottom-width: 1px; }
  .demo-status { font-weight: 650; font-size: 1.05rem; min-height: 1.6em; }
  .demo.muted .demo-status { color: var(--mute); }
  .demo-hint { font-size: .88rem; color: var(--slate); text-align: center; margin-top: -14px; }

  @media (prefers-reduced-motion: reduce) {
    .demo-tile img, kbd { transition: none; }
  }

  /* окно программы */
  .window {
    border-radius: var(--radius-window);
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(14,34,64,.06), 0 30px 60px -24px rgba(14,34,64,.35);
    background: var(--white);
    width: 332px; max-width: 100%;
  }
  .window img { width: 100%; height: auto; }
  figure { margin: 0; }
  figcaption { font-size: .88rem; color: var(--slate); margin-top: 14px; }

  .whole { padding: 24px 0 96px; }
  .whole .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .whole p.big { font-size: 1.25rem; font-weight: 600; max-width: 30ch; margin-bottom: 34px; }

  /* ── ночь: таймер ───────────────────────────────────────── */
  .night {
    background: var(--night);
    color: var(--white);
    padding: 104px 0;
    position: relative;
    overflow: hidden;
  }
  .night::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
      radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.4) 50%, transparent 51%),
      radial-gradient(1.4px 1.4px at 46% 12%, rgba(255,255,255,.5) 50%, transparent 51%),
      radial-gradient(1px 1px at 63% 84%, rgba(255,255,255,.35) 50%, transparent 51%),
      radial-gradient(1.2px 1.2px at 82% 26%, rgba(255,255,255,.45) 50%, transparent 51%),
      radial-gradient(1px 1px at 92% 64%, rgba(255,255,255,.35) 50%, transparent 51%);
    pointer-events: none;
  }
  .night .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
  .night h2 { max-width: 16ch; }
  .night .lead { margin-top: 20px; color: var(--night-text); font-size: 1.12rem; max-width: 44ch; }

  .timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
  .timeline::before {
    content: ""; position: absolute; left: 58px; top: 10px; bottom: 10px; width: 2px;
    background: linear-gradient(var(--blue), rgba(255,255,255,.18));
  }
  .timeline li { display: grid; grid-template-columns: 48px 20px 1fr; gap: 0 14px; align-items: start; padding: 10px 0; }
  .timeline time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--white); text-align: right; }
  .timeline .dot { width: 12px; height: 12px; margin: 7px 0 0 3px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--night); }
  .timeline li:last-child .dot { background: var(--mute); }
  .timeline span { color: var(--night-text); }
  .timeline strong { color: var(--white); font-weight: 600; }

  .facts { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
  .facts p { color: var(--night-text); font-size: .98rem; line-height: 1.5; }
  .facts b { display: block; color: var(--white); font-weight: 650; margin-bottom: 2px; }

  .night figure { display: flex; flex-direction: column; align-items: center; }
  .night .window { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -30px rgba(0,0,0,.7); }
  .night figcaption { color: var(--night-text); }

  /* ── день: горячая клавиша ──────────────────────────────── */
  .day { padding: 104px 0; background: var(--white); }
  .day .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
  .day figure { display: flex; flex-direction: column; align-items: center; order: -1; }
  .day h2 { max-width: 17ch; }
  .day .lead { margin-top: 20px; color: var(--slate); font-size: 1.12rem; max-width: 44ch; }
  .combo { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--slate); font-weight: 600; }
  .howto { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: s; }
  .howto li { counter-increment: s; position: relative; padding: 0 0 14px 44px; color: var(--slate); }
  .howto li::before {
    content: counter(s); position: absolute; left: 0; top: 0;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--paper); color: var(--blue-deep);
    font-weight: 700; font-size: .9rem; display: grid; place-items: center;
  }
  .howto b { color: var(--ink); font-weight: 600; }

  /* ── мелочи ─────────────────────────────────────────────── */
  .more { padding: 104px 0 96px; }
  .more h2 { max-width: 20ch; }
  .more .grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
  .feature { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
  .feature svg { width: 26px; height: 26px; color: var(--blue); margin-top: 2px; }
  .feature p { color: var(--slate); margin-top: 6px; font-size: 1rem; line-height: 1.55; }

  /* ── как начать ─────────────────────────────────────────── */
  .start { padding: 96px 0; background: var(--white); }
  .steps { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: st; }
  .steps li { counter-increment: st; position: relative; padding-top: 58px; }
  .steps li::before {
    content: counter(st);
    position: absolute; top: 0; left: 0;
    font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--blue);
    letter-spacing: -0.04em;
  }
  .steps li::after {
    content: ""; position: absolute; top: 20px; left: 44px; right: -14px; height: 2px;
    background: var(--line);
  }
  .steps li:last-child::after { display: none; }
  .steps p { color: var(--slate); margin-top: 8px; font-size: 1rem; line-height: 1.55; }
  .start .cta { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
  .start .note { color: var(--slate); font-size: .92rem; }

  /* ── вопросы ────────────────────────────────────────────── */
  .faq { padding: 96px 0; }
  .faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .faq .aside { color: var(--slate); margin-top: 16px; max-width: 30ch; }
  details { border-top: 1px solid var(--line); }
  details:last-child { border-bottom: 1px solid var(--line); }
  summary {
    list-style: none; cursor: pointer;
    padding: 20px 40px 20px 0; position: relative;
    font-weight: 600; font-size: 1.05rem;
  }
  summary::-webkit-details-marker { display: none; }
  summary::after {
    content: ""; position: absolute; right: 6px; top: 50%;
    width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate);
    transform: rotate(45deg); transition: transform .2s;
  }
  details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
  details .ans { padding: 0 0 22px; color: var(--slate); max-width: 62ch; }
  details .ans p + p { margin-top: 10px; }
  code { font-family: var(--font); font-weight: 600; background: var(--white); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .92em; color: var(--ink); word-break: break-all; }

  /* ── поддержка ──────────────────────────────────────────── */
  .support { padding: 0 0 104px; }
  .support .box {
    background: var(--blue);
    background-image: linear-gradient(160deg, #0A7AD9, var(--blue-deep));
    color: var(--white);
    border-radius: 28px;
    padding: 56px;
    display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  }
  .support .heart { width: 64px; height: 64px; }
  .support h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
  .support p { margin-top: 10px; color: rgba(255,255,255,.86); max-width: 46ch; }
  .btn-light { background: var(--white); color: var(--blue-deep); }
  .btn-light:hover { background: #E6F0FB; }

  /* ── подвал ─────────────────────────────────────────────── */
  footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--slate); font-size: .92rem; }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
  footer .brand { font-size: 1rem; }
  footer .links { margin-left: auto; display: flex; gap: 22px; }
  footer a { color: var(--slate); }

  /* ── адаптив ────────────────────────────────────────────── */
  @media (max-width: 960px) {
    .hero .wrap, .night .wrap, .day .wrap, .faq .wrap { grid-template-columns: 1fr; gap: 48px; }
    .hero { padding-top: 40px; }
    .hero h1 { max-width: 16ch; }
    .day figure { order: 0; }
    .steps { grid-template-columns: 1fr 1fr; }
    .steps li:nth-child(2)::after { display: none; }
    .support .box { grid-template-columns: 1fr; padding: 40px 32px; text-align: left; }
  }
  @media (max-width: 640px) {
    body { font-size: 16px; }
    .more .grid { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .steps li::after { display: none; }
    .night, .day, .more, .start, .faq { padding: 72px 0; }
    .support .box { border-radius: 22px; }
    footer .links { margin-left: 0; }
  }

/* ══ cookie-баннер ══════════════════════════════════════════ */
.cookie {
  position: fixed; z-index: 50;
  left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 680px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px -18px rgba(14,34,64,.45);
  padding: 22px 24px;
  display: none;
  gap: 18px; align-items: center;
}
.cookie[data-open="true"] { display: flex; }
.cookie svg { width: 30px; height: 30px; color: var(--blue); flex: none; }
.cookie .text { flex: 1 1 auto; min-width: 0; font-size: .95rem; line-height: 1.5; color: var(--slate); }
.cookie .text b { color: var(--ink); font-weight: 650; display: block; margin-bottom: 3px; font-size: 1rem; }
.cookie .acts { display: flex; gap: 10px; flex: none; }
.cookie .btn { padding: 11px 20px; font-size: .92rem; border-radius: 10px; box-shadow: none; }
.btn-quiet { background: var(--paper); color: var(--ink); }
.btn-quiet:hover { background: #E4EAF2; }

@media (max-width: 720px) {
  .cookie { flex-wrap: wrap; padding: 20px; gap: 14px; }
  .cookie svg { display: none; }
  .cookie .acts { width: 100%; }
  .cookie .acts .btn { flex: 1; justify-content: center; }
}

/* ══ текстовая страница (политика) ══════════════════════════ */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: none; }
.legal .updated { margin-top: 14px; color: var(--slate); font-size: .95rem; }
.legal .intro {
  margin-top: 28px; padding: 22px 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  font-size: 1.05rem; line-height: 1.55;
}
.legal h2 { font-size: 1.35rem; margin: 46px 0 0; }
.legal h3 { margin: 26px 0 0; }
.legal p, .legal ul { margin-top: 14px; color: var(--slate); }
.legal ul { padding-left: 22px; }
.legal li { margin-top: 8px; }
.legal li::marker { color: var(--blue); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

.legal table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 650; border-bottom-color: #C3D0DF; }
.legal td { color: var(--slate); }
.legal td code { white-space: nowrap; }
.legal .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; font-weight: 600; text-decoration: none; }
.legal .back svg { width: 18px; height: 18px; }
