/* ExpatMarket NL — стили этапа 1. Mobile-first, без внешних шрифтов и скриптов. */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #5b6773;
  --line: #e2e8ef;
  --brand: #1f8fd6;
  --brand-strong: #166fa8;
  --brand-soft: #e8f4fc;
  --accent: #f2b233;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --surface: #171e26;
    --text: #e6edf3;
    --muted: #9aa7b4;
    --line: #26313d;
    --brand: #4fb3f0;
    --brand-strong: #7cc8f5;
    --brand-soft: #14293a;
    --shadow: none;
    color-scheme: dark;
  }
}

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

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

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

a { color: var(--brand-strong); text-underline-offset: .15em; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 14px; letter-spacing: .5px;
}
.brand-name { font-size: 17px; }
.header-nav { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--brand-soft); }
.lang-switch a {
  min-width: 42px; min-height: 38px; display: inline-grid; place-items: center; padding: 0 8px;
  border-radius: 9px; color: var(--brand-strong); text-decoration: none; font-weight: 700; font-size: 15px;
}
.lang-switch a[aria-current] { background: var(--brand); color: #fff; }
.lang-switch a:not([aria-current]):hover { background: var(--surface); }
.cta-short { display: none; }

/* Кнопки */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; text-align: center;
  box-shadow: var(--shadow);
}
.button:hover { background: var(--brand-strong); color: #fff; }
.button-small { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.button-ghost { background: transparent; color: var(--brand-strong); border: 1px solid var(--line); box-shadow: none; }
.button-ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }

.draft {
  margin: 0; padding: 10px 16px; text-align: center; font-size: 14px;
  background: #fff4d6; color: #5a4300; border-bottom: 1px solid #f0d995;
}

/* Содержание */
main { padding-top: 8px; padding-bottom: 48px; }
h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; margin: 32px 0 16px; letter-spacing: -.01em; }
h2 { font-size: clamp(22px, 4.2vw, 28px); line-height: 1.25; margin: 48px 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
p, ul, ol { margin: 0 0 14px; }
.subtitle { font-size: clamp(19px, 3.6vw, 23px); line-height: 1.35; font-weight: 600; max-width: 680px; margin-bottom: 10px; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }

.hero { padding: 8px 0 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.note { font-size: 15px; color: var(--muted); }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; padding: 0; list-style: none; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 14px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0 0 6px; }
.card .example { font-size: 15px; }
.card-emoji { font-size: 26px; line-height: 1; display: block; margin-bottom: 8px; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; position: relative; padding: 16px 16px 16px 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); font-weight: 800;
}

.panel {
  background: var(--brand-soft); border-radius: var(--radius); padding: 20px; margin: 32px 0;
}
.panel h2 { margin-top: 0; }

.checklist { padding-left: 0; list-style: none; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand-strong); font-weight: 800; }
.checklist.no li::before { content: "✕"; color: #c2410c; }

.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }

.breadcrumbs { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.breadcrumbs a { color: var(--muted); }

.cta-block {
  text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 18px; margin: 48px 0 8px; box-shadow: var(--shadow);
}
.cta-block p { color: var(--muted); }

/* Контактная форма */
.contact-form { max-width: 560px; margin: 8px 0 24px; }
.contact-form p { margin: 0 0 14px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.contact-form .button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.cf-turnstile { min-height: 65px; margin: 0 0 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 36px; font-size: 15px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 12px 0 0; list-style: none; }
.footer-links a { color: var(--muted); }
.legal { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal h2 { font-size: 16px; margin: 0 0 8px; color: var(--text); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 8px; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; overflow-wrap: anywhere; }
.legal p { margin: 0; }

@media (min-width: 640px) {
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .panel { padding: 28px 32px; }
}

@media (max-width: 600px) {
  .brand-name { display: none; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
}

@media (max-width: 420px) {
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .lang-switch a { transition: background-color .15s ease, color .15s ease; }
}
