/* ============================================================
   MY BLUE HOUSE - design system
   Paleta firmowa: kobalt #0079c9 (interakcje), gradient marki
   navy #273e58 -> lawenda #9b8fb0 (ciemne sekcje), kremowe tla.
   Typografia: Jost (tekst) + Cormorant Garamond (naglowki display).
   ============================================================ */

/* ── FONTY (self-hosted) ── */
@font-face { font-family: 'Jost'; src: url('../fonts/jost-300-normal-latin.woff2') format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost-300-normal-latin-ext.woff2') format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0100-024F; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost-400-normal-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost-400-normal-latin-ext.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-024F; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost-500-normal-latin.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost-500-normal-latin-ext.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-024F; }
/* Prawdziwa kursywa Jost (nie pochylenie syntetyczne) - akcent w hero */
@font-face { font-family: 'Jost'; src: url('../fonts/jost-300-italic-latin.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost-300-italic-latin-ext.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; unicode-range: U+0100-024F; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-400-normal-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-400-normal-latin-ext.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-024F; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-500-normal-latin.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-500-normal-latin-ext.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-024F; }

/* ── TOKENS ── */
:root {
    --cobalt: #0079c9;
    --cobalt-mid: #0063a6;
    --cobalt-light: #2f93d4;
    --cobalt-pale: #e7f1fa;
    --cream: #f5f7f9;
    --cream-dark: #e4e9ee;
    --white: #ffffff;
    --text: #1c1c1c;
    --text-muted: #6b6b6b;
    --navy: #273e58;
    --lavender: #9b8fb0;
    /* Na ciemnych tlach z bialym tekstem dominuje navy; lawenda tylko jako
       koncowka gradientu i akcenty, bo pod bialym tekstem jest za jasna. */
    --brand-grad: linear-gradient(135deg, #273e58 0%, #344a6b 45%, #6e6a90 100%);
    --green: #1d8a4e;
    --amber: #c77b1e;
    --red: #c0392b;
    --font-body: 'Jost', system-ui, sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --container: 1200px;
    /* Jezyk LP: ostre krawedzie, obrysy zamiast ciezkich cieni */
    --radius: 0;
    --radius-sm: 0;
    --line: 1px solid var(--cream-dark);
    --shadow: 0 4px 18px rgba(29, 47, 70, 0.06);
    --shadow-hover: 0 10px 34px rgba(29, 47, 70, 0.12);
    --header-h: 96px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text);
    font-weight: 400;
    line-height: 1.65;
    font-size: 17px;
    overflow-x: clip; /* clip, nie hidden: nie psuje position: sticky */
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── PRZYCISKI: prostokatne, wersaliki, hover odwraca kolory (jezyk LP) ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 28px;
    font-weight: 500; font-size: 13.5px;
    letter-spacing: 0.09em; text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.15s;
    min-height: 48px;
    white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 17px 36px; font-size: 14px; }
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.section-dark .btn-primary:hover, .hero .btn-primary:hover { background: var(--white); color: var(--cobalt); }
.btn-outline { border-color: var(--cobalt); color: var(--cobalt); background: transparent; }
.btn-outline:hover { background: var(--cobalt); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-light:hover { background: var(--white); color: var(--cobalt); border-color: var(--white); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { color: var(--cobalt); }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--cobalt); font-weight: 500; text-decoration: none;
    transition: gap 0.25s;
}
.link-arrow:hover { gap: 12px; }

/* ── PRELOADER (max 2 s) ── */
.mbh-preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--brand-grad);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    /* Bezpiecznik czysto-CSS: nawet gdy JS sie nie wykona, nakladka znika po ~2.2 s
       i nigdy nie blokuje odczytu tresci. Sciezka JS (.is-hidden) zdejmuje ja wczesniej. */
    animation: mbhPreloaderAuto 0.5s ease 2.2s forwards;
}
.mbh-preloader.is-hidden { opacity: 0; visibility: hidden; animation: none; }
@keyframes mbhPreloaderAuto { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
    .mbh-preloader { transition: none; animation-duration: 0.01s; }
}
.mbh-preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mbh-preloader-logo { max-height: 64px; width: auto; display: block; }
.mbh-preloader-mark { font-size: 26px; font-weight: 500; letter-spacing: 0.02em; color: var(--white); }
.mbh-preloader-mark em { font-style: normal; color: var(--cobalt-light); }
.mbh-preloader-bar { position: relative; width: 160px; height: 2px; background: rgba(255,255,255,0.25); overflow: hidden; }
.mbh-preloader-bar::after {
    content: ''; position: absolute; left: -40%; top: 0; height: 100%; width: 40%;
    background: var(--white); animation: mbhLoad 1.1s ease-in-out infinite;
}
@keyframes mbhLoad { 0% { left: -40%; } 100% { left: 100%; } }

/* ── HEADER ── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 210;
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
    border-bottom: 1px solid transparent;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    max-width: 1400px; margin: 0 auto;
    padding: 14px 32px;
}
.site-header.scrolled,
.site-header.solid {
    background: rgba(245, 247, 249, 0.96);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--cream-dark);
}
.site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
/* Logo jest znakiem firmowym, wiec trzymamy je duze; po scrollu delikatnie
   sie zmniejsza, zeby pasek nie zjadal ekranu. */
.logo-img { max-height: 68px; width: auto; display: block; transition: max-height 0.3s; }
.scrolled .logo-img, .solid .logo-img { max-height: 56px; }
/* Dwie wersje logo: jasne na ciemnym tle (navbar na hero), ciemne po scrollu */
.logo-on-light { display: none; }
.scrolled .logo-on-dark, .solid .logo-on-dark { display: none; }
.scrolled .logo-on-light, .solid .logo-on-light { display: block; }
.logo-text { font-size: 22px; font-weight: 500; letter-spacing: 0.02em; color: var(--white); transition: color 0.4s; white-space: nowrap; }
.logo-text em { font-style: normal; color: var(--cobalt-light); }
.scrolled .logo-text, .solid .logo-text { color: var(--navy); }
.footer-logo-img { max-height: 52px; width: auto; display: block; margin-bottom: 14px; }

.nav-list { display: flex; gap: 28px; }
.nav-list > li { white-space: nowrap; }
.nav-list a {
    text-decoration: none; font-weight: 500; font-size: 16px;
    color: var(--white); transition: color 0.3s; white-space: nowrap;
}
.scrolled .nav-list a, .solid .nav-list a { color: var(--text); }
.nav-list a:hover { color: var(--cobalt-light); }
.scrolled .nav-list a:hover, .solid .nav-list a:hover { color: var(--cobalt); }

/* Dropdown 2. poziomu (pozycje z podlistami z wp-admin) */
.nav-list > li { position: relative; }
.nav-list > .menu-item-has-children > a::after {
    content: ''; display: inline-block; margin-left: 7px;
    width: 7px; height: 7px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s;
}
.nav-list > .menu-item-has-children:hover > a::after,
.nav-list > .menu-item-has-children:focus-within > a::after { transform: rotate(225deg) translateY(-1px); }
.nav-list .sub-menu {
    position: absolute; top: calc(100% + 14px); left: -18px;
    min-width: 230px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    padding: 10px;
    display: grid; gap: 2px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
/* Mostek nad dropdownem: kursor nie gubi hoveru w przerwie */
.nav-list .sub-menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-list > li:hover > .sub-menu,
.nav-list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-list .sub-menu a {
    display: block; padding: 10px 14px;
    border-radius: 0;
    color: var(--text) !important;
    font-weight: 400;
}
.nav-list .sub-menu a:hover { background: var(--cobalt-pale); color: var(--cobalt) !important; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone { color: var(--white); font-weight: 500; text-decoration: none; }
.scrolled .header-phone, .solid .header-phone { color: var(--text); }

/* Ikona telefonu w naglowku - tylko na mobile (numer sie nie miesci) */
.header-call {
    display: none; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    color: var(--white); text-decoration: none;
    transition: color 0.3s;
}
.scrolled .header-call, .solid .header-call { color: var(--navy); }

/* Hamburger: pelne 46x46 pola dotyku, kreski wysrodkowane */
.nav-toggle {
    display: none; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 46px; height: 46px; padding: 0;
}
.nav-toggle span { width: 24px; height: 2px; background: currentColor; color: var(--white); transition: transform 0.3s, opacity 0.3s; }
.scrolled .nav-toggle span, .solid .nav-toggle span { color: var(--text); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MENU MOBILNE: pelnoekranowy panel ──
   Element lezy poza .site-header (patrz navbar.php): backdrop-filter naglowka
   tworzylby dla niego blok zawierajacy i panel mial wysokosc naglowka.
   Tlo: pelny gradient marki + kolor pod spodem, wiec nigdy nie przeswituje. */
.mobile-panel {
    position: fixed; inset: 0;
    z-index: 300;
    display: flex; flex-direction: column;
    background-color: #22364e;
    /* Wlasny, ciemniejszy wariant gradientu marki: pelna lawenda z --brand-grad
       jest za jasna pod bialym tekstem na dole dlugiego menu. */
    background-image: linear-gradient(160deg, #1f3049 0%, #2b4060 52%, #3b4867 100%);
    color: var(--white);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overscroll-behavior: contain;
}
/* display: flex bije domyslne [hidden] { display: none } - trzeba wprost */
.mobile-panel[hidden] { display: none; }
.mobile-panel.open { transform: none; }
@media (min-width: 901px) { .mobile-panel { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mobile-panel { transition: none; } }

.mobile-panel-bar {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: calc(13px + env(safe-area-inset-top)) 20px 13px;
    border-bottom: 1px solid rgba(255,255,255,0.16);
}
.mobile-panel-logo { display: flex; align-items: center; font-size: 21px; font-weight: 500; text-decoration: none; color: var(--white); }
.mobile-panel-logo em { font-style: normal; color: var(--cobalt-light); }
.mobile-panel-logo img { max-height: 40px; width: auto; }
.mobile-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-right: -10px; color: var(--white);
}

.mobile-panel-scroll {
    flex: 1; min-height: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 6px 20px calc(30px + env(safe-area-inset-bottom));
}

.mobile-nav-list { display: block; }
.mobile-nav-list > li { position: relative; border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-nav-list > li > a {
    display: flex; align-items: center; min-height: 56px;
    padding: 10px 56px 10px 0;
    font-size: 19px; font-weight: 500; line-height: 1.3;
    color: var(--white); text-decoration: none;
}
.mobile-nav-list > .current-menu-item > a,
.mobile-nav-list > .current_page_item > a,
.mobile-nav-list > .current-menu-ancestor > a { color: var(--cobalt-light); }

/* Podlisty: akordeon (JS przelacza .sub-open i wysokosc) */
.mobile-nav-list .sub-toggle {
    position: absolute; top: 4px; right: -10px;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.8);
}
.mobile-nav-list .sub-toggle::after {
    content: ''; width: 9px; height: 9px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px); transition: transform 0.25s;
}
.mobile-nav-list .sub-open > .sub-toggle::after { transform: rotate(225deg) translateY(-2px); }
.mobile-nav-list .sub-menu {
    max-height: 0; overflow: hidden;
    transition: max-height 0.32s ease;
    border-left: 1px solid rgba(255,255,255,0.22);
    margin: 0 0 0 2px;
}
.mobile-nav-list .sub-menu a {
    display: flex; align-items: center; min-height: 46px;
    padding: 8px 0 8px 16px;
    font-size: 16.5px; font-weight: 400; line-height: 1.35;
    color: rgba(255,255,255,0.78); text-decoration: none;
}
.mobile-nav-list .sub-menu li:last-child a { padding-bottom: 14px; }

.mobile-panel-cta { display: grid; gap: 10px; margin: 26px 0 4px; }
.mobile-panel-cta .btn { width: 100%; white-space: normal; text-align: center; }

/* Podstawowe info o firmie + kontakt pod menu */
.mobile-panel-info { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.16); }
.mobile-panel-name { font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt-light); }
.mobile-panel-tagline {
    font-family: var(--font-display); font-size: 19px; font-style: italic; line-height: 1.45;
    color: rgba(255,255,255,0.9); margin-top: 8px;
}
.mobile-panel-contact { display: grid; gap: 2px; margin-top: 18px; }
.mobile-panel-contact li {
    display: flex; align-items: center; gap: 12px; min-height: 44px;
    font-size: 16px; color: rgba(255,255,255,0.82);
}
.mobile-panel-contact svg { flex-shrink: 0; color: var(--cobalt-light); }
.mobile-panel-contact a { color: var(--white); text-decoration: none; font-weight: 500; }
.mobile-panel-social { display: flex; gap: 10px; margin-top: 20px; }
.mobile-panel-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border: 1px solid rgba(255,255,255,0.3); color: var(--white);
    transition: background-color 0.25s, border-color 0.25s;
}
.mobile-panel-social a:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.mobile-panel-legal { margin-top: 20px; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.55); }

/* Tlo nie przewija sie, gdy menu otwarte */
html.mbh-nav-open, body.mbh-nav-open { overflow: hidden; }

/* ── SEKCJE: wspolne ── */
.section { padding: 88px 0; }
.section-tag {
    display: inline-block;
    font-size: 12.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--cobalt);
    margin-bottom: 18px;
}
.section-tag::before { content: ''; display: inline-block; width: 26px; height: 1.5px; background: var(--lavender); vertical-align: middle; margin-right: 10px; }
.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(34px, 4.8vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--cobalt);
    margin-bottom: 18px;
    max-width: 760px;
}
.section-title em { font-style: italic; }
/* Gradientowa kreska pod tytulem (znak firmowy LP) */
.section-title::after {
    content: ''; display: block;
    width: 90px; height: 2px; margin-top: 20px;
    background: linear-gradient(to right, var(--cobalt), var(--cobalt-light), transparent);
}
.section-dark .section-title::after { background: linear-gradient(to right, rgba(255,255,255,0.85), transparent); }
.section-lead { color: var(--text-muted); max-width: 640px; margin-bottom: 34px; font-size: 18px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.section-head-cta { flex-shrink: 0; margin-bottom: 34px; }
.section-cta-row { margin-top: 40px; display: flex; justify-content: center; }

.section-dark { background: var(--brand-grad); color: var(--white); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-tag { color: var(--cobalt-light); }
.section-dark .section-lead { color: rgba(255,255,255,0.82); }

/* ── HERO ── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hero-scroll {
    position: absolute; left: 50%; bottom: 118px; transform: translateX(-50%);
    color: rgba(255,255,255,0.7); z-index: 3;
    animation: mbhBounce 2s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--white); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder { width: 100%; height: 100%; background: var(--brand-grad); }
.hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(21, 33, 48, 0.78) 0%, rgba(21, 33, 48, 0.45) 55%, rgba(21, 33, 48, 0.2) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); padding-top: var(--header-h); padding-bottom: 150px; }

/* Wariant z formularzem: dwie kolumny (tekst + karta-lead) */
.hero-with-form .hero-scrim {
    background: linear-gradient(105deg, rgba(21,33,48,0.9) 0%, rgba(21,33,48,0.7) 42%, rgba(21,33,48,0.55) 100%);
}
.hero-with-form .hero-content {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-with-form .hero-lead { max-width: none; }

.hero-aside { width: 100%; max-width: 420px; justify-self: end; }
.hero-form {
    background: var(--white); color: var(--text);
    padding: 30px 28px; display: grid; gap: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.32);
    border-top: 4px solid var(--cobalt);
}
.hero-form-title { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--navy); line-height: 1.15; }
.hero-form-lead { font-size: 14.5px; color: var(--text-muted); margin-top: -6px; }
.hero-form .form-row { gap: 5px; }
.hero-form .form-consent span { font-size: 12px; }
.hero-form .btn { width: 100%; }
.hero-form .form-feedback.ok { color: var(--green); }
.hero-form .form-feedback.err { color: var(--red); }
/* Formularz schodzi pod tekst na wezszych ekranach */
@media (max-width: 980px) {
    .hero-with-form .hero-content { grid-template-columns: 1fr; gap: 28px; }
    .hero-aside { max-width: 460px; justify-self: start; }

    /* Formularz stoi tu POD tekstem, wiec tresc hero robi sie wysoka. Pasek
       z liczbami przyklejony absolutnie do dolu wchodzil wtedy na karte
       formularza - zaslanial zgode i przycisk wysylki (na telefonie widac
       bylo tylko polowe checkboxa). Zamiast dobierac padding pod kolejne
       wysokosci ekranow, pasek przestaje byc absolutny i po prostu idzie
       pod trescia - wtedy nachodzenie jest niemozliwe. */
    /* Tresc hero bywa wyzsza niz ekran telefonu. Przy zwyklym "center" nadmiar
       wychodzi rowno w gore i w dol - gorna czesc (nadtytul) chowala sie wtedy
       POD przezroczystym naglowkiem i logo nachodzilo na napis. "safe center"
       centruje tylko dopoki jest miejsce; przy nadmiarze tresc trzyma sie gory,
       a rezerwa paddingiem na naglowek znowu dziala. */
    .hero-with-form { flex-direction: column; align-items: stretch; justify-content: center; justify-content: safe center; }
    .hero-with-form .hero-facts { position: static; }
    .hero-with-form .hero-content { padding-top: calc(var(--header-h) + 14px); padding-bottom: 32px; }
}
.hero-kicker {
    font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
    color: var(--cobalt-light);
    margin-bottom: 18px;
}
.hero-title {
    font-size: clamp(38px, 6.4vw, 68px);
    font-weight: 500;
    line-height: 1.08;
    max-width: 780px;
    margin-bottom: 22px;
}
/* Akcent H1 ("z pasją do pomagania"): ten sam geometryczny krój co w logo,
   tylko cienki i kursywą. Kontrast grubości jak w znaku firmowym: mocne "MY"
   i cienkie "BLUE HOUSE". */
.hero-accent {
    display: block;
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 300;
    font-size: 0.86em;
    letter-spacing: 0.005em;
    color: rgba(255,255,255,0.9);
    margin-top: 4px;
}
.hero-lead { font-size: 19px; font-weight: 300; max-width: 560px; margin-bottom: 34px; color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,0.85); }
.hero-trust svg { flex-shrink: 0; color: var(--cobalt-light); }

/* Pasek kluczowych informacji na dole hero (glass) */
.hero-facts {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    background: rgba(19, 30, 45, 0.42);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-facts-inner { display: flex; justify-content: space-between; gap: 24px; padding: 22px 24px; }
.hero-fact { display: flex; flex-direction: column; gap: 2px; flex: 1; position: relative; }
.hero-fact:not(:last-child)::after { content: ''; position: absolute; right: -12px; top: 6px; bottom: 6px; width: 1px; background: rgba(255,255,255,0.15); }
.hero-fact-num { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 500; color: var(--white); line-height: 1; }
.hero-fact-label { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.72); }

/* ── FILARY: asymetryczny uklad, druga karta schodkowo nizej ── */
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 52px; }
.pillar-card {
    background: var(--white);
    border: var(--line);
    padding: 48px 42px;
    position: relative;
    transition: border-color 0.3s, transform 0.3s;
}
.pillars-grid .pillar-card:nth-child(2) { transform: translateY(32px); }
.pillar-card:hover { border-color: var(--cobalt-light); }
.pillars-grid .pillar-card:nth-child(2):hover { transform: translateY(28px); }
.pillar-card::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--cobalt);
}
.pillar-card-alt::after { background: var(--brand-grad); }
.pillar-number {
    font-family: var(--font-display);
    font-size: 48px; line-height: 1;
    color: rgba(0, 121, 201, 0.35);
    display: block; margin-bottom: 20px;
    border-bottom: var(--line); padding-bottom: 18px;
}
.pillar-title { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--navy); margin-bottom: 12px; }
.pillar-text { color: var(--text-muted); margin-bottom: 22px; font-size: 15.5px; line-height: 1.8; }

/* ── KARTY OFERT ── */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.offer-card {
    background: var(--white);
    border: var(--line);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.offer-card:hover { border-color: var(--cobalt-light); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.offer-card-link { display: block; text-decoration: none; }
.offer-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-dark); }
.offer-media-link { display: block; width: 100%; height: 100%; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; }

/* Mini-slider na kafelku */
/* Slajdy leza jeden na drugim (nie w rzedzie flex, bo wtedy drugie zdjecie
   wypada poza kadr i widac bialy prostokat zamiast fotki). */
.offer-slides { position: absolute; inset: 0; }
.offer-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; }
.offer-slide.is-active { opacity: 1; }
.offer-slide img { width: 100%; height: 100%; object-fit: cover; }
.offer-slide img { transition: transform 0.45s ease; }
.offer-card:hover .offer-slide.is-active img { transform: scale(1.04); }

.card-slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.92); color: var(--navy);
    font-size: 22px; line-height: 1;
    opacity: 0; transition: opacity 0.25s, background 0.25s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.card-slider-btn:hover { background: var(--white); }
.card-slider-prev { left: 10px; }
.card-slider-next { right: 10px; }
.offer-media:hover .card-slider-btn,
.card-slider-btn:focus-visible { opacity: 1; }
.card-slider-dots {
    position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3;
    display: flex; justify-content: center; gap: 6px;
}
.card-slider-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); transition: background 0.25s, transform 0.25s; }
.card-slider-dot.is-active { background: var(--white); transform: scale(1.3); }
/* Na urzadzeniach dotykowych strzalki widoczne od razu */
@media (hover: none) { .card-slider-btn { opacity: 1; } }
.card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--cream-dark), var(--cobalt-pale)); }
.offer-badge {
    position: absolute; top: 0; left: 0;
    background: var(--cobalt); color: var(--white);
    font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 7px 14px;
}
.offer-badge-sold { background: var(--red); }
.offer-badge-reserved { background: var(--amber); }
.offer-card-sold .offer-media img { filter: grayscale(0.6); }
.offer-photos-count {
    position: absolute; bottom: 0; right: 0;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(20, 30, 44, 0.72); color: var(--white);
    font-size: 13px; padding: 5px 12px;
}
.offer-body { padding: 22px 24px 26px; }
.offer-price {
    font-size: 24px; font-weight: 600; color: var(--navy);
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    margin-bottom: 4px;
}
.offer-ppm { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.offer-location { font-size: 14px; color: var(--cobalt); font-weight: 500; margin-bottom: 6px; }
.offer-title {
    font-size: 17px; font-weight: 400; color: var(--text);
    line-height: 1.4; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.offer-params { display: flex; gap: 0; flex-wrap: wrap; border-top: var(--line); padding-top: 12px; }
.offer-params li {
    font-size: 13.5px; color: var(--text-muted);
    letter-spacing: 0.04em;
}
.offer-params li:not(:last-child)::after { content: '·'; margin: 0 10px; color: var(--cream-dark); }
.offers-empty { padding: 40px 0; color: var(--text-muted); font-size: 18px; }

/* ── JAK POMAGAMY: karty schodkowo (srodkowa i trzecia nizej, jak na LP) ── */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Warianty liczby kolumn (wczesniej ustawiane stylem inline w szablonach,
   co blokowalo zwijanie siatki na mniejszych ekranach) */
.help-grid-2 { grid-template-columns: repeat(2, 1fr); }
.help-grid-4 { grid-template-columns: repeat(4, 1fr); }
.help-card {
    background: var(--white);
    border: var(--line);
    padding: 40px 32px;
    transition: border-color 0.3s;
}
.help-grid .help-card:nth-child(2) { transform: translateY(26px); }
.help-grid .help-card:nth-child(3) { transform: translateY(52px); }
.help-card:hover { border-color: var(--cobalt-light); }
.help-title { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--navy); margin-bottom: 12px; }
.help-card p { color: var(--text-muted); font-size: 15.5px; line-height: 1.8; }
/* Sekcja z kartami schodkowymi potrzebuje oddechu na dole */
.section-help .section-cta-row { margin-top: 96px; }

/* Scalona sekcja: zdjecie agentow + rozdroze do podstron uslug */
.help-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; margin-top: 40px; }
.help-media { position: relative; z-index: 0; padding-bottom: 8px; }
.help-media-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.help-media::after {
    content: ''; position: absolute; left: -18px; top: 18px;
    width: 100%; height: 100%;
    border: 1px solid var(--cobalt-light); z-index: -1;
}
.help-media figcaption { margin-top: 18px; font-size: 14px; line-height: 1.7; color: var(--text-muted); max-width: 320px; }
.help-rows-title { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--navy); line-height: 1.2; }
.help-rows-lead { color: var(--text-muted); font-size: 16.5px; line-height: 1.8; margin: 12px 0 26px; }
.help-support { border: var(--line); border-left: 3px solid var(--cobalt); background: var(--white); padding: 24px 26px; margin-top: 26px; }
.help-support-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.help-support p { color: var(--text-muted); font-size: 15.5px; line-height: 1.75; margin-bottom: 12px; }
.help-cta-row { margin-top: 56px; gap: 14px; flex-wrap: wrap; }
.section-help .help-cta-row { margin-top: 56px; }

/* Odnosnik do podstrony w kafelkach "Jeśli sprzedajesz / kupujesz" */
.pillar-card .link-arrow { margin-top: 20px; }

/* ── OPINIE (ciemna) ── */
.testimonials-slider { max-width: 820px; margin: 0 auto; }
.testimonials-track { display: grid; }
.testimonial { grid-area: 1 / 1; opacity: 0; transition: opacity 0.5s; pointer-events: none; text-align: center; padding: 10px 20px; }
.testimonial.active { opacity: 1; pointer-events: auto; }
.testimonial-text {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 27px);
    line-height: 1.45;
    margin-bottom: 22px;
}
.testimonial-stars { color: #f5b544; display: inline-flex; gap: 3px; margin-bottom: 18px; }
.testimonial-author { display: grid; justify-items: center; gap: 4px; }
.testimonial-name { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); font-weight: 500; }
.testimonial-meta { font-size: 13.5px; color: rgba(255,255,255,0.6); }
.testimonial-link {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 6px;
    font-size: 13.5px; color: rgba(255,255,255,0.85); text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px;
    transition: color 0.25s, border-color 0.25s;
}
.testimonial-link:hover { color: var(--white); border-color: var(--white); }
.testimonials-cta { gap: 14px; flex-wrap: wrap; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.slider-btn {
    width: 46px; height: 46px;
    border: 1px solid rgba(255,255,255,0.4);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.25s, color 0.25s;
}
.slider-btn:hover { background: var(--white); color: var(--navy); }
.slider-btn:hover { background: rgba(255,255,255,0.12); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); transition: background 0.25s, transform 0.25s; padding: 0; }
.slider-dots button.active { background: var(--white); transform: scale(1.25); }

/* ── INWESTYCJE: naprzemienny offset kart ── */
.investments-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.investments-grid .investment-card:nth-child(even) { transform: translateY(36px); }
.investment-card {
    background: var(--white); border: var(--line); overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.investment-card:hover { border-color: var(--cobalt-light); box-shadow: var(--shadow-hover); }
.section-investments .container > .investments-grid { margin-bottom: 40px; }
.investment-link { display: block; text-decoration: none; }
.investment-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-dark); }
.investment-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.investment-card:hover .investment-media img { transform: scale(1.04); }
.investment-badge {
    position: absolute; top: 0; left: 0;
    background: var(--navy); color: var(--white);
    font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 7px 14px;
}
.investment-body { padding: 26px 30px 30px; }
.investment-title { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.investment-excerpt { color: var(--text-muted); margin-bottom: 14px; }

/* ── O NAS: zdjecie z offsetowa ramka (znak firmowy LP) ── */
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.about-media { position: relative; padding: 0 18px 18px 0; }
.about-media::before {
    content: ''; position: absolute;
    top: 18px; left: 18px; right: 0; bottom: 0;
    border: 1px solid var(--cobalt-light);
    pointer-events: none;
}
.about-media img, .about-placeholder {
    position: relative;
    aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.about-placeholder { background: var(--brand-grad); }
.about-lead { font-size: 19px; color: var(--text); margin-bottom: 14px; }
.about-content > p { color: var(--text-muted); margin-bottom: 24px; }
.about-values { display: grid; gap: 16px; margin-bottom: 32px; }
.about-values li { display: grid; gap: 2px; padding-left: 18px; position: relative; }
.about-values li::before { content: '\2192'; position: absolute; left: 0; top: 0; color: var(--cobalt); font-size: 14px; }
.about-values strong { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.about-values span { color: var(--text-muted); font-size: 15.5px; line-height: 1.75; }

/* ── STATYSTYKI ZAUFANIA (ciemna) ── */
.stats-section { padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after {
    content: ''; position: absolute; right: -16px; top: 10%; bottom: 10%;
    width: 1px; background: rgba(255,255,255,0.18);
}
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 500; line-height: 1;
    color: var(--white);
    margin-bottom: 10px;
}
.stat-label { font-size: 14px; letter-spacing: 0.04em; color: rgba(255,255,255,0.72); }

/* ── MISJA ── */
.mission-section .section-title::after { margin-left: auto; margin-right: auto; }
.mission-text { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.7; color: var(--text); font-family: var(--font-display); }

/* ── CERTYFIKATY: sciana zaufania ── */
/* Masonry: certyfikaty w naturalnych proporcjach (rozne wielkosci) */
.certificates-grid { column-count: 4; column-gap: 24px; margin-top: 48px; }
.certificate-card { break-inside: avoid; margin-bottom: 24px; background: var(--white); border: var(--line); transition: border-color 0.3s; }
.certificate-card:hover { border-color: var(--cobalt-light); }
.certificate-thumb {
    display: block; position: relative; width: 100%; padding: 0; border: 0;
    border-bottom: var(--line); background: var(--cream); cursor: zoom-in; overflow: hidden;
}
.certificate-thumb img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.certificate-thumb:hover img { transform: scale(1.03); }
.certificate-thumb-empty { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; }
.certificate-zoom {
    position: absolute; top: 10px; right: 10px;
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.92); color: var(--navy);
    opacity: 0; transition: opacity 0.25s; box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.certificate-thumb:hover .certificate-zoom, .certificate-thumb:focus-visible .certificate-zoom { opacity: 1; }
.certificate-placeholder { color: var(--cobalt-light); opacity: 0.5; }
.certificate-card figcaption { padding: 18px 20px 20px; display: grid; gap: 5px; }
.certificate-card figcaption strong { font-size: 15.5px; color: var(--navy); line-height: 1.4; }
.certificate-card figcaption span { font-size: 13px; color: var(--text-muted); }
/* Rodzaj dokumentu: licencja / ubezpieczenie / szkolenie */
.certificate-type {
    justify-self: start;
    background: var(--cobalt-pale); color: var(--cobalt-mid);
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 9px; margin-bottom: 3px;
}
.certificate-person { color: var(--navy) !important; font-weight: 500; }
.certificate-meta { line-height: 1.6; }
/* Dokument leży na "papierze": lekki margines i cień, nie klejony do krawędzi */
.certificate-thumb { padding: 14px; background: var(--cream); }
.certificate-thumb img { box-shadow: 0 2px 12px rgba(29, 47, 70, 0.14); }
/* Dopisek pod sekcja: gwiazdka na linii, tekst wysrodkowany pod nia */
.section-note { margin: 52px auto 0; max-width: 680px; text-align: center; }
.section-note-rule {
    display: flex; align-items: center; gap: 14px;
    color: var(--cobalt-light); margin-bottom: 16px;
}
.section-note-rule::before, .section-note-rule::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, var(--cream-dark), transparent);
}
.section-note p { color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.section-dark .section-note p { color: rgba(255,255,255,0.72); }
.section-dark .section-note-rule { color: var(--cobalt-light); }
.section-dark .section-note-rule::before,
.section-dark .section-note-rule::after { background: linear-gradient(to right, transparent, rgba(255,255,255,0.28), transparent); }

/* Wariant na stronie glownej: mniej dokumentow, wieksze kafle */
.section-certificates-home { background: var(--white); }
.section-certificates-home .certificates-grid { column-count: 4; }
.section-certificates-home .section-lead { max-width: 780px; }

@media (max-width: 1080px) { .certificates-grid, .section-certificates-home .certificates-grid { column-count: 3; } }
@media (max-width: 768px)  { .certificates-grid, .section-certificates-home .certificates-grid { column-count: 2; } }
@media (max-width: 460px)  { .certificates-grid, .section-certificates-home .certificates-grid { column-count: 1; } }

/* ── ZESPOL: duze karty z prawdziwymi zdjeciami ── */
.section-team { background: var(--white); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 48px; }
.team-card { display: grid; grid-template-columns: 5fr 7fr; gap: 0; border: var(--line); transition: border-color 0.3s; }
.team-card:hover { border-color: var(--cobalt-light); }
.team-photo { position: relative; overflow: hidden; background: var(--cream-dark); min-height: 340px; }
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-photo-placeholder { position: absolute; inset: 0; background: var(--brand-grad); }
.team-info { padding: 34px 32px; display: flex; flex-direction: column; }
.team-name { font-family: var(--font-display); font-size: 27px; font-weight: 500; color: var(--navy); }
.team-role { color: var(--cobalt); font-weight: 500; font-size: 14px; letter-spacing: 0.04em; margin-top: 2px; }
.team-license {
    display: inline-block; align-self: flex-start;
    border: 1px solid var(--cobalt-pale); color: var(--cobalt-mid);
    font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 6px 12px; margin: 12px 0 16px;
}
.team-bio { color: var(--text-muted); font-size: 15px; line-height: 1.75; margin-bottom: 18px; }
.team-contact { margin-top: auto; display: grid; gap: 4px; }
.team-contact a { text-decoration: none; color: var(--navy); font-weight: 500; }
.team-contact a:first-child { font-size: 20px; color: var(--cobalt); }
.team-contact a:hover { color: var(--cobalt-mid); }

/* ── DLACZEGO MY: karty z numerem ── */
.why-card { position: relative; padding-left: 4px; }
.why-number {
    display: block; font-family: var(--font-display); font-size: 40px;
    color: rgba(255,255,255,0.28); line-height: 1; margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.18); padding-bottom: 14px;
}

/* ── ZESPOL "Ludzie za Twoim sukcesem": duze zdjecia + wysuwany aside ── */
.section-team-main { background: var(--white); }
.team-members { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 52px; }
.team-member { position: relative; outline: none; }
.team-member-photo {
    position: relative; aspect-ratio: 4 / 5; overflow: hidden;
    background: var(--cream-dark); border: var(--line);
}
.team-member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.6s ease; }
.team-member:hover .team-member-photo img,
.team-member:focus-within .team-member-photo img { transform: scale(1.05); }

.team-member-toggle {
    position: absolute; left: 0; bottom: 0; z-index: 2;
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--cobalt); color: var(--white);
    padding: 12px 18px;
    font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
    transition: opacity 0.3s, background 0.25s;
}
.team-member-toggle svg { transition: transform 0.25s; }
.team-member:hover .team-member-toggle,
.team-member:focus-within .team-member-toggle,
.team-member.is-open .team-member-toggle { opacity: 0; pointer-events: none; }

.team-member-aside {
    position: absolute; inset: 0; z-index: 3;
    background: var(--brand-grad); color: var(--white);
    padding: 40px 36px;
    display: flex; flex-direction: column; justify-content: center;
    transform: translateX(101%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
    overflow-y: auto;
    /* Zwiniety panel stoi poza kadrem - bez tego czytnik ekranu i tab
       lapaly jego tresc, a przegladarka liczyla ja do szerokosci strony. */
    visibility: hidden;
}
.team-member:hover .team-member-aside,
.team-member:focus-within .team-member-aside,
.team-member.is-open .team-member-aside { transform: translateX(0); visibility: visible; }
.team-aside-role { color: var(--cobalt-light); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.team-aside-name { font-family: var(--font-display); font-size: 30px; font-weight: 500; margin: 4px 0 12px; }
.team-aside-license {
    display: inline-block; align-self: flex-start;
    border: 1px solid rgba(255,255,255,0.4);
    font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 6px 12px; margin-bottom: 18px;
}
.team-aside-bio { font-size: 15px; line-height: 1.75; color: rgba(255,255,255,0.9); margin-bottom: 22px; }
.team-aside-contact { display: grid; gap: 10px; margin-top: auto; }
.team-aside-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 500; }
.team-aside-contact a:first-child { font-size: 19px; }
.team-aside-contact a:hover { color: var(--cobalt-light); }

.team-member-base { padding: 20px 4px 0; }
.team-member-name { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--navy); }
.team-member-role { color: var(--cobalt); font-size: 14px; letter-spacing: 0.03em; margin-top: 2px; }

/* ── PARALLAX DIVIDER: statyczne zdjecie w tle ── */
.parallax-divider {
    position: relative;
    min-height: 420px;
    background-size: cover; background-position: center;
    background-attachment: fixed;
    display: flex; align-items: center;
    overflow: hidden;
}
.parallax-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(23,36,54,0.82), rgba(39,62,88,0.6)); }
.parallax-content { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.parallax-sub { color: var(--cobalt-light); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin-bottom: 20px; }
.parallax-text {
    font-family: var(--font-display); font-style: italic;
    color: var(--white);
    font-size: clamp(24px, 3.4vw, 38px);
    line-height: 1.4;
}
.parallax-text::before, .parallax-text::after { content: '\201E'; color: var(--cobalt-light); }
.parallax-text::after { content: '\201D'; }

/* ── O NAS teaser: editorialny, asymetryczny ── */
.section-about-editorial { background: var(--white); }
.about-editorial { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
.about-ed-media { position: relative; padding: 0 0 40px 40px; }
.about-ed-media > img, .about-ed-media .about-placeholder {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    position: relative; z-index: 1;
}
.about-ed-media::before {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 70%; height: 78%;
    border: 1px solid var(--cobalt-light);
    z-index: 0;
}
.about-ed-badge {
    position: absolute; right: -1px; bottom: 0; z-index: 2;
    background: var(--brand-grad); color: var(--white);
    padding: 22px 26px; text-align: center;
    min-width: 150px;
}
.about-ed-badge-num { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; }
.about-ed-badge-label { display: block; font-size: 12px; letter-spacing: 0.06em; margin-top: 6px; color: rgba(255,255,255,0.85); text-transform: uppercase; }
.about-ed-text { color: var(--text-muted); margin: 14px 0 28px; }
.about-ed-values { display: grid; gap: 20px; margin-bottom: 32px; }
.about-ed-values li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.about-ed-value-num { font-family: var(--font-display); font-size: 24px; color: var(--cobalt); line-height: 1.1; }
.about-ed-value-body { display: grid; gap: 3px; }
.about-ed-value-body strong { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.about-ed-value-body > span { color: var(--text-muted); font-size: 15px; }

/* ── Przyciski pod zdjeciem w "Jak pomagamy" ── */
.help-cta-under { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ── WYCENA CTA (ciemna) ── */
.valuation-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.valuation-points { display: grid; gap: 12px; }
.valuation-points li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.valuation-points svg { color: #8fd0a8; flex-shrink: 0; }
.valuation-cta { text-align: center; display: grid; gap: 18px; justify-items: center; }
.valuation-after { font-size: 15px; color: rgba(255,255,255,0.75); }
/* Pionowy podglad raportu nad przyciskiem */
.valuation-report-preview { width: 100%; max-width: 290px; }
.valuation-report-preview img { width: 100%; display: block; box-shadow: 0 14px 44px rgba(0,0,0,0.35); }
.valuation-report-placeholder {
    width: 100%; aspect-ratio: 1 / 1.414;
    border: 2px dashed rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.65); font-size: 14px; text-align: center; padding: 20px;
}
.valuation-report { border: var(--line); background: var(--white); }
.valuation-report img { width: 100%; display: block; }
.valuation-report figcaption { padding: 12px 16px; font-size: 13px; color: var(--text-muted); text-align: center; border-top: var(--line); letter-spacing: 0.04em; }

/* ── BLOG: lista ── */
.blog-wrap { padding: 56px 24px 84px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: var(--white); border: var(--line); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; display: flex; }
.blog-card:hover { border-color: var(--cobalt-light); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.blog-link { display: flex; flex-direction: column; text-decoration: none; width: 100%; }
.blog-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-dark); }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-media img { transform: scale(1.04); }
.blog-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
}
.blog-meta-sep { opacity: 0.6; }
.blog-date { font-size: 13px; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.blog-title {
    font-family: var(--font-display); font-size: 24px; font-weight: 500;
    color: var(--navy); line-height: 1.25; margin: 10px 0 10px;
}
.blog-card:hover .blog-title { color: var(--cobalt); }
.blog-excerpt { color: var(--text-muted); font-size: 16px; line-height: 1.65; margin-bottom: 18px; }
.blog-body .link-arrow { margin-top: auto; align-self: flex-start; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Najnowszy wpis: szeroka karta przez cala siatke, zdjecie obok tekstu */
.blog-card-feature { grid-column: 1 / -1; }
.blog-card-feature .blog-link { display: grid; grid-template-columns: 1.15fr 1fr; }
.blog-card-feature .blog-media { aspect-ratio: auto; min-height: 340px; }
.blog-card-feature .blog-body { padding: 44px 44px 40px; justify-content: center; }
.blog-card-feature .blog-title { font-size: 34px; margin: 14px 0 14px; }
.blog-card-feature .blog-excerpt { font-size: 17.5px; }
.blog-badge {
    position: absolute; left: 0; top: 20px;
    background: var(--cobalt); color: var(--white);
    font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 7px 14px;
}

/* Przerywnik miedzy wierszami listy - lista nie jest monotonna */
.blog-inline-cta {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    background: var(--brand-grad); color: var(--white);
    padding: 34px 38px;
}
.blog-inline-kicker { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt-light); }
.blog-inline-title { font-family: var(--font-display); font-size: 27px; font-weight: 500; margin: 6px 0 8px; }
.blog-inline-text { color: rgba(255,255,255,0.82); font-size: 16px; max-width: 620px; }
.blog-inline-cta .btn { flex-shrink: 0; }
.blog-empty { color: var(--text-muted); }

/* ── BLOG: pojedynczy wpis ── */
.post-hero-photo { padding-bottom: 64px; }
.post-title { max-width: 900px; }
.post-hero-meta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 14px;
    font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

/* Pasek postepu czytania pod naglowkiem */
.reading-progress {
    position: fixed; left: 0; right: 0; top: 0; z-index: 205;
    height: 3px; background: transparent; pointer-events: none;
}
.reading-progress span { display: block; height: 100%; width: 0; background: var(--cobalt); transition: width 0.1s linear; }

.post-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px;
    align-items: start;
    padding: 56px 24px 72px;
}
.post-main { min-width: 0; }
/* Tresc wpisu ma juz kolumne - nie centrujemy jej drugi raz.
   Selektor podwojny (.entry-content.post-content), bo ogolne reguly
   .entry-content stoja nizej w pliku i przy rownej wadze wygrywaja. */
.entry-content.post-content { max-width: 760px; margin: 0; padding: 0; }
.post-content > p:first-of-type { font-size: 19.5px; line-height: 1.7; color: var(--navy); }
.post-content h2 {
    font-family: var(--font-display); font-size: 32px; color: var(--navy);
    margin: 1.5em 0 0.5em; padding-top: 14px; border-top: var(--line);
    scroll-margin-top: calc(var(--header-h) + 24px);
}
.post-content h3 {
    font-size: 22px; color: var(--navy); margin: 1.4em 0 0.4em;
    scroll-margin-top: calc(var(--header-h) + 24px);
}
.entry-content.post-content ul { list-style: none; padding-left: 0; }
.entry-content.post-content ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.entry-content.post-content ul li::before {
    content: ''; position: absolute; left: 0; top: 12px;
    width: 14px; height: 1.5px; background: var(--cobalt);
}
.entry-content.post-content ol { padding-left: 1.3em; }
.entry-content.post-content ol li { margin-bottom: 10px; }
.post-content blockquote {
    margin: 30px 0; padding: 22px 26px;
    background: var(--cream); border-left: 3px solid var(--cobalt);
    font-family: var(--font-display); font-size: 21px; font-style: italic; line-height: 1.5; color: var(--navy);
}
.post-content img { margin: 26px 0; }
.post-content strong { font-weight: 500; color: var(--navy); }
.post-content a:not(.btn) { color: var(--cobalt); text-underline-offset: 3px; }

/* CTA wstawiane w polowie dlugiego tekstu */
.post-inline-cta {
    margin: 38px 0; padding: 28px 30px;
    background: var(--cobalt-pale); border-left: 3px solid var(--cobalt);
    display: grid; gap: 8px; justify-items: start;
}
.post-inline-kicker { font-family: var(--font-display); font-size: 23px; color: var(--navy); }
.post-inline-text { color: var(--text-muted); font-size: 16.5px; }
.post-inline-cta .btn { margin-top: 8px; }

.post-share { display: flex; align-items: center; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: var(--line); }
.post-share-label { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; }
.post-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: var(--line); color: var(--navy);
    transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.post-share-btn:hover { border-color: var(--cobalt); color: var(--cobalt); background: var(--cobalt-pale); }

/* Kolumna boczna wpisu */
.post-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; align-self: start; }
.post-aside-label, .post-aside-kicker {
    font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cobalt);
    margin-bottom: 12px;
}
.post-aside-card { background: var(--white); border: var(--line); padding: 24px 24px 26px; }
.post-aside-title { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--navy); line-height: 1.25; }
.post-aside-text { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 8px 0 18px; }
.post-aside-card .btn { width: 100%; }
.post-aside-cta { border-top: 3px solid var(--cobalt); }
.post-aside-ebook { background: var(--cream); }

.post-toc { background: var(--white); border: var(--line); border-left: 3px solid var(--cobalt-light); padding: 22px 22px 20px; }
.post-toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.post-toc a {
    display: block; padding: 7px 0; font-size: 15px; line-height: 1.45;
    color: var(--text-muted); text-decoration: none;
    border-left: 2px solid transparent; padding-left: 12px; margin-left: -12px;
    transition: color 0.2s, border-color 0.2s;
}
.post-toc a:hover { color: var(--cobalt); }
.post-toc a.is-current { color: var(--navy); border-left-color: var(--cobalt); font-weight: 500; }
.post-toc-l3 a { padding-left: 26px; font-size: 14.5px; }

.post-aside-people { display: grid; gap: 12px; margin-bottom: 16px; }
.post-aside-people li { display: grid; gap: 2px; }
.post-aside-person { font-weight: 500; color: var(--navy); }
.post-aside-role { font-size: 13.5px; color: var(--text-muted); }

.post-aside-more { display: grid; gap: 4px; }
.post-aside-more a {
    display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center;
    padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--cream-dark);
}
.post-aside-more li:last-child a { border-bottom: 0; }
.post-aside-more img, .post-aside-thumb-empty {
    width: 64px; height: 52px; object-fit: cover; display: block; background: var(--cream-dark);
}
.post-aside-more-title { display: block; font-size: 15px; line-height: 1.35; color: var(--navy); }
.post-aside-more a:hover .post-aside-more-title { color: var(--cobalt); }
.post-aside-more-date { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

.section-related { background: var(--cream); }
.section-related .blog-grid { margin-top: 40px; }

/* ── AKTUALNOSCI: belka laczaca z blogiem ── */
.news-bar { background: var(--brand-grad); color: var(--white); padding: 46px 0; }
.news-bar-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.news-bar-kicker { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt-light); }
.news-bar-title { font-family: var(--font-display); font-size: 28px; font-weight: 500; flex: 1; }
.news-bar-head .link-arrow { color: var(--white); }
.news-bar-head .link-arrow:hover { color: var(--cobalt-light); }
.news-bar-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.18); }
.news-bar-item a {
    display: flex; align-items: center; gap: 16px; height: 100%;
    background: rgba(19, 30, 45, 0.35); padding: 16px 18px;
    text-decoration: none; color: var(--white);
    transition: background-color 0.25s;
}
.news-bar-item a:hover { background: rgba(19, 30, 45, 0.6); }
.news-bar-thumb { width: 74px; height: 58px; flex-shrink: 0; overflow: hidden; background: rgba(255,255,255,0.12); }
.news-bar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-bar-body { display: grid; gap: 4px; min-width: 0; }
.news-bar-date { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.news-bar-name { font-size: 16px; line-height: 1.35; }

/* ── AKTUALNOSCI: archiwum jako os czasu ── */
.news-wrap { padding: 56px 24px 80px; }
.news-timeline { list-style: none; display: grid; gap: 28px; position: relative; }
.news-entry { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 26px; align-items: start; }
.news-entry-when { position: relative; text-align: right; padding-top: 22px; }
.news-entry-when time { display: grid; gap: 2px; }
.news-entry-day { font-family: var(--font-display); font-size: 38px; line-height: 1; color: var(--cobalt); }
.news-entry-month { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
/* Kreska osi czasu miedzy datami */
.news-entry:not(:last-child) .news-entry-when::after {
    content: ''; position: absolute; right: -13px; top: 30px; bottom: -44px;
    width: 1px; background: var(--cream-dark);
}
.news-entry-when::before {
    content: ''; position: absolute; right: -17px; top: 30px;
    width: 9px; height: 9px; background: var(--cobalt);
}
.news-entry-card {
    display: grid; grid-template-columns: 260px minmax(0, 1fr);
    background: var(--white); border: var(--line);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.news-entry-card:hover { border-color: var(--cobalt-light); box-shadow: var(--shadow); }
.news-entry-media { display: block; overflow: hidden; background: var(--cream-dark); }
.news-entry-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.news-entry-card:hover .news-entry-media img { transform: scale(1.04); }
.news-entry-body { padding: 26px 28px 24px; display: flex; flex-direction: column; align-items: flex-start; }
.news-entry-title { font-family: var(--font-display); font-size: 25px; font-weight: 500; line-height: 1.25; margin-bottom: 10px; }
.news-entry-title a { color: var(--navy); text-decoration: none; }
.news-entry-title a:hover { color: var(--cobalt); }
.news-entry-text { color: var(--text-muted); font-size: 16.5px; margin-bottom: 16px; }
.news-entry-body .link-arrow { margin-top: auto; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── AKTUALNOSC: pojedyncza + belka pod tekstem ── */
.news-single { max-width: 820px; padding: 52px 24px 72px; }
.news-single-tag {
    display: inline-block; margin-bottom: 12px;
    background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35);
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 12px;
}
.news-single-content { max-width: none; }
.news-single-content > p:first-of-type { font-size: 20px; line-height: 1.7; color: var(--navy); }
.news-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--cream-dark); border: var(--line); margin-top: 40px; }
.news-strip-item {
    display: grid; gap: 5px; align-content: start;
    background: var(--white); padding: 22px 24px;
    text-decoration: none; transition: background-color 0.25s;
}
.news-strip-item:hover { background: var(--cobalt-pale); }
.news-strip-main { border-top: 3px solid var(--cobalt); }
.news-strip-label { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.news-strip-value { font-family: var(--font-display); font-size: 21px; color: var(--navy); line-height: 1.2; }
.news-strip-go { font-size: 13.5px; color: var(--cobalt); margin-top: 4px; }

@media (max-width: 900px) {
    .news-bar-list { grid-template-columns: 1fr; }
    .news-entry { grid-template-columns: 66px minmax(0, 1fr); gap: 16px; }
    .news-entry-day { font-size: 30px; }
    .news-entry-when::before, .news-entry:not(:last-child) .news-entry-when::after { display: none; }
    .news-entry-card { grid-template-columns: 1fr; }
    .news-entry-media img { aspect-ratio: 3 / 2; }
    .news-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .news-wrap { padding: 36px 18px 64px; }
    .news-entry { grid-template-columns: 1fr; gap: 10px; }
    .news-entry-when { text-align: left; padding-top: 0; }
    .news-entry-when time { display: flex; align-items: baseline; gap: 8px; }
    .news-entry-day { font-size: 24px; }
    .news-entry-body { padding: 22px 20px 20px; }
    .news-entry-title { font-size: 21px; }
    .news-single { padding: 36px 18px 56px; }
}

@media (max-width: 1080px) {
    .post-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
    .blog-card-feature .blog-media { min-height: 280px; }
    .blog-card-feature .blog-body { padding: 34px 32px; }
    .blog-card-feature .blog-title { font-size: 29px; }
}
@media (max-width: 900px) {
    /* Kolumna boczna schodzi pod tekst; spis tresci przestaje byc potrzebny */
    .post-layout { grid-template-columns: 1fr; gap: 44px; padding: 40px 24px 64px; }
    .post-aside { position: static; grid-template-columns: repeat(2, 1fr); }
    .post-toc { display: none; }
    .blog-card-feature .blog-link { grid-template-columns: 1fr; }
    .blog-card-feature .blog-media { min-height: 0; aspect-ratio: 3 / 2; }
    .blog-inline-cta { padding: 28px 26px; }
}
@media (max-width: 640px) {
    .blog-wrap { padding: 36px 18px 64px; }
    .post-aside { grid-template-columns: 1fr; }
    .blog-card-feature .blog-body { padding: 26px 22px 28px; }
    .blog-card-feature .blog-title { font-size: 25px; }
    .blog-title { font-size: 21px; }
    /* Ostatni okruszek to caly tytul wpisu - na telefonie lamal sie na dwie
       linie tuz nad tym samym tytulem w H1. Zostawiamy sciezke bez niego. */
    .single-post .page-hero .breadcrumbs span[aria-current],
    .single-post .page-hero .breadcrumbs .breadcrumbs-sep:has(+ span[aria-current]) { display: none; }
    .post-content > p:first-of-type { font-size: 18px; }
    .post-content h2 { font-size: 26px; }
    .post-inline-cta { padding: 24px 22px; }
    .post-inline-cta .btn { width: 100%; }
}

/* ── KONTAKT ── */
/* Kontakt: po lewej zdjecie i pod nim dane firmy, po prawej sam sticky formularz.
   Sticky dziala, bo lewa kolumna (zdjecie + dane) jest wyzsza niz formularz. */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.contact-aside { min-width: 0; }
/* Wiekszy odstep pod zdjeciem: dane firmy i ikony social nie moga sie kleic
   do kadru, bo caly blok czyta sie wtedy jak jeden slup. */
.contact-photo { margin: 0 0 48px; }
/* Caly kadr, bez przycinania - stala wysokosc + object-fit: cover ucinala
   glowy i nogi. Wysokosc wynika z proporcji zdjecia. */
.contact-photo img {
    display: block; width: 100%; height: auto; border: var(--line);
}
.contact-photo .about-placeholder {
    display: block; width: 100%; aspect-ratio: 4 / 3;
    border: var(--line); background: var(--brand-grad);
}
.contact-main { position: sticky; top: 90px; align-self: start; }
@media (max-width: 900px) {
    .contact-split { grid-template-columns: 1fr; gap: 28px; }
    .contact-main { position: static; }
    .contact-photo { margin-bottom: 32px; }
}

.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
.contact-promise { font-weight: 500; color: var(--cobalt); margin-bottom: 22px; }

/* Wariant sekcji kontaktu ze zdjeciem w tle */
.section-contact-photo { position: relative; background-size: cover; background-position: center; }
.contact-scrim { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(23,36,54,0.92) 0%, rgba(23,36,54,0.72) 60%, rgba(39,62,88,0.62) 100%); }
.section-contact-photo .container { position: relative; z-index: 1; }
.section-contact-photo .contact-list { color: rgba(255,255,255,0.88); }
.section-contact-photo .contact-list a { color: var(--white); }
.section-contact-photo .contact-list a:hover { color: var(--cobalt-light); }
.section-contact-photo .contact-promise { color: var(--cobalt-light); }
.section-contact-photo .contact-social-label { color: rgba(255,255,255,0.7); }
.section-contact-photo .contact-social-links a { border-color: rgba(255,255,255,0.6); color: var(--white); }
.section-contact-photo .contact-social-links a:hover { background: var(--white); color: var(--navy); }
.contact-list { display: grid; gap: 10px; font-size: 17px; }
.contact-list a { text-decoration: none; color: var(--navy); font-weight: 500; }
.contact-list a:hover { color: var(--cobalt); }

.contact-social { display: flex; align-items: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.contact-social-label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.contact-social-links { display: flex; gap: 10px; }
.contact-social-links a {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--cobalt); color: var(--cobalt);
    transition: background 0.25s, color 0.25s;
}
.contact-social-links a:hover { background: var(--cobalt); color: var(--white); }

.contact-form { background: var(--white); border: var(--line); padding: 40px; display: grid; gap: 18px; }
.contact-form-compact { padding: 0; border: 0; }
.form-row { display: grid; gap: 6px; }
.form-row-split { grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-split > div { display: grid; gap: 6px; }
.form-row label { font-size: 14px; font-weight: 500; color: var(--navy); }
.form-row input:not([type="checkbox"]), .form-row textarea, .filter-select, .filter-range input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--cream-dark);
    font: inherit;
    background: var(--cream);
    transition: border-color 0.25s, background 0.25s;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--cobalt); background: var(--white); outline: none; }
.form-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.form-consent input { margin-top: 3px; }
.form-feedback { font-weight: 500; }
.form-feedback.ok { color: var(--green); }
.form-feedback.err { color: var(--red); }

/* ── STOPKA ── */
.site-footer { background: #1b2a3d; color: rgba(255,255,255,0.85); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 4fr 3fr 2fr 3fr; gap: 40px; padding: 64px 24px 44px; }
.footer-logo { font-size: 22px; font-weight: 500; color: var(--white); margin-bottom: 12px; }
.footer-logo em { font-style: normal; color: var(--cobalt-light); }
.footer-title { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; font-weight: 500; }
.footer-list { display: grid; gap: 8px; font-size: 15px; }
.footer-list a { text-decoration: none; transition: color 0.25s; }
.footer-list a:hover { color: var(--cobalt-light); }
.footer-agents { display: grid; gap: 20px; }
.footer-agent { display: grid; gap: 2px; }
.footer-agent-name { color: var(--white); font-weight: 500; font-size: 16px; }
.footer-agent-license { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt-light); margin-bottom: 4px; }
.footer-agent a { text-decoration: none; font-size: 15px; transition: color 0.25s; }
.footer-agent a:hover { color: var(--cobalt-light); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white); text-decoration: none;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.footer-social a:hover { background: var(--cobalt); border-color: transparent; color: var(--white); }

/* Mapa na ofercie: zawsze widoczna */
.offer-map { border: var(--line); line-height: 0; margin-top: 4px; }
.offer-map iframe { display: block; width: 100%; filter: grayscale(0.12); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom-inner a { text-decoration: none; transition: color 0.25s; }
.footer-bottom-inner a:hover { color: var(--cobalt-light); }
.footer-bottom-left { flex: 1; }
.footer-bottom-center { flex: 1; text-align: center; }
.footer-bottom-right { flex: 1; text-align: right; }
.footer-bottom-right a { color: var(--cobalt-light); font-weight: 500; }
@media (max-width: 720px) {
    .footer-bottom-inner { flex-direction: column; gap: 8px; }
    .footer-bottom-left, .footer-bottom-center, .footer-bottom-right { flex: none; text-align: center; }
}

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 190;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: transform 0.25s;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ── PODSTRONY: naglowek ── */
.page-hero { position: relative; background: var(--brand-grad); color: var(--white); padding: calc(var(--header-h) + 72px) 0 56px; overflow: hidden; }
.page-hero > .container { position: relative; z-index: 1; }
/* Opcjonalne tlo ze zdjecia (Obrazek wyrozniajacy strony lub Customizer) */
.page-hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(23,36,54,0.88) 0%, rgba(39,62,88,0.7) 100%); }
.page-hero-compact { padding-bottom: 44px; }
.page-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }
.page-lead { font-size: 18px; color: rgba(255,255,255,0.85); }

/* ── LISTING OFERT ── */
.page-offers .container { padding-top: 36px; padding-bottom: 80px; }
.offers-filters-wrap { margin-bottom: 20px; }
.filters-toggle { display: none; }
.offers-filters {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 18px;
}
.filters-primary, .filters-detailed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 20px;
    align-items: end;
}
.filters-detailed { padding-top: 18px; border-top: var(--line); }
.filters-detailed[hidden] { display: none; }
.filter-group { display: grid; gap: 6px; align-content: start; }
.filter-group[hidden] { display: none; }
.filter-label { font-size: 13px; font-weight: 500; color: var(--navy); letter-spacing: 0.04em; text-transform: uppercase; }
.filter-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-group-more { align-self: end; }
.filters-more-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--cobalt); font-weight: 500; font-size: 14px;
    padding: 12px 0; letter-spacing: 0.02em;
}
.filters-more-toggle svg { transition: transform 0.25s; }
.filters-more-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.filter-actions { display: flex; align-items: center; gap: 16px; }
.filters-clear { color: var(--text-muted); font-size: 14px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.filter-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); border: 1px solid var(--cobalt-light); color: var(--cobalt-mid);
    padding: 6px 14px;
    font-size: 13.5px; font-weight: 500; text-decoration: none; letter-spacing: 0.03em;
}
.filter-chip:hover { background: var(--cobalt); color: var(--white); }
.offers-count { color: var(--text-muted); margin: 18px 0; }
.pagination-wrap { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.pagination-wrap .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 12px;
    text-decoration: none;
    background: var(--white); border: var(--line);
    font-weight: 500;
}
.pagination-wrap .page-numbers:hover { border-color: var(--cobalt); color: var(--cobalt); }
.pagination-wrap .page-numbers.current { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }

/* ── SINGLE OFERTA ── */
.single-offer .container { padding-top: calc(var(--header-h) + 28px); padding-bottom: 80px; }
.breadcrumbs { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cobalt); }
.breadcrumbs-sep { margin: 0 9px; opacity: 0.5; }
/* Wariant w ciemnym hero podstrony */
.page-hero .breadcrumbs { margin-bottom: 18px; }
.page-hero .breadcrumbs,
.page-hero .breadcrumbs a,
.page-hero .breadcrumbs span { color: rgba(255,255,255,0.78); }
.page-hero .breadcrumbs a:hover { color: var(--white); }
.offer-sold-notice {
    background: #fdecea; color: var(--red);
    border-radius: var(--radius-sm); padding: 14px 20px; margin-bottom: 20px; font-weight: 500;
}
.offer-gallery { margin-bottom: 36px; }

/* Slider glowny oferty: strzalki + miniatury przelaczaja zdjecie w miejscu */
.offer-slider { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border: var(--line); background: var(--cream-dark); }
.offer-slider-track { position: absolute; inset: 0; }
.offer-slider-slide { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; cursor: zoom-in; }
.offer-slider-slide.is-active { opacity: 1; pointer-events: auto; }
.offer-slider-slide img { width: 100%; height: 100%; object-fit: cover; }
.offer-slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.92); color: var(--navy); font-size: 26px; line-height: 1;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2); transition: background 0.2s;
}
.offer-slider-btn:hover { background: var(--white); }
.offer-slider-prev { left: 12px; }
.offer-slider-next { right: 12px; }
.offer-slider-counter { position: absolute; bottom: 12px; right: 12px; z-index: 3; background: rgba(20,30,44,0.72); color: var(--white); font-size: 13px; padding: 5px 12px; }
.offer-slider-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.offer-slider-thumb { flex: 0 0 96px; aspect-ratio: 3 / 2; padding: 0; overflow: hidden; border: 2px solid transparent; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.offer-slider-thumb img { width: 100%; height: 100%; object-fit: cover; }
.offer-slider-thumb.is-active { opacity: 1; border-color: var(--cobalt); }

/* Stare style galerii (pozostawione dla kompatybilnosci) */
.gallery-main { border-radius: var(--radius); overflow: hidden; display: block; padding: 0; }
.gallery-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-thumbs { display: grid; gap: 12px; }
.gallery-thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; padding: 0; }
.gallery-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-more {
    position: absolute; inset: 0;
    background: rgba(20, 30, 44, 0.6); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 500;
}
.lightbox {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(12, 18, 27, 0.96);
    display: flex; align-items: center; justify-content: center;
}
/* Bez tego .lightbox{display:flex} nadpisuje atrybut hidden i overlay wisi
   na stale nad oferta, lapiac klikniecia. */
.lightbox[hidden] { display: none; }
.lightbox-stage { max-width: 88vw; max-height: 84vh; }
.lightbox-slide img { max-width: 88vw; max-height: 78vh; width: auto; height: auto; object-fit: contain; }
/* Podpis pod powiekszonym dokumentem (co to jest i czyje) */
.lightbox-slide figcaption { display: grid; gap: 3px; text-align: center; margin-top: 16px; color: var(--white); }
.lightbox-slide figcaption strong { font-weight: 500; font-size: 16px; }
.lightbox-slide figcaption span { color: rgba(255,255,255,0.7); font-size: 14px; }
.lightbox-close { position: absolute; top: 18px; right: 24px; color: var(--white); font-size: 40px; line-height: 1; }
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: var(--white); font-size: 28px;
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); }

.offer-layout { display: grid; grid-template-columns: 7fr 4fr; gap: 48px; align-items: start; }
.offer-h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4vw, 40px); color: var(--navy); line-height: 1.2; margin-bottom: 6px; }
.offer-address { color: var(--text-muted); margin-bottom: 16px; }
.offer-price-big { font-size: clamp(28px, 3.6vw, 38px); font-weight: 600; color: var(--navy); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.offer-price-big .offer-ppm { font-size: 16px; }
.offer-keyfacts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.offer-keyfacts li { border: 1px solid var(--cobalt-light); color: var(--cobalt-mid); padding: 7px 16px; font-size: 14px; letter-spacing: 0.04em; }
.offer-description { color: var(--text); max-width: 68ch; }
.offer-description p { margin-bottom: 1em; }
.offer-params-section, .offer-map-section { margin-top: 44px; }
.offer-params-section h2, .offer-map-section h2, .offer-similar h2 {
    font-family: var(--font-display); font-weight: 500; font-size: 28px; color: var(--navy); margin-bottom: 18px;
}
.offer-params-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.offer-params-table > div {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 11px 0; border-bottom: 1px solid var(--cream-dark);
}
.offer-params-table dt { color: var(--text-muted); }
.offer-params-table dd { font-weight: 500; text-align: right; }
.offer-map-facade {
    width: 100%; aspect-ratio: 16 / 7;
    border-radius: var(--radius);
    background: var(--cream-dark) center/cover;
    display: flex; align-items: center; justify-content: center;
    color: var(--navy); font-weight: 500;
}
.offer-map-facade span { background: var(--white); padding: 10px 22px; box-shadow: var(--shadow); }
.offer-map-frame { width: 100%; aspect-ratio: 16 / 7; border: 0; border-radius: var(--radius); }

.offer-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.agent-box { background: var(--white); border: var(--line); border-top: 3px solid var(--cobalt); padding: 32px; }
/* ── INWESTYCJE: deweloper + dwie sciezki kontaktu ── */
.section-dev { background: var(--white); }
.dev-signature { display: grid; gap: 2px; margin: 26px 0 24px; padding-left: 16px; border-left: 3px solid var(--cobalt); }
.dev-signature strong { font-size: 16px; color: var(--navy); font-weight: 500; }
.dev-signature span { font-size: 14px; color: var(--text-muted); }
.dev-signature a { font-size: 18px; font-weight: 600; color: var(--cobalt); text-decoration: none; }
.dev-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.inv-paths-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 44px; }
.inv-path {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.22);
    padding: 34px 32px; display: flex; flex-direction: column; align-items: flex-start;
    transition: background 0.3s, border-color 0.3s;
}
.inv-path:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }
.inv-path-title { font-family: var(--font-display); font-size: 25px; font-weight: 500; color: var(--white); margin-bottom: 12px; }
.inv-path p { color: rgba(255,255,255,0.82); font-size: 15.5px; line-height: 1.8; margin-bottom: 24px; }
.inv-path .btn { margin-top: auto; }
@media (max-width: 900px) {
    .inv-paths-grid { grid-template-columns: 1fr; gap: 20px; }
    .inv-path { padding: 28px 24px; }
}

/* Opiekun oferty: zdjecie obok danych, portret zamiast malego kolka */
.agent-head { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; margin-bottom: 18px; }
.agent-photo { width: 96px; height: 120px; object-fit: cover; object-position: center 22%; display: block; }
.agent-photo-empty {
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-grad); color: var(--white);
    font-family: var(--font-display); font-size: 30px;
}
.agent-head-body { display: grid; gap: 3px; }
.agent-kicker { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt); }
.agent-name { font-weight: 500; font-size: 18px; color: var(--navy); line-height: 1.25; }
.agent-role { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.agent-license { font-size: 12px; color: var(--cobalt-mid); letter-spacing: 0.02em; }
.agent-phone { display: block; font-size: 22px; font-weight: 600; color: var(--cobalt); text-decoration: none; }
.agent-email { display: inline-block; font-size: 14.5px; color: var(--text-muted); text-decoration: none; margin: 2px 0 18px; }
.agent-email:hover { color: var(--cobalt); }
.agent-form-title { font-size: 20px; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.agent-form-lead { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.offer-similar { margin-top: 64px; }

.offer-sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
    display: none;
    gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.12);
}
.offer-sticky-bar .btn { flex: 1; }

/* ── TRESCI / PROZA ── */
.entry-content { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.entry-content h2 { font-family: var(--font-display); color: var(--navy); font-size: 30px; margin: 1.4em 0 0.5em; }
.entry-content h3 { color: var(--navy); font-size: 22px; margin: 1.2em 0 0.4em; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1em; }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
/* :not(.btn) - inaczej ta regula przebija .btn-primary i przycisk wstawiony
   w tresc ma tekst w kolorze wlasnego tla (niewidoczny). */
.entry-content a:not(.btn) { color: var(--cobalt); }

/* ── NAWIGACJA WPISOW ── */
.post-nav { padding: 48px 0; border-top: var(--line); margin-top: 40px; }
.post-nav-inner { display: flex; justify-content: space-between; gap: 24px; }
.post-nav-item { display: grid; gap: 6px; text-decoration: none; max-width: 46%; transition: transform 0.25s; }
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav-prev:hover { transform: translateX(-4px); }
.post-nav-next:hover { transform: translateX(4px); }
.post-nav-dir { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt); font-weight: 500; }
.post-nav-title { font-family: var(--font-display); font-size: 20px; color: var(--navy); line-height: 1.3; }

/* ── HERO USŁUGI: pełny ekran ── */
.service-hero {
    /* Nie pelny ekran: hero ma byc wizytowka uslugi, a nie sciana do
       przewiniecia. Tresc po lewej, formularz po prawej. */
    min-height: clamp(600px, 82vh, 880px);
    display: flex; align-items: center;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 72px;
}
.service-hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.35fr 0.95fr; gap: 64px; align-items: center;
}
.service-hero-inner { max-width: 680px; }
.service-hero .hero-kicker { color: var(--cobalt-light); }
.service-hero-title {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(38px, 4.6vw, 62px); line-height: 1.08;
    color: var(--white); margin: 10px 0 18px;
}
.service-hero-lead { font-size: clamp(17px, 1.9vw, 20px); color: rgba(255,255,255,0.88); max-width: 560px; margin-bottom: 30px; }
.service-hero-note { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,0.65); max-width: 460px; line-height: 1.7; }
.service-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.service-hero-facts { display: flex; flex-wrap: wrap; gap: 36px; margin-bottom: 34px; }

/* Karta formularza na zdjeciu: jasna plama, ktora nie ginie na tle */
.service-hero-form {
    background: var(--white);
    padding: 30px 28px;
    box-shadow: 0 26px 64px rgba(9, 18, 32, 0.42);
    max-width: 440px; width: 100%; justify-self: end;
}
.service-hero-facts li { display: flex; flex-direction: column; gap: 3px; position: relative; }
.service-hero-facts li:not(:last-child)::after { content: ''; position: absolute; right: -22px; top: 6px; bottom: 6px; width: 1px; background: rgba(255,255,255,0.2); }
.shf-num { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 36px); font-weight: 500; color: var(--white); line-height: 1; }
.shf-label { font-size: 12.5px; max-width: 190px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.service-hero-scroll {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    color: rgba(255,255,255,0.7); z-index: 2;
    animation: mbhBounce 2s ease-in-out infinite;
}
.service-hero-scroll:hover { color: var(--white); }
@keyframes mbhBounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (max-width: 1080px) {
    .service-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .service-hero-inner { max-width: none; }
    .service-hero-form { justify-self: start; max-width: 520px; }
}
@media (max-width: 640px) {
    .service-hero { min-height: 0; padding-bottom: 56px; }
    .service-hero-facts { gap: 22px 28px; margin-bottom: 26px; }
    .service-hero-facts li:not(:last-child)::after { display: none; }
    .service-hero-form { padding: 24px 20px; }
}

/* ── POJEDYNCZA INWESTYCJA ── */
.investment-hero-badge {
    display: inline-block; margin-bottom: 14px;
    background: rgba(255,255,255,0.16); color: var(--white);
    border: 1px solid rgba(255,255,255,0.35);
    font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
    padding: 6px 14px;
}
.investment-hero-badge.u-green { background: rgba(29,138,78,0.9); border-color: transparent; }
.investment-hero-badge.u-amber { background: rgba(199,123,30,0.9); border-color: transparent; }
.investment-hero-badge.u-red { background: rgba(192,57,43,0.9); border-color: transparent; }
.investment-hero-facts { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 30px; }
.investment-hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.ihf-value { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 500; color: var(--white); line-height: 1; }
.ihf-label { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.72); }

/* Mini-nawigacja sekcji: sticky pod headerem, chowa sie przy scrollu w dol.
   top musi uwzglednic staly naglowek, inaczej pasek chowa sie pod nim. */
.subpage-nav {
    /* +10 px: realna wysokosc naglowka jest o kilka pikseli wieksza niz zmienna,
       a pasek nie moze chowac sie pod nim (wczesniej mial top: 0). */
    position: sticky; top: calc(var(--header-h) + 10px); z-index: 120;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cream-dark);
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.subpage-nav.is-hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.subpage-nav-inner { display: flex; gap: 8px; overflow-x: auto; padding: 10px 24px; scrollbar-width: none; }
.subpage-nav-inner::-webkit-scrollbar { display: none; }
.subpage-nav a {
    white-space: nowrap; text-decoration: none;
    font-size: 13.5px; font-weight: 500; color: var(--text-muted);
    padding: 7px 14px; border: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.subpage-nav a:hover { color: var(--cobalt); }
.subpage-nav a.is-current { color: var(--cobalt); border-color: var(--cobalt-light); background: var(--cobalt-pale); }

/* O inwestycji: foto + opis */
.investment-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
/* Opis inwestycji bywa dlugi, wiec zdjecie jedzie razem z nim zamiast
   zostawiac pol ekranu pustki. top = wysokosc navbara + oddech. */
.investment-intro-media { position: sticky; top: calc(var(--header-h) + 24px); }
.investment-intro-media img, .investment-intro-media .about-placeholder { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: var(--line); }
.investment-intro-text .about-lead { font-size: 19px; color: var(--text); margin-bottom: 16px; }
.investment-intro-cta { margin-top: 24px; }

/* Media */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 40px; }
.media-item { display: flex; align-items: center; gap: 12px; background: var(--white); border: var(--line); border-left: 3px solid var(--cobalt); padding: 16px 20px; font-weight: 500; color: var(--navy); }

/* Technologia (ciemna) */
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-top: 40px; }
.tech-item { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,0.9); font-size: 15.5px; line-height: 1.6; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.tech-item svg { flex-shrink: 0; margin-top: 3px; color: var(--cobalt-light); }

/* Tabela dostepnych domow */
.units-wrap { overflow-x: auto; margin-top: 36px; }
.units-table { width: 100%; background: var(--white); border: var(--line); border-collapse: collapse; }
.units-table th { background: var(--cobalt-pale); text-align: left; padding: 14px 18px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.units-table td { padding: 14px 18px; border-top: var(--line); }
.units-table tr.unit-sold { opacity: 0.5; }
.unit-status { font-size: 13px; font-weight: 500; }
.unit-status.u-green { color: var(--green); }
.unit-status.u-amber { color: var(--amber); }
.unit-status.u-red { color: var(--red); }

/* Galeria inwestycji */
.investment-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.investment-gallery-item { padding: 0; overflow: hidden; border: var(--line); aspect-ratio: 3/2; }
.investment-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.investment-gallery-item:hover img { transform: scale(1.05); }
/* 6 kadrow na start, reszta pod przyciskiem. Klase "is-collapsed" nadaje JS,
   wiec bez JS widac cala galerie, a przycisk (renderowany jako hidden)
   w ogole sie nie pokazuje - zamiast martwego guzika. */
.investment-gallery.is-collapsed .investment-gallery-item.is-extra { display: none; }
.gallery-more { margin-top: 26px; text-align: center; }

.section-invest-contact { background: var(--cream); }

/* Kontakt w inwestycji: zdjecie opiekuna po lewej, formularz po prawej */
.invest-contact-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 52px; align-items: start; }
.invest-contact-aside { min-width: 0; position: sticky; top: 110px; }
.invest-contact-photo { margin: 0; overflow: hidden; }
/* Proporcja 3:4 zamiast sztywnych 440 px: zdjecia z sesji sa pionowe (2:3),
   wiec kadr w niskiej ramce ucinal sylwetke w przypadkowym miejscu. */
.invest-contact-photo img {
    width: 100%; height: auto; aspect-ratio: 3 / 4;
    object-fit: cover; object-position: 50% 0; display: block;
}
.invest-contact-photo-empty {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4;
    background: var(--brand-grad); color: var(--white);
    font-family: var(--font-display); font-size: 54px; letter-spacing: 0.04em;
}
.invest-contact-agent { background: var(--white); border: var(--line); border-top: 3px solid var(--cobalt); padding: 22px 24px; }
.invest-contact-agent .agent-kicker { display: block; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.invest-contact-agent .agent-name { font-family: var(--font-display); font-size: 22px; color: var(--navy); margin-top: 4px; }
.invest-contact-agent .agent-role { display: block; font-size: 14.5px; color: var(--text-muted); margin-top: 2px; }
.invest-contact-agent .service-aside-contact { margin-top: 14px; }
.invest-contact-main .section-lead { margin-bottom: 26px; }

@media (max-width: 900px) {
    .invest-contact-split { grid-template-columns: 1fr; gap: 30px; }
    .invest-contact-aside { position: static; }
    /* Jedna kolumna: zdjecie na calej szerokosci byloby ogromne, wiec
       wracamy do niskiego kadru. */
    .invest-contact-photo img, .invest-contact-photo-empty { height: 320px; aspect-ratio: auto; }
    /* Jedna kolumna: sticky nie ma sensu, zdjecie jest nad tekstem. */
    .investment-intro-media { position: static; }
    .investment-intro { grid-template-columns: 1fr; gap: 32px; }
    .tech-grid { grid-template-columns: 1fr; }
    .investment-gallery { grid-template-columns: repeat(2, 1fr); }
    .investment-hero-facts { gap: 24px; }
}

/* ── MAPA KONTAKT: niebieskie tlo wokol ── */
.section-map { background: var(--brand-grad); padding: 64px 0; }
.contact-map { border: 4px solid rgba(255,255,255,0.12); line-height: 0; box-shadow: var(--shadow-hover); }
.contact-map iframe { display: block; width: 100%; filter: grayscale(0.15); }

/* ── E-BOOK: wprowadzenie ── */
.ebook-intro { display: grid; grid-template-columns: 3fr 2fr; gap: 56px; align-items: center; }
.ebook-benefits { background: var(--cobalt-pale); padding: 34px 32px; }
.ebook-benefits-title { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--navy); margin-bottom: 18px; }
.ebook-benefits ul { display: grid; gap: 14px; }
.ebook-benefits li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--text); }
.ebook-benefits li svg { flex-shrink: 0; margin-top: 3px; }
@media (max-width: 900px) { .ebook-intro { grid-template-columns: 1fr; gap: 36px; } }

/* ── E-BOOK: wprowadzenie ── */
.ebook-intro { display: grid; grid-template-columns: 3fr 2fr; gap: 56px; align-items: start; }
.ebook-benefits { background: var(--cobalt-pale); border-left: 3px solid var(--cobalt); padding: 32px 30px; }
.ebook-benefits-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--navy); margin-bottom: 18px; }
.ebook-benefits ul { display: grid; gap: 14px; }
.ebook-benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); }
.ebook-benefits li svg { flex-shrink: 0; margin-top: 3px; }
@media (max-width: 900px) { .ebook-intro { grid-template-columns: 1fr; gap: 32px; } }

/* ── FAQ ── */
.faq-list { display: grid; gap: 12px; }
.faq-item {
    background: var(--white);
    border: var(--line);
    padding: 0 22px;
    transition: border-color 0.3s;
}
.faq-item[open], .faq-item:hover { border-color: var(--cobalt-light); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 30px 18px 0;
    font-weight: 500; font-size: 17px; color: var(--navy);
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ''; position: absolute; right: 4px; top: 50%;
    width: 9px; height: 9px;
    border-right: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item p { padding: 0 0 18px; color: var(--text-muted); }

/* ── PROCES (ciemna): karty jak na LP - polprzezroczyste z obrysem ── */
.process-step {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 40px 30px 34px;
    transition: background 0.3s, border-color 0.3s;
}
.process-step:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.45); }
.help-grid .process-step:nth-child(even) { transform: translateY(26px); }

/* Proces jako os czasu: numery na linii laczacej kolejne kroki */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.process-grid .process-step { position: relative; padding: 34px 26px 30px; background: rgba(255,255,255,0.07); }
.process-grid .process-step::before {
    content: ''; position: absolute; top: 58px; right: -24px; width: 24px; height: 1px;
    background: rgba(255,255,255,0.28);
}
.process-grid .process-step:last-child::before { display: none; }
.process-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.45);
    font-family: var(--font-display); font-size: 20px; color: var(--white);
}
.process-step:hover .process-number { background: var(--white); color: var(--navy); }
.process-title { font-family: var(--font-display); font-size: 23px; font-weight: 500; color: var(--white); margin-bottom: 10px; }
.process-grid .process-step p { color: rgba(255,255,255,0.8); font-size: 15.5px; line-height: 1.75; }

/* "Co dostajesz od pierwszego dnia": trzy obietnice z numerem */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.promise-card { background: var(--white); border: var(--line); border-top: 3px solid var(--cobalt); padding: 34px 30px 30px; transition: box-shadow 0.3s, transform 0.3s; }
.promise-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.promise-number { font-family: var(--font-display); font-size: 34px; color: var(--cobalt-light); line-height: 1; }
.promise-title { font-family: var(--font-display); font-size: 23px; font-weight: 500; color: var(--navy); margin: 10px 0 10px; }
.promise-card p { color: var(--text-muted); font-size: 15.5px; line-height: 1.8; }

/* Naglowek nad kafelkami "sprzedajesz / kupujesz" */
.section-scenarios .pillars-grid { margin-top: 0; }

/* ── 404 ── */
.error-page { text-align: center; padding: calc(var(--header-h) + 100px) 24px 120px; }
.error-code { font-family: var(--font-display); font-size: 120px; color: var(--cobalt-pale); -webkit-text-stroke: 2px var(--cobalt); line-height: 1; }
.error-page h1 { font-size: 30px; color: var(--navy); margin: 16px 0 10px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
    .help-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .offers-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .filters-primary, .filters-detailed { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Naglowek nie zawija sie w druga linie, wiec schodzimy z nim stopniowo:
   numer telefonu zostaje tak dlugo, jak sie miesci (logo + 7 pozycji + numer
   + CTA potrzebuja ok. 1370 px), nizej zwezamy odstepy, a ponizej 900 px
   caly navbar zamienia sie w hamburger. */
@media (max-width: 1400px) {
    .header-phone { display: none; }
}
@media (max-width: 1300px) {
    .header-inner { gap: 16px; padding: 14px 20px; }
    .logo-img { max-height: 60px; }
    .scrolled .logo-img, .solid .logo-img { max-height: 50px; }
    .nav-list { gap: 16px; }
    .nav-list a { font-size: 14.5px; }
}
@media (max-width: 900px) {
    :root { --header-h: 84px; }
    .site-nav { display: none; }
    .header-phone, .header-cta { display: none; }
    .nav-toggle { display: flex; }
    .header-call { display: inline-flex; }
    .header-inner { padding: 10px 16px; gap: 12px; }
    .logo-img, .scrolled .logo-img, .solid .logo-img { max-height: 56px; }
}

@media (max-width: 900px) {
    .section { padding: 64px 0; }
    /* Schodkowe uklady wracaja do pionu na mobile */
    .pillars-grid .pillar-card:nth-child(2),
    .help-grid .help-card:nth-child(2),
    .help-grid .help-card:nth-child(3),
    .help-grid .process-step:nth-child(even),
    .investments-grid .investment-card:nth-child(even) { transform: none; }
    .section-help .section-cta-row { margin-top: 40px; }
    /* Palec potrzebuje ~44 px: linki w stopce, okruszki, dane kontaktowe
       i samodzielne odnosniki CTA (linki w akapitach zostawiamy w tekscie) */
    .footer-list a, .footer-agent a, .footer-bottom a, .breadcrumbs a,
    .contact-list a, .service-aside-contact a, .duo-contact a, .team-member-contact a,
    .link-arrow, .service-card-link, .testimonial-link, .review-link,
    .news-entry-title a, .news-bar-name {
        display: inline-flex; align-items: center; min-height: 42px;
    }
    .footer-social a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
    .pillars-grid, .help-grid, .help-grid-2, .help-grid-4, .investments-grid { grid-template-columns: 1fr; }
    .about-grid, .contact-grid, .valuation-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-editorial { grid-template-columns: 1fr; gap: 48px; }
    .about-ed-media { max-width: 460px; }
    .team-members { grid-template-columns: 1fr; gap: 24px; max-width: 460px; margin-left: auto; margin-right: auto; }
    /* background-attachment: fixed jest kosztowny/janky na mobile */
    .parallax-divider { background-attachment: scroll; min-height: 320px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .stat-item:nth-child(2)::after { display: none; }
    .certificates-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr; }
    .team-card { grid-template-columns: 1fr; }
    .team-photo { min-height: 300px; }
    .section-team + .section-dark .help-grid,
    .section-about + .section .help-grid { grid-template-columns: 1fr !important; }
    .offer-layout { grid-template-columns: 1fr; }
    .offer-sidebar { position: static; }
    .offer-gallery { grid-template-columns: 1fr; }
    .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
    .offer-sticky-bar { display: flex; }
    .single-offer .container { padding-bottom: 120px; }
    /* Na ofercie dolny pasek CTA ma pierwszenstwo - dymek WhatsAppa nad niego */
    .single-oferta .whatsapp-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    /* Nizszy naglowek na telefonie - wszystkie odstepy licza z tej zmiennej */
    :root { --header-h: 68px; }
    .logo-img, .scrolled .logo-img, .solid .logo-img { max-height: 46px; }
    .offers-grid, .blog-grid { grid-template-columns: 1fr; }
    .form-row-split { grid-template-columns: 1fr; }
    .offer-params-table { grid-template-columns: 1fr; }
    .hero { min-height: 100vh; min-height: 100svh; }
    .hero-scroll { display: none; }
    .hero-facts-inner { flex-wrap: wrap; gap: 18px; padding: 18px 24px; }
    .hero-fact { flex: 0 0 calc(50% - 12px); }
    .hero-fact:not(:last-child)::after { display: none; }
    /* Tylko hero BEZ formularza ma pasek nalozony absolutnie - tam rezerwacja
       miejsca paddingiem ma sens. Wariant z formularzem uklada sie kolumnowo
       (patrz @media 980px), wiec nie potrzebuje tego zapasu. */
    .hero:not(.hero-with-form) .hero-content { padding-bottom: 190px; }
    /* Zielony dymek WhatsAppa zaslanial ostatnia liczbe w pasku hero */
    .home .hero-facts-inner { padding-right: 76px; }

    /* Filtry jako bottom-sheet */
    .filters-toggle { display: inline-flex; }
    .offers-filters {
        display: none;
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 240;
        max-height: 82vh; overflow-y: auto;
        border-radius: 0;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    }
    .offers-filters.open { display: flex; }
    .filters-primary, .filters-detailed { grid-template-columns: 1fr; }
    .filter-actions { position: sticky; bottom: 0; background: var(--white); padding-top: 8px; }
    .filter-actions .btn { flex: 1; }
}

/* Waskie telefony (iPhone SE, 360 px): wiecej miejsca na tresc */
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    /* Dlugie etykiety CTA moga sie zlamac, zamiast rozpychac uklad */
    .btn { white-space: normal; text-align: center; }
    .btn-lg { padding: 15px 24px; }
    .hero-actions .btn, .service-hero-actions .btn, .ebook-hero-actions .btn { width: 100%; }
    .section-title { font-size: clamp(28px, 8vw, 36px); }
    .page-hero { padding: calc(var(--header-h) + 48px) 0 40px; }
    .stats-grid { gap: 28px 18px; }
    .whatsapp-fab { width: 50px; height: 50px; right: 14px; bottom: 14px; }
    /* Najwezsze ekrany: schodek okladek jeszcze ciasniej.
       Same przesuniecia sa nizej, przy pozostalych regulach okladek -
       tutaj zostalyby nadpisane przez pozniejsze reguly bazowe. */
    .ebook-cover-stack { width: clamp(132px, 40vw, 165px); }
}

/* Nic nie moze wystawac poza ekran: html/body maja overflow-x: clip, wiec
   taka tresc bylaby po prostu nieklikalna i niewidoczna. */
img, svg, video, iframe, table, pre { max-width: 100%; }
iframe { border: 0; }
.entry-content { overflow-wrap: break-word; }
.entry-content table { display: block; overflow-x: auto; }
.entry-content pre { overflow-x: auto; }

/* ── USLUGI: rozdroze (karty) i podstrona uslugi ── */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 44px; }
.services-grid-compact { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.service-card {
    background: var(--white);
    border: var(--line);
    padding: 40px 36px;
    display: flex; flex-direction: column;
    position: relative;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.service-card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cobalt); }
.service-card-accent::after { background: var(--brand-grad); }
.service-card:hover { border-color: var(--cobalt-light); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; margin-bottom: 22px;
    background: var(--cobalt-pale); color: var(--cobalt);
}
.service-card-title { font-family: var(--font-display); font-size: 27px; font-weight: 500; color: var(--navy); margin-bottom: 10px; }
.service-card-lead { color: var(--cobalt); font-size: 15px; letter-spacing: 0.04em; margin-bottom: 12px; }
.service-card-text { color: var(--text-muted); font-size: 16.5px; margin-bottom: 26px; }
.service-card-link {
    margin-top: auto; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--navy); text-decoration: none; padding-bottom: 4px;
    border-bottom: 1px solid var(--cream-dark);
    transition: color 0.25s, border-color 0.25s, gap 0.25s;
}
.service-card-link:hover { color: var(--cobalt); border-color: var(--cobalt); gap: 12px; }

.service-intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.service-intro-text .btn { margin-top: 28px; }
.service-intro-text p + p { margin-top: 16px; }
/* Laptop i wyzej: tekst zostaje w kadrze, gdy przewijamy wysoka karte agenta.
   Tylko gdy naprawde miesci sie w oknie - inaczej sticky ucinaloby koniec. */
@media (min-width: 1081px) and (min-height: 760px) {
    .service-intro-text {
        position: sticky; top: calc(var(--header-h) + 32px);
        align-self: start;
    }
}
/* Prawa kolumna: duze zdjecie opiekuna uslugi + jego dane (bez formularza,
   formularz stoi wyzej, w hero) */
.service-intro-aside { background: var(--white); border: var(--line); border-top: 3px solid var(--cobalt); }
.service-aside-photo { overflow: hidden; margin: 0; }
.service-aside-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; display: block; }
.service-aside-body { padding: 26px 28px 30px; }
.service-aside-kicker { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 6px; }
.service-aside-name { font-family: var(--font-display); font-size: 25px; font-weight: 500; color: var(--navy); line-height: 1.2; }
.service-aside-role { font-size: 14.5px; color: var(--text-muted); margin-top: 2px; }
.service-aside-license {
    display: inline-block; margin-top: 10px;
    border: 1px solid var(--cobalt-pale); color: var(--cobalt-mid);
    font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px;
}
.service-aside-text { color: var(--text-muted); font-size: 15.5px; line-height: 1.75; margin-top: 16px; }
.service-aside-contact { list-style: none; display: grid; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: var(--line); }
.service-aside-contact a { color: var(--navy); text-decoration: none; font-weight: 500; }
.service-aside-contact a:hover { color: var(--cobalt); }
.service-aside-phone { font-size: 21px; color: var(--cobalt) !important; }

/* Formularz-lead (reuzywalny partial) */
.lead-form { display: grid; gap: 12px; }
.lead-form-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--navy); }
.lead-form-lead { font-size: 14px; color: var(--text-muted); margin-top: -6px; }
.lead-form .form-row { gap: 5px; }
.lead-form .form-consent span { font-size: 12px; }
.lead-form .btn { width: 100%; }

.service-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 44px; background: var(--cream-dark); border: var(--line); }
.service-benefit { background: var(--white); padding: 34px 30px; }
.service-benefit-number { font-family: var(--font-display); font-size: 24px; color: rgba(0, 121, 201, 0.4); display: block; margin-bottom: 12px; }
.service-benefit-title { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.service-benefit p { color: var(--text-muted); font-size: 16px; }

/* ── DUET AGENTOW: dwie perspektywy, jedna sprawa ── */
.section-duo { background: var(--white); }
.duo-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; margin-top: 46px; }
.duo-card { background: var(--cream); border: var(--line); padding: 38px 34px; display: flex; flex-direction: column; }
.duo-card-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.duo-avatar { width: 76px; height: 76px; flex-shrink: 0; overflow: hidden; background: var(--cream-dark); border-radius: 50%; }
.duo-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.duo-name { font-family: var(--font-display); font-size: 25px; font-weight: 500; color: var(--navy); line-height: 1.2; }
.duo-role { color: var(--text-muted); font-size: 15px; }
.duo-focus {
    display: inline-block; align-self: flex-start;
    background: var(--cobalt-pale); color: var(--cobalt-mid);
    font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 7px 14px; margin-bottom: 24px;
}
.duo-traits { list-style: none; display: grid; gap: 18px; }
.duo-traits li { display: grid; gap: 3px; padding-left: 18px; position: relative; }
.duo-traits li::before { content: '\2192'; position: absolute; left: 0; top: 1px; color: var(--cobalt); font-size: 14px; }
.duo-traits strong { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.duo-traits span { color: var(--text-muted); font-size: 15.5px; line-height: 1.7; }
.duo-contact { margin-top: 26px; padding-top: 20px; border-top: var(--line); display: flex; flex-wrap: wrap; gap: 6px 20px; }
.duo-contact a { color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 500; }
.duo-contact a:hover { color: var(--cobalt); }

.duo-connector { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 26px; }
.duo-connector-line { width: 1px; flex: 1; background: var(--cream-dark); }
.duo-connector-label {
    font-family: var(--font-display); font-size: 17px; font-style: italic;
    color: var(--cobalt); border: 1px solid var(--cobalt-pale);
    background: var(--cobalt-pale); padding: 10px 16px; white-space: nowrap;
}

.duo-together { margin-top: 44px; background: var(--brand-grad); color: var(--white); padding: 44px 42px; }
.duo-together-title { font-family: var(--font-display); font-size: 27px; font-weight: 500; margin-bottom: 28px; }
.duo-together-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.duo-together-item h4 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.duo-together-item p { color: rgba(255,255,255,0.82); font-size: 16px; }

@media (max-width: 1080px) {
    .service-benefits { grid-template-columns: repeat(2, 1fr); }
    .services-grid-compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-intro { grid-template-columns: 1fr; gap: 34px; }
    .duo-grid { grid-template-columns: 1fr; }
    .duo-connector { flex-direction: row; padding: 22px 0; }
    .duo-connector-line { width: auto; height: 1px; flex: 1; }
    .duo-together-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
    .service-card { padding: 32px 26px; }
    .service-benefits { grid-template-columns: 1fr; }
    .services-grid-compact { grid-template-columns: 1fr; }
    .duo-card { padding: 30px 24px; }
    .duo-together { padding: 34px 26px; }
}

/* ══ OPINIE: podstrona ze sciana prawdziwych recenzji z Google ══ */

/* Plakietka zrodla: gwiazdki, liczba opinii, link do wizytowki */
.google-badge {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: var(--white); border: var(--line); border-left: 3px solid var(--cobalt);
    padding: 22px 26px; margin-top: 30px;
}
.google-badge-mark { display: flex; flex-shrink: 0; }
.google-badge-body { display: grid; gap: 3px; flex: 1; min-width: 200px; }
.google-badge-stars { color: #f5b544; }
.google-badge-body strong { font-size: 17px; color: var(--navy); font-weight: 500; }
.google-badge-body > span { font-size: 14px; color: var(--text-muted); }
.google-badge-cta { flex-shrink: 0; }

/* Realne rezultaty: liczby z konkretnych opinii + zrodlo pod spodem */
.results-grid .stat-item { display: grid; align-content: start; gap: 6px; }
.results-grid .stat-item:not(:last-child)::after { top: 6%; bottom: 6%; }
.stat-source {
    font-size: 13px; line-height: 1.6; font-style: italic;
    color: rgba(255,255,255,0.58);
    max-width: 260px; margin: 6px auto 0;
}

/* Sciana opinii: masonry na kolumnach, karty roznej wysokosci */
.section-reviews-wall { background: var(--cream); }
.section-reviews-wall-rest { padding-top: 72px; }
.reviews-wall { columns: 3; column-gap: 26px; margin-top: 46px; }
.section-reviews-wall-rest .reviews-wall { margin-top: 0; }
.review-card {
    break-inside: avoid; -webkit-column-break-inside: avoid;
    display: block; width: 100%;
    background: var(--white); border: var(--line);
    padding: 28px 28px 24px;
    margin-bottom: 26px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    --review-bg: var(--white);
}
.review-card:hover { border-color: var(--cobalt-light); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review-avatar {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
    background: var(--brand-grad); color: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 19px; letter-spacing: 0.02em;
}
.review-who { display: grid; gap: 2px; min-width: 0; flex: 1; }
.review-author { font-weight: 500; color: var(--navy); font-size: 16.5px; line-height: 1.3; }
.review-meta { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.review-guide {
    background: var(--cobalt-pale); color: var(--cobalt-mid);
    font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 3px 8px;
}
.review-source { flex-shrink: 0; align-self: flex-start; display: flex; }
.review-rating { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.review-stars { display: inline-flex; gap: 2px; color: #f5b544; }
.review-date { font-size: 13px; color: var(--text-muted); }
.review-text { color: var(--text); font-size: 15.5px; line-height: 1.75; }
.review-text p + p { margin-top: 12px; }
/* Dlugie opinie: zwiniete z "Czytaj wiecej", nie przycinane na sztywno */
.review-text-wrap { position: relative; }
/* 14em = dokladnie 8 wierszy (line-height 1.75). Rowna liczba wierszy jest
   wazna: przy 12.5em limit wypadal w polowie 8. wiersza i tekst, ktory
   wizualnie sie miescil, liczyl sie jako przepelniony. */
.review-text.is-clamped { max-height: 14em; overflow: hidden; }
.review-more {
    margin-top: 10px; color: var(--cobalt); font-weight: 500; font-size: 14px;
    display: inline-flex; align-items: center; gap: 6px;
}
.review-more:hover { color: var(--cobalt-mid); }
.review-more::after { content: '▾'; font-size: 11px; transition: transform 0.2s; }
.review-more[aria-expanded="true"]::after { transform: rotate(180deg); }
.review-card-featured { --review-bg: #34496a; }
.review-card-featured .review-more { color: var(--cobalt-light); }
.review-link {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 20px; padding-top: 16px;
    border-top: var(--line); width: 100%;
    font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em;
    color: var(--cobalt); text-decoration: none;
    transition: gap 0.25s, color 0.25s;
}
.review-link:hover { gap: 12px; color: var(--cobalt-mid); }

/* Wyrozniona opinia: ciemna karta w gradiencie marki */
.review-card-featured { background: var(--brand-grad); border-color: transparent; color: var(--white); }
.review-card-featured .review-author { color: var(--white); }
.review-card-featured .review-meta,
.review-card-featured .review-date { color: rgba(255,255,255,0.65); }
.review-card-featured .review-guide { background: rgba(255,255,255,0.16); color: var(--white); }
.review-card-featured .review-avatar { background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35); }
.review-card-featured .review-text { color: rgba(255,255,255,0.92); }
.review-card-featured .review-link { color: var(--white); border-top-color: rgba(255,255,255,0.25); }
/* Logo Google bez bialego kafelka - siedzi wprost na ciemnym tle, a niebieskie
   ramie rozjasniamy (wersja dark-mode Google), zeby nie ginelo w granacie. */
.review-card-featured .google-mark path[fill="#4285F4"],
.section-dark .google-mark path[fill="#4285F4"] { fill: #8ab4f8; }
.review-card-featured .google-mark path[fill="#34A853"],
.section-dark .google-mark path[fill="#34A853"] { fill: #6dd58c; }
.review-card-featured .google-mark path[fill="#EA4335"],
.section-dark .google-mark path[fill="#EA4335"] { fill: #f28b82; }
.review-card-featured .google-mark path[fill="#FBBC05"],
.section-dark .google-mark path[fill="#FBBC05"] { fill: #fdd663; }
.review-card-featured:hover { border-color: rgba(255,255,255,0.5); }

/* Zaproszenie na koncu podstrony */
.reviews-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.reviews-cta .section-title { margin-bottom: 14px; }
.reviews-cta .section-lead { margin-bottom: 0; }
.reviews-cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }

/* Pasek opinii na podstronach: 3 karty + link do pelnej sciany */
.section-reviews-strip { background: var(--cream); }
.reviews-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 10px; align-items: start; }
.reviews-strip .review-card { margin-bottom: 0; }
/* Dluga opinia nie rozpycha paska, bo obcina ja wspolny mechanizm
   ".is-clamped" + "Czytaj więcej" (JS). Wczesniej byl tu jeszcze osobny
   -webkit-line-clamp: 9 i oba przyciecia sie bily: pasek pokazywal 9 linii,
   a JS mierzyl limit ~7 linii i wystawial przycisk przy krotkiej opinii. */

/* Slowo od agenta: zdjecie + cytat o nieruchomosciach */
.section-agent-quote { background: var(--white); }
.agent-quote { display: grid; grid-template-columns: 5fr 7fr; gap: 0; align-items: center; }
.agent-quote-media { position: relative; z-index: 0; }
.agent-quote-media img, .agent-quote-media .about-placeholder {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
}
.agent-quote-media::after {
    content: ''; position: absolute; left: 18px; bottom: -18px;
    width: 100%; height: 100%;
    border: 1px solid var(--cobalt-light); z-index: -1;
}
.agent-quote-body {
    background: var(--brand-grad); color: var(--white);
    padding: 56px 54px; margin-left: -48px;
    position: relative; z-index: 1;
}
.agent-quote-body .section-tag { color: var(--cobalt-light); margin-bottom: 22px; }
.agent-quote-text {
    font-family: var(--font-display); font-style: italic;
    font-size: clamp(23px, 2.6vw, 32px); line-height: 1.4;
    margin-bottom: 20px;
}
.agent-quote-text::before { content: '\201E'; }
.agent-quote-text::after { content: '\201D'; }
.agent-quote-note { color: rgba(255,255,255,0.8); font-size: 16px; line-height: 1.75; }
.agent-quote-author {
    display: grid; gap: 3px; margin-top: 28px;
    padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.22);
}
.agent-quote-name { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.agent-quote-role { color: rgba(255,255,255,0.75); font-size: 15px; }
.agent-quote-license { color: var(--cobalt-light); font-size: 13px; letter-spacing: 0.06em; }

@media (max-width: 1080px) {
    .reviews-wall { columns: 2; }
    .reviews-strip { grid-template-columns: repeat(2, 1fr); }
    .agent-quote-body { padding: 44px 38px; margin-left: -32px; }
}
@media (max-width: 1080px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
    .process-grid .process-step:nth-child(2n)::before { display: none; }
    .promise-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .process-grid { grid-template-columns: 1fr; }
    .process-grid .process-step::before { display: none; }
    .help-layout { grid-template-columns: 1fr; gap: 40px; }
    .help-media { max-width: 460px; }
    .help-media figcaption { max-width: none; }
    .reviews-strip { grid-template-columns: 1fr; gap: 20px; }
    .reviews-cta { grid-template-columns: 1fr; gap: 28px; }
    .agent-quote { grid-template-columns: 1fr; }
    .agent-quote-media::after { display: none; }
    .agent-quote-media img { aspect-ratio: 3 / 2; }
    .agent-quote-body { margin-left: 0; padding: 38px 30px; }
    .reviews-cta-actions { flex-direction: row; flex-wrap: wrap; }
    .results-grid .stat-item:not(:last-child)::after { display: none; }
    .stat-source { max-width: none; }
}
@media (max-width: 700px) {
    .reviews-wall { columns: 1; column-gap: 0; }
    .review-card { padding: 24px 22px 20px; }
    .google-badge { padding: 20px; gap: 16px; }
    .google-badge-cta { width: 100%; }
}

/* ── STRONA GLOWNA: "Jak dzialamy" (wiersze uslug) ── */
.section-services-home { background: var(--white); }
.services-rows { margin-top: 44px; border-top: var(--line); }
.service-row {
    display: grid; grid-template-columns: 72px 1fr 40px; align-items: center; gap: 26px;
    padding: 30px 12px; border-bottom: var(--line);
    text-decoration: none; color: inherit;
    transition: background-color 0.3s, padding-left 0.3s;
}
.service-row:hover { background: var(--cream); padding-left: 22px; }
.service-row-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 62px; height: 62px; background: var(--cobalt-pale); color: var(--cobalt);
    transition: background-color 0.3s, color 0.3s;
}
.service-row:hover .service-row-icon { background: var(--cobalt); color: var(--white); }
.service-row-body { display: grid; gap: 4px; }
.service-row-title { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--navy); line-height: 1.25; }
.service-row-lead { color: var(--cobalt); font-size: 14px; letter-spacing: 0.06em; }
.service-row-text { color: var(--text-muted); font-size: 16.5px; }
.service-row-arrow { color: var(--navy); display: flex; justify-content: flex-end; transition: transform 0.3s, color 0.3s; }
.service-row:hover .service-row-arrow { color: var(--cobalt); transform: translateX(6px); }

/* ── BELKA E-BOOKOW (lead magnet) ── */
.ebook-bar { background: var(--brand-grad); color: var(--white); padding: 64px 0; }
.ebook-bar-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.ebook-bar-tag { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cobalt-light); margin-bottom: 12px; }
.ebook-bar-title { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; line-height: 1.2; margin-bottom: 14px; }
.ebook-bar-lead { color: rgba(255,255,255,0.84); font-size: 17.5px; max-width: 620px; }
.ebook-bar-list { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.ebook-bar-list li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.92); font-size: 16px; }
.ebook-bar-list svg { flex-shrink: 0; color: var(--cobalt-light); }
.ebook-bar-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ebook-bar-cta .btn { align-self: stretch; text-align: center; justify-content: center; }
.ebook-bar-note { color: rgba(255,255,255,0.6); font-size: 14px; }

@media (max-width: 900px) {
    .ebook-bar-inner { grid-template-columns: 1fr; gap: 30px; }
    .ebook-bar-cta { align-self: stretch; }
}

/* ── BELKA INWESTYCJI (pod listingiem ofert) ──
   Jasny wariant belki: pod siatka ofert (biale tlo) i nad rozdzielaczem
   ze zdjeciem, wiec ciemne tlo jak w e-booku zlewaloby sie z parallaxem. */
.inv-bar { background: var(--cobalt-pale); border-top: var(--line); padding: 64px 0; }
.inv-bar-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.inv-bar-tag { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 12px; }
.inv-bar-title { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; line-height: 1.2; color: var(--navy); margin-bottom: 14px; }
.inv-bar-lead { color: var(--text); font-size: 17.5px; max-width: 620px; }
.inv-bar-list { list-style: none; display: grid; gap: 2px; margin-top: 24px; }
.inv-bar-item a {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
    padding: 12px 0; border-top: var(--line);
    color: var(--navy); text-decoration: none;
    transition: color 0.25s, padding-left 0.25s;
}
.inv-bar-item a:hover { color: var(--cobalt); padding-left: 8px; }
.inv-bar-name { font-weight: 500; font-size: 17px; }
.inv-bar-range { color: var(--text-muted); font-size: 15px; }
.inv-bar-status { margin-left: auto; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cobalt); }
.inv-bar-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.inv-bar-cta .btn { align-self: stretch; text-align: center; justify-content: center; }
/* Poziomy kadr inwestycji nad przyciskiem */
.inv-bar-photo { align-self: stretch; margin: 0; overflow: hidden; box-shadow: var(--shadow); }
.inv-bar-photo a { display: block; line-height: 0; }
.inv-bar-photo img {
    display: block; width: 100%; height: 210px;
    object-fit: cover; transition: transform 0.5s ease;
}
.inv-bar-photo:hover img { transform: scale(1.04); }
.inv-bar-note { color: var(--text-muted); font-size: 14px; }

@media (max-width: 900px) {
    .inv-bar-inner { grid-template-columns: 1fr; gap: 30px; }
    .inv-bar-cta { align-self: stretch; }
}
@media (max-width: 640px) {
    .inv-bar { padding: 48px 0; }
    .inv-bar-status { margin-left: 0; }
}
@media (max-width: 640px) {
    .service-row { grid-template-columns: 52px 1fr; gap: 18px; padding: 24px 4px; }
    .service-row:hover { padding-left: 10px; }
    .service-row-icon { width: 48px; height: 48px; }
    .service-row-icon svg { width: 24px; height: 24px; }
    .service-row-arrow { display: none; }
    .service-row-title { font-size: 22px; }
    .ebook-bar { padding: 48px 0; }
}

/* ============================================================
   STRONA E-BOOK: hero z wachlarzem okladek, karty poradnikow,
   podglady stron z PDF, panel formularza.
   ============================================================ */

/* ── Delikatne wejscie blokow (JS dodaje .reveal / .is-visible) ── */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── HERO ── */
.ebook-hero {
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding-top: calc(var(--header-h) + 48px); padding-bottom: 72px;
    overflow: hidden;
}
.ebook-hero::before {
    content: ''; position: absolute; z-index: 0;
    width: 620px; height: 620px; right: -160px; top: -220px;
    background: radial-gradient(circle, rgba(47,147,212,0.35) 0%, rgba(47,147,212,0) 68%);
}
.ebook-hero-inner { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.ebook-hero-text .page-lead { max-width: 560px; }
.ebook-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ebook-hero-note { color: rgba(255,255,255,0.68); font-size: 14.5px; margin-top: 16px; }
.ebook-hero-facts { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.18); }
.ebook-hero-fact { display: grid; gap: 2px; }
.ebook-hero-fact-num { font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1; color: var(--white); }
.ebook-hero-fact-label { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* Wachlarz okladek: jeden rzad, okladki nachodza na siebie mniej wiecej
   w 2/3. Srodkowa stoi na wprost, boczne sa odchylone o kilka stopni w
   lewo i w prawo. Po najechaniu srodkowa unosi sie do gory, a boczne ida
   w gore po swoich skosach (dalej w bok + mocniejszy kat). */
.ebook-hero-covers {
    position: relative;
    height: min(62vh, 500px);
    max-width: 640px; margin: 0 auto;
    transform: translateY(-24px);   /* troche wyzej wzgledem tekstu */
}
/* UWAGA: okladka ma obie klasy - .ebook-cover i .ebook-cover-stack.
   .ebook-cover (nizej w pliku) ustawia position: relative przy tej samej
   specyficznosci i wygrywalo, przez co okladki wypadaly z pozycjonowania
   absolutnego i ustawialy sie jedna pod druga. Stad ta regula z wyzsza
   specyficznoscia - bez niej caly uklad ponizej nie ma znaczenia. */
.ebook-hero-covers .ebook-cover-stack { position: absolute; }
.ebook-cover-stack {
    position: absolute; top: 50%; left: 50%;
    /* 300 px na duzym ekranie (kolumna hero ma tam 522 px), nizej plynnie
       w dol razem z szerokoscia okna. */
    width: clamp(170px, 24vw, 300px);
    transform-origin: 50% 100%;     /* obrot od dolu - jak karty w dloni */
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.5s;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 18px 42px rgba(9, 18, 32, 0.5);
}
/* Spoczynek: jeden rzad - wszystkie na tej samej linii, srodkowa prosto
   i na wierzchu, boczne tylko odchylone od dolnej krawedzi. */
.ebook-cover-stack-1 { transform: translate(-80%, -50%) rotate(-7deg);  z-index: 1; }
.ebook-cover-stack-2 { transform: translate(-50%, -50%);                z-index: 3; }
.ebook-cover-stack-3 { transform: translate(-20%, -50%) rotate(7deg);   z-index: 2; }

/* Hover: caly rzad unosi sie do gory - srodkowa prosto, boczne po
   swoich skosach (troche dalej w bok i mocniejszy kat). */
.ebook-hero-covers:hover .ebook-cover-stack-1,
.ebook-hero-covers:focus-within .ebook-cover-stack-1 {
    transform: translate(-86%, -55%) rotate(-10deg);
}
.ebook-hero-covers:hover .ebook-cover-stack-2,
.ebook-hero-covers:focus-within .ebook-cover-stack-2 {
    transform: translate(-50%, -58%);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.24), 0 30px 66px rgba(9, 18, 32, 0.6);
}
.ebook-hero-covers:hover .ebook-cover-stack-3,
.ebook-hero-covers:focus-within .ebook-cover-stack-3 {
    transform: translate(-14%, -55%) rotate(10deg);
}
/* Wszystkie okladki tej samej wysokosci (4:5), inaczej podmieniona
   w Customizerze grafika o innych proporcjach rozjezdza rzad. */
.ebook-cover-stack img { aspect-ratio: 4 / 5; object-fit: cover; }
.ebook-cover-stack .ebook-cover-badge { font-size: 10px; letter-spacing: 0.1em; padding: 5px 8px; }

/* Dotyk (brak hovera): ten sam rzad, tylko troche szerzej rozlozony */
@media (hover: none) {
    .ebook-cover-stack-1 { transform: translate(-84%, -52%) rotate(-9deg); }
    .ebook-cover-stack-2 { transform: translate(-50%, -55%); }
    .ebook-cover-stack-3 { transform: translate(-16%, -52%) rotate(9deg); }
}

/* ── Okladka PDF (wspolny element) ── */
.ebook-cover { position: relative; background: var(--navy); }
.ebook-cover img { display: block; width: 100%; height: auto; }
.ebook-cover-badge {
    position: absolute; left: 0; bottom: 0;
    background: var(--cobalt); color: var(--white);
    font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 7px 12px;
}
.ebook-cover-fallback {
    aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: center; gap: 10px;
    padding: 34px 28px; background: var(--brand-grad); color: var(--white); text-align: center;
}
.ebook-cover-brand { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.1em; opacity: 0.8; }
.ebook-cover-brand em { font-style: italic; color: var(--cobalt-light); }
.ebook-cover-title { font-family: var(--font-display); font-size: 27px; line-height: 1.15; }
.ebook-cover-sub { font-size: 13.5px; color: rgba(255,255,255,0.75); }

/* ── Cytat we wprowadzeniu ── */
.ebook-quote {
    margin-top: 26px; padding: 22px 26px;
    background: var(--white); border-left: 3px solid var(--cobalt);
    font-family: var(--font-display); font-size: 21px; font-style: italic; line-height: 1.5; color: var(--navy);
}

/* ── Karty poradnikow ── */
.section-ebooks { background: var(--white); }
.ebook-detail {
    display: grid; grid-template-columns: 300px 1fr; gap: 52px;
    margin-top: 52px; padding: 44px 44px 44px 40px;
    background: var(--cream); border: var(--line);
    position: relative; overflow: hidden;
}
.ebook-detail::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cobalt); }
.ebook-detail-alt::before { background: var(--brand-grad); }
.ebook-detail-media { display: grid; gap: 24px; align-content: start; }
.ebook-cover-detail { box-shadow: 0 18px 44px rgba(29,47,70,0.22); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.ebook-detail:hover .ebook-cover-detail { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 26px 60px rgba(29,47,70,0.28); }
.ebook-bonuses ul { list-style: none; display: grid; gap: 8px; }
.ebook-bonuses li { position: relative; padding-left: 18px; color: var(--text-muted); font-size: 15px; }
.ebook-bonuses li::before { content: '+'; position: absolute; left: 0; color: var(--cobalt); font-weight: 500; }

.ebook-detail-body { position: relative; }
.ebook-detail-number {
    position: absolute; right: 0; top: -6px;
    font-family: var(--font-display); font-size: 58px; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(0,121,201,0.28);
}
.ebook-detail-title { font-family: var(--font-display); font-size: 32px; font-weight: 500; color: var(--navy); line-height: 1.15; padding-right: 70px; }
.ebook-detail-subtitle { color: var(--cobalt); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin: 8px 0 16px; }
.ebook-detail-lead { color: var(--text-muted); font-size: 17.5px; margin-bottom: 26px; }
.ebook-mini-label {
    font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
    margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.ebook-mini-label::after { content: ''; height: 1px; flex: 1; background: var(--cream-dark); }
.ebook-inside { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.ebook-inside li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text); font-size: 16.5px; }
.ebook-inside svg { color: var(--cobalt); margin-top: 4px; }

.ebook-contents { list-style: none; counter-reset: chapter; display: grid; gap: 2px; margin-bottom: 28px; }
.ebook-contents li {
    counter-increment: chapter;
    display: grid; grid-template-columns: 42px 1fr; align-items: baseline; gap: 12px;
    padding: 11px 14px; background: var(--white); border: 1px solid transparent;
    font-size: 16.5px; transition: border-color 0.25s, transform 0.25s;
}
.ebook-contents li::before {
    content: counter(chapter, decimal-leading-zero);
    font-family: var(--font-display); font-size: 17px; color: var(--cobalt);
}
.ebook-contents li:hover { border-color: var(--cobalt-light); transform: translateX(4px); }

.ebook-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.ebook-tag {
    background: var(--cobalt-pale); color: var(--cobalt-mid);
    font-size: 13px; padding: 7px 13px; letter-spacing: 0.02em;
}
.ebook-detail-cta { align-self: start; }

/* ── Co zyskasz ── */
.ebook-gains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; }
.ebook-gain { border-top: 1px solid rgba(255,255,255,0.25); padding-top: 22px; }
.ebook-gain-number { font-family: var(--font-display); font-size: 30px; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.55); display: block; margin-bottom: 12px; }
.ebook-gain-title { font-size: 14.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 10px; }
.ebook-gain p { color: rgba(255,255,255,0.82); font-size: 16px; }

/* ── Podglady stron z PDF ── */
.section-ebook-preview { background: var(--cream); }
.ebook-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 44px; }
.ebook-preview { margin: 0; }
.ebook-preview-frame {
    position: relative; overflow: hidden; background: var(--white);
    border: var(--line); box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.ebook-preview-frame img { display: block; width: 100%; height: auto; transition: transform 0.6s ease; }
.ebook-preview:hover .ebook-preview-frame { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.ebook-preview:hover .ebook-preview-frame img { transform: scale(1.03); }
.ebook-preview figcaption { margin-top: 14px; color: var(--text-muted); font-size: 15px; }
.ebook-preview-skeleton { aspect-ratio: 4 / 5; padding: 30px 26px; display: grid; gap: 12px; align-content: start; position: relative; }
.ebook-preview-skeleton-title { height: 16px; width: 65%; background: var(--cream-dark); }
.ebook-preview-skeleton-row { height: 9px; background: var(--cream); }
.ebook-preview-skeleton-row:nth-child(odd) { width: 92%; }
.ebook-preview-skeleton-row:nth-child(even) { width: 76%; }
.ebook-preview-skeleton-mark { position: absolute; right: 22px; bottom: 20px; font-size: 12px; letter-spacing: 0.14em; color: var(--cobalt); }

@media (max-width: 1080px) {
    .ebook-gains { grid-template-columns: repeat(2, 1fr); }
    .ebook-detail { grid-template-columns: 240px 1fr; gap: 36px; padding: 36px 32px; }
    .ebook-hero-covers { height: 440px; }
}
@media (max-width: 900px) {
    .ebook-hero-inner { grid-template-columns: 1fr; gap: 44px; }
    /* Uklad jednokolumnowy: okladki na gorze, wiec moga byc wieksze */
    .ebook-hero-covers { height: 400px; order: -1; transform: none; }
    .ebook-cover-stack { width: clamp(180px, 30vw, 260px); }
    .ebook-detail { grid-template-columns: 1fr; }
    .ebook-detail-media { max-width: 280px; }
    .ebook-previews { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 640px) {
    .ebook-hero { min-height: auto; padding-top: calc(var(--header-h) + 32px); padding-bottom: 48px; }
    .ebook-hero-facts { gap: 22px; }
    .ebook-hero-fact-num { font-size: 27px; }
    .ebook-hero-covers { height: 330px; }
    .ebook-cover-stack { width: clamp(150px, 34vw, 210px); }
    /* Ten sam rzad, tylko z mniejszym rozstawem - skrajne okladki musza
       zmiescic sie w ekranie (html ma overflow-x: clip). */
    .ebook-cover-stack-1 { transform: translate(-82%, -50%) rotate(-7deg); }
    .ebook-cover-stack-2 { transform: translate(-50%, -50%); }
    .ebook-cover-stack-3 { transform: translate(-18%, -50%) rotate(7deg); }
    .ebook-hero-covers:hover .ebook-cover-stack-1 { transform: translate(-88%, -56%) rotate(-10deg); }
    .ebook-hero-covers:hover .ebook-cover-stack-2 { transform: translate(-50%, -60%); }
    .ebook-hero-covers:hover .ebook-cover-stack-3 { transform: translate(-12%, -56%) rotate(10deg); }
    .ebook-gains { grid-template-columns: 1fr; gap: 22px; }
    .ebook-previews { grid-template-columns: 1fr; }
    .ebook-detail { padding: 28px 22px; }
    .ebook-detail-title { font-size: 26px; padding-right: 52px; }
    .ebook-detail-number { font-size: 42px; }
}
/* Waskie telefony: ten sam rzad, jeszcze wieksze nachodzenie na siebie */
@media (max-width: 480px) {
    .ebook-hero-covers { height: 250px; }
    .ebook-cover-stack-1 { transform: translate(-76%, -50%) rotate(-6deg); }
    .ebook-cover-stack-2 { transform: translate(-50%, -50%); }
    .ebook-cover-stack-3 { transform: translate(-24%, -50%) rotate(6deg); }
    .ebook-hero-covers:hover .ebook-cover-stack-1 { transform: translate(-80%, -55%) rotate(-8deg); }
    .ebook-hero-covers:hover .ebook-cover-stack-2 { transform: translate(-50%, -58%); }
    .ebook-hero-covers:hover .ebook-cover-stack-3 { transform: translate(-20%, -55%) rotate(8deg); }
}

/* ── E-BOOK: uklad tresc + przyklejony formularz ── */
.section-ebook-layout { background: var(--white); padding: 72px 0 88px; }
.ebook-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.ebook-main { display: grid; gap: 64px; min-width: 0; }
.ebook-block { scroll-margin-top: calc(var(--header-h) + 24px); }
.ebook-block .section-lead { max-width: none; margin-bottom: 26px; }

/* Kolumna z formularzem trzyma sie ekranu przez cale przewijanie */
.ebook-aside { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; scroll-margin-top: calc(var(--header-h) + 20px); }
.ebook-aside-inner { /* bez wlasnego scrolla: formularz ma sie miescic w kolumnie */ }

.ebook-form { background: var(--cream); border: var(--line); border-top: 3px solid var(--cobalt); padding: 24px 24px 22px; box-shadow: var(--shadow); }
.ebook-form-kicker { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 6px; }
.ebook-form-title { font-family: var(--font-display); font-size: 23px; font-weight: 500; color: var(--navy); line-height: 1.2; }
.ebook-form-lead { color: var(--text-muted); font-size: 14.5px; line-height: 1.5; margin: 8px 0 18px; }
.ebook-form .form-row { margin-bottom: 12px; }
.ebook-form label { font-size: 13px; }
.ebook-form input[type="text"], .ebook-form input[type="email"], .ebook-form input[type="tel"] { padding: 10px 12px; font-size: 15px; }
.ebook-form .form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ebook-form button[type="submit"] { width: 100%; justify-content: center; margin-top: 4px; }

/* Wybor poradnika: klikalne kafelki radio */
.ebook-choices { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.ebook-choices legend {
    font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--navy); margin-bottom: 10px; padding: 0;
}
.ebook-choice {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; background: var(--white); border: 1px solid var(--cream-dark);
    cursor: pointer; transition: border-color 0.25s, background-color 0.25s, transform 0.25s;
}
.ebook-choice:hover { border-color: var(--cobalt-light); transform: translateX(3px); }
.ebook-choice input { accent-color: var(--cobalt); width: 17px; height: 17px; flex-shrink: 0; }
.ebook-choice-body { display: grid; gap: 1px; min-width: 0; }
.ebook-choice-title { font-size: 14.5px; font-weight: 500; color: var(--navy); line-height: 1.3; }
.ebook-choice-meta { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.ebook-choice:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-pale); }
.ebook-choice.is-picked { animation: ebook-pick-flash 1.4s ease; }
@keyframes ebook-pick-flash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,121,201,0); }
    25% { box-shadow: 0 0 0 4px rgba(0,121,201,0.22); }
}
.ebook-choice-all .ebook-choice-title { color: var(--cobalt-mid); }

.ebook-consent label span { font-size: 13.5px; line-height: 1.45; }
.ebook-rodo { margin-top: 8px; }
.ebook-rodo summary {
    cursor: pointer; list-style: none; font-size: 12.5px; letter-spacing: 0.04em;
    color: var(--cobalt); display: inline-flex; align-items: center; gap: 6px;
}
.ebook-rodo summary::-webkit-details-marker { display: none; }
.ebook-rodo summary::after { content: '+'; font-size: 14px; }
.ebook-rodo[open] summary::after { content: '\2212'; }
.ebook-rodo p { font-size: 12.5px; line-height: 1.55; color: var(--text-muted); margin-top: 8px; }
.ebook-form-note {
    display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px 6px;
    margin-top: 14px; padding-top: 14px; border-top: var(--line);
    font-size: 13px; color: var(--text-muted);
}
.ebook-form-note svg { color: var(--cobalt); margin-top: 3px; flex-shrink: 0; }
.ebook-form-note a { color: var(--navy); font-weight: 500; text-decoration: none; }
.ebook-form-note a:hover { color: var(--cobalt); }

/* Bloki w lewej kolumnie: wezsze niz pelna szerokosc, wiec siatki na 2 kolumny */
.ebook-layout .ebook-benefits { margin-top: 28px; }
.ebook-layout .ebook-detail { grid-template-columns: 220px 1fr; gap: 34px; padding: 32px 30px; }
.ebook-layout .ebook-previews { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ebook-layout .ebook-gains { grid-template-columns: repeat(2, 1fr); gap: 26px; }

/* "Co zyskasz" jako ciemny panel w kolumnie (nie pelna szerokosc ekranu) */
.ebook-gains-panel { background: var(--brand-grad); color: var(--white); padding: 44px 40px; }
.ebook-gains-panel .section-tag { color: var(--cobalt-light); }
.ebook-gains-panel .section-title { color: var(--white); }
.ebook-gains-panel .section-title::after { background: linear-gradient(to right, rgba(255,255,255,0.85), transparent); }

/* Kto to napisal: autorzy + liczby */
.ebook-trust-text { color: var(--text-muted); margin-bottom: 26px; }
.ebook-authors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; }
.ebook-author { display: flex; align-items: center; gap: 14px; background: var(--cream); border: var(--line); padding: 16px 18px; }
.ebook-author-photo { width: 62px; height: 62px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--cream-dark); }
/* Kadr od gory: zdjecia z sesji sa sylwetkowe, wiec wyciecie ze srodka
   lapalo tors i ucinalo glowy. */
.ebook-author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.ebook-author-meta { display: grid; gap: 2px; min-width: 0; }
.ebook-author-meta strong { font-size: 16px; color: var(--navy); font-weight: 500; }
.ebook-author-meta span { font-size: 14px; color: var(--text-muted); }
.ebook-author-meta em { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cobalt); font-style: normal; }

.ebook-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--cream-dark); border: var(--line); }
.ebook-stat { background: var(--white); padding: 22px 18px; display: grid; gap: 4px; }
.ebook-stat-num { font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 1; color: var(--cobalt); }
.ebook-stat-label { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

@media (max-width: 1080px) {
    .ebook-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
    .ebook-layout .ebook-previews { grid-template-columns: repeat(2, 1fr); }
    .ebook-layout .ebook-detail { grid-template-columns: 180px 1fr; gap: 26px; }
    .ebook-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .section-ebook-layout { padding: 48px 0 64px; }
    .ebook-layout { grid-template-columns: 1fr; gap: 44px; }
    /* Na mobile formularz idzie na gore: to po niego tu przyszli */
    .ebook-aside { position: static; order: -1; }
    .ebook-aside-inner { max-height: none; overflow: visible; }
    .ebook-main { gap: 48px; }
    .ebook-layout .ebook-gains { grid-template-columns: 1fr; }
    .ebook-authors { grid-template-columns: 1fr; }
    .ebook-gains-panel { padding: 34px 26px; }
}
@media (max-width: 640px) {
    .ebook-layout .ebook-detail { grid-template-columns: 1fr; }
    .ebook-layout .ebook-previews { grid-template-columns: 1fr; }
    .ebook-stats { grid-template-columns: 1fr; }
    .ebook-form { padding: 24px 20px; }
}

/* ── E-book: formularz 1:1 z makieta klienta (wybor PDF wymagany) ── */
.ebook-rodo-label { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.form-optional { color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; }
.ebook-form input::placeholder { color: #9aa3ac; }
.ebook-choices legend + .ebook-choice { margin-top: 0; }

/* ── E-BOOK: kopie formularza na male ekrany + CTA w kartach + rozwijane bloki ── */

/* Formularz pod hero i na koncu tresci: tylko tam, gdzie nie ma kolumny obok */
.ebook-form-compact { display: none; background: var(--white); }
.ebook-form-compact-top { padding: 40px 0 8px; }
.ebook-form-compact-bottom { padding: 8px 0 56px; }
.ebook-form-compact .ebook-form { max-width: 620px; margin: 0 auto; }

/* CTA w karcie poradnika: przy widocznym formularzu tylko podpowiedz ze strzalka */
.ebook-detail-cta { align-self: start; text-decoration: none; }
.ebook-cta-wide {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
    color: var(--cobalt); padding-bottom: 5px; border-bottom: 1px solid var(--cobalt-pale);
    transition: gap 0.25s, border-color 0.25s, color 0.25s;
}
.ebook-detail-cta:hover .ebook-cta-wide { gap: 15px; border-color: var(--cobalt); color: var(--cobalt-mid); }
.ebook-cta-narrow { display: none; }

/* Rozwijane bloki w karcie (spis tresci) */
.ebook-collapse { border-top: var(--line); border-bottom: var(--line); margin-bottom: 24px; }
.ebook-collapse summary {
    cursor: pointer; list-style: none; padding: 13px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
}
.ebook-collapse summary::-webkit-details-marker { display: none; }
.ebook-collapse summary::after {
    content: ''; width: 8px; height: 8px; flex-shrink: 0;
    border-right: 1.5px solid var(--cobalt); border-bottom: 1.5px solid var(--cobalt);
    transform: rotate(45deg) translateY(-2px); transition: transform 0.3s;
}
.ebook-collapse[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.ebook-collapse summary:hover { color: var(--cobalt); }
.ebook-collapse-count {
    margin-left: auto; margin-right: 4px;
    font-size: 11.5px; letter-spacing: 0.08em; color: var(--text-muted); text-transform: none;
}
.ebook-collapse .ebook-contents { margin: 0 0 16px; }

@media (max-width: 900px) {
    /* Kolumna obok znika: formularz pojawia sie pod hero i na koncu strony */
    .ebook-aside { display: none; }
    .ebook-form-compact { display: block; }
    .ebook-cta-wide { display: none; }
    .ebook-cta-narrow {
        display: inline-flex; align-items: center; justify-content: center; gap: 10px;
        background: var(--cobalt); color: var(--white);
        padding: 14px 26px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
        transition: background-color 0.25s;
    }
    .ebook-detail-cta:hover .ebook-cta-narrow { background: var(--navy); }
}

/* Niskie okna (np. laptop 1366x768): formularz dociskamy, zeby nadal miescil
   sie w kolumnie bez wlasnego paska przewijania. */
@media (min-width: 901px) and (max-height: 860px) {
    .ebook-form { padding: 18px 20px 16px; }
    .ebook-form-lead { display: none; }
    .ebook-form-title { font-size: 21px; }
    .ebook-choice { padding: 7px 10px; }
    .ebook-choice-meta { display: none; }
    .ebook-form .form-row { margin-bottom: 10px; }
    .ebook-form-note { margin-top: 10px; padding-top: 10px; font-size: 12px; }
    .ebook-consent label span { font-size: 12.5px; }
}

/* ── FILMY Z PREZENTACJI (shorts): slider pionowych nagran ── */
.section-shorts { background: var(--white); }
.shorts-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.shorts-head .section-lead { max-width: 620px; margin-bottom: 0; }
.shorts-nav { display: flex; gap: 8px; flex-shrink: 0; }
.shorts-btn {
    width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--white); border: 1px solid var(--cream-dark); color: var(--navy);
    cursor: pointer; transition: border-color 0.25s, color 0.25s, background-color 0.25s, opacity 0.25s;
}
.shorts-btn:hover:not(:disabled) { border-color: var(--cobalt); color: var(--cobalt); }
.shorts-btn:disabled { opacity: 0.35; cursor: default; }
.section-dark .shorts-btn { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--white); }
.section-dark .shorts-btn:hover:not(:disabled) { background: var(--white); color: var(--cobalt); border-color: var(--white); }

/* Sciezka: natywny scroll ze snapem (swipe na mobile bez JS) */
.shorts-track {
    display: flex; gap: 20px; margin-top: 40px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding-bottom: 6px;
}
.shorts-track::-webkit-scrollbar { display: none; }
.short-card { flex: 0 0 clamp(220px, 24%, 280px); scroll-snap-align: start; }

/* Kadr 9:16 - format pionowego shorta */
.short-frame {
    position: relative; aspect-ratio: 9 / 16; overflow: hidden;
    background: var(--navy); border: var(--line);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.short-card:hover .short-frame { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.short-video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--navy); }

/* Warstwa z play na posterze: znika, gdy film leci */
.short-play {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(19,30,45,0.12) 0%, rgba(19,30,45,0.55) 100%);
    border: 0; cursor: pointer; color: var(--white);
    transition: opacity 0.3s ease, background-color 0.3s ease;
}
.short-frame.is-playing .short-play { opacity: 0; pointer-events: none; }
.short-play-icon {
    width: 62px; height: 62px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.92); color: var(--cobalt); border-radius: 50%;
    padding-left: 4px; transition: transform 0.3s ease, background-color 0.3s ease;
}
.short-play:hover .short-play-icon { transform: scale(1.08); background: var(--white); }

@media (max-width: 900px) {
    .shorts-head { align-items: flex-start; }
    .shorts-track { margin-top: 28px; gap: 14px; }
    .short-card { flex: 0 0 min(62%, 260px); }
}
@media (max-width: 640px) {
    .shorts-nav { display: none; }
    .short-card { flex: 0 0 78%; }
    .short-play-icon { width: 52px; height: 52px; }
}

/* ── PORTFOLIO REALIZACJI: sprzedane nieruchomosci (karta + lightbox) ── */
.section-portfolio:not(.section-dark) { background: var(--white); }
/* Kremowe tlo slidera: stoi zwykle miedzy dwoma bialymi sekcjami (np. na
   stronie glownej przed certyfikatami), wiec biale na bialym by sie zlalo. */
.section-portfolio-slider:not(.section-dark) { background: var(--cream); }
.portfolio-head { margin-bottom: 8px; }
.portfolio-wrap { position: relative; }

/* Podstrona: siatka kart. Warianty na podstronach: sciezka ze snapem. */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; align-items: start; }
.portfolio-track {
    display: flex; gap: 24px; margin-top: 40px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding-bottom: 6px;
}
.portfolio-track::-webkit-scrollbar { display: none; }
.portfolio-track .portfolio-card { flex: 0 0 clamp(260px, 30%, 330px); scroll-snap-align: start; }

.portfolio-card {
    background: var(--white); border: var(--line);
    display: flex; flex-direction: column;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s ease;
}
.portfolio-card:hover { border-color: var(--cobalt-light); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.section-dark .portfolio-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }

/* Zdjecia: mini-slider na karcie (klasy card-slider-* wspolne z kartami ofert),
   klik otwiera lightbox na tym zdjeciu, ktore akurat widac. */
.portfolio-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-dark); }
.portfolio-media-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; }
.portfolio-slides { position: absolute; inset: 0; }
.portfolio-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; }
.portfolio-slide.is-active { opacity: 1; }
.portfolio-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.portfolio-card:hover .portfolio-slide.is-active img { transform: scale(1.04); }
.portfolio-card-media:hover .card-slider-btn { opacity: 1; }
.portfolio-media-open:hover .certificate-zoom,
.portfolio-media-open:focus-visible .certificate-zoom { opacity: 1; }

.portfolio-badge {
    position: absolute; top: 0; left: 0; z-index: 2;
    background: var(--navy); color: var(--white);
    font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 7px 13px;
}
.portfolio-photos-count {
    position: absolute; left: 10px; bottom: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(19,30,45,0.72); color: var(--white);
    font-size: 12px; padding: 4px 9px;
}

/* Tresc karty: cena jako pierwsza - to ona jest tu dowodem */
.portfolio-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.portfolio-price {
    font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.1; color: var(--cobalt);
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.portfolio-price-label {
    font-family: var(--font-body); font-size: 11.5px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text-muted);
}
.portfolio-card-meta { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.portfolio-card-title { font-family: var(--font-display); font-size: 23px; font-weight: 500; line-height: 1.25; color: var(--navy); }
.portfolio-card-text { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin-top: 4px; }
.portfolio-params { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.portfolio-params li {
    border: 1px solid var(--cream-dark); color: var(--navy);
    font-size: 12.5px; letter-spacing: 0.03em; padding: 5px 10px;
}
.section-dark .portfolio-card-title { color: var(--white); }
.section-dark .portfolio-card-meta, .section-dark .portfolio-card-text { color: rgba(255,255,255,0.78); }
.section-dark .portfolio-price { color: var(--cobalt-light); }
.section-dark .portfolio-price-label { color: rgba(255,255,255,0.6); }
.section-dark .portfolio-params li { border-color: rgba(255,255,255,0.25); color: var(--white); }


/* Podpis pod zdjeciem w lightboxie (tytul + lokalizacja i cena) */
.portfolio-wrap .lightbox-slide figcaption { color: var(--white); text-align: center; margin-top: 14px; display: grid; gap: 4px; }
.portfolio-wrap .lightbox-slide figcaption strong { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.portfolio-wrap .lightbox-slide figcaption span { font-size: 14px; color: rgba(255,255,255,0.75); }

/* Wstep na podstronie Portfolio: podpis agenta pod tekstem */
.portfolio-signature { display: grid; gap: 2px; margin-bottom: 26px; font-size: 15px; color: var(--text-muted); }
.portfolio-signature-name { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); font-weight: 500; }
.portfolio-signature-license { font-size: 13px; letter-spacing: 0.06em; color: var(--cobalt); }
.portfolio-intro-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 1080px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 900px) {
    .portfolio-track { margin-top: 28px; gap: 16px; }
    .portfolio-track .portfolio-card { flex: 0 0 min(70%, 300px); }
}
@media (max-width: 640px) {
    .portfolio-grid { grid-template-columns: 1fr; margin-top: 32px; }
    .portfolio-track .portfolio-card { flex: 0 0 82%; }
    .portfolio-price { font-size: 24px; }
    .section-note { margin-top: 36px; }
}


/* ── Belka e-booka: mala talia okladek nad przyciskiem ── */
.ebook-bar-covers {
    /* Okladki sa pozycjonowane absolutnie, wiec bez wymuszonej szerokosci
       kontener mial 0 px i talia lezala przy lewej krawedzi kolumny zamiast
       nad przyciskiem. */
    position: relative; align-self: stretch; width: 100%;
    height: 210px; margin-bottom: 22px;
}
.ebook-bar-cover {
    position: absolute; top: 50%; left: 50%;
    width: 118px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 14px 30px rgba(9, 18, 32, 0.45);
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.5s;
}
.ebook-bar-cover img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
/* Okladki prosto, schodkami po skosie w gore i w prawo (uklad z main page).
   Hero e-booka ma swoj wlasny wachlarz - to celowo dwa rozne uklady. */
.ebook-bar-cover-1 { transform: translate(-92%, -42%); z-index: 3; }
.ebook-bar-cover-2 { transform: translate(-50%, -52%); z-index: 2; }
.ebook-bar-cover-3 { transform: translate(-8%, -62%);  z-index: 1; }
.ebook-bar:hover .ebook-bar-cover-1 { transform: translate(-108%, -38%); }
.ebook-bar:hover .ebook-bar-cover-2 { transform: translate(-50%, -54%); }
.ebook-bar:hover .ebook-bar-cover-3 { transform: translate(8%, -70%); }
@media (hover: none) {
    .ebook-bar-cover-1 { transform: translate(-104%, -40%); }
    .ebook-bar-cover-2 { transform: translate(-50%, -52%); }
    .ebook-bar-cover-3 { transform: translate(4%, -64%); }
}
@media (max-width: 900px) {
    .ebook-bar-covers { height: 170px; margin: 0 auto 20px; max-width: 320px; }
}
@media (max-width: 400px) {
    .ebook-bar-cover { width: 96px; }
    .ebook-bar-covers { height: 150px; }
}

/* ── PODSTRONA "NASZ ZESPOL": pelne karty agentow + galeria wspolnych kadrow ── */
/* Karty stoja na samej gorze strony, wiec nic nie chowa sie pod hoverem:
   zdjecie, opis, specjalizacje i kontakt sa widoczne od razu. */
.section-team-full { background: var(--white); }
.team-full-list { display: grid; gap: 56px; margin-top: 52px; }
.team-full-card {
    display: grid; grid-template-columns: 5fr 7fr; gap: 44px;
    align-items: start;
}
/* Drugi agent lustrzanie, zeby dwie karty pod sobie nie wygladaly jak tabela */
.team-full-card:nth-child(even) { grid-template-columns: 7fr 5fr; }
.team-full-card:nth-child(even) .team-full-media { order: 2; }

.team-full-media {
    position: relative; overflow: hidden;
    border: var(--line); background: var(--cream-dark);
}
.team-full-media img {
    display: block; width: 100%; aspect-ratio: 3 / 4;
    object-fit: cover; object-position: center top;
}
.team-full-media .about-placeholder { display: block; width: 100%; aspect-ratio: 3 / 4; background: var(--brand-grad); }

.team-full-role { color: var(--cobalt); font-weight: 500; font-size: 14px; letter-spacing: 0.04em; }
.team-full-name { font-family: var(--font-display); font-size: clamp(28px, 3vw, 36px); font-weight: 500; color: var(--navy); margin-top: 2px; }
.team-full-license {
    display: inline-block; border: 1px solid var(--cobalt-pale); color: var(--cobalt-mid);
    font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 6px 12px; margin: 14px 0 0;
}
.team-full-focus { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--navy); margin: 18px 0 0; }
.team-full-bio { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin: 16px 0 0; }

.team-full-tags-label {
    font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-muted); margin: 26px 0 12px;
}
.team-full-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.team-full-tags li {
    border: var(--line); background: var(--cream);
    font-size: 14px; color: var(--navy); padding: 8px 14px;
}
.team-full-contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 900px) {
    .team-full-card,
    .team-full-card:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
    .team-full-card:nth-child(even) .team-full-media { order: 0; }
    .team-full-media img, .team-full-media .about-placeholder { aspect-ratio: 4 / 5; }
    .team-full-list { gap: 48px; }
    .team-full-contact .btn { width: 100%; justify-content: center; }
}

/* Galeria wspolnych zdjec: kafle 3:4, klik otwiera lightbox (ten sam co przy
   certyfikatach - obsluga w main.js po [data-gallery]). */
.section-team-gallery { background: var(--cream); }
.team-gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px;
}
.team-gallery-item {
    padding: 0; border: var(--line); background: var(--cream-dark);
    cursor: zoom-in; overflow: hidden; display: block;
}
.team-gallery-item img {
    display: block; width: 100%; aspect-ratio: 3 / 4;
    object-fit: cover; object-position: center top;
    transition: transform 0.5s ease;
}
.team-gallery-item:hover img { transform: scale(1.04); }

@media (max-width: 1080px) { .team-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .team-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
