:root {
  --bg: #f6f8fb;
  --ink: #14202b;
  --muted: #5c6b78;
  --brand: #0e8a7b;       /* morska zieleń – kojarzy się z czystością */
  --brand-dark: #0a6a5e;
  --brand-soft: #e4f4f1;
  --accent: #ffb020;
  --white: #ffffff;
  --line: #e4e9ef;
  --shadow: 0 18px 50px -20px rgba(14, 138, 123, .35);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1140px, 92vw); margin: 0 auto; }

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -16px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.logo strong { font-weight: 800; }
.logo-mark { color: var(--brand); font-size: 1.3em; vertical-align: -.05em; }
.logo--light, .logo--light .logo-mark { color: #fff; }
.nav { margin-left: auto; display: flex; gap: 26px; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav a:hover { color: var(--brand); }
.nav-cta { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: .98rem;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -12px rgba(14, 138, 123, .8); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { background: var(--brand-soft); color: var(--brand-dark); }
.btn-ghost:hover { background: #d4ece8; }
.btn-outline { background: #fff; color: var(--brand-dark); border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-link { background: none; color: var(--brand-dark); padding: 12px 8px; }
.btn-link:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; background: var(--brand-soft); }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 42%, rgba(228,244,241,.5) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-text { max-width: 720px; }
.badge-pill {
  display: inline-block; background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 700; font-size: .85rem; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.03em;
  font-weight: 800; margin-bottom: 22px;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 620px; margin-bottom: 22px; }
.hero-cta-text {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; color: var(--ink);
  margin-bottom: 26px; max-width: 560px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.trust-row { display: flex; gap: 38px; flex-wrap: wrap; }
.trust { display: flex; flex-direction: column; }
.trust strong { font-size: 1.7rem; font-weight: 800; color: var(--brand); line-height: 1; }
.trust span { color: var(--muted); font-size: .9rem; }

/* ---------- Method ---------- */
.method { padding: 84px 0; }
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em;
  text-align: center; margin-bottom: 46px;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-ico {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.6rem;
  background: var(--brand-soft); border-radius: 14px; margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* ---------- Calculator ---------- */
.calc-section { padding: 40px 0 96px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; color: var(--brand-dark); font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: 12px;
}
.calc-intro h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.calc-intro p { color: var(--muted); margin-bottom: 22px; }
.price-hint { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price-hint li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; color: var(--muted);
}
.price-hint b { color: var(--ink); }

.calc-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 34px; box-shadow: var(--shadow);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label, .field .label { font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.field input {
  font-family: inherit; font-size: 1rem; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfe; transition: border .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: #fff; }
.field input.invalid { border-color: #e2574c; box-shadow: 0 0 0 4px #fdecea; }

.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; }
.radio span {
  display: flex; flex-direction: column; gap: 2px; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fbfcfe; font-weight: 700; transition: all .18s;
}
.radio span small { font-weight: 500; color: var(--muted); font-size: .82rem; }
.radio input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

.live-preview {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, var(--brand-soft), #f0faf8);
  border: 1px dashed var(--brand); border-radius: 14px; padding: 14px 20px; margin: 6px 0 20px;
}
.live-preview span { color: var(--brand-dark); font-weight: 600; }
.live-preview strong { font-size: 1.4rem; font-weight: 800; color: var(--brand-dark); }
.form-note { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #10242a; color: #cdd9dd; padding: 56px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-tagline { color: #91a4ab; margin-top: 12px; max-width: 360px; }
.footer-contact p { margin-bottom: 6px; }
.footer-contact span { color: #91a4ab; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; color: #9fb2b8; font-size: .85rem; }

/* ---------- Strona wyniku ---------- */
.page-result { background: radial-gradient(1200px 600px at 50% -10%, var(--brand-soft), var(--bg)); }
.result-wrap { padding: 60px 0 90px; }
.result-card {
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow); max-width: 680px; margin: 0 auto; padding: 46px 44px; text-align: center;
}
.result-eyebrow { display: inline-block; color: var(--brand-dark); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; margin-bottom: 22px; }
.result-lead { font-size: 1.1rem; color: var(--muted); }
.result-price { font-size: clamp(2.6rem, 8vw, 4rem); font-weight: 800; color: var(--brand); letter-spacing: -.03em; line-height: 1.1; margin: 8px 0; }
.result-meta { color: var(--muted); margin-bottom: 30px; }
.result-upsell {
  display: flex; align-items: center; gap: 18px; text-align: left;
  background: #fff8e9; border: 1px solid #ffe2a8; border-radius: 16px; padding: 20px 22px; margin-bottom: 32px;
}
.upsell-ico { font-size: 2rem; }
.result-upsell p { color: var(--muted); }
.result-upsell strong { font-size: 1.5rem; font-weight: 800; color: #b9770a; display: block; }
.result-upsell small { color: var(--muted); }
.result-contact h3 { font-size: 1.15rem; margin-bottom: 18px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.result-back { margin-top: 26px; display: inline-block; }

/* ---------- Animacje reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0 64px; }
  .row { grid-template-columns: 1fr; }
  .trust-row { gap: 24px; }
  .calc-card { padding: 24px; }
  .result-card { padding: 32px 22px; }
  .result-upsell { flex-direction: column; text-align: center; }
  .nav-cta { display: none; }
  .contact-actions .btn { width: 100%; }
}
