/* ============================================================
   Kancelaria adw. Bogdana Słupska-Uczkiewicz — Wrocław / ETPC
   Art direction: chłodna jasna baza, navy + złoto, charakter
   "dokumentowy" — ostre promienie, cienkie linie, serif display.
   Fonts: Cormorant Garamond (display) + Archivo (body)
   ============================================================ */
:root {
  --bg: #f7f9fb;
  --bg-raise: #ffffff;
  --bg-tint: #edf1f6;
  --ink: #14202f;
  --ink-soft: #4a5768;
  --line: #d9e0e8;
  --navy: #0f2440;
  --navy-deep: #0a1a30;
  --navy-ink: #c7d3e2;      /* tekst pomocniczy na navy */
  --gold: #a8842c;
  --gold-dark: #8a6b1f;
  --gold-soft: #e9ddbd;
  --radius-card: 8px;
  --radius-input: 6px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
  --section-pad: clamp(72px, 10vw, 148px);
}

*, *::before, *::after { box-sizing: border-box; }

/* Ziarno — łamie cyfrową płaskość (fixed, nie łapie zdarzeń) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding: var(--section-pad) 0; }
.section-tint { background: var(--bg-tint); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy .muted, .section-navy .lead { color: var(--navy-ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.05; letter-spacing: -0.01em;
  margin: 0 0 0.5em; font-weight: 600;
  text-wrap: balance;
}
h2 em { font-style: italic; color: var(--gold-dark); }
.section-navy h2 em { color: var(--gold-soft); }
.display { font-size: clamp(2.7rem, 7vw, 5.2rem); font-weight: 500; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.95rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.6rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 64ch; }
.muted { color: var(--ink-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.section-navy .eyebrow { color: var(--gold-soft); }
.section-navy .eyebrow::before { background: var(--gold); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 30px;
  border-radius: var(--radius-input); border: 1px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s, color 0.22s, border-color 0.22s;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(168, 132, 44, 0.28); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.section-navy .btn-outline, .hero .btn-outline.on-navy { color: #fff; border-color: rgba(255,255,255,0.55); }
.section-navy .btn-outline:hover, .hero .btn-outline.on-navy:hover { background: rgba(255,255,255,0.1); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 18px 0;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(15, 36, 64, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08), 0 12px 30px rgba(10, 26, 48, 0.25);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); }
.header-light .brand { color: var(--navy); }
.header-light .brand-sub { color: var(--gold-dark); }
.site-header.scrolled .brand { color: #fff; }
.site-header.scrolled .brand-sub { color: var(--gold-soft); }

.main-nav ul { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: rgba(255,255,255,0.88); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 8px 2px; position: relative;
}
.header-light:not(.scrolled) .main-nav a { color: var(--ink); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px;
  background: var(--gold); transition: right 0.3s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.main-nav a[aria-current="page"] { color: var(--gold-soft); }
.header-light:not(.scrolled) .main-nav a[aria-current="page"] { color: var(--gold-dark); }
.main-nav .nav-cta { margin-left: 6px; }
.main-nav .nav-cta a {
  border: 1px solid var(--gold); color: #fff; background: var(--gold);
  padding: 10px 20px; border-radius: var(--radius-input);
}
.main-nav .nav-cta a::after { display: none; }
.main-nav .nav-cta a:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.header-light:not(.scrolled) .main-nav .nav-cta a { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px;
  background: transparent; border: 0; cursor: pointer; z-index: 210;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; transition: transform 0.3s var(--ease), opacity 0.2s; }
.header-light:not(.scrolled) .nav-toggle span { background: var(--navy); }
.nav-toggle[aria-expanded="true"] span { background: #fff; }
.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); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0; background: var(--navy-deep);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
    z-index: 200;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 8px; text-align: center; }
  .main-nav a { font-family: var(--font-display); font-size: 1.7rem; color: #fff; padding: 10px 16px; display: inline-block; }
  .main-nav a[aria-current="page"] { color: var(--gold-soft); }
  .main-nav .nav-cta { margin: 18px 0 0; }
  .main-nav .nav-cta a { font-family: var(--font-body); font-size: 1.05rem; padding: 14px 30px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, var(--navy-deep) 0%, var(--navy) 62%, #16325a 100%);
  color: #fff;
  padding: clamp(150px, 20vw, 220px) 0 clamp(80px, 11vw, 150px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 82% 8%, rgba(168, 132, 44, 0.16), transparent 65%),
    radial-gradient(560px 420px at 8% 96%, rgba(70, 110, 165, 0.22), transparent 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 100% 96px;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
}
.hero .container { position: relative; }
.hero-ghost {
  position: absolute; right: -2vw; bottom: -0.18em; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(5rem, 16vw, 15rem); line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(233, 221, 189, 0.13);
}
@media (max-width: 720px) { .hero-ghost { font-size: 4.6rem; right: -6vw; } }
.hero-kicker { color: var(--gold-soft); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .lead { color: var(--navy-ink); margin: 22px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 30px; font-size: 0.9rem; color: rgba(199, 211, 226, 0.75); display: flex; align-items: center; gap: 10px; }
.hero-note svg { flex: none; }

/* Sekwencyjny reveal linii hero */
.line-reveal { display: block; overflow: hidden; }
.line-reveal > span { display: block; transform: translateY(110%); animation: lineUp 0.9s var(--ease) forwards; }
.line-reveal:nth-child(2) > span { animation-delay: 0.12s; }
.line-reveal:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes lineUp { to { transform: translateY(0); } }

/* ---------- Trust band (count-up) ---------- */
.trust-band { background: var(--navy-deep); color: #fff; padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid rgba(255,255,255,0.08); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 40px); }
.trust-item { border-left: 1px solid rgba(255,255,255,0.14); padding-left: clamp(14px, 2vw, 24px); }
.stat-value { font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 500; color: var(--gold-soft); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.86rem; color: var(--navy-ink); margin-top: 8px; line-height: 1.45; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Asymetryczna siatka usług — pierwsza karta wyróżniona, bez trzech równych wież */
.grid-feature {
  display: grid; gap: clamp(14px, 1.8vw, 22px);
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
}
.grid-feature > :first-child { grid-row: 1 / 3; }
@media (max-width: 900px) { .grid-feature { grid-template-columns: 1fr; grid-template-rows: none; } .grid-feature > :first-child { grid-row: auto; } }
.card.card-featured { background: var(--navy); color: #fff; border-color: var(--navy); display: flex; flex-direction: column; }
.card.card-featured .muted { color: var(--navy-ink); }
.card.card-featured .icon { border-color: var(--gold); color: var(--gold-soft); }
.card.card-featured .card-more { color: var(--gold-soft); margin-top: auto; padding-top: 18px; }
.card.card-featured:hover { border-color: var(--gold); box-shadow: 0 22px 48px rgba(10, 26, 48, 0.35); }

.card {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 36px);
  position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 36, 64, 0.12); border-color: #c6d1de; }
/* Reflektor pod kursorem (JS ustawia --mx/--my; tylko fine pointer) */
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(260px 260px at var(--mx, 50%) var(--my, 50%), rgba(168, 132, 44, 0.09), transparent 70%);
  transition: opacity 0.35s;
}
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 16px; }
.card .icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: var(--radius-input); color: var(--gold-dark);
}
.card-link { text-decoration: none; display: block; color: inherit; }
.card-more { color: var(--gold-dark); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover .card-more { gap: 10px; }
.card-more::after { content: "→"; transition: inherit; }

/* ---------- Sekcja 3,5 m² ---------- */
.dignity { position: relative; }
.dignity-figure {
  position: relative; aspect-ratio: 1 / 1; max-width: 380px; margin: 0 auto;
  border: 1px dashed rgba(255,255,255,0.4); border-radius: 4px;
  display: grid; place-items: center;
}
.dignity-figure::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 62%; height: 62%; border: 1px solid var(--gold); border-radius: 2px;
  background: rgba(168, 132, 44, 0.08);
}
.dignity-value { position: relative; z-index: 1; text-align: center; }
.dignity-value strong { display: block; font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 500; color: var(--gold-soft); line-height: 1; }
.dignity-value span { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-ink); }

/* ---------- Oś procedury ETPC (signature moment) ---------- */
.etpc-steps { position: relative; max-width: 760px; margin: 0 auto; padding-left: clamp(34px, 5vw, 56px); }
.etpc-line {
  position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line); border-radius: 2px;
}
.etpc-line::before {
  content: ""; position: absolute; inset: 0; transform-origin: top;
  transform: scaleY(var(--progress, 0));
  background: linear-gradient(var(--gold), var(--gold-dark)); border-radius: inherit;
}
.etpc-step { position: relative; padding: 0 0 clamp(36px, 5vw, 56px); }
.etpc-step:last-child { padding-bottom: 0; }
.etpc-step::before {
  content: ""; position: absolute; left: calc(-1 * clamp(34px, 5vw, 56px) + 4px); top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line);
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.etpc-step.active::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 5px rgba(168, 132, 44, 0.16); }
.etpc-step-num {
  font-family: var(--font-display); font-style: italic; font-size: 1.5rem; font-weight: 500;
  letter-spacing: 0.05em; color: var(--gold-dark);
}
.etpc-step h3 { margin: 6px 0 8px; }
.etpc-step p { color: var(--ink-soft); max-width: 58ch; margin: 0; }

/* ---------- O mnie / lista wyróżnień ---------- */
.merits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.merits li { position: relative; padding-left: 24px; }
.merits li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px;
  background: var(--gold); border-radius: 1px; transform: rotate(45deg);
}

.placeholder-box {
  border: 1.5px dashed var(--gold); background: rgba(168, 132, 44, 0.06);
  border-radius: var(--radius-card); padding: 20px 22px;
  color: var(--gold-dark); font-size: 0.95rem; font-weight: 500;
}
.photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius-card);
  border: 1.5px dashed var(--gold); background: linear-gradient(160deg, var(--bg-tint), #e3e9f1);
  display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--gold-dark); font-weight: 500;
}

/* ---------- FAQ — otwarta lista dwukolumnowa (nie akordeon) ---------- */
.faq { max-width: 980px; margin: 0 auto; }
.faq-item {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(14px, 3vw, 48px);
  padding: clamp(24px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); margin: 0; }
.faq-item p { color: var(--ink-soft); margin: 0; max-width: 58ch; }
@media (max-width: 720px) { .faq-item { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-final .lead { margin: 0 auto 32px; }
.cta-final .hero-actions { justify-content: center; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.location-card { border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; margin-bottom: 26px; }
.location-card h3 { margin-bottom: 4px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 15px; min-height: 50px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-input);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168, 132, 44, 0.16); }
.form-field .field-error { display: none; color: #a13333; font-size: 0.85rem; margin-top: 6px; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #a13333; }
.form-field.invalid .field-error { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-input); font-size: 0.95rem; }
.form-status.success { display: block; background: #e6f1e8; color: #22532c; border: 1px solid #bcd9c2; }
.form-status.error { display: block; background: #f7e7e7; color: #7c2626; border: 1px solid #e3bcbc; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--navy-ink); padding: clamp(48px, 7vw, 80px) 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 42px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--navy-ink); text-decoration: none; padding: 2px 0; display: inline-block; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: 0.83rem; color: rgba(199, 211, 226, 0.7);
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 1px; background: var(--navy-deep);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px rgba(10, 26, 48, 0.25);
  transform: translateY(100%); transition: transform 0.35s var(--ease);
}
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.mobile-cta .m-call { background: var(--navy); color: #fff; }
.mobile-cta .m-contact { background: var(--gold); color: #fff; }
@media (max-width: 880px) { .mobile-cta { display: flex; } body { padding-bottom: 0; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 250;
  max-width: 460px; margin-inline: auto;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: 0 20px 50px rgba(15, 36, 64, 0.22);
  padding: 20px 22px; font-size: 0.9rem;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.cookie-banner.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.cookie-banner p { margin: 0 0 14px; color: var(--ink-soft); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 44px; padding: 9px 18px; font-size: 0.9rem; }
@media (max-width: 880px) { .cookie-banner { bottom: calc(70px + env(safe-area-inset-bottom)); } }

/* ---------- Breadcrumbs / page header ---------- */
.page-head {
  background: linear-gradient(168deg, var(--navy-deep), var(--navy));
  color: #fff; padding: clamp(130px, 17vw, 190px) 0 clamp(48px, 7vw, 84px);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 380px at 85% 0%, rgba(168, 132, 44, 0.14), transparent 65%);
}
.page-head .container { position: relative; }
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head .lead { color: var(--navy-ink); margin-bottom: 0; }
.breadcrumbs { font-size: 0.85rem; color: rgba(199, 211, 226, 0.75); margin-bottom: 18px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-soft); }
.breadcrumbs span[aria-current] { color: var(--gold-soft); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Prose (polityka prywatności) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- 404 ---------- */
.err-page { min-height: 100svh; display: grid; place-items: center; background: var(--navy-deep); color: #fff; text-align: center; padding: 40px 20px; }
.err-code { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 11rem); line-height: 1; color: var(--gold-soft); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .line-reveal > span { transform: none; animation: none; }
  .etpc-line::before { transform: scaleY(1); }
}
