/* Помик. Идея: Соня живёт на рабочем столе Windows — первый экран как «обои» с панелью задач,
   дальше маленькая Соня в углу. Цвета: небо, бумага, чернила, корги. Текст ≥ 4.5:1. */
@font-face {
  font-family: "Rubik"; font-weight: 500 700; font-display: swap;
  src: url(fonts/rubik-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik"; font-weight: 500 700; font-display: swap;
  src: url(fonts/rubik-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sky: #EAF2FB;
  --paper: #FFFFFF;
  --ink: #1F2A44;
  --muted: #52607A;
  --corgi: #F29A4A;
  --pink: #FF9EB8;
  --pink-ink: #C8336E;
  --pink-soft: #FFE6EE;
  --line: #D6E2F0;
  --taskbar: rgba(255, 255, 255, .78);
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sky: #141B2D;
    --paper: #1C2540;
    --ink: #E8EEF8;
    --muted: #A9B6CC;
    --pink-ink: #FF9EB8;
    --line: #2C3757;
    --taskbar: rgba(28, 37, 64, .85);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Rubik", "Segoe UI", system-ui, sans-serif; line-height: 1.12; margin: 0 0 .45em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 650; letter-spacing: -.015em; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.narrow { max-width: 38em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--paper); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* Шапка */
.top { position: absolute; inset: 0 0 auto; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none;
  font: 650 1.3rem "Rubik", system-ui, sans-serif; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 12px 26px; border-radius: 14px; font-weight: 650; text-decoration: none;
  border: 2px solid var(--ink); transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--pink); border-color: var(--pink); color: #1F2A44; }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover {
  opacity: .5; cursor: default; background: transparent; color: var(--ink); border-color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }

/* Первый экран — рабочий стол */
.hero { background: var(--sky); position: relative; padding: 120px 0 0; overflow: hidden; }
.hero .wrap { display: grid; gap: 24px; align-items: end; }
.hero-text { padding-bottom: 96px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 32em; }
.trust { font-size: .95rem; color: var(--muted); margin: 0; }
.hero-art { position: relative; justify-self: center; width: min(440px, 100%); padding-top: 120px; }
.hero-sonya { width: 100%; filter: drop-shadow(0 24px 30px rgba(31, 42, 68, .18)); margin-bottom: -6px; }
.bubble {
  position: absolute; top: 0; left: -10px; max-width: 290px; margin: 0;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px;
  padding: 12px 16px; font-size: 1rem;
}
.bubble::after {
  content: ""; position: absolute; left: 62%; bottom: -11px; width: 18px; height: 18px;
  background: var(--paper); border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
}
.taskbar {
  position: relative; height: 48px; background: var(--taskbar); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, calc((100% - var(--max)) / 2 + 24px));
}
.start { width: 22px; height: 22px; border-radius: 4px; background: #3B78E7; }
.tray { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }

/* Эволюция скрепки — линия времени */
.evo { background: var(--sky); }
.timeline { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 32px; position: relative; }
.timeline li { display: grid; grid-template-rows: 130px auto auto; gap: 10px; }
.timeline img { height: 96px; width: auto; align-self: end; }
.timeline .now img { height: 130px; }
.timeline .year { margin-top: 12px; font: 700 2.6rem/1 "Rubik", system-ui, sans-serif; letter-spacing: -.03em; }
.timeline p { margin: 0; max-width: 22em; }
.timeline .past { color: var(--muted); }
.timeline .past img { filter: grayscale(1); opacity: .6; }
.timeline .now .year { color: var(--pink-ink); }

/* Бесплатно: возможности и разговор */
.split { display: grid; gap: 48px; align-items: start; }
.features { list-style: none; padding: 0; margin: 32px 0 0; }
.features li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.features img { width: 56px; height: 56px; background: var(--pink-soft); border-radius: 16px; padding: 4px; }
.features h3 { margin: 0 0 4px; }
.features p { margin: 0; color: var(--muted); }
.tag { display: inline-block; font: 600 .75rem "Segoe UI", system-ui, sans-serif; padding: 2px 8px;
  border-radius: 6px; background: var(--corgi); color: #1F2A44; vertical-align: middle; }
.dialog { display: grid; gap: 12px; padding: 28px; background: var(--sky); border-radius: 28px; }
.say { margin: 0; padding: 12px 16px; border-radius: 18px; max-width: 26em; }
.say.sonya { background: var(--paper); border-bottom-left-radius: 4px; }
.say.you { background: var(--ink); color: var(--paper); justify-self: end; border-bottom-right-radius: 4px; }

/* Надстройки */
.plans { width: 100%; border-collapse: collapse; margin-top: 32px; }
.plans th, .plans td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.plans thead th { font-size: .9rem; font-weight: 600; color: var(--muted); }
.plans tbody th { font-weight: 650; }
.plans .name { display: flex; align-items: center; gap: 14px; }
.plans .name img { width: 40px; height: 40px; flex: none; background: var(--pink-soft); border-radius: 12px; padding: 3px; }
.plans tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.plans td { font-weight: 650; white-space: nowrap; }
.plans td:last-child { text-align: right; }
.plans .all { background: var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.note { font-size: .95rem; color: var(--muted); margin-top: 20px; max-width: 46em; }

/* Как начать */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 32px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.num { font: 700 3.6rem/.9 "Rubik", system-ui, sans-serif; color: var(--pink-ink); }
.steps h3 { margin: 4px 0; }
.steps p { margin: 0; }

/* Приватность */
.privacy { background: var(--ink); color: var(--paper); }
.privacy .wrap { display: grid; gap: 32px; align-items: center; }
.privacy p { color: inherit; opacity: .85; }
.privacy ul { margin: 0; padding-left: 1.2em; }
.privacy li { margin: .3em 0; }

/* Вопросы */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1; color: var(--pink-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 52em; }

.final { background: var(--sky); padding-bottom: 120px; }

footer { padding: 28px 0 40px; font-size: .9rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

/* Маленькая Соня в углу */
.pet { position: fixed; right: 20px; bottom: 16px; z-index: 10; width: 96px; pointer-events: none;
  opacity: 0; transform: translateY(24px); transition: opacity .3s ease, transform .3s ease; }
.pet.on { opacity: 1; transform: none; }
.pet-bubble { position: absolute; right: 70px; bottom: 92px; width: max-content; max-width: 240px; margin: 0;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 16px 16px 4px 16px;
  padding: 8px 12px; font-size: .9rem; box-shadow: 0 6px 18px rgba(31, 42, 68, .15); }
.pet-bubble:empty { display: none; }
.pet-bubble.pop { animation: pop .35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } }

/* Документы */
.doc { max-width: 760px; padding-top: 104px; padding-bottom: 64px; }
.doc h1 { font-size: 2rem; }
.doc h2 { font-size: 1.3rem; margin-top: 1.6em; }

@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
  .timeline, .steps { grid-template-columns: repeat(3, 1fr); }
  .timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 142px; border-top: 2px dashed var(--line); }
  .split { grid-template-columns: 1.1fr .9fr; }
  .privacy .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 819px) {
  section { padding: 72px 0; }
  .hero { padding-top: 96px; }
  .hero-text { padding-bottom: 0; }
  .hero-art { width: min(320px, 90%); padding-top: 110px; }
  .pet { display: none; }
  .plans thead { display: none; }
  .plans, .plans tbody, .plans tr, .plans th, .plans td { display: block; }
  .plans tbody th { border: 0; padding: 4px 0; }
  .plans tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .plans tr.all { padding: 16px 12px; border-radius: 14px; }
  .plans td { border: 0; padding: 4px 0; }
  .plans td[data-label] { display: inline-block; width: 32%; font-size: .95rem; }
  .plans td[data-label]::before { content: attr(data-label); display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
  .plans td:last-child { text-align: left; padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pet, .btn { transition: none; }
  .pet-bubble.pop { animation: none; }
}
