/* ==========================================================================
   Osiedle Fi - lifting strony glownej (2026-08)
   Style przeniesione z makiety Osiedle-Fi-lifting-makieta.html.
   W makiecie wszystko bylo inline + atrybuty style-hover; tutaj to klasy .fi-*.
   Plik jest samodzielny (wlasny reset) - nowy layout NIE laduje bootstrapa
   ani style.less, wiec nic sie nie nadpisuje z reszta serwisu.
   ========================================================================== */

/* --------------------------------------------------------------- fonty ---- */
/* Self-hosted, podzbiory latin + latin-ext (polskie znaki). Pliki: themes/white/fonts/lifting/ */

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/lifting/playfair-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/lifting/playfair-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/lifting/poppins-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/lifting/poppins-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lifting/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lifting/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/lifting/poppins-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/lifting/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/lifting/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/lifting/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------- tokeny ---- */

:root {
  --fi-ink: #1e1c19;
  --fi-ink-strong: #000000;
  --fi-muted: #6d675c;
  --fi-faint: #b3ac9e;

  --fi-bg: #ffffff;
  --fi-bg-alt: #f6f4ef;
  --fi-bg-list: #faf9f5;

  --fi-line: #eeece6;
  --fi-line-strong: #dcd8cc;

  --fi-orange: #E9A13B;
  --fi-orange-dark: #d98f28;
  --fi-orange-text: #c98a2b;
  --fi-orange-deep: #a06a15;

  --fi-green: #1E4F41;
  --fi-green-tint: #e9f2ea;
  --fi-sand: #f3ecd9;
  --fi-cream: #f2ede2;

  --fi-sage: #8D9480;
  --fi-sage-dark: #6f7365;
  --fi-sage-hover: #f3e3c6;

  --fi-badge-ok-bg: #e9f2ea;
  --fi-badge-ok-fg: #2e6b3a;
  --fi-badge-res-bg: #f9f1de;
  --fi-badge-res-fg: #8a5a00;

  --fi-shadow-card: 0 10px 30px rgba(30, 28, 25, 0.06);
  --fi-radius: 14px;

  --navh: 93px;
}

/* ---------------------------------------------------------------- baza ---- */

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

/* overflow-x tez na html: samo body nie wystarcza, gdy propagacja overflow do
   viewportu nie zadziala (patrz komentarz przy body.fi-page nizej). Ten arkusz
   laduje sie wylacznie na stronie glownej, wiec regula nie dotyka podstron. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body.fi-page {
  margin: 0;
  background: var(--fi-bg);
  color: var(--fi-ink);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

/* Wykluczenie #masthead: nawigacja pochodzi z reszty serwisu i ma wlasne
   kolory linkow w header.css (biale w wysuwanym menu, czarne w pasku), a tam
   hover koloru NIE zmienia - tylko przesuwa tekst i pokazuje strzalke.
   :not(:where(...)) nie podnosi specyficznosci, wiec reguly nizej dzialaja
   dokladnie jak dotad dla calej reszty strony. */
/* text-decoration dotyczy TAKZE nawigacji - na podstronach zeruje je
   storefront/style.css, zdjety na stronie glownej (bez tego linki w menu
   sa podkreslone). */
.fi-page a { text-decoration: none; }
.fi-page a:not(:where(#masthead a)) { color: var(--fi-ink); }
.fi-page a:hover:not(:where(#masthead a)) { color: var(--fi-orange-text); }

.fi-page img { max-width: 100%; }

/* Nawigacja (#masthead) pochodzi z reszty serwisu, nie z liftingu - potrzebuje
   tego samego resetu co daja jej arkusze zdjete na stronie glownej (patrz
   inc/lifting.php): storefront/style.css dla <img>, landing.css dla list.
   Bez tego <img> w .megapolis a ma inna wysokosc (przesuwa kreske z
   .megapolis a:after), a ul menu dostaje domyslne marginesy przegladarki
   (margin-top 16px + padding-left 40px), co rozpycha pasek i przesuwa
   pigulki wzgledem hamburgera. */
.fi-page #masthead img { display: block; height: auto; border-radius: 3px; }

/* :where() ma zerowa specyficznosc, wiec cala regula wazy tyle co .fi-page
   (0,1,0): kasuje TYLKO domyslne marginesy przegladarki, a kazda regula
   motywu (.nav__right-sidebar ul, .navigation__items li, ...) nadal wygrywa.
   Zwykly selektor z #masthead zabralby wysuwanemu menu odstepy miedzy
   pozycjami. */
.fi-page :where(#masthead) :where(ul, ol, li) { margin: 0; padding: 0; }
.fi-page :where(#masthead) :where(ul, ol) { list-style: none; }

/* Przycisk zamykania menu (#close-sidebar-nav) - bez tego dostaje domyslna
   ramke i tlo przegladarki (na podstronach zeruje je storefront/style.css:
   button{border:0;background:none}). */
.fi-page :where(#masthead) button { border: 0; background: none; }

/* Wysuwane menu stoi poza ekranem (position: fixed; right: -100vw), wiec bez
   tego strona robi sie szersza o jego szerokosc i pojawia sie poziomy scroll.
   Na pozostalych podstronach daje to storefront/style.css (body{overflow-x:hidden}),
   zdjety na stronie glownej - patrz inc/lifting.php. */
body.fi-page { overflow-x: hidden; }
.fi-page h1, .fi-page h2, .fi-page h3, .fi-page p { margin: 0; }

.fi-page :target { scroll-margin-top: calc(var(--navh) + 12px); }

/* Makieta nie mialaby widocznego focusu - dokladamy, bo strona jest klikalna klawiatura. */
.fi-page a:focus-visible,
.fi-page button:focus-visible,
.fi-page input:focus-visible,
.fi-page textarea:focus-visible,
.fi-page summary:focus-visible {
  outline: 2px solid var(--fi-orange);
  outline-offset: 2px;
}

.fi-it { font-family: 'Playfair Display', Georgia, serif; font-style: italic; }

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

.fi-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- naglowek --- */

.fi-nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 40px; min-height: 64px;
  border-bottom: 1px solid var(--fi-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 1px 16px rgba(30, 28, 25, 0.07);
}

.fi-nav__logo { display: flex; align-items: center; }
.fi-nav__logo img { height: 22px; width: auto; display: block; }

.fi-nav__right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.fi-nav__quick { font-size: 14px; font-weight: 400; white-space: nowrap; }

.fi-burger {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 46px; height: 46px;
  border: 1px solid var(--fi-line); border-radius: 10px;
  background: var(--fi-bg); cursor: pointer; flex-shrink: 0;
}
.fi-burger:hover { background: var(--fi-bg-alt); }
.fi-burger span { display: block; width: 20px; height: 1.5px; background: var(--fi-ink); }
.fi-burger span:last-child { width: 14px; }

.fi-page .fi-phone {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fi-orange); color: #ffffff;
  border-radius: 999px; padding: 8px 18px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.fi-page .fi-phone img { width: 16px; height: 16px; flex-shrink: 0; }
.fi-page .fi-phone:hover { background: var(--fi-orange-dark); color: #ffffff; }

.fi-brand { font-size: 16px; font-weight: 300; letter-spacing: 0.04em; white-space: nowrap; }
.fi-brand__phi { color: var(--fi-green); }

.fi-navspacer { height: var(--navh); }

/* ---------------------------------------------------------- menu panel ---- */

.fi-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 28, 22, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 1400;
  border: 0; padding: 0;
}
.fi-page.is-menu-open .fi-overlay { opacity: 1; pointer-events: auto; }

.fi-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(52vw, 760px);
  background: var(--fi-sage);
  z-index: 1500;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  padding: 96px 64px 40px;
  overflow-y: auto;
}
.fi-page.is-menu-open .fi-panel { transform: translateX(0); }

.fi-panel__close {
  position: absolute; top: 34px; right: 44px;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  color: #ffffff; font-size: 26px; font-weight: 300; line-height: 1;
  font-family: inherit;
}
.fi-panel__close:hover { color: var(--fi-sage-hover); }

.fi-page .fi-panel__phone {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fi-orange); color: #ffffff;
  border-radius: 999px; padding: 12px 26px;
  font-size: 19px; font-weight: 500; margin-bottom: 34px;
}
.fi-page .fi-panel__phone:hover { background: var(--fi-orange-dark); color: #ffffff; }

.fi-page .fi-panel__link {
  color: #ffffff; font-size: 27px; font-weight: 300;
  padding: 13px 0; letter-spacing: 0.01em;
}
.fi-page .fi-panel__link:hover { color: var(--fi-sage-hover); }

.fi-panel__social { display: flex; gap: 14px; margin-top: auto; padding-top: 36px; }
.fi-page .fi-panel__social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: #ffffff; color: var(--fi-sage);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.fi-page .fi-panel__social a:hover { background: var(--fi-sage-hover); color: var(--fi-sage-dark); }
.fi-page .fi-panel__social a.fi-fb { font-size: 17px; font-weight: 600; }

/* ---------------------------------------------------------------- hero ---- */

.fi-hero {
  position: relative; min-height: 640px;
  background-image:
    linear-gradient(90deg, rgba(15, 25, 20, 0.62) 0%, rgba(15, 25, 20, 0.30) 55%, rgba(15, 25, 20, 0.12) 100%),
    var(--fi-hero-img);
  background-size: cover; background-position: center 70%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 48px 80px 298px;
}

.fi-hero__inner { max-width: 1200px; margin: 0 auto; width: 100%; }

.fi-hero__eyebrow {
  margin: 0 0 14px; color: var(--fi-cream);
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
}

.fi-h1 { color: #ffffff; font-weight: 300; font-size: 76px; line-height: 1.05; }
.fi-h1 .fi-it { font-weight: 400; }

.fi-hero__status { margin: 22px 0 0; color: #ffffff; font-size: 20px; font-weight: 300; }

.fi-hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.fi-btn {
  border-radius: 999px; padding: 15px 30px;
  font-size: 15px; font-weight: 500; min-height: 48px;
  display: inline-flex; align-items: center;
  font-family: inherit; cursor: pointer;
}
/* Prefiks .fi-page jest tu KONIECZNY, nie kosmetyczny: regula bazowa
   `.fi-page a` ma specyficznosc (0,1,1) i bez niego wygrywala z (0,1,0),
   przez co bialy tekst na przyciskach wychodzil w kolorze --fi-ink. */
.fi-page .fi-btn--dark { background: var(--fi-ink); color: #ffffff; border: 0; }
.fi-page .fi-btn--dark:hover { background: var(--fi-ink-strong); color: #ffffff; }
.fi-page .fi-btn--ghost { border: 1px solid #ffffff; color: #ffffff; font-weight: 400; background: none; }
.fi-page .fi-btn--ghost:hover { background: rgba(255, 255, 255, 0.15); color: #ffffff; }

.fi-rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: 250px;
  background: rgba(20, 42, 35, 0.88);
  backdrop-filter: blur(4px);
}
.fi-rail__in {
  display: flex; flex-direction: column;
  justify-content: space-evenly; align-items: center;
  height: 100%; padding: 0 28px;
}
.fi-rail__item {
  width: 100%; padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.fi-rail__label {
  color: #c9d6cf; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.fi-rail__value { color: #ffffff; font-size: 17px; font-weight: 500; margin-top: 2px; }

/* ------------------------------------------------------------- sekcje ----- */

.fi-section { padding: 90px 48px; }
.fi-section--flats { padding-bottom: 70px; }
.fi-section--alt { background: var(--fi-bg-alt); }
.fi-section--loc { padding-bottom: 80px; }

.fi-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.fi-head--wide { gap: 40px; }

.fi-h2 { font-weight: 300; font-size: 52px; line-height: 1.1; }
.fi-h2--sm { font-size: 44px; line-height: 1.12; }

.fi-page .fi-lead { margin: 28px 0 0; color: var(--fi-muted); font-size: 16px; max-width: 48ch; }
.fi-lead--wide { max-width: 52ch; }

.fi-page .fi-eyebrow {
  margin: 0 0 16px; color: var(--fi-orange-text);
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
}

.fi-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  border: 1px solid var(--fi-line-strong); border-radius: 999px;
  padding: 12px 24px; font-size: 14px; font-weight: 500; min-height: 44px;
}
.fi-more:hover { background: var(--fi-bg-alt); color: var(--fi-orange-text); }
.fi-more span { color: var(--fi-orange-text); }

.fi-counter { text-align: right; }
.fi-counter__num { font-size: 44px; font-weight: 300; }
.fi-counter__of { color: var(--fi-faint); font-size: 26px; }
.fi-counter__cap { color: var(--fi-muted); font-size: 14px; }

/* ------------------------------------------------- placeholdery na foto --- */
/* W makiecie to <image-slot> - pola na zdjecia, ktorych bundle nie zawieral.
   Podmiana: wrzuc plik do themes/white/images/lifting/slots/<id>.jpg
   (widok sam wykryje plik i wstawi <img> zamiast placeholdera). */

.fi-slot {
  width: 100%; height: 100%; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  background: var(--fi-bg-alt);
  border: 1px dashed var(--fi-line-strong);
  color: var(--fi-faint);
}
.fi-slot__icon { width: 22px; height: 22px; opacity: 0.55; flex-shrink: 0; }
.fi-slot__label { font-size: 11.5px; line-height: 1.35; }
.fi-slot > img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.fi-shots {
  display: flex; gap: 12px; flex-wrap: wrap;
  flex: 1 1 320px; justify-content: flex-end;
}
.fi-shots--loc > * { flex: 1 1 150px; max-width: 190px; height: 130px; }
.fi-shots--val > * { flex: 1 1 180px; max-width: 230px; height: 150px; }

.fi-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px; margin-top: 32px;
}
.fi-strip > * { height: 180px; min-width: 0; overflow: hidden; }

/* ------------------------------------------------------- wyszukiwarka ---- */

.fi-flats {
  display: grid; grid-template-columns: 400px 1fr;
  gap: 28px; margin-top: 20px; align-items: start;
}

.fi-card {
  border: 1px solid var(--fi-line); border-radius: var(--fi-radius);
  background: var(--fi-bg); box-shadow: var(--fi-shadow-card);
  overflow: hidden;
}

.fi-search__top { padding: 20px 22px 6px; }
.fi-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.fi-slider__row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--fi-muted);
}
.fi-slider__val { color: var(--fi-ink); font-weight: 500; }
.fi-slider__track { position: relative; height: 18px; margin-top: 6px; }
.fi-slider__track i {
  position: absolute; top: 8px; left: 0; right: 0;
  height: 2px; background: var(--fi-orange);
}
.fi-slider__thumb {
  position: absolute; top: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #ffffff; border: 2px solid var(--fi-orange);
}
.fi-slider__thumb--min { left: 0; }
.fi-slider__thumb--max { right: 0; }

.fi-tabs {
  display: flex; border: 1px solid var(--fi-line);
  border-radius: 10px; overflow: hidden; margin: 20px 0 16px;
}
.fi-tab {
  flex: 1; border: 0; cursor: pointer; padding: 10px 0;
  font-family: inherit; font-size: 13px; font-weight: 500;
  background: #ffffff; color: var(--fi-muted);
}
.fi-tab.is-active { background: var(--fi-orange); color: #ffffff; }

.fi-results {
  background: var(--fi-bg-list); border-top: 1px solid var(--fi-line);
  padding: 14px 22px 20px; max-height: 560px; overflow: auto;
}
.fi-results__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--fi-muted); padding: 4px 0 10px;
}
.fi-results__head strong { color: var(--fi-ink); font-size: 14px; }
.fi-results__list { display: flex; flex-direction: column; gap: 12px; }

.fi-flat {
  background: #ffffff; border: 1px solid var(--fi-line);
  border-radius: 12px; padding: 16px;
  display: grid; grid-template-columns: 1fr 96px; gap: 14px;
}
.fi-flat[hidden] { display: none; }
.fi-flat__top { display: flex; align-items: center; gap: 10px; }
.fi-flat__nr { font-size: 16px; }

.fi-badge {
  font-size: 11px; font-weight: 600;
  padding: 2px 10px; border-radius: 999px;
}
.fi-badge--ok { background: var(--fi-badge-ok-bg); color: var(--fi-badge-ok-fg); }
.fi-badge--res { background: var(--fi-badge-res-bg); color: var(--fi-badge-res-fg); }

.fi-spec {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px;
  font-size: 12.5px; color: var(--fi-muted); margin-top: 8px;
}
.fi-spec b { text-align: right; color: var(--fi-ink); font-weight: 500; }

.fi-ask {
  display: inline-block; margin-top: 10px;
  font-size: 12.5px; font-weight: 600;
  color: var(--fi-orange-text); border-bottom: 1px solid var(--fi-orange);
  background: none; border-left: 0; border-right: 0; border-top: 0;
  padding: 0; cursor: pointer; font-family: inherit;
}
.fi-page .fi-ask:hover { color: var(--fi-orange-deep); }

.fi-flat__plan {
  width: 96px; height: 110px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--fi-line);
}

.fi-map {
  position: relative; border-radius: var(--fi-radius); overflow: hidden;
  min-height: 560px; align-self: stretch;
}
.fi-map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* --- wyszukiwarka 3D (Resimo) --- */
/* Panel nalezy w calosci do osadzonej aplikacji - bez wlasnych nakladek,
   bo narzedzie rysuje swoje kontrolki w naroznikach. */
.fi-map__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0; display: block;
}

/* ----------------------------------------------------------- POI / grid --- */

.fi-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }

.fi-poi {
  background: #ffffff; border: 1px solid var(--fi-line);
  border-radius: var(--fi-radius); padding: 22px 24px;
  display: flex; align-items: center; gap: 16px;
}
.fi-ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: var(--fi-sand); color: var(--fi-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
}
.fi-poi__body { flex: 1; }
.fi-poi__name { font-size: 16px; font-weight: 500; }
.fi-poi__info { color: var(--fi-muted); font-size: 13px; margin-top: 3px; }
.fi-poi__min { text-align: right; flex-shrink: 0; }
.fi-poi__min b { font-size: 26px; font-weight: 300; color: var(--fi-green); }
.fi-poi__min span { color: var(--fi-muted); font-size: 13px; }

/* -------------------------------------------------------- wartosci ------- */

.fi-val {
  background: #ffffff; border: 1px solid var(--fi-line);
  border-radius: var(--fi-radius); padding: 26px;
}
.fi-val__ico {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--fi-green-tint); color: var(--fi-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; line-height: 1; margin-bottom: 16px;
}
.fi-val__t { font-size: 22px; color: var(--fi-green); }
.fi-val__d { margin: 10px 0 0; color: var(--fi-muted); font-size: 14px; line-height: 1.55; }

/* ------------------------------------------------------ finansowanie ----- */

.fi-grid2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
.fi-grid2--contact { grid-template-columns: 1fr 1.3fr; }

.fi-page .fi-fin__p { margin: 28px 0 0; color: var(--fi-muted); font-size: 15.5px; max-width: 46ch; }
.fi-fin__p2 { margin: 14px 0 0; color: var(--fi-muted); font-size: 14px; }

.fi-page .fi-inline { color: var(--fi-orange-text); border-bottom: 1px solid var(--fi-orange); }
.fi-page .fi-inline:hover { color: var(--fi-orange-deep); }

.fi-pad { padding: 30px 34px; }
.fi-pad--form { padding: 34px 38px; }

.fi-rate__label {
  font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fi-muted);
}
.fi-rate__rows { display: flex; flex-direction: column; margin-top: 12px; }
.fi-rate {
  display: grid; grid-template-columns: 1fr auto auto; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--fi-line);
  font-size: 15px; align-items: baseline;
}
.fi-rate__typ { font-weight: 500; }
.fi-rate__cena { color: var(--fi-muted); font-size: 13.5px; }
.fi-rate__rata { color: var(--fi-green); font-weight: 600; }
.fi-note { margin: 14px 0 0; color: var(--fi-faint); font-size: 12px; }

/* ------------------------------------------------------------- FAQ ------- */

.fi-faq { max-width: 820px; margin: 0 auto; }
.fi-faq__list { margin-top: 36px; border-top: 1px solid var(--fi-line); }
.fi-faq__item { border-bottom: 1px solid var(--fi-line); }
.fi-faq__q {
  cursor: pointer; padding: 20px 4px;
  font-size: 17px; font-weight: 500; list-style: none;
}
.fi-faq__q::-webkit-details-marker { display: none; }
.fi-faq__a {
  margin: 0; padding: 0 4px 22px; color: var(--fi-muted);
  font-size: 15px; line-height: 1.6; max-width: 64ch;
}
.fi-faq__a--intro { padding-bottom: 10px; }
.fi-faq__list-items {
  margin: 0; padding: 0 4px 22px 28px; color: var(--fi-muted);
  font-size: 15px; line-height: 1.6; max-width: 64ch;
}
.fi-faq__list-items li { margin: 0 0 8px; }
.fi-faq__list-items li:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- kontakt ------ */

.fi-page .fi-contact__lead { margin: 28px 0 0; color: var(--fi-muted); font-size: 15.5px; max-width: 42ch; }

.fi-advisors { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.fi-advisor {
  display: flex; align-items: center; gap: 14px;
  background: #ffffff; border: 1px solid var(--fi-line);
  border-radius: 12px; padding: 12px 16px;
}
.fi-advisor__avatar {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
}
.fi-advisor__avatar > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fi-advisor__avatar--placeholder {
  background: var(--fi-green); color: #ffffff;
  display: flex; align-items: center; justify-content: center; font-weight: 500;
}
.fi-advisor__body { flex: 1; }
.fi-advisor__name { font-weight: 500; font-size: 15px; }
.fi-advisor__role { color: var(--fi-muted); font-size: 13px; }
.fi-page .fi-advisor__tel { font-size: 14px; font-weight: 500; color: var(--fi-orange-text); }

.fi-contact__note { margin: 22px 0 0; color: var(--fi-muted); font-size: 13.5px; }

.fi-unit {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fi-sand); border-radius: 999px;
  padding: 7px 16px; font-size: 13.5px; margin-bottom: 20px;
}
.fi-unit[hidden] { display: none; }
.fi-unit__x {
  border: 0; background: none; cursor: pointer;
  color: var(--fi-orange-text); font-size: 14px; font-family: inherit;
}

.fi-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.fi-label { font-size: 13px; color: var(--fi-muted); display: block; }
.fi-label--mt { margin-top: 16px; }
.fi-label--mt18 { margin-top: 18px; }

.fi-input {
  width: 100%; margin-top: 6px;
  border: 1px solid var(--fi-line-strong); border-radius: 8px;
  padding: 11px 13px; font-family: inherit; font-size: 14px;
  color: var(--fi-ink); background: #ffffff;
}
.fi-input:focus { border-color: var(--fi-orange); outline: none; }
textarea.fi-input { min-height: 80px; resize: vertical; }

/* Rowny rytm 18px miedzy wszystkimi "sekcjami" formularza (pola, pigulki,
   wiadomosc, zgody) - .fi-group--tight zostaje jako alias, wartosc juz taka
   sama, zeby nie ruszac tresci formularza w wp-admin. */
.fi-group,
.fi-group--tight { margin-top: 18px; }
.fi-group__label { font-size: 13px; color: var(--fi-muted); }
.fi-pills { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.fi-pill {
  border: 1px solid var(--fi-line-strong); background: #ffffff; color: var(--fi-muted);
  border-radius: 999px; padding: 9px 20px;
  font-size: 13.5px; font-family: inherit; cursor: pointer; min-height: 44px;
}
.fi-pill.is-active {
  border-color: var(--fi-orange); background: var(--fi-sand); color: var(--fi-ink);
}

.fi-rodo {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 18px;
  font-size: 12.5px; color: var(--fi-muted); line-height: 1.5;
}
.fi-rodo input { margin-top: 3px; flex-shrink: 0; }

/* Specyficzność ".fi-consents X" (2 klasy) musi bic regule resetujaca
   ".fi-page p" (klasa + typ) z linii 153 - inaczej te akapity dostaja
   margin: 0 mimo zadeklarowanego marginesu ponizej, i caly rytm odstepow
   w zgodach wyglada nierowno (checkboxy maja 18px, akapity maja 0). */
.fi-consents .fi-consents__intro,
.fi-consents .fi-consents__label {
  margin: 20px 0 0; font-size: 12.5px; color: var(--fi-muted); line-height: 1.5;
}
.fi-consents .fi-consents__label { color: var(--fi-ink); font-weight: 500; }
.fi-consents .fi-consents__note {
  margin: 14px 0 0; font-size: 12.5px; color: var(--fi-muted); line-height: 1.5;
}

.fi-submit {
  margin-top: 22px; background: var(--fi-ink); color: #ffffff;
  border: 0; border-radius: 999px; padding: 15px 36px;
  font-size: 15px; font-weight: 500; font-family: inherit;
  cursor: pointer; min-height: 48px;
}
.fi-submit:hover { background: var(--fi-ink-strong); }

.fi-flash {
  margin: 0 0 20px; padding: 14px 18px; border-radius: 12px;
  font-size: 14px; line-height: 1.5;
}
.fi-flash--ok { background: var(--fi-green-tint); color: var(--fi-badge-ok-fg); }
.fi-flash--err { background: var(--fi-badge-res-bg); color: var(--fi-badge-res-fg); }

.fi-errors { margin: 0 0 16px; padding-left: 18px; color: #8a2b2b; font-size: 13px; }

/* ------------------------------------------- formularz CF7 na glownej ----- */
/* Od 2026-09 sekcja kontaktowa renderuje ten sam formularz CF7 co /kontakt/
   ("Główny formularz kontaktowy", post 284) - inaczej leady omijalyby CRM THTG.
   Markup jest wiec CF7-owy (.contact-form.main, span.orange, .wpcf7-*), a nie
   .fi-label/.fi-input, dlatego wyglad z makiety odtwarzamy tutaj.
   main-form.css motywu zostaje zdjety - patrz inc/lifting.php. */

/* row-gap 18px, zeby pion pasowal do reszty formularza; column-gap zostaje
   wezszy (16px) - to odstep MIEDZY polami w jednym rzedzie, nie "naglowek". */
.fi-page .contact-form.main .inputs { display: grid; grid-template-columns: 1fr 1fr; row-gap: 18px; column-gap: 16px; }
/* 3. pole (e-mail) na calej szerokosci, jak w makiecie */
.fi-page .contact-form.main .inputs > div:nth-child(3) { grid-column: 1 / -1; }

/* CF7 przepuszcza tresc formularza przez wpautop: trzy <button> w .fi-pills
   trafiaja do jednego <p>, rozdzielone <br>. Bez tego pigulki ustawiaja sie
   pionowo, mimo ze .fi-pills jest flexem. Odporne na formatowanie tresci
   formularza w wp-admin (lamanie linii miedzy przyciskami jest naturalne). */
.fi-page .contact-form.main .fi-pills > p {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 0;
}
.fi-page .contact-form.main .fi-pills br { display: none; }

.fi-page .contact-form.main span.orange { font-size: 13px; color: var(--fi-muted); display: block; }
/* Etykieta "Wiadomość" jest jedynym "luznym" labelem na najwyzszym poziomie
   formularza (email/pokoje/termin siedza w .inputs/.fi-group, ktore maja
   wlasny margin-top). CF7 przepuszcza tresc przez wpautop, wiec w renderze
   ten span jest zawiniety w <p> - selektor musi to uwzgledniac, inaczej traci
   odstep (dokladnie ten sam mechanizm co przy .fi-pills > p wyzej). */
.fi-page .contact-form.main > span.orange,
.fi-page .contact-form.main > p > span.orange { margin-top: 18px; }

.fi-page .contact-form.main input[type="text"],
.fi-page .contact-form.main input[type="tel"],
.fi-page .contact-form.main input[type="email"],
.fi-page .contact-form.main textarea {
  width: 100%; margin-top: 6px;
  border: 1px solid var(--fi-line-strong); border-radius: 8px;
  padding: 11px 13px; font-family: inherit; font-size: 14px;
  color: var(--fi-ink); background: #ffffff;
}
.fi-page .contact-form.main input:focus,
.fi-page .contact-form.main textarea:focus { border-color: var(--fi-orange); outline: none; }
.fi-page .contact-form.main textarea { min-height: 80px; resize: vertical; }

/* CF7 owija kazde pole w <span class="wpcf7-form-control-wrap"> - domyslnie
   inline, przez co margin-top pola nie dziala i szerokosc sie rozjezdza. */
.fi-page .contact-form.main .wpcf7-form-control-wrap { display: block; }

/* Zgody: kontener .scroll + <label> generowane przez [acceptance] */
.fi-page .contact-form.main .scroll { margin-top: 18px; }
.fi-page .contact-form.main .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.fi-page .contact-form.main .wpcf7-acceptance label {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 18px;
  font-size: 12.5px; color: var(--fi-muted); line-height: 1.5; cursor: pointer;
}
.fi-page .contact-form.main .wpcf7-acceptance input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
/* span.black bez <em> to "prawdziwe" tresci zgody (np. opis przetwarzania
   danych, naglowek "Wyrazam zgode na:") - czarne, pogrubione, jak w oryginale.
   span.black z <em> w srodku to intro/outro (kursywa, wyciszony kolor). */
.fi-page .contact-form.main .scroll span.black {
  display: block; margin-top: 20px;
  font-size: 12.5px; line-height: 1.5;
  color: var(--fi-ink); font-weight: 500;
}
.fi-page .contact-form.main .scroll span.black em {
  color: var(--fi-muted); font-weight: 400; font-style: italic;
}

.fi-page .contact-form.main input[type="submit"] {
  margin-top: 22px; background: var(--fi-ink); color: #ffffff;
  border: 0; border-radius: 999px; padding: 15px 36px;
  font-size: 15px; font-weight: 500; font-family: inherit;
  cursor: pointer; min-height: 48px; width: auto;
}
.fi-page .contact-form.main input[type="submit"]:hover { background: var(--fi-ink-strong); }

/* Komunikaty CF7 (sukces / blad) w miejsce dawnych .fi-flash */
.fi-page .wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0; padding: 14px 18px; border: 0; border-radius: 12px;
  font-size: 14px; line-height: 1.5;
  background: var(--fi-bg-alt); color: var(--fi-ink);
}
.fi-page .wpcf7 form.sent .wpcf7-response-output {
  background: var(--fi-green-tint); color: var(--fi-badge-ok-fg);
}
.fi-page .wpcf7 form.invalid .wpcf7-response-output,
.fi-page .wpcf7 form.failed .wpcf7-response-output,
.fi-page .wpcf7 form.spam .wpcf7-response-output {
  background: var(--fi-badge-res-bg); color: var(--fi-badge-res-fg);
}
.fi-page .contact-form.main .wpcf7-not-valid-tip { color: #8a2b2b; font-size: 12px; margin-top: 4px; }
.fi-page .contact-form.main input.wpcf7-not-valid,
.fi-page .contact-form.main textarea.wpcf7-not-valid { border-color: #8a2b2b; }

/* ---------------------------------------------------------- stopka ------- */

.fi-footer {
  background: var(--fi-sage-dark); color: #e8e9e2;
  padding: 56px 48px 32px;
}
.fi-footer__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1fr; gap: 44px;
}
.fi-footer__brand { font-size: 20px; font-weight: 300; }
.fi-footer p { margin: 18px 0 0; font-size: 13px; color: #c9cbc0; line-height: 1.6; }
.fi-footer p.fi-footer__small { margin: 14px 0 0; }
.fi-footer__desc { margin: 0 !important; line-height: 1.7 !important; }
.fi-footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.fi-page .fi-footer a { color: #e8e9e2; }
.fi-page .fi-footer a:hover { color: #ffffff; }
.fi-footer__bottom {
  max-width: 1200px; margin: 36px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px; font-size: 12px; color: #c9cbc0;
}

/* ------------------------------------------------------- cookie bar ------ */
/* Makieta tego nie ma, ale stary layout mial - nie usuwamy zgodnosci z RODO. */

.fi-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 1600; display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; justify-content: center;
  background: rgba(30, 28, 25, 0.95); color: #f2ede2;
  border-radius: 12px; padding: 14px 20px; font-size: 13px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.fi-cookie[hidden] { display: none; }
.fi-page .fi-cookie a { color: var(--fi-orange); border-bottom: 1px solid var(--fi-orange); }
.fi-cookie__ok {
  background: var(--fi-orange); color: #ffffff; border: 0;
  border-radius: 999px; padding: 9px 22px;
  font-size: 13px; font-weight: 500; font-family: inherit; cursor: pointer;
  min-height: 40px;
}
.fi-cookie__ok:hover { background: var(--fi-orange-dark); }

/* --------------------------------------------------------- responsive ---- */

@media (max-width: 1010px) {
  .fi-nav { padding: 10px 18px; min-height: 56px; gap: 12px; }
  .fi-brand, .fi-nav__quick { display: none; }
  .fi-phone { padding: 9px 15px; font-size: 13px; }

  .fi-panel { width: 100%; padding: 80px 24px 32px; }
  .fi-page .fi-panel__link { font-size: 22px; }

  .fi-section { padding: 56px 20px; }
  .fi-footer { padding: 40px 20px 26px; }

  .fi-hero { padding: 36px 20px 0; min-height: 0; }
  .fi-rail { position: static; width: auto; margin: 30px -20px 0; }
  .fi-rail__in {
    flex-direction: row; flex-wrap: wrap;
    height: auto; padding: 4px 20px 10px;
  }
  .fi-rail__item { width: 50%; padding: 12px 0; }

  .fi-h1 { font-size: 42px; }
  .fi-h2, .fi-h2--sm { font-size: 32px; }

  .fi-flats, .fi-grid3, .fi-footer__grid { grid-template-columns: 1fr; gap: 14px; }
  .fi-grid2, .fi-grid2--contact, .fi-fields { grid-template-columns: 1fr; gap: 32px; }

  .fi-shots { justify-content: flex-start; }
  .fi-map { min-height: 340px; }
  .fi-pad, .fi-pad--form { padding: 20px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fi-overlay, .fi-panel { transition: none; }
}
