/* =========================================================================
   Re-volta v3 – komponenty (prefiks rv3-, BEM: .rv3-blok__element--wariant)
   Stany: .is-active / aria-pressed / aria-current / :has(:checked) / :disabled.

   Wymaga tokeny.css. Używa WYŁĄCZNIE ról (--rv3-*), nigdy palety ani kolorów na sztywno.
   Arkusz nie ma reguł globalnych – ładujemy go na wszystkich stronach (przyciski w stopce
   nad starą treścią), dlatego komponenty same ustawiają font i wyłączają podkreślenie linków.
   ========================================================================= */

/* ---------- Typografia pomocnicza ---------- */
.rv3-h1 {
  margin: 0 0 var(--rv3-space-1);
  font-size: var(--rv3-fs-3xl);
  font-weight: var(--rv3-fw-heading);
  letter-spacing: var(--rv3-tracking-heading);
  line-height: var(--rv3-lh-tight);
}
.rv3-h2 {
  margin: 0;
  font-size: var(--rv3-fs-xl);
  font-weight: var(--rv3-fw-heading);
  line-height: var(--rv3-lh-tight);
}
.rv3-h3 {
  margin: 0;
  font-size: var(--rv3-fs-lg);
  font-weight: var(--rv3-fw-semibold);
  line-height: var(--rv3-lh-tight);
}
.rv3-label {
  margin: 0 0 var(--rv3-space-4);
  font-size: var(--rv3-fs-sm);
  font-weight: var(--rv3-fw-bold);
  color: var(--rv3-text);
}
.rv3-overline {
  font-size: var(--rv3-fs-2xs);
  font-weight: var(--rv3-fw-bold);
  letter-spacing: var(--rv3-tracking-overline);
  text-transform: uppercase;
  color: var(--rv3-muted);
}
.rv3-meta {
  font-size: var(--rv3-fs-base);
  color: var(--rv3-muted);
}
.rv3-lead {
  font-size: var(--rv3-fs-md);
  line-height: var(--rv3-lh-relaxed);
  color: var(--rv3-text-2);
}
.rv3-price {
  font-weight: var(--rv3-fw-heading);
  color: var(--rv3-price);
  white-space: nowrap;
}
.rv3-link {
  color: var(--rv3-link);
  font-weight: var(--rv3-fw-semibold);
  text-decoration: none;
}
.rv3-link:hover {
  color: var(--rv3-link-hover);
  text-decoration: none;
}

/* ---------- Przyciski ---------- */
.rv3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rv3-space-2);
  box-sizing: border-box;
  margin: 0;
  border: 1px solid transparent;
  border-radius: var(--rv3-radius-sm);
  padding: 9px 14px;
  background: transparent;
  color: var(--rv3-text);
  font-family: var(--rv3-font);
  font-size: var(--rv3-fs-base);
  font-weight: var(--rv3-fw-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--rv3-transition), color var(--rv3-transition), border-color var(--rv3-transition);
}
.rv3-btn:hover {
  text-decoration: none;
}
.rv3-btn:focus-visible {
  outline: 2px solid var(--rv3-accent-ink);
  outline-offset: 2px;
}
.rv3-btn--primary {
  background: var(--rv3-accent);
  color: var(--rv3-on-accent);
  font-weight: var(--rv3-fw-bold);
}
.rv3-btn--primary:hover {
  background: var(--rv3-accent-hover);
  color: var(--rv3-on-accent);
}
/* Złote CTA („+ Dodaj ogłoszenie”) – wspólne dla całego serwisu */
.rv3-btn--cta {
  background: var(--rv3-cta);
  color: var(--rv3-cta-ink);
  font-weight: var(--rv3-fw-bold);
}
.rv3-btn--cta:hover {
  background: var(--rv3-cta-hover);
  color: var(--rv3-cta-ink);
}
.rv3-btn--secondary {
  background: var(--rv3-surface);
  border-color: var(--rv3-border);
  color: var(--rv3-text);
}
.rv3-btn--secondary:hover {
  border-color: var(--rv3-accent-ink);
  color: var(--rv3-accent-ink);
}
/* Na toperze / pasie CTA (tło akcentu) */
.rv3-btn--on-dark {
  background: transparent;
  border-color: var(--rv3-header-line-strong);
  color: var(--rv3-header-ink);
}
.rv3-btn--on-dark:hover {
  border-color: var(--rv3-header-ink);
  color: var(--rv3-header-ink);
}
.rv3-btn--on-dark:focus-visible {
  outline-color: var(--rv3-header-ink);
}
.rv3-btn--link {
  background: none;
  border: none;
  padding: 0;
  color: var(--rv3-link);
  font-size: var(--rv3-fs-sm);
  font-weight: var(--rv3-fw-semibold);
}
.rv3-btn--link:hover {
  color: var(--rv3-link-hover);
}
.rv3-btn--sm {
  padding: 6px 10px;
  font-size: var(--rv3-fs-sm);
}
.rv3-btn--md {
  padding: 12px 22px;
  font-size: var(--rv3-fs-md);
}
.rv3-btn--lg {
  padding: 14px 24px;
  font-size: var(--rv3-fs-md);
  border-radius: var(--rv3-radius-lg);
}
.rv3-btn--block {
  display: flex;
  width: 100%;
}
.rv3-btn:disabled,
.rv3-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Przełącznik segmentowy (Siatka / Lista) */
.rv3-segmented {
  display: inline-flex;
  border: 1px solid var(--rv3-border);
  border-radius: var(--rv3-radius-sm);
  overflow: hidden;
  background: var(--rv3-surface);
}
.rv3-segmented button {
  display: inline-flex;
  align-items: center;
  gap: var(--rv3-space-2);
  margin: 0;
  border: none;
  background: transparent;
  color: var(--rv3-text);
  padding: 9px 14px;
  font-family: var(--rv3-font);
  font-size: var(--rv3-fs-base);
  font-weight: var(--rv3-fw-semibold);
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--rv3-transition), color var(--rv3-transition);
}
.rv3-segmented button + button {
  border-left: 1px solid var(--rv3-border);
}
.rv3-segmented button:hover {
  color: var(--rv3-accent-ink);
}
.rv3-segmented button[aria-pressed="true"] {
  background: var(--rv3-accent);
  color: var(--rv3-on-accent);
}
.rv3-segmented button:focus-visible {
  outline: 2px solid var(--rv3-accent-ink);
  outline-offset: -2px;
}

/* ---------- Pola formularza ---------- */
.rv3-input,
.rv3-select,
.rv3-textarea {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--rv3-border);
  border-radius: var(--rv3-radius-sm);
  padding: 9px 12px;
  background: var(--rv3-field);
  color: var(--rv3-text);
  font-family: var(--rv3-font);
  font-size: var(--rv3-fs-base);
  line-height: var(--rv3-lh-tight);
  transition: border-color var(--rv3-transition), box-shadow var(--rv3-transition);
}
.rv3-textarea {
  width: 100%;
  min-height: 110px;
  line-height: var(--rv3-lh-body);
  resize: vertical;
}
.rv3-input::placeholder,
.rv3-textarea::placeholder {
  color: var(--rv3-subtle);
}
.rv3-input:hover,
.rv3-select:hover,
.rv3-textarea:hover {
  border-color: var(--rv3-border-hover);
}
.rv3-input:focus,
.rv3-select:focus,
.rv3-textarea:focus {
  outline: none;
  border-color: var(--rv3-accent-ink);
  box-shadow: 0 0 0 3px var(--rv3-focus-ring);
}
.rv3-input:disabled,
.rv3-select:disabled,
.rv3-textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.rv3-input--lg,
.rv3-select--lg {
  padding: 12px 14px;
  font-size: var(--rv3-fs-md);
}
.rv3-input--block,
.rv3-select--block {
  width: 100%;
}
.rv3-check,
.rv3-radio {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
  accent-color: var(--rv3-accent-ink);
  cursor: pointer;
}

/* Pole z etykietą, podpowiedzią i błędem */
.rv3-field {
  display: flex;
  flex-direction: column;
  gap: var(--rv3-space-2);
  min-width: 0;
}
.rv3-field__label {
  font-size: var(--rv3-fs-sm);
  font-weight: var(--rv3-fw-bold);
  color: var(--rv3-text);
}
.rv3-field__label .rv3-field__opt {
  font-weight: var(--rv3-fw-regular);
  color: var(--rv3-subtle);
}
.rv3-field__hint {
  font-size: var(--rv3-fs-xs);
  color: var(--rv3-muted);
}
.rv3-field__error {
  display: flex;
  align-items: baseline;
  gap: var(--rv3-space-2);
  font-size: var(--rv3-fs-xs);
  font-weight: var(--rv3-fw-semibold);
  color: var(--rv3-error);
}
.rv3-field.is-invalid :is(.rv3-input, .rv3-select, .rv3-textarea),
:is(.rv3-input, .rv3-select, .rv3-textarea)[aria-invalid="true"] {
  border-color: var(--rv3-error);
}
.rv3-field.is-invalid :is(.rv3-input, .rv3-select, .rv3-textarea):focus,
:is(.rv3-input, .rv3-select, .rv3-textarea)[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px var(--rv3-error-border);
}

/* Wybór: checkbox / radio z opisem */
.rv3-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--rv3-space-4);
  font-size: var(--rv3-fs-base);
  color: var(--rv3-text);
  cursor: pointer;
}
.rv3-choice .rv3-check,
.rv3-choice .rv3-radio {
  margin-top: 2px;
}
.rv3-choices {
  display: flex;
  flex-direction: column;
  gap: var(--rv3-space-3);
}

/* Wiersz-przełącznik („Tylko z filmami”) */
.rv3-toggle-row {
  display: flex;
  align-items: center;
  gap: var(--rv3-space-4);
  padding: 10px 12px;
  background: var(--rv3-accent-soft);
  border-radius: var(--rv3-radius-md);
  color: var(--rv3-text);
  font-size: var(--rv3-fs-base);
  font-weight: var(--rv3-fw-semibold);
  cursor: pointer;
}
.rv3-toggle-row .rv3-badge {
  margin-left: auto;
}

/* Pasek wyszukiwania lokalizacji */
.rv3-searchbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rv3-space-4);
  background: var(--rv3-panel);
  border: 1px solid var(--rv3-panel-border);
  border-inline-color: var(--rv3-ramka-bok, var(--rv3-panel-border));
  border-radius: var(--rv3-radius-xl);
  padding: var(--rv3-space-6);
  box-shadow: var(--rv3-shadow-card);
}
.rv3-searchbar__field {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: var(--rv3-space-4);
  border: 1px solid var(--rv3-border);
  border-radius: var(--rv3-radius-sm);
  padding: 0 12px;
  background: var(--rv3-field);
  color: var(--rv3-accent-ink);
}
.rv3-searchbar__field:focus-within {
  border-color: var(--rv3-accent-ink);
  box-shadow: 0 0 0 3px var(--rv3-focus-ring);
}
.rv3-searchbar__field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 12px 0;
  background: transparent;
  color: var(--rv3-text);
  font-family: var(--rv3-font);
  font-size: var(--rv3-fs-md);
}

/* ---------- Chipy ---------- */
.rv3-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rv3-space-2);
}
/* Chip jako <button> albo – w filtrach – jako <label> z ukrytym checkboxem w środku:
   działa bez JS w zwykłym formularzu GET. Stan aktywny zmienia GRAD, a nie grubość,
   więc chip nie zmienia szerokości. */
.rv3-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  border: 1px solid var(--rv3-border);
  background: var(--rv3-surface);
  color: var(--rv3-text);
  border-radius: var(--rv3-radius-pill);
  padding: 6px 12px;
  font-family: var(--rv3-font);
  font-size: var(--rv3-fs-sm);
  font-weight: var(--rv3-fw-medium);
  font-stretch: var(--rv3-wdth-waski);
  font-variation-settings: "GRAD" var(--rv3-grad);
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--rv3-transition), color var(--rv3-transition), border-color var(--rv3-transition);
}
.rv3-chip:hover {
  border-color: var(--rv3-accent-ink);
  color: var(--rv3-text);
  text-decoration: none;
}
.rv3-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.rv3-chip.is-active,
.rv3-chip[aria-pressed="true"],
.rv3-chip:has(input:checked) {
  --rv3-grad: var(--rv3-grad-aktywny);
  border-color: var(--rv3-accent-ink);
  background: var(--rv3-accent-soft);
  color: var(--rv3-accent-ink);
}
.rv3-chip:focus-visible,
.rv3-chip:has(input:focus-visible) {
  outline: 2px solid var(--rv3-accent-ink);
  outline-offset: 2px;
}
.rv3-chip__count {
  color: var(--rv3-subtle);
  font-size: var(--rv3-fs-xs);
}
/* Aktywny filtr (usuwalny) */
.rv3-chip--applied,
.rv3-chip--applied:hover {
  background: var(--rv3-accent-ink);
  border-color: var(--rv3-accent-ink);
  color: var(--rv3-accent-soft);
  padding: 5px 10px;
  font-size: var(--rv3-fs-xs);
}
.rv3-chip--applied:hover {
  background: var(--rv3-accent-ink-hover);
  border-color: var(--rv3-accent-ink-hover);
}

/* ---------- Plakietki ---------- */
.rv3-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--rv3-space-1);
  border-radius: var(--rv3-radius-xs);
  font-family: var(--rv3-font);
  font-weight: var(--rv3-fw-bold);
  font-stretch: var(--rv3-wdth-waski);
  line-height: 1.3;
  white-space: nowrap;
}
.rv3-badge--top {
  background: var(--rv3-header-bg); /* kolor topera bieżącego działu */
  border: 2px solid var(--rv3-badge-top-ramka);
  color: var(--rv3-badge-ink);
  font-size: var(--rv3-fs-sm);
  font-weight: var(--rv3-fw-black);
  letter-spacing: var(--rv3-tracking-badge);
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--rv3-radius-sm);
}
.rv3-badge--video {
  background: var(--rv3-badge-video);
  color: var(--rv3-badge-ink);
  font-size: var(--rv3-fs-2xs);
  padding: 3px 8px;
}
.rv3-badge--new {
  background: var(--rv3-badge-new);
  color: var(--rv3-badge-new-ink);
  font-size: var(--rv3-fs-2xs);
  font-stretch: var(--rv3-wdth-ciasny);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 6px;
}
/* Neutralna / akcentowa – liczniki, statusy w tabelach */
.rv3-badge--soft {
  background: var(--rv3-accent-soft);
  color: var(--rv3-accent-ink);
  font-size: var(--rv3-fs-xs);
  padding: 2px 8px;
}
.rv3-badge--ok {
  background: var(--rv3-ok-bg);
  color: var(--rv3-ok);
  font-size: var(--rv3-fs-xs);
  padding: 2px 8px;
}
.rv3-badge--error {
  background: var(--rv3-error-bg);
  color: var(--rv3-error);
  font-size: var(--rv3-fs-xs);
  padding: 2px 8px;
}
.rv3-media .rv3-badge--top {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
}
/* Zakończone ogłoszenie (obserwowane): plakietka w miejscu „Top oferta”, przygaszone zdjęcie */
.rv3-media .rv3-badge--nieaktualne {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  border: 1px solid var(--rv3-border);
  background: var(--rv3-panel);
  color: var(--rv3-text);
  font-size: var(--rv3-fs-sm);
  padding: 4px 10px;
  border-radius: var(--rv3-radius-sm);
}
.rv3-card.is-nieaktualne .rv3-media > img {
  opacity: 0.55;
  filter: grayscale(0.7);
}
.rv3-media .rv3-badge--video {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
}

/* ---------- Panel (sidebar filtrów, sekcje) ---------- */
.rv3-panel {
  background: var(--rv3-panel);
  border: 1px solid var(--rv3-panel-border);
  border-inline-color: var(--rv3-ramka-bok, var(--rv3-panel-border));
  border-radius: var(--rv3-radius-xl);
  padding: var(--rv3-space-9);
  box-shadow: var(--rv3-shadow-card);
}
/* Zachowanie przy przewijaniu (panel wyższy niż okno) – do dopracowania później */
.rv3-panel--sticky {
  position: sticky;
  top: 20px;
}
.rv3-panel__group + .rv3-panel__group {
  margin-top: var(--rv3-space-9);
}
.rv3-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rv3-space-4);
  margin-bottom: var(--rv3-space-7);
}
.rv3-divider {
  border: 0;
  border-top: 1px solid var(--rv3-divider);
  margin: 18px 0;
}

/* ---------- Komunikaty ---------- */
.rv3-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--rv3-space-5);
  padding: 12px 14px;
  border: 1px solid var(--rv3-info-border);
  border-radius: var(--rv3-radius-md);
  background: var(--rv3-info-bg);
  color: var(--rv3-text);
  font-size: var(--rv3-fs-base);
  line-height: var(--rv3-lh-body);
}
.rv3-alert__icon {
  flex: none;
  margin-top: 2px;
  font-size: 16px;
  color: var(--rv3-info);
}
.rv3-alert__body {
  flex: 1;
  min-width: 0;
}
.rv3-alert__title {
  display: block;
  font-weight: var(--rv3-fw-bold);
  color: var(--rv3-info);
}
.rv3-alert--ok {
  border-color: var(--rv3-ok-border);
  background: var(--rv3-ok-bg);
}
.rv3-alert--ok :is(.rv3-alert__icon, .rv3-alert__title) {
  color: var(--rv3-ok);
}
.rv3-alert--error {
  border-color: var(--rv3-error-border);
  background: var(--rv3-error-bg);
}
.rv3-alert--error :is(.rv3-alert__icon, .rv3-alert__title) {
  color: var(--rv3-error);
}
.rv3-alert--warning {
  border-color: var(--rv3-warning-border);
  background: var(--rv3-warning-bg);
}
.rv3-alert--warning :is(.rv3-alert__icon, .rv3-alert__title) {
  color: var(--rv3-warning);
}
/* Link w treści komunikatu: na kolorowym tle sam kolor linku za słabo odróżnia się od tekstu */
.rv3-alert__body a:not(.rv3-btn) {
  color: var(--rv3-link);
  font-weight: var(--rv3-fw-semibold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.rv3-alert__body a:not(.rv3-btn):hover {
  color: var(--rv3-link-hover);
  text-decoration-thickness: 2px;
}

/* ---------- Zdjęcie / placeholder ---------- */
.rv3-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--rv3-media-a) 0 12px, var(--rv3-media-b) 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rv3-media > img,
.rv3-media > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Pionowe zdjęcie (miniatury.js): w całości, pod nim rozmyta kopia wypełniająca kafelek, półprzezroczysta
   na jednolitym tle – rozjaśniona do bieli (jasny motyw) albo przyciemniona do czerni (ciemny); paski
   „brak zdjęcia” nie prześwitują. scale – rozmycie nie ma jasnych krawędzi przy brzegu kafelka. */
.rv3-media.is-pionowe {
  background: var(--rv3-media-tlo-pion);
}
.rv3-media.is-pionowe > img {
  object-fit: contain;
}
.rv3-media > img.rv3-media__tlo {
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.2);
  opacity: 0.55;
  pointer-events: none;
}
.rv3-media__placeholder {
  font-family: var(--rv3-font-mono);
  font-size: var(--rv3-fs-2xs);
  color: var(--rv3-media-ink);
}

/* Przycisk „obserwuj” (♥) */
.rv3-save {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rv3-overlay);
  color: var(--rv3-overlay-ink);
  font-size: 15px;
  cursor: pointer;
  transition: background-color var(--rv3-transition), color var(--rv3-transition);
}
.rv3-save:hover {
  color: var(--rv3-accent-ink);
}
.rv3-save:focus-visible {
  outline: 2px solid var(--rv3-accent-ink);
  outline-offset: 2px;
}
.rv3-media .rv3-save {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
.rv3-save.is-active,
.rv3-save[aria-pressed="true"] {
  background: var(--rv3-accent);
  color: var(--rv3-on-accent);
}
.rv3-save--flat {
  width: auto;
  height: auto;
  background: none;
  font-size: 17px;
  color: var(--rv3-icon-off);
}
.rv3-save--flat.is-active,
.rv3-save--flat[aria-pressed="true"] {
  background: none;
  color: var(--rv3-accent-ink);
}

/* ---------- Karta (ogłoszenie, stajnia, oferta…) ---------- */
/* Klikalna cała karta przez „rozciągnięty link”: link w tytule ma ::after na całą kartę,
   a ♥ i plakietki leżą nad nim (z-index 2). Bez zagnieżdżania przycisku w <a>. */
.rv3-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--rv3-surface);
  border: 1px solid var(--rv3-border-card);
  border-inline-color: var(--rv3-ramka-bok, var(--rv3-border-card));
  border-radius: var(--rv3-radius-xl);
  box-shadow: var(--rv3-shadow-card);
  color: var(--rv3-text);
}
.rv3-card--featured {
  background: var(--rv3-featured-bg);
  border-color: var(--rv3-featured-border);
  border-inline-color: var(--rv3-ramka-bok, var(--rv3-featured-border));
}
/* TOP OFERTA (karta i zajawka promowana): tytuł biały na czerwonym, jak plakietka. Tło na samym linku
   (inline), interlinia bez zmian – pionowy padding nachodzi na odstęp między liniami, więc kilka linii
   tworzy jedno tło. ::after linku (rozciągnięty klik) jest pozycjonowany, więc tła nie dostaje. */
.rv3-card--featured .rv3-card__title .rv3-card__link,
.rv3-promo-card--featured .rv3-promo-card__title .rv3-card__link {
  padding: 6px 8px;
  border-radius: var(--rv3-radius-xs);
  background: var(--rv3-top-tytul-bg);
  color: var(--rv3-badge-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Tło każdej kolejnej linii malowałoby się na literach poprzedniej (ucięte ogonki g, j, p) – tekst
   w pozycjonowanym spanie rysuje się dopiero po wszystkich tłach */
.rv3-card__link-tekst {
  position: relative;
}
.rv3-card--featured .rv3-card__title .rv3-card__link:hover,
.rv3-card--featured:hover .rv3-card__title .rv3-card__link,
.rv3-promo-card--featured:hover .rv3-promo-card__title .rv3-card__link {
  color: var(--rv3-badge-ink);
}
.rv3-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--rv3-space-4);
  padding: var(--rv3-space-7);
}
.rv3-card__head {
  display: flex;
  justify-content: space-between;
  gap: var(--rv3-space-4);
}
.rv3-card__title {
  margin: 0;
  font-size: var(--rv3-fs-lg);
  font-weight: var(--rv3-fw-semibold);
  line-height: var(--rv3-lh-tight);
  color: var(--rv3-text);
}
.rv3-card__link {
  color: inherit;
  text-decoration: none;
  transition: color var(--rv3-transition);
}
.rv3-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.rv3-card__link:hover,
.rv3-card:hover .rv3-card__link {
  color: var(--rv3-accent-ink);
  text-decoration: none;
}
.rv3-card__link:focus-visible {
  outline: none;
}
.rv3-card:has(.rv3-card__link:focus-visible) {
  outline: 2px solid var(--rv3-accent-ink);
  outline-offset: 2px;
}
.rv3-card__tags {
  font-size: var(--rv3-fs-sm);
  color: var(--rv3-muted);
  line-height: var(--rv3-lh-body);
}
.rv3-card__bottom {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--rv3-space-3);
}
.rv3-card__location {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: var(--rv3-fs-sm);
  color: var(--rv3-muted);
}
.rv3-card__price {
  font-size: var(--rv3-fs-xl);
}
/* Liczba zdjęć / obserwujących obok ceny */
.rv3-card__ikony {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--rv3-space-6);
  font-size: var(--rv3-fs-xs);
  font-stretch: var(--rv3-wdth-waski);
  color: var(--rv3-subtle);
}
.rv3-card__ikony > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
/* Miejscowość w stopce karty (obok daty) – rozmiar i kolor stopki */
.rv3-card__meta .rv3-card__location {
  min-width: 0;
  font-size: inherit;
  color: var(--rv3-muted);
}
.rv3-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rv3-space-6);
  border-top: 1px solid var(--rv3-divider-soft);
  padding-top: var(--rv3-space-4);
  font-size: var(--rv3-fs-xs);
  font-stretch: var(--rv3-wdth-waski);
  color: var(--rv3-subtle);
}
.rv3-card__meta > * {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rv3-card__meta > :last-child {
  margin-left: auto;
}
/* Elementy interaktywne w karcie nad rozciągniętym linkiem. :where – żeby nie przebić
   pozycjonowania elementów na zdjęciu (.rv3-media .rv3-save ma własne absolute + z-index). */
.rv3-card :where(button, a:not(.rv3-card__link), .rv3-card__action) {
  position: relative;
  z-index: 2;
}

/* Wariant listy (poziomy): zdjęcie 44%, min. 300px wysokości */
.rv3-card--row {
  flex-direction: row;
  flex-wrap: wrap;
}
.rv3-card--row > .rv3-media {
  flex: 0 1 44%;
  min-width: 280px;
  min-height: 300px;
  aspect-ratio: auto;
}
.rv3-card--row .rv3-card__body {
  flex: 1 1 300px;
  min-width: 0;
  padding: var(--rv3-space-8) var(--rv3-space-10);
}
.rv3-card--row .rv3-card__title {
  font-size: var(--rv3-fs-xl);
}
.rv3-card--row .rv3-card__tags {
  font-size: var(--rv3-fs-base);
}
.rv3-card--row .rv3-card__price {
  font-size: var(--rv3-fs-2xl);
}
.rv3-card--row .rv3-card__meta {
  border-top: none;
  padding-top: 0;
}
@media (max-width: 640px) {
  .rv3-card--row > .rv3-media {
    flex-basis: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Polecane ---------- */
.rv3-promo {
  background: var(--rv3-promo-bg);
  border: 1px solid var(--rv3-promo-border);
  border-inline-color: var(--rv3-ramka-bok, var(--rv3-promo-border));
  border-radius: var(--rv3-radius-xl);
  padding: var(--rv3-space-8);
  box-shadow: var(--rv3-shadow-promo);
}
.rv3-promo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rv3-space-4);
  margin-bottom: var(--rv3-space-7);
}
.rv3-promo__title {
  display: flex;
  align-items: center;
  gap: var(--rv3-space-4);
}
.rv3-promo__star {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--rv3-cta);
  color: var(--rv3-cta-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.rv3-promo__link {
  font-size: var(--rv3-fs-sm);
  color: var(--rv3-promo-link);
  text-decoration: none;
}
.rv3-promo__link:hover {
  color: var(--rv3-text);
  text-decoration: none;
}
.rv3-promo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--rv3-promo-card-min), 1fr));
  gap: var(--rv3-space-7);
}
.rv3-promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--rv3-surface);
  border: 1px solid var(--rv3-promo-card-border);
  border-inline-color: var(--rv3-ramka-bok, var(--rv3-promo-card-border));
  border-radius: var(--rv3-radius-lg);
  box-shadow: var(--rv3-shadow-promo-card);
  color: var(--rv3-text);
}
/* Zajawka TOP OFERTY: plakietka i czerwony tytuł, tło zwykłe (w panelu wyróżnia się wystarczająco) */
/* Tytuł TOP OFERTY bez ucinania do 2 linii (overflow ucinałby czerwone tło) – długość skraca szablon */
.rv3-promo-card--featured .rv3-promo-card__title {
  display: block;
  overflow: visible;
  padding-top: 4px;
}
.rv3-promo-card .rv3-media .rv3-badge--video {
  bottom: 8px;
  left: 8px;
}
.rv3-promo-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px 14px;
}
.rv3-promo-card__title {
  margin: 0;
  font-size: var(--rv3-fs-lg);
  font-weight: var(--rv3-fw-semibold);
  line-height: var(--rv3-lh-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rv3-promo-card__tags {
  font-size: var(--rv3-fs-sm);
  color: var(--rv3-muted);
  line-height: 1.45;
}
.rv3-promo-card__bottom {
  margin-top: auto;
  padding-top: var(--rv3-space-1);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--rv3-space-3);
  font-size: var(--rv3-fs-sm);
  color: var(--rv3-muted);
}
.rv3-promo-card__bottom .rv3-price {
  font-size: 18px;
}
.rv3-promo-card:hover .rv3-card__link {
  color: var(--rv3-accent-ink);
}
.rv3-promo-card:has(.rv3-card__link:focus-visible) {
  outline: 2px solid var(--rv3-accent-ink);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  /* Na telefonie panel na pełną szerokość, karty przewijane poziomo */
  .rv3-promo {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: var(--rv3-space-7);
    margin-left: calc(-1 * var(--rv3-gutter));
    margin-right: calc(-1 * var(--rv3-gutter));
  }
  .rv3-promo__grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 64%;
    gap: var(--rv3-space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--rv3-space-7));
    padding: 0 var(--rv3-space-7) var(--rv3-space-1);
    scroll-padding: 0 var(--rv3-space-7);
  }
  .rv3-promo-card {
    scroll-snap-align: start;
  }
}

/* ---------- Suwak zakresu (cena na desktopie) ---------- */
.rv3-range__values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--rv3-space-3);
  margin-bottom: var(--rv3-space-7);
  color: var(--rv3-subtle);
}
.rv3-range__value {
  border: 1px solid var(--rv3-border);
  border-radius: var(--rv3-radius-sm);
  background: var(--rv3-surface);
  padding: 6px 10px;
  color: var(--rv3-text);
}
.rv3-range__value small {
  display: block;
  font-size: var(--rv3-fs-2xs);
  color: var(--rv3-muted);
}
.rv3-range__value strong {
  font-size: var(--rv3-fs-base);
  font-weight: var(--rv3-fw-heading);
  white-space: nowrap;
}
.rv3-range__track {
  position: relative;
  height: 28px;
  margin: 0 9px;
  cursor: pointer;
  touch-action: none;
}
.rv3-range__rail,
.rv3-range__fill {
  position: absolute;
  top: 12px;
  height: 4px;
  border-radius: 2px;
}
.rv3-range__rail {
  left: 0;
  right: 0;
  background: var(--rv3-rail);
}
.rv3-range__fill {
  background: var(--rv3-accent-ink);
}
.rv3-range__tick {
  position: absolute;
  top: 10px;
  width: 2px;
  height: 8px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--rv3-tick);
}
.rv3-range__tick.is-on {
  background: var(--rv3-accent-ink);
}
.rv3-range__thumb {
  position: absolute;
  top: 5px;
  width: 18px;
  height: 18px;
  margin: 0 0 0 -9px;
  padding: 0;
  border-radius: 50%;
  background: var(--rv3-surface);
  border: 2px solid var(--rv3-accent-ink);
  box-shadow: var(--rv3-shadow-thumb);
  cursor: grab;
  touch-action: none;
}
.rv3-range__thumb:active {
  cursor: grabbing;
}
.rv3-range__thumb:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--rv3-focus-ring);
}
.rv3-range__scale {
  position: relative;
  height: 16px;
  margin: 4px 9px 0;
  font-size: var(--rv3-fs-2xs);
  font-stretch: var(--rv3-wdth-waski);
  color: var(--rv3-muted);
}
.rv3-range__scale span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
/* Skrajne etykiety wyrównane do końców szyny, żeby nie wychodziły poza panel */
.rv3-range__scale span:first-child {
  transform: none;
}
.rv3-range__scale span:last-child {
  transform: translateX(-100%);
}
.rv3-range__unit {
  margin-top: 2px;
  text-align: right;
  font-size: var(--rv3-fs-2xs);
  color: var(--rv3-subtle);
}

/* ---------- Paginacja ---------- */
.rv3-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--rv3-space-2);
  margin-top: var(--rv3-space-12);
}
.rv3-pagination a,
.rv3-pagination span {
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rv3-radius-sm);
  font-size: var(--rv3-fs-base);
  font-weight: var(--rv3-fw-medium);
  color: var(--rv3-text);
  text-decoration: none;
}
.rv3-pagination a {
  border: 1px solid var(--rv3-border);
  background: var(--rv3-surface);
  transition: border-color var(--rv3-transition), color var(--rv3-transition);
}
.rv3-pagination a:hover {
  border-color: var(--rv3-accent-ink);
  color: var(--rv3-accent-ink);
  text-decoration: none;
}
.rv3-pagination [aria-current="page"] {
  background: var(--rv3-accent-ink);
  border: 1px solid var(--rv3-accent-ink);
  color: var(--rv3-accent-soft);
  font-weight: var(--rv3-fw-bold);
}
.rv3-pagination__gap {
  color: var(--rv3-subtle);
}


/* ---------- Miejsce na reklamę (_rv3/reklama.tpl) i baner z getBanAction ---------- */
/* Makieta w docelowych proporcjach, gdy nie ma kampanii – zaproszenie do /reklama/. */
.rv3-reklama {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  border: 1px dashed var(--rv3-border);
  border-radius: var(--rv3-radius-lg);
  background: repeating-linear-gradient(135deg, var(--rv3-media-a) 0 12px, var(--rv3-media-b) 12px 24px);
  color: var(--rv3-muted);
  text-align: center;
  text-decoration: none;
  transition: border-color var(--rv3-transition), color var(--rv3-transition);
}
.rv3-reklama:hover {
  border-color: var(--rv3-accent-ink);
  color: var(--rv3-accent-ink);
  text-decoration: none;
}
.rv3-reklama--prostokat {
  max-width: 336px;
  aspect-ratio: 300 / 250;
}
.rv3-reklama--poziomy {
  max-width: 750px;
  aspect-ratio: 750 / 200;
}
.rv3-reklama--billboard {
  max-width: 970px;
  aspect-ratio: 970 / 250;
}
.rv3-reklama--pasek {
  max-width: 728px;
  aspect-ratio: 728 / 90;
}
/* Na telefonie niskie formaty nie mieszczą napisu – minimalna wysokość zamiast proporcji */
@media (max-width: 640px) {
  .rv3-reklama--pasek,
  .rv3-reklama--billboard {
    aspect-ratio: auto;
    min-height: 96px;
  }
}
/* Miejsce (Rv3_Reklama::miejsce): baner albo makieta, wyśrodkowane; rząd trzech prostokątów –
   na telefonie przewijany w poziomie */
.rv3-reklama-miejsce {
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.rv3-reklama-miejsce img {
  max-width: 100%;
  height: auto;
}
.rv3-reklama-miejsce--rzad {
  gap: var(--rv3-space-8);
}
.rv3-reklama-miejsce--rzad > .rv3-reklama-miejsce {
  flex: 0 1 336px;
}
@media (max-width: 760px) {
  .rv3-reklama-miejsce--rzad {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--rv3-gutter));
    margin-right: calc(-1 * var(--rv3-gutter));
    padding: 0 var(--rv3-gutter);
    scroll-padding: 0 var(--rv3-gutter);
    scrollbar-width: none;
  }
  .rv3-reklama-miejsce--rzad > .rv3-reklama-miejsce {
    flex: 0 0 min(300px, 82%);
    scroll-snap-align: start;
  }
}
.rv3-reklama__napis {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: var(--rv3-fs-2xs);
  font-weight: var(--rv3-fw-bold);
  letter-spacing: var(--rv3-tracking-overline);
  text-transform: uppercase;
  color: var(--rv3-subtle);
}
.rv3-reklama__tresc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--rv3-space-4) var(--rv3-space-6);
  border-radius: var(--rv3-radius-md);
  background: var(--rv3-surface);
  font-size: var(--rv3-fs-xs);
}
.rv3-reklama__tresc strong {
  font-size: var(--rv3-fs-sm);
  color: var(--rv3-text);
}
/* ---------- Pas promocyjny (_rv3/pas.tpl, Rv3_Pasy) ---------- */
/* Przerywnik między paskami ogłoszeń: kolor działu (data-modul) jak toper, przyciski jak pas CTA nad
   stopką. Wariant z formularzem: tekst z lewej, formularz z prawej; telefon – pod sobą, na całą szerokość. */
.rv3-pas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rv3-space-8) var(--rv3-space-10);
  padding: var(--rv3-space-11) var(--rv3-space-12);
  border-radius: var(--rv3-radius-xl);
  background: var(--rv3-header-bg);
  color: var(--rv3-header-ink);
}
.rv3-pas__tekst {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: var(--rv3-space-2);
}
.rv3-pas__tytul {
  margin: 0;
  font-size: var(--rv3-fs-3xl);
  font-weight: var(--rv3-fw-bold);
  font-stretch: var(--rv3-wdth-szeroki);
  letter-spacing: var(--rv3-tracking-heading);
  line-height: var(--rv3-lh-tight);
  text-wrap: balance;
}
.rv3-pas__tytul a,
.rv3-pas__tytul a:hover {
  color: inherit;
  text-decoration: none;
}
.rv3-pas__ikona {
  margin-right: var(--rv3-space-2);
  font-size: 0.8em;
  color: var(--rv3-header-ink-2);
}
.rv3-pas__opis {
  margin: 0;
  font-size: var(--rv3-fs-md);
  color: var(--rv3-header-ink-2);
  text-wrap: pretty;
}
.rv3-pas__akcje {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rv3-space-5);
}
.rv3-pas__akcje .rv3-btn i,
.rv3-pas__wyslij i {
  font-size: 0.8em;
}
.rv3-pas__linki {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rv3-space-2) var(--rv3-space-8);
  margin: var(--rv3-space-3) 0 0;
  font-size: var(--rv3-fs-sm);
}
.rv3-pas__linki a,
.rv3-pas__link-przycisk {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--rv3-header-ink);
  text-decoration: underline;
  text-decoration-color: var(--rv3-header-line-strong);
  text-underline-offset: 3px;
  cursor: pointer;
}
.rv3-pas__linki a:hover,
.rv3-pas__link-przycisk:hover {
  color: var(--rv3-header-ink);
  text-decoration-color: currentColor;
}
.rv3-pas__link-przycisk:focus-visible {
  outline: 2px solid var(--rv3-header-ink);
  outline-offset: 2px;
}

/* Formularz w pasie – wyższy niż zwykły pas: góra/dół większe niż boki, żeby formularz miał oddech */
.rv3-pas--formularz {
  align-items: flex-start;
  padding-top: 48px;
  padding-bottom: 48px;
}
.rv3-pas--formularz .rv3-pas__tekst {
  flex: 1 1 300px;
}
.rv3-pas__formularz {
  flex: 1.6 1 480px;
  display: flex;
  flex-direction: column;
  gap: var(--rv3-space-5);
  min-width: 0;
}
.rv3-pas__pola {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--rv3-space-5);
}
.rv3-pas__pole {
  display: flex;
  flex-direction: column;
  gap: var(--rv3-space-2);
  min-width: 0;
}
.rv3-pas__pole--szerokie {
  flex: 1 1 200px;
}
.rv3-pas__wejscie {
  position: relative; /* lista podpowiedzi (adres.js) */
}
.rv3-pas__etykieta {
  font-size: var(--rv3-fs-sm);
  font-weight: var(--rv3-fw-semibold);
  color: var(--rv3-header-ink-2);
}
.rv3-pas__pola .rv3-input,
.rv3-pas__pola .rv3-select {
  border-color: transparent;
}
.rv3-pas__wybory {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rv3-space-3);
  margin: 0;
  padding: 0;
  border: 0;
}
.rv3-pas__wybor {
  display: inline-flex;
  align-items: center;
  gap: var(--rv3-space-2);
  padding: 6px 14px;
  border: 1px solid var(--rv3-header-line-strong);
  border-radius: var(--rv3-radius-pill);
  font-size: var(--rv3-fs-sm);
  cursor: pointer;
  transition: background var(--rv3-transition), border-color var(--rv3-transition);
}
.rv3-pas__wybor:hover {
  border-color: var(--rv3-header-ink);
}
.rv3-pas__wybor input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rv3-pas__wybor:has(input:checked) {
  border-color: var(--rv3-header-ink);
  background: var(--rv3-header-ink);
  color: var(--rv3-header-bg);
}
.rv3-pas__wybor:has(input:focus-visible) {
  outline: 2px solid var(--rv3-header-ink);
  outline-offset: 2px;
}
.rv3-pas__ile {
  font-size: var(--rv3-fs-xs);
  opacity: 0.75;
}

@media (max-width: 640px) {
  .rv3-pas {
    margin-left: calc(-1 * var(--rv3-gutter));
    margin-right: calc(-1 * var(--rv3-gutter));
    padding: var(--rv3-space-10) var(--rv3-gutter);
    border-radius: 0;
  }
  .rv3-pas__akcje .rv3-btn--cta,
  .rv3-pas__wyslij {
    flex: 1 1 100%;
  }
  .rv3-pas--formularz {
    padding-top: var(--rv3-space-12);
    padding-bottom: var(--rv3-space-12);
  }
  .rv3-pas__formularz {
    flex-basis: 100%;
  }
  .rv3-pas__pole {
    flex: 1 1 100%;
  }
  .rv3-pas__pole .rv3-select {
    width: 100%;
  }
}

/* Baner z getBanAction (stary znacznik .obrazki / .napis / .mojeObrazki) */
.rv3-tresc .obrazki {
  text-align: center;
}
.rv3-tresc .obrazki .napis {
  margin-bottom: 4px;
  font-size: var(--rv3-fs-2xs);
  letter-spacing: var(--rv3-tracking-overline);
  text-transform: uppercase;
  color: var(--rv3-subtle);
}
.rv3-tresc .obrazki img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--rv3-radius-md);
}

/* ---------- Podpowiedzi (lista pod polem – pub/js/adres.js z opcją klasa: 'rv3-suggest') ---------- */
/* top / left / width ustawia skrypt – lista leży tuż pod polem w najbliższym przodku z position. */
.rv3-suggest {
  position: absolute;
  z-index: 1100;
  box-sizing: border-box;
  margin: 4px 0 0;
  padding: var(--rv3-space-1) 0;
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  background: var(--rv3-surface);
  border: 1px solid var(--rv3-border-card);
  border-radius: var(--rv3-radius-md);
  box-shadow: var(--rv3-shadow-pop);
  font-family: var(--rv3-font);
}
.rv3-suggest[hidden] {
  display: none;
}
.rv3-suggest li {
  margin: 0;
  padding: var(--rv3-space-3) var(--rv3-space-5);
  cursor: pointer;
  line-height: var(--rv3-lh-tight);
}
.rv3-suggest li.aktywna,
.rv3-suggest li:hover {
  background: var(--rv3-accent-soft);
}
.rv3-suggest .podpowiedz-etykieta {
  display: block;
  font-size: var(--rv3-fs-base);
  font-weight: var(--rv3-fw-semibold);
  color: var(--rv3-text);
}
.rv3-suggest .podpowiedz-dopisek {
  display: block;
  font-size: var(--rv3-fs-xs);
  color: var(--rv3-muted);
}

/* ---------- Karty wpisów forum (ostatni wpis z fragmentem treści) – strona główna portalu i forum;
   szablon _rv3/forum_karty.tpl ---------- */
.rv3-forum-karty {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rv3-space-7);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rv3-forum-karty > li {
  display: flex;
  margin: 0;
  padding: 0;
}
.rv3-forum-karta {
  flex: 1;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--rv3-space-3);
  padding: var(--rv3-space-7) var(--rv3-space-8);
  background: var(--rv3-surface);
  border: 1px solid var(--rv3-border-card);
  border-inline-color: var(--rv3-ramka-bok, var(--rv3-border-card));
  border-radius: var(--rv3-radius-xl);
  box-shadow: var(--rv3-shadow-card);
  transition: border-color var(--rv3-transition);
}
.rv3-forum-karta:hover {
  border-color: var(--rv3-accent-ink);
}
.rv3-forum-karta:hover .rv3-card__link {
  color: var(--rv3-accent-ink);
}
.rv3-forum-karta:has(.rv3-card__link:focus-visible) {
  outline: 2px solid var(--rv3-accent-ink);
  outline-offset: 2px;
}
.rv3-forum-karta__gora {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rv3-space-2) var(--rv3-space-4);
  font-size: var(--rv3-fs-xs);
  color: var(--rv3-muted);
}
.rv3-forum-karta__dzial {
  padding: 2px 8px;
  border-radius: var(--rv3-radius-xs);
  background: var(--rv3-accent-soft);
  color: var(--rv3-accent-ink);
  font-weight: var(--rv3-fw-semibold);
  letter-spacing: var(--rv3-tracking-badge);
  text-transform: uppercase;
  font-size: var(--rv3-fs-2xs);
}
/* Nowe wpisy od ostatniej wizyty (zalogowany) – pełny akcent zamiast miękkiego */
.rv3-forum-karta__nowe {
  padding: 2px 8px;
  border-radius: var(--rv3-radius-xs);
  background: var(--rv3-accent);
  color: var(--rv3-on-accent);
  font-weight: var(--rv3-fw-semibold);
  letter-spacing: var(--rv3-tracking-badge);
  text-transform: uppercase;
  font-size: var(--rv3-fs-2xs);
}
.rv3-forum-karta__tytul {
  font-size: var(--rv3-fs-lg);
  font-weight: var(--rv3-fw-semibold);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Fragment ostatniego wpisu – jak cytat */
.rv3-forum-karta__zajawka {
  padding-left: var(--rv3-space-5);
  border-left: 3px solid var(--rv3-accent-soft);
  font-size: var(--rv3-fs-sm);
  line-height: var(--rv3-lh-body);
  color: var(--rv3-text-2);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rv3-forum-karta__autor {
  margin-top: auto;
  padding-top: var(--rv3-space-2);
  display: flex;
  align-items: center;
  gap: var(--rv3-space-4);
  font-size: var(--rv3-fs-sm);
  color: var(--rv3-muted);
  min-width: 0;
}
.rv3-forum-karta__autor b {
  color: var(--rv3-text);
  font-weight: var(--rv3-fw-semibold);
  overflow-wrap: anywhere;
}
.rv3-forum-karta__autor time::before {
  content: "· ";
}
.rv3-forum-karta__avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rv3-accent-soft);
  color: var(--rv3-accent-ink);
  font-weight: var(--rv3-fw-bold);
  font-size: var(--rv3-fs-sm);
}
.rv3-forum-karta__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1099px) {
  .rv3-forum-karty {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .rv3-forum-karty {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--rv3-space-4);
  }
  .rv3-forum-karta__zajawka {
    -webkit-line-clamp: 3;
  }
}
