/* ===== Design tokens ===== */
:root {
  --forest-950: #142218;
  --forest-900: #1f3a27;
  --forest-800: #294a33;
  --forest-700: #33593e;
  --forest-600: #3f6b4a;
  --forest-500: #4a7856;
  --amber-500: #f2b544;
  --amber-600: #e0982a;
  --cream-100: #faf7f0;
  --cream-200: #f2ede0;
  --ink-900: #211d17;
  --ink-700: #4a453c;
  --ink-500: #756e60;
  --white: #ffffff;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-soft: 0 10px 30px -12px rgba(20, 34, 24, 0.25);
  --shadow-card: 0 6px 20px -8px rgba(20, 34, 24, 0.18);

  --container-w: 1180px;

  /* Semantic tokens that flip in dark mode. Kept separate from the raw
     --white/--forest-950 above because those are also used as permanent
     foreground colors on the site's always-dark sections (hero, footer,
     cta) - overriding them directly would break those. */
  --surface: var(--white);
  --heading: var(--forest-950);
  --accent-text: var(--forest-700);
  --border-subtle: rgba(33, 29, 23, 0.08);
  --header-scrolled-bg: rgba(250, 247, 240, 0.97);
}

[data-theme="dark"] {
  --cream-100: #171e19;
  --cream-200: #1f2721;
  --ink-900: #ece7dc;
  --ink-700: #c7c0b1;
  --ink-500: #93897a;
  --surface: #212a23;
  --heading: #f4efe3;
  --accent-text: #9bd4a3;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --header-scrolled-bg: rgba(20, 26, 21, 0.94);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--heading);
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); color: var(--white); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1em;
  color: var(--ink-700);
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

a { color: inherit; }

/* ===== Focus visibility (WCAG 2.4.7 / 1.4.11) ===== */
/* Keyboard-only ring (mouse/touch clicks don't trigger :focus-visible).
   Two-tone white + dark-green ring: amber alone fails 3:1 contrast on
   this site's light sections, but white and forest-950 each contrast
   >12:1 against every background used here (light or dark), so the
   pair stays visible everywhere regardless of context. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--forest-950);
  border-radius: 4px;
}
.faq-item summary:focus-visible { outline-offset: -2px; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--forest-900);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--amber-500), var(--amber-600));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 8px 24px -16px rgba(20, 34, 24, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.3s ease;
}
.site-header.is-scrolled .header-inner { height: 64px; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest-900);
}
.logo-mark { color: var(--amber-500); display: flex; transition: color 0.3s ease; }
.site-header.is-scrolled .logo-mark { color: var(--amber-600); }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
  transition: color 0.3s ease;
}
.site-header.is-scrolled .logo-text { color: var(--heading); }
.logo-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}
.site-header.is-scrolled .logo-sub { color: var(--ink-500); }

.main-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--accent-text); }
.main-nav li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--amber-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.main-nav li > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== Grouped nav dropdowns ("Poznaj wieś", "Zwiedzanie") ===== */
/* Native <details>/<summary> - keyboard- and screen-reader-accessible
   with zero extra ARIA wiring, same pattern as the FAQ accordion.
   Both dropdowns share name="nav-dropdown-group" so opening one closes
   the other (native browser behaviour, no JS needed for that part). */
.nav-group { position: relative; }
.nav-dropdown summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav-dropdown[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-dropdown summary:hover { color: var(--accent-text); }

/* Overrides the inherited `.main-nav ul { display:flex; gap:26px }` -
   that rule matches this nested <ul> too (descendant selector), which
   would otherwise lay the dropdown items out as a horizontal row.
   Needs the `.main-nav` prefix to out-specificity that rule (class +
   type beats a lone class, regardless of source order). */
.main-nav .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 761px) {
  .site-header:not(.is-scrolled) .main-nav a,
  .site-header:not(.is-scrolled) .main-nav summary { color: rgba(255, 255, 255, 0.92); }
  .site-header:not(.is-scrolled) .main-nav a:hover,
  .site-header:not(.is-scrolled) .main-nav summary:hover { color: var(--white); }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 190px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 10px;
    z-index: 110;
  }
  /* Panel is always on a solid white background regardless of header
     state, so its links must always be dark - the !important beats
     the transparent-header white-text override above by design. */
  .nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--ink-700) !important;
    font-size: 0.92rem;
    font-weight: 600;
  }
  .nav-dropdown-menu a:hover { background: var(--cream-200); color: var(--accent-text) !important; }
  .nav-dropdown-menu li:not(:last-child) > a::after { display: none; }
}

@media (max-width: 760px) {
  .main-nav .nav-dropdown-menu {
    gap: 14px;
    padding: 14px 0 0 16px;
    align-items: flex-start;
  }
  .nav-dropdown-menu a { font-size: 0.95rem; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== Theme toggle ===== */
/* Same color duality as .logo-text / .nav-toggle span: white over the
   transparent hero-backed header, dark once the header goes solid on
   scroll. Shows the icon for the mode a click switches TO. */
.theme-toggle {
  position: relative;
  z-index: 96;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, color 0.3s ease;
}
.theme-toggle:hover { background: rgba(128, 128, 128, 0.16); }
.site-header.is-scrolled .theme-toggle { color: var(--heading); }
.theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--sun { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }

.nav-toggle {
  position: relative;
  z-index: 96;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.3s ease;
}
.site-header.is-scrolled .nav-toggle span { background: var(--heading); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 34, 24, 0.4);
  backdrop-filter: blur(3px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--amber-500);
  color: var(--forest-950);
  box-shadow: 0 8px 24px -8px rgba(242, 181, 68, 0.55);
}
.btn-primary:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(242, 181, 68, 0.7);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  border-color: var(--white);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--forest-950) 0%, var(--forest-900) 60%, var(--forest-800) 100%);
  overflow: hidden;
  padding-top: 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-mountains { position: absolute; bottom: 0; left: 0; width: 100%; height: 65%; }
.hero-river {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 30%;
  background: linear-gradient(180deg, rgba(66, 133, 160, 0) 0%, rgba(66, 133, 160, 0.35) 100%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora--a {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -80px;
  background: radial-gradient(circle, var(--amber-500), transparent 70%);
}
.aurora--b {
  width: 420px;
  height: 420px;
  bottom: -140px;
  right: -60px;
  background: radial-gradient(circle, #4285a0, transparent 70%);
  animation-duration: 22s;
  animation-delay: -6s;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.12); }
}

.spark-field { position: absolute; inset: 0; overflow: hidden; }
.spark {
  position: absolute;
  bottom: 6%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 6px 1px rgba(242, 181, 68, 0.8);
  opacity: 0;
  animation: spark-rise 6s ease-in infinite;
}
.spark:nth-child(1) { left: 8%; animation-delay: 0.2s; }
.spark:nth-child(2) { left: 18%; animation-delay: 2.1s; }
.spark:nth-child(3) { left: 27%; animation-delay: 4.3s; }
.spark:nth-child(4) { left: 36%; animation-delay: 1.2s; }
.spark:nth-child(5) { left: 47%; animation-delay: 3.4s; }
.spark:nth-child(6) { left: 56%; animation-delay: 0.8s; }
.spark:nth-child(7) { left: 64%; animation-delay: 5s; }
.spark:nth-child(8) { left: 73%; animation-delay: 2.7s; }
.spark:nth-child(9) { left: 81%; animation-delay: 4.6s; }
.spark:nth-child(10) { left: 89%; animation-delay: 1.7s; }
.spark:nth-child(11) { left: 94%; animation-delay: 3.9s; }
.spark:nth-child(12) { left: 62%; animation-delay: 0s; }
@keyframes spark-rise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 0.4; }
  100% { transform: translateY(-260px) scale(1); opacity: 0; }
}

.text-gradient {
  background: linear-gradient(100deg, var(--amber-500), #ffd98a 45%, var(--amber-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 70px 24px 120px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.eyebrow {
  color: var(--amber-500);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 18px;
}
.hero-lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  z-index: 1;
}
.scroll-cue-dot {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber-500);
  transform: translateX(-50%);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-move {
  0% { top: 7px; opacity: 1; }
  70% { top: 20px; opacity: 0; }
  100% { top: 20px; opacity: 0; }
}

.wave-divider { display: block; line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: 48px; }

.hero-stats {
  position: relative;
  z-index: 1;
  background: var(--forest-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 24px;
  gap: 20px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--amber-500);
  font-weight: 700;
}
.stat-label {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--cream-200); }
.section-kicker {
  color: var(--amber-600);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-kicker--light { color: var(--amber-500); }
.lead-text { font-size: 1.08rem; color: var(--ink-700); max-width: 680px; }
.lead-text.narrow { margin-left: auto; margin-right: auto; text-align: center; }
.lead-text--light { color: rgba(255, 255, 255, 0.82); }

#atrakcje h2, #okolica h2 { text-align: left; }
#atrakcje .lead-text.narrow, #okolica .lead-text.narrow { text-align: left; margin-left: 0; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Staggered card entrance: children fade/rise in sequence once the
   parent .reveal block becomes visible. */
.benefit-card,
.place-card,
.region-card,
.audience-card,
.contact-card,
.person-card,
.distance-item,
.timeline > li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
/* :where() keeps this at zero specificity so :hover states on the
   cards themselves still win once they're revealed. */
:where(.reveal.is-visible) .benefit-card,
:where(.reveal.is-visible) .place-card,
:where(.reveal.is-visible) .region-card,
:where(.reveal.is-visible) .audience-card,
:where(.reveal.is-visible) .contact-card,
:where(.reveal.is-visible) .person-card,
:where(.reveal.is-visible) .distance-item,
:where(.reveal.is-visible) .timeline > li {
  opacity: 1;
  transform: translateY(0);
}
.benefit-grid > :nth-child(1), .card-grid > :nth-child(1), .region-grid > :nth-child(1),
.audience-grid > :nth-child(1), .contact-grid > :nth-child(1), .distance-list > :nth-child(1),
.person-grid > :nth-child(1),
.timeline > li:nth-child(1) { transition-delay: 0.05s; }
.benefit-grid > :nth-child(2), .card-grid > :nth-child(2), .region-grid > :nth-child(2),
.audience-grid > :nth-child(2), .contact-grid > :nth-child(2), .distance-list > :nth-child(2),
.person-grid > :nth-child(2),
.timeline > li:nth-child(2) { transition-delay: 0.12s; }
.benefit-grid > :nth-child(3), .card-grid > :nth-child(3), .region-grid > :nth-child(3),
.audience-grid > :nth-child(3), .contact-grid > :nth-child(3), .distance-list > :nth-child(3),
.person-grid > :nth-child(3),
.timeline > li:nth-child(3) { transition-delay: 0.19s; }
.card-grid > :nth-child(4), .region-grid > :nth-child(4), .distance-list > :nth-child(4),
.person-grid > :nth-child(4), .contact-grid > :nth-child(4),
.timeline > li:nth-child(4) { transition-delay: 0.26s; }
.card-grid > :nth-child(5), .region-grid > :nth-child(5),
.timeline > li:nth-child(5) { transition-delay: 0.33s; }
.card-grid > :nth-child(6), .region-grid > :nth-child(6),
.timeline > li:nth-child(6) { transition-delay: 0.4s; }
.timeline > li:nth-child(7) { transition-delay: 0.47s; }
.timeline > li:nth-child(8) { transition-delay: 0.54s; }
.timeline > li:nth-child(9) { transition-delay: 0.6s; }
.timeline > li:nth-child(10) { transition-delay: 0.66s; }

/* ===== Benefit cards ===== */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.benefit-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--amber-500), var(--forest-500));
  box-shadow: 0 8px 20px -10px rgba(74, 120, 86, 0.6);
}
.benefit-card h3 { margin-bottom: 8px; }
.benefit-card p { margin: 0; font-size: 0.95rem; }

/* ===== Timeline ===== */
.timeline {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  border-left: 2px solid var(--forest-500);
  position: relative;
}
.timeline li {
  position: relative;
  padding: 0 0 40px 32px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber-500);
  border: 3px solid var(--cream-200);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-text);
  font-size: 1rem;
  margin-bottom: 6px;
}
.timeline-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline-body p { margin: 0; font-size: 0.95rem; }

/* ===== Place cards / gallery-style ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.place-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: opacity 0.55s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.place-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.place-media {
  height: 43px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.place-card:hover .place-media { transform: scale(1.06); }
.place-media--river { background: linear-gradient(135deg, #4285a0, #274c5c); }
.place-media--hill { background: linear-gradient(135deg, #5b8a56, #2f4a30); }
.place-media--church { background: linear-gradient(135deg, #c98a3f, #7a4f22); }
.place-media--park { background: linear-gradient(135deg, #6ba36a, #24422a); }
.place-media--castle { background: linear-gradient(135deg, #8b7b6a, #4a3f34); }
.place-media--valley { background: linear-gradient(135deg, #7fa671, #3a5c3c); }
.place-body { padding: 22px 22px 26px; }
.place-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.place-body p { font-size: 0.93rem; margin: 0; }

/* ===== Region cards ===== */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.region-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--amber-500);
}
.region-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.region-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--cream-200);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.region-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.region-card p { font-size: 0.93rem; margin: 0; }

/* ===== Person cards ===== */
.person-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.person-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}
.person-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.person-years {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-600);
  margin-bottom: 8px;
}
.person-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.person-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.person-card p:last-child { font-size: 0.92rem; margin: 0; }

/* ===== Split layout ===== */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.split-reverse { grid-template-columns: 0.9fr 1.1fr; }
.split-reverse .split-text { order: 2; }
.split-reverse .split-visual { order: 1; }
.split-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }

.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li {
  padding-left: 30px;
  position: relative;
  color: var(--ink-700);
  font-size: 0.96rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  background: var(--forest-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.distance-list { display: grid; gap: 18px; margin-top: 28px; }
.dojazd-note { margin-top: 20px; font-size: 0.93rem; }
.distance-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.distance-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-text);
  font-size: 1.3rem;
  min-width: 70px;
}
.distance-label { color: var(--ink-700); font-size: 0.92rem; }

/* ===== Audience cards ===== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 40px;
}
.audience-card {
  border: 1.5px solid var(--forest-500);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  background: var(--surface);
}
.audience-card:hover {
  transform: translateY(-6px);
  border-color: var(--amber-500);
  box-shadow: var(--shadow-soft);
}
.audience-card h3 { color: var(--heading); }
.audience-card p { font-size: 0.94rem; margin: 0; }
.audience-card a {
  display: block;
  margin-top: 6px;
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}
.audience-card a:hover { text-decoration: underline; }

/* Long-form background per institution, tucked behind a native
   <details> toggle so the card grid stays scannable instead of
   turning into a wall of text. Same accessible pattern as .faq-item,
   just smaller to fit the card. */
.audience-card details { margin-top: 12px; }
.audience-card summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  cursor: pointer;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.85rem;
}
.audience-card summary::-webkit-details-marker { display: none; }
.audience-card summary::after {
  content: "+";
  font-size: 1rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.audience-card details[open] summary::after { transform: rotate(45deg); }
.audience-card summary:hover { text-decoration: underline; }

/* Pure-CSS expand/collapse - no JS. The UA stylesheet hides non-open
   <details> content via `display: none`, which an author `display`
   value always overrides regardless of specificity, so setting
   `display: grid` here unconditionally keeps .details-content laid
   out (at zero height) even while closed. That's what lets the
   grid-template-rows 0fr->1fr transition animate both open and close
   instead of the native instant toggle. */
.audience-card .details-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.audience-card details[open] .details-content {
  grid-template-rows: 1fr;
}
.audience-card details p {
  margin: 0;
  padding-top: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.3s ease, padding-top 0.35s ease;
}
.audience-card details[open] p {
  padding-top: 10px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s, padding-top 0.35s ease;
}

/* ===== FAQ ===== */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 24px;
  box-shadow: var(--shadow-card);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 32px 18px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--heading);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--amber-600);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; margin: 0; font-size: 0.96rem; }

/* ===== CTA / Contact ===== */
.cta-section {
  background: linear-gradient(180deg, var(--forest-900), var(--forest-950));
}
.cta-section h2 { color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 380px;
  gap: 24px;
  margin: 36px auto 0;
}
.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--amber-500);
  background: rgba(255, 255, 255, 0.09);
}
.contact-card h3 { color: var(--white); }
.contact-card p { color: rgba(255, 255, 255, 0.75); font-size: 0.93rem; }
.contact-link {
  display: block;
  margin-top: 6px;
  color: var(--amber-500);
  font-weight: 700;
  text-decoration: none;
}
.contact-link:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { background: var(--forest-950); padding: 48px 0 28px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.65);
}
.footer-brand .logo-text { color: var(--white); font-size: 1.2rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; max-width: 320px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--amber-500); }
.footer-copy { width: 100%; font-size: 0.8rem; margin: 24px 0 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: rgba(255, 255, 255, 0.6); }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--forest-900);
  color: var(--amber-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 80;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--forest-700); }

/* ===== Cookie notice ===== */
/* Deliberately small and low-contrast - an information/consent strip,
   not a blocking modal. Sits bottom-left so it never collides with
   .back-to-top (bottom-right). */
.cookie-notice {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: 340px;
  background: rgba(20, 34, 24, 0.97);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-notice.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-notice p {
  margin: 0 0 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}
.cookie-notice a { color: var(--amber-500); text-decoration: underline; }
.cookie-notice-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s ease, opacity 0.2s ease;
}
.cookie-btn--reject { background: transparent; color: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.3); }
.cookie-btn--reject:hover { background: rgba(255, 255, 255, 0.08); }
.cookie-btn--accept { background: var(--amber-500); color: var(--forest-950); }
.cookie-btn--accept:hover { background: var(--amber-600); }

@media (max-width: 480px) {
  .cookie-notice { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .benefit-grid, .card-grid, .audience-grid, .region-grid, .person-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-reverse .split-text, .split-reverse .split-visual { order: initial; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    z-index: 96;
    top: 76px;
    left: 16px;
    right: 16px;
    background: var(--cream-100);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
  }
  .main-nav li:not(:last-child) > a::after { display: none; }
  .nav-toggle { display: flex; }
  .lg-only { display: none; }
}

@media (max-width: 600px) {
  .benefit-grid, .card-grid, .audience-grid, .region-grid, .person-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 40px 24px 90px; }
}
