/* ===== AM RACES — style ===== */
:root {
  --bg: #f4f2ee;
  --ink: #141414;
  --dark: #111315;
  --muted: #6b6b6b;
  --accent: #e8572a;   /* zmień na kolor marki */
  --line: rgba(0,0,0,.12);
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* Nawigacja */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; background: rgba(17,19,21,.85); backdrop-filter: blur(8px); color: #fff;
}
.nav nav { display: flex; gap: 24px; align-items: center; }
.nav nav a { text-decoration: none; font-size: 14px; font-weight: 600; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: .02em; text-decoration: none; }
.logo span { color: var(--accent); margin-left: 4px; }

/* Przyciski */
.btn {
  display: inline-block; padding: 14px 26px; background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 600; border: 2px solid var(--accent); transition: .2s;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--dark); }
.btn-dark { background: var(--dark); border-color: var(--dark); }
.btn-dark:hover { color: var(--dark); }
.btn-small { padding: 8px 16px; }

/* Typografia */
.eyebrow { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 16px; }
h1 { font-size: clamp(56px, 11vw, 140px); line-height: .9; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; font-weight: 800; margin-bottom: 32px; }
h3 { font-size: 20px; margin-bottom: 4px; }
.lead { font-size: 20px; max-width: 560px; margin: 24px 0 36px; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* Hero — podmień gradient na zdjęcie: background-image: url(img/hero.jpg) */
.hero {
  min-height: 100vh; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(17,19,21,.2) 0%, rgba(17,19,21,.9) 100%),
    linear-gradient(135deg, #2c3a33 0%, #111315 70%);
  background-size: cover; background-position: center;
}
.hero-inner { max-width: 1100px; width: 100%; margin: 0 auto; padding: 140px 24px 60px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.2);
  max-width: 1100px; width: 100%; margin: 0 auto;
}
.stats div { padding: 24px; border-right: 1px solid rgba(255,255,255,.2); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--mono); font-size: clamp(18px, 2.6vw, 32px); white-space: nowrap; }
.stats span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }

/* Sekcje */
.section { padding: 120px 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-accent { background: var(--accent); color: #fff; }
.section-accent .eyebrow { color: var(--dark); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col p + p { margin-top: 16px; }

/* Trasa */
.map-placeholder {
  aspect-ratio: 16 / 7; border: 2px dashed rgba(255,255,255,.25);
  display: grid; place-items: center; color: rgba(255,255,255,.5); font-family: var(--mono); font-size: 14px;
  margin-bottom: 40px; padding: 24px; text-align: center;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1px solid rgba(255,255,255,.15); padding: 28px; }
.card-num { font-family: var(--mono); color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.card p:last-child { opacity: .7; }

/* Zasady */
.rules { list-style: none; border-top: 1px solid var(--line); }
.rules li { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 18px; }

/* Stopka */
.footer { background: var(--dark); color: #fff; padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Mobile */
@media (max-width: 760px) {
  .nav nav a:not(.btn) { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.2); }
  .two-col, .cards { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 80px 0; }
}

/* Mapa trasy */
.route-map { width: 100%; max-width: 100%; height: auto; margin: 0 auto 40px; border: 1px solid rgba(255,255,255,.15); }

/* Przełącznik języka */
.nav nav a.lang { font-family: var(--mono); font-size: 13px; border: 1px solid rgba(255,255,255,.4); padding: 4px 8px; }
.nav nav a.lang:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .nav nav a.lang { display: inline-block; } }
