/**
 * Landing "markizy tarasowe na wymiar" / "markizy tarasowe wycena".
 *
 * Samodzielny arkusz podstrony — ładowany przez page-markizy-tarasowe-wycena.php
 * (a przez nią także przez page-markizy-tarasowe-na-wymiar.php, która wczytuje
 * ten sam szablon) oraz przez page-dziekujemy-markizy.php, czyli stronę
 * podziękowania z tej samej ścieżki. Nagłówek i stopka witryny korzystają
 * z głównego style.min.css; tutaj opisana jest tylko ścieżka wyceny.
 *
 * Wszystkie reguły są zawężone do .ads-landing (poza lightboxem, który JS
 * dokleja do <body>), więc arkusz nie zmienia niczego poza podstroną, mimo że
 * trafia do <head> po arkuszu motywu.
 *
 * Prefiks .ads-landing jest też warunkiem działania: reset motywu to
 * .w360template * (web360/_reset.scss), czyli swoistość 0-1-0 — zeruje marginesy
 * wszystkiego. Warstwa bazowa (sekcje 0–0g) używa selektorów elementów
 * (.ads-landing p → 0-1-1), więc reset przebija, a warstwa komponentów
 * (sekcje 1–9, .ads-landing .ads-note → 0-2-0) przykrywa warstwę bazową.
 *
 * Zapisany mobile-first: reguły bazowe opisują telefon, szersze ekrany
 * dokładają kolumny (sekcja 8, a dla strony podziękowania — sekcja 9).
 */

/* ============================================================
   0. TOKENY — kolory i typografia landingu

   Nazwy własne dla tej podstrony. --orange pochodzi z motywu
   (scss/_variables.scss) i celowo nie jest tu nadpisywany.
   ============================================================ */
:root {
  --ink:        #1a1a1a;   /* tekst podstawowy */
  --ink-soft:   #5b5b5b;   /* tekst uzupełniający, opisy */
  --graphite:   #1a1a1a;   /* ciemne tło hero i numerów kroków */
  --graphite-2: #232323;   /* tło pod zdjęciem w lightboxie */
  --grey-bg:    #f5f5f5;   /* jasne tło sekcji */
  --grey-bg-2:  #ebebeb;   /* tło miniatury przed wczytaniem zdjęcia */
  --line:       #e1e1e1;   /* obrysy kart i separatory */
  --font-head:  'Anton', Impact, 'Arial Black', sans-serif;
}

/* ============================================================
   0a. BAZA — typografia i rytm wewnątrz landingu
   ============================================================ */
.ads-landing {
  font-family: var(--font1, 'Archivo Narrow', 'Arial Narrow', Arial, sans-serif);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

.ads-landing h1,
.ads-landing h2,
.ads-landing h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.ads-landing h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
.ads-landing h2 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); }
.ads-landing h3 { font-size: 1.16rem; }

.ads-landing p { margin: 0 0 14px; }
.ads-landing p:last-child { margin-bottom: 0; }
.ads-landing ul,
.ads-landing ol { margin: 0; padding: 0; }
.ads-landing img { max-width: 100%; }
.ads-landing a { color: inherit; }

/* Nadlinia sekcji — krótka etykieta nad nagłówkiem. */
.ads-landing .eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange, #f08143);
}

/* ============================================================
   0b. UKŁAD — kontener, sekcje, warianty tła
   ============================================================ */
.ads-landing .container {
  width: 100%;
  max-width: var(--maxwidth, 1180px);
  margin: 0 auto;
  padding: 0 15px;   /* zgodnie z .wrap motywu — landing trzyma tę samą oś co nagłówek i stopka */
}

.ads-landing .section { padding: 52px 0; }
.ads-landing .bg-white { background: #fff; }
.ads-landing .bg-grey { background: var(--grey-bg); }

.ads-landing .section-head { max-width: 62ch; margin-bottom: 30px; }
.ads-landing .section-head h2 + p { margin-top: 14px; }
.ads-landing .section-head p { color: var(--ink-soft); }

.ads-landing .cta-row { margin-top: 30px; }

/* ============================================================
   0c. PRZYCISK
   ============================================================ */
.ads-landing .btn {
  display: inline-block;
  padding: 15px 26px;
  border: 2px solid var(--orange, #f08143);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ads-landing .btn--primary {
  background-color: var(--orange, #f08143) !important;
  border-color: var(--orange, #f08143);
  color: #fff;
}

.ads-landing .btn--primary:hover,
.ads-landing .btn--primary:focus {
  background: var(--orange2, #e87000);
  border-color: var(--orange2, #e87000);
  color: #fff;
}

/* ============================================================
   0d. KARTY
   ============================================================ */
.ads-landing .cards { display: grid; grid-template-columns: 1fr; gap: 18px; }

.ads-landing .card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px 22px;
}

.ads-landing .card h3 { margin-bottom: 10px; }
.ads-landing .card p { font-size: 0.96rem; color: var(--ink-soft); }

/* ============================================================
   0e. FAQ — natywne <details>, bez JS
   ============================================================ */
.ads-landing .faq { border-top: 1px solid var(--line); }

.ads-landing .faq details { border-bottom: 1px solid var(--line); }

.ads-landing .faq summary {
  position: relative;
  list-style: none;
  padding: 18px 44px 18px 0;
  font-weight: 700;
  font-size: 1.04rem;
  cursor: pointer;
}

.ads-landing .faq summary::-webkit-details-marker { display: none; }

/* Znacznik "+" / "−" po prawej stronie pytania. */
.ads-landing .faq summary::after {
  content: "+";
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: 1.5rem; line-height: 1;
  color: var(--orange, #f08143);
}

.ads-landing .faq details[open] summary::after { content: "\2212"; }

.ads-landing .faq-body {
  padding: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 78ch;
}

/* ============================================================
   0f. FORMULARZ KOŃCOWY
   ============================================================ */
.ads-landing .form-block {
  background: var(--graphite);
  color: #fff;
  /* Kotwica #wycena nie może wpaść pod przyklejony nagłówek. */
  scroll-margin-top: 74px;
}

.ads-landing .form-block h2 { color: #fff; }
.ads-landing .form-block p { color: #e2e2e2; }

.ads-landing .form-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }

.ads-landing .form-trust {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.ads-landing .form-trust li {
  position: relative;
  padding-left: 26px;
  font-size: 0.96rem;
  color: #e2e2e2;
}

.ads-landing .form-trust li::before {
  content: "\2714";
  position: absolute; left: 0; top: 0;
  color: var(--orange, #f08143);
  font-weight: 800;
}

/* Formularz na ciemnym tle dostaje białą kartę. */
.ads-landing .form-block .wpcf7 {
  background: #fff;
  color: var(--ink);
  border-top: 4px solid var(--orange, #f08143);
  padding: 26px 22px;
}

/* Sekcja jest ciemna, karta biała — akapity w karcie wracają do koloru tekstu. */
.ads-landing .form-block .wpcf7 p { color: var(--ink); }

/* ============================================================
   0g. SZERSZE EKRANY — warstwa bazowa
   ============================================================ */
@media (min-width: 640px) {
  .ads-landing .section { padding: 68px 0; }
  .ads-landing .card { padding: 28px 26px; }
}

@media (min-width: 900px) {
  .ads-landing .section { padding: 86px 0; }
  .ads-landing .section-head { margin-bottom: 40px; }
  .ads-landing .form-grid { grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
  .ads-landing .form-block .wpcf7 { padding: 32px 30px; }
}



/* ============================================================
   1. HERO — zdjęcie, obietnica, formularz
   ============================================================ */
.ads-landing .ads-hero {
  position: relative;
  background: var(--graphite);
  color: #fff;
  overflow: hidden;
}

.ads-landing .ads-hero__media { position: absolute; inset: 0; }
.ads-landing .ads-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Przyciemnienie zdjęcia — warunek czytelności nagłówka i paska faktów. */
.ads-landing .ads-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,.86) 0%, rgba(26,26,26,.94) 100%);
}

.ads-landing .ads-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 30px;
  padding-top: 40px; padding-bottom: 44px;
}

.ads-landing .ads-hero h1 { color: #fff; }
.ads-landing .ads-hero__sub { margin-top: 16px; font-size: 1.1rem; color: #e6e6e6; max-width: 34em; }
.ads-landing .ads-hero__actions { margin-top: 26px; }
.ads-landing .ads-hero__actions .btn { display: block; width: 100%; }

.ads-landing .ads-facts { list-style: none; margin-top: 26px; display: grid; gap: 10px; }
.ads-landing .ads-facts li {
  position: relative; padding-left: 26px;
  font-size: 0.96rem; color: #e2e2e2;
}
.ads-landing .ads-facts li::before {
  content: "✔"; position: absolute; left: 0; top: 0;
  color: var(--orange); font-weight: 800;
}

/* ============================================================
   2. KARTA FORMULARZA W HERO
   ============================================================ */
.ads-landing .ads-form-card {
  background: #fff; color: var(--ink);
  border-top: 4px solid var(--orange);
  padding: 26px 22px 28px;
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
  /* Kotwica z CTA nie może wpaść pod przyklejony nagłówek. */
  scroll-margin-top: 74px;
}
.ads-landing .ads-form-card h2 { font-size: 1.5rem; }
.ads-landing .ads-form-card__sub { margin-top: 10px; font-size: 0.94rem; color: var(--ink-soft); }

/* Formularz siedzi już w karcie — własne tło i padding byłyby ramką w ramce. */
.ads-landing .ads-form-card .wpcf7 { background: transparent; padding: 18px 0 0; }

/* Zdanie wyjaśniające nad polami (oba formularze na tej podstronie). */
.ads-landing .form-note {
  font-size: 0.88rem; color: var(--ink-soft);
  border-left: 3px solid var(--orange);
  padding: 8px 0 8px 12px; margin-bottom: 18px;
}

/* ============================================================
   2b. FORMULARZ — Contact Form 7 "formularz-markizy-wycena"

   Wygląd obu formularzy na podstronie: w hero (.ads-form-card) i w sekcji
   końcowej (.form-block). Oba są białą kartą, więc reguły są wspólne.

   Szablon owija każde wystąpienie w .lead-form-cf7[data-form-location] —
   to zaczepienie dla js/cf7-lead.js, nie dla stylów; kartą pozostaje .wpcf7.

   Znaczniki, pod które to napisane, generuje wtyczka:
     .wpcf7-form-control-wrap > input.wpcf7-form-control  — pole
     .wpcf7-not-valid-tip                                 — błąd pod polem
     .wpcf7-acceptance .wpcf7-list-item > label > input   — zgoda
     .wpcf7-response-output                               — komunikat po wysyłce

   Reszta klas (.field, .row2, .req, .field-help, .form-note, .form-micro)
   pochodzi z treści formularza w panelu CF7 — zmiana nazwy tam wymaga zmiany
   także tutaj.
   ============================================================ */

/* Autoformatowanie CF7 wstawia <br> tam, gdzie w treści formularza jest
   przełamanie wiersza — między innymi między etykietą a polem. Układ opisuje
   tu CSS (etykiety i pola są blokowe), więc te przełamania tylko rozstrzeliwują
   odstępy. Gdyby kiedyś potrzebne było celowe przełamanie, wystarczy dać mu
   klasę i wyjąć spod tej reguły. */
.ads-landing .wpcf7-form br { display: none; }
.ads-landing .wpcf7-form p:empty { display: none; }

/* Reset motywu (.w360template *) nadaje position: relative wszystkiemu i
   wygrywa z arkuszem wtyczki, bo ten ładuje się wcześniej — komunikat dla
   czytników ekranu musi więc odzyskać position: absolute. */
.ads-landing .wpcf7 .screen-reader-response { position: absolute; }

/* ---------- Pola ---------- */

.ads-landing .wpcf7-form .field { margin-bottom: 16px; }

/* Dwie kolumny bez media query: karta w hero jest wąska na telefonie i szeroka
   na desktopie, a auto-fit reaguje na szerokość karty, nie ekranu. */
.ads-landing .wpcf7-form .field.row2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px 16px;
}

.ads-landing .wpcf7-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.ads-landing .wpcf7-form .req { color: var(--orange); }

.ads-landing .wpcf7-form .field-help {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-soft);
}

/* Wtyczka owija każde pole w <span>, czyli element liniowy — bez tego
   szerokość 100% i margines pola nie mają się do czego odnieść. */
.ads-landing .wpcf7-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }

.ads-landing .wpcf7-form input[type="text"],
.ads-landing .wpcf7-form input[type="tel"],
.ads-landing .wpcf7-form input[type="email"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  /* 16px — poniżej tej wartości iOS przybliża stronę przy wejściu w pole. */
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ads-landing .wpcf7-form input::placeholder { color: #9a9a9a; }

.ads-landing .wpcf7-form input[type="text"]:focus,
.ads-landing .wpcf7-form input[type="tel"]:focus,
.ads-landing .wpcf7-form input[type="email"]:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240, 129, 67, .22);
}

/* ---------- Pole pliku ---------- */

.ads-landing .wpcf7-form input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  background: var(--grey-bg);
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.ads-landing .wpcf7-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.ads-landing .wpcf7-form input[type="file"]:focus {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Zgoda ---------- */

.ads-landing .wpcf7-form .field--consent { margin: 20px 0; }

.ads-landing .wpcf7-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }

.ads-landing .wpcf7-form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-soft);
  cursor: pointer;
}

/* Kwadrat zgody rysuje motyw (scss/external/_cf7.scss) pseudoelementami ::after
   i ::before o boku 25 px — samo pole musi mieć ten wymiar, żeby znacznik nie
   wchodził na tekst. Motywowy float we flexie i tak nie działa. */
.ads-landing .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  margin: 0;
  float: none;
}

.ads-landing .wpcf7-form .wpcf7-acceptance a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Wysyłka ---------- */

/* [submit class:btn class:btn--primary] — wygląd bierze z .btn--primary,
   tutaj zostaje sama szerokość: przycisk domyka kolumnę pól. */
.ads-landing .wpcf7-form .wpcf7-submit { width: 100%; }

.ads-landing .wpcf7-form .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }

.ads-landing .wpcf7-form .form-micro {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Walidacja i komunikaty ---------- */

.ads-landing .wpcf7-form .wpcf7-not-valid { border-color: #c0392b; }

.ads-landing .wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c0392b;
}

.ads-landing .wpcf7-form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 2px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.45;
}

.ads-landing .wpcf7 form.invalid .wpcf7-response-output,
.ads-landing .wpcf7 form.unaccepted .wpcf7-response-output,
.ads-landing .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #c0392b;
  color: #c0392b;
}

.ads-landing .wpcf7 form.sent .wpcf7-response-output {
  border-color: #2e7d32;
  color: #2e7d32;
}

/* ============================================================
   3. DLACZEGO SOLARO
   ============================================================ */
.ads-landing .ads-cards { grid-template-columns: 1fr; }
.ads-landing .card .ads-card__benefit {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 700; color: var(--ink);
}
.ads-landing .ads-note {
  margin-top: 28px; padding: 18px 20px;
  background: var(--grey-bg); border-left: 4px solid var(--orange);
  font-size: 0.96rem; color: var(--ink-soft);
}

/* ============================================================
   4. KONFIGURACJA — kafle z opcjami
   ============================================================ */
.ads-landing .ads-options { display: grid; grid-template-columns: 1fr; gap: 18px; }
.ads-landing .ads-option {
  background: #fff; border: 1px solid var(--line);
  overflow: hidden; margin: 0;
}
.ads-landing .ads-option img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ads-landing .ads-option figcaption { padding: 18px 20px 22px; }
.ads-landing .ads-option h3 { margin-bottom: 6px; }
.ads-landing .ads-option p { font-size: 0.94rem; color: var(--ink-soft); }

.ads-landing .ads-chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
.ads-landing .ads-chips li {
  background: #fff; border: 1px solid var(--line);
  padding: 8px 14px; font-size: 0.9rem; color: var(--ink-soft);
}

/* ============================================================
   5. PRZEBIEG REALIZACJI
   ============================================================ */
.ads-landing .ads-steps { counter-reset: ads-step; list-style: none; display: grid; gap: 4px; }
.ads-landing .ads-steps li {
  position: relative; padding: 18px 0 18px 52px;
  border-top: 1px solid var(--line);
}
.ads-landing .ads-steps li:last-child { border-bottom: 1px solid var(--line); }
.ads-landing .ads-steps li::before {
  counter-increment: ads-step; content: counter(ads-step);
  position: absolute; left: 0; top: 18px;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--graphite); color: #fff;
  font-family: var(--font-head); font-size: 1rem;
}
.ads-landing .ads-steps h3 { margin-bottom: 4px; }
.ads-landing .ads-steps p { color: var(--ink-soft); font-size: 0.96rem; }

/* ============================================================
   6. REALIZACJE
   ============================================================ */
/* Na telefonie galeria jest suwakiem — przewijanie palcem plus zatrzask
   na kolejnym zdjęciu. Od 640 px (niżej) wraca zwykła siatka. */
.ads-landing .ads-gallery {
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Miejsce na obrys fokusu miniatury — inaczej ucina go krawędź suwaka. */
  padding: 4px;  margin: -4px;
}
.ads-landing .ads-gallery::-webkit-scrollbar { display: none; }
.ads-landing .ads-gallery__item {
  display: block; position: relative; overflow: hidden;
  border: 1px solid var(--line); background: var(--grey-bg-2);
  cursor: zoom-in;
  /* Wystający skrawek kolejnego zdjęcia mówi, że galerię da się przewinąć. */
  flex: 0 0 86%; scroll-snap-align: start;
}

/* Kropki suwaka — buduje je JS, na szerszych ekranach znikają. */
.ads-landing .ads-gallery__dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 16px;
}
.ads-landing .ads-gallery__dots:empty { display: none; }
.ads-landing .ads-gallery__dot {
  width: 9px; height: 9px; padding: 0;
  border: 1px solid var(--ink-soft); background: none;
  cursor: pointer; transition: background-color .2s ease;
}
.ads-landing .ads-gallery__dot.is-active { background: var(--orange); border-color: var(--orange); }
.ads-landing .ads-gallery img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .35s ease;
}
.ads-landing .ads-gallery__item:hover img,
.ads-landing .ads-gallery__item:focus-visible img { transform: scale(1.04); }

/* Znacznik lupy — sygnalizuje, że zdjęcie da się powiększyć. */
.ads-landing .ads-gallery__item::after {
  content: "\2295";
  position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(26,26,26,.72); color: #fff;
  font-size: 1.1rem; line-height: 1;
  opacity: 0; transition: opacity .25s ease;
}
.ads-landing .ads-gallery__item:hover::after,
.ads-landing .ads-gallery__item:focus-visible::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .ads-landing .ads-gallery img { transition: none; }
  .ads-landing .ads-gallery__item:hover img,
  .ads-landing .ads-gallery__item:focus-visible img { transform: none; }
}

/* ============================================================
   6b. LIGHTBOX — powiększone zdjęcie realizacji
   Warstwę buduje JS (assets/js/landing.js) i dokleja do <body>,
   dlatego selektory nie są zagnieżdżone w .ads-landing.
   ============================================================ */
.ads-lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ads-lightbox[hidden] { display: none; }
.ads-lightbox__backdrop { position: absolute; inset: 0; background: rgba(15,15,15,.88); }

.ads-lightbox__figure {
  position: relative; z-index: 1;
  margin: 0; max-width: 1100px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ads-lightbox__img {
  display: block; max-width: 100%; max-height: calc(100vh - 150px);
  width: auto; height: auto; object-fit: contain;
  background: var(--graphite-2);
}
.ads-lightbox__caption {
  color: #e8e8e8; font-size: 0.92rem; text-align: center;
  max-width: 70ch;
}
.ads-lightbox__count { color: #9a9a9a; font-size: 0.8rem; font-weight: 700; }

.ads-lightbox__close,
.ads-lightbox__nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  background: rgba(26,26,26,.72); color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  cursor: pointer; line-height: 1;
}
.ads-lightbox__close {
  top: 14px; right: 14px;
  width: 44px; height: 44px; font-size: 1.6rem;
}
.ads-lightbox__nav {
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 64px; font-size: 1.7rem;
}
.ads-lightbox__nav--prev { left: 10px; }
.ads-lightbox__nav--next { right: 10px; }
.ads-lightbox__close:hover,
.ads-lightbox__nav:hover { background: var(--orange); border-color: var(--orange); }
.ads-lightbox__close:focus-visible,
.ads-lightbox__nav:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

body.has-lightbox { overflow: hidden; }

/* ============================================================
   7. DOSTĘPNOŚĆ — czytelny fokus klawiatury
   ============================================================ */
.ads-landing a:focus-visible,
.ads-landing button:focus-visible,
.ads-landing summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.ads-landing .ads-hero a:focus-visible { outline-color: #fff; }

/* Kotwice sekcji — nagłówek witryny jest przyklejony. */
.ads-landing section[id] { scroll-margin-top: 74px; }

/* ============================================================
   8. SZERSZE EKRANY
   ============================================================ */
@media (min-width: 640px) {
  .ads-landing .ads-hero__actions .btn { display: inline-block; width: auto; }
  .ads-landing .ads-facts { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .ads-landing .ads-options { grid-template-columns: 1fr 1fr; }
  /* Koniec suwaka — od tej szerokości mieszczą się dwie kolumny obok siebie. */
  .ads-landing .ads-gallery {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    overflow: visible; padding: 0; margin: 0;
  }
  .ads-landing .ads-gallery__dots { display: none; }
  .ads-landing .ads-cards { grid-template-columns: 1fr 1fr; }
  .ads-landing .ads-form-card { padding: 30px 28px 32px; }
}

@media (min-width: 900px) {
  .ads-landing .ads-hero__grid {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 46px; align-items: center;
    padding-top: 58px; padding-bottom: 62px;
  }
  /* Na desktopie zdjęcie zostaje widoczne po lewej, formularz po prawej. */
  .ads-landing .ads-hero__media::after {
    background: linear-gradient(90deg, rgba(26,26,26,.95) 0%, rgba(26,26,26,.88) 46%, rgba(26,26,26,.62) 100%);
  }
  .ads-landing .ads-hero__sub { font-size: 1.18rem; }
  .ads-landing .ads-gallery { grid-template-columns: repeat(3, 1fr); }
  .ads-landing .ads-options { grid-template-columns: repeat(4, 1fr); }
  .ads-landing .ads-steps { grid-template-columns: 1fr 1fr; gap: 0 40px; }
}

/* ============================================================
   9. PODZIĘKOWANIE — strona po wysłaniu formularza

   Obsługuje page-dziekujemy-markizy.php. Sekcja stoi po sekcji 8, ale
   trzyma własne @media na końcu — cała strona podziękowania jest wtedy
   w jednym miejscu, a to krótki blok bez wpływu na resztę landingu.

   Reguły korzystają z warstwy bazowej: .container, .btn, .eyebrow i tokeny
   kolorów są wspólne z landingiem, żeby strona po wysłaniu formularza
   wyglądała jak przedłużenie tej, z której użytkownik przyszedł.
   ============================================================ */
.ads-landing .thanks { padding: 40px 0 60px; }

.ads-landing .thanks-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 20px 34px;
  border: 1px solid var(--line);
  background: #fff;
}

/* Znacznik potwierdzenia — pierwsza rzecz, którą widać po wysłaniu. */
.ads-landing .thanks-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--orange, #f08143);
  color: #fff;
}

.ads-landing .thanks-mark svg {
  width: 27px;
  height: 27px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ads-landing .thanks h1 { margin-bottom: 14px; }

.ads-landing .thanks-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* Numerowanie własnym licznikiem — reset motywu (.w360template *) zeruje
   padding list, więc domyślne znaczniki <ol> i tak nie miałyby gdzie stanąć. */
.ads-landing .thanks-steps {
  counter-reset: krok;
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
}

.ads-landing .thanks-steps li {
  counter-increment: krok;
  position: relative;
  padding-left: 44px;
  min-height: 30px;
}

.ads-landing .thanks-steps li::before {
  content: counter(krok);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--graphite);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}

.ads-landing .thanks-hint {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.ads-landing .thanks-hint a {
  color: var(--orange, #f08143);
  font-weight: 700;
  white-space: nowrap;
}

/* Dwa przyciski obok siebie; na telefonie każdy w swoim wierszu. */
.ads-landing .cta-row--left {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ads-landing .cta-row--left .btn { flex: 1 1 100%; }

/* Wariant obrysowany — wygląd bierze z .btn, dokłada tylko stan najazdu.
   Bez tego drugi przycisk nie reagowałby na kursor. */
.ads-landing .btn--outline:hover,
.ads-landing .btn--outline:focus {
  background: var(--orange, #f08143);
  border-color: var(--orange, #f08143);
  color: #fff;
}

.ads-landing .thanks-id {
  margin-top: 22px;
  font-size: .86rem;
  color: var(--ink-soft);
}

.ads-landing .thanks-id span {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .06em;
}

@media (min-width: 640px) {
  .ads-landing .thanks { padding: 56px 0 76px; }
  .ads-landing .thanks-card { padding: 42px 44px 46px; }
  .ads-landing .cta-row--left .btn { flex: 0 0 auto; }
}
