@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fraunces-700.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600.woff2") format("woff2");
}

:root {
  --bg: #FBF7F1;
  --surface: #FFFFFF;
  --ink: #1F1A17;
  --muted: #5C534C;
  --border: #8A7F76;
  --error: #B3261E;
  --accent: #1F4FB8;
  --accent-hover: #183F94;
}

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

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

h1, h2, h3 { font-family: Fraunces, serif; font-weight: 700; margin: 0; }

h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 640px;
}

h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.25; }

.lead {
  font-size: 18px;
  line-height: 1.4;
  max-width: 640px;
  margin: 16px 0 0;
}

p { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 16px;
  padding-block: 8px;
}

.wordmark {
  font-family: Fraunces, serif;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.lang-switch { position: relative; }

.lang-switch summary {
  list-style: none;
  cursor: pointer;
  color: var(--accent);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
}

.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { color: var(--accent-hover); }

.lang-switch ul {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 4px 0 0;
  padding: 8px;
  min-width: 96px;
}

.lang-switch a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 600;
  text-decoration: none;
}

.hero { padding: 48px 0 40px; }
.section { padding-block: 48px; }
.hero-copy { max-width: 640px; }

.hero-form, .form-card { font-size: 16px; }
.hero-form label, .field label, .field legend, .switch-row label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-row { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }

input[type="email"], input[type="text"], select {
  height: 52px;
  width: 100%;
  font: 16px/1.5 Inter, sans-serif;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
}

button.primary {
  height: 52px;
  width: 100%;
  font: 600 16px/1.5 Inter, sans-serif;
  color: var(--surface);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
}

button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.proof { font-size: 16px; color: var(--muted); margin-top: 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.country-item { grid-column: span 4; }

.country-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
}

.soon { color: var(--muted); font-size: 14px; margin-left: auto; }

.form-card { max-width: 480px; }
.field { margin-top: 24px; }
.field:first-child { margin-top: 0; }
fieldset.field { border: 0; padding: 0; margin-top: 24px; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; }
.check input { width: 16px; height: 16px; }
.radius { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.help, .coverage, .consent, .addon-price { font-size: 14px; color: var(--muted); }
.help, .coverage { margin-top: 8px; }
.switch-row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.switch-row input { width: 44px; height: 24px; }
.switch-row label { margin: 0; }
.form-actions { margin-top: 32px; }
.preset { margin: 24px 0; }
.chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}
.consent { margin-top: 16px; }
.consent label { font-weight: 400; }
.field-error { color: var(--error); font-size: 14px; margin-top: 8px; }
.prose, .story { max-width: 65ch; }
.prose p, .story p { margin-top: 16px; }
.author-photo { display: block; width: min(18rem, 100%); height: auto; border-radius: 12px; margin: 0 0 1.5rem; }
.site-footer { padding-block: 48px; }
.footer-place { font-size: 16px; }
.footer-about, .footer-legal { display: flex; align-items: center; gap: 16px; margin-top: 16px; font-size: 16px; }
.footer-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.addon-price { margin-top: 8px; }

@media (min-width: 481px) {
  h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); }
}

@media (min-width: 600px) {
  .wrap { width: min(1120px, calc(100% - 48px)); }
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 24px; }
  .country-item { grid-column: span 4; }
  .hero-row { flex-direction: row; align-items: center; }
  .hero-row input { flex: 1; }
  .hero-row .primary { width: auto; }
}

@media (min-width: 905px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  .lead { font-size: 20px; }
  .hero { padding: 96px 0 64px; }
  .section { padding-block: 64px; }
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .country-item { grid-column: span 4; }
}
