:root{
  --muted:#6b7280;
  --teal:#0ea5a4;
  --bg:#f7fafc;
  --card-shadow: 0 10px 30px rgba(2,6,23,0.06);
}
body { background: var(--bg); }

/* container & header */
.container { max-width:1200px; margin:0 auto; padding:0 18px; }
header.page-head { text-align:center; margin-bottom:18px; }
header.page-head h1 { font-size:30px; margin:0 0 6px; font-weight:800; }
.muted { color: var(--muted); }

/* controls */
.controls { display:flex; gap:12px; align-items:center; justify-content:center; flex-wrap:wrap; margin:16px 0 24px; }
.chip { padding:10px 14px; border-radius:999px; background:#fff; border:1px solid rgba(15,23,36,0.06); font-weight:700; cursor:pointer; }
.chip.active { background: linear-gradient(90deg,#ecfdf5,#f0fdf4); color:#065f46; box-shadow:0 8px 26px rgba(16,185,129,0.06); }
.search-wrap { display:flex; align-items:center; gap:8px; }
.search-input { padding:10px 12px; border-radius:10px; border:1px solid rgba(15,23,36,0.08); width:320px; }
.sort-select { padding:10px 12px; border-radius:10px; border:1px solid rgba(15,23,36,0.08); background:#fff; }

/* layout */
.layout { display:grid; grid-template-columns:1fr 320px; gap:22px; align-items:start; }
@media (max-width:1000px) { .layout { grid-template-columns:1fr; } .right-col { order:2; } }

/* === POCZĄTEK NOWEGO KODU (STICKY SIDEBAR) === */
@media (min-width: 1001px) {
  .right-col {
    position: -webkit-sticky; /* Wsparcie dla Safari */
    position: sticky;
    /* Twoje body ma klasę 'pt-28' (112px) na stały header.
       Ustawiamy 'top' trochę niżej, aby dodać odstęp.
       Możesz zmienić 128px na np. 120px, jeśli wolisz mniejszy margines.
    */
    top: 128px; 
  }
}

/* grid */
.mosaic { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:1000px) { .mosaic { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px) { .mosaic { grid-template-columns:1fr; } }

.card { background:#fff; border-radius:12px; overflow:hidden; box-shadow:var(--card-shadow); display:flex; flex-direction:column; transition:transform .16s; }
.card:hover { transform:translateY(-6px); }
.card-visual { width:100%; height:180px; object-fit:cover; display:block; background:#f3f4f6; }
.card-body { padding:12px; display:flex; flex-direction:column; gap:8px; }
.card-title { font-weight:800; font-size:16px; }
.card-meta { color:var(--muted); font-size:14px; }
.card-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }

.tag { background:#eef2f1; color:#065f46; padding:6px 8px; border-radius:999px; font-weight:700; font-size:13px; }

.cta-row { display:flex; gap:8px; align-items:center; }
.btn-outline { padding:8px 12px; border-radius:8px; border:1px solid rgba(15,23,36,0.08); background:#fff; font-weight:700; text-decoration:none; color:inherit; }
.btn-primary { padding:8px 12px; border-radius:8px; background:var(--teal); color:#fff; font-weight:800; text-decoration:none; }

/* right column */
.side-card { background:#fff; border-radius:12px; padding:12px; box-shadow:var(--card-shadow); }
.promo-img { width:100%; height:150px; object-fit:cover; display:block; border-radius:8px; }
.side-title { font-weight:800; font-size:15px; }
.rec-list { display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.rec-item { display:flex; gap:10px; align-items:center; }
.rec-thumb { width:56px; height:56px; border-radius:8px; overflow:hidden; }
.rec-thumb img { width:100%; height:100%; object-fit:cover; }

/* === NOWE STYLE DLA PANELU BOCZNEGO (dodane) === */

/* --- 1. Style dla nowej, wysokiej karty promo --- */
.promo-card-tall {
  position: relative;
  display: block; /* By działał jako link-blok */
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px; /* Zapewnia "bardzo wysokie zdjęcie" */
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: white;
  background: #2d3748; /* Tło zastępcze, gdyby obrazek się nie załadował */
}

/* Efekt zoom przy najechaniu */
.promo-card-tall:hover .promo-img-tall {
  transform: scale(1.05);
}

.promo-img-tall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease;
}

.promo-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Gradient od przezroczystego na górze do ciemnego na dole */
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 75%, rgba(0,0,0,0.8) 100%);
}

.promo-body-tall {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1.25rem; /* 20px */
}

/* Nadpisanie domyślnych stylów dla tekstu */
.promo-card-tall .promo-title {
  font-size: 1.25rem; /* 20px */
  font-weight: 800;
  color: white; 
}

.promo-card-tall .promo-desc {
  font-size: 0.9rem; /* 14px */
  color: rgba(255, 255, 255, 0.85); /* Jaśniejszy niż domyślny muted */
  margin-top: 4px;
}

.promo-cta-tall {
  margin-top: 10px;
  font-weight: 700;
  color: var(--teal); /* Używamy głównego koloru akcentu */
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- 2. Style dla listy polecanych usług (z obrazkami) --- */
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Odstęp między pozycjami */
}

.rec-item {
  display: flex; /* Obrazek i tekst obok siebie */
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.rec-item:hover {
  background-color: #f3f4f6; /* Lekkie tło przy najechaniu */
  transform: none; /* Wyłączenie globalnego :hover dla a */
}

.rec-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0; /* Aby obrazek się nie kurczył */
  background-color: #e5e7eb; /* Placeholder */
}

.rec-item-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}