:root {
  --bg: #f3efe7;
  --paper: #fdfaf3;
  --ink: #1b130b;
  --muted: #5b4e3f;
  --line: rgba(27, 19, 11, 0.16);
  --accent: #39ff14; /* toxic green */
  --accent-2: #ff3fd7; /* neon pink */
  --accent-3: #0ae1ff; /* electric cyan */
  --noise: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px);
  --checker: linear-gradient(45deg, #0d0d0d 25%, transparent 25%),
    linear-gradient(-45deg, #0d0d0d 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #0d0d0d 75%),
    linear-gradient(-45deg, transparent 75%, #0d0d0d 75%);
}

@font-face {
  font-family: "SudFrance";
  src: url("https://gravelcyclist.ru/fonts/sudfrance.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SudFrance";
  src: url("https://gravelcyclist.ru/fonts/sudfrancebold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SudFrance";
  src: url("https://gravelcyclist.ru/fonts/sudfrancebevel.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SudFrance Dingbatz";
  src: url("https://gravelcyclist.ru/fonts/sudfrancedingbatz.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "SudFrance", "Space Grotesk", "Sora", "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--noise);
  opacity: 0.2;
  mix-blend-mode: multiply;
  z-index: 0;
}

a {
  color: inherit;
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.rail {
  border-right: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 22px 14px;
  display: grid;
  gap: 24px;
}

.rail-compact {
  position: sticky;
  top: 0;
  height: 100vh;
}

.rail-logo {
  display: grid;
  gap: 10px;
  align-items: start;
}

.rail-badge {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  border: 1px solid var(--ink);
  padding: 8px;
  text-align: center;
  background: var(--paper);
}

.rail-lockup {
  display: grid;
  gap: 6px;
}

.logo-square {
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  height: 52px;
  width: 52px;
  background: #fff;
  font-weight: 800;
  font-size: 22px;
}

.logo-square.text {
  background: var(--accent);
  color: var(--ink);
}

.logo-square.pattern {
  background-color: var(--accent-2);
  background-image: var(--checker);
  background-size: 18px 18px;
}

.rail-caption {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.rail-nav {
  display: grid;
  gap: 10px;
}

.rail-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rail-nav a:hover {
  transform: translateX(4px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.14);
}

.main {
  padding: clamp(16px, 3vw, 32px) clamp(18px, 4vw, 42px);
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: clamp(18px, 3vw, 32px);
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  font-size: clamp(22px, 3vw, 30px);
}

h4 {
  font-size: 20px;
}

p {
  margin: 0;
}

.lead {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.section-head.tight {
  margin-bottom: 8px;
}

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

.text-block {
  display: grid;
  gap: 8px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  min-height: 44px;
  border: 1px solid var(--ink);
  background: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
  letter-spacing: 0.01em;
}

.btn.primary {
  background: var(--accent);
  color: var(--ink);
}

.btn.ghost {
  background: transparent;
}

.btn.line {
  background: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: #fff;
  font-weight: 700;
  font-size: 13px;
}

.pill.tiny {
  padding: 6px 10px;
  font-size: 12px;
}

.pill.accent {
  background: var(--accent);
}

.pill.accent-alt {
  background: var(--accent-2);
}

.pill.outline {
  background: #f8f8f8;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: center;
  position: relative;
}

.hero-copy {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.brand-title {
  font-size: clamp(82px, 18vw, 230px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: -10px 0 0 0;
  line-height: 0.76;
  font-family: "SudFrance", "Space Grotesk", "Sora", sans-serif;
  font-weight: 800;
  color: #000;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.hero-visual.simple .disc.big {
  width: clamp(240px, 32vw, 360px);
  height: clamp(240px, 32vw, 360px);
  font-size: clamp(64px, 8vw, 96px);
}

.ding-type {
  display: inline-block;
  font-family: "SudFrance Dingbatz", "SudFrance", "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: clamp(120px, 16vw, 220px);
  line-height: 0.85;
  background: radial-gradient(circle at 50% 50%, #ffe680 0%, #ffb347 45%, #ff8c00 85%);
  -webkit-background-clip: text;
  color: transparent;
  text-decoration: none;
  position: absolute;
  right: clamp(0px, 4vw, 40px);
  bottom: clamp(-18px, -3vw, -36px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.hero-lockup {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.disc {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  background: #fff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
  text-decoration: none;
  color: inherit;
}

.hero-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.checker {
  width: 100%;
  height: 22px;
  background-color: var(--accent-2);
  background-image: var(--checker);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px, 8px -8px, -8px 8px;
}

.hero-photo {
  position: relative;
  width: clamp(280px, 40vw, 380px);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--ink);
  overflow: hidden;
  border-radius: 16px;
  background: #d7d7d7;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.hero-photo,
.hero-photo img,
.photo-fallback,
.halo {
  display: none;
}

.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.socials .accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--ink);
}

.features {
  display: grid;
  gap: 18px;
}

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

.feature-card {
  padding: 16px;
  border: 1px solid var(--ink);
  background: #fff;
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--ink);
  opacity: 0.16;
  pointer-events: none;
}

.feature-card h4 {
  font-size: 18px;
}

.feature-card p {
  color: var(--muted);
}

.feature-card.tone-one .shape {
  background: linear-gradient(135deg, var(--accent) 0%, #b0ffc6 100%);
}

.feature-card.tone-two .shape {
  background: linear-gradient(135deg, var(--accent-2) 0%, #ffd2f4 100%);
}

.feature-card.tone-three .shape {
  background: linear-gradient(135deg, var(--accent-3) 0%, #c8f3ff 100%);
}

.shape {
  width: 120px;
  height: 120px;
  position: relative;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.16);
}

.shape.triangle {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.shape.orbit::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.shape.heart {
  clip-path: path("M60 15C52 0 30 0 26 18C22 0 0 0 0 18C0 33 14 47 26 60C38 73 52 85 60 100C68 85 82 73 94 60C106 47 120 33 120 18C120 0 98 0 94 18C90 0 68 0 60 15Z");
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.membership {
  display: grid;
  gap: 12px;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion details {
  border: 1px solid var(--ink);
  padding: 12px;
  background: #fff;
}

.accordion summary {
  font-weight: 800;
  cursor: pointer;
  outline: none;
}

.accordion p {
  margin: 8px 0 0 0;
  color: var(--muted);
}

.race-section {
  display: grid;
  gap: 12px;
}

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

.race-card {
  position: relative;
  border: 1px solid var(--ink);
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.race-card::before {
  content: "";
  position: absolute;
  inset: -30% 50% 0 -10%;
  background: radial-gradient(circle, var(--race-accent, var(--accent)) 0%, transparent 60%);
  opacity: 0.2;
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 0;
}

.race-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.race-card > * {
  position: relative;
  z-index: 1;
}

.race-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.race-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.race-img {
  position: relative;
  width: 100%;
  height: 170px;
  border: 1px solid var(--ink);
  overflow: hidden;
}

.race-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.race-card .btn {
  width: 100%;
  justify-content: center;
}

.spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: center;
}

.spotlight-body {
  display: grid;
  gap: 12px;
}

.stat-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.stat {
  border: 1px solid var(--ink);
  padding: 10px;
  background: #fff;
  text-align: center;
  display: grid;
  gap: 4px;
}

.stat span {
  font-weight: 800;
  font-size: 20px;
}

.stat small {
  color: var(--muted);
  font-weight: 600;
}

.spotlight-visual {
  position: relative;
  width: 100%;
  height: 260px;
  border: 1px solid var(--ink);
  background: #dcdcdc;
  overflow: hidden;
}

.spotlight-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed {
  display: grid;
  gap: 12px;
}

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

.feed-card {
  border: 1px solid var(--ink);
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
}

.feed-img {
  height: 160px;
  border-bottom: 1px solid var(--ink);
}

.feed-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-body {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.page-footer {
  padding: 16px 0 10px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.race-main .panel {
  overflow: visible;
}

.race-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: center;
}

.race-hero-media {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.race-hero-img {
  position: relative;
  width: clamp(260px, 38vw, 420px);
  border: 1px solid var(--ink);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.race-hero-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.race-body {
  display: grid;
  gap: 16px;
}

.map-panel {
  display: grid;
  gap: 10px;
}

.map-shell {
  position: relative;
  border: 1px solid var(--ink);
  overflow: hidden;
}

.map-shell .checker {
  height: 18px;
}

.map-shell iframe {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
  filter: saturate(0.95) contrast(0.98);
}

.collage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-auto-rows: 160px;
  gap: 6px;
  grid-auto-flow: dense;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
  border: none;
}

.collage-item {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #f2f2f2;
}

.collage-item:nth-child(6n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

.collage-item:nth-child(10n + 4) {
  grid-row: span 2;
}

.collage-item:nth-child(9n + 6) {
  grid-column: span 2;
}

.list {
  padding-left: 16px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .rail {
    position: relative;
    height: auto;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .rail-nav {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 640px) {
  .panel {
    padding: 16px;
    border-radius: 14px;
  }

  .hero-photo,
  .race-hero-img {
    width: 100%;
  }

  .race-img {
    height: 140px;
  }

  .collage {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    grid-auto-rows: 140px;
  }

  .collage-item {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 420px) {
  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
  }

  .footer-links {
    gap: 8px;
  }

  .main {
    padding: 14px;
    gap: 18px;
  }

  .panel {
    padding: 14px;
  }

  .hero,
  .race-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand-title {
    font-size: clamp(68px, 22vw, 140px);
    line-height: 0.82;
    word-break: break-word;
  }

  .race-strip,
  .copy-grid,
  .spotlight,
  .feed-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .race-card,
  .feature-card {
    padding: 12px;
    gap: 8px;
  }

  .feed-img {
    height: 140px;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: grid;
    place-items: center;
  }

  .hero-visual .ding-type {
    position: absolute;
    right: 10px;
    top: 350px;
    transform: none;
    font-size: 130px;
    line-height: 0.86;
    opacity: 0.85;
    width: auto;
    text-align: left;
  }
}
