/* ═══════════════════════════════════════════════════════════════════
   SUNFLOWER MŠ — Design System
   Brand colors: Yellow #F5C21A · Green #7A8C3C · Brown #7A4728 · Cream #FBF8F0
   ═══════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────────────── */
:root {
  --yellow:        #F5C21A;
  --yellow-hover:  #E0B015;
  --yellow-light:  #FEF3C0;
  --yellow-pale:   #FFFAED;
  --green:         #7A8C3C;
  --green-light:   #E8EFD8;
  --green-dark:    #5A6A2A;
  --brown:         #7A4728;
  --brown-light:   #F0E4D7;
  --cream:         #FBF8F0;
  --cream-dark:    #F3EEE3;
  --dark:          #2B1F10;
  --dark-soft:     #3D2E1A;
  --text:          #4A3728;
  --text-muted:    #9B8B7B;
  --white:         #FFFFFF;

  --font: 'Poppins', sans-serif;

  --radius-s:  10px;
  --radius-m:  18px;
  --radius-l:  28px;
  --radius-xl: 40px;

  --shadow-sm:     0 2px 8px rgba(43, 31, 16, .07);
  --shadow-md:     0 6px 24px rgba(43, 31, 16, .10), 0 1px 4px rgba(43, 31, 16, .05);
  --shadow-lg:     0 16px 48px rgba(43, 31, 16, .14), 0 4px 12px rgba(43, 31, 16, .07);
  --shadow-yellow: 0 8px 32px rgba(245, 194, 26, .35);
  --shadow-card-hover: 0 20px 60px rgba(43, 31, 16, .18), 0 4px 16px rgba(43, 31, 16, .08);

  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out:    cubic-bezier(.4, 0, .2, 1);
  --duration:    .3s;

  --container: 1200px;
  --section-pad: 100px;
}

/* ── RESET ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }

/* ── UTILITIES ──────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal--right {
  transform: translateX(28px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── BUTTONS ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform var(--duration) var(--ease-spring),
              box-shadow var(--duration) var(--ease-out),
              background var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: var(--shadow-yellow);
}
.btn--primary:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245, 194, 26, .45);
}
.btn--primary:focus-visible {
  outline: 3px solid var(--dark);
  outline-offset: 3px;
}

.btn--ghost {
  background: transparent;
  color: var(--dark);
  box-shadow: inset 0 0 0 2px var(--dark);
}
.btn--ghost:hover {
  background: var(--dark);
  color: var(--yellow);
  transform: translateY(-2px);
}
.btn--ghost:focus-visible {
  outline: 3px solid var(--dark);
  outline-offset: 3px;
}

.btn--full { width: 100%; justify-content: center; }

.btn__icon { flex-shrink: 0; transition: transform .3s var(--ease-spring); }
.btn:hover .btn__icon { transform: translateX(4px); }

/* ── SECTION HEADERS ────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-xl);
  background: var(--yellow-light);
  color: var(--brown);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-tag--light {
  background: rgba(255,255,255,.2);
  color: var(--white);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -.03em;
}
.section-header--light .section-title { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.section-header--light .section-subtitle { color: rgba(255,255,255,.8); }

.section-title--lg {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

/* ══════════════════════════════════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              backdrop-filter var(--duration) var(--ease-out);
}

.header.scrolled {
  background: rgba(251, 248, 240, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(43,31,16,.08), var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: opacity .2s;
}
.nav__logo:hover { opacity: .85; }

.nav__logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.1));
}

.nav__logo-text {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--dark);
  font-style: italic;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__logo-text small {
  font-size: .58rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: .04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

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

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-xl);
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
  transition: background var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
}
.nav__link:hover { background: var(--yellow-light); color: var(--dark); }
.nav__link:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.nav__link.active {
  background: var(--yellow-light);
  color: var(--dark);
  font-weight: 600;
}

.nav__link--cta {
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  box-shadow: var(--shadow-yellow);
}
.nav__link--cta:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-s);
  transition: background .2s;
}
.nav__toggle:hover { background: var(--yellow-light); }
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease-out),
              opacity var(--duration) var(--ease-out);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--cream);
}

/* ── Full-screen logo panel ── */
.hero__screen {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 80px; /* clear the fixed header */
}

.hero__logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  will-change: opacity, transform;
  transform-origin: center center;
}

.hero__screen-pretitle {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #000;
  margin-top: 32px;
  margin-bottom: -20px;
}

.hero__screen-logo {
  width: 87.5%;
  max-width: 1125px;
  height: auto;
  object-fit: contain;
  display: block;
  animation: logo-breathe 20s ease-in-out infinite;
  transform-origin: center center;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.35));
}

@keyframes logo-breathe {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.025); }
}

/* No gradient needed — background is already cream */
.hero__screen-fade { display: none; }


/* ── Text section below logo ── */
.hero__text {
  background: var(--cream);
  padding: 72px 0 80px;
}

.hero__text-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero__content { max-width: 600px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  background: var(--dark);
  color: var(--yellow);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__badge img { border-radius: 2px; }

.hero__title {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--dark);
  margin-bottom: 22px;
}
.hero__title em {
  font-style: italic;
  color: var(--green-dark);
  position: relative;
}
.hero__title em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 6px;
  background: var(--yellow);
  border-radius: 3px;
  opacity: .5;
  z-index: -1;
}

.typewriter-cursor {
  display: inline-block;
  font-style: normal;
  font-weight: 400;
  color: var(--green-dark);
  animation: cursor-blink 0.85s step-start infinite;
  margin-left: 2px;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Stats pill — right column */
.hero__stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 28px 32px;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  text-align: center;
  min-width: 120px;
}
.hero__stat strong {
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
  letter-spacing: -.03em;
}
.hero__stat span {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 5px;
  white-space: nowrap;
}
.hero__stat-divider {
  width: 40px;
  height: 1px;
  background: var(--cream-dark);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   FEATURES (ČÍM SA ODLIŠUJEME)
   ══════════════════════════════════════════════════════════════════════ */
.features { background: var(--white); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius-l);
  background: var(--cream);
  border: 1.5px solid transparent;
  transition: transform var(--duration) var(--ease-spring),
              box-shadow var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              background var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--green));
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--yellow-light);
  background: var(--white);
}
.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
  display: block;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

.feature-card p {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Features CTA banner */
.features__cta {
  border-radius: var(--radius-l);
  overflow: hidden;
}
.features__cta-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px 44px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  border-radius: var(--radius-l);
  flex-wrap: wrap;
}
.features__cta-text { flex: 1; min-width: 200px; }
.features__cta-inner h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.features__cta-inner p {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}
.features__cta-inner .btn { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════════════════════════════════ */
.gallery { background: var(--cream); }

.gallery__filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: var(--radius-xl);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  transition: all var(--duration) var(--ease-spring);
}
.filter-btn:hover {
  border-color: var(--yellow);
  color: var(--dark);
  transform: translateY(-2px);
}
.filter-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
  box-shadow: var(--shadow-yellow);
}
.filter-btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}

.gallery__item {
  border-radius: var(--radius-m);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--duration) var(--ease-spring),
              box-shadow var(--duration) var(--ease-out),
              opacity .3s var(--ease-out);
}
.gallery__item.hidden { opacity: 0; pointer-events: none; display: none; }
.gallery__item--wide  { grid-column: span 2; }
.gallery__item--tall  { grid-row: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover .gallery__placeholder { opacity: .5; transition: opacity .3s; }

.gallery__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: .35;
  user-select: none;
  pointer-events: none;
}
.gallery__item--wide .gallery__placeholder { font-size: 6rem; }

/* Color variants */
.gallery__item--color-yellow  { background: linear-gradient(135deg, #F5C21A 0%, #FFD84D 100%); }
.gallery__item--color-green   { background: linear-gradient(135deg, #7A8C3C 0%, #9CAD55 100%); }
.gallery__item--color-brown   { background: linear-gradient(135deg, #7A4728 0%, #9E6040 100%); }
.gallery__item--color-yellow2 { background: linear-gradient(135deg, #E8A020 0%, #F5C21A 100%); }
.gallery__item--color-blue    { background: linear-gradient(135deg, #3D7AB5 0%, #5B96CC 100%); }
.gallery__item--color-green2  { background: linear-gradient(135deg, #5B8C5A 0%, #7BAD7A 100%); }
.gallery__item--color-orange  { background: linear-gradient(135deg, #C8603A 0%, #E8836A 100%); }
.gallery__item--color-purple  { background: linear-gradient(135deg, #7B3F9E 0%, #9B59B6 100%); }

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43,31,16,.75) 0%, rgba(43,31,16,.1) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.gallery__overlay--always { opacity: 1; }
.gallery__item:hover .gallery__overlay { opacity: 1; }

.gallery__overlay span {
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ══════════════════════════════════════════════════════════════════════
   NEWS
   ══════════════════════════════════════════════════════════════════════ */
.news {
  background: var(--cream);
  position: relative;
}
.news::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--brown));
}

.news__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.news-card {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease-spring),
              box-shadow var(--duration) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.news-card__img-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.news-card--featured .news-card__img-wrap { aspect-ratio: 16/10; }
.news-card:not(.news-card--featured) .news-card__img-wrap { aspect-ratio: 3/2; }

.news-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.news-card:hover .news-card__img-wrap img { transform: scale(1.05); }

.news-card__img-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: .5;
  transition: transform .5s var(--ease-out);
}
.news-card--featured .news-card__img-bg { font-size: 8rem; }
.news-card:hover .news-card__img-bg { transform: scale(1.08); }

.news-card__img-bg--yellow { background: linear-gradient(135deg, #F5C21A 0%, #FFD84D 100%); }
.news-card__img-bg--green  { background: linear-gradient(135deg, #7A8C3C 0%, #9CAD55 100%); }
.news-card__img-bg--blue   { background: linear-gradient(135deg, #3D7AB5 0%, #5B96CC 100%); }

.news-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 14px;
  border-radius: var(--radius-xl);
  background: var(--yellow);
  color: var(--dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.news-card__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__date {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.news-card--featured h3 {
  font-size: 1.3rem;
}

.news-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.news-card__link {
  font-size: .875rem;
  font-weight: 700;
  color: var(--green-dark);
  transition: color .2s, gap .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.news-card__link:hover { color: var(--brown); gap: 10px; }

/* ══════════════════════════════════════════════════════════════════════
   TEAM
   ══════════════════════════════════════════════════════════════════════ */
.team {
  background: var(--cream-dark);
}

.team__carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 24px;
  scrollbar-width: none;
}
.team__track::-webkit-scrollbar { display: none; }

.team-card {
  flex: 0 0 300px;
  height: 420px;
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  scroll-snap-align: start;
  transition: transform var(--duration) var(--ease-spring),
              box-shadow var(--duration) var(--ease-out);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.team-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(43,31,16,.85), rgba(43,31,16,0) 70%);
}

.team-card__name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}

.team-card__role {
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.team__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-yellow);
  transition: transform var(--duration) var(--ease-spring),
              box-shadow var(--duration) var(--ease-out),
              background var(--duration) var(--ease-out),
              opacity var(--duration) var(--ease-out);
}
.team__arrow:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245, 194, 26, .45);
}
.team__arrow:focus-visible {
  outline: 3px solid var(--dark);
  outline-offset: 3px;
}
.team__arrow:disabled {
  opacity: .35;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}
.team__arrow.is-hidden {
  display: none;
}

@media (max-width: 640px) {
  .team-card {
    flex-basis: 240px;
    height: 340px;
  }
  .team__arrow {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════════════ */
.contact {
  background: linear-gradient(160deg, var(--dark) 0%, #1E1508 60%, var(--dark-soft) 100%);
  padding-top: 0;
  padding-bottom: var(--section-pad);
  position: relative;
}

.contact__top-wave {
  height: 80px;
  overflow: hidden;
  margin-bottom: -2px;
}
.contact__top-wave svg { width: 100%; height: 100%; display: block; }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

/* Contact info */
.contact__info { display: flex; flex-direction: column; gap: 0; }

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.contact__info-item:first-child { padding-top: 0; }

.contact__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,194,26,.12);
  border-radius: var(--radius-s);
}

.contact__info-item strong {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact__info-item p,
.contact__info-item a {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
  transition: color .2s;
}
.contact__info-item a:hover { color: var(--yellow); }

.contact__map {
  margin-top: 28px;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact__map-img { width: 100%; display: block; }

/* Contact form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 44px;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.form-row .form-group { margin-bottom: 0; }

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: .01em;
}
.form-required { color: var(--brown); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 18px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-s);
  font-size: .95rem;
  color: var(--dark);
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(245,194,26,.15);
}
.form-group input.error,
.form-group textarea.error { border-color: #dc2626; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239B8B7B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-s);
  font-size: .9rem;
  font-weight: 500;
  display: none;
}
.form-message.success {
  display: block;
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid rgba(122,140,60,.3);
}
.form-message.error {
  display: block;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(220,38,38,.2);
}

/* Submit button loading state */
.btn--loading {
  pointer-events: none;
  opacity: .7;
}

/* ══════════════════════════════════════════════════════════════════════
   SUBPAGE HERO
   ══════════════════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--dark);
  padding: 140px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(245,194,26,.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(245,194,26,.12);
  border: 1px solid rgba(245,194,26,.3);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 20px;
}
.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.page-hero__title em {
  font-style: italic;
  color: var(--yellow);
}
.page-hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* section-footer CTA row */
.section-footer {
  text-align: center;
  margin-top: 48px;
}

/* ══════════════════════════════════════════════════════════════════════
   GALLERY — ALBUM LAYOUT
   ══════════════════════════════════════════════════════════════════════ */
.gallery-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 48px;
  align-items: start;
}

.albums-year-label {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.albums-year-label strong { color: var(--dark); }

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.album-card {
  background: var(--white);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.album-card__cover {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.album-card__emoji {
  font-size: 2.8rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
}
.album-card__body {
  padding: 14px 16px 16px;
}
.album-card__name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 4px;
}
.album-card__date {
  font-size: .75rem;
  color: var(--text-muted);
}

/* Year sidebar */
.year-sidebar {
  position: sticky;
  top: 100px;
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.year-sidebar__heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.year-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.year-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-m);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: background .18s, color .18s;
}
.year-btn:hover { background: var(--cream); }
.year-btn.active {
  background: var(--yellow);
  color: var(--dark);
}

@media (max-width: 700px) {
  .gallery-layout {
    grid-template-columns: 1fr;
  }
  .year-sidebar {
    position: static;
    order: -1;
  }
  .year-list { flex-direction: row; flex-wrap: wrap; }
  .year-btn { width: auto; }
}

/* ══════════════════════════════════════════════════════════════════════
   ALBUM MODAL + PHOTO LIGHTBOX
   ══════════════════════════════════════════════════════════════════════ */

/* album modal — scrollable photo grid */
.album-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 1800;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.album-modal.is-open { opacity: 1; pointer-events: all; }

.album-modal__inner {
  background: var(--cream);
  border-radius: var(--radius-l);
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  margin: auto;
}
.album-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(43,31,16,.08);
}
.album-modal__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 4px;
}
.album-modal__date {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0;
}
.album-modal__close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
  transition: color .2s;
}
.album-modal__close:hover { color: var(--dark); }

.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 3px;
  padding: 3px;
}
.album-photo-thumb {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  cursor: pointer;
  transition: opacity .18s, transform .18s;
}
.album-photo-thumb:hover { opacity: .85; transform: scale(.97); }

/* photo lightbox */
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.photo-lightbox.is-open { opacity: 1; pointer-events: all; }

.lightbox-photo {
  width: min(80vw, 700px);
  height: min(75vh, 600px);
  border-radius: var(--radius-l);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-emoji { font-size: 6rem; filter: drop-shadow(0 8px 24px rgba(0,0,0,.4)); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  width: 56px; height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.24); }
.lightbox-nav--prev { left: 24px; }
.lightbox-nav--next { right: 24px; }

.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.lightbox-close:hover { color: #fff; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
}

/* ══════════════════════════════════════════════════════════════════════
   VIDEO GRID
   ══════════════════════════════════════════════════════════════════════ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.video-card__thumb-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: .25;
}
.video-card__play {
  position: relative;
  z-index: 1;
  width: 64px; height: 64px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  box-shadow: 0 8px 32px rgba(245,194,26,.45);
}
.video-card__thumb:hover .video-card__play {
  transform: scale(1.12);
  box-shadow: 0 12px 40px rgba(245,194,26,.6);
}
.video-card__play svg { margin-left: 4px; }
.video-card__body { padding: 24px 28px 28px; }
.video-card__tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 8px;
  display: block;
}
.video-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.35;
}
.video-card__desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* video modal */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.video-modal.is-open { opacity: 1; pointer-events: all; }
.video-modal__inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-l);
  overflow: hidden;
}
.video-modal__inner iframe { width: 100%; height: 100%; border: 0; }
.video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

/* ══════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════ */
.footer {
  background: #1A1208;
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(245,194,26,.3));
  margin-bottom: 14px;
}

.footer__tagline {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}
.footer__tagline em { color: var(--yellow); font-style: italic; }

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer__social-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-s);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  transition: background .2s, color .2s, transform .2s var(--ease-spring);
}
.footer__social-link:hover {
  background: var(--yellow);
  color: var(--dark);
  transform: translateY(-2px);
}
.footer__social-link:focus-visible { outline: 2px solid var(--yellow); }

.footer__links,
.footer__contact-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links strong,
.footer__contact-col strong {
  font-size: .8rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer__links a,
.footer__contact-col a,
.footer__contact-col span,
.footer__legal-col a,
.footer__legal-col span {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer__links a:hover,
.footer__contact-col a:hover,
.footer__legal-col a:hover { color: var(--yellow); }

.footer__links,
.footer__contact-col,
.footer__legal-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links strong,
.footer__contact-col strong,
.footer__legal-col strong {
  font-size: .8rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer__company {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__company span {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  line-height: 1.5;
}

.footer__bottom {
  padding: 20px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid  { grid-template-columns: repeat(3, 1fr); }
  .news__grid     { grid-template-columns: 1fr 1fr; }
  .news-card--featured { grid-column: span 2; }
}

@media (max-width: 900px) {
  :root { --section-pad: 72px; }

  .hero__text-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__stats      { flex-direction: row; align-self: stretch; width: 100%; justify-content: space-around; }
  .hero__stat       { padding: 0 12px; }
  .hero__stat-divider { width: 1px; height: 36px; }

  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner  { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Nav drawer — wider breakpoint: with 8 nav links the inline menu
   wraps/overflows well before 768px (collides with the hero ~1101–1199px). */
@media (max-width: 1200px) {
  /* Mobile nav — full-screen drawer */
  .nav__toggle {
    display: flex;
    /* .nav__menu is a DOM child of <header> and carries its own z-index
       (999) — inside header's own local stacking context that beats
       .nav__toggle's un-positioned, z-index:auto default regardless of
       header's global z-index (1000), leaving the close button hidden
       behind the open menu. Giving the toggle a higher z-index within
       that same local context keeps it clickable while the menu is open. */
    position: relative;
    z-index: 1001;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 14, 6, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 998;
  }
  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Header sits inside the same fixed-position box as .nav__menu, and its
     own backdrop-filter (see .header.scrolled) creates a new containing
     block for fixed-position descendants — which traps .nav__menu against
     the header's box instead of the viewport once the page scrolls while
     the drawer is open. Dropping the filter while the drawer is open keeps
     .nav__menu genuinely viewport-fixed. The logo is hidden at the same
     time since the drawer already shows its own "SUNFLOWER" label and the
     bright, un-dimmed logo otherwise floats above the overlay. */
  .header.nav-is-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* .header also transitions backdrop-filter (see .header.scrolled)
       — an *animating* filter value counts as "not none" for the whole
       transition, so without this override the containing-block escape
       above would still apply for the transition's duration on every
       open/close. Dropping the transition here makes it instant. */
    transition: background var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
  }
  .header.nav-is-open .nav__logo {
    opacity: 0;
    visibility: hidden;
  }

  .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Belt-and-suspenders: height is set directly from viewport units
       instead of relying solely on `bottom: 0` resolving against the
       viewport. If .nav__menu's containing block is ever hijacked again
       (e.g. a future backdrop-filter/transform added to an ancestor),
       `bottom: 0` would resolve against that ancestor's box and the
       drawer could collapse to its height — dvh/vh can't be hijacked
       the same way, since they always resolve against the real viewport
       regardless of containing block. */
    height: 100vh;
    height: 100dvh;
    width: 100%;
    background: var(--cream);
    padding: 96px 28px 48px;
    gap: 20px;
    overflow-y: auto;
    transform: translateX(110%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 999;
  }
  .nav__menu.is-open {
    transform: translateX(0);
  }

  .nav__menu::before {
    content: 'SUNFLOWER';
    display: block;
    position: absolute;
    top: 28px;
    left: 28px;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .18em;
    color: var(--yellow);
    opacity: .7;
  }

  .nav__link {
    padding: 15px 18px;
    border-radius: var(--radius-s);
    font-size: 1.05rem;
    font-weight: 600;
  }
  .nav__link--cta {
    margin-top: 12px;
    text-align: center;
    padding: 16px 18px;
  }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px; }

  .features__grid { grid-template-columns: 1fr; }
  .features__cta-inner { flex-direction: column; text-align: center; }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }

  .news__grid { grid-template-columns: 1fr; }
  .news-card--featured { grid-column: span 1; }

  .contact-form { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__text { padding: 48px 0 60px; }
  .hero__stats { flex-direction: column; }
  .hero__stat-divider { width: 40px; height: 1px; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
}

/* ══════════════════════════════════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════════════════════════════════ */

.legal-page__inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-block {
  background: var(--white);
  border: 1.5px solid rgba(43,31,16,.07);
  border-radius: var(--radius-m);
  padding: 32px 36px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.legal-block h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
  letter-spacing: -.01em;
}

.legal-block h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--brown);
  margin: 20px 0 10px;
}

.legal-block p {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 10px;
}
.legal-block p:last-child { margin-bottom: 0; }

.legal-block ul {
  list-style: disc;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-block ul li {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.65;
}

.legal-block a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.legal-block a:hover { color: var(--brown); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: .875rem;
}
.legal-table th {
  background: var(--cream-dark);
  color: var(--dark);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid rgba(43,31,16,.1);
}
.legal-table td {
  padding: 10px 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(43,31,16,.06);
}
.legal-table tr:last-child td { border-bottom: none; }

.legal-updated {
  font-size: .82rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .legal-block { padding: 22px 20px; }
}

/* ══════════════════════════════════════════════════════════════════════
   DOKUMENTY
   ══════════════════════════════════════════════════════════════════════ */

/* Search bar */
.docs__search-wrap {
  max-width: 560px;
  margin: 0 auto 52px;
}
.docs__search {
  position: relative;
  display: flex;
  align-items: center;
}
.docs__search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
.docs__search-input {
  width: 100%;
  padding: 15px 52px 15px 52px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-xl);
  background: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--dark);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.docs__search-input::placeholder { color: var(--text-muted); }
.docs__search-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(245,194,26,.15), var(--shadow-sm);
}
.docs__search-clear {
  position: absolute;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--cream-dark);
  transition: background .2s, color .2s;
}
.docs__search-clear:hover { background: var(--brown-light); color: var(--brown); }

/* Grid */
.docs__grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Document card */
.doc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1.5px solid rgba(43,31,16,.07);
  border-radius: var(--radius-m);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out), border-color .25s;
}
.doc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(245,194,26,.35);
}
.doc-card.hidden { display: none; }

.doc-card__icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dde8f5;
}
.doc-card__icon-wrap--word { background: #dde8f5; }

.doc-card__body {
  flex: 1;
  min-width: 0;
}
.doc-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-card__meta {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.doc-card__download {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--yellow-pale);
  color: var(--dark);
  border: 1.5px solid rgba(245,194,26,.4);
  border-radius: var(--radius-xl);
  font-size: .85rem;
  font-weight: 700;
  transition: background .2s, box-shadow .2s, transform .2s var(--ease-spring);
}
.doc-card__download:hover {
  background: var(--yellow);
  box-shadow: var(--shadow-yellow);
  transform: scale(1.04);
}
.doc-card__download:active { transform: scale(.97); }

.docs__empty {
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
  padding: 40px 0;
}

/* Responsive */
@media (max-width: 600px) {
  .doc-card {
    flex-wrap: wrap;
    gap: 14px;
  }
  .doc-card__title { white-space: normal; }
  .doc-card__download { width: 100%; justify-content: center; }
}
