/* ============================================================
   Kalkulator Nieruchomości Baseny — kalkulator budowy basenu · design 2026
   ============================================================ */

:root {
  --bg: #F3F6F7;
  --surface: #FFFFFF;
  --surface-2: #FBFCFC;
  --ink: #0B1D28;
  --ink-2: #405864;
  --ink-3: #718894;
  --line: #E2E9EC;
  --line-2: #CFDCE1;
  --aqua: #0CA6C6;
  --aqua-2: #0890B2;
  --aqua-deep: #076A84;
  --aqua-soft: #E4F6FA;
  --aqua-softer: #F1FAFC;
  --deep: #04222E;
  --deep-2: #06303F;
  --sun: #E9A23B;
  --sun-soft: #FCF1DD;
  --ok: #12934F;
  --ok-soft: #E3F5EB;
  --err: #D64545;
  --grad: linear-gradient(135deg, #17C3E0 0%, #0890B2 100%);
  --grad-deep: linear-gradient(160deg, #06303F 0%, #04222E 100%);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(6,35,48,.05), 0 10px 30px -18px rgba(6,35,48,.18);
  --shadow-2: 0 2px 6px rgba(6,35,48,.05), 0 28px 60px -24px rgba(6,35,48,.28);
  --shadow-aqua: 0 6px 20px -6px rgba(12,166,198,.45);
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Sora", var(--font-body);
  --font-serif: "Instrument Serif", Georgia, serif;
  --wrap: 1200px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--aqua-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.015em; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; flex: none; }
.ic use { pointer-events: none; }
:focus-visible { outline: 3px solid rgba(12,166,198,.55); outline-offset: 2px; border-radius: 6px; }

::selection { background: rgba(23,195,224,.28); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-family: var(--font-body); font-size: 16px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, filter .2s;
  white-space: nowrap; user-select: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-aqua); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 10px 26px -6px rgba(12,166,198,.55); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--aqua); color: var(--aqua-deep); background: var(--aqua-softer); }
.btn-glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.16); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(0,0,0,.4); }
.btn-l { font-size: 17px; padding: 16px 30px; }
.btn-s { font-size: 14.5px; padding: 10px 18px; }
.btn-block { width: 100%; }
.btn .ic { width: 1.05em; height: 1.05em; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(4,34,46,.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 4px 12px -4px rgba(34,211,238,.5); }
.brand-name em { font-style: normal; color: #7DD3FC; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: rgba(255,255,255,.78); font-weight: 600; font-size: 15px; padding: 8px 13px; border-radius: 10px; transition: .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.09); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-tel { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 15px; }
.nav-tel .ic { color: #22D3EE; }
.nav-tel:hover { text-decoration: none; color: #7DD3FC; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--grad-deep); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.a1 { width: 640px; height: 640px; left: -180px; top: -220px; background: radial-gradient(circle, rgba(14,165,196,.55), transparent 65%); animation: drift1 16s ease-in-out infinite alternate; }
.a2 { width: 560px; height: 560px; right: -140px; top: 60px; background: radial-gradient(circle, rgba(125,211,252,.35), transparent 65%); animation: drift2 20s ease-in-out infinite alternate; }
.a3 { width: 460px; height: 460px; left: 34%; bottom: -260px; background: radial-gradient(circle, rgba(16,185,129,.22), transparent 65%); animation: drift1 24s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(60px, 40px) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-50px, 50px) scale(1.12); } }
.noise { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-in {
  position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px;
  padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(120px, 12vw, 160px);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #34E39B; box-shadow: 0 0 0 0 rgba(52,227,155,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52,227,155,0); } 100% { box-shadow: 0 0 0 0 rgba(52,227,155,0); } }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.05rem); font-weight: 700; margin-bottom: 22px; }
.hero h1 .serif { color: #7DD3FC; font-size: 1.06em; }
.hero-lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.82); max-width: 54ch; margin-bottom: 34px; }
.hero-lede strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 14.5px; color: rgba(255,255,255,.75); }
.trust-item { display: flex; align-items: center; gap: 9px; }
.trust-item strong { color: #fff; }
.trust-stars { display: inline-flex; gap: 1px; color: #F5C044; }
.trust-stars .ic { width: 15px; height: 15px; fill: currentColor; stroke: none; }

.hero-visual { position: relative; }
.hero-card { position: relative; }
.hero-pool {
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12);
  transform: rotate(1.6deg);
}
.shimmer-a { animation: shimmer 5s ease-in-out infinite alternate; }
.shimmer-b { animation: shimmer 7s ease-in-out infinite alternate-reverse; }
@keyframes shimmer { from { transform: translateX(-8px); } to { transform: translateX(10px); } }
.hero-chip {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  background: rgba(10,45,58,.72); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 12px 18px; border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5);
  animation: float 6s ease-in-out infinite;
}
.chip-k { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.65); letter-spacing: .02em; }
.chip-v { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: #fff; }
.chip-1 { top: -22px; right: 6%; animation-delay: .4s; }
.chip-2 { bottom: 34px; left: -34px; animation-delay: 1.4s; }
.chip-3 { bottom: -26px; right: 10%; animation-delay: 2.3s; }
@keyframes float { 50% { transform: translateY(-9px); } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: clamp(40px, 6vw, 90px); }

/* ============================================================
   SECTION HEADS
   ============================================================ */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--aqua-2); margin-bottom: 14px;
}
.sec-head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 5vw, 60px); }
.sec-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; margin-bottom: 16px; }
.sec-lede { color: var(--ink-2); font-size: clamp(1rem, 1.35vw, 1.12rem); }

/* ============================================================
   KONFIGURATOR
   ============================================================ */
.conf { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.conf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 32px; align-items: start; }
.conf-main { min-width: 0; }

/* ---------- progress ---------- */
.progress { margin-bottom: 26px; }
.progress-top { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.progress-count { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.progress-eta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.progress-reset { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-3); padding: 6px 10px; border-radius: 8px; transition: .2s; }
.progress-reset:hover { color: var(--err); background: #FBEAEA; }
.progress-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 14px; }
.progress-fill { height: 100%; width: 0; border-radius: 99px; background: var(--grad); transition: width .5s cubic-bezier(.4, 0, .2, 1); }
.progress-steps { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.progress-steps li { flex: 1; }
.progress-steps button {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 7px 2px; border-radius: 10px; font-size: 11.5px; font-weight: 700; color: var(--ink-3);
  transition: .2s; letter-spacing: .01em;
}
.progress-steps button:not(:disabled):hover { background: var(--aqua-softer); color: var(--aqua-deep); }
.progress-steps button:disabled { cursor: default; opacity: .45; }
.progress-steps .p-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--line-2); font-size: 12px; color: var(--ink-3);
  transition: .25s;
}
.progress-steps .p-dot .ic { width: 13px; height: 13px; color: #fff; }
.progress-steps li.done .p-dot { background: var(--aqua); border-color: var(--aqua); color: #fff; }
.progress-steps li.done button { color: var(--aqua-deep); }
.progress-steps li.current .p-dot { background: var(--deep); border-color: var(--deep); color: #fff; box-shadow: 0 0 0 4px rgba(12,166,198,.2); }
.progress-steps li.current button { color: var(--ink); }

/* ---------- step card ---------- */
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-1);
  animation: stepIn .45s cubic-bezier(.3, .7, .3, 1);
}
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }
.step-title { font-size: clamp(1.3rem, 2.3vw, 1.65rem); font-weight: 700; margin-bottom: 10px; }
.step-sub { color: var(--ink-2); margin-bottom: 26px; max-width: 68ch; }
.group-title { font-size: 15px; font-weight: 800; letter-spacing: .01em; margin: 30px 0 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.group-title:first-of-type { margin-top: 0; }
.group-hint { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.step-note { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--aqua-deep); background: var(--aqua-softer); border: 1px solid #CEEDF5; padding: 11px 16px; border-radius: 12px; }
.safety-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--ink-2); background: var(--sun-soft); border: 1px solid #F3DFBC; padding: 12px 16px; border-radius: 12px; }
.safety-note .ic { color: var(--sun); margin-top: 2px; }

/* ---------- option cards ---------- */
.opts { display: grid; gap: 14px; }
.opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  text-align: left; background: var(--surface-2); border: 1.5px solid var(--line);
  border-radius: var(--r-m); padding: 18px 18px 16px;
  transition: border-color .2s, box-shadow .25s, transform .18s, background .2s;
}
.opt:hover { border-color: #9ED4E2; transform: translateY(-2px); box-shadow: var(--shadow-1); }
.opt[aria-checked="true"] {
  border-color: var(--aqua); background: linear-gradient(180deg, #F2FBFD 0%, #E9F7FB 100%);
  box-shadow: 0 0 0 1px var(--aqua), 0 10px 24px -12px rgba(12,166,198,.35);
}
.opt[aria-checked="true"]::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--grad);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--grad);
  background-size: 15px, cover; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 4px 10px -2px rgba(12,166,198,.5);
  animation: pop .3s cubic-bezier(.3, 1.6, .5, 1);
}
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.opt.disabled { opacity: .45; cursor: not-allowed; filter: saturate(.4); }
.opt.disabled:hover { transform: none; box-shadow: none; border-color: var(--line); }
.opt-figure { color: var(--aqua-2); margin-bottom: 2px; }
.opt-figure svg { width: 64px; height: 44px; }
.opt-name { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; padding-right: 26px; }
.opt-desc { font-size: 13.8px; color: var(--ink-2); line-height: 1.5; }
.opt-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.opt-meta span { font-size: 11.5px; font-weight: 700; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); padding: 3px 9px; border-radius: 99px; }
.opt-badge {
  position: absolute; top: -10px; left: 14px; z-index: 1;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: var(--sun); color: #4A2E05; padding: 4px 11px; border-radius: 99px;
  box-shadow: 0 4px 10px -3px rgba(233,162,59,.6);
}
.opt-badge.alt { background: var(--deep); color: #7DD3FC; box-shadow: 0 4px 10px -3px rgba(4,34,46,.5); }
.opt-price {
  margin-top: auto; padding-top: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.opt-price:empty { display: none; }
.opt-price .in-base { color: var(--ink-3); font-weight: 600; }
.opt-price .plus { color: var(--aqua-deep); }
.opt-price .minus { color: var(--ok); }

/* swatches */
.swatch { width: 46px; height: 46px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 3px 8px -2px rgba(6,35,48,.25); }
.sw-blue { background: radial-gradient(circle at 30% 25%, #A8E4F2, #2E9EC7 70%); }
.sw-graphite { background: radial-gradient(circle at 30% 25%, #9FB7C1, #4E6B78 70%); }
.sw-sand { background: radial-gradient(circle at 30% 25%, #F0E4C4, #C4A96F 70%); }
.sw-mosaic { background: radial-gradient(circle at 30% 25%, #7FD1E8, #1D7FA8 70%); position: relative; overflow: hidden; }
.sw-mosaic::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px); background-size: 8px 8px; }
.sw-stone { background: radial-gradient(circle at 30% 25%, #C9D2C4, #74897B 70%); position: relative; overflow: hidden; }
.sw-stone::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.3) 1.2px, transparent 1.3px); background-size: 9px 9px; }
.swatch-strip { width: 100%; height: 12px; border-radius: 6px; margin-bottom: 4px; }
.st-paving { background: repeating-linear-gradient(90deg, #C9CFD2 0 14px, #B4BCC0 14px 15px); }
.st-stone { background: repeating-linear-gradient(90deg, #D9CFBE 0 18px, #C4B79F 18px 19px); }
.st-composite { background: repeating-linear-gradient(90deg, #A98F6F 0 6px, #977C5C 6px 12px); }

/* hint */
.hint { margin-top: 22px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); }
.hint summary {
  display: flex; align-items: center; gap: 9px; padding: 13px 18px; cursor: pointer;
  font-weight: 700; font-size: 14.5px; color: var(--ink-2); list-style: none; border-radius: 14px;
}
.hint summary::-webkit-details-marker { display: none; }
.hint summary:hover { color: var(--aqua-deep); }
.hint summary .ic { color: var(--aqua); }
.hint p { padding: 0 18px 16px; font-size: 14.5px; color: var(--ink-2); }
.hint[open] summary { border-bottom: 1px dashed var(--line); }
.hint[open] p { animation: stepIn .3s; padding-top: 12px; }

/* nav in step */
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 30px; }
.btn-final { background: linear-gradient(135deg, #17C3E0, #0B7ED9); }

/* ---------- size step ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.preset {
  position: relative; font-weight: 700; font-size: 14.5px; padding: 10px 18px; border-radius: 999px;
  background: var(--surface-2); border: 1.5px solid var(--line); transition: .2s;
}
.preset:hover { border-color: var(--aqua); color: var(--aqua-deep); }
.preset.active { background: var(--deep); border-color: var(--deep); color: #fff; }
.preset:disabled { opacity: .4; cursor: not-allowed; }
.preset-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--sun); margin-left: 5px; }
.preset.active .preset-tag { color: #F5C044; }

.sliders { display: grid; gap: 22px; max-width: 640px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.slider-head label { font-weight: 700; font-size: 15px; }
.slider-head output { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--aqua-deep); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--aqua) var(--fill, 50%), var(--line) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--aqua); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; margin-top: -9px;
  background: #fff; border: 3px solid var(--aqua); box-shadow: 0 3px 10px -2px rgba(6,35,48,.35);
  transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--aqua); box-shadow: 0 3px 10px -2px rgba(6,35,48,.35); }
.depth-mode { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.depth-label { font-weight: 700; font-size: 15px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.seg-btn { font-weight: 700; font-size: 14px; padding: 8px 18px; border-radius: 999px; color: var(--ink-2); transition: .2s; }
.seg-btn[aria-checked="true"] { background: var(--deep); color: #fff; box-shadow: 0 4px 10px -4px rgba(4,34,46,.5); }
.size-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.size-stat {
  flex: 1; min-width: 140px; background: var(--aqua-softer); border: 1px solid #D6EFF6;
  border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 1px;
}
.ss-v { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--aqua-deep); font-variant-numeric: tabular-nums; }
.ss-k { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }

/* ---------- summary sidebar ---------- */
.conf-side { position: sticky; top: calc(var(--nav-h) + 20px); }
.sum-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.pool-preview { position: relative; background: linear-gradient(170deg, #EAF4F1 0%, #DCEAE4 100%); border-bottom: 1px solid var(--line); }
.pool-preview svg { width: 100%; height: auto; display: block; }
.pv-toggle {
  position: absolute; top: 9px; left: 9px; display: inline-flex; gap: 2px; padding: 3px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 4px 14px -8px rgba(6,35,48,.4);
}
.pv-toggle button {
  font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 4px 11px;
  border-radius: 999px; color: var(--ink-3); transition: .18s;
}
.pv-toggle button:hover { color: var(--aqua-deep); }
.pv-toggle button[aria-pressed="true"] { background: var(--deep); color: #fff; }
.sum-price { padding: 20px 24px 6px; }
.sum-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.sum-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 2.6vw, 2.3rem); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.sum-range { font-size: 14px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sum-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin-top: 18px; }
.sum-stats > div { background: var(--surface); padding: 12px 24px; }
.sum-stats dt { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.sum-stats dd { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.sum-note { padding: 14px 24px 0; font-size: 12.8px; color: var(--ink-3); }
.sum-trust { display: flex; align-items: center; gap: 9px; padding: 12px 24px 18px; font-size: 13px; font-weight: 700; color: var(--aqua-deep); }
.sum-trust .ic { color: var(--aqua); }
.price-flash { animation: priceFlash .5s ease; }
@keyframes priceFlash { 30% { color: var(--aqua-2); transform: scale(1.02); } }

/* ---------- mobile bar & sheet ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.88); backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid var(--line-2); box-shadow: 0 -12px 40px -18px rgba(6,35,48,.35);
}
.mbar-sum { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.mbar-price { font-family: var(--font-head); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.mbar-hint { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--aqua-2); }
.mbar-hint .ic { width: 13px; height: 13px; transition: transform .25s; }
.mbar-sum[aria-expanded="true"] .mbar-hint .ic { transform: rotate(180deg); }
.msheet {
  position: fixed; left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 69;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-2); overflow: hidden;
  animation: sheetIn .3s cubic-bezier(.3, .8, .3, 1);
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(16px); } }
.msheet .sum-stats { border-bottom: 0; }

/* ---------- result ---------- */
.step-result { padding: 0; overflow: hidden; }
.result-hero { background: var(--grad-deep); color: #fff; text-align: center; padding: clamp(36px, 5vw, 56px) 24px; position: relative; }
.result-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 220px at 50% 0%, rgba(23,195,224,.25), transparent 70%); }
.result-hero > * { position: relative; }
.result-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7DD3FC; }
.result-price { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -.025em; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.result-range { font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 600; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.result-note { max-width: 56ch; margin: 16px auto 0; font-size: 14px; color: rgba(255,255,255,.68); }
.result-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.result-chips span { font-size: 13px; font-weight: 700; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 6px 14px; border-radius: 99px; backdrop-filter: blur(4px); }
.result-preview {
  max-width: 460px; margin: 28px auto 0; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.14);
}
.conf-grid.is-result { grid-template-columns: 1fr; }
.conf-grid.is-result .conf-side { display: none; }
.result-cols { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 3vw, 40px); padding: clamp(24px, 3.4vw, 40px); }
.result-detail { min-width: 0; }

.breakdown { display: grid; gap: 10px; }
.bd-group { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.bd-group summary {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 14px;
}
.bd-label { flex: 1; min-width: 0; }
.bd-sum { white-space: nowrap; }
.bd-group summary::-webkit-details-marker { display: none; }
.bd-group summary .ic { color: var(--ink-3); transition: transform .25s; margin-left: auto; }
.bd-group[open] summary .ic { transform: rotate(180deg); }
.bd-sum { margin-left: auto; font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.bd-group summary .bd-sum + .ic { margin-left: 10px; }
.bd-lines { padding: 4px 18px 14px; display: grid; gap: 7px; }
.bd-line { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-2); }
.bd-line b { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bd-line .free { color: var(--ok); font-weight: 700; }

.maint { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.maint-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; }
.maint-item dt { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.maint-item dd { font-family: var(--font-head); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.maint-total { grid-column: 1 / -1; background: var(--ok-soft); border-color: #C8E8D4; display: flex; justify-content: space-between; align-items: center; }
.maint-total dd { font-size: 20px; color: var(--ok); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ============================================================
   INFO SECTIONS
   ============================================================ */
.info { padding: clamp(64px, 8vw, 110px) 0; }
.info-alt { background: linear-gradient(180deg, #EDF3F4 0%, var(--bg) 100%); }

.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cost-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px 26px 24px; box-shadow: var(--shadow-1); transition: transform .25s, box-shadow .25s; }
.cost-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cost-bar { height: 7px; border-radius: 99px; background: var(--line); margin-bottom: 20px; overflow: hidden; }
.cost-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--grad); }
.cost-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 9px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cost-card h3 span { color: var(--aqua-2); font-size: 15px; flex: none; }
.cost-card p { font-size: 14.3px; color: var(--ink-2); }

/* comparison table */
.table-scroll { overflow-x: auto; border-radius: var(--r-l); border: 1px solid var(--line); box-shadow: var(--shadow-1); background: var(--surface); -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14.6px; }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-family: var(--font-head); font-size: 14px; background: var(--deep); color: #fff; position: sticky; top: 0; }
.cmp thead th:first-child { border-radius: 0; }
.cmp tbody th { font-weight: 700; color: var(--ink); background: var(--surface-2); white-space: nowrap; font-size: 14px; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td { color: var(--ink-2); }
.cmp td.best { color: var(--aqua-deep); font-weight: 700; position: relative; }
.cmp td.best::before { content: "★ "; color: var(--sun); }
.table-cta { text-align: center; margin-top: 22px; font-size: 15px; color: var(--ink-2); }

/* timeline */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: tl; position: relative; }
.timeline::before { content: ""; position: absolute; top: 24px; left: 6%; right: 6%; height: 2.5px; background: linear-gradient(90deg, var(--aqua), var(--line-2)); border-radius: 99px; }
.timeline li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 40px 20px 20px; box-shadow: var(--shadow-1); }
.tl-num {
  position: absolute; top: -24px; left: 20px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 18px;
  background: var(--grad); color: #fff; box-shadow: var(--shadow-aqua), 0 0 0 5px var(--bg);
}
.timeline h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.timeline p { font-size: 13.6px; color: var(--ink-2); margin-bottom: 12px; }
.tl-time { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--aqua-2); }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 16px; }
.review-stars { display: flex; gap: 2px; color: #F5C044; }
.review-stars .ic { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.review blockquote { font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.review blockquote::before { content: "„"; font-family: var(--font-serif); font-size: 34px; color: var(--aqua); line-height: 0; vertical-align: -12px; margin-right: 4px; }
.review figcaption { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.review-ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--aqua-soft); color: var(--aqua-deep); font-weight: 800; font-size: 14px; flex: none; }
.review figcaption strong { display: block; font-size: 14.5px; }
.review figcaption span:not(.review-ava) { font-size: 12.8px; color: var(--ink-3); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-1); overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: #B7E0EB; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 19px 24px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--aqua-deep); }
.faq-item summary .ic { color: var(--aqua-2); transition: transform .3s; flex: none; }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item p { padding: 0 24px 22px; color: var(--ink-2); font-size: 15px; max-width: 72ch; animation: stepIn .35s; }

/* CTA band */
.cta-band { background: var(--grad-deep); color: #fff; padding: clamp(48px, 6vw, 80px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -160px; top: -260px; background: radial-gradient(circle, rgba(23,195,224,.3), transparent 65%); filter: blur(50px); }
.cta-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.75); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* footer */
.footer { background: var(--deep); color: rgba(255,255,255,.72); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.foot-brand p { margin-top: 16px; max-width: 34ch; font-size: 14px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer li { display: flex; align-items: center; gap: 9px; }
.footer li .ic { color: var(--aqua); }
.footer a { color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: 9px; }
.footer a:hover { color: #7DD3FC; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.8px; color: rgba(255,255,255,.45); }
.foot-bottom a { color: rgba(255,255,255,.6); }

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90;
  background: var(--deep); color: #fff; font-size: 14px; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow-2);
  animation: toastIn .35s cubic-bezier(.3, .8, .3, 1);
  max-width: min(92vw, 480px); text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .conf-grid { grid-template-columns: 1fr; }
  .conf-side { display: none; }
  .mbar { display: flex; }
  body { padding-bottom: 84px; }
  .result-cols { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 40px 18px; }
  .timeline::before { display: none; }
  .cost-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 60px; padding-bottom: 130px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .chip-2 { left: -8px; }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .opts-2, .opts-3 { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .progress-steps { display: none; }
  .step-nav .btn-primary:not(.btn-final) { display: none; } /* mobile: primary next lives in the bottom bar */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .nav-in { gap: 10px; }
  .nav-cta { gap: 8px; }
  .btn-s { font-size: 13.5px; padding: 9px 14px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .opts-2, .opts-3 { grid-template-columns: 1fr; }
  .opt-figure svg { width: 54px; height: 38px; }
  .nav-tel span { display: none; }
  .hero-actions .btn { width: 100%; }
  .hero-chip { padding: 9px 13px; }
  .chip-k { font-size: 10.5px; }
  .chip-v { font-size: 14px; }
  .chip-1 { right: 0; top: -18px; }
  .chip-2 { left: -4px; bottom: 42px; }
  .chip-3 { right: 0; bottom: 4px; }
  .cost-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .maint { grid-template-columns: 1fr; }
  .cta-in { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .size-stats { flex-direction: column; }
  .step-nav { flex-wrap: wrap; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   PRINT — podsumowanie wyceny
   ============================================================ */
@media print {
  body { background: #fff; padding-bottom: 0; font-size: 12px; }
  .nav, .hero, .info, .cta-band, .footer, .mbar, .msheet, .toast,
  .progress, .result-actions, .conf-side { display: none !important; }
  .conf { padding: 0; }
  .step { display: none !important; box-shadow: none; border: 0; }
  .step-result { display: block !important; }
  .result-hero { background: #fff; color: var(--ink); padding: 10px 0 20px; text-align: left; }
  .result-eyebrow { color: var(--aqua-deep); }
  .result-range, .result-note { color: var(--ink-2); }
  .result-chips span { border: 1px solid #ccc; color: var(--ink); }
  .result-cols { display: block; padding: 0; }
  .bd-group { page-break-inside: avoid; }
  .bd-group summary .ic { display: none; }
  .bd-group:not([open]) .bd-lines { display: grid; }
  .sec-head { display: none; }
}
