:root {
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  
  --brand-blue: #0A84FF;
  --brand-blue-hover: #006CE6;
  
  --color-green: #22c55e;
  --color-indigo: #0A84FF;
  --color-pink: #8b5cf6;
  --color-gray: #94a3b8;
  --color-yellow: #f59e0b;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow-soft: 0 1px 4px rgba(0,0,0,0.03);

  --transition: 0.2s ease-in-out;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- OGÓLNE PRZYCISKI --- */
.btn-primary {
  background-color: var(--brand-blue);
  color: #FFFFFF;
  border: 1px solid var(--brand-blue);
  transition: background-color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* =========================================
   TOP INFO STRIP
   ========================================= */
.info-strip {
  background-color: #111827;
  color: #D1D5DB;
  font-size: 13px;
}

.info-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
}

.top-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.weather-info, .aqi-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #FFFFFF;
}

.wx-icon {
  display: flex;
  align-items: center;
  color: var(--brand-blue);
}

.wx-icon svg { width: 16px; height: 16px; }

.aqi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #9CA3AF;
  flex-shrink: 0;
}

.aqi-vg { background-color: #4ade80; }
.aqi-g { background-color: #a3e635; }
.aqi-m { background-color: #facc15; }
.aqi-s { background-color: #fb923c; }
.aqi-b { background-color: #f87171; }
.aqi-vb { background-color: #ef4444; }

.separator {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

/* =========================================
   PASEK UTRUDNIEŃ DROGOWYCH (DESKTOP)
   ========================================= */
.road-alert-strip { background-color: #1e293b; color: #D1D5DB; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, 0.05); position: relative; }
.road-alert-strip-inner { padding: 8px 20px; position: relative; }
.ras-swipe-container { display: flex; align-items: center; width: 100%; gap: 12px; }
.ras-swipe-track { display: flex; flex: 1; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; align-items: center; scroll-behavior: smooth; }
.ras-swipe-track::-webkit-scrollbar { display: none; }
.ras-swipe-item { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; }
.ras-item-inner { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.ras-item-header { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 0; }
.ras-label { color: #F59E0B; font-weight: 700; display: flex; align-items: center; gap: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.ras-label svg { width: 14px; height: 14px; }
.ras-badges { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ras-badge, .ras-status { flex-shrink: 0; }
.ras-badge { background-color: #E30613; color: #FFF; border-radius: 3px; padding: 2px 6px; font-size: 10px; font-weight: 700; }
.ras-status { background-color: #475569; color: #FFF; border-radius: 3px; padding: 2px 6px; font-size: 10px; font-weight: 700; }
.ras-text-wrap { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; }
.ras-text { color: #F8FAFC; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.ras-source { color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 400; white-space: nowrap; flex-shrink: 0; }

.ras-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ras-nav button { background: transparent; border: 1px solid rgba(255, 255, 255, 0.15); color: #D1D5DB; width: 26px; height: 26px; border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; padding: 0; }
.ras-nav button:hover { background: rgba(255, 255, 255, 0.1); color: #FFF; }
.ras-nav button svg { width: 14px; height: 14px; }
.ras-nav-btn { flex-shrink: 0; }
.ras-btn-lista { font-size: 10px !important; font-weight: 700 !important; background: rgba(255, 255, 255, 0.1) !important; border: none !important; padding: 0 8px !important; border-radius: 4px !important; color: #fff !important; cursor: pointer; height: 26px !important; width: auto !important; margin-left: 4px; }
.ras-btn-lista:hover { background: rgba(255, 255, 255, 0.2) !important; }

.ras-list-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.4); z-index: 199; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; }
.ras-list-backdrop.open { opacity: 1; visibility: visible; }
.ras-dropdown { position: absolute; top: 100%; left: 20px; right: 20px; background: #1e293b; border: 1px solid rgba(255,255,255,0.05); border-top: none; border-radius: 0 0 8px 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); z-index: 200; display: none; flex-direction: column; max-height: 350px; overflow-y: auto; }
.ras-dropdown.open { display: flex; }
.ras-dropdown-item { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: #E2E8F0; word-break: break-word; }
.ras-dropdown-item:last-child { border-bottom: none; }



/* =========================================
   KOMUNIKATY DLA MIESZKAŃCÓW - BOX NA STRONIE GŁÓWNEJ
   ========================================= */
.home-notices {
  padding: 20px;
  margin-bottom: 24px;
}

.home-notices[hidden] {
  display: none !important;
}

.home-notices-head {
  margin-bottom: 14px;
}

.home-notices-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: #F1F5F9;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
}

.home-notices-all:hover {
  background: #E2E8F0;
  color: var(--brand-blue-hover);
}

.home-notices-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #F1F5F9;
}

.home-notice-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #F1F5F9;
  color: inherit;
}

.home-notice-item[hidden] {
  display: none !important;
}

.home-notice-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.home-notice-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
}

.home-notice-link:hover {
  color: inherit;
}

.home-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #F59E0B;
  flex-shrink: 0;
}

.home-notice-icon svg {
  width: 16px;
  height: 16px;
}

.home-notice-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-notice-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-notice-label {
  color: #F59E0B;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* Kolory typów komunikatów */
.home-notice-type-important .home-notice-icon {
  background: #FFF7ED;
  border-color: #FED7AA;
  color: #F59E0B;
}
.home-notice-type-important .home-notice-label {
  color: #F59E0B;
}

.home-notice-type-info .home-notice-icon {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: var(--brand-blue);
}
.home-notice-type-info .home-notice-label {
  color: var(--brand-blue);
}

.home-notice-type-new .home-notice-icon {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #16A34A;
}
.home-notice-type-new .home-notice-label {
  color: #16A34A;
}

.home-notice-type-warning .home-notice-icon {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #DC2626;
}
.home-notice-type-warning .home-notice-label {
  color: #DC2626;
}

.home-notice-type-neutral .home-notice-icon {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #64748B;
}
.home-notice-type-neutral .home-notice-label {
  color: #64748B;
}

.home-notice-date {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.home-notice-title {
  display: block;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  word-break: break-word;
}

.home-notice-link:hover .home-notice-title {
  color: var(--brand-blue);
}

.home-notice-summary {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.home-notice-readmore {
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.home-notice-link:hover .home-notice-readmore {
  color: var(--brand-blue-hover);
}

.home-notice-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: #F8FAFC;
  color: #94A3B8;
  cursor: pointer;
  line-height: 1;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.home-notice-dismiss span {
  display: block;
  transform: translateY(-1px);
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
}

.home-notice-dismiss:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: var(--text-main);
}

.announcements-page {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.announcements-page .home-notices-list {
  border-top: 0;
}

.announcements-page .home-notice-item {
  grid-template-columns: minmax(0, 1fr);
}

.announcements-page .home-notice-item:first-child {
  padding-top: 0;
}

@media (max-width: 768px) {
  .home-notices {
    padding: 18px;
    margin-bottom: 22px;
  }

  .home-notices-head {
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .home-notices-all {
    min-height: 30px;
    padding: 6px 10px;
  }

  .home-notice-item {
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 0;
  }

  .home-notice-link {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: flex-start;
    gap: 12px;
  }

  .home-notice-icon {
    margin-top: 2px;
  }

  .home-notice-readmore {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .home-notice-dismiss {
    margin-top: 0;
  }

  .announcements-page {
    padding: 20px;
  }
}

/* =========================================
   TOPBAR & MAIN HEADER
   ========================================= */
.topbar {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 28px;
  display: block;
}

.topbar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #F8FAFC;
  color: var(--text-main);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hidden-mobile {
  display: inline;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a,
.nav-dropdown > summary {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav a:hover,
.nav a.active,
.nav-dropdown:hover > summary,
.nav-dropdown[open] > summary,
.nav-dropdown.active > summary {
  color: var(--brand-blue);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-summary {
  gap: 6px;
}

.nav-dropdown-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-dropdown-chevron::before {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.nav-dropdown:hover > summary .nav-dropdown-chevron,
.nav-dropdown[open] > summary .nav-dropdown-chevron,
.nav-dropdown.active > summary .nav-dropdown-chevron {
  color: var(--brand-blue);
}

.nav-dropdown[open] > summary .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 240px;
  padding: 6px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 140;
}

.nav-dropdown-menu::before { display: none; }

.nav-dropdown[open] .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-main);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: #F8FAFC;
  color: var(--brand-blue);
}


/* =========================================
   MAIN CONTENT & TOP GRID
   ========================================= */
.main-content {
  flex: 1 0 auto;
  padding-top: 24px;
  padding-bottom: 60px;
  width: 100%;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  max-width: 100%;
}

.top-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-bottom: 24px;
  min-height: 350px;
  align-items: stretch;
}

.top-layout-grid > * {
  min-width: 0;
}

.top-layout-grid .heroBanner {
  height: 350px;
  min-height: 350px;
  margin-bottom: 0;
  align-self: stretch;
}

.heroBanner .inner {
  display: block;
  width: 100%;
  height: 100%;
}

.heroBanner {
  position: relative;
  width: 100%;
  height: 350px; 
  border-radius: var(--radius); 
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px; 
}

.heroBanner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heroHint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  color: #fff;
  font-size: 11px;
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  border-radius: 4px;
}

#wydarzenia.widget {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 350px;
  align-self: stretch;
}

#wydarzenia .section-head { margin-bottom: 12px; }
#wydarzenia .event-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}

#wydarzenia .event-item {
  display: flex;
  gap: 12px;
  padding: 15px 0; 
  border-bottom: 1px solid #F1F5F9;
}

#wydarzenia .event-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#wydarzenia .btn-all-events {
  margin-top: auto; 
  transition: background-color var(--transition);
}
.btn-all-events:hover { background: #E2E8F0; }


/* =========================================
   TILES
   ========================================= */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  color: #fff;
  border-radius: var(--radius);
  transition: transform 0.2s;
}
.tile:hover { transform: translateY(-2px); }

.tile-green { background: var(--color-green); }
.tile-indigo { background: var(--color-indigo); }
.tile-pink { background: var(--color-pink); }
.tile-yellow { background: var(--color-yellow); }

.ticon svg { width: 24px; height: 24px; }
.tile-text h5 { margin: 0; font-size: 14px; font-weight: 600; }
.tile-text p { margin: 2px 0 0; font-size: 12px; opacity: 0.9; }

/* =========================================
   GRID & SECTIONS
   ========================================= */
.grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 60px;
}

.content-column, .sidebar-column { min-width: 0; }
.section { padding: 24px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap; 
  gap: 12px;
}

.section-title { font-size: 16px; font-weight: 700; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.home-equal-widget { padding: 20px; }
.home-equal-head { margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.home-feed-title { display: flex; align-items: center; gap: 8px; }

.news-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap; 
}
.news-logos img { height: 24px; object-fit: contain; }

/* =========================================
   UJEDNOLICONE SUWAKI (Wiadomości i Ogłoszenia)
   ========================================= */
.scrollable-news::-webkit-scrollbar,
#ogloszenia .section-body::-webkit-scrollbar { width: 6px; }
.scrollable-news::-webkit-scrollbar-track,
#ogloszenia .section-body::-webkit-scrollbar-track { background: #F1F5F9; border-radius: 4px; }
.scrollable-news::-webkit-scrollbar-thumb,
#ogloszenia .section-body::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
.scrollable-news::-webkit-scrollbar-thumb:hover,
#ogloszenia .section-body::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* =========================================
   WIADOMOŚCI RSS
   ========================================= */
.scrollable-news { max-height: 1200px; overflow-y: auto; overflow-x: hidden; padding-right: 8px; }

.news-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 24px;
  min-width: 0;
}
.news-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

@media (min-width: 769px) {
  .content-column .news-item { flex-direction: row-reverse; align-items: flex-start; }
  .content-column .news-thumb { width: 220px; height: 140px; }
}

.news-thumb { width: 100%; height: 180px; border-radius: var(--radius-sm); overflow: hidden; background: #F1F5F9; flex-shrink: 0; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-content { flex: 1; min-width: 0; }
.news-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.news-date { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.news-title { font-size: 15px; font-weight: 700; margin: 0 0 20px 0; line-height: 1.4; word-break: break-word; }
.news-title a { color: var(--text-main); transition: color 0.2s; }
.news-title a:hover { color: var(--brand-blue); }
.news-excerpt-short, .news-excerpt-full { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0; word-break: break-word; }
.news-actions { display: flex; align-items: center; margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.news-expand-btn { background: none; border: none; color: var(--brand-blue); cursor: pointer; font-size: 12.5px; font-weight: 600; padding: 0; transition: color var(--transition); }
.news-expand-btn:hover { color: var(--brand-blue-hover); }
.news-more-link { display: inline-block; font-size: 11px; font-weight: 600; color: #FFFFFF !important; background-color: var(--brand-blue); padding: 6px 12px; border-radius: 6px; text-decoration: none; white-space: nowrap; transition: 0.2s; }
.news-more-link:hover { background-color: var(--brand-blue-hover); transform: translateY(-1px); }

/* --- OGŁOSZENIA --- */
#rss-news-combined, #ogloszenia { padding: 20px; }
#rss-news-combined .section-head, #ogloszenia .section-head { margin-bottom: 16px; }
#ogloszenia .section-body { max-height: 800px; overflow-y: auto; overflow-x: hidden; padding-right: 8px; }

.mobile-home-tabs { display: none; margin-bottom: 20px; gap: 10px; }
.mobile-home-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #DCE5EF;
  background: #F8FAFC;
  color: var(--text-main);
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.mobile-home-tab.is-active { background: var(--brand-blue); color: #FFFFFF; border-color: var(--brand-blue); box-shadow: 0 4px 12px rgba(10, 132, 255, 0.18); }
.mobile-home-tab:active { transform: translateY(1px); }
.is-hidden-mobile-panel { display: none !important; }

/* =========================================
   SIDEBAR WIDGETS
   ========================================= */
.widget { padding: 20px; }
.event-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F1F5F9; }
.event-item:last-child { border-bottom: none; padding-bottom: 0; }
.event-date { width: 42px; height: 42px; background: var(--brand-blue); color: #EBF4FF; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 6px; flex-shrink: 0; }
.ed-day { font-size: 15px; font-weight: 700; }
.ed-month { font-size: 10px; text-transform: uppercase; margin-top: -2px; }
.event-details { min-width: 0; }
.event-details strong { font-size: 13px; font-weight: 600; display: block; word-break: break-word; }
.event-details span { font-size: 12px; color: var(--text-muted); }
.btn-all-events { display: block; text-align: center; padding: 10px 0; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--brand-blue); background: #F1F5F9; border-radius: var(--radius-sm); transition: background-color var(--transition); }
.link-list { display: flex; flex-direction: column; }
.classic-link { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #F1F5F9; font-size: 13px; font-weight: 500; gap: 10px; transition: color 0.2s; }
.classic-link:hover { color: var(--brand-blue); }
.linkbtn-fb-icon-only { background: #EBF4FF; color: var(--brand-blue); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.linkbtn-fb-icon-only:hover { background: #D6E8FF; }

/* =========================================
   FLOATING CONTACT BUTTON
   ========================================= */
.floating-contact-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 160;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-contact-btn:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-2px);
}

.floating-contact-btn svg {
  width: 24px;
  height: 24px;
}

/* =========================================
   PROFESSIONAL FOOTER
   ========================================= */
.footer { background-color: #111827; color: #FFFFFF; padding: 60px 0 30px; width: 100%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 40px; border-bottom: 1px solid #334155; }
.footer-logo { height: 35px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-about { font-size: 13px; color: #CBD5E1; line-height: 1.6; max-width: 350px; }
.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 20px; margin-top: 0; }
.footer-col a { display: block; font-size: 13px; color: #CBD5E1; margin-bottom: 12px; }
.footer-bottom { padding-top: 30px; display: flex; justify-content: center; text-align: center; font-size: 12px; color: #94A3B8; }
.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  align-items: center;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  transition: .2s ease;
}

.footer-social:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-social i {
  font-size: 18px;
  line-height: 1;
}

/* =========================================
   KARUZELA FACHOWCÓW (STRONA GŁÓWNA)
   ========================================= */
.pros-carousel-wrapper { width: 100%; position: relative; padding-top: 4px; margin-top: -4px; }
.pros-carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 4px; padding-bottom: 4px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.pros-carousel-track::-webkit-scrollbar { display: none; }

.carousel-nav-btn { background: #F8FAFC; border: 1px solid #E2E8F0; color: var(--text-main); width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; padding: 0; }
.carousel-nav-btn:hover { background: #E2E8F0; color: var(--brand-blue); }
.carousel-nav-btn svg { width: 16px; height: 16px; }

.mini-pro-card { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: var(--radius); padding: 20px 12px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,0.02); transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; color: inherit; }
.mini-pro-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.06); transform: translateY(-2px); color: inherit; }
.mini-pro-card .pro-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #F1F5F9; border: 1px solid #E2E8F0; display: flex; align-items: center; justify-content: center; color: #94A3B8; margin-bottom: 12px; }
.mini-pro-card .pro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mini-pro-card .pro-avatar svg { width: 28px; height: 28px; }
.mini-pro-card .pro-category-badge { display: inline-flex; align-items: center; padding: 3px 8px; background: #EFF6FF; color: var(--brand-blue); border: 1px solid #BFDBFE; border-radius: 12px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px; }

@media (max-width: 900px) {
  .mini-pro-card { flex: 0 0 calc((100% - 16px) / 2); }
}
@media (max-width: 480px) {
  .mini-pro-card { flex: 0 0 80%; }
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media (min-width: 769px) {
  .floating-contact-btn { display: inline-flex; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 18px; }
  .grid { grid-template-columns: 1fr; gap: 20px;}
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .top-layout-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
    gap: 20px;
  }
  .top-layout-grid .heroBanner,
  .heroBanner {
    height: 240px;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .hidden-mobile { display: none !important; }
  .floating-contact-btn { display: none !important; }

  /* Info Strip - realny oddech góra/dół na mobile */
  .info-strip { padding: 10px 0; }
  .info-strip-inner { flex-direction: column; padding: 0; gap: 10px; min-height: auto; }
  .top-info-left { flex-direction: column; gap: 8px; width: 100%; }
  .weather-info, .aqi-info { justify-content: center; background: transparent; padding: 0 4px; width: 100%; font-size: 13.5px; text-align: center; }

  /* Hamburger & Topbar - Większe marginesy */
  .topbar-inner { padding: 0; } 
  .topbar-brand-row { padding: 0; min-height: 72px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand img { height: 34px; width: auto; max-width: 208px; }

  .menu-toggle {
    display: inline-flex; width: 46px; height: 46px; border-radius: 10px; gap: 4px;
    border-color: #D7DEE7; background: #FFFFFF; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04); flex-shrink: 0;
  }
  .menu-toggle span { width: 20px; height: 2px; }
  .menu-toggle[aria-expanded="true"] { background: #F8FAFC; }

  /* Rozwijane Menu Mobile - Wymuszenie 100% szerokości, brak ucinania */
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #FFFFFF;
    padding: 16px 20px 24px; box-shadow: 0 10px 15px rgba(0,0,0,0.08); gap: 8px;
    border-top: 1px solid #E2E8F0; flex-direction: column; align-items: stretch;
  }
  .topbar.nav-open .nav, .nav.is-open { display: flex; }
  .nav a, .nav-dropdown > summary {
    display: flex; align-items: center; justify-content: flex-start; min-height: 48px;
    padding: 0 16px; border: 1px solid #E2E8F0; border-radius: 8px; background: #F8FAFC; font-size: 14px;
  }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > summary { justify-content: space-between; }
  
  .nav-dropdown-menu {
    position: static;
    min-width: 100%;
    width: 100%;
    margin-top: 8px; padding: 8px; border-radius: 8px; opacity: 1; visibility: visible;
    transform: none !important; /* Nadpisanie desktopowego transform */
    left: auto !important; /* Nadpisanie desktopowego left */
    display: none; box-shadow: none; border: 1px solid #E2E8F0; background: #FFFFFF;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown[open] .nav-dropdown-menu { display: flex; flex-direction: column; gap: 4px; transform: none !important; left: auto !important; }
  .nav-dropdown-menu a { min-height: 44px; border: none; background: transparent; padding: 0 12px; }

  /* Główne treści & Marginesy */
  .main-content { padding-top: 24px; padding-bottom: 60px; }
  .top-layout-grid { gap: 22px; }
  .top-layout-grid .heroBanner,
  .heroBanner {
    height: 190px;
    min-height: 0;
    margin-bottom: 24px !important;
  }

  #wydarzenia.widget { height: auto; padding: 18px; }
  #wydarzenia .section-head { margin-bottom: 14px; }
  #wydarzenia .event-list { overflow: visible; margin-bottom: 14px; }
  #wydarzenia .event-item { align-items: flex-start; padding: 12px 0; }
  #wydarzenia .btn-all-events { margin-top: 0; padding: 12px 14px; }

  .grid { gap: 24px; }
  .mobile-home-tabs { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
  .mobile-home-tab { flex: 1 1 0; justify-content: center; text-align: center; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile { flex-direction: column; justify-content: center; text-align: center; gap: 8px; min-height: 128px; padding: 18px 12px; }

  .section, .widget { padding: 20px; }

  .scrollable-news { max-height: none; overflow: visible; padding-right: 0; }
  #ogloszenia { padding: 18px; }
  #ogloszenia .section-head { align-items: center; gap: 10px; }
  #ogloszenia .section-body { max-height: none; overflow: visible; padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { margin-top: 50px; }
  .news-logos { margin-left: 0; width: 100%; justify-content: flex-start; margin-top: 8px; }

  /* Pasek alertów drogowych na mobile - info po lewej, CTA po prawej */
  .road-alert-strip { overflow: visible; }
  .road-alert-strip-inner { padding: 12px 0 14px; }
  .ras-swipe-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
  .ras-swipe-track {
    min-width: 0;
    padding: 0;
    scroll-padding: 0;
    align-items: stretch;
  }
  .ras-swipe-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 0;
  }
  .ras-item-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 0;
    padding: 15px 0 15px 0;
  }
  .ras-item-header {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .ras-label {
    font-size: 10px;
    letter-spacing: 0.45px;
  }
  .ras-badges {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
  }
  .ras-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    min-width: 0;
  }
  .ras-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
    text-overflow: initial;
    line-height: 1.35;
    font-size: 14px;
    width: 100%;
  }
  .ras-source {
    display: block;
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
  }
  .ras-nav {
    position: static;
    inset: auto;
    pointer-events: auto;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(2, 26px);
    grid-template-rows: 26px 26px;
    gap: 6px 4px;
    align-content: center;
    justify-items: stretch;
    flex-shrink: 0;
  }
  .ras-nav-btn,
  .ras-btn-lista {
    position: static;
    top: auto;
    transform: none;
    pointer-events: auto;
    margin: 0;
  }
  .ras-nav-prev {
    grid-column: 1;
    grid-row: 1;
  }
  .ras-nav-next {
    grid-column: 2;
    grid-row: 1;
  }
  .ras-nav-btn {
    width: 26px !important;
    height: 26px !important;
    border-radius: 4px !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none;
  }
  .ras-btn-lista {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 100% !important;
    min-width: 0;
    height: 26px !important;
    border-radius: 4px !important;
    padding: 0 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    font-size: 10px !important;
    letter-spacing: 0.3px;
    box-shadow: none;
  }
  .ras-dropdown {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    max-height: min(70vh, 520px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    z-index: 200;
  }
}

@media (max-width: 600px) {
  .news-item { flex-direction: column; gap: 12px; }
  .news-thumb { width: 100%; height: 180px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 14px; }
  .main-content { padding-top: 24px; }
  .top-layout-grid .heroBanner,
  .heroBanner {
    height: 168px;
    min-height: 0;
  }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 118px; flex-direction: column; justify-content: center; text-align: center; padding: 16px 10px; }
  .tile-text h5 { font-size: 13px; }
  .tile-text p { font-size: 11px; }
}
/* =========================================
   POPRAWKA: adresy fachowców na stronie głównej
   ========================================= */
.mini-pro-card {
  min-height: 266px;
  text-align: center;
}

.mini-pro-card .pro-title {
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.mini-pro-card .mini-pro-location {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding: 0 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.mini-pro-card .mini-pro-location svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 2px;
  color: var(--brand-blue);
}

.mini-pro-card .mini-pro-location .pro-location-text {
  min-width: 0;
  max-width: 150px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}

/* =========================================
   KOREKTA: mniejszy odstęp między nazwą a lokalizacją fachowca
   ========================================= */
.mini-pro-card {
  min-height: 246px;
  text-align: center;
  justify-content: flex-start;
}

.mini-pro-card .pro-title {
  min-height: 40px;
  line-height: 1.3;
}

.mini-pro-card .mini-pro-location {
  min-height: 34px;
  margin-top: 6px;
}
