:root {
  --ink: #1c2238;
  --muted: #4d556b;
  --cream: #fbf6ee;
  --sand: #f3eadb;
  --paper: #ffffff;
  --navy: #1f2a52;
  --navy-deep: #161e3d;
  --coral: #b3361f;
  --coral-hover: #942a16;
  --coral-art: #c4452c;
  --amber: #f0b43c;
  --fairspot: #0f6cb8;
  --fairspot-deep: #0b4f88;
  --line: #e4dccd;
  --radius: 14px;
  --shadow: 0 10px 30px -14px rgb(31 42 82 / 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img, svg { max-width: 100%; display: block; }

a { color: var(--coral); text-underline-offset: 0.18em; }
a:hover { color: var(--coral-hover); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 246 238 / 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; }
.brand:hover { color: var(--ink); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { display: block; padding: 0.5rem 0.75rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover { background: var(--sand); color: var(--ink); }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.lang-switch button {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  min-width: 2.75rem;
  min-height: 2rem;
}
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }

@media (max-width: 820px) {
  .header-inner { gap: 0.5rem 1rem; padding-block: 0.5rem; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .site-nav ul { flex-wrap: nowrap; }
  .lang-switch { margin-left: auto; }
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}
.button-primary { background: var(--amber); color: var(--navy-deep); }
.button-primary:hover { background: #f5c565; color: var(--navy-deep); }
.button-ghost { border-color: rgb(255 255 255 / 0.7); color: #fff; }
.button-ghost:hover { background: rgb(255 255 255 / 0.12); color: #fff; }

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #2c3a6e 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}
.bunting {
  position: absolute;
  inset: 0 0 auto 0;
  height: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='34'%3E%3Cpath d='M0 2 Q48 10 96 2' stroke='%23fbf6ee' stroke-opacity='.5' fill='none'/%3E%3Cpath d='M6 4 L22 4 L14 26 Z' fill='%23c4452c'/%3E%3Cpath d='M38 7 L54 7 L46 30 Z' fill='%23f0b43c'/%3E%3Cpath d='M70 4 L86 4 L78 26 Z' fill='%23fbf6ee'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.85rem; color: var(--amber); }
.hero .lead { font-size: 1.2rem; color: #e3e7f3; max-width: 38rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-art svg { width: 100%; max-width: 380px; margin-inline: auto; filter: drop-shadow(0 20px 30px rgb(0 0 0 / 0.35)); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 1.5rem;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: var(--radius);
}
.stats div { display: flex; flex-direction: column-reverse; text-align: center; }
.stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--amber); line-height: 1.1; }
.stats dt { color: #e3e7f3; font-size: 0.95rem; }

@media (max-width: 820px) {
  .hero { padding-top: 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art svg { max-width: 240px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--sand); }
.section-lead { font-size: 1.15rem; color: var(--muted); max-width: 44rem; margin-bottom: 2.5rem; }

.cards { display: grid; gap: 1.5rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .cards-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 48px;
  height: 48px;
  padding: 11px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: #fbe6e1;
  fill: none;
  stroke: var(--coral);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-card { display: flex; flex-direction: column; border-top: 6px solid var(--coral-art); }
.market-card .text-link { margin-top: auto; padding-top: 0.5rem; font-weight: 700; }
.market-meta { font-size: 0.9rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.market-next { font-weight: 600; }
.tag { text-transform: none; letter-spacing: 0; font-size: 0.8rem; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--sand); color: var(--ink); border: 1px solid var(--line); }

/* FairSpot */
.fairspot { background: linear-gradient(135deg, var(--fairspot) 0%, var(--fairspot-deep) 100%); color: #fff; }
.fairspot-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.fairspot h2 { display: flex; align-items: center; gap: 0.75rem; }
.fairspot h2 img { flex: none; border-radius: 10px; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.6); }
.fairspot .lead { font-size: 1.15rem; color: #eef5fc; }
.fairspot-note { color: #eef5fc; font-weight: 600; }
.fairspot-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge { font-size: 0.85rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 999px; background: #fff; color: var(--fairspot-deep); }
.badge-outline { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / 0.8); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.15rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--fairspot-deep);
  font-weight: 800;
}
.steps strong { display: block; }
@media (max-width: 900px) { .fairspot-inner { grid-template-columns: 1fr; } }

/* Team */
.person { display: flex; gap: 1.5rem; align-items: center; }
.person-photo { width: 140px; height: 140px; flex: none; border-radius: 50%; object-fit: cover; border: 4px solid var(--sand); }
.person h3 { margin-bottom: 0.15rem; }
.person-role { color: var(--muted); font-weight: 600; margin-bottom: 0.75rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li + li { margin-top: 0.25rem; }
@media (max-width: 480px) { .person { flex-direction: column; text-align: center; } }

/* Contact */
.section-dark { background: var(--navy); color: #fff; }
.section-dark .section-lead { color: #dde2f0; }
.section-dark a { color: var(--amber); }
.section-dark a:hover { color: #f7cf7d; }
.contact-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.contact-big li { font-size: 1.1rem; }
.contact-big li + li { margin-top: 0.75rem; }
.company { background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.15); border-radius: var(--radius); padding: 1.75rem; }
.company dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; margin: 0; }
.company dt { color: #c8cfe3; }
.company dd { margin: 0; font-weight: 600; }
@media (max-width: 820px) { .contact-inner { grid-template-columns: 1fr; } }

/* Text pages */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.updated { margin-top: 2.5rem; color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c8cfe3; padding: 1.75rem 0; font-size: 0.95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer-inner p { margin: 0; }
.footer-inner ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amber); }
