:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #22261f;
  --muted: #5f665a;
  --line: #e4e1d8;
  --accent: #2f5d3a;
  --accent-dark: #234629;
  --accent-soft: #eaf1e9;
  --error: #a3261d;
  --radius: 10px;
  --max: 960px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 64px; -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, Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 247, .96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: .2px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--accent-soft); }

@media (max-width: 720px) {
  .site-header .wrap { flex-direction: column; align-items: stretch; height: auto; padding-top: 8px; }
  .nav { margin: 4px -16px 0; padding: 0 10px 6px; }
}

/* Hero */
.hero { position: relative; color: #fff; background: #2b2f27; }
.hero img { width: 100%; height: clamp(260px, 52vw, 460px); object-fit: cover; opacity: .62; }
.hero-text { position: absolute; inset: auto 0 0 0; padding: 24px 0 32px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(30px, 6vw, 48px); line-height: 1.15; }
.hero p { margin: 0; font-size: clamp(17px, 2.6vw, 21px); font-style: italic; max-width: 32ch; }

/* Sections */
section { padding: 48px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h2 { font-size: 28px; line-height: 1.2; margin: 0 0 16px; }
h3 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; max-width: 60ch; }
.muted { color: var(--muted); font-size: 15px; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; list-style: none; }
.facts li { background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px; padding: 6px 14px; font-size: 15px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .body { padding: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Price tables */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 20px 0; }
.prices table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prices caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.prices td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }

.downloads { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.downloads a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
}
.downloads a:hover { border-color: var(--accent); }
.downloads span { color: var(--muted); font-size: 14px; white-space: nowrap; }

.note { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; font-size: 16px; }

/* Board */
.board { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.board li { background: var(--surface); padding: 12px 16px; }
.board small { display: block; color: var(--muted); font-size: 14px; }

.sponsors { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sponsors a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--text); font-size: 15px; }
.sponsors a:hover { border-color: var(--accent); }

/* Form */
.contact { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .contact { grid-template-columns: 1fr 1.4fr; } }

form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 11px 12px; border: 1px solid #cfcbc0; border-radius: 8px; background: var(--surface);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 13px 22px; justify-self: start;
}
button:hover { background: var(--accent-dark); }

.status { border-radius: 8px; padding: 12px 14px; font-size: 16px; }
.status.ok { background: var(--accent-soft); color: var(--accent-dark); }
.status.err { background: #fbeceb; color: var(--error); }
.status[hidden] { display: none; }

/* Footer */
.site-footer { background: #22261f; color: #cfd3ca; padding: 28px 0; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Legal pages */
.legal { padding: 40px 0 56px; }
.legal h1 { font-size: 32px; margin: 0 0 20px; }
.legal h2 { font-size: 21px; margin: 28px 0 8px; }
.legal p, .legal li { max-width: 70ch; }
