:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0b1220;
  --muted: #5b6474;
  --line: #e3e7ef;
  --accent: #0a84ff;
  --accent-soft: #e6f1ff;
  --shadow: 0 10px 30px rgba(15, 35, 70, 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: #151922;
    --text: #f2f4f8;
    --muted: #9aa3b2;
    --line: #262c38;
    --accent: #3d9bff;
    --accent-soft: #14243b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand:hover { text-decoration: none; }

nav.links { display: flex; gap: 18px; font-size: 15px; }
nav.links a { color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0 64px;
}

.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero .icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 24px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.store:hover { text-decoration: none; opacity: 0.9; }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.fine { color: var(--muted); font-size: 14px; margin-top: 12px; }

.phones { display: flex; justify-content: center; gap: 16px; }
.phones img {
  width: 46%;
  max-width: 230px;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.phones img:nth-child(2) { transform: translateY(28px); }

section { padding: 56px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.01em; margin: 0 0 10px; }
section p.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.badge {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
}

.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.showcase figure { margin: 0; }
.showcase img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.showcase img.watch { border-radius: 40px; max-width: 200px; display: block; margin: 0 auto; }
.showcase figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.plan.pro { border-color: var(--accent); }
.plan h3 { margin: 0 0 4px; font-size: 22px; }
.plan .price { color: var(--muted); margin: 0 0 16px; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin: 6px 0; }

.promise {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  text-align: center;
}
.promise p { color: var(--muted); max-width: 38em; margin: 8px auto 0; }

article.doc { max-width: 760px; padding: 24px 0 64px; }
article.doc h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; margin: 8px 0 6px; }
article.doc h2 { font-size: 21px; margin: 32px 0 8px; }
article.doc .updated { color: var(--muted); margin-bottom: 24px; }
article.doc ul { padding-left: 22px; }
article.doc li { margin: 6px 0; }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 10px 0;
}
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

.contact {
  background: var(--accent-soft);
  border-radius: 18px;
  padding: 22px;
  margin: 24px 0;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  nav.links { gap: 12px; }
  .promise { padding: 26px 20px; }
}
