/* =========================================================
   Metrohouse Tychy Nieruchomości - Main Stylesheet
   Clean, sharp, premium. No rounded corners.
   Marka: żółty (#ffcc00) + czerń. Żółć = akcent/CTA, czerń = ink/tytuły.
   ========================================================= */

/* Fonts są inlineowane w <head> przez er_render_critical_css() w inc/enqueue.php. */

/* ── VARIABLES ── */
:root {
    /* "Kobalt" zachowuje nazwę zmiennej (mniej zmian w kodzie), ale to teraz
       CZERŃ/INK: tytuły, linki, ikony, tła przycisków (z białym tekstem).
       Żółty tekst na jasnym tle jest nieczytelny, więc żółć NIE jest kobaltem. */
    --cobalt: #1a1a1a;
    --cobalt-mid: #000000;
    --cobalt-light: #3d3d3d;
    --cobalt-pale: #fff7cc;     /* delikatny żółty tint na jasne tła */
    --cream: #faf9f6;
    --cream-dark: #ecebe6;
    --text: #1c1c1c;
    --text-muted: #6b6b6b;
    --white: #ffffff;
    /* Marka Metrohouse: żółty akcent + czarne sekcje. "navy" = prawie czerń
       (tła ciemnych sekcji, biały tekst), "lavender" = żółć (kreski/akcenty
       na ciemnych sekcjach). */
    --navy: #141414;
    --lavender: #ffcc00;
    --brand-grad: linear-gradient(135deg, #141414 0%, #232323 45%, #2e2e2e 100%);
    --brand-grad-soft: linear-gradient(135deg, #141414 0%, #ffcc00 100%);
    /* Żółty marki - fille/CTA/akcenty (czarny tekst na żółtym). */
    --yellow: #ffcc00;
    --yellow-dark: #e6b800;
}

/* ── 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: 'Jost', sans-serif;
    background: var(--cream);
    color: var(--text);
    font-weight: 400;
    line-height: 1.65;
    /* Ucina przypadkowy poziomy "przewijanie w prawo" na mobile. clip (nie
       hidden) nie tworzy kontenera scrolla, więc nie psuje position: sticky. */
    overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
/* Make <picture> wrappers (from Imagify / WebP plugins) transparent in layout,
   so existing CSS targeting inner <img> (e.g. .logo-img height rules) keeps working. */
picture { display: contents; }
a { color: inherit; }

.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; }

/* ── HEADER / NAVBAR ── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 210;
    transition: background 0.4s, padding 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px 16px 60px;
    max-width: 1440px;
    margin: 0 auto;
    transition: padding 0.4s;
}

.site-header.scrolled {
    background: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(8px);
    border-bottom-color: var(--cream-dark);
}
.site-header.scrolled .header-inner { padding: 8px 32px 8px 60px; }
.site-header.scrolled .logo-name { color: var(--cobalt); }
.site-header.scrolled .logo-sub { color: var(--cobalt-mid); opacity: 0.7; }
.site-header.scrolled .nav-links a { color: var(--text); }
.site-header.scrolled .nav-links a:hover { color: var(--cobalt); }
.site-header.scrolled .nav-cta {
    background: var(--cobalt) !important;
    border-color: var(--cobalt) !important;
    color: var(--white) !important;
}

/* Logo */
.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    transition: color 0.4s;
}
/* Imagify owija <img> w <picture> i klasa .logo-img ląduje na picture.
   picture{display:contents} → inner img nie dostaje rule. Targetujemy oba + img w picture.
   Logo Metrohouse to żółty prostokąt z czarnymi literami - pokazujemy je BEZ filtra
   (w oryginalnych kolorach) zarówno na ciemnym hero, jak i po scrollu na jasnym tle. */
.logo-img,
.logo-img > img,
.logo picture > img {
    height: 84px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    transition: height 0.4s, max-width 0.4s;
}
.site-header.scrolled .logo-img,
.site-header.scrolled .logo-img > img,
.site-header.scrolled .logo picture > img {
    height: 48px;
    max-width: 200px;
}
.logo-name {
    font-family: 'Jost', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.4s;
}
.logo-sub {
    font-family: 'Jost', sans-serif;
    font-size: 0.56rem;
    letter-spacing: 0.28em;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    margin-top: 2px;
    transition: color 0.4s;
}

/* Nav */
.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white) !important;
    padding: 10px 24px;
    font-size: 0.7rem !important;
    letter-spacing: 0.12em;
    transition: background 0.3s !important;
    white-space: nowrap;
}

/* Prawa strona nav: social + language */
.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 18px;
}
.nav-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.nav-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.25s, transform 0.25s;
    width: 28px;
    height: 28px;
}
.nav-social a:hover {
    color: var(--white);
    transform: translateY(-1px);
}
.site-header.scrolled .nav-social a { color: rgba(28, 28, 28, 0.65); }
.site-header.scrolled .nav-social a:hover { color: var(--cobalt); }

@media (max-width: 900px) {
    .nav-social { display: none; }
    /* Cały nav-right znika na mobile - lang switcher jest w mobile-panel. Hamburger dzięki
       temu zostaje ostatnim dzieckiem flexboxa header-inner i ląduje na prawo. */
    .nav-right { display: none; }
    .nav-toggle { margin-left: auto; }
}

/* Przełącznik języka PL / EN */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    font-weight: 500;
}
.lang-btn {
    background: transparent;
    border: 0;
    padding: 8px 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.25s;
    letter-spacing: 0.14em;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    min-height: 24px;
    min-width: 24px;
    text-decoration: none;   /* zabiera domyślny underline <a> */
}
.lang-btn:hover { color: var(--white); text-decoration: none; }
.lang-btn.active {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
}
.lang-sep {
    color: rgba(255, 255, 255, 0.35);
    user-select: none;
}
.site-header.scrolled .lang-btn { color: var(--text); }
.site-header.scrolled .lang-btn:hover { color: var(--cobalt); }
.site-header.scrolled .lang-btn.active { color: var(--cobalt); }
.site-header.scrolled .lang-sep { color: rgba(28, 28, 28, 0.3); }

.lang-switcher-mobile {
    margin: 24px 0 0;
    justify-content: flex-start;
}
/* Mobile panel ma cream tło - tekst MUSI być ciemny (AA) */
.lang-switcher-mobile .lang-btn { color: var(--cobalt); }
.lang-switcher-mobile .lang-btn.active { color: var(--cobalt); font-weight: 600; }
.lang-switcher-mobile .lang-sep { color: rgba(0, 0, 0, 0.5); }

@media (max-width: 900px) {
    .lang-switcher:not(.lang-switcher-mobile) { display: none; }
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: rgba(255, 255, 255, 0.25) !important; }

/* Nav Toggle (mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 201;
    transition: color 0.3s;
}
.nav-toggle-close { display: none; }
.nav-toggle.active .nav-toggle-open { display: none; }
.nav-toggle.active .nav-toggle-close { display: block; }
.nav-toggle.active { color: var(--cobalt); }
.site-header.scrolled .nav-toggle { color: var(--cobalt); }

/* Zwijamy nawigację do hamburgera już na mniejszych ekranach (<=1200px) -
   inaczej duże logo + dużo pozycji menu nachodzą na siebie. Poniżej zostaje
   samo logo po lewej + hamburger po prawej. */
@media (max-width: 1200px) {
    .nav-links { display: none; }
    .nav-right { display: none; }
    .nav-social { display: none; }
    .lang-switcher:not(.lang-switcher-mobile) { display: none; }
    .nav-toggle { display: block; margin-left: auto; }
    .mobile-panel,
    .mobile-panel-overlay { display: block; }
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    background: var(--yellow);
    color: #111;
    text-decoration: none;
    padding: 16px 40px;
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover {
    background: var(--yellow-dark);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--cobalt);
    color: var(--cobalt);
    text-decoration: none;
    padding: 15px 36px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    transition: all 0.3s;
}
.btn-outline:hover {
    background: var(--cobalt);
    color: var(--white);
}

/* ── SECTION COMMON ── */
section {
    padding: 88px 60px;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cobalt);
    margin-bottom: 20px;
    font-weight: 500;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.3rem, 3.5vw, 3.8rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--cobalt);
    margin-bottom: 24px;
}
.section-title em { font-style: italic; }

.section-line {
    height: 2px;
    background: linear-gradient(to right, var(--yellow), var(--yellow-dark), transparent);
    max-width: 80px;
    margin-bottom: 40px;
}

/* ── HERO ── */
.hero-section {
    min-height: 100vh;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    contain: layout paint;
    justify-content: center;
    overflow: hidden;
    background: var(--brand-grad);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(20, 20, 20, 0.32) 0%,
        rgba(20, 20, 20, 0.2) 45%,
        rgba(20, 20, 20, 0.62) 100%
    );
}
.hero-bg-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cobalt) 0%, var(--cobalt-mid) 50%, var(--cobalt-light) 100%);
}

.hero-overlay-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 920px;
    padding: 80px 24px 0;
    text-align: center;
    color: #fff;
    transform: translateY(20px);
}
.hero-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--yellow);
    font-weight: 600;
    margin-bottom: 18px;
}
.hero-h1 {
    font-family: 'Jost', sans-serif;
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero-sub {
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin: 20px auto 0;
}
.hero-actions {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px 30px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.hero-btn .icon { flex-shrink: 0; }
.hero-btn-primary { background: var(--yellow); color: #111; }
.hero-btn-primary:hover { background: #fff; color: #111; }
.hero-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.hero-btn-outline:hover { background: #fff; color: var(--cobalt); border-color: #fff; }

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    z-index: 5;
}
.hero-scroll-line {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.55);
    animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(0.6); }
}

/* ── ABOUT ── */
.about-section {
    background: var(--white);
    padding: 88px 60px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
}
.about-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.about-content strong { color: var(--cobalt); font-weight: 500; }
.about-lead {
    font-size: 1.1rem !important;
    color: var(--text) !important;
    line-height: 1.8 !important;
}

.about-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.license-tag {
    display: inline-block;
    border: 1px solid var(--cobalt-pale);
    padding: 12px 20px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cobalt-mid);
}

/* Zdjęcie po prawej z minimalistyczną ramką (offset line) */
.about-media {
    padding: 0 16px 16px 0;
}
.about-photo {
    position: relative;
}
.about-photo::before {
    content: '';
    position: absolute;
    inset: 16px -16px -16px 16px;
    border: 1px solid var(--cobalt);
    z-index: 0;
}
.about-photo img,
.about-photo .about-photo-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top;
    display: block;
}
.about-photo-placeholder {
    background: linear-gradient(150deg, var(--cobalt) 0%, var(--cobalt-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Zalety pod spodem - minimalistyczny rząd z ikonami */
.about-advantages {
    max-width: 1280px;
    margin: 72px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}
.about-adv {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 3px solid var(--yellow);
}
.about-adv-icon {
    color: var(--cobalt);
    line-height: 0;
}
.about-adv h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.about-adv p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
}


/* ── SERVICES - simple 3-column grid ── */
.services-section {
    background: var(--brand-grad);
    color: var(--white);
    text-align: center;
}
.services-section .section-label {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    display: block;
}
.services-section .section-title {
    color: var(--white);
    text-align: center;
}
.services-section .services-lead {
    max-width: 720px;
    margin: 22px auto 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.75;
    text-align: center;
}
/* Karty wewn\u0105trz zostaj\u0105 wyr\u00f3wnane do lewej - czytelno\u015b\u0107 tre\u015bci */
.services-section .service-card { text-align: left; }

.services-cities {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
}
.services-cities span:not(.dot) { color: rgba(255, 255, 255, 0.85); }
.services-cities .dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    display: inline-block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

/* Mocniejsze, wyra\u017ane karty - schodkowy uk\u0142ad: \u015brodkowa ni\u017cej */
.service-card {
    background: rgba(255, 255, 255, 0.09);
    padding: 52px 36px 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.services-grid .service-card:nth-child(2) { transform: translateY(28px); }
.services-grid .service-card:nth-child(3) { transform: translateY(56px); }
.service-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.45);
}
.services-grid .service-card:nth-child(2):hover { transform: translateY(24px); }
.services-grid .service-card:nth-child(3):hover { transform: translateY(52px); }

.service-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--yellow);
    display: block;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 204, 0, 0.35);
    padding-bottom: 18px;
}

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 18px;
    color: var(--white);
    line-height: 1.2;
}
.service-card p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 24px;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 22px;
    margin-top: auto;
}
.service-list li {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.78);
    padding-left: 18px;
    position: relative;
}
.service-list li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Services CTA - centered below the grid (uwzgl\u0119dnia schodkowy offset kart) */
.services-cta {
    text-align: center;
    margin-top: 110px;
}
.btn-services-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 40px;
    background: var(--yellow);
    color: #111;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--yellow);
    transition: background 0.3s, border-color 0.3s;
}
.btn-services-cta:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
}
.btn-services-cta .btn-arrow { font-size: 1.1rem; }

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .services-grid .service-card:nth-child(2),
    .services-grid .service-card:nth-child(3) { transform: none; }
    .services-grid .service-card:nth-child(2):hover,
    .services-grid .service-card:nth-child(3):hover { transform: none; }
    .services-cta { margin-top: 40px; }
}

/* ── PORTFOLIO / REALIZACJE ── */
.portfolio-section {
    background: var(--cream);
    /* taka sama szerokość/wyśrodkowanie jak sekcja Sprzedane (wąska karuzela) */
    max-width: 1280px;
    margin: 0 auto;
    padding: 88px 60px;
}
@media (max-width: 700px) {
    /* minimalny padding boczny, żeby karuzela inwestycji była dobrze widoczna */
    .portfolio-section { padding: 64px 10px; }
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.property-card {
    background: var(--white);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Portfolio card image - aspect-ratio ustawiony na img (działa też gdy Imagify wrapuje w picture) */
.property-img,
.property-card picture > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top;
    background: var(--cobalt-pale);
    display: block;
    height: auto;
}
.property-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--cobalt-pale), var(--cobalt));
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-body { padding: 24px; }

.property-sold {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--cobalt);
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 12px;
}

.property-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--cobalt);
    margin-bottom: 6px;
}
.property-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.property-meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--cream-dark);
}
.property-meta span {
    font-size: 0.72rem;
    color: var(--cobalt-mid);
    letter-spacing: 0.05em;
}

/* ── PORTFOLIO CAROUSEL ── */
.portfolio-carousel {
    margin-top: 40px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.portfolio-carousel-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: carousel-scroll 40s linear infinite;
}
.portfolio-carousel-track:hover {
    animation-play-state: paused;
}
.portfolio-carousel .property-card {
    flex: 0 0 320px;
    min-width: 0;
}

@keyframes carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Portfolio arrows */
.portfolio-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--cobalt);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
}
.portfolio-carousel:hover .portfolio-arrow { opacity: 1; }
.portfolio-arrow:hover { background: var(--cobalt-mid); }
.portfolio-arrow-prev { left: 12px; }
.portfolio-arrow-next { right: 12px; }
.arrow-flip { transform: rotate(180deg); }
.portfolio-carousel.manual .portfolio-carousel-track {
    animation: none;
    transition: transform 0.5s ease;
}

/* Mobile: samoprzewijanie (auto-marquee) tak jak na desktopie - ciągły ruch
   bez potrzeby przeciągania. overflow: hidden = brak ręcznego scrolla, więc
   nie ma problemu z przesuwaniem góra-dół. Karty (zdjęcia) większe. */
@media (max-width: 700px) {
    .portfolio-carousel { overflow: hidden; }
    .portfolio-carousel-track { animation: carousel-scroll 36s linear infinite; }
    /* Strzałki zawsze widoczne (na dotyku nie ma hovera) */
    .portfolio-arrow { display: flex; opacity: 1; width: 40px; height: 40px; }
    .portfolio-arrow-prev { left: 8px; }
    .portfolio-arrow-next { right: 8px; }
}

/* ── TESTIMONIALS ── */
/* Opinie - ciemne (navy), tworzą ciągły ciemny blok: Lokalni eksperci ->
   Opinie -> Certyfikaty. Białe karty opinii dobrze kontrastują na navy. */
.testimonials-section {
    background: var(--navy);
}
.testimonials-section .section-label { color: var(--lavender); }
.testimonials-section .section-title { color: var(--white); }
.testimonials-section .section-line {
    background: linear-gradient(to right, var(--lavender), rgba(255, 204, 0, 0.2), transparent);
}
.testimonials-section .opinions-cta a { color: rgba(255, 255, 255, 0.85); }
.testimonials-section .opinions-cta a:hover { color: var(--white); }

/* #12 - wyśrodkowanie NAGŁÓWKA sekcji opinie / inwestycje / FAQ (jak reszta).
   :first-child = tylko nagłówek; slider (.opinions-slider też ma .fade-in) NIE
   może być tu łapany, bo ściskało go do 760px. */
.testimonials-section > .fade-in:first-child,
.faq-header {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.portfolio-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}
.portfolio-header > div { width: 100%; }
.portfolio-header .portfolio-lead { margin-left: auto; margin-right: auto; }
.portfolio-header .btn-outline { margin-top: 24px; }
.testimonials-section > .fade-in .section-line,
.faq-header .section-line,
.portfolio-header .section-line {
    margin-left: auto;
    margin-right: auto;
}

.opinions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.opinion-card {
    background: var(--white);
    padding: 36px 30px;
    border-top: 3px solid var(--cobalt);
    /* Treść wyśrodkowana w pionie - krótkie opinie nie zostawiają pustej dziury
       na dole (karty w sliderze mają równą wysokość). */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                border-color 0.4s;
    cursor: default;
}
.opinion-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-top-color: var(--cobalt-light);
}

.stars {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 20px;
}
.opinion-card .google-badge { justify-content: center; }
.star-icon {
    color: var(--cobalt);
    fill: var(--cobalt);
    stroke: var(--cobalt);
}

.opinion-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
    border: none;
    padding: 0;
}

.opinion-author {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cobalt-mid);
    font-weight: 400;
}

.google-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.65rem;
    color: var(--text-muted);
}
.google-g {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Read more / less */
.read-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cobalt-mid);
    padding: 0;
    margin-top: 8px;
    display: inline-block;
    transition: color 0.3s;
    font-weight: 400;
}
.read-more-btn:hover { color: var(--cobalt); }

/* ── SLIDER ── */
.opinions-slider {
    margin: 48px auto 0;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.slider-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}
/* Mobile: przy 20+ opiniach kropki zajmują całą szerokość, a strzałki znikały.
   Kropki na górze (zawijają się), strzałki pod nimi. */
@media (max-width: 700px) {
    .slider-controls { flex-wrap: wrap; gap: 16px; }
    .slider-dots {
        order: -1;
        flex-basis: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .slider-dot { width: 7px; height: 7px; }
}

.slider-btn {
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    color: var(--cobalt);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}
.slider-btn:hover {
    background: var(--cobalt);
    border-color: var(--cobalt);
    color: var(--white);
}
.slider-btn:hover svg { stroke: var(--white); }
.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.slider-arrow-left { transform: rotate(180deg); }

.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.slider-dot {
    width: 8px;
    height: 8px;
    background: var(--cream-dark);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}
.slider-dot.active {
    background: var(--cobalt);
    transform: scale(1.3);
}

/* ── CITY BANNER / DLACZEGO JA - divider section ── */
.city-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 88px 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--navy);
    overflow: hidden;
}
.city-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        /* Struktura pionowa: krem na górze (łączy z jasną sekcją powyżej),
           przezroczyste w środku (widać zdjęcie), navy na dole = płynne
           przejście w ciemną sekcję opinii poniżej (jeden ciemny blok). */
        linear-gradient(180deg,
            var(--cream) 0%,
            rgba(245, 247, 249, 0) 16%,
            rgba(20, 20, 20, 0) 60%,
            rgba(20, 20, 20, 0.6) 85%,
            var(--navy) 100%),
        /* Markowy tint navy -> lawenda. Półprzezroczysty, żeby zdjęcie
           prześwitywało (napisy mają text-shadow dla czytelności). */
        linear-gradient(150deg,
            rgba(20, 20, 20, 0.6) 0%,
            rgba(20, 20, 20, 0.4) 48%,
            rgba(255, 204, 0, 0.42) 100%);
    z-index: 1;
}
.city-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 0 20px;
}
.city-banner-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.45);
    margin: 0 auto 28px;
}
.city-banner-tag {
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 22px;
}
.city-banner-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin-bottom: 26px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 4px 24px rgba(0, 0, 0, 0.55);
}
.city-banner-text {
    font-size: 1.08rem;
    line-height: 1.85;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.55),
        0 2px 16px rgba(0, 0, 0, 0.5);
}

/* USP cards inside the banner - 2x2 grid (2 po lewo, 2 po prawo) */
.city-banner-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 48px;
    width: 100%;
    max-width: 980px;
    margin-top: 60px;
    padding: 0 20px;
}
.cb-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 34px 28px;
    transition: background 0.35s, border-color 0.35s, transform 0.35s;
}
.cb-card:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-4px);
}
.cb-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.cb-card-icon img { width: 26px; height: 26px; object-fit: contain; }
.cb-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--white);
    margin: 0 0 10px;
    line-height: 1.25;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
.cb-card-text {
    font-size: 0.85rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.city-banner-cta {
    position: relative;
    z-index: 2;
    margin-top: 50px;
}
.city-banner-btn {
    background: var(--white) !important;
    border: 2px solid var(--white) !important;
    color: var(--cobalt) !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    padding: 16px 38px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.city-banner-btn:hover {
    background: var(--cream) !important;
    border-color: var(--cream) !important;
    color: var(--cobalt) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1024px) {
    .city-banner { padding: 90px 32px; }
    .city-banner-cards { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
}
@media (max-width: 640px) {
    .city-banner { padding: 70px 16px; }
    .city-banner-cards { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
    .cb-card { padding: 24px 22px; }
    .city-banner-btn {
        padding: 14px 24px !important;
        font-size: 0.8rem !important;
        letter-spacing: 0.1em !important;
        white-space: normal !important;
        text-align: center;
    }
}

/* ──────────────────────────────────────────────
   CASE STUDY - narrow centered cards with
   directional scroll-triggered slide animations
   ────────────────────────────────────────────── */
.case-study-header-centered {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.case-study-header-centered .section-line {
    margin-left: auto;
    margin-right: auto;
}
.case-study-header-centered .case-study-lead {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}


/* ── CASE STUDY SLIDER ── */
.cs-slider {
    position: relative;
    max-width: 820px;
    margin: 60px auto 0;
}
.cs-slider-viewport {
    overflow: hidden;
}
.cs-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.cs-slider .cs-card {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
}

/* Strza\u0142ki po bokach - na zewn\u0105trz slidera */
.cs-slider-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--cobalt-mid);
    background: var(--cream);
    color: var(--cobalt);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.cs-slider-btn:hover {
    background: var(--cobalt);
    color: var(--white);
    border-color: var(--cobalt);
}
.cs-slider-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}
.cs-slider-prev.cs-slider-side { left: -72px; }
.cs-slider-next.cs-slider-side { right: -72px; }
@media (max-width: 1000px) and (min-width: 641px) {
    .cs-slider-prev.cs-slider-side { left: 8px; }
    .cs-slider-next.cs-slider-side { right: 8px; }
    .cs-slider-side { background: rgba(250, 249, 246, 0.92); }
}
/* Mobile: strza\u0142ki + kropki w jednym pasku pod sliderem */
@media (max-width: 640px) {
    .cs-slider {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }
    .cs-slider-viewport { order: 1; flex: 1 0 100%; }
    .cs-slider-prev.cs-slider-side { order: 2; }
    .cs-slider-dots { order: 3; margin-top: 0; }
    .cs-slider-next.cs-slider-side { order: 4; }
    .cs-slider-side {
        position: static;
        transform: none;
        background: var(--cream);
    }
}
.cs-arrow-flip { transform: rotate(180deg); }

/* Kropki pod sliderem */
.cs-slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}
/* Touch target 24x24 (WCAG AA) - widoczna kropka 10x10 wyśrodkowana przez background-clip */
.cs-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--cream-dark) 0 5px, transparent 6px);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}
.cs-dot.active {
    background:
        radial-gradient(circle, var(--cobalt) 0 6px, transparent 7px);
    transform: scale(1.1);
}

/* ── PARALLAX DIVIDER ── */
.parallax-divider {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
@supports (-webkit-overflow-scrolling: touch) {
    /* iOS doesn't support background-attachment: fixed - fallback */
    .parallax-divider { background-attachment: scroll; }
}
@media (max-width: 900px) {
    .parallax-divider {
        height: 280px;
        background-attachment: scroll;
    }
}

/* ── CASE STUDY ── */
.case-study-section {
    background: var(--white);
}
.case-study-header { margin-bottom: 60px; }
.case-study-lead {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 700px;
}

.case-study-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.cs-card {
    border: 1px solid var(--cream-dark);
    background: var(--cream);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.cs-card:hover {
    border-color: var(--cobalt-pale);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
}

.cs-card-top {
    display: flex;
    align-items: center;
    padding: 36px 44px;
    gap: 32px;
}

.cs-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem; font-weight: 300;
    color: var(--cobalt);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.35;
}
.cs-card-info { flex: 1; }
.cs-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; font-weight: 400;
    color: var(--cobalt); margin-bottom: 4px; line-height: 1.25;
}
.cs-address {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.78rem; letter-spacing: 0.06em;
    color: var(--text-muted); margin-bottom: 0;
}
.cs-address svg { opacity: 0.5; }

.cs-stats {
    display: flex; gap: 28px;
    flex-shrink: 0;
    padding-left: 32px;
    border-left: 1px solid var(--cream-dark);
}
.cs-stat { display: flex; flex-direction: column; text-align: right; }
.cs-stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem; font-weight: 300;
    color: var(--cobalt); line-height: 1.1;
    white-space: nowrap;
}
.cs-stat-label {
    font-size: 0.6rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-muted); margin-top: 4px;
    max-width: 120px;
}

.cs-card-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--cream-dark);
}
.cs-step {
    padding: 32px 36px;
    border-right: 1px solid var(--cream-dark);
}
.cs-step:last-child { border-right: none; }

.cs-step-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}
.cs-step-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.cs-step-problem  { background: #e5484d; }   /* vivid red */
.cs-step-solution { background: #f59e0b; }   /* amber/gold */
.cs-step-result   { background: #16a34a; }   /* vivid green */

.cs-step h4 {
    font-size: 0.7rem; letter-spacing: 0.15em;
    text-transform: uppercase; font-weight: 500; color: var(--text);
}
.cs-step-content {
    font-size: 0.85rem; line-height: 1.75; color: var(--text-muted);
}

/* ── CTA STRIP ── */
.cta-strip {
    padding: 60px 60px;
    background: var(--cream);
    border-top: none;
}
/* Pierwsze CTA (pod sekcją usług) - ciemny gradient marki, biały tekst,
   żeby tworzyło jeden ciemny blok z sekcją "Jak pomagamy" powyżej. */
.cta-strip--services {
    background: var(--brand-grad);
}
.cta-strip--services .cta-title { color: var(--white); }
.cta-strip--services .cta-text { color: rgba(255, 255, 255, 0.78); }
.cta-strip--services .cta-phone { color: rgba(255, 255, 255, 0.9); }
.cta-strip--services .cta-phone:hover { color: var(--white); }

/* Drugie CTA (przed FAQ) - pełny żółty blok marki Metrohouse, czarny tekst.
   Mocny akcent koloru, żeby strona nie była zbyt czarna. */
.cta-strip--faq { background: var(--yellow); }
.cta-strip--faq .cta-title { color: #111; }
.cta-strip--faq .cta-text { color: rgba(0, 0, 0, 0.72); }
.cta-strip--faq .btn-primary { background: #111; color: #fff; }
.cta-strip--faq .btn-primary:hover { background: #000; }
.cta-strip--faq .cta-phone { color: #111; }
.cta-strip--faq .cta-phone:hover { color: #000; }

.cta-strip .cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--cobalt);
}

.cta-text {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 4px;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.cta-strip .btn-primary { white-space: nowrap; }

.cta-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--cobalt-mid);
    transition: color 0.3s;
}
.cta-phone:hover { color: var(--cobalt); }

/* ── FAQ ── */
.faq-section {
    background: var(--white);
}

.faq-header {
    margin-bottom: 60px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--cream-dark);
}
.faq-item:first-child {
    border-top: 1px solid var(--cream-dark);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--cobalt);
    letter-spacing: 0.01em;
    transition: color 0.3s;
    gap: 24px;
}
.faq-question:hover { color: var(--cobalt-mid); }

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--cobalt-mid);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 0;
}
.faq-answer > div {
    overflow: hidden;
}
.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    padding-bottom: 24px;
}
.faq-answer p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
    padding-right: 48px;
}

/* ── CONTACT ── */
.contact-section {
    background: var(--cream);
    padding: 88px 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1400px;
}
.contact-grid.has-photo {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
    align-items: start;
}

.contact-main {
    display: flex;
    flex-direction: column;
    gap: 48px;
    min-width: 0;
}
.contact-heading { margin-bottom: 0; text-align: center; }
.contact-heading .section-line { margin-left: auto; margin-right: auto; }
.contact-form-wrap .contact-lead { text-align: center; }

/* Kontener dopasowuje się do zdjęcia (a nie odwrotnie).
   Brackets dekoracyjne owijają każdy rozmiar zdjęcia dzięki position: absolute. */
.contact-photo {
    overflow: visible;
    position: sticky;
    top: 100px;
    align-self: start;
    width: 100%;
    margin: 0;
    line-height: 0;    /* zapobiega odstępowi pod <img> */
}

/* Decorative L-corner brackets (top-right + bottom-left) */
.contact-photo::before,
.contact-photo::after {
    content: '';
    position: absolute;
    width: 64px;
    height: 64px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.75);
    z-index: 2;
}
.contact-photo::before {
    top: -12px;
    right: -12px;
    border-left: none;
    border-bottom: none;
}
.contact-photo::after {
    bottom: -12px;
    left: -12px;
    border-right: none;
    border-top: none;
}
/* Na wąskich ekranach zdjęcie kontaktu jest pełnej szerokości (dotyka krawędzi),
   więc 12px boczne wysunięcie narożników wychodziło poza viewport i dawało
   poziomy scroll (biały pasek po prawej). Bo narożniki są na kontenerze
   overflow:visible + position:sticky, overflow-x:clip na body ich NIE ucina.
   Na mobile/tablecie trzymamy je przy krawędzi zdjęcia - zostaje pionowy akcent. */
@media (max-width: 1024px) {
    .contact-photo::before { right: 0; }
    .contact-photo::after { left: 0; }
}
/* Zdjęcie w naturalnej proporcji - żadnego croppingu.
   width:100% max-width:100% height:auto → browser zachowuje aspect z attr width/height.
   Imagify może wrapować w <picture> - selector łapie obie formy. */
.contact-photo > img,
.contact-photo picture,
.contact-photo picture > img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.contact-photo:hover img {
    transform: none;
}

.contact-lead {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-info {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--cobalt);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-item-text label {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
}
.contact-item-text a,
.contact-item-text span {
    display: block;
    font-size: 0.92rem;
    color: var(--cobalt);
    text-decoration: none;
    font-weight: 400;
}
.contact-item-text a:hover { text-decoration: underline; }

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

input,
textarea,
select {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    border: 1px solid var(--cream-dark);
    background: var(--white);
    padding: 14px 18px;
    outline: none;
    transition: border-color 0.3s;
    color: var(--text);
    border-radius: 0;
    -webkit-appearance: none;
}
input:focus,
textarea:focus,
select:focus { border-color: var(--cobalt); }
textarea { resize: vertical; min-height: 120px; }

.contact-form .btn-primary {
    align-self: flex-start;
    margin-top: 8px;
}

/* GDPR consent */
.form-consent p { margin: 0; }
/* CF7 wstawia <br> w środku labela - w flexie robi to rozjazd, usuwamy. */
.form-consent label br { display: none; }
.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    flex-wrap: nowrap;
}
.form-consent input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    margin: 2px 0 0;
    border: 2px solid var(--cobalt-mid);
    background: var(--white);
    cursor: pointer;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
}
.form-consent input[type="checkbox"]:hover { border-color: var(--cobalt); background: var(--cobalt-pale); }
.form-consent input[type="checkbox"]:checked {
    background: var(--cobalt);
    border-color: var(--cobalt);
}
.form-consent input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.consent-text {
    flex: 1 1 auto;
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
}
.consent-text a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.consent-text a:hover { color: var(--cream); }

/* CF7 [acceptance] - spłaszczamy zagnieżdżone spany CF7, żeby checkbox zgody
   ułożył się tak jak natywny (kwadrat + tekst obok). */
.form-consent .wpcf7-form-control-wrap,
.form-consent .wpcf7-acceptance,
.form-consent .wpcf7-acceptance .wpcf7-list-item,
.form-consent .wpcf7-acceptance label { display: contents; }
.form-consent .wpcf7-acceptance .wpcf7-list-item-label { display: none; }
.form-consent .wpcf7-list-item { margin: 0; }

.form-status {
    font-size: 0.85rem;
    padding: 12px 0;
}
.form-status.success { color: #1a5e3a; }
.form-status.error { color: #b91c1c; }

/* CF7 overrides - checkbox WYKLUCZONY, inaczej dostawał width:100% + padding
   i robił się z niego wielki pusty box zamiast kwadracika zgody. */
.cf7-form-wrapper .wpcf7-form input:not([type="checkbox"]):not([type="submit"]),
.cf7-form-wrapper .wpcf7-form textarea,
.cf7-form-wrapper .wpcf7-form select {
    width: 100%;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    border: 1px solid var(--cream-dark);
    background: var(--white);
    padding: 14px 18px;
    border-radius: 0;
}
/* Odstęp między zgodą a przyciskiem - przycisk niżej */
.cf7-form-wrapper .wpcf7-form .form-consent { margin-bottom: 12px; }
.cf7-form-wrapper .wpcf7-form input[type="submit"] {
    background: var(--cobalt);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    margin-top: 24px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    width: auto;
}
.cf7-form-wrapper .wpcf7-form input[type="submit"]:hover {
    background: var(--cobalt-mid);
}

/* Section transition fades removed - kept only on city banner */

/* ──────────────────────────────────────────────
   FEATURED SECTIONS - dark cobalt emphasis
   Applied to: services (already), case-study, contact
   ────────────────────────────────────────────── */

/* Shared accent: thin gold line above section title for featured sections */
.services-section .section-title::before,
.case-study-section.featured-dark .section-title::before,
.contact-section.featured-dark .section-title::before {
    content: '';
    display: block;
    width: 56px;
    height: 2px;
    background: var(--lavender);
    margin-bottom: 24px;
}

/* Bigger, bolder featured headings */
.services-section .section-title,
.case-study-section.featured-dark .section-title,
.contact-section.featured-dark .section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    letter-spacing: -0.01em;
}

/* CASE STUDY - light bg with COBALT cards */
.case-study-section.featured-light {
    background: var(--cream);
    color: var(--text);
    padding-top: 120px;
    padding-bottom: 120px;
}
.case-study-section.featured-light .section-label { color: var(--cobalt-mid); }
.case-study-section.featured-light .section-title { color: var(--cobalt); }
.case-study-section.featured-light .case-study-lead { color: var(--text-muted); }

.case-study-section.featured-light .cs-card {
    background: var(--cobalt);
    border: 1px solid var(--cobalt);
    color: var(--white);
}
.case-study-section.featured-light .cs-card:hover {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.case-study-section.featured-light .cs-number { color: var(--white); opacity: 0.5; }
.case-study-section.featured-light .cs-title { color: var(--white); }
.case-study-section.featured-light .cs-address { color: rgba(255, 255, 255, 0.65); }
.case-study-section.featured-light .cs-address svg { opacity: 0.7; }
.case-study-section.featured-light .cs-stats { border-left-color: rgba(255, 255, 255, 0.2); }
.case-study-section.featured-light .cs-stat-value { color: var(--white); }
.case-study-section.featured-light .cs-stat-label { color: rgba(255, 255, 255, 0.65); }
.case-study-section.featured-light .cs-card-steps { border-top-color: rgba(255, 255, 255, 0.18); }
.case-study-section.featured-light .cs-step { border-right-color: rgba(255, 255, 255, 0.18); }
.case-study-section.featured-light .cs-step h4 {
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.18em;
}
.case-study-section.featured-light .cs-step-content,
.case-study-section.featured-light .cs-step p { color: rgba(255, 255, 255, 0.85); }

/* CONTACT - dark variant */
.contact-section.featured-dark {
    background: var(--brand-grad);
    color: var(--white);
}

/* Decorative white lines flanking the form */
.contact-section.featured-dark .contact-form-wrap {
    position: relative;
    padding: 0 36px;
}
.contact-section.featured-dark .contact-form-wrap::before,
.contact-section.featured-dark .contact-form-wrap::after {
    content: '';
    position: absolute;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.55) 18%,
        rgba(255, 255, 255, 0.55) 82%,
        transparent 100%);
    pointer-events: none;
}
.contact-section.featured-dark .contact-form-wrap::before { left: 0; }
.contact-section.featured-dark .contact-form-wrap::after { right: 0; }
@media (max-width: 640px) {
    .contact-section.featured-dark .contact-form-wrap { padding: 0 18px; }
}
.contact-section.featured-dark .section-label { color: rgba(255, 255, 255, 0.55); }
.contact-section.featured-dark .section-title { color: var(--white); }
.contact-section.featured-dark .contact-lead { color: rgba(255, 255, 255, 0.75); }
.contact-section.featured-dark .contact-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.contact-section.featured-dark .contact-item-text label { color: rgba(255, 255, 255, 0.5); }
.contact-section.featured-dark .contact-item-text a,
.contact-section.featured-dark .contact-item-text span { color: var(--white); }

/* Form on dark bg */
.contact-section.featured-dark .contact-form input,
.contact-section.featured-dark .contact-form textarea,
.contact-section.featured-dark .contact-form select,
.contact-section.featured-dark .cf7-form-wrapper input[type="text"],
.contact-section.featured-dark .cf7-form-wrapper input[type="email"],
.contact-section.featured-dark .cf7-form-wrapper input[type="tel"],
.contact-section.featured-dark .cf7-form-wrapper textarea,
.contact-section.featured-dark .cf7-form-wrapper select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
}
.contact-section.featured-dark input::placeholder,
.contact-section.featured-dark textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.contact-section.featured-dark .contact-form input:focus,
.contact-section.featured-dark .contact-form textarea:focus,
.contact-section.featured-dark .cf7-form-wrapper input:focus,
.contact-section.featured-dark .cf7-form-wrapper textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}
.contact-section.featured-dark .form-label,
.contact-section.featured-dark .form-consent label { color: rgba(255, 255, 255, 0.7); }
.contact-section.featured-dark .form-consent a { color: var(--white); text-decoration: underline; }
.contact-section.featured-dark .form-consent input[type="checkbox"] {
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.12);
}
.contact-section.featured-dark .form-consent input[type="checkbox"]:checked {
    background: var(--white);
    border-color: var(--white);
}
/* Ptaszek musi być kontrastowy (kobalt) na białym tle, inaczej biały na białym
   = niewidoczny po zaznaczeniu zgody. */
.contact-section.featured-dark .form-consent input[type="checkbox"]:checked::after {
    border-color: var(--cobalt);
}
/* Hover / focus - wyraźna zmiana, żeby było widać że to klikalne */
.contact-section.featured-dark .form-consent input[type="checkbox"]:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}
.contact-section.featured-dark .form-consent input[type="checkbox"]:checked:hover {
    background: var(--white);
}
.contact-section.featured-dark .form-consent input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}
.contact-section.featured-dark .form-consent label:hover .consent-text { color: var(--white); }
.contact-section.featured-dark .form-consent a:hover { color: var(--cream); }
.contact-section.featured-dark .contact-form .btn-primary,
.contact-section.featured-dark .cf7-form-wrapper input[type="submit"] {
    background: var(--white);
    color: var(--cobalt);
    border: none;
}
.contact-section.featured-dark .contact-form .btn-primary:hover,
.contact-section.featured-dark .cf7-form-wrapper input[type="submit"]:hover {
    background: var(--cream);
    color: var(--cobalt);
}

/* ──────────────────────────────────────────────
   VIDEO SECTION
   ────────────────────────────────────────────── */
.video-section {
    background: var(--cream);
    padding: 100px 60px 40px;
}
.video-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.video-section .section-title {
    margin-bottom: 16px;
}
.video-lead {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}
.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--cobalt);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}
.video-wrap iframe,
.video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    background: var(--cobalt);
}

/* Poster + przycisk Play (lazy load) */
.video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background-color: var(--cobalt);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.3s;
    z-index: 2;
}
.video-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0,0.15), rgba(0, 0, 0,0.45));
    transition: background 0.3s;
}
.video-poster:hover::after {
    background: linear-gradient(180deg, rgba(0, 0, 0,0.05), rgba(0, 0, 0,0.25));
}
.video-poster-placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,0.12), transparent 60%),
        var(--cobalt);
}
.video-play-btn {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--cobalt);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    transition: transform 0.3s, background 0.3s;
}
.video-poster:hover .video-play-btn {
    transform: scale(1.08);
    background: #fff;
}

/* Player mount (puste do czasu kliknięcia) */
.video-player-mount {
    position: absolute;
    inset: 0;
    z-index: 3;
}
.video-player-mount:empty { display: none; }

/* Po odtworzeniu - ukryj poster, pokaż close */
.video-wrap.playing .video-poster { display: none; }
.video-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.video-close:hover { background: rgba(0,0,0,0.85); }
.video-wrap.playing .video-close { display: flex; }

@media (max-width: 640px) {
    .video-play-btn { width: 72px; height: 72px; }
    .video-play-btn svg { width: 26px; height: 26px; }
}

/* ──────────────────────────────────────────────
   WHY ME SECTION
   ────────────────────────────────────────────── */
.whyme-section {
    background: var(--cream);
    padding: 88px 60px;
}
.whyme-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}
.whyme-header .section-label,
.whyme-header .section-title { display: block; }
.whyme-lead {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-top: 18px;
}
.whyme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
}
.whyme-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    padding: 36px 28px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.whyme-card:hover {
    transform: translateY(-4px);
    border-color: var(--cobalt-pale);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}
.whyme-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--yellow);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.whyme-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--cobalt);
    margin: 0 0 12px;
    line-height: 1.25;
}
.whyme-card-text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .whyme-grid { grid-template-columns: repeat(2, 1fr); }
    .video-section { padding: 80px 40px 32px; }
    .whyme-section { padding: 80px 40px; }
}
@media (max-width: 640px) {
    .whyme-grid { grid-template-columns: 1fr; }
    .video-section { padding: 64px 24px 24px; }
    .whyme-section { padding: 64px 24px; }
    .case-study-section.featured-dark { padding-top: 80px; padding-bottom: 80px; }
}

/* ── MOBILE PANEL ── */
.mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 85vw;
    background: var(--cream);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: none;
}
.mobile-panel.open {
    transform: translateX(0);
}
/* Gdy menu mobilne otwarte - chowamy logo z headera, żeby nie nachodziło na panel
   (logo jest pokazane wewnątrz panelu). */
.menu-open .site-header .logo {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
/* Logo w panelu menu mobilnego - normalne kolory na jasnym tle */
/* Logo na dole panelu - pod nawigacją i danymi kontaktowymi */
.mobile-panel-brand {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--cream-dark);
}
.mobile-panel-logo {
    height: 46px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    filter: none;
}
.mobile-panel-logo-text {
    color: var(--cobalt);
    font-size: 1.4rem;
}
.mobile-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    display: none;
}
.mobile-panel-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.mobile-panel-inner {
    display: flex;
    flex-direction: column;
    padding: 100px 32px 40px;
    min-height: 100%;
}
.mobile-panel-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mobile-panel-nav a {
    display: block;
    padding: 14px 0;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cobalt);
    text-decoration: none;
    border-bottom: 1px solid var(--cream-dark);
    transition: color 0.2s;
}
.mobile-panel-nav a:last-child {
    border-bottom: none;
}
.mobile-panel-nav a:hover {
    color: var(--cobalt-mid);
}
.mobile-panel-info {
    margin-top: auto;
    padding-top: 32px;
    border-top: 1px solid var(--cream-dark);
}
.mobile-panel-name {
    font-family: 'Jost', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cobalt);
    margin: 0 0 4px;
}
.mobile-panel-role {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 0 0 8px;
}
.mobile-panel-license {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0 0 20px;
}
.mobile-panel-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mobile-panel-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text);
}
.mobile-panel-contact li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--cobalt);
    text-decoration: none;
}
.mobile-panel-contact li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--cobalt-mid);
}

/* ── FOOTER ── */
.site-footer {
    background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
    color: rgba(255, 255, 255, 0.7);
}

.footer-main {
    padding: 64px 60px 40px;
    max-width: 1440px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr;
    gap: 60px;
}

/* Brand col */
.footer-logo { text-decoration: none; }
.footer-logo .logo-name { color: var(--white); }
.footer-logo .logo-sub { color: rgba(255, 255, 255, 0.5); }
/* Imagify owija <img> w <picture class="footer-logo-img"> - filter ląduje na picture ale browser go nie stosuje na inner img.
   Dlatego aplikujemy rule na oba: .footer-logo-img (img bezpośrednio) i .footer-logo picture > img. */
.footer-logo-img,
.footer-logo-img > img,
.footer-logo picture > img {
    height: auto;
    max-height: 96px;
    max-width: 280px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}
.footer-social a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s;
}
.footer-social a:hover { color: var(--white); }

/* Footer columns */
.footer-heading {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}
.footer-list li svg {
    flex-shrink: 0;
    opacity: 0.5;
}
.footer-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}
.footer-list a:hover { color: var(--white); }

.footer-nav-list a {
    gap: 0;
    font-size: 0.82rem;
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 60px;
}

.footer-legal a {
    font-size: 0.75rem;
    text-decoration: none;
    color: var(--white);
    transition: opacity 0.3s;
}
.footer-legal a:hover { opacity: 0.75; }

.copyright {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: var(--white);
    opacity: 1;
}

.footer-credit {
    font-size: 0.72rem;
    text-decoration: none;
    color: var(--white);
    opacity: 0.85;
    transition: opacity 0.3s;
}
.footer-credit:hover { opacity: 1; }

/* Bezpiecznik przeciw poziomemu przewijaniu na mobile - clip na kontenerze
   treści łapie wystające elementy, a (inaczej niż hidden) nie psuje sticky. */
.site-main { overflow-x: clip; }

/* ── PRIVACY PAGE ── */
/* Niebieski hero na całą szerokość (podstrony, np. polityka prywatności) */
.site-main.has-page-hero { padding-top: 0; }
.page-hero {
    background: var(--cobalt);
    color: #fff;
    padding: 150px 60px 64px;
    text-align: center;
}
.page-hero-inner { max-width: 820px; margin: 0 auto; }
.page-hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 14px;
    font-weight: 500;
}
.page-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
}
@media (max-width: 640px) {
    .page-hero { padding: 120px 24px 48px; }
}

.privacy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 24px 90px;
}
.privacy-header {
    margin-bottom: 48px;
}
.privacy-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--cobalt);
    margin: 40px 0 16px;
}
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.privacy-content ul {
    margin: 0 0 20px 20px;
    color: var(--text-muted);
}
.privacy-content li {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 6px;
}
.privacy-content a {
    color: var(--cobalt-mid);
    text-decoration: underline;
}
.privacy-content strong { color: var(--cobalt); font-weight: 500; }
.privacy-back {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--cream-dark);
}

/* ── FLOATING PHONE ── */
.floating-phone-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 90;
    height: 60px;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    background: var(--cobalt);
    color: var(--white);
    display: flex;
    align-items: center;
    text-decoration: none;
    border: 2px solid #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.3s, background 0.3s, opacity 0.4s;
}
.floating-phone-icon {
    width: 56px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.floating-phone-icon svg { width: 26px; height: 26px; stroke-width: 2.2; }
/* Domyślnie sama słuchawka; numer odsłania się dopiero na hover (desktop). */
.floating-phone-number {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: max-width 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}
.floating-phone-btn:hover {
    background: var(--cobalt-mid);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.floating-phone-btn:hover .floating-phone-number {
    max-width: 240px;
    opacity: 1;
    padding: 0 6px 0 22px;
}
@keyframes phonePulse {
    0%, 100% {
        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.4),
            0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.4),
            0 0 0 12px rgba(255, 255, 255, 0);
    }
}
.floating-phone-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
}

/* ── SCROLL ANIMATION ── */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Mobile: bez animacji przesunięcia (powodowały problem z dojechaniem scrollem
   na sam dół) - treść od razu widoczna i stabilna. */
@media (max-width: 900px) {
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Staggered delays for grid children */
.opinions-grid .fade-in:nth-child(2),
.services-grid .fade-in:nth-child(2),
.properties-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.opinions-grid .fade-in:nth-child(3),
.services-grid .fade-in:nth-child(3),
.properties-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.properties-grid .fade-in:nth-child(4) { transition-delay: 0.15s; }
.properties-grid .fade-in:nth-child(5) { transition-delay: 0.2s; }
.properties-grid .fade-in:nth-child(6) { transition-delay: 0.25s; }

/* About advantages stagger */
.about-adv:nth-child(2) { transition-delay: 0.1s; }
.about-adv:nth-child(3) { transition-delay: 0.2s; }
.about-adv:nth-child(4) { transition-delay: 0.3s; }

/* Subtle slide from left for contact info */
.contact-info.fade-in {
    transform: translateX(-20px);
}
.contact-info.fade-in.visible {
    transform: translateX(0);
}

/* Subtle slide from right for contact form & photo */
.contact-form-wrap.fade-in,
.contact-photo.fade-in {
    transform: translateX(20px);
}
.contact-form-wrap.fade-in.visible,
.contact-photo.fade-in.visible {
    transform: translateX(0);
}
.contact-photo.fade-in { transition-delay: 0.15s; }

/* ── PAGE DEFAULT ── */
.page-default {
    padding-top: 120px;
}
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
}
.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--cobalt);
    margin-bottom: 40px;
}
.page-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    section { padding: 100px 40px; }
    .about-section { padding: 100px 40px; }
    .contact-section { padding: 100px 40px; }
    .header-inner { padding: 20px 32px; }
    .site-header.scrolled .header-inner { padding: 8px 32px; }
    .footer-main { padding: 48px 40px 32px; }
    .footer-bottom { padding: 16px 40px; }

    /* Tablet: 2-column grids before collapsing to 1 */
    .properties-grid { grid-template-columns: repeat(2, 1fr); }
    .opinions-grid { grid-template-columns: repeat(2, 1fr); }
    .slider-card { flex: 0 0 calc(50% - 12px); }

    .cs-card-top { padding: 28px 32px; }
    .city-banner { min-height: 420px; }
    .city-banner-content { padding: 60px 32px; }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }

    .nav-links { display: none; }
    .mobile-panel,
    .mobile-panel-overlay { display: block; }

    .city-banner { min-height: 380px; }
    .city-banner-content { padding: 48px 24px; }
    .city-banner-title { font-size: 1.8rem; }

    .cta-strip { padding: 40px 24px; }
    .cta-strip .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    section { padding: 80px 24px; }
    .about-section { padding: 80px 24px; }
    .contact-section { padding: 80px 24px; }
    .header-inner { padding: 14px 20px; }
    .site-header.scrolled .header-inner { padding: 6px 20px; }
    .hero-overlay-content { padding-top: 72px; }
    .hero-h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btn { width: 100%; padding: 17px 22px; font-size: 0.85rem; }
    .hero-scroll { display: none; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-media { padding: 0; max-width: 460px; }
    .about-photo::before { display: none; }
    .about-advantages { grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 48px; }

    .services-grid { grid-template-columns: 1fr; }

    .cs-card-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
        gap: 20px;
    }
    .cs-number { font-size: 3.5rem; }
    .cs-card-steps { grid-template-columns: 1fr; }
    .cs-step { border-right: none; border-bottom: 1px solid var(--cream-dark); padding: 24px; }
    .cs-step:last-child { border-bottom: none; }
    .cs-stats {
        flex-direction: row; gap: 24px;
        border-left: none; padding-left: 0;
        border-top: 1px solid var(--cream-dark);
        padding-top: 16px; width: 100%;
    }
    .cs-stat { text-align: left; }
    .cs-stat-label { max-width: none; }
    .properties-grid { grid-template-columns: 1fr; }
    .portfolio-carousel .property-card { flex: 0 0 84vw; }
    .faq-answer p { padding-right: 0; }
    .opinions-grid { grid-template-columns: 1fr; }
    .slider-card { flex: 0 0 100%; }
    .contact-grid,
    .contact-grid.has-photo { grid-template-columns: 1fr; gap: 48px; }
    .contact-photo {
        position: static;
        order: -1;
        max-height: none;
    }
    .contact-photo::before,
    .contact-photo::after { width: 40px; height: 40px; }
    .contact-main { gap: 40px; }
    .contact-section.featured-dark .contact-form-wrap { padding: 0; }
    .contact-section.featured-dark .contact-form-wrap::before,
    .contact-section.featured-dark .contact-form-wrap::after { display: none; }

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-main { padding: 48px 24px 32px; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-social { justify-content: center; }
    .footer-list { align-items: center; }
    .footer-list a { justify-content: center; }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 20px 24px;
    }
}

@media (max-width: 600px) {
    .hero-h1 { font-size: clamp(2rem, 9.5vw, 2.8rem); }
    section { padding: 64px 20px; }
    .about-section { padding: 64px 20px; }
    .contact-section { padding: 64px 20px; }

    .about-advantages { grid-template-columns: 1fr; }

    .service-card { padding: 36px 24px; }

    .opinion-card { padding: 32px 24px; }

    .faq-question { font-size: 0.9rem; padding: 20px 0; }
    .faq-answer p { padding-right: 0; }

    /* Case study slider - tighter on small phones */
    .cs-slider { padding: 0 8px; }
    .cs-number { font-size: 2.5rem; }
    .cs-card-top { padding: 20px 16px; gap: 16px; }
    .cs-slider-btn { width: 40px; height: 40px; }
    .cs-step { padding: 18px 16px; }
    /* override - na mobile strza\u0142ki s\u0105 pod (flex), nic nie robimy */

    /* Parallax smaller */
    .parallax-divider { height: 200px; }

    /* Floating phone - na mobile tylko ikona (bez rozwijania numeru, bo na
       dotyk :hover się zacina i numer się "buguje"). */
    /* numer widoczny, klik dzwoni (tel:) */
    /* Na mobile sam kwadrat ze słuchawką - numer całkiem schowany (brak hovera). */
    .floating-phone-btn { height: 56px; width: 56px; bottom: 20px; right: 20px; }
    .floating-phone-icon { width: 100%; }
    .floating-phone-number { display: none; }
}

/* =========================================================
   METROHOUSE TYCHY - dodatkowe sekcje (Zespół, Certyfikaty, nav-phone)
   ========================================================= */

/* ── Nav phone (desktop) ── */
.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    white-space: nowrap;
}
.nav-phone .icon { flex-shrink: 0; }
.nav-phone:hover { background: var(--white); color: var(--cobalt); }
.site-header.scrolled .nav-phone {
    color: var(--cobalt);
    border-color: var(--cobalt-pale);
    background: var(--cobalt-pale);
}
.site-header.scrolled .nav-phone:hover { background: var(--cobalt); color: var(--white); }

/* ── Team / Zespół ── */
.team-section {
    padding: 88px 60px;
    max-width: 1280px;
    margin: 0 auto;
}
.team-header { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.team-header .section-line { margin-left: auto; margin-right: auto; }
.team-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 4px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.team-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
}
.team-card:hover {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}
.team-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, var(--cobalt), var(--cobalt-mid));
    overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.team-license {
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--cobalt);
    color: #fff;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 16px;
    font-weight: 600;
}
.team-body {
    padding: 28px 30px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.team-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.95rem;
    font-weight: 600;
    color: var(--cobalt);
    line-height: 1.05;
}
.team-role {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}
.team-bio {
    margin-top: 16px;
    color: var(--text);
    line-height: 1.7;
    font-size: 0.98rem;
}
.team-contact {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.team-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cobalt);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.team-contact-item .icon { flex-shrink: 0; }
.team-contact-item:hover { color: var(--cobalt-mid); }

/* ── Certificates / Certyfikaty (minimalistyczny ciemny pas) ── */
.cert-section {
    padding: 76px 60px;
    /* Pionowy: navy na górze (płynnie z sekcji opinii) -> lawenda na dole
       (zakończenie ciemnego bloku marki). */
    background: linear-gradient(180deg, var(--navy) 0%, #3a4a6b 55%, #5b5980 100%);
    color: #fff;
}
.cert-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.cert-head { margin-bottom: 8px; }
.cert-section .section-label { color: rgba(255, 255, 255, 0.7); }
.cert-section .section-title { color: #fff; }
.cert-lead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.7;
}
.cert-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.cert-item {
    flex: 1 1 0;
    min-width: 190px;
    padding: 34px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cert-item:last-child { border-right: none; }
.cert-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.3rem;
    font-weight: 600;
    line-height: 1;
}
.cert-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* Galeria certyfikatów - subtelne miniatury (klik = PDF). 2 pionowe + 2 poziome
   wyrównane do dołu; różne proporcje zachowane przez object-fit: contain. */
.cert-gallery {
    margin-top: 56px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 22px;
}
.cert-thumb {
    display: block;
    background: #fff;
    padding: 8px;
    line-height: 0;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}
.cert-thumb img {
    display: block;
    height: 180px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}
a.cert-thumb { cursor: pointer; }
.cert-thumb:hover {
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

/* ── Certyfikaty - wolny, nieskończony slider (reużywa marquee z portfolio) ── */
.cert-carousel { margin-top: 44px; }
.cert-carousel .portfolio-carousel-track {
    animation: carousel-scroll 55s linear infinite;
    gap: 28px;
    align-items: center;
}
.cert-carousel .cert-thumb {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 12px;
    line-height: 0;
}
.cert-carousel .cert-thumb img { display: block; object-fit: contain; max-width: none; }
/* auto - kafelek dopasowuje się do obrazka (stała wysokość, naturalna szerokość) */
.cert-carousel--auto .cert-thumb img { height: 170px; width: auto; }
/* poziomy - jednolity kształt landscape */
.cert-carousel--poziomy .cert-thumb { width: 250px; height: 175px; }
.cert-carousel--poziomy .cert-thumb img { width: 100%; height: 100%; }
/* pionowy - jednolity kształt portret */
.cert-carousel--pionowy .cert-thumb { width: 155px; height: 215px; }
.cert-carousel--pionowy .cert-thumb img { width: 100%; height: 100%; }
@media (max-width: 700px) {
    .cert-carousel--auto .cert-thumb img { height: 140px; }
    .cert-carousel--poziomy .cert-thumb { width: 200px; height: 140px; }
    .cert-carousel--pionowy .cert-thumb { width: 130px; height: 180px; }
}

/* ── Sprzedane - siatka kart (reużywa property-card) ── */
.sold-section {
    padding: 88px 60px;
    max-width: 1280px;
    margin: 0 auto;
}
@media (max-width: 700px) {
    .sold-section { padding: 72px 16px; }
}
.sold-header {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}
.sold-header .section-line { margin-left: auto; margin-right: auto; }
.sold-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 4px;
}
/* Slider Sprzedane - duże zdjęcia, plakietka w lewym górnym rogu, info na hover */
/* Sprzedane - slider: 2 zdjęcia naraz, auto-zmiana co 5s (JS), pauza na hover. */
.sold-slider {
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}
.sold-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}
.sold-slider .sold-card { flex: 0 0 calc(50% - 12px); min-width: 0; }
@media (max-width: 700px) {
    .sold-slider .sold-card { flex: 0 0 100%; }
}
.sold-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.sold-slider-dots .slider-dot { background: rgba(0, 0, 0, 0.22); }
.sold-slider-dots .slider-dot.active { background: var(--cobalt); }
/* Strzałki po bokach slidera Sprzedanych */
.sold-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--cobalt);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s;
}
.sold-arrow:hover { background: var(--cobalt-mid); }
.sold-arrow-prev { left: 12px; }
.sold-arrow-next { right: 12px; }
@media (max-width: 700px) {
    .sold-arrow { width: 38px; height: 38px; }
    .sold-arrow-prev { left: 6px; }
    .sold-arrow-next { right: 6px; }
}
.sold-card-media {
    position: relative;
    aspect-ratio: 7 / 5;
    overflow: hidden;
    background: var(--cobalt-pale);
}
/* Łapiemy <img> także owinięty w <picture> przez Imagify (selektor potomka,
   nie tylko bezpośredniego dziecka). */
.sold-card-media picture { display: block; width: 100%; height: 100%; }
.sold-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.sold-card:hover .sold-card-media img { transform: scale(1.04); }
.sold-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cobalt-pale) 0%, var(--cobalt) 100%);
}
.sold-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: var(--cobalt);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 9px 16px;
}
.sold-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 22px;
    color: #fff;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0.35) 62%, rgba(10, 10, 10, 0) 100%);
}
.sold-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.15;
}
.sold-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}
.sold-card:hover .sold-details { max-height: 220px; opacity: 1; margin-top: 12px; }
.sold-details p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}
.sold-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.sold-meta span {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.18);
    padding: 5px 11px;
}
@media (max-width: 640px) {
    .portfolio-carousel .sold-card { flex: 0 0 84vw; }
    /* brak hovera na mobile - pokaż szczegóły od razu */
    .sold-details { max-height: 220px; opacity: 1; margin-top: 12px; }
}

/* Link "Zobacz opinie w Google" pod sliderem opinii */
.opinions-cta { text-align: center; margin-top: 48px; }

/* ── E-booki - kafelki, hover odsłania okładkę, klik = PDF ── */
.ebooks-section { padding: 88px 60px; background: var(--cream); }
.ebooks-inner { max-width: 1180px; margin: 0 auto; }
.ebooks-header { text-align: center; margin-bottom: 50px; }
.ebooks-header .section-line { margin-left: auto; margin-right: auto; }
.ebooks-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 660px;
    margin: 0 auto;
}
.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.ebook-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(160deg, #141414 0%, #2a2a2a 60%, #2e2e2e 100%);
    border: 1px solid rgba(255, 204, 0, 0.4);
    transition: box-shadow 0.4s, transform 0.4s;
}
a.ebook-card { cursor: pointer; }
/* Okładka - ukryta domyślnie, odsłania się na hover */
/* Okładka widoczna od razu (nie chowamy jej do hovera). */
.ebook-cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 1;
}
.ebook-cover img {
    width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
    transition: filter 0.45s ease, transform 0.45s ease;
}
/* Opis/tytuł ukryty domyślnie - pokazuje się dopiero na hover, na rozmytej
   okładce (żeby tekst nie gryzł się ze zdjęciem). */
.ebook-panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 28px 24px 64px;
    background: rgba(20, 20, 20, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
}
/* Kafelek bez okładki - tytuł widoczny od razu na tle marki. */
.ebook-card--noimg .ebook-panel {
    opacity: 1;
    background: none;
}
.ebook-label {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}
.ebook-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
}
.ebook-sub {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}
/* Pasek "Otwórz PDF" - pojawia się na hover na dole okładki */
.ebook-cta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: var(--cobalt);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Laptop/desktop: kafelek spoczywa mniejszy (sama okładka + guzik na dole).
   Po najechaniu powiększa się, okładka się rozmywa i pokazuje opis e-booka. */
@media (min-width: 901px) {
    .ebooks-grid { overflow: visible; }
    .ebook-card {
        transform: scale(0.86);
        transform-origin: center;
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }
    .ebook-card:hover {
        transform: scale(1.04);
        z-index: 4;
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    }
    .ebook-card:hover .ebook-cover img { filter: blur(4px) brightness(0.5); }
    .ebook-card:hover .ebook-panel { opacity: 1; }
}

/* Mobile: brak hovera - tytuł na dole na gradiencie (czytelny). */
@media (max-width: 900px) {
    .ebooks-section { padding: 80px 24px; }
    .ebooks-grid { grid-template-columns: 1fr; gap: 20px; max-width: 420px; margin: 0 auto; }
    .ebook-panel {
        opacity: 1;
        justify-content: flex-end;
        background: linear-gradient(to top, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.15) 55%, transparent);
    }
}

/* ── Wycena / wyceniarka (widget po lewej + podgląd raportu po prawej) ── */
.valuation-section {
    padding: 88px 60px;
    /* Ciemne tło marki - sekcja bardziej zauważalna (zamiast jasnego kremu). */
    background: var(--brand-grad);
}
.valuation-inner { max-width: 1100px; margin: 0 auto; }
.valuation-header {
    text-align: center;
    margin-bottom: 44px;
}
.valuation-header .section-label { color: var(--lavender); }
.valuation-header .section-title { color: var(--white); }
.valuation-header .section-line {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(to right, var(--lavender), rgba(255, 204, 0, 0.2), transparent);
}
/* Wyceniarka na całą szerokość - jedna kolumna; podgląd raportu pod spodem. */
.valuation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}
.valuation-grid--solo { grid-template-columns: 1fr; }
/* Biała karta wokół widgetu - wyróżnia formularz na ciemnym tle. */
/* Widget wyceny bez własnego tła - wyśrodkowany na szerszym ekranie. */
.valuation-embed {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}
/* Tekst obok podglądu raportu - jasny, bo tło sekcji jest ciemne. */
.valuation-report-col { max-width: 980px; margin: 0 auto; }
.valuation-section .valuation-report-caption { color: var(--white); }
.valuation-section .valuation-report-points li { color: rgba(255, 255, 255, 0.92); }

/* Podgląd raportu - zdjęcie po lewej (duże), opis + punkty po prawej. */
.valuation-report {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.valuation-report-media {
    position: relative;
    overflow: visible;
    background: #fff;
    border: 1px solid var(--cream-dark);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}
.valuation-report-media img { width: 100%; height: auto; display: block; }
a.valuation-report .valuation-report-media { transition: transform 0.4s, box-shadow 0.4s; }
a.valuation-report:hover .valuation-report-media {
    transform: translateY(-4px);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.26);
}
.valuation-badge {
    position: absolute;
    z-index: 3;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 9px 16px;
    color: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
}
.valuation-badge-free { top: 26px; left: -16px; background: #16a34a; }
.valuation-badge-real { top: 58%; right: -16px; background: var(--cobalt); }
.valuation-report-open {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    background: var(--cobalt);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
a.valuation-report:hover .valuation-report-open { background: var(--cobalt-mid); }
.valuation-report-info { margin-top: 0; }
.valuation-report-caption {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--cobalt);
    line-height: 1.2;
    margin: 0 0 18px;
}
.valuation-report-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.valuation-report-points li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 1.02rem;
    line-height: 1.45;
    color: var(--text);
}
.valuation-point-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
    border-radius: 50%;
}
@media (max-width: 900px) {
    .valuation-section { padding: 80px 24px; }
    .valuation-grid,
    .valuation-grid--solo { grid-template-columns: 1fr; gap: 40px; }
    /* Pod 900px wracamy do układu pionowego: zdjęcie na górze, opis pod spodem. */
    .valuation-report { grid-template-columns: 1fr; gap: 32px; }
    .valuation-report-info { margin-top: 0; }
    .valuation-report-col { max-width: 460px; margin: 0 auto; }
}

/* ── Exit-intent popup ── */
.exit-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.exit-popup.open { display: flex; }
.exit-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.65);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.exit-popup-box {
    position: relative;
    z-index: 1;
    background: #fff;
    width: 100%;
    max-width: 460px;
    padding: 46px 40px 40px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: exitPopIn 0.4s ease;
}
@keyframes exitPopIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
.exit-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    line-height: 0;
    transition: color 0.2s;
}
.exit-popup-close:hover { color: var(--cobalt); }
.exit-popup-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.95rem;
    font-weight: 600;
    color: var(--cobalt);
    line-height: 1.15;
    margin-bottom: 12px;
}
.exit-popup-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 26px;
}
.exit-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}
.exit-popup-actions .btn-primary { width: 100%; }
.exit-popup-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cobalt);
    font-weight: 500;
    text-decoration: none;
}
.exit-popup-phone:hover { text-decoration: underline; }
@media (max-width: 480px) {
    .exit-popup-box { padding: 40px 24px 30px; }
    .exit-popup-title { font-size: 1.7rem; }
}

/* ── Process / Sprzedaż krok po kroku (sticky photo + scroll) ── */
.process-section { padding: 88px 60px; }
.process-section .steps-photos-container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1280px;
}
.process-section .steps-photos-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
}
.process-section .steps-photos-title { text-align: center; margin-bottom: 0; }
.process-section .step-line-horizontal-header {
    height: 3px;
    background: var(--cobalt);
    width: 80px;
    margin-top: 22px;
}
.process-section .steps-photos-content { display: flex; flex-direction: row; gap: 20px; }
.process-section .steps-photos-content.no-photos { justify-content: center; }
.process-section .steps-column {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.process-section .sticky-photo-range { align-items: flex-end; margin-right: 20px; }
.process-section .sticky-photo-container {
    position: sticky;
    top: 100px;
    width: 90%;
    background-size: cover;
    background-position: center;
}
/* Minimalistyczna ramka wychodząca w lewo (offset) */
.process-section .sticky-photo-container::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    border: 1px solid var(--cobalt);
    z-index: 0;
    pointer-events: none;
}
.process-section .sticky-photo-container img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 9 / 10;
    object-fit: cover;
    object-position: top;
    transition: opacity 0.55s ease;
    display: block;
}
.process-section .steps-photos-steps { margin: 0 10px; }
.process-section .step-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    text-align: center;
}
.process-section .step-vertical-line {
    height: 44px;
    width: 3px;
    background: linear-gradient(180deg, var(--navy), var(--lavender));
    margin: 20px 0 24px;
}
.process-section .step-number {
    color: var(--cobalt);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.process-section .step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--cobalt);
    line-height: 1.15;
    margin: 0 0 14px;
}
.process-section .step-text {
    line-height: 1.7;
    color: var(--text-muted);
    font-size: 0.98rem;
}
/* Na desktopie zdjęcie kroku jest w sticky-photo - per-krokowe ukrywamy */
.process-section .step-photo-wrap { display: none; }

@media (max-width: 1200px) {
    .process-section .sticky-photo-container { width: 100%; }
}
@media (max-width: 900px) {
    .process-section { padding: 80px 24px; }
}
/* Mobile: kroki jako nakładające się karty (zdjęcie + podpis + tekst),
   sticky stacking - kolejne karty nachodzą na poprzednie przy scrollu. */
@media (max-width: 700px) {
    .process-section .sticky-photo-range { display: none; }
    .process-section .steps-photos-content { display: block; gap: 0; }
    .process-section .steps-photos-steps { display: block; margin: 0; width: 100%; }

    /* Każda karta = pełna wysokość ekranu, przykleja się pod headerem i kolejne
       nasuwają się na nią od dołu (stacking w górę). */
    .process-section .step-step {
        position: sticky;
        top: 64px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* karta wysokości treści (zdjęcie + tekst) - nie rozciąga się na cały
           ekran, dzięki czemu sekcja nie jest tak długa na telefonie */
        min-height: 0;
        max-width: 100%;
        text-align: left;
        background: #fff;
        border: 1px solid var(--cream-dark);
        /* tylko lekki cień */
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
        overflow: hidden;
        /* Odstęp = dystans, przez który karta zostaje widoczna zanim następna
           ją zasłoni. Mniejszy niż wcześniej, żeby sekcja nie była za długa.
           Ostatnia karta ma margin zerowany przez JS (updateLastMargin). */
        margin: 0 0 22vh;
        padding: 0;
    }
    .process-section .step-vertical-line { display: none; }

    /* Zdjęcie: stała wysokość na górze karty (nie rozciąga się), dzięki czemu
       napisy są wyżej. Wrap ma KONKRETNĄ wysokość, więc height:100% na <img>
       się rozwiązuje (bez sztuczek z absolutnym pozycjonowaniem). Łapiemy też
       <img> opakowany w <picture> przez Imagify. */
    .process-section .step-photo-wrap {
        display: block;
        position: relative;
        line-height: 0;
        flex: 0 0 auto;
        height: 40vh;
        max-height: 360px;
        overflow: hidden;
    }
    .process-section .step-photo-wrap img,
    .process-section .step-photo-wrap picture,
    .process-section .step-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
    .process-section .step-photo-caption {
        position: absolute;
        left: 0;
        bottom: 0;
        background: var(--cobalt);
        color: #fff;
        padding: 9px 16px;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        font-weight: 600;
    }
    .process-section .has-photo .step-number { display: none; }
    .process-section .step-step > .step-number,
    .process-section .step-step > .step-title,
    .process-section .step-step > .step-text { flex: 0 0 auto; }
    .process-section .step-number { padding: 20px 24px 0; margin: 0; }
    .process-section .step-title { padding: 22px 24px 0; font-size: 1.55rem; margin: 0; }
    /* Minimalistyczna kreska oddzielająca zdjęcie od napisów - kolor marki */
    .process-section .has-photo .step-title::before {
        content: '';
        display: block;
        width: 48px;
        height: 3px;
        background: linear-gradient(90deg, var(--navy), var(--lavender));
        margin-bottom: 18px;
    }
    .process-section .step-text { padding: 12px 24px 80px; font-size: 1rem; line-height: 1.6; }

    /* Karta bez zdjęcia - wyśrodkuj treść w pionie, żeby nie była przyklejona do góry */
    .process-section .step-step:not(.has-photo) { justify-content: center; }
}

/* ── Portfolio / Inwestycje lead ── */
.portfolio-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 14px;
    max-width: 680px;
}

/* Offset kotwic pod sticky header - działa też bez JS (natywny skok / :target).
   #formularz = karta formularza (klik "Kontakt" ląduje wprost na formularzu). */
:target,
section[id],
#formularz {
    scroll-margin-top: 100px;
}

@media (max-width: 900px) {
    .team-section { padding: 80px 24px; }
    .team-grid { grid-template-columns: 1fr; gap: 28px; }
    .team-photo { aspect-ratio: 3 / 2; }
    .cert-section { padding: 72px 24px; }
    .cert-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        min-width: 45%;
    }
}

@media (max-width: 560px) {
    .cert-item { min-width: 100%; }
    .cert-item:last-child { border-bottom: none; }
}

/* =========================================================
   MARKETING + PREZENTACJA NIERUCHOMOŚCI
   Lewy dół: Marketing. Prawy góra: Prezentacja. Środek: klaster
   3 nakładających się zdjęć (rotują przez pulę do 10).
   ========================================================= */
.mkt-section { background: var(--cream); padding: 96px 60px; }
.mkt-header { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.mkt-header .section-line { margin-left: auto; margin-right: auto; }
.mkt-lead { color: var(--text-muted); font-size: 1rem; line-height: 1.75; margin-top: 8px; }

.mkt-stage { position: relative; max-width: 1180px; margin: 0 auto; min-height: 880px; }
.mkt-copy { width: 320px; }
.mkt-copy--marketing { position: absolute; left: 0; bottom: 0; z-index: 5; }
.mkt-copy--prezentacja { position: absolute; right: 0; top: 0; z-index: 5; }
.mkt-copy-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 500; line-height: 1.1;
    margin-bottom: 20px; padding-left: 16px; position: relative;
}
.mkt-copy-title::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 5px; background: var(--yellow); }
.mkt-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.mkt-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.92rem; line-height: 1.45; color: var(--text); }
.mkt-list li svg { flex-shrink: 0; width: 21px; height: 21px; padding: 3px; color: #111; background: var(--yellow); }

/* Klaster po przekątnej: tl (szeroki, nad Marketing) -> main (kwadrat, środek)
   -> br1 (szeroki, pod Prezentacją). Rozmiary płynne (clamp + aspect-ratio),
   żeby skalowały się z szerokością i nie wychodziły poza kadr na mniejszych. */
.mkt-photos { position: absolute; inset: 0; z-index: 1; }
.mkt-photos::before {
    content: ''; position: absolute; z-index: 0;
    width: clamp(260px, 30vw, 400px); aspect-ratio: 1 / 1; top: 46%; left: 50%;
    transform: translate(calc(-50% + 52px), calc(-50% + 40px)); background: var(--yellow);
}
.mkt-photo { position: absolute; overflow: hidden; background: #dcdcdc; border: 6px solid #fff; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22); }
.mkt-photo--main { width: clamp(260px, 30vw, 400px); aspect-ratio: 1 / 1;   top: 46%; left: 50%; transform: translate(-50%, -50%); z-index: 4; }
.mkt-photo--tl   { width: clamp(300px, 42vw, 600px); aspect-ratio: 600 / 452; top: 0; left: 0; z-index: 2; }
.mkt-photo--br1  { width: clamp(300px, 38vw, 504px); aspect-ratio: 504 / 360; bottom: 0; right: 0; z-index: 3; }
/* Imagify owija <img> w <picture> (globalnie picture{display:contents}), a klasa
   może wylądować na <picture>. Dlatego .mkt-img działa i jako img, i jako picture
   (display:block + absolute), a inner img wypełnia kadr (object-fit: cover). */
.mkt-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
    opacity: 0; transition: opacity 1.8s ease-in-out;
    will-change: opacity;
}
.mkt-img.is-active { opacity: 1; }
.mkt-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) {
    .mkt-img { transition: opacity 0.6s ease; }
}
.mkt-img-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ececec, #d8d8d8); }

@media (max-width: 980px) {
    /* Mobile: lista Marketing -> zdjecie (srodek, zmienia sie) -> lista Prezentacja. */
    .mkt-section { padding: 64px 20px; }
    .mkt-stage { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 36px; }
    .mkt-copy { position: static; width: 100%; max-width: 480px; }
    .mkt-copy--marketing { order: 1; }
    /* position:relative = kontener dla .mkt-img (inaczej zdjecie ucieka do .mkt-stage
       i przykrywa cala sekcje). Kwadrat miedzy lista Marketing a Prezentacja. */
    .mkt-photos { position: relative; order: 2; width: min(86vw, 360px); aspect-ratio: 1 / 1; height: auto; margin: 0 auto; }
    .mkt-copy--prezentacja { order: 3; }
    .mkt-photos::before { display: none; }
    .mkt-photo--tl, .mkt-photo--br1 { display: none; }
    .mkt-photo--main { position: absolute; inset: 0; width: auto; transform: none; aspect-ratio: auto; }
}

/* =========================================================
   HOMESTAGING - porównanie przed/po (suwak)
   ========================================================= */
.hs-section { background: var(--brand-grad); color: #fff; padding: 96px 60px; }
.hs-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hs-copy .section-title { color: #fff; }
.hs-copy .section-label { color: var(--yellow); }
.hs-lead { color: rgba(255, 255, 255, 0.82); font-size: 1rem; line-height: 1.75; margin-top: 8px; }
.hs-points { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.hs-points li { display: flex; gap: 11px; align-items: flex-start; color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; line-height: 1.45; }
.hs-points li svg { flex-shrink: 0; width: 21px; height: 21px; padding: 3px; color: #111; background: var(--yellow); }

.hs-compare {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    user-select: none; touch-action: none; cursor: ew-resize;
    background: #222; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    outline: none;
}
.hs-img { position: absolute; inset: 0; }
.hs-img picture { display: block; position: absolute; inset: 0; }
.hs-img img,
.hs-img picture > img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hs-img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.hs-img-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hs-img-ph--after { background: linear-gradient(135deg, #ececec, #d2d2d2); }
.hs-img-ph--before { background: linear-gradient(135deg, #3a3a3a, #1f1f1f); }
.hs-label {
    position: absolute; bottom: 16px; z-index: 4;
    font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
    padding: 6px 12px;
}
.hs-label--before { left: 16px; color: #111; background: var(--yellow); }
.hs-label--after { right: 16px; color: #fff; background: rgba(0, 0, 0, 0.7); }
.hs-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--yellow); transform: translateX(-1.5px); z-index: 5; pointer-events: none; }
.hs-handle-grip {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 46px; height: 46px; background: var(--yellow); color: #111;
    display: flex; align-items: center; justify-content: center; gap: 1px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.hs-handle-grip svg { width: 14px; height: 14px; }

/* Slider setupów przed/po */
.hs-slider { position: relative; }
.hs-slider-viewport { position: relative; overflow: hidden; }
.hs-slider-track { display: flex; transition: transform 0.5s ease; }
.hs-slide { min-width: 100%; flex-shrink: 0; }
.hs-caption { margin-top: 14px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); text-align: center; }
.hs-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; background: var(--yellow); color: #111;
    border: none; cursor: pointer; z-index: 6;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); transition: background 0.3s;
}
.hs-nav:hover { background: var(--yellow-dark); }
.hs-prev { left: 14px; }
.hs-next { right: 14px; }
.hs-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.hs-dot { width: 9px; height: 9px; background: rgba(255, 255, 255, 0.3); border: none; cursor: pointer; padding: 0; transition: background 0.3s; }
.hs-dot.is-active { background: var(--yellow); }

@media (max-width: 900px) {
    .hs-section { padding: 64px 20px; }
    .hs-grid { grid-template-columns: 1fr; gap: 32px; }
    .hs-nav { width: 38px; height: 38px; }
}

/* =========================================================
   BELKA KONTAKTOWA (CTA pod Homestaging)
   ========================================================= */
.cbar-section { background: var(--cream); padding: 0 60px; position: relative; z-index: 3; }
.cbar {
    position: relative;
    max-width: 1100px; margin: 0 auto; background: #fff;
    border: 1px solid var(--cream-dark); border-left: 4px solid var(--yellow);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
    padding: 30px 40px; display: flex; align-items: center;
}
.cbar-main { padding-right: 350px; }
.cbar-text { font-size: 1rem; line-height: 1.5; color: var(--text); margin-bottom: 18px; max-width: 560px; }
.cbar-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cbar-contact { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--cobalt-mid); font-size: 0.9rem; letter-spacing: 0.02em; transition: color 0.3s; }
.cbar-contact:hover { color: var(--cobalt); }
/* Zdjęcie ~3x większe, w tym samym miejscu (prawa strona belki). Pozycja absolutna
   + wyśrodkowane w pionie - wystaje poza belkę i lekko nachodzi na sąsiednie sekcje. */
.cbar-photo {
    position: absolute; right: 44px; top: 50%; transform: translateY(-50%);
    width: 320px; height: 320px; border-radius: 50%; overflow: hidden; z-index: 2;
    border: 5px solid var(--yellow); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}
.cbar-photo picture { display: block; width: 100%; height: 100%; }
.cbar-photo img,
.cbar-photo picture > img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
    .cbar-main { padding-right: 0; }
    .cbar { flex-direction: column-reverse; text-align: center; gap: 24px; }
    .cbar-photo {
        position: static; transform: none; margin: -70px auto 0;
        width: 200px; height: 200px;
    }
    .cbar-actions { justify-content: center; }
}
@media (max-width: 760px) {
    .cbar-section { padding: 36px 20px; }
    .cbar { padding: 28px 22px; gap: 20px; }
    .cbar-text { margin-bottom: 4px; }
    .cbar-photo { margin-top: -64px; }
}
