/* =========================================================
   Assistance Samochodu – style sekcji strony głównej
   Mobile-first. Działa z motywem Astra + bloki Gutenberga.
   Wszystkie klasy mają prefiks "as-".
   ========================================================= */

:root {
  --as-navy: #16364A;
  --as-navy-900: #0F2634;
  --as-orange: #F2762E;
  --as-orange-600: #DE6420;
  --as-orange-50: #FFF1E8;
  --as-red: #D23C2A;
  --as-red-600: #B52F1F;
  --as-red-50: #FDECEA;
  --as-red-light: #FF8F80;
  --as-green: #1F8A70;
  --as-bg: #F4F6F8;
  --as-line: #E3E8EC;
  --as-text: #3E505C;
  --as-muted: #5A6B78;
  --as-light: #C9D5DD;
  --as-white: #FFFFFF;
  --as-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --as-pad: 20px;
  --as-wrap: 1200px;
  --as-radius: 20px;

  --as-ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
  --as-ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
  --as-ico-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3-8.7A2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2.2z'/%3E%3C/svg%3E");
  --as-ico-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  --as-ico-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2.5 20h19L12 3z'/%3E%3Cpath d='M12 9v5'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  --as-ico-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ---------- Reset w obrębie sekcji (neutralizuje marginesy Astry i WP) ---------- */
.as-section,
.as-section *,
.as-topbar, .as-topbar *,
.as-mobilebar, .as-mobilebar * { box-sizing: border-box; }

.as-section {
  font-family: var(--as-font);
  color: var(--as-navy);
  -webkit-font-smoothing: antialiased;
  scroll-margin-top: 80px;
}
.as-section :where(p, h1, h2, h3, h4, ul, ol, figure, details, table) { margin: 0; }
.as-section :where(.is-layout-flow, .is-layout-constrained, .wp-block-cover__inner-container) > * { margin-block: 0; max-width: none; }
.as-section :where(ul, ol) { padding: 0; list-style: none; }
.as-section a { color: inherit; text-decoration: none; transition: color .15s ease; }
.as-section a:hover { color: var(--as-orange); }
.as-section p, .as-section li { font-family: var(--as-font); }
.as-section :where(h1, h2, h3) { font-family: var(--as-font); color: inherit; }

body .entry-content > .as-section.alignfull,
body .entry-content > .as-section {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  max-width: none !important;
  width: 100%;
}

/* Kontener 1200 px */
.as-wrap {
  width: 100%;
  max-width: var(--as-wrap);
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- Typografia ---------- */
.as-eyebrow {
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--as-orange);
  line-height: 1.4;
}
.as-section .as-h1 {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.025em;
}
.as-section .as-h2 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}
.as-section .as-h3 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
}
.as-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--as-text);
}
.as-text { font-size: 15px; line-height: 1.55; color: var(--as-text); }
.as-small { font-size: 13px; line-height: 1.45; color: var(--as-muted); }
.as-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.as-head--center { align-items: center; text-align: center; margin-inline: auto; }

/* ---------- Przyciski ---------- */
.as-section .as-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.as-section .as-btn { margin: 0; }
.as-section .as-btn > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-family: var(--as-font);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
  box-shadow: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.as-section .as-btn--primary > .wp-block-button__link { background: var(--as-orange); color: #fff; border-color: var(--as-orange); }
.as-section .as-btn--primary > .wp-block-button__link:hover { background: var(--as-orange-600); border-color: var(--as-orange-600); color: #fff; }
.as-section .as-btn--outline > .wp-block-button__link { background: #fff; color: var(--as-navy); border-color: var(--as-navy); }
.as-section .as-btn--outline > .wp-block-button__link:hover { background: var(--as-navy); color: #fff; }
.as-section .as-btn--ghost > .wp-block-button__link { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); }
.as-section .as-btn--ghost > .wp-block-button__link:hover { background: rgba(255,255,255,.18); color: #fff; }
.as-section .as-btn--arrow > .wp-block-button__link::after {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--as-ico-arrow) center / contain no-repeat; mask: var(--as-ico-arrow) center / contain no-repeat;
}
.as-section .as-btn--phone > .wp-block-button__link::before {
  content: ""; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: var(--as-ico-phone) center / contain no-repeat; mask: var(--as-ico-phone) center / contain no-repeat;
}
.as-section .as-btn--xl > .wp-block-button__link { min-height: 56px; font-size: 22px; letter-spacing: .02em; border-radius: 14px; }
.as-btns--stack .as-btn, .as-btns--stack .as-btn > .wp-block-button__link { width: 100%; }

.as-link-arrow a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 700; border-bottom: 2px solid var(--as-orange);
}
.as-link-arrow a::after {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--as-ico-arrow) center / contain no-repeat; mask: var(--as-ico-arrow) center / contain no-repeat;
}

/* Listy z ptaszkiem */
.as-checks { display: grid; gap: 10px; }
.as-checks li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.45; margin: 0; }
.as-checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; background: var(--as-green);
  -webkit-mask: var(--as-ico-check) center / contain no-repeat; mask: var(--as-ico-check) center / contain no-repeat;
}

/* Ikony w blokach HTML */
.as-ico { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.as-ico svg { display: block; }
.as-ico--box { width: 48px; height: 48px; border-radius: 14px; background: var(--as-navy); }
.as-ico--soft { width: 40px; height: 40px; border-radius: 12px; background: var(--as-orange-50); }

/* =========================================================
   DWA NUMERY: awaria (czerwony) vs doradca (granat)
   ========================================================= */
.as-ico--sos { width: 40px; height: 40px; border-radius: 12px; background: var(--as-red-50); }
.as-hero-card__title a { color: var(--as-red) !important; white-space: nowrap; }
.as-section .as-btn--sos > .wp-block-button__link { background: var(--as-red); color: #fff; border-color: var(--as-red); }
.as-section .as-btn--sos > .wp-block-button__link:hover { background: var(--as-red-600); border-color: var(--as-red-600); color: #fff; }
.as-eyebrow.as-eyebrow--sos { color: var(--as-red-light); }
.as-contact--sos { box-shadow: inset 0 0 0 2px var(--as-red); }
.as-contact--sos .as-small { color: var(--as-light); }
.as-step a { color: var(--as-red); font-weight: 800; white-space: nowrap; }
.as-split__intro .as-text a { font-weight: 800; white-space: nowrap; }
.as-footer__contact { display: flex !important; flex-direction: column; gap: 6px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }
.as-footer__phone { font-size: 14px !important; color: var(--as-light); }
.as-footer__phone a { color: #fff !important; font-weight: 800; white-space: nowrap; }
.as-footer__phone--sos a { color: var(--as-red-light) !important; }
.as-topbar__alert::before { background: var(--as-red-light) !important; }
.as-topbar .as-topbar__usp a { font-weight: 800; }

/* Nagłówek: przycisk awaryjny (mobile) i numer doradcy (desktop) – do elementów HTML w Astrze */
.as-sos {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px;
  background: #fff; color: var(--as-red) !important; border: 1.5px solid var(--as-red); font-family: var(--as-font); font-size: 13px; font-weight: 800; line-height: 1.1;
  text-decoration: none !important; white-space: nowrap; transition: background-color .15s ease;
}
.as-sos::before {
  content: ""; width: 16px; height: 16px; flex-shrink: 0; background: currentColor;
  -webkit-mask: var(--as-ico-warn) center / contain no-repeat; mask: var(--as-ico-warn) center / contain no-repeat;
}
.as-sos:hover { background: var(--as-red-50); }
.as-advisor {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px;
  font-family: var(--as-font); color: var(--as-navy) !important; text-decoration: none !important; line-height: 1.15;
}
.as-advisor::before {
  content: ""; width: 20px; height: 20px; flex-shrink: 0; background: currentColor;
  -webkit-mask: var(--as-ico-phone) center / contain no-repeat; mask: var(--as-ico-phone) center / contain no-repeat;
}
.as-advisor small { display: block; font-size: 11px; font-weight: 700; color: var(--as-muted); letter-spacing: .02em; }
.as-advisor strong { display: block; font-size: 15px; font-weight: 800; }
@media (max-width: 899px) {
  .as-advisor { gap: 0; padding: 5px 10px; min-height: 44px; border: 1.5px solid var(--as-navy); border-radius: 12px; background: #fff; }
  .as-advisor::before { display: none; }
  .as-advisor small { font-size: 10px; line-height: 1.15; white-space: nowrap; letter-spacing: 0; }
  .as-advisor strong { font-size: 13.5px; margin-top: 1px; white-space: nowrap; }
}

/* =========================================================
   LOGO (B01.09 „Naklejka”) – HTML/CSS, czcionka Manrope
   Rozmiar sterowany font-size na .as-logo (= wielkość „assistance”).
   ========================================================= */
.as-logo {
  display: inline-flex; align-items: baseline; gap: .28em;
  font-family: var(--as-font); font-size: 20px; line-height: 1; white-space: nowrap;
  text-decoration: none !important;
}
.as-logo__pill {
  display: inline-flex; align-items: baseline; padding: .35em .49em; border-radius: 999px;
  background: var(--as-navy); color: #fff; font-weight: 800; letter-spacing: -.03em; line-height: 1;
}
.as-logo__word { display: block; line-height: 1; text-box: trim-both cap alphabetic; }
.as-logo__i {
  /* litera „i”: kreska = tło, trójkąt = ::before; dół elementu leży na linii pisma */
  position: relative; display: inline-block; width: .30em; height: 1em;
  background: linear-gradient(currentColor, currentColor) center bottom / .16em .54em no-repeat;
}
.as-logo__i::before {
  content: ""; position: absolute; left: 50%; top: .11em; width: .33em; height: .32em; transform: translateX(-50%);
  background: var(--as-orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 2 L28.5 28 H1.5 Z' fill='black' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 2 L28.5 28 H1.5 Z' fill='black' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.as-logo__sub { font-size: .795em; font-weight: 600; letter-spacing: -.02em; color: var(--as-navy); line-height: 1; }
.as-logo:hover .as-logo__sub { color: var(--as-orange); }
.as-logo--light .as-logo__pill { background: #fff; color: var(--as-navy); }
.as-logo--light .as-logo__sub { color: #fff; }
@media (max-width: 599px) { .as-logo { font-size: 16px; } }
@media (max-width: 374px) { .as-logo { font-size: 14px; gap: .22em; } }
@media (min-width: 900px) { .as-logo { font-size: 22px; } }

/* =========================================================
   PASEK ALARMOWY (wtyczka – wp_body_open)
   ========================================================= */
.as-topbar {
  background: var(--as-navy); color: #fff; font-family: var(--as-font);
  font-size: 13px; font-weight: 600; padding: 9px var(--as-pad);
}
.as-topbar__in { max-width: var(--as-wrap); margin: 0 auto !important; display: flex !important; flex-direction: row !important; justify-content: center; align-items: center; gap: 12px; }
.as-topbar p { margin: 0 !important; font-size: 13px; line-height: 1.4; color: inherit; }
.as-topbar__alert { display: block; min-width: 0; text-align: center; }
.as-topbar__alert::before {
  content: ""; display: inline-block; vertical-align: -4px; width: 18px; height: 18px; margin-right: 7px; background: var(--as-orange);
  -webkit-mask: var(--as-ico-warn) center / contain no-repeat; mask: var(--as-ico-warn) center / contain no-repeat;
}
.as-topbar a { color: #fff !important; font-weight: 800; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.as-topbar a:hover { color: var(--as-orange) !important; }
.as-topbar .as-topbar__long { display: none; }
.as-topbar .as-topbar__usp { display: none; color: var(--as-light); word-spacing: .1em; }

/* =========================================================
   HERO (blok Okładka / Cover)
   ========================================================= */
.as-section.as-hero {
  position: relative;
  min-height: 0 !important;
  padding: 0 !important;
  display: block;
  background: var(--as-navy);
  color: #fff;
  overflow: hidden;
}
.as-hero .wp-block-cover__image-background {
  position: absolute; inset: 0 0 auto 0; width: 100%; height: 340px !important;
  object-fit: cover; object-position: 72% 30% !important;
}
.as-hero .wp-block-cover__background {
  position: absolute; inset: 0; opacity: 1 !important; z-index: 1;
  background: linear-gradient(180deg, rgba(22,54,74,.15) 0px, rgba(22,54,74,.55) 160px, var(--as-navy) 330px) !important;
}
.as-hero .wp-block-cover__inner-container {
  position: relative; z-index: 2; width: 100%; color: #fff;
  padding: 150px var(--as-pad) 96px;
}
.as-hero__grid { gap: 20px; }
.as-hero__copy { display: flex; flex-direction: column; gap: 18px; max-width: 600px; }
.as-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(15,38,52,.55); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 10.5px !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff;
}
.as-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--as-orange); flex-shrink: 0; }
.as-hero .as-h1 { color: #fff; }
.as-hero .as-lead { color: #DCE5EB; }
.as-hero .as-btns { flex-direction: column; }
.as-hero .as-btn, .as-hero .as-btn > .wp-block-button__link { width: 100%; }
.as-hero .as-checks { grid-template-columns: 1fr; gap: 8px; margin-top: 2px; }
.as-hero .as-checks li { color: #fff; font-size: 14px; font-weight: 600; padding-left: 26px; }
.as-hero .as-checks li::before { background: var(--as-orange); width: 18px; height: 18px; }

.as-hero-card {
  display: flex; align-items: flex-start; gap: 14px; flex-direction: row !important;
  background: #fff; color: var(--as-navy); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(15,38,52,.25); max-width: 420px;
}
.as-hero-card__txt { display: flex; flex-direction: column; gap: 2px; }
.as-hero-card__title { font-size: 14px !important; font-weight: 800; color: var(--as-navy); }
.as-hero-card .as-small { color: var(--as-muted); }

/* =========================================================
   LICZBY
   ========================================================= */
.as-stats, body .entry-content > .as-stats { padding: 0 var(--as-pad); background: #fff; position: relative; z-index: 3; }
.as-stats .as-wrap { margin-top: -64px !important; }
.as-stats__box {
  display: grid !important; grid-template-columns: 1fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--as-line); border-radius: var(--as-radius);
  box-shadow: 0 16px 40px rgba(22,54,74,.10); overflow: hidden;
}
.as-stat { padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; border-color: var(--as-line); border-style: solid; border-width: 0; }
.as-stat:nth-child(odd) { border-right-width: 1px; }
.as-stat:nth-child(-n+2) { border-bottom-width: 1px; }
.as-stat__value { font-size: 24px !important; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--as-navy); }
.as-stat__label { font-size: 12.5px !important; font-weight: 600; line-height: 1.4; color: var(--as-muted); }

/* =========================================================
   SEKCJE – wspólne odstępy
   ========================================================= */
.as-pad, body .entry-content > .as-pad { padding: 56px var(--as-pad); }
.as-bg-soft { background: var(--as-bg); }
.as-bg-navy { background: var(--as-navy); color: #fff; }
.as-bg-navy .as-lead, .as-bg-navy .as-text { color: var(--as-light); }

/* Siatki */
.as-grid { display: grid !important; gap: 14px; grid-template-columns: 1fr; }

/* Karty „Kiedy działa” */
.as-card {
  background: var(--as-bg); border-radius: var(--as-radius); padding: 20px;
  display: grid !important; grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 6px; align-items: start; align-content: start;
}
.as-card > .as-ico { grid-row: span 2; }
.as-card .as-h3 { align-self: center; }

/* Świadczenia */
.as-split { display: flex; flex-direction: column; gap: 28px; }
.as-split__intro { display: flex; flex-direction: column; gap: 12px; }
.as-benefit {
  display: flex !important; flex-direction: row !important; gap: 14px; padding: 16px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.as-benefit__txt { display: flex; flex-direction: column; gap: 4px; }
.as-benefit__title { font-size: 16px !important; font-weight: 800; color: #fff; }
.as-benefit .as-small { color: var(--as-light); font-size: 14px !important; line-height: 1.5; }
.as-bg-navy .as-link-arrow a { color: #fff; }

/* =========================================================
   DOBIERZ PAKIET (suwak)
   ========================================================= */
.as-picker, body .entry-content > .as-picker { padding: 56px var(--as-pad) 0; }
.as-picker__box {
  background: var(--as-navy); color: #fff; border-radius: 24px; padding: 28px 20px;
  display: flex; flex-direction: column; gap: 24px;
}
.as-picker__intro { display: flex; flex-direction: column; gap: 10px; }
.as-picker__intro .as-lead { color: var(--as-light); font-size: 15px; }
.as-picker__ctrl { display: flex; flex-direction: column; gap: 14px; }
.as-picker__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.as-picker__label { font-size: 14px; font-weight: 700; }
.as-picker__km { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.as-range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; cursor: pointer; }
.as-range:focus-visible { outline: 2px solid var(--as-orange); outline-offset: 4px; border-radius: 8px; }
.as-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--as-orange) 0 var(--p, 40%), rgba(255,255,255,.22) var(--p, 40%) 100%); }
.as-range::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.22); }
.as-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--as-orange); }
.as-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 6px solid var(--as-orange); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.as-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--as-orange); }
.as-scale { position: relative; height: 10px; border-radius: 99px; background: #2B4A5E; overflow: hidden; }
.as-scale__cover { position: absolute; inset: 0 auto 0 0; background: #9FB3C1; transition: width .25s ease; }
.as-scale__dist { position: absolute; inset: 0 auto 0 0; background: var(--as-orange); transition: width .1s linear; }
.as-scale__tick { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--as-navy); opacity: .9; }
.as-scale-legend { position: relative; height: 16px; font-size: 11px; font-weight: 600; color: var(--as-light); white-space: nowrap; }
.as-scale-legend span { position: absolute; top: 0; transform: translateX(-50%); }
.as-scale-legend span:first-child { transform: none; }
.as-scale-legend span:last-child { transform: translateX(-100%); }
.as-scale-legend em { font-style: normal; display: none; }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.as-chip {
  font-family: var(--as-font); font-size: 13px; font-weight: 700; color: #fff;
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.4); transition: all .15s ease;
}
.as-chip:hover { border-color: #fff; }
.as-chip[aria-pressed="true"] { background: #fff; color: var(--as-navy); border-color: #fff; }
.as-result { background: #fff; color: var(--as-navy); border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.as-result__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--as-muted); }
.as-result__name { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--as-orange); }
.as-result__desc { font-size: 14px; line-height: 1.5; color: var(--as-text); }
.as-result__note { font-size: 12.5px; line-height: 1.45; color: var(--as-muted); background: var(--as-bg); border-radius: 10px; padding: 8px 10px; }
.as-result__note[hidden] { display: none; }
.as-result dl { margin: 0; display: flex; flex-direction: column; }
.as-result dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--as-line); font-size: 14px; }
.as-result dt { color: var(--as-muted); }
.as-result dt small { display: block; font-size: 11.5px; line-height: 1.3; opacity: .85; }
.as-zone { display: inline-flex; align-self: flex-start; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); }
.as-zone button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-family: var(--as-font); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.as-zone button[aria-pressed="true"] { background: #fff; color: var(--as-navy); }
@media (max-width: 899px) {
  .as-zone { align-self: center; margin-top: 24px; }
}
.as-scale__tick, .as-scale-legend span { transition: left .25s ease; }
.as-result dd { margin: 0; font-weight: 800; text-align: right; }
.as-result dd.as-result__price { font-size: 20px; }
.as-result__cta {
  display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 12px;
  background: var(--as-orange); color: #fff !important; font-size: 15px; font-weight: 800; text-decoration: none;
}
.as-result__cta:hover { background: var(--as-orange-600); }

/* =========================================================
   PAKIETY
   ========================================================= */
.as-period {
  display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--as-line); margin-top: 6px;
}
.as-period button {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--as-navy);
  font-family: var(--as-font); font-size: 14px; font-weight: 700; cursor: pointer;
}
.as-period button[aria-pressed="true"] { background: var(--as-navy); color: #fff; }

.as-plans {
  display: flex !important; flex-wrap: nowrap !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--as-pad) * -1) !important; padding: 18px var(--as-pad) 8px; scrollbar-width: none;
}
.as-plans::-webkit-scrollbar { display: none; }
.as-plan {
  position: relative; flex: 0 0 84%; scroll-snap-align: center;
  background: #fff; border: 1px solid var(--as-line); border-radius: 22px; padding: 24px 22px;
  display: flex !important; flex-direction: column; gap: 16px;
}
.as-plan--featured { border: 2px solid var(--as-orange); box-shadow: 0 16px 40px rgba(22,54,74,.12); }
.as-plan__badge {
  position: absolute; top: -13px; left: 22px; padding: 5px 12px; border-radius: 999px;
  background: var(--as-orange); color: #fff; font-size: 11px !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.as-plan__head { display: flex; flex-direction: column; gap: 4px; }
.as-plan .as-h3 { font-size: 22px; }
.as-plan__sub { font-size: 14px !important; color: var(--as-muted); }
.as-price-row { display: flex !important; flex-direction: row !important; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.as-price { font-size: 40px !important; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.as-price.is-calc { font-size: 22px !important; letter-spacing: -.01em; }
.as-price-per { font-size: 14px !important; font-weight: 600; color: var(--as-muted); }
.as-plan .as-checks { gap: 10px; }
.as-plan .as-btns { margin-top: auto; }
.as-plan .as-btn, .as-plan .as-btn > .wp-block-button__link { width: 100%; }
.as-plan .as-btn > .wp-block-button__link { min-height: 48px; font-size: 15px; }
.as-dots { display: flex; justify-content: center; gap: 8px; }
.as-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #C9D5DD; cursor: pointer; transition: all .2s ease; }
.as-dots button[aria-current="true"] { width: 22px; background: var(--as-navy); }

/* Tabela porównania */
.as-section .as-table {
  display: flex; flex-direction: column-reverse; background: #fff; border: 1px solid var(--as-line); border-radius: var(--as-radius);
  overflow: hidden; margin: 0;
}
.as-section .as-table figcaption { text-align: left; padding: 16px 14px 8px; margin: 0; font-size: 15px; font-weight: 800; color: var(--as-navy); }
.as-section .as-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.35; table-layout: fixed; margin: 0; border: 0; }
.as-section .as-table th, .as-section .as-table td { border: 0; border-top: 1px solid var(--as-line); padding: 10px 6px; text-align: left; vertical-align: top; color: var(--as-navy); }
.as-section .as-table th:first-child, .as-section .as-table td:first-child { padding-left: 14px; width: 34%; font-weight: 600; }
.as-section .as-table thead th { background: var(--as-bg); font-weight: 800; border-top: 0; font-size: 11.5px; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
.as-section .as-table thead th:first-child { color: var(--as-muted); font-weight: 700; }
.as-section .as-table thead th:nth-child(3) { color: var(--as-orange); }
.as-section .as-table td[colspan] { color: var(--as-text); }
.as-footnote { font-size: 13px !important; line-height: 1.6; color: var(--as-muted); }
.as-footnote a { font-weight: 700; text-decoration: underline !important; }

/* Tabela na telefonie: każdy wiersz jako karta z etykietami pakietów */
@media (max-width: 599px) {
  .as-section .as-table thead { display: none; }
  .as-section .as-table table, .as-section .as-table tbody { display: block; }
  .as-section .as-table tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 10px; padding: 12px 14px; border-top: 1px solid var(--as-line); }
  .as-section .as-table td, .as-section .as-table td:first-child { border: 0; padding: 0; width: auto; font-size: 14px; }
  .as-section .as-table td:first-child { grid-column: 1 / -1; font-weight: 800; font-size: 14px; padding-bottom: 6px; }
  .as-section .as-table td:not(:first-child)::before {
    display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--as-muted); margin-bottom: 2px;
  }
  .as-section .as-table td:nth-child(2)::before { content: "Standard"; }
  .as-section .as-table td:nth-child(3)::before { content: "Comfort"; color: var(--as-orange); }
  .as-section .as-table td:nth-child(4)::before { content: "Premium"; }
  .as-section .as-table td[colspan] { grid-column: 1 / -1; }
  .as-section .as-table td[colspan]::before { content: none; }
  .as-section .as-table figcaption { padding-bottom: 12px; }
}

/* =========================================================
   JAK TO DZIAŁA
   ========================================================= */
.as-steps { display: flex !important; flex-direction: column; gap: 0; }
.as-step { position: relative; padding: 0 0 24px 56px; display: flex; flex-direction: column; gap: 6px; }
.as-step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--as-line); }
.as-step__num {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--as-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px !important; font-weight: 800;
}
.as-step .as-h3 { padding-top: 8px; }

/* =========================================================
   POMOC SERWISOWA
   ========================================================= */
.as-service, body .entry-content > .as-service { padding: 0 var(--as-pad) 56px; }
.as-service__box { background: var(--as-bg); border-radius: 24px; padding: 28px 20px; display: flex; flex-direction: column; gap: 22px; }
.as-service__top { display: grid !important; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; }
.as-service__wheel svg { width: 84px; height: 84px; animation: as-spin 16s linear infinite; }
@keyframes as-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .as-service__wheel svg { animation: none; } }
.as-service__copy { display: flex; flex-direction: column; gap: 8px; }
.as-service__copy .as-h2 { font-size: 22px; }
.as-tiles { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.as-tile > * { min-width: 0; }
.as-tile { background: #fff; border-radius: 14px; padding: 14px 12px; display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; }
.as-tile p { font-size: 13.5px !important; font-weight: 700; line-height: 1.3; color: var(--as-navy); }

/* =========================================================
   DLACZEGO TUTAJ
   ========================================================= */
.as-why, body .entry-content > .as-why { padding: 0 var(--as-pad) 56px; }
.as-why__box { background: var(--as-orange-50); border-radius: 24px; padding: 28px 20px; display: flex; flex-direction: column; gap: 22px; }
.as-why__intro { display: flex; flex-direction: column; gap: 10px; }
.as-why__item { background: #fff; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.as-why__title { font-size: 14.5px !important; font-weight: 800; line-height: 1.3; }

/* =========================================================
   FAQ
   ========================================================= */
.as-faq-list { display: flex !important; flex-direction: column; gap: 10px; }
.as-section .as-faq { background: #fff; border: 1px solid var(--as-line); border-radius: 16px; padding: 0 18px; }
.as-section .as-faq summary {
  cursor: pointer; list-style: none; min-height: 56px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 15.5px; font-weight: 800; line-height: 1.35; color: var(--as-navy);
}
.as-section .as-faq summary::-webkit-details-marker { display: none; }
.as-section .as-faq summary::marker { content: ""; }
.as-section .as-faq summary::after {
  content: ""; width: 20px; height: 20px; flex-shrink: 0; background: var(--as-orange); transition: transform .2s ease;
  -webkit-mask: var(--as-ico-chevron) center / contain no-repeat; mask: var(--as-ico-chevron) center / contain no-repeat;
}
.as-section .as-faq[open] summary::after { transform: rotate(180deg); }
.as-section .as-faq > p { font-size: 15px; line-height: 1.6; color: var(--as-text); padding-bottom: 16px; margin: 0; }

/* =========================================================
   KONTAKT
   ========================================================= */
.as-contact-grid { display: grid !important; grid-template-columns: 1fr; gap: 14px; }
.as-contact { border-radius: 24px; padding: 28px 22px; display: flex !important; flex-direction: column; gap: 14px; }
.as-contact--navy { background: var(--as-navy); color: #fff; }
.as-contact--navy .as-lead { color: var(--as-light); }
.as-contact--soft { background: var(--as-bg); }
.as-contact .as-h2 { font-size: 24px; }
.as-contact-line a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 700; }
.as-contact-line a::before {
  content: ""; width: 20px; height: 20px; flex-shrink: 0; background: var(--as-orange);
  -webkit-mask: var(--as-ico-mail) center / contain no-repeat; mask: var(--as-ico-mail) center / contain no-repeat;
}
.as-contact-line--phone a::before { -webkit-mask-image: var(--as-ico-phone); mask-image: var(--as-ico-phone); }
.as-contact--soft .as-contact-line a::before { background: var(--as-navy); }
.as-contact .as-btns { margin-top: 4px; }

/* =========================================================
   STOPKA
   ========================================================= */
.as-footer { background: var(--as-navy-900); color: var(--as-light); padding: 44px var(--as-pad) 104px; }
.as-footer a { color: var(--as-light); }
.as-footer a:hover { color: #fff; }
.as-footer__grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.as-footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.as-footer__logo { display: flex; }
.as-footer__brand .as-small { color: var(--as-light); max-width: 380px; line-height: 1.6; }
.as-footer__col { display: flex; flex-direction: column; gap: 10px; }
.as-footer__title { font-size: 12px !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.as-footer__col ul { display: flex; flex-direction: column; gap: 4px; }
.as-footer__col li { font-size: 14px; margin: 0; }
.as-footer__col li a { display: inline-flex; align-items: center; min-height: 32px; }
.as-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; display: flex !important; flex-direction: column; gap: 8px; }
.as-footer__bottom p { font-size: 12px !important; color: #9FB3C1; line-height: 1.5; }

/* =========================================================
   MOBILNY PASEK CTA (wtyczka – wp_footer)
   ========================================================= */
.as-mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
  display: flex; justify-content: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--as-line); box-shadow: 0 -8px 24px rgba(22,54,74,.10);
  font-family: var(--as-font);
  transform: translateY(110%); transition: transform .25s ease;
}
.as-mobilebar.is-visible { transform: none; }
.as-mobilebar a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px;
  font-size: 15px; font-weight: 800; text-decoration: none;
}
.as-mobilebar__call { padding: 0 16px; border: 1.5px solid var(--as-navy); color: var(--as-navy) !important; }
.as-mobilebar__call::before {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--as-ico-phone) center / contain no-repeat; mask: var(--as-ico-phone) center / contain no-repeat;
}
.as-mobilebar__buy { background: var(--as-orange); color: #fff !important; padding: 0 36px; min-width: 220px; }

/* =========================================================
   NAGŁÓWEK ASTRA – drobne dopasowania (logo + tytuł witryny)
   ========================================================= */
.site-header, #masthead { position: sticky; top: 0; z-index: 999; }
.admin-bar .site-header, .admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header, .admin-bar #masthead { top: 0; } }
.site-title { font-family: var(--as-font); line-height: 1 !important; }

/* =========================================================
   ≥ 600 px
   ========================================================= */
@media (min-width: 600px) {
  :root { --as-pad: 24px; }
  .as-topbar .as-topbar__long { display: block; }
  .as-topbar .as-topbar__short { display: none; }
  .as-hero .as-btns { flex-direction: row; }
  .as-hero .as-checks { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .as-pill { font-size: 11px !important; letter-spacing: .08em; }
  .as-hero .as-btn, .as-hero .as-btn > .wp-block-button__link { width: auto; }
  .as-grid--2, .as-grid--4 { grid-template-columns: 1fr 1fr; }
  .as-card { grid-template-columns: 1fr; }
  .as-card > .as-ico { grid-row: auto; }
  .as-plan { flex-basis: 60%; }
  .as-scale-legend em { display: inline; }
  .as-tile p { font-size: 14px !important; }
  .as-section .as-table table { font-size: 14px; }
  .as-section .as-table thead th { font-size: 14px; letter-spacing: 0; }
  .as-section .as-table th, .as-section .as-table td { padding: 12px 16px; }
  .as-section .as-table th:first-child, .as-section .as-table td:first-child { padding-left: 24px; }
  .as-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   ≥ 900 px (tablet poziomo / desktop)
   ========================================================= */
@media (min-width: 900px) {
  .as-topbar__in { justify-content: space-between; }
  .as-topbar .as-topbar__usp { display: block; }
  .as-section .as-h1 { font-size: 50px; line-height: 1.08; }
  .as-section .as-h2 { font-size: 36px; }
  .as-section .as-h3 { font-size: 20px; }
  .as-lead { font-size: 17px; }
  .as-pad, body .entry-content > .as-pad { padding: 80px var(--as-pad); }
  .as-wrap { gap: 36px; }

  .as-hero .wp-block-cover__image-background { height: 100% !important; object-position: 60% 40% !important; }
  .as-hero .wp-block-cover__background {
    background: linear-gradient(90deg, rgba(15,38,52,.92) 0%, rgba(15,38,52,.78) 38%, rgba(15,38,52,.15) 70%, rgba(15,38,52,0) 100%) !important;
  }
  .as-hero .wp-block-cover__inner-container { padding: 88px var(--as-pad) 136px; }
  .as-hero__grid { position: relative; }
  .as-hero .as-lead { font-size: 18px; max-width: 540px; }
  .as-hero .as-checks { max-width: 560px; gap: 12px 24px; }
  .as-hero .as-checks li { font-size: 15px; }
  .as-hero-card { position: absolute; right: 0; bottom: 0; max-width: 340px; }

  .as-stats .as-wrap { margin-top: -56px !important; }
  .as-stats__box { grid-template-columns: repeat(4, 1fr); padding: 22px 0; }
  .as-stat { padding: 2px 28px; border-width: 0 !important; }
  .as-stat:not(:last-child) { border-right-width: 1px !important; }
  .as-stat__value { font-size: 32px !important; }
  .as-stat__label { font-size: 14px !important; }

  .as-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .as-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .as-card { padding: 28px; row-gap: 14px; }
  .as-card > .as-ico { width: 52px; height: 52px; }

  .as-split { flex-direction: row; gap: 48px; align-items: flex-start; }
  .as-split > * { flex: 1 1 0; min-width: 0; }
  .as-split__intro { flex: 0 1 38%; }
  .as-split .as-grid--2 { gap: 16px; }

  .as-picker, body .entry-content > .as-picker { padding-top: 80px; }
  .as-picker__box { flex-direction: row; align-items: center; padding: 44px; gap: 40px; border-radius: 28px; }
  .as-picker__main { flex: 1 1 56%; display: flex; flex-direction: column; gap: 24px; }
  .as-picker__box > .as-result, .as-picker__box > .wp-block-html { flex: 0 0 40%; }
  .as-picker__km { font-size: 40px; }
  .as-result { padding: 28px; }

  .as-plans { display: grid !important; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0 !important; padding: 14px 0 0; gap: 20px; }
  .as-plan { padding: 32px; gap: 20px; }
  .as-plan__badge { left: 32px; }
  .as-price { font-size: 44px !important; }
  .as-dots { display: none; }
  .as-footnote-row { display: flex !important; flex-direction: row !important; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

  .as-steps { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .as-step { padding: 28px; border: 1px solid var(--as-line); border-radius: var(--as-radius); gap: 14px; }
  .as-step::before { display: none; }
  .as-step__num { position: static; }
  .as-step .as-h3 { padding-top: 0; }

  .as-service, body .entry-content > .as-service { padding-bottom: 80px; }
  .as-service__box { flex-direction: row; align-items: center; padding: 40px 48px; gap: 40px; border-radius: 28px; }
  .as-service__top { flex: 1 1 58%; grid-template-columns: 200px 1fr; gap: 40px; }
  .as-service__wheel svg { width: 200px; height: 200px; }
  .as-service__copy .as-h2 { font-size: 30px; }
  .as-tiles { flex: 1 1 42%; }
  .as-tile { padding: 18px; }

  .as-why, body .entry-content > .as-why { padding-bottom: 80px; }
  .as-why__box { flex-direction: row; align-items: center; padding: 48px; gap: 40px; border-radius: 28px; }
  .as-why__intro { flex: 1 1 45%; }
  .as-why__box > .as-grid { flex: 1 1 55%; }
  .as-why .as-h2 { font-size: 32px; }
  .as-why__item { padding: 18px; }

  .as-faq-split { flex-direction: row; }
  .as-faq-split .as-split__intro { flex: 0 1 34%; }
  .as-section .as-faq { padding: 4px 22px; }
  .as-section .as-faq summary { font-size: 16px; }

  .as-contact-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .as-contact { padding: 44px; border-radius: 28px; gap: 18px; }
  .as-contact .as-h2 { font-size: 30px; }

  .as-footer { padding: 48px var(--as-pad) 28px; }
  .as-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
  .as-footer__brand { grid-column: auto; }
  .as-footer__bottom { flex-direction: row !important; justify-content: space-between; }

  .as-mobilebar { display: none; }
}

/* Pasek alarmowy: tekst doradcy chowamy na średnich szerokościach, żeby pasek nie łamał się na dwie linie */
@media (min-width: 900px) and (max-width: 1099px) {
  .as-topbar .as-topbar__usp { display: none; }
  .as-topbar .as-topbar__in { justify-content: center; }
}
@media (max-width: 374px) {
  .as-advisor { padding: 5px 8px; }
  .as-advisor strong { font-size: 13px; }
}

/* Nagłówek Astry: elementy nie mogą się łamać ani ściskać (logo, menu, doradca, przycisk) */
.ast-primary-header-bar .site-header-section > *,
.ast-mobile-header-wrap .site-header-section > * { flex-shrink: 0; }
.ast-builder-html-element .as-logo,
.ast-builder-html-element .as-advisor,
.ast-builder-html-element .as-advisor small,
.ast-builder-html-element .as-advisor strong,
.ast-header-button-1 .ast-custom-button,
.ast-builder-menu-1 .menu-item > .menu-link { white-space: nowrap; }
.ast-builder-html-element p:has(> .as-logo),
.ast-builder-html-element p:has(> .as-advisor) { margin: 0; }

/* Bardzo wąskie ekrany (< 360 px): doradca jako ikona słuchawki, żeby zmieściło się menu */
@media (max-width: 359px) {
  .as-advisor { position: relative; width: 44px; height: 44px; padding: 0; justify-content: center; }
  .as-advisor::before { display: block; width: 20px; height: 20px; }
  .as-advisor > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .as-topbar { padding-left: 12px; padding-right: 12px; }
  .as-topbar p { font-size: 12.5px; }
  .as-tiles { grid-template-columns: 1fr; }
}

/* ===== Poprawki zgodności z Astrą (1.3.3) ===== */
/* Astra dodaje 20 px wewnętrznego marginesu artykułu – sekcje mają iść od krawędzi do krawędzi */
.ast-article-single:has(> .entry-content > .as-section),
.ast-plain-container .ast-article-single:has(> .entry-content > .as-section) { padding: 0 !important; }
/* Astra koloruje akapity w bloku Okładki na szaro – w hero tekst ma być jasny */
.as-hero .as-lead { color: #DCE5EB !important; }
.as-hero .as-pill { color: #FFFFFF !important; }
.as-hero .as-checks li { color: #FFFFFF !important; }
.as-hero .as-hero-card__title { color: var(--as-navy) !important; }
.as-hero .as-hero-card .as-small { color: var(--as-muted) !important; }
/* Astra koloruje etykiety formularzy – w suwaku etykieta ma być biała */
.as-picker .as-picker__label { color: #FFFFFF !important; }
/* Nagłówek Astry na średnich ekranach: mniejsze logo i menu, doradca chowany poniżej 1100 px */
@media (min-width: 922px) and (max-width: 1279px) {
  #ast-desktop-header .as-logo { font-size: 18px; }
  #ast-desktop-header .menu-link { padding-left: 9px !important; padding-right: 9px !important; font-size: 14px !important; }
}
@media (min-width: 922px) and (max-width: 1099px) {
  #ast-desktop-header .ast-header-html-2 { display: none !important; }
}
/* Astra nadaje akapitom i listom dolne marginesy (1,6–1,75 em) – w sekcjach odstępy wynikają z układu */
body .as-section :is(p, h1, h2, h3, h4, ul, ol, figure, details, table, dl, dd) { margin: 0; }
/* Suwak: style Astry dla input[type=range] są silniejsze – nadpisujemy je */
.as-picker input.as-range[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; border: 0; padding: 0; margin: 0; box-shadow: none; cursor: pointer; }
.as-picker input.as-range[type="range"]::-webkit-slider-runnable-track { height: 6px; border: 0; border-radius: 99px; box-shadow: none; background: linear-gradient(90deg, var(--as-orange) 0 var(--p, 40%), rgba(255,255,255,.22) var(--p, 40%) 100%); }
.as-picker input.as-range[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 6px solid var(--as-orange); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.as-picker input.as-range[type="range"]::-moz-range-track { height: 6px; border: 0; border-radius: 99px; background: rgba(255,255,255,.22); }
.as-picker input.as-range[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--as-orange); }
.as-picker input.as-range[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--as-orange); }
@media (min-width: 900px) and (max-width: 1199px) { .as-scale-legend em { display: none; } }
/* Linki kontaktowe bez podkreślenia (Astra podkreśla linki w treści) */
.as-section .as-contact-line a, .as-section .as-split__intro .as-text a { text-decoration: none !important; }
/* Nagłówek mobilny Astry: mniejsze marginesy boczne, żeby zmieściły się logo, doradca i menu */
@media (max-width: 921px) {
  #ast-mobile-header .ast-primary-header-bar { padding-left: 14px !important; padding-right: 8px !important; }
  #ast-mobile-header .site-header-section > .ast-builder-layout-element { margin-left: 0 !important; margin-right: 0 !important; }
}
@media (max-width: 400px) { .as-logo { font-size: 15px; } }
@media (max-width: 374px) { .as-logo { font-size: 14px; } }

/* ===== 1.3.4: WordPress dodaje 24 px górnego marginesu każdemu kolejnemu blokowi w grupie (blockGap) ===== */
body .as-section :is(.is-layout-flow, .is-layout-constrained, .is-layout-flex, .is-layout-grid, .wp-block-cover__inner-container) > *,
body .as-footer :is(.is-layout-flow, .is-layout-constrained, .is-layout-flex, .is-layout-grid) > *,
body .as-topbar :is(.is-layout-flow, .is-layout-constrained) > * { margin-block-start: 0; margin-block-end: 0; }
/* zamierzone marginesy z projektu */
.as-section .as-plan > .as-btns { margin-top: auto !important; }
.as-section .as-head > .as-period { margin-top: 6px !important; }
.as-section .as-hero__copy > .as-checks { margin-top: 2px !important; }
.as-section .as-contact > .as-btns { margin-top: 4px !important; }
/* Astra ustawia interlinię 1,65 na całej stronie – w sekcjach obowiązuje interlinia z projektu */
.as-section, .as-footer, .as-topbar, .as-mobilebar { line-height: normal; }
