:root {
  --bg: #eaf5ff;
  --surface: #ffffff;
  --text: #1d2440;
  --muted: #5a6382;
  --accent: #3b8bff;
  --accent-ink: #ffffff;
  --border: #d6e6fa;
  --red: #ff5a5a;
  --green: #2ec46b;
  --orange: #ff8c1e;
  --purple: #a65bff;
  --yellow: #ffb400;
  --sky: linear-gradient(180deg, #bfe3ff 0%, #eaf5ff 70%);
  --shadow: 0 20px 50px rgba(30, 90, 180, 0.16);
  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1424;
    --surface: #172036;
    --text: #f2f5fc;
    --muted: #a6b0c8;
    --accent: #5fa2ff;
    --accent-ink: #0b0f1a;
    --border: #26314d;
    --sky: linear-gradient(180deg, #16284a 0%, #0e1424 70%);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--sky) no-repeat, var(--bg);
  background-size: 100% 720px, auto;
  color: var(--text);
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Nunito", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3, .brand { font-weight: 800; }

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

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

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; gap: 8px; font-size: 15px; }
.nav a { color: var(--muted); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
.nav a:hover { text-decoration: none; background: var(--surface); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 16px; }
.hero h1 .abc span:nth-child(1) { color: var(--red); }
.hero h1 .abc span:nth-child(2) { color: var(--green); }
.hero h1 .abc span:nth-child(3) { color: var(--accent); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  padding: 13px 24px; border-radius: 999px; font-weight: 700;
}
.button:hover { text-decoration: none; opacity: 0.9; }
.button svg { width: 20px; height: 20px; fill: currentColor; }
.cta small { color: var(--muted); font-size: 14px; }

.phones { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(280px, 70%);
  border-radius: 38px;
  border: 8px solid #1d2440;
  box-shadow: var(--shadow);
  background: #1d2440;
  display: block;
  height: auto;
}
.phones .phone:first-child { transform: rotate(-3deg); }
.phones .phone + .phone { position: absolute; width: min(230px, 55%); right: -10px; bottom: -40px; transform: rotate(4deg); }

/* Features */
.section { padding: 64px 0; }
.section h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.01em; margin: 0 0 10px; text-align: center; }
.section .sub { color: var(--muted); text-align: center; margin: 0 auto 40px; max-width: 36em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 6px solid var(--c, var(--accent));
  border-radius: var(--radius); padding: 24px;
}
.card h3 { margin: 12px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .icons {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; font-size: 28px;
  background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent);
}
.c-red { --c: var(--red); }
.c-green { --c: var(--green); }
.c-blue { --c: var(--accent); }
.c-orange { --c: var(--orange); }
.c-purple { --c: var(--purple); }
.c-yellow { --c: var(--yellow); }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.level { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; font-size: 15px; font-weight: 600; }
.level span { font-size: 22px; flex: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img.phone { margin: 0 auto; }
.split ul { padding-left: 1.1em; color: var(--muted); }
.split li { margin: 6px 0; }
.split h2 { text-align: left; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; justify-items: center; }
.gallery figure { margin: 0; text-align: center; color: var(--muted); font-size: 15px; font-weight: 600; }
.gallery .phone { width: min(230px, 100%); margin: 0 auto 12px; }

/* Document pages */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 20px 72px; }
.doc h1 { font-size: clamp(30px, 4.5vw, 42px); letter-spacing: -0.01em; line-height: 1.15; margin: 8px 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc .summary { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--green); border-radius: var(--radius); padding: 18px 22px; }
.doc .summary p { margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 4px 20px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq details p, .faq details ul { margin-top: 0; color: var(--muted); }
.contact { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--yellow); border-radius: var(--radius); padding: 22px; margin-top: 32px; }
.contact p { margin: 0 0 6px; }

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

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 16px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .phones { padding-bottom: 40px; }
  .features { grid-template-columns: 1fr; }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .split h2 { text-align: center; }
  .split .sub { text-align: center !important; margin-left: auto !important; }
  .nav { gap: 4px; }
  .phones .phone + .phone { right: 0; }
}

@media (max-width: 480px) {
  .brand span { display: none; }
}
