/* =========================================================
   ABAK Biuro Rachunkowe — style główne
   Struktura: 1. Zmienne  2. Reset/baza  3. Komponenty  4. Sekcje  5. RWD
   ========================================================= */

/* ---------- 1. ZMIENNE ---------- */
:root {
  --font-sans: "silka", "Plus Jakarta Sans", "DM Sans Variable", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "silka-mono", "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --navy-900: #0f1b33;
  --navy-800: #14213d;
  --navy-700: #1d2d50;
  --navy-600: #2c3d63;
  --copper-600: #a35c2b;
  --copper-500: #b56a35;
  --copper-400: #c98a5c;
  --copper-300: #dcae8a;
  --ink-900: #14213d;
  --copper-100: #f6e6d8;
  --cream-50: #fbf9f5;
  --cream-100: #f6f1ea;
  --beige-200: #efe6da;
  --line: #e4dccf;
  --text: #1d2740;
  --text-muted: #5b6477;
  --white: #ffffff;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 51, .06), 0 2px 8px rgba(15, 27, 51, .05);
  --shadow: 0 10px 30px -10px rgba(15, 27, 51, .25);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 96px);
  --header-h: 76px;
  --copper: #b56a35;
  --copper-gradient: linear-gradient(135deg, #a35c2b 0%, #d4956a 50%, #a35c2b 100%);
  --gold-shimmer: linear-gradient(90deg, #a35c2b 0%, #e8b887 40%, #c8773a 70%, #a35c2b 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. RESET / BAZA ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; color: var(--navy-800); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }

h1 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); line-height: 1.05; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.005em; }

:focus-visible { outline: 2px solid var(--copper-500); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-800); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- 3. KOMPONENTY ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper-600);
  margin-bottom: 12px;
}
.eyebrow--wide { color: var(--navy-700); letter-spacing: .32em; margin-bottom: 18px; }
.eyebrow--light { color: #d9a77c; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px;
  font-size: .95rem; font-weight: 500; line-height: 1.2;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--copper-600); color: var(--white); box-shadow: 0 6px 16px -8px rgba(163, 92, 43, .8); }
.btn-primary:hover { background: #8e4f24; }
.btn-outline { background: var(--white); color: var(--navy-800); border-color: #d8d2c7; }
.btn-outline:hover { border-color: var(--navy-800); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.section-head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.section-intro { color: var(--text-muted); font-size: .95rem; max-width: 440px; }

/* animacja pojawiania się */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 4. SEKCJE ---------- */

/* HEADER */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  pointer-events: none;
  transition: transform .3s ease, background .25s, box-shadow .25s, background-color .3s var(--ease);
}
.site-header > * { pointer-events: auto; }
.header-bar {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 56px);
  height: var(--header-h);
  width: 100%;
  padding: 0 max(var(--gutter), (100vw - var(--container)) / 2 + var(--gutter));
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(15,27,51,.06);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
  pointer-events: auto;
}
.logo img { width: 83px; height: auto; }
.main-nav ul { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.main-nav a {
  position: relative; text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--navy-800);
  padding-block: 6px;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--copper-600); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav ul a:hover::after, .main-nav ul a[aria-current]::after { transform: scaleX(1); }
.header-cta { margin-left: auto; flex-shrink: 0; }
.nav-cta-mobile, .nav-toggle { display: none; }

.site-header.is-scrolled .header-bar { background: rgba(255, 255, 255, .94); box-shadow: 0 4px 20px -8px rgba(15, 27, 51, .18); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.is-scrolled .header-cta { margin-left: auto; flex-shrink: 0; }

/* HERO */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(640px, 100vh, 880px);
  display: flex; align-items: center;
  background: var(--cream-100);
  padding-top: var(--header-h);
}

/* Fala świetlna na hero */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 15%,
    rgba(255, 255, 255, 0) 28%,
    rgba(255, 255, 255, .10) 36%,
    rgba(255, 245, 228, .28) 44%,
    rgba(255, 255, 255, .10) 52%,
    rgba(255, 255, 255, 0) 62%,
    transparent 75%,
    transparent 100%
  );
  background-size: 300% 100%;
  background-position: -150% 0;
  animation: light-wave 9s cubic-bezier(.25, 0, .6, 1) infinite;
  animation-delay: 0.8s;
}

@keyframes light-wave {
  0%   { background-position: -150% 0; opacity: 0; }
  8%   { opacity: 1; }
  70%  { background-position: 200% 0; opacity: 1; }
  85%  { opacity: 0; }
  100% { background-position: 200% 0; opacity: 0; }
}
.hero-media { position: absolute; inset: 0 0 0 34%; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.hero-fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--cream-100) 0%, var(--cream-100) 34%, rgba(246, 241, 234, .82) 40%, rgba(246, 241, 234, .35) 48%, rgba(246, 241, 234, 0) 58%),
    linear-gradient(0deg, rgba(246, 241, 234, .55) 0%, rgba(246, 241, 234, 0) 18%);
}
.hero-inner { padding-block: 48px 40px; }
.hero-content { max-width: 560px; }
.hero h1 { margin-bottom: 22px; }
.hero-lead { font-size: 1.06rem; color: var(--navy-700); max-width: 470px; margin-bottom: 30px; }

.hero-features { display: flex; gap: clamp(20px, 4vw, 52px); margin-top: 48px; }
.hero-features li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: .86rem; font-weight: 500; line-height: 1.3; color: var(--navy-800); min-width: 96px; }
.hero-features svg { width: 38px; height: 38px; fill: none; stroke: var(--navy-800); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.scroll-hint {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 44px; margin-left: 88px;
  font-size: .85rem; color: var(--navy-700); text-decoration: none;
}
.mouse { width: 18px; height: 28px; border: 1.5px solid var(--navy-700); border-radius: 10px; display: grid; justify-items: center; padding-top: 5px; }
.mouse span { width: 2px; height: 6px; background: var(--navy-700); border-radius: 2px; animation: scroll-dot 1.8s var(--ease) infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }

/* USŁUGI */
.services { background: var(--cream-50); }
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.service-card {
  position: relative; display: block; overflow: hidden; height: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px; text-decoration: none; color: var(--white);
  background: var(--navy-800);
  box-shadow: 0 4px 20px rgba(15,27,51,.18);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .6s var(--ease);
  filter: brightness(.85);
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(15,27,51,0) 45%,
    rgba(15,27,51,.7) 72%,
    rgba(15,27,51,.95) 100%);
  z-index: 1;
  transition: opacity .4s var(--ease);
}
.service-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 18px 20px;
  transform: translateY(6px);
  transition: transform .35s var(--ease);
}
.service-body strong { font-size: 1.05rem; font-weight: 600; line-height: 1.25; display: flex; align-items: center; min-height: 2.65em; }
.service-body span {
  font-size: .82rem; line-height: 1.45; color: rgba(255,255,255,.9);
  display: block; max-height: 0; overflow: hidden;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease) .05s, transform .35s var(--ease) .05s, max-height .35s var(--ease);
}
.service-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3;
  background: var(--copper-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(15,27,51,.32);
}
.service-card:hover img { transform: scale(1.08); filter: brightness(.55); }
.service-card:hover .service-body { transform: none; }
.service-card:hover .service-body span { opacity: 1; transform: none; max-height: 4em; }
.service-card:hover::after, .service-card:focus-visible::after { transform: scaleX(1); }

/* TRADYCJA */
.tradition { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream-100); border-block: 1px solid var(--line); }
.tradition-text { display: flex; align-items: center; justify-content: flex-end; padding: clamp(48px, 6vw, 80px) var(--gutter); }
.tradition-text-inner { max-width: 540px; width: 100%; }
.tradition h2 { margin-bottom: 18px; }
.tradition p { color: var(--text-muted); margin-bottom: 26px; }
.tradition-media { position: relative; min-height: 360px; }
.tradition-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.quote-card {
  position: absolute; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  max-width: 330px; margin: 0; padding: 22px 26px 18px 58px;
  background: rgba(255, 255, 255, .95); border-radius: var(--radius); box-shadow: var(--shadow);
}
.quote-card::before {
  content: "\201C"; position: absolute; left: 20px; top: 8px;
  font-size: 3.2rem; line-height: 1; color: var(--copper-500); font-weight: 600;
}
.quote-card blockquote { margin: 0 0 10px; font-size: .9rem; line-height: 1.5; color: var(--navy-800); }
.quote-card figcaption { text-align: right; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-600); }

/* DLA KOGO */
.audience { background: var(--white); }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.audience-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  text-decoration: none; transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.audience-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; }
.audience-body { display: grid; gap: 6px; padding: 16px 18px 20px; }
.audience-body strong { font-size: 1rem; font-weight: 600; color: var(--navy-800); }
.audience-body span { font-size: .85rem; color: var(--text-muted); line-height: 1.45; }
.audience-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

/* WSPÓŁPRACA */
.process { background: var(--cream-50); border-top: 1px solid var(--line); }
.process h2 { max-width: 900px; margin-bottom: clamp(32px, 4vw, 56px); }

/* Stepper — 7-col grid: card arrow card arrow card arrow card */
/* =============================================
   STEPS – Jak przebiega współpraca (1:1 z makietą)
   ============================================= */
.steps {
  --step-gap: clamp(24px, 2.6vw, 44px);
  list-style: none; margin: 0; padding: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--step-gap);
  align-items: stretch;
}
.step { display: block; min-width: 0; container-type: inline-size; }

/* Biała karta: zdjęcie + treść */
.step-card {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15,27,51,.05);
  box-shadow: 0 1px 3px rgba(15,27,51,.04), 0 12px 32px rgba(15,27,51,.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(15,27,51,.04), 0 20px 48px rgba(163,92,43,.15);
}

/* Kontener zdjęcia – bez overflow, żeby badge i strzałka mogły wystawać */
.step-media { position: relative; }
.step-img {
  aspect-ratio: 16 / 10;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: var(--navy-800);
}
.step-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.step-card:hover .step-img img { transform: scale(1.04); }

/* Wspólny styl okrągłych badge'y (numer + ikona) */
.step-num,
.step-icon {
  position: absolute;
  width: 23cqw; height: 23cqw;
  border-radius: 50%;
  background: var(--copper-100);
  border: max(3px, 1.1cqw) solid #fff;
  box-shadow: 0 4px 14px rgba(15,27,51,.10);
  color: var(--copper-600);
  display: grid; place-items: center;
  z-index: 3;
}
/* Numer – nachodzi na lewy górny róg karty */
.step-num {
  top: -7cqw; left: -1cqw;
  font-size: 8.8cqw;
  font-weight: 500; letter-spacing: .01em; line-height: 1;
}
/* Ikona – na dolnej krawędzi zdjęcia, lekko od lewej */
.step-icon { width: 22cqw; height: 22cqw; left: 5cqw; bottom: 0; transform: translateY(50%); }
.step-icon svg { width: 46%; height: 46%; }

/* Treść karty */
.step-body { flex: 1; padding: 15cqw 7.5cqw 7.5cqw; }
.step-body h3 {
  font-size: clamp(.9rem, 5.6cqw, 1.2rem); font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 3cqw; line-height: 1.3;
}
.step-body p {
  font-size: clamp(.85rem, 5.1cqw, 1.1rem); color: var(--text-muted);
  line-height: 1.55; margin: 0;
}

/* Strzałka – linia + kółko w przerwie między kartami, na środku wysokości zdjęcia */
.step-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  left: 100%;
  width: var(--step-gap); height: 36px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.step-arrow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--copper-400); transform: translateY(-50%);
}
.step-arrow-circle {
  position: relative;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--copper-500);
  background: var(--cream-50);
  color: var(--copper-600);
  display: grid; place-items: center;
}
.step-arrow-circle svg { width: 14px; height: 14px; }

.contact-form-wrap {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  background: var(--white);
  padding: clamp(32px, 4vw, 48px) clamp(16px, 5vw, 64px);
}
.contact-form { max-width: 620px; width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 14px; }
.field { display: grid; gap: 4px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 500; color: var(--navy-700); }
.field label span { color: var(--copper-600); }
.field label small { color: var(--text-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 10px 12px; font-size: .92rem;
  border: 1px solid #d9d3c8; border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(44, 61, 99, .12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3261e; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .75rem; color: var(--text-muted); margin-bottom: 16px; cursor: pointer; }
.consent input { margin-top: 2px; accent-color: var(--copper-600); }
.consent.is-invalid { color: #b3261e; }
.form-status { margin-top: 12px; font-size: .88rem; min-height: 1.4em; }
.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: #1f6f43; }

/* FOOTER */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); font-size: .85rem; }
.footer-logo-link { display: inline-block; }
.footer-tagline { color: rgba(255,255,255,.5); font-size: .82rem; line-height: 1.5; margin: 0; }
.footer-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-contact-list li { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.footer-contact-list svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(255,255,255,.12); fill: rgba(255,255,255,.8); flex: none; }
.footer-contact-list address { font-style: normal; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 5px 18px; list-style: none; padding: 0; margin: 0; }
.footer-team { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; width: 100%; }
.footer-team-heading { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-500); margin: 6px 0 4px; font-weight: 600; }
.footer-persons { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-persons li { display: flex; flex-direction: column; gap: 2px; }
.person-name { font-weight: 600; color: rgba(255,255,255,.9); font-size: .82rem; }
.person-role { font-size: .75rem; color: var(--copper-500); }
.person-note { font-size: .73rem; color: rgba(255,255,255,.45); line-height: 1.4; }
.footer-badges { display: flex; flex-direction: row; gap: 20px; align-items: center; justify-content: center; margin-top: 24px; }
.footer-badge { width: 150px; height: auto; filter: invert(1); mix-blend-mode: screen; }
.footer-bottom { padding-block: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-legal { margin: 0; }
.footer-legal .sep { opacity: .4; margin-inline: 6px; }

/* do góry */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--navy-800); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.to-top svg { width: 20px; fill: none; stroke: var(--white); stroke-width: 2; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- 5. RWD ---------- */
@media (max-width: 1180px) {
  .site-header { padding-left: 16px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .service-card { aspect-ratio: 3 / 4; }
  .contact-form-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .site-header { background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0 16px; align-items: center; height: var(--header-h); box-shadow: 0 1px 0 var(--line); }
  .header-bar { flex: 1; justify-content: space-between; background: transparent; backdrop-filter: none; padding: 0; height: 100%; }
  .header-cta { display: none; }
  .logo img { width: 70px; }
  .nav-toggle {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px;
    border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .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); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--white); padding: 12px 16px 24px;
    box-shadow: 0 20px 30px -20px rgba(15, 27, 51, .4);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: all .25s var(--ease);
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .main-nav ul a::after { display: none; }
  .nav-cta-mobile { display: flex; margin-top: 18px; width: 100%; }
  .main-nav .nav-cta-mobile.btn-primary { color: var(--white); }

  .hero-media { inset: 0 0 0 28%; }
  .hero-fade { background: linear-gradient(90deg, var(--cream-100) 0%, var(--cream-100) 30%, rgba(246, 241, 234, .9) 42%, rgba(246, 241, 234, .2) 62%, rgba(246, 241, 234, 0) 72%); }

  .section-head { grid-template-columns: 1fr; }
  .tradition { grid-template-columns: 1fr; }
  .tradition-text { justify-content: flex-start; }
  .tradition-media { min-height: 340px; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 60px 28px; }
  .step-arrow { display: none; }
  .contact { grid-template-columns: 1fr; }
  .contact-info { padding-left: var(--gutter); }
}

@media (max-width: 768px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-media { position: relative; inset: auto; display: block; height: 300px; }
  .hero-media img { object-position: 25% 40%; }
  .hero-fade { inset: auto 0 auto 0; top: var(--header-h); height: 300px; background: linear-gradient(0deg, var(--cream-100) 0%, rgba(246, 241, 234, 0) 35%); }
  .hero-inner { padding-block: 8px 48px; }
  .hero-features { margin-top: 36px; justify-content: center; gap: 8px; }
  .hero-features li { min-width: 0; width: 30%; max-width: 110px; font-size: .8rem; }
  .scroll-hint { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; gap: 10px; }
  .service-card { aspect-ratio: 3 / 4; }
  .service-body { padding: 12px 12px 14px; }
  .service-body strong { font-size: .95rem; }
  .audience-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step-arrow { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== TEAM SECTION ===== */
.team-section { background: var(--cream-100); }
.team-section .section-lead {
  max-width: 600px;
  color: var(--ink-600);
  margin-top: 12px;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* 3-card row, center-aligned, middle card bigger/featured */
.team-cards {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 20px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

/* Base card */
.team-card {
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(15,27,51,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
  cursor: default;
}
.team-card:hover {
  background: var(--navy-800);
  box-shadow: 0 12px 40px rgba(15,27,51,.28);
  transform: translateY(-4px);
}

/* Featured (middle) card — always dark */
.team-card--featured {
  background: var(--navy-800);
  box-shadow: 0 8px 32px rgba(15,27,51,.22);
  transform: translateY(-6px);
}

/* Inner padding */
.team-card-inner {
  padding: 32px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* Logo circle */
.team-card-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--copper-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  flex: none;
  overflow: hidden;
  padding: 12px;
}
.team-card-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}

/* Role — small caps copper */
.team-card-role {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--copper-600);
  margin: 0 0 8px;
}
.team-card--featured .team-card-role,
.team-card:hover .team-card-role {
  color: var(--copper-300);
}

/* Name */
.team-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 14px;
  line-height: 1.25;
}
.team-card--featured .team-card-name,
.team-card:hover .team-card-name {
  color: var(--white);
}

/* Decorative line */
.team-card-nr {
  font-size: .8rem;
  color: var(--ink-400);
  margin: 0;
  padding-top: 14px;
  width: 100%;
  text-align: center;
  position: relative;
}
.team-card-nr::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--copper-400);
  margin: 0 auto 12px;
}
.team-card--featured .team-card-nr,
.team-card:hover .team-card-nr { color: rgba(255,255,255,.6); }
.team-card--featured .team-card-nr::before,
.team-card:hover .team-card-nr::before { background: var(--copper-300); }

.team-card-nr strong {
  color: var(--ink-700);
  font-weight: 600;
}
.team-card--featured .team-card-nr strong,
.team-card:hover .team-card-nr strong { color: rgba(255,255,255,.9); }

@media (max-width: 768px) {
  .team-cards { grid-template-columns: 1fr; max-width: 340px; }
  .team-card--featured { transform: none; }
}
@media (max-width: 480px) {
  .team-cards { grid-template-columns: 1fr; }
}

/* =============================================
   KONTAKT + MAPA (formularz lewo, mapa prawo)
   ============================================= */
.contact-map {
  background: var(--cream-100);
  border-top: 1px solid var(--line);
}
.contact-map-form h2 { margin-bottom: 12px; }
.contact-map-lead { color: var(--text-muted); font-size: .95rem; margin: 0 0 28px; }
.contact-map .contact-form { max-width: none; }
.contact-map .field input,
.contact-map .field textarea { background: var(--white); }
.contact-map-map { position: relative; }
.contact-map-map iframe { filter: grayscale(.25); }

.footer-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand img { width: 83px; height: auto; }
.footer-row .footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-row .footer-nav a { color: rgba(255,255,255,.8); }
.footer-row .footer-contact-list { gap: 8px; }
.footer-row .footer-contact-list li { align-items: flex-start; }
.footer-row .footer-contact-list address { line-height: 1.5; }
.footer-row .footer-badge { width: 150px; height: auto; }
.footer-bottom { padding-block: 16px; font-size: .78rem; color: rgba(255,255,255,.5); }

@media (max-width: 1024px) {
  .footer-row { grid-template-columns: 1fr 1fr; }
  .footer-row .footer-nav { grid-column: 1 / -1; order: 3; }
  .footer-row .footer-nav ul { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .contact-map { grid-template-columns: 1fr; }
  .contact-map-form { justify-content: flex-start; padding-inline: var(--gutter); }
  .contact-map-map { min-height: 320px; }
  .footer-row { grid-template-columns: 1fr; }
}

/* --- poprawki: mapa wyrównana do formularza, stopka w jednym rzędzie --- */
.contact-map-map {
  min-height: 0;
  padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(48px, 6vw, 88px) clamp(24px, 4vw, 64px);
}
.contact-map-map iframe {
  position: static; width: 100%; height: 100%; max-width: 600px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15,27,51,.08), 0 12px 32px rgba(15,27,51,.10);
}
.contact-map-map .map-marker {
  position: absolute;
  top: 50%;
  left: calc(clamp(24px, 4vw, 64px) + min(600px, 100% - clamp(24px, 4vw, 64px) - var(--gutter)) / 2);
  transform: translate(-50%, -60%);
  width: 72px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.contact-map-map .map-marker img { width: 100%; height: auto; display: block; }
.contact-map .form-status { margin: 0; min-height: 0; }
.contact-map .form-status:not(:empty) { margin-top: 12px; }
.contact-map-form-inner > :first-child { margin-top: 0; }

.site-footer .footer-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.footer-brand { flex: none; }
.footer-tagline { max-width: 190px; }
.site-footer .footer-row .footer-nav ul { flex-wrap: nowrap; gap: 0 22px; white-space: nowrap; }
.footer-right { display: flex; align-items: center; gap: 32px; flex: none; }
.footer-right .footer-contact-list li { white-space: nowrap; }

@media (max-width: 1180px) {
  .site-footer .footer-row { flex-wrap: wrap; }
  .site-footer .footer-row .footer-nav { order: 3; width: 100%; }
  .site-footer .footer-row .footer-nav ul { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .contact-map-map { padding: 0 var(--gutter) 48px; height: 340px; }
  .contact-map-map .map-marker { left: 50%; top: 50%; }

  /* Footer mobile – jeden kolumnowy layout, bez wychodzenia poza ekran */
  .site-footer .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .site-footer .footer-row .footer-nav { order: 3; width: 100%; }
  .site-footer .footer-row .footer-nav ul { flex-wrap: wrap; white-space: normal; gap: 6px 16px; }
  .footer-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }
  .footer-right .footer-contact-list li { white-space: normal; }
  .footer-badges { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .footer-badge { width: 120px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-ontom { align-self: flex-start; }
}

/* --- kontakt w szerokości kontenera, jak pozostałe sekcje --- */
.contact-map { display: block; }
.contact-map-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(48px, 6vw, 88px);
}
.contact-map-form, .contact-map-map { padding: 0; display: block; }
.contact-map-form-inner { max-width: none; }
.contact-map-map iframe { max-width: none; }
.contact-map-map .map-marker { left: 50%; }
@media (max-width: 768px) {
  .contact-map-inner { grid-template-columns: 1fr; }
  .contact-map-map { padding: 0; height: 340px; }
}

/* --- ZESPÓŁ: pełna szerokość, równe karty, ciemny kolor tylko na hoverze, logo KIDP bez okręgu --- */
.team-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  max-width: none;
}
.team-card { height: 100%; }
.team-card-inner { height: 100%; padding: 40px 32px 36px; }
.team-card-logo {
  width: auto; height: auto;
  border-radius: 0; background: none;
  padding: 0; overflow: visible;
  margin-bottom: 28px;
}
.team-card-logo img {
  width: 180px; height: auto; max-width: 100%;
  border-radius: 8px;
}
.team-card-nr { margin-top: auto; }
@media (max-width: 768px) {
  .team-cards { grid-template-columns: 1fr; max-width: none; }
}
.team-card-logo { position: relative; }
.team-card-logo img { width: 150px; border-radius: 0; transition: opacity .3s var(--ease); }
.team-card-logo .kidp-light { position: absolute; inset: 0; opacity: 0; }
.team-card:hover .kidp-dark { opacity: 0; }
.team-card:hover .kidp-light { opacity: 1; }

/* =========================================================
   ULEPSZENIA WIZUALNE — czcionki, animacje, kolory
   ========================================================= */
/* --- Nagłówki z czcionką display --- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.8rem, 5.2vw, 4.5rem); line-height: 1.0; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.1; }

/* --- Animacje wejścia — rozszerzone warianty --- */
.reveal-up    { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-left  { opacity: 0; transform: translateX(-32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(32px);  transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-scale { opacity: 0; transform: scale(.93);        transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-up.is-visible, .reveal-left.is-visible, .reveal-right.is-visible, .reveal-scale.is-visible {
  opacity: 1; transform: none;
}

/* --- Stagger dzieci (karty, listy) --- */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children > *:nth-child(6) { transition-delay: 400ms; }

/* --- Eyebrow animowany — podkreślenie rośnie --- */
.eyebrow-anim {
  position: relative;
  display: inline-block;
}
.eyebrow-anim::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  height: 1.5px;
  width: 0;
  background: var(--copper-600);
  transition: width .6s var(--ease);
}
.is-visible .eyebrow-anim::after,
.eyebrow-anim.is-visible::after { width: 100%; }

/* --- Float na ikonach step --- */
@keyframes float {
  0%, 100% { transform: translateY(50%); }
  50%       { transform: translateY(calc(50% - 5px)); }
}
.step-icon { animation: float 3.5s ease-in-out infinite; }
.step:nth-child(2) .step-icon { animation-delay: .5s; }
.step:nth-child(3) .step-icon { animation-delay: 1s; }
.step:nth-child(4) .step-icon { animation-delay: 1.5s; }
/* --- Karty team — delikatniejszy hover --- */
.team-card {
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  border: 1px solid transparent;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(15,27,51,.14), 0 2px 8px rgba(163,92,43,.1);
  border-color: rgba(163,92,43,.2);
}

/* --- Przycisk CTA — pulse ring --- */
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: .5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.btn-primary {
  position: relative;
  overflow: visible;
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1.5px solid var(--copper-500);
  animation: pulse-ring 2.2s var(--ease) infinite;
  pointer-events: none;
}
.btn-primary:hover::after { animation: none; }

/* Wyłącz animację pulse-ring w drawerach (powoduje poziomy scrollbar) */
.svc-drawer .btn-primary::after,
.news-drawer .btn-primary::after { animation: none; content: none; }

/* --- Formularz kontaktowy — focus ring ładniejszy --- */
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--copper-400);
  box-shadow: 0 0 0 3px rgba(163,92,43,.12);
  outline: none;
}

/* --- Scroll progress indicator --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px;
  background: var(--copper-gradient);
  background-size: 100% auto;
  width: 0%;
  max-width: 100%;
  transition: width .1s linear;
  will-change: width;
  contain: strict;
  transform: translateZ(0);
}
/* =========================================================
   SEKCJA AKTUALNOŚCI
   ========================================================= */

.news-section { background: var(--white); }

.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.news-head h2 { margin-bottom: 10px; }
.news-head .section-intro { margin-top: 12px; max-width: 520px; color: var(--text-muted); }

.news-all-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600; color: var(--navy-800);
  text-decoration: none; white-space: nowrap;
  flex-shrink: 0; padding-bottom: 2px;
  border-bottom: 1.5px solid var(--navy-800);
  transition: color .2s, border-color .2s;
}
.news-all-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.news-all-link:hover { color: var(--copper-600); border-color: var(--copper-600); }
.news-all-link:hover svg { transform: translateX(4px); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
}

.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.news-card:hover {
  box-shadow: 0 8px 32px rgba(15,27,51,.10);
  transform: translateY(-4px);
}

.news-card-img-wrap {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.news-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.news-card:hover .news-card-img-wrap img { transform: scale(1.04); }

.news-card-body {
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
}
.news-card-meta time { color: var(--text-muted); }

.news-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--copper-600);
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy-800);
  font-family: var(--font-sans);
}
.news-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}
.news-card h3 a:hover { color: var(--copper-600); }

.news-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.news-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600;
  color: var(--navy-800); text-decoration: none;
  margin-top: 4px;
  transition: color .2s;
}
.news-read-more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.news-read-more:hover { color: var(--copper-600); }
.news-read-more:hover svg { transform: translateX(4px); }

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-head { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid .news-card:last-child { display: none; }
}
.services-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 3.5vw, 48px);
}
.services-cta .btn svg {
  width: 18px; height: 18px;
  transition: transform .25s var(--ease);
}
.services-cta .btn:hover svg { transform: translateX(4px); }

/* =========================================================
   COOKIE BAR
   ========================================================= */
.cookie-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 500;
  background: var(--navy-900);
  color: rgba(255,255,255,.9);
  padding: clamp(16px, 2.5vw, 24px) 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}
.cookie-bar.is-visible {
  transform: translateY(0);
}
.cookie-bar[hidden] { display: none; }

.cookie-bar-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}
.cookie-bar-text { flex: 1; }
.cookie-bar-text p { margin: 0; font-size: .88rem; line-height: 1.5; }
.cookie-bar-text p + p { margin-top: 4px; color: rgba(255,255,255,.6); }
.cookie-bar-text a { color: var(--copper-300); text-decoration: underline; }
.cookie-bar-text a:hover { color: var(--copper-400); }

.cookie-bar-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn-reject {
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: rgba(255,255,255,.9);
}
.cookie-btn-reject:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.75);
  color: #fff;
}

@media (max-width: 768px) {
  .cookie-bar-inner { flex-direction: column; align-items: stretch; }
  .cookie-bar-actions { flex-direction: column; }
  .cookie-bar-actions .btn { width: 100%; }
}

/* Footer bottom — tekst + logo ontom */
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Tekst "Realizacja:" przy logo Ontom */
.footer-ontom-label {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  align-self: center;
}

/* Logo Ontom w stopce */
.footer-ontom {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.footer-ontom img {
  height: 28px;
  width: auto;
  opacity: 0.55;
  transition: opacity .2s;
  filter: brightness(0) invert(1);
}
.footer-ontom:hover img { opacity: 1; }

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy-500, #6b7a99);
  padding: 2px 4px;
  border-radius: 3px;
  transition: color .2s;
}

.lang-btn[aria-pressed="true"] {
  color: var(--white); background: var(--copper-600); border-radius: 4px;
}
.lang-btn:hover { color: var(--copper); }
.lang-sep {
  font-size: .75rem;
  color: var(--navy-300, #b0bcd4);
  line-height: 1;
}
@media (max-width: 768px) {
  .lang-toggle { margin-right: 4px; }
  .lang-btn { font-size: .75rem; padding: 2px 3px; }
  .lang-btn[aria-pressed="true"] { color: #fff; }
}

/* ===== SUBPAGE SHARED ===== */

/* Header – always white on subpages (body.subpage) */
body.subpage .site-header .header-bar {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 16px rgba(10,25,60,.10);
}
body.subpage .site-header .main-nav a:not(.btn) { color: var(--navy-900); }
body.subpage .site-header .main-nav a.is-active { color: var(--copper); }
body.subpage .site-header .main-nav a:not(.btn):hover { color: var(--copper); }

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0 0;
  font-size: .82rem;
  color: var(--navy-400, #8899bb);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--copper); }
.breadcrumb span { margin: 0 6px; opacity: .5; }

/* Breadcrumb inside hero – white */
.subpage-hero .breadcrumb { color: rgba(255,255,255,.65); }
.subpage-hero .breadcrumb a { color: rgba(255,255,255,.65); }
.subpage-hero .breadcrumb a:hover { color: #e8b87a; }

/* Subpage hero */
.subpage-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  padding: clamp(130px, 16vw, 200px) 0 clamp(72px, 10vw, 120px);
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
  z-index: 0;
}
.subpage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8,18,48,.78) 0%, rgba(8,18,48,.55) 55%, rgba(8,18,48,.20) 100%);
  z-index: 0;
}
.subpage-hero .container { position: relative; z-index: 2; }
.subpage-hero .eyebrow {
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #e8b87a;
  font-weight: 600;
  margin-bottom: 12px;
}
.subpage-hero h1 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.subpage-hero p,
.subpage-hero .hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.92);
  max-width: 580px;
  line-height: 1.7;
}
.subpage-hero-badges {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.subpage-hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
}
.subpage-hero-badge svg {
  width: 20px;
  height: 20px;
  stroke: #b56a35;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

/* --- Wyrównanie kart zespołu: stała wysokość logo --- */
.team-card-inner {
  display: flex;
  flex-direction: column;
}
.team-card-logo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.team-card-logo img {
  max-height: 100%;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

/* Nadtytuły sekcji jako nagłówki (semantyka dla wyszukiwarek/AI) – wygląd identyczny jak <p class="eyebrow"> */
h2.eyebrow { line-height: inherit; text-wrap: wrap; }
.process h2.eyebrow { max-width: none; margin-bottom: 12px; }
