/* ============================================================
   Kalkulator remontu — kompletny system wizualny strony
   „przyjazna aplikacja real-estate”: jasne tło, białe karty
   z dużymi promieniami, pastelowy teal→blue, akcenty żółci.
   Niezależny od styles.css / water.css.
   ============================================================ */

:root {
  --bg: #E7E9EF;
  --surface: #FFFFFF;
  --surface-soft: #F4F6FA;
  --ink: #16233B;
  --ink-2: #3D4B63;
  --muted: #6B7686;
  --muted-2: #9AA6B5;
  --line: #DCE1EA;
  --teal: #63C7B8;
  --teal-deep: #2FAE9B;
  --teal-ink: #0E6B5D;
  --teal-soft: #E3F5F0;
  --blue: #4A90D9;
  --blue-soft: #E8F1FB;
  --yellow: #F2C14E;
  --yellow-soft: #FCF3DC;
  --red: #D4574E;
  --grad: linear-gradient(135deg, #63C7B8 0%, #4A90D9 100%);
  --grad-soft: linear-gradient(135deg, #E9F8F4 0%, #E7F1FC 100%);
  --navy-grad: linear-gradient(160deg, #1B2C49 0%, #16233B 60%, #122B3A 100%);
  --r-xl: 32px;
  --r-l: 28px;
  --r-m: 20px;
  --r-s: 14px;
  --shadow: 0 24px 60px -24px rgba(22, 35, 59, .18);
  --shadow-s: 0 10px 30px -14px rgba(22, 35, 59, .16);
  --shadow-xs: 0 4px 14px -6px rgba(22, 35, 59, .14);
  --font-head: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
}

.calculator-related { padding: 48px 0; background: #eef7f4; }
.calculator-related h2 { margin: 0 0 10px; color: var(--ink); font: 800 clamp(24px, 3vw, 36px)/1.15 Sora, sans-serif; }
.calculator-related p { max-width: 760px; margin: 0 0 18px; color: var(--ink-2); }
.calculator-related__links { display: flex; flex-wrap: wrap; gap: 12px; }
.calculator-related__links a { display: inline-flex; min-height: 44px; align-items: center; padding: 11px 16px; border-radius: 12px; color: #fff; background: var(--teal); font-weight: 800; text-decoration: none; }
.calculator-related__links a:hover, .calculator-related__links a:focus-visible { background: var(--teal-ink); outline: 3px solid #63c7b8; outline-offset: 2px; }

/* ---------- baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body.remont-v2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: var(--teal-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
svg { display: inline-block; vertical-align: middle; }
.ic { width: 20px; height: 20px; flex: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 860px; }
[hidden] { display: none !important; }
::selection { background: rgba(99, 199, 184, .35); }

/* ---------- przyciski (pigułki) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--surface); color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 28px -10px rgba(63, 158, 190, .55);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(63, 158, 190, .6); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--surface); color: var(--ink-2); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal-deep); color: var(--teal-ink); transform: translateY(-1px); }
.btn-glass { background: rgba(255, 255, 255, .65); color: var(--ink); border: 1.5px solid rgba(255, 255, 255, .9); backdrop-filter: blur(8px); box-shadow: var(--shadow-xs); }
.btn-glass:hover { background: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); }
.btn-s { padding: 9px 18px; font-size: 13px; }
.btn-l { padding: 15px 30px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-final { box-shadow: 0 14px 34px -10px rgba(47, 174, 155, .6); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(74, 144, 217, .5); outline-offset: 2px;
}

/* ---------- nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 225, 234, .8);
}
.nav-in { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-mark { display: inline-flex; border-radius: 12px; box-shadow: var(--shadow-xs); }
.brand-mark svg { width: 34px; height: 34px; border-radius: 10px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.brand-name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  padding: 8px 13px; border-radius: 999px; text-decoration: none !important;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--surface-soft); color: var(--teal-ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-tel { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13.5px; color: var(--ink); text-decoration: none !important; }
.nav-tel .ic { color: var(--teal-deep); width: 17px; height: 17px; }
.nav-tel:hover { color: var(--teal-ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 84px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.aurora.a1 { width: 520px; height: 520px; top: -180px; right: -120px; background: radial-gradient(circle, #9FE3D6, transparent 65%); }
.aurora.a2 { width: 460px; height: 460px; bottom: -200px; left: -140px; background: radial-gradient(circle, #B7D6F5, transparent 65%); }
.aurora.a3 { width: 300px; height: 300px; top: 30%; left: 38%; background: radial-gradient(circle, #FBE8B8, transparent 65%); opacity: .4; }
.noise { display: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 800; color: var(--ink-2);
  padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-deep); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 174, 155, .5); }
  70% { box-shadow: 0 0 0 9px rgba(47, 174, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 174, 155, 0); }
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.025em; }
.hero h1 .serif {
  font-style: normal; position: relative; white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .serif::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: -6px; height: 8px;
  background: var(--yellow); border-radius: 99px; opacity: .55; transform: rotate(-1deg);
}
.hero-lede { margin-top: 22px; font-size: 16.5px; color: var(--muted); max-width: 540px; }
.hero-lede strong { color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 34px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.trust-item strong { color: var(--ink); font-weight: 800; }
.trust-stars { display: inline-flex; gap: 2px; }
.trust-stars .ic { width: 14px; height: 14px; color: var(--yellow); }

/* karta z rzutem w hero — styl „property card” */
.hero-visual { position: relative; }
.hero-card {
  position: relative; background: var(--surface);
  border-radius: var(--r-xl); box-shadow: var(--shadow);
  padding: 22px;
}
.prop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.prop-id { display: flex; flex-direction: column; }
.prop-title { font-family: var(--font-head); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.prop-sub { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.hero-pool svg { width: 100%; height: auto; display: block; border-radius: 20px; }
.hero-chip {
  position: absolute; display: flex; flex-direction: column; gap: 1px;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-s);
  padding: 12px 18px; animation: floaty 6s ease-in-out infinite;
}
.chip-k { font-size: 11px; font-weight: 700; color: var(--muted); }
.chip-v { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--teal-ink); }
.chip-1 { top: -20px; right: -14px; }
.chip-2 { bottom: 86px; left: -30px; animation-delay: -2s; }
.chip-2 .chip-v { color: var(--blue); }
.chip-3 { bottom: -18px; right: 30px; animation-delay: -4s; }
.chip-3 .chip-v { color: var(--ink); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- pasek kalkulatorów ---------- */
.kalk-band { background: var(--surface); border-block: 1px solid var(--line); }
.kalk-band-in { display: flex; align-items: center; gap: 18px; padding-block: 14px; }
.kalk-band-in > span { flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.kalk-links { display: flex; gap: 8px; overflow-x: auto; padding-block: 2px; scrollbar-width: none; }
.kalk-links::-webkit-scrollbar { display: none; }
.kalk-links a {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  background: var(--surface-soft); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; text-decoration: none !important;
  transition: border-color .15s, color .15s, background .15s;
}
.kalk-links a:hover { border-color: var(--teal-deep); color: var(--teal-ink); }
.kalk-links a .ic { width: 15px; height: 15px; color: var(--muted-2); }
.kalk-links a small { font-weight: 600; color: var(--muted-2); }
.kalk-links a.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.kalk-links a.current .ic { color: var(--teal); }

/* ---------- sekcje ogólne ---------- */
.conf, .info { padding: 88px 0; }
.sec-head { max-width: 700px; margin-bottom: 44px; }
.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--teal-ink); background: var(--teal-soft); border: 1px solid #CBEAE2;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.sec-lede { margin-top: 14px; font-size: 15.5px; color: var(--muted); }

/* ---------- konfigurator: siatka ---------- */
.conf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.conf-grid.is-result { grid-template-columns: minmax(0, 1fr); }
.conf-grid.is-result .conf-side { display: none; }

/* ---------- postęp ---------- */
.progress {
  background: var(--surface); border-radius: var(--r-l);
  box-shadow: var(--shadow-s); padding: 20px 24px 18px; margin-bottom: 22px;
}
.progress-top { display: flex; align-items: center; gap: 14px; margin-bottom: 13px; }
.progress-count { font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.progress-eta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted-2); }
.progress-eta .ic { width: 14px; height: 14px; }
.progress-reset {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; font-size: 12px; font-weight: 800; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; transition: background .15s, color .15s;
}
.progress-reset:hover { background: var(--surface-soft); color: var(--red); }
.progress-reset .ic { width: 14px; height: 14px; }
.progress-bar { height: 8px; border-radius: 99px; background: #E9EDF3; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: var(--grad); width: 17%; transition: width .4s ease; }
.progress-steps { display: flex; gap: 4px; list-style: none; margin: 14px 0 0; padding: 0; }
.progress-steps li { flex: 1; min-width: 0; }
.progress-steps li button {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 4px 2px;
}
.progress-steps li button:disabled { cursor: default; }
.p-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 12.5px;
  background: var(--surface-soft); border: 1.5px solid var(--line); color: var(--muted);
  transition: all .2s;
}
.p-dot .ic { width: 14px; height: 14px; }
.p-lab { font-size: 10.5px; font-weight: 700; color: var(--muted-2); text-align: center; line-height: 1.25; }
.progress-steps li.current .p-dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -6px rgba(63, 158, 190, .55); }
.progress-steps li.current .p-lab { color: var(--ink); }
.progress-steps li.done .p-dot { background: var(--teal-soft); border-color: #CBEAE2; color: var(--teal-ink); }
.progress-steps li.done .p-lab { color: var(--teal-ink); }
.progress-steps li.done button:hover .p-dot { border-color: var(--teal-deep); }

/* ---------- kroki ---------- */
.step {
  background: var(--surface); border-radius: var(--r-l);
  box-shadow: var(--shadow); padding: clamp(24px, 4vw, 42px);
}
.step-title { font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; letter-spacing: -.02em; }
.step-sub { margin-top: 9px; font-size: 14.5px; color: var(--muted); max-width: 560px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.step-note {
  margin-top: 18px; padding: 13px 18px; border-radius: var(--r-s);
  background: var(--yellow-soft); border: 1px solid #F0DFAE;
  font-size: 13.5px; color: #7A5E14;
}
.step-note strong { color: #5F4A0E; }

.group-title { font-size: 15.5px; font-weight: 800; margin: 30px 0 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.step > .group-title:first-of-type { margin-top: 26px; }
.group-hint { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--muted-2); }

/* ---------- karty opcji ---------- */
.opts { display: grid; gap: 14px; margin-top: 18px; }
.opts-2 { grid-template-columns: repeat(2, 1fr); }
.opts-3 { grid-template-columns: repeat(3, 1fr); }
.opt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  text-align: left; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-m);
  padding: 18px 18px 16px;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.opt:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.opt[aria-checked="true"] {
  border: 2px solid transparent;
  background: linear-gradient(#F3FBF8, #F3FBF8) padding-box, var(--grad) border-box;
  box-shadow: 0 14px 30px -14px rgba(47, 174, 155, .45);
}
.opt.disabled { opacity: .45; cursor: not-allowed; }
.opt.disabled:hover { transform: none; box-shadow: none; border-color: var(--line); }
.opt-badge {
  position: absolute; top: -10px; right: 14px;
  font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: var(--yellow); color: #5F4A0E;
  padding: 4px 11px; border-radius: 999px; box-shadow: var(--shadow-xs);
}
.opt-badge.alt { background: var(--teal-soft); color: var(--teal-ink); box-shadow: none; border: 1px solid #CBEAE2; }
.opt-figure { color: #93A1B3; transition: color .18s; }
.opt-figure svg { width: 72px; height: 48px; }
.opt[aria-checked="true"] .opt-figure { color: var(--teal-deep); }
.opt-name { font-family: var(--font-head); font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; color: var(--ink); }
.opt-desc { font-size: 12.8px; line-height: 1.5; color: var(--muted); }
.opt-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-meta span {
  font-size: 11px; font-weight: 700; color: var(--ink-2);
  background: var(--surface-soft); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px;
}
.opt-stat { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: var(--teal-ink); }
.opt-stat i { flex: none; width: 54px; height: 5px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.opt-stat i::after { content: ""; position: absolute; inset: 0; width: var(--w, 50%); border-radius: 99px; background: var(--grad); }
.opt-price { margin-top: auto; padding-top: 8px; font-size: 12.5px; font-weight: 700; }
.opt-price .plus { color: var(--teal-ink); font-weight: 800; }
.opt-price .minus { color: var(--muted); }
.opt-price .in-base { font-size: 11px; font-weight: 700; color: var(--muted-2); background: var(--surface-soft); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.opt-price:empty { display: none; }
.opt-range { margin-top: auto; padding-top: 10px; font-family: var(--font-head); font-weight: 600; font-size: 12.5px; color: var(--muted); display: flex; align-items: baseline; gap: 5px; }
.opt-range b { font-weight: 800; font-size: 15px; color: var(--teal-ink); }
.opt-range:empty { display: none; }

/* ---------- segment (liczba łazienek) ---------- */
.depth-mode { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.depth-label { font-family: var(--font-head); font-weight: 800; font-size: 14px; }
.seg { display: inline-flex; gap: 4px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg-btn { border: 0; background: none; font-weight: 800; font-size: 12.5px; color: var(--muted); padding: 8px 16px; border-radius: 999px; transition: all .18s; }
.seg-btn[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: var(--shadow-xs); }

/* ---------- presety i suwaki ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 10px; }
.preset {
  border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 800; font-size: 12.5px; color: var(--ink-2);
  padding: 9px 17px; border-radius: 999px; transition: all .18s;
}
.preset:hover { border-color: var(--teal); transform: translateY(-1px); }
.preset.active {
  border: 2px solid transparent;
  background: linear-gradient(#F3FBF8, #F3FBF8) padding-box, var(--grad) border-box;
  color: var(--teal-ink);
}
.sliders { display: grid; gap: 18px; margin-top: 22px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.slider-head label { font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.slider-head output { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--teal-ink); }
input[type="range"] {
  --fill: 50%;
  width: 100%; height: 8px; -webkit-appearance: none; appearance: none;
  background: linear-gradient(90deg, var(--teal-deep) var(--fill), #E4E9F0 var(--fill));
  border-radius: 99px; outline-offset: 4px; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal-deep);
  box-shadow: 0 4px 12px -2px rgba(22, 35, 59, .3); transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal-deep);
  box-shadow: 0 4px 12px -2px rgba(22, 35, 59, .3);
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: #E4E9F0; }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--teal-deep); }

/* ---------- statystyki w krokach ---------- */
.size-stats, .rain-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.size-stat, .rain-stat {
  background: var(--surface-soft); border: 1px solid var(--line);
  border-radius: var(--r-s); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.ss-v { font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.ss-k { font-size: 11.5px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.rain-stat.reno { background: var(--teal-soft); border-color: #CBEAE2; }
.rain-stat.reno .ss-v { color: var(--teal-ink); }
.rain-stat.warm { background: var(--yellow-soft); border-color: #F0DFAE; }
.rain-stat.warm .ss-v { color: #8A6A14; }
.rain-stat.good { background: var(--blue-soft); border-color: #C9DDF5; }
.rain-stat.good .ss-v { color: #1F5C9E; }

/* ---------- rozwijane podpowiedzi ---------- */
.hint { margin-top: 22px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--r-s); }
.hint summary {
  display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none;
  font-weight: 800; font-size: 13.5px; color: var(--ink-2); padding: 13px 16px;
}
.hint summary::-webkit-details-marker { display: none; }
.hint summary .ic { width: 17px; height: 17px; color: var(--blue); }
.hint p { padding: 0 16px 14px 42px; font-size: 13.5px; color: var(--muted); }
.hint a { font-weight: 700; }

/* ---------- wynik ---------- */
.result-hero {
  position: relative; border-radius: var(--r-l);
  background: var(--navy-grad); color: #fff;
  padding: clamp(26px, 4vw, 40px); overflow: hidden;
}
.result-hero::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  top: -220px; right: -140px; filter: blur(70px); opacity: .5;
  background: radial-gradient(circle, rgba(99, 199, 184, .8), transparent 65%);
  pointer-events: none;
}
.result-eyebrow {
  position: relative; display: inline-block; font-size: 11.5px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: var(--teal);
  background: rgba(99, 199, 184, .14); border: 1px solid rgba(99, 199, 184, .35);
  padding: 6px 14px; border-radius: 999px;
}
.result-price { position: relative; font-family: var(--font-head); font-weight: 800; font-size: clamp(38px, 6vw, 56px); letter-spacing: -.03em; margin-top: 16px; }
.result-range { position: relative; font-size: 14.5px; font-weight: 700; color: rgba(255, 255, 255, .75); margin-top: 4px; }
.result-note { position: relative; font-size: 12px; color: rgba(255, 255, 255, .55); margin-top: 12px; max-width: 560px; }
.result-chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.result-chips span {
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  padding: 6px 13px; border-radius: 999px; backdrop-filter: blur(4px);
}
.result-preview { position: relative; margin-top: 22px; border-radius: var(--r-m); overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5); }

.result-cols { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 26px; align-items: start; }

/* banery cross-sell */
.grant-banner, .cross-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border-radius: var(--r-m); padding: 18px 20px;
}
.grant-banner { background: var(--blue-soft); border: 1px solid #C9DDF5; }
.cross-banner { background: var(--yellow-soft); border: 1px solid #F0DFAE; }
.grant-icon {
  flex: none; width: 46px; height: 46px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; box-shadow: var(--shadow-xs); color: var(--blue);
}
.cross-banner .grant-icon { color: #B8860B; }
.grant-copy { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 3px; }
.grant-copy strong { font-family: var(--font-head); font-size: 14.5px; color: var(--ink); }
.grant-copy span { font-size: 12.8px; color: var(--muted); }
.grant-banner .btn, .cross-banner .btn { background: var(--ink); color: #fff; padding: 10px 18px; font-size: 12.5px; }
.grant-banner .btn:hover, .cross-banner .btn:hover { background: var(--teal-deep); }

/* koszt w liczbach */
.roi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.roi-card { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; }
.roi-card.reno { background: var(--teal-soft); border-color: #CBEAE2; }
.roi-card.reno .roi-v { color: var(--teal-ink); }
.roi-card.aqua { background: var(--blue-soft); border-color: #C9DDF5; }
.roi-card.aqua .roi-v { color: #1F5C9E; }
.roi-v { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.roi-k { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.roi-foot { grid-column: 1 / -1; font-size: 12.8px; color: var(--muted); line-height: 1.6; padding: 4px 6px 0; }
.roi-foot strong { color: var(--ink-2); }

/* harmonogram — paski faz */
.bal-row { margin-bottom: 14px; }
.bal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; margin-bottom: 6px; }
.bal-head span { font-weight: 700; color: var(--ink-2); }
.bal-head b { font-family: var(--font-head); font-weight: 800; color: var(--ink); white-space: nowrap; }
.bal-bar { height: 12px; border-radius: 99px; background: #E9EDF3; overflow: hidden; }
.bal-bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: 99px; background: var(--grad); transition: width .6s ease; }
.phase-bar.demo i { background: linear-gradient(90deg, #A8B6C6, #7E8FA3); }
.phase-bar.inst i { background: linear-gradient(90deg, #7FB5E8, #4A90D9); }
.phase-bar.fin i { background: var(--grad); }
.phase-bar.mont i { background: linear-gradient(90deg, #F5D383, #F2C14E); }
.bal-note { font-size: 12.8px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.bal-note strong { color: var(--ink-2); }

/* rozbicie kosztów */
.breakdown { display: flex; flex-direction: column; gap: 10px; }
.bd-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.bd-group summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  padding: 15px 18px; transition: background .15s;
}
.bd-group summary:hover { background: var(--surface-soft); }
.bd-group summary::-webkit-details-marker { display: none; }
.bd-label { font-family: var(--font-head); font-weight: 800; font-size: 14px; }
.bd-sum { margin-left: auto; font-family: var(--font-head); font-weight: 800; font-size: 14.5px; color: var(--teal-ink); }
.bd-group summary .ic { width: 17px; height: 17px; color: var(--muted-2); transition: transform .2s; }
.bd-group[open] summary .ic { transform: rotate(180deg); }
.bd-lines { padding: 4px 18px 14px; display: flex; flex-direction: column; gap: 7px; }
.bd-line { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; color: var(--muted); }
.bd-line b { font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.bd-line b.free { color: var(--teal-deep); font-weight: 700; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- formularz lead ---------- */
.lead-card {
  background: var(--surface); border-radius: var(--r-l);
  box-shadow: var(--shadow-s); border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 30px);
  position: sticky; top: 88px;
}
.lead-head h4 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.lead-head p { margin-top: 7px; font-size: 13.5px; color: var(--muted); }
#leadForm { margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label, .field .label { font-weight: 800; font-size: 12.5px; color: var(--ink-2); }
.field label small { font-weight: 600; color: var(--muted-2); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  background: var(--surface-soft); border: 1.5px solid transparent; border-radius: var(--r-s);
  padding: 12px 15px; outline: none; resize: vertical;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--teal-deep); box-shadow: 0 0 0 4px rgba(47, 174, 155, .15); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); background: #FDF6F5; }
.field-err { display: none; font-size: 11.5px; font-weight: 700; color: var(--red); }
.field.invalid .field-err, .field-err.show { display: block; }
#fHoney { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chips { display: flex; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 800; font-size: 12.5px; color: var(--ink-2);
  padding: 8px 18px; border-radius: 999px; transition: all .18s;
}
.chip:hover { border-color: var(--teal); }
.chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.5; margin: 4px 0 10px; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--teal-deep); }
.lead-foot { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; font-size: 11.5px; font-weight: 700; color: var(--muted-2); }
.lead-foot .ic { width: 15px; height: 15px; color: var(--teal-deep); }
.lead-success { text-align: center; padding: 20px 6px; }
.success-check svg { width: 72px; height: 72px; }
.success-check circle { stroke: var(--teal-deep); stroke-width: 3; }
.success-check path { stroke: var(--teal-deep); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.lead-success h4 { font-size: 22px; font-weight: 800; margin-top: 14px; }
.lead-success p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.success-sub { font-weight: 700; color: var(--ink-2) !important; }
.lead-success .btn { margin-top: 18px; }

/* ---------- sticky podsumowanie ---------- */
.conf-side { position: sticky; top: 88px; }
.sum-card {
  background: var(--surface); border-radius: var(--r-l);
  box-shadow: var(--shadow); overflow: hidden;
}
.plan-preview { background: linear-gradient(170deg, #F6FAF9 0%, #EDF3F8 100%); border-bottom: 1px solid var(--line); }
.plan-preview svg { width: 100%; height: auto; display: block; animation: planFade .28s ease; }
@keyframes planFade { from { opacity: .45; } }
.plan-preview [data-room] { cursor: pointer; }
.plan-preview [data-room] .room-frame { transition: stroke .18s ease, stroke-width .18s ease; }
.plan-preview [data-room]:hover .room-frame { stroke: var(--teal-deep); stroke-width: 2.4; }
.result-preview .plan-preview { border-bottom: 0; }
.sum-price { padding: 22px 24px 6px; }
.sum-label { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); }
.sum-value { font-family: var(--font-head); font-weight: 800; font-size: 34px; letter-spacing: -.03em; margin-top: 4px; }
.sum-range { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.price-flash { animation: priceFlash .55s ease; }
@keyframes priceFlash { 0% { color: var(--teal-deep); transform: scale(1.03); } 100% { transform: scale(1); } }
.sum-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 24px 4px; margin: 0; }
.sum-stats > div { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 14px; }
.sum-stats dt { font-size: 11px; font-weight: 700; color: var(--muted); }
.sum-stats dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 800; font-size: 14.5px; color: var(--ink); }
.reno-mini {
  display: flex; align-items: center; gap: 9px; margin: 14px 24px 0;
  background: var(--teal-soft); border: 1px solid #CBEAE2; color: var(--teal-ink);
  font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 12px;
}
.reno-mini .ic { color: var(--teal-deep); flex: none; width: 17px; height: 17px; }
.sum-note { font-size: 11.5px; color: var(--muted-2); padding: 14px 24px 0; line-height: 1.55; }
.sum-trust {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 13px 24px; background: var(--surface-soft); border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--ink-2);
}
.sum-trust .ic { width: 16px; height: 16px; color: var(--teal-deep); }

/* ---------- mobilny pasek + sheet ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.mbar-sum { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; background: none; border: 0; padding: 4px 6px; }
.mbar-price { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--ink); }
.mbar-hint { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted-2); }
.mbar-hint .ic { width: 13px; height: 13px; transition: transform .2s; }
.mbar-sum[aria-expanded="true"] .mbar-hint .ic { transform: rotate(180deg); }
.msheet {
  position: fixed; left: 10px; right: 10px; bottom: 74px; z-index: 69;
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow);
  overflow: hidden; border: 1px solid var(--line);
}
.msheet .sum-stats { padding: 16px 18px 18px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 100; max-width: min(480px, calc(100vw - 40px));
  background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 700; line-height: 1.45;
  padding: 13px 20px; border-radius: 999px; box-shadow: var(--shadow);
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- sekcja: zakresy i ceny ---------- */
.cost-grid { display: grid; gap: 18px; }
.cost-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.cost-card {
  background: var(--surface); border-radius: var(--r-l);
  box-shadow: var(--shadow-s); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, box-shadow .2s;
}
.cost-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cost-bar { height: 8px; border-radius: 99px; background: #E9EDF3; overflow: hidden; }
.cost-bar i { display: block; height: 100%; width: var(--w, 50%); border-radius: 99px; background: var(--grad); }
.cost-tag {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--teal-ink); background: var(--teal-soft); border: 1px solid #CBEAE2;
  padding: 4px 11px; border-radius: 999px;
}
.cost-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; display: flex; flex-direction: column; gap: 2px; }
.cost-card h3 span { font-size: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cost-card p { font-size: 13.2px; color: var(--muted); line-height: 1.6; }
.table-cta { margin-top: 26px; text-align: center; font-size: 14px; color: var(--muted); }
.table-cta a { font-weight: 800; }

/* ---------- tabela pokój po pokoju ---------- */
.table-scroll { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-s); overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 760px; }
.cmp th, .cmp td { text-align: left; padding: 15px 18px; font-size: 13.2px; }
.cmp thead th {
  font-family: var(--font-head); font-size: 11px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  background: var(--surface-soft); border-bottom: 1px solid var(--line);
}
.cmp thead th:first-child { border-radius: var(--r-l) 0 0 0; }
.cmp thead th:last-child { border-radius: 0 var(--r-l) 0 0; }
.cmp tbody tr + tr th, .cmp tbody tr + tr td { border-top: 1px solid var(--line); }
.cmp tbody th { font-family: var(--font-head); font-weight: 800; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.cmp td { color: var(--muted); line-height: 1.5; }
.cmp td.best { color: var(--teal-ink); font-weight: 800; }
.cmp tbody tr { transition: background .12s; }
.cmp tbody tr:hover { background: #FAFCFC; }

/* ---------- proces / timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: tl; }
.timeline li {
  position: relative; background: var(--surface); border-radius: var(--r-m);
  box-shadow: var(--shadow-s); padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 9px;
  transition: transform .2s, box-shadow .2s;
}
.timeline li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tl-num {
  width: 38px; height: 38px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 16px; color: #fff;
  background: var(--grad); box-shadow: 0 8px 18px -6px rgba(63, 158, 190, .5);
}
.timeline h3 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.timeline p { font-size: 12.6px; color: var(--muted); line-height: 1.55; flex: 1; }
.tl-time {
  align-self: flex-start; font-size: 11px; font-weight: 800;
  color: #8A6A14; background: var(--yellow-soft); border: 1px solid #F0DFAE;
  padding: 3px 11px; border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-xs); overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: -.01em;
  padding: 18px 22px; transition: color .15s;
}
.faq-item summary:hover { color: var(--teal-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { width: 18px; height: 18px; color: var(--muted-2); transition: transform .2s; flex: none; }
.faq-item[open] summary .ic { transform: rotate(180deg); color: var(--teal-deep); }
.faq-item p { padding: 0 22px 18px; font-size: 14px; color: var(--muted); line-height: 1.65; }
.faq-item p strong { color: var(--ink-2); }
.faq-item a { font-weight: 700; }

/* ---------- CTA ---------- */
.cta-band { padding: 20px 0 88px; }
.cta-in {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background: var(--navy-grad); border-radius: var(--r-xl);
  padding: clamp(30px, 5vw, 54px) clamp(26px, 5vw, 60px);
  box-shadow: var(--shadow);
}
.cta-in::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  bottom: -220px; left: -120px; filter: blur(70px); opacity: .45;
  background: radial-gradient(circle, rgba(74, 144, 217, .9), transparent 65%);
  pointer-events: none;
}
.cta-in h2 { position: relative; color: #fff; font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.cta-in p { position: relative; color: rgba(255, 255, 255, .72); font-size: 15px; margin-top: 10px; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; box-shadow: none; }
.cta-band .btn-glass:hover { background: rgba(255, 255, 255, .18); }

/* ---------- stopka ---------- */
.footer { background: #101B2E; color: rgba(255, 255, 255, .68); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; padding-top: 64px; padding-bottom: 44px; }
.foot-brand p { margin-top: 16px; font-size: 13px; line-height: 1.65; max-width: 300px; }
.footer .brand-name { color: #fff; }
.footer h4 { color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer li { font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.footer a { color: rgba(255, 255, 255, .68); text-decoration: none !important; display: inline-flex; align-items: center; gap: 8px; transition: color .15s; }
.footer a:hover { color: var(--teal); }
.footer .ic { width: 15px; height: 15px; color: var(--teal); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 11.5px; color: rgba(255, 255, 255, .45); line-height: 1.6;
}
.foot-bottom a { color: rgba(255, 255, 255, .7); font-weight: 700; text-decoration: none !important; }
.foot-bottom a:hover { color: var(--teal); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsywność ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .conf-grid { grid-template-columns: 1fr; }
  .conf-side { position: static; max-width: 560px; }
  .result-cols { grid-template-columns: 1fr; }
  .lead-card { position: static; }
  .cost-grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .mbar { display: flex; }
  body.remont-v2 { padding-bottom: 68px; }
  .footer { margin-bottom: -68px; padding-bottom: 68px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .opts-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero h1 .serif { white-space: normal; }
  .hero h1 .serif::after { display: none; }
  .conf, .info { padding: 60px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-chip { position: static; animation: none; margin-top: 10px; box-shadow: var(--shadow-xs); border: 1px solid var(--line); }
  .hero-card { padding: 16px; }
  .hero-visual { display: flex; flex-direction: column; }
  .opts-2, .opts-3 { grid-template-columns: 1fr; }
  .size-stats, .rain-stats { grid-template-columns: 1fr; }
  .roi-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .progress-steps .p-lab { display: none; }
  .progress { padding: 16px 18px 14px; }
  .step-nav { flex-direction: column-reverse; }
  .step-nav .btn { width: 100%; }
  .step-nav span { display: none; }
  .cost-grid.g4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .cta-in { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-tel span { display: none; }
  .result-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .nav-in { gap: 12px; }
  .nav-tel { display: none; }
  .nav-cta .btn { padding: 8px 15px; font-size: 12px; }
  .hero h1 { font-size: 30px; }
}

/* ---------- ograniczenie ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-chip { animation: none; }
  .dot-live { animation: none; }
}

/* ---------- druk ---------- */
@media print {
  body.remont-v2 { background: #fff; padding-bottom: 0; font-size: 12px; }
  .nav, .hero, .kalk-band, .progress, .conf-side, .mbar, .msheet, .toast,
  .step-nav, .result-actions, .lead-card, .info, .cta-band, .footer, .hero-bg { display: none !important; }
  .conf, .info { padding: 0; }
  .conf-grid { grid-template-columns: 1fr; }
  .step { box-shadow: none; border: 0; padding: 0; }
  .result-hero { background: #fff; color: var(--ink); border: 1px solid #ccc; }
  .result-hero::before { display: none; }
  .result-price, .result-eyebrow { color: var(--ink); }
  .result-range, .result-note { color: var(--muted); }
  .result-chips span { color: var(--ink); background: #fff; border-color: #ccc; }
  .result-cols { grid-template-columns: 1fr; }
  .roi-card, .bd-group, .bal-bar { border: 1px solid #ccc; box-shadow: none; }
  .bd-group { break-inside: avoid; }
  .grant-banner, .cross-banner { display: none; }
  a { color: var(--ink); text-decoration: none; }
}

/* ============================================================
   EDYTOR RZUTU — „Dopasuj rzut”: uchwyty ścian + popover opisu
   ============================================================ */
.plan-preview { position: relative; }
.plan-svg svg { width: 100%; height: auto; display: block; }
.plan-chrome { display: contents; }

.plan-edit-btn {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.94);
  backdrop-filter: blur(4px);
  font: 700 12px Manrope, sans-serif; color: var(--ink);
  cursor: pointer; box-shadow: 0 6px 16px -8px rgba(22,35,59,.35);
  transition: background .15s, color .15s, transform .15s, border-color .15s;
}
.plan-edit-btn .ic { width: 14px; height: 14px; }
.plan-edit-btn:hover { transform: translateY(-1px); border-color: var(--teal-deep); color: var(--teal-ink); }
.plan-edit-btn .t-done { display: none; }
.plan-edit-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan-edit-btn[aria-pressed="true"] .t-edit { display: none; }
.plan-edit-btn[aria-pressed="true"] .t-done { display: inline; }

.plan-reset-btn {
  position: absolute; top: 48px; right: 10px; z-index: 5;
  padding: 6px 11px; border-radius: 999px;
  border: 1px dashed var(--teal-deep); background: rgba(255,255,255,.94);
  font: 700 11px Manrope, sans-serif; color: var(--teal-ink);
  cursor: pointer;
}
.plan-reset-btn:hover { background: var(--teal-soft); }

/* uchwyty ścian (tryb edycji) */
.wall-handle { cursor: grab; touch-action: none; }
.wall-handle.wv { cursor: col-resize; }
.wall-handle.wh { cursor: row-resize; }
.wall-handle .wh-line { stroke: var(--teal-deep); stroke-width: 2.2; stroke-dasharray: 6 5; stroke-linecap: round; opacity: .85; }
.wall-handle .wh-grip > circle { fill: var(--teal-deep); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 2px 4px rgba(22,35,59,.35)); }
.wall-handle:hover .wh-grip > circle { fill: var(--teal-ink); }
.wall-handle:hover .wh-line { opacity: 1; stroke-width: 3; }

/* popover „oznacz co jest czym” */
.plan-pop { position: absolute; z-index: 8; transform: translate(-50%, -50%); width: 236px; }
.plan-pop-card {
  background: #fff; border: 1px solid #E4E9F1; border-radius: 18px;
  box-shadow: 0 22px 50px -16px rgba(22,35,59,.4);
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.plan-pop-name {
  width: 100%; box-sizing: border-box;
  padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 11px;
  font: 800 13px Manrope, sans-serif; color: var(--ink); background: #fff;
}
.plan-pop-name:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 3px var(--teal-soft); }
.plan-pop-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.plan-pop-types button {
  padding: 6px 3px; border-radius: 9px; border: 1px solid var(--line);
  background: #F5F7FA; color: var(--ink-2);
  font: 700 10.5px Manrope, sans-serif; cursor: pointer; line-height: 1.15;
}
.plan-pop-types button:hover { border-color: var(--teal-deep); color: var(--teal-ink); }
.plan-pop-types button[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal-deep); color: var(--teal-ink); }
.plan-pop-on { display: flex; align-items: center; gap: 8px; font: 700 12.5px Manrope, sans-serif; color: var(--ink); cursor: pointer; }
.plan-pop-on input { width: 17px; height: 17px; accent-color: var(--teal-deep); cursor: pointer; }
.plan-pop-done {
  padding: 9px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font: 800 12.5px Manrope, sans-serif; cursor: pointer;
}
.plan-pop-done:hover { background: var(--teal-ink); }

@media (max-width: 640px) {
  .plan-edit-btn { top: 8px; right: 8px; padding: 6px 10px; font-size: 11px; }
  .plan-reset-btn { top: 42px; right: 8px; }
  .plan-pop { width: 212px; }
}

@media print {
  .plan-edit-btn, .plan-reset-btn, .plan-pop, .wall-handles { display: none !important; }
}
