﻿/* =========================================================
   Bajeczne Urwisy: Hodowla Chihuahua i Maltańczyków
   Design system & styles
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Czysta paleta: biel, ecru i grafit jako spokojna rama dla zdjęć */
  --white:        #FFFFFF;
  --bg:           #FFFFFF;
  --cream:        #FBF8F2;
  --cream-2:      #F3EEE5;
  --beige:        #ECE4D7;
  --beige-deep:   #D8CCB9;
  --brown:        #262520;
  --brown-deep:   #12110F;
  --graphite:     #20201C;
  --ink:          #393832;
  --muted:        #777166;
  --blush:        #D9D1C2;
  --blush-soft:   #F7F2EA;
  --sage:         #BFC8BD;
  --border:       #E5DDD1;
  --border-soft:  #EFE8DE;

  --shadow-sm: 0 2px 10px rgba(32, 31, 28, .05);
  --shadow-md: 0 14px 34px rgba(32, 31, 28, .09);
  --shadow-lg: 0 28px 58px rgba(32, 31, 28, .12);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Sacramento", "Dancing Script", cursive;

  /* Mocne krzywe easing (wg Emila Kowalskiego): domyślne CSS są zbyt słabe */
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* clip zamiast hidden: nie tworzy scroll-containera, więc sticky header działa */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: clamp(16px, 1.05vw, 17px);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brown-deep); text-decoration: none; }
a:hover { color: var(--brown); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--graphite);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
  scroll-margin-top: 112px;
}
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--cream { background: var(--cream); }
.section--beige { background: var(--cream-2); }

.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 64px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }

.eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--brown);
  line-height: 1;
  display: inline-block;
  margin-bottom: .1em;
}

.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink); }

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brown);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: 0;
  padding: .9em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .22s var(--ease-out),
              background .2s var(--ease-out), color .2s var(--ease-out);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover { background: var(--brown-deep); color:#fff; box-shadow: var(--shadow-md); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: scale(.97); transition-duration: .1s; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--brown-deep);
  border-color: var(--beige-deep);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--white); border-color: var(--brown); color: var(--brown-deep); }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--brown-deep);
  box-shadow: var(--shadow-sm);
}
.btn--light:hover { background: var(--cream-2); color: var(--brown-deep); }

.btn--lg { padding: 1.05em 2em; font-size: 1.05rem; }
.btn .ico { width: 1.15em; height: 1.15em; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: transform .22s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 8px 28px rgba(32, 31, 28, .08);
  border-color: var(--border-soft);
}
.site-header.is-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}
.site-header:focus-within {
  transform: none;
  transition: none;
}
.site-header .container {
  max-width: none;
  padding-inline: clamp(24px, 4.5vw, 84px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(.9rem, 1.5vw, 1.6rem);
  min-height: 88px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.45rem, 1.15vw, 1.25rem);
}
.nav-links a,
.nav-links button {
  font-weight: 600;
  font-size: clamp(.86rem, .9vw, .96rem);
  color: var(--ink);
  padding: .4em .2em;
  position: relative;
  white-space: nowrap;
}
.nav-links button {
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
.nav-links a::after,
.nav-links button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active,
.nav-links button:hover,
.nav-links button.active { color: var(--brown-deep); }
.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links button:hover::after,
.nav-links button.active::after { transform: scaleX(1); }

/* ---------- Rozwijane menu w nawigacji ---------- */
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a,
.nav-links .has-sub > button { display: inline-flex; align-items: center; gap: .32em; }
.nav-caret {
  width: 13px; height: 13px;
  transform: rotate(90deg);
  transition: transform .3s var(--ease);
}
.nav-links .nav-races > .nav-sub-toggle .nav-caret { display: none; }
.nav-links .nav-races > .nav-sub-toggle::before {
  content: "";
  order: 2;
  width: .42em;
  height: .42em;
  margin-left: .12em;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  opacity: .76;
  transform: rotate(45deg) translateY(-.1em);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  flex: 0 0 auto;
}
.nav-links .nav-races:hover > .nav-sub-toggle::before,
.nav-links .nav-races:focus-within > .nav-sub-toggle::before,
.nav-links .nav-races.sub-open > .nav-sub-toggle::before {
  opacity: 1;
  transform: rotate(-135deg) translateY(-.02em);
}
.nav-links .has-sub:hover .nav-caret,
.nav-links .has-sub:focus-within .nav-caret,
.nav-links .has-sub.sub-open .nav-caret { transform: rotate(-90deg); }
.nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 40;
  padding-top: 12px;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  transition: opacity .28s var(--ease), translate .28s var(--ease), visibility .28s;
}
.nav-links .has-sub:hover .nav-sub,
.nav-links .has-sub:focus-within .nav-sub,
.nav-links .has-sub.sub-open .nav-sub {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
.nav-sub-panel {
  display: flex;
  flex-direction: column;
  min-width: 208px;
  padding: .5rem;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.nav-sub-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .68em .85em;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--ink);
  transition: background .22s var(--ease), color .22s var(--ease);
}
.nav-sub-panel a::after { display: none; }
.nav-sub-panel a .ico { width: 15px; height: 15px; opacity: 0; transform: translateX(-4px); transition: opacity .22s var(--ease), transform .22s var(--ease); }
.nav-sub-panel a:hover,
.nav-sub-panel a:focus-visible,
.nav-sub-panel a.active { background: var(--cream); color: var(--brown-deep); }
.nav-sub-panel a:hover .ico,
.nav-sub-panel a:focus-visible .ico { opacity: .7; transform: translateX(0); }

.nav-cta { display: flex; align-items: center; gap: .7rem; }
.nav-social {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
}
.nav-social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(32, 31, 28, .12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}
.nav-social-link::after { display: none; }
.nav-social-link .ico {
  width: 17px;
  height: 17px;
}
.nav-social-link:hover,
.nav-social-link:focus-visible {
  transform: translateY(-1px);
  background: var(--white);
  border-color: rgba(32, 31, 28, .26);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--graphite); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Brand wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-fallback { display: inline-flex; align-items: center; gap: .7rem; }
.brand-img { display: none; height: 52px; width: auto; }
.brand--logo { flex: 0 0 auto; }
.brand--logo .brand-img--header {
  display: block;
  height: clamp(64px, 5.1vw, 82px);
  width: auto;
}
.brand.has-logo .brand-fallback { display: none; }
.brand.has-logo .brand-img { display: block; }
.brand--lg .brand-img { height: 92px; }
.brand--wordmark { gap: .85rem; }
.brand .brand-dog { width: 56px; height: 56px; color: var(--graphite); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-top {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0;
  font-size: .76rem;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: .2em;
}
.brand-script {
  font-family: var(--font-script);
  font-size: 2.65rem;
  color: var(--graphite);
  margin-top: -.18em;
}
.brand--lg .brand-dog { width: 84px; height: 84px; }
.brand--lg .brand-top { font-size: .82rem; letter-spacing: 0; }
.brand--lg .brand-script { font-size: 3.4rem; }
.brand--light .brand-top { color: rgba(255,255,255,.7); }
.brand--light .brand-script,
.brand--light .brand-dog { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100dvh - 88px);
  padding-block: 0;
  background:
    linear-gradient(180deg, #fff 0%, #FCFAF6 52%, #fff 100%);
  overflow: hidden;
}
.hero-shell {
  position: relative;
  width: 100vw;
  max-width: none;
  min-height: calc(100dvh - 88px);
  margin-left: calc(50% - 50vw);
  padding-inline: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-watermarks {
  position: absolute;
  inset: auto clamp(20px, 3.6vw, 64px) clamp(20px, 4.5vh, 56px) auto;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
  pointer-events: none;
}
.hero-watermarks img {
  position: static;
  width: clamp(62px, 5.4vw, 98px);
  height: auto;
  object-fit: contain;
  opacity: .2;
  filter: grayscale(1) saturate(.1) contrast(.9);
  mix-blend-mode: multiply;
}
.hero-watermarks img:nth-child(1),
.hero-watermarks img:nth-child(2),
.hero-watermarks img:nth-child(3) {
  inset: auto;
  transform: none;
}
.hero-watermarks img:nth-child(1) {
  opacity: .18;
}
.hero-watermarks img:nth-child(2) {
  opacity: .24;
}
.hero-watermarks img:nth-child(3) {
  opacity: .18;
}
.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 49%,
      rgba(255, 255, 255, .68) 0 20%,
      rgba(255, 255, 255, .46) 40%,
      rgba(255, 255, 255, .18) 62%,
      rgba(255, 255, 255, .04) 84%),
    linear-gradient(180deg,
      rgba(255, 255, 255, .08) 0%,
      rgba(255, 255, 255, .32) 50%,
      rgba(255, 255, 255, .08) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(2rem, 4.35vw, 3.35rem);
  margin-bottom: .35em;
}
.hero h1 .accent { color: var(--graphite); font-style: italic; }
.hero-sub { font-size: clamp(1.02rem, 1.35vw, 1.18rem); color: var(--ink); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.35rem; }
.hero-trust {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  margin-top: 2.2rem; color: var(--muted); font-size: .92rem; font-weight: 600;
}
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blush); }

/* Hero: płynące kafle zdjęć */
.hero-top {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: min(1320px, calc(100vw - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(18px, 4vw, 70px);
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 1),
    0 16px 44px rgba(255, 255, 255, .74);
}
.hero-top.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.hero-top::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 255, 255, .94) 0%,
      rgba(255, 255, 255, .78) 42%,
      rgba(255, 255, 255, .28) 68%,
      rgba(255, 255, 255, 0) 82%);
  filter: blur(14px);
}
.hero-brand-logo {
  display: block;
  width: clamp(260px, 24vw, 440px);
  height: auto;
  margin: 0 auto clamp(12px, 1.6vw, 22px);
  opacity: .98;
  filter: drop-shadow(0 18px 35px rgba(32, 31, 28, .08));
}
.hero-top .eyebrow {
  display: block;
  margin-bottom: .22em;
  font-size: clamp(1.75rem, 2.55vw, 3rem);
  line-height: 1;
}
.hero-top h1 {
  max-width: min(1320px, calc(100vw - (var(--gutter) * 2)));
  margin-inline: auto;
  font-size: clamp(2.45rem, 5.7vw, 5.5rem);
  line-height: 1;
}
/* Two tidy lines: "Hodowla psów rasowych" / "Chihuahua i Maltańczyków" */
.hero-top h1 .hl {
  display: block;
  white-space: nowrap;
}
.hero-top .hero-sub { margin-inline: auto; }
.hero-top .hero-actions { justify-content: center; text-shadow: none; }
.hero-top .hero-sub {
  max-width: 43em;
  font-size: clamp(1.08rem, 1.22vw, 1.32rem);
  line-height: 1.65;
}
.hero .hero-actions .btn {
  position: relative;
  z-index: 5;
  box-shadow: 0 12px 32px rgba(32, 31, 28, .16);
}
.hero .hero-actions .btn--ghost {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(216, 204, 185, .9);
  color: var(--brown-deep);
}
.hero-wall {
  --tile-gap: clamp(18px, 2vw, 30px);
  /* Height-aware: keep both rows within the hero so top & bottom walls never overlap */
  --tile-size: clamp(350px, min(35vw, calc((100dvh - 300px) * 0.83)), 690px);
  position: absolute;
  left: 50%;
  z-index: 1;
  width: min(2180px, 136vw);
  opacity: .68;
  display: grid;
  overflow: hidden;
  padding-block: 2px;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-wall.reveal {
  opacity: .68;
  transform: translateX(-50%) translateY(20px);
}
.hero-wall.reveal.in {
  opacity: .68;
  transform: translateX(-50%);
}
.hero-wall--top {
  top: clamp(34px, 7vh, 78px);
}
.hero-wall--bottom {
  bottom: clamp(28px, 5.5vh, 64px);
}
.hw-row {
  position: relative;
  min-height: calc(var(--tile-size) * .62);
  overflow: hidden;
}
.hw-track {
  display: flex;
  gap: var(--tile-gap);
  width: max-content;
  animation: hero-marquee-left 42s linear infinite;
  will-change: transform;
}
.hw-row--right .hw-track {
  animation-name: hero-marquee-right;
}
.hero-wall--bottom .hw-track {
  animation-duration: 46s;
}
.hero-wall.is-paused .hw-track {
  animation-play-state: paused;
}
.hw-tile {
  position: relative;
  flex: 0 0 var(--tile-size);
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: clamp(16px, 1.6vw, 26px);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 24px 62px rgba(32, 31, 28, .14);
}
/* Kafelki wyrównane równo w jednej linii (bez przesunięć w pionie) */
.hero-wall .hw-tile { transform: none; }
.hw-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--focus-y, 45%);
  display: block;
  filter: saturate(.98) contrast(1.02) brightness(1.04);
  transition: transform .55s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .hw-tile:hover img { transform: scale(1.045); } }
.hw-row-label {
  position: absolute;
  top: 12px;
  left: max(12px, calc((100vw - 100%) / -2 + 24px));
  z-index: 2;
  background: rgba(255, 255, 255, .92);
  color: var(--graphite);
  font-weight: 800;
  font-size: .78rem;
  padding: .35em .8em;
  border: 1px solid rgba(32, 31, 28, .08);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero .hero-trust { justify-content: center; margin-top: clamp(20px, 3vw, 32px); }

@keyframes hero-marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes hero-marquee-right {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

/* Hero visual: soft photo placeholder (stary układ, nieużywany) */
.hero-visual { position: relative; }
.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  background: var(--cream-2);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
}
.hero-card .photo-hint { text-align: center; color: var(--muted); padding: 1.5rem; }
.hero-card .photo-hint .paw { width: 64px; height: 64px; margin: 0 auto .6rem; color: var(--beige-deep); }

.hero-badge {
  position: absolute;
  left: -18px; bottom: 34px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .85rem 1.1rem;
  display: flex; align-items: center; gap: .7rem;
  max-width: 240px;
}
.hero-badge .hb-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--blush-soft); color: var(--brown);
  display: grid; place-items: center;
}
.hero-badge .hb-ico svg { width: 22px; height: 22px; }
.hero-badge strong { display: block; color: var(--graphite); font-size: .96rem; }
.hero-badge span { font-size: .8rem; color: var(--muted); }
.hero-badge--tr { left: auto; right: -14px; bottom: auto; top: 28px; }

/* floating paws decoration */
.paw-deco { position: absolute; color: var(--beige-deep); opacity: .5; pointer-events: none; }

/* ---------- Cards (generic) ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
}

/* Zdjęcia właściciela: automatycznie pokrywają placeholder, gdy plik istnieje */
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph-img--contain {
  object-fit: contain;
  object-position: center;
  padding: clamp(8px, 1.2vw, 14px);
  background: var(--cream);
}
.about-photo { position: relative; overflow: hidden; }
.breed-tag, .status { z-index: 2; }

/* ---------- Scroll merge motion ---------- */
.section--merge { overflow: hidden; }
.scroll-from-left,
.scroll-from-right {
  opacity: 1;
  transform-origin: center;
  transition: transform .68s var(--ease-out);
  will-change: transform;
}
.scroll-from-left { transform: translate3d(clamp(-420px, -24vw, -180px), 0, 0) scale(.96); }
.scroll-from-right { transform: translate3d(clamp(180px, 24vw, 420px), 0, 0) scale(.96); }
.scroll-from-left.in,
.scroll-from-right.in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes merge-from-left {
  from { opacity: .18; transform: translate3d(clamp(-150px, -12vw, -64px), 0, 0) scale(.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes merge-from-right {
  from { opacity: .18; transform: translate3d(clamp(64px, 12vw, 150px), 0, 0) scale(.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@supports (animation-timeline: view()) {
  .scroll-from-left,
  .scroll-from-right {
    opacity: 1;
    transition: none;
    animation-duration: 1ms;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: view(block);
    animation-range: entry 0% entry 100%;
    will-change: transform, opacity;
  }

  .scroll-from-left {
    animation-name: scroll-merge-left;
  }

  .scroll-from-right {
    animation-name: scroll-merge-right;
  }

  @keyframes scroll-merge-left {
    0% {
      opacity: .28;
      transform: translate3d(clamp(-520px, -34vw, -180px), 0, 0) scale(.955);
    }
    58% {
      opacity: .88;
    }
    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }

  @keyframes scroll-merge-right {
    0% {
      opacity: .28;
      transform: translate3d(clamp(180px, 34vw, 520px), 0, 0) scale(.955);
    }
    58% {
      opacity: .88;
    }
    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }
}

.scroll-merge-live {
  animation: none !important;
  transition: none !important;
  will-change: transform, opacity;
}

/* ---------- O hodowli ---------- */
#o-hodowli {
  position: relative;
  isolation: isolate;
}
/* Sam piesek z logo (ostry, wycięty z oryginału), dopasowany do zdjęcia */
#o-hodowli::before {
  content: "";
  position: absolute;
  left: 25.5%;
  top: 45%;
  z-index: 0;
  width: min(27vw, 344px);
  aspect-ratio: 368 / 488;
  background: var(--graphite);
  -webkit-mask: url("assets/logo-dog-mark.png") center / contain no-repeat;
  mask: url("assets/logo-dog-mark.png") center / contain no-repeat;
  opacity: .36;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#o-hodowli .about-grid {
  position: relative;
  z-index: 1;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.about-photo {
  border-radius: var(--radius-lg);
  aspect-ratio: 5/4.4;
  background: var(--cream);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  display: grid; place-items: center;
}
.about-photo--wide { aspect-ratio: 16 / 10; }
.about-photo .ph-img {
  object-position: 50% 62%;
  filter: saturate(.95) contrast(1.03) brightness(1.02);
}
.about-copy { max-width: 620px; }
.about-photo .paw { width: 72px; height: 72px; color: var(--beige-deep); }
.about-points { display: grid; gap: 1rem; margin-top: 1.6rem; }
.about-point { display: flex; gap: .9rem; align-items: flex-start; }
.about-point .tick {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: var(--blush-soft); color: var(--brown);
  display: grid; place-items: center; margin-top: 2px;
}
.about-point .tick svg { width: 17px; height: 17px; }
.about-point b { color: var(--graphite); display: block; margin-bottom: .15rem; }

.stats { display: flex; gap: 2.4rem; flex-wrap: wrap; margin-top: 2rem; }
.stat .num { font-family: var(--font-head); font-size: 2.1rem; color: var(--brown); line-height: 1; }
.stat .lbl { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ---------- Rasy ---------- */
.breeds-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.breed-intro {
  max-width: 520px;
  padding-top: clamp(6px, 2vw, 22px);
}
.breed-intro .section-title { margin-bottom: .38em; font-size: clamp(1.7rem, 3.1vw, 2.3rem); }
/* Nagłówek w dwóch równych liniach: "Chihuahua i Maltańczyki" / "z rodzinnej hodowli" */
.breed-intro .section-title .hl { display: block; white-space: nowrap; }
.breeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}
.breed {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.breed-media {
  aspect-ratio: 15/11;
  background: var(--cream-2);
  display: grid; place-items: center;
  position: relative;
}
.breed:nth-child(2) .breed-media { background: var(--cream); }
.breed-media .paw { width: 70px; height: 70px; color: var(--beige-deep); }
.breed:nth-child(1) .ph-img { object-position: 50% 58%; }
.breed:nth-child(2) .ph-img { object-position: 50% 48%; }
.breed-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  color: var(--brown-deep); font-weight: 700; font-size: .8rem;
  padding: .35em .9em; border-radius: 999px; border: 1px solid var(--border-soft);
}
.breed-body { padding: clamp(1.4rem, 2.5vw, 2rem); }
.breed-body h3 { font-size: 1.6rem; margin-bottom: .3em; }
.breed-traits { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.chip {
  font-size: .82rem; font-weight: 600; color: var(--brown-deep);
  background: var(--cream-2); border: 1px solid var(--border-soft);
  padding: .32em .85em; border-radius: 999px;
}

/* ---------- Szczenięta ---------- */
.puppy-carousel-head {
  max-width: min(1180px, 100%);
  margin: clamp(-10px, -1vw, -4px) auto clamp(18px, 3vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.puppy-scroll-note {
  max-width: 720px;
  margin: 0;
  text-align: left;
  color: var(--muted);
  font-size: .96rem;
}
.puppy-controls {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex: none;
}
.puppy-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--white);
  color: var(--graphite);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(40, 36, 30, .08);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}
.puppy-nav:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 31, 28, .24);
  background: var(--cream-2);
}
.puppy-nav:disabled {
  cursor: default;
  opacity: .34;
  transform: none;
  box-shadow: none;
}
.puppy-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.puppy-carousel {
  position: relative;
}
.puppy-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 360px);
  grid-template-columns: none;
  gap: clamp(18px, 2.5vw, 28px);
  overflow-x: auto;
  /* hidden, nie visible: przy overflow-x: auto „visible” liczy się jako auto
     i karuzela przechwytywała pionowe przesuwanie palcem na telefonie */
  overflow-y: hidden;
  /* bez overscroll-behavior: Safari na iOS blokuje wtedy pionowe przewijanie
     strony, gdy palec zaczyna ruch na karuzeli */
  scroll-snap-type: x mandatory;
  /* równe paddingowi: pierwsza karta zatrzymuje się dokładnie na scrollLeft 0;
     przy 2 px zostawało 2,4 px luzu i Safari na iOS łapało pionowy gest */
  scroll-padding-inline: .25rem;
  padding: .25rem .25rem .45rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.puppy-grid::-webkit-scrollbar { display: none; }
/* karty ukryte z boku karuzeli tylko się pojawiają, bez przesunięcia w pionie */
.puppy-grid .reveal { transform: none; }
/* iOS: przytrzymanie zdjęcia nie „podnosi” go do przeciągania */
.puppy-grid img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}
.puppy {
  order: 10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-snap-align: start;
}
.puppy.d4 { order: 1; }
.puppy.d5 { order: 2; }
.puppy.d6 { order: 3; }
.puppy.puppy--available { order: 0; }
.puppy-media {
  aspect-ratio: 1/1;
  background: var(--cream-2);
  position: relative; display: grid; place-items: center;
}
.puppy:nth-child(2) .puppy-media { background: var(--cream); }
.puppy:nth-child(3) .puppy-media { background: var(--blush-soft); }
.puppy:nth-child(4) .puppy-media { background: var(--cream); }
.puppy:nth-child(5) .puppy-media { background: var(--cream-2); }
.puppy:nth-child(6) .puppy-media { background: var(--blush-soft); }
.puppy:nth-child(7) .puppy-media { background: var(--cream); }
.puppy .ph-img { object-position: 50% 50%; }
.puppy.d3 .ph-img { object-position: 50% 58%; }
.puppy.d4 .ph-img { object-position: 50% 56%; }
.puppy.d5 .ph-img { object-position: 50% 58%; }
.puppy.d6 .ph-img { object-position: 50% 58%; }
.puppy-media .paw { width: 56px; height: 56px; color: var(--beige-deep); }
.status {
  position: absolute; top: 14px; right: 14px;
  font-size: .76rem; font-weight: 800; letter-spacing: 0;
  padding: .35em .85em; border-radius: 999px;
  background: #fff; border: 1px solid var(--border-soft);
}
.status--free   { color: #4a7c4e; background: #eef6ee; border-color: #d6ead7; }
.status--booked { color: #2f6f3e; background: #eaf7ed; border-color: #cde9d2; }
.status--home   { color: #7a7a7a; background: #f1f1f1; border-color: #e3e3e3; }
.puppy-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.puppy-body h3 { font-size: 1.3rem; margin: 0; }
.puppy-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: .1rem;
  font-size: .86rem;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.puppy-meta > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .42rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.puppy-meta > span:last-child { border-bottom: 0; }
.puppy-meta .meta-label {
  color: var(--muted);
  font-weight: 700;
}
.puppy-meta b {
  max-width: 62%;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}
.puppy-body .btn { margin-top: auto; }
.puppy-body .btn[href^="tel:"] {
  border-color: var(--graphite);
  color: var(--graphite);
}

@media (max-width: 640px) {
  .puppy-carousel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .puppy-controls {
    align-self: flex-end;
  }
  .puppy-nav {
    width: 44px;
    height: 44px;
  }
}

.notice {
  margin-top: clamp(26px, 4vw, 40px);
  background: var(--white);
  border: 1px dashed var(--beige-deep);
  border-radius: var(--radius);
  padding: clamp(1.15rem, 2vw, 1.45rem) clamp(1.1rem, 3vw, 2rem);
  display: flex;
  gap: clamp(.85rem, 2vw, 1.25rem);
  align-items: center;
  justify-content: center;
  text-align: left;
  color: var(--ink);
  flex-wrap: wrap;
}
.notice > svg,
.notice .notice-icon { width: 26px; height: 26px; color: var(--brown); flex: 0 0 26px; }
.page-gallery .notice { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; }
.page-gallery .notice > svg { margin-top: .2em; }
.notice-copy {
  display: grid;
  gap: .28rem;
  max-width: 720px;
  line-height: 1.6;
}
.notice-copy strong {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  color: var(--ink);
}
.notice-copy span {
  color: var(--muted);
}
.notice-copy a {
  color: var(--ink);
  text-decoration: none;
}
.notice-actions {
  display: flex;
  gap: .55rem;
  align-items: center;
  flex-wrap: wrap;
}
.notice-actions a {
  min-height: 42px;
  padding: .65rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  color: var(--ink);
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  background: rgba(255,255,255,.78);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.notice-actions a:hover,
.notice-actions a:focus-visible {
  border-color: rgba(34,33,29,.42);
  background: var(--cream);
  transform: translateY(-1px);
}
.notice-actions svg {
  width: 17px;
  height: 17px;
  color: var(--ink);
  flex: none;
}

/* ---------- Opieka ---------- */
.care-section {
  background: var(--cream-2);
}
.care-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .82fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}
.care-copy {
  max-width: 760px;
}
.care-copy .eyebrow {
  margin-bottom: .2em;
}
.care-copy .section-title {
  max-width: 720px;
}
.care-copy .lead {
  margin-top: clamp(18px, 2.2vw, 26px);
  color: var(--ink);
}
.care-copy p:not(.lead) {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1rem, 1.18vw, 1.08rem);
}
.care-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: clamp(22px, 3vw, 34px);
}
.care-facts span {
  padding: .72rem .92rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: var(--graphite);
  font-size: .92rem;
  font-weight: 800;
}
.care-package {
  position: relative;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 22px 56px rgba(32, 31, 28, .08);
}
.care-package::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.35rem, 3vw, 2.2rem);
  right: clamp(1.35rem, 3vw, 2.2rem);
  height: 3px;
  background: var(--graphite);
  border-radius: 999px;
  opacity: .86;
}
.care-package-label {
  display: inline-flex;
  margin: .45rem 0 .75rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}
.care-package h3 {
  margin-bottom: 1.05rem;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}
.package-list {
  display: grid;
  gap: 0;
}
.package-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: .75rem;
  padding: .88rem 0;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
}
.package-list li:first-child {
  border-top: 0;
}
.package-list b {
  color: var(--graphite);
}
.package-list .tick {
  width: 24px;
  height: 24px;
  margin-top: .15rem;
  border-radius: 8px;
  background: var(--blush-soft);
  color: var(--brown);
  display: grid;
  place-items: center;
}
.package-list .tick svg {
  width: 14px;
  height: 14px;
}
.care-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(32px, 5vw, 62px);
}
.care-benefit {
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
}
.care-benefit span {
  display: inline-flex;
  margin-bottom: .85rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 900;
}
.care-benefit h3 {
  margin-bottom: .55rem;
  font-size: clamp(1.18rem, 1.6vw, 1.38rem);
}
.care-benefit p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
}

/* ---------- Rodowody / zaufanie ---------- */
.trust-wrap {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(.6rem, 1.6vw, 1.4rem);
}
.trust-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(420px, 44vw, 760px);
  aspect-ratio: 3.2 / 1;
  transform: translate(-50%, -50%);
  background: url("assets/logo-bajeczne-urwisy-clean.png") center / contain no-repeat;
  opacity: .075;
  filter: grayscale(1) contrast(.95);
  pointer-events: none;
  z-index: 0;
}
.trust-copy,
.badges {
  position: relative;
  z-index: 1;
}
.trust-copy .ped-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--cream-2); border: 1px solid var(--border-soft);
  color: var(--brown-deep); font-weight: 700; font-size: .85rem;
  padding: .4em 1em; border-radius: 999px; margin-bottom: 1rem;
}
.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.badge-card {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.3rem 1rem;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.badge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.badge-card img { height: 84px; width: auto; margin: 0 auto .7rem; }
.badge-card .b-name { font-weight: 700; color: var(--graphite); font-size: .92rem; }
.badge-card .b-desc { font-size: .78rem; color: var(--muted); margin-top: .1rem; }

/* ---------- Rezerwacja (steps) ---------- */
#rezerwacja {
  overflow: hidden;
}
.reservation-head {
  margin-bottom: clamp(30px, 4.4vw, 56px);
}
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  right: clamp(24px, 4vw, 56px);
  top: 72px;
  height: 2px;
  z-index: 0;
  background: linear-gradient(90deg,
    rgba(166, 113, 74, 0),
    rgba(166, 113, 74, .36) 16%,
    rgba(32, 31, 28, .28) 50%,
    rgba(166, 113, 74, .36) 84%,
    rgba(166, 113, 74, 0));
}
.step {
  position: relative;
  z-index: 1;
  min-height: clamp(310px, 25vw, 360px);
  padding: clamp(1.25rem, 2vw, 1.7rem);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,252,247,.94));
  border: 1px solid rgba(224, 211, 191, .9);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(32, 31, 28, .08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: center;
}
.step::before {
  content: "";
  position: absolute;
  left: clamp(18px, 2vw, 28px);
  right: clamp(18px, 2vw, 28px);
  top: 0;
  height: 3px;
  width: auto;
  background: linear-gradient(90deg, rgba(32, 31, 28, .9), rgba(166, 113, 74, .25));
  border-radius: 999px;
  opacity: .72;
}
.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .72rem;
}
.step .step-num {
  font-family: var(--font-head);
  font-size: clamp(2.35rem, 3.1vw, 3.1rem);
  color: rgba(166, 113, 74, .38);
  line-height: 1;
}
.step-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: .55rem;
  padding: .34rem .7rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--brown-deep);
  font-size: .72rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}
.step h3 {
  font-size: clamp(1.1rem, 1.35vw, 1.28rem);
  margin: 0 0 .5rem;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.62;
}
.step a {
  color: var(--graphite);
  font-weight: 900;
  text-decoration: none;
}
.step .step-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 211, 191, .9);
  border-radius: 999px;
  background: rgba(244, 239, 231, .9);
  color: rgba(166, 113, 74, .72);
  flex: none;
}
.step .step-ico svg {
  width: 20px;
  height: 20px;
}
.step-action,
.step-note {
  margin-top: auto;
}
.step-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.1rem;
  padding: .78rem 1rem;
  border-radius: 999px;
  background: var(--graphite);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(32, 31, 28, .14);
}
.step-note {
  display: block;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--border-soft);
  color: var(--brown-deep);
  font-size: .83rem;
  font-weight: 800;
  line-height: 1.4;
}

/* ---------- Galeria ---------- */
.gallery-section {
  background:
    linear-gradient(180deg, var(--white) 0%, #FCFAF6 52%, var(--white) 100%);
}

/* ---------- Galeria: dwa portale ras (strona główna) ---------- */
.gallery-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
}
.breed-portal {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 42vw, 560px);
  padding: clamp(1.5rem, 2.6vw, 2.4rem);
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.breed-portal img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--py, 50%);
  transition: transform .8s var(--ease-out);
}
.breed-portal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 17, 15, 0) 32%, rgba(18, 17, 15, .28) 58%, rgba(18, 17, 15, .82) 100%);
}
@media (hover: hover) and (pointer: fine) {
  .breed-portal:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
  .breed-portal:hover img { transform: scale(1.05); }
}
.breed-portal:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 4px;
}
.bp-content {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 30ch;
}
.bp-content strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
  color: #fff;
}
.bp-note {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(.94rem, 1.1vw, 1.05rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.bp-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .55rem;
  align-self: flex-start;
  padding: .6rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .42);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.bp-cta .ico { width: 17px; height: 17px; transition: transform .3s var(--ease-out); }
.breed-portal:hover .bp-cta {
  background: rgba(255, 255, 255, .28);
  border-color: rgba(255, 255, 255, .65);
}
.breed-portal:hover .bp-cta .ico { transform: translateX(3px); }

/* ---------- Galeria: przejście do drugiej rasy (podstrony) ---------- */
.gallery-cross {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: clamp(26px, 3.4vw, 40px);
  border-top: 1px solid var(--border-soft);
}
.gallery-cross p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}
.gallery-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 46px);
}
.gallery-intro .section-head {
  margin: 0;
}
.gallery-tools {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .9rem;
  text-align: right;
}
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}
.gallery-filter {
  min-height: 42px;
  padding: .55rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--graphite);
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background .25s var(--ease-out),
    border-color .25s var(--ease-out),
    color .25s var(--ease-out),
    transform .25s var(--ease-out);
}
.gallery-filter:hover {
  border-color: rgba(32, 31, 28, .4);
  transform: translateY(-1px);
}
.gallery-filter:active {
  transform: translateY(0) scale(.98);
}
.gallery-filter.is-active {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #fff;
}
.gallery-hint {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}
.gallery-hint a {
  color: var(--graphite);
  font-weight: 900;
  border-bottom: 1px solid rgba(32, 31, 28, .3);
}
.gallery-mosaic {
  columns: 3;
  column-gap: clamp(14px, 1.6vw, 20px);
}
.gallery-mosaic.reveal {
  opacity: 1;
  transform: none;
}
.mosaic-tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(14px, 1.6vw, 20px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--cream);
  cursor: pointer;
  appearance: none;
  break-inside: avoid;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.mosaic-tile--sq { aspect-ratio: 1 / 1; }
.mosaic-tile--tall { aspect-ratio: 3 / 4; }
.mosaic-tile.is-hidden { display: none; }
@media (hover: hover) and (pointer: fine) {
  .mosaic-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}
.mosaic-tile:focus-visible {
  outline: 3px solid rgba(32, 31, 28, .3);
  outline-offset: 3px;
}
.mosaic-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--y, 50%);
  transition: transform .6s var(--ease-out);
}
.mosaic-tile:hover img,
.mosaic-tile:focus-visible img {
  transform: scale(1.045);
}
.mosaic-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2.4rem .95rem .85rem;
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  text-align: left;
  background: linear-gradient(180deg, rgba(18, 17, 15, 0), rgba(18, 17, 15, .58));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  pointer-events: none;
}
.mosaic-tile:hover .mosaic-cap,
.mosaic-tile:focus-visible .mosaic-cap {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .mosaic-cap {
    opacity: 1;
    transform: none;
    padding-top: 1.6rem;
  }
}
/* wejście kaskadą kolumnowo */
.gallery-mosaic .mosaic-tile { opacity: 1; }
.gallery-mosaic.in .mosaic-tile {
  opacity: 1;
  animation: tile-in .6s var(--ease-out) backwards;
}
.gallery-mosaic.in .mosaic-tile:nth-child(3n+2) { animation-delay: .08s; }
.gallery-mosaic.in .mosaic-tile:nth-child(3n) { animation-delay: .16s; }
@keyframes tile-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Opinie: karuzela z timerem ---------- */
.reviews-carousel {
  position: relative;
  width: min(1780px, 96vw);
  margin-inline: auto;
}
.reviews-strip {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
}
.reviews-strip::-webkit-scrollbar { display: none; }
.reviews-strip.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.reviews-strip:focus-visible {
  outline: 3px solid rgba(32, 31, 28, .18);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}
.rs-track {
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 1.9vw, 26px);
  width: max-content;
  padding: 8px 6px 30px;
}
.rs-card {
  flex: 0 0 clamp(340px, 27vw, 430px);
  width: clamp(340px, 27vw, 430px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .rs-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}
.rs-card:focus-visible {
  outline: 3px solid rgba(32, 31, 28, .3);
  outline-offset: 3px;
}
.rs-photo {
  margin: 0;
  flex: none;
  height: clamp(250px, 21vw, 320px);
  overflow: hidden;
  background: var(--blush-soft);
}
.rs-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--px, 50%) var(--py, 50%);
}
.rs-photo.no-img { display: none; }
.rs-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: clamp(1.1rem, 1.5vw, 1.4rem);
}
.rs-stars {
  color: #D3A735;
  font-size: 1rem;
  letter-spacing: .08em;
}
.rs-quote {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rs-more {
  display: none;
  color: var(--graphite);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(32, 31, 28, .3);
}
.rs-card.is-clamped .rs-more { display: inline; }
.rs-who {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: .05rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border-soft);
}
.rs-who b {
  color: var(--graphite);
  font-size: 1.05rem;
  font-family: var(--font-head);
}
.rs-who span {
  color: var(--muted);
  font-size: .84rem;
}
.rs-nav {
  position: absolute;
  top: 42%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(32, 31, 28, .18);
  border-radius: 50%;
  background: rgba(32, 31, 28, .94);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(32, 31, 28, .18);
  transform: translateY(-50%);
  transition: transform .22s var(--ease-out), background-color .22s var(--ease-out);
}
.rs-nav:hover,
.rs-nav:focus-visible {
  background: var(--graphite);
  transform: translateY(-50%) scale(1.06);
}
.rs-nav:focus-visible {
  outline: 3px solid rgba(32, 31, 28, .22);
  outline-offset: 4px;
}
.rs-nav .ico {
  width: 18px;
  height: 18px;
}
.rs-nav--prev {
  left: clamp(4px, 1vw, 18px);
}
.rs-nav--prev .ico {
  transform: rotate(180deg);
}
.rs-nav--next {
  right: clamp(4px, 1vw, 18px);
}
/* modal z pełną opinią (w lightboxie) */
.lightbox-review {
  width: min(560px, 92vw);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.lightbox-review figure {
  margin: 0;
  max-height: 46vh;
  overflow: hidden;
  background: var(--blush-soft);
}
.lightbox-review figure img {
  display: block;
  width: 100%;
  max-height: 46vh;
  object-fit: cover;
}
.lightbox-review .lr-body {
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
}
.lr-stars {
  color: #D3A735;
  letter-spacing: .08em;
  margin-bottom: .6rem;
}
.lr-quote {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
}
.lr-who {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border-soft);
}
.lr-who b {
  color: var(--graphite);
  font-size: 1.1rem;
  font-family: var(--font-head);
}
.lr-who span {
  color: var(--muted);
  font-size: .86rem;
}
.review-note {
  text-align: center;
  max-width: 700px;
  margin: clamp(24px, 3.2vw, 36px) auto 0;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Baza wiedzy ---------- */
.knowledge-main {
  background:
    linear-gradient(180deg, #fff 0%, #FCFAF6 48%, #fff 100%);
}
.knowledge-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(88px, 10vw, 142px) clamp(56px, 8vw, 96px);
}
.knowledge-hero::before {
  content: "";
  position: absolute;
  right: -6vw;
  top: 12%;
  width: clamp(280px, 32vw, 560px);
  aspect-ratio: 1;
  background: url("assets/logo-dog-mark.png") center / contain no-repeat;
  opacity: .055;
  pointer-events: none;
}
.knowledge-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: center;
}
.knowledge-hero-copy {
  max-width: 760px;
}
.knowledge-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1rem;
  padding: .46rem .82rem;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--brown-deep);
  font-size: .82rem;
  font-weight: 900;
}
.knowledge-kicker .ico {
  width: 1.05em;
  height: 1.05em;
}
.knowledge-hero h1 {
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  letter-spacing: 0;
  max-width: 10ch;
}
.knowledge-hero .lead {
  max-width: 62ch;
}
.knowledge-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.7rem;
}
.knowledge-visual {
  position: relative;
  min-height: clamp(360px, 36vw, 540px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
  background: var(--cream);
}
.knowledge-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  filter: saturate(.96) contrast(1.03);
}
.knowledge-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 15, 0) 45%, rgba(18, 17, 15, .42) 100%);
}
.knowledge-visual figcaption {
  position: absolute;
  left: clamp(18px, 2vw, 28px);
  right: clamp(18px, 2vw, 28px);
  bottom: clamp(18px, 2vw, 28px);
  z-index: 1;
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
}
.knowledge-section {
  padding-block: clamp(56px, 7vw, 100px);
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.knowledge-card {
  position: relative;
  min-height: 100%;
  padding: clamp(1.25rem, 2vw, 1.8rem);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.knowledge-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--graphite), rgba(166, 113, 74, .28));
}
.knowledge-card .label {
  display: inline-flex;
  margin-bottom: .9rem;
  color: var(--brown-deep);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.knowledge-card h2,
.knowledge-card h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.82rem);
}
.knowledge-card p {
  color: var(--muted);
  font-size: .98rem;
}
.knowledge-card ul {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}
.knowledge-card li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 700;
}
.knowledge-card li::before {
  content: "";
  width: .48rem;
  height: .48rem;
  margin-top: .58rem;
  border-radius: 999px;
  background: var(--brown-deep);
  flex: none;
}
.knowledge-callout {
  margin-top: clamp(20px, 3vw, 34px);
  padding: clamp(1.3rem, 2.4vw, 2rem);
  border: 1px dashed rgba(166, 113, 74, .36);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 242, .82);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.knowledge-callout p {
  margin: 0;
  max-width: 68ch;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}
.contact-info {
  background: var(--graphite);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: flex; flex-direction: column; gap: 1.3rem;
  box-shadow: var(--shadow-md);
}
.contact-info h3 { color: #fff; font-size: 1.7rem; }
.contact-info p { color: rgba(255,255,255,.85); }
.ci-row { display: flex; gap: .9rem; align-items: flex-start; }
.ci-row .ci-ico {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: rgba(255,255,255,.14); color: #fff;
  display: grid; place-items: center;
}
.ci-row .ci-ico svg { width: 22px; height: 22px; }
.ci-row > span:last-child { display: flex; flex-direction: column; }
.ci-row .ci-label { display: block; font-size: .8rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: 0; }
.ci-row .ci-val { display: block; font-size: 1.15rem; font-weight: 700; color: #fff; }
.ci-val a { color: #fff; }
.ci-note {
  display: block;
  max-width: 34ch;
  margin-top: .2rem;
  color: rgba(255,255,255,.7);
  font-size: .92rem;
  line-height: 1.45;
}
.ci-sub {
  display: block;
  margin-top: .1rem;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
}
.ci-distances {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.ci-dist {
  display: inline-flex;
  align-items: baseline;
  gap: .38rem;
  padding: .34rem .7rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .74);
  font-size: .84rem;
  line-height: 1;
}
.ci-dist b {
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ci-map {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .85rem;
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  border-bottom: 1px solid rgba(255, 255, 255, .38);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: gap .25s var(--ease-out), border-color .25s var(--ease-out);
}
.ci-map .ico { width: 15px; height: 15px; }
.ci-map:hover {
  color: #fff;
  gap: .7rem;
  border-color: rgba(255, 255, 255, .7);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: auto; }

.contact-photo {
  position: relative;
  min-height: clamp(460px, 42vw, 570px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
.contact-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  filter: saturate(.96) contrast(1.02) brightness(1.04);
}
.contact-photo figcaption {
  position: absolute;
  left: clamp(18px, 2.4vw, 28px);
  right: clamp(18px, 2.4vw, 28px);
  bottom: clamp(18px, 2.4vw, 28px);
  z-index: 1;
  max-width: 390px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 38px rgba(32, 31, 28, .12);
}
.contact-photo figcaption span {
  display: block;
  margin-bottom: .3rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}
.contact-photo figcaption strong {
  display: block;
  color: var(--graphite);
  font-family: var(--font-head);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.22;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 700; font-size: .9rem; color: var(--graphite); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: .8em 1em;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--cream);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brown);
  background: #fff;
  box-shadow: 0 0 0 4px var(--blush-soft);
}
.form-success {
  display: none;
  background: #eef6ee; border: 1px solid #d6ead7; color: #3f6b43;
  border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1rem;
  font-weight: 600;
}
.form-success.show { display: block; }
.form-consent { font-size: .82rem; color: var(--muted); margin-top: .4rem; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    linear-gradient(180deg, #1c1d19 0%, #171814 100%);
  color: rgba(255,255,255,.74);
  padding-block: clamp(26px, 3.4vw, 40px) 0;
  overflow: hidden;
}
.site-footer .container {
  max-width: min(1780px, 96vw);
}
.footer-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 52px);
  padding-bottom: clamp(14px, 2vw, 22px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-identity > div:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 2.6vw, 40px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, .95fr) minmax(340px, 1.3fr) minmax(150px, .55fr) minmax(210px, .75fr);
  gap: clamp(28px, 4.6vw, 110px);
  padding-block: clamp(18px, 2.4vw, 28px);
  align-items: start;
}
.footer-logo {
  display: inline-flex;
  width: min(220px, 60vw);
}
.footer-logo img {
  width: 100%;
  height: auto;
  filter: invert(1) brightness(1.18);
  opacity: .98;
}
.footer-slogan {
  font-family: var(--font-script);
  color: #fff;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1;
  margin: 0;
  transform: translateY(.18em);
}
.footer-about h4,
.footer-location h4 { color: #fff; font-family: var(--font-body); font-weight: 800; font-size: .95rem; letter-spacing: 0; margin-bottom: 1rem; text-transform: uppercase; }
.footer-about p,
.footer-location p { color: rgba(255,255,255,.64); max-width: 46ch; margin-top: 0; }
.footer-location {
  max-width: 620px;
}
.footer-location .footer-city {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .2rem .7rem;
  margin: 0 0 .8rem;
}
.footer-city strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.6vw, 1.55rem);
  line-height: 1.25;
  color: #fff;
}
.footer-city span {
  color: rgba(255, 255, 255, .56);
  font-size: .92rem;
}
.footer-route {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.2rem, 2.4vw, 2.4rem);
  margin: 0 0 1rem;
}
.footer-route li {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .3rem 0;
}
.fr-city {
  color: rgba(255, 255, 255, .78);
  font-size: .94rem;
  font-weight: 600;
}
.fr-line {
  flex: 1;
  min-width: 24px;
  border-bottom: 1px dotted rgba(255, 255, 255, .24);
  transform: translateY(-.28em);
}
.fr-dist {
  color: #fff;
  font-weight: 900;
  font-size: .94rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.footer-route-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  padding: .6rem 1rem;
  border: 1px solid rgba(232, 224, 212, .24);
  border-radius: 999px;
  background: rgba(232, 224, 212, .08);
  color: #eadfce;
  font-weight: 800;
  font-size: .9rem;
  transition: transform .22s var(--ease-out), background .22s var(--ease-out), border-color .22s var(--ease-out);
}
.footer-route-link:hover {
  color: #fff;
  transform: translateY(-2px);
  background: rgba(232, 224, 212, .14);
  border-color: rgba(232, 224, 212, .48);
}
.footer-route-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.footer-socials {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-socials a {
  min-height: 42px;
  padding: .62rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 224, 212, .24);
  color: #eadfce;
  background: rgba(232, 224, 212, .08);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: .92rem;
  transition: transform .22s var(--ease-out), background .22s var(--ease-out), border-color .22s var(--ease-out);
}
.footer-socials a:hover {
  transform: translateY(-2px);
  background: rgba(232, 224, 212, .14);
  border-color: rgba(232, 224, 212, .48);
}
.footer-socials svg { width: 18px; height: 18px; color: #eadfce; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-weight: 800; font-size: .95rem; letter-spacing: 0; margin-bottom: 1rem; text-transform: uppercase; }
.footer-col a { display: block; color: rgba(255,255,255,.7); padding: .3em 0; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-link-icon {
  display: inline-flex !important;
  align-items: center;
  gap: .48rem;
}
.footer-link-icon svg {
  width: 16px;
  height: 16px;
  color: #eadfce;
  flex: none;
}
.footer-place {
  display: block;
  color: rgba(255,255,255,.62);
  max-width: 28ch;
  padding: .3em 0;
  line-height: 1.55;
}
.footer-credentials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: .6rem 0 clamp(12px, 1.8vw, 18px);
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.54);
  font-size: .86rem;
}
.footer-credentials > span { font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.footer-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2vw, 28px);
  flex-wrap: nowrap;
  min-width: 0;
  isolation: isolate;
}
.footer-badge {
  width: clamp(42px, 3.4vw, 56px);
  height: clamp(42px, 3.4vw, 56px);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: .36;
  mix-blend-mode: screen;
}
.footer-badge + .footer-badge {
  margin-left: 0;
}
.footer-badge img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) saturate(0) invert(1) brightness(1.32) contrast(.7);
}
.footer-badge:nth-child(2) {
  transform: translateY(1px);
  opacity: .34;
}
.footer-badge:nth-child(3) {
  opacity: .32;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .8rem;
  font-size: .86rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-made-by {
  color: rgba(255,255,255,.58);
}
.footer-made-by a {
  color: #eadfce;
  font-weight: 800;
  text-decoration: none;
}
.footer-made-by a:hover {
  color: #fff;
}

/* ---------- Mobile sticky call ---------- */
.mobile-call {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  display: none;
  box-shadow: var(--shadow-lg);
  font-size: 1.05rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(18, 17, 15, .88);
  display: none; align-items: center; justify-content: center;
  padding: clamp(14px, 3vw, 34px);
}
.lightbox.open { display: flex; }
.lightbox-inner {
  width: auto;
  max-width: calc(100vw - 48px);
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-align: left;
  box-shadow: none;
}
.lightbox-inner .paw { width: 80px; height: 80px; color: var(--beige-deep); margin: 0 auto 1rem; }
.lightbox-figure {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
}
.lightbox-figure img {
  width: auto;
  max-width: min(96vw, 1280px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.lightbox-figure::after {
  content: "";
  position: absolute;
  left: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  width: clamp(82px, 10vw, 132px);
  aspect-ratio: 3.05 / 1;
  background: url("assets/logo-white.png") left center / contain no-repeat;
  opacity: .68;
  filter: drop-shadow(0 2px 14px rgba(18, 17, 15, .42));
  pointer-events: none;
}
.lightbox-figure figcaption,
.lightbox figcaption {
  display: none !important;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; color: #fff; box-shadow: none;
  backdrop-filter: blur(10px);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-header .container {
    padding-inline: var(--gutter);
  }
  .nav-links {
    display: none;
  }
  .nav-social {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: .6rem var(--gutter) 1.2rem;
  }
  .nav.open .nav-links a,
  .nav.open .nav-links button {
    padding: .85em .2em;
    border-bottom: 1px solid var(--border-soft);
    width: 100%;
    text-align: left;
  }
  /* rozwijane menu w widoku mobilnym: płaska lista */
  .nav.open .has-sub > a,
  .nav.open .has-sub > button { justify-content: space-between; }
  .nav.open .nav-caret { transform: rotate(90deg); opacity: .5; }
  .nav.open .nav-sub {
    position: static;
    transform: none;
    translate: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
  }
  .nav.open .nav-sub-panel {
    min-width: 0;
    padding: 0 0 0 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .nav.open .nav-sub-panel a { color: var(--muted); }
  .nav.open .nav-sub-panel a .ico { opacity: .55; transform: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; order: -1; }
  .hero-top {
    max-width: min(840px, calc(100vw - (var(--gutter) * 2)));
  }
  .hero-brand-logo {
    width: clamp(220px, 34vw, 360px);
  }
  .hero-top h1 {
    font-size: clamp(2.35rem, 6vw, 4.3rem);
  }
  .hero-wall {
    --tile-size: clamp(280px, min(48vw, calc((100dvh - 280px) * 0.8)), 460px);
    width: 132vw;
    opacity: .58;
  }
  .hero-wall.reveal,
  .hero-wall.reveal.in {
    opacity: .58;
  }
  .hero-watermarks {
    inset: auto clamp(16px, 4vw, 42px) clamp(16px, 4vw, 42px) auto;
    gap: clamp(10px, 1.8vw, 16px);
  }
  .hero-watermarks img {
    width: clamp(54px, 7.5vw, 80px);
  }
  #o-hodowli::before {
    left: 50%;
    top: 50%;
    width: min(46vw, 300px);
    opacity: .12;
  }
  .about-grid, .breeds-layout, .trust-wrap, .contact-grid, .care-layout { grid-template-columns: 1fr; }
  .trust-wrap::before {
    left: 50%;
    width: min(86vw, 440px);
    opacity: .052;
  }
  .breed-intro { max-width: 720px; text-align: center; margin-inline: auto; }
  .about-photo { max-width: 520px; }
  .care-benefits, .reviews { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before {
    top: 32px;
    bottom: 32px;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg,
      rgba(166, 113, 74, 0),
      rgba(166, 113, 74, .34) 16%,
      rgba(32, 31, 28, .24) 50%,
      rgba(166, 113, 74, .34) 84%,
      rgba(166, 113, 74, 0));
  }
  .step { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-identity { align-items: flex-start; }
  .footer-socials { justify-content: flex-start; }
  .gallery-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .gallery-tools {
    justify-self: start;
    align-items: flex-start;
    text-align: left;
  }
  .gallery-filters { justify-content: flex-start; }
  .gallery-mosaic { columns: 2; }
  .knowledge-hero-grid {
    grid-template-columns: 1fr;
  }
  .knowledge-hero-copy {
    max-width: 780px;
  }
  .knowledge-hero h1 {
    max-width: 13ch;
  }
  .knowledge-visual {
    min-height: clamp(320px, 58vw, 480px);
  }
  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .knowledge-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn, .nav-social { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: .6rem var(--gutter) 1.2rem;
  }
  .nav.open .nav-links a,
  .nav.open .nav-links button {
    padding: .85em .2em;
    border-bottom: 1px solid var(--border-soft);
    width: 100%;
    text-align: left;
  }
  .nav.open .nav-links .btn { display: inline-flex; margin-top: .8rem; }
  .nav { min-height: 78px; }
  .brand--logo .brand-img--header {
    height: clamp(54px, 12vw, 64px);
  }
  .mobile-call { display: flex; }
  body { padding-bottom: 84px; }
  .breeds { grid-template-columns: 1fr; }
  .breed-intro { text-align: left; }
  .breed-intro .section-title .hl { white-space: normal; }
  .hero { min-height: calc(100dvh - 88px); padding-block: 0; }
  .hero-shell { min-height: calc(100dvh - 88px); }
  .hero-top {
    margin-inline: var(--gutter);
    padding-inline: 0;
  }
  .hero-brand-logo {
    width: clamp(190px, 56vw, 300px);
    margin-bottom: .8rem;
  }
  .hero-top .eyebrow {
    font-size: clamp(1.45rem, 7.8vw, 2.25rem);
  }
  .hero h1,
  .hero-top h1 {
    font-size: clamp(2.05rem, 9.2vw, 3.05rem);
    line-height: .98;
  }
  .hero-top h1 .hl { white-space: normal; }
  .hero-top .hero-sub {
    font-size: .98rem;
    line-height: 1.55;
  }
  .hero-wall {
    /* square tiles here, capped by height so the two rows clear each other */
    --tile-size: clamp(176px, min(45vw, calc((100dvh - 230px) * 0.5)), 300px);
    width: 136vw;
    opacity: .5;
  }
  .hero-wall.reveal,
  .hero-wall.reveal.in {
    opacity: .5;
  }
  .hero-wall--top { top: 18px; }
  .hero-wall--bottom { bottom: 18px; }
  .hero-watermarks {
    inset: auto 14px 14px auto;
    gap: 8px;
  }
  .hero-watermarks img {
    opacity: .18;
    width: clamp(46px, 13vw, 64px);
  }
  .hw-row { min-height: var(--tile-size); }
  .hw-tile { aspect-ratio: 1 / 1; }
  .hero-wall--top .hw-tile:nth-child(n),
  .hero-wall--bottom .hw-tile:nth-child(n) {
    transform: translateY(0);
  }
  #o-hodowli::before {
    left: 50%;
    top: 50%;
    width: min(58vw, 240px);
    opacity: .11;
  }
  .contact-photo { min-height: clamp(340px, 72vw, 460px); }
  .gallery-duo { grid-template-columns: 1fr; }
  .breed-portal { min-height: clamp(320px, 74vw, 440px); }
  .gallery-intro {
    margin-bottom: clamp(22px, 7vw, 34px);
  }
  .gallery-mosaic {
    columns: auto;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .mosaic-tile,
  .mosaic-tile--sq,
  .mosaic-tile--tall {
    flex: 0 0 min(72vw, 300px);
    width: min(72vw, 300px);
    aspect-ratio: 3 / 4;
    margin: 0;
    scroll-snap-align: center;
  }
  .mosaic-tile.is-hidden { display: none; }
  .reviews-carousel { width: 100%; }
  .rs-nav { display: none; }
  .reviews-strip {
    scroll-snap-type: x mandatory;
    cursor: default;
    -webkit-overflow-scrolling: touch;
  }
  .rs-track {
    gap: 14px;
    padding: 4px var(--gutter) 22px;
  }
  .rs-card {
    flex: 0 0 min(84vw, 360px);
    width: min(84vw, 360px);
    scroll-snap-align: center;
  }
  .rs-photo { height: clamp(230px, 62vw, 280px); }
  .footer-identity,
  .footer-credentials {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-badges {
    justify-content: flex-start;
    min-width: 0;
    gap: 16px;
  }
  .footer-badge {
    width: clamp(40px, 12vw, 52px);
    height: clamp(40px, 12vw, 52px);
  }
  .footer-logo { width: min(220px, 78vw); }
  .footer-slogan { font-size: 2.05rem; }
  .site-footer { padding-bottom: 96px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  @keyframes merge-from-left {
    from { opacity: .18; transform: translate3d(-64px, 0, 0) scale(.985); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  }
  @keyframes merge-from-right {
    from { opacity: .18; transform: translate3d(64px, 0, 0) scale(.985); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  }
}

@media (max-width: 480px) {
  .care-benefits, .reviews, .steps, .badges, .footer-grid { grid-template-columns: 1fr; }
  .puppy-grid { grid-auto-columns: minmax(258px, 86vw); }
  .footer-route { grid-template-columns: 1fr; }
  .steps::before {
    left: 24px;
    top: 22px;
    bottom: 22px;
  }
  .step {
    min-height: auto;
    padding: 1.2rem 1.1rem 1.25rem 1.35rem;
  }
  .step-top { margin-bottom: .5rem; }
  .step-kicker { font-size: .68rem; }
  .hero-wall {
    --tile-size: 44vw;
    width: 142vw;
  }
  .contact-photo { min-height: 330px; }
  .contact-photo figcaption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: .85rem .95rem;
  }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-hero-actions .btn { width: 100%; }
  .stats { gap: 1.4rem; }
}

/* =========================================================
   Baza wiedzy 2.0 — hub blogowy + strony artykułów
   ========================================================= */

/* ---------- Hub: statystyki w hero ---------- */
.kb-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-soft);
}
.kb-hero-stats b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--graphite);
  line-height: 1.1;
}
.kb-hero-stats span {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 700;
}

/* ---------- Hub: artykuł wyróżniony (ciemna karta) ---------- */
.kb-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(1.6rem, 3.4vw, 3.2rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #24231d 0%, #191a14 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: var(--shadow-lg);
  color: rgba(255, 255, 255, .78);
  position: relative;
  overflow: hidden;
}
.kb-featured::before {
  content: "";
  position: absolute;
  right: -14%;
  top: -40%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(231, 211, 184, .13), transparent 65%);
  pointer-events: none;
}
.kb-featured-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.1rem;
  padding: .42rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #E7D3B8;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.kb-featured-tag .ico { width: 1.05em; height: 1.05em; }
.kb-featured h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  max-width: 20ch;
}
.kb-featured p {
  color: rgba(255, 255, 255, .74);
  max-width: 58ch;
}
.kb-featured .kb-meta { color: rgba(255, 255, 255, .52); }
.kb-featured-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.kb-featured-visual {
  position: relative;
  padding: clamp(.5rem, .9vw, .8rem);
  border-radius: calc(var(--radius-xl) - 4px);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
}
.kb-featured-visual img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 10px);
  display: block;
}

/* ---------- Hub: sekcje kategorii ---------- */
.kb-cat { margin-top: clamp(52px, 7vw, 88px); }
.kb-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(20px, 3vw, 30px);
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--border-soft);
}
.kb-cat-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin: 0;
}
.kb-cat-head .eyebrow {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: .05em;
}
.kb-cat-count {
  flex: none;
  font-size: .82rem;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}

/* ---------- Hub: karta artykułu ---------- */
.kb-card {
  display: flex;
  flex-direction: column;
  padding: .55rem .55rem 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.kb-card:hover { color: var(--ink); }
.kb-card:active { transform: scale(.985); transition-duration: .1s; }
.kb-card-visual {
  border-radius: calc(var(--radius-lg) - 5px);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.kb-card-visual img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out);
}
.kb-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem .8rem 1.2rem;
}
.kb-card-label {
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #A6714A;
  margin-bottom: .5rem;
}
.kb-card h3 {
  font-size: clamp(1.22rem, 1.6vw, 1.42rem);
  margin-bottom: .45rem;
}
.kb-card p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 1rem;
}
.kb-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 800;
  color: var(--muted);
}
.kb-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--beige-deep);
  flex: none;
}
.kb-card-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--brown-deep);
  font-weight: 900;
}
.kb-card-cta .ico {
  width: 1em;
  height: 1em;
  transition: transform .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .kb-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
  }
  .kb-card:hover .kb-card-visual img { transform: scale(1.045); }
  .kb-card:hover .kb-card-cta .ico { transform: translateX(4px); }
}

/* ---------- Hub bazy wiedzy: wersja editorial ---------- */
.kb-hub-main {
  background:
    linear-gradient(180deg, #fff 0%, #fbf8f2 44%, #fff 100%),
    radial-gradient(circle at 12% 18%, rgba(214, 184, 144, .18), transparent 28%),
    radial-gradient(circle at 88% 34%, rgba(38, 37, 32, .08), transparent 30%);
}
.kb-hub-hero {
  padding-block: clamp(70px, 8vw, 120px) clamp(30px, 5vw, 58px);
}
.kb-hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .82fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}
.kb-hub-hero .knowledge-hero-copy {
  text-align: left;
  max-width: 760px;
  margin: 0;
}
.kb-hub-hero .knowledge-hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 6.25rem);
  line-height: .94;
  letter-spacing: 0;
}
.kb-hub-hero .knowledge-hero-copy .lead {
  max-width: 58ch;
  margin-inline: 0;
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  line-height: 1.85;
}
.kb-hub-hero .knowledge-hero-actions {
  justify-content: flex-start;
}
.kb-hub-visual {
  margin: 0;
  position: relative;
  padding: clamp(.75rem, 1.2vw, 1rem);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.kb-hub-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: clamp(340px, 38vw, 520px);
  object-fit: cover;
  object-position: 50% 48%;
  border-radius: calc(var(--radius-xl) - 10px);
  background: #fbf7f0;
}
.kb-hub-visual figcaption {
  margin: .9rem .25rem .25rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
}
.kb-hub-visual figcaption strong {
  display: block;
  color: var(--graphite);
  margin-bottom: .1rem;
}
.kb-start-section {
  padding-block: clamp(10px, 2vw, 24px) clamp(44px, 6vw, 80px);
}
.kb-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.8vw, 34px);
}
.kb-start-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 260px;
  padding: clamp(1.55rem, 3vw, 2.5rem);
  color: var(--ink);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(251, 247, 240, .78)),
    radial-gradient(circle at 92% 16%, rgba(214, 184, 144, .22), transparent 30%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.kb-start-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--graphite), rgba(214, 184, 144, .35));
}
.kb-start-card span,
.kb-topic-label,
.kb-topic-meta {
  text-transform: uppercase;
  letter-spacing: .08em;
}
.kb-start-card span {
  margin-bottom: .8rem;
  color: #8d6a47;
  font-size: .76rem;
  font-weight: 900;
}
.kb-start-card h2 {
  max-width: 17ch;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}
.kb-start-card p {
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.75;
}
.kb-start-card b {
  margin-top: auto;
  color: var(--graphite);
}
.kb-topics-section {
  padding-block: clamp(46px, 7vw, 90px) clamp(78px, 10vw, 130px);
}
.kb-topics-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .58fr);
  gap: clamp(24px, 6vw, 82px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 58px);
}
.kb-topics-head .section-title {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.15rem, 4.6vw, 4.7rem);
  line-height: .98;
}
.kb-topic-note {
  padding-left: clamp(18px, 2.5vw, 34px);
  border-left: 1px solid var(--border);
}
.kb-topic-note strong {
  display: block;
  margin-bottom: .45rem;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
  color: var(--graphite);
}
.kb-topic-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.kb-topic-note a {
  color: var(--graphite);
  font-weight: 900;
}
.kb-topic-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 24px);
  align-items: stretch;
}
.kb-topic-card {
  grid-column: span 4;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 100%;
  color: var(--ink);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.kb-topic-card:hover {
  color: var(--ink);
}
.kb-topic-card--wide {
  grid-column: span 8;
  grid-template-columns: minmax(250px, .9fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
}
.kb-topic-card--tall {
  grid-row: span 2;
}
.kb-topic-visual {
  display: block;
  min-height: 230px;
  background: #fbf7f0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.kb-topic-card--wide .kb-topic-visual {
  border-bottom: 0;
  border-right: 1px solid var(--border-soft);
}
.kb-topic-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(.98) contrast(1.02);
  transition: transform .7s var(--ease-out);
}
.kb-topic-body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.05rem, 2vw, 1.55rem);
}
.kb-topic-label {
  margin-bottom: .65rem;
  color: #8d6a47;
  font-size: .72rem;
  font-weight: 900;
}
.kb-topic-card h3 {
  margin-bottom: .55rem;
  font-size: clamp(1.28rem, 1.8vw, 1.65rem);
  line-height: 1.08;
}
.kb-topic-card p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.7;
}
.kb-topic-meta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  color: var(--graphite);
  font-size: .75rem;
  font-weight: 900;
}
.kb-topic-meta .ico {
  width: 1rem;
  height: 1rem;
}
.kb-final-callout {
  margin-top: clamp(34px, 5.5vw, 66px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #24231d, #171713);
  box-shadow: var(--shadow-md);
  color: rgba(255, 255, 255, .74);
}
.kb-final-callout h2 {
  margin: 0 0 .45rem;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
}
.kb-final-callout p {
  margin: 0;
  max-width: 74ch;
  color: rgba(255, 255, 255, .72);
  line-height: 1.75;
}
.kb-final-callout p a[href^="tel:"] {
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kb-final-callout p a[href^="tel:"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .kb-start-card:hover,
  .kb-topic-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
  }
  .kb-topic-card:hover .kb-topic-visual img { transform: scale(1.045); }
}

/* ---------- Artykuł: pasek postępu czytania ---------- */
.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 300;
  background: transparent;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--graphite), #A6714A);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- Artykuł: hero ---------- */
.article-main {
  background: linear-gradient(180deg, #fff 0%, #FCFAF6 40%, #fff 100%);
}
.article-hero {
  position: relative;
  padding-block: clamp(44px, 6vw, 84px) clamp(36px, 5vw, 64px);
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.6rem;
  font-size: .86rem;
  font-weight: 800;
  color: var(--muted);
}
.article-breadcrumb a { color: var(--brown-deep); }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb .ico {
  width: .85em;
  height: .85em;
  color: var(--beige-deep);
}
.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1rem;
  padding: .46rem .82rem;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--brown-deep);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.article-kicker .ico { width: 1.05em; height: 1.05em; }
.article-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  max-width: 19ch;
}
.article-hero .lead {
  max-width: 58ch;
  color: var(--muted);
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.4rem;
  font-size: .88rem;
  font-weight: 800;
  color: var(--muted);
}
.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--beige-deep);
  flex: none;
}
.article-visual {
  padding: clamp(.5rem, .9vw, .75rem);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.article-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: clamp(300px, 34vw, 500px);
  object-fit: cover;
  object-position: 50% 48%;
  border-radius: calc(var(--radius-xl) - 8px);
  display: block;
}

/* ---------- Artykuł: układ treści + spis ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(24px, 4vw, 48px) clamp(64px, 8vw, 110px);
}
.article-toc {
  position: sticky;
  top: 118px;
  padding: 1.3rem 1.25rem 1.4rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 242, .85);
}
.article-toc-title {
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--graphite);
  margin-bottom: .85rem;
}
.article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .15rem;
  counter-reset: toc;
}
.article-toc a {
  position: relative;
  display: flex;
  gap: .6rem;
  padding: .42rem .6rem .42rem .8rem;
  border-radius: 9px;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--muted);
  transition: color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.article-toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-size: .72rem;
  font-weight: 900;
  color: var(--beige-deep);
  margin-top: .15em;
  transition: color .25s var(--ease-out);
}
.article-toc a:hover { color: var(--brown-deep); background: rgba(236, 228, 215, .5); }
.article-toc a.is-active {
  color: var(--brown-deep);
  background: var(--cream-2);
}
.article-toc a.is-active::before { color: #A6714A; }
.article-toc-call {
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--border-soft);
  font-size: .84rem;
  color: var(--muted);
}
.article-toc-call a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 0;
  font-size: .92rem;
  font-weight: 900;
  color: var(--brown-deep);
}
.article-toc-call a:hover { background: none; text-decoration: underline; }
.article-toc-call .ico { width: 1em; height: 1em; }
.article-toc-call a::before { display: none; }

/* ---------- Artykuł: typografia treści ---------- */
.article-body {
  max-width: 720px;
  font-size: 1.04rem;
  line-height: 1.85;
}
.article-body > h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  margin: 2.4em 0 .7em;
  padding-top: .4em;
  scroll-margin-top: 128px;
}
.article-body > h2:first-child { margin-top: 0; }
.article-body > h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: .38em;
  border-radius: 999px;
  background: linear-gradient(90deg, #A6714A, var(--beige-deep));
}
.article-body h3 {
  font-size: 1.28rem;
  margin: 1.9em 0 .55em;
  scroll-margin-top: 128px;
}
.article-body p { color: var(--ink); }
.article-body p + p { margin-top: -.2em; }
.article-body strong { color: var(--graphite); }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body ul {
  display: grid;
  gap: .6rem;
  margin: 0 0 1.3em;
}
.article-body ul li {
  position: relative;
  padding-left: 1.2rem;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: .46rem;
  height: .46rem;
  border-radius: 999px;
  background: #A6714A;
}
.article-body ol {
  list-style: none;
  counter-reset: steps;
  display: grid;
  gap: .85rem;
  margin: 0 0 1.3em;
  padding: 0;
}
.article-body ol li {
  position: relative;
  padding-left: 3rem;
  counter-increment: steps;
}
.article-body ol li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: .18em;
  width: 2.05rem;
  height: 2.05rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--brown-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
}
.article-body blockquote {
  margin: 2em 0;
  padding: .4em 0 .4em 1.6em;
  border-left: 3px solid var(--beige-deep);
  font-family: var(--font-head);
  font-size: 1.24rem;
  font-style: italic;
  color: var(--graphite);
  line-height: 1.55;
}
.article-figure {
  margin: 2.2em 0;
}
.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 48%;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}
.article-figure figcaption {
  margin-top: .7rem;
  font-size: .86rem;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- Artykuł: ramki rad i ostrzeżeń ---------- */
.article-tip {
  margin: 2.1em 0;
  padding: clamp(1.25rem, 2vw, 1.7rem) clamp(1.3rem, 2.2vw, 1.9rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #24231d 0%, #191a14 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-md);
}
.article-tip-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .6rem;
  color: #E7D3B8;
  font-weight: 900;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.article-tip-head .ico { width: 1.2em; height: 1.2em; }
.article-tip p { margin: 0; color: rgba(255, 255, 255, .8); }
.article-tip p + p { margin-top: .6em; }
.article-tip strong { color: #fff; }
.article-tip a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-tip a[href^="tel:"] { white-space: nowrap; }
.article-tip a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.article-warn {
  margin: 2.1em 0;
  padding: clamp(1.15rem, 2vw, 1.5rem) clamp(1.25rem, 2.2vw, 1.7rem);
  border-radius: var(--radius);
  border: 1px solid rgba(166, 113, 74, .3);
  border-left: 4px solid #A6714A;
  background: rgba(251, 243, 231, .65);
}
.article-warn-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
  color: #8a5836;
  font-weight: 900;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.article-warn-head .ico { width: 1.15em; height: 1.15em; }
.article-warn p { margin: 0; }
.article-warn p + p { margin-top: .6em; }
.article-warn ul { margin-top: .6em; margin-bottom: 0; }

/* ---------- Artykuł: lista kontrolna ---------- */
.article-checklist {
  display: grid;
  gap: .55rem;
  margin: 1.4em 0 1.6em;
  padding: 0;
}
.article-checklist li {
  position: relative;
  padding: .7rem .9rem .7rem 2.75rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: #fff;
}
.article-checklist li::before {
  content: "";
  position: absolute;
  left: .8rem;
  top: .82rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--cream-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A6714A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 60% no-repeat;
}

/* ---------- Artykuł: tabele ---------- */
.article-table-wrap {
  margin: 2em 0;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 560px;
  background: #fff;
}
.article-table th {
  background: var(--graphite);
  color: #fff;
  font-weight: 800;
  text-align: left;
  padding: .85rem 1.1rem;
  font-size: .86rem;
  letter-spacing: .02em;
}
.article-table td {
  padding: .8rem 1.1rem;
  border-top: 1px solid var(--border-soft);
  vertical-align: top;
}
.article-table td:first-child {
  font-weight: 800;
  color: var(--graphite);
  white-space: nowrap;
}
.article-table tbody tr:nth-child(even) { background: var(--cream); }

/* ---------- Artykuł: FAQ ---------- */
.article-faq {
  margin: 1.6em 0 0;
  border-top: 1px solid var(--border-soft);
}
.article-faq details {
  border-bottom: 1px solid var(--border-soft);
}
.article-faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 2.6rem 1.05rem .15rem;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--graphite);
  transition: color .25s var(--ease-out);
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after {
  content: "+";
  position: absolute;
  right: .3rem;
  top: 50%;
  translate: 0 -50%;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--brown-deep);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  transition: rotate .3s var(--ease-out), background-color .3s var(--ease-out);
}
.article-faq details[open] summary::after {
  rotate: 45deg;
  background: var(--beige);
}
.article-faq summary:hover { color: var(--brown-deep); }
.article-faq details > div {
  padding: 0 .15rem 1.2rem;
  color: var(--ink);
}
.article-faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Artykuł: powiązane + CTA ---------- */
.article-related {
  padding-block: clamp(48px, 6vw, 80px);
  background: var(--cream);
  border-top: 1px solid var(--border-soft);
}
.article-related .section-head { margin-bottom: clamp(24px, 3.4vw, 40px); }
.article-cta {
  margin-top: clamp(40px, 5vw, 64px);
}

/* ---------- Responsywność bazy wiedzy ---------- */
@media (max-width: 1020px) {
  .kb-hub-hero-grid,
  .kb-topics-head,
  .kb-featured { grid-template-columns: 1fr; }
  .kb-hub-hero .knowledge-hero-copy {
    text-align: center;
    margin-inline: auto;
  }
  .kb-hub-hero .knowledge-hero-copy h1,
  .kb-hub-hero .knowledge-hero-copy .lead {
    margin-inline: auto;
  }
  .kb-hub-hero .knowledge-hero-actions,
  .kb-hero-stats {
    justify-content: center;
  }
  .kb-hub-visual {
    max-width: 620px;
    margin-inline: auto;
  }
  .kb-topics-head {
    text-align: center;
  }
  .kb-topics-head .section-title {
    margin-inline: auto;
  }
  .kb-topic-note {
    max-width: 680px;
    margin-inline: auto;
    padding-left: 0;
    padding-top: 1.3rem;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .kb-topic-card,
  .kb-topic-card--wide {
    grid-column: span 6;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .kb-topic-card--wide .kb-topic-visual {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .kb-featured-visual { max-width: 560px; }
  .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-hero-grid { grid-template-columns: 1fr; }
  .article-visual { max-width: 560px; }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .article-toc {
    position: static;
    max-width: 640px;
  }
}
@media (max-width: 760px) {
  .kb-hub-hero {
    padding-block: 48px 28px;
  }
  .kb-hub-hero .knowledge-hero-copy h1 {
    font-size: clamp(2.65rem, 14vw, 4.35rem);
  }
  .kb-start-grid,
  .kb-final-callout {
    grid-template-columns: 1fr;
  }
  .kb-topic-grid {
    grid-template-columns: 1fr;
  }
  .kb-topic-card,
  .kb-topic-card--wide {
    grid-column: 1;
  }
  .kb-topic-visual,
  .kb-topic-visual img {
    min-height: 210px;
  }
  .kb-final-callout .btn {
    width: 100%;
    justify-content: center;
  }
  .kb-grid { grid-template-columns: 1fr; }
  .kb-cat-head { flex-direction: column; align-items: flex-start; gap: .1rem; }
  .kb-featured-actions .btn { width: 100%; justify-content: center; }
  .article-hero h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .article-body { font-size: 1rem; }
  .article-table { min-width: 480px; }
}

/* ---------- Podstrony: rasy i kontakt ---------- */
.subpage-main {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(214, 193, 163, .22), transparent 34%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.subpage .site-header {
  background: rgba(255, 255, 255, .94);
}

.subpage-hero {
  padding: clamp(92px, 10vw, 152px) 0 clamp(54px, 7vw, 96px);
}

.subpage-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

.subpage-eyebrow {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  line-height: 1;
  color: var(--graphite);
  margin-bottom: .5rem;
}

.subpage-title {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-head);
  font-size: clamp(3.1rem, 6.4vw, 6.6rem);
  line-height: .94;
  letter-spacing: 0;
  color: var(--graphite);
}

.subpage-lead {
  max-width: 690px;
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.85;
  color: var(--muted);
}

.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: clamp(26px, 3.4vw, 42px);
}

.subpage-hero-media {
  position: relative;
  margin: 0;
}

.subpage-hero-media::before {
  content: "";
  position: absolute;
  inset: -8% 8% 18% -10%;
  border-radius: 999px;
  background: rgba(214, 193, 163, .20);
  filter: blur(22px);
  z-index: 0;
}

.subpage-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
  border: 1px solid rgba(214, 193, 163, .55);
  box-shadow: 0 34px 90px rgba(36, 34, 29, .14);
}

.subpage-floating-note {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 2vw, 28px);
  bottom: clamp(18px, 2vw, 28px);
  padding: .75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(214, 193, 163, .55);
  color: var(--graphite);
  font-weight: 900;
  font-size: .9rem;
}

.breed-choice-section,
.breed-detail-section,
.contact-details-section,
.subpage-info-section {
  padding: clamp(52px, 7vw, 96px) 0;
}

.breed-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 36px);
}

.breed-page-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
}

.breed-page-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.breed-page-card-body {
  padding: clamp(22px, 3vw, 34px);
}

.breed-page-card h3,
.breed-copy-panel h2,
.route-card h2,
.contact-panel h2,
.subpage-cta-box h2 {
  margin: .5rem 0 .85rem;
  font-family: var(--font-head);
  color: var(--graphite);
  line-height: 1.05;
}

.breed-page-card h3 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.breed-page-card p,
.breed-copy-panel p,
.route-card p {
  color: var(--muted);
  line-height: 1.75;
}

.breed-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: .5rem .82rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-soft);
  color: var(--graphite);
  font-weight: 900;
  font-size: .86rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.15rem 0 1.35rem;
}

.tag-row span {
  padding: .5rem .75rem;
  border-radius: 999px;
  background: var(--cream-2);
  border: 1px solid var(--border-soft);
  color: var(--graphite);
  font-weight: 800;
  font-size: .82rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--graphite);
  font-weight: 900;
}

.text-link .ico {
  width: 1em;
  height: 1em;
}

.breed-detail-grid,
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 46px);
  align-items: stretch;
}

.breed-copy-panel,
.route-card {
  padding: clamp(26px, 4vw, 46px);
  border-radius: 30px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
}

.breed-copy-panel h2,
.route-card h2,
.contact-panel h2 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.subpage-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.subpage-info-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 26px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
}

.subpage-info-card > .ico {
  width: 2.6rem;
  height: 2.6rem;
  padding: .7rem;
  border-radius: 16px;
  background: var(--cream-2);
  color: var(--graphite);
}

.subpage-info-card h3 {
  margin: 1.05rem 0 .55rem;
  font-family: var(--font-head);
  font-size: 1.45rem;
  color: var(--graphite);
}

.subpage-info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.subpage-final-cta {
  padding: clamp(50px, 7vw, 92px) 0 clamp(70px, 9vw, 116px);
}

.subpage-cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 32px;
  background: var(--graphite);
  color: #fff;
  box-shadow: 0 30px 80px rgba(36, 34, 29, .18);
}

.subpage-cta-box .eyebrow,
.subpage-cta-box h2 {
  color: #fff;
}

.subpage-cta-box h2 {
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 4vw, 4rem);
}

.subpage-cta-box p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.75;
}

.contact-panel {
  padding: clamp(30px, 4.2vw, 54px);
  border-radius: 32px;
  background: var(--graphite);
  color: #fff;
  box-shadow: 0 34px 90px rgba(36, 34, 29, .20);
}

.contact-panel h2 {
  color: #fff;
}

.contact-panel p {
  color: rgba(255, 255, 255, .76);
  line-height: 1.7;
}

.contact-lines {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-lines a,
.contact-lines > span {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
}

.contact-lines .ico {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  padding: .7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
}

.contact-lines small,
.contact-lines em {
  display: block;
  color: rgba(255, 255, 255, .55);
  font-style: normal;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.contact-lines b {
  display: block;
  font-size: 1.18rem;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 1.6rem;
}

.route-list span {
  padding: .9rem 1rem;
  border-radius: 18px;
  background: var(--cream);
  border: 1px solid var(--border-soft);
  color: var(--muted);
}

.route-list b {
  display: block;
  color: var(--graphite);
  font-size: 1.45rem;
  font-family: var(--font-head);
}

@media (max-width: 980px) {
  .subpage-hero-grid,
  .breed-choice-grid,
  .breed-detail-grid,
  .contact-details-grid {
    grid-template-columns: 1fr;
  }

  .subpage-hero-copy {
    text-align: center;
  }

  .subpage-title,
  .subpage-lead {
    margin-inline: auto;
  }

  .subpage-actions {
    justify-content: center;
  }

  .subpage-hero-media {
    max-width: 720px;
    margin-inline: auto;
    width: 100%;
  }

  .subpage-info-grid {
    grid-template-columns: 1fr;
  }

  .subpage-cta-box {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 640px) {
  .subpage-hero {
    padding-top: 76px;
  }

  .subpage-title {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .subpage-photo {
    border-radius: 22px;
  }

  .route-list {
    grid-template-columns: 1fr;
  }

  .subpage-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Galerie: równe ramki i indywidualne kadry ---------- */
.gallery-mosaic.gallery-mosaic--aligned {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  columns: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}
.gallery-mosaic.gallery-mosaic--aligned .mosaic-tile {
  width: 100%;
  min-width: 0;
  margin: 0;
  aspect-ratio: 3 / 4;
  grid-column: auto;
  grid-row: auto;
  align-self: start;
  opacity: 1;
  animation: none;
  transform: none;
  transition: none;
}
.gallery-mosaic--aligned .mosaic-tile img {
  object-position: var(--photo-x, 50%) var(--photo-y, 50%);
  transform: scale(var(--photo-scale, 1));
  transform-origin: var(--photo-x, 50%) var(--photo-y, 50%);
  transition: none;
}
@media (max-width: 980px) {
  .gallery-mosaic.gallery-mosaic--aligned {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .gallery-mosaic.gallery-mosaic--aligned {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .gallery-mosaic--aligned .mosaic-cap {
    padding: 1.5rem .65rem .65rem;
    font-size: .75rem;
    line-height: 1.35;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .gallery-mosaic .mosaic-tile {
    opacity: 1;
    animation: none !important;
  }
  .reviews-strip { scroll-behavior: auto; }
  .scroll-from-left,
  .scroll-from-right {
    opacity: 1;
    transform: none;
  }
}
