/* ============ Tokens ============ */
:root {
  --ink: #20252b;          /* dark slate, main dark surface */
  --ink-2: #171b20;
  --ink-soft: #5b6470;
  --paper: #ffffff;
  --paper-alt: #f3f4f6;
  --line: #e2e5e9;
  --accent: #d6263b;       /* red: shared by the Polish and Italian flags */
  --accent-dark: #b01d30;
  --green: #009246;
  --on-dark: #ffffff;
  --on-dark-soft: rgba(255, 255, 255, 0.72);

  --font-display: "Montserrat", "Arial Black", Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --gutter: 16px;
  --maxw: 1440px;
  --header-h: 72px;
  color-scheme: light;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 84px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

.dark { background: var(--ink); color: var(--on-dark); }
.alt { background: var(--paper-alt); }

.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }

/* Two-line section title: small kicker + big bold line */
.section-title { margin-bottom: 28px; }
.section-title > span { display: block; }
.section-title > span:last-child {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-lead { font-size: 1.15rem; max-width: 60ch; color: var(--ink-soft); }
.dark .section-lead { color: var(--on-dark-soft); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.link-arrow { font-weight: 700; color: var(--accent); text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-btn { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }

/* ============ Tricolore divider ============ */
.tricolore { display: flex; height: 6px; }
.tricolore span { flex: 1; }
.tricolore span:nth-child(1) { background: var(--green); }
.tricolore span:nth-child(2) { background: #fff; }
.tricolore span:nth-child(3) { background: var(--accent); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(32, 37, 43, 0.96);
  backdrop-filter: blur(8px);
  color: var(--on-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.wordmark { display: flex; align-items: center; text-decoration: none; }
.wordmark img { display: block; width: auto; height: calc(var(--header-h) - 24px); }  /* ITALY35 logo, 543×214 */
.wordmark-footer img { height: 60px; }
.footer-tagline { margin: 14px 0 0; max-width: 34ch; font-size: 0.95rem; color: var(--on-dark-soft); }

.wordmark, .header-actions, .main-nav a, .header-donate { white-space: nowrap; flex-shrink: 0; }

.main-nav { display: flex; gap: 18px; margin-left: auto; }
.main-nav a {
  text-decoration: none; font-family: var(--font-display); font-weight: 700;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--on-dark-soft);
}
.main-nav a:hover { color: var(--on-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  background: transparent; color: var(--on-dark-soft); border: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  padding: 6px 10px; cursor: pointer; letter-spacing: 0.06em;
}
.lang-switch button[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); }

.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--on-dark); margin: 6px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Compact (hamburger) mode: set by initNav() whenever the full menu doesn't fit on one line,
   so it adapts to the longer PL/IT labels instead of relying on a fixed breakpoint. */
.site-header.is-compact .nav-toggle { display: block; }
.site-header.is-compact .header-actions { margin-left: auto; }
.site-header.is-compact .main-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  flex-direction: column; gap: 0;
  background: var(--ink); padding: 8px var(--gutter) 20px;
  transform: translateY(-120%); transition: transform .25s ease;
  box-shadow: 0 12px 24px rgba(0,0,0,.3);
  z-index: -1;
}
.site-header.is-compact .main-nav.open { transform: translateY(0); }
.site-header.is-compact .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 0.95rem; }
.site-header.is-measuring .main-nav { transition: none; }

@media (max-width: 520px) {
  .header-donate { display: none; }
  .header-inner { gap: 12px; }
}

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  display: grid; gap: 40px; align-items: center;
  padding-top: 56px; padding-bottom: 64px;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1.15fr; padding-top: 80px; padding-bottom: 96px; }
}
@media (min-width: 1100px) { .hero-inner { column-gap: 80px; } }
@media (min-width: 1400px) { .hero-inner { column-gap: 128px; } }
.hashtag { font-family: var(--font-display); font-weight: 800; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 14px; }
.hero-title { margin-bottom: 22px; }
.hero-name {
  display: block; font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-dark-soft); margin-bottom: 8px;
}
.hero-copy { container-type: inline-size; min-width: 0; }
/* each <br> line stays whole; size follows the column ("35 MARATONÓW." ≈ 9.2em wide) */
.hero-tagline {
  display: block; font-size: min(5.4rem, 10.5cqi); font-weight: 900; white-space: nowrap;
  text-transform: uppercase; line-height: 1.12; letter-spacing: -0.02em;
}
.hero-tagline .accent { color: var(--accent); }
.hero-lead { font-size: 1.15rem; color: var(--on-dark-soft); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
/* Hero map: real route drawn once on load, polaroid pinned at Rome (viewBox coords 278,278) */
.hero-map { position: relative; margin: 0; width: 100%; max-width: 660px; justify-self: center; }
@media (min-width: 900px) { .hero-map { justify-self: end; } }
.hero-map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-map-land { fill: #2b3138; stroke: rgba(255,255,255,.4); stroke-width: 1.2; stroke-linejoin: round; }
.hero-route { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: hero-draw 3.6s ease-in-out .4s forwards; }
.hero-map-start { fill: var(--green); stroke: #fff; stroke-width: 3; }
.hero-map-finish { fill: var(--accent); stroke: #fff; stroke-width: 3; opacity: 0; animation: hero-pop .4s ease-out 3.9s forwards; }
.hero-map-city { fill: #fff; }
.hero-map-pin-line { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 4 4; }
.hero-map-label { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 1.5px; fill: #fff; }
.hero-map-label-finish { opacity: 0; animation: hero-pop .4s ease-out 3.9s forwards; }
@keyframes hero-draw { to { stroke-dashoffset: 0; } }
@keyframes hero-pop { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-route { animation: none; stroke-dashoffset: 0; }
  .hero-map-finish, .hero-map-label-finish { animation: none; opacity: 1; }
}
.hero-polaroid {
  position: absolute; left: 1%; top: 28%; width: 34%; box-sizing: border-box; padding: 1.6% 1.6% 2.4%;
  background: #fff; border-radius: 3px; box-shadow: 0 18px 36px rgba(0,0,0,.45); transform: rotate(-4deg);
  display: flex; flex-direction: column; gap: 6px;
}
.hero-polaroid img { width: 100%; aspect-ratio: 9 / 10; height: auto; object-fit: cover; object-position: 50% 26%; }
.hero-polaroid span { font-family: var(--font-body); font-style: italic; font-size: clamp(.8rem, 1.4vw, 1rem); color: var(--ink); text-align: center; line-height: 1.2; }

.countdown { border-left: 4px solid var(--accent); padding-left: 16px; }
.countdown-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-soft); }
.countdown-units { display: flex; gap: 24px; margin-top: 4px; }
.countdown-units div { display: flex; flex-direction: column; }
.countdown-units b { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown-units span { font-size: 0.8rem; color: var(--on-dark-soft); text-transform: uppercase; letter-spacing: 0.1em; }
.countdown-status { font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; text-transform: uppercase; }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 8px 0 36px; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.stat { border-top: 4px solid var(--ink); padding-top: 14px; }
.stat:nth-child(4) { border-color: var(--accent); }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 5rem); line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat span { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--ink-soft); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ============ About ============ */
.split { display: grid; gap: 40px; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
/* Vertical 9:16 video next to the story; stays in view while reading on desktop */
.about-video {
  margin: 0 auto; width: 100%; max-width: 360px; aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden; background: var(--ink);
  box-shadow: 0 24px 48px rgba(0,0,0,.18);
}
.about-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-soon {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(160deg, #3a4250 0%, var(--ink) 55%, var(--ink-2) 100%);
  color: var(--on-dark-soft); font-family: var(--font-display); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; padding: 24px;
}
.video-soon svg {
  width: 64px; height: 64px; padding: 18px 16px 18px 20px; border-radius: 50%;
  background: var(--accent); fill: #fff; box-shadow: 0 10px 30px rgba(214,38,59,.4);
}
@media (min-width: 900px) {
  #about .split { grid-template-columns: 360px 1fr; align-items: start; }
  .about-video { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (max-width: 899px) { .about-video { max-width: 320px; } }
.foundation-card {
  margin-top: 28px; padding: 24px; background: var(--paper);
  border-radius: var(--radius); border-left: 5px solid var(--accent);
  box-shadow: 0 8px 24px rgba(32,37,43,.06);
}
.foundation-card h3 { font-size: 1.2rem; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
.foundation-card p { color: var(--ink-soft); }

/* ============ Route ============ */
.route-wrap { display: grid; gap: 16px; margin-top: 12px; }
@media (min-width: 900px) { .route-wrap { grid-template-columns: 1fr 300px; } }
.map {
  height: 560px; border-radius: var(--radius); overflow: hidden;
  background: var(--paper-alt); border: 1px solid var(--line); z-index: 0;
}
@media (max-width: 600px) { .map { height: 420px; } }
.map-error { display: grid; place-items: center; height: 100%; padding: 24px; text-align: center; color: var(--ink-soft); }

.stages { border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; max-height: 560px; min-height: 0; }
@media (max-width: 899px) { .stages { max-height: 320px; } }
.stages-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem;
}
.stage-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.stage-list button {
  width: 100%; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px;
  padding: 10px 16px; background: none; border: 0; border-bottom: 1px solid var(--line);
  font: inherit; font-size: 0.92rem; text-align: left; cursor: pointer; color: var(--ink);
}
.stage-list button:hover { background: var(--paper-alt); }
.stage-list button.active { background: var(--ink); color: #fff; }
.stage-day { font-family: var(--font-display); font-weight: 900; color: var(--accent); }
.stage-list button.active .stage-day { color: #fff; }
.stage-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-km { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 0.85rem; }
.stage-list button.active .stage-km { color: var(--on-dark-soft); }

.marker-pin {
  width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.marker-start { background: var(--green); }
.marker-finish { background: var(--accent); }
.leaflet-popup-content { font-family: var(--font-body); font-size: 0.95rem; }
.leaflet-popup-content b { font-family: var(--font-display); }

/* ============ Foundation extras ============ */
.foundation-list { margin: 0 0 14px; padding-left: 1.1em; color: var(--ink-soft); }
.foundation-list li { margin-bottom: 6px; }
.foundation-list li::marker { color: var(--accent); }
.foundation-note { font-weight: 700; color: var(--ink); }

/* ============ Needs ============ */
.camper {
  display: grid; margin: 12px 0 28px; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); color: var(--on-dark); box-shadow: 0 20px 40px rgba(32,37,43,.18);
}
@media (min-width: 900px) { .camper { grid-template-columns: 1.4fr 1fr; } }
.camper > * { min-width: 0; }
.camper-main { padding: 32px; border-top: 6px solid var(--accent); }
.camper-flag {
  display: inline-block; background: var(--accent); color: #fff; border-radius: 999px; padding: 6px 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.camper-main h3 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; margin: 16px 0 12px; }
.camper-main p { color: var(--on-dark-soft); max-width: 56ch; margin: 0; }
.camper-spec { margin: 0; padding: 24px 32px; background: var(--ink-2); display: grid; align-content: center; }
.camper-spec div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.camper-spec div:last-child { border-bottom: 0; }
.camper-spec dt { font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-soft); }
.camper-spec dd { margin: 0; font-weight: 700; text-align: right; }

.needs-grid { display: grid; gap: 16px; margin-bottom: 36px; }
@media (min-width: 640px) { .needs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .needs-grid { grid-template-columns: repeat(3, 1fr); } }
.need-card { background: var(--paper); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--ink); min-width: 0; }
.need-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.need-card h3 { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; }
.need-card p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }
.need-tag {
  flex-shrink: 0; border: 2px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 2px 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ============ Benefits ============ */
.benefits { display: grid; gap: 0 48px; margin-top: 12px; }
@media (min-width: 800px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
.benefit { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.14); }
.benefit-num { font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; color: var(--accent); line-height: 1; }
.benefit h3 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.benefit p { color: var(--on-dark-soft); margin: 0; }

/* ============ Donate ============ */
.donate { text-align: center; }
.donate .section-title, .donate .section-lead { margin-left: auto; margin-right: auto; }
.progress { max-width: 720px; margin: 0 auto 40px; }
.progress-figures { display: flex; justify-content: space-between; font-size: 0.95rem; color: var(--on-dark-soft); margin-bottom: 8px; }
.progress-figures b { font-family: var(--font-display); color: var(--on-dark); font-size: 1.3rem; }
.progress-bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 1.2s ease; }

.tiers { display: grid; gap: 16px; margin: 32px auto 40px; max-width: 900px; }
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  display: flex; flex-direction: column; gap: 4px; padding: 28px 20px;
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,.18);
  text-decoration: none; transition: border-color .2s, background .2s;
}
.tier:hover { border-color: var(--accent); background: rgba(214,38,59,.08); }
.tier b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 900; }
.tier > span { color: var(--on-dark-soft); }

/* ============ Partners ============ */
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0; }
@media (min-width: 720px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-slot {
  aspect-ratio: 3 / 2; display: grid; place-items: center;
  border: 2px dashed #c9ced5; border-radius: var(--radius);
  color: #9aa2ad; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em;
  text-align: center; padding: 12px;
}
.logo-slot-first { border-color: var(--accent); color: var(--accent); }

/* ============ Follow + contact ============ */
/* The hashtag is one long word: size it to its column so it stays on one line */
#contact .split > div:first-child { container-type: inline-size; }
#contact .section-title > span:last-child { font-size: min(3.4rem, 7.4cqi); overflow-wrap: anywhere; }
.socials { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: inline-block; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
}
.socials a:hover { background: var(--ink); color: #fff; }
.contact-email a { font-weight: 700; color: var(--accent); }

.contact-card { background: var(--paper); padding: 28px; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(32,37,43,.06); }
.contact-card h3 { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; }
.contact-card > p { color: var(--ink-soft); }
.channels { margin: 20px 0 0; }
.channel {
  display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.channel dt { font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.channel dd { margin: 0; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; min-width: 0; }
.copy-btn {
  background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.copy-btn:hover { background: var(--ink); color: #fff; }
/* Narrow card (phones, and the two-column layout around 900-1100px): label goes above the value */
.contact-card { container-type: inline-size; }
@container (max-width: 440px) { .channel { grid-template-columns: 1fr auto; } .channel dt { grid-column: 1 / -1; } }

/* ============ Footer ============ */
.site-footer { padding-bottom: 24px; }
.footer-inner { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 24px; align-items: start; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1fr auto auto; align-items: center; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-inner .lang-switch { justify-self: start; }  /* grid items stretch by default */
.footer-nav a { text-decoration: none; color: var(--on-dark-soft); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--on-dark); }
.copyright { color: rgba(255,255,255,.45); font-size: 0.85rem; margin: 0 auto; }

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

/* ============ Contact form ============ */
.contact-form { display: grid; gap: 16px; margin-top: 20px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid #c9ced5; border-radius: 8px; padding: 12px 14px;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-note { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.form-status { margin: 0; font-weight: 700; }
.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: var(--accent-dark); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-or { margin: 32px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.contact-or + .channels { margin-top: 8px; }

/* ============ Contact: static route map ============ */
.contact-map { margin: 32px 0 0; max-width: 420px; }
.contact-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.contact-map-land { fill: var(--paper); stroke: #c9ced5; stroke-width: 1.2; stroke-linejoin: round; }
.contact-map-route { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.contact-map-start { fill: var(--green); stroke: #fff; stroke-width: 3; }
.contact-map-finish { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.contact-map-label { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 1.5px; fill: var(--ink); }
