/* =========================================================================
   ARMADA WOLVES – styl
   Koncepcja: nocny las. Grafitowe tło z ziarnem, ciepłe drewno i złoto
   jako światło, leśna zieleń jako cień. Szeryfowa, wersalikowa typografia
   jak na herbie hodowli; dane (wyniki badań, rodowody) w kroju monospace.
   ========================================================================= */
:root {
  --night: #0e0f0d;      /* tło */
  --char: #171916;       /* karty */
  --char-2: #1f221e;     /* karty uniesione */
  --line: #2e322c;       /* linie, obrysy */
  --bone: #ece4d6;       /* tekst główny */
  --ash: #a39d90;        /* tekst drugorzędny */
  --gold: #c9a35a;       /* akcent */
  --gold-soft: #e2c58a;
  --wood: #8b5a34;       /* drewno */
  --forest: #23402f;     /* leśna zieleń */
  --forest-hi: #4f7a5d;

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* ziarno + poświata */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(201,163,90,.10), transparent 60%),
    radial-gradient(800px 700px at -10% 110%, rgba(35,64,47,.45), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.06'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
main { position: relative; z-index: 1; min-height: 70vh; }

/* ---------- typografia ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }
.eyebrow {
  font: 600 .72rem/1 var(--f-body); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--ash); max-width: 62ch; }
.mono { font-family: var(--f-mono); font-size: .82rem; letter-spacing: .02em; }
em.gold, .gold { color: var(--gold-soft); font-style: italic; }

/* ---------- nawigacja ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(14,15,13,.72);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; color: var(--gold); transition: transform .5s var(--ease); }
.brand:hover svg { transform: rotate(-8deg) scale(1.05); }
.brand b { font: 600 1.25rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; display: block; }
.brand small { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ash); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  position: relative; text-decoration: none; font-size: .86rem; font-weight: 500;
  padding: 10px 14px; color: var(--ash); border-radius: 999px; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--bone); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--bone); }
.nav .btn { margin-left: 8px; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--bone); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- przyciski ---------- */
.btn {
  --bg: var(--gold); --fg: var(--night);
  display: inline-flex; align-items: center; gap: .6em; cursor: pointer;
  font: 600 .9rem/1 var(--f-body); letter-spacing: .02em; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--bg);
  background: var(--bg); color: var(--fg);
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(201,163,90,.55); }
.btn:active { transform: translateY(0); }
.btn.ghost { --bg: transparent; --fg: var(--bone); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-soft); box-shadow: none; }
.btn.sm { padding: 10px 16px; font-size: .82rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- placeholder zdjęcia ---------- */
.ph {
  position: relative; overflow: hidden; margin: 0; border-radius: var(--r-md);
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(201,163,90,.16), transparent 55%),
    linear-gradient(160deg, #22261f 0%, #151714 55%, #1b2a20 100%);
  aspect-ratio: 4/5; max-width: 100%;
  isolation: isolate;
}
.ph::before { /* sylwetka wilka */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><polygon fill='%23c9a35a' points='14,6 25,23 11,28'/><polygon fill='%23c9a35a' points='50,6 39,23 53,28'/><polygon fill='%23c9a35a' points='11,28 25,22 32,27 39,22 53,28 49,41 32,58 15,41'/></svg>") center 42% / 38% no-repeat;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ph figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  font: 500 .72rem/1.3 var(--f-mono); color: var(--ash); letter-spacing: .04em;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.ph figcaption b { display: block; font: 600 .95rem/1.2 var(--f-display); color: var(--bone); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.ph.has-img figcaption { opacity: 0; }
.ph.wide { aspect-ratio: 16/10; }
.ph.square { aspect-ratio: 1; }
.ph.tall { aspect-ratio: 3/4; }

/* ---------- sekcje ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.section-head.row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.page-head { padding-block: clamp(56px, 8vw, 104px) 24px; display: grid; gap: 18px; }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.page-head .big-letter {
  font: 300 clamp(8rem, 22vw, 18rem)/.8 var(--f-display); color: transparent;
  -webkit-text-stroke: 1px rgba(201,163,90,.35); position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); top: 30px;
  pointer-events: none; user-select: none;
}
.rel { position: relative; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: 0; }

/* ---------- HERO ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 { font-weight: 400; }
.hero h1 .gold { font-weight: 500; }
.hero blockquote {
  margin: 0; padding-left: 18px; border-left: 1px solid var(--gold);
  font: italic 400 1.35rem/1.4 var(--f-display); color: var(--bone); max-width: 34ch;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; min-width: 0; }
.hero-art .ph { aspect-ratio: 4/5; border-radius: 180px 180px var(--r-lg) var(--r-lg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.hero-art .badge {
  position: absolute; left: -18px; bottom: 34px; background: var(--char-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 18px; display: flex; gap: 12px; align-items: center;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.9); animation: float 6s ease-in-out infinite;
}
.hero-art .badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--forest-hi); box-shadow: 0 0 0 6px rgba(79,122,93,.25); }
.hero-art .badge b { display: block; font-size: .9rem; }
.hero-art .badge span { font-size: .78rem; color: var(--ash); }
.hero-ring {
  position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; color: var(--gold);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- statystyki ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 20px; display: grid; gap: 6px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font: 500 clamp(2.2rem, 4vw, 3.2rem)/1 var(--f-display); color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.stat span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }

/* ---------- intro (o hodowli na stronie głównej) ---------- */
.intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.intro-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.intro-photos .ph:nth-child(2) { margin-top: 48px; }
.intro-copy { display: grid; gap: 20px; min-width: 0; }

/* ---------- karta miotu (wyróżniona) ---------- */
.litter-feature {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border-radius: var(--r-lg); background: var(--char); border: 1px solid var(--line);
}
.litter-feature .ph { border-radius: 0; aspect-ratio: auto; min-height: 380px; }
.litter-feature .body { padding: clamp(28px, 4vw, 52px); display: grid; gap: 18px; align-content: center; min-width: 0; position: relative; }
.litter-feature .letter { position: absolute; right: 24px; top: 4px; font: 300 9rem/1 var(--f-display); color: rgba(201,163,90,.12); pointer-events: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%;
  font: 600 .7rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ash);
}
.pill.live { color: #b9e2c5; border-color: rgba(79,122,93,.6); background: rgba(35,64,47,.45); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7fd39b; animation: pulse 1.8s infinite; }
.pill.plan { color: var(--gold-soft); border-color: rgba(201,163,90,.45); }
@keyframes pulse { 50% { opacity: .3; } }
.collars { display: flex; gap: 10px; flex-wrap: wrap; }
.collar { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ash); padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; }
.collar i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }

/* ---------- karty psów ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  font: 500 .85rem/1 var(--f-body); padding: 11px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ash); border: 1px solid var(--line); transition: all .25s var(--ease);
}
.chip:hover { color: var(--bone); border-color: var(--ash); }
.chip[aria-pressed="true"] { background: var(--bone); color: var(--night); border-color: var(--bone); }
.chip small { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }

.dog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.dog-card {
  position: relative; text-decoration: none; display: grid; gap: 0; border-radius: var(--r-lg);
  background: var(--char); border: 1px solid var(--line); overflow: hidden;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.dog-card .ph { border-radius: 0; }
.dog-card:hover { transform: translateY(-6px); border-color: rgba(201,163,90,.5); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.dog-card:hover .ph img { transform: scale(1.05); }
.dog-card .meta { padding: 18px 20px 22px; display: grid; gap: 6px; }
.dog-card h3 { font-size: 1.7rem; }
.dog-card .role { font-size: .82rem; color: var(--ash); }
.dog-card .sex {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font: 600 .66rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; background: rgba(14,15,13,.7); backdrop-filter: blur(6px); color: var(--bone); border: 1px solid rgba(255,255,255,.08);
}
.dog-card .go {
  position: absolute; right: 16px; bottom: 20px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold);
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.dog-card:hover .go { transform: rotate(-45deg); background: var(--gold); color: var(--night); border-color: var(--gold); }
.health { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.health span { font: 500 .68rem/1 var(--f-mono); padding: 5px 7px; border-radius: 6px; background: rgba(35,64,47,.5); color: #b9e2c5; }
.health span.tbd { background: transparent; border: 1px dashed var(--line); color: #6f6b62; }

/* ---------- profil psa ---------- */
.crumbs { font-size: .82rem; color: var(--ash); display: flex; gap: 8px; flex-wrap: wrap; padding-top: 32px; }
.crumbs a { text-decoration: none; color: var(--ash); }
.crumbs a:hover { color: var(--gold-soft); }
.profile { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); padding-block: 28px 40px; align-items: start; }
.profile-photo { position: sticky; top: 100px; display: grid; gap: 12px; }
.profile-photo .ph { border-radius: var(--r-lg); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbs .ph { border-radius: var(--r-sm); aspect-ratio: 1; cursor: zoom-in; }
.profile-body { display: grid; gap: 28px; min-width: 0; }
.profile-body h1 { font-size: clamp(3rem, 7vw, 5.4rem); }
.full-name { font: italic 400 1.3rem/1.3 var(--f-display); color: var(--gold-soft); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.facts div { background: var(--char); padding: 16px 18px; display: grid; gap: 4px; min-width: 0; }
.facts dt { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.tbd-text { color: #77736a; font-style: italic; font-weight: 400; }
.block { display: grid; gap: 14px; }
.block h2 { font-size: 1.9rem; }
.tests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.test { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 6px; background: var(--char); }
.test b { font: 500 1.4rem/1 var(--f-mono); color: var(--gold-soft); }
.test span { font-size: .72rem; color: var(--ash); }
.test.tbd b { color: #5d5a53; }

/* drzewo rodowodu */
.pedigree-wrap { overflow-x: auto; border-radius: var(--r-md); }
.pedigree { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 8px; min-width: 520px; }
.pedigree .col { display: grid; gap: 8px; }
.pedigree .node {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--char);
  display: grid; align-content: center; gap: 2px; min-height: 48px;
}
.pedigree .node small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.pedigree .node b { font-weight: 500; font-size: .9rem; }
.pedigree .node.m { border-left: 2px solid var(--gold); }
.pedigree .node.f { border-left: 2px solid var(--forest-hi); }

/* ---------- mioty ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.litter-list { display: grid; gap: 18px; }
.litter-row {
  display: grid; grid-template-columns: 140px 1fr auto; gap: clamp(16px, 3vw, 36px); align-items: center;
  padding: 22px clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--char);
  text-decoration: none; transition: border-color .3s, transform .4s var(--ease), background .3s;
}
.litter-row:hover { border-color: rgba(201,163,90,.5); transform: translateX(4px); background: var(--char-2); }
.litter-row .L { font: 300 5.6rem/.8 var(--f-display); color: var(--gold); text-align: center; }
.litter-row .info { display: grid; gap: 8px; min-width: 0; }
.litter-row h3 { font-size: 1.8rem; }
.litter-row p { color: var(--ash); font-size: .92rem; }
.litter-row .count { font: 500 .78rem/1.3 var(--f-mono); color: var(--ash); text-align: right; }
.parents { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.parent { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-decoration: none; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--char); min-width: 0; }
.parent .ph { aspect-ratio: 1; border-radius: 10px; }
.parent .ph::before { background-size: 60%; }
.parent small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.parent b { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; overflow-wrap: anywhere; }
.parents .x { font: 300 2rem/1 var(--f-display); color: var(--gold); }
.pups { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.pup { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--char); }
.pup .ph { border-radius: 0; aspect-ratio: 1; }
.pup .m { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: s; content: counter(s); font: 400 2.4rem/1 var(--f-display); color: var(--gold); }
.step b { font-size: 1rem; }
.step p { font-size: .88rem; color: var(--ash); }

/* ---------- o nas ---------- */
.manifesto { font: 400 clamp(1.7rem, 3.6vw, 2.8rem)/1.25 var(--f-display); max-width: 30ch; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { padding: 28px; border-radius: var(--r-lg); background: var(--char); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; transition: transform .4s var(--ease), border-color .3s; }
.value:hover { transform: translateY(-4px); border-color: var(--forest-hi); }
.value svg { width: 34px; height: 34px; color: var(--gold); }
.value h3 { font-size: 1.5rem; }
.value p { color: var(--ash); font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.prose { display: grid; gap: 16px; color: var(--ash); max-width: 62ch; }
.prose strong { color: var(--bone); font-weight: 600; }
.quote-card { padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: linear-gradient(140deg, var(--forest), #142219); border: 1px solid rgba(79,122,93,.4); display: grid; gap: 16px; }
.quote-card p { font: italic 400 1.5rem/1.4 var(--f-display); color: var(--bone); }

/* ---------- galeria ---------- */
.masonry { columns: 3 260px; column-gap: 16px; }
.masonry .ph { break-inside: avoid; margin-bottom: 16px; cursor: zoom-in; transition: transform .4s var(--ease), box-shadow .4s; }
.masonry .ph:hover { transform: scale(.985); box-shadow: 0 0 0 1px var(--gold); }
.masonry .ph:hover img { transform: scale(1.06); }
.album-meta { font-size: .85rem; color: var(--ash); margin-bottom: 24px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(6,7,6,.92); backdrop-filter: blur(8px);
  padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  animation: fade .3s;
}
.lightbox .ph { width: min(720px, 100%); max-height: 82vh; aspect-ratio: 4/5; }
.lightbox button { position: absolute; background: rgba(23,25,22,.8); color: var(--bone); border: 1px solid var(--line); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; }
.lightbox button:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { top: max(20px, env(safe-area-inset-top, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(20px, env(safe-area-inset-left, 0px)); top: 50%; }
.lb-next { right: max(20px, env(safe-area-inset-right, 0px)); top: 50%; }
@keyframes fade { from { opacity: 0; } }

/* ---------- kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-tile {
  position: relative; overflow: hidden; text-decoration: none; display: grid; gap: 10px; align-content: space-between;
  min-height: 190px; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--char);
  transition: transform .4s var(--ease), border-color .3s;
}
.cta-tile:hover { transform: translateY(-4px); border-color: var(--gold); }
.cta-tile.primary { background: linear-gradient(150deg, #2a2216, #17150f); border-color: rgba(201,163,90,.45); }
.cta-tile svg.ic { width: 30px; height: 30px; color: var(--gold); }
.cta-tile small { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.cta-tile b { font: 500 clamp(1.4rem, 2.6vw, 1.9rem)/1.15 var(--f-display); overflow-wrap: anywhere; }
.cta-tile::after { content: "↗"; position: absolute; right: 22px; top: 18px; color: var(--ash); transition: transform .3s var(--ease), color .3s; }
.cta-tile:hover::after { transform: translate(3px, -3px); color: var(--gold); }
.card { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: var(--char); border: 1px solid var(--line); display: grid; gap: 18px; align-content: start; min-width: 0; }
.details { display: grid; gap: 0; }
.details div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.details div:last-child { border-bottom: 0; }
.details dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); padding-top: 3px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.copy { background: none; border: 1px solid var(--line); color: var(--ash); border-radius: 6px; font-size: .7rem; padding: 3px 8px; margin-left: 8px; cursor: pointer; }
.copy:hover { color: var(--gold); border-color: var(--gold); }
form.contact { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--bone); background: var(--night); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,163,90,.15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 10px; font-size: .8rem; color: var(--ash); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--gold); }
.form-note { font-size: .82rem; color: var(--forest-hi); min-height: 1.2em; }

/* ---------- skrót kontaktu (home) ---------- */
.quick { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: stretch; }
.quick .card h2 { font-size: clamp(2rem, 4vw, 3rem); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- stopka ---------- */
footer.site { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-block: 56px 32px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { margin: 0 0 12px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--ash); }
.foot-grid a:hover { color: var(--bone); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: #6f6b62; }

/* pływający przycisk połączenia (mobile) */
.fab {
  position: fixed; z-index: 60; display: none;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--night);
  place-items: center; box-shadow: 0 14px 30px -10px rgba(201,163,90,.7);
}
.fab svg { width: 24px; height: 24px; }

/* ---------- animacje wejścia ---------- */
.view { animation: viewIn .6s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal .reveal:not(.in) { opacity: .45; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-reveal .reveal:not(.in) { opacity: 1; transform: none; }
}

/* ---------- responsywność ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 880px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14,15,13,.97); border-bottom: 1px solid var(--line);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px));
    transform: translateY(-120%); transition: transform .45s var(--ease); z-index: -1;
  }
  .menu-open .nav { transform: none; }
  .nav a { font-size: 1.5rem; font-family: var(--f-display); padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--bone); }
  .nav a::after { display: none; }
  .nav a.active { color: var(--gold-soft); }
  .nav .btn { margin: 18px 0 0; justify-content: center; font-family: var(--f-body); font-size: 1rem; border-bottom: 0; border-radius: 999px; color: var(--night); }
  .hero-grid, .intro, .litter-feature, .profile, .split, .contact-grid, .quick, .foot-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-art .badge { left: 8px; }
  .hero-ring { right: 0; width: 100px; height: 100px; }
  .profile-photo { position: static; }
  .litter-feature .ph { min-height: 280px; aspect-ratio: 4/3; }
  .section-head.row { grid-template-columns: 1fr; }
  .fab { display: grid; }
}
@media (max-width: 560px) {
  .contact-actions, .row2, .facts { grid-template-columns: 1fr; }
  .tests { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .litter-row { grid-template-columns: 70px 1fr; }
  .litter-row .L { font-size: 3.6rem; }
  .litter-row .count { grid-column: 1 / -1; text-align: left; }
  .parents { grid-template-columns: 1fr; }
  .parents .x { text-align: center; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
  .brand small { display: none; }
  .dog-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dog-card h3 { font-size: 1.3rem; }
  .dog-card .meta { padding: 14px 14px 18px; }
  .dog-card .go, .dog-card .health { display: none; }
  .page-head .big-letter { font-size: 7rem; top: 20px; }
}

/* poprawki */
.nav a.btn { color: var(--night); padding: 10px 16px; }
.nav a.btn::after { display: none; }
.nav a.btn:hover { color: var(--night); }
.thumbs .ph figcaption, .parent .ph figcaption, .pup .ph figcaption { display: none; }
.cta-tile > div { display: grid; gap: 6px; }

/* przycisk „Więcej zdjęć na Facebooku” */
.fb-more {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: var(--r-md); text-decoration: none;
  background: var(--char); border: 1px solid var(--line);
  transition: border-color .3s, transform .35s var(--ease), background .3s;
}
.fb-more:hover { border-color: var(--gold); background: var(--char-2); transform: translateY(-2px); }
.fb-more .fb-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(201,163,90,.12); color: var(--gold); }
.fb-more .fb-ic svg { width: 20px; height: 20px; }
.fb-more b { display: block; font-weight: 600; }
.fb-more small { color: var(--ash); font-size: .82rem; }
.fb-more .fb-go { color: var(--ash); font-size: 1.1rem; transition: transform .3s var(--ease), color .3s; }
.fb-more:hover .fb-go { color: var(--gold); transform: translate(3px, -3px); }

/* prawdziwe zdjęcia w galerii: naturalne proporcje zamiast kadrowania */
.masonry .ph.has-img { aspect-ratio: auto; }
.masonry .ph.has-img img { position: static; height: auto; }
.lightbox .ph.has-img, .lightbox .ph:has(img) { aspect-ratio: auto; width: auto; max-width: 100%; background: none; }
.lightbox .ph:has(img)::before { display: none; }
.lightbox .ph img { position: static; width: auto; height: auto; max-width: min(1200px, 100%); max-height: 84vh; object-fit: contain; border-radius: var(--r-md); }
.tests { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.test b { font-size: 1.2rem; overflow-wrap: anywhere; }
.profile-photo .ph.has-img { aspect-ratio: auto; }
.profile-photo .ph.has-img img { position: static; height: auto; }
.dog-card .ph img { object-position: 35% center; }
.profile-body .parents .node { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--char); display: grid; gap: 4px; min-width: 0; }
.profile-body .parents .node.m { border-left: 2px solid var(--gold); }
.profile-body .parents .node.f { border-left: 2px solid var(--forest-hi); }
.profile-body .parents .node small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.profile-body .parents .node b { font: 500 1.25rem/1.2 var(--f-display); overflow-wrap: anywhere; }
.dog-card .ph { aspect-ratio: 4/3; }
.dog-card .ph img { object-position: center 45%; }

/* Strona główna: wyróżnione psy w jednym rzędzie na szerokim ekranie */
@media (min-width: 1100px) {
  .dog-grid.home-pack { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
  .dog-grid.home-pack .go { display: none; }
}

/* Logo hodowli (pies + odręczny napis) */
.brand .logo-dog { height: 48px; width: auto; display: block; transition: transform .5s var(--ease); }
.brand:hover .logo-dog { transform: rotate(-4deg) scale(1.04); }
.brand .logo-txt { height: 24px; width: auto; display: block; margin-bottom: 6px; }
@media (max-width: 760px) {
  .brand .logo-dog { height: 40px; }
  .brand .logo-txt { height: 20px; margin-bottom: 0; }
}

/* Ślady łapek */
.paw-layer { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.paw { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; color: var(--gold);
  transform: rotate(var(--r)) scale(.6); opacity: 0; animation: paw 1.6s var(--ease) forwards; }
.paw svg { width: 100%; height: 100%; fill: currentColor; display: block; }
@keyframes paw {
  0% { opacity: 0; transform: rotate(var(--r)) scale(.6); }
  15% { opacity: .55; transform: rotate(var(--r)) scale(1); }
  100% { opacity: 0; transform: rotate(var(--r)) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .paw-layer { display: none; } }

/* Formularz: potwierdzenie wysłania */
.form-done { display: grid; gap: 8px; padding: 18px 0; }
.form-done h4 { font: 500 1.4rem/1.2 var(--f-display); color: var(--gold); }
.form-done p { color: var(--ash); }
.form-done a { color: var(--gold-soft); }

/* Polityka prywatności */
.legal { display: grid; gap: 34px; max-width: 820px; }
.legal h2 { font: 500 1.5rem/1.2 var(--f-display); margin-bottom: 10px; }
.legal p, .legal li { color: var(--ash); line-height: 1.7; }
.legal p + p { margin-top: 10px; }
.legal ul { display: grid; gap: 8px; padding-left: 1.2em; margin-top: 8px; }
.legal a, .consent a { color: var(--gold-soft); }
.legal strong { color: var(--bone); font-weight: 600; }
