:root {
  --ink: #0f2a3d;
  --text: #22323f;
  --muted: #5b6b78;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --line: #dde5ec;
  --accent: #0b6e8a;
  --accent-strong: #08566c;
  --accent-soft: #e3f1f5;
  --warm: #f5a524;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 42, 61, .06), 0 12px 32px rgba(15, 42, 61, .08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef5f9;
    --text: #d5e0e8;
    --muted: #97a8b5;
    --bg: #0c1821;
    --surface: #13232f;
    --line: #22384a;
    --accent: #4fb8d4;
    --accent-strong: #7fd0e4;
    --accent-soft: #15313f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.shell { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--accent); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  transition: background .15s ease, transform .15s ease;
}
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--surface); color: var(--ink); }
.site-nav .button { color: #fff; padding: 9px 18px; font-size: .95rem; }
@media (prefers-color-scheme: dark) {
  .button, .button:hover, .site-nav .button { color: #06202a; }
}

/* Hero */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.flow {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; align-self: center; align-content: start;
}
.flow-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.flow-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.flow-icon svg { width: 22px; height: 22px; }
.flow-step strong { display: block; color: var(--ink); }
.flow-step span { color: var(--muted); font-size: .92rem; }
.flow-arrow { width: 2px; height: 16px; background: var(--line); margin-left: 21px; }
.flow-step.result .flow-icon { background: var(--warm); color: #3b2500; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.section.alt .card { background: var(--bg); box-shadow: none; }
.card .flow-icon { margin-bottom: 18px; }
.card p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; font-size: .96rem; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}

/* Product */
.product { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.phone {
  justify-self: center; width: min(280px, 100%); border-radius: 36px; padding: 10px;
  background: var(--ink); box-shadow: var(--shadow);
}
.phone img { border-radius: 28px; }
.product-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.product-brand img { width: 44px; height: 44px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600;
  color: var(--ink); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin: 6px 0 20px;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warm); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: 700; margin-bottom: 14px;
}
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
.note {
  margin-top: 28px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--ink); display: flex; gap: 14px; align-items: flex-start;
}
.note svg { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.note p { margin: 0; }

/* Contact */
.contact {
  background: #0f2a3d; color: #eef5f9; border-radius: 28px;
  padding: clamp(24px, 6vw, 64px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: start;
}
.contact h2 { color: #fff; }
.contact p { color: rgba(238, 245, 249, .8); }
.contact .button { background: var(--warm); border-color: var(--warm); color: #2b1b00; }
.contact .button:hover { background: #ffb940; border-color: #ffb940; color: #2b1b00; }

/* Contact form */
.contact-mail a { color: #fff; }
.contact-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: #fff; }
.field label span { font-weight: 400; color: rgba(238, 245, 249, .7); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: #0f2a3d; background: #fff;
  border: 1px solid transparent; border-radius: 12px; padding: 11px 14px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #7a8a96; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--warm); outline-offset: 1px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact .form-hint { font-size: .88rem; margin: 0; }
.contact .form-hint a { color: #fff; }
.contact-form .button { justify-self: start; }

/* Form result page */
.result-page { padding: 72px 0 96px; }
.result-page article { max-width: 640px; }

/* Footer */
.site-footer { padding: 36px 0 44px; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { color: var(--muted); }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal article {
  max-width: 780px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow);
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal address { font-style: normal; }
.back-link { color: var(--text); text-decoration: none; font-size: .95rem; }

@media (max-width: 900px) {
  .hero-grid, .product, .contact { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .product .phone { order: 2; }
}
@media (max-width: 720px) {
  .site-nav a:not(.button) { display: none; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .brand span { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
@media (prefers-color-scheme: dark) {
  .contact { background: #16374a; border: 1px solid var(--line); }
}
