/*
Theme Name: AC Systemy 2026
Theme URI: https://acsystemy.pl
Description: Motyw AC Systemy – wersja 10: jasny wygląd domyślnie, ciemny (grafitowy) po przełączeniu.
Author: AC Systemy
Version: 10.10.8
Text Domain: acsystemy
*/

/* =====================================================================
   1. TOKENY (jasny wygląd domyślny, ciemny: [data-theme="dark"] na <html>)
   ===================================================================== */
:root {
  /* JASNY WYGLĄD (domyślny) */
  --bg: #F6F7F9;
  --bg-2: #EDF0F4;
  --surface: #FFFFFF;
  --surface-2: #F3F5F8;
  --line: #DDE1E7;
  --line-soft: #E6E9EE;
  --line-strong: #C6CCD5;
  --text: #1F242C;
  --text-strong: #0E1218;
  --muted: #555D6A;
  --muted-2: #353C47;
  --accent: #C62026;          /* tło przycisków, ramki */
  --accent-hover: #A5171C;
  --accent-text: #B91C1C;     /* czerwony tekst */
  --accent-soft: #FDEDED;
  --ok: #17663D;
  --ok-bg: #E4F5EA;
  --live: #1F9D57;
  --grid: #E6E9EE;
  --header-bg: rgba(255, 255, 255, 0.94);
  --shadow: 0 20px 50px rgba(16, 24, 40, 0.12);
  --logo-plate: #FFFFFF;

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --f-body: 'Manrope', system-ui, sans-serif;

  --container: 1240px;
  --header-h: 84px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  color-scheme: light;
}

/* CIEMNY WYGLĄD (po przełączeniu) - grafitowy, nie czarny; jaśniejszy tekst dla czytelności */
[data-theme="dark"] {
  --bg: #1A1F27;
  --bg-2: #1F252E;
  --surface: #252C36;
  --surface-2: #2C3440;
  --line: #3A4350;
  --line-soft: #333B47;
  --line-strong: #4A5462;
  --text: #EEF1F5;
  --text-strong: #FFFFFF;
  --muted: #B4BCC8;
  --muted-2: #D6DBE2;
  --accent: #D93A3E;
  --accent-hover: #C02C30;
  --accent-text: #FF7478;
  --accent-soft: #3A2529;
  --ok: #8FE6B4;
  --ok-bg: #1E3A2B;
  --live: #4BE08E;
  --grid: #222831;
  --header-bg: rgba(26, 31, 39, 0.94);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* =====================================================================
   2. PODSTAWY
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--text-strong); line-height: 1.1; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text-strong); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--f-mono); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
   3. PRZYCISKI
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #FFFFFF !important; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-outline { background: transparent; color: var(--text-strong) !important; border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--text-strong); }
.btn-light { background: var(--text-strong); color: var(--bg) !important; }
.btn-light:hover { opacity: .9; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-full { width: 100%; }
.btn[disabled], .btn.is-disabled { background: var(--surface-2); color: var(--muted) !important; border-color: var(--line); cursor: not-allowed; }

/* =====================================================================
   4. NAGŁÓWEK
   ===================================================================== */
.header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-content {
  max-width: 1440px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 8px; }
.logo img { height: 60px; width: auto; max-width: 230px; object-fit: contain; display: block; }
/* Logo ma ciemne litery - w ciemnym wyglądzie podkładamy jasną plakietkę */
/* Ciemny motyw: logo na białej plakietce - ten sam rozmiar logo co w jasnym, plakietka wychodzi tylko o margines */
[data-theme="dark"] .logo img { background: var(--logo-plate); padding: 4px 8px; margin: -4px -8px; border-radius: 10px; box-sizing: content-box; height: 60px; }

.nav { flex: 1 1 auto; display: flex; justify-content: center; height: 100%; }
ul.nav-links { display: flex; align-items: center; gap: 2px; height: 100%; }
ul.nav-links > li { position: relative; height: 100%; display: flex; align-items: center; }
ul.nav-links > li > a {
  display: block; padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  color: var(--muted-2); font-weight: 600; font-size: 15px;
}
/* Podświetlenie bieżącej strony - bez linków-kotwic (#...), które WordPress na stronie głównej oznacza jako "bieżące" */
ul.nav-links > li > a:hover, ul.nav-links > li.current-menu-item > a:not([href*="#"]) { color: var(--text-strong); background: var(--surface-2); }
ul.nav-links .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); z-index: 20;
}
ul.nav-links li:hover > .sub-menu, ul.nav-links li:focus-within > .sub-menu { display: block; }
ul.nav-links .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--muted-2); font-size: 15px; }
ul.nav-links .sub-menu a:hover { background: var(--surface-2); color: var(--text-strong); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.phone-wrapper, .mail-wrapper { display: flex; align-items: center; gap: 8px; color: var(--text-strong); white-space: nowrap; }
.phone-wrapper svg, .mail-wrapper svg { color: var(--accent-text); flex-shrink: 0; }
.phone-number { font-family: var(--f-mono); font-weight: 700; font-size: 15px; }
.mail-address { font-weight: 600; font-size: 14px; }
.phone-wrapper:hover, .mail-wrapper:hover { color: var(--accent-text); }
.ebok-link { min-height: 42px; padding: 0 16px; }
.theme-toggle {
  width: 42px; height: 42px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text-strong); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--text-strong); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.mobile-menu-toggle, .mobile-phone-btn { display: none; }
.nav-mobile-extras { display: none; }

@media (max-width: 1739px) { .mail-address { display: none; } }
@media (max-width: 1499px) { .header-actions .header-cta { display: none; } }
@media (max-width: 1280px) { ul.nav-links > li > a { padding: 8px 9px; font-size: 14px; } }
/* Menu główne na komputerze: czerwony pasek z białymi linkami (jak czerwone panele niżej) */
@media (min-width: 1101px) {
  .nav { align-items: center; }
  ul.nav-links { height: auto; padding: 5px; gap: 4px; border-radius: 14px; background: var(--accent); box-shadow: 0 6px 18px rgba(198, 32, 38, .22); }
  ul.nav-links > li { height: auto; }
  ul.nav-links > li > a { color: #FFFFFF; padding: 9px 16px; border-radius: 10px; }
  ul.nav-links > li > a:hover, ul.nav-links > li > a:focus-visible { color: #FFFFFF; background: rgba(255, 255, 255, .16); outline: none; }
  ul.nav-links > li.current-menu-item > a:not([href*="#"]) { color: #A5171C; background: #FFFFFF; }
  ul.nav-links > li.menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .8; }
  ul.nav-links .sub-menu { top: calc(100% + 5px); }
  ul.nav-links .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
}
@media (min-width: 1101px) and (max-width: 1280px) { ul.nav-links > li > a { padding: 8px 11px; } }
@media (max-width: 1180px) { .phone-number { display: none; } }

@media (max-width: 1100px) {
  .nav {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0; height: auto;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; flex-direction: column; justify-content: flex-start;
    padding: 8px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.active { display: flex; }
  ul.nav-links { flex-direction: column; align-items: stretch; height: auto; gap: 0; }
  ul.nav-links > li { height: auto; display: block; border-bottom: 1px solid var(--line-soft); }
  ul.nav-links > li > a { padding: 14px 6px; font-size: 16px; color: var(--text-strong); background: none; }
  ul.nav-links .sub-menu, ul.nav-links li:hover > .sub-menu {
    display: block; position: static; min-width: 0; padding: 0 0 8px 14px; border: 0; box-shadow: none; background: none;
  }
  .nav-mobile-extras { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
  .nav-mobile-extras .btn { width: 100%; }
  .header-actions { margin-left: auto; gap: 8px; }
  .header-actions .ebok-link, .header-actions .phone-wrapper, .header-actions .mail-wrapper, .header-actions .header-cta { display: none; }
  .mobile-phone-btn, .mobile-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text-strong); cursor: pointer;
  }
  .mobile-phone-btn { color: var(--accent-text); }
}

/* =====================================================================
   5. SEKCJE – wspólne
   ===================================================================== */
.section { padding: 96px 0; border-top: 1px solid var(--line-soft); }
/* Link do konfiguratora (menu "Konfigurator", "Internet") zatrzymuje się niżej - tuż nad nagłówkiem sekcji, a nie nad pustym marginesem */
#konfigurator-pakietow { scroll-margin-top: -96px; }
.section--alt { background: var(--bg-2); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 700px; margin-bottom: 36px; }
.eyebrow { font-family: var(--f-mono); font-size: 13px; color: var(--accent-text); letter-spacing: .3px; }
.section-title { font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -1px; line-height: 1.05; margin: 0; }
.section-lead { color: var(--muted); font-size: 17px; margin: 0; }

/* =====================================================================
   6. HERO + SPRAWDZANIE ZASIĘGU
   ===================================================================== */
.hero {
  position: relative; border-bottom: 1px solid var(--line-soft);
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.hero-grid { justify-content: center; }
.hero-main { flex: 1 1 540px; min-width: 0; max-width: 820px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hero-main .hero-badge { align-self: center; }
.hero-main .hero-lead { margin: 0 auto; }
.hero-main .coverage-form { width: 100%; margin: 0 auto; }
.hero-main .coverage-form label { text-align: center; }
.hero-main .coverage-live { width: 100%; text-align: left; }
.hero-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-family: var(--f-mono); font-size: 13px; color: var(--muted-2);
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.hero-title { font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -2px; margin: 0; }
.hero-title em { font-style: normal; color: var(--accent-text); }
.hero-lead { margin: 0; font-size: 19px; color: var(--muted); max-width: 560px; }

.coverage-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.coverage-form label { flex: 1 1 100%; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.coverage-input {
  flex: 1 1 280px; min-width: 0; min-height: 56px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text-strong); font-size: 16px;
}
.coverage-input::placeholder { color: var(--muted); }
.coverage-input:focus { outline: none; border-color: var(--accent-text); }
.coverage-form .btn { min-height: 56px; }
.coverage-message { color: var(--muted); }

.coverage-live { max-width: 640px; }
.coverage-live:empty { display: none; }
.coverage-live-head { font-weight: 600; color: var(--text-strong); margin: 4px 0 10px; }
.coverage-live-head.is-warning { color: var(--muted-2); font-weight: 500; }
.coverage-live-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); margin-bottom: 12px; }
.coverage-live-list li { border-bottom: 1px solid var(--line-soft); }
.coverage-live-list li:last-child { border-bottom: 0; }
.coverage-live-pick {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; background: transparent; border: 0; cursor: pointer; text-align: left; color: var(--text-strong); font-weight: 500;
}
.coverage-live-pick:hover, .coverage-live-pick:focus-visible, .coverage-live-pick.is-selected { background: var(--surface-2); outline: none; }
.coverage-live-badge { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-family: var(--f-mono); font-size: 12px; font-weight: 700; }
.coverage-live-more, .coverage-live-hint { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.coverage-empty { padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--muted); }
.coverage-empty-title { color: var(--text-strong); font-weight: 700; margin-bottom: 6px; }
.coverage-live .btn { margin-top: 4px; }
.coverage-map-link { font-family: var(--f-mono); font-size: 13px; }

/* =====================================================================
   7. KONFIGURATOR
   ===================================================================== */
.cfg { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cfg-steps { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.cfg-step { display: flex; flex-direction: column; gap: 12px; }
.cfg-step-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.cfg-step-title { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--text-strong); margin: 0; }
.cfg-step-num { font-family: var(--f-mono); font-size: 14px; color: var(--accent-text); margin-right: 8px; }
.cfg-step-meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

.cfg-net { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.cfg-net-row {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 18px 22px;
  background: transparent; border: 0; border-top: 1px solid var(--line-soft); text-align: left; cursor: pointer; color: var(--text-strong);
  transition: background .15s;
}
.cfg-net-row:first-child { border-top: 0; }
.cfg-net-row:hover { background: var(--surface-2); }
.cfg-net-row[aria-checked="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.cfg-dot { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); }
[aria-checked="true"] > .cfg-dot { border: 5px solid var(--accent); background: #FFFFFF; }
.cfg-speed { flex: 0 0 150px; display: flex; align-items: baseline; gap: 6px; }
.cfg-speed strong { font-family: var(--f-display); font-size: 30px; line-height: 1; }
.cfg-speed span { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.cfg-bar-wrap { flex: 1 1 140px; min-width: 100px; display: flex; flex-direction: column; gap: 6px; }
.cfg-bar { display: block; height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.cfg-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--line-strong); }
[aria-checked="true"] .cfg-bar > span { background: var(--accent-text); }
.cfg-price { flex: 0 0 auto; margin-left: auto; text-align: right; }
.cfg-price strong { display: block; font-family: var(--f-display); font-size: 24px; }
.cfg-price small { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.cfg-hint { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.cfg-nonet {
  align-self: flex-start; min-height: 44px; padding: 0 16px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--text-strong); font-size: 14px; font-weight: 600; cursor: pointer;
}
.cfg-nonet:hover { border-color: var(--line-strong); }
.cfg-nonet[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text-strong); }

.cfg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cfg-tiles--mr { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.cfg-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 104px; padding: 16px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: left; cursor: pointer; color: var(--text-strong);
}
.cfg-tiles--mr .cfg-tile { min-height: 72px; gap: 4px; }
.cfg-tile:hover { border-color: var(--line-strong); }
.cfg-tile[aria-checked="true"] { background: var(--accent-soft); border: 2px solid var(--accent); padding: 15px; }
.cfg-tile-name { font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.cfg-tile-meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.cfg-tile-price { margin-top: auto; font-family: var(--f-display); font-weight: 700; font-size: 19px; }
.cfg-tile[disabled] { opacity: .45; cursor: not-allowed; }
.cfg-tile-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cfg-tile-link {
  align-self: flex-start; min-height: 32px; padding: 4px 2px; border: 0; background: none; cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; color: var(--accent-text);
}
.cfg-tile-link:hover { color: var(--text-strong); text-decoration: underline; }
.cfg-optional { font-family: var(--f-body); font-weight: 500; font-size: 15px; color: var(--muted); }
/* Krok 4: pakiety premium (wielokrotny wybór) */
.cfg-premium { display: flex; flex-direction: column; gap: 18px; }
.cfg-tiles--premium .cfg-pgroup-title { grid-column: 1 / -1; margin: 6px 0 0; }
.cfg-pgroup-title { font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding-bottom: 6px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.cfg-tiles--premium { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cfg-tiles { align-items: start; }
.cfg-more {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: var(--r-sm); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-strong); font-weight: 700; font-size: 15px; box-shadow: 0 2px 6px rgba(16, 24, 40, .06);
}
.cfg-more::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(45deg); transition: transform .15s, margin .15s; }
.cfg-more:hover { border-color: var(--accent); }
.cfg-more[aria-expanded="true"] { border-color: var(--accent); }
.cfg-more[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
@media (max-width: 520px) {
  .cfg-tiles--premium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cfg-tiles--premium .cfg-tile { min-height: 0; padding: 14px 36px 14px 14px; }
  .cfg-tiles--premium .cfg-tile[aria-checked="true"] { padding: 13px 35px 13px 13px; }
  .cfg-tiles--premium .cfg-tile-name { font-size: 16px; }
  .cfg-tiles--premium .cfg-tile-price { font-size: 16px; }
}
.cfg-ptile { position: relative; padding-right: 40px; }
.cfg-ptile[aria-checked="true"] { padding-right: 39px; }
.cfg-check {
  position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
}
.cfg-ptile[aria-checked="true"] .cfg-check { background: var(--accent); border-color: var(--accent); }
.cfg-ptile[aria-checked="true"] .cfg-check::after { content: ""; width: 9px; height: 5px; border: 2px solid #FFFFFF; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.cfg-ptile.is-excluded { opacity: .5; background: var(--surface-2); filter: grayscale(1); }
.cfg-ptile.is-excluded:hover, .cfg-ptile.is-excluded:focus-visible { opacity: .85; filter: none; }
.cfg-ptile.is-excluded + .cfg-tile-link { opacity: .5; }
.cfg-promo { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 10px; text-transform: uppercase; }
.cfg-mr-off { padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--r); font-family: var(--f-mono); font-size: 13px; color: var(--muted); }

.cfg-summary {
  flex: 1 1 340px; min-width: 0; position: sticky; top: calc(var(--header-h) + 20px);
  margin-top: 36px; /* równo z ramką kroku [1] (pod nagłówkiem kroku) */
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.cfg-summary-bar { padding: 14px 22px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.cfg-print { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-strong); font-weight: 700; font-size: 15px; cursor: pointer; }
.cfg-print svg { color: var(--accent-text); }
.cfg-print:hover { border-color: var(--accent); background: var(--accent-soft); }
#cfgPrintSheet { display: none; }
@media print {
  body.printing-cfg > *:not(#cfgPrintSheet) { display: none !important; }
  body.printing-cfg { background: #FFFFFF !important; }
  body.printing-cfg #cfgPrintSheet { display: block; color: #000000; font-family: var(--f-body); max-width: 680px; margin: 0 auto; }
  #cfgPrintSheet .cfgp-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 3px solid #C62026; }
  #cfgPrintSheet .cfgp-head img { height: 54px; width: auto; }
  #cfgPrintSheet .cfgp-meta { text-align: right; display: flex; flex-direction: column; gap: 4px; }
  #cfgPrintSheet .cfgp-meta b { font-family: var(--f-display); font-size: 22px; }
  #cfgPrintSheet .cfgp-meta span { font-family: var(--f-mono); font-size: 11px; color: #444444; }
  #cfgPrintSheet .cfg-lines { padding: 0; }
  #cfgPrintSheet .cfg-line { border-bottom: 1px solid #DDDDDD; }
  #cfgPrintSheet .cfg-line b, #cfgPrintSheet .cfg-line > span:last-child { color: #000000; }
  #cfgPrintSheet .cfg-line small { color: #444444; }
  #cfgPrintSheet .cfg-total { margin-top: 18px; }
  #cfgPrintSheet .cfg-total strong { color: #000000; font-size: 32px; }
  #cfgPrintSheet .cfg-saving { margin-top: 10px; padding: 8px 12px; border: 1px solid #9BC7AB; border-radius: 8px; font-family: var(--f-mono); font-size: 12px; color: #17663D; }
  #cfgPrintSheet .cfg-note { margin-top: 14px; font-size: 11px; color: #444444; }
  #cfgPrintSheet .cfgp-contact { margin-top: 26px; padding-top: 10px; border-top: 1px solid #DDDDDD; font-family: var(--f-mono); font-size: 11px; color: #444444; }
}
.cfg-lines { padding: 6px 22px 0; }
.cfg-line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.cfg-line b { display: block; color: var(--text-strong); }
.cfg-line small { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.cfg-line > span:last-child { font-family: var(--f-mono); font-weight: 700; color: var(--text-strong); white-space: nowrap; }
.cfg-empty { padding: 18px 0; color: var(--muted); }
.cfg-summary-foot { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.cfg-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cfg-total > span { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.cfg-total strong { font-family: var(--f-display); font-size: 40px; letter-spacing: -1px; color: var(--text-strong); white-space: nowrap; }
.cfg-total strong small { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0; color: var(--muted); }
.cfg-saving { padding: 10px 12px; border-radius: var(--r-sm); background: var(--ok-bg); color: var(--ok); font-family: var(--f-mono); font-size: 12px; }
.cfg-note { margin: 0; font-size: 12px; color: var(--muted); }

/* Lista kanałów w okienku szczegółów */
.tv-package-subtitle { font-family: var(--f-mono); color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.tv-channels-heading { font-size: 17px; margin-bottom: 12px; }
.tv-channel-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; padding: 2px; margin-bottom: 22px; }
.tv-channel { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.tv-channel img { width: 76px; height: 50px; object-fit: contain; background: #FFFFFF; border-radius: 6px; padding: 2px; }
.tv-channel-name { font-size: 13px; font-weight: 600; color: var(--text-strong); line-height: 1.3; }
.tv-channel-nr { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.tv-channel-error { color: var(--muted); }
.tv-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tv-modal-actions[hidden] { display: none; }

/* =====================================================================
   9. JAK TO DZIAŁA, ZASIĘG, FAQ, AKTUALNOŚCI
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--accent); }
.step { padding: 26px 28px 0 0; display: flex; flex-direction: column; gap: 8px; }
.step-num { font-family: var(--f-mono); font-size: 14px; color: var(--accent-text); }
.step-title { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--text-strong); margin: 0; }
.step p { color: var(--muted); margin: 0; }
/* Kroki z ikonami połączonymi "linią światłowodu" */
.steps--icons { border-top: 0; position: relative; gap: 24px; }
.steps--icons::before { content: ""; position: absolute; left: 40px; right: 40px; top: 39px; height: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 24px); }
.steps--icons .step { padding-top: 0; position: relative; }
.step-icon { width: 80px; height: 80px; box-sizing: border-box; border-radius: 50%; border: 3px solid var(--accent); background: var(--surface); color: var(--accent-text); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; position: relative; z-index: 1; }
.step-icon--done { background: var(--accent); color: #FFFFFF; }
@media (max-width: 760px) { .steps--icons::before { display: none; } }


.callout {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 36px; padding: 24px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.callout > div { flex: 1 1 360px; min-width: 0; }
.callout b { display: block; font-size: 19px; color: var(--text-strong); }
/* Sekcja "Podłączenie": tekst + wyszukiwarka adresu + link do pełnej listy */
.callout--search { align-items: flex-start; }
.callout--search .callout-text { flex: 1 1 260px; }
.callout--search .callout-search { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.callout--search > .btn { align-self: flex-start; }
.callout p { margin: 4px 0 0; color: var(--muted); }
/* Czerwony pas "Sprawdź swój adres" (sekcja Podłączenie) */
.callout--brand { position: relative; overflow: hidden; background: var(--accent); border-color: var(--accent); color: #FFFFFF; padding: 32px; }
.callout--brand > * { position: relative; z-index: 1; }
.brand-fibers { position: absolute; z-index: 0; color: #FFFFFF; opacity: .16; pointer-events: none; }
.callout--brand .callout-fibers { position: absolute; z-index: 0; right: -40px; top: 0; width: 460px; height: 100%; color: #FFFFFF; opacity: .16; pointer-events: none; }
.callout--brand b { color: #FFFFFF; font-family: var(--f-display); font-size: 26px; }
.callout--brand p { color: #FFE3E4; }
.callout--brand .coverage-form label { color: #FFE3E4; }
.callout--brand .coverage-input { border-color: #FFFFFF; }
.callout--brand .coverage-live { padding: 16px; border-radius: var(--r); background: var(--surface); color: var(--text); }
.callout--brand .coverage-live p { color: var(--muted); }
.callout--brand .coverage-live .coverage-live-head, .callout--brand .coverage-live .coverage-empty-title { color: var(--text-strong); }
.callout--brand .coverage-live .coverage-live-head.is-warning { color: var(--muted-2); }
.callout--brand .coverage-live a:not(.btn) { color: var(--accent-text); }
.callout-actions { display: flex; flex-direction: column; gap: 10px; flex: none !important; }
.btn-light { background: #FFFFFF; color: #A5171C !important; font-family: var(--f-mono); font-size: 17px; }
.btn-light:hover { background: #FDEDED; }
.btn-outline-light { background: transparent; color: #FFFFFF !important; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { border-color: #FFFFFF; background: rgba(255,255,255,.1); }


.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0;
  cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; color: var(--text-strong);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "[+]"; font-family: var(--f-mono); font-size: 18px; color: var(--accent-text); flex-shrink: 0; }
.faq-item[open] summary::after { content: "[−]"; }
.faq-item p { color: var(--muted); max-width: 720px; margin: 0 0 22px; }
/* FAQ: czerwona karta pomocy + pytania na kartach */
.faq-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.faq-help { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-lg); background: var(--accent); color: #FFFFFF; }
.faq-help > *:not(.brand-fibers) { position: relative; z-index: 1; }
.faq-help .brand-fibers { z-index: 0; right: -40px; bottom: -20px; width: 300px; height: 160px; }
.faq-help-icon { width: 56px; height: 56px; border-radius: 50%; background: #FFFFFF; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.faq-help b { font-family: var(--f-display); font-size: 24px; color: #FFFFFF; }
.faq-help p { margin: 0; color: #FFE3E4; }
.faq-help .btn { margin-top: auto; align-self: flex-start; }
.faq--cards { max-width: none; border-top: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: faq; }
.faq--cards .faq-item { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 0 24px; counter-increment: faq; }
.faq--cards .faq-item[open] { border: 2px solid var(--accent); padding: 0 23px; }
.faq--cards .faq-item summary { justify-content: flex-start; font-family: var(--f-display); font-size: 20px; }
.faq--cards .faq-item summary::before { content: "[" counter(faq, decimal-leading-zero) "]"; font-family: var(--f-mono); font-size: 13px; font-weight: 400; color: var(--accent-text); flex-shrink: 0; }
.faq--cards .faq-item summary::after { content: "+"; margin-left: auto; width: 40px; height: 40px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center; font-size: 22px; font-family: var(--f-body); line-height: 1; }
.faq--cards .faq-item[open] summary::after { content: "−"; background: var(--accent); color: #FFFFFF; }
.faq--cards .faq-item p { margin: -6px 56px 22px 44px; max-width: none; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-help { order: 2; } .faq--cards .faq-item p { margin: -6px 0 20px; } }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.news-img-container { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.news-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-content { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-date { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.news-card h3 { font-size: 20px; margin: 0; }
.news-card h3 a { color: var(--text-strong); }
.news-card h3 a:hover { color: var(--accent-text); }
.news-card p { color: var(--muted); margin: 0; font-size: 15px; }
.read-more { margin-top: auto; padding-top: 8px; font-family: var(--f-mono); font-size: 13px; }
/* Aktualności jako oś czasu */
.news-grid--timeline { position: relative; gap: 24px; }
.news-grid--timeline::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 24px); }
.news-item { display: flex; flex-direction: column; gap: 16px; position: relative; min-width: 0; }
.news-marker { display: flex; align-items: center; gap: 12px; }
.news-pin { width: 56px; height: 56px; flex-shrink: 0; box-sizing: border-box; border-radius: 50%; border: 3px solid var(--accent); background: var(--surface); color: var(--accent-text); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.news-pin.is-latest { background: var(--accent); color: #FFFFFF; }
.news-grid--timeline .news-date { padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text-strong); position: relative; z-index: 1; }
.news-grid--timeline .news-card { flex: 1; }
.news-tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-family: var(--f-mono); font-size: 12px; font-weight: 700; }
.news-grid--timeline .news-card h3 { font-size: 22px; }
@media (max-width: 960px) { .news-grid--timeline::before { display: none; } }

/* =====================================================================
   10. KONTAKT + BIURO (jak dojechać) + DOKUMENTY
   ===================================================================== */
.contact-panel {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding: 44px;
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
}
/* czerwony pasek u góry zamiast różowego tła (różowe tło + czerwona ramka = "zaznaczony" kafelek konfiguratora) */
.contact-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); }
.contact-panel > div:first-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-panel h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -1px; margin: 0; }
.contact-panel p { margin: 0; color: var(--muted-2); font-size: 17px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions .btn-primary { font-family: var(--f-mono); font-size: 17px; }
.contact-panel--brand { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.contact-panel--brand::before { display: none; }
.contact-panel--brand > *:not(.brand-fibers) { position: relative; z-index: 1; }
.contact-panel--brand .brand-fibers { z-index: 0; right: -60px; top: 0; width: 560px; height: 100%; }
.contact-panel--brand .eyebrow { color: #FFE3E4; }
.contact-panel--brand h2 { color: #FFFFFF; }
.contact-panel--brand p { color: #FFE3E4; }
.contact-panel--brand .contact-actions { flex-direction: column; width: 300px; }
.contact-panel--brand .contact-actions .btn-light { font-size: 20px; }

.office { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.office-info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.office-info h3 { font-size: 22px; margin: 0; }
.office-row { display: flex; gap: 12px; color: var(--muted-2); }
.office-row { align-items: flex-start; }
.office-row svg { flex-shrink: 0; box-sizing: content-box; width: 22px; height: 22px; padding: 11px; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent-text); margin-top: 0; }
.office-row > div { padding-top: 3px; }
.office-row b { display: block; color: var(--text-strong); }
.office-hours { white-space: pre-line; }
.office-info .btn { align-self: flex-start; }
.map-box {
  flex: 2 1 480px; min-width: 0; min-height: 340px; position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background-color: var(--surface);
  background-color: var(--bg-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 330' preserveAspectRatio='xMidYMid slice'%3E%3Cg stroke='%23FFFFFF' stroke-linecap='round' fill='none'%3E%3Cpath d='M-20 70 L720 40' stroke-width='14'/%3E%3Cpath d='M-20 200 L720 230' stroke-width='18'/%3E%3Cpath d='M120 -20 L170 350' stroke-width='12'/%3E%3Cpath d='M400 -20 L360 350' stroke-width='16'/%3E%3Cpath d='M560 -20 L610 350' stroke-width='10'/%3E%3Cpath d='M-20 300 C200 260 300 320 720 290' stroke-width='8'/%3E%3C/g%3E%3Cpath d='M60 330 C160 240 260 170 340 150' fill='none' stroke='%23C62026' stroke-width='4' stroke-dasharray='10 8'/%3E%3C/svg%3E");
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { max-width: 380px; padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.map-consent p { margin: 0; color: var(--muted-2); font-size: 14px; padding: 6px 10px; border-radius: 8px; background: var(--surface); }
.map-consent .btn-outline { background: var(--surface); }
[data-theme="dark"] .map-box { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 330' preserveAspectRatio='xMidYMid slice'%3E%3Cg stroke='%23333B47' stroke-linecap='round' fill='none'%3E%3Cpath d='M-20 70 L720 40' stroke-width='14'/%3E%3Cpath d='M-20 200 L720 230' stroke-width='18'/%3E%3Cpath d='M120 -20 L170 350' stroke-width='12'/%3E%3Cpath d='M400 -20 L360 350' stroke-width='16'/%3E%3Cpath d='M560 -20 L610 350' stroke-width='10'/%3E%3Cpath d='M-20 300 C200 260 300 320 720 290' stroke-width='8'/%3E%3C/g%3E%3Cpath d='M60 330 C160 240 260 170 340 150' fill='none' stroke='%23D93A3E' stroke-width='4' stroke-dasharray='10 8'/%3E%3C/svg%3E"); }
.map-pin { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 10px rgba(198, 32, 38, .18); background: var(--accent); display: flex; align-items: center; justify-content: center; color: #FFFFFF; }

.docs-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.doc-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line-soft); color: var(--text-strong); }
.doc-item:first-child { border-top: 0; }
.doc-item:hover { background: var(--surface-2); color: var(--text-strong); }
.doc-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.doc-ext { font-family: var(--f-mono); font-size: 9px; font-weight: 700; line-height: 1; }
.doc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.doc-name { font-weight: 700; }
.doc-meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.doc-download { width: 40px; height: 40px; flex-shrink: 0; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.doc-item:hover .doc-download { background: var(--accent); color: #FFFFFF; }
/* Strona główna: dokumenty jako kafle w dwóch kolumnach */
.docs-home .docs-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; border: 0; border-radius: 0; overflow: visible; background: none; }
.docs-home .doc-item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.doc-item--archive { position: relative; overflow: hidden; background: var(--accent) !important; border-color: var(--accent) !important; color: #FFFFFF !important; }
.doc-item--archive > *:not(.brand-fibers) { position: relative; z-index: 1; }
.doc-item--archive .brand-fibers { z-index: 0; right: -20px; top: 0; width: 260px; height: 100%; }
.doc-item--archive .doc-icon { background: #FFFFFF; color: var(--accent); }
.doc-item--archive .doc-name { color: #FFFFFF; }
.doc-item--archive .doc-meta { color: #FFE3E4; }
@media (max-width: 520px) { .docs-home .docs-list { grid-template-columns: 1fr; } }
.docs-more { margin-top: 18px; }
/* Podstrona "Dla abonenta": wyszukiwarka + archiwum */
.docs-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.docs-tools label { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.docs-tools .coverage-input { width: 100%; flex: none; }
.docs-heading { font-size: 20px; margin: 36px 0 14px; }
.docs-heading:first-of-type { margin-top: 0; }
.docs-archive { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
.docs-archive > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px;
  cursor: pointer; list-style: none; font-weight: 700; color: var(--text-strong);
}
.docs-archive > summary::-webkit-details-marker { display: none; }
.docs-archive > summary::after { content: "[+]"; font-family: var(--f-mono); color: var(--accent-text); }
.docs-archive[open] > summary::after { content: "[−]"; }
.docs-archive > summary small { font-family: var(--f-mono); font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 8px; }
.docs-archive .docs-list { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.docs-empty { color: var(--muted); padding: 18px 0; }

/* =====================================================================
   11. STOPKA
   ===================================================================== */
.footer { border-top: 5px solid var(--accent); padding: 56px 0 32px; color: #B4BCC8; background: #1A1F27; }
[data-theme="dark"] .footer { background: #12161C; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-logo { display: inline-flex; padding: 8px 12px; border-radius: 12px; background: #FFFFFF; margin-bottom: 6px; }
.footer-logo img { height: 40px; width: auto; display: block; }
.footer-brand { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: #FFFFFF; }
.footer-label { font-family: var(--f-mono); font-size: 13px; color: #FF7478; margin-bottom: 2px; }
.footer a { color: #D6DBE2; }
.footer a:hover { color: #FFFFFF; }
.footer-phone { font-family: var(--f-mono); font-weight: 700; font-size: 20px; color: #FFFFFF !important; }
.footer .footer-cta { margin-top: 8px; min-height: 42px; color: #FFFFFF !important; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #333B47; color: #8C95A3; font-family: var(--f-mono); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* =====================================================================
   12. OKIENKA (modale) + FORMULARZ CONTACT FORM 7
   ===================================================================== */
.modal { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; padding: 16px; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.72); backdrop-filter: blur(4px); }
.modal-content {
  position: relative; z-index: 1; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; padding: 36px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.tv-details-modal { max-width: 920px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text-strong); font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-content h2 { font-size: 26px; margin: 0 40px 8px 0; }
.contact-modal-intro { color: var(--muted); margin-bottom: 18px; }
.order-summary { padding: 12px 16px; margin-bottom: 20px; border-radius: var(--r-sm); background: var(--accent-soft); border: 1px solid var(--accent); color: var(--text-strong); font-weight: 600; }
.order-summary-label { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--accent-text); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.site-notice { z-index: 2100; }
.site-notice-box { max-width: 560px; border-top: 6px solid var(--line-strong); }
.site-notice--warning .site-notice-box { border-top-color: var(--accent); }
.site-notice-label { display: inline-block; margin-bottom: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.site-notice--warning .site-notice-label { color: var(--accent-text); }
.site-notice-text { color: var(--text); font-size: 16px; line-height: 1.6; }
.site-notice-text p { margin: 0 0 12px; }
.site-notice-text a { color: var(--accent-text); }
.site-notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.modal-content .form-group, .form-card .form-group { margin-bottom: 14px; }
.modal-content label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--text-strong); }
.modal-content label.required::after { content: " *"; color: var(--accent-text); }
.modal-content .wpcf7-form-control-wrap, .form-card .wpcf7-form-control-wrap { display: block; }
.modal-content .form-control, .modal-content input[type="text"], .modal-content input[type="tel"], .modal-content input[type="email"], .modal-content textarea, .form-card .form-control, .form-card input[type="text"], .form-card input[type="tel"], .form-card input[type="email"], .form-card textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text-strong); font-size: 15px;
}
.modal-content .form-control:focus, .form-card .form-control:focus { outline: none; border-color: var(--accent-text); }
.modal-content .wpcf7-submit, .form-card .wpcf7-submit {
  width: 100%; min-height: 54px; margin-top: 6px; border: 0; border-radius: 12px;
  background: var(--accent); color: #FFFFFF; font-weight: 700; font-size: 16px; cursor: pointer;
}
.modal-content .wpcf7-submit:hover, .form-card .wpcf7-submit:hover { background: var(--accent-hover); }
.modal-content .wpcf7-not-valid-tip, .form-card .wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; color: var(--accent-text); }
.modal-content .wpcf7 .wpcf7-spinner, .form-card .wpcf7 .wpcf7-spinner { display: block; margin: 10px auto 0; }
.wpcf7-response-output { margin: 16px 0 0 !important; padding: 10px 12px !important; border-radius: var(--r-sm); font-size: 14px; }
.form-privacy-note { margin: 16px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.form-privacy-note a { text-decoration: underline; }

/* =====================================================================
   13. PODSTRONY, WPISY, STRONA ZASIĘGU
   ===================================================================== */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -1.5px; margin: 10px 0 0; }
.page-hero p { color: var(--muted); font-size: 18px; margin: 12px 0 0; max-width: 680px; }
.page-body { padding: 48px 0 96px; }
.page-narrow { max-width: 860px; }

.entry-content { color: var(--text); font-size: 17px; line-height: 1.75; }
.entry-content h2 { font-size: 30px; margin: 1.6em 0 .6em; }
.entry-content h3 { font-size: 23px; margin: 1.4em 0 .5em; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.2em; }
.entry-content ul { list-style: none; padding: 0; }
.entry-content ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.entry-content ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--accent-text); }
.entry-content ol { padding-left: 22px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--r); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { font-family: var(--f-mono); font-size: 13px; color: var(--muted); font-weight: 500; border-bottom-color: var(--accent); }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); color: var(--muted-2); }
/* Pliki/dokumenty wstawione w treści (blok "Plik" w edytorze) */
.entry-content .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.entry-content .wp-block-file__button { background: var(--accent); color: #FFFFFF !important; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 700; }

.post-meta { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.post-thumbnail { margin: 0 0 32px; border-radius: var(--r-lg); overflow: hidden; }
.post-thumbnail img { display: block; width: 100%; }
.post-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

.zasieg-intro { margin-bottom: 28px; }
.zasieg-search { max-width: none; margin-bottom: 12px; }
.zasieg-search .coverage-input { flex: 1 1 260px; }
.zasieg-live { max-width: none; margin-bottom: 24px; }
.zasieg-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.zasieg-tools label { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.zasieg-tools .coverage-input { width: 100%; flex: none; }
.zasieg-count { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.zasieg-count strong { color: var(--text-strong); }
.zasieg-table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.zasieg-table { width: 100%; border-collapse: collapse; }
.zasieg-table th { padding: 14px 20px; text-align: left; font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--accent); }
.zasieg-table td { padding: 13px 20px; border-top: 1px solid var(--line-soft); color: var(--text-strong); }
.zasieg-table td:last-child, .zasieg-table th:last-child { text-align: right; }
.zasieg-table .street-row { cursor: pointer; transition: background .15s; }
.zasieg-table .street-row:hover, .zasieg-table .street-row:focus-within { background: var(--surface-2, rgba(127,127,127,.08)); }
.zasieg-order { border: 0; cursor: pointer; font: inherit; white-space: nowrap; }
.zasieg-table .street-row:hover .zasieg-order { filter: brightness(1.08); }
.zasieg-empty td { text-align: center !important; padding: 36px 20px; color: var(--muted); }
.zasieg-map { margin-bottom: 28px; min-height: 420px; }
.zasieg-easymap { margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.zasieg-easymap iframe, .zasieg-easymap > div { max-width: 100%; }

/* =====================================================================
   14. TELEFON
   ===================================================================== */
@media (max-width: 768px) {
  :root { --header-h: 70px; }
  .logo img { height: 47px; }
  [data-theme="dark"] .logo img { height: 47px; padding: 3px 6px; margin: -3px -6px; }
  .section { padding: 64px 0; }
  #konfigurator-pakietow { scroll-margin-top: -56px; }
  .hero-grid { padding-top: 48px; padding-bottom: 64px; gap: 36px; }
  .hero-title { letter-spacing: -1px; }
  .hero-lead { font-size: 17px; }
  .coverage-form .btn { width: 100%; }
  .cfg-net-row { padding: 16px; gap: 8px 14px; }
  .cfg-speed { flex-basis: auto; }
  .cfg-bar-wrap { order: 5; flex-basis: 100%; }
  .cfg-summary { position: static; }
  .step { padding-right: 0; }
  .contact-panel { padding: 28px 22px; }
  .contact-actions, .contact-actions .btn, .contact-panel--brand .contact-actions { width: 100%; }
  .premium-group, .premium-cards { width: 100%; }
  .premium-cards .tv-card { width: 100%; }
  .modal-content { padding: 28px 20px; }
  .map-box { min-height: 280px; }
  .zasieg-table th, .zasieg-table td { padding: 12px 14px; }
}


/* =====================================================================
   15. PODSTRONY OFERTY (v10.5): internet, telewizja, dekodery, kontakt, dojazd
   ===================================================================== */
.sub-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 18px; }
.sub-title { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.5px; margin: 0; }
.sub-link, .sub-meta { font-family: var(--f-mono); font-size: 13px; }
.sub-meta { color: var(--muted); }
.sub-section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line-soft); }
.sub-intro { margin-bottom: 32px; }
.sub-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5em; }
.sub-links .btn { text-decoration: none; }

/* Treść z edytora + boczna karta */
.sub-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-top: 48px; }
.sub-layout:first-child { margin-top: 0; }
.sub-content { min-width: 0; padding: 32px 36px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.sub-content > :first-child { margin-top: 0; }
.sub-content > :last-child { margin-bottom: 0; }
.sub-content h2 { font-size: 24px; margin: 1.4em 0 .6em; padding-top: 1.2em; border-top: 1px solid var(--line-soft); }
.sub-content > h2:first-child { padding-top: 0; border-top: 0; }
.aside-card {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: flex; flex-direction: column; gap: 12px; padding: 0 24px 24px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.aside-card-bar { margin: 0 -24px 6px; padding: 10px 24px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.aside-card h3 { font-size: 21px; margin: 0; }
.aside-card p { margin: 0; color: var(--muted); font-size: 15px; }
.aside-phone { font-family: var(--f-mono); }
.aside-card .aside-note { font-size: 13px; padding-top: 12px; border-top: 1px solid var(--line-soft); }

/* Lista z punktami (z akapitów z edytora i specyfikacji) */
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-direction: column; gap: 10px; }
.entry-content .check-list li, .check-list li { position: relative; padding-left: 30px; margin: 0; line-height: 1.55; }
.entry-content .check-list li::before, .check-list li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23C62026' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Cennik internetu */
.price-table { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.price-row {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr 1fr auto; align-items: center; gap: 12px 20px;
  padding: 16px 24px; border-top: 1px solid var(--line-soft);
}
.price-row:first-child { border-top: 0; }
.price-row--head { padding-top: 12px; padding-bottom: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--accent); }
.price-row:not(.price-row--head):hover { background: var(--surface-2); }
.price-name { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--text-strong); }
.price-speed { color: var(--muted); font-size: 15px; }
.price-speed b { font-family: var(--f-mono); font-size: 17px; color: var(--text-strong); }
.price-speed small { display: none; }
.price-value strong { font-family: var(--f-mono); font-size: 20px; color: var(--text-strong); }
.price-value small, .price-tv small { color: var(--muted); font-size: 13px; }
.price-tv { font-family: var(--f-mono); font-size: 15px; color: var(--ok); }
.price-tv small { font-family: var(--f-body); }
.price-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Pakiety TV (podstawowe plus i premium - shortcode [jamboxPremium]) */
.tv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tv-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.tv-card-label { font-family: var(--f-mono); font-size: 12px; color: var(--accent-text); }
.tv-card-name { font-size: 26px; margin: 0; }
.tv-channels { color: var(--muted-2); font-weight: 600; }
.tv-channels span { color: var(--muted); font-weight: 500; }
.tv-price { font-family: var(--f-mono); font-size: 24px; font-weight: 700; color: var(--text-strong); margin-top: 6px; }
.tv-price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.tv-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tv-card-actions .btn { flex: 1 1 auto; }
.tv-badge { position: absolute; top: 16px; right: 16px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 700; }

.premium-groups { display: flex; flex-direction: column; gap: 28px; }
.premium-group-title { font-family: var(--f-mono); font-size: 13px; color: var(--muted); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.premium-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.premium-card { padding: 20px; }
.premium-card .tv-card-name { font-size: 20px; }
.premium-card .tv-badge ~ .tv-card-name { padding-right: 84px; }
.premium-card .tv-price { font-size: 20px; }
.premium-card .btn { align-self: flex-start; margin-top: 10px; }

/* Dekodery */
.decoders { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.decoder-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.decoder-img { position: relative; display: flex; align-items: center; justify-content: center; padding: 28px; background: #FFFFFF; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; }
.decoder-img img { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); object-fit: contain; border-radius: 0; }
.decoder-tag { position: absolute; top: 16px; left: 16px; padding: 4px 10px; border-radius: 8px; background: var(--text-strong); color: var(--bg); font-family: var(--f-mono); font-size: 13px; font-weight: 700; }
.decoder-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.decoder-name { font-size: 26px; margin: 0; }
.decoder-body > p { margin: 0; color: var(--muted-2); }
.decoder-specs { border-top: 1px solid var(--line); padding-top: 4px; }
.decoder-specs summary { display: flex; justify-content: space-between; padding: 12px 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--text-strong); }
.decoder-specs summary::-webkit-details-marker { display: none; }
.decoder-specs summary::after { content: "[+]"; font-family: var(--f-mono); color: var(--accent-text); }
.decoder-specs[open] summary::after { content: "[−]"; }
.decoder-specs .check-list { font-size: 15px; color: var(--muted-2); margin: 4px 0 0; }

/* Kontakt */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); min-width: 0; overflow-wrap: anywhere; }
.contact-card-label { font-family: var(--f-mono); font-size: 12px; color: var(--accent-text); margin-bottom: 4px; }
.contact-card-big { font-family: var(--f-mono); font-size: 22px; font-weight: 700; color: var(--text-strong); }
.contact-card-name { color: var(--text-strong); font-size: 17px; }
.contact-card-muted { color: var(--muted); font-size: 14px; }
.contact-card-address .addr-street, .contact-card-address .addr-city { display: block; }
.contact-card-address .addr-street { white-space: nowrap; overflow: hidden; }
.sub-layout--form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.form-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.form-card .sub-title { margin-bottom: 8px; }
.sub-office .office { margin-top: 0; flex-direction: column; height: 100%; }
.sub-office .office-info, .sub-office .map-box { flex: none; }
.sub-office .map-box { min-height: 300px; }
.page-body > .container > .office:first-child { margin-top: 0; }
.page-body .callout .btn { flex: none; }

@media (max-width: 1000px) {
  .sub-layout, .sub-layout--form { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .price-row { grid-template-columns: 1fr 1fr; padding: 18px 20px; }
  .price-row--head { display: none; }
  .price-name { grid-column: 1 / -1; }
  .price-speed small { display: inline; }
  .price-value { grid-column: 1; }
  .price-tv { grid-column: 2; text-align: right; }
  .price-action { grid-column: 1 / -1; }
  .price-action .btn { width: 100%; }
}
@media (max-width: 768px) {
  .sub-content { padding: 24px 20px; }
  .form-card { padding: 24px 20px; }
  .decoders { grid-template-columns: 1fr; }
  .decoder-body { padding: 20px; }
  .premium-cards { grid-template-columns: 1fr; }
}
