/* Aktualności (2.0.106): lista i szczegóły w portalu klienta, okno po zalogowaniu, kafelek na pulpicie
   oraz panel pracownika (lista, edytor, podgląd, statystyki). Spokojnie i rzeczowo: bez ozdobników. */

/* ---------- meta: etykieta · data · przypięta · nowa ---------- */
.ak-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--muted); }
.ak-etykieta { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 4px; padding: 1px 7px; }
.ak-pin { display: inline-flex; color: var(--navy-title); }
.ak-nowa { font-size: 11px; font-weight: 600; color: var(--navy-title); display: inline-flex; align-items: center; gap: 5px; }
.ak-nowa::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.ak-licznik { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------- lista (karty) ---------- */
.ak-filtr { margin: 0 0 14px; }
.ak-siatka { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ak-siatka .sk-card { min-height: 280px; }
.ak-karta { background: #fff; border: 1px solid var(--border); border-radius: var(--r-12); overflow: hidden; box-shadow: var(--sh-sm); transition: box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.ak-karta:hover { border-color: var(--border-2); box-shadow: var(--sh-md); }
.ak-karta.przypieta { border-color: var(--blue-200); }
.ak-karta-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ak-karta-link:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-12); }
.ak-karta-media { aspect-ratio: 16 / 9; background: var(--bg-section); border-bottom: 1px solid var(--border); overflow: hidden; }
.ak-karta-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-okladka-brak { display: grid; place-items: center; color: var(--border-2); background: linear-gradient(135deg, #F4F6F9, #E9EEF5); }
.ak-karta-tresc { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.ak-karta.bez-okladki { border-top: 3px solid var(--blue-700); }
.ak-karta.bez-okladki .ak-karta-tresc { padding-top: 16px; }
.ak-karta.bez-okladki .ak-karta-lead { -webkit-line-clamp: 6; }
.ak-karta-tytul { font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--navy-title); margin: 0; }
.ak-karta-lead { font-size: 14px; color: var(--text-p); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ak-karta-wiecej { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--blue-600); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- treść (szczegóły, okno, podgląd) ---------- */
.ak-szczegoly { max-width: 880px; }
.ak-szczegoly .page-head .ak-meta { margin-bottom: 6px; }
.ak-tresc { display: flex; flex-direction: column; gap: 16px; }
.ak-lead { font-size: 16px; line-height: 1.55; color: var(--text-2); margin: 0; font-weight: 500; }
.ak-html { font-size: 15px; line-height: 1.65; color: var(--text-2); }
.ak-html > :first-child { margin-top: 0; }
.ak-html > :last-child { margin-bottom: 0; }
.ak-html p { margin: 0 0 .8em; }
.ak-html h3 { font-size: 17px; margin: 1.2em 0 .5em; color: var(--navy-title); }
.ak-html h4 { font-size: 15px; margin: 1em 0 .4em; color: var(--navy-title); }
.ak-html ul, .ak-html ol { margin: 0 0 .8em; padding-left: 1.4em; }
.ak-html li { margin: .2em 0; }
.ak-html a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.ak-fig { margin: 0; }
.ak-fig img, .ak-fig video { display: block; width: 100%; height: auto; border-radius: var(--r-8); background: var(--bg-section); }
.ak-fig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.ak-hero .ak-fig img { max-height: 520px; object-fit: contain; background: var(--bg-section); }
.ak-wideo { max-height: 520px; background: #000 !important; }
.ak-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ak-galeria.jeden { grid-template-columns: 1fr; }
.ak-ramka { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-8); overflow: hidden; background: #000; }
.ak-ramka iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ak-zaslepka { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: var(--r-8); background: linear-gradient(135deg, #0B2350, #011437); color: #fff; overflow: hidden; cursor: pointer; padding: 0; }
.ak-zaslepka img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ak-zaslepka .ak-play { position: relative; width: 64px; height: 64px; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--navy-title); display: grid; place-items: center; box-shadow: var(--sh-lg); }
.ak-zaslepka .ak-play svg { margin-left: 3px; fill: currentColor; }
.ak-zaslepka-txt { position: absolute; left: 0; right: 0; bottom: 12px; font-size: 13px; font-weight: 600; text-shadow: 0 1px 2px rgb(0 0 0 / .5); }
.ak-zaslepka:hover .ak-play, .ak-zaslepka:focus-visible .ak-play { transform: scale(1.05); }
.ak-zaslepka:focus-visible { outline: none; box-shadow: var(--ring); }
.ak-film-info { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.ak-film-info a { color: var(--blue-600); display: inline-flex; align-items: center; gap: 3px; }
.ak-cta-wiersz { margin: 4px 0 0; }
.ak-potwierdz { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ak-potwierdz p { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--warn-text); font-weight: 500; flex: 1; min-width: 220px; }

/* ---------- okno po zalogowaniu ---------- */
.modal.ak-modal { max-width: 720px; }
.ak-okno { display: flex; flex-direction: column; gap: 12px; }
.ak-tresc-okno { gap: 12px; }
.ak-tresc-okno .ak-hero .ak-fig img, .ak-tresc-okno .ak-wideo { max-height: 46vh; }
.ak-tresc-okno .ak-lead { font-size: 15px; }
.ak-wazne { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: var(--r-6); background: var(--warn-bg); color: var(--warn-text); font-size: 13.5px; font-weight: 500; }
.modal-foot .ak-nie-pokazuj { margin-right: auto; color: var(--muted); }

/* ---------- pulpit: kafelek (2.0.107: u góry pulpitu, granatowa belka nagłówka jak belka promocji) ---------- */
.d-aktualnosci .ak-kafel { margin: 0 0 14px; overflow: hidden; }
.ak-kafel .card-head { background: linear-gradient(90deg, #000428 0%, #003a70 62%, #004e92 100%); border-bottom: 2px solid var(--cyan); padding: 10px 16px; }
.ak-kafel .card-head h2 { color: #fff; letter-spacing: .01em; }
.ak-kafel .card-head h2 svg { color: var(--cyan-light); }
.ak-kafel .card-head a { color: var(--cyan-light); font-weight: 600; text-decoration: none; }
.ak-kafel .card-head a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.ak-kafel .card-head a:focus-visible { outline: 2px solid var(--cyan-light); outline-offset: 2px; border-radius: 2px; }
.d-nowosci > .nw-kafel { margin: 14px 0 0; }
.ak-kafel-lista { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.ak-kafel-lista > li[hidden] { display: none; }
.ak-kafel-lista > li + li { border-left: 1px solid var(--border); }
.ak-kafel-lista a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; color: inherit; text-decoration: none; height: 100%; }
.ak-kafel-lista a:hover { background: var(--bg-section); }
.ak-kafel-lista a:focus-visible { outline: none; box-shadow: inset var(--ring); }
.ak-kafel-lista img, .ak-kafel-ico { flex: 0 0 auto; width: 128px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-section); }
.ak-kafel-ico { display: grid; place-items: center; color: var(--border-2); }
.ak-kafel-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ak-kafel-txt strong { font-size: 15px; font-weight: 600; color: var(--navy-title); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ak-kafel-meta { font-size: 11.5px; color: var(--muted); }
.ak-kafel-meta b { color: var(--navy-title); font-weight: 600; }
.ak-kafel-lead { font-size: 13px; color: var(--text-p); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- szczegóły: produkty z aktualności (2.0.107) ---------- */
.ak-produkty { max-width: 1100px; margin-top: 18px; scroll-margin-top: calc(var(--header-h, 64px) + 12px); }
.ak-produkty > h2 { font-size: 17px; color: var(--navy-title); display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.ak-produkty > h2 svg { color: var(--blue-700); }
.ak-produkty-brak { margin: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-8); }

/* ---------- panel: lista ---------- */
.ak-filtry { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ak-filtry .select { width: auto; }
.ak-tabela td { vertical-align: top; }
.ak-tab-poz { display: flex; gap: 10px; align-items: flex-start; min-width: 240px; }
.ak-thumb { width: 64px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); flex: 0 0 auto; background: var(--bg-section); }
.ak-thumb-brak { display: grid; place-items: center; color: var(--border-2); }
.ak-miejsce { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--border-2); margin-right: 2px; }
.ak-miejsce.wl { color: var(--blue-700); background: var(--blue-50); }
.row-muted td { opacity: .65; }

/* ---------- panel: edytor ---------- */
.ake-zakladki { margin: 0 0 12px; flex-wrap: wrap; }
.ake-zakladki button[aria-pressed="true"] { background: var(--blue-700); color: #fff; }
.ake-jezyki { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ake-jezyki .chip { height: 30px; min-width: 42px; justify-content: center; position: relative; }
.ake-jezyki .chip.ma::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.ake-pasek { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--border-2); border-bottom: 0; border-radius: var(--r-6) var(--r-6) 0 0; background: var(--bg-section); }
.ake-pasek .btn { min-width: 34px; height: 30px; padding: 0 8px; }
.ake-edytor { min-height: 220px; max-height: 60vh; overflow: auto; padding: 12px 14px; border: 1px solid var(--border-2); border-radius: 0 0 var(--r-6) var(--r-6); background: #fff; font-size: 15px; line-height: 1.6; }
.ake-edytor:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgb(51 142 247 / .2); }
.ake-edytor:empty::before { content: "Treść aktualności…"; color: var(--muted); }
.ake-edytor h3 { font-size: 17px; margin: .8em 0 .4em; }
.ake-edytor p { margin: 0 0 .7em; }
.ake-edytor ul, .ake-edytor ol { padding-left: 1.4em; }
.ake-edytor a { color: var(--blue-600); text-decoration: underline; }
.ake-upload { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1.5px dashed var(--border-2); border-radius: var(--r-8); background: var(--bg-section); }
.ake-upload > div:first-child { color: var(--blue-700); }
.ake-upload.nad { border-color: var(--blue-500); background: var(--blue-50); }
.ake-upload p { margin: 6px 0 0; }
.ake-pasek-postepu { display: grid; grid-template-columns: minmax(0, 1fr) 200px 120px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ake-pasek-postepu progress { width: 100%; height: 8px; accent-color: var(--blue-600); }
.ake-pasek-postepu.blad { color: var(--err); }
.ake-film { margin-top: 16px; }
.ake-film-pod { margin-top: 10px; max-width: 480px; }
.ake-h3 { font-size: 15px; margin: 20px 0 6px; display: flex; gap: 8px; align-items: baseline; }
.ake-media { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ake-media li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px; border: 1px solid var(--border); border-radius: var(--r-8); }
.ake-media-pod { width: 112px; height: 70px; border-radius: 6px; overflow: hidden; background: var(--bg-section); display: grid; place-items: center; border: 1px solid var(--border); }
.ake-media-pod img, .ake-media-pod video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ake-media-ico { color: var(--blue-700); }
.ake-media-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ake-media-akcje { display: flex; gap: 2px; }
.ak-podglad-lista { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.ak-podglad-lista .label { margin-bottom: 6px; }
.ak-modal-podglad { animation: none; max-height: none; box-shadow: var(--sh-lg); border: 1px solid var(--border); pointer-events: none; }
.ak-modal-podglad .ak-zaslepka, .ak-modal-podglad iframe { pointer-events: auto; }
.ak-pod-h { font-size: 19px; margin: 0 0 12px; color: var(--navy-title); }

/* ---------- panel: przycisk -> produkty / grupa (2.0.107) ---------- */
.ake-cta-wybor { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ake-prod-lista, .akp-wybrane { display: flex; flex-wrap: wrap; gap: 6px; }
.ake-prod-chip { max-width: 100%; height: auto; min-height: 28px; padding-top: 2px; padding-bottom: 2px; }
.ake-prod-chip b { font-weight: 700; white-space: nowrap; }
.ake-prod-nazwa { font-weight: 400; color: var(--text-p); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal.akp-okno { max-width: 1040px; }
.akp-tryb { margin: 0 0 12px; }
.akp-tryb button[aria-pressed="true"] { background: var(--blue-700); color: #fff; }
.akp-siatka { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.akp-prawa { position: sticky; top: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-8); background: var(--bg-section); min-height: 120px; }
.akp-wyniki { display: flex; flex-direction: column; max-height: 46vh; overflow: auto; border: 1px solid var(--border); border-radius: var(--r-8); }
.akp-poz { display: grid; grid-template-columns: 18px auto minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; padding: 7px 10px; border: 0; border-bottom: 1px solid var(--border); background: #fff; text-align: left; font: inherit; font-size: 13.5px; cursor: pointer; }
.akp-poz:last-child { border-bottom: 0; }
.akp-poz:hover { background: var(--bg-section); }
.akp-poz:focus-visible { outline: none; box-shadow: inset var(--ring); }
.akp-poz[aria-pressed="true"] { background: var(--blue-50); }
.akp-znak { color: var(--muted); display: grid; place-items: center; }
.akp-poz[aria-pressed="true"] .akp-znak { color: var(--blue-700); }
.akp-kod { font-weight: 700; white-space: nowrap; color: var(--navy-title); }
.akp-nazwa { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.akp-linia { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.akp-drzewo { max-height: 240px; overflow: auto; margin: 6px 0 8px; border: 1px solid var(--border); border-radius: var(--r-8); background: #fff; }
.akg-drzewo { max-height: 52vh; }
.akp-gr-lista { list-style: none; margin: 0; padding: 4px 0; }
.akp-gr { display: block; width: 100%; padding: 5px 10px; border: 0; background: transparent; text-align: left; font: inherit; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.akp-gr:hover { background: var(--bg-section); }
.akp-gr:focus-visible { outline: none; box-shadow: inset var(--ring); }
.akp-gr[aria-pressed="true"] { background: var(--blue-50); color: var(--blue-800); font-weight: 600; }
.akp-gr-wc { color: var(--border-2); margin-right: 6px; }

/* ---------- panel: statystyki ---------- */
.ak-kpi .kpi-value { font-size: 26px; }
.ak-wykres { display: flex; align-items: flex-end; justify-content: space-between; gap: 3px; height: 180px; padding: 18px 0 0; border-bottom: 1px solid var(--border-2); }
.ak-slupek { position: relative; flex: 1 1 0; min-width: 4px; max-width: 56px; height: 100%; display: flex; flex-direction: column-reverse; }
.ak-s { display: block; width: 100%; }
.ak-s-pop { background: var(--blue-700); }
.ak-s-otw { background: var(--blue-300); }
.ak-s-cta { background: var(--cyan); }
.ak-s-lab { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; }
.ak-wykres-os { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ak-leg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin: 0 2px 0 8px; }

@media (max-width: 900px) {
  .ak-podglad-lista { grid-template-columns: 1fr; }
  .akp-siatka { grid-template-columns: 1fr; }
  .akp-prawa { position: static; min-height: 0; }
  .ake-pasek-postepu { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 700px) {
  .ak-siatka { grid-template-columns: 1fr; gap: 12px; }
  .ak-karta-tytul { font-size: 16px; }
  .ak-html { font-size: 15px; }
  .ak-kafel-lista { grid-template-columns: 1fr; }
  .ak-kafel-lista > li + li { border-left: 0; border-top: 1px solid var(--border); }
  .ak-kafel-lista img, .ak-kafel-ico { width: 96px; height: 64px; }
  .ak-kafel-lista a { padding: 10px 12px; }
  .ak-kafel .card-head { padding: 9px 12px; }
  .akp-poz { grid-template-columns: 18px auto minmax(0, 1fr); }
  .akp-linia { display: none; }
  .modal.ak-modal .modal-foot { justify-content: stretch; }
  .modal.ak-modal .modal-foot .btn { flex: 1 1 auto; }
  .modal-foot .ak-nie-pokazuj { flex-basis: 100%; order: 9; margin: 0; }
  .ake-media li { grid-template-columns: 80px minmax(0, 1fr); }
  .ake-media-pod { width: 80px; height: 52px; }
  .ake-media-akcje { grid-column: 1 / -1; justify-content: flex-end; }
  .ak-wykres-os span:nth-child(2) { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ak-karta, .ak-zaslepka .ak-play { transition: none; }
}
