:root {
  --ink: #121212;
  --ink-2: #2a2a2a;
  --muted: #5c5c58;
  --line: #e3e3df;
  --line-strong: #cfcfca;
  --bg: #ffffff;
  --surface: #f4f4f1;
  --accent: #0d5eaf;
  --accent-dark: #0a4b8d;
  --accent-soft: #eaf1fa;
  --accent-on-dark: #6fa8e8;
  --error: #b42318;
  --on-dark-muted: #a9a9a4;
  --on-dark-line: #2f2f2f;

  --radius: 8px;
  --radius-lg: 16px;
  --header-h: 68px;
  --font: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { top: 12px; }

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

.tbd { color: var(--muted); font-style: italic; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 17px; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-ghost { border-color: #5a5a5a; color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--on-dark-line); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav a:hover { color: #fff; }

.header-inner > .btn { margin-left: 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ink) url("images/hero-runners.jpg") center 70% / cover no-repeat;
  color: #fff;
  padding: 64px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 18, 0.74);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero .accent { color: var(--accent-on-dark); }

.hero-copy { max-width: 760px; }

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--on-dark-muted); }

.hero h1 {
  font-size: clamp(46px, 7.4vw, 92px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 10ch;
}

.lead {
  margin-top: 24px;
  max-width: 52ch;
  font-size: 19px;
  color: #d4d4cf;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 48px 0 0;
  border-top: 1px solid var(--on-dark-line);
  max-width: 680px;
}
.hero-facts > div { padding: 16px 16px 0 0; }
.hero-facts dt { font-size: 13px; color: var(--on-dark-muted); }
.hero-facts dd {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
  scroll-margin-top: var(--header-h);
}
.section-alt { background: var(--surface); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2,
.split h2,
.reg-aside h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}
.section-head p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

/* Lanes (race list) */

.lanes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.lane {
  display: grid;
  grid-template-columns: 56px 96px 190px minmax(0, 1fr) auto;
  grid-template-areas: "no time dist info btn";
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.lane-no {
  grid-area: no;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.lane-time {
  grid-area: time;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lane-dist {
  grid-area: dist;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.lane-dist small {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 4px;
  color: var(--muted);
}

.lane-info { grid-area: info; }
.lane-info h3 { font-size: 20px; font-weight: 700; }
.lane-info p { margin-top: 4px; color: var(--muted); font-size: 16px; }

.lane-btn { grid-area: btn; }

/* Start / finish */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.body-lg { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 46ch; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.note-block {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.note-block h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }

.map-frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e9e9e5;
}
.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

/* Info */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.block-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.docs { list-style: none; margin: 0; padding: 0; }
.docs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.docs li:last-child { border-bottom: 1px solid var(--line); }
.docs strong { display: block; font-weight: 600; }
.docs li span:not(.chip) { font-size: 14px; color: var(--muted); }

.chip {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 60ch; }

/* ---------- Registration ---------- */

.reg-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: start;
}

.reg-aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.reg-aside h2:focus { outline: none; }
.reg-aside > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); }

.reg-facts { margin: 32px 0 0; }
.reg-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line-strong);
  font-size: 15px;
}
.reg-facts dt { color: var(--muted); }
.reg-facts dd { margin: 0; font-weight: 600; text-align: right; }
.reg-facts dd.tbd { font-weight: 500; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.reg-form { counter-reset: step; }

.fs {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  counter-increment: step;
}
.fs + .fs {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.fs legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 20px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.fs legend::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.fs-hint { margin: -8px 0 16px; font-size: 15px; color: var(--muted); }

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.span-2 { grid-column: span 2; }

.field label:not(.check),
.field .label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input::placeholder { color: #9a9a95; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23121212' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field input:hover,
.field select:hover { border-color: #b5b5af; }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #e4e4e0;
}

.field.has-error input,
.field.has-error select { border-color: var(--error); }

.field-error {
  min-height: 0;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--error);
}
.field-error:empty { display: none; }

/* Race selector */

.race-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.race-option {
  position: relative;
  display: block;
  padding: 16px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.race-option:hover { border-color: #a9a9a3; }

.race-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ro-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.ro-dist {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ro-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ro-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.race-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.race-option:has(input:checked) .ro-time,
.race-option:has(input:checked) .ro-label { color: var(--ink-2); }
.race-option:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.race-options.has-error .race-option { border-color: var(--error); }

/* Segmented (gender) */

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.segmented label { position: relative; cursor: pointer; }
.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented span {
  display: grid;
  place-items: center;
  height: 50px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 600;
  transition: border-color .15s ease, background-color .15s ease;
}
.segmented label:hover span { border-color: #b5b5af; }
.segmented input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.segmented input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.segmented.has-error span { border-color: var(--error); }

/* Checkboxes */

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}
.check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.field + .field .check { margin-top: 4px; }
.fs > .field + .field { margin-top: 14px; }
.check a { color: var(--accent); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.form-note { font-size: 14px; color: var(--muted); }

.form-status { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--error); }
.form-status:empty { display: none; }

.form-success { padding: 12px 0; }
.form-success h3 { font-size: 30px; font-weight: 800; }
.form-success h3:focus { outline: none; }
.form-success p:not(.eyebrow) { margin-top: 12px; color: var(--muted); max-width: 52ch; }
.form-success .btn { margin-top: 28px; }
.demo-note {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 72px 0 0;
  scroll-margin-top: var(--header-h);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 56px;
}

.footer-text { margin-top: 16px; color: var(--on-dark-muted); font-size: 15px; }

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-dark-muted);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li + li { margin-top: 8px; }
.footer-list a { text-decoration: none; font-weight: 500; }
.footer-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .tbd { color: var(--on-dark-muted); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 14px;
  color: var(--on-dark-muted);
}
.footer-bottom a { color: var(--on-dark-muted); }

/* ---------- Partner logos (top of page) ---------- */

.partners {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.partners-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.partner-dimos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}
.partner-dimos img { width: 76px; height: auto; }

.partner-banner {
  width: auto;
  height: 124px;
  max-width: 100%;
  object-fit: contain;
}

/* ---------- Free entry ---------- */

.free-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.free-inline { color: var(--ink); font-weight: 700; }

.free-callout {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
  font-size: 17px;
}
.free-callout strong { color: var(--accent); }
.reg-aside .free-callout + p { margin-top: 16px; color: var(--muted); }

/* ---------- Voices (Δημαρχείο background) ---------- */

.voices {
  position: relative;
  padding: 96px 0;
  color: #fff;
  background: #0f1e33 url("images/dimarxeio.jpg") center 30% / cover no-repeat;
}
.voices::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 22, 40, 0.8);
}
.voices > .container { position: relative; z-index: 1; }
.voices h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; max-width: 20ch; }

.voices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.voice {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
}

.voice-photo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.voice-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.voice blockquote { margin: 0; font-size: 18px; line-height: 1.55; }

.voice figcaption {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.voice figcaption strong { font-weight: 700; }
.voice figcaption span { font-size: 15px; color: var(--muted); }

/* ---------- Link buttons (Πληροφορίες) ---------- */

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.link-tile {
  display: flex;
  flex-direction: column;
  min-height: 156px;
  padding: 22px 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.lt-no {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.lt-title {
  margin-top: auto;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lt-meta { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }

a.link-tile:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
a.link-tile:hover .lt-meta { color: var(--on-dark-muted); }
a.link-tile:hover .lt-no { color: var(--accent-on-dark); }

.link-tile.is-soon {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}

.link-row { margin-top: 24px; font-size: 15px; }

/* ---------- Video + photo carousel ---------- */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  color: #fff;
  text-align: center;
}
.video-placeholder strong { font-size: 24px; font-weight: 800; }
.video-placeholder span { color: var(--on-dark-muted); }

.carousel { margin-top: 48px; }

.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.carousel-count {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.carousel-btn:hover { background: var(--ink); color: #fff; }

.carousel-track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
}
.slide img,
.slide-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
}
.slide-placeholder {
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
}

/* ---------- FAQ + contact layout ---------- */

.faq-wrap,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: start;
}
.faq-wrap .section-head { margin-bottom: 0; }
.contact-grid h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.contact-grid h2:focus { outline: none; }

.contact-facts { margin: 28px 0 0; }
.contact-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.contact-facts dt { color: var(--muted); }
.contact-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.contact-facts a { color: var(--accent); }

/* ---------- Extra form controls ---------- */

.field textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #e4e4e0;
}
.field.has-error textarea { border-color: var(--error); }

.field input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.field.has-error input[type="file"] { border-color: var(--error); }

.field-hint { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.field-hint a { color: var(--accent); }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.success-code { margin-top: 14px; font-size: 17px; }
.success-code strong {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  letter-spacing: 0.04em;
}

/* ---------- Phone-friendly upload ---------- */

.field label.file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
  padding: 18px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.field label.file-drop:hover { border-color: var(--ink); }
.file-drop:has(.file-input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.file-drop-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-drop-sub { font-size: 14px; line-height: 1.45; color: var(--muted); }
.field label.file-drop.has-file {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
}
.file-drop.has-file .file-drop-title { color: var(--ink); }
.field.has-error label.file-drop { border-color: var(--error); }

/* ---------- Map touch guard (phones) ---------- */

.map-frame { position: relative; }
.map-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 16px;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.map-shield::after {
  content: "Πατήστε για χρήση του χάρτη";
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.map-shield { color: transparent; }
@media (pointer: coarse) {
  .map-shield { display: flex; }
}

/* ---------- Form details for phones ---------- */

.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 50px;
  text-align: left;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }

.form-card { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Terms of participation ---------- */

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.site-footer .link-btn { color: var(--on-dark-muted); }

.chip-action {
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.chip-action:hover { background: var(--ink); color: #fff; }

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

body.dialog-open { overflow: hidden; }

.terms-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.terms-dialog[open] { display: flex; flex-direction: column; }
.terms-dialog::backdrop { background: rgba(12, 14, 18, 0.6); }

.terms-head,
.terms-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
}
.terms-head {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.terms-head h2 { font-size: 20px; font-weight: 800; }
.terms-foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.terms-close {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.terms-close:hover { border-color: var(--ink); }

.terms-body {
  overflow-y: auto;
  padding: 24px 28px 28px;
  font-size: 16px;
  line-height: 1.65;
}
.terms-body h3 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.terms-body h3:first-child { margin-top: 0; }
.terms-body p + p { margin-top: 12px; }
.terms-list {
  margin: 14px 0 16px;
  padding-left: 22px;
}
.terms-list li + li { margin-top: 8px; }
.terms-list li::marker { color: var(--accent); font-weight: 700; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }

  .split,
  .info-grid,
  .reg-grid { grid-template-columns: minmax(0, 1fr); }

  .hero { padding: 48px 0 72px; }

  .reg-aside { position: static; }

  .faq-wrap,
  .contact-grid,
  .voices-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap, .contact-grid { gap: 28px; }
  .voices { padding: 72px 0; }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-banner { height: 104px; }
  .reg-grid { gap: 28px; }
  .reg-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    margin-top: 20px;
  }
  .reg-facts > div { flex-direction: column; gap: 0; padding: 10px 0; font-size: 14px; }
  .reg-facts dd { text-align: left; }

  .lane {
    grid-template-columns: 48px 80px minmax(0, 1fr) auto;
    grid-template-areas:
      "no time dist btn"
      "no time info btn";
    row-gap: 6px;
  }
  .lane-dist { font-size: 40px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }

  .brand-name { font-size: 16px; }
  .header-inner .btn-sm { padding: 0 12px; font-size: 14px; }

  .hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts dd { font-size: 16px; }

  .partners-inner {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .partner-banner { width: 100%; height: auto; }
  .partner-dimos { font-size: 15px; }
  .partner-dimos img { width: 52px; }

  .voice { padding: 22px 20px; }
  .voice blockquote { font-size: 17px; }

  .link-tile { min-height: 124px; padding: 16px; }
  .lt-title { font-size: 17px; }

  .slide { flex-basis: 84%; }
  .carousel { margin-top: 36px; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }

  .lane {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "time no"
      "dist dist"
      "info info"
      "btn btn";
    row-gap: 8px;
    padding: 22px 0;
  }
  .lane-time { font-size: 16px; color: var(--muted); }
  .lane-btn { width: 100%; margin-top: 8px; }

  .map-frame iframe { height: 320px; }
  .button-row .btn { flex: 1 1 100%; }


  .form-card { padding: 22px 18px; border-radius: 14px; }
  .reg-facts { display: none; }
  .race-option { padding: 14px 16px; }
  .check { font-size: 15px; }
  .check input { width: 22px; height: 22px; }
  .fs + .fs { margin-top: 28px; padding-top: 28px; }
  .fs legend { font-size: 18px; }
  .fields,
  .race-options { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .form-actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .terms-dialog { width: calc(100% - 16px); max-height: 92vh; }
  .terms-head, .terms-foot { padding: 14px 18px; }
  .terms-head h2 { font-size: 17px; }
  .terms-body { padding: 18px 18px 22px; font-size: 15px; }
  .terms-foot .btn { flex: 1 1 0; padding: 0 12px; font-size: 15px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 430px) {
  .brand-name { display: none; }
}
