/* Kilowat Mniej — wygląd strony.
   Układ: pełnoszerokie pasy (granat / papier), w środku kafelki o różnej wielkości.
   Kolory i rozmiary zmieniasz w :root. */
@font-face { font-family: "Inter Display"; src: url("fonts/inter-display-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff") format("woff"); font-weight: 500 700; font-display: swap; }

@view-transition { navigation: auto; }

:root {
  --navy: #12202F;
  --navy-2: #1C2E42;
  --navy-line: #2E4258;
  --amber: #F0A81C;
  --amber-2: #FFC24D;
  --paper: #F4F2EC;
  --card: #FFFFFF;
  --line: #DAD6CA;
  --ink: #12202F;
  --muted: #586271;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B7C1CD;
  --good: #2F7D4F;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
h1 { font-size: clamp(46px, 9vw, 104px); }
h2 { font-size: clamp(34px, 6vw, 64px); }
h3 { font-family: var(--text); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; line-height: 1.25; }
.num { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.band { padding-block: clamp(64px, 9vw, 120px); }
.band-dark { background: var(--navy); color: var(--on-dark); }
.band-dark .muted { color: var(--on-dark-muted); }
.band-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.band-head p { max-width: 420px; font-size: 18px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.band-dark .eyebrow { color: var(--amber); }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; border: 0; font: 600 17px/1 var(--text); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: scale(0.98); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-2); }
.btn-dark { background: var(--navy); color: var(--on-dark); }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(127, 127, 127, 0.12); }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nagłówek */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(18, 32, 47, 0.92); color: var(--on-dark); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: block; width: 36px; height: 36px; flex: 0 0 auto; }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: 16px; color: var(--on-dark-muted); }
.nav a:hover { color: var(--on-dark); }
.nav a[aria-current="page"] { color: var(--on-dark); background: var(--navy-2); }
.nav .btn { min-height: 44px; padding: 0 18px; margin-left: 8px; font-size: 15px; color: var(--navy); }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--navy-2); color: var(--on-dark); cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; background: var(--navy); padding: 8px var(--gutter-r) 20px var(--gutter); border-bottom: 1px solid var(--navy-line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 18px; }
  .nav .btn { margin: 8px 0 0; min-height: 52px; }
}

/* Hero */
.hero { background: var(--navy); color: var(--on-dark); padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--on-dark-muted); max-width: 520px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--on-dark-muted); list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Kalkulator */
.calc { background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.calc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-top label { font-weight: 600; }
.calc-bill { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 20px; white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--amber) var(--fill, 20%), #E6E2D6 var(--fill, 20%)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: #E6E2D6; }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--amber); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--navy); border: 4px solid var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); border: 4px solid var(--card); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.seg legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--paper); font-size: 15px; font-weight: 500; line-height: 1.2; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.seg input:checked + label { background: var(--navy); color: var(--on-dark); }
.seg input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 99px; background: #D5D0C3; position: relative; cursor: pointer; transition: background-color .15s ease; flex: 0 0 auto; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.switch input:checked { background: var(--navy); }
.switch input:checked::after { transform: translateX(20px); }
.result { border-radius: var(--r-md); background: var(--navy); color: var(--on-dark); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.result-label { font-size: 14px; color: var(--on-dark-muted); }
.result-value { font-size: clamp(40px, 6vw, 56px); color: var(--amber); }
.result-note { font-size: 14px; color: var(--on-dark-muted); }
.calc .btn { width: 100%; }
.calc-foot { font-size: 12px; color: var(--muted); text-align: center; }

/* Kroki */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 2px solid var(--ink); }
.band-dark .steps li { border-top-color: var(--amber); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--muted); letter-spacing: 0.02em; }
.band-dark .steps li::before { color: var(--amber); }
.steps h3 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.025em; line-height: 1.05; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Kafelki (bento) */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); background: var(--card); text-decoration: none; color: var(--ink); overflow: hidden; min-width: 0; transition: transform .2s ease, box-shadow .2s ease; }
a.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(18, 32, 47, 0.12); }
.tile .tile-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.tile .price { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile .go { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); flex: 0 0 auto; transition: transform .2s ease; }
a.tile:hover .go { transform: translateX(3px); }
.tile p { color: var(--muted); }
.tile-amber { background: var(--amber); }
.tile-amber p { color: #3A3320; }
.tile-amber .go { background: var(--navy); color: var(--amber); }
.tile-dark { background: var(--navy); color: var(--on-dark); }
.tile-dark p { color: var(--on-dark-muted); }
.tile-dark .go { background: var(--amber); color: var(--navy); }
.band-dark .tile:not(.tile-amber):not(.tile-light) { background: var(--navy-2); color: var(--on-dark); }
.band-dark .tile:not(.tile-amber):not(.tile-light) p { color: var(--on-dark-muted); }
.band-dark .tile:not(.tile-amber):not(.tile-light) .go { background: var(--navy); }
.span-2 { grid-column: span 2; }
.row-2 { grid-row: span 2; }
.big-save { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.2vw, 72px); white-space: nowrap; letter-spacing: -0.04em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.big-save small { display: block; font-family: var(--text); font-weight: 600; font-size: 16px; letter-spacing: 0; margin-top: 10px; }
.tile-art { width: 100%; max-width: 220px; height: auto; align-self: flex-end; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; grid-auto-rows: auto; } .span-2, .row-2 { grid-column: auto; grid-row: auto; } .tile { min-height: 180px; } }

/* O mnie */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.photo { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--r-lg); background: repeating-linear-gradient(135deg, #E9E5DA 0 14px, #E2DDD0 14px 28px); display: flex; align-items: end; padding: 20px; color: var(--muted); font-size: 14px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.promises { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; }
.promises li { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; letter-spacing: -0.01em; }
.promises li:last-child { border-bottom: 1px solid var(--line); }
.promises li span { color: var(--muted); font-size: 15px; font-weight: 600; min-width: 28px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .photo { aspect-ratio: 4 / 3; } }

/* FAQ */
.faq { display: flex; flex-direction: column; max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: clamp(18px, 2vw, 21px); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 680px; }

/* Formularz */
.form-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.form-wrap .contact { display: flex; flex-direction: column; gap: 20px; }
.form-wrap .contact .phone { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; text-decoration: none; }
.form { background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; font: 400 17px/1.3 var(--text); color: var(--ink);
  background: var(--paper); border: 1.5px solid transparent; border-radius: var(--r-sm); transition: border-color .15s ease, background-color .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); background: var(--card); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; padding: 18px; border: 2px dashed var(--line); border-radius: var(--r-md); background: var(--paper); text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.drop:hover, .drop.has-file { border-color: var(--navy); background: #EFEBE1; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop strong { font-size: 17px; }
.drop span { font-size: 14px; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--navy); }
.form .btn { width: 100%; min-height: 60px; font-size: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } }

/* Karta z liczbą w hero podstron */
.stat { background: var(--navy-2); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.stat .num { font-size: clamp(48px, 7vw, 84px); color: var(--amber); }
.stat .label { color: var(--on-dark-muted); font-size: 16px; }
.stat-rows { display: flex; flex-direction: column; }
.stat-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--navy-line); font-size: 18px; }
.stat-rows div:last-child { border-bottom: 0; }
.stat-rows b { font-family: var(--display); font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 12px 18px; border-radius: 999px; background: var(--card); font-weight: 500; }
.band-dark .chips li { background: var(--navy-2); }

/* Kartka raportu */
.sheet { background: #FFFFFF; color: var(--ink); border-radius: 6px; padding: 32px 30px; display: flex; flex-direction: column; gap: 12px; transform: rotate(2deg); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); max-width: 380px; justify-self: center; font-size: 19px; }
.sheet .amount { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; background: #FFF1D2; border-radius: 8px; padding: 6px 12px; align-self: flex-start; }
.sheet .rule { height: 1px; background: var(--line); }

/* Stopka */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }

/* Przyklejony przycisk na telefonie */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter); background: transparent; transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; display: none; }
.sticky-cta.show { transform: none; visibility: visible; transition: transform .25s ease; }
.sticky-cta .btn { width: 100%; box-shadow: 0 10px 30px rgba(18, 32, 47, 0.25); }
@media (max-width: 860px) { .sticky-cta { display: block; } }

/* Baner cookies */
.cookie { position: fixed; z-index: 200; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; background: var(--card); color: var(--ink); border-radius: var(--r-md); padding: 18px; box-shadow: 0 20px 50px rgba(18, 32, 47, 0.25); display: none; flex-direction: column; gap: 12px; font-size: 14px; }
.cookie.show { display: flex; }
.cookie .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }

/* Dokumenty prawne */
.doc { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 8px; }
.doc h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; margin-top: 24px; line-height: 1.15; }
.doc p, .doc li { color: #3D4652; }
.doc ol, .doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.note-box { background: #FFF1D2; border-radius: var(--r-sm); padding: 14px 16px; }
.small { font-size: 14px; color: var(--muted); }

/* Delikatne wejście sekcji przy przewijaniu (treść widoczna także bez animacji) */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  @keyframes rise { from { transform: translateY(28px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
