/* KK Instalacja — style strony (kierunek A: granat + pomarańcz) */
:root {
  --navy: #0F2A44;
  --blue: #1E4E79;
  --orange: #F28C28;
  --orange-soft: #F7B36B;
  --bg: #F6F7F9;
  --white: #FFFFFF;
  --text: #1B1F24;
  --text-2: #3A4250;
  --muted: #5B6472;
  --line: #E3E7ED;
  --line-2: #C9D1DB;
  --red: #C0392B;
  --red-bg: #FCEDEB;
  --red-text: #8E1F14;
  --green: #2E7D4F;
  --radius: 12px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; color: var(--navy); }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--white { background: var(--white); }
.lead { color: var(--muted); font-size: 18px; max-width: 680px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn--primary { background: var(--orange); color: var(--text); }
.btn--primary:hover { background: #E07A16; color: var(--text); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--blue); color: var(--white); }
.btn--outline-light { border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn--lg { font-size: 18px; padding: 14px 26px; }
.btn--block { width: 100%; }

/* Pasek górny i nagłówek */
.topbar { background: var(--navy); color: #DCE6F0; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; align-items: center; gap: 16px 28px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: 0 0 auto; }
.logo__mark { width: 40px; height: 40px; border-radius: 8px; background: var(--navy); color: var(--orange); display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 16px; }
.logo__name { font-family: var(--head); font-weight: 800; font-size: 20px; }
.nav { flex: 1 1 auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; padding: 6px 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--orange); }
.header__phone { font-family: var(--head); font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-2); border-radius: 8px; min-width: 48px; min-height: 48px; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .header .wrap { flex-wrap: wrap; }
  .nav { display: none; flex-basis: 100%; order: 5; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
  .header__phone, .header .btn--primary { display: none; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero__text { flex: 1 1 500px; min-width: 0; }
.hero__eyebrow { color: var(--orange-soft); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; margin-bottom: 12px; }
.hero__lead { color: #DCE6F0; font-size: 19px; max-width: 560px; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: #DCE6F0; font-size: 15px; }
.ticks li::before { content: "✓ "; color: var(--orange-soft); font-weight: 700; }
.hero--page .wrap { padding-top: 48px; padding-bottom: 52px; display: block; }
.breadcrumbs { font-size: 14px; color: #B8C6D6; margin-bottom: 12px; }
.breadcrumbs a { color: #DCE6F0; }

/* Karta szybkiego zgłoszenia */
.quick { flex: 1 1 360px; min-width: 0; background: var(--white); color: var(--text); border-radius: var(--radius); padding: 28px; }
.quick__title { font-family: var(--head); font-weight: 700; font-size: 20px; margin: 0 0 4px; }

/* Chipy (radio jako przyciski) */
.chips { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--white); cursor: pointer; }
.chip input:hover + span { border-color: var(--blue); }
.chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip--urgent span { border-color: var(--red); color: var(--red-text); background: var(--red-bg); }
.chip--urgent input:checked + span { background: var(--red); border-color: var(--red); color: var(--white); }

/* Pasek zaufania */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.stat__value { font-family: var(--head); font-weight: 800; font-size: 28px; color: var(--navy); margin: 0; }
.stat__label { color: var(--muted); margin: 0; }

/* Karty */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card ul { margin: 0 0 20px; padding-left: 20px; color: var(--text-2); }
.card__price { font-weight: 700; margin: auto 0 12px; }
.card__icon { width: 36px; height: 36px; margin-bottom: 12px; }
.card__link { font-weight: 700; }

/* Kroki */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--text); font-family: var(--head); font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.steps p { color: var(--muted); }

/* Zanim przyjadę */
.before { border: 2px solid var(--orange); border-radius: var(--radius); background: var(--white); padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.before h2 { font-size: 26px; margin-bottom: 4px; }
.before h3 { font-size: 18px; margin-bottom: 4px; }
.before p { margin: 0; color: var(--text-2); }

/* O mnie */
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split > * { flex: 1 1 380px; min-width: 0; }
.placeholder-img { min-height: 320px; border: 2px dashed #9AA6B5; border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px; background: var(--white); }

/* Tabele cen */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { font-family: var(--head); font-size: 15px; color: var(--navy); background: #F0F3F7; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style-position: outside; }
.faq details p { color: var(--text-2); }

/* CTA band */
.cta-band { background: var(--blue); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 52px; padding-bottom: 52px; }
.cta-band h2 { color: var(--white); margin: 0; font-size: clamp(24px, 3vw, 30px); }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stopka */
.footer { background: var(--navy); color: #DCE6F0; font-size: 15px; }
.footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 48px; padding-top: 44px; padding-bottom: 44px; }
.footer a { color: #DCE6F0; }
.footer strong { color: var(--white); }
.footer p { margin: 0 0 4px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer__bottom .wrap { display: block; padding-top: 16px; padding-bottom: 16px; font-size: 14px; color: #9FB2C6; }

/* Przypięty pasek na telefonie */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15,42,68,.08); }
  .mobile-bar .btn { min-height: 52px; padding: 10px; }
  body { padding-bottom: 76px; }
  body.no-bar .mobile-bar { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
  .section { padding: 52px 0; }
}

/* Formularz */
.form-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.form-layout > form { flex: 999 1 560px; min-width: 0; }
.form-layout > aside { flex: 1 1 280px; min-width: 0; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.form-card h2 { font-size: 22px; display: flex; gap: 12px; align-items: center; }
.form-card h2 .steps__num { width: 34px; height: 34px; font-size: 15px; margin: 0; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.req { color: var(--red); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 8px; font: inherit; background: var(--white); color: var(--text); min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(242,140,40,.45); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.error-msg { color: var(--red-text); font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.urgent-note { background: var(--red-bg); color: var(--red-text); border-radius: 8px; padding: 12px 16px; margin: 0 0 18px; font-weight: 600; }
.urgent-note a { color: var(--red-text); }

/* Zdjęcia */
.drop { position: relative; border: 2px dashed #9AA6B5; border-radius: var(--radius); padding: 28px 20px; text-align: center; background: #FAFBFC; cursor: pointer; }
.drop.is-over { border-color: var(--blue); background: #EEF3F8; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.drop strong { display: block; font-size: 18px; color: var(--navy); }
.thumbs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #E9EDF2; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(15,42,68,.85); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.thumbs .busy { display: grid; place-items: center; font-size: 13px; color: var(--muted); }

.form-status { border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; font-weight: 600; }
.form-status--error { background: var(--red-bg); color: var(--red-text); }
.success { background: var(--white); border: 2px solid var(--green); border-radius: var(--radius); padding: 32px; }
.success h2 { color: var(--green); }
.privacy-note { font-size: 14px; color: var(--muted); }
.aside-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.aside-box h3 { font-size: 18px; }
.big-phone { font-family: var(--head); font-weight: 800; font-size: 24px; color: var(--navy); text-decoration: none; }

/* Treść prawna */
.prose { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; max-width: 860px; }
.prose h2 { font-size: 22px; margin-top: 1.4em; }
.prose ul { padding-left: 22px; }
.split--top { align-items: flex-start; }
