:root {
  --bg: #faf8f3;
  --card: #ffffff;
  --ink: #17160f;
  --muted: #5c5a50;
  --line: #e3ded2;
  --accent: #ffc21a;
  --accent-ink: #17160f;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12120f;
    --card: #1a1a16;
    --ink: #f1eee5;
    --muted: #a9a597;
    --line: #2c2b25;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

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

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; font-size: 19px; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); box-shadow: inset 0 -6px 0 rgba(0,0,0,.18); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 16px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .lang { color: var(--ink); font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } .hero { padding-top: 40px; } }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 22px; font-weight: 800; }
.mark { background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%); padding: 0 .08em; color: inherit; }
.lead { font-size: 20px; color: var(--ink); margin: 0 0 28px; max-width: 34em; }
.note { font-size: 15px; color: var(--muted); margin: -12px 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid var(--ink); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-ghost:hover { background: var(--card); }
figure { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.photo figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 44em; margin-bottom: 32px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); font-size: 19px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; }
.card h3 { font-size: 21px; line-height: 1.3; margin: 0 0 10px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 17px; }
.card .tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card a { font-weight: 600; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 20px; margin: 0 0 8px; line-height: 1.3; }
.steps p { margin: 0; color: var(--muted); font-size: 17px; }
.guard { margin: 22px 0 0; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); font-size: 17px; }

/* Contact band */
.contact { background: var(--accent); color: var(--accent-ink); }
.contact h2 { max-width: 20em; }
.contact p { font-size: 19px; max-width: 36em; margin: 0 0 26px; }
.contact .btn { border-color: var(--accent-ink); color: var(--accent-ink); }
.contact .btn-solid { background: var(--accent-ink); color: #fff8e1; }
.contact .btn-solid:hover { background: #fff8e1; color: var(--accent-ink); }
.contact .btn-ghost:hover { background: rgba(255,255,255,.35); }

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

/* 404 */
.notfound { padding: 96px 0; }
