@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600.woff) format('woff'); }
@font-face { font-family: Barlow; font-weight: 700; font-display: swap; src: url(/fonts/barlow-700.woff) format('woff'); }
@font-face { font-family: Barlow; font-weight: 800; font-display: swap; src: url(/fonts/barlow-800.woff) format('woff'); }

:root {
  --brand: #0b3d91;
  --night: #0d1b2e;
  --ink: #14213d;
  --ground: #f3f4f7;
  --muted: #5b6475;
  --line: #dde1e8;
  --yellow: #fffd99;
  --pink: #ffc9d6;
  --ok: #2e7d32;
  --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --ground: #0d1b2e; --ink: #eef1f6; --muted: #a9b3c4; --line: #26364f; --card: #132640; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
h1, h2, h3, .brand { font-family: Barlow, -apple-system, sans-serif; line-height: 1.1; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 .4em; }
h2 { font-weight: 800; font-size: 1.8rem; margin: 2.2em 0 .6em; }
h3 { font-weight: 700; font-size: 1.25rem; margin: 1.6em 0 .4em; }
a { color: var(--brand); }
@media (prefers-color-scheme: dark) { a { color: #8fb4ff; } }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

header.top { background: var(--night); color: #fff; }
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
header.top img { width: 36px; height: 36px; border-radius: 9px; }
header.top .brand { font-weight: 800; font-size: 1.35rem; color: #fff; text-decoration: none; }
header.top nav { margin-left: auto; display: flex; gap: 18px; }
header.top nav a { color: #cfd8e6; text-decoration: none; font-size: .95rem; }
header.top nav a:hover { color: #fff; }

.hero { background: var(--night); color: #fff; padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: #cfd8e6; max-width: 34em; }
.badge { display: inline-block; font-family: Barlow, sans-serif; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: .8rem; padding: 4px 10px; border-radius: 6px; background: #8a5300; color: #fff; margin-bottom: 18px; }
.phones { display: flex; gap: 16px; justify-content: center; }
.phones img { width: 46%; max-width: 240px; border-radius: 26px; border: 6px solid #22324b; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.phones img:nth-child(2) { margin-top: 48px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 8px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }
.marks { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.mark { font-family: Barlow, sans-serif; font-weight: 800; color: #fff; padding: 2px 9px; border-radius: 6px; font-size: .95rem; }
.mark.j { background: #c2185b; } .mark.n { background: #b3261e; } .mark.s { background: #3f3db8; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; border: 1px solid rgba(0,0,0,.15); }

.note { background: var(--card); border-left: 4px solid var(--brand); border-radius: 10px; padding: 14px 18px; margin: 24px 0; color: var(--muted); }
main.doc { padding: 40px 0 64px; }
main.doc p, main.doc li { color: var(--ink); }
main.doc .meta { color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones img { width: 44%; }
  header.top nav { gap: 12px; }
}
.swatch.y { background: var(--yellow); } .swatch.p { background: var(--pink); }
