:root {
  --accent: #3f5a87; --accent-dark: #34496e; --accent-deep: #233355; --accent-light: #e7ecf3; --accent-soft: #f2f5f9;
  --ink: #1f2430; --muted: #5d6573; --line: #e2e6ec; --bg: #ffffff; --card: #ffffff; --green: #1b7f3b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #8fa7d1; --accent-dark: #c9d6ec; --accent-deep: #e6ecf6; --accent-light: #243047; --accent-soft: #1a2130;
    --ink: #e7e9ee; --muted: #a3aab6; --line: #2c3341; --bg: #12151b; --card: #181c24; --green: #5cc982; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #8fa7d1; --accent-dark: #c9d6ec; --accent-deep: #e6ecf6; --accent-light: #243047; --accent-soft: #1a2130;
  --ink: #e7e9ee; --muted: #a3aab6; --line: #2c3341; --bg: #12151b; --card: #181c24; --green: #5cc982; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
.lang { position: relative; }
.lang select { appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; padding: 6px 28px 6px 10px; font: inherit; font-size: 14px; cursor: pointer; }
.lang::after { content: "▾"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); font-size: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; padding: 14px 22px; font-weight: 600; text-decoration: none; font-size: 16px; transition: transform .12s, box-shadow .12s, background .12s; border: 1px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(63,90,135,.28); }
.btn-primary:hover { background: #36507a; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.top .btn { padding: 8px 14px; font-size: 14px; border-radius: 10px; box-shadow: none; }

/* hero */
.hero { padding: 64px 0 40px; background: radial-gradient(1200px 500px at 70% -10%, var(--accent-light), transparent 60%); }
.hero .hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.badge { display: inline-block; background: var(--accent-light); color: var(--accent-dark); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; margin: 16px 0 16px; letter-spacing: -0.02em; color: var(--accent-deep); }
.hero p.sub { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.cta { display: flex; flex-direction: column; gap: 6px; }
.cta small { color: var(--muted); font-size: 13px; padding-left: 4px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; color: var(--muted); font-size: 15px; }
.trust li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }
.window { border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(20,30,50,.22), 0 2px 6px rgba(20,30,50,.12); border: 1px solid var(--line); background: #fff; }
.window .bar { height: 30px; background: #34496e; display: flex; align-items: center; gap: 7px; padding: 0 12px; }
.window .bar i { width: 10px; height: 10px; border-radius: 50%; background: #ffffff55; }

/* formats strip */
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 26px 0 8px; }
.formats span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 14px; color: var(--muted); background: var(--card); font-weight: 600; letter-spacing: .02em; }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--accent-soft); }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; color: var(--accent-deep); text-align: center; }
.lead { text-align: center; color: var(--muted); font-size: 18px; margin: 0 auto 40px; max-width: 680px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-light); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.shots figure { margin: 0; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 12px; }

.online { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.online h2, .online .lead { text-align: left; margin-left: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-light); box-shadow: inset 0 0 0 5px var(--accent); }
.mock img { width: 100%; }
.mock { border-radius: 14px; border: 1px solid var(--line); background: var(--card); overflow: hidden; box-shadow: 0 18px 44px rgba(20,30,50,.14); }
.mock .url { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.mock .url span { flex: 1; background: var(--accent-soft); border-radius: 8px; padding: 5px 10px; }
.mock .sheet { margin: 18px auto; width: 78%; aspect-ratio: 1 / 1.1; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); padding: 22px; }
.mock .sheet b { display: block; height: 14px; width: 55%; background: #233355; border-radius: 3px; margin-bottom: 14px; }
.mock .sheet i { display: block; height: 8px; background: #d5dae2; border-radius: 3px; margin: 8px 0; }
.mock .sheet i:nth-child(3n) { width: 80%; }

table.cmp { width: 100%; max-width: 820px; margin: 0 auto; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
table.cmp th, table.cmp td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; }
table.cmp thead th { background: var(--accent-light); color: var(--accent-deep); font-size: 15px; }
table.cmp tr:last-child td { border-bottom: 0; }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--muted); }

ol.steps { counter-reset: s; list-style: none; padding: 0; max-width: 760px; margin: 0 auto; }
ol.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 60px; font-size: 17px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; background: var(--card); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; color: var(--muted); }

.download { text-align: center; }
.download .box { max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px 28px; box-shadow: 0 18px 44px rgba(20,30,50,.08); }
.download img.icon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 16px; }
.download .meta { color: var(--muted); margin: 8px 0 24px; }
.sha { margin-top: 22px; font-size: 12px; color: var(--muted); word-break: break-all; }
.sha code { background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer a { color: var(--muted); }
footer .tm { flex-basis: 100%; font-size: 12px; }
.langs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }

.doc-page { max-width: 760px; margin: 0 auto; padding: 56px 20px; }
.doc-page h1 { color: var(--accent-deep); }

@media (max-width: 920px) {
  .hero .hero-grid, .online { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .top nav { display: none; }
  .top .wrap { gap: 12px; }
  .lang { margin-left: auto; }
}
@media (max-width: 600px) {
  .grid3, .shots { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero { padding-top: 36px; }
  .top .btn { display: none; }
  .btn { width: 100%; justify-content: center; }
  .cta { width: 100%; }
  table.cmp th, table.cmp td { padding: 10px 8px; font-size: 14px; }
}
