/* ==============================================================
   UTŽO ŽALEC – Design System & Global Styles
   ============================================================== */

/* ── 1. Design Tokens ─────────────────────────────────────────── */
:root {
  --green:       #2D5A45;
  --green-mid:   #3A7057;
  --green-dark:  #1A3829;
  --green-l:     #E8F2EC;
  --green-xl:    #F1F8F4;

  --amber:       #C97F1A;
  --amber-sat:   #DF9020;
  --amber-l:     #FEF2D8;
  --amber-xl:    #FFFBF0;

  --cream:       #FAF8F4;
  --white:       #FFFFFF;

  --text:        #1B1B19;
  --text-soft:   #3E3930;
  --text-muted:  #716860;
  --text-faint:  #A19890;

  --border:      #E4DDD6;
  --border-s:    #C9C1B6;

  --ff-head: 'Lora', Georgia, 'Times New Roman', serif;
  --ff-body: 'Inter', system-ui, -apple-system, Arial, sans-serif;

  --header-h: 74px;

  --r-s:  6px;
  --r-m:  12px;
  --r-l:  20px;
  --r-xl: 28px;

  --sh-xs: 0 1px 3px rgba(0,0,0,.05);
  --sh-s:  0 2px 8px -2px rgba(0,0,0,.08);
  --sh-m:  0 6px 22px -6px rgba(0,0,0,.11);
  --sh-l:  0 14px 44px -12px rgba(0,0,0,.15);
  --sh-xl: 0 26px 62px -18px rgba(0,0,0,.18);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 250ms var(--ease);
  --t-slow: 480ms var(--ease);

  --focus: 0 0 0 3px rgba(45,90,69,.22), 0 0 0 6px rgba(201,127,26,.28);

  font-size: clamp(17px, 1.05vw + 12px, 20px);
}

/* ── 2. Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--r-s);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 50%;
  top: 12px;
  width: auto;
  height: auto;
  padding: .6rem 1.2rem;
  background: var(--amber);
  color: var(--text);
  font-weight: 600;
  border-radius: var(--r-m);
  transform: translateX(-50%);
  z-index: 9999;
}

.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── 3. Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 68ch;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ── 4. Layout ────────────────────────────────────────────────── */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  position: relative;
}

section.bg-cream { background: var(--cream); }
section.bg-green { background: var(--green-dark); color: var(--white); }
section.bg-green h2, section.bg-green h3 { color: var(--white); }
section.bg-green .lead { color: rgba(255,255,255,.82); }

.cols-2 { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
@media (min-width: 700px) { .cols-2 { grid-template-columns: 1fr 1fr; } }

.cols-3 { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); }
@media (min-width: 640px) { .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ── 5. Header & Navigation ───────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background 400ms var(--ease), backdrop-filter 400ms var(--ease),
    border-color var(--t-base), box-shadow var(--t-base);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--sh-m);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
  color: var(--text);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
  line-height: 1.2;
}

.brand-logo {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background-image: url('../images/logo-icon.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-text .brand-name { font-size: 1rem; }
.brand-text .brand-sub  { font-size: .68rem; font-weight: 400; color: var(--text-muted); font-family: var(--ff-body); letter-spacing: .04em; text-transform: uppercase; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .2rem;
  align-items: center;
  flex-wrap: nowrap;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: .55rem .9rem;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--r-m);
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}

.primary-nav a:hover {
  background: var(--green-xl);
  color: var(--green);
}

.primary-nav a[aria-current="page"] {
  background: var(--green);
  color: var(--white);
  font-weight: 600;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: var(--green-xl);
  border: 1px solid var(--green-l);
  color: var(--green);
  width: 44px;
  height: 44px;
  border-radius: var(--r-m);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
  transition: background var(--t-fast);
}

.nav-toggle:hover { background: var(--green-l); }

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}

.hamburger { position: relative; }
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after  { top:  6px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 880px) {
  .brand {
    transition: opacity 400ms var(--ease), visibility 0s;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 2;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 1;
    background: var(--white);
    border-bottom: 0 solid var(--border);
    box-shadow: none;
    padding: 0;
    height: 0;
    overflow: hidden;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .primary-nav.open {
    background: var(--white);
    border-bottom-width: 0;
    box-shadow: none;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    background: var(--white);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    border-bottom-color: transparent;
    box-shadow: none;
  }

  body.nav-open .brand {
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms var(--ease), visibility 0s linear 400ms;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: .65rem 1rem 1rem;
  }

  .primary-nav a {
    font-size: 1.1rem;
    padding: .8rem 1rem;
    width: 100%;
  }
}

/* ── 6. Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--amber);
  color: var(--white);
  padding: .85rem 1.6rem;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: none;
  border-radius: var(--r-l);
  cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(201,127,26,.4);
  transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  background: var(--amber-sat);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -6px rgba(201,127,26,.45);
}

.btn:active { transform: translateY(0); }

.btn.btn-green {
  background: var(--green);
  box-shadow: 0 4px 14px -4px rgba(45,90,69,.35);
  color: var(--white);
}

.btn.btn-green:hover {
  background: var(--green-mid);
  box-shadow: 0 8px 22px -6px rgba(45,90,69,.4);
}

.btn.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}

.btn.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.9);
}

.btn.btn-outline {
  background: transparent;
  color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green);
}

.btn.btn-outline:hover {
  background: var(--green-xl);
}

.btn-sm {
  padding: .55rem 1.1rem;
  font-size: .9rem;
  border-radius: var(--r-m);
}

/* ── 7. Page main spacing ─────────────────────────────────────── */
main { padding-top: var(--header-h); }

/* ── 8. Hero / Slideshow ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(500px, 78vh, 820px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--green-dark);
}

.slider {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,48,33,.72) 0%,
    rgba(20,48,33,.3) 50%,
    rgba(0,0,0,.1) 100%
  );
}

.slide.active { opacity: 1; }

.slide-content {
  position: relative;
  z-index: 2;
  padding: 2rem 4% 3rem 4%;
  max-width: 960px;
  width: 100%;
}

.slide { display: flex; }

.slide-content h2 {
  margin: 0 0 1rem;
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
  line-height: 1.15;
}

.slide-content p {
  margin: 0 0 1.4rem;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  max-width: 52ch;
}

/* Slider controls – vertically centered in upper 55% to avoid text overlap */
.slider-controls {
  position: absolute;
  inset: 0 0 45% 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 0 1.4rem;
  z-index: 3;
}

.slider-btn {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.2);
  transition: background var(--t-base), border-color var(--t-base),
              transform var(--t-base), box-shadow var(--t-base);
}

.slider-btn:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.75);
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.3);
}

.slider-btn:active { transform: scale(.97); }

/* Dots — modern pill style */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: width .4s var(--ease), background .4s var(--ease);
}

.slider-dots button.active {
  width: 26px;
  background: var(--white);
  border-radius: 4px;
}

/* ── 9. Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--green);
  color: var(--white);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  text-align: center;
  padding: 1rem .5rem;
}

.stat-num {
  display: block;
  font-family: var(--ff-head);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--amber-l);
  line-height: 1;
  margin-bottom: .35rem;
}

.stat-label {
  font-size: .88rem;
  color: rgba(255,255,255,.78);
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ── 10. Section Headers ──────────────────────────────────────── */
.section-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--amber-l);
  color: var(--amber);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: var(--r-xl);
  margin-bottom: .75rem;
}

section.bg-green .section-tag {
  background: rgba(255,255,255,.15);
  color: var(--amber-l);
}

.section-header h2 { margin-bottom: .5rem; }
.section-header .lead { margin-bottom: 0; }

/* ── 11. Cards ────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-s);
  transition: transform .36s var(--ease), box-shadow .36s var(--ease), border-color var(--t-base);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-l);
  border-color: var(--border-s);
}

.card.fade-up.visible:hover { transform: translateY(-5px); }

.card figure {
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--green-xl);
}

.card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter var(--t-slow);
}

.card:hover figure img {
  transform: scale(1.06);
  filter: brightness(1.04);
}

.card-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.2rem 1.3rem 1.4rem;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  background: var(--green-xl);
  color: var(--green);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: var(--r-xl);
  width: fit-content;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.3;
}

.card p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.card .club-detail-link {
  margin-top: auto;
  align-self: flex-start;
}

.card-meta {
  font-size: .82rem;
  color: var(--text-faint);
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.card-meta strong { color: var(--text-soft); }

/* Category grouping */
.category-block {
  padding: 0 0 2rem;
}

.category-title {
  font-family: var(--ff-head);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  padding: 0 0 .6rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.category-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--amber);
  border-radius: 2px;
}

.club-detail-section { background: var(--cream); }

.club-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.club-detail-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--sh-m);
}

.club-detail-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.club-detail-content {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--sh-s);
}

.club-detail-content h2 { margin-top: 0; }
.club-detail-content > p { line-height: 1.75; }
.club-detail-mentor {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.club-detail-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .club-detail-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

@media (max-width: 600px) {
  .club-detail-actions { flex-direction: column; align-items: flex-start; }
}

/* Filter animation */
.card.filter-hidden {
  opacity: 0;
  transform: scale(.97);
  pointer-events: none;
}

.category-block[aria-hidden="true"] {
  display: none;
}

/* ── 12. Events / Upcoming ────────────────────────────────────── */
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--sh-s);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-m);
}

.event-date {
  flex-shrink: 0;
  background: var(--green);
  color: var(--white);
  border-radius: var(--r-m);
  width: 58px;
  min-width: 58px;
  text-align: center;
  padding: .6rem .3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
}

.event-date .day {
  font-family: var(--ff-head);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .85;
}

.event-info { flex: 1; }
.event-info h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.event-info p { font-size: .9rem; color: var(--text-muted); margin: 0; }
.event-info .event-loc { font-size: .82rem; color: var(--text-faint); margin-top: .3rem; display: flex; align-items: center; gap: .3rem; }

/* ── 13. About section layout ─────────────────────────────────── */
.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-l);
  aspect-ratio: 4/3;
  background: var(--green-xl);
}

.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-values {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--amber-l);
  color: var(--amber);
  border-radius: var(--r-m);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.value-text h4 { margin: 0 0 .25rem; font-size: 1rem; }
.value-text p  { font-size: .9rem; color: var(--text-muted); margin: 0; }

.network-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  max-width: 760px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 1.5rem 1rem 0;
  border-top: 1px solid var(--border);
}

.network-note img {
  width: min(220px, 42%);
  height: auto;
  flex: 0 1 220px;
}

.network-note p {
  max-width: 34ch;
  margin: 0;
  color: var(--text-muted);
  font-size: .88rem;
}

@media (max-width: 520px) {
  .network-note {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
  }

  .network-note img {
    width: min(220px, 75%);
    flex: 0 0 auto;
    height: auto;
    object-fit: contain;
  }
}

.contact-section-heading {
  max-width: 62ch;
  margin: 0 auto clamp(1.75rem, 4vw, 3rem);
  text-align: center;
}

.contact-section-heading h2 { margin-bottom: .5rem; }
.contact-section-heading p { margin: 0; color: var(--text-muted); }

.contact-layout {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

@media (min-width: 800px) {
  .contact-layout { grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); }
}

.contact-info {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item h3 { margin: 0 0 .2rem; font: 600 .95rem var(--ff-body); }
.contact-item p { margin: 0; color: var(--text-muted); font-size: .9rem; overflow-wrap: anywhere; }
.contact-item a { color: var(--green); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; text-underline-offset: .18em; }

/* Quote box */
.quote-card {
  background: var(--green);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 10px;
  font-family: var(--ff-head);
  font-size: 12rem;
  line-height: 1;
  color: rgba(255,255,255,.08);
  pointer-events: none;
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--ff-head);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.65;
  color: rgba(255,255,255,.92);
  position: relative;
}

.quote-card cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: .9rem;
  font-family: var(--ff-body);
  font-weight: 500;
  color: var(--amber-l);
}

/* ── 14. Gallery ──────────────────────────────────────────────── */
.gallery-masonry {
  columns: 2;
  column-gap: clamp(.75rem, 1.5vw, 1.2rem);
}

@media (min-width: 640px) { .gallery-masonry { columns: 3; } }
@media (min-width: 1024px) { .gallery-masonry { columns: 4; } }

.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: clamp(.75rem, 1.5vw, 1.2rem);
  border-radius: var(--r-l);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform var(--t-slow), filter var(--t-base);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,48,33,0);
  transition: background var(--t-base);
}

.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover::after { background: rgba(20,48,33,.18); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(20,48,33,.75), transparent);
  color: white;
  padding: 1.5rem 1rem .9rem;
  font-size: .85rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-base), transform var(--t-base);
  z-index: 1;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(115px, 14vw, 190px);
  gap: clamp(.65rem, 1.5vw, 1.1rem);
  margin-bottom: 2rem;
}

.home-gallery .gallery-item {
  min-width: 0;
  height: 100%;
  margin: 0;
  border-radius: var(--r-m);
  background: var(--green-dark);
}

.home-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-gallery .home-gallery-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.home-gallery .home-gallery-wide { grid-column: span 2; }

.home-gallery .gallery-caption {
  opacity: 1;
  transform: none;
  background: linear-gradient(to top, rgba(20,48,33,.8), rgba(20,48,33,0) 100%);
  padding: 2.25rem 1rem .8rem;
}

.home-gallery .gallery-item:hover img { filter: brightness(.88); }
.home-gallery .gallery-item:hover::after { background: transparent; }

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.gallery-heading h2 { margin-bottom: .55rem; }
.gallery-heading .lead { margin: 0; }

.gallery-count {
  flex: 0 0 auto;
  margin-bottom: .25rem;
  padding: .45rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.75);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(130px, 16vw, 210px);
  gap: clamp(.7rem, 1.5vw, 1.15rem);
}

.gallery-page-grid .gallery-item {
  min-width: 0;
  height: 100%;
  margin: 0;
  border: 1px solid rgba(27,27,25,.06);
  border-radius: var(--r-m);
  background: var(--green-dark);
  box-shadow: var(--sh-s);
}

.gallery-page-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-page-grid .gallery-page-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-page-grid .gallery-page-wide { grid-column: span 2; }

.gallery-page-grid .gallery-caption {
  opacity: 1;
  transform: none;
  background: linear-gradient(to top, rgba(20,48,33,.82), rgba(20,48,33,0) 100%);
  padding: 2.5rem 1rem .85rem;
}

.gallery-page-grid .gallery-item:hover img { filter: brightness(.88); }
.gallery-page-grid .gallery-item:hover::after { background: transparent; }

@media (max-width: 900px) {
  .gallery-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-page-grid .gallery-page-featured { grid-row: span 2; }
}

@media (max-width: 600px) {
  .gallery-heading { align-items: flex-start; }
  .gallery-count { display: none; }
  .gallery-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(135px, 39vw, 200px); }
  .gallery-page-grid .gallery-page-featured { grid-column: span 2; grid-row: span 1; }
  .gallery-page-grid .gallery-page-wide { grid-column: span 2; }
  .gallery-page-grid .gallery-caption { font-size: .76rem; padding: 2.1rem .75rem .7rem; }
}

@media (max-width: 760px) {
  .home-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-gallery .home-gallery-featured { grid-column: span 2; }
}

@media (max-width: 520px) {
  .home-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(125px, 38vw, 190px); }
  .home-gallery .home-gallery-featured { grid-column: span 2; grid-row: span 1; }
  .home-gallery .gallery-caption { font-size: .75rem; padding: 2rem .7rem .65rem; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,20,14,.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 90dvh;
  border-radius: var(--r-l);
  box-shadow: var(--sh-xl);
  object-fit: contain;
  transform: scale(.95);
  transition: transform var(--t-slow);
}

.lightbox.open .lightbox-img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}

.lightbox-close:hover { background: rgba(255,255,255,.28); }

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  text-align: center;
  max-width: 60ch;
}

/* ── 15. Calendar ─────────────────────────────────────────────── */
.calendar-wrap { overflow-x: auto; }

.calendar {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--sh-m);
}

.calendar caption {
  text-align: left;
  padding: 1.2rem 1.4rem .8rem;
  font-family: var(--ff-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.calendar th {
  background: var(--green);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .65rem;
  text-align: center;
}

.calendar td {
  border: 1px solid var(--border);
  background: var(--white);
  vertical-align: top;
  padding: .4rem .35rem .4rem;
  min-width: 70px;
  height: 80px;
}

.calendar td.other-month { background: var(--cream); }

.calendar td .day {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: .2rem;
}

.calendar td.today .day {
  background: var(--amber);
  color: var(--white);
}

.cal-event {
  display: block;
  font-size: .65rem;
  font-weight: 600;
  padding: .22rem .4rem;
  border-radius: var(--r-s);
  line-height: 1.2;
  margin-bottom: .2rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: filter var(--t-fast), transform var(--t-fast);
}

.cal-event:hover { filter: brightness(1.08); transform: translateY(-1px); }

.cal-event.type-lecture  { background: var(--green-l); color: var(--green-dark); }
.cal-event.type-workshop { background: var(--amber-l); color: #7A4A00; }
.cal-event.type-social   { background: #DFF2F0; color: #176060; }

@media (max-width: 640px) { .calendar { display: none; } }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.timeline-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 1rem 1.2rem 1rem 1.4rem;
  box-shadow: var(--sh-xs);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: var(--green);
  border-radius: var(--r-s) 0 0 var(--r-s);
}

@media (min-width: 641px) { .timeline-wrapper { display: none; } }

/* Google Calendar embed */
.calendar-page-embed {
  height: 770px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-l);
}

.calendar-page-embed__frame {
  display: block;
  width: 90.91%;
  height: 700px;
  border: 0;
  transform: scale(1.1);
  transform-origin: top left;
}

.gcal-embed-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-l);
  border: 1px solid var(--border);
}

.gcal-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}

.homepage-calendar {
  max-width: 980px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  background: var(--white);
  box-shadow: var(--sh-m);
}

.homepage-calendar iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
  background: var(--white);
}

/* ── 16. Forms ────────────────────────────────────────────────── */
form { display: grid; gap: 1.1rem; }

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 1.2rem 1.4rem;
  margin: 0;
}

legend {
  font-weight: 600;
  font-size: 1rem;
  padding: 0 .5rem;
  color: var(--text);
}

label {
  font-weight: 500;
  font-size: .94rem;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

input[type=text],
input[type=email],
input[type=date],
input[type=tel],
input[type=search],
textarea,
select {
  background: var(--white);
  border: 1.5px solid var(--border-s);
  border-radius: var(--r-m);
  padding: .8rem 1rem;
  font-size: 1rem;
  font-family: var(--ff-body);
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23706860' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,90,69,.18);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192,57,43,.15);
}

textarea { min-height: 150px; resize: vertical; }

.form-row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }

.form-note { font-size: .8rem; color: var(--text-muted); margin: .25rem 0 0; }

.field-error { color: #C0392B; font-size: .85rem; display: none; margin-top: .25rem; }
.field-error.show { display: block; }

.success-message {
  background: #E8F6ED;
  color: #1A5C35;
  border: 1px solid #A8D8BC;
  border-radius: var(--r-m);
  padding: 1rem 1.2rem;
  display: none;
  font-size: .95rem;
}

.success-message.show { display: block; }
.success-message.error {
  background: #FDEDEC;
  color: #922B21;
  border-color: #E6B0AA;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}

.membership-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 1000px) {
  .membership-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
  }
}

.membership-layout > .fade-up { min-width: 0; }

.membership-form {
  min-width: 0;
  padding: clamp(1.2rem, 2.8vw, 2rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-m);
}

.membership-form > *,
.membership-form .form-row > *,
.membership-form fieldset { min-width: 0; }

@media (min-width: 600px) {
  .membership-form .form-row.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.membership-form .section-header { margin-bottom: 1.5rem; }
.membership-form .field-label { display: block; }
.membership-form .required-mark { color: var(--amber); font-weight: 700; }
.membership-form fieldset { background: var(--cream); }
.membership-form legend { padding: 0 .55rem; }
.membership-form > .btn { min-height: 3.2rem; font-size: 1rem; }

.membership-form input[type="text"],
.membership-form input[type="email"],
.membership-form input[type="date"],
.membership-form input[type="tel"],
.membership-form input[type="search"],
.membership-form select,
.membership-form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Consent checkbox */
label.consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: .7rem;
  font-weight: 400;
}

label.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: .15rem;
  accent-color: var(--green);
  cursor: pointer;
}

.membership-events-option {
  padding: .9rem 1rem;
  border: 1px solid var(--green-l);
  border-radius: var(--r-m);
  background: var(--white);
  cursor: pointer;
}

.membership-events-option > span {
  display: grid;
  gap: .2rem;
}

.membership-events-option strong { color: var(--green); }
.membership-events-help { color: var(--text-muted); font-size: .88rem; line-height: 1.5; }

/* Krožki checklist */
.krozki-picker {
  display: grid;
  gap: .55rem;
}

.krozki-search { margin-bottom: .5rem; }
.krozki-selection-count { margin: 0; font-weight: 600; }
.krozki-selected {
  margin: 0;
  color: var(--green);
  overflow-wrap: anywhere;
}

.krozki-category {
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  background: var(--white);
  overflow: hidden;
}

.krozki-category[hidden],
.krozki-list label[hidden] { display: none; }

.krozki-category-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .9rem;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.krozki-category-toggle::after { content: '+'; font-size: 1.2rem; line-height: 1; }
.krozki-category.open .krozki-category-toggle::after { content: '−'; }
.krozki-category-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
.krozki-category-count { margin-left: auto; color: var(--text-muted); font-size: .85rem; font-weight: 500; }

.krozki-category-options {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease);
}

.krozki-category.open .krozki-category-options { grid-template-rows: 1fr; }

.krozki-list {
  display: grid;
  gap: .5rem;
  padding: 0;
  min-height: 0;
  overflow: hidden;
}

.krozki-list label {
  margin-inline: .7rem;
  flex-direction: row;
  align-items: center;
  gap: .6rem;
  font-weight: 400;
  font-size: .9rem;
  padding: .5rem .7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.krozki-list label:last-child { margin-bottom: .7rem; }

.krozki-list label:hover { background: var(--green-xl); border-color: var(--green-l); }

.krozki-list input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--green);
  cursor: pointer;
}

.krozki-no-results { margin: .25rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  .krozki-category-options { transition: none; }
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-bar input {
  background: var(--white);
  border: 1.5px solid var(--border-s);
  border-radius: var(--r-m);
  padding: .6rem .9rem;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text);
}

.filter-bar input { flex: 1 1 260px; min-width: 200px; }

.filter-bar .filter-clear {
  height: calc(1.6em + 1.2rem + 3px);
  padding-block: 0;
  font-size: .95rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .filter-bar { flex-wrap: nowrap; }
  .filter-bar input { flex: 1 1 0; min-width: 0; }
  .filter-bar .filter-clear { flex: 0 0 auto; padding-inline: .7rem; }
}

.category-overview {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.5rem;
}

.category-overview-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--white);
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.category-overview-link::before {
  content: '';
  display: inline-grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  font-size: .8rem;
  line-height: 1;
}

.category-overview-link.is-active::before {
  content: '✓';
}

.category-overview-link:hover {
  background: var(--green-xl);
  border-color: var(--green-l);
  transform: translateY(-1px);
}

.category-overview-link.is-active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.category-overview-link.is-active:hover {
  border-color: var(--green-mid);
  background: var(--green-mid);
}

.category-overview-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.category-overview-count {
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  padding: 0 .25rem;
  border-radius: 50%;
  background: var(--green-xl);
  color: var(--green-dark);
  font-size: .75rem;
  line-height: 1;
}

.category-overview-link.is-active .category-overview-count {
  background: rgba(255,255,255,.18);
  color: var(--white);
}

@media (max-width: 600px) {
  .category-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-link {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    gap: .3rem;
    padding-inline: .5rem;
    font-size: .82rem;
  }

  .category-overview-link::before {
    width: .9rem;
    flex: 0 0 .9rem;
  }

  .category-overview-link > span:first-child {
    white-space: nowrap;
  }
}

/* ── 17. Map ──────────────────────────────────────────────────── */
.map-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-l);
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-map {
  width: 100%;
  min-width: 0;
  height: 340px;
  min-height: 0;
  aspect-ratio: auto;
}

@media (min-width: 800px) {
  .contact-map { height: 100%; min-height: 500px; aspect-ratio: auto; }
}

/* ── 18. Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: .6rem;
}

.page-hero .lead {
  color: rgba(255,255,255,.82);
  margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1rem;
}

.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.45); }

/* ── 19. Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  padding: clamp(3rem, 5vw, 4.5rem) 0 0;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .brand-logo-ft {
  width: 56px;
  height: 56px;
  background-image: url('../images/logo-icon.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  margin-bottom: .8rem;
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.6;
  max-width: 34ch;
  color: rgba(255,255,255,.62);
  margin: 0 0 1.2rem;
}

.footer-social {
  display: flex;
  gap: .6rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-m);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  transition: background var(--t-fast), color var(--t-fast);
}

.footer-social a:hover {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}

.site-footer h4 {
  color: var(--white);
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  font-family: var(--ff-body);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.site-footer ul li { font-size: .9rem; }

.site-footer a {
  color: rgba(255,255,255,.65);
  transition: color var(--t-fast);
}

.site-footer a:hover { color: var(--white); }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}

/* ── 20. Scroll Reveal Animations ─────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grids */
.fade-up:nth-child(1) { transition-delay: 0ms; }
.fade-up:nth-child(2) { transition-delay: 60ms; }
.fade-up:nth-child(3) { transition-delay: 120ms; }
.fade-up:nth-child(4) { transition-delay: 180ms; }
.fade-up:nth-child(5) { transition-delay: 240ms; }
.fade-up:nth-child(6) { transition-delay: 300ms; }

.card.fade-up {
  transition: opacity .8s var(--ease), transform .36s var(--ease),
              box-shadow .36s var(--ease), border-color var(--t-base);
}

.fade-up.filter-instant { transition: none !important; }

.card.fade-up:nth-child(1) { transition-delay: 0ms, 0ms, 0s, 0s; }
.card.fade-up:nth-child(2) { transition-delay: 60ms, 60ms, 0s, 0s; }
.card.fade-up:nth-child(3) { transition-delay: 120ms, 120ms, 0s, 0s; }
.card.fade-up:nth-child(4) { transition-delay: 180ms, 180ms, 0s, 0s; }
.card.fade-up:nth-child(5) { transition-delay: 240ms, 240ms, 0s, 0s; }
.card.fade-up:nth-child(6) { transition-delay: 300ms, 300ms, 0s, 0s; }

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.slide-in-left.visible { opacity: 1; transform: translateX(0); }

/* ── 21. Loading / Misc ───────────────────────────────────────── */
.loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.loading::after {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 1rem auto 0;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Info boxes */
.info-box {
  background: var(--green-xl);
  border: 1px solid var(--green-l);
  border-left: 4px solid var(--green);
  border-radius: var(--r-m);
  padding: 1rem 1.2rem;
  font-size: .9rem;
  color: var(--text-soft);
}

/* Gradient card */
.gradient-box {
  background: linear-gradient(135deg, var(--white), var(--amber-xl));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  box-shadow: var(--sh-m);
  position: relative;
  overflow: hidden;
}

.gradient-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(201,127,26,.12), transparent 60%);
  pointer-events: none;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.cta-section h2 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.cta-section .lead { color: rgba(255,255,255,.8); margin: 0 auto 2rem; }
.cta-section .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Page intro box */
.page-intro {
  max-width: 74ch;
}

/* Consent text */
.consent-text {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 1.2rem 1.4rem;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.consent-text h3 { font-size: .95rem; color: var(--text-soft); margin: 0 0 .75rem; }
.consent-text p  { margin: 0 0 .5rem; }
.consent-text p:last-child { margin: 0; }

/* ── 22. Print ────────────────────────────────────────────────── */
@media print {
  .site-header,
  .nav-toggle,
  .slider-btn,
  .slider-dots,
  .site-footer,
  .btn { display: none !important; }

  body { background: #fff; color: #000; }
  a    { color: #000; }
  .page-hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
}

/* ── Split Hero (homepage) ────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-rows: auto auto;   /* mobile: image auto, text auto */
  background: var(--green-dark);
  padding: 0 !important;  /* override default section padding */
}

/* Text side */
.hero-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4.5rem) clamp(1.5rem, 5vw, 5rem);
  background: var(--green-dark);
  position: relative;
  z-index: 1;
  order: 2;
  overflow: hidden;
}

@media (min-width: 860px) {
  .hero-split-text { order: 1; }
}

/* Small label above title */
.hero-split-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-l);
  opacity: .8;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.hero-split-tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Main heading */
.hero-split-title {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--white);
  margin: 0 0 1rem;
}

/* Description */
.hero-split-desc {
  font-size: clamp(.9rem, 1.3vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255,255,255,.72);
  max-width: 46ch;
  margin: 0 0 1.8rem;
}

/* CTA buttons */
.hero-split-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Photo side */
.hero-split-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: var(--green-dark);
  order: 1;
}

@media (max-width: 859px) {
  .hero-split-image { display: none; }
}

@media (min-width: 1100px) {
  .hero-split-image {
    order: 2;
  }
}

.hero-split-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-m);
  box-shadow: var(--sh-m);
}

@media (max-width: 859px) {
  .hero-split-image { padding: 1rem; }
}

@media (min-width: 860px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .hero-split-image {
    padding-right: clamp(1.5rem, 5vw, 5rem);
  }
}

/* ── 23. Responsive Tweaks ────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { min-height: 480px; }
  .slide-content { padding: 1.5rem 5% 2rem 5%; }
  .slider-btn { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .event-card { flex-direction: column; gap: .8rem; }
  .event-date { flex-direction: row; width: auto; min-width: auto; padding: .5rem .8rem; gap: .5rem; align-items: center; }
  .event-date .day { font-size: 1.2rem; }
}

@media (max-width: 600px) {
  .brand-text .brand-sub { display: none; }
}

@media (hover: none) {
  .primary-nav a:hover:not([aria-current="page"]) { background: transparent; color: var(--text-soft); }
  .nav-toggle:hover { background: var(--green-xl); }
  .btn:hover { background: var(--amber); transform: none; box-shadow: 0 4px 14px -4px rgba(201,127,26,.4); }
  .btn.btn-green:hover { background: var(--green); box-shadow: 0 4px 14px -4px rgba(45,90,69,.35); }
  .btn.btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
  .btn.btn-outline:hover { background: transparent; }
  .slider-btn:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.45);
    transform: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.2);
  }
  .card:hover { transform: none; box-shadow: var(--sh-s); border-color: var(--border); }
  .card.fade-up.visible:hover { transform: none; }
  .card:hover figure img { transform: none; filter: none; }
  .event-card:hover { transform: none; box-shadow: var(--sh-s); }
  .contact-item a:hover { text-decoration: none; }
  .gallery-item:hover img,
  .home-gallery .gallery-item:hover img,
  .gallery-page-grid .gallery-item:hover img { transform: none; filter: none; }
  .gallery-item:hover::after,
  .home-gallery .gallery-item:hover::after,
  .gallery-page-grid .gallery-item:hover::after { background: transparent; }
  .gallery-item:hover .gallery-caption { opacity: 0; transform: translateY(6px); }
  .home-gallery .gallery-item:hover .gallery-caption,
  .gallery-page-grid .gallery-item:hover .gallery-caption { opacity: 1; transform: none; }
  .lightbox-close:hover { background: rgba(255,255,255,.16); }
  .cal-event:hover { filter: none; transform: none; }
  .krozki-list label:hover { background: var(--white); border-color: var(--border); }
  .category-overview-link:hover { background: var(--white); border-color: var(--border); transform: none; }
  .category-overview-link.is-active:hover { background: var(--green); border-color: var(--green); }
  .breadcrumb a:hover { color: rgba(255,255,255,.65); }
  .footer-social a:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
  }
  .site-footer a:hover { color: rgba(255,255,255,.65); }
}
