/* =============================================================
   Wariant A — „Premium": grafit #1F1F27 + złoto #C6A45D,
   dużo powietrza, hero pełnoekranowy, eleganckie karty.
   Mobile-first, bez zewnętrznych bibliotek.
   ============================================================= */

:root {
  --dark: #1F1F27;
  --dark-2: #17171d;
  --dark-3: #26262f;
  --gold: #C6A45D;
  --gold-soft: #e2c489;
  --text: #EDEDF0;
  --muted: #A5A5B0;
  --line: rgba(198, 164, 93, .22);
  --radius: 3px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.v-a {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--dark);
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }

.wrap { width: 100%; padding: 0 20px; margin: 0 auto; }
@media (min-width: 1100px) { .wrap { max-width: 1180px; padding: 0 40px; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }

/* ---------- Topbar ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--dark-2); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
/* Logo jest szare na przezroczystym tle — na grafitowym pasku rozjaśniamy je do bieli. */
.brand-logo { height: 26px; width: auto; filter: brightness(0) invert(1) opacity(.86); }
@media (min-width: 700px) { .brand-logo { height: 30px; } }
.topbar-phone { font-size: 15px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 15% -10%, #2c2c38 0%, var(--dark) 55%, var(--dark-2) 100%);
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}
/* Zdjęcie w hero: pionowy kadr na telefonie, poziomy od 760px.
   Gradient trzyma tekst czytelny — na mobile ciemnieje od dołu, na desktopie od lewej. */
.hero--photo {
  background-image:
    linear-gradient(180deg, rgba(31,31,39,.72) 0%, rgba(31,31,39,.86) 45%, rgba(31,31,39,.97) 100%),
    url('/static/img/hero_mobile.jpg');
  background-size: cover; background-position: center top; background-repeat: no-repeat;
}
@media (min-width: 760px) {
  .hero--photo {
    background-image:
      linear-gradient(100deg, rgba(31,31,39,.96) 0%, rgba(31,31,39,.88) 42%, rgba(31,31,39,.45) 100%),
      url('/static/img/hero.jpg');
    background-position: center;
  }
}
.hero-inner { max-width: 820px; margin: 0 auto; }
/* Na telefonie zostawiamy nad nagłówkiem pasek zdjęcia, ale tyle, żeby nagłówek,
   lead, oba CTA i pasek liczb zmieściły się na pierwszym ekranie (test 390×844). */
.hero--photo { padding-top: 68px; }
@media (max-width: 759px) {
  .hero { padding-bottom: 26px; }
  .hero h1 { margin-bottom: 14px; }
  .hero .lead { line-height: 1.5; }
  .price-note { margin-top: 10px; font-size: 13px; }
  .hero-cta { margin: 18px 0 20px; }
  .stripe { padding-top: 16px; gap: 6px 18px; font-size: 13px; }
}
/* Niższe/węższe telefony: zdjęcie schodzi do wąskiego paska, żeby pierwszy ekran
   nadal mieścił nagłówek, lead, oba CTA i pasek liczb. */
@media (max-width: 759px) and (max-height: 820px) {
  .hero--photo { padding-top: 34px; }
  .hero .lead { font-size: 15px; }
  .hero-cta { margin: 14px 0 16px; }
}
@media (min-width: 760px) { .hero--photo { padding-top: 56px; } }
@media (min-width: 1100px) { .hero { padding: 110px 0 84px; } .hero-inner { margin: 0; } }

.eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
/* 2026-09-25 (Marcin): zmniejszone z clamp(34px, 8vw, 62px) — za duża czcionka. */
.hero h1 { font-size: clamp(27px, 6.2vw, 44px); margin-bottom: 18px; }
.hero .lead { font-size: clamp(16px, 4vw, 20px); color: #D6D6DE; max-width: 42em; }

.hero-cta { display: flex; flex-direction: column; gap: 12px; margin: 32px 0 40px; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; align-items: center; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 26px; font-size: 16px; font-weight: 600; font-family: var(--sans);
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  text-align: center; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--gold); color: #1a1a20; }
.btn-primary:hover { background: var(--gold-soft); color: #1a1a20; }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Doprecyzowanie pakietu 350 zł tuż pod leadem. */
.price-note {
  margin-top: 14px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}

/* Sekcja korzyści z kodem — karty z numerowanym akcentem. */
.section-benefits { background: var(--dark-2); }
.card-benefit { border-top: 2px solid var(--gold); }
.card-benefit.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; background: linear-gradient(180deg, #2e2a22 0%, var(--dark-3) 60%); }
.card-benefit h3 { font-size: 18px; }

.stripe {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.stripe strong { color: var(--text); font-weight: 600; }

/* ---------- Sekcje ---------- */
.section { padding: 56px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
@media (min-width: 1100px) { .section { padding: 96px 0; } }
.section h2 { font-size: clamp(26px, 5.5vw, 40px); margin-bottom: 24px; }
.section-sub, .note { color: var(--muted); font-size: 14px; }
.note { margin-top: 20px; }
.prose { max-width: 46em; }
.prose p { color: #C9C9D3; margin-bottom: 14px; }

/* ---------- Karty ---------- */
.cards { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) { .cards-spec { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards-spec { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--dark-3); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 26px 24px 28px; position: relative;
}
.card h3 { font-size: 20px; color: var(--gold-soft); margin-bottom: 10px; }
.card p { color: #C2C2CC; font-size: 15px; }
.card-spec.is-active {
  border-color: var(--gold); background: linear-gradient(180deg, #2e2a22 0%, var(--dark-3) 60%);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.badge {
  display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dark); background: var(--gold); padding: 3px 9px; border-radius: 2px; margin-bottom: 12px;
}

.ticks { list-style: none; margin-top: 16px; }
.ticks li { position: relative; padding-left: 22px; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- Kroki ---------- */
.steps { list-style: none; display: grid; gap: 26px; margin-top: 32px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { border-top: 1px solid var(--line); padding-top: 20px; }
.step-n { font-family: var(--serif); font-size: 40px; color: var(--gold); line-height: 1; display: block; margin-bottom: 12px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: #C2C2CC; font-size: 15px; }

/* ---------- Opinie ---------- */
.quote {
  background: var(--dark-3); border-left: 2px solid var(--gold);
  padding: 24px 22px; border-radius: var(--radius);
}
.quote blockquote { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: #E4E4EA; }
.quote figcaption { margin-top: 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* ---------- Kontakt ---------- */
.section-contact { background: var(--dark-2); }
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.contact-copy .lead { color: #C9C9D3; font-size: 17px; margin-bottom: 18px; }
.contact-copy .lead strong { color: var(--gold); }
.contact-meta { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- Formularz ---------- */
.lead-box { background: var(--dark-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 28px; }
@media (min-width: 700px) { .lead-box { padding: 34px 32px 36px; } }
.lead-title { font-size: 22px; margin-bottom: 6px; }
.lead-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.lead-sub strong { color: var(--gold); }
.lead-row { margin-bottom: 16px; }
.lead-row label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.lead-row input, .lead-row select {
  width: 100%; padding: 14px 14px; font-size: 16px; font-family: var(--sans);
  color: var(--text); background: #1c1c23; border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); appearance: none;
}
.lead-row input:focus, .lead-row select:focus { outline: none; border-color: var(--gold); }
.lead-row input::placeholder { color: #6d6d7a; }
/* Pole pytania (tryb mailowy) — wygląd jak input. */
.lead-row textarea {
  width: 100%; padding: 14px 14px; font-size: 16px; font-family: var(--sans); line-height: 1.5;
  color: var(--text); background: #1c1c23; border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); appearance: none; resize: vertical; min-height: 84px;
}
.lead-row textarea:focus { outline: none; border-color: var(--gold); }
.lead-row textarea::placeholder { color: #6d6d7a; }
/* Przełącznik „Oddzwońcie / Odpiszcie mailem" — dwa równe przyciski, min. 44 px wysokości. */
.lead-mode { display: flex; gap: 6px; margin: 12px 0 20px; padding: 4px; background: #1c1c23; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); }
.lead-mode-btn {
  flex: 1 1 0; min-height: 44px; padding: 10px 8px; font-size: 14px; font-weight: 600; font-family: var(--sans);
  color: var(--muted); background: transparent; border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background .15s, color .15s;
}
.lead-mode-btn.is-active { background: var(--gold); color: #1a1a20; }
.lead-mode-btn:not(.is-active):hover { color: var(--text); }
.lead-grid2 { display: grid; gap: 0; }
@media (min-width: 560px) { .lead-grid2 { grid-template-columns: 1fr 1fr; gap: 16px; } }
/* honeypot: chowamy bez ujemnego offsetu, zeby nie wystawal poza uklad strony */
.lead-hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.lead-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 20px; line-height: 1.5; }
/* Zgoda jest twardo wymagana, a była najsłabiej widocznym elementem formularza
   (18 px, kolor przygaszony) — 2026-09-25 większe pole i jaśniejszy tekst. */
.lead-consent { color: #C9C9D3; }
.lead-consent input { margin-top: 1px; width: 22px; height: 22px; accent-color: var(--gold); flex: 0 0 auto; }
/* Pole z błędem (lead.js) — obramowanie przy konkretnym polu, nie tylko zbiorczy komunikat. */
.lead-row input.is-invalid, .lead-row textarea.is-invalid { border-color: #ff8a8a; box-shadow: 0 0 0 1px #ff8a8a; }
.lead-consent.is-invalid { outline: 1px solid #ff8a8a; outline-offset: 6px; border-radius: 4px; color: #ffb4b4; }
.lead-submit { width: 100%; }
.lead-alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 14px; }
.lead-errors { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius); background: #3a2224; color: #ffb4b4; font-size: 14px; }
.lead-thanks { text-align: center; padding: 12px 0; }
.lead-thanks-mark { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; background: var(--gold); color: var(--dark); display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.lead-thanks h3 { font-size: 22px; margin-bottom: 12px; }
.lead-thanks-code { font-size: 20px; font-weight: 700; color: var(--gold); letter-spacing: .06em; }
.lead-thanks-note { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 52em; }
.faq details { border-bottom: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: -2px; color: var(--gold); font-size: 22px; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: #C2C2CC; font-size: 15px; margin-top: 10px; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--dark-2); padding: 40px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } }
.footer-name { color: var(--text); font-weight: 600; margin-bottom: 4px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 800px) { .footer-links { align-items: flex-end; } }

/* ---------- Dokument (polityka) ---------- */
.doc { max-width: 46em; }

.doc-wide { max-width: 62em; }
.doc h1 { font-size: clamp(30px, 6.5vw, 46px); margin-bottom: 14px; }
.doc-lead { color: #D6D6DE; font-size: clamp(16px, 3.6vw, 19px); max-width: 44em; margin-bottom: 8px; }
.doc h2 {
  font-size: clamp(21px, 4.5vw, 27px); color: var(--gold-soft);
  margin: 40px 0 12px; padding-top: 26px; border-top: 1px solid var(--line);
}
.doc p { color: #C9C9D3; margin-bottom: 14px; max-width: 44em; }
.doc strong { color: var(--text); }
.doc ul, .doc ol { margin: 4px 0 18px 22px; max-width: 44em; }
.doc li { color: #C9C9D3; margin-bottom: 8px; }
.doc ol.doc-num li { margin-bottom: 14px; }
.doc ol.doc-num li::marker { color: var(--gold); font-weight: 700; }
.doc ul li::marker { color: var(--gold); }
.doc .cards { margin-top: 22px; }
.doc .ticks li { margin-bottom: 7px; }
.doc-sub { color: var(--muted); font-size: 14px; margin-top: 26px; }
.card-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.doc-note {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.doc-cta {
  margin-top: 26px; padding: 26px 24px; background: var(--dark-3);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.doc-cta p { margin-bottom: 18px; color: #D6D6DE; }
@media (max-width: 559px) { .doc-cta .btn { display: flex; width: 100%; } }

/* =============================================================
   Etap 2 przebudowy konwersji (2026-09-12)
   Formularz wchodzi do hero, dochodzi ocena Google, twarz osoby,
   potwierdzenie ceny z reklamy i przyklejony pasek CTA na telefonie.
   ============================================================= */

/* Hero w dwóch kolumnach — od 1000px formularz staje obok komunikatu.
   Niżej układa się jeden pod drugim, komunikat pierwszy. */
.hero-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
}
.hero-copy { min-width: 0; }
.hero-form { min-width: 0; }

/* Na telefonie zdjęcie w tle robi się zbędnym balastem nad formularzem —
   zostawiamy wąski pasek, żeby pierwszy ekran pokazał nagłówek, cenę i początek
   formularza. */
@media (max-width: 999px) {
  .hero--photo { padding-top: 28px; }
  .hero { padding-bottom: 32px; }
}

/* „W czym pomóc?" — wybór sprawy językiem klienta. Stoi między leadem a ceną:
   najpierw nazywamy problem, dopiero potem mówimy, ile to kosztuje. Kafelki mają
   44 px wysokości, bo prawie cały ruch z reklam jest z telefonu. */
.hero-problemy { margin-top: 22px; }
.hero-problemy-label { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.problemy { display: flex; flex-wrap: wrap; gap: 8px; }
.problem-btn {
  min-height: 44px; padding: 10px 14px; font-size: 14px; font-weight: 500;
  font-family: var(--sans); color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.problem-btn:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 640px) {
  .problemy { gap: 6px; }
  .problem-btn { min-height: 40px; padding: 8px 12px; font-size: 14px; }
}
.problem-btn.is-active {
  background: var(--gold); border-color: var(--gold); color: #1a1a20; font-weight: 600;
}

/* Wybrana sprawa nad formularzem — po przewinięciu widać, o czym będzie rozmowa. */
.lead-problem {
  margin: -6px 0 14px; padding: 8px 12px; font-size: 14px; color: var(--gold-soft);
  background: rgba(198, 164, 93, .09); border-radius: var(--radius);
}

/* Potwierdzenie obietnicy z reklamy — musi być widoczne od razu, ale nie może
   przykryć nagłówka. */
.hero-price {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: rgba(198, 164, 93, .07);
  border-radius: var(--radius);
}
.hero-price strong { display: block; font-size: clamp(17px, 3.6vw, 20px); color: var(--gold-soft); }
.hero-price span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

/* Ocena Google — najmocniejszy pojedynczy dowód, jaki mamy (5,0 z 66 opinii). */
.hero-google { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.hero-google .stars { color: var(--gold); letter-spacing: .06em; margin-right: 6px; }
.hero-google strong { color: var(--text); font-weight: 600; }

/* Pasek liczb wyjechał z hero do własnej sekcji — w hero nie było już dla niego
   miejsca obok formularza. */
.section-stats { padding: 26px 0; border-bottom: 1px solid var(--line); }
.section-stats .stripe { padding-top: 0; border-top: none; }

/* Kto oddzwoni — twarz przy formularzu. */
.lead-osoby {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.lead-osoba { display: flex; align-items: center; gap: 12px; flex: 1 1 0; min-width: 0; }
.lead-osoba img {
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 50%; background: #fff;
}
.lead-osoba p { font-size: 13px; line-height: 1.45; color: var(--muted); }
/* 2026-09-25: bez nowrap — na 390 px „Marcin Mochnacz" wchodził pod drugie zdjęcie. */
.lead-osoba strong { color: var(--text); }

/* Przyklejony pasek CTA — tylko telefon i tablet. Na desktopie formularz i tak
   stoi w hero po prawej. Chowa się, gdy formularz jest na ekranie (lead.js). */
.sticky-cta { display: none; }
@media (max-width: 999px) {
  .sticky-cta {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(23, 23, 29, .96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
    transition: transform .22s ease, opacity .22s ease;
  }
  .sticky-cta .btn { flex: 1 1 auto; text-align: center; padding: 13px 14px; }
  .sticky-cta .btn-ghost { flex: 0 0 auto; }
  .sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
  /* miejsce na pasek, żeby nie zasłaniał stopki */
  body.v-a { padding-bottom: 72px; }
}

/* Na desktopie formularz stoi tuż obok, więc przycisk „Opisz sprawę" w kolumnie
   tekstowej tylko dubluje formularz — zostaje telefon. Poniżej 1000px formularz jest
   DOPIERO pod tekstem, więc oba przyciski są potrzebne.
   (2026-09-25: głównym przyciskiem jest pisanie, telefon jest drugi.) */
@media (min-width: 1000px) {
  .hero-copy .hero-cta .btn-primary { display: none; }
}

/* Opinia dopasowana do sprawy z reklamy (2026-09-25). */
.hero-dowod { margin: 12px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.hero-dowod p { font-size: 15px; line-height: 1.55; color: #C9C9D3; font-style: italic; }
.hero-dowod cite { display: block; margin-top: 4px; font-size: 12px; font-style: normal; color: var(--muted); }

/* Ocena Google jako link do zrodla — dowod, ktory da sie sprawdzic. */
.hero-google .google-link { color: inherit; border-bottom: 1px dotted var(--line); }
.hero-google .google-link:hover { color: var(--gold-soft); border-bottom-color: var(--gold); }
.hero-google .google-link strong { color: var(--text); }

/* Podpowiedz pod polem kontaktu. */
.lead-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.45; }
