:root {
    --ink: #161616;
    --muted: #5c584f;
    --paper: #f4f1ea;
    --card: #fff;
    --line: #e3ddd2;
    --accent: #b8893a;
    --on-accent: #1a1408;
    --header: #111;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
a { color: inherit; }
img { max-width: 100%; }

.demo-bar {
    margin: 0;
    padding: 8px 16px;
    background: #fff4cc;
    color: #5c4300;
    font-size: 14px;
    text-align: center;
}
.wrap { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--header);
    color: #fff;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}
.brand { text-decoration: none; font-weight: 800; letter-spacing: 0.04em; line-height: 1.05; }
.brand small { display: block; font-weight: 600; letter-spacing: 0.14em; font-size: 11px; opacity: 0.75; }
nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
nav a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 650; }
nav a:hover { color: var(--accent); }

.hero {
    padding: 48px 0 28px;
    background:
        linear-gradient(160deg, rgba(0,0,0,.55), rgba(0,0,0,.2)),
        var(--hero, #222);
    color: #fff;
}
.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(40px, 8vw, 76px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}
.kicker { margin: 0 0 8px; letter-spacing: 0.16em; font-size: 13px; font-weight: 700; }
.hero p { max-width: 36rem; margin: 0; font-size: 18px; }
.hero-photo { position: relative; min-height: 340px; padding: 0; overflow: hidden; background: #111; }
.hero-photo img.place { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0,0,0,.62), rgba(0,0,0,.28)); }
.hero-photo .wrap { position: relative; z-index: 1; padding: 72px 0 48px; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.photo-credit { position: absolute; right: 12px; bottom: 8px; z-index: 1; margin: 0; font-size: 12px; }
.photo-credit a { color: #fff; }

.phone-bar {
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 800;
    text-align: center;
    padding: 12px 16px;
}
.phone-bar a { text-decoration: none; }

.actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: -22px;
}
.action {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.action strong { display: block; font-size: 18px; }
.action span { color: var(--muted); font-size: 14px; }
.action:hover { border-color: var(--accent); }

section { padding: 28px 0; }
h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.02em; }
.lead { margin: 0 0 16px; color: var(--muted); }

.cards, .courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card, .course {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
}
.card h3, .course h3 { margin: 0 0 6px; font-size: 18px; }
.card p, .course p { margin: 0; color: var(--muted); }

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
}
.steps { margin: 0; padding-left: 18px; }
.steps li { margin: 6px 0; }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.map-wrap {
    position: relative;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #e7e2d8;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.facts { margin: 0; }
.facts div { margin: 0 0 8px; }
.facts a { font-weight: 700; }

.sponsors { display: flex; flex-wrap: wrap; gap: 8px; }
.sponsor {
    flex: 1 1 120px;
    min-height: 64px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    background: #fff;
}

.site-footer { background: var(--header); color: #efeae2; padding: 28px 0; font-size: 14px; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.site-footer h2 { font-size: 16px; color: #fff; }
.site-footer p { margin: 0 0 8px; }
.demos { display: flex; flex-wrap: wrap; gap: 8px; }
.demos a {
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    padding: 4px 10px;
}

.theme-sea {
    --accent: #1f7a72;
    --on-accent: #fff;
    --hero: #0d3d45;
    --header: #0c2c30;
}
.theme-alto {
    --accent: #3d6b3a;
    --on-accent: #fff;
    --hero: #243624;
    --header: #1a2618;
}
.theme-gold { --hero: #3a2a12; }

@media (max-width: 800px) {
    .actions, .cards, .courses, .split, .foot-grid { grid-template-columns: 1fr; }
    .actions { margin-top: 12px; }
}
