/* ============================================================================
   OMEGA NIERUCHOMOŚCI — MOTYW v3
   Zbudowany od zera na oryginalnych szablonach z FTP. Zastępuje css/style.css
   i css/outer_screen.css (nie są już ładowane). Bootstrap zostaje dla siatki
   w treściach CMS oraz komponentów JS (zakładki, modale, okna dialogowe).

   Decyzje administratora z outer_screen.css odtworzone świadomie:
   - ukryty przełącznik języków (.language-section),
   - ukryte pole #objectTypeHolder w wyszukiwarce bocznej,
   - ukryta flaga "nowa oferta" na karcie oferty (.offerPage .offerFlag).

   Paleta: limonka H≈85 (500 = #6BAC0E), neutralne lekko zzielenione.
   Fonty: Outfit (nagłówki) + Work Sans (treść) — pełne polskie znaki.
   ========================================================================== */

/* ── 1. TOKENY ───────────────────────────────────────────────────────────── */
:root {
    --g-50:  #F4FAE8;
    --g-100: #E6F4CC;
    --g-500: #6BAC0E;   /* akcent, ikony, podkreślenia */
    --g-600: #4E7A0A;   /* tło przycisków z białym tekstem (5,11:1) */
    --g-700: #446C09;   /* zielony tekst / link na bieli (6,19:1) */
    --g-900: #253C05;   /* tekst na jasnozielonym tle */
    --g-soft: #A5D65C;  /* akcent na ciemnym */

    --ink:    #16200D;  /* tekst główny (16,85:1) */
    --text:   #2C3525;
    --muted:  #5B6554;  /* tekst drugorzędny (6,11:1) */
    --ph:     #6E7866;  /* placeholder */
    --line:   #DDE2D6;
    --line-2: #C3CBB9;
    --surface: #FFFFFF;
    --tint:   #F4FAE8;

    --dark:     #141A10;
    --dark-2:   #1E2718;
    --on-dark:  #E4EADD;
    --on-dark-2:#A9B29E;

    --amber:  #B45309;
    --danger: #B91C1C;

    --f-display: 'Outfit', 'Segoe UI', Arial, sans-serif;
    --f-body:    'Work Sans', 'Segoe UI', Arial, sans-serif;

    --r-sm: 10px;
    --r:    16px;
    --r-lg: 22px;
    --sh-sm: 0 1px 2px rgba(20, 26, 16, .05), 0 2px 8px rgba(20, 26, 16, .05);
    --sh:    0 4px 14px rgba(20, 26, 16, .07), 0 14px 36px rgba(20, 26, 16, .09);
    --sh-lg: 0 10px 30px rgba(20, 26, 16, .14), 0 30px 70px rgba(20, 26, 16, .18);
    --ease: cubic-bezier(.22, 1, .36, 1);

    --v3-hh: 76px;      /* wysokość nagłówka — nadpisuje js/v3.js */

    --ic-bookmark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z'/%3E%3C/svg%3E");
    --ic-bookmark-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z'/%3E%3Cpath d='m14.5 7.5-5 5m0-5 5 5'/%3E%3C/svg%3E");
    --ic-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
    --ic-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6554' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --ic-print: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E");
    --ic-pdf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 15h6M9 11h2'/%3E%3C/svg%3E");
    --ic-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    --ic-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E");
    --ic-cube: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 8v8l9 5 9-5V8z'/%3E%3Cpath d='m3 8 9 5 9-5M12 13v8'/%3E%3C/svg%3E");
    --ic-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m10 8 6 4-6 4V8z'/%3E%3C/svg%3E");
    --ic-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
    --ic-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
    --ic-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    --ic-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}

/* ── 2. BAZA ─────────────────────────────────────────────────────────────── */
/* bootstrap 3 ustawia html{font-size:10px} — wracamy do 16px, żeby rem
   znaczył to, co powinien */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, .pageTitle {
    font-family: var(--f-display);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
    line-height: 1.15;
    text-wrap: balance;
}
h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--g-700); text-decoration: none; transition: color .15s var(--ease); }
a:hover, a:focus { color: var(--g-900); text-decoration: none; }
img { max-width: 100%; }
address { font-style: normal; }
::selection { background: var(--g-100); color: var(--ink); }

:focus-visible { outline: 3px solid var(--g-500); outline-offset: 2px; border-radius: 4px; }
a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 3px solid var(--g-500); outline-offset: 2px; }

.clear { clear: both; }
.v3-sr, .sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.v3-icon {
    width: 20px; height: 20px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.v3-skip {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    padding: 12px 18px; border-radius: var(--r-sm);
    background: var(--ink); color: #fff; font-weight: 600;
}
.v3-skip:focus { top: 12px; color: #fff; }

/* kontener szerszy niż bootstrapowe 1170px na dużych ekranach */
@media (min-width: 1360px) { .container { width: 1296px; } }

/* ── 3. PRZYCISKI I POLA ─────────────────────────────────────────────────── */
.v3-btn,
.globalButton, input.globalButton, input.submit.globalButton, a.globalButton, button.globalButton,
.cookies-ok, .v3-symbol input[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: 0 1.25rem;
    border: 1px solid var(--g-600); border-radius: 12px;
    background: var(--g-600); color: #fff;
    font-family: var(--f-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
    text-align: center; text-decoration: none; white-space: nowrap;
    cursor: pointer; -webkit-appearance: none; appearance: none;
    transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.v3-btn:hover, .v3-btn:focus,
.globalButton:hover, .globalButton:focus, .cookies-ok:hover, .v3-symbol input[type="submit"]:hover {
    background: var(--g-700); border-color: var(--g-700); color: #fff; text-decoration: none;
}
.v3-btn--ghost, a.globalButton.v3-btn--ghost, .globalButton.v3-btn--ghost {
    background: var(--surface); border-color: var(--line-2); color: var(--ink);
}
.v3-btn--ghost:hover, .v3-btn--ghost:focus,
.globalButton.v3-btn--ghost:hover, .globalButton.v3-btn--ghost:focus {
    background: var(--tint); border-color: var(--g-600); color: var(--g-700);
}
.v3-btn--block { display: flex; width: 100%; }
.v3-btn--lg { min-height: 56px; padding: 0 1.6rem; font-size: 1.05rem; }

.form-control {
    height: 48px; padding: 0 14px;
    border: 1px solid var(--line-2); border-radius: var(--r-sm);
    background-color: var(--surface); color: var(--ink);
    font-family: var(--f-body); font-size: 1rem;
    box-shadow: none;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-control:hover { border-color: #A9B29E; }
.form-control:focus {
    border-color: var(--g-600); outline: none;
    box-shadow: 0 0 0 3px rgba(107, 172, 14, .25);
}
.form-control::placeholder { color: var(--ph); opacity: 1; }
textarea.form-control { height: auto; min-height: 150px; padding: 12px 14px; resize: vertical; }
select.form-control {
    -webkit-appearance: none; appearance: none;
    padding-right: 40px;
    background: var(--surface) var(--ic-chevron) no-repeat right 12px center / 18px;
}
select[multiple].form-control { background-image: none; height: auto; padding: 8px; }
/* Komunikaty walidacji. Markup serwera renderuje je przy KAŻDYM polu z góry
   („Proszę wypełnić to pole"), a pokazuje je dopiero forms.js, dokładając
   .has-error — dlatego domyślnie muszą być schowane. Tak samo robił stary
   style.css; v3 to zgubiło i czerwone napisy wisiały pod pustym formularzem. */
.help-block { display: none; margin: 6px 0 0; font-size: .85rem; color: var(--danger); }
.has-error .help-block, #captcha_error { display: block; }
.help-block:empty { display: none; }
.has-error .form-control { border-color: var(--danger); }
.has-error .form-control:focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, .18); }

/* checkboxy/radia: bootstrap pozycjonuje je absolutnie z ujemnym marginesem */
.checkbox, .radio { margin: 0 0 8px; }
.checkbox label, .radio label {
    display: flex; align-items: flex-start; gap: 10px;
    min-height: 0; padding: 0; margin: 0;
    font-weight: 500; line-height: 1.45; cursor: pointer;
}
.checkbox input[type="checkbox"], .radio input[type="radio"],
.checkbox-inline input, .radio-inline input {
    position: static; flex: none;
    width: 18px; height: 18px; margin: 2px 0 0;
    accent-color: var(--g-600); cursor: pointer;
}

/* podpowiedzi lokalizacji (typeahead) */
.twitter-typeahead { display: block !important; width: 100%; }
.tt-menu {
    width: 100%; margin-top: 6px; padding: 6px; z-index: 50 !important;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh);
}
.tt-suggestion { padding: 10px 12px; border-radius: 8px; color: var(--ink); cursor: pointer; }
.tt-suggestion:hover, .tt-suggestion.tt-cursor { background: var(--tint); color: var(--g-700); }

/* ── 4. UKŁAD SEKCJI ─────────────────────────────────────────────────────── */
.v3-section { padding: clamp(48px, 7vw, 96px) 0; }
.v3-section--tint { background: var(--tint); }
.v3-section__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px;
}
.v3-h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.v3-arrowlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--g-700); }
.v3-arrowlink .v3-icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.v3-arrowlink:hover .v3-icon { transform: translateX(3px); }

.v3-pagehead {
    background: var(--tint); border-bottom: 1px solid var(--line);
    padding: clamp(28px, 5vw, 56px) 0 clamp(22px, 4vw, 40px);
}
.v3-pagehead .pageHeader { margin: 0; border: 0; padding: 0; }
.v3-pagehead .pageTitle { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.v3-pagehead .pageTitle .small {
    display: inline-block; vertical-align: middle; margin-left: 10px;
    padding: 4px 12px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    font-family: var(--f-body); font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--g-900);
}
.v3-pagehead .pageTitle .small:empty { display: none; }

/* treść z CMS */
.v3-prose { font-size: 1.02rem; line-height: 1.75; color: var(--text); }
.v3-prose > :first-child { margin-top: 0; }
.v3-prose p, .v3-prose ul, .v3-prose ol { margin: 0 0 1em; }
.v3-prose ul, .v3-prose ol { padding-left: 1.3em; }
.v3-prose li { margin-bottom: .35em; }
.v3-prose h1, .v3-prose h2, .v3-prose h3, .v3-prose h4 { margin: 1.5em 0 .55em; }
.v3-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.v3-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.v3-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.v3-prose th, .v3-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.v3-prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }

/* generyczne strony (inwestycje, aktualności, mapa strony, błędy) */
#main-content > .container { padding-bottom: 48px; }
.pageHeader { border: 0; margin: 0 0 20px; padding: 0; }

/* ── 5. NAGŁÓWEK ─────────────────────────────────────────────────────────── */
.v3-header {
    position: sticky; top: 0; z-index: 60;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s var(--ease);
}
.v3-header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 26, 16, .08); }
.v3-header__bar {
    display: flex; align-items: center; gap: 20px;
    min-height: 76px;
}
.v3-header__bar::before, .v3-header__bar::after { display: none; }
.v3-logo { display: block; flex: none; }
.v3-logo img { display: block; height: 52px; width: auto; }
.v3-slogan { display: none; }
@media (min-width: 1400px) {
    .v3-slogan { display: block; margin: 0; max-width: 200px; font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
}

.v3-nav { margin-left: auto; }
#main-menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
#main-menu > li { position: relative; }
#main-menu > li > a {
    display: block; padding: 10px 12px; border-radius: 10px;
    font-weight: 600; font-size: .96rem; color: var(--ink); white-space: nowrap;
}
#main-menu > li > a:hover { background: var(--tint); color: var(--g-700); }
#main-menu > li.active > a { color: var(--g-700); background: var(--tint); }
#main-menu .subMenu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 70;
    min-width: 230px; margin: 0; padding: 8px; list-style: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s;
}
#main-menu > li:hover > .subMenu, #main-menu > li:focus-within > .subMenu { opacity: 1; visibility: visible; transform: none; }
#main-menu .subMenu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; }
#main-menu .subMenu a:hover { background: var(--tint); color: var(--g-700); }
#main-menu .v3-menu-tel { display: none; }

.v3-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* notatnik — notepad.js steruje widocznością .notepadLink (fadeIn/fadeOut) */
.notepadLink { display: none; }
.v3-notepad {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 14px;
    border: 1px solid var(--line-2); border-radius: 999px;
    color: var(--ink); font-weight: 600; font-size: .92rem;
}
.v3-notepad:hover { border-color: var(--g-600); color: var(--g-700); background: var(--tint); }
.v3-notepad__count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
    background: var(--g-600); color: #fff; font-size: .75rem; font-weight: 700;
}
.v3-notepad__count:empty { display: none; }

/* telefon — budowany przez v3.js z bloku .kontakt dostarczanego przez CMS */
.kontakt { display: none; }
.v3-call {
    display: inline-flex; align-items: center; gap: 10px;
    height: 46px; padding: 0 18px 0 14px; border-radius: 999px;
    background: var(--g-600); color: #fff; font-weight: 700; font-size: .98rem;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.v3-call:hover, .v3-call:focus { background: var(--g-700); color: #fff; }

.language-section { display: none !important; }

.v3-burger {
    display: none; align-items: center; justify-content: center;
    width: 48px; height: 48px; padding: 0;
    border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer;
}
.v3-burger[hidden] { display: none !important; }
.v3-burger__box { position: relative; width: 22px; height: 16px; }
.v3-burger__box span {
    position: absolute; left: 0; width: 100%; height: 2.4px; border-radius: 2px; background: var(--ink);
    transition: transform .25s var(--ease), opacity .2s var(--ease), top .25s var(--ease);
}
.v3-burger__box span:nth-child(1) { top: 0; }
.v3-burger__box span:nth-child(2) { top: 6.8px; }
.v3-burger__box span:nth-child(3) { top: 13.6px; }
body.v3-nav-open .v3-burger__box span:nth-child(1) { top: 6.8px; transform: rotate(45deg); }
body.v3-nav-open .v3-burger__box span:nth-child(2) { opacity: 0; }
body.v3-nav-open .v3-burger__box span:nth-child(3) { top: 6.8px; transform: rotate(-45deg); }

@media (max-width: 1099px) {
    .v3-header__bar { min-height: 68px; gap: 12px; }
    .v3-logo img { height: 44px; }
    .v3-notepad__label { display: none; }
    .v3-notepad { width: 44px; padding: 0; justify-content: center; position: relative; }
    .v3-notepad__count { position: absolute; top: -6px; right: -6px; }
    .v3-call { width: 44px; height: 44px; padding: 0; justify-content: center; }
    .v3-call__num { display: none; }
    .v3-burger { display: inline-flex; }

    /* bez JS: menu jako przewijany rząd pod logo */
    .v3-header__bar { flex-wrap: wrap; }
    .v3-nav { order: 5; width: 100%; margin: 0; overflow-x: auto; }
    #main-menu { padding-bottom: 8px; }

    /* z JS: pełnoekranowy panel pod nagłówkiem */
    .v3-js .v3-header__bar { flex-wrap: nowrap; }
    .v3-js .v3-header__actions { margin-left: auto; }
    .v3-js .v3-nav {
        position: fixed; left: 0; right: 0; top: var(--v3-hh); bottom: 0; z-index: 55;
        width: auto; overflow-y: auto; padding: 12px 20px 40px;
        background: var(--surface);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    }
    body.v3-nav-open .v3-nav { opacity: 1; visibility: visible; transform: none; }
    body.v3-nav-open { overflow: hidden; }
    .v3-js #main-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .v3-js #main-menu > li > a {
        padding: 16px 6px; border-radius: 0; background: none;
        border-bottom: 1px solid var(--line);
        font-family: var(--f-display); font-size: 1.35rem;
    }
    .v3-js #main-menu .subMenu {
        position: static; opacity: 1; visibility: visible; transform: none;
        min-width: 0; border: 0; box-shadow: none; padding: 4px 0 8px 12px;
    }
    .v3-js #main-menu .v3-menu-tel { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
    .v3-menu-tel a {
        display: flex; align-items: center; gap: 12px;
        min-height: 56px; padding: 0 18px; border-radius: 14px;
        background: var(--g-600); color: #fff; font-weight: 700; font-size: 1.15rem;
    }
    .v3-menu-tel a::before {
        content: ""; width: 20px; height: 20px; background: currentColor;
        -webkit-mask: var(--ic-phone) no-repeat center / contain; mask: var(--ic-phone) no-repeat center / contain;
    }
}

/* ── 6. HERO + WYSZUKIWARKA ──────────────────────────────────────────────── */
.v3-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: flex-end;
    min-height: calc(90vh - var(--v3-hh));
    min-height: calc(90svh - var(--v3-hh));
    padding: clamp(88px, 14vh, 150px) 0 clamp(28px, 5vh, 52px);
    background: var(--dark) url(../grafika/hero-buildings.jpg) center / cover no-repeat;
    color: #fff;
}
.v3-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* Wideo leży NA banerze animowanym z CMS (#animatedBannerHolder jest
   pozycjonowany, więc samo następstwo w DOM nie wystarcza — potrzebny
   własny kontekst i z-index). Odsłania się dopiero po starcie odtwarzania;
   gdy pliku nie ma, pod spodem zostaje baner. */
.v3-hero__video {
    position: absolute; inset: 0; z-index: 1;
    width: 100%; height: 100%; object-fit: cover; display: block;
    opacity: 0; transition: opacity 1.2s var(--ease);
}
.v3-hero__video.is-ready { opacity: 1; }
.v3-hero__shade {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(20, 26, 16, .55) 0%, rgba(20, 26, 16, .18) 38%, rgba(20, 26, 16, .62) 78%, rgba(20, 26, 16, .82) 100%);
}
.v3-hero__inner { position: relative; display: flex; flex-direction: column; gap: clamp(22px, 3.5vh, 36px); }
.v3-hero__inner::before, .v3-hero__inner::after { display: none; }
.v3-hero__copy { max-width: 780px; }
.v3-hero__eyebrow {
    margin: 0 0 14px; font-size: .82rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: var(--g-soft);
}
.v3-hero__title {
    margin: 0 0 16px;
    font-family: var(--f-display); font-weight: 700;
    font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1.03; letter-spacing: -.035em;
    color: #fff; text-wrap: balance;
}
.v3-hero__lead { margin: 0; max-width: 56ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .88); }
.v3-hero__banner { margin-top: 18px; color: #fff; }
.v3-hero__banner a { color: #fff; text-decoration: underline; }

/* baner animowany z CMS wypełnia tło hero */
#animatedBannerHolder, #animatedBannerHolder .bx-wrapper, #animatedBannerHolder .bx-viewport,
#animatedBanner, #animatedBanner li { height: 100% !important; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
#animatedBanner { list-style: none; }
#animatedBanner img { width: 100%; height: 100%; object-fit: cover; }
#animatedBannerHolder .embed { display: none; }
#animatedBannerHolder .bx-controls { display: none; }

/* karta wyszukiwarki */
.v3-search { width: 100%; margin: 0; }
.v3-search__card {
    display: grid; gap: 14px;
    padding: 18px;
    background: var(--surface); color: var(--ink);
    border-radius: 20px; box-shadow: var(--sh-lg);
}
.v3-search__deal {
    display: inline-flex; flex-wrap: wrap; gap: 4px; justify-self: start;
    margin: 0; padding: 4px; min-inline-size: 0;
    border: 0; border-radius: 12px; background: var(--tint);
}
.v3-seg { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.v3-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.v3-seg span {
    display: block; padding: 9px 18px; border-radius: 9px;
    font-weight: 600; font-size: .95rem; color: var(--muted);
    transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.v3-seg:hover span { color: var(--ink); }
.v3-seg input:checked + span { background: var(--surface); color: var(--g-700); box-shadow: 0 1px 3px rgba(20, 26, 16, .14); }
.v3-seg input:focus-visible + span { outline: 3px solid var(--g-500); outline-offset: 1px; }

.v3-search__main {
    display: grid; align-items: end; gap: 12px;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) auto;
}
.v3-search__main:has(#v3-province) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr) minmax(0, 1fr) auto; }
.v3-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.v3-field__label, .v3-range__label p {
    margin: 0; padding: 0;
    font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.v3-search .form-control { height: 52px; }
.v3-search__submit { margin: 0; }
.v3-search__submit .v3-btn { height: 52px; min-height: 52px; padding: 0 28px; }

.v3-search__toggle {
    display: inline-flex; align-items: center; gap: 8px; justify-self: start;
    padding: 6px 2px; border: 0; background: none;
    font-weight: 600; color: var(--g-700); cursor: pointer;
}
.v3-search__toggle[hidden] { display: none; }
.v3-search__more {
    display: grid; gap: 12px 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 14px; border-top: 1px solid var(--line);
}
.v3-range { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v3-range .form-box { margin: 0; }
.v3-range__pair { display: flex; min-width: 0; }
.v3-range__pair .form-box { flex: 1 1 0; min-width: 0; }
.v3-range__pair .form-control { height: 46px; }
.v3-range__pair .form-box:first-child .form-control { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.v3-range__pair .form-box:last-child .form-control { margin-left: -1px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.v3-range__pair .form-control:focus { position: relative; z-index: 1; }

@media (max-width: 991px) {
    .v3-hero { min-height: 0; padding-top: clamp(64px, 12vh, 110px); }
    .v3-search__main, .v3-search__main:has(#v3-province) { grid-template-columns: 1fr 1fr; }
    .v3-field--wide, .v3-search__submit { grid-column: 1 / -1; }
    .v3-search__submit .v3-btn { width: 100%; }
}
@media (max-width: 767px) {
    .v3-search__card { padding: 14px; border-radius: 18px; }
    .v3-search__deal { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; justify-self: stretch; }
    .v3-seg span { text-align: center; padding: 9px 8px; }
    .v3-search__main, .v3-search__main:has(#v3-province) { grid-template-columns: 1fr; }
    .v3-search__more { grid-template-columns: 1fr; }
    .v3-js .v3-search__more:not(.is-open) { display: none; }
}
@media (min-width: 768px) { .v3-search__toggle { display: none !important; } }

/* ── 7. KATEGORIE ────────────────────────────────────────────────────────── */
.v3-cats { background: var(--surface); border-bottom: 1px solid var(--line); }
.v3-cats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.v3-cats__grid::before, .v3-cats__grid::after { display: none; }
.v3-cat {
    display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--surface); color: var(--ink);
    transition: border-color .15s var(--ease), box-shadow .2s var(--ease), translate .2s var(--ease);
}
.v3-cat:hover, .v3-cat:focus { border-color: var(--g-500); box-shadow: var(--sh-sm); translate: 0 -2px; color: var(--ink); }
.v3-cat__icon {
    grid-row: span 2; width: 48px; height: 48px; padding: 11px; border-radius: 12px;
    background: var(--tint); fill: none; stroke: var(--g-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.v3-cat__name { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.v3-cat__sub { font-size: .84rem; color: var(--muted); }
@media (max-width: 767px) {
    .v3-cats__grid { grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
    .v3-cat { grid-template-columns: 40px minmax(0, 1fr); padding: 12px; }
    .v3-cat__icon { width: 40px; height: 40px; padding: 9px; }
    .v3-cat__sub { display: none; }
    .v3-cat__icon { grid-row: auto; }
}

/* ── 8. KARTY OFERT ──────────────────────────────────────────────────────────
   Jeden szablon (offers/list_tpl_view) w trzech kontekstach:
   .v3-cards (siatka na stronie głównej i w podobnych), .v3-results (lista
   wyników — poziomo od 768px). Karty w siatce mają równą wysokość: wiersz
   rozciąga je do najwyższej, a cena i akcje są dociśnięte do dołu. */
.v3-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.v3-card {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
    transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.v3-card:hover { border-color: var(--line-2); box-shadow: var(--sh); }
.v3-card__media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.v3-card__media a { display: block; width: 100%; height: 100%; }
.v3-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.v3-card:hover .v3-card__media img { transform: scale(1.04); }
.ofe-flag {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    padding: 5px 12px; border-radius: 999px;
    background: var(--amber); color: #fff; font-size: .78rem; font-weight: 700; line-height: 1.3;
}
.has360-flag {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    padding: 5px 10px; border-radius: 999px;
    background: rgba(20, 26, 16, .82); color: #fff; font-size: .76rem; font-weight: 700;
}
.v3-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 4px; }
.v3-card__title { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 1.15rem; line-height: 1.25; }
.v3-card__loc b { font-weight: 700; }
.v3-card__type { font-family: var(--f-body); font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.v3-card__type::first-letter { text-transform: uppercase; }
.v3-card .offerSymbol { font-size: .76rem; font-weight: 600; letter-spacing: .05em; color: var(--muted); }
.v3-card__desc {
    margin: 0; font-size: .92rem; line-height: 1.5; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.v3-card__desc:empty { display: none; }
.v3-card__props { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.v3-card .propertiesRow {
    display: inline-flex; align-items: baseline; gap: 5px;
    padding: 5px 10px; border-radius: 8px; background: var(--tint);
    font-size: .82rem; line-height: 1.3;
}
.v3-card .propertyKey { color: var(--muted); }
.v3-card .propertyValue { font-weight: 600; color: var(--ink); }
.v3-card__price { margin-top: auto; padding: 10px 20px 0; }
.v3-card .mainPrice {
    font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; line-height: 1.2;
    letter-spacing: -.01em; color: var(--ink);
}
.v3-card .mainPrice > span:first-child {
    margin-right: 6px; font-family: var(--f-body); font-size: .74rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.v3-card .otherPrices { font-size: .85rem; color: var(--muted); }
.v3-card__actions {
    position: relative; z-index: 3;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 0; padding: 10px 20px 14px; list-style: none;
}
.v3-card__actions a {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
    font-size: .88rem; font-weight: 600; color: var(--muted);
}
.v3-card__actions a:hover { color: var(--g-700); }
.v3-card__actions .notepadAdd::before, .v3-card__actions .notepadRemove::before,
.v3-card__actions .more-details a::after {
    content: ""; width: 17px; height: 17px; flex: none; background: currentColor;
}
.v3-card__actions .notepadAdd::before { -webkit-mask: var(--ic-bookmark) no-repeat center / contain; mask: var(--ic-bookmark) no-repeat center / contain; }
.v3-card__actions .notepadRemove { color: var(--g-700); }
.v3-card__actions .notepadRemove::before { -webkit-mask: var(--ic-bookmark-x) no-repeat center / contain; mask: var(--ic-bookmark-x) no-repeat center / contain; }
.v3-card__actions .more-details a { color: var(--g-700); }
.v3-card__actions .more-details a::after { -webkit-mask: var(--ic-arrow) no-repeat center / contain; mask: var(--ic-arrow) no-repeat center / contain; }
.v3-card__actions .more-details a::first-letter { text-transform: uppercase; }
.v3-card__actions .notepad a::first-letter { text-transform: uppercase; }
.overlayLink { position: absolute; inset: 0; z-index: 2; overflow: hidden; color: transparent !important; font-size: 0; }
.v3-card .overlayLink:focus-visible { outline: 3px solid var(--g-500); outline-offset: -3px; border-radius: 18px; }
/* oferty sprzedane/zarezerwowane */
.v3-card .offer-sold-status { opacity: .6; }
.offer-sold-status-info {
    position: absolute; top: 12px; left: 12px; z-index: 4;
    padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700;
}

/* lista wyników: karta pozioma */
.v3-results { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 768px) {
    .v3-results .v3-card {
        display: grid;
        grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
        grid-template-rows: 1fr auto auto;
        grid-template-areas: "media body" "media price" "media actions";
    }
    .v3-results .v3-card__media { grid-area: media; aspect-ratio: auto; height: 100%; min-height: 230px; }
    .v3-results .v3-card__body { grid-area: body; padding: 20px 24px 4px; }
    .v3-results .v3-card__price { grid-area: price; padding: 8px 24px 0; }
    .v3-results .v3-card__actions { grid-area: actions; justify-content: flex-start; gap: 22px; padding: 8px 24px 16px; }
}

/* ── 9. STRONA GŁÓWNA — sekcje ───────────────────────────────────────────── */
/* banery "Szukasz / Sprzedajesz" — duże kafle ze zdjęciem, zaraz pod kategoriami */
.v3-cta { padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(28px, 4vw, 52px); }
.v3-cta__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.v3-cta__grid::before, .v3-cta__grid::after { display: none; }
.v3-cta .banner {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: clamp(260px, 30vw, 380px);
    padding: clamp(24px, 3vw, 40px); padding-right: clamp(92px, 9vw, 120px);
    border-radius: var(--r-lg); background: var(--dark); color: #fff;
    box-shadow: var(--sh-sm);
    transition: translate .3s var(--ease), box-shadow .3s var(--ease);
}
.v3-cta .banner:hover { translate: 0 -4px; box-shadow: var(--sh); }
.v3-cta .banner > img:not(.v3-cta__photo) { display: none; }
.v3-cta__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--dark); }
.v3-cta__photo {
    position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none;
    object-fit: cover; transition: scale .9s var(--ease);
}
.v3-cta .banner:hover .v3-cta__photo { scale: 1.06; }
.v3-cta__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20, 26, 16, .08) 0%, rgba(20, 26, 16, .32) 42%, rgba(20, 26, 16, .86) 100%);
}
.v3-cta .banner::before {
    content: ""; position: absolute; z-index: -1; right: -60px; top: -60px;
    width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%);
}
.v3-cta .banner::after {
    content: ""; position: absolute; right: clamp(20px, 2.5vw, 32px); bottom: clamp(22px, 2.8vw, 36px);
    width: 56px; height: 56px; border-radius: 50%;
    background: #fff var(--ic-arrow) no-repeat center / 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    transition: translate .25s var(--ease), background-color .25s var(--ease);
}
.v3-cta .banner:hover::after { translate: 4px 0; background-color: var(--g-soft); }
.v3-cta .banner .embed {
    position: relative; max-width: 32ch;
    font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.5; color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 14px rgba(0, 0, 0, .28);
}
.v3-cta .banner h1, .v3-cta .banner h2, .v3-cta .banner h3 {
    margin: 0 0 10px; color: #fff;
    font-size: clamp(1.65rem, 2.8vw, 2.35rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance;
}
.v3-cta .banner p { margin: 0; color: rgba(255, 255, 255, .92); }
@media (max-width: 767px) {
    .v3-cta .banner { min-height: 240px; padding-right: 88px; }
    .v3-cta .banner::after { width: 48px; height: 48px; }
}

.v3-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.v3-extras::before, .v3-extras::after { display: none; }
.v3-stat {
    padding: 26px; border-radius: var(--r-lg);
    background: var(--dark); color: var(--on-dark); font-size: 1.05rem;
}
.v3-stat strong { display: block; margin: 4px 0; font-family: var(--f-display); font-size: 3rem; line-height: 1; color: var(--g-soft); }
.v3-extras .sideArticleTop, .v3-extras .sideArticle {
    padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.v3-extras .sideArticleTop h3, .v3-extras .sideArticle h3 { margin-top: 0; }
#visitCounter { padding: 0 0 32px; text-align: center; font-size: .85rem; color: var(--muted); }

.v3-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.aktualnosc {
    display: flex; flex-direction: column; gap: 10px;
    padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.aktualnosc h3 { margin: 0; font-size: 1.15rem; }
.aktualnosc h3 a { color: var(--ink); }
.aktualnosc h3 a:hover { color: var(--g-700); }
.data-wiadomosc { display: block; margin-top: 6px; font-family: var(--f-body); font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.grafika-aktualnosc-lista { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.szczegoly-aktualnosc { margin-top: auto; font-weight: 600; }

/* ── 10. LISTA OFERT ─────────────────────────────────────────────────────── */
.v3-dedicated { padding: 32px 0 0; }
.v3-dedicated .dedicateBox + .dedicateBox { margin-top: 28px; }
.v3-list__layout {
    display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start;
    padding-top: 28px; padding-bottom: 64px;
}
.v3-list__layout::before, .v3-list__layout::after { display: none; }
.v3-list__aside {
    position: sticky; top: calc(var(--v3-hh) + 16px);
    max-height: calc(100vh - var(--v3-hh) - 32px); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; padding: 2px 4px 2px 2px; margin: -2px -4px -2px -2px;
}
.v3-filters { display: flex; flex-direction: column; gap: 16px; }
.v3-filters-toggle[hidden] { display: none !important; }

/* wyszukiwanie po numerze oferty */
.v3-symbol form { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.v3-symbol__row { display: flex; gap: 8px; margin-top: 8px; }
.v3-symbol__row .form-control { flex: 1 1 auto; min-width: 0; height: 44px; }
.v3-symbol input[type="submit"] { min-height: 44px; height: 44px; padding: 0 16px; font-size: .92rem; }

/* wyszukiwarka boczna (ctrls/side_search_view) */
.globalBox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.sideSearch .globalBoxHeader {
    padding: 16px 18px 12px; border-bottom: 1px solid var(--line);
    font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--ink);
}
.sideSearch .globalBoxHeader b { font-weight: 700; }
.sideSearch .globalBoxContent { padding: 16px 18px 18px; }
.sideSearch .form-group { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; margin: 0 0 14px; }
.sideSearch .form-group > [class*="col-"] { width: auto; float: none; padding: 0; }
.sideSearch .form-group > .col-md-12, .sideSearch .form-group > label, .sideSearch .form-group > .mainLabel { grid-column: 1 / -1; }
.sideSearch .mainLabel {
    margin: 0; padding: 0; font-size: .76rem; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: var(--muted);
}
.sideSearch .form-control { height: 44px; }
.sideSearch .form-control.last { }
.sideSearch .rowHidden { display: none; }
#objectTypeHolder { display: none !important; }
.sideSearch .checkbox { margin: 0 0 6px; }
.sideSearch .submitRow { margin-top: 6px; }
.sideSearch .submitRow .globalButton { width: 100%; }

/* pasek narzędzi listy */
.v3-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin: 0 0 18px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.offerListSort { display: flex; align-items: center; }
#selsort { height: 42px; min-width: 220px; padding: 0 40px 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
    -webkit-appearance: none; appearance: none; background: var(--surface) var(--ic-chevron) no-repeat right 12px center / 18px;
    font-family: var(--f-body); font-weight: 600; color: var(--ink); }
/* wtyczka jquery.selectbox zastępuje #selsort */
.sbHolder {
    position: relative; display: inline-flex; align-items: center;
    height: 42px; min-width: 230px; width: auto;
    border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
    font-family: var(--f-body);
}
.sbHolder:hover { border-color: var(--g-600); }
.sbSelector, .sbSelector:link, .sbSelector:visited, .sbSelector:hover {
    position: static; display: block; width: 100%;
    padding: 0 40px 0 14px; line-height: 40px; height: 40px;
    color: var(--ink); font-size: .92rem; font-weight: 600; text-decoration: none; text-indent: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none;
}
.sbToggle, .sbToggle:hover, .sbToggleOpen, .sbToggleOpen:hover {
    position: absolute; top: 0; right: 0; width: 40px; height: 100%;
    background: var(--ic-chevron) no-repeat center / 18px;
}
.sbOptions {
    position: absolute; left: -1px; right: -1px; top: calc(100% + 6px) !important; z-index: 40;
    margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh);
}
.sbOptions li { padding: 0; }
.sbOptions a, .sbOptions a:link, .sbOptions a:visited {
    display: block; padding: 9px 12px; border-radius: 8px;
    color: var(--ink); font-size: .92rem; text-decoration: none;
}
.sbOptions a:hover, .sbOptions a:focus, .sbOptions a.sbFocus { background: var(--tint); color: var(--g-700); }

.offerListViewSwitch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--tint); }
.offerListViewSwitch a {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
    border-radius: 8px; font-weight: 600; font-size: .9rem; color: var(--muted);
}
.offerListViewSwitch a::before {
    content: ""; width: 17px; height: 17px; background: currentColor;
    -webkit-mask: var(--ic-list) no-repeat center / contain; mask: var(--ic-list) no-repeat center / contain;
}
.offerListViewSwitch a.map-view::before { -webkit-mask-image: var(--ic-pin); mask-image: var(--ic-pin); }
.offerListViewSwitch a.gallery-view::before { -webkit-mask-image: var(--ic-grid); mask-image: var(--ic-grid); }
.offerListViewSwitch a:hover { color: var(--ink); }
.offerListViewSwitch a.active { background: var(--surface); color: var(--g-700); box-shadow: 0 1px 3px rgba(20, 26, 16, .12); }

.emptyList {
    padding: 56px 28px; border: 1px dashed var(--line-2); border-radius: var(--r-lg);
    background: var(--surface); text-align: center; font-size: 1.05rem; color: var(--muted);
}
#listGoogleMap #map_canvas { height: clamp(420px, 65vh, 720px); border-radius: var(--r-lg); overflow: hidden; }

/* paginacja */
.v3-paging { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.v3-paging .paging { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.v3-paging .paging a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px;
    border: 1px solid var(--line-2); background: var(--surface);
    font-weight: 600; color: var(--ink);
}
.v3-paging .paging a:hover { border-color: var(--g-600); color: var(--g-700); }
.v3-paging .paging a.active { background: var(--g-600); border-color: var(--g-600); color: #fff; }
.v3-paging__gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }

@media (max-width: 991px) {
    .v3-list__layout { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
    .v3-list__aside { position: static; max-height: none; overflow: visible; margin: 0; padding: 0; }
    .v3-js .v3-filters:not(.is-open) { display: none; }
    .v3-filters-toggle { margin-bottom: 4px; }
}

/* ── 11. KARTA AGENTA I ODDZIAŁU ─────────────────────────────────────────── */
.v3-agent { position: relative; overflow: hidden; }
.v3-agent__head { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; }
.agentAvatar {
    flex: none; width: 64px; height: 64px; border-radius: 50%;
    background-color: var(--tint); background-size: cover; background-position: center;
}
.agentName { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; color: var(--ink); line-height: 1.2; }
.agentSection { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.agentOffers { margin-top: 4px; font-size: .85rem; font-weight: 600; color: var(--g-700); }
.agentOffers b { font-weight: 600; }
.v3-agent__head .overlayLink { z-index: 1; }
.v3-agent__body { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.agentLicence, .agent__sold-offers { margin: 0; font-size: .82rem; color: var(--muted); }
.agentPhone { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.agentPhone a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.agentPhone a::before, .agentMail::before {
    content: ""; width: 16px; height: 16px; flex: none; background: var(--g-600);
    -webkit-mask: var(--ic-phone) no-repeat center / contain; mask: var(--ic-phone) no-repeat center / contain;
}
.agentMail { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; word-break: break-all; }
.agentMail::before { -webkit-mask-image: var(--ic-mail); mask-image: var(--ic-mail); }
.v3-agent .contactAgent { margin-top: 4px; }
.departmentHolder { padding: 16px; }
.departmentHolder .globalBoxHeader { font-family: var(--f-display); font-weight: 700; margin-bottom: 8px; }

/* ── 12. KARTA OFERTY ────────────────────────────────────────────────────── */
.v3-offer__head { padding-top: 24px; padding-bottom: 20px; }
.v3-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 600; color: var(--muted); }
.v3-back:hover { color: var(--g-700); }
.v3-back .v3-icon { width: 18px; height: 18px; }
.v3-offer__title { margin: 0; }
.v3-offer__title .pageTitle { margin: 0; font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
.v3-offer__title .pageTitle .small {
    display: block; margin-top: 8px;
    font-family: var(--f-body); font-size: 1.05rem; font-weight: 500; letter-spacing: 0; color: var(--muted);
}
.v3-offer__title .pageTitle .small::first-letter { text-transform: uppercase; }
.v3-offer__symbol {
    display: inline-block; margin: 12px 0 0; padding: 5px 12px; border-radius: 999px;
    background: var(--tint); color: var(--g-900); font-size: .82rem; font-weight: 700; letter-spacing: .04em;
}

.v3-offer__layout {
    display: grid; gap: 28px 32px; align-items: start;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas: "gallery aside" "body aside";
    padding-bottom: 64px;
}
.v3-offer__layout::before, .v3-offer__layout::after { display: none; }
.v3-offer__gallery { grid-area: gallery; min-width: 0; }
.v3-offer__aside { grid-area: aside; align-self: stretch; min-width: 0; }
.v3-offer__sticky { position: sticky; top: calc(var(--v3-hh) + 16px); display: flex; flex-direction: column; gap: 16px; }
.v3-offer__body { grid-area: body; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* galeria (budowana AJAX-em przez scripts.js) */
.offerPresentationHolder { position: relative; }
.offerPresentationItem { display: none; }
.offerPresentationItem.active { display: block; }
.offerImgFill { display: none; }
.offerPage .offerFlag { display: none; }
#big-photo-example { display: none; }
.gallery-loader-container {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 3 / 2; border-radius: 18px; background: var(--tint);
}
#offerGallery .bigPhoto {
    position: relative; overflow: hidden;
    aspect-ratio: 3 / 2; border-radius: 18px; background: var(--dark);
}
#offerGallery .bigPhoto a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
#offerGallery .bigPhoto img { display: block; width: 100%; height: 100%; object-fit: cover; }
#offerGallery .noPhoto {
    width: 100%; height: 100%;
    background-color: var(--tint); background-repeat: no-repeat; background-position: center; background-size: 38% auto;
}
.galleryThumbsHolder { margin-top: 12px; }
.galleryThumbs {
    display: flex; gap: 10px; margin: 0; padding: 0 0 4px; list-style: none;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.galleryThumbs li { flex: 0 0 auto; width: 118px; scroll-snap-align: start; }
.galleryThumbs li a { display: block; }
.galleryThumbs li img {
    display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border: 2px solid transparent; border-radius: 10px; opacity: .85;
    transition: border-color .15s var(--ease), opacity .15s var(--ease);
}
.galleryThumbs li a:hover img, .galleryThumbs li.active img { border-color: var(--g-500); opacity: 1; }
/* bxSlider (>4 miniatury) steruje szerokościami sam — oddajemy mu układ */
.galleryThumbsHolder .bx-wrapper { margin: 0; border: 0; box-shadow: none; background: transparent; }
.galleryThumbsHolder .bx-wrapper .galleryThumbs { display: block; overflow: visible; padding: 0; }
.galleryThumbsHolder .bx-wrapper .galleryThumbs li { width: auto; }
.bx-wrapper .bx-controls-direction a {
    width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
    background: var(--surface) var(--ic-arrow) no-repeat center / 16px; box-shadow: var(--sh-sm); text-indent: -9999px;
}
.bx-wrapper .bx-prev { transform: scaleX(-1); }
.bx-wrapper .bx-pager { display: none; }

/* prezentacje z iframe i mapa — w tej samej ramie co zdjęcie */
.offerPresentationHolder #map_canvas,
#virtualBox, #virtualLinkBox, #dvWedrowka3d, #youtube {
    aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: var(--tint);
}
#virtualBox iframe, #virtualLinkBox iframe, #dvWedrowka3d iframe, #youtube iframe { width: 100%; height: 100%; border: 0; }
#offerFriend { padding: 20px; border: 1px solid var(--line); border-radius: 18px; }

/* przełącznik prezentacji / druk / PDF */
.v3-offer__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.offerPanel a, .offerPanel #get-offer-pdf {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--surface);
    font-size: .9rem; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: none;
    transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.offerPanel a::first-letter { text-transform: uppercase; }
.offerPanel a::before, .offerPanel #get-offer-pdf::before {
    content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
    -webkit-mask: var(--ic, var(--ic-image)) no-repeat center / contain; mask: var(--ic, var(--ic-image)) no-repeat center / contain;
}
.offerPanel #get-offer-pdf { --ic: var(--ic-pdf); }
.offerPanel #get-offer-pdf::after { content: "PDF"; }
.offerPanel a.print-ico { --ic: var(--ic-print); }
.offerPanel a.map-ico { --ic: var(--ic-pin); }
.offerPanel a.virtual-ico { --ic: var(--ic-cube); }
.offerPanel a.youtube-ico { --ic: var(--ic-play); }
.offerPanel a.gallery-ico { --ic: var(--ic-image); }
.offerPanel a:hover, .offerPanel #get-offer-pdf:hover { border-color: var(--g-600); color: var(--g-700); }
.offerPanel a.active { background: var(--g-600); border-color: var(--g-600); color: #fff; }

/* karta z ceną */
.v3-summary {
    display: flex; flex-direction: column; gap: 16px;
    padding: 22px; border: 1px solid var(--line); border-radius: 20px;
    background: var(--surface); box-shadow: var(--sh);
}
.offerPriceSection { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.offerPrice .small {
    display: block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.offerPrice .big {
    display: block; font-family: var(--f-display); font-weight: 800;
    font-size: clamp(1.9rem, 2.6vw, 2.45rem); line-height: 1.08; letter-spacing: -.02em; color: var(--ink);
}
.offerSquarePrice {
    display: inline-flex; padding: 4px 12px; border-radius: 999px;
    background: var(--tint); color: var(--g-900); font-weight: 600; font-size: .88rem;
}
.offerPriceSection .otherPrices { font-size: .88rem; color: var(--muted); }
.v3-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.v3-facts__row { padding: 12px 14px; border-radius: 12px; background: var(--tint); }
.v3-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.v3-facts dd { margin: 3px 0 0; font-family: var(--f-display); font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.offerNotepad { display: flex; gap: 8px; align-items: center; }
.offerNotepad a {
    flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 14px; border-radius: 12px;
    border: 1px solid var(--line-2); font-weight: 600; color: var(--ink);
}
.offerNotepad a:hover { border-color: var(--g-600); background: var(--tint); color: var(--g-700); }
.offerNotepad .offerIcon { width: 18px; height: 18px; background: currentColor;
    -webkit-mask: var(--ic-bookmark) no-repeat center / contain; mask: var(--ic-bookmark) no-repeat center / contain; }
.offerNotepad .notepadRemove { color: var(--g-700); border-color: var(--g-500); background: var(--tint); }
.offerNotepad .notepadRemove .offerIcon { -webkit-mask-image: var(--ic-bookmark-x); mask-image: var(--ic-bookmark-x); }
.facebook-share-button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px; background: #1877F2; color: #fff; cursor: pointer;
}
.socialShare { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.socialShare p { margin: 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
.shareon { display: flex; gap: 6px; }
.shareon > a, .shareon > button { width: 38px !important; height: 38px; margin: 0 !important; border-radius: 10px !important; }

/* treść pod galerią */
.v3-offer__section {
    padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
}
.v3-offer__section > h3, .v3-offer__section .oferta-title { margin: 0 0 16px; font-size: 1.4rem; }
.v3-offer__section h3 ~ h3 { margin-top: 28px; }
#offerDescription { font-size: 1.03rem; line-height: 1.8; }
#offerDescription p { max-width: 74ch; }
#offerNotices {
    margin-top: 22px; padding: 14px 18px; max-width: 74ch;
    border: 1px solid var(--line); border-radius: 12px; background: var(--tint);
    font-size: .88rem; line-height: 1.6; color: var(--muted);
}
.v3-offer__article { margin-top: 24px; }
#appointmentOnline { margin-bottom: 20px; }
#appointmentOnline .btn {
    width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 14px;
    border: 1px solid var(--g-600); background: var(--tint); color: var(--g-900); font-weight: 600; white-space: normal;
}
.offerProps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.propsRow {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .96rem;
}
.propName { color: var(--muted); }
.propValue { font-weight: 600; color: var(--ink); text-align: right; }
.propsRow.typPomieszczenia, .propsRow.opis, .propsRow.uwagiPomieszczenia { grid-column: 1 / -1; }
.propsRow.typPomieszczenia { border: 0; padding: 18px 0 2px; }
.typPomieszczenia { margin: 0; font-size: 1.02rem; }
.opisPomieszczenia, .uwagiPomieszczenia .propValue { font-weight: 400; text-align: left; color: var(--text); }

/* zakładki (kalkulatory, certyfikat, formularze artykułów) */
.nav-tabs {
    display: flex; flex-wrap: wrap; gap: 4px;
    margin: 0 0 20px; padding: 4px; border: 0; border-radius: 12px; background: var(--tint);
}
.nav-tabs::before, .nav-tabs::after { display: none; }
.nav-tabs > li { float: none; margin: 0; }
.nav-tabs > li > a, .nav-tabs > li > a:hover, .nav-tabs > li > a:focus {
    margin: 0; padding: 10px 16px; border: 0; border-radius: 9px;
    background: transparent; font-weight: 600; color: var(--muted); line-height: 1.3;
}
.nav-tabs > li > a:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
    border: 0; background: var(--surface); color: var(--g-700); box-shadow: 0 1px 3px rgba(20, 26, 16, .12);
}

@media (max-width: 991px) {
    .v3-offer__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "aside" "body"; gap: 20px; }
    .v3-offer__sticky { position: static; }
}
@media (max-width: 767px) {
    .offerProps { grid-template-columns: 1fr; }
    #offerGallery .bigPhoto, .gallery-loader-container { border-radius: 14px; aspect-ratio: 4 / 3; }
    .galleryThumbs li { width: 96px; }
}

/* ── 13. KALKULATORY ─────────────────────────────────────────────────────── */
.kalkulator { display: block; }
.kalkulator::before, .kalkulator::after { display: none; }
.kalkulator .calcForm { margin: 0 0 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.form-horizontal .form-group { margin-left: 0; margin-right: 0; }
.kalkulator .form-group { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.kalkulator .form-group::before, .kalkulator .form-group::after { display: none; }
.kalkulator .control-label {
    width: auto; float: none; padding: 0; margin: 0; text-align: left;
    font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.kalkulator .form-group > [class*="col-"] { width: 100%; float: none; padding: 0; }
.kalkulator .input-group { display: flex; width: 100%; }
.kalkulator .input-group .form-control { flex: 1 1 0; width: auto; min-width: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: 0; }
/* bootstrap: .input-group-addon{width:1%} pod table-cell — w flex to 1% szerokości */
.kalkulator .input-group-addon {
    flex: none; width: auto; display: flex; align-items: center; padding: 0 14px;
    border: 1px solid var(--line-2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: var(--tint); color: var(--muted); font-size: .85rem; font-weight: 700;
}
.kalkulator .input-group-addon:has(input[type="checkbox"]) { border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: 0; background: var(--surface); }
.kalkulator .input-group-addon:has(input[type="checkbox"]) ~ .form-control { border-radius: 0 var(--r-sm) var(--r-sm) 0; border-right: 1px solid var(--line-2); }
.kalkulator .input-group-addon input[type="checkbox"] { margin: 0; width: 18px; height: 18px; accent-color: var(--g-600); }
/* wyniki — liczba, nie pole formularza */
.kalkulator .form-control[readonly] {
    height: auto; padding: 0; border: 0; background: transparent; box-shadow: none; cursor: default;
    font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; color: var(--g-900);
}
.kalkulator .input-group:has(.form-control[readonly]) { align-items: baseline; }
.kalkulator .input-group:has(.form-control[readonly]) .input-group-addon { border: 0; background: none; padding: 0 0 0 8px; color: var(--g-900); }
.kalkulator .form-group:has(.form-control[readonly]) { padding: 12px 0; margin: 0; border-bottom: 1px dashed var(--line); }
.kalkulator .radio label { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; transition: border-color .15s, background .15s; }
.kalkulator .radio label:hover { border-color: var(--g-500); background: var(--tint); }
.kalkulator .radio:has(input:checked) label { border-color: var(--g-600); background: var(--tint); }
.kalkulator .rightSubmit { width: 100%; float: none; padding: 0; margin: 6px 0 0; text-align: left; }
#kalkulator_kredytowy_container h3, .kalkulator h3 { margin: 0 0 12px; font-size: 1.15rem; }
#kalkulator_kredytowy > [class*="col-"] { width: 100%; float: none; padding: 0; }
@media (min-width: 860px) {
    #kalkulator_kredytowy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
    #kalkulator_kredytowy > [class*="col-md-6"]:last-of-type .calcForm { background: var(--tint); border-color: var(--g-100); }
}

/* ── 14. FORMULARZE (kontakt, zapytanie o ofertę, zgłoszenie) ─────────────── */
.v3-formband { padding: clamp(48px, 7vw, 88px) 0; background: var(--tint); scroll-margin-top: var(--v3-hh); }
.v3-formband .bottomFormTitle, .v3-article__form .bottomFormTitle { margin: 0 0 22px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.globalForm {
    padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
}
.globalForm form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; }
.globalForm form::before, .globalForm form::after { display: none; }
.globalForm form > [class*="col-"], .globalForm .formBottom > [class*="col-"] { width: auto; float: none; padding: 0; }
.globalForm form > .clear { display: none; }
.globalForm .formBottom { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; }
.globalForm h3 { margin: 0 0 14px; font-size: 1.05rem; }
.globalForm .formRow { margin: 0 0 12px; }
.globalForm .formRow::before, .globalForm .formRow::after { display: none; }
.globalForm .formRow > .col-md-12 { padding: 0; }
.globalForm .checkbox label { font-size: .86rem; font-weight: 400; color: var(--muted); }
.globalForm textarea.form-control { min-height: 190px; }
.formAgreement { font-size: .82rem; line-height: 1.55; color: var(--muted); }
/* Kod zabezpieczający. Markup z libraries/Captcha.php:
     .captcha > .col-md-12 (etykieta) + .col-md-12 > .input-group
       > span.input-group-addon > img#captcha_img  +  input#captcha_input
   Bootstrap daje .input-group{display:table} i .input-group-addon{width:1%}.
   Komórka tabeli o szerokości 1% i obrazek z img{max-width:100%} tworzą
   zapętlenie: przeglądarka rozwiązuje je, zerując szerokość obrazka
   (Chrome: computed width 0px przy naturalWidth 200). Dlatego addon musi
   wyjść z układu tabelarycznego — tak samo robił stary style.css. */
.captcha { margin: 0 0 14px; }
.captcha > .col-md-12 { padding: 0; }
.captcha label { display: block; margin: 0 0 6px; font-size: .9rem; font-weight: 600; }
.captcha .input-group {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 10px; width: 100%; margin: 0;
}
.captcha .input-group-addon {
    display: block; flex: 0 0 auto; width: auto;
    padding: 0; border: 0; background: none;
}
.captcha #captcha_img {
    display: block; width: auto; max-width: none; height: 48px;
    border: 1px solid var(--line-2); border-radius: var(--r-sm);
}
.captcha .form-control { flex: 1 1 180px; width: auto; min-width: 0; }
.captcha .help-block, #captcha_error { flex: 1 1 100%; margin: 0; color: var(--danger); }
.formSubmitRow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.formSubmitRow .globalButton { min-width: 200px; }
.ajax-loader { display: none; }
.formMsg { font-weight: 600; color: var(--g-700); }
.formMsg:empty { display: none; }
.formMsg .error, .formMsg.error { color: var(--danger); }
@media (max-width: 767px) {
    .globalForm form, .globalForm .formBottom { grid-template-columns: 1fr; }
    .formSubmitRow .globalButton { width: 100%; }
}
.modal-content { border: 0; border-radius: 20px; box-shadow: var(--sh-lg); }
.modal-content.formHolder .globalForm { border: 0; }
.modal-backdrop.in { opacity: .6; background: var(--dark); }

/* ── 15. STRONY TREŚCI ───────────────────────────────────────────────────── */
.v3-article__layout { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 64px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.v3-article__layout::before, .v3-article__layout::after { display: none; }
@media (min-width: 992px) {
    .v3-article__layout.has-side { grid-template-columns: 240px minmax(0, 1fr); }
    .v3-article__layout.has-form { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
    .v3-article__layout.has-side.has-form { grid-template-columns: 220px minmax(0, 1fr) minmax(0, 400px); }
}
.v3-article__content .articleBody { max-width: 76ch; }
.v3-article__figure { margin: 0 0 24px; }
.v3-article__figure img { border-radius: var(--r); }
.v3-article__form { scroll-margin-top: calc(var(--v3-hh) + 16px); }
.v3-article__form .globalForm form { grid-template-columns: 1fr; }
.v3-article__form .globalForm .formBottom { grid-template-columns: 1fr; }
#tabs { margin-top: 32px; }
.v3-article__side .navbar { min-height: 0; margin: 0; border: 0; background: none; }
.v3-article__side .navbar-collapse { padding: 0; border: 0; box-shadow: none; }
.v3-article__side .navbar-nav { float: none; margin: 0; }
.v3-article__side .navbar-nav > li { float: none; }
.v3-article__side .navbar-nav > li > a { padding: 11px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.v3-article__side .navbar-nav > li > a:hover { background: var(--tint); color: var(--g-700); }
.v3-article__side .navbar-nav > li.active > a { background: var(--tint); color: var(--g-700); }
@media (min-width: 768px) {
    .v3-article__side .navbar-collapse.collapse { display: block !important; height: auto !important; }
    .v3-article__side .navbar-header { display: none; }
}
.v3-map { height: clamp(320px, 45vh, 500px); }
.v3-map--header { height: clamp(260px, 38vh, 420px); }
.v3-team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.v3-team__dept { margin: 28px 0 14px; }

/* ── 16. STOPKA ──────────────────────────────────────────────────────────── */
.v3-footer { padding-top: clamp(48px, 6vw, 72px); background: var(--dark); color: var(--on-dark-2); font-size: .95rem; }
.v3-footer a { color: var(--on-dark); }
.v3-footer a:hover, .v3-footer a:focus { color: var(--g-soft); }
.v3-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.v3-footer__grid::before, .v3-footer__grid::after { display: none; }
.v3-footer__logo img { display: block; height: 44px; width: auto; -webkit-filter: brightness(0) invert(1); filter: brightness(0) invert(1); opacity: .95; }
.v3-footer__address { margin-top: 20px; line-height: 1.7; }
.v3-footer__address p { margin: 0 0 10px; }
.v3-footer__address p:first-child { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: #fff; }
.v3-footer__col::before {
    content: attr(aria-label); display: block; margin-bottom: 14px;
    font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2);
}
.v3-footer ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.v3-footer .ofe-menu b { font-weight: 600; color: #fff; }
.v3-footer__bottom { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.v3-footer__bottom a { color: var(--on-dark-2); }
@media (max-width: 991px) { .v3-footer__grid { grid-template-columns: 1fr 1fr; } .v3-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 559px) { .v3-footer__grid { grid-template-columns: 1fr; } }

/* ── 17. KOMUNIKATY, POPUP, COOKIES, POWIADOMIENIA ──────────────────────── */
#cookies-info {
    position: fixed; left: 16px; bottom: 16px; z-index: 80;
    display: flex; flex-direction: column; gap: 12px;
    max-width: 440px; padding: 18px 20px;
    border-radius: var(--r); background: var(--dark); color: var(--on-dark);
    box-shadow: var(--sh-lg); font-size: .85rem; line-height: 1.55;
}
#cookies-info p { margin: 0; }
#cookies-info .cookies-ok { align-self: flex-start; min-height: 40px; padding: 0 18px; font-size: .92rem; }
@media (max-width: 559px) { #cookies-info { left: 10px; right: 10px; bottom: 10px; max-width: none; } }
/* Popup artykułu z CMS. js/popup.js przenosi #popup na początek <body>,
   czyta parseInt(css('top')) i ustawia left/top wyliczone od scrollTop —
   więc #popup MUSI mieć position (absolute, bo JS dolicza scrollTop) oraz
   liczbowy top, inaczej parseInt daje NaN i blok ląduje w zwykłym przepływie
   na górze strony. Stary style.css miał tu top:150px i z-index 9999. */
#popup-overlay { position: fixed; inset: 0; z-index: 1009; background: rgba(20, 26, 16, .62); }
#popup {
    position: absolute; left: 0; top: 150px; z-index: 1010;
    max-width: min(700px, calc(100vw - 32px)); padding: 0; line-height: 0;
    border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-lg);
}
#popup img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); }
#popup #baner-popup p { margin: 0; }

/* Zamknięcie. grafika/close_bttn.png nie istnieje na serwerze (404), więc
   krzyżyk rysujemy w CSS. popup.js nadpisuje pozycję inline (top/right -25px). */
#close-popup {
    position: relative; display: block; width: 34px; height: 34px; cursor: pointer;
    border-radius: 50%; background: var(--dark); box-shadow: var(--sh);
}
#close-popup img { display: none; }
#close-popup::before, #close-popup::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 15px; height: 2px; margin: -1px 0 0 -7.5px;
    border-radius: 2px; background: #fff;
}
#close-popup::before { transform: rotate(45deg); }
#close-popup::after { transform: rotate(-45deg); }

/* Wariant 2 (treść tekstowa z przyciskiem) — tu potrzebny normalny tekst. */
#popup.popup2 { padding: 22px 24px; line-height: 1.6; }
.button-popup2-container { margin-top: 16px; text-align: center; }
#popup2-ok-info { cursor: pointer; }

@media (max-width: 575px) {
    #popup { top: 70px; max-width: calc(100vw - 24px); }
}
.jGrowl-notification, div.jGrowl div.jGrowl-notification {
    border-radius: 12px !important; background: var(--dark) !important; color: #fff !important;
    font-family: var(--f-body); font-weight: 600; box-shadow: var(--sh); opacity: .96 !important;
}
.bootstrap-dialog .modal-header { border-radius: 20px 20px 0 0; }

/* ── 18. RUCH ────────────────────────────────────────────────────────────── */
.v3-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.v3-reveal.is-in { opacity: 1; transform: none; }

/* Animacje GSAP (js/v3-motion.js). Klasa v3-anim istnieje tylko do chwili
   startu animacji (i najwyżej 3,5 s — bezpiecznik w <head>). */
.v3-anim #header, .v3-anim .v3-hero__eyebrow, .v3-anim .v3-hero__title, .v3-anim .v3-hero__lead,
.v3-anim .v3-hero__banner, .v3-anim .v3-search__card, .v3-anim .v3-cat,
.v3-anim .v3-pagehead .pageHeader, .v3-anim .v3-offer__head, .v3-anim .v3-offer__gallery,
.v3-anim .v3-summary { visibility: hidden; }

/* tytuł hero: słowa w maskach */
.v3-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.v3-w__i { display: inline-block; transform-origin: 0 100%; }

/* pasek postępu przewijania pod nagłówkiem */
.v3-progress {
    position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
    background: var(--g-500); transform: scaleX(0); transform-origin: 0 50%;
    pointer-events: none;
}

/* kategorie: ikona zmienia się w zielony znaczek */
.v3-cat__icon { transition: background .25s var(--ease), stroke .25s var(--ease); }
.v3-cat:hover .v3-cat__icon, .v3-cat:focus .v3-cat__icon { background: var(--g-600); stroke: #fff; }

/* kafle CTA: poświata podąża za kursorem (--mx/--my ustawia JS) */
.v3-cta .banner { --mx: calc(100% - 60px); --my: 60px; transform-style: preserve-3d; will-change: transform; }
.v3-cta .banner::before {
    left: var(--mx); top: var(--my); right: auto;
    width: 320px; height: 320px; transform: translate(-50%, -50%);
    transition: left .35s var(--ease), top .35s var(--ease);
}

/* zdjęcia kart: kontener dla efektu "odjazdu" */
.v3-card__media a { transform-origin: 50% 60%; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .v3-reveal { opacity: 1; transform: none; }
}

/* ── 19. DRUK ────────────────────────────────────────────────────────────── */
@media print {
    .v3-header, .v3-footer, .v3-cats, .v3-offer__tools, .offerNotepad, .socialShare,
    .v3-offer__agent .contactAgent, #bottom-form, #cookies-info, .v3-skip, .galleryThumbsHolder { display: none !important; }
    .v3-offer__layout { display: block; }
    .v3-summary { box-shadow: none; }
}
