/* ==========================================================================
   Ustronna Nałęczowska – arkusz stylów (wersja 2)
   Styl zachowany: nocny granat + złoto. Nowe: typografia (Libre Caslon
   Display + Hanken Grotesk, hostowane lokalnie), spokojniejszy ruch,
   karty wolnych domów, karuzele, pasek mobilny.
   ========================================================================== */

/* ---------- FONTY (lokalne, OFL) ---------- */
@font-face { font-family: "Caslon Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/libre-caslon-display-latin-400-normal.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: "Caslon Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/libre-caslon-display-latin-ext-400-normal.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: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  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: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  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; }

/* ---------- TOKENY ---------- */
:root {
  --night: #121a26;          /* tło strony */
  --navy: #172131;           /* arkusz treści */
  --panel: #1d293b;          /* karty */
  --panel-2: #24334a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --gold: #c9a25e;
  --gold-soft: #ecd3a2;
  --gold-line: rgba(201, 162, 94, 0.38);
  --garden: #a5c46a;         /* zieleń z logo Ustronnej, rozjaśniona pod ciemne tło */
  --sold: #e3958a;
  --text: #e8ebf0;
  --muted: #a3afbf;

  --serif: "Caslon Display", "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 22px; --r-md: 14px; --r-sm: 10px;
  --wrap: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --abar-h: 0px;
}

/* ---------- PODSTAWY ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65;
  font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: var(--abar-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
strong { font-weight: 650; color: #fff; }
.gold { color: var(--gold-soft); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gold); color: #10151f; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- TYPOGRAFIA ---------- */
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.005em; color: #fff; margin: 0 0 18px; text-wrap: balance; }
.h2.small { font-size: 32px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.lead strong { color: var(--text); }
.lead.small { font-size: 16px; }
.subhead { font-family: var(--sans); font-weight: 650; font-size: 21px; color: #fff; margin: 0 0 18px; letter-spacing: -0.01em; }
h3 { font-family: var(--sans); font-weight: 650; font-size: 19px; line-height: 1.3; color: #fff; margin: 0 0 8px; }

/* ---------- PRZYCISKI ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 650; font-size: 16px; letter-spacing: 0; line-height: 1.2; text-align: center; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s, transform .2s var(--ease); }
.btn-lg { min-height: 56px; padding: 15px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(135deg, #f0d7a6 0%, #c9a25e 100%); color: #10151f; box-shadow: 0 8px 26px rgba(201, 162, 94, 0.22); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201, 162, 94, 0.32); }
.btn-ghost { border: 1px solid var(--line-strong); color: #fff; background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-img { position: absolute; inset: -6% 0 0 0; background: url("../img/ujecie-5.webp") center 70% / cover no-repeat;
  animation: heroSettle 2.4s var(--ease) both; transform-origin: 60% 70%; }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, rgba(12,17,26,0.72) 0%, rgba(12,17,26,0.35) 60%, rgba(12,17,26,0.1) 100%),
    linear-gradient(180deg, rgba(12,17,26,0.35) 0%, rgba(12,17,26,0) 30%, rgba(18,26,38,0.85) 88%, var(--night) 100%); }
.hero-inner { width: min(980px, 100% - 48px); margin: 0 auto; padding: 150px 0 190px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-kicker { font-size: 15px; font-weight: 600; color: var(--gold-soft); margin: 0 0 18px; letter-spacing: 0.01em; }
.hero-avail { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(12,17,26,0.6); border: 1px solid rgba(165,196,106,0.45); color: #fff; font-weight: 650; font-size: 14px; backdrop-filter: blur(8px); transition: border-color .2s; }
.hero-avail:hover { border-color: var(--garden); }
.hero-avail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--garden); box-shadow: 0 0 0 4px rgba(165,196,106,0.2); }
.hero-title { font-family: var(--serif); font-weight: 400; color: #fff; margin: 0 0 26px; max-width: 18ch; margin-inline: auto; font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
.hero-title .line { display: block; }
.hero-title .gold { color: var(--gold-soft); font-size: 0.6em; line-height: 1.12; margin: 14px auto 0; max-width: 24ch; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; list-style: none; padding: 0; margin: 0 0 30px; color: var(--muted); font-size: 17px; }
.hero-facts li { padding: 2px 18px; border-left: 1px solid var(--gold-line); }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts strong { color: #fff; font-weight: 650; font-variant-numeric: tabular-nums; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 14px; }
.hero-ctas.center { justify-content: center; }
.hero-note { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hero-trust span { font-size: 13px; font-weight: 600; color: var(--gold-soft); padding: 6px 12px; border: 1px solid var(--gold-line); border-radius: 999px; background: rgba(12,17,26,0.45); backdrop-filter: blur(6px); }

/* Jeden zaplanowany moment ruchu: wejście treści hero */
.hero-avail, .hero-kicker, .hero-title .line, .hero-facts, .hero-ctas, .hero-note, .hero-trust { animation: rise 0.9s var(--ease) both; }
.hero-title .line:nth-child(1) { animation-delay: .15s; }
.hero-title .line:nth-child(2) { animation-delay: .3s; }
.hero-facts { animation-delay: .45s; }
.hero-ctas { animation-delay: .55s; }
.hero-note, .hero-trust { animation-delay: .65s; }

/* Delikatny paralaks zdjęcia przy przewijaniu (tylko przeglądarki z scroll-driven animations) */
@supports (animation-timeline: scroll()) {
  .hero-img { animation: heroSettle 2.4s var(--ease) both, parallax linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100vh; }
}

/* ---------- ARKUSZ TREŚCI ---------- */
.sheet { position: relative; z-index: 2; margin-top: -90px; background: linear-gradient(180deg, var(--navy) 0, var(--night) 900px);
  border-top: 1px solid var(--gold-line); border-radius: 36px 36px 0 0; box-shadow: 0 -30px 80px rgba(0,0,0,0.45); }

.dnav { position: sticky; top: 18px; z-index: 50; width: max-content; max-width: calc(100% - 32px); margin: 0 auto; transform: translateY(-50%);
  display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(18, 26, 38, 0.78); border: 1px solid var(--gold-line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 14px 38px rgba(0,0,0,0.45); }
.dnav-link { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .2s; }
.dnav-link:hover, .dnav-link.active { color: var(--gold-soft); }
.dnav-pill { position: absolute; top: 6px; left: 6px; height: calc(100% - 12px); width: 0; border-radius: 999px; background: rgba(201,162,94,0.14); border: 1px solid rgba(201,162,94,0.3); transition: left .35s var(--ease), width .35s var(--ease); }

.section { padding: 56px 0 72px; scroll-margin-top: 90px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head .h2 { margin: 0; }

/* ---------- OFERTA ---------- */
.offer { padding-top: 24px; }
.offer-intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; margin-bottom: 56px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 14px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.ticks.two-col { grid-template-columns: 1fr 1fr; gap: 12px 32px; text-align: left; max-width: 760px; margin: 26px auto 32px; }
.offer-note { background: var(--panel); border: 1px solid var(--gold-line); border-radius: var(--r-lg); padding: 26px 28px; }
.offer-note p { margin: 0 0 18px; font-size: 18px; line-height: 1.5; }
.offer-note-badge { display: inline-flex; align-items: center; gap: 9px; font-size: 14px !important; font-weight: 600; color: var(--gold-soft);
  border: 1px solid var(--gold-line); border-radius: 999px; padding: 6px 13px; margin-bottom: 18px !important; }
.offer-note-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,94,0.18); }
.sold-meter { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.sold-bar { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.sold-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.sold-label { font-size: 15px; color: var(--muted); }

.house-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; margin-bottom: 64px; }
.house-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .25s var(--ease); scroll-margin-top: 100px; }
.house-card:hover { border-color: var(--gold-line); }
.card-plan { position: relative; display: block; background: #222c3c; aspect-ratio: 760 / 537; overflow: hidden; }
.card-plan img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-plan:hover img { transform: scale(1.035); }
.card-plan-hint { position: absolute; right: 12px; bottom: 12px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(12,17,26,0.78); color: #fff; backdrop-filter: blur(6px); opacity: 0; transform: translateY(4px); transition: .25s var(--ease); }
.card-plan:hover .card-plan-hint, .card-plan:focus-visible .card-plan-hint { opacity: 1; transform: none; }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; margin: 0; }
.card-stage { margin: -8px 0 0; color: var(--muted); font-size: 15px; }
.card-flag { align-self: flex-start; font-size: 13px; font-weight: 650; color: #10151f; background: var(--garden); padding: 4px 10px; border-radius: 6px; }
.card-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-specs div { padding: 12px 0; }
.card-specs div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.card-specs dt { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.card-specs dd { margin: 0; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.garden { display: grid; gap: 6px; }
.garden-cap { font-size: 13px; color: var(--muted); }
.garden-bar { display: block; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.garden-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6f8f3a, var(--garden)); }
.garden-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.card-price { display: grid; gap: 4px; margin-top: auto; }
.price { font-size: 30px; font-weight: 700; color: #fff; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.price-sub { font-size: 14px; color: var(--muted); line-height: 1.5; }
.card-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status.free { color: var(--garden); } .status.free .dot { background: var(--garden); }
.status.sold { color: var(--sold); } .status.sold .dot { background: var(--sold); }
.status.rez { color: var(--gold-soft); } .status.rez .dot { background: var(--gold-soft); }

/* Etapy */
.stages-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.stages-head p { margin: 0; max-width: 52ch; }
.stage { border-bottom: 1px solid var(--line); }
.stage-head { width: 100%; display: grid; grid-template-columns: 110px 1fr auto 150px 20px; align-items: center; gap: 18px; padding: 18px 4px; text-align: left; transition: background-color .2s; border-radius: 8px; }
.stage-head:hover { background: rgba(255,255,255,0.025); }
.stage-name { font-family: var(--serif); font-size: 24px; color: #fff; }
.stage-when { color: var(--muted); font-size: 15px; }
.stage-count { font-size: 14px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.pips { display: inline-flex; gap: 5px; }
.pip { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid; }
.pip.sold { background: rgba(227,149,138,0.25); border-color: rgba(227,149,138,0.6); }
.pip.free { background: var(--garden); border-color: var(--garden); }
.pip.rez { background: transparent; border-color: var(--gold-soft); }
.chev { width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); justify-self: end; }
.stage-head[aria-expanded="true"] .chev { transform: rotate(225deg) translateY(-3px); }
.stage-body { padding: 0 4px 18px; }
.stage-body:not([hidden]) { animation: fadeIn .35s var(--ease); }
.inv-row { display: grid; grid-template-columns: 110px 1fr 1fr 1.2fr 1fr; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.inv-row:nth-child(even) { background: rgba(255,255,255,0.02); }
.inv-head { font-size: 13px; color: var(--muted); font-weight: 600; background: none !important; padding-top: 4px; padding-bottom: 4px; }
.inv-row .nr { font-weight: 700; color: #fff; }
.inv-row .r { text-align: right; }
.row-link { color: var(--gold-soft); font-weight: 650; border-bottom: 1px dotted var(--gold-line); }
.row-link:hover { border-bottom-style: solid; }
.legend { display: flex; gap: 18px; justify-content: flex-end; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .pip { width: 12px; height: 12px; }

/* ---------- KARUZELE ---------- */
.carousel { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; outline-offset: -2px;
  padding-inline: max(24px, calc((100% - var(--wrap)) / 2)); scroll-padding-inline: max(24px, calc((100% - var(--wrap)) / 2)); }
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.dragging .slide-btn { pointer-events: none; }
.car-track { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; width: max-content; }
.slide { scroll-snap-align: start; flex: 0 0 auto; }
.car-wide .slide { width: min(860px, calc(100vw - 96px)); }
.car-thirds .slide { width: min(370px, calc(100vw - 96px)); }
.slide-btn { display: block; width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); cursor: zoom-in; border: 1px solid var(--line); }
.slide-btn img { width: 100%; object-fit: cover; transition: transform .7s var(--ease); -webkit-user-drag: none; user-select: none; }
.car-wide .slide-btn img { aspect-ratio: 16 / 8.5; }
.car-thirds .slide-btn img { aspect-ratio: 4 / 3; }
.slide-btn:hover img { transform: scale(1.03); }
.car-ctrl { display: flex; align-items: center; gap: 10px; }
.car-count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.car-count .cur { color: #fff; font-weight: 650; }
.car-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: #fff; transition: border-color .2s, color .2s, opacity .2s; }
.car-btn svg { width: 22px; height: 22px; }
.car-btn:hover:not(:disabled) { border-color: var(--gold-soft); color: var(--gold-soft); }
.car-btn:disabled { opacity: 0.35; cursor: default; }
.car-progress { height: 2px; background: var(--line); border-radius: 2px; margin-top: 22px; overflow: hidden; }
.car-progress span { display: block; height: 100%; width: 20%; background: var(--gold); border-radius: inherit; transform-origin: left; transition: width .2s linear; }

/* ---------- ATUTY ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 30px; }
.pillar { border-top: 1px solid var(--gold-line); padding-top: 22px; }
.pillar-ico { width: 26px; height: 26px; fill: var(--gold); margin-bottom: 14px; }
.pillar p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- LOKALIZACJA ---------- */
.loc { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 48px; align-items: center; }
.loc-text .btn { margin-top: 10px; }
.map { position: relative; height: 420px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--gold-line); background: var(--panel); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(90%) hue-rotate(190deg) brightness(88%) contrast(115%) sepia(25%) saturate(130%); transition: filter .4s var(--ease); }
.map.satellite iframe { filter: none; }
.map-toggle { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(18,26,38,0.86); border: 1px solid var(--gold-line); color: var(--gold-soft); backdrop-filter: blur(8px); }
.map-toggle:hover { border-color: var(--gold-soft); }

/* ---------- PROCES ---------- */
.steps { list-style: none; margin: 34px 0 0; padding: 0; position: relative; display: grid; gap: 30px; max-width: 760px; }
.steps-line { position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.steps-line span { display: block; width: 100%; height: 0; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); border-radius: inherit; }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 22px; align-items: start; }
.step-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 1px solid var(--gold-line); font-family: var(--serif); font-size: 24px; color: var(--gold-soft); position: relative; z-index: 1; }
.step h3 { margin-top: 10px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 2px; font-weight: 600; font-size: 17px; color: #fff; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: 0 0 auto; width: 12px; height: 12px; background:
  linear-gradient(var(--gold), var(--gold)) center / 12px 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1.5px 12px no-repeat; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold-soft); }
.faq-ans p { color: var(--muted); padding: 0 2px 22px; margin: 0; max-width: 64ch; }
.faq-item[open] .faq-ans { animation: fadeIn .3s var(--ease); }

/* ---------- ODDZWONIMY ---------- */
.callback { text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(201,162,94,0.10), transparent 60%); }
.callback .h2 { margin-bottom: 0; }
.callback .hero-note { margin: 0; }

/* ---------- KONTAKT / STOPKA ---------- */
.contact { border-top: 1px solid var(--line); padding: 64px 0 calc(32px + var(--abar-h)); }
.agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 56px; }
.agent { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.agent-photo { width: 120px; height: 120px; object-fit: cover; object-position: top; border-radius: 50%; border: 1px solid var(--gold-line); }
.agent-name { font-family: var(--serif); font-size: 26px; color: #fff; margin: 0; line-height: 1.1; }
.agent-role { font-size: 14px; color: var(--muted); margin: 2px 0 8px; }
.agent-phone { display: inline-block; font-weight: 650; color: var(--gold-soft); font-size: 18px; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.agent-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.socials { display: flex; gap: 8px; }
.soc { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: border-color .2s, background-color .2s; }
.soc svg { width: 17px; height: 17px; fill: var(--muted); transition: fill .2s; }
.soc:hover { border-color: var(--gold); background: rgba(201,162,94,0.1); }
.soc:hover svg { fill: var(--gold-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.foot-h { font-family: var(--sans); font-size: 14px; font-weight: 650; color: var(--muted); margin: 0 0 18px; }
.foot-logo { margin-bottom: 18px; opacity: 0.9; }
.foot-logo.invert { max-width: 240px; filter: brightness(0) invert(1); }
.foot-logo.small { height: 64px; width: auto; }
.foot-col address { font-style: normal; color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.foot-col address a { color: var(--text); border-bottom: 1px dotted var(--line-strong); }
.foot-col address a:hover { color: var(--gold-soft); }
.legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.legal a { border-bottom: 1px dotted var(--line-strong); }


/* ---------- PLAN OSIEDLA ---------- */
.plan { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: stretch; margin-bottom: 64px; }
.plan-map { background: radial-gradient(ellipse at 40% 40%, #1f2c40 0%, #172131 70%); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 12px; }
.plan-svg { width: 100%; height: auto; display: block; }
.plan-site { fill: rgba(165, 196, 106, 0.06); stroke: rgba(165, 196, 106, 0.35); stroke-width: 1.5; stroke-dasharray: 6 6; }
.plan-road { fill: none; stroke: rgba(255,255,255,0.10); stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.unit { cursor: pointer; outline: none; }
.unit polygon { stroke: var(--night); stroke-width: 3; transition: fill .2s, filter .2s; }
.unit text { font: 650 15px var(--sans); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.unit.free polygon { fill: var(--garden); }
.unit.free text { fill: #142010; }
.unit.rez polygon { fill: rgba(236, 211, 162, 0.25); stroke: var(--gold-soft); }
.unit.rez text { fill: var(--gold-soft); }
.unit.sold polygon { fill: #2b3a52; }
.unit.sold text { fill: #8796ab; font-weight: 500; }
.hatch-line { stroke: rgba(255,255,255,0.06); stroke-width: 3; }
.unit:hover polygon, .unit:focus-visible polygon, .unit.active polygon { filter: brightness(1.18); stroke: var(--gold-soft); stroke-width: 3.5; }
.unit.sold:hover polygon, .unit.sold.active polygon { fill: #34465f; }
.plan-north path { fill: var(--gold); }
.plan-north text { fill: var(--gold-soft); font: 600 15px var(--sans); text-anchor: middle; }
.plan-note { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.plan-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; }
.plan-panel-body { flex: 1; }
.pp-title { font-family: var(--serif); font-size: 40px; line-height: 1; color: #fff; margin: 4px 0 6px; }
.pp-meta { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.pp-rows { margin: 0 0 18px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pp-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pp-rows dt { color: var(--muted); }
.pp-rows dd { margin: 0; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; text-align: right; }
.pp-actions { display: grid; gap: 10px; }
.legend.left { justify-content: flex-start; margin-top: 18px; }

/* ---------- ZAKŁADKI GALERII ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 24px; }
.tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 15px; font-weight: 600; color: var(--muted); transition: color .2s, border-color .2s, background-color .2s; }
.tab span { color: var(--muted); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.tab:hover { color: #fff; border-color: var(--gold-line); }
.tab[aria-selected="true"] { color: #10151f; background: var(--gold-soft); border-color: var(--gold-soft); }
.tab[aria-selected="true"] span { color: #10151f; opacity: .65; }
.car-track[hidden] { display: none; }
.car-mid .slide { width: min(560px, calc(100vw - 96px)); }
.car-mid .slide-btn img { aspect-ratio: 3 / 2; }

/* ---------- UKŁAD I STANDARD ---------- */
.spec { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; margin-top: 30px; align-items: start; }
.rooms { display: grid; gap: 28px; }
.room-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.room-table caption { text-align: left; font-family: var(--serif); font-size: 26px; color: #fff; padding-bottom: 8px; }
.room-table th { text-align: left; font-weight: 400; color: var(--text); padding: 9px 0; border-bottom: 1px solid var(--line); }
.room-table td { text-align: right; color: #fff; font-weight: 600; padding: 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.room-table tfoot th, .room-table tfoot td { border-bottom: 0; border-top: 1px solid var(--gold-line); color: var(--gold-soft); font-weight: 650; }
.std { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 32px; }
.std-group { border-top: 1px solid var(--gold-line); padding-top: 16px; }
.std-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.std-group li { color: var(--muted); font-size: 15px; line-height: 1.55; padding-left: 16px; position: relative; }
.std-group li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- LOKALIZACJA: fakty ---------- */
.near { margin: 6px 0 24px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.near div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.near dt { color: var(--muted); }
.near dd { margin: 0; color: var(--text); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bus { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line-strong); font-weight: 700; font-size: 13px; color: #fff; }


/* ===== WERSJA 3: mapa v2, lista, standard, zakup, stopka ===== */
.trust { list-style: none; margin: 0 0 44px; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust li { text-align: center; color: var(--muted); font-size: 15px; padding: 0 10px; }
.trust li + li { border-left: 1px solid var(--line); }
.trust strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--gold-soft); line-height: 1.15; }

/* Mapa v2 */
.plan-map { position: relative; padding: 14px 14px 10px; background: radial-gradient(ellipse at 45% 35%, #22324a 0%, #182335 75%); }
.plan-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 4px 8px; }
.plan-tools .legend { margin: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); }
.seg-btn { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s; }
.seg-btn[aria-pressed="true"] { background: var(--gold-soft); color: #10151f; }
.plan-site { fill: rgba(165,196,106,0.05); stroke: rgba(165,196,106,0.3); stroke-width: 1.5; stroke-dasharray: 5 6; }
.street { fill: none; stroke: #2a3445; stroke-linecap: round; stroke-linejoin: round; }
.street-line { fill: none; stroke: rgba(255,255,255,0.22); stroke-width: 2; stroke-dasharray: 18 14; }
.street-name { font: 600 18px var(--sans); fill: #c8d1dd; letter-spacing: .08em; }
.garden-plot { fill: rgba(126, 160, 76, 0.16); stroke: rgba(165,196,106,0.22); stroke-width: 1; transition: fill .25s, opacity .25s; }
.garden-plot.free { fill: rgba(165, 196, 106, 0.32); stroke: rgba(165,196,106,0.6); }
.garden-plot.hi { fill: rgba(236, 211, 162, 0.28); stroke: var(--gold-soft); }
.tree { fill: rgba(111, 143, 58, 0.55); stroke: rgba(165,196,106,0.35); stroke-width: 1.5; }
.plan-road { fill: none; stroke: #33405a; stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.plan-road.side { stroke-width: 16; }
.drive { fill: none; stroke: #33405a; stroke-width: 12; stroke-linecap: round; }
.unit polygon { stroke: #0e1520; stroke-width: 2.5; }
.unit.sold polygon { fill: #3a4a62; }
.unit.sold text { fill: #a9b6c7; }
.unit.free polygon { fill: #b8d27c; }
.unit.free text { fill: #18240e; font-weight: 750; }
.roof { fill: none; stroke: rgba(10,15,24,0.45); stroke-width: 1.4; pointer-events: none; }
.party { fill: none; stroke: rgba(10,15,24,0.75); stroke-width: 3; pointer-events: none; }
.roofs { pointer-events: none; }
.unit text { font-size: 16px; }
.plan-map.only-free .unit.sold { opacity: .25; }
.plan-map.only-free .garden-plot:not(.free) { opacity: .25; }
.pin circle { fill: var(--gold); stroke: #10151f; stroke-width: 3; }
.pin.side circle { fill: var(--gold-soft); }
.pin-arrow { fill: none; stroke: #10151f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pin-label { font: 650 16px var(--sans); fill: #fff; paint-order: stroke; stroke: #121a26; stroke-width: 5px; stroke-linejoin: round; }
.plan-north circle { fill: rgba(18,26,38,0.8); stroke: var(--gold-line); }
.plan-north path { fill: var(--gold); }
.plan-north text { fill: var(--gold-soft); font: 650 15px var(--sans); text-anchor: middle; }
.plan-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 170px; padding: 10px 12px; border-radius: 12px; background: rgba(12,17,26,0.94); border: 1px solid var(--gold-line); box-shadow: 0 14px 30px rgba(0,0,0,0.5); font-size: 14px; line-height: 1.45; transform: translate(-50%, calc(-100% - 14px)); }
.plan-tip b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: #fff; }
.plan-tip .p { color: var(--gold-soft); font-weight: 700; }
.plan-tip .s-free { color: var(--garden); } .plan-tip .s-sold { color: var(--sold); }
@media (hover: none) { .plan-tip { display: none; } }

/* Lista „Dostępne teraz” */
.avail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.avail-head .subhead { margin: 0; }
.avail-head p { margin: 0; }
.house-list { border-top: 1px solid var(--line); margin-bottom: 56px; }
.hl { border-bottom: 1px solid var(--line); transition: background-color .2s; scroll-margin-top: 110px; }
.hl.hi, .hl:hover { background: rgba(255,255,255,0.02); }
.hl-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 6px 4px; }
.hl-toggle { display: grid; grid-template-columns: 150px 1fr 190px 150px 18px; align-items: center; gap: 16px; padding: 14px 6px; text-align: left; border-radius: 10px; width: 100%; }
.hl-nr { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 28px; color: #fff; line-height: 1; white-space: nowrap; }
.hl-nr .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--garden); flex: 0 0 auto; }
.hl-meta { color: var(--muted); font-size: 15px; }
.hl-plot { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 16px; }
.hl-k { color: var(--muted); font-weight: 400; margin-right: 4px; }
.hl-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 5px; background: var(--garden); color: #142010; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.hl-price { font-weight: 700; font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.hl-toggle .chev { justify-self: end; }
.hl-toggle[aria-expanded="true"] .chev { transform: rotate(225deg) translateY(-3px); }
.hl-cta { min-height: 44px; padding: 10px 22px; }
.hl-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; padding: 6px 10px 26px; }
.hl-body:not([hidden]) { animation: fadeIn .3s var(--ease); }
.hl-plan { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #222c3c; aspect-ratio: 760 / 537; }
.hl-plan img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hl-plan:hover img { transform: scale(1.03); }
.hl-plan-hint { position: absolute; right: 10px; bottom: 10px; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(12,17,26,0.82); color: #fff; }
.hl-info { display: flex; flex-direction: column; gap: 16px; }
.hl-specs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hl-specs div { padding: 10px 0; }
.hl-specs div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.hl-specs dt { font-size: 13px; color: var(--muted); }
.hl-specs dd { margin: 0; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; font-size: 15px; }
.hl-pricing { margin: 0; font-size: 14px; color: var(--muted); }
.hl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

/* Standard – skondensowany */
.spec { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; margin-top: 26px; }
.rooms-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px 16px; }
.rooms { grid-template-columns: 1fr 1fr; gap: 24px; display: grid; }
.room-table { font-size: 14.5px; }
.room-table caption { font-size: 22px; padding-bottom: 6px; display: flex; justify-content: space-between; align-items: baseline; }
.room-table caption span { font-family: var(--sans); font-size: 13px; color: var(--gold-soft); font-weight: 650; }
.room-table th, .room-table td { padding: 5px 0; border-bottom: 1px dotted rgba(255,255,255,0.14); }
.room-table th { color: var(--muted); }
.rooms-total { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--gold-line); display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 15px; }
.rooms-total strong { color: var(--gold-soft); font-size: 18px; }
.rooms-total span { margin-left: auto; font-size: 13px; }
.std { gap: 22px 28px; }
.std-group { padding-top: 12px; }
.std-group h3 { font-size: 17px; margin-bottom: 8px; }
.std-group ul { gap: 5px; }
.std-group li { font-size: 14.5px; line-height: 1.45; }
.std-group a { color: var(--gold-soft); border-bottom: 1px dotted var(--gold-line); }
.mid-cta { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r-lg); border: 1px solid var(--gold-line); background: linear-gradient(90deg, rgba(201,162,94,0.12), rgba(201,162,94,0.02)); }
.mid-cta p { margin: 0; color: var(--muted); font-size: 16px; }
.mid-cta strong { color: #fff; }

/* Bezpieczny zakup */
.buy { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; margin-top: 26px; }
.buy .pillars { grid-template-columns: 1fr; gap: 22px; margin-top: 0; }
.buy .pillar { display: grid; grid-template-columns: 26px 1fr; column-gap: 16px; padding-top: 18px; }
.buy .pillar-ico { grid-row: 1 / 3; margin: 2px 0 0; }
.buy .steps { margin-top: 0; }

/* Stopka – wyśrodkowana */
.agents { max-width: 900px; margin-inline: auto; }
.foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; text-align: center; padding-top: 0; border-top: 1px solid var(--line); }
.foot-col { display: flex; flex-direction: column; align-items: center; padding: 34px 20px 8px; }
.foot-col + .foot-col { border-left: 1px solid var(--line); }
.foot-logo-box { height: 72px; display: grid; place-items: center; margin-bottom: 16px; }
.foot-logo-box .foot-logo { margin: 0; max-height: 72px; width: auto; }
.foot-logo.invert { max-width: 210px; height: auto; }
.foot-col address { margin-bottom: 14px; font-size: 14.5px; line-height: 1.7; }
.socials { justify-content: center; }
.legal { justify-content: center; text-align: center; }

/* Formularz – kontekst */
.form-ctx { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(165,196,106,0.1); border: 1px solid rgba(165,196,106,0.35); font-size: 15px; color: var(--text); }
.form-ctx strong { color: #fff; }

@media (max-width: 1100px) {
  .hl-toggle { grid-template-columns: 130px 1fr 170px 130px 18px; }
}
@media (max-width: 960px) {
  .trust { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .trust li:nth-child(3) { border-left: 0; }
  .buy { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-col + .foot-col { border-left: 0; border-top: 1px solid var(--line); }
  .hl-toggle { grid-template-columns: 1fr auto 18px; grid-template-areas: "nr price chev" "meta plot chev"; row-gap: 6px; }
  .hl-nr { grid-area: nr; } .hl-price { grid-area: price; } .hl-meta { grid-area: meta; font-size: 14px; } .hl-plot { grid-area: plot; text-align: right; font-size: 14px; } .hl-toggle .chev { grid-area: chev; }
  .hl-body { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { padding: 92px 0 130px; }
  .hero-avail { font-size: 13px; }
  .trust strong { font-size: 22px; }
  .trust li { font-size: 13.5px; }
  .hl-row { grid-template-columns: 1fr; gap: 0; padding: 2px 0 12px; }
  .hl-toggle { padding: 12px 2px; }
  .hl-nr { font-size: 26px; }
  .hl-price { font-size: 18px; }
  .hl-cta { width: 100%; }
  .hl-specs { grid-template-columns: 1fr 1fr; }
  .hl-specs div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hl-actions .btn { flex: 1 1 140px; }
  .rooms { grid-template-columns: 1fr; gap: 18px; }
  .rooms-card { padding: 16px; }
  .mid-cta { padding: 18px; }
  .mid-cta .btn { width: 100%; }
  .unit text { font-size: 22px; }
  .pin-label { font-size: 22px; }
  .street-name { font-size: 24px; }
  .plan-map { padding: 10px 6px 8px; }
  .plan-tools { margin: 2px 6px 6px; }
}

/* ---------- PŁYWAJĄCE (desktop) ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; gap: 10px; padding: 7px; border-radius: 999px; background: rgba(18,26,38,0.86); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.fab-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s var(--ease), background-color .2s; }
.fab-btn svg { width: 24px; height: 24px; fill: currentColor; }
.fab-btn.wa { color: #25d366; background: rgba(37,211,102,0.12); }
.fab-btn.wa:hover { background: #25d366; color: #fff; }
.fab-btn.call { background: linear-gradient(135deg, #f0d7a6, #c9a25e); color: #10151f; }
.fab-btn:hover { transform: scale(1.08); }

/* ---------- PASKI MOBILNE ---------- */
.mbar, .abar { display: none; }

/* ---------- LIGHTBOX ---------- */
.lb, .modal { position: fixed; inset: 0; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; }
.lb.active, .modal.active { opacity: 1; visibility: visible; }
.lb { background: rgba(9, 13, 20, 0.96); backdrop-filter: blur(12px); display: grid; grid-template-rows: auto 1fr auto auto; }
.lb-top { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 20px; }
.lb-count { margin-right: auto; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-zoom { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; }
.lb-zoom:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.lb-close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 18px; color: var(--gold-soft); transition: background-color .2s, color .2s; }
.lb-close:hover { background: var(--gold); color: #10151f; }
.lb-stage { position: relative; overflow: auto; display: grid; place-items: center; padding: 0 84px; min-height: 0; overscroll-behavior: contain; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; opacity: 0; transform: scale(.98); transition: opacity .2s ease, transform .3s var(--ease); cursor: zoom-out; }
.lb-img.is-visible { opacity: 1; transform: none; }
.lb-stage.zoomed { place-items: start; cursor: grab; }
.lb-stage.zoomed .lb-img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
.lb-caption { text-align: center; font-size: 14px; color: var(--muted); margin: 10px 20px; min-height: 1.4em; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(18,26,38,0.7); z-index: 2; transition: border-color .2s, color .2s; }
.lb-nav svg { width: 26px; height: 26px; }
.lb-nav:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.lb-nav.prev { left: 18px; } .lb-nav.next { right: 18px; }
.lb-nav[hidden] { display: none; }
.lb-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 0 auto 20px; width: min(980px, 100% - 32px); padding: 18px 22px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--gold-line); }
.lb-panel[hidden] { display: none; }
.lb-title { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0; color: #fff; line-height: 1.1; }
.lb-desc { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.lb-price { margin: 4px 0 0; font-weight: 700; font-size: 22px; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.lb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lb-actions .btn[hidden] { display: none; }

/* ---------- FORMULARZ ---------- */
.modal { background: rgba(9, 13, 20, 0.88); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal-card { position: relative; width: min(460px, 100%); background: linear-gradient(180deg, var(--panel), var(--navy)); border: 1px solid var(--gold-line); border-radius: var(--r-lg); padding: 34px 30px 26px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); transform: translateY(10px); transition: transform .3s var(--ease); }
.modal.active .modal-card { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--gold-soft); }
.modal-close:hover { background: var(--gold); color: #10151f; }
.cform { display: grid; gap: 16px; margin-top: 10px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--text); }
.field-label .opt { color: var(--muted); font-weight: 400; }
.cform input[type="tel"], .cform select { width: 100%; min-height: 54px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: rgba(255,255,255,0.04); color: #fff; font: inherit; font-size: 18px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.cform select { font-size: 16px; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a25e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.cform select option { background: var(--navy); }
.cform input:focus, .cform select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,94,0.2); }
.cform input[aria-invalid="true"] { border-color: var(--sold); }
.cform .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-msg { margin: 0; font-size: 15px; min-height: 0; }
.form-msg.err { color: var(--sold); }
.form-msg a { color: var(--gold-soft); text-decoration: underline; }
.rodo { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }
.rodo a { color: var(--gold-soft); border-bottom: 1px dotted var(--gold-line); }
.modal-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.modal-alt p { margin: 0 0 2px; }
.alt-phone { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--text); padding: 6px 0; }
.alt-phone svg { width: 18px; height: 18px; fill: var(--gold); }
.alt-phone:hover { color: var(--gold-soft); }

/* ---------- PODSTRONY ---------- */
.page-simple { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.page-simple h1 { font-family: var(--serif); font-weight: 400; color: #fff; font-size: clamp(34px, 5vw, 50px); line-height: 1.08; margin: 0 0 22px; }
.page-simple h2 { font-size: 20px; color: var(--gold-soft); margin: 34px 0 10px; }
.page-simple p, .page-simple li { font-size: 16px; }
.page-simple a { color: var(--gold-soft); border-bottom: 1px dotted var(--gold-line); }
.page-simple .btn { border-bottom: 0; }
.page-simple .back { display: inline-block; margin-top: 30px; }
.page-kicker { display: inline-block; font-size: 15px; font-weight: 600; color: var(--gold-soft); margin-bottom: 16px; }
.draft-note { border: 1px dashed var(--gold); background: rgba(201,162,94,0.08); padding: 14px 18px; border-radius: 12px; font-size: 14px; color: var(--gold-soft); }

/* ---------- RESPONSYWNOŚĆ ---------- */
@media (max-width: 1100px) {
  .dnav-link { padding: 8px 11px; font-size: 13px; }
}
@media (max-width: 960px) {
  .offer-intro, .loc, .faq, .plan, .spec { grid-template-columns: 1fr; gap: 32px; }
  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .foot-col:first-child { grid-column: 1 / -1; }
  .stage-head { grid-template-columns: 90px 1fr auto 20px; }
  .stage-head .stage-count { display: none; }
}
@media (max-width: 860px) {
  .agents { grid-template-columns: 1fr; }
  .house-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --abar-h: 68px; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .dnav, .fab { display: none; }

  .mbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 70; align-items: center; gap: 10px; padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top));
    background: rgba(18,26,38,0.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transform: translateY(-110%); transition: transform .3s var(--ease); }
  .mbar.show { transform: none; }
  .mbar-logo img { width: 26px; height: auto; }
  .mbar-name { font-family: var(--serif); font-size: 18px; color: #fff; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar-cta { font-size: 14px; font-weight: 650; color: var(--gold-soft); border: 1px solid var(--gold-line); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }

  .abar { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: rgba(18,26,38,0.94); border-top: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .abar-btn { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); font-size: 15px; font-weight: 650; color: #fff; }
  .abar-btn svg { width: 18px; height: 18px; fill: currentColor; }
  .abar-btn.gold { background: linear-gradient(135deg, #f0d7a6, #c9a25e); color: #10151f; border: 0; }
  .abar-btn.gold svg { fill: none; stroke: currentColor; }
  body.modal-open .abar, body.modal-open .mbar { display: none; }

  .hero { min-height: auto; }
  .hero-inner { width: calc(100% - 36px); padding: 84px 0 130px; }
  .hero-shade { background: linear-gradient(180deg, rgba(12,17,26,0.55) 0%, rgba(12,17,26,0.45) 35%, rgba(12,17,26,0.9) 78%, var(--night) 100%); }
  .hero-img { background-image: url("../img/ujecie-5-1200.webp"); background-position: 55% 60%; }
  .hero-kicker { font-size: 14px; }
  .hero-title { font-size: clamp(38px, 10.5vw, 50px); }
  .hero-facts { font-size: 15px; row-gap: 6px; }
  .hero-facts li { padding: 0 12px; }
  .hero-ctas .btn { flex: 1 1 100%; }

  .sheet { margin-top: -60px; border-radius: 26px 26px 0 0; padding-top: 30px; }
  .section { padding: 44px 0 52px; }
  .section-head { align-items: center; }
  .section-head .h2 { font-size: 30px; }
  .car-count { display: none; }
  .car-btn { width: 42px; height: 42px; }
  .lead { font-size: 17px; }
  .offer-note { padding: 22px; }

  .card-body { padding: 20px; }
  .card-title { font-size: 34px; }
  .card-actions { grid-template-columns: 1fr; }
  .price { font-size: 27px; }

  .stage-head { grid-template-columns: 1fr auto 18px; gap: 6px 12px; padding: 16px 2px; }
  .stage-name { grid-column: 1; }
  .stage-when { grid-column: 1; grid-row: 2; font-size: 14px; }
  .pips { grid-column: 2; grid-row: 1 / 3; }
  .chev { grid-column: 3; grid-row: 1 / 3; }
  .pip { width: 13px; height: 13px; }
  .inv-row { grid-template-columns: 52px 1fr 1fr; grid-template-areas: "nr dz st" "nr od pr"; row-gap: 2px; font-size: 14px; padding: 10px 8px; }
  .inv-head { display: none; }
  .inv-row > :nth-child(1) { grid-area: nr; }
  .inv-row > :nth-child(2) { grid-area: dz; }
  .inv-row > :nth-child(3) { grid-area: od; color: var(--muted); }
  .inv-row > :nth-child(4) { grid-area: st; justify-self: end; }
  .inv-row > :nth-child(5) { grid-area: pr; }
  .legend { justify-content: flex-start; flex-wrap: wrap; }
  .ticks.two-col { grid-template-columns: 1fr; }
  .std { grid-template-columns: 1fr; gap: 24px; }
  .plan-map { padding: 10px 8px 8px; }
  .unit text { font-size: 25px; }
  .plan-north text { font-size: 22px; }
  .plan-panel { padding: 20px; }
  .pp-title { font-size: 34px; }
  .car-mid .slide { width: calc(84vw); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; }
  .tab { white-space: nowrap; }

  .car-wide .slide { width: calc(100vw - 54px); }
  .car-thirds .slide { width: calc(78vw); }
  .car-wide .slide-btn img { aspect-ratio: 4 / 3; }
  .map { height: 340px; }

  .agent { grid-template-columns: 88px 1fr; padding: 16px; gap: 16px; }
  .agent-photo { width: 88px; height: 88px; }
  .foot-grid { grid-template-columns: 1fr; }

  .lb-stage { padding: 0 8px; }
  .lb-nav { top: auto; bottom: 18px; transform: none; width: 46px; height: 46px; }
  .lb-panel { flex-direction: column; align-items: stretch; margin-bottom: 12px; padding: 16px; }
  .lb-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .lb-actions .btn-gold { grid-column: 1 / -1; }
  .lb-title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroSettle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes parallax { from { translate: 0 0; } to { translate: 0 12%; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* poprawki po przeglądzie */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hl-body { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: start; }
.hl-actions { margin-top: 4px; }
.room-table caption { display: table-caption; text-align: left; }
.room-table caption span { float: right; margin-top: 8px; }
.foot-logo-box img[src$=".svg"] { width: 60px; height: 72px; max-height: none; }
.agent .socials { justify-content: flex-start; }
.plan { align-items: start; }
.plan-panel { position: sticky; top: 92px; }
@media (max-width: 960px) { .plan-panel { position: static; } .hl-body { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .hero-facts { column-gap: 16px; }
  .hero-facts li, .hero-facts li:first-child { border-left: 0; padding: 0; }
  .plan-scroll { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 -6px; padding: 0 6px; scrollbar-width: none; }
  .plan-scroll::-webkit-scrollbar { display: none; }
  .plan-scroll .plan-svg { min-width: 560px; }
  .plan-hint { display: block; font-size: 13px; color: var(--muted); margin: 0 6px 6px; }
}
.plan-hint { display: none; }

/* ================= KALKULATOR RATY (jedno kompaktowe okno) ================= */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-top: 26px; background: var(--panel); border: 1px solid var(--gold-line); border-radius: var(--r-lg); overflow: hidden; }
.calc-in { display: grid; gap: 16px; padding: 22px 24px; align-content: start; }
.calc-out { padding: 22px 24px; background: linear-gradient(160deg, #23324a 0%, #1a2638 100%); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.c-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.c-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.c-input, .c-lead input[type="tel"] { width: 100%; min-height: 46px; padding: 10px 13px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: rgba(255,255,255,0.04); color: #fff; font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
select.c-input { padding-right: 38px; text-overflow: ellipsis; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a25e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 18px; }
select.c-input option { background: var(--navy); }
.c-input:focus, .c-lead input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,94,0.2); }
.calc .field-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.c-unit { position: relative; display: block; }
.c-unit .c-input { padding-right: 36px; }
.c-unit > span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.c-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.c-row output { font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.c-range { --p: 50%; width: 100%; height: 26px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: pan-y; }
.c-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--p), rgba(255,255,255,0.14) var(--p)); }
.c-range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.14); }
.c-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
.c-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--gold-soft); border: 3px solid var(--navy); box-shadow: 0 0 0 1px var(--gold), 0 4px 12px rgba(0,0,0,.35); }
.c-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold-soft); border: 3px solid var(--navy); box-shadow: 0 0 0 1px var(--gold); }
.c-range:focus-visible { outline: none; }
.c-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(201,162,94,0.35); }
.c-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -2px; }
.c-more { border-top: 1px solid var(--line); padding-top: 12px; }
.c-more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--gold-soft); }
.c-more summary::-webkit-details-marker { display: none; }
.c-more summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
.c-more[open] summary::after { transform: rotate(225deg); }
.c-more-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.c-more-body .field:last-child { grid-column: 1 / -1; }
.c-seg { display: flex; width: 100%; min-height: 46px; padding: 3px; }
.c-seg .seg-btn { flex: 1; font-size: 14px; padding: 6px 8px; white-space: nowrap; }

.c-kicker { margin: 0; font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.c-rata { margin: 2px 0 0; font-family: var(--serif); font-size: clamp(44px, 5vw, 56px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.c-zl { font-family: var(--sans); font-size: 20px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.c-sub { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.c-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.c-dl div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.c-dl dt { font-size: 12px; color: var(--muted); }
.c-dl dd { margin: 2px 0 0; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; font-size: 14.5px; white-space: nowrap; }
.c-warn { margin: 0; font-size: 13px; color: var(--gold-soft); line-height: 1.45; }
.c-lead { display: grid; gap: 10px; margin-top: auto; }
.c-lead-title { margin: 0; font-weight: 650; font-size: 16px; color: #fff; }
.c-lead-row { display: flex; gap: 10px; align-items: stretch; }
.c-lead-row input { flex: 1 1 0; min-width: 0; }
.c-send { flex: 0 0 auto; min-height: 46px; padding: 10px 20px; font-size: 15px; white-space: nowrap; }
.c-check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 12.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.c-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.c-check a { color: var(--gold-soft); border-bottom: 1px dotted var(--gold-line); }
.c-lead .form-msg { margin: 0; }
.c-lead .form-msg:empty { display: none; }
.c-src { margin: 14px 0 4px; font-size: 13.5px; color: var(--text); }
.c-disc { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 110ch; }

@media (max-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .calc-in, .calc-out { padding: 18px 16px; }
  .c-top { grid-template-columns: minmax(0, 1fr); }
  .c-grid2.c-sliders { gap: 16px; }
  .c-dl dd { font-size: 13.5px; }
  .c-dl div + div { padding-left: 8px; }
  .c-more-body { grid-template-columns: 1fr; }
  .c-send { padding: 10px 16px; }
}

/* ================= RESPONSYWNOŚĆ: MAPA, LISTA, CTA (iOS i Android) ================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
.plan { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.plan > *, .plan-map, .plan-panel, .calc > *, .hl-info, .hl-body > * { min-width: 0; }
@media (max-width: 960px) { .plan { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 40px; } }

/* lista domów: zwinięte wiersze jak kompaktowa tabela */
.hl-body { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; padding: 4px 10px 20px; }
.hl-cta { min-height: 40px; padding: 8px 20px; font-size: 15px; }
.hl-actions .btn { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
@media (max-width: 960px) { .hl-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 768px) {
  .hl-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0; }
  .hl-toggle { grid-template-columns: minmax(0, 1fr) auto 14px; grid-template-areas: "nr price chev" "plot plot chev"; row-gap: 3px; column-gap: 10px; padding: 12px 0; }
  .hl-meta { display: none; }
  .hl-nr { font-size: 22px; gap: 8px; }
  .hl-price { font-size: 16.5px; }
  .hl-plot { grid-area: plot; text-align: left; font-size: 13.5px; color: var(--muted); font-weight: 400; }
  .hl-plot .hl-k { margin-right: 3px; }
  .hl-plot .hl-tag { font-size: 11px; padding: 0 6px; }
  .hl-cta { width: auto; min-height: 38px; padding: 7px 16px; font-size: 14.5px; }
  .hl-body { grid-template-columns: 112px minmax(0, 1fr); gap: 10px 12px; padding: 2px 0 16px; align-items: start; }
  .hl-info { display: contents; }
  .hl-plan { grid-row: 1; align-self: start; }
  .hl-plan-hint { display: none; }
  .hl-specs { grid-column: 2; grid-template-columns: 1fr 1fr; border: 0; }
  .hl-specs div, .hl-specs div + div { padding: 2px 0 6px; border-left: 0; }
  .hl-specs dt { font-size: 12px; } .hl-specs dd { font-size: 14px; }
  .garden, .hl-pricing, .hl-actions { grid-column: 1 / -1; }
  .garden { gap: 4px; } .garden-cap, .garden-scale { font-size: 12px; }
  .hl-pricing { font-size: 13px; }
  .hl-actions { display: flex; gap: 8px; flex-wrap: nowrap; margin: 0; }
  .hl-actions .btn { flex: 1 1 0; min-width: 0; padding: 8px 6px; font-size: 14px; }
}

/* przycisk w środku strony: mały, wyśrodkowany */
.mid-cta { max-width: 640px; margin: 32px auto 0; flex-direction: column; justify-content: center; text-align: center; gap: 14px; padding: 20px 24px; }
.mid-cta .btn { width: auto; min-height: 46px; padding: 10px 28px; font-size: 15px; }
@media (max-width: 768px) { .mid-cta { padding: 18px 18px; margin-top: 24px; } .mid-cta p { font-size: 15px; } .mid-cta .btn { width: auto; } }
.abar-btn { min-width: 0; padding: 0 6px; white-space: nowrap; }
@media (max-width: 360px) { .abar { gap: 6px; padding-inline: 8px; } .abar-btn { font-size: 13.5px; gap: 5px; } .abar-btn svg { width: 16px; height: 16px; } }
@media (max-width: 520px) { .c-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
[hidden] { display: none !important; }
.pp-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-actions .btn { min-height: 42px; padding: 8px 12px; font-size: 14.5px; }
.pp-actions .btn-gold { grid-column: 1 / -1; justify-self: center; width: auto; min-width: 70%; }

/* ================= SZLIFY: box cen, plan + mini kalkulator, autobusy ================= */
.offer-intro { align-items: center; }
.offer-note { padding: 24px 28px; }
.offer-note-badge { margin: 0 0 16px !important; }
.offer-prices { display: grid; grid-template-columns: 1fr 1fr; }
.offer-prices > div { display: grid; gap: 4px; padding-right: 20px; }
.offer-prices > div + div { padding: 0 0 0 24px; border-left: 1px solid var(--line-strong); }
.offer-prices span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.offer-prices strong { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.offer-prices strong.gold { color: var(--gold-soft); }
@media (max-width: 520px) { .offer-prices > div { padding-right: 10px; } .offer-prices > div + div { padding-left: 14px; } .offer-prices strong { font-size: 24px; } .offer-note { padding: 20px 18px; } }

.pp-actions p { grid-column: 1 / -1; margin: 0; }
.plan-side { position: sticky; top: 92px; display: grid; gap: 18px; min-width: 0; }
.plan-side .plan-panel { position: static; }
.plan-calc { background: linear-gradient(160deg, #23324a 0%, #1a2638 100%); border: 1px solid var(--gold-line); border-radius: var(--r-lg); padding: 20px 22px; display: grid; gap: 4px; min-width: 0; }
.pc-house { margin: 2px 0 0; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.plan-calc .c-rata { font-size: 46px; margin-top: 0; }
.plan-calc .c-zl { font-size: 17px; }
.pc-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 12px; }
.plan-calc .field-label { font-size: 12.5px; color: var(--muted); }
.plan-calc .c-row output { font-size: 12.5px; }
.pc-more { min-height: 42px; padding: 8px 18px; font-size: 14.5px; justify-self: start; }
@media (max-width: 960px) { .plan-side { position: static; } .plan-calc { display: none; } }

/* rozwinięte opcje kalkulatora na desktopie, bez przełącznika */
@media (min-width: 861px) {
  .c-more summary { display: none; }
  .c-more { border-top: 1px solid var(--line); padding-top: 14px; }
  .c-more-body { margin-top: 0; }
}

/* autobusy */
.bus-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
button.bus { cursor: pointer; font-family: inherit; transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease); }
button.bus:hover, button.bus:focus-visible { border-color: var(--gold); background: rgba(201,162,94,0.16); color: var(--gold-soft); transform: translateY(-1px); outline: none; }
.bus-hint { flex-basis: 100%; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.busdlg { border: 1px solid var(--gold-line); border-radius: var(--r-lg); padding: 0; background: var(--panel); color: var(--text); width: min(460px, calc(100vw - 24px)); max-height: min(86vh, 720px); box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; }
.busdlg::backdrop { background: rgba(8,12,19,0.72); backdrop-filter: blur(3px); }
.bus-card { position: relative; padding: 22px 22px 18px; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.bus-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); color: #fff; font-size: 15px; }
.bus-kicker { margin: 0 44px 2px 0; font-size: 13px; color: var(--muted); }
.bus-title { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; color: #fff; padding-right: 40px; }
.bus-title span { display: block; font-family: var(--sans); font-size: 15px; color: var(--gold-soft); margin-top: 4px; font-weight: 600; }
.bus-dirs { display: flex; flex-wrap: wrap; width: 100%; margin-bottom: 12px; border-radius: 16px; }
.bus-dirs .seg-btn { flex: 1 1 140px; font-size: 13px; padding: 7px 10px; }
.bus-warn, .bus-note { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.45; }
.bus-warn { background: rgba(227,149,138,0.12); border: 1px solid rgba(227,149,138,0.4); color: #f0c4bd; }
.bus-note { background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--muted); }
.bus-next { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.bus-next li { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.bus-next strong { font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; font-weight: 650; }
.bus-next span { font-size: 14px; color: var(--gold-soft); }
.bus-next .none { color: var(--muted); }
sup { font-size: 0.65em; color: var(--gold-soft); margin-left: 1px; }
.bus-all { margin-bottom: 12px; }
.bus-all summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--gold-soft); padding: 4px 0; list-style: none; }
.bus-all summary::-webkit-details-marker { display: none; }
.bus-all summary::after { content: "  ▾"; }
.bus-all[open] summary::after { content: "  ▴"; }
.bus-days { display: flex; width: 100%; margin: 10px 0; }
.bus-days .seg-btn { flex: 1; font-size: 13px; padding: 6px 4px; }
.bus-grid { display: grid; gap: 0; border-top: 1px solid var(--line); max-height: 240px; overflow-y: auto; font-variant-numeric: tabular-nums; }
.bg-row { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.bg-row b { color: #fff; text-align: right; }
.bg-row span { color: var(--text); white-space: pre-wrap; }
.bus-legend { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.bus-legend:empty { display: none; }
.bus-src { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.bus-src a { color: var(--gold-soft); border-bottom: 1px dotted var(--gold-line); }
.bus-dirs .seg-btn { border-radius: 12px; text-align: center; line-height: 1.25; }
@media (max-width: 520px) { .bus-dirs { flex-direction: column; } .bus-dirs .seg-btn { flex: 1 1 auto; width: 100%; } .bus-title { font-size: 28px; } }

/* autobusy: zachęta do kliknięcia */
.bus-list { gap: 8px; }
button.bus { position: relative; min-width: 38px; height: 32px; padding: 0 11px; font-size: 14px; border-color: var(--gold-line); background: rgba(201,162,94,0.10); color: var(--gold-soft); box-shadow: 0 0 0 0 rgba(201,162,94,.45); animation: busPulse 2.4s ease-out infinite; }
button.bus:nth-of-type(2) { animation-delay: .25s; } button.bus:nth-of-type(3) { animation-delay: .5s; } button.bus:nth-of-type(4) { animation-delay: .75s; } button.bus:nth-of-type(5) { animation-delay: 1s; }
button.bus::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: #8fd16a; box-shadow: 0 0 0 2px var(--bg, #121a27); }
.bus-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-soft); font-weight: 600; font-size: 13px; margin-top: 6px; }
.bus-hint::before { content: "\2191"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(201,162,94,.18); font-size: 12px; animation: busNudge 1.6s ease-in-out infinite; }
.bus-list.seen button.bus { animation: none; }
.bus-list.seen .bus-hint::before { animation: none; }
@keyframes busPulse { 0% { box-shadow: 0 0 0 0 rgba(201,162,94,.5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(201,162,94,0); } }
@keyframes busNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { button.bus, .bus-hint::before { animation: none !important; } }

.pip.park { background: rgba(201,162,94,0.35); border: 1.5px solid rgba(236,211,162,0.9); border-radius: 2px; }

/* plan v6 – minimalistyczny plan sytuacyjny */
.plan-site { fill: #26352f; stroke: rgba(184,210,124,0.22); stroke-width: 1.2; stroke-dasharray: none; }
.garden-plot { fill: rgba(170,200,140,0.04); stroke: rgba(214,232,196,0.13); stroke-width: 1; transition: fill .25s, stroke .25s, opacity .25s; }
.garden-plot.free { fill: rgba(184,210,124,0.11); stroke: rgba(184,210,124,0.30); }
.garden-plot.hi { fill: rgba(236,211,162,0.10); stroke: var(--gold-soft); stroke-width: 2.6; }
.road { fill: #222a36; stroke: rgba(255,255,255,0.07); stroke-width: 1; pointer-events: none; }
.road-line { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 1.2; stroke-dasharray: 12 14; pointer-events: none; }
.alley { fill: #353e4d; stroke: rgba(255,255,255,0.05); stroke-width: 1; pointer-events: none; }
.walk { fill: #3f4858; pointer-events: none; }
.street-name { font: 600 15px var(--sans); fill: #8f9bab; letter-spacing: .22em; text-transform: uppercase; pointer-events: none; }
.bays { pointer-events: none; }
.bay { fill: none; stroke: rgba(233,238,245,0.38); stroke-width: 1; transition: fill .2s, stroke .2s; }
.bay-grp.free .bay { stroke: rgba(184,210,124,0.75); }
.bay-grp.hi .bay { fill: rgba(201,162,94,0.42); stroke: var(--gold-soft); stroke-width: 1.8; }
.plan-map.only-free .bay-grp:not(.free) { opacity: .3; }
.bin { fill: #4b5466; stroke: rgba(233,238,245,0.35); stroke-width: 1; pointer-events: none; }
.tree { pointer-events: none; }
.tree-sh { fill: rgba(5,9,15,0.28); }
.tree-c { fill: #4c6540; stroke: none; }
.tree-h { fill: rgba(214,236,170,0.12); }
.plan-scale .s1 { fill: #c9d2de; } .plan-scale .s2 { fill: none; stroke: #c9d2de; stroke-width: 1; }
.plan-scale text { fill: #8f9bab; font: 600 12px var(--sans); text-anchor: middle; }
.pip.park { background: transparent; border: 1.5px solid rgba(233,238,245,0.7); border-radius: 2px; }
.pip.bin { background: #4b5466; border: 1px solid rgba(233,238,245,0.5); border-radius: 2px; width: 12px; height: 10px; }
@media (max-width: 860px) { .plan-scale text { font-size: 16px; } }

/* plan v7 – płynność i stan domów */
.plan-tip { left: 0; top: 0; will-change: transform; }
.plan-tip .tip-hint { font-size: 12px; color: var(--muted); }
.unit-shadows polygon { fill: rgba(4,8,14,0.45); pointer-events: none; }
.unit polygon { transition: fill .15s, stroke .15s; }
.unit:hover polygon, .unit:focus-visible polygon, .unit.active polygon { filter: none; }
.unit.free:hover polygon, .unit.rez:hover polygon { fill: #cfe596; stroke: var(--gold-soft); stroke-width: 3; }
.unit.sold polygon { fill: #344359; stroke: #0e1520; }
.unit.sold text { fill: #8e9bb0; }
.unit.sold:hover polygon { fill: #3b4b63; stroke: rgba(236,241,247,0.45); stroke-width: 2.5; }
.unit.sold.active polygon { fill: #3b4b63; stroke: var(--gold-soft); stroke-width: 3; }
.unit.free.active polygon, .unit.rez.active polygon { stroke: var(--gold-soft); stroke-width: 3.5; }
#planPanelBody { min-height: 372px; }
@media (max-width: 960px) { #planPanelBody { min-height: 0; } }
.garden-plot.free, .garden-plot.rez { cursor: pointer; }
.garden-plot.sold { pointer-events: none; }
.unit.free.hi polygon, .unit.rez.hi polygon { fill: #cfe596; stroke: var(--gold-soft); stroke-width: 3.5; }


/* ==========================================================================
   LIFTING WIZUALNY 2026-10-27 – subtelne dopracowanie detali
   Tylko CSS: bez zmian układu, treści, HTML, skryptów i formularzy.
   Nadpisania na końcu pliku; usunięcie całego bloku przywraca poprzedni wygląd.
   ========================================================================== */

/* Tokeny: mniej „balonowe” zaokrąglenia, wspólne wartości dla CTA i sekcji */
:root {
  --r-lg: 18px;                          /* było 22px */
  --r-md: 12px;                          /* było 14px */
  --sec-y: clamp(48px, 5.5vw, 64px);     /* równy oddech nad i pod sekcją; suma jak dotąd (128 px desktop, 96 px telefon) */
  --band: rgba(236, 211, 162, 0.030);    /* ciepły odpowiednik „złamanej bieli” w ciemnej palecie */
  --cta-grad: linear-gradient(135deg, #f0d7a6 0%, #c9a25e 100%);
  --cta-shadow: 0 4px 16px rgba(201, 162, 94, 0.18);
  --ghost-line: rgba(236, 211, 162, 0.46);
}

/* ---------- Typografia: hierarchia i rytm ---------- */
body { text-rendering: optimizeLegibility; }
p, li { text-wrap: pretty; }
.h2 { line-height: 1.1; letter-spacing: -0.012em; margin-bottom: 20px; }
.lead { line-height: 1.65; }
h3 { line-height: 1.32; letter-spacing: -0.005em; }
.hero-kicker { letter-spacing: 0.02em; }

/* ---------- Przyciski: jeden język dla głównych i drugorzędnych ---------- */
.btn { border: 1px solid transparent; letter-spacing: 0.005em; }
.btn-gold { background: var(--cta-grad); border-color: transparent; box-shadow: var(--cta-shadow); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(201, 162, 94, 0.26); filter: brightness(1.03); }
.btn-ghost { background: transparent; border-color: var(--ghost-line); color: #fff; }
.btn-ghost:hover { background: rgba(236, 211, 162, 0.07); border-color: var(--gold-soft); color: var(--gold-soft); }
.btn:active { transform: translateY(0); filter: none; }
.btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
/* ekrany dotykowe: bez „przyklejonego” hovera po stuknięciu */
@media (hover: none) {
  .btn-gold:hover { transform: none; box-shadow: var(--cta-shadow); filter: none; }
  .btn-ghost:hover { background: transparent; border-color: var(--ghost-line); color: #fff; }
}
/* mniejsze przyciski w liście i panelu: bliżej minimalnego celu dotyku 44 px */
.hl-cta, .hl-actions .btn, .pp-actions .btn { min-height: 44px; }
/* pasek mobilny: te same pigułki co reszta przycisków */
.abar-btn { border-radius: 999px; border-color: var(--ghost-line); }
.abar-btn.gold { background: var(--cta-grad); }

/* ---------- Tło sekcji: bardzo jasny, ciepły odcień na wybranych sekcjach ---------- */
#standard, #lokalizacja, #faq { background: var(--band); }

/* ---------- Odstępy między sekcjami ---------- */
.section { padding: var(--sec-y) 0; }
@media (min-width: 769px) { .section.offer { padding-top: 24px; } }

/* ---------- Karty i panele: spójny oddech wewnątrz (desktop/tablet) ---------- */
@media (min-width: 769px) {
  .offer-note, .plan-panel, .rooms-card, .agent { padding: 24px; }
}
.hl-specs dd, .card-specs dd, .pp-rows dd { font-variant-numeric: tabular-nums; }


/* ==========================================================================
   PROMOCJA – Black Friday: box wyśrodkowany w oknie, otwierany przy pierwszym przewinięciu
   (zamknięcie krzyżykiem / Esc, klik w przycisk przewija do domu) + podpowiedź przy cenach
   Skalowanie: wszystkie wymiary w em, rozmiar bazowy .promo płynny (clamp) względem szerokości okna.
   Sterowanie: dane/strona.json -> promocja.aktywna, dane/domy.json -> pole "promocja" przy domu
   ========================================================================== */
.promo { position: fixed; z-index: 65; box-sizing: border-box; color: #fff;
  font-size: 0.95rem; line-height: 1.35;
  inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 2rem); overflow: auto;
  width: min(30em, calc(100vw - 2rem)); padding: 1.25em 1.1em 1em; border-radius: 1.25em;
  background: radial-gradient(120% 90% at 0% 0%, rgba(201,162,94,0.22), transparent 60%), rgba(12,17,26,0.96);
  border: 1px solid var(--gold-line); box-shadow: 0 1.5em 4em rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(1.5em) scale(0.97); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.promo[hidden] { display: none; }
.promo.open { opacity: 1; transform: none; }
body.modal-open .promo { display: none; }
.promo::before { content: ""; position: absolute; left: 1.25em; right: 1.25em; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); opacity: 0.8; }
.promo-x { position: absolute; top: 0.6em; right: 0.6em; width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .2s, background-color .2s; }
.promo-x:hover { color: #fff; background: rgba(255,255,255,0.08); }
.promo-x svg { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.promo-badge, .ptip-badge { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: #1a1305;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); box-shadow: 0 0 0 1px rgba(236,211,162,0.5), 0 6px 18px rgba(201,162,94,0.28); }
.promo-badge::after, .ptip-badge::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.65) 50%, transparent 70%); transform: translateX(-120%); animation: promoShine 4.2s ease-in-out 1.2s infinite; }
.promo-dot { width: 7px; height: 7px; border-radius: 50%; background: #1a1305; animation: promoPulse 2s ease-out infinite; }
.promo .promo-badge { font-size: 0.75em; padding: 0.42em 1em 0.42em 0.8em; gap: 0.6em; }
.promo .promo-dot { width: 0.6em; height: 0.6em; }
.promo-text { margin: 0.85em 0 0.35em; padding-right: 1.6em; font-family: var(--serif); font-size: 1.45em; line-height: 1.15; text-wrap: balance; }
.promo-text strong { color: var(--gold-soft); font-weight: 400; white-space: nowrap; }
.promo-prices { display: flex; align-items: baseline; gap: 0.75em; margin: 0 0 0.9em; font-variant-numeric: tabular-nums; }
.promo-prices s, .ptip-row s { position: relative; text-decoration: none; color: var(--muted); }
.promo-prices s::after, .ptip-row s::after { content: ""; position: absolute; left: -3px; right: -3px; top: 55%; height: 1.5px; background: var(--sold); transform-origin: left; animation: promoStrike .45s .35s cubic-bezier(.2,.7,.2,1) both; }
.promo-prices s { font-size: 1em; }
.promo-prices strong { color: #fff; font-size: 1.5em; font-weight: 750; }
.promo-cta { display: flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 2.9em; padding: 0 1em; border-radius: 999px; font-size: 0.95em; font-weight: 750;
  color: #10151f; background: linear-gradient(135deg, #f0d7a6, #c9a25e); box-shadow: 0 0.5em 1.4em rgba(201,162,94,0.25); transition: transform .2s, box-shadow .2s; }
.promo-cta span { transition: transform .2s; }
.promo-cta:hover { transform: translateY(-1px); box-shadow: 0 0.75em 1.75em rgba(201,162,94,0.38); }
.promo-cta:hover span { transform: translateX(3px); }
.promo-30 { margin: 0.7em 0 0; text-align: center; font-size: 0.78em; color: var(--muted); }

/* komputer: skala płynna względem szerokości okna (box zawsze wyśrodkowany w oknie) */
@media (min-width: 721px) {
  .promo { width: min(30em, calc(100vw - 4rem)); font-size: clamp(0.95rem, 0.6rem + 0.45vw, 1.35rem); padding: 1.35em 1.25em 1.1em; }
  .promo-text { font-size: 1.6em; }
}

/* cena objęta promocją: złoty kolor zamiast podświetlenia (sygnał bez „plamy” pod tekstem) */
.row-link.has-promo, .hl-price.has-promo, .pp-rows dd.has-promo { color: var(--gold-soft); }

/* podpowiedź przy cenie (dla wszystkich wolnych domów) */
.ptip { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; min-width: 190px; max-width: 270px; padding: 12px 14px; border-radius: 14px;
  background: rgba(12,17,26,0.97); border: 1px solid var(--gold-line); box-shadow: 0 18px 40px rgba(0,0,0,0.55); font-size: 13px; line-height: 1.4; color: var(--muted);
  opacity: 0; transition: opacity .14s ease; }
.ptip.on { opacity: 1; }
.ptip-badge { font-size: 11px; padding: 4px 10px 4px 8px; }
.ptip-row { display: flex; align-items: baseline; gap: 10px; margin: 9px 0 3px; font-variant-numeric: tabular-nums; }
.ptip-row s { font-size: 15px; }
.ptip-row strong { color: #fff; font-size: 21px; font-weight: 750; }
.ptip-save { display: block; color: var(--garden); font-weight: 700; font-size: 13px; }
.ptip-30 { display: block; font-size: 12px; color: var(--muted); }
.ptip-save + .ptip-30, .ptip-row + .ptip-30 { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.plan-tip .ptip-badge { margin-top: 6px; }
.plan-tip .ptip-30 + br { display: none; }
@media (hover: none) { .ptip { display: none; } }

@keyframes promoShine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes promoPulse { 0% { box-shadow: 0 0 0 0 rgba(26,19,5,0.45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(26,19,5,0); } }
@keyframes promoStrike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .promo-badge::after, .ptip-badge::after, .promo-dot { animation: none !important; } .promo-prices s::after, .ptip-row s::after { animation: none !important; } }

/* Stara cena (przekreślona) obok nowej – wzorzec „cena wyprzedażowa”.
   Tylko telefon / ekrany dotykowe; na komputerze tę rolę pełni podpowiedź po najechaniu.
   Zasady: jedna linia bazowa, stara cena mniejsza i wygaszona, linia przekreślenia dokładnie na szerokość tekstu. */
.p-old { display: none; }
@media (hover: none), (max-width: 720px) {
  .p-old { display: inline-block; position: relative; margin-right: 0.5em; color: var(--muted); font-size: 0.8em; font-weight: 500;
    text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .p-old::after { content: ""; position: absolute; left: -1px; right: -1px; top: 52%; height: 1.5px; border-radius: 1px;
    background: var(--sold); transform: scaleX(0); transform-origin: left; }
  .p-old.in::after { animation: promoStrike .5s .1s cubic-bezier(.2,.7,.2,1) both; }

  /* karta obok mapy i hero: obie ceny w jednej linii */
  .pp-rows div { align-items: baseline; }
  .pp-rows dd.has-promo { white-space: nowrap; }
  .hero-facts .p-old { font-size: 0.82em; }

  /* wąskie kolumny (lista „Dostępne teraz”, tabela etapów, plakietka oferty): stara cena nad nową, obie do prawej */
  .hl-price.has-promo { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; line-height: 1.1; }
  .hl-price.has-promo .p-old { margin: 0; font-size: 0.68em; }
  .inv-row .r:has(.p-old) { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; line-height: 1.15; }
  .inv-row .r .p-old { margin: 0; }
  .offer-prices div:has(.p-old) .p-old { display: block; width: fit-content; margin: 2px 0 0; font-size: 15px; }
}
