/* Serwento – strona kampanii dla firm HVAC (/dla-firm-hvac/). Mobile-first, od 320 px. */
:root {
  --navy: #0b1c32;
  --navy-2: #13294a;
  --blue: #168bff;          /* akcent (elementy dekoracyjne, duże powierzchnie) */
  --blue-strong: #0a66c8;   /* przyciski i linki – kontrast z bielą ok. 5,5:1 (WCAG AA) */
  --blue-hover: #0857a8;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #0b1c32;
  --muted: #4a5a70;         /* tekst pomocniczy – kontrast na #f4f7fb ok. 6,6:1 */
  --line: #dbe3ee;
  --brand-dot: #f07a3c;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 18px 40px rgba(11, 28, 50, 0.12);
  --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.has-sticky { padding-bottom: 84px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-strong); }
a:hover { color: var(--blue-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); margin-bottom: 14px; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--surface); color: var(--ink); padding: 12px 16px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; transition: background .15s, transform .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-strong); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #b9c6d8; }
.btn-ghost:hover { border-color: var(--blue-strong); color: var(--blue-strong); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 247, 251, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-word { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.04em; }
.brand-dot { color: var(--brand-dot); }
.header-nav { display: none; gap: 24px; margin-left: auto; }
.header-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 0; }
.header-nav a:hover { color: var(--blue-strong); }
.header-row > .btn { margin-left: auto; }

/* ---------- Sekcje ---------- */
.section { padding: 56px 0; }
.section-tint { background: #e9eff7; }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2 { color: #fff; }
.section-lead { color: var(--muted); max-width: 720px; margin-bottom: 28px; }
.section-dark .section-lead { color: #c4d0e0; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-strong); margin-bottom: 10px; }
.eyebrow-light { color: #8cc5ff; }
.center { text-align: center; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e3f0ff; color: var(--blue-strong); flex-shrink: 0; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grid-2, .grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 48px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(1.85rem, 1.3rem + 3vw, 3.2rem); margin-bottom: 18px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 600px; margin-bottom: 26px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; }
.cta-row .btn { width: 100%; }
.hero-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #dff0e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='%231c7a46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-visual { position: relative; padding-bottom: 28px; }
.shot { margin: 0; }
.shot picture img, .gallery picture img { border-radius: 12px; }
.shot-desktop { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.shot-phone { position: absolute; right: -6px; bottom: 0; width: 34%; max-width: 200px; border: 6px solid var(--navy); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.shot-phone picture img { border-radius: 0; }
.hero-photo img { border-radius: var(--radius-lg); }
.shot-caption { font-size: .8rem; color: var(--muted); margin-top: 10px; max-width: 60%; }

/* ---------- Problemy / funkcje ---------- */
.problems { margin-top: 26px; }
.problem h3 { margin: 14px 0 8px; }
.problem p, .feature p, .step p, .trade p, .trust-item p { color: var(--muted); font-size: .97rem; }
.features { margin-top: 26px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature h3 { margin-bottom: 6px; }
.feature-extras { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.feature-extras li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: .95rem; }
.feature-extras strong { color: var(--ink); }

/* ---------- Jak działa ---------- */
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding-top: 26px; }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step h3 { margin-bottom: 6px; }

/* ---------- Podgląd ---------- */
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { margin: 0; }
.gallery-wide { grid-column: 1 / -1; }
.gallery-wide picture img { box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.gallery-phone picture img { border: 5px solid #24406b; border-radius: 22px; }
.gallery figcaption { font-size: .9rem; color: #c4d0e0; margin-top: 10px; }

/* ---------- Branże ---------- */
.trades { margin-top: 8px; }
.trade { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.trade:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.trade h3 { margin-top: 4px; }
.trade-link { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--blue-strong); font-size: .95rem; }

/* ---------- Zaufanie ---------- */
.trust { margin-top: 26px; }
.trust-item h3 { margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 22px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 18px; font-weight: 600; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--blue-strong); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 18px 18px; color: var(--muted); }

/* ---------- Końcowe CTA ---------- */
.final-cta { padding-top: 24px; }
.final-box { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: var(--radius-lg); padding: 40px 22px; text-align: center; }
.final-box h2 { color: #fff; max-width: 760px; margin: 0 auto 12px; }
.final-box p { color: #c4d0e0; margin-bottom: 24px; }
.final-box .btn { width: 100%; max-width: 380px; }

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 32px; font-size: .9rem; color: var(--muted); }
.footer-row { display: grid; gap: 14px; }
.brand-small .brand-word { font-size: 1.25rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a, .footer-nav button { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.footer-note { font-size: .8rem; max-width: 820px; }

/* ---------- Sticky CTA (telefon) ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11, 28, 50, .08); }
.sticky-cta .btn { width: 100%; }

/* ---------- Zgody ---------- */
.consent { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin-inline: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(11, 28, 50, .25); padding: 20px; }
.consent h2 { font-size: 1.15rem; margin-bottom: 8px; }
.consent p { font-size: .92rem; color: var(--muted); }
.consent-options { display: grid; gap: 10px; margin: 14px 0 4px; }
.consent-options label { display: flex; gap: 10px; align-items: center; font-size: .95rem; min-height: 32px; }
.consent-options input { width: 20px; height: 20px; accent-color: var(--blue-strong); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.consent-actions .btn { flex: 1 1 150px; }
[hidden] { display: none !important; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .cta-row .btn { width: auto; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-wide { grid-column: span 4; }
  .gallery-phone { grid-column: span 2; max-width: 260px; }
  .final-box { padding: 56px 40px; }
  .final-box .btn { width: auto; }
  .section { padding: 72px 0; }
}

/* ---------- Komputer ---------- */
@media (min-width: 1000px) {
  .header-nav { display: flex; }
  .header-row > .btn { margin-left: 8px; }
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-extras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
  .gallery-wide { grid-column: span 2; }
  .gallery-phone { grid-column: span 2; justify-self: center; width: 100%; max-width: 250px; }
  .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: 48px; }
  .section { padding: 88px 0; }
  body.has-sticky { padding-bottom: 0; }
  .sticky-cta { display: none !important; }
}

/* ---------- Cena przy głównym przycisku ---------- */
.hero-price { margin-top: 14px; font-size: .95rem; color: var(--muted); }
.hero-price strong { color: var(--ink); }

/* ---------- Google Play ---------- */
.play-icon { width: 22px; height: 22px; flex-shrink: 0; }
.play-cta { margin: -8px 0 28px; }
.btn-play { background: #fff; color: var(--navy); }
.btn-play:hover { background: #e3f0ff; color: var(--navy); }

.play-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 16px 8px 12px; min-height: 48px;
  background: var(--navy); color: #fff; border-radius: 10px; text-decoration: none; line-height: 1.15; font-weight: 600; }
.play-badge:hover { background: var(--navy-2); color: #fff; }
.play-badge small { display: block; font-size: .72rem; font-weight: 400; opacity: .85; }
.play-badge .play-icon { width: 22px; height: 22px; }
.final-play { margin-top: 16px; color: #c4d0e0; }
.final-play a { color: #fff; font-weight: 600; }

/* ---------- Test A/B głównego przycisku ---------- */
.ab-b { display: none; }
[data-ab-cta="B"] .ab-a { display: none; }
[data-ab-cta="B"] .ab-b { display: inline; }

.hero-claim { font-weight: 700; font-size: 1.05rem; color: var(--ink); border-left: 4px solid var(--blue); padding: 4px 0 4px 14px; margin: -8px 0 24px; max-width: 600px; }
.hero-demo { margin-top: 16px; font-size: .95rem; color: var(--muted); }
.hero-demo a { font-weight: 600; }

/* ---------- Prezentacja (formularz) ---------- */
.demo-grid { display: grid; gap: 28px; }
.demo-alt { color: var(--muted); }
.demo-form { display: grid; gap: 14px; padding: 24px; }
.demo-required { font-size: .88rem; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input:not([type=checkbox]) { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #8a9bb2; border-radius: 10px; }
.field input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #b42318; }
.field-row { display: grid; gap: 14px; }
.field-check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 10px; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue-strong); }
.field-check label { font-weight: 400; font-size: .92rem; }
.field-check .field-error { grid-column: 2; }
.field-error { color: #b42318; font-size: .88rem; }
.form-status { font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b42318; }
.demo-form .btn { width: 100%; }
.demo-success { background: #e8f6ee; border: 1px solid #b7e1c7; border-radius: var(--radius); padding: 24px; }
.demo-success h3 { margin-bottom: 8px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-video { margin: 32px 0 0; }
.demo-video video { width: 100%; height: auto; border-radius: var(--radius); background: #000; }
.demo-video figcaption { color: #c4d0e0; margin-top: 10px; font-size: .9rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .demo-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Wzory protokołów (serwento.pl/wzory-protokolow) ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--blue-strong); }
.form-title { font-size: 1.35rem; margin: 0; }
.form-legal { font-size: .82rem; color: var(--muted); margin: 0; }
.form-legal a { color: var(--blue-strong); }
.wzor-inside { display: grid; gap: 6px; }
.wzor-preview-grid { display: grid; gap: 32px; }
.wzor-preview { margin: 0; }
.wzor-preview img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); background: #fff; }
.wzor-preview figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.wzor-guide { max-width: 720px; }
.wzor-guide h2 { font-size: 1.35rem; margin: 28px 0 10px; }
.wzor-guide h2:first-child { margin-top: 0; }
.wzor-guide ul, .wzor-guide ol { padding-left: 1.2em; display: grid; gap: 8px; }
.wzor-guide p, .wzor-guide li { line-height: 1.65; }
.wzor-note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
.wzory-cards { margin-top: 24px; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.wzor-card img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.wzor-card h2 { font-size: 1.15rem; margin: 6px 0 0; }
.wzor-files { display: flex; flex-wrap: wrap; gap: 10px; }
.wzory-home { margin-top: 18px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .wzor-preview-grid { grid-template-columns: 440px 1fr; align-items: start; gap: 56px; }
  .wzor-preview { position: sticky; top: 90px; }
}
