:root {
  --forest-950: #1c261d;
  --forest-900: #263225;
  --forest-800: #31402e;
  --forest-700: #43543d;
  --olive-500: #7d8762;
  --bark-700: #6a5038;
  --bark-500: #8a6b4d;
  --cream-50: #fbf9f3;
  --cream-100: #f5f1e6;
  --cream-200: #ece5d5;
  --ink: #2c2b25;
  --muted: #766f62;
  --line: rgba(53, 55, 44, 0.14);
  --shadow-sm: 0 8px 24px rgba(40, 42, 33, 0.08);
  --shadow-md: 0 16px 46px rgba(34, 38, 30, 0.12);
  --radius: 18px;
  --shell: 1420px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream-100);
  color: var(--ink);
  overflow-x: hidden;
}
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(28, 38, 29, 0.97);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f7f0dc;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 23px/1 Georgia, serif;
  background: rgba(255,255,255,.05);
}
.brand-copy strong,
.brand-copy small { display: block; }
.brand-copy strong { font-size: .98rem; letter-spacing: .01em; }
.brand-copy small { margin-top: 1px; font-size: .74rem; color: rgba(247,240,220,.66); }

.language-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.lang-btn {
  width: 38px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: rgba(247,240,220,.78);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  font-size: .78rem;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { color: var(--forest-950); background: #f0e7d2; }

.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(184, 166, 117, .18), transparent 27rem),
    linear-gradient(135deg, var(--forest-900), #33412f 62%, #4a4532);
  color: #f7f0dc;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-inner {
  min-height: 238px;
  display: flex;
  align-items: center;
  padding-block: 36px 42px;
}
.hero-copy { max-width: 920px; }
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .68rem;
  font-weight: 800;
  color: rgba(247,240,220,.62);
}
h1 {
  margin: 0;
  font: 700 clamp(2.2rem, 4.3vw, 4rem)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
.lead {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(247,240,220,.78);
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
  line-height: 1.55;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: rgba(247,240,220,.74);
  font-size: .88rem;
}
.meta-row strong { color: #fff8e8; }
.meta-separator { opacity: .35; }

.catalog-section { padding-block: 24px 64px; }
.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(160px, .72fr) minmax(250px, 1.1fr) minmax(160px, .7fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(251, 249, 243, .94);
  box-shadow: var(--shadow-sm);
}
.field, .search-field { min-width: 0; }
.field label, .search-field label {
  display: block;
  margin: 0 0 6px 2px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.input-wrap { position: relative; }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a826f;
  font-size: 1.08rem;
  pointer-events: none;
}
input, select {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(63, 66, 52, .16);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  outline: none;
  padding: 0 12px;
}
.search-wrap input { padding-left: 38px; }
input:focus, select:focus {
  border-color: rgba(67,84,61,.68);
  box-shadow: 0 0 0 3px rgba(67,84,61,.11);
}
.reset-btn {
  height: 44px;
  border: 1px solid #35432f;
  border-radius: 12px;
  padding: 0 16px;
  background: #35432f;
  color: #fbf6e8;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.reset-btn:hover { background: #263225; }

.catalog-toolbar {
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 11px 3px 8px;
  color: var(--muted);
  font-size: .84rem;
}
.catalog-toolbar p { margin: 0; }
.catalog-toolbar strong { color: var(--ink); }
.view-note { text-align: right; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.card {
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(72, 81, 62, .18);
  border-radius: 22px;
  background: #fbf9f3;
  box-shadow: 0 10px 26px rgba(35, 42, 32, .07), 0 1px 0 rgba(255,255,255,.75) inset;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(35, 42, 32, .14);
  border-color: rgba(53, 67, 47, .3);
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d8d1bf;
  border-bottom: 1px solid rgba(113, 111, 94, .12);
}
.card-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 42px;
  background: linear-gradient(to top, rgba(24,33,25,.12), transparent);
  pointer-events: none;
}
.card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #d8d1bf;
  transition: transform .28s ease;
}
.card:hover .card-image { transform: scale(1.018); }
.box-badge {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 48px;
  padding: 5px 9px 5px 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(33, 47, 34, .92);
  color: #fff8e8;
  box-shadow: 0 6px 18px rgba(20,25,20,.17);
  backdrop-filter: blur(6px);
}
.box-badge-label {
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .11em;
  opacity: .68;
}
.box-badge-number {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.box-badge-pending {
  background: rgba(102, 72, 45, .9);
}
.box-tag { background: #dfe4d6; color: #31402e; }
.card-body {
  flex: 1;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
  gap: 8px;
  padding: 16px 16px 15px;
}
.genus-line {
  margin: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7b8167;
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.genus-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.former-inline {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 58%;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border: 1px solid rgba(99, 94, 77, .16);
  border-radius: 999px;
  background: rgba(236, 232, 220, .62);
  color: #797365;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: none;
  vertical-align: middle;
}
.former-inline-prefix {
  flex: 0 0 auto;
  color: #9a7156;
  font-style: italic;
  font-weight: 800;
}
.former-inline-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.former-inline-more {
  flex: 0 0 auto;
  font-size: .58rem;
  font-weight: 900;
  color: #665f52;
}
.card h2 {
  margin: 0;
  min-height: 2.35em;
  font: 700 1.02rem/1.16 Georgia, "Times New Roman", serif;
  color: #282a24;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
  overflow: hidden;
}
.name-main {
  display: block;
  font-style: italic;
  color: #232820;
}
.name-variant {
  display: block;
  font-size: .84rem;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: .045em;
  color: #5e634d;
  text-transform: uppercase;
}
.former {
  margin: 0;
  min-width: 0;
  min-height: 1.5em;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.2;
  overflow: hidden;
}
.former strong {
  flex: 0 0 auto;
  font-weight: 700;
}
.former-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.former-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ece8dc;
  color: #655f52;
  border: 1px solid rgba(95,91,77,.12);
  font-size: .65rem;
  font-weight: 800;
}
.tags:empty::before { content: ''; display: block; min-height: 24px; }
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  align-content: flex-start;
  margin-top: 0;
  min-height: 26px;
  overflow: hidden;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
}
.status-breeding { background: #edf0e5; color: #3f513d; border-color: #dde3d3; }
.status-available { background: #e6efe6; color: #285039; border-color: #d3e4d5; }
.status-sale { background: #f4eadc; color: #704f2e; border-color: #ead8c0; }
.status-trade { background: #e9ece4; color: #505c47; border-color: #daddd3; }
.status-reserved { background: #f3eddc; color: #705d30; border-color: #e8ddbf; }
.status-unavailable { background: #eee8e4; color: #6a5650; border-color: #e1d7d1; }
.status-request, .status-neutral { background: #eeece4; color: #5b584f; border-color: #dfdcd1; }
.price {
  align-self: stretch;
  margin-top: 0;
  padding: 12px 12px 10px;
  border-top: 1px solid rgba(72,81,62,.1);
  border-radius: 12px;
  background: rgba(239, 235, 222, .48);
  display: grid;
  gap: 3px;
}
.price strong { color: #273126; font-size: .95rem; letter-spacing: -.01em; }
.price small { color: #777163; font-size: .71rem; }
.price-hidden { background: rgba(239, 235, 222, .32); }
.price-hidden strong { color: #786d5c; font-weight: 700; }
.price-empty { visibility: hidden; background: transparent; border-color: transparent; }

.load-more-wrap { display: flex; justify-content: center; padding-top: 28px; }
.load-more-btn {
  min-width: 210px;
  border: 1px solid rgba(53,67,47,.2);
  border-radius: 999px;
  padding: 11px 22px;
  background: #fffdf8;
  color: #34402f;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-weight: 850;
}
.load-more-btn small { display: block; margin-top: 2px; color: var(--muted); font-weight: 600; font-size: .68rem; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }

.footer { background: var(--forest-950); color: #f3ecd9; }
.footer-inner {
  min-height: 112px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding-block: 24px;
}
.footer strong { font: 700 1.18rem Georgia, serif; }
.footer p { margin: 5px 0 0; color: rgba(243,236,217,.62); font-size: .82rem; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.contact-links a {
  color: #f3ecd9;
  text-decoration: none;
  border: 1px solid rgba(243,236,217,.16);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .76rem;
}
.contact-links a:hover { background: rgba(255,255,255,.06); }

.item-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(86vh, 860px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: auto;
  background: var(--cream-50);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(15,20,15,.3);
}
.item-dialog::backdrop { background: rgba(20,26,20,.66); backdrop-filter: blur(3px); }
.dialog-close {
  position: sticky;
  float: right;
  top: 12px;
  margin: 12px 12px -52px 0;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(28,38,29,.9);
  color: white;
  font-size: 1.35rem;
  cursor: pointer;
}
.dialog-media { aspect-ratio: 16 / 9; background: #d8d1bf; }
.dialog-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dialog-body { padding: 22px; }
.dialog-body h2 { margin: 0; font: 700 clamp(1.55rem,4vw,2.15rem)/1.08 Georgia, serif; display: flex; flex-direction: column; gap: 6px; }
.dialog-body .name-main { font-style: italic; }
.dialog-body .name-variant { font-size: .9rem; letter-spacing: .05em; }
.dialog-former { margin-top: 14px; color: var(--muted); font-size: .85rem; }
.dialog-former > strong { display: block; margin-bottom: 7px; color: #5d594f; }
.former-list { display: flex; flex-wrap: wrap; gap: 6px; }
.former-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #efecdf;
  border: 1px solid rgba(95,91,77,.12);
  color: #5c5a50;
  font-size: .77rem;
}
.dialog-body .tags { margin-top: 14px; }
.dialog-body .price { margin-top: 16px; }

@media (max-width: 1180px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: minmax(250px, 1.4fr) minmax(150px,.75fr) minmax(230px,1fr) minmax(150px,.7fr); }
  .reset-btn { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .shell { width: min(var(--shell), calc(100% - 26px)); }
  .hero-inner { min-height: 210px; padding-block: 28px 34px; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .field-wide, .species-field { grid-column: 1 / -1; }
  .reset-btn { grid-column: 1 / -1; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-toolbar { align-items: flex-start; }
}
@media (max-width: 560px) {
  .shell { width: min(var(--shell), calc(100% - 20px)); }
  .topbar { min-height: 62px; }
  .brand-mark { width: 34px; height: 34px; font-size: 20px; }
  .brand-copy small { display: none; }
  .language-switch { gap: 0; }
  .lang-btn { width: 34px; height: 30px; font-size: .72rem; }
  .hero-inner { min-height: 190px; padding-block: 26px 30px; }
  h1 { font-size: clamp(2.05rem, 10.5vw, 3rem); }
  .lead { font-size: .93rem; }
  .filter-panel { grid-template-columns: 1fr; padding: 10px; border-radius: 16px; }
  .field-wide, .species-field, .reset-btn { grid-column: auto; }
  .catalog-toolbar { flex-direction: column; gap: 4px; padding: 12px 2px 9px; }
  .view-note { text-align: left; }
  .catalog-grid { grid-template-columns: 1fr; gap: 12px; }
  .card-body { grid-template-rows: auto auto auto auto auto; gap: 8px; }
  .tags { flex-wrap: nowrap; }
  .card h2 { font-size: 1.08rem; min-height: 2.5em; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .contact-links { justify-content: flex-start; }
}

.status-archive { background:#ece6df; color:#70594a; border-color:#ded2c6; }


/* v4.8.6 — wider public status legend; descriptions stay on one line on desktop */
.catalog-toolbar {
  position: relative;
}
.status-legend {
  position: relative;
  margin-left: auto;
}
.status-legend summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(72,81,62,.14);
  border-radius: 999px;
  background: rgba(251,249,243,.86);
  color: #5e5a4e;
  font-size: .76rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(42,44,35,.04);
}
.status-legend summary::-webkit-details-marker { display: none; }
.status-legend summary::after {
  content: '▾';
  font-size: .72rem;
  opacity: .65;
  transition: transform .16s ease;
}
.status-legend[open] summary::after { transform: rotate(180deg); }
.status-legend-panel {
  position: absolute;
  z-index: 15;
  top: calc(100% + 8px);
  right: 0;
  width: min(720px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid rgba(72,81,62,.14);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 18px 44px rgba(33,39,31,.16);
}
.status-legend-item {
  display: grid;
  grid-template-columns: 112px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  color: #696457;
  font-size: .76rem;
  line-height: 1.35;
}
.status-legend-item > span:last-child {
  white-space: nowrap;
}
.status-legend-item + .status-legend-item {
  border-top: 1px solid rgba(72,81,62,.08);
}
.status-legend-item .status-tag {
  justify-content: center;
  width: 100%;
}
@media (max-width: 560px) {
  .catalog-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .status-legend-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 12px;
    width: auto;
    max-height: 70vh;
    overflow: auto;
  }
  .status-legend-item {
    grid-template-columns: 96px minmax(0,1fr);
  }
  .status-legend-item > span:last-child {
    white-space: normal;
  }
}

@media (min-width: 561px) and (max-width: 820px) {
  .status-legend-panel {
    width: min(640px, calc(100vw - 28px));
  }
  .status-legend-item > span:last-child {
    white-space: normal;
  }
}

/* v5.0 — pakiety cenowe */
.price-multi{display:grid;gap:4px}
.price-package{display:flex;flex-direction:column;gap:1px}
.price-package+ .price-package{padding-top:4px;border-top:1px solid rgba(53,55,44,.09)}
.price-package strong{font-size:.9rem}
.price-package small{font-size:.68rem}

/* v5.2 — compact cards: former-name row exists only when needed */

/* v5.2.2 — former names live in the genus line, never changing card height */
@media (max-width: 430px) {
  .former-inline { max-width: 52%; padding-inline: 5px; }
}


/* v5.2.3 — no duplicated genus label; former name sits beside the species title */
.card-body {
  grid-template-rows: auto auto auto;
}
.card-title-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
}
.card-title-row h2 {
  min-width: 0;
}
.card-title-row .former-inline {
  align-self: start;
  margin-top: 1px;
  max-width: 118px;
  padding: 3px 7px;
  font-size: .58rem;
  letter-spacing: 0;
  text-transform: none;
}
.card-title-row .former-inline-prefix {
  font-style: normal;
  font-weight: 750;
  color: #8a6b55;
}
@media (max-width: 430px) {
  .card-title-row {
    column-gap: 6px;
  }
  .card-title-row .former-inline {
    max-width: 96px;
    padding-inline: 6px;
  }
}
