/*
Theme Name: Pozdrower Portal
Theme URI: https://pozdrower.pl
Author: pozdrower.pl
Description: Motyw portalowy dla bloga pozdrower.pl inspirowany układem interia.pl — żółte akcenty, gęsta siatka kafelków, kolumna "Najnowsze".
Version: 1.14.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: pozdrower
*/
/* ============================================
   POZDROWER.PL — szablon portalowy (styl Interia)
   ============================================ */

:root {
  --yellow: #ffe200;
  --yellow-dark: #f5c800;
  --ink: #111111;
  --text: #1d1d1d;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --accent: #0a7d3c; /* zielony akcent rowerowy do etykiet sekcji */
  --max: 1220px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Pasek górny (pogoda + szybkie linki) ---------- */
.topbar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 16px;
}
.topbar-date {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.topbar-links {
  display: flex;
  gap: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.topbar-links a:hover { color: #000; text-decoration: none; border-bottom: 2px solid var(--yellow); }

/* ---------- Nagłówek: logo + szukajka + CTA ---------- */
.masthead {
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  padding: 6px 14px;
  text-transform: lowercase;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo span { font-weight: 400; }
.tagline {
  font-size: 12px;
  color: var(--muted);
  max-width: 150px;
  line-height: 1.3;
}
/* form.search (nie .search) — inaczej reguła trafia w <body class="search">
   na stronie wyników i rozwala cały układ strony wyszukiwania! */
form.search {
  flex: 1;
  display: flex;
  max-width: 480px;
}
form.search input {
  flex: 1;
  border: 2px solid var(--ink);
  border-right: 0;
  padding: 9px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
form.search button {
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  padding: 0 18px;
  cursor: pointer;
  font-family: inherit;
}
form.search button:hover { background: var(--yellow-dark); }
.header-cta {
  margin-left: auto;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 11px 18px;
  flex-shrink: 0;
}
.header-cta:hover { background: #333; text-decoration: none; }

/* ---------- Nawigacja główna ---------- */
.mainnav {
  border-bottom: 3px solid var(--yellow);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 50;
}
.mainnav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.mainnav a {
  display: block;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mainnav a:hover,
.mainnav .active a {
  background: var(--yellow);
  text-decoration: none;
}

/* ---------- Etykiety sekcji ---------- */
.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  background: var(--yellow);
  padding: 2px 7px;
  margin-bottom: 6px;
}
.kicker.green { background: var(--accent); color: #fff; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--ink);
  margin: 34px 0 18px;
  padding-bottom: 6px;
}
.section-head h2 {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--yellow);
  margin-right: 8px;
}
.section-head a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Siatka strefy głównej ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.9fr 1.1fr 1fr;
  gap: 24px;
  margin-top: 22px;
}

/* Artykuł wiodący */
.lead-card { position: relative; }
.lead-card .thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}
.lead-card h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  margin-top: 12px;
}
.lead-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.lead-card .meta { margin-top: 8px; }

.meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}
.meta .cat {
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .04em;
}

/* Kolumna środkowa: wyróżnione */
.featured-list { display: flex; flex-direction: column; }
.featured-list article {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.featured-list article:first-child { padding-top: 0; }
.featured-list h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}
.featured-list .meta { margin-top: 6px; }
.featured-list .thumb-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
}
.featured-list .thumb-row img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Kolumna "Najnowsze" (styl paska Interii) */
.latest {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 14px 16px;
  align-self: start;
}
.latest-head {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ink);
}
.latest-head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d40000;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.latest ol { list-style: none; }
.latest li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.latest li:last-child { border-bottom: 0; }
.latest time {
  font-weight: 800;
  font-size: 12px;
  margin-right: 8px;
}
.latest .title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  display: inline;
}
.latest .cat {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}

/* ---------- Karty artykułów ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card .thumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}
.card h3 {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 10px;
}
.card p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .meta { margin-top: 8px; }

/* ---------- Baner e-booka ---------- */
.ebook-banner {
  margin: 40px 0 6px;
  background: var(--yellow);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 30px;
}
.ebook-banner .kicker { background: var(--ink); color: var(--yellow); }
.ebook-banner h2 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}
.ebook-banner p {
  margin-top: 6px;
  font-size: 14px;
  max-width: 640px;
}
.ebook-banner .btn {
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .03em;
  padding: 14px 26px;
  white-space: nowrap;
}
.ebook-banner .btn:hover { background: #333; text-decoration: none; }
.ebook-banner .price { font-weight: 900; }

/* ---------- Newsletter ---------- */
.newsletter {
  margin-top: 40px;
  border: 2px solid var(--ink);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.newsletter h3 { font-size: 18px; font-weight: 900; }
.newsletter p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.newsletter form { display: flex; }
.newsletter input {
  border: 2px solid var(--ink);
  border-right: 0;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  min-width: 240px;
  outline: none;
}
.newsletter button {
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  padding: 0 20px;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Stopka ---------- */
.footer {
  margin-top: 48px;
  background: var(--ink);
  color: #cfcfcf;
  font-size: 13px;
}
.footer .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 36px 16px;
}
.footer .logo { font-size: 20px; }
.footer p { margin-top: 12px; max-width: 320px; line-height: 1.5; }
.footer h4 {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid #333;
  padding: 14px 0;
  font-size: 12px;
  color: #8a8a8a;
}
.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  grid-template-columns: none;
}

/* ---------- Strona artykułu ---------- */
.article-page {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) 1fr;
  gap: 40px;
  margin-top: 26px;
}
.article-page .breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.article-page h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
  margin: 6px 0 12px;
}
.article-body { font-size: 16px; line-height: 1.65; }
.article-body .thumb { margin: 18px 0; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.article-body p { margin: 14px 0; }
.article-body h2 { font-size: 21px; margin: 26px 0 8px; font-weight: 900; }
.tldr {
  background: var(--bg-soft);
  border-left: 5px solid var(--yellow);
  padding: 16px 20px;
  margin: 20px 0;
}
.tldr h3 { font-size: 14px; text-transform: uppercase; font-weight: 900; margin-bottom: 8px; }
.tldr ul { margin-left: 18px; font-size: 14.5px; }
.tldr li { margin-bottom: 6px; }

/* ---------- Responsywność ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1.6fr 1fr; }
  .latest { grid-column: 1 / -1; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .article-page { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .masthead .wrap { flex-wrap: wrap; gap: 12px; }
  form.search { order: 3; max-width: none; width: 100%; }
  .header-cta { margin-left: 0; }
  .tagline { display: none; }
  .topbar-links { display: none; }
  .ebook-banner, .newsletter { grid-template-columns: 1fr; }
  .lead-card h1 { font-size: 22px; }
}

/* ---------- Dodatki WordPress ---------- */
.article-body ul, .article-body ol { margin: 14px 0 14px 24px; }
.article-body blockquote {
  border-left: 5px solid var(--yellow);
  background: var(--bg-soft);
  padding: 14px 20px;
  margin: 18px 0;
  font-style: italic;
}
.article-body table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.article-body th { background: var(--bg-soft); font-weight: 800; }
.article-body img { height: auto; }
.wp-block-image figcaption, .wp-caption-text { font-size: 12px; color: var(--muted); margin-top: 6px; }
.alignwide { margin-left: -40px; margin-right: -40px; }
.aligncenter { margin-left: auto; margin-right: auto; }

.pagination, .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 34px 0 10px;
  font-weight: 800;
  font-size: 14px;
}
.pagination .page-numbers, .nav-links a, .nav-links span {
  border: 2px solid var(--ink);
  padding: 8px 14px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--yellow); text-decoration: none; }

.archive-title { font-size: 24px; font-weight: 900; margin: 26px 0 4px; }
.archive-title span { background: var(--yellow); padding: 2px 10px; }
.archive-description { color: var(--muted); font-size: 14px; margin-bottom: 10px; }

.post-tags { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags a {
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 4px 10px;
}
.post-tags a:hover { background: var(--yellow); text-decoration: none; }

.comments-area { margin-top: 36px; border-top: 3px solid var(--ink); padding-top: 18px; }
.comments-area .comment-list { list-style: none; margin: 0; }
.comments-area .comment { border-bottom: 1px solid var(--line); padding: 14px 0; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea {
  width: 100%; border: 2px solid var(--ink); padding: 9px 12px; font-family: inherit; margin: 4px 0 12px;
}
.comment-form input[type=submit] {
  border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); font-weight: 800;
  text-transform: uppercase; padding: 10px 22px; cursor: pointer; font-family: inherit;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
}
.error-404 { text-align: center; padding: 60px 0; }
.error-404 h1 { font-size: 64px; font-weight: 900; }
.error-404 form.search { margin: 20px auto 0; }

/* Listy generowane przez wp_nav_menu / wp_list_categories */
.topbar-links ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.mainnav ul, .footer ul { margin: 0; padding: 0; }
.footer .menu li, .footer .cat-item { margin-bottom: 8px; }
.masthead .custom-logo-link { flex-shrink: 0; }
.masthead .custom-logo { max-height: 48px; width: auto; }

/* ---------- Rozwijane podmenu w nawigacji głównej ---------- */
.mainnav li { position: relative; }
.mainnav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  list-style: none;
  z-index: 60;
}
@media (min-width: 681px) {
  .mainnav li:hover > .sub-menu,
  .mainnav li:focus-within > .sub-menu { display: block; }
}
.mainnav .sub-menu a {
  text-transform: none;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.mainnav .sub-menu li:last-child a { border-bottom: 0; }
@media (max-width: 680px) {
  .topbar-date { display: none; }
}

/* ============================================
   WooCommerce — spójne z motywem
   ============================================ */

/* Przyciski (dodaj do koszyka, kup, zamów) */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 13px;
  padding: 12px 22px;
  font-family: var(--font);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #place_order:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* Cena */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
  color: var(--ink);
  font-weight: 900;
  font-size: 22px;
}
.woocommerce div.product p.price del,
.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 400; }

/* Tytuł produktu */
.woocommerce div.product .product_title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}

/* Komunikaty (dodano do koszyka, błędy) */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--yellow);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--ink); }
.woocommerce-error { border-top-color: #d40000; }

/* Pola formularzy (koszyk, zamówienie, kupony) */
.woocommerce .input-text,
.woocommerce input.input-text,
.woocommerce-page .input-text,
.woocommerce select,
.woocommerce-page select {
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 14px;
}
.woocommerce form .form-row label { font-weight: 700; font-size: 13px; }

/* Tabele koszyka i zamówienia */
.woocommerce table.shop_table {
  border: 1px solid var(--line);
  border-radius: 0;
  border-collapse: collapse;
}
.woocommerce table.shop_table th {
  background: var(--bg-soft);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
}
.woocommerce table.shop_table td, .woocommerce table.shop_table th {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

/* Siatka produktów (gdyby doszło więcej produktów) */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.3;
}
.woocommerce ul.products li.product a img { border: 1px solid var(--line); }
.woocommerce span.onsale {
  background: var(--yellow);
  color: var(--ink);
  border-radius: 0;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  min-height: 0;
  min-width: 0;
  line-height: 1;
  padding: 6px 10px;
}

/* Okruszki WooCommerce */
.woocommerce .woocommerce-breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

/* Strona produktu w kolumnie artykułu — pełna szerokość elementów */
.article-body .woocommerce div.product div.images,
.article-body .woocommerce div.product div.summary { margin-bottom: 20px; }

@media (max-width: 680px) {
  .woocommerce div.product .product_title { font-size: 22px; }
}

/* Pasek administratora WP nie zasłania przyklejonego menu */
body.admin-bar .mainnav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .mainnav { top: 46px; }
}

/* ============================================
   Menu mobilne: hamburger + akordeon
   ============================================ */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  font-family: var(--font);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 0;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle-icon { font-size: 17px; line-height: 1; }
.submenu-toggle { display: none; }

/* Strzałka przy pozycjach z podmenu — tylko desktop (na mobile jest przycisk) */
@media (min-width: 681px) {
  .mainnav .menu-item-has-children > a::after,
  .mainnav .page_item_has_children > a::after { content: " ▾"; font-size: 10px; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .mainnav .wrap { display: flex; flex-wrap: wrap; align-items: center; }

  /* Panel menu: schowany, po otwarciu pionowa lista pełnej szerokości */
  .mainnav .wrap > ul {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    border-top: 1px solid var(--line);
  }
  .mainnav.open .wrap > ul { display: flex; }

  .mainnav .wrap > ul > li { border-bottom: 1px solid var(--line); }
  .mainnav .wrap > ul > li:last-child { border-bottom: 0; }

  /* Pozycja z podmenu: link + przycisk rozwijania obok siebie */
  .mainnav li { display: flex; flex-wrap: wrap; align-items: center; }
  .mainnav li > a { flex: 1; padding: 13px 8px; }
  .submenu-toggle {
    display: block;
    width: 48px;
    align-self: stretch;
    border: 0;
    border-left: 1px solid var(--line);
    background: none;
    font-size: 15px;
    color: var(--ink);
    cursor: pointer;
    transition: transform .2s;
  }
  .mainnav li.open > .submenu-toggle { transform: rotate(180deg); border-right: 1px solid var(--line); border-left: 0; }

  /* Podmenu jako akordeon: w nurcie strony, wcięte, z żółtą belką */
  .mainnav .sub-menu, .mainnav .children {
    display: none;
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--line);
    border-left: 3px solid var(--yellow);
    background: var(--bg-soft);
  }
  .mainnav li.open > .sub-menu, .mainnav li.open > .children { display: block; }
  .mainnav .sub-menu li { border-bottom: 1px solid var(--line); }
  .mainnav .sub-menu li:last-child { border-bottom: 0; }
  .mainnav .sub-menu a { padding: 11px 14px; }
}

/* ============================================
   v1.2: nakładka na artykule wiodącym, kolory
   kategorii, hovery, narzędzia, autor, do góry
   ============================================ */

/* --- Artykuł wiodący: tytuł na zdjęciu --- */
.lead-card .lead-link {
  display: block;
  position: relative;
  overflow: hidden;
}
.lead-card .lead-link .thumb { transition: transform .35s ease; }
.lead-card:hover .lead-link .thumb { transform: scale(1.03); }
.lead-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 70px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,.45) 55%, transparent);
  display: block;
}
.lead-overlay .lead-title {
  color: #fff;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 900;
  margin: 8px 0 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.lead-card:hover .lead-title { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.lead-card > p { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* --- Kolory kategorii (etykiety i kickery) --- */
.kicker-newsy { background: #1265c2; color: #fff; }
.kicker-prawo-i-bezpieczenstwo { background: #d40000; color: #fff; }
.kicker-poradniki-zakupowe,
.kicker-testy-i-recenzje-rowerow-elektrycznych { background: var(--accent); color: #fff; }
.kicker-e-booki { background: var(--ink); color: var(--yellow); }
.meta .cat-newsy { color: #1265c2; }
.meta .cat-prawo-i-bezpieczenstwo { color: #d40000; }
.meta .cat-poradniki-zakupowe,
.meta .cat-testy-i-recenzje-rowerow-elektrycznych { color: var(--accent); }

/* --- Hovery na kartach --- */
.card > a:first-child { display: block; overflow: hidden; }
.card .thumb { transition: transform .35s ease; }
.card:hover .thumb { transform: scale(1.05); }
.card:hover h3 a,
.featured-list article:hover h3 a {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
}

/* --- Czas czytania --- */
.read-time { white-space: nowrap; }
.read-time::before { content: "· "; }

/* --- Kafelki narzędzi --- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tool-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--ink);
  padding: 14px 16px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  transition: background .15s ease;
}
.tool-tile:hover { background: var(--yellow); text-decoration: none; }
.tool-icon { font-size: 26px; flex-shrink: 0; }

/* --- Ramka autora --- */
.author-box {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  border: 2px solid var(--ink);
  padding: 18px 20px;
  margin-top: 26px;
  align-items: start;
}
.author-box img.avatar { border-radius: 50%; }
.author-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--yellow);
  padding: 2px 7px;
  display: inline-block;
}
.author-box h4 { font-size: 17px; font-weight: 900; margin: 6px 0 4px; }
.author-box p { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.author-box > div > a { font-size: 12.5px; font-weight: 700; text-transform: uppercase; }

/* --- Przeczytaj też --- */
.related { margin-top: 8px; }
.related-grid { grid-template-columns: repeat(2, 1fr); }

/* --- Przycisk "do góry" --- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.to-top.visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--yellow); }

@media (max-width: 1000px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .tools-grid, .related-grid { grid-template-columns: 1fr; }
  .lead-overlay .lead-title { font-size: 21px; }
  .lead-overlay { padding: 50px 14px 14px; }
  .author-box { grid-template-columns: 56px 1fr; gap: 14px; }
}

/* ============================================
   v1.3: udostępnianie + chipy tematów
   ============================================ */

/* --- Przyciski udostępniania --- */
.share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.share-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.share-btn {
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.share-btn:hover { text-decoration: none; }
.share-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-x:hover { background: #111; color: #fff; }
.share-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-copy:hover { background: var(--yellow); }

/* --- Chipy tematów --- */
.topics-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  border: 2px solid var(--ink);
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 800;
  transition: background .15s ease;
}
.chip span {
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  margin-left: 4px;
}
.chip:hover { background: var(--yellow); text-decoration: none; }
.chip:hover span { color: var(--ink); }

/* ============================================
   v1.3.1: poprawki obrazków
   ============================================ */

/* height:auto — bez tego atrybut height obrazka wygrywa z aspect-ratio
   i pionowe grafiki rozciągają karty */
.lead-card .thumb,
.card .thumb,
.featured-list .thumb-row img {
  height: auto;
}

/* Link "wszystkie wpisy" pod kolumną Najnowsze */
.latest-more {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.latest-more:hover { background: var(--yellow); text-decoration: none; }

/* ============================================
   v1.4: naprzemienne sekcje, plakietka NOWE,
   sociale w stopce
   ============================================ */

/* --- Sekcja naprzemienna: 1 duży + 3 kompaktowe --- */
.feature-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 26px;
  align-items: start;
}
.feature-main .feature-img { display: block; overflow: hidden; }
.feature-main .thumb {
  aspect-ratio: 16 / 9;
  height: auto;
  width: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.feature-main:hover .thumb { transform: scale(1.03); }
.feature-main .kicker { margin-top: 12px; }
.feature-main h3 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 4px;
}
.feature-main:hover h3 a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.feature-main p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.feature-main .meta { margin-top: 8px; }

.feature-side { display: flex; flex-direction: column; }
.feature-side article {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.feature-side article:first-child { padding-top: 0; }
.feature-side article:last-child { border-bottom: 0; }
.feature-side .thumb-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
}
.feature-side .thumb-row img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}
.feature-side h4 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.feature-side article:hover h4 a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.feature-side .meta { margin-top: 5px; }

/* --- Plakietka NOWE --- */
.badge-new {
  background: #d40000;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 6px;
  flex-shrink: 0;
}
.latest .badge-new { margin-right: 6px; }

/* --- Sociale w stopce --- */
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.footer-social a {
  border: 1px solid #555;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-social a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 1000px) {
  .feature-split { grid-template-columns: 1fr; }
}

/* ============================================
   v1.4.1: pływający panel widgetów (prawa strona)
   ============================================ */
.floating-panel {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  max-height: 72vh;
  overflow-y: auto;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
  padding: 18px 16px 14px;
  z-index: 70;
}
.floating-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 2px 6px;
}
.floating-close:hover { color: var(--ink); }
.floating-widget-title {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.floating-widget-item { margin-bottom: 16px; font-size: 13.5px; }
.floating-widget-item:last-child { margin-bottom: 0; }
.floating-widget-item ul { list-style: none; }
.floating-widget-item li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.floating-widget-item li:last-child { border-bottom: 0; }
.floating-widget-item img { height: auto; }

/* Na węższych ekranach panel zasłaniałby treść — chowamy */
@media (max-width: 1024px) {
  .floating-panel { display: none; }
}

/* ============================================
   v1.4.2: logo w przyklejonym menu po przewinięciu
   ============================================ */
.mainnav .wrap {
  display: flex;
  align-items: stretch;
}
.mainnav .wrap > ul { flex: 1; }
.mainnav .nav-logo {
  display: none;
  align-items: center;
  align-self: center;
  background: var(--yellow);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  padding: 5px 10px;
  margin-right: 12px;
  flex-shrink: 0;
  animation: nav-logo-in .25s ease;
}
.nav-logo span { font-weight: 400; }
.nav-logo:hover { text-decoration: none; background: var(--yellow-dark); }
.mainnav.scrolled .nav-logo { display: inline-flex; }
@keyframes nav-logo-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 680px) {
  .nav-logo { margin-right: 8px; }
}

/* ============================================
   v1.4.3: menu zawsze w jednej linii
   ============================================ */
@media (min-width: 681px) {
  /* bez łamania paska na dwie linie */
  .mainnav .wrap { flex-wrap: nowrap; }
  .mainnav .wrap > ul { flex-wrap: nowrap; min-width: 0; }

  /* po przewinięciu logo zabiera miejsce — pozycje menu lekko się zagęszczają */
  .mainnav.scrolled .wrap > ul > li > a {
    padding-left: 11px;
    padding-right: 11px;
    font-size: 12.5px;
  }
}

/* ============================================
   v1.5.3: ciaśniejsza kolumna Najnowsze
   ============================================ */
.latest li { padding: 9px 0; }
.latest .title { font-size: 13px; }

/* ============================================
   v1.5.6: strefa główna — stabilny kadr 16:9,
   zajawka przycięta do 2 linii
   ============================================ */
@media (min-width: 1001px) {
  .lead-card > p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .featured-list article:last-child { border-bottom: 0; }
}

/* ============================================
   v1.6: lewa kolumna strefy głównej — artykuł
   wiodący + 2 małe wpisy pod spodem
   ============================================ */
.lead-minis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.lead-minis .mini {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: start;
}
.lead-minis .mini > a { display: block; overflow: hidden; }
.lead-minis .mini img {
  aspect-ratio: 4 / 3;
  height: auto;
  width: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.lead-minis .mini:hover img { transform: scale(1.05); }
.lead-minis h3 {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}
.lead-minis .mini:hover h3 a {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
}
.lead-minis .meta { margin-top: 4px; }

@media (max-width: 480px) {
  .lead-minis { grid-template-columns: 1fr; }
}

/* ============================================
   v1.6.1: drugi duży wpis w lewej kolumnie
   ============================================ */
.lead-second { margin-top: 18px; }
.lead-second .lead-title { font-size: 21px; }
.lead-second .lead-overlay { padding: 50px 16px 14px; }

/* ============================================
   v1.7: okładka e-booka w banerze
   ============================================ */
/* Okładka w banerze na stronie głównej */
.ebook-banner { grid-template-columns: auto 1fr auto; }
.ebook-banner-cover { width: 120px; flex-shrink: 0; }
.ebook-banner-cover img {
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(0,0,0,.25);
}

@media (max-width: 680px) {
  .ebook-banner { grid-template-columns: 1fr; }
}

/* ============================================
   v1.7.2: audyt mobilny — szerokie tabele
   przewijane wewnątrz, nie rozpychają strony
   ============================================ */
.article-body figure.wp-block-table,
.article-body .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body figure.wp-block-table table { min-width: 480px; }

/* ============================================
   v1.7.3: pionowy obrazek wyróżniający (okładka
   e-booka) — bez kadrowania, wyśrodkowany
   ============================================ */
.article-body .thumb-portrait {
  aspect-ratio: auto;
  width: auto;
  max-width: min(360px, 100%);
  max-height: 520px;
  object-fit: contain;
  margin: 18px auto;
  border: 1px solid var(--line);
  box-shadow: 6px 6px 0 rgba(0,0,0,.12);
}

/* ============================================
   v1.7.4: nic nie może rozpychać strony na
   telefonach (tabele, osadzenia, długie słowa)
   ============================================ */
/* Siatka bezpieczeństwa: treść szersza niż ekran jest przycinana,
   zamiast zmuszać telefon do oddalenia widoku ("wygląd desktopu") */
html { overflow-x: clip; }

/* Osadzenia (YouTube itp.) nigdy szersze niż ekran */
.article-body iframe,
.article-body embed,
.article-body object,
.article-body video {
  max-width: 100%;
}

/* Tabele bez wrappera: przewijane same w sobie */
.article-body > table,
.article-body .table-wrap table {
  width: 100%;
}
.article-body p > img { max-width: 100%; height: auto; }

/* Długie adresy/słowa łamią się zamiast rozpychać kolumnę */
.article-body { overflow-wrap: break-word; }

/* ============================================
   v1.7.5: OSTATECZNA poprawka mobilna — czysty
   CSS, bez zależności od JS i nowych przeglądarek
   ============================================ */

/* 1. Tabele w treści przewijają się same w sobie (klasyczny trik
      display:block) — działa wszędzie, nie wymaga wrappera ani JS */
.article-body table {
  display: block;
  width: 100% !important;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body pre { overflow-x: auto; max-width: 100%; }

/* 2. Kolumny gridów MOGĄ kurczyć się poniżej szerokości zawartości —
      bez tego szeroka tabela usztywnia całą stronę do 600+ px */
.article-page > article,
.article-page > aside,
.hero-grid > *,
.card-grid > *,
.feature-split > *,
.related-grid > * {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 1000px) {
  .article-page { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 680px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 3. Siatka bezpieczeństwa: clip nie tworzy kontenera przewijania,
      więc NIE psuje position:sticky (hidden potrafi) */
html, body { overflow-x: clip; }

/* ============================================
   v1.8: widgety w prawej kolumnie (sticky),
   pływający panel tylko na bardzo szerokich
   ekranach — nigdy nie nachodzi na treść
   ============================================ */
.side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* celowo BEZ align-self:start — kolumna musi rozciągać się na całą
     wysokość wiersza, żeby sticky miał przestrzeń do przesuwania */
  min-width: 0;
}
.side-col .latest { flex-shrink: 0; }
/* Przyklejony kontener na wysokość okna; karta centrowana w nim
   flexboxem — zawsze na środku ekranu, bez zależności od wymiarów */
.side-widgets {
  position: sticky;
  top: 70px;
  height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.side-widgets .floating-widget-item {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 18px 16px;
  margin-bottom: 0;
}

/* Pływający panel przy krawędzi TYLKO gdy obok treści (1220px)
   jest realne miejsce na 300px panelu + marginesy */
@media (max-width: 1859px) {
  .floating-panel { display: none; }
}
/* Na szerokich ekranach nie dublujemy: znika wersja w kolumnie */
@media (min-width: 1860px) {
  .side-widgets { display: none; }
}

@media (max-width: 1000px) {
  .side-col { grid-column: 1 / -1; }
}

/* Stopka: linia afiliacyjna + zawijanie na telefonie */
.footer-bottom .wrap { flex-wrap: wrap; gap: 6px 24px; }
.footer-affiliate { color: #8a8a8a; max-width: 620px; }
@media (max-width: 680px) {
  .footer-bottom .wrap { flex-direction: column; }
}

/* ============================================
   v1.9.9: kompaktowa wyszukiwarka w przyklejonym
   menu — wysuwa się po przewinięciu (jak Interia)
   ============================================ */
.nav-search { display: none; }
.mainnav.scrolled .nav-search {
  display: flex;
  align-self: center;
  margin-left: 14px;
  flex-shrink: 0;
  animation: nav-search-in .25s ease;
}
@keyframes nav-search-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.nav-search input {
  border: 2px solid var(--ink);
  border-right: 0;
  padding: 6px 10px;
  font-size: 13px;
  width: 150px;
  font-family: var(--font);
  outline: none;
  transition: width .2s ease;
}
.nav-search input:focus { width: 200px; }
.nav-search button {
  border: 2px solid var(--ink);
  background: var(--yellow);
  padding: 0 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.nav-search button:hover { background: var(--yellow-dark); }
@media (max-width: 680px) {
  .nav-search { display: none !important; } /* na telefonie zostaje hamburger */
}

/* ============================================
   v1.10: menu — aktywna sekcja + wyróżniony e-book
   ============================================ */

/* Podświetlenie bieżącej sekcji (WordPress dodaje te klasy automatycznie) */
.mainnav .current-menu-item > a,
.mainnav .current-menu-ancestor > a,
.mainnav .current-menu-parent > a,
.mainnav .current_page_item > a,
.mainnav .current_page_ancestor > a,
.mainnav .current-cat > a {
  background: var(--yellow);
  color: var(--ink);
}

/* E-book jako żółty przycisk-CTA w menu (czarny po najechaniu / gdy aktywny) */
.mainnav .menu-highlight > a {
  background: var(--yellow);
  color: var(--ink);
}
.mainnav .menu-highlight > a::after { content: none; } /* bez strzałki podmenu */
.mainnav .menu-highlight > a:hover,
.mainnav .menu-highlight.current-menu-item > a {
  background: var(--ink);
  color: var(--yellow);
}

/* Na telefonie (rozwijane menu) e-book jako pełny żółty pasek */
@media (max-width: 680px) {
  .mainnav .menu-highlight > a { background: var(--yellow); color: var(--ink); }
}

/* ============================================
   v1.11: MEGA-MENU (pozycja z klasą CSS "mega")
   ============================================ */
@media (min-width: 681px) {
  .mainnav .wrap { position: relative; } /* kontekst dla szerokiego panelu */
  .mainnav li.mega { position: static; }
  .mega-menu {
    left: 0;
    width: 100%;
    max-width: 860px;
    box-sizing: border-box;
    padding: 22px;
  }
  .mainnav li.mega:hover > .mega-menu,
  .mainnav li.mega:focus-within > .mega-menu { display: flex; gap: 26px; }
}
.mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  column-count: 2;
  column-gap: 26px;
}
.mega-links li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.mega-links a {
  display: block;
  padding: 9px 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.mega-links a:hover { background: var(--yellow); text-decoration: none; }
.mega-featured {
  flex: 0 0 240px;
  display: block;
  text-decoration: none;
  color: inherit;
}
.mega-featured-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--yellow);
  color: var(--ink);
  padding: 2px 8px;
  margin-bottom: 8px;
}
.mega-featured-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}
.mega-featured-title {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}
.mega-featured:hover .mega-featured-title {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
}

/* Mega-menu na telefonie: zwykły akordeon, bez polecanego wpisu */
@media (max-width: 680px) {
  .mega-menu {
    position: static;
    width: auto;
    max-width: none;
    display: none;
    padding: 0;
    box-shadow: none;
    border: 0;
    border-left: 3px solid var(--yellow);
    background: var(--bg-soft);
  }
  .mainnav li.mega.open > .mega-menu { display: block; }
  .mega-links { column-count: 1; }
  .mega-featured { display: none; }
}

/* Szablon "Pełna szerokość" — treść landingów/hubów bez kolumny bocznej */
.page-full { margin-top: 26px; }

/* ===== Pasek „Na bieżąco” (ruchomy ticker pod menu) ===== */
.ticker {
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: stretch;
  background: #f7f7f7;
  border-top: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
}
.ticker-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 7px 13px;
  margin-right: 14px;
  white-space: nowrap;
}
.ticker-label::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--yellow);
  animation: ticker-pulse 1.6s ease-in-out infinite;
}
@keyframes ticker-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}
.ticker-viewport {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 45s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: inline-flex; align-items: center; }
.ticker-track a {
  color: #1d1d1d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
  white-space: nowrap;
}
.ticker-track a:hover {
  color: #000;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}
.ticker-sep { color: #c4c4c4; padding: 0 13px; font-weight: 900; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-label::before { animation: none; }
  .ticker-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
/* Ukryj pasek „Na bieżąco” na telefonach */
@media (max-width: 680px) {
  .ticker { display: none; }
}

/* ===== Pasek mobilny (przyklejony na dole, tylko telefony) ===== */
.mobilebar { display: none; }

@media (max-width: 680px) {
  .mobilebar {
    display: flex;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--ink);
    border-top: 3px solid var(--yellow);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, .18);
    transform: translateY(0);
    transition: transform .3s ease;
  }
  .mobilebar.is-hidden { transform: translateY(110%); }
  .mobilebar-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 14px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
  }
  .mobilebar-arrow { color: var(--yellow); font-weight: 900; font-size: 16px; }
  .mobilebar-close {
    flex: 0 0 auto;
    width: 44px;
    border: 0;
    border-left: 1px solid #333;
    background: transparent;
    color: #9a9a9a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }
  .mobilebar-close:hover { color: #fff; }

  /* Wariant przecięty na pół */
  .mobilebar-half {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 13px 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
  }
  .mobilebar-half-left { color: #fff; }
  .mobilebar-half-right {
    background: var(--yellow);
    color: var(--ink);
  }
  .mobilebar-split .mobilebar-close { border-left: 1px solid rgba(0, 0, 0, .25); }

  /* Podnieś treść i przycisk „do góry”, żeby pasek nic nie zasłaniał */
  body.has-mobilebar { padding-bottom: 54px; }
  body.has-mobilebar .to-top { bottom: 66px; }
}
