/* Kalkulator Remontu - standard wizualny archipelagu Dobrego Najmu
   (paleta i charakter jak quiz/audyt/karty mieszkan: ciemna zielen, Montserrat,
   zielone CTA z cieniem, karty opcji z hoverem). Przebudowa 07.07.2026. */

:root {
  --green: #00B050;
  --green-d: #06913f;
  --green-l: #2fd47d;
  --bg1: #143A30;
  --bg2: #05261E;
  --bg3: #03190f;
  --ink: #06251c;
  --txt: #eef6f1;
  --muted: #9cc2b1;
  --line: rgba(255,255,255,.14);
  --card: rgba(255,255,255,.05);
  --card2: rgba(255,255,255,.08);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --err: #ff8b6b;
  --tap-min: 48px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--txt);
  background: linear-gradient(160deg, var(--bg1), var(--bg2) 55%, var(--bg3));
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 16px;
}

/* STICKY TOPBAR z logo - widoczny na kazdym ekranie */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #06251c;
  border-bottom: 1px solid rgba(47,212,125,.35);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.topbar .logo { height: 44px; width: auto; display: block; }
.topbar .tagline { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 680px) {
  .topbar .logo { height: 34px; }
  .topbar .wrap { padding: 11px 20px; }
  .topbar .tagline { display: none; }
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.screen { display: none; animation: fade .35s ease; }
.screen-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* HERO */
.hero { padding: 46px 0 60px; }
.eyebrow {
  display: inline-block;
  background: rgba(0,176,80,.16);
  border: 1px solid rgba(0,176,80,.5);
  color: var(--green-l);
  padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
h1.hero-title {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.08; font-weight: 800; letter-spacing: -.5px; margin-bottom: 18px;
}
h1.hero-title .hl { color: var(--green-l); }
.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 640px; color: #cfe6da; margin-bottom: 26px; font-weight: 400;
}
.hero-bullets { list-style: none; margin: 0 0 30px; }
.hero-bullets li { padding: 8px 0 8px 28px; position: relative; font-size: 15.5px; }
.hero-bullets li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--green-l); font-weight: 800; font-size: 17px;
}
.trust {
  margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.trust .n { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: #fff; }
.trust .l { font-size: 12.5px; color: var(--muted); line-height: 1.3; font-weight: 500; }

/* PRZYCISKI */
.btn-primary, .btn-secondary, .btn-link {
  display: block; width: 100%;
  min-height: var(--tap-min);
  padding: 15px 26px;
  font-size: 16px; font-weight: 800; font-family: inherit;
  border: none; border-radius: 12px; cursor: pointer; text-align: center;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.btn-primary {
  background: var(--green); color: #04150e;
  box-shadow: 0 12px 30px rgba(0,176,80,.4);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--green-l);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,176,80,.55);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: transparent; color: var(--txt);
  border: 2px solid var(--line);
  font-weight: 700;
}
.btn-secondary:hover { border-color: var(--green); color: var(--green-l); background: var(--card2); }
.btn-link {
  background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 600; text-decoration: underline;
  min-height: auto; padding: 8px; width: auto;
}
.btn-link:hover { color: var(--txt); }

/* PROGRESS */
.progress-wrap { margin: 26px 0 8px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.progress-bar { height: 8px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--green-l)); transition: width .35s ease; border-radius: 99px; }

/* PYTANIA */
.form-question { margin: 18px 0 24px; }
.form-question h3 {
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 800; letter-spacing: -.4px; margin-bottom: 8px; color: #fff;
}
.form-question .tooltip { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; font-weight: 400; }
.form-question .microcopy { font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 400; }

.option-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; margin-bottom: 10px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer; min-height: var(--tap-min);
  transition: all .15s;
}
.option-card:hover { border-color: var(--green); background: var(--card2); }
.option-card.selected {
  border-color: var(--green);
  background: rgba(0,176,80,.16);
  box-shadow: 0 6px 20px rgba(0,176,80,.18);
}
.option-card input { flex-shrink: 0; width: 20px; height: 20px; accent-color: var(--green); }
.option-card .option-label { font-weight: 700; font-size: 16px; }
.option-card .option-desc { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 400; }

.input-number {
  width: 100%; padding: 15px 16px;
  font-size: 18px; font-family: inherit; font-weight: 600;
  border: 2px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--txt);
  min-height: var(--tap-min);
  transition: border .15s;
}
.input-number:focus { outline: none; border-color: var(--green); }
select.input-number { appearance: auto; font-weight: 600; }
select.input-number option { color: var(--ink); background: #fff; }

.form-nav { display: flex; gap: 12px; margin: 26px 0 50px; align-items: center; }
.form-nav .btn-primary { flex: 1; }
.form-nav .btn-secondary { flex: 0 0 auto; width: auto; padding: 15px 22px; }

/* GATE */
.gate { max-width: 560px; margin: 0 auto; padding: 12px 0 60px; }
.gate h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -.4px; margin: 14px 0 10px; }
.gate-preview {
  background: linear-gradient(150deg, rgba(0,176,80,.16), rgba(0,176,80,.05));
  border: 1px solid rgba(0,176,80,.4);
  border-radius: 16px; padding: 22px; margin: 18px 0;
  font-size: 16px; font-weight: 700; text-align: center;
  box-shadow: var(--shadow);
}
.gate-preview .preview-amount { font-size: clamp(26px, 5vw, 34px); color: var(--green-l); margin-top: 8px; font-weight: 800; }
.gate-pitch { margin: 22px 0 8px; font-weight: 700; }
.gate-bullets { list-style: none; margin: 0 0 22px; }
.gate-bullets li { padding: 6px 0 6px 24px; position: relative; font-size: 15px; font-weight: 400; }
.gate-bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--green-l); font-weight: 800; }
#gate-form label, .rozmowa-box label {
  display: block; font-weight: 700; font-size: 14px; margin: 12px 0 6px;
}
#gate-form input:not([type="checkbox"]), .rozmowa-box input:not([type="checkbox"]) {
  width: 100%; padding: 15px 16px; font-size: 16px; font-family: inherit;
  border: 2px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--txt);
  min-height: var(--tap-min); transition: border .15s;
}
#gate-form input::placeholder, .rozmowa-box input::placeholder { color: #6e9384; }
#gate-form input:focus, .rozmowa-box input:focus { outline: none; border-color: var(--green); }
.gate-trust { text-align: center; font-size: 12px; color: var(--muted); margin-top: 16px; }

.consent {
  display: flex; gap: 10px; align-items: flex-start; text-align: left;
  font-size: 12.5px; color: var(--muted); margin: 14px 0 18px; font-weight: 400; cursor: pointer;
}
.consent input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--green); }
.consent a { color: var(--green-l); }
.form-err { color: var(--err); font-size: 13px; margin: 10px 0 4px; font-weight: 600; }
.form-err a { color: var(--err); }

/* WYNIK */
.res { padding: 12px 0 60px; }
.res h2 { font-size: clamp(24px, 4.5vw, 34px); font-weight: 800; letter-spacing: -.5px; margin: 14px 0 14px; }
.result-summary {
  background: var(--card); border: 1px solid var(--line);
  padding: 16px 20px; border-radius: 14px; margin-bottom: 22px;
  font-size: 14px; color: var(--muted); line-height: 1.7; font-weight: 400;
}
.result-summary strong { color: var(--txt); }

.scenario-card {
  background: var(--card); border: 2px solid var(--line);
  border-radius: 16px; padding: 20px; margin-bottom: 12px;
  transition: border-color .15s, background .15s;
}
.scenario-card:hover { border-color: rgba(0,176,80,.5); background: var(--card2); }
.scenario-card.highlighted {
  border-color: var(--green);
  background: rgba(0,176,80,.1);
  box-shadow: var(--shadow);
  position: relative;
}
.scenario-card.highlighted::before {
  content: "polecane";
  position: absolute; top: -11px; right: 16px;
  background: var(--green); color: #04150e;
  padding: 2px 14px; border-radius: 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.scenario-card h3 { font-size: 18px; color: var(--green-l); margin-bottom: 6px; font-weight: 800; }
.scenario-card .amount { font-size: clamp(28px, 5vw, 36px); font-weight: 800; color: #fff; margin: 6px 0; }
.scenario-card .breakdown { font-size: 14px; color: var(--muted); font-weight: 400; }
.scenario-card .breakdown strong { color: var(--txt); }

/* KOSZTORYS ONLINE (zamiast PDF) */
.kosztorys {
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 14px; padding: 20px; margin: 22px 0;
}
.kosztorys h3 { font-size: 17px; margin-bottom: 6px; font-weight: 800; color: #fff; }
.kosztorys .note { font-size: 13px; color: var(--muted); margin-bottom: 12px; font-weight: 400; }
.kosztorys .row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px; font-weight: 400;
}
.kosztorys .row:last-child { border-bottom: none; }
.kosztorys .row .kwota { font-weight: 700; color: var(--green-l); white-space: nowrap; }
.kosztorys .row.total { border-top: 2px solid rgba(0,176,80,.5); font-weight: 800; }
.kosztorys .row.total .kwota { color: #fff; }

.result-benchmark {
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  padding: 16px 20px; margin: 22px 0; border-radius: 14px;
}
.result-benchmark h3 { margin: 0 0 8px; font-size: 16px; color: #fff; font-weight: 800; }
.result-benchmark p { margin: 4px 0; font-size: 14px; font-weight: 400; }

.result-unlock {
  background: linear-gradient(150deg, rgba(0,176,80,.16), rgba(0,176,80,.05));
  border: 1px solid rgba(0,176,80,.4);
  border-radius: 16px; padding: 20px; margin: 16px 0;
  font-size: 14.5px; font-weight: 400;
}
.result-unlock .btn-primary { margin-top: 14px; }

.result-cta { margin: 28px 0 16px; }
.result-cta .btn-secondary { margin-bottom: 12px; }

/* ROZMOWA */
.rozmowa-box {
  background: linear-gradient(150deg, rgba(0,176,80,.16), rgba(0,176,80,.05));
  border: 1px solid rgba(0,176,80,.4);
  border-radius: 20px; padding: 26px; margin: 8px 0 24px;
  box-shadow: var(--shadow);
}
.rozmowa-box h3 { font-size: clamp(18px, 3vw, 24px); font-weight: 800; margin-bottom: 8px; color: #fff; }
.rozmowa-box p { color: #cfe6da; font-size: 14.5px; margin-bottom: 8px; font-weight: 400; }
.rozmowa-box .btn-primary { margin-top: 16px; }
.rozmowa-box .rozmowa-punkty { color: var(--green-l); font-weight: 700; font-size: 15px; }
.rozmowa-ok { color: var(--green-l); font-weight: 700; margin-top: 8px; }

/* animowany CTA rozmowy (feedback Macieja: podswietlany, jak na landingach mieszkan) */
@keyframes pulse-glow {
  0%   { box-shadow: 0 12px 30px rgba(0,176,80,.4), 0 0 0 0 rgba(0,176,80,.55); }
  70%  { box-shadow: 0 12px 30px rgba(0,176,80,.4), 0 0 0 16px rgba(0,176,80,0); }
  100% { box-shadow: 0 12px 30px rgba(0,176,80,.4), 0 0 0 0 rgba(0,176,80,0); }
}
.btn-primary.pulse { animation: pulse-glow 2s ease-out infinite; }

/* MOSTY */
.mosty { margin: 26px 0 8px; }
.most-card {
  background: var(--card); border: 2px solid var(--line);
  border-radius: 16px; padding: 20px; margin-bottom: 12px;
  transition: border-color .15s, background .15s, transform .15s;
}
.most-card:hover { border-color: var(--green); background: var(--card2); transform: translateY(-2px); }
.most-card h3 { font-size: 17px; color: #fff; margin-bottom: 6px; font-weight: 800; }
.most-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; font-weight: 400; }
.most-card a.btn-secondary { display: block; text-decoration: none; font-size: 14px; padding: 13px 16px; }

.result-disclaimer { font-size: 12px; color: var(--muted); margin: 16px 0; text-align: center; font-weight: 400; }

/* STOPKA */
.foot {
  text-align: center; color: var(--muted); font-size: 12.5px;
  padding: 26px 0 40px; font-weight: 400;
  border-top: 1px solid var(--line); margin-top: 30px;
}
.foot a { color: var(--green-l); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .foot-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
