/* ── FONTY SELF-HOSTED (OFL, subset latin + PL) ── */
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-italic-500.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}

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

:root {
  /* ── PALETA (wg notatek klientki) ── */
  --ink:        #252525;
  --ink-2:      #1d1d1d;
  --cream:      #fef8f3;
  --white:      #ffffff;
  --gold:       #C89B3C;

  /* pochodne */
  --ink-soft:   rgba(37,37,37,.66);
  --ink-faint:  rgba(37,37,37,.45);
  --cream-soft: rgba(254,248,243,.64);
  --cream-faint:rgba(254,248,243,.40);
  --line:       rgba(37,37,37,.10);
  --line-d:     rgba(254,248,243,.14);
  --gold-soft:  rgba(200,155,60,.45);
  --gold-tint:  rgba(200,155,60,.10);
  --gold-glow:  rgba(200,155,60,.16);

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans:  "Manrope", sans-serif;

  --r-btn:   100px;
  --r-card:  18px;
  --r-input: 12px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-card: 0 20px 50px -18px rgba(37,37,37,.16);
  --pad-x: clamp(24px, 5vw, 64px);
}

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
::selection { background: var(--gold); color: var(--ink); }
section { scroll-margin-top: 66px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1240px; margin: 0 auto; }

/* ────────────────── PASEK POSTĘPU ────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), #e0bb6a);
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}

/* ────────────────── NAV ────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(254,248,243,0);   /* krem z zerową alfą - bez czarnego błysku przy animacji do .scrolled */
  border-bottom: 1px solid rgba(37,37,37,0);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x); height: 76px;
  transition: background .35s var(--ease), border-color .35s, box-shadow .35s, height .35s;
}
#nav.scrolled {
  background: rgba(254,248,243,.7);   /* prawie kremowe - ciemne hero nie prześwituje */
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px -16px rgba(37,37,37,.14);
  height: 66px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  display: inline-flex; align-items: baseline;
  white-space: nowrap; letter-spacing: 0;
  transition: color .25s var(--ease);
}
/* ukryte litery rozwijają się: "N·P" → "Natalia Pocztowska" */
.nav-logo .lg-rest {
  display: inline-block; overflow: hidden;
  white-space: pre; max-width: 0; opacity: 0;
  transition: max-width .55s var(--ease), opacity .4s var(--ease);
}
.nav-logo .lg-p { margin-left: -.3em; transition: margin-left .55s var(--ease); }
#nav.scrolled .nav-logo { color: var(--ink); }
#nav.scrolled .nav-logo .lg-p { margin-left: 0; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  position: relative;
  font-size: .74rem; font-weight: 600; color: var(--cream-soft);
  text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; padding: 8px 13px;
  transition: color .25s var(--ease);
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute;
  left: 0px;
  right: 0;
  bottom: -1px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--gold); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
#nav.scrolled .nav-links a:not(.nav-cta) { color: var(--ink); }
#nav.scrolled .nav-links a:not(.nav-cta):hover { color: var(--gold); }

.nav-cta {
  background: var(--cream); color: var(--ink) !important;
  border-radius: var(--r-btn);
  padding: 11px 24px !important;
  margin-left: 12px;
  font-weight: 700 !important;
  transition: background .25s, color .25s, transform .2s var(--ease);
}
/* przebij specyficzność .nav-links a (transition: color), by tło też animowało */
.nav-links a.nav-cta { transition: background .25s var(--ease), color .25s, transform .2s var(--ease); }
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; transform: translateY(-1px); }
#nav.scrolled .nav-cta { background: var(--ink); color: var(--cream) !important; }
#nav.scrolled .nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

/* ── ROZWIJANE MENU "OFERTA" ── */
.nav-drop-wrap { position: relative; }
/* przycisk udaje pozostałe pozycje menu (te są linkami) */
.nav-drop-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--cream-soft); padding: 8px 13px;
  transition: color .25s var(--ease);
}
.nav-drop-toggle::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
#nav.scrolled .nav-drop-toggle { color: var(--ink); }
.nav-drop-wrap:hover .nav-drop-toggle,
.nav-drop-wrap.open .nav-drop-toggle { color: var(--gold); }
.nav-drop-wrap:hover .nav-drop-toggle::after,
.nav-drop-wrap.open .nav-drop-toggle::after { transform: scaleX(1); }
.nav-drop-toggle svg { transition: transform .25s var(--ease); }
.nav-drop-wrap.open .nav-drop-toggle svg { transform: rotate(180deg); }

.nav-drop {
  position: absolute; top: 100%; right: 0;
  min-width: 248px; list-style: none;
  margin-top: 10px; padding: 8px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(37,37,37,.35);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
}
/* mostek pod paskiem nawigacji - kursor nie gubi hovera w przerwie */
.nav-drop::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
/* jedyne źródło stanu: klasa .open (ustawia JS dla hover, klawiatury i dotyku) */
.nav-drop-wrap.open .nav-drop {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s;
}
.nav-links .nav-drop a {
  display: block; padding: 11px 14px; border-radius: 9px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  text-transform: none; color: var(--ink) !important;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links .nav-drop a::after { display: none; }
.nav-links .nav-drop a:hover { background: var(--gold-tint); color: var(--gold) !important; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
  background: none; border: none;
}
.nav-burger span {
  width: 22px; height: 2px; background: var(--cream);
  border-radius: 2px; display: block;
  transition: all .3s var(--ease);
}
#nav.scrolled .nav-burger span, #nav.menu-open .nav-burger span { background: var(--cream); }
#nav.scrolled:not(.menu-open) .nav-burger span { background: var(--ink); }
#nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
#nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#nav.menu-open { background: var(--ink); border-bottom-color: var(--line-d); }
#nav.menu-open .nav-logo { color: var(--cream); }

/* ────────────────── HERO (CIEMNA) ────────────────── */
#hero {
  min-height: 100svh;
  background: var(--ink);
  display: flex; align-items: center;
  padding: 120px var(--pad-x) 80px;
  position: relative; overflow: hidden;
}
.hero-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}
.hero-glow {
  position: absolute; right: -14%; top: -22%;
  width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--gold-glow), transparent 64%);
  pointer-events: none;
  animation: glowDrift 14s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, 50px) scale(1.08); }
}
.hero-ring {
  position: absolute; right: 6%; bottom: -16%;
  width: 520px; height: 520px; border-radius: 50%;
  pointer-events: none;
}
.hero-ring::before {
  content: ""; position: absolute; inset: 56px;
  border-radius: 50%; border: 1px solid rgba(200,155,60,.18);
}
.hero-vline {
  position: absolute; left: 50%; top: 0;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--line-d) 30%, var(--line-d) 70%, transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid; grid-template-columns: 1.05fr .82fr;
  gap: clamp(40px, 5vw, 84px); align-items: center;
  position: relative; z-index: 1; width: 100%;
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 640px; }

.hero-photo { position: relative; z-index: 1; }
.hero-photo::before {
  content: ""; position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-card);
  z-index: 0;
}
.hero-photo picture, .omnie-photo-wrap picture { display: block; }
.hero-photo img {
  position: relative; z-index: 1; display: block;
  width: 100%; height: 58svh;
  min-height: 560px;
  object-fit: cover; object-position: center 75%;
  border-radius: var(--r-card);
  box-shadow: 0 36px 80px -28px rgba(0,0,0,.7);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-d);
  background: rgba(254,248,243,.04);
  border-radius: 100px; padding: 8px 18px;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream-soft);
  margin-bottom: 30px;
}
.hero-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  box-shadow: 0 0 10px 2px rgba(200,155,60,.5);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8vw, 6.6rem);
  font-weight: 500; line-height: .61;
  color: var(--cream);
  margin-bottom: 20px;
}
.hero-name em {
  font-style: normal; font-weight: 500;
  background: linear-gradient(105deg, var(--cream) 30%, #e8c886 55%, var(--cream) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
.hero-title {
  display: flex; align-items: center; gap: 16px;
  font-size: clamp(.78rem, 1.3vw, .9rem);
  font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: .26em;
  margin-bottom: 26px;
}
.hero-title::before { content: ""; width: 44px; height: 1px; background: var(--gold-soft); }
.hero-desc {
  font-size: clamp(1.02rem, 1.4vw, 1.14rem); line-height: 1.75;
  color: var(--cream-soft);
  max-width: 560px; margin-bottom: 38px;
  font-weight: 400;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: var(--cream);
  font-family: var(--sans);
  font-size: .76rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; text-decoration: none;
  padding: 18px 38px; border-radius: var(--r-btn);
  border: 1px solid var(--ink); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .2s var(--ease), box-shadow .25s !important;
}
.btn-primary:hover {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(200,155,60,.5);
}
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

/* przyciski na ciemnych sekcjach → jasny wariant */
#hero .btn-primary, #sub-hero .btn-primary, #cta-section .btn-primary {
  background: var(--cream); color: var(--ink); border-color: var(--cream);
}
#hero .btn-primary:hover, #sub-hero .btn-primary:hover, #cta-section .btn-primary:hover {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
}

.hero-features {
  display: flex; gap: 10px; margin-top: 36px;
  flex-wrap: wrap;
}
.hero-feat {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; color: var(--cream-soft);
  font-weight: 500; letter-spacing: .02em;
  border: 1px solid var(--line-d);
  border-radius: 100px; padding: 9px 18px;
  transition: border-color .3s, color .3s;
}
.hero-feat-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--cream-faint); z-index: 1;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
/* wstrzymaj nieskończone animacje hero, gdy poza ekranem (oszczędza renderowanie) */
#hero.anim-paused .hero-glow,
#hero.anim-paused .hero-name em,
#hero.anim-paused .hero-scroll::after { animation-play-state: paused; }

/* animacja wejścia hero */
.hero-up { opacity: 0; transform: translateY(28px); animation: heroUp .9s var(--ease) forwards; filter: blur(8px); }

.hero-up.d1 {
  animation-delay: .1s;
}

.hero-up.d2 {
  animation-delay: .22s;
}
.hero-up.d3 { animation-delay: .34s; } .hero-up.d4 { animation-delay: .46s; }
.hero-up.d5 { animation-delay: .58s; } .hero-up.d6 { animation-delay: .72s; }
@keyframes heroUp { to { opacity: 1; transform: none; filter: blur(0); } }

/* ────────────────── ETYKIETY / TYTUŁY ────────────────── */
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::after {
  content: ""; width: 44px; height: 1px; background: var(--gold-soft);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3.3rem);
  font-weight: 600; color: var(--ink);
  line-height: 1.1; letter-spacing: 0;
  text-wrap: balance;
}

/* ────────────────── WYRÓŻNIKI (JASNA – KREM) ────────────────── */
#wspolpraca { background: var(--cream); padding: 120px var(--pad-x); }
.wyrozniki-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 56px;
}
.wyroznik {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 40px 32px;
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .35s, transform .35s var(--ease);
}
.wyroznik::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), #e0bb6a);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.wyroznik-icon {
  width: 52px; height: 52px;
  background: var(--gold-tint);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: background .3s, transform .3s var(--ease);
}
.wyroznik-icon svg { stroke: var(--ink); }
.wyroznik-title {
  font-family: var(--serif);
  font-size: 1.3rem; font-weight: 600;
  color: var(--ink); margin-bottom: 11px; line-height: 1.25;
}
.wyroznik-desc { font-size: .86rem; color: var(--ink-soft); line-height: 1.7; }

/* ────────────────── PROCES (CIEMNA) ────────────────── */
#proces { padding: 120px var(--pad-x); background: var(--ink); position: relative; overflow: hidden; }
#proces::after {
  content: ""; position: absolute; left: -10%; bottom: -40%;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 65%);
  pointer-events: none;
}
#proces .section-title { color: var(--cream); }
.proces-head { max-width: 580px; margin-bottom: 80px; }
.proces-head p { font-size: .98rem; color: var(--cream-soft); margin-top: 20px; line-height: 1.8; }

.proces-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 32px; position: relative; z-index: 1;
}
.step-item {
  position: relative;
  border-top: 1px solid var(--line-d);
  padding-top: 30px;
}
.step-item::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.step-num {
  font-family: var(--serif);
  font-size: 2.6rem; font-weight: 500; font-style: italic;
  line-height: 1; color: var(--gold);
  opacity: .85; margin-bottom: 20px;
  transition: opacity .3s;
}
.step-title-s { font-size: .92rem; font-weight: 700; color: var(--cream); margin-bottom: 10px; line-height: 1.4; }
.step-desc-s { font-size: .8rem; color: var(--cream-soft); line-height: 1.7; }

/* ────────────────── OFERTA (JASNA – KREM) ────────────────── */
#oferta { padding: 120px var(--pad-x); background: var(--cream); }
.oferta-head { max-width: 640px; margin-bottom: 64px; }
.oferta-head p { font-size: .98rem; color: var(--ink-soft); margin-top: 20px; line-height: 1.75; }

.oferta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.oferta-card {
  position: relative;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 40px 36px;
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .35s, transform .35s var(--ease);
  cursor: default;
}
.oferta-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), #e0bb6a);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.oferta-icon {
  width: 54px; height: 54px;
  background: var(--gold-tint);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
  transition: transform .3s var(--ease);
}
.oferta-icon svg { stroke: var(--ink); }
.oferta-card-title {
  font-family: var(--serif);
  font-size: 1.45rem; font-weight: 600; color: var(--ink);
  margin-bottom: 20px; line-height: 1.2;
}
.oferta-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.oferta-list li {
  font-size: .86rem; color: var(--ink-soft); line-height: 1.55;
  display: flex; align-items: baseline; gap: 11px;
}
.oferta-list li::before {
  content: "\2713"; color: var(--gold); font-size: .8rem; font-weight: 700;
  flex-shrink: 0; line-height: 1.55;
}
.oferta-list a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--gold-soft);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.oferta-list a:hover { color: var(--gold); border-color: var(--gold); }

/* ────────────────── DLA KOGO (CIEMNA) ────────────────── */
#klienci { padding: 120px var(--pad-x); background: var(--ink); position: relative; overflow: hidden; }
#klienci::before {
  content: ""; position: absolute; right: -12%; top: -30%;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 65%);
  pointer-events: none;
}
#klienci .section-title { color: var(--cream); }
.dla-kogo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; position: relative; z-index: 1; }

/* karta indywidualna → jasna na ciemnym tle */
.kogo-card {
  background: var(--cream); border: 1px solid transparent;
  border-radius: 24px; padding: 54px 48px;
  transition: transform .35s var(--ease), box-shadow .3s;
}
.kogo-title {
  font-family: var(--serif);
  font-size: 1.85rem; font-weight: 600; color: var(--ink);
  margin-bottom: 16px;
}
.kogo-desc { font-size: .94rem; color: var(--ink-soft); line-height: 1.8; }
.kogo-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.kogo-tag {
  background: var(--gold-tint); border: 1px solid rgba(200,155,60,.25); border-radius: 100px;
  font-size: .74rem; font-weight: 600; color: var(--ink);
  padding: 6px 16px;
  transition: border-color .25s, background .25s;
}

/* karta firmowa → konturowa na ciemnym tle */
.kogo-card.dark {
  background: rgba(254,248,243,.03); border-color: var(--line-d);
}
.kogo-card.dark .kogo-title { color: var(--cream); }
.kogo-card.dark .kogo-desc { color: var(--cream-soft); }
.kogo-card.dark .kogo-tag {
  background: transparent; border-color: var(--gold-soft); color: var(--cream-soft); transition: none;
}

/* ────────────────── O MNIE (JASNA – KREM) ────────────────── */
#o-mnie { padding: 120px var(--pad-x); background: var(--cream); }
.omnie-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.omnie-photo-wrap { position: relative; }
.omnie-photo-wrap::before {
  content: ""; position: absolute;
  left: -20px; top: -20px; right: 20px; bottom: 20px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-card);
  z-index: 0;
}
.omnie-photo-placeholder {
  position: relative; z-index: 1; display: block;
  width: 100%; height: auto; aspect-ratio: 4/5;
  object-fit: cover; object-position: center top;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.omnie-photo-placeholder svg { stroke: rgba(37,37,37,.28); }
.omnie-photo-placeholder span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(37,37,37,.4); font-weight: 600; }
.omnie-badge {
  position: absolute; bottom: -22px; right: -22px; z-index: 2;
  background: var(--ink); color: var(--cream);
  border-radius: 16px; padding: 24px 30px;
  text-align: center;
  box-shadow: 0 18px 40px -14px rgba(37,37,37,.45);
}
.omnie-badge-num { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; line-height: 1; color: var(--cream); }
.omnie-badge-label { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 7px; }

.omnie-text .section-title { margin-bottom: 32px; }
.omnie-para { font-size: .96rem; color: var(--ink-soft); line-height: 1.9; margin-bottom: 20px; }

/* ────────────────── CTA (CIEMNA) ────────────────── */
#cta-section {
  background: var(--ink); padding: 130px var(--pad-x);
  text-align: center; position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 880px; height: 880px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 60%);
  pointer-events: none;
}
.cta-line { width: 60px; height: 1px; background: var(--gold-soft); margin: 0 auto; }
.cta-line.top { margin-bottom: 56px; }
.cta-line.bottom { margin-top: 56px; }
#cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 600; color: var(--cream);
  margin-bottom: 46px; letter-spacing: 0; line-height: 1.15;
  position: relative; text-wrap: balance;
}
#cta-section p { font-size: 1rem; color: var(--cream-soft); margin-bottom: 46px; position: relative; }

/* ────────────────── KONTAKT (JASNA – KREM) ────────────────── */
#kontakt { padding: 120px var(--pad-x); background: var(--white); }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(48px, 7vw, 90px); align-items: start; }

.kontakt-left .section-title { margin-bottom: 20px; }
.kontakt-left > p { font-size: .94rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 46px; }

.kontakt-details { display: flex; flex-direction: column; gap: 14px; }
.k-item {
  display: flex; gap: 18px; align-items: center;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 22px;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.k-item:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 14px 34px -18px rgba(37,37,37,.18);
  transform: translateY(-2px);
}
.k-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--gold-tint); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.k-icon svg { stroke: var(--ink); }
.k-label { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.k-val { font-size: .92rem; color: var(--ink); font-weight: 500; line-height: 1.5; }
.k-val a { color: var(--ink); text-decoration: none; transition: color .2s; }
.k-val a:hover { color: var(--gold); }

/* Formularz */
.kontakt-form {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 24px; padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .9rem; padding: 14px 17px;
  outline: none; transition: border-color .25s, background .25s, box-shadow .25s;
  -webkit-appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-faint); }
/* iOS Safari zoomuje pola < 16px przy focusie — na dotyku wymuś 16px (bez blokowania zoomu) */

/* ══════════════════════════════════════════════════════════
   PODSTRONY OFERTY (np. /oferta/planowanie-finansowe)
   ══════════════════════════════════════════════════════════ */

/* ── HERO PODSTRONY (CIEMNY, niższy niż na stronie głównej) ── */
#sub-hero {
  background: var(--ink); position: relative; overflow: hidden;
  padding: 160px var(--pad-x) 110px;
}
#sub-hero .hero-noise, #sub-hero .hero-glow { position: absolute; }
.sub-hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(48px, 6vw, 88px); align-items: center;
  position: relative; z-index: 1;
}
.sub-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 600; color: var(--cream);
  line-height: 1.05; letter-spacing: 0;
  margin: 18px 0 26px; text-wrap: balance;
}
.sub-hero-lead {
  font-size: 1.02rem; line-height: 1.8; color: var(--cream-soft);
  max-width: 600px; margin-bottom: 40px;
}
.sub-hero-photo {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--line-d);
}
.sub-hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ── OKRUSZKI (breadcrumbs) ── */
.breadcrumb { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-faint); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.breadcrumb a { color: var(--cream-soft); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--cream-faint); }
.breadcrumb [aria-current="page"] { color: var(--gold); }

/* ── SEKCJA DWÓCH PYTAŃ (gdzie jesteś / dokąd chcesz dojść) ── */
#sytuacja { background: var(--cream); padding: 120px var(--pad-x); }
.sytuacja-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sytuacja-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 48px 40px;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.sytuacja-card h2 {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600; color: var(--ink); line-height: 1.15; margin-bottom: 20px;
}
.sytuacja-card p { font-size: .95rem; line-height: 1.8; color: var(--ink-soft); }

/* ── JAK WYGLĄDA PLAN (lista z gwiazdkami) ── */
#plan { background: var(--white); padding: 120px var(--pad-x); }
.plan-head p { font-size: .95rem; line-height: 1.8; color: var(--ink-soft); margin-top: 20px; }
/* nagłówek na całą szerokość, pod nim lista równorzędnych punktów
   rozdzielonych cienkimi liniami - bez kart i bez numeracji */
.plan-head { max-width: 640px; margin-bottom: 48px; }
.plan-list { list-style: none; border-bottom: 1px solid var(--line); }
.plan-list li {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 26px 0 26px 44px;
  font-size: 1.05rem; line-height: 1.7; color: var(--ink);
}
.plan-list li::before {
  content: ""; position: absolute; left: 2px; top: 31px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.plan-list li::after {
  content: ""; position: absolute; left: 8px; top: 37px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  transition: background .3s var(--ease);
}

/* ── NAJCZĘŚCIEJ SPOTYKAM SIĘ Z… ── */
#problemy { background: var(--cream); padding: 120px var(--pad-x); }
.problem-list { display: flex; flex-direction: column; gap: 24px; margin-top: 56px; }
.problem-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 44px 40px;
}
.problem-card h3 {
  font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600; color: var(--ink); line-height: 1.2; margin-bottom: 18px;
}
.problem-card p { font-size: .95rem; line-height: 1.8; color: var(--ink-soft); }
.problem-card p + p { margin-top: 16px; }
.problem-card.with-figure { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 4vw, 56px); align-items: center; }

/* ── INFOGRAFIKA: inflacja a wartość oszczędności ── */
.inflacja {
  background: var(--ink); border-radius: var(--r-card);
  padding: 38px 34px; color: var(--cream); margin: 0;
}
.inflacja-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.inflacja-year { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.inflacja-kwota { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1.1; }
.inflacja-kwota.now { color: var(--gold); }
.inflacja .inflacja-desc { font-size: .8rem; line-height: 1.6; color: var(--cream-soft); margin-top: 8px; }
.inflacja-bar { height: 8px; border-radius: 4px; background: rgba(254,248,243,.14); margin: 14px 0 4px; overflow: hidden; }
.inflacja-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), #e0bb6a); }
.inflacja-arrow { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: var(--gold-soft); }
.inflacja-arrow::before, .inflacja-arrow::after { content: ""; flex: 1; height: 1px; background: var(--line-d); }
.inflacja-arrow span { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.inflacja figcaption, figcaption.inflacja-caption {
  font-size: .76rem; line-height: 1.6; color: var(--ink-faint); margin-top: 14px;
}

/* ── FAQ (akordeon <details>) ── */
#faq { background: var(--cream); padding: 120px var(--pad-x); }
.faq-head { max-width: 640px; margin-bottom: 52px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: var(--gold-soft); box-shadow: var(--shadow-card); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 30px; cursor: pointer; list-style: none;
  font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: inherit; color: inherit; margin: 0; }
.faq-item summary:hover { color: var(--gold); }
.faq-icon { flex-shrink: 0; position: relative; width: 16px; height: 16px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--gold); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after { width: 2px; height: 16px; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 30px 28px; font-size: .95rem; line-height: 1.8; color: var(--ink-soft); }
.faq-more { margin-top: 32px; font-size: .95rem; line-height: 1.8; color: var(--ink-soft); }
.faq-more a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-soft); transition: color .2s, border-color .2s; }
.faq-more a:hover { color: var(--ink); border-color: var(--ink); }

/* ── MOŻE CIĘ ZAINTERESOWAĆ ── */
#polecane { background: var(--cream); padding: 110px var(--pad-x); border-top: 1px solid var(--line); }
.polecane-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.polecane-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 36px 32px;
  text-decoration: none;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.polecane-card:hover {
  border-color: var(--gold-soft); box-shadow: var(--shadow-card); transform: translateY(-3px);
}
.polecane-card h3 {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600;
  color: var(--ink); line-height: 1.2;
}
.polecane-card p { font-size: .9rem; line-height: 1.7; color: var(--ink-soft); }
.polecane-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 9px;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.polecane-card:hover .polecane-more svg { transform: translateX(4px); }
.polecane-more svg { transition: transform .25s var(--ease); }

/* ══════════════════════════════════════════════════════════
   DOKUMENTY (polityka prywatności, regulamin)
   ══════════════════════════════════════════════════════════ */
.doc-header {
  background: var(--ink); color: var(--cream);
  padding: clamp(130px,13vw,170px) var(--pad-x) clamp(48px,6vw,72px);
  position: relative; overflow: hidden;
}
.doc-header::after {
  content: ''; position: absolute; right: -10%; top: -40%;
  width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 65%); pointer-events: none;
}
.doc-header .wrap { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.doc-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; display: flex; align-items: center; gap: 14px;
}
.doc-eyebrow::after { content: ''; width: 44px; height: 1px; background: var(--gold-soft); }
.doc-header h1 {
  font-family: var(--serif); font-weight: 600; line-height: 1.08;
  font-size: clamp(2.2rem,4.5vw,3.4rem); letter-spacing: 0; text-wrap: balance;
}
.doc-header p { color: var(--cream-soft); margin-top: 20px; max-width: 620px; }

.doc-body { max-width: 820px; margin: 0 auto; padding: clamp(56px,7vw,80px) var(--pad-x) clamp(72px,9vw,110px); }
.doc-section { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.doc-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.doc-section h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem,2.4vw,2rem);
  line-height: 1.2; margin-bottom: 18px; display: flex; gap: 16px; align-items: baseline;
}
.doc-section h2 .num {
  font-style: italic; font-weight: 500; color: var(--gold); font-size: .85em; flex-shrink: 0;
}
.doc-section p { color: var(--ink-soft); margin-bottom: 14px; }
.doc-section p strong { color: var(--ink); font-weight: 600; }
.doc-section a { color: var(--gold); text-decoration: none; transition: color .2s; }
.doc-section a:hover { color: var(--ink); }
.doc-lead { font-size: 1.05rem; color: var(--ink-soft); }
.doc-section ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 18px; }
.doc-section li {
  color: var(--ink-soft); display: flex; align-items: baseline; gap: 12px; line-height: 1.6;
}
.doc-section li::before { content: '\2713'; color: var(--gold); font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.doc-note { font-size: .82rem; color: var(--ink-faint); margin-top: 8px; }

/* ══════════════════════════════════════════════════════════
   HOVER TYLKO DLA MYSZY

   Karty i "chipy" poniżej to <div>/<span> - nie da się w nie kliknąć.
   Na dotyku ich podniesienie i złota obwódka udawały przycisk, a stan
   :hover zostawał "przyklejony" po tapnięciu. Dlatego cała dekoracja
   siedzi za zapytaniem o możliwości wskaźnika, a nie za szerokością
   ekranu (myszka w wąskim oknie ma hover, tablet w poziomie nie ma).

   Elementy naprawdę klikalne (<a>, <button>, <summary>) mają swoje
   :hover przy regułach bazowych - tych nie ruszamy.
   ══════════════════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  .flip-animate:hover span { transform: rotate(360deg); }

  .hero-feat:hover { border-color: var(--gold-soft); color: var(--cream); }

  .wyroznik:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--gold-soft);
  }
  .wyroznik:hover::before { transform: scaleX(1); }
  .wyroznik:hover .wyroznik-icon { transform: scale(1.06); }

  .step-item:hover::before { transform: scaleX(1); }
  .step-item:hover .step-num { opacity: 1; }

  .oferta-card:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--gold-soft);
  }
  .oferta-card:hover::before { transform: scaleX(1); }
  .oferta-card:hover .oferta-icon { transform: scale(1.06); }

  .kogo-card:hover { box-shadow: 0 24px 60px -24px rgba(0,0,0,.5); }
  .kogo-tag:hover { border-color: var(--gold); }
  .kogo-card.dark:hover { border-color: var(--gold-soft); }

  .sytuacja-card:hover {
    border-color: var(--gold-soft);
    box-shadow: var(--shadow-card);
  }
}

/* Reakcja na tapnięcie tam, gdzie kliknięcie faktycznie coś robi
   (obie karty to <a>) - na dotyku zastępuje brakujący hover. */
.polecane-card:active, .k-item:active { transform: scale(.985); }

@media (pointer: coarse) {
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; }
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--gold-tint);
}
.form-group textarea { resize: none; height: 130px; }
.form-group select { cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; padding-right: 42px; }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.6px solid var(--ink-faint); border-bottom: 1.6px solid var(--ink-faint);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form-checkbox { display: flex; gap: 12px; align-items: flex-start; }
.form-checkbox input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; accent-color: var(--gold); cursor: pointer; }
.form-checkbox label { font-size: .78rem; color: var(--ink-soft); line-height: 1.55; cursor: pointer; }
.form-checkbox label a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--gold-soft); transition: color .2s, text-decoration-color .2s; }
.form-checkbox label a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.form-status { font-size: .82rem; line-height: 1.5; }
.form-status:empty { display: none; }   /* pusty komunikat nie zajmuje miejsca (slot gap) */
.form-status.ok  { color: #2e7d4f; font-weight: 600; }
.form-status.err { color: #b3392f; font-weight: 600; }
.form-status.err a { color: #b3392f; }
/* kontener niewidzialnego reCAPTCHA: wyjęty z układu (bez slotu flex gap),
   ale wciąż renderowany w naturalnym rozmiarze - inaczej grecaptcha.execute() nie zadziała */
#recaptchaInvisible { position: absolute; }
/* ukryj domyślny pływający znaczek reCAPTCHA - zamiast niego pokazujemy notkę (zgodnie z ToS Google).
   display:none zamiast visibility:hidden - znaczek to fixed, 256px, wystaje poza prawą krawędź
   i na mobile powodował poziomy scroll (visibility:hidden zostawia box w układzie). */
.grecaptcha-badge { display: none !important; }
.recaptcha-note { font-size: .68rem; line-height: 1.5; color: var(--ink-faint); margin-top: -2px; }
.recaptcha-note a { color: var(--ink-faint); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--gold-soft); transition: color .2s; }
.recaptcha-note a:hover { color: var(--gold); }

/* ────────────────── FOOTER (CIEMNA) ────────────────── */
footer {
  background: var(--ink-2); color: var(--cream-faint);
  padding: 20px var(--pad-x);
  border-top: 1px solid var(--line-d);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
}
.footer-logo { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--cream); }
.footer-logo span { font-weight: 500; color: var(--gold); }
.footer-copy { font-size: .75rem;  color: var(--cream-soft); }
.footer-links { display: flex; gap: 26px; }
footer a { font-size: .75rem; color: var(--cream-soft); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--gold); }

/* "Flip the Script" - podpis robi obrót o pół obrotu (wzór: projekt Cicho Sza) */
.flip-animate span { display: inline-block; transition: transform .8s var(--ease); }
.flip-animate:focus-visible span { transform: rotate(360deg); }

/* ────────────────── SCROLL FADE ────────────────── */
.fade-up {
  opacity: 0; transform: translateY(26px);
  filter: blur(8px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .5s;
  transition-delay: var(--d, 0s);
}
.fade-up.visible { opacity: 1; transform: none; filter: blur(0); }
/* po wejściu fade-up oddaj kontrolę transition kartom (hover box-shadow .3s) */
.wyroznik.fade-up.visible, .oferta-card.fade-up.visible {
  transition: box-shadow .3s var(--ease), border-color .35s, transform .35s var(--ease), filter .5s;
}
.sytuacja-card.fade-up.visible, .polecane-card.fade-up.visible {
  transition: box-shadow .45s var(--ease), border-color .35s, transform .35s var(--ease), filter .5s;
}
.kogo-card.fade-up.visible { transition: box-shadow .3s, border-color .35s, transform .35s var(--ease), filter .5s; }
.kontakt-form.fade-up.visible { transition: box-shadow .3s var(--ease), filter .5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .fade-up, .hero-up { opacity: 1; transform: none; filter: blur(0); }
}

/* ── FOUT: ukryj serif + wstrzymaj wejście hero do załadowania fontów ── */
.fonts-loading .nav-logo,
.fonts-loading .nav-links,
.fonts-loading .footer-logo { visibility: hidden; }
.fonts-loading .hero-up { animation-play-state: paused; }

/* ────────────────── RESPONSIVE ────────────────── */
@media (max-width: 1100px) {
  .polecane-grid { grid-template-columns: 1fr; }
  .wyrozniki-grid { grid-template-columns: 1fr 1fr; }
  .proces-steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .oferta-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-d);
    padding: 18px var(--pad-x) 28px; gap: 2px;
    box-shadow: 0 30px 50px -20px rgba(0,0,0,.45);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease), visibility 0s linear .25s;
  }
  #nav.scrolled .nav-links { top: 66px; }
  .nav-links.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform .25s var(--ease), opacity .25s var(--ease), visibility 0s;
  }
  /* styl pozycji stały (nie tylko .open) — bez przeskoku układu podczas zamykania */
  .nav-links a:not(.nav-cta) { display: block; color: var(--cream) !important; padding: 13px 4px; border-bottom: 1px solid var(--line-d); }
  .nav-links > li:last-child a { margin: 18px 0 0; text-align: center; display: block; }
  .nav-links .nav-cta { background: var(--cream); color: var(--ink) !important; }

  /* "Oferta" jako akordeon wewnątrz menu mobilnego */
  .nav-drop-wrap { display: block; }
  .nav-drop-toggle {
    display: flex; width: 100%; justify-content: space-between;
    color: var(--cream); padding: 13px 4px;
    border-bottom: 1px solid var(--line-d);
  }
  .nav-drop-toggle::after { display: none; }
  #nav.scrolled .nav-drop-toggle { color: var(--cream); }
  .nav-drop {
    position: static; min-width: 0;
    margin: 0; padding: 0 0 0 14px;
    background: none; border: none; border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    overflow: hidden; max-height: 0;
    transition: max-height .28s var(--ease);
  }
  .nav-drop::before { display: none; }
  /* w trybie burgera akordeon otwiera wyłącznie klik w przycisk */
  .nav-drop-wrap.open .nav-drop { max-height: 420px; }
  .nav-links .nav-drop a {
    color: var(--cream-soft) !important; border-bottom: 1px solid var(--line-d);
    border-radius: 0; padding: 12px 4px;
  }
  .nav-drop > li:last-child a { border-bottom: none; }
  .nav-links .nav-drop a:hover { background: none; color: var(--gold) !important; }

  #hero { padding: 130px 24px 100px; }
  .hero-ring { display: none; }
  .hero-vline { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-inner { max-width: none; }
  .hero-photo { display: none; }
  #wspolpraca, #proces, #oferta, #klienci, #o-mnie, #kontakt { padding: 88px 24px; }
  #sytuacja, #plan, #problemy, #faq, #polecane { padding: 88px 24px; }
  #cta-section { padding: 100px 24px; }

  /* podstrony oferty */
  #sub-hero { padding: 120px 24px 80px; }
  .sub-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .sub-hero-photo { max-width: 440px; margin: 0 auto; }
  .sytuacja-grid { grid-template-columns: 1fr; }
  .sytuacja-card { padding: 38px 30px; }
  .plan-head { margin-bottom: 36px; }
  .problem-card { padding: 36px 30px; }
  .problem-card.with-figure { grid-template-columns: 1fr; }
  .inflacja { padding: 30px 26px; }
  .faq-item summary { padding: 22px 24px; font-size: .95rem; }
  .faq-answer { padding: 0 24px 24px; }

  .pj-card { max-width: 480px; }
  .dla-kogo-grid { grid-template-columns: 1fr; }
  .kogo-card { padding: 40px 30px; }
  .omnie-grid { grid-template-columns: 1fr; gap: 64px; }
  .omnie-photo-wrap { max-width: 440px; margin-left: auto; margin-right: auto; }
  .omnie-badge { bottom: -16px; right: -8px; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 56px; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; gap: 6px; }
  .footer-links { justify-content: center; }
}
@media (max-width: 600px) {
  .wyrozniki-grid { grid-template-columns: 1fr; }
  .oferta-grid { grid-template-columns: 1fr; }
  .proces-steps { grid-template-columns: 1fr; gap: 34px; }
  .hero-features { gap: 10px; }
  .hero-feat { padding: 8px 14px; font-size: .74rem; }
  .hero-scroll { display: none; }
}

/* ────────────────── DETALE (touch-up) ────────────────── */

/* Hero: kreska przy tytule rysuje się */
.hero-title::before {
  transform: scaleX(0); transform-origin: left;
  animation: lineDraw 1.1s var(--ease) .9s forwards;
}
@keyframes lineDraw { to { transform: scaleX(1); } }

/* Proces: punkty na linii, złota linia przechodzi krok po kroku po wejściu w kadr */
.step-item::after {
  content: ""; position: absolute; left: 0; top: -5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--gold-soft);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
/* wąskie układy (2 kolumny / 1 kolumna): każdy krok wypełnia własny odcinek */
@media (max-width: 1100px) {
  .proces-steps.in .step-item::before {
    transform: scaleX(1);
    transition: transform .6s var(--ease);
    transition-delay: calc(var(--i, 0) * .25s + .9s);
  }
  .proces-steps.in .step-item::after {
    background-color: var(--gold); border-color: var(--gold);
    transition: background-color .4s var(--ease) calc(var(--i, 0) * .25s + .9s), border-color .4s var(--ease) calc(var(--i, 0) * .25s + .9s);
  }
}
/* desktop: JEDNA ciągła linia na kontenerze (bez szwów między krokami),
   start po zakończeniu fade-up kroków; punkty zapalają się, gdy linia do nich dochodzi */
@media (min-width: 1101px) {
  .proces-steps::before, .proces-steps::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  }
  .proces-steps::before { background: var(--line-d); }
  .proces-steps::after {
    background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform 2.4s linear .9s;
    will-change: transform; pointer-events: none;
  }
  .proces-steps.in::after { transform: scaleX(1); }
  .step-item { border-top-color: transparent; }   /* linię bazową rysuje kontener - bez podwójnej kreski */
  .step-item::before { display: none; }   /* odcinek per krok zbędny - nie wyprzedza linii przy hover */
  .proces-steps.in .step-item::after {
    background-color: var(--gold); border-color: var(--gold);
    transition: background-color .4s var(--ease) calc(var(--i, 0) * .49s + .9s), border-color .4s var(--ease) calc(var(--i, 0) * .49s + .9s);
  }
}

/* Oferta: ikona rysuje się od nowa, strzałka przy linku */
@keyframes iconDraw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; stroke: var(--gold); }
  to   { stroke-dasharray: 1; stroke-dashoffset: 0; }
}
.oferta-list a { position: relative; }
.oferta-list a::after {
  content: "→"; position: absolute; left: 100%; top: 0; margin-left: 8px;   /* poza linkiem - nie wydłuża podkreślenia */
  color: var(--gold); opacity: 0; transform: translateX(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.oferta-list a:focus-visible::after { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  /* miękkie złote światło podąża za kursorem */
  .oferta-card:hover, .wyroznik:hover {
    background-image: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(200,155,60,.13), transparent 65%);
  }
  /* klasa .draw jest zdejmowana i nakładana w JS przy każdym najechaniu - animacja startuje od nowa */
  .draw .oferta-icon svg > *, .draw .wyroznik-icon svg > * { animation: iconDraw .9s var(--ease); }
  .oferta-list a:hover::after { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title::before { animation: none; transform: none; }
  .step-item::before, .step-item::after { transition-delay: 0s !important; }
}

/* ────────────────── PRZEJŚCIE MIĘDZY STRONAMI ──────────────────
   Cross-document View Transitions (Chrome/Edge 126+, Safari 18.2+).
   Starsze przeglądarki: zwykłe przejście, nic się nie psuje. */
@view-transition { navigation: auto; }
#nav { view-transition-name: site-nav; }   /* nawigacja stoi w miejscu, zmienia się tylko treść */
::view-transition { background: #252525; }   /* tło pod przenikaniem: ciemne (ink), nie białe */
::view-transition-old(root) { animation: vtOut .28s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vtIn .55s cubic-bezier(.22,.61,.36,1) .08s both; }
::view-transition-group(site-nav) { animation-duration: .4s; }
@keyframes vtOut { to   { opacity: 0; transform: translateY(-14px); } }
@keyframes vtIn  { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

@media (hover: hover) and (pointer: fine) {
  .plan-list li:hover::before { background: var(--gold); border-color: var(--gold); }
  .plan-list li:hover::after  { background: var(--white); }
}

/* FAQ: odpowiedź wsuwa się przy rozwijaniu; przy zwijaniu ikona i ramka wracają od razu */
.faq-item[open] .faq-answer { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }
.faq-item.is-closing .faq-answer { opacity: 0; transition: opacity .25s var(--ease); }
.faq-item[open].is-closing { border-color: var(--line); box-shadow: none; }
.faq-item[open].is-closing .faq-icon::after { transform: translate(-50%, -50%); opacity: 1; }

/* ══════════════════ MOBILE (usprawnienia) ══════════════════ */
.mbar { display: none; }

@media (min-width: 961px) {
  .hero-layout {
    display: grid; grid-template-columns: 1.05fr .82fr;
    column-gap: clamp(40px, 5vw, 84px); row-gap: 36px;
  }
  .hero-layout .hero-grid { display: contents; }
  .hero-layout .hero-inner { align-self: end; }
  .hero-layout .hero-photo { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .hero-layout .hero-features { grid-column: 1; margin-top: 0; align-self: start; }
}

@media (max-width: 960px) {
  /* 1. Hero: zdjęcie po prawej nad nazwiskiem, z ramką jak na desktopie (wcześniej ukryte) */
  #hero { padding: 0; }
  /* Zdjęcie zajmuje miejsce pozostałe nad tekstem i przyciskiem. */
  .hero-photo {
    display: block; order: -1;
    height: 100%; max-height: 300px; aspect-ratio: 4 / 5;
    width: auto; max-width: 64%; margin-left: auto; margin-right: 12px;
    align-self: end; min-height: 0;
  }
  .hero-photo::before { inset: 12px -12px -12px 12px; }
  .hero-photo img {
    height: 100%; width: 100%; max-width: 100%;
    min-height: 0; aspect-ratio: 4 / 5;
    object-position: center 30%;
    box-shadow: 0 24px 50px -22px rgba(0,0,0,.7);
  }
  .hero-grid {
    height: 100svh; min-height: min-content;
    grid-template-rows: minmax(96px, 1fr) auto; gap: 32px;
    padding: 104px 24px 32px;
  }
  .hero-layout .hero-features { margin: 0; padding: 24px 24px 40px; }
  #hero .btn-primary, #sub-hero .btn-primary {
    width: 100%; justify-content: center; padding-inline: 20px;
    white-space: nowrap;
  }
  #hero .btn-primary svg, #sub-hero .btn-primary svg { flex-shrink: 0; }

  /* 2. Przyklejony pasek kontaktu */
  .mbar {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(29,29,29,.92);
    -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
    border-top: 1px solid var(--line-d);
    transform: translateY(110%); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
  }
  .mbar.show { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
  .mbar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 48px; border-radius: var(--r-btn);
    font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    text-decoration: none;
  }
  .mbar-call { flex: 0 0 38%; color: var(--cream); border: 1px solid var(--gold-soft); }
  .mbar-call svg { color: var(--gold); }
  .mbar-cta { flex: 1; background: var(--cream); color: var(--ink); }
  .mbar a:active { transform: scale(.98); }
}

@media (max-width: 600px) {
  /* 3. Oferta: zwijane karty (klasa .acc nadawana przez JS - bez JS wszystko rozwinięte) */
  .oferta-grid { gap: 12px; }
  .oferta-card { padding: 20px 22px; }
  .oferta-card.acc {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: center;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .oferta-card.acc .oferta-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
  .oferta-card.acc .oferta-card-title {
    margin: 0; font-size: 1.28rem;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
  }
  .oferta-card.acc .oferta-card-title::after {
    content: "+"; flex-shrink: 0;
    font-family: var(--sans); font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--gold);
    transition: transform .35s var(--ease);
  }
  .oferta-card.acc.open .oferta-card-title::after { transform: rotate(45deg); }
  .oferta-card.acc .oferta-list {
    grid-column: 1 / -1;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .42s var(--ease), opacity .3s var(--ease), margin-top .42s var(--ease);
  }
  .oferta-card.acc.open .oferta-list { opacity: 1; margin-top: 18px; }
  .oferta-card.acc.open { border-color: var(--gold-soft); }

  /* 4. Wyróżniki: ikona po lewej, tekst po prawej */
  .wyrozniki-grid { gap: 12px; margin-top: 40px; }
  .wyroznik {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px;
    padding: 22px 20px; align-items: start;
  }
  .wyroznik-icon { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; margin: 0; }
  .wyroznik-title { margin-bottom: 6px; }

  /* 5. Proces: jedna pionowa oś po lewej, kroki obok */
  .proces-head { margin-bottom: 48px; }
  .proces-steps { gap: 0; padding-left: 34px; }
  .proces-steps::before, .proces-steps::after {
    content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 1px;
  }
  .proces-steps::before { background: var(--line-d); }
  .proces-steps::after {
    background: var(--gold);
    transform: scaleY(0); transform-origin: top;
    transition: transform 2.4s linear .9s; pointer-events: none;
  }
  .proces-steps.in::after { transform: scaleY(1); }
  .step-item { border-top: none; padding: 0 0 34px; }
  .step-item:last-child { padding-bottom: 0; }
  .step-item::before { display: none; }
  .step-item::after { left: -34px; top: 6px; }
  .proces-steps.in .step-item::after {
    transition: background-color .4s var(--ease) calc(var(--i, 0) * .49s + .9s), border-color .4s var(--ease) calc(var(--i, 0) * .49s + .9s);
  }
  .step-num { font-size: 2rem; margin-bottom: 10px; }
}

/* ── Podstrona: hero mieści się dokładnie w jednym ekranie ── */
#sub-hero { min-height: 100svh; display: flex; align-items: center; }
#sub-hero > .wrap { width: 100%; }
@media (min-width: 961px) {
  #sub-hero { padding-top: 130px; padding-bottom: 70px; }
  /* zdjęcie dopasowuje wysokość do ekranu zamiast go rozpychać */
  .sub-hero-photo { height: clamp(380px, calc(100svh - 200px), 733px); }
  .sub-hero-photo img { object-position: center 20%; }
}
@media (max-width: 960px) {
  /* telefon/tablet: tekst i przycisk wyśrodkowane w pionie, bez zdjęcia */
  #sub-hero { padding: 104px 24px 40px; }
  .sub-hero-photo { display: none; }
}

@media (max-width: 960px) and (max-height: 600px) {
  .hero-grid { grid-template-rows: 1fr; padding-top: 96px; }
  .hero-photo { display: none; }
  .hero-inner { display: flex; flex-direction: column; height: 100%; }
  .hero-inner > .d5 { margin-top: auto; }
}

@media (max-width: 360px) {
  #hero .btn-primary, #sub-hero .btn-primary { padding-inline: 12px; gap: 8px; }
}

@media (max-width: 340px) {
  #hero .btn-primary, #sub-hero .btn-primary { font-size: .7rem; letter-spacing: .1em; }
}

@media (max-width: 360px) and (max-height: 700px) {
  #sub-hero { padding-top: 96px; padding-bottom: 24px; }
  #sub-hero .breadcrumb { font-size: .65rem; }
  .sub-hero-title { font-size: 2.2rem; margin: 12px 0 16px; }
  .sub-hero-lead { font-size: .9rem; line-height: 1.55; margin-bottom: 24px; }
}

/* "O mnie": zarezerwuj miejsce na leniwie ładowane zdjęcie. Bez jawnej szerokości
   kontener z marginesami auto kurczył się do 0 przed załadowaniem obrazka, a po
   załadowaniu sekcja rosła o ~500px - przewijanie do #kontakt kończyło się za wysoko. */
.omnie-photo-wrap { width: 100%; }
