:root {
  --primary: #5B4CF0;
  --primary-2: #8B5CF6;
  --primary-soft: #EFEDFF;
  --bg: #F4F5FA;
  --card: #FFFFFF;
  --text: #0E1525;
  --muted: #5F6678;
  --faint: #A9AFBF;
  --border: #E4E6EF;
  --field: #F3F4F9;
  --green: #12B76A;
  --green-soft: #E7F8F0;
  --red: #F04438;
  --red-soft: #FEEDEC;
  --orange: #F79009;
  --orange-soft: #FEF4E6;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .07);
  --r: 8px;
  --r-lg: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 245, 250, .85);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -.3px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav.links { margin-left: auto; display: flex; gap: 22px; }
nav.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
nav.links + .btn { flex: none; }
nav.links a:hover { color: var(--text); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r);
  font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(91, 76, 240, .28); }
.btn-primary:hover { background: #4C3DE0; }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Первый экран */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 5px 10px; border-radius: 6px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -1.4px; margin: 16px 0 16px; font-weight: 800; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stores { display: flex; gap: 12px; flex-basis: 100%; }
.tile {
  width: 96px; height: 96px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--card); color: var(--text); text-decoration: none;
  border: 1.5px solid var(--border); border-radius: var(--r);
  font-weight: 700; font-size: 14px;
  transition: border-color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.tile svg { width: 34px; height: 34px; }
.tile:hover { border-color: var(--faint); box-shadow: var(--shadow); }
.tile:active { transform: translateY(1px); }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Макет телефона */
.phone {
  justify-self: center; width: 300px; background: var(--bg); border-radius: 28px;
  border: 10px solid #151826; box-shadow: 0 30px 60px rgba(16, 24, 40, .18); padding: 16px 14px 14px; position: relative;
}
.phone::before { content: ""; position: absolute; top: 6px; left: 50%; width: 80px; height: 6px; margin-left: -40px; border-radius: 4px; background: #151826; }
.ph-top { display: flex; align-items: flex-end; justify-content: space-between; margin: 8px 2px 12px; }
.ph-sub { font-size: 9px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.ph-title { font-size: 22px; font-weight: 800; letter-spacing: -.6px; }
.ph-stays { background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 6px 9px; border-radius: 5px; }
.ph-banner { background: var(--primary-soft); border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; font-size: 11px; }
.ph-banner b { color: var(--primary); display: block; font-size: 12px; }
.ph-list { background: var(--card); border-radius: 8px; box-shadow: var(--shadow); padding: 2px 0; }
.ph-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-top: 1px solid var(--border); }
.ph-row:first-child { border-top: 0; }
.ph-av { width: 28px; height: 28px; border-radius: 5px; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.ph-name { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.2; }
.ph-name small { display: block; font-weight: 400; font-size: 10px; color: var(--muted); }
.ph-qty { font-weight: 800; font-size: 15px; }
.ph-pill { font-weight: 700; font-size: 12px; padding: 2px 7px; border-radius: 5px; }
.ph-tabs { display: flex; justify-content: space-around; background: var(--card); border-radius: 8px; margin-top: 12px; padding: 7px 0; box-shadow: var(--shadow); }
.ph-tabs span { font-size: 9px; color: var(--muted); font-weight: 600; }
.ph-tabs span.on { color: var(--primary); }

/* Секции */
section { padding: 56px 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.8px; line-height: 1.15; margin: 0 0 12px; }
.section-lead { color: var(--muted); font-size: 17px; margin: 0 0 32px; max-width: 40em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -.2px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }
.soon { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--orange); background: var(--orange-soft); padding: 1px 7px; border-radius: 5px; vertical-align: 2px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

/* Платформы */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform { display: flex; flex-direction: column; gap: 10px; }
.platform .head { display: flex; align-items: center; gap: 12px; }
.platform h3 { margin: 0; }
.platform p { flex: 1; }
.platform .btn { align-self: flex-start; margin-top: 6px; }

/* Установка на Windows */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
ol.howto { margin: 0; padding-left: 22px; }
ol.howto li { margin-bottom: 10px; }
kbd { font: 600 13px/1 ui-monospace, Consolas, monospace; background: var(--field); border: 1px solid var(--border); border-radius: 5px; padding: 3px 6px; }

/* Вопросы */
details { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

header.top .back { margin-left: auto; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 0; white-space: nowrap; }
header.top .back:hover { color: var(--primary); }

footer { border-top: 1px solid var(--border); padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.foot-brand { display: flex; flex-direction: column; gap: 6px; }
.foot-brand .brand { font-size: 17px; }
.foot-brand .brand img { width: 28px; height: 28px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; }
.foot-links a { text-decoration: none; font-weight: 600; }
.foot-req { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; }
.foot-copy { grid-column: 1 / -1; font-size: 13px; margin-top: -12px; }

/* Текстовые страницы */
.doc { max-width: 760px; padding: 48px 20px 64px; }
.doc h1 { font-size: 36px; }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc p, .doc li { color: #2C3242; }
.fill { background: #FFF3C4; padding: 0 4px; border-radius: 4px; }

@media (max-width: 900px) {
  .hero .wrap, .install { grid-template-columns: 1fr; }
  .grid, .steps, .platforms { grid-template-columns: 1fr 1fr; }
  .phone { margin-top: 8px; }
}
@media (max-width: 760px) {
  nav.links { display: none; }
  header.top .btn { margin-left: auto; }
}
@media (max-width: 620px) {
  .hero { padding-top: 36px; }
  .grid, .steps, .platforms { grid-template-columns: 1fr; }
  .cta > .btn { flex: 1 1 100%; }
  section { padding: 40px 0; }
  footer .wrap { grid-template-columns: 1fr; gap: 20px; }
  .foot-links { flex-direction: column; justify-content: flex-start; gap: 0; }
  .foot-links a { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .foot-links a:last-child { border-bottom: 0; }
  .foot-req { flex-direction: column; gap: 4px; }
  .foot-copy { margin-top: 0; }
}

/* Юридические страницы и тарифы */
.prices { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; margin: 16px 0 24px; }
.prices td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.prices tr:last-child td { border-bottom: 0; }
.prices .price { text-align: right; font-weight: 800; font-size: 18px; white-space: nowrap; }
.muted { color: var(--muted); font-size: 14px; }
.doc .note { background: var(--primary-soft); border-radius: var(--r); padding: 14px 18px; margin: 16px 0; color: var(--text); }

/* Уведомление о cookie */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; display: flex; gap: 16px; align-items: center;
  background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px 18px; }
.cookie-bar p { margin: 0; flex: 1; font-size: 14px; line-height: 1.45; color: var(--muted); }
.cookie-bar .btn { flex: none; }
@media (max-width: 560px) { .cookie-bar { flex-direction: column; align-items: stretch; } }
