/* Cesta k pomoci – jeden súvislý štýl (2026-11-15).
   Farby vychádzajú z hero ilustrácie: tyrkysová, slnečná žltá, svetlá obloha. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --mist: #f1f8fb;
  --sky: #dff3fb;
  --ink: #16323d;
  --muted: #566b75;
  --soft-muted: #7d8f97;
  --teal: #17788f;
  --teal-dark: #0f5f73;
  --teal-soft: #e3f3f7;
  --sun: #f4b740;
  --sun-soft: #fdf3d9;
  --line: #e0e9ed;
  --surface: #ffffff;
  --surface-soft: var(--mist);
  --radius: 18px;
  --shadow: 0 14px 40px rgba(22, 50, 61, 0.08);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --section: clamp(4rem, 9vw, 7rem);
}

/* ── Základ ─────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; }
h1 { margin-bottom: 1.5rem; font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 700; }
h2 { margin-bottom: 1rem; font-size: clamp(1.85rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { margin-bottom: 0.6rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

.eyebrow { margin: 0 0 0.75rem; color: var(--teal); font-size: 0.9rem; font-weight: 600; }

.nav-shell, main, footer { width: min(1160px, 100% - 3rem); margin-inline: auto; }

/* ── Hlavička ───────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-shell { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; width: fit-content; text-decoration: none; font: 700 1.1rem var(--display); color: var(--ink); letter-spacing: -0.01em; }
.brand-mark { display: block; width: 36px; height: 36px; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.desktop-nav { display: flex; align-items: center; gap: 0.25rem; }
.desktop-nav a, .nav-link { border: 0; border-radius: 999px; padding: 0.5rem 0.95rem; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.desktop-nav a:hover, .nav-link:hover { color: var(--ink); }
.nav-link.is-active { background: var(--mist); color: var(--ink); }
.nav-journey, .detail-nav > .button { justify-self: end; }
.menu-toggle { display: none; }

/* ── Tlačidlá ───────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0 1.4rem;
  border: 1.5px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none; text-align: center;
  font-size: 0.98rem; font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button-primary { background: var(--teal); color: #fff; }
.button-primary:hover { background: var(--teal-dark); }
.button-outline, .button-soft { border-color: var(--line); background: var(--surface); color: var(--teal-dark); }
.button-outline:hover, .button-soft:hover { border-color: var(--teal); background: var(--teal-soft); }
.button-large { min-height: 56px; padding-inline: 2rem; font-size: 1.05rem; }
.button:disabled { opacity: 0.6; cursor: default; }
.text-link { border: 0; padding: 0; background: transparent; color: var(--teal-dark); cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ── Sekcie ─────────────────────────────────────────────── */
.view-section { padding-block: clamp(3rem, 6vw, 4.5rem) var(--section); scroll-margin-top: 73px; }
.homepage-view { padding: 0; }
.section-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.section-intro h2 { margin-bottom: 0; }
.section-intro > p { margin: 0 0 0.25rem; color: var(--muted); max-width: 52ch; }

/* ── Domov: hero ────────────────────────────────────────── */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(520px, 43vw, 620px); padding-block: 3.5rem; }
.hero-copy { position: relative; z-index: 1; width: min(520px, 46%); }
.hero-lead { margin-bottom: 2.25rem; color: var(--muted); font-size: 1.2rem; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero-count { margin: 1.75rem 0 0; color: var(--muted); font-size: 0.95rem; }
.hero-count strong { color: var(--ink); font: 700 1.25rem var(--display); font-variant-numeric: tabular-nums; margin-right: 0.15rem; }
.hero-note { margin: 0.5rem 0 0; color: var(--soft-muted); font-size: 0.9rem; max-width: 46ch; }
.hero-visual {
  position: absolute; z-index: 0; bottom: 0;
  right: max(50% - 50vw, -110px);
  width: clamp(640px, 74vw, 1100px);
  pointer-events: none;
}
.hero-visual img { display: block; width: 100%; height: auto; }

/* ── Domov: pás so sprievodcom ──────────────────────────── */
.home-quickstart {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-inline: calc(50% - 50vw); padding: 2rem max(1.5rem, 50vw - 580px);
  background: var(--sky);
}
.home-quickstart > div { display: grid; gap: 0.2rem; }
.home-quickstart strong { font: 600 1.35rem var(--display); letter-spacing: -0.01em; }
.home-quickstart span { color: var(--muted); }

/* ── Domov: prínosy ─────────────────────────────────────── */
.home-benefits { padding-block: var(--section); }
.home-section-title { margin-bottom: 3.5rem; }
.home-section-title h2 { margin-bottom: 0.75rem; }
.home-section-title > p:last-child { margin: 0; color: var(--muted); max-width: 52ch; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; }
.benefit { border-top: 3px solid var(--sun); padding-top: 1.25rem; }
.benefit-icon { display: block; width: 28px; height: 28px; margin-bottom: 0.9rem; color: var(--teal); }
.benefit-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { margin-bottom: 0.4rem; }
.benefit p { margin: 0; color: var(--muted); }

/* ── Domov: zoznamy materiálov a záverečná výzva ────────── */
.home-library-section { padding-block: 0 var(--section); }
.home-section-header { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 2rem; }
.home-section-header h2 { margin: 0; }
.home-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: var(--section); padding: clamp(2rem, 5vw, 3.5rem); border-radius: 28px; background: var(--ink); }
.home-final-cta h2 { margin: 0; color: #fff; }
.home-final-cta .eyebrow { color: var(--sun); }
.home-final-cta .button-primary { background: var(--sun); color: var(--ink); }
.home-final-cta .button-primary:hover { background: #e7a626; }

/* ── Filtre ─────────────────────────────────────────────── */
.country-quick-filter { margin-bottom: 3rem; padding: 1.5rem; border-radius: var(--radius); background: var(--mist); }
.country-quick-filter-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1rem; }
.country-quick-filter-heading .eyebrow { margin: 0; }
.country-quick-filter-hint { color: var(--muted); font-size: 0.9rem; }
.country-flag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.country-flag-button { appearance: none; display: inline-flex; align-items: center; gap: 0.55rem; min-height: 48px; padding: 0.5rem 0.85rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.country-flag-button:hover { border-color: var(--teal); }
.country-flag-button.is-selected { border-color: var(--teal); background: var(--teal-soft); }
.country-flag-symbol { font-size: 1.4rem; line-height: 1; }
.country-flag-name { white-space: nowrap; }
.country-flag-count { min-width: 1.6rem; padding: 0.1rem 0.4rem; border-radius: 999px; background: var(--mist); color: var(--teal-dark); text-align: center; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.country-flag-button.is-selected .country-flag-count { background: #fff; }

.filter-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.filter-panel .field-wide { grid-column: 1 / -1; }
.filter-panel label { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.filter-panel label > span { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.filter-panel input, .filter-panel select { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; background: var(--surface); color: var(--ink); }
.filter-panel input { padding: 0 0.9rem 0 2.7rem; }
.filter-panel select { padding: 0 2.2rem 0 0.8rem; cursor: pointer; }
.filter-panel input:focus, .filter-panel select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23, 120, 143, 0.14); }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; top: 14px; left: 14px; width: 20px; height: 20px; fill: none; stroke: var(--soft-muted); stroke-width: 1.8; }
.ambulance-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.checkbox-field { flex-direction: row !important; align-items: center; gap: 0.7rem !important; align-self: end; min-height: 48px; }
.filter-panel .checkbox-field input { width: 20px; min-height: 20px; height: 20px; padding: 0; accent-color: var(--teal); }
.checkbox-field > span { display: flex; flex-direction: column; color: var(--ink) !important; font-size: 0.9rem !important; line-height: 1.3; }
.checkbox-field small { color: var(--muted); font-weight: 400; }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin: 2rem 0 1.25rem; }
.results-head p { margin: 0; color: var(--muted); }
.results-head strong { color: var(--ink); }
.clear-filters { border: 0; background: transparent; color: var(--teal-dark); cursor: pointer; font-size: 0.9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ── Karty materiálov ───────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.resource-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1.6rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.resource-card:hover { border-color: #c5d6dd; box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.resource-card-free .card-top { padding-right: 4.2rem; }
.format-tag, .status-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0.15rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.format-tag { max-width: 100%; overflow: hidden; background: var(--mist); color: var(--teal-dark); text-overflow: ellipsis; white-space: nowrap; }
.resource-card h3 { margin-bottom: 0.35rem; overflow-wrap: anywhere; }
.owner { margin-bottom: 0.6rem; color: var(--muted); font-size: 0.9rem; }
.resource-languages { margin: 0 0 0.7rem; color: var(--soft-muted); font-size: 0.82rem; }
.resource-excerpt { margin: 0 0 1rem; color: var(--muted); font-size: 0.92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.resource-card-compact .resource-excerpt { -webkit-line-clamp: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.chip { padding: 0.25rem 0.6rem; border-radius: 8px; background: #f3f6f7; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.chip.topic { background: var(--teal-soft); color: var(--teal-dark); }
.card-meta { display: grid; gap: 0.35rem; padding-top: 0.9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.card-meta span { display: flex; justify-content: space-between; gap: 1rem; }
.card-meta b { color: var(--ink); font-weight: 600; text-align: right; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; padding-top: 1.1rem; }
.card-actions .button { flex: 1; min-width: 6.5rem; min-height: 42px; padding-inline: 0.9rem; font-size: 0.9rem; }
.rating-line { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.6rem; color: var(--muted); font-size: 0.85rem; }
.rating-stars { color: #dd9a12; font-size: 1.15rem; letter-spacing: 0.05em; white-space: nowrap; }
.rating-line small, .no-rating { color: var(--soft-muted); font-size: 0.85rem; }
.free-ribbon { position: absolute; z-index: 2; top: 22px; right: -38px; width: 150px; padding: 0.25rem 0; transform: rotate(45deg); background: #22834d; color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-align: center; pointer-events: none; }
.loading-card { min-height: 300px; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.loading-card span { display: block; height: 14px; margin-bottom: 1.1rem; border-radius: 8px; background: linear-gradient(90deg, #edf2f4, #f8fafb, #edf2f4); background-size: 200% 100%; animation: shine 1.4s infinite; }
.loading-card span:nth-child(2) { width: 78%; height: 28px; }
.loading-card span:nth-child(3) { width: 54%; }
@keyframes shine { to { background-position: -200% 0; } }
.load-more { display: flex; margin: 2rem auto 0; }
.empty-state { grid-column: 1 / -1; padding: 3.5rem 1.5rem; border: 1.5px dashed #c9d8de; border-radius: var(--radius); text-align: center; color: var(--muted); }

/* ── Vzdelávacie cesty ──────────────────────────────────── */
.learning-section { margin-top: var(--section); padding-top: var(--section); border-top: 1px solid var(--line); }
.learning-card { align-items: flex-start; gap: 0.75rem; }
.learning-card h3, .learning-card > p { margin: 0; }
.learning-card > p { color: var(--muted); }
.learning-card .button { margin-top: auto; }
.learning-recommendation { padding: 1.25rem; border-radius: 16px; background: var(--mist); }
.learning-recommendation h3 { margin-top: 0; }
.learning-steps { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.learning-step { border: 1.5px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; background: var(--surface); }
.learning-step label { display: flex; align-items: flex-start; gap: 0.8rem; cursor: pointer; }
.learning-step input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 4px; accent-color: var(--teal); }
.learning-step label > span { display: grid; gap: 0.3rem; }
.learning-step label > span > span { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.learning-step:has(input:checked) { border-color: #9fcdd9; background: var(--mist); }

/* ── Ambulancie ─────────────────────────────────────────── */
.directory-notice { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.5rem; padding: 1.1rem 1.25rem; border-radius: 16px; background: var(--sun-soft); color: #5f4a14; }
.directory-notice p { margin: 0; }
.notice-icon { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 700; font-size: 0.85rem; }
.ambulance-list { display: grid; gap: 0.9rem; }
.ambulance-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1fr) auto; gap: 1.75rem; align-items: center; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ambulance-card:hover { border-color: #c5d6dd; }
.ambulance-title h3 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.ambulance-title p, .ambulance-contact p, .ambulance-hours p { margin: 0.2rem 0; color: var(--muted); font-size: 0.9rem; }
.ambulance-title .location { color: var(--ink); font-weight: 600; }
.status-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.status-verified { background: var(--teal-soft); color: var(--teal-dark); }
.status-candidate { background: #f3efe5; color: #74633c; }
.status-available { background: #dcf3e6; color: #236749; }
.status-limited { background: var(--sun-soft); color: #7a5a10; }
.status-full { background: #f8e3e2; color: #8b3e3b; }
.status-neutral { background: #eef2f3; color: #5d6e75; }
.ambulance-contact a { color: var(--teal-dark); text-decoration: none; overflow-wrap: anywhere; }
.ambulance-contact a:hover { text-decoration: underline; }
.ambulance-hours strong { display: block; margin-bottom: 0.2rem; font-size: 0.85rem; }
.ambulance-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; }
.ambulance-actions .button { min-height: 40px; padding-inline: 1rem; font-size: 0.88rem; }

/* ── O projekte ─────────────────────────────────────────── */
.about-hero { max-width: 780px; margin-bottom: 4rem; }
.about-hero > p:last-child { color: var(--muted); font-size: 1.15rem; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; }
.about-grid article { border-top: 3px solid var(--sun); padding-top: 1.25rem; }
.about-grid article p { margin: 0; color: var(--muted); }
.about-number { display: none; }
.about-callout { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; margin-top: var(--section); padding: clamp(2rem, 5vw, 3rem); border-radius: 28px; background: var(--sky); }
.about-callout h3 { font-size: 1.6rem; }
.about-callout p:not(.eyebrow) { max-width: 60ch; margin-bottom: 0; color: var(--muted); }
.privacy-panel { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; margin-top: 1.5rem; padding: clamp(2rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: 28px; }
.privacy-panel h3 { margin: 0; font-size: 1.5rem; }
.privacy-panel > p { margin: 0; color: var(--muted); }

/* ── Pätička ────────────────────────────────────────────── */
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer p { margin: 0; flex: 1 1 16rem; }
footer > a { font-weight: 600; text-decoration: none; color: var(--ink); }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-link { border: 0; padding: 0; background: transparent; color: var(--teal-dark); cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ── Dialógy: sprievodca a kapacita ─────────────────────── */
.journey-dialog, .capacity-dialog { width: min(760px, 100% - 1.75rem); max-height: calc(100vh - 2.25rem); overflow: auto; padding: 2.75rem; border: 0; border-radius: 28px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 100px rgba(22, 50, 61, 0.25); }
.capacity-dialog { width: min(660px, 100% - 1.75rem); }
.journey-dialog::backdrop, .capacity-dialog::backdrop { background: rgba(22, 50, 61, 0.5); backdrop-filter: blur(4px); }
.journey-dialog h2, .capacity-dialog h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); padding-right: 2.5rem; }
.journey-dialog > p:not(.eyebrow), .capacity-dialog > div > p:not(.eyebrow) { color: var(--muted); }
.dialog-close { position: absolute; top: 1.1rem; right: 1.2rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--mist); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.dialog-close:hover { background: var(--teal-soft); }
.journey-head { display: grid; gap: 1.25rem; }
.journey-progress { height: 6px; overflow: hidden; border-radius: 999px; background: var(--mist); }
.journey-progress span { display: block; height: 100%; border-radius: inherit; background: var(--sun); transition: width 0.25s ease; }
.journey-description { margin: 1.25rem 0 1.5rem; color: var(--muted); }
.journey-options { display: grid; gap: 0.6rem; }
.journey-option { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; width: 100%; min-height: 56px; padding: 0.85rem 1.1rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; font-weight: 500; transition: border-color 0.15s ease, background 0.15s ease; }
.journey-option:hover { border-color: var(--teal); background: var(--mist); }
.journey-option i { color: var(--teal); font-size: 1.15rem; font-style: normal; }
.journey-back { margin-top: 1.25rem; }
.journey-privacy { margin: 1.25rem 0 0; color: var(--soft-muted); font-size: 0.82rem; }
.journey-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.journey-form label, .capacity-form label { display: grid; gap: 0.4rem; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.journey-form select, .capacity-form select, .capacity-form input, .capacity-form textarea { width: 100%; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; background: var(--surface); color: var(--ink); padding: 0 0.9rem; }
.journey-form select:focus, .capacity-form select:focus, .capacity-form input:focus, .capacity-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23, 120, 143, 0.14); }
.journey-form .journey-privacy { align-self: end; margin: 0 0 0.9rem; }
.journey-form .button { grid-column: 1 / -1; margin-top: 0.4rem; }
.sr-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.crisis-panel > p:not(.eyebrow) { max-width: 60ch; color: var(--muted); font-size: 1.1rem; }
.crisis-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0; }
.button-crisis { background: #b53e3a; color: #fff; }
.button-crisis:hover { background: #9c322f; }
.button-crisis-soft { border-color: #e5b2af; background: #fff4f3; color: #8c302d; }
.crisis-help, .journey-warning { padding: 1.1rem 1.25rem; border-radius: 14px; background: var(--sun-soft); color: #5f4a14; }
.crisis-help p { margin: 0.3rem 0 0; }
.crisis-help a { font-weight: 700; }
.journey-warning { margin: 1.25rem 0; }
.journey-results > p:not(.eyebrow) { color: var(--muted); }
.journey-results section { margin-top: 1.75rem; }
.journey-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.journey-section-head h3 { margin: 0; }
.journey-section-head span { color: var(--muted); font-size: 0.82rem; }
.journey-result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.journey-result-card { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.journey-result-card h3 { margin: 0.6rem 0 0.3rem; font-size: 1.02rem; }
.journey-result-card p { margin-bottom: 0.5rem; color: var(--muted); font-size: 0.88rem; }
.journey-result-card a, .journey-result-card button { border: 0; padding: 0; background: transparent; color: var(--teal-dark); cursor: pointer; text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.journey-result-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.portal-note { margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: var(--mist); color: var(--teal-dark); }
.portal-loading { display: grid; place-items: center; min-height: 260px; color: var(--muted); }
.portal-loading span { width: 34px; height: 34px; border: 3px solid var(--teal-soft); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.capacity-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.capacity-form textarea { min-height: 92px; padding-block: 0.75rem; resize: vertical; }
.capacity-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.confirm-field { display: flex !important; align-items: flex-start; gap: 0.6rem !important; color: var(--ink) !important; font-size: 0.9rem !important; font-weight: 500 !important; }
.capacity-form .confirm-field input { flex: 0 0 18px; width: 18px; min-height: 18px; height: 18px; margin-top: 3px; padding: 0; accent-color: var(--teal); }
.portal-success, .portal-error { padding: 0.75rem 0.9rem; border-radius: 12px; font-size: 0.88rem; font-weight: 600; }
.portal-success { background: #dcf3e6; color: #236749; }
.portal-error { background: #f8e3e2; color: #8b3e3b; }

/* ── Detail materiálu ───────────────────────────────────── */
.material-page { padding-block: 2.5rem var(--section); }
.material-breadcrumb { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; color: var(--soft-muted); font-size: 0.9rem; }
.material-breadcrumb a { color: var(--teal-dark); }
.material-header { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.material-header h1 { margin-bottom: 0.75rem; font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; }
.material-owner { margin-bottom: 0.75rem; color: var(--muted); font-size: 1.1rem; }
.material-cta { display: grid; justify-items: start; gap: 0.6rem; }
.material-cta small { max-width: 240px; color: var(--soft-muted); font-size: 0.82rem; }
.material-content-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 3.5rem; padding-block: 3rem 3.5rem; }
.material-content-layout h2, .material-feedback h2 { font-size: 1.7rem; }
.material-description > p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 62ch; }
.material-description h3 { margin-top: 2rem; }
.material-disclaimer { margin-top: 2rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: var(--mist); font-size: 0.9rem !important; }
.material-info { height: fit-content; padding: 1.5rem; border-radius: var(--radius); background: var(--mist); }
.material-info h2 { margin-bottom: 1rem; font-size: 1.2rem; }
.material-info dl { margin: 0; }
.material-info dl > div { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.material-info dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.material-info dt { margin-bottom: 0.15rem; color: var(--soft-muted); font-size: 0.8rem; }
.material-info dd { margin: 0; font-size: 0.95rem; font-weight: 600; }
.material-info small { display: block; margin-top: 0.2rem; color: var(--soft-muted); font-size: 0.78rem; line-height: 1.4; }
.material-feedback { padding-top: 3.5rem; border-top: 1px solid var(--line); }
.material-privacy { max-width: 70ch; color: var(--muted); font-size: 0.92rem; }
.feedback-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.25rem; }
.review-form { display: grid; gap: 1rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); }
.review-form h3 { margin: 0; }
.review-input { display: grid; gap: 0.4rem; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.review-input input, .review-input textarea { border: 1.5px solid var(--line); border-radius: 12px; padding: 0.75rem 0.9rem; line-height: 1.5; color: var(--ink); outline: none; }
.review-input input:focus, .review-input textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23, 120, 143, 0.14); }
.stars-input { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; border: 0; }
.stars-input legend { margin-bottom: 0.6rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.stars-input label { display: flex; align-items: center; gap: 0.3rem; padding: 0.4rem 0.7rem; border: 1.5px solid #f0dcaa; border-radius: 999px; background: var(--sun-soft); color: #7a5a10; cursor: pointer; font-size: 0.9rem; }
.stars-input input { accent-color: var(--teal); }
.spam-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.published-review { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.published-review p { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 0.4rem; }
.published-review small { color: var(--soft-muted); }
#review-message { margin: 0; color: var(--muted); font-size: 0.9rem; }
#detail-status { color: var(--muted); }

/* ── Tablet ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-panel, .ambulance-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ambulance-card { grid-template-columns: 1fr 1fr; }
  .ambulance-actions { flex-direction: row; }
  .material-content-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Na veľmi širokých obrazovkách sa pravý okraj ilustrácie stráca do bielej. */
@media (min-width: 1500px) {
  .hero-visual { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
}

/* ── Mobil ──────────────────────────────────────────────── */
@media (max-width: 780px) {
  body { font-size: 16px; }
  .nav-shell, main, footer { width: min(1160px, 100% - 2rem); }
  .nav-shell { grid-template-columns: 1fr auto; min-height: 64px; }
  .view-section { scroll-margin-top: 65px; }
  .desktop-nav, .nav-journey { display: none; }
  .detail-nav > .button { min-height: 40px; padding-inline: 1rem; font-size: 0.88rem; }
  .menu-toggle { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--mist); cursor: pointer; }
  .menu-toggle span { width: 18px; height: 2px; background: var(--ink); }
  .mobile-nav { display: grid; gap: 0.3rem; width: min(1160px, 100% - 2rem); margin: 0 auto; padding: 0.5rem 0 1rem; }
  .mobile-nav button { min-height: 46px; border: 0; border-radius: 12px; background: var(--mist); text-align: left; padding: 0 1rem; font-weight: 600; cursor: pointer; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-block: 2.5rem 0; }
  .hero-copy { width: 100%; }
  .hero-lead { font-size: 1.08rem; }
  .hero-actions .button { width: 100%; }
  .hero-visual { position: static; width: auto; margin: 1.5rem calc(50% - 50vw) 0; aspect-ratio: 4 / 3; overflow: hidden; }
  .hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 86% 100%; }

  .home-quickstart { flex-direction: column; align-items: stretch; padding: 1.75rem 1rem; }
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .home-final-cta, .about-callout { flex-direction: column; align-items: stretch; grid-template-columns: 1fr; }
  .section-intro { grid-template-columns: 1fr; gap: 1rem; }
  .card-grid, .filter-panel, .ambulance-filters { grid-template-columns: 1fr; }
  .country-quick-filter { padding: 1.1rem; margin-bottom: 2rem; }
  .ambulance-card { grid-template-columns: 1fr; gap: 1rem; }
  .ambulance-actions { flex-wrap: wrap; }
  .ambulance-actions .button { flex: 1; }
  .privacy-panel { grid-template-columns: 1fr; gap: 1rem; }
  .journey-dialog, .capacity-dialog { padding: 2.25rem 1.4rem 1.6rem; border-radius: 22px; }
  .journey-form, .journey-result-grid, .capacity-row { grid-template-columns: 1fr; }
  .material-header, .feedback-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .material-cta .button { width: 100%; }
  .material-cta { justify-items: stretch; }
  .material-cta small { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
