:root {
  color-scheme: dark light;
  --bg: #131318;
  --surface: #1c1b22;
  --surface-2: #26242e;
  --text: #e6e1e9;
  --muted: #b3adbd;
  --primary: #cfbcff;
  --on-primary: #381e72;
  --border: #36333f;
  --radius: 20px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fdf8ff;
    --surface: #f4eefa;
    --surface-2: #ebe3f5;
    --text: #1c1b20;
    --muted: #5d5766;
    --primary: #6750a4;
    --on-primary: #ffffff;
    --border: #d9d0e4;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

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

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

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }

nav.lang a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
}
nav.lang a[aria-current="page"] { background: var(--surface-2); color: var(--text); }

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

.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }

.meta { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.meta code { word-break: break-all; }

.phones { display: flex; justify-content: center; gap: 16px; }
.phone {
  width: min(44%, 240px);
  border-radius: 28px;
  border: 5px solid var(--surface-2);
  background: #000;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.phone:nth-child(2) { margin-top: 36px; }
.phone img { display: block; width: 100%; height: auto; }

section { padding: 48px 0; }
section h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 8px; letter-spacing: -.01em; }
section p.sub { color: var(--muted); margin: 0 0 28px; max-width: 60ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }

.shots { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.shots figure { margin: 0; width: min(100%, 250px); text-align: center; }
.shots .phone { width: 100%; }
.shots figcaption { color: var(--muted); font-size: .92rem; margin-top: 10px; }

ol.steps { padding-left: 1.2em; margin: 0; }
ol.steps li { margin-bottom: 8px; }

.verify { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.verify code { display: block; word-break: break-all; margin: 4px 0 14px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-size: .88rem; }

p.sub.mt { margin-top: 16px; }
p.sub.t1 { margin: 6px 0 10px; }
p.sub.t2 { margin: 0 0 6px; }
.verify code.inline { display: inline; margin: 0; padding: 2px 6px; }
.verify code.last { margin-bottom: 0; }

footer { border-top: 1px solid var(--border); padding: 28px 0 48px; color: var(--muted); font-size: .92rem; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .phone:nth-child(2) { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
