/* ==========================================================================
   Ogrody Radomsko — Design System
   Paleta: głęboka zieleń lasu + mech + piaskowy krem + złoto pszenicy
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* kolory bazowe */
  --forest-900:#23282A;
  --forest-800:#2F3437;
  --forest-700:#2F6E43;
  --forest-600:#3E7A4F;
  --moss-500:#3E7A4F;
  --moss-400:#5A9A68;
  --leaf-300:#8FC08B;
  --leaf-200:#CFE3A6;

  --sand-50:#F4F5F3;
  --sand-100:#EBEDEA;
  --sand-200:#DDE1DE;
  --sand-300:#C5CBC8;

  --wheat-500:#9CC75A;
  --wheat-400:#B4D67C;
  --wheat-600:#7FAE3F;

  --clay-500:#5E6568;

  --ink-900:#1E2224;
  --ink-700:#373D40;
  --ink-500:#5E6568;
  --ink-400:#858C8F;

  /* role */
  --bg: var(--sand-50);
  --bg-alt: var(--sand-100);
  --bg-dark: var(--forest-900);
  --surface: #FFFFFF;
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-on-dark:#EEF0EE;
  --text-on-dark-muted:#A7ADAF;
  --accent: var(--moss-500);
  --accent-strong: var(--forest-700);
  --gold: var(--wheat-500);
  --line: rgba(30, 34, 36, 0.12);
  --line-dark: rgba(238, 240, 238, 0.14);

  /* typografia */
  --font-display: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* skala */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.25vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.7rem + 2vw, 3.5rem);
  --step-5: clamp(2.5rem, 1.8rem + 3.4vw, 4.8rem);

  /* przestrzeń */
  --gutter: 40px;
  --section-y: 96px;
  --maxw: 1240px;
  --maxw-narrow: 760px;

  /* promienie i cienie */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-sm: 0 2px 8px rgba(30, 35, 37, 0.06);
  --shadow-md: 0 12px 32px rgba(30, 35, 37, 0.10);
  --shadow-lg: 0 28px 64px rgba(30, 35, 37, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.5em; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.7rem + 2.7vw, 4.1rem); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container.narrow { max-width: var(--maxw-narrow); }

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); position: relative; }
.section.tight { padding-top: 64px; padding-bottom: 64px; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section.dark h2, .section.dark h3, .section.dark h4 { color: var(--text-on-dark); }
.section.dark p { color: var(--text-on-dark-muted); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 32px; }
/* domyslne min-width:auto w gridzie pozwala dziecku rosnac ponad kolumne */
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }

.stack > * + * { margin-top: 24px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- 4. Typografia pomocnicza ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold);
  display: block;
}
.section.dark .eyebrow { color: var(--leaf-300); }

.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
}
.section.dark .lead { color: var(--text-on-dark-muted); }

/* .highlight — podkreślenie pędzlem. Musi obejmować własny inline span
   bez nachodzenia na sąsiadujące elementy. */
.highlight {
  position: relative;
  display: inline;
  color: inherit;
  background-image: linear-gradient(transparent 62%, rgba(156, 199, 90, 0.42) 62%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.9s var(--ease) 0.2s;
  padding: 0 0.06em;
}
.is-revealed .highlight, .highlight.is-on { background-size: 100% 100%; }

.serif-italic { font-family: var(--font-display); font-style: normal; font-weight: 400; color: var(--moss-500); }

/* ---------- 5. Przyciski ---------- */
.btn {
  --btn-bg: var(--forest-700);
  --btn-fg: #FFFFFF;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  line-height: 1.2;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--moss-500);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: translateY(0); }
.btn .btn-ico { transition: transform 0.35s var(--ease); }
.btn:hover .btn-ico { transform: translateX(4px); }

.btn-gold { --btn-bg: var(--gold); --btn-fg: var(--forest-900); }
.btn-gold::after { background: var(--wheat-600); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--forest-800);
  border-color: rgba(30, 34, 36, 0.24);
}
.btn-ghost::after { background: var(--forest-800); }
.btn-ghost:hover { --btn-fg: #FFFFFF; border-color: var(--forest-800); }

.section.dark .btn-ghost { --btn-fg: var(--text-on-dark); border-color: var(--line-dark); }
.section.dark .btn-ghost::after { background: var(--leaf-200); }
.section.dark .btn-ghost:hover { --btn-fg: var(--forest-900); }

.btn-lg { padding: 20px 38px; font-size: var(--step-1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.text-center .btn-row { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
  border-bottom: 2px solid rgba(36, 86, 55, 0.25);
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow:hover { gap: 14px; border-color: var(--gold); }
.section.dark .link-arrow { color: var(--leaf-200); border-color: rgba(188, 220, 180, 0.3); }

/* ---------- 6. Nawigacja ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(244, 245, 243, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-stuck {
  background: rgba(244, 245, 243, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(30, 35, 37, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 62px; height: 43px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--forest-800);
  letter-spacing: -0.02em;
}
.brand-tag {
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { margin: 0; position: relative; }
.nav-menu a {
  display: block;
  white-space: nowrap;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--forest-800); background: rgba(62, 122, 79, 0.10); }

.has-sub > button {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 7px;
  padding: 10px 14px;
  background: none;
  border: 0;
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.has-sub > button:hover, .has-sub.is-open > button { color: var(--forest-800); background: rgba(62, 122, 79, 0.10); }
.has-sub > button svg { transition: transform 0.3s var(--ease); }
.has-sub.is-open > button svg { transform: rotate(180deg); }

.subnav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 288px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav li { margin: 0; }
.subnav a { padding: 11px 14px; border-radius: var(--r-sm); color: var(--ink-700); }
.subnav strong { display: block; font-weight: 600; color: var(--forest-800); font-size: 0.97rem; }
.subnav span { display: block; font-size: 0.82rem; color: var(--text-muted); line-height: 1.45; }

.nav-cta { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-cta > .btn { padding: 13px 22px; font-size: var(--step--1); }
.cta-short { display: none; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--forest-800);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--forest-800);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.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); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-top: 88px;
  padding-bottom: 120px;
  overflow: hidden;
  background: linear-gradient(168deg, var(--sand-50) 0%, var(--sand-100) 52%, var(--sand-200) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 3;
}
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: heroLine 1.05s var(--ease) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.24s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.36s; }
@keyframes heroLine { to { transform: translateY(0); } }

.hero-fade { opacity: 0; transform: translateY(22px); animation: heroFade 0.9s var(--ease) forwards; }
.hero-fade.d1 { animation-delay: 0.5s; }
.hero-fade.d2 { animation-delay: 0.64s; }
.hero-fade.d3 { animation-delay: 0.78s; }
@keyframes heroFade { to { opacity: 1; transform: translateY(0); } }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--forest-800);
}
.hero-badge svg { color: var(--gold); }

/* scena hero: warstwy paralaksy */
.hero-scene {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 120px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #BBD8E8 0%, #D7E7DC 44%, #6E9A63 72%, #3E7A4F 100%);
}
/* .layer nie ustawia inset — inaczej nadpisałby pozycjonowanie słońca i wzgórz */
.hero-scene .layer { will-change: transform; }
.hero-scene svg.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scene .sun {
  position: absolute;
  top: 12%; right: 16%;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #FFF3D0, var(--wheat-500));
  animation: sunPulse 7s ease-in-out infinite;
}
/* Pulsujemy poświatą, nie transformem — transform należy do paralaksy w JS
   (animacje CSS mają w kaskadzie pierwszeństwo przed stylem inline). */
@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 60px 18px rgba(156, 199, 90, 0.34); }
  50% { box-shadow: 0 0 92px 32px rgba(156, 199, 90, 0.5); }
}
.hero-scene .hill {
  position: absolute;
  left: -12%; right: -12%;
  border-radius: 50% 50% 0 0;
}
.hero-scene .hill-1 { bottom: 26%; height: 46%; background: rgba(62, 122, 79, 0.55); }
.hero-scene .hill-2 { bottom: 14%; height: 38%; background: rgba(26, 64, 41, 0.7); }
.hero-scene .hill-3 { bottom: 0; height: 30%; background: var(--forest-800); border-radius: 44% 56% 0 0; }
.hero-scene .scene-note {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 30px;
  background: linear-gradient(transparent, rgba(30, 35, 37, 0.86) 58%);
  color: var(--text-on-dark);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}
.hero-scene .scene-note strong { display: block; font-family: var(--font-display); font-size: var(--step-1); margin-bottom: 4px; }

.hero-blob {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-blob.b1 { width: 460px; height: 460px; top: -140px; left: -120px; background: rgba(143, 192, 139, 0.6); }
.hero-blob.b2 { width: 380px; height: 380px; bottom: -160px; right: 32%; background: rgba(156, 199, 90, 0.35); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--forest-800);
  line-height: 1;
}
.hero-stats .stat-label { font-size: var(--step--1); color: var(--text-muted); margin-top: 6px; }

/* ---------- 8. Marquee ---------- */
.marquee {
  background: var(--forest-900);
  color: var(--text-on-dark);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 0; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--leaf-200);
}
.marquee-track span::after { content: "✦"; color: var(--gold); font-style: normal; font-size: 0.7em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 9. Karty ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--moss-500), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(62, 122, 79, 0.3); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
/* KONTRAST: karta na białym tle w ciemnej sekcji zawsze ciemny tekst */
.section.dark .card { background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); }
.section.dark .card h3 { color: var(--text-on-dark); }
.section.dark .card p { color: var(--text-on-dark-muted); }
.section.dark .card.card-light { background: var(--surface); }
.section.dark .card.card-light h3, .section.dark .card.card-light p { color: var(--text); }
.section.dark .card.card-light p { color: var(--text-muted); }

.card-ico {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(62, 122, 79, 0.16), rgba(156, 199, 90, 0.18));
  color: var(--forest-700);
  margin-bottom: 22px;
}
.section.dark .card-ico { background: rgba(143, 192, 139, 0.14); color: var(--leaf-200); }

.card-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(62, 122, 79, 0.22);
  margin-bottom: 14px;
}

/* karta usługi ze zdjęciem-placeholderem */
.service-card { display: flex; flex-direction: column; padding: 0; }
.service-card .ph { aspect-ratio: 16 / 10; }
.service-card .service-body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.service-card .service-body .link-arrow { margin-top: auto; align-self: flex-start; padding-top: 14px; }
.service-card ul { font-size: var(--step--1); color: var(--text-muted); margin-bottom: 18px; }

/* ---------- 10. Placeholdery zdjęć (gradienty, nie puste divy) ---------- */
.ph {
  position: relative;
  /* Bez tego aspect-ratio razem z min-height rozpycha SZEROKOSC, zeby dotrzymac
     proporcji — kafel wychodzi poza swoja kolumne i wchodzi na sasiedni tekst. */
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--forest-700), var(--moss-500) 46%, var(--leaf-300));
  display: grid;
  place-items: center;
  isolation: isolate;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.22), transparent 42%),
    radial-gradient(circle at 78% 74%, rgba(30, 35, 37, 0.34), transparent 46%);
  z-index: 1;
}
.ph-label {
  position: relative;
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(3px);
  text-align: center;
}
.ph-leaf { position: absolute; inset: 0; z-index: 1; opacity: 0.16; }
.ph.v2 { background: linear-gradient(150deg, #2F3437, #5A9A68 50%, #A5CF5E); }
.ph.v3 { background: linear-gradient(120deg, #1A4029, #3E7A4F 40%, #BBD8E8); }
.ph.v4 { background: linear-gradient(200deg, #0B2015, #245637 55%, #8FC08B); }
.ph.v5 { background: linear-gradient(135deg, #5E6568, #8A9194 48%, #8FC08B); }
.ph.ratio-wide { aspect-ratio: 16 / 9; }
.ph.ratio-square { aspect-ratio: 1 / 1; }
.ph.ratio-tall { aspect-ratio: 3 / 4; }
.ph.ratio-hero { aspect-ratio: 21 / 9; }

/* ---------- 11. Proces (oś czasu ze scroll-progress) ---------- */
.process { position: relative; }
.process-rail {
  position: absolute;
  left: 34px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: rgba(62, 122, 79, 0.18);
  border-radius: 2px;
}
.process-rail i {
  position: absolute;
  inset: 0 0 auto 0;
  display: block;
  height: 0;
  background: linear-gradient(180deg, var(--moss-500), var(--gold));
  border-radius: 2px;
  transition: height 0.15s linear;
}
.process-step { position: relative; padding-left: 96px; padding-bottom: 56px; }
.process-step:last-child { padding-bottom: 0; }
.process-dot {
  position: absolute;
  left: 0; top: 0;
  width: 70px; height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid rgba(62, 122, 79, 0.28);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-700);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.process-step.is-active .process-dot {
  background: var(--forest-700);
  border-color: var(--forest-700);
  color: #FFFFFF;
  transform: scale(1.06);
}
.process-step h3 { margin-bottom: 0.35em; }
.process-step p:last-child { margin-bottom: 0; }
.process-meta {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- 12. Sezony (interaktywny przełącznik) ---------- */
.seasons-panel {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
}
.seasons-tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
.season-tab {
  padding: 20px 12px;
  border: 0;
  border-right: 1px solid var(--line-dark);
  background: transparent;
  color: var(--text-on-dark-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--step--1);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.season-tab:last-child { border-right: 0; }
.season-tab:hover { color: var(--text-on-dark); background: rgba(255, 255, 255, 0.05); }
.season-tab[aria-selected="true"] { background: var(--gold); color: var(--forest-900); }
.season-panels { position: relative; }
.season-panel { display: none; padding: 44px 40px; }
.season-panel.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; animation: fadeUp 0.6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.season-panel h3 { margin-bottom: 0.4em; }
.season-panel ul { color: var(--text-on-dark-muted); }
.season-swatch {
  aspect-ratio: 5 / 4;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
}
.season-swatch.wiosna { background: linear-gradient(140deg, #5A9A68, #BCDCB4 60%, #F4EEE1); }
.season-swatch.lato { background: linear-gradient(140deg, #1A4029, #3E7A4F 50%, #C8A34A); }
.season-swatch.jesien { background: linear-gradient(140deg, #B4653C, #C8A34A 55%, #8FC08B); }
.season-swatch.zima { background: linear-gradient(140deg, #12301F, #5B7A6B 55%, #D8E4EA); }

/* ---------- 13. Realizacje / before-after ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.work-item { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; }
.work-item.span-7 { grid-column: span 7; }
.work-item.span-5 { grid-column: span 5; }
.work-item.span-6 { grid-column: span 6; }
.work-item.span-4 { grid-column: span 4; }
.work-item.span-8 { grid-column: span 8; }
.work-item .ph { position: absolute; inset: 0; border-radius: 0; transition: transform 0.9s var(--ease); }
.work-item:hover .ph { transform: scale(1.04); }
.work-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 30px 30px 26px;
  background: linear-gradient(transparent, rgba(30, 35, 37, 0.9) 62%);
  color: var(--text-on-dark);
}
.work-caption h3 { font-size: var(--step-1); margin-bottom: 4px; color: #FFFFFF; }
.work-caption p { margin: 0; font-size: var(--step--1); color: rgba(255, 255, 255, 0.78); }
.work-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--forest-900);
  background: var(--gold);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.ba {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}
.ba .ba-side { position: absolute; inset: 0; border-radius: 0; }
.ba .ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #FFFFFF;
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 0 20px rgba(30, 35, 37, 0.5);
}
.ba-handle::after {
  content: "⇄";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--forest-800);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
}
.ba-badge {
  position: absolute;
  top: 18px;
  z-index: 5;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(30, 35, 37, 0.72);
  color: #FFFFFF;
}
.ba-badge.left { left: 18px; }
.ba-badge.right { right: 18px; }

/* ---------- 14. Opinie ---------- */
.quote {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 34px 34px;
}
.quote::before {
  content: "„";
  position: absolute;
  top: 6px; left: 26px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: rgba(156, 199, 90, 0.34);
}
.quote p { position: relative; font-size: var(--step-1); line-height: 1.62; color: var(--text); }
/* KONTRAST: cytat na białym tle także w ciemnej sekcji ma ciemny tekst */
.section.dark .quote { background: var(--surface); border-color: transparent; }
.section.dark .quote p { color: var(--text); }
.section.dark .quote .quote-author strong { color: var(--forest-800); }
.section.dark .quote .quote-author span { color: var(--text-muted); }
.quote-author { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.quote-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--forest-700), var(--moss-400));
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 600;
  flex-shrink: 0;
}
.quote-author strong { display: block; color: var(--forest-800); font-size: var(--step-0); }
.quote-author span { font-size: var(--step--1); color: var(--text-muted); }
.stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; display: block; }

/* ---------- 15. FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--text);
  transition: color 0.25s var(--ease);
}
.faq-q:hover { color: var(--accent-strong); }
.faq-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--forest-800);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.faq-icon::before { width: 13px; height: 2px; }
.faq-icon::after { width: 2px; height: 13px; }
.faq-item.is-open .faq-icon { background: var(--forest-700); border-color: var(--forest-700); transform: rotate(180deg); }
.faq-item.is-open .faq-icon::before { background: #FFFFFF; }
.faq-item.is-open .faq-icon::after { transform: scaleY(0); }
.faq-a { overflow: hidden; height: 0; transition: height 0.4s var(--ease); }
.faq-a-inner { padding-bottom: 28px; max-width: 74ch; color: var(--text-muted); }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ---------- 16. Tabele / cennik ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--sand-100); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase; color: var(--forest-800); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(62, 122, 79, 0.045); }
td strong { color: var(--forest-800); }

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.featured { border-color: var(--gold); box-shadow: var(--shadow-md); }
.price-card.featured::after {
  content: "Najczęściej wybierane";
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--forest-900);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-tag { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; color: var(--forest-800); line-height: 1; margin: 10px 0 6px; }
.price-tag small { font-size: 0.42em; font-family: var(--font-body); color: var(--text-muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 28px; }
.price-card ul li { position: relative; padding-left: 30px; font-size: var(--step--1); }
.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 9px;
  border-left: 2px solid var(--moss-500);
  border-bottom: 2px solid var(--moss-500);
  transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; }

/* ---------- 17. CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--forest-900);
  color: var(--text-on-dark);
  border-radius: var(--r-xl);
  padding: 72px 64px;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -140px; top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 199, 90, 0.28), transparent 68%);
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  left: -160px; bottom: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 154, 104, 0.3), transparent 68%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #FFFFFF; }
.cta-band p { color: var(--text-on-dark-muted); }

/* ---------- 18. Formularz ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--forest-800); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: var(--step-0);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--moss-500);
  box-shadow: 0 0 0 4px rgba(62, 122, 79, 0.14);
}
.field-hint { font-size: 0.78rem; color: var(--text-muted); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.82rem; color: var(--text-muted); }
.consent input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--moss-500); }

/* ---------- 19. Popup — kalkulator ogrodu ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 35, 37, 0.66);
  animation: fadeIn 0.3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  max-height: min(88vh, 860px);
  overflow-y: auto;
  background: var(--sand-50);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: popIn 0.42s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-head { padding: 30px 34px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin-bottom: 6px; }
.modal-head p { margin: 0; font-size: var(--step--1); color: var(--text-muted); }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--forest-800);
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal-close:hover { background: var(--sand-200); transform: rotate(90deg); }
.modal-body { padding: 28px 34px 34px; }

.wizard-progress { display: flex; gap: 8px; padding: 0 34px; margin-top: 18px; }
.wizard-progress i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--sand-200);
  transition: background 0.4s var(--ease);
}
.wizard-progress i.is-done { background: var(--moss-500); }
.wizard-step { display: none; }
.wizard-step.is-active { display: block; animation: fadeUp 0.4s var(--ease); }
.wizard-step > h4 { margin-bottom: 18px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-weight: 500;
  text-align: left;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.choice:hover { border-color: var(--moss-400); transform: translateY(-2px); }
.choice.is-selected { border-color: var(--forest-700); background: rgba(62, 122, 79, 0.09); box-shadow: inset 0 0 0 1px var(--forest-700); }
.choice .choice-ico { color: var(--moss-500); flex-shrink: 0; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.wizard-back {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 4px;
}
.wizard-back:hover { color: var(--forest-800); }
.wizard-done { text-align: center; padding: 20px 0; }
.wizard-done .tick {
  width: 74px; height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(62, 122, 79, 0.12);
  color: var(--moss-500);
  display: grid;
  place-items: center;
}

/* ---------- 20. Stopka ---------- */
.site-footer { background: var(--forest-900); color: var(--text-on-dark-muted); padding-top: 84px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 56px; }
.site-footer .brand-name { color: #FFFFFF; }
.site-footer .brand-tag { color: var(--leaf-300); }
.footer-col h4 { font-size: var(--step-0); color: #FFFFFF; letter-spacing: 0.02em; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: var(--text-on-dark-muted); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--leaf-200); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line-dark);
  font-size: var(--step--1);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-areas { font-size: 0.8rem; line-height: 1.8; color: rgba(167, 173, 175, 0.75); padding-bottom: 26px; }
.footer-areas strong { color: var(--leaf-300); display: block; margin-bottom: 6px; font-size: var(--step--1); }

/* ---------- 21. Breadcrumb + nagłówek podstrony ---------- */
.page-head {
  position: relative;
  background: linear-gradient(160deg, var(--forest-900), var(--forest-700) 72%, var(--moss-500));
  color: var(--text-on-dark);
  padding: 64px 0 84px;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -180px; top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 199, 90, 0.22), transparent 66%);
}
.page-head > .container { position: relative; z-index: 2; }
.page-head h1 { color: #FFFFFF; max-width: 20ch; }
.page-head .lead { color: rgba(238, 240, 238, 0.84); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--step--1); margin-bottom: 22px; color: rgba(167, 173, 175, 0.9); }
.crumbs a { text-decoration: none; color: var(--leaf-300); }
.crumbs a:hover { color: #FFFFFF; }
.crumbs span[aria-current] { color: rgba(238, 240, 238, 0.7); }

/* ---------- 22. Treść artykułu ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; font-size: var(--step-3); }
.prose h3 { margin-top: 1.5em; }
.prose > *:first-child { margin-top: 0; }
.prose ul li::marker, .prose ol li::marker { color: var(--moss-500); }
.prose blockquote {
  margin: 2em 0;
  padding: 26px 30px;
  border-left: 4px solid var(--gold);
  background: var(--sand-100);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--forest-800);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.callout {
  margin: 2em 0;
  padding: 26px 30px;
  border: 1px solid rgba(62, 122, 79, 0.3);
  border-radius: var(--r-md);
  background: rgba(90, 154, 104, 0.08);
}
.callout strong { color: var(--forest-800); }
.callout p:last-child { margin-bottom: 0; }

.toc {
  background: var(--sand-100);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 30px;
  margin-bottom: 40px;
}
.toc h4 { margin-bottom: 12px; font-family: var(--font-body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--forest-800); text-decoration: none; border-bottom: 1px solid transparent; }
.toc a:hover { border-color: var(--gold); }

.post-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: var(--step--1); color: rgba(167, 173, 175, 0.9); margin-bottom: 18px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .ph { border-radius: 0; aspect-ratio: 16 / 10; }
.post-card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 { font-size: var(--step-1); margin-bottom: 10px; }
.post-card-body p { color: var(--text-muted); font-size: var(--step--1); }
.post-card-body .post-tag { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--moss-500); margin-bottom: 12px; }
.post-card-body .read { margin-top: auto; font-weight: 600; color: var(--forest-800); font-size: var(--step--1); }

/* ---------- 23. Zaufanie / liczniki ---------- */
.counter { font-family: var(--font-display); font-size: var(--step-4); font-weight: 700; line-height: 1; color: var(--forest-800); }
.section.dark .counter { color: var(--gold); }
.counter-label { font-size: var(--step--1); color: var(--text-muted); margin-top: 10px; }
.section.dark .counter-label { color: var(--text-on-dark-muted); }

/* ---------- 24. Animacje wejścia ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

.draw-path { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 2.4s var(--ease-in-out); }
.draw-path.is-revealed { stroke-dashoffset: 0; }

.float-slow { animation: floatY 9s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* pasek postępu czytania */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--moss-500), var(--gold));
  z-index: 950;
  transition: width 0.1s linear;
}

/* przycisk „do góry” */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--forest-800);
  color: #FFFFFF;
  border: 0;
  display: grid;
  place-items: center;
  z-index: 880;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, background 0.25s var(--ease);
  box-shadow: var(--shadow-md);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--moss-500); }

/* ---------- 25. Responsywność ---------- */
@media (max-width: 1330px) {
  .nav-phone { display: none; }
}

@media (max-width: 1080px) {
  :root { --section-y: 80px; --gutter: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-scene { aspect-ratio: 16 / 11; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 90px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .work-item.span-7, .work-item.span-5, .work-item.span-6, .work-item.span-8, .work-item.span-4 { grid-column: span 12; }
  .cta-band { padding: 56px 40px; }
}

@media (max-width: 900px) {
  /* WAŻNE: backdrop-filter na sticky headerze tworzy kontekst nakładania,
     który więzi mobilne menu position:fixed — wyłączamy go na mobile. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(244, 245, 243, 0.98); }

  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 995;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 108px 28px 40px;
    background: var(--sand-50);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-menu a, .has-sub > button { width: 100%; padding: 16px 14px; font-size: var(--step-1); border-radius: var(--r-sm); }
  .has-sub > button { justify-content: space-between; }
  .subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: rgba(62, 122, 79, 0.06);
    padding: 6px;
    margin: 4px 0 8px;
    display: none;
  }
  .has-sub.is-open .subnav { display: block; }
  .subnav a { font-size: var(--step-0); }
  .nav-phone { display: none; }
  .nav-cta .btn { padding: 12px 20px; font-size: var(--step--1); }
  body.nav-open { overflow: hidden; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .season-panel.is-active { grid-template-columns: 1fr; }
  .seasons-tabs { grid-template-columns: repeat(2, 1fr); }
  .season-tab:nth-child(2) { border-right: 0; }
  .season-tab:nth-child(1), .season-tab:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .hero-stats > div { min-width: 42%; }
}

@media (max-width: 620px) {
  :root { --section-y: 64px; --gutter: 20px; }

  /* nagłówek musi zmieścić się w 390 px, inaczej rozpycha całą stronę */
  .nav-inner { gap: 10px; min-height: 72px; }
  .brand { gap: 9px; }
  .brand svg { width: 49px; height: 34px; }
  .brand-name { font-size: 1rem; }
  .brand-tag { font-size: 0.55rem; letter-spacing: 0.06em; }
  .nav-cta { gap: 8px; }
  .nav-cta > .btn { padding: 11px 16px; font-size: 0.84rem; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-menu { padding-top: 96px; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 26px; border-radius: var(--r-lg); }
  .process-step { padding-left: 74px; padding-bottom: 44px; }
  .process-dot { width: 56px; height: 56px; font-size: 1.2rem; }
  .process-rail { left: 27px; }
  .choice-grid { grid-template-columns: 1fr; }
  .modal-box { max-height: 92vh; }
  .modal-head, .modal-body { padding-left: 22px; padding-right: 22px; }
  .wizard-progress { padding: 0 22px; }
  .season-panel { padding: 30px 24px; }
  .quote { padding: 34px 24px 28px; }
  .card { padding: 30px 24px; }
}

/* ---------- 26. Redukcja ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .hero-fade { opacity: 1; transform: none; }
  .draw-path { stroke-dashoffset: 0; }
}

/* ---------- 27. Druk ---------- */
@media print {
  .site-header, .site-footer, .modal, .to-top, .read-progress, .marquee { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
}

/* ---------- Zdjęcia w miejscu placeholderów ---------- */
.ph.has-img { background: var(--sand-200); }
.ph.has-img::after { display: none; }
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scene.has-photo { background: var(--sand-200); }
.hero-scene .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.season-swatch.has-img { position: relative; overflow: hidden; background: var(--sand-200); }
.season-swatch.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band .btn-ghost { --btn-fg: var(--text-on-dark); border-color: rgba(238, 240, 238, 0.32); }
.cta-band .btn-ghost:hover { --btn-fg: var(--forest-900); border-color: var(--text-on-dark); }
.cta-band .btn-ghost::after { background: var(--text-on-dark); }

/* ---------- Baner zgody na cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 900;
  width: min(440px, calc(100% - 32px));
  padding: 20px 22px; border-radius: var(--r-md);
  background: var(--forest-900); color: var(--text-on-dark);
  box-shadow: var(--shadow-lg); font-size: var(--step--1); line-height: 1.55;
}
.cookie-banner p { margin: 0 0 14px; color: var(--text-on-dark-muted); }
.cookie-banner a { color: var(--leaf-300); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn { padding: 10px 18px; font-size: var(--step--1); }
.cookie-banner .btn-ghost { --btn-fg: var(--text-on-dark); border-color: rgba(238, 240, 238, 0.32); }
.cookie-banner .btn-ghost::after { background: var(--text-on-dark); }
.cookie-banner .btn-ghost:hover { --btn-fg: var(--forest-900); }
