/* Układ wzorowany na roksanalipinska.pl: dzielone tło hero z osobą w centrum, panorama miasta linią,
   naprzemienne pasy tekst + zdjęcie, wyraźne etykiety sekcji, przyciski-pigułki.
   Kolory: jasny beż i jasna szałwiowa zieleń tylko jako tło. Mocniejsza zieleń wyłącznie na akcenty. */
:root {
  --page: #fffdfa;
  --white: #ffffff;
  --beige: #f7f2ea;
  --beige-2: #efe6d8;
  --sage: #ebf2ec;
  --sage-2: #dde9df;
  --green: #3d7255;
  --green-dark: #2c5841;
  --forest: #1c3428;
  --ink: #1f2722;
  --text: #39423c;
  --stone: #66706a;
  --hair: #e4ded3;
  --error: #a3271b;
  --font: Lato, "Helvetica Neue", Arial, sans-serif;
  --r: 18px;
  --head-h: 76px;
  /* nazwy używane przez panel.css */
  --bg: var(--beige);
  --paper: var(--white);
  --line: var(--hair);
  --sans: var(--font);
  /* kolory pochodne: w jasnym trybie takie jak dotąd, w ciemnym nadpisane niżej */
  --on-green: #ffffff;
  --head-bg: rgba(255, 253, 250, .86);
  --page-0: rgba(255, 253, 250, 0);
  --tel-bg: rgba(255, 255, 255, .92);
  --bar-bg: rgba(235, 242, 236, .94);
  --input-line: #d6cfc2;
  --flag-warn: #fff4d6;
  --flag-bad: #fbe6e2;
  --map-online: #a9c7b2;
  --fig-edge: #86a993;
  --fig-mid: #bccfc2;
  --fig-lo: #e1eae3;
  --city-filter: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 5.6vw, 3.25rem); font-weight: 900; line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.005em; }
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.lead { font-size: 1.125rem; line-height: 1.6; }
.muted { color: var(--stone); }

/* Etykieta sekcji: wersaliki z kwadratowym znacznikiem, jak nagłówki sekcji we wzorze */
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; background: currentColor; margin-right: 10px; vertical-align: 1px; }

/* ---------- Nagłówek ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--head-bg); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--hair); transition: background-color .25s, border-color .25s; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--head-h); max-width: 1320px; }
/* Na stronie głównej nagłówek leży przezroczysty na hero, dopóki nie przewiniesz (klasę .at-top dodaje skrypt) */
.site-head.over.at-top { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { font-size: 1.1875rem; font-weight: 900; line-height: 1.1; color: var(--ink); text-decoration: none; }
.brand small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav a:hover { color: var(--green); }
.nav a[aria-current] { color: var(--green); }
.menu { display: none; }
@media (max-width: 759px) { :root { --head-h: 64px; } }

@media (max-width: 1099px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border: 1.5px solid var(--green); border-radius: 999px; padding: 8px 18px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 48px)); background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); padding: 8px; box-shadow: 0 24px 48px -24px rgba(31, 39, 34, .25); max-height: calc(100vh - var(--head-h) - 16px); max-height: calc(100svh - var(--head-h) - 16px); overflow-y: auto; overscroll-behavior: contain; transform-origin: top right; animation: menu-in .2s cubic-bezier(.2, .8, .2, 1); }
  .menu-panel a { display: block; padding: 12px 14px; color: var(--ink); border-radius: 10px; text-decoration: none; }
  .menu-panel a:hover { background: var(--sage); }
  .menu-panel .tel { color: var(--green); font-weight: 700; }
  .menu-panel .btn { display: flex; margin-top: 6px; color: var(--on-green); }
  .menu-panel .btn:hover { background: var(--green-dark); }
}
/* Rozwijane „Kalkulatory” w menu na komputerze (otwiera się po najechaniu albo Tabem) */
.drop { position: relative; }
.drop-btn { background: none; border: 0; padding: 8px 0; font: 700 13px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.drop-btn::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 2px 3px 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.drop:hover .drop-btn, .drop:focus-within .drop-btn, .drop:has([aria-current]) .drop-btn { color: var(--green); }
.drop-panel { position: absolute; left: 50%; top: calc(100% + 10px); width: max-content; padding: 8px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: 0 24px 48px -24px rgba(31, 39, 34, .25); opacity: 0; visibility: hidden; transform: translate(-50%, -4px); transition: opacity .15s, transform .15s, visibility 0s .15s; }
.drop-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.drop:hover .drop-panel, .drop:focus-within .drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .15s, transform .15s; }
.nav .drop-panel a { display: block; padding: 11px 14px; border-radius: 10px; font-size: 15px; letter-spacing: 0; text-transform: none; text-decoration: none; }
.nav .drop-panel a:hover { background: var(--sage); }
@keyframes menu-in { from { opacity: 0; transform: scale(.96); } }

/* ---------- Przyciski: pigułki z wersalikami ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; background: var(--green); color: var(--on-green); font: 700 13.5px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 12px 26px; border: 1.5px solid var(--green); border-radius: 999px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .1s ease-out; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--on-green); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); border-color: var(--green); color: var(--on-green); }
.nav .btn { min-height: 0; padding: 9px 20px; font-size: 12px; color: var(--on-green); }
.nav .btn:hover { color: var(--on-green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.link-arrow::after { content: "\00a0\2192"; }

/* ---------- Hero: dzielone tło (beż | szałwia), Piotr na środku, panorama Poznania linią ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-top: 0; padding-bottom: 0; }
.site-head.over ~ main .hero { margin-top: calc(-1 * var(--head-h) - 1px); padding-top: calc(var(--head-h) + 1px); }
.hero h1 { font-weight: 300; line-height: 1.1; letter-spacing: .01em; margin: 0; }
.hero h1 span { display: block; font-weight: 900; line-height: 1.02; letter-spacing: -0.012em; }
.hero .sub { font-weight: 300; letter-spacing: .02em; color: var(--ink); }
.hero .sub strong { color: var(--green); }
.hero-lead, .hero-start { border-left: 3px solid var(--green); padding-left: 16px; font-size: 15px; line-height: 1.6; }
.hero-start strong { color: var(--green); }
.hero-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--tel-bg); border: 1.5px solid rgba(61, 114, 85, .35); color: var(--green-dark); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .2s, transform .1s ease-out; }
.hero-tel:hover { border-color: var(--green); color: var(--green-dark); }
.hero-tel:active { transform: scale(.97); }
.hero-tel svg { flex: none; color: var(--green); }
.hero-scene { position: relative; }
.hero-city { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; min-width: 900px; max-width: none; z-index: 0; }
.hero-person { position: relative; z-index: 1; }
.hero-stats { list-style: none; margin: 0; padding: 0; }
.hero-stats li { line-height: 1.3; color: var(--text); }
.hero-stats strong { display: block; font-weight: 900; line-height: 1.1; color: var(--green); }

/* Wejście strony: Piotr wyłania się z dołu, teksty wsuwają się z boków, przycisk na końcu */
@keyframes hero-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes hero-from-left { from { opacity: 0; transform: translateX(-18px); } }
@keyframes hero-from-right { from { opacity: 0; transform: translateX(18px); } }
@keyframes hero-fade { from { opacity: 0; } }
.hero-person { animation: hero-rise 1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-person { scale: -1 1; }   /* lustrzane odbicie: Piotr zwrócony do czytającego; osobna właściwość, żeby nie gryzła się z animacją transform */
.hero-city { animation: hero-fade 1.2s ease-out both; }
.hero-title { animation: hero-from-left .8s .25s cubic-bezier(.2, .8, .2, 1) both; }
.hero-stats { animation: hero-from-right .8s .35s cubic-bezier(.2, .8, .2, 1) both; }
.hero .btn-row { animation: hero-rise .7s .55s cubic-bezier(.2, .8, .2, 1) both; }
.hero-lead, .hero-start { animation: hero-fade .6s .6s ease-out both; }

/* Telefon i tablet: Piotr na środku, nagłówek z lewej i liczby z prawej, obok twarzy.
   Wymiary z wycięcia: głowa zajmuje 38,6–64,1% szerokości zdjęcia (środek 51,3%), od 6% do ok. 38% wysokości. */
@media (max-width: 1099px) {
  .hero {
    --pw: min(92vw, 510px);
    --side: clamp(16px, 4.2vw, 40px);
    --gap: calc(.128 * var(--pw) + 8px);
    --top: calc(.1 * var(--pw));   /* zdjęcie niżej, żeby napisy obok kończyły się nad ramionami, z zapasem na większą czcionkę */
    display: grid; grid-template-columns: 1fr 1fr; align-items: start;
    background: linear-gradient(90deg, var(--beige) 50%, var(--sage) 50%) top / 100% calc(var(--head-h) + 1px + var(--top) + 1.25 * var(--pw)) no-repeat, var(--page);
  }
  .hero-intro, .hero-side { display: contents; }
  .hero-scene { grid-row: 1; grid-column: 1 / -1; overflow: hidden; }
  .hero-person { display: block; width: var(--pw); max-width: none; height: auto; margin: var(--top) 0 0 50%; translate: -48.7% 0; }
  .hero-city { bottom: 12%; }
  /* dół zdjęcia łagodnie przechodzi w tło strony, pod przyciskiem */
  .hero-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 2; background: linear-gradient(var(--page-0), var(--page) 86%); }
  .hero-title, .hero-stats { grid-row: 1; position: relative; z-index: 3; margin-top: calc(.07 * var(--pw)); }
  .hero-title { grid-column: 1; padding: 0 var(--gap) 0 var(--side); }
  .hero h1 { font-size: clamp(1.0625rem, 4.6vw, 2rem); }
  .hero h1 span { font-size: clamp(1.375rem, 6vw, 2.75rem); }
  .hero .sub { font-size: clamp(.8125rem, 3.3vw, 1.125rem); line-height: 1.35; margin: 8px 0 0; }
  .hero-stats { grid-column: 2; padding: 0 var(--side) 0 var(--gap); text-align: right; }
  .hero-stats li { font-size: clamp(.6875rem, 2.9vw, .9375rem); border-right: 2px solid var(--green); padding-right: 10px; }
  .hero-stats li + li { margin-top: clamp(6px, 2vw, 14px); }
  .hero-stats strong { font-size: clamp(1.1875rem, 5.2vw, 2rem); }
  .hero .btn-row { grid-row: 1; grid-column: 1 / -1; align-self: end; justify-self: center; position: relative; z-index: 3; flex-direction: column; gap: 8px; margin-bottom: clamp(12px, 3.5vw, 28px); }
  .hero .btn-row .btn { box-shadow: 0 12px 28px -12px rgba(28, 52, 40, .6); }
  .hero-lead { grid-row: 2; grid-column: 1 / -1; margin: 12px var(--side) 0; max-width: 640px; }
  .hero-start { grid-row: 3; grid-column: 1 / -1; margin: 12px var(--side) 40px; max-width: 640px; }
}
/* Najwęższe telefony: podpis po lewej łamie się na trzy linie, więc zdjęcie jeszcze niżej */
@media (max-width: 349px) { .hero { --top: calc(.16 * var(--pw)); } }
/* Na niskich ekranach (np. iPhone SE) zmniejszamy zdjęcie, żeby przycisk zmieścił się na pierwszym ekranie */
@supports (height: 100svh) {
  @media (max-width: 1099px) {
    .hero { --pw: min(92vw, calc((100svh - var(--head-h) - 24px) * .63), 510px); }
  }
}

/* ---------- Sekcje ---------- */
section { padding: 72px 0; }
.band { background: var(--sage); }
.sand { background: var(--beige); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Karty */
.service, .steps li, .review, .aside-box, .form-card { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); }
.steps li, .service, .form-card { box-shadow: 0 1px 2px rgba(31, 39, 34, .04), 0 18px 40px -28px rgba(31, 39, 34, .22); }

/* O mnie: tekst z lewej, zdjęcie do krawędzi z prawej */
.about-band { padding: 0; background: var(--sage-2); display: grid; }
.about-text { padding: 72px 24px 56px; }
.about-text .btn { margin-top: 8px; }
.about-photo { min-height: 420px; }
.about-photo img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; object-position: center 22%; }

/* Usługi: karty z lewej, opis z prawej */
.services-grid { display: grid; gap: 40px; }
.services { display: grid; gap: 16px; }
.service { padding: 32px 24px; display: flex; flex-direction: column; }
.service h3 { font-size: 1.375rem; font-weight: 900; line-height: 1.2; margin-bottom: 12px; }
.service ul { margin: 0 0 28px; padding-left: 1.1em; }
.service li { margin-bottom: 8px; }
.service li::marker { color: var(--green); }
.service .link-arrow { margin-top: auto; }
.service .calc-link { margin-top: 12px; }
.others { margin-top: 24px; font-size: 15px; color: var(--stone); }
.others strong { color: var(--ink); }

/* Opinie: duża litera P w tle zdjęcia, cytaty obok */
.op-grid { display: grid; gap: 48px; align-items: center; }
.op-visual { position: relative; max-width: 540px; width: 100%; margin: 0 auto; padding: 34% 0 0 28%; }
/* Litera P: brzuszek wystaje nad zdjęciem, laseczka z lewej */
.op-visual::before { content: "P"; position: absolute; left: 2%; top: 0; font: 900 clamp(300px, 40vw, 560px)/.8 var(--font); color: var(--sage-2); z-index: 0; }
.op-visual img { position: relative; z-index: 1; border-radius: var(--r); width: 100%; box-shadow: 0 30px 60px -36px rgba(31, 39, 34, .45); }
.reviews { display: grid; gap: 16px; }
.review { margin: 0; padding: 24px 24px 24px 64px; position: relative; }
.review::before { content: "\201D"; position: absolute; left: 20px; top: 10px; font: 900 64px/1 var(--font); color: var(--green); }
.review p { margin-bottom: 12px; font-style: italic; }
.review footer { font-size: 14px; font-weight: 700; color: var(--ink); }
.review footer span { font-weight: 400; color: var(--stone); }
.review.featured p { font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.5; color: var(--ink); }
.stars { color: var(--green); letter-spacing: 2px; font-size: 14px; margin-bottom: 8px; }

/* Jak pracuję: pełny pas szałwii, karty schodzą na białe tło */
.steps-band { background: linear-gradient(var(--sage-2) 0 calc(100% - 140px), var(--page) 0); padding-bottom: 32px; }
.steps-band h2 { text-transform: uppercase; letter-spacing: .08em; font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
.steps-band .section-head { max-width: 980px; }
.steps-band .section-head p { font-size: 1.125rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; text-align: left; }
.steps li { padding: 28px 24px; }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font: 900 40px/1 var(--font); color: var(--sage-2); margin-bottom: 14px; }
.steps .when { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.steps h3 { margin: 0 0 8px; }
.steps p { margin: 0; }

/* Historia klienta: zdjęcie z lewej, tekst z prawej */
.story-grid { display: grid; gap: 40px; align-items: center; }
.story-photo img { border-radius: var(--r); width: 100%; max-width: 520px; }
.big-q { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; line-height: 1.2; color: var(--green); margin: 8px 0 0; }
.band.story { background: var(--sage-2); }
.story p { font-size: 1.0625rem; }

/* FAQ */
.faq-list { display: grid; gap: 0 48px; }
.faq-list > div { padding: 24px 0; border-top: 1px solid var(--hair); }
.faq-list h3 { margin-bottom: 8px; }
.faq-list p { margin: 0; color: var(--stone); }
.sand .faq-list > div, .band .faq-list > div { border-top-color: rgba(61, 114, 85, .18); }

/* Kontakt: dane z lewej, zaproszenie z prawej, panorama pod spodem */
.contact { padding-bottom: 0; overflow: hidden; }
.contact-cta { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-cta .btn-row { justify-content: center; }
/* Awatar: wycięte zdjęcie na kółku szałwii, kadr na twarz i ramiona */
.contact-cta p { font-size: 1.0625rem; }
.contact-city { width: 100%; min-width: 900px; max-width: none; margin-top: 56px; position: relative; left: 50%; transform: translateX(-50%); }

/* Zakończenie na podstronach: pas szałwii */
.cta-end { background: var(--sage-2); }
.cta-end .wrap { display: grid; gap: 8px 48px; align-items: end; }
.cta-end h2 { margin: 0; }
.cta-end p { margin: 0 0 16px; max-width: 34em; font-size: 1.125rem; }
.cta-end .btn { justify-self: start; }

/* ---------- Podstrony usług ---------- */
.crumbs { font-size: 13px; letter-spacing: .02em; color: var(--stone); padding-top: 24px; }
.crumbs a { color: var(--stone); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.photo { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--beige); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo.small { aspect-ratio: 1; max-width: 220px; border-radius: 50%; }
.page-hero { padding: 24px 0 72px; }
.page-hero.tight { padding-bottom: 24px; }
.page-hero .photo { max-width: 420px; justify-self: center; }
.page-hero .wrap.narrow { max-width: 1240px; }
.page-hero .wrap.narrow > * { max-width: 760px; }
.split { display: grid; gap: 40px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 18px 0 18px 36px; border-top: 1px solid rgba(61, 114, 85, .18); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.aside-box { padding: 32px 24px; }
.aside-box h3 { font-size: 1.5rem; font-weight: 900; line-height: 1.2; }
.flaws > div { padding: 24px 0; border-top: 1px solid var(--hair); }
.flaws > div:first-child { padding-top: 0; border-top: 0; }
.flaws h3 { margin-bottom: 8px; }
.flaws p { margin-bottom: .5em; }
.flaws p:last-child { margin-bottom: 0; }
.band .steps li::before { color: var(--sage-2); }

/* ---------- Stopka: głęboka zieleń ---------- */
footer.site { background: var(--forest); color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.6; padding: 64px 0 40px; }
footer.site a { color: rgba(255, 255, 255, .72); }
footer.site a:hover { color: #fff; }
footer.site strong { color: #fff; }
.foot-grid { display: grid; gap: 32px; margin-bottom: 40px; }
.foot-grid h4 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 12px; }
footer.site address { font-style: normal; }
footer.site .legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; margin: 0; font-size: 12px; color: rgba(255, 255, 255, .58); }
footer.site .wrap > address { margin-bottom: 1em; }

/* ---------- Landing /konsultacja ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; max-width: 1240px; margin: 0 auto; }
.top .brand { text-decoration: none; }
.top-tel { font-size: 15px; font-weight: 700; white-space: nowrap; }
.lp-hero { padding: 24px 0 32px; background: linear-gradient(var(--page), var(--beige)); }
.lp-hero h1 { font-size: clamp(2.125rem, 6vw, 3.25rem); line-height: 1.06; margin-bottom: 16px; }
.lp-hero p { margin: 0; max-width: 560px; font-size: 1.125rem; color: var(--stone); }
.form-card { padding: 28px 20px; max-width: 640px; margin: 0 auto; }
.progress { height: 4px; background: var(--sage-2); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s cubic-bezier(.2, .8, .2, 1); }
.step-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--stone); margin: 12px 0 8px; min-height: 28px; }
.back { background: none; border: 0; color: var(--green); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 4px 0; }
.back::before { content: "\2190\00a0"; }
.step { display: none; }
.step.active { display: block; }
.step legend, .step h2 { font-size: clamp(1.375rem, 4vw, 1.75rem); font-weight: 900; line-height: 1.2; color: var(--ink); padding: 0; margin: 0 0 20px; }
fieldset { border: 0; padding: 0; margin: 0; }
.tiles { display: grid; gap: 8px; }
.tile { width: 100%; min-height: 56px; text-align: left; background: var(--beige); border: 1px solid var(--hair); border-radius: 14px; padding: 16px; font: 700 16px/1.25 var(--font); color: var(--ink); cursor: pointer; transition: background-color .15s, box-shadow .15s, transform .1s ease-out; }
.tile:hover { box-shadow: inset 0 0 0 1px var(--green); }
.tile:active { transform: scale(.98); }
.tile.selected { background: var(--sage-2); box-shadow: inset 0 0 0 1.5px var(--green); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input[type=text], .field input[type=tel], .field input[type=email] { width: 100%; min-height: 52px; font: 400 16px/1.2 var(--font); padding: 14px 16px; border: 1px solid var(--input-line); border-radius: 12px; background: var(--white); color: var(--ink); }
.field input:focus { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); outline: none; }
.field .err { color: var(--error); font-size: 12px; display: none; margin-top: 6px; }
.field.invalid .err { display: block; }
.field.invalid input[type=text], .field.invalid input[type=tel], .field.invalid input[type=email] { border-color: var(--error); }
.field .check { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--stone); margin: 0; }
.check input { margin: 0; width: 20px; height: 20px; flex: none; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; margin-top: 8px; }
.form-error { color: var(--error); font-size: 14px; margin-top: 12px; display: none; }
.test-note { background: var(--sage); border-radius: 10px; padding: 10px 14px; font-size: 12px; color: var(--ink); margin-bottom: 16px; display: none; }
#calendly { min-height: 680px; margin-top: 16px; }
.lp-about { display: grid; gap: 24px; align-items: center; }
.lp-faq h3 { margin-top: 1.4em; }

/* Panel (/panel) */
.panel .panel-card { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); padding: 24px; }

/* ---------- Szersze ekrany ---------- */
@media (min-width: 760px) {
  section { padding: 104px 0; }
  .contact { padding-bottom: 0; }
  .lead { font-size: 1.25rem; }
  .services { grid-template-columns: 1fr 1fr; }
  .service { padding: 36px 28px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps.vertical { grid-template-columns: 1fr; gap: 8px; }
  .story-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .faq-list { grid-template-columns: 1fr 1fr; }
  .cta-end .wrap { grid-template-columns: 1fr auto; }
  .cta-end .btn { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-bottom: 16px; }
  .split { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
  .split-sticky > div:first-child { position: sticky; top: 100px; }
  .split > .aside-box { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 40px 32px; }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .form-card { padding: 40px; }
  .lp-about { grid-template-columns: 220px 1fr; }
  .review.featured { padding: 32px 32px 32px 76px; }
  .review.featured::before { left: 26px; top: 18px; }
}
@media (min-width: 900px) {
  .page-hero .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .about-band { grid-template-columns: 1fr 1fr; }
  .about-text { padding: 104px 64px 104px max(24px, calc(50vw - 620px)); align-self: center; }
  .about-photo { position: relative; min-height: 640px; }
  .about-photo img { position: absolute; inset: 0; max-height: none; }
  .services-grid { grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: center; }
  .services-grid .section-head { order: 2; margin: 0; }
  .op-grid { grid-template-columns: 1fr 1.15fr; gap: 72px; }
}
@media (min-width: 1100px) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 760px; padding-left: max(32px, calc(50% - 620px)); padding-right: max(32px, calc(50% - 620px)); background: linear-gradient(90deg, var(--beige) 50%, var(--sage) 50%); }
  .hero-intro { grid-column: 1; grid-row: 1; position: relative; z-index: 2; max-width: 330px; margin-top: 40px; }
  .hero h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 10px; }
  .hero h1 span { font-size: clamp(2.5rem, 4.6vw, 3.5rem); }
  .hero .sub { font-size: 1.125rem; margin: 0 0 24px; }
  .hero-lead { margin: 0 0 24px; }
  .hero-side { grid-column: 2; grid-row: 1; justify-self: end; position: relative; z-index: 2; max-width: 290px; margin-top: 90px; }
  .hero-stats { border-left: 3px solid var(--green); padding-left: 16px; margin-bottom: 18px; }
  .hero-stats li { font-size: 14px; }
  .hero-stats li + li { margin-top: 14px; }
  .hero-stats strong { font-size: 1.75rem; }
  .hero-start { border-left: 0; padding-left: 19px; margin: 0 0 12px; }
  .hero-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .hero-person { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: auto; height: min(680px, 52vw, calc(100% - 120px)); }
}
/* ---------- Film ---------- */
.reel { display: block; width: 100%; max-width: 340px; height: auto; aspect-ratio: 9 / 16; border-radius: var(--r); background: var(--forest); box-shadow: 0 30px 60px -36px rgba(31, 39, 34, .5); }

/* ---------- Zabezpieczenie rodziny ---------- */
.page-hero .reel { margin: 0 auto; }
.plan-cards .service ul { margin-bottom: 20px; }
.plan-note { margin: 24px 0 0; font-size: 13px; color: var(--stone); }
@media (min-width: 1100px) { .plan-cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Kalkulatory ---------- */
.calc { padding: 0 0 72px; }
.calc-bar { position: sticky; top: var(--head-h); z-index: 10; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; padding: 10px 24px; background: var(--bar-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--sage-2); font-size: 14px; line-height: 1.3; color: var(--ink); }
.calc-bar b { font-size: 1.25rem; font-weight: 900; color: var(--green); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-grid { display: grid; gap: 20px; align-items: start; }
.calc-form, .calc-out { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); padding: 24px 20px; box-shadow: 0 1px 2px rgba(31, 39, 34, .04), 0 18px 40px -28px rgba(31, 39, 34, .22); }
.q { border: 0; margin: 0; padding: 0; }
.q + .q { margin-top: 26px; }
.q-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.q label, .q legend { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.q legend { padding: 0; margin-bottom: 10px; }
.q output { font-size: 1.125rem; font-weight: 900; color: var(--green); white-space: nowrap; font-variant-numeric: tabular-nums; }
.q input[type=range] { display: block; width: 100%; height: 32px; margin: 0; accent-color: var(--green); cursor: pointer; }
.q .hint { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--stone); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--beige); border-radius: 16px; }
.seg label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border-radius: 12px; font-size: 14px; color: var(--text); text-align: center; cursor: pointer; transition: background-color .2s, color .2s; }
.seg small { font-size: 11.5px; font-weight: 400; line-height: 1.25; opacity: .85; }
.money { position: relative; }
.money input { width: 100%; min-height: 56px; padding: 12px 48px 12px 16px; font: 900 1.375rem/1.2 var(--font); color: var(--ink); border: 1px solid var(--input-line); border-radius: 12px; background: var(--white); font-variant-numeric: tabular-nums; }
.money input:focus { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); outline: none; }
.money span { position: absolute; right: 16px; top: 50%; translate: 0 -50%; font-weight: 700; color: var(--stone); pointer-events: none; }
.meter { height: 10px; margin: 16px 0 0; border-radius: 999px; background: var(--beige-2); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .3s cubic-bezier(.2, .8, .2, 1); }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--green); color: var(--on-green); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.calc-out h2 { font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--stone); margin: 0 0 6px; }
.calc-out h2 + .big { margin-top: 0; }
.big { font-size: clamp(2.5rem, 11vw, 3.25rem); font-weight: 900; line-height: 1; letter-spacing: -0.02em; color: var(--green); margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.big.second { font-size: clamp(2rem, 8vw, 2.5rem); color: var(--ink); }
.big-sub { font-size: 14px; color: var(--stone); margin: 0; }
.calc-rows { list-style: none; margin: 16px 0 24px; padding: 0; }
.calc-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.4; }
.calc-rows b { color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-rows .gap b { color: var(--error); }
.calc-out .btn { width: 100%; }
.calc-note { margin-top: 32px; font-size: 14px; line-height: 1.6; color: var(--stone); max-width: 760px; }
.calc-note h2 { font-size: 1.125rem; margin-bottom: 8px; }
@media (min-width: 900px) {
  .calc-bar { display: none; }
  .calc { padding-top: 8px; }
  .calc-grid { grid-template-columns: 1.1fr .9fr; gap: 32px; }
  .calc-form, .calc-out { padding: 32px; }
  .calc-out { position: sticky; top: calc(var(--head-h) + 24px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* bez ruchu, ale zmiany koloru i przezroczystości zostają, żeby było widać, co się dzieje */
  *, *::before, *::after { animation: none !important; transition-property: color, background-color, border-color, opacity, box-shadow !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-head { background: var(--page); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Menu: kalkulatory w grupach ---------- */
.drop-panel { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 8px; }
.drop-col { display: grid; align-content: start; }
.drop-label, .menu-label { display: block; padding: 12px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
@media (max-width: 1099px) {
  .menu .menu-sub summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 0; border-radius: 10px; font: 400 16px/1.65 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); }
  .menu .menu-sub summary::after { content: ""; width: 7px; height: 7px; margin: -4px 4px 0 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
  .menu .menu-sub[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
  .menu .menu-sub summary:hover { background: var(--sage); }
  .menu-sub > div { margin: 0 0 6px 14px; padding-left: 6px; border-left: 2px solid var(--sage-2); }
  .menu-sub a { padding: 9px 12px; font-size: 15px; }
}

/* ---------- Stopka: cztery kolumny ---------- */
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
footer.site .link-btn { color: rgba(255, 255, 255, .72); }
footer.site .link-btn:hover { color: #fff; }

/* ---------- Kalkulatory: dodatki ---------- */
.seg.grid2 { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.seg.grid2 label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.calc-flag { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: var(--sage); color: var(--ink); }
.calc-flag.warn { background: var(--flag-warn); }
.calc-flag.bad { background: var(--flag-bad); }
.limits { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14.5px; }
.limits th, .limits td { padding: 10px 6px; border-top: 1px solid var(--hair); text-align: left; vertical-align: top; }
.limits thead th { border-top: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.limits td { color: var(--text); }
.limits th:not(:first-child), .limits td:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.limits td small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--stone); white-space: normal; }
.calc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.calc-links a { padding: 8px 14px; border: 1px solid var(--hair); border-radius: 999px; background: var(--white); font-size: 14px; text-decoration: none; }
.calc-links a:hover { border-color: var(--green); }

/* ---------- Kup sam online (Finli) ---------- */
.finli-steps { list-style: none; counter-reset: k; display: grid; gap: 12px; margin: 0 0 32px; padding: 0; }
.finli-steps li { counter-increment: k; display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.4; color: var(--ink); }
.finli-steps li::before { content: counter(k); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: 1px solid var(--hair); font-weight: 900; color: var(--green); }
.finli-grid { display: grid; gap: 16px; }
.finli-card { position: relative; display: flex; flex-direction: column; padding: 26px 24px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: 0 1px 2px rgba(31, 39, 34, .04), 0 18px 40px -28px rgba(31, 39, 34, .22); }
.finli-card .tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.finli-card h3 { font-size: 1.3125rem; font-weight: 900; margin-bottom: 8px; }
.finli-card p { font-size: 15px; color: var(--stone); margin-bottom: 20px; }
.finli-card .link-arrow { margin-top: auto; }
.finli-card .off { position: absolute; top: 20px; right: 20px; padding: 3px 10px; border-radius: 999px; background: var(--green); color: var(--on-green); font-size: 13px; font-weight: 900; }
.finli-note { max-width: 760px; margin: 24px 0 0; font-size: 13px; color: var(--stone); }
.finli-note code { font: 700 13px var(--font); color: var(--ink); }
@media (min-width: 760px) { .finli-grid { grid-template-columns: 1fr 1fr; } .finli-steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .finli-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Mapa: biuro w Poznaniu ---------- */
.map-grid { display: grid; gap: 24px; }
.map-tabs { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; margin-bottom: 8px; background: var(--beige); border-radius: 999px; }
.map-tabs button { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: none; font: 700 12px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text); cursor: pointer; transition: background-color .2s, color .2s; }
.map-tabs button[aria-pressed=true] { background: var(--green); color: var(--on-green); }
.pl-map { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.pl-map path { fill: var(--beige-2); stroke: var(--page); stroke-width: 1.6; stroke-linejoin: round; cursor: pointer; transition: fill .25s; }
.pl-map path:hover { fill: var(--sage-2); }
.pl-map path.on { fill: var(--green); }
.pl-map.online path { fill: var(--map-online); }
.pl-map.online path.on { fill: var(--beige-2); }
.pl-map .pin circle { fill: #fff; stroke: var(--forest); stroke-width: 2.5; }
.pl-map .pin .kropka { fill: var(--forest); stroke: none; }
.pl-map .pin text { font: 900 15px var(--font); fill: var(--forest); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.map-card { padding: 28px 24px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: 0 1px 2px rgba(31, 39, 34, .04), 0 18px 40px -28px rgba(31, 39, 34, .22); }
.map-card h3 { font-size: 1.5rem; font-weight: 900; margin: 4px 0 12px; }
.map-card address { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-style: normal; font-weight: 700; color: var(--ink); }
.map-card address svg { flex: none; margin-top: 3px; color: var(--green); }
.map-card .btn { width: 100%; margin: 8px 0 14px; }
.map-alt { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 15px; }
.map-alt p { margin: 0 0 6px; color: var(--stone); }
.map-alt strong { display: block; margin-bottom: 4px; }
@media (min-width: 900px) { .map-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; } }

/* ---------- FAQ: rozwijane pytania ---------- */
.faq-grid { display: grid; gap: 8px; }
.faq-grid .section-head { margin-bottom: 24px; }
.faq-acc details { border-top: 1px solid rgba(61, 114, 85, .2); }
.faq-acc details:last-child { border-bottom: 1px solid rgba(61, 114, 85, .2); }
.faq-acc summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; list-style: none; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; color: var(--ink); cursor: pointer; }
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: -5px 6px 0 0; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .2s; }
.faq-acc details[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.faq-acc details p { margin: -6px 0 20px; max-width: 68ch; color: var(--stone); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .faq-grid .section-head { position: sticky; top: calc(var(--head-h) + 32px); } }

/* ---------- Strony prawne ---------- */
.legal-doc { max-width: 760px; padding-bottom: 72px; }
.legal-doc h2 { font-size: 1.375rem; margin-top: 2em; }
.legal-doc h3 { font-size: 1.0625rem; margin-top: 1.5em; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc .updated { font-size: 14px; color: var(--stone); }
.legal-doc .limits td:not(:first-child) { white-space: normal; text-align: left; }

/* ---------- Baner cookies ---------- */
.cookie-bar { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 520px; margin: 0 auto; padding: 18px 18px 14px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: 0 24px 60px -20px rgba(31, 39, 34, .35); font-size: 14px; line-height: 1.5; color: var(--text); animation: wjazd .4s cubic-bezier(.2, .8, .2, 1); }
.cookie-bar p { margin: 0 0 12px; }
.cookie-opts { display: grid; gap: 10px; margin: 0 0 14px; }
.cookie-opts[hidden] { display: none; }
.cookie-opts label { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; color: var(--ink); }
.cookie-opts small { display: block; font-size: 12.5px; font-weight: 400; color: var(--stone); }
.cookie-opts input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); }
.cookie-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-btns .btn { min-height: 44px; padding: 10px 12px; font-size: 11.5px; }
.cookie-more { grid-column: 1 / -1; justify-self: center; padding: 6px; border: 0; background: none; font: 700 13px var(--font); color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes wjazd { from { opacity: 0; transform: translateY(16px); } }
@media (min-width: 760px) { .cookie-bar { left: 24px; right: auto; bottom: 24px; margin: 0; } }

/* ---------- Zaproszenie na rozmowę ---------- */
.zapro { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: 12px; max-width: 420px; margin: 0 auto; padding: 20px; background: var(--white); border: 1px solid var(--hair); border-radius: 22px; box-shadow: 0 30px 70px -24px rgba(28, 52, 40, .45); opacity: 0; transform: translateY(calc(100% + 24px)); transition: transform .5s cubic-bezier(.2, .9, .25, 1), opacity .3s; }
.zapro.on { opacity: 1; transform: none; }
.zapro-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--beige); color: var(--ink); cursor: pointer; }
.zapro-x:hover { background: var(--beige-2); }
.zapro-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; padding-right: 36px; }
.zapro-top img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--sage); }
.zapro-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.zapro h2 { margin: 2px 0 0; font-size: 1.1875rem; line-height: 1.25; }
.zapro p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--stone); }
.zapro-opts { display: grid; gap: 8px; }
.zapro-opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 14px; background: var(--beige); font-size: 13px; line-height: 1.35; color: var(--stone); text-decoration: none; transition: border-color .2s, background-color .2s, transform .1s ease-out; }
.zapro-opt:hover { border-color: var(--green); background: var(--sage); }
.zapro-opt:active { transform: scale(.98); }
.zapro-opt svg { flex: none; color: var(--green); }
.zapro-opt b { display: block; font-size: 15px; color: var(--ink); }
.zapro-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.zapro-foot a { font-weight: 700; }
.zapro-nie { padding: 6px 0; border: 0; background: none; font: 700 13px var(--font); color: var(--stone); cursor: pointer; }
@media (min-width: 760px) { .zapro { left: auto; right: 24px; bottom: 24px; width: 390px; margin: 0; } }
@media (prefers-reduced-motion: reduce) { .zapro { transform: none; } }

/* Kalkulatory na stronie głównej: karty Finli jako linki; na telefonie 2 kolumny bez opisu */
.kalk-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
a.kalk-card { color: inherit; text-decoration: none; padding: 20px 18px; transition: border-color .2s; }
a.kalk-card:hover { border-color: var(--green); }
a.kalk-card:active { transform: scale(.98); }
.kalk-card h3 { font-size: 1.125rem; line-height: 1.25; }
.kalk-card p { display: none; }
.kalk-card .link-arrow { color: var(--green); }
@media (min-width: 760px) { a.kalk-card { padding: 26px 24px; } .kalk-card h3 { font-size: 1.3125rem; } .kalk-card p { display: block; } }

/* Kod doradcy Finli na wierzchu */
.finli-kod { display: grid; gap: 16px; align-items: center; margin: 0 0 28px; padding: 22px 24px; background: var(--white); border: 1.5px solid var(--green); border-radius: var(--r); }
.finli-kod .tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.finli-kod strong { display: block; font-size: clamp(2rem, 8vw, 2.75rem); font-weight: 900; line-height: 1.1; letter-spacing: .04em; color: var(--ink); font-variant-numeric: tabular-nums; user-select: all; }
.finli-kod p { margin: 8px 0 0; font-size: 15px; color: var(--stone); max-width: 620px; }
.finli-kod p b { color: var(--ink); }
.finli-kod .btn { justify-self: start; }
@media (min-width: 760px) { .finli-kod { grid-template-columns: 1fr auto; gap: 32px; padding: 26px 32px; } }

/* Film na stronie głównej w ramce jak relacja na Instagramie: pasek postępu, profil, dźwięk, naklejka z linkiem */
.ig-reel { position: relative; overflow: hidden; isolation: isolate; color: #fff; font-family: system-ui, -apple-system, sans-serif; text-align: left; }
.ig-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ig-reel::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0) 17%, rgba(0, 0, 0, 0) 74%, rgba(0, 0, 0, .55)); }
.ig-tap { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: 0; color: #fff; cursor: pointer; }
.ig-tap span { position: absolute; left: 50%; top: var(--play-y, 64%); translate: -50% -50%; display: grid; place-items: center; width: 68px; height: 68px; padding-left: 4px; border-radius: 50%; background: rgba(0, 0, 0, .42); backdrop-filter: blur(6px); transition: opacity .2s, scale .2s; }
.ig-reel.gra .ig-tap span { opacity: 0; scale: .8; }
.ig-pasek { position: absolute; z-index: 3; left: 10px; right: 10px; top: 9px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .38); overflow: hidden; }
.ig-pasek i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.ig-top { position: absolute; z-index: 3; left: 12px; right: 6px; top: 20px; display: flex; align-items: center; gap: 8px; font-size: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.ig-avatar { flex: none; width: 34px; height: 34px; padding: 2px; border-radius: 50%; background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.ig-avatar img { display: block; width: 100%; height: 100%; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.ig-top b { font-weight: 700; }
.ig-obserwuj { padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 8px; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; text-shadow: none; }
.ig-obserwuj:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.ig-dzwiek { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; background: none; border: 0; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.ig-dzwiek .off, .ig-dzwiek[aria-pressed="true"] .on { display: none; }
.ig-dzwiek[aria-pressed="true"] .off { display: block; }
.ig-naklejka { position: absolute; z-index: 3; left: 50%; top: 76%; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; background: #fff; border-radius: 12px; color: #0b63d4; font-size: 18px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); transition: scale .15s; }
.ig-naklejka:hover { color: #0b63d4; }
.ig-naklejka:active { scale: .96; }
.ig-opis { position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 14px; margin: 0; font-size: 13.5px; line-height: 1.4; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); pointer-events: none; }
.ig-opis b { margin-right: 4px; }

/* Kalkulatory w dwóch sekcjach: kafelki z lewej, film jak relacja na Instagramie z prawej (na telefonie pod kafelkami) */
.kalk-split { display: grid; gap: 32px; }
.kalk-split .ig-reel { justify-self: center; }
@media (min-width: 900px) { .kalk-split { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: center; } }
.kalk-ikona { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 15px; background: var(--sage); color: var(--green); transition: background-color .2s; }
.kalk-ikona svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kalk-ikona .w { fill: currentColor; fill-opacity: .16; stroke: none; }
.kalk-ikona .b { fill: var(--white); }
.kalk-ikona .f { fill: currentColor; stroke: none; }
a.kalk-card:hover .kalk-ikona { background: var(--sage-2); }
@media (min-width: 760px) { .kalk-ikona { width: 60px; height: 60px; border-radius: 17px; } .kalk-ikona svg { width: 36px; height: 36px; } }
.ig-naklejka.gora { top: 12%; }
/* Kalkulatory pamiętają wpisane liczby: informacja i przycisk pod pytaniami */
.calc-pamiec { margin: 20px 0 0; font-size: 14px; line-height: 1.5; color: var(--stone); }
.calc-pamiec .link-btn { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* Ruchome rysunki w kafelkach (Hairline, wstawia je assets/figury.js). Linie w kolorach strony, tło jak karta. */
.kalk-figura { display: block; width: min(100%, 150px); margin: -4px 0 10px -4px; animation: figura-wejscie .6s ease-out both;
  --hairline-plate: var(--white); --hairline-hi: var(--green-dark); --hairline-edge: var(--fig-edge); --hairline-mid: var(--fig-mid); --hairline-lo: var(--fig-lo); --hairline-stroke: 1; }
@keyframes figura-wejscie { from { opacity: 0; } }
@media (min-width: 760px) { .kalk-figura { width: min(100%, 190px); } }
.ma-figure .kalk-ikona { display: none; }
/* Płynne przejścia: elementy sekcji wjeżdżają przy przewijaniu (klasy dodaje strona.js), a między stronami obraz się przenika, nagłówek stoi */
:root .wejscie { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
:root .wejscie.widac { opacity: 1; transform: none; }
@view-transition { navigation: auto; }
.site-head { view-transition-name: naglowek; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* Filmy w punktach, pod filmem */
.film-kol { justify-self: center; width: 100%; max-width: 340px; }
.page-hero .film-kol .reel { margin: 0 auto; }
.film-punkty { margin-top: 14px; font-size: 15px; line-height: 1.55; }
.film-punkty summary { cursor: pointer; list-style: none; padding: 6px 0; font-weight: 700; color: var(--green); }
.film-punkty summary::-webkit-details-marker { display: none; }
.film-punkty summary::after { content: "+"; display: inline-block; margin-left: 8px; transition: transform .2s; }
.film-punkty[open] summary::after { transform: rotate(45deg); }
.film-punkty ol { margin: 6px 0 0; padding-left: 22px; }
.film-punkty li { margin-bottom: 4px; }
/* Poradnik: artykuły z tabelami, źródłami i autorem. Tekst w kolumnie wyrównanej do nagłówka strony. */
.art-hero { padding-bottom: 28px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 18px 0 0; font-size: 14px; color: var(--stone); }
.wrap.art { padding-bottom: 64px; }
.wrap.art > * { max-width: 760px; }
.art h2 { font-size: 1.5rem; margin-top: 1.9em; }
.art h3 { font-size: 1.125rem; margin-top: 1.4em; }
.art ol, .art ul { padding-left: 22px; }
.art li { margin-bottom: 8px; }
.art .aside-box { margin: 36px 0; }
.tabela { overflow-x: auto; margin: 8px 0 16px; -webkit-overflow-scrolling: touch; }
.tabela:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.tabela .limits { margin: 0; }
.limits.szeroka { min-width: 560px; }
.limits.tekst { min-width: 660px; font-size: 14px; }
.limits.tekst th:not(:first-child), .limits.tekst td:not(:first-child) { white-space: normal; text-align: left; color: var(--text); }
.limits.tekst td:first-child { width: 20%; }
.art-uwaga { margin-top: 32px; font-size: 14px; color: var(--stone); }
.zrodla { padding: 0; font-size: 14px; color: var(--stone); }
.zrodla h2 { font-size: 1.125rem; margin-top: 1.2em; }
.zrodla li { margin-bottom: 4px; }
.art-autor { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.55; }
.art-autor img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.art-autor p { margin: 0; }
.art-film { display: grid; gap: 20px; align-items: center; }
.art-film .reel { max-width: 300px; }
.art-film ol { margin: 0; }
@media (min-width: 760px) { .art-film { grid-template-columns: 300px 1fr; gap: 32px; } }
a.art-card { color: inherit; text-decoration: none; transition: border-color .2s; }
a.art-card:hover { border-color: var(--green); }
a.art-card:active { transform: scale(.98); }
.art-wiecej { margin: 28px 0 0; }
/* O mnie: liczby */
.liczby { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.liczby li { padding: 20px 18px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); font-size: 15px; line-height: 1.4; }
.liczby b { display: block; margin-bottom: 4px; font-size: 2rem; font-weight: 900; line-height: 1.1; letter-spacing: -0.01em; color: var(--green-dark); }
@media (min-width: 760px) { .liczby { grid-template-columns: repeat(4, 1fr); } }
/* Menu na węższym laptopie: więcej pozycji, mniejsze odstępy */
@media (max-width: 1279px) { .nav { gap: 18px; } .nav a { letter-spacing: .06em; } }
.tabela-hint { margin: 0 0 4px; font-size: 13px; color: var(--stone); }
@media (min-width: 760px) { .tabela-hint { display: none; } }
/* Dostępność: skok do treści, kontrast etykiety na ciemniejszej zieleni, wygodne cele dotyku */
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.band.story .eyebrow { color: var(--green-dark); }
.film-punkty summary { display: flex; align-items: center; min-height: 44px; padding: 0; }
.calc-links a { display: inline-flex; align-items: center; min-height: 44px; }
/* Większe pole dotyku dla małych linków (stopka, okruszki) bez zmiany wyglądu */
.foot-grid li a, .foot-grid li .link-btn, .crumbs a { display: inline-block; padding: 10px 0; margin: -10px 0; }
/* ---------- Tryb ciemny ----------
   Włącza się sam, gdy telefon lub komputer ma ciemny motyw. Ta sama paleta: ciepła czerń, szałwia, jasna zieleń na akcenty.
   data-theme="light" albo "dark" na <html> wymusza jeden z trybów. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #121714;
    --white: #1a211d;
    --beige: #1b1f1a;
    --beige-2: #262b24;
    --sage: #16211a;
    --sage-2: #1e2c23;
    --green: #7fbf98;
    --green-dark: #a6d6b8;
    --forest: #0b100d;
    --ink: #eef2ee;
    --text: #c9d2cc;
    --stone: #9aa59e;
    --hair: #2d3731;
    --error: #ff9c8c;
    --on-green: #0f1a14;
    --head-bg: rgba(18, 23, 20, .86);
    --page-0: rgba(18, 23, 20, 0);
    --tel-bg: rgba(26, 33, 29, .92);
    --bar-bg: rgba(22, 33, 26, .94);
    --input-line: #3a463f;
    --flag-warn: #3a3216;
    --flag-bad: #3f221d;
    --map-online: #4d7a5e;
    --fig-edge: #74998a;
    --fig-mid: #3e5448;
    --fig-lo: #29362e;
    --city-filter: brightness(1.9) saturate(.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #121714;
  --white: #1a211d;
  --beige: #1b1f1a;
  --beige-2: #262b24;
  --sage: #16211a;
  --sage-2: #1e2c23;
  --green: #7fbf98;
  --green-dark: #a6d6b8;
  --forest: #0b100d;
  --ink: #eef2ee;
  --text: #c9d2cc;
  --stone: #9aa59e;
  --hair: #2d3731;
  --error: #ff9c8c;
  --on-green: #0f1a14;
  --head-bg: rgba(18, 23, 20, .86);
  --page-0: rgba(18, 23, 20, 0);
  --tel-bg: rgba(26, 33, 29, .92);
  --bar-bg: rgba(22, 33, 26, .94);
  --input-line: #3a463f;
  --flag-warn: #3a3216;
  --flag-bad: #3f221d;
  --map-online: #4d7a5e;
  --fig-edge: #74998a;
  --fig-mid: #3e5448;
  --fig-lo: #29362e;
  --city-filter: brightness(1.9) saturate(.7);
  color-scheme: dark;
}
.hero-city, .contact-city { filter: var(--city-filter); }
