/* ===== Zmienne i reset ===== */
:root {
  --sky-top: #1a6fb5;
  --sky-mid: #3d9be0;
  --sky-light: #87ceeb;
  --cloud-white: #f0f8ff;
  --surface: #ffffff;
  --surface-alt: #f4f9fd;
  --text: #1a2a3a;
  --text-muted: #5a6f82;
  --accent: #e8a317;
  --accent-hover: #f5b82e;
  --border: #d4e8f5;
  --shadow: 0 4px 20px rgba(26, 111, 181, 0.12);
  --shadow-hover: 0 8px 30px rgba(26, 111, 181, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --nav-height: 52px;
  --status-height: 48px;
  --page-max-width: 1440px;
  --ads-width: 400px;
  --polecamy-tile-min: 12.2rem;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

@media (min-width: 1280px) {
  :root {
    --ads-width: 520px;
  }
}

@media (min-width: 1500px) {
  :root {
    --ads-width: 640px;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--cloud-white) 40%, #e8f4fc 100%);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--sky-top);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--sky-mid);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Layout ===== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header – panel opisowy + menu ===== */
.site-header {
  background: linear-gradient(135deg, var(--sky-top) 0%, var(--sky-mid) 60%, var(--sky-light) 100%);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hero-panel {
  padding: 1.5rem 2rem 1rem;
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.hero-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.hero-image-link {
  flex-shrink: 0;
  display: block;
  color: inherit;
  text-decoration: none;
  line-height: 0;
}

.hero-text-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.hero-text-link:hover {
  color: inherit;
  opacity: 0.95;
}

.hero-image {
  flex-shrink: 0;
  width: 280px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease;
}

.hero-image-link:hover .hero-image {
  transform: scale(1.03) rotate(-1deg);
}

.hero-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.15rem;
}

.hero-text {
  flex: 0 1 auto;
}

.hero-side .main-nav {
  background: transparent;
  border-top: none;
  backdrop-filter: none;
}

.hero-side .main-nav ul {
  padding: 0;
  max-width: none;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.site-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.02em;
}

.site-tagline {
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  color: rgba(255, 255, 255, 0.92);
  margin-top: 0.35rem;
  max-width: 600px;
  line-height: 1.45;
}

.site-tagline a + a {
  margin-left: 3.5em;
}

.site-tagline a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 2px;
  font-weight: 600;
}

.site-tagline a:hover {
  text-decoration-color: #fff;
  color: #fff;
}

/* Menu nawigacji */
.main-nav {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.main-nav .nav-link {
  display: block;
  padding: 0.85rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.main-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.main-nav .nav-link.active {
  color: #fff;
  border-bottom-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Główna treść + reklamy ===== */
.content-layout {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  width: 100%;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* ===== Sekcje ===== */
.section {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sky-top);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.section-icon {
  font-size: 1.3rem;
}

/* ===== Bezpośrednie linki – karty ===== */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sky-mid);
  color: var(--text);
}

.link-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.link-card-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--sky-top);
}

.link-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.link-card--hub .link-card-name::after {
  content: ' ›';
  color: var(--sky-mid);
  font-weight: 400;
}

.link-card--image-only {
  padding: 0;
  display: block;
  overflow: hidden;
  min-height: 120px;
  aspect-ratio: 4 / 3;
  background: #f0f6fb;
}

.link-card--image-only .link-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ===== Podstrony serwisów pogodowych ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sky-top);
  margin-bottom: 1rem;
  padding: 0.4rem 0;
  transition: gap 0.2s;
}

.back-link:hover {
  gap: 0.55rem;
  color: var(--sky-mid);
}

.service-intro {
  padding: 1.25rem 1.5rem;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.service-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sky-light), var(--sky-mid));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(26, 111, 181, 0.2);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sky-top);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  max-width: 560px;
}

.hidden {
  display: none !important;
}

.section--compact {
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.page-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sky-top);
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.link-list-compact {
  list-style: none;
}

.link-list-compact li {
  border-bottom: 1px solid var(--border);
}

.link-list-compact li:last-child {
  border-bottom: none;
}

.link-list-compact a {
  display: block;
  padding: 0.4rem 0.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sky-top);
}

.link-list-compact a:hover {
  color: var(--sky-mid);
  padding-left: 0.35rem;
  transition: padding-left 0.15s;
}

a.desc-link.desc-link--facebook,
.link-list-compact a.desc-link--facebook,
.link-list-compact li a.desc-link--facebook,
.link-list-compact a[href*="facebook.com"],
.topic-links-compact a.desc-link--facebook,
.topic-links-compact a[href*="facebook.com"],
.topic-links a.desc-link--facebook,
.topic-links a[href*="facebook.com"] {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.link-list-compact a.desc-link--facebook:hover,
.link-list-compact a[href*="facebook.com"]:hover,
.topic-links a.desc-link--facebook:hover,
.topic-links a[href*="facebook.com"]:hover {
  padding-left: 0.35rem;
}

a.desc-link--facebook::before,
.link-list-compact a.desc-link--facebook::before,
.link-list-compact a[href*="facebook.com"]::before,
.topic-links-compact a.desc-link--facebook::before,
.topic-links-compact a[href*="facebook.com"]::before,
.topic-links a.desc-link--facebook::before,
.topic-links a[href*="facebook.com"]::before {
  content: 'f';
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  background: #1877f2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  text-transform: lowercase;
}

.topic-links-compact {
  padding: 0 1rem 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.links-error {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.links-mixed .topic-panel {
  margin-top: 0.75rem;
}

.link-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-grid-auto__cell {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.link-grid-auto__cell:hover {
  border-color: var(--sky-mid);
  box-shadow: 0 2px 6px rgba(26, 74, 122, 0.08);
}

.link-grid-auto .desc-link {
  display: block;
  padding: 0.5rem 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sky-top);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-grid-auto .desc-link:hover {
  background: rgba(61, 155, 224, 0.1);
  color: var(--sky-mid);
}

.link-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
}

.link-grid-4__cell {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-width: 0;
}

.link-grid-4__cell:nth-child(4n) {
  border-right: none;
}

.link-grid-4 .desc-link {
  display: block;
  padding: 0.45rem 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sky-top);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-grid-4 .desc-link:hover {
  background: rgba(61, 155, 224, 0.1);
  color: var(--sky-mid);
}

@media (max-width: 900px) {
  .link-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .link-grid-4__cell:nth-child(4n) {
    border-right: 1px solid var(--border);
  }

  .link-grid-4__cell:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 480px) {
  .link-grid-4 {
    grid-template-columns: 1fr;
  }

  .link-grid-4__cell {
    border-right: none;
  }
}

/* ===== Panele tematyczne (accordion) ===== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.topic-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
  transition: box-shadow 0.2s;
}

.topic-panel[open] {
  box-shadow: var(--shadow);
  background: var(--surface);
}

.topic-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}

.topic-summary::-webkit-details-marker {
  display: none;
}

.topic-summary::marker {
  display: none;
  content: '';
}

.topic-summary:hover {
  background: rgba(61, 155, 224, 0.08);
}

.topic-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sky-light), var(--sky-mid));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(26, 111, 181, 0.2);
}

.topic-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.topic-label strong {
  font-size: 1rem;
  color: var(--sky-top);
}

.topic-label small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.topic-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--sky-mid);
  border-bottom: 2px solid var(--sky-mid);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-right: 4px;
}

.topic-panel[open] .topic-chevron {
  transform: rotate(-135deg);
}

.topic-links {
  list-style: none;
  padding: 0 1.25rem 1rem 5.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.topic-links li {
  padding: 0.4rem 0;
}

.topic-links a {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topic-links a::before {
  content: '→';
  color: var(--sky-mid);
  font-size: 0.85rem;
}

.topic-links a:hover::before {
  transform: translateX(2px);
}

/* ===== Panel boczny: YouTube + Facebook ===== */
.sidebar-panels {
  width: var(--ads-width);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-height) + 180px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.polecamy-panel {
  width: 100%;
}

.polecamy-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.75rem;
}

.polecamy-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--polecamy-tile-min), 1fr));
  gap: 0.65rem;
}

.polecamy-tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.polecamy-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.polecamy-tile__media {
  display: block;
  cursor: pointer;
}

.polecamy-tile__media:focus-visible {
  outline: 2px solid var(--sky-mid);
  outline-offset: -2px;
}

.polecamy-tile__img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a2a3a;
  overflow: hidden;
}

.polecamy-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polecamy-tile__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s;
}

.polecamy-tile__play::after {
  content: '';
  width: 35px;
  height: 35px;
  background: rgba(230, 33, 23, 0.92);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 55% center;
  background-size: 18px;
}

.polecamy-tile:hover .polecamy-tile__play {
  background: rgba(0, 0, 0, 0.35);
}

.polecamy-tile__footer {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.44rem 0.5rem;
}

.polecamy-tile__label {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky-top);
  line-height: 1.25;
  text-decoration: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.polecamy-tile__label:hover {
  color: var(--sky-mid);
}

.polecamy-tile__direct {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--sky-top);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.polecamy-tile__direct:hover {
  background: rgba(61, 155, 224, 0.12);
  border-color: var(--sky-mid);
  color: var(--sky-mid);
}

.polecamy-tile--placeholder {
  pointer-events: none;
  opacity: 0.75;
  border-style: dashed;
  box-shadow: none;
}

.polecamy-tile--placeholder .polecamy-tile__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  min-height: 0;
}

.polecamy-tile__placeholder-icon {
  font-size: 1.55rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* Panel Facebook (pod kafelkami YouTube) */
.facebook-panel {
  background: var(--surface);
  border: 1px solid #1877f2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.facebook-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.facebook-panel__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.facebook-panel__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
  background: linear-gradient(145deg, #1877f2 0%, #0d5bb5 100%);
  color: #fff;
}

.facebook-panel__icon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-transform: lowercase;
}

.facebook-panel__title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.facebook-panel__body {
  display: block;
  padding: 0.5rem 0.7rem 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ===== Podstrona Facebook ===== */
.page-heading--facebook {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.page-heading__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: #1877f2;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: lowercase;
}

.page-intro {
  margin: -0.25rem 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.facebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.facebook-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.facebook-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

.facebook-tile__img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #1a3a5c 0%, #1877f2 55%, #0d5bb5 100%);
  overflow: hidden;
}

.facebook-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.facebook-tile__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-transform: lowercase;
}

.facebook-tile__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}

.facebook-tile__play::after {
  content: '';
  width: 44px;
  height: 44px;
  background: rgba(24, 119, 242, 0.95);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 55% center;
  background-size: 22px;
}

.facebook-tile:hover .facebook-tile__play {
  background: rgba(0, 0, 0, 0.32);
}

.facebook-tile__label {
  display: block;
  padding: 0.55rem 0.65rem 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sky-top);
  line-height: 1.35;
}

.facebook-tile__source {
  display: block;
  padding: 0 0.65rem 0.55rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.facebook-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* ===== Panel statusu ===== */
.status-panel {
  background: linear-gradient(90deg, #1a3a5c 0%, #2a5a8a 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 1rem;
  margin-top: auto;
  border-top: 3px solid var(--accent);
}

.status-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-label {
  color: rgba(255, 255, 255, 0.65);
}

.status-value {
  font-weight: 600;
}

.status-ok {
  color: #6ee7a0;
}

.status-ok::before {
  content: '●';
  margin-right: 0.3rem;
  font-size: 0.7rem;
}

.status-copyright {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== Strony podrzędne (stub) ===== */
.stub-content {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

.stub-content p {
  font-size: 1.05rem;
}

/* ===== Responsywność ===== */
@media (max-width: 900px) {
  .content-layout {
    flex-direction: column;
  }

  .sidebar-panels {
    width: 100%;
    position: static;
  }

  .polecamy-panel {
    width: 100%;
  }

  .polecamy-list {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.75rem;
  }

  [data-facebook-panel] {
    max-width: var(--ads-width);
  }

  .status-copyright {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-panel {
    padding: 1rem;
  }

  .hero-layout {
    gap: 0.75rem;
  }

  .hero-image {
    width: 120px;
  }

  .hero-side .main-nav .nav-link {
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
  }

  .service-header {
    flex-direction: column;
    text-align: center;
  }

  .service-desc {
    max-width: none;
  }

  .main-nav ul {
    justify-content: flex-start;
  }

  .main-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .topic-links {
    padding-left: 1.25rem;
  }

  .link-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facebook-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .link-grid {
    grid-template-columns: 1fr;
  }
}
