
:root {
  --bg: #f7f3ee;
  --bg-soft: #fbf8f4;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-2: #f4e6d6;
  --text: #231815;
  --muted: #685750;
  --primary: #d97745;
  --primary-strong: #b85d31;
  --accent: #f5c768;
  --line: rgba(35, 24, 21, 0.08);
  --shadow: 0 18px 50px rgba(52, 34, 28, 0.10);
  --shadow-soft: 0 10px 24px rgba(52, 34, 28, 0.08);
  --radius: 24px;
  --radius-lg: 34px;
  --max: 1200px;
}

html[data-theme="dark"] {
  --bg: #0f0d12;
  --bg-soft: #15121a;
  --surface: rgba(26, 23, 33, 0.72);
  --surface-strong: #1b1722;
  --surface-2: #241d2c;
  --text: #f6efe8;
  --muted: #b9a9a0;
  --primary: #ffab73;
  --primary-strong: #ff8b53;
  --accent: #f7cf74;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(245, 199, 104, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(217, 119, 69, 0.12), transparent 22%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg-soft) 84%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.nav-side { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links a, .theme-toggle {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active, .theme-toggle:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
.theme-toggle { background: transparent; cursor: pointer; }

.hero { padding: 80px 0 44px; }
.hero-grid, .grid-2, .feature-grid { display: grid; gap: 28px; }
.hero-grid { grid-template-columns: 1.12fr 0.88fr; align-items: stretch; }
.grid-2, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .tips-grid, .stats-grid, .club-perks, .gallery-grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tips-grid, .club-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-card, .card, .gallery-item, .table-wrap, .feature-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.hero-card, .card, .feature-banner, .gallery-item { overflow: hidden; }
.hero-card { padding: 42px; }
.card { padding: 24px; }
.section { padding: 28px 0; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom: 24px; }
.kicker, .inline-chip, .badge, .rank, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-size: 13px; font-weight: 800;
}
.kicker, .eyebrow { padding: 9px 14px; background: color-mix(in srgb, var(--surface-2) 85%, transparent); color: var(--primary-strong); }
.inline-chip, .badge, .rank { padding: 8px 12px; background: color-mix(in srgb, var(--surface-2) 82%, transparent); }
.hero h1, h1 { margin: 18px 0 14px; font-size: clamp(34px, 5vw, 62px); line-height: 0.98; }
h2 { margin: 0 0 14px; font-size: clamp(24px, 4vw, 34px); }
h3 { margin: 0 0 10px; }
.hero p, .card p, .lead, .section p.lead, .tip-list, .table td, .highlight-box, .timeline p, .mini-note, .meta span, .small, li { color: var(--muted); }
.hero-copy { max-width: 60ch; }
.cta-row { display:flex; flex-wrap:wrap; gap:14px; margin-top: 26px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:14px 20px; border-radius:16px; font-weight:800;
  border:1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-primary { color:white; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); }
.btn-secondary { background: color-mix(in srgb, var(--surface-2) 82%, transparent); border-color: var(--line); }
.hero-metrics { display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; margin-top:22px; }
.metric { padding:14px; border-radius:18px; background: color-mix(in srgb, var(--surface-strong) 72%, transparent); border: 1px solid var(--line); }
.metric strong { display:block; font-size:24px; line-height:1; margin-bottom:6px; }

.hero-visual { padding: 0; min-height: 540px; position: relative; }
.hero-photo { width:100%; height:100%; min-height:540px; object-fit:cover; }
.hero-photo-wrap { position: relative; }
.hero-photo-wrap::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(12,12,12,0.08), rgba(12,12,12,0.34));
}
.floating-pill {
  position:absolute; z-index:2; padding:10px 14px; border-radius:999px; background: rgba(255,255,255,0.7); backdrop-filter: blur(12px);
  border:1px solid rgba(255,255,255,0.3); box-shadow: var(--shadow-soft); font-weight:800; color:#1e1715;
}
.pill-a { top:22px; left:22px; }
.pill-b { top:22px; right:22px; }
.pill-c { bottom:22px; left:22px; }

.photo-card { padding:0; }
.card-photo, .gallery-photo, .wide-photo {
  width:100%; object-fit:cover; display:block;
}
.card-photo { height: 240px; }
.gallery-photo { height: 280px; transition: transform 0.35s ease; }
.gallery-item:hover .gallery-photo { transform: scale(1.05); }
.gallery-caption, .card-body { padding: 18px 20px 20px; }
.photo-strip { display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; }
.wide-photo { height: 100%; min-height: 320px; border-radius: var(--radius); }
.breed-card { padding:0; }
.breed-content { padding:18px 20px 20px; }
.meta { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.meta span { padding:8px 10px; border-radius:999px; background: color-mix(in srgb, var(--surface-2) 82%, transparent); border:1px solid var(--line); font-size:13px; }
.breed-facts { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.fact-box, .highlight-box { padding: 18px; border-radius: 20px; background: color-mix(in srgb, var(--surface-strong) 70%, transparent); border:1px solid var(--line); }
.tip-list { margin: 0; padding-left: 18px; }
.timeline { display:grid; gap: 12px; }
.timeline-item { display:flex; gap:12px; align-items:flex-start; }
.rank { min-width: 36px; justify-content:center; }
.quote { font-size: 20px; line-height: 1.5; }
.notice { margin-top: 14px; font-weight:700; }
label { display:block; margin-bottom: 8px; font-weight:700; }
input, select, textarea {
  width:100%; padding: 14px 16px; border-radius: 16px; border:1px solid var(--line); background: color-mix(in srgb, var(--surface-strong) 78%, transparent); color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
.form-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:16px; }
.full { grid-column: 1 / -1; }
.footer { padding: 20px 0 36px; }
.footer-grid { display:flex; align-items:center; justify-content:space-between; gap:20px; border-top:1px solid var(--line); padding-top: 22px; }
.mini-links { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:10px; }
.small { font-size: 14px; }

@media (max-width: 980px) {
  .hero-grid, .grid-2, .feature-grid, .grid-3, .tips-grid, .stats-grid, .gallery-grid, .club-perks, .breed-facts, .photo-strip { grid-template-columns: 1fr; }
  .hero-card { padding: 28px; }
  .hero h1, h1 { max-width: none; }
  .hero-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav, .nav-side, .section-heading, .footer-grid { flex-direction: column; align-items: stretch; }
  .nav-links { justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-photo { height: 240px; }
  .card-photo { height: 220px; }
}


/* Pinterest-style masonry */
.masonry { column-count: 3; column-gap: 20px; }
.masonry-item { break-inside: avoid; margin: 0 0 20px; }
.masonry .photo-card, .masonry .card { display: block; }
.masonry .card-photo.tall { height: 320px; }
.masonry .card-photo.medium { height: 260px; }
.masonry .card-photo.short { height: 220px; }
.article-layout { display:grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.article-page .card + .card { margin-top: 20px; }
.sidebar-list { display:grid; gap: 12px; }
.sidebar-list a { display:block; padding: 12px 14px; border:1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface-strong) 72%, transparent); font-weight:700; }
.sidebar-list a:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.prose p { margin: 0 0 16px; color: var(--muted); }
.prose h2 { margin-top: 8px; }
.hero-article { min-height: 440px; }
.card-tight { padding: 18px; }
.card-title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.breeds-listing { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:20px; }
.nowrap { white-space: nowrap; }
.hero-photo.contain { object-fit: cover; object-position: center; }
.gallery-masonry img { width:100%; border-radius: 22px; margin-bottom: 16px; box-shadow: var(--shadow); border:1px solid var(--line); }
.gallery-masonry .h1{ height:220px; object-fit:cover; }
.gallery-masonry .h2{ height:300px; object-fit:cover; }
.gallery-masonry .h3{ height:380px; object-fit:cover; }
@media (max-width: 1100px) { .article-layout { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .masonry { column-count: 2; } .breeds-listing{grid-template-columns:1fr 1fr;} }
@media (max-width: 760px) { .masonry { column-count: 1; } .breeds-listing{grid-template-columns:1fr;} }


.floating-pill { text-decoration: none; transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.floating-pill:hover { transform: translateY(-2px); background: rgba(255,255,255,0.92); }

.gallery-masonry {
  column-count: 4;
  column-gap: 18px;
}
.gallery-pin {
  display: block;
  break-inside: avoid;
  position: relative;
  margin: 0 0 18px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}
.gallery-pin::after {
  content: "Открыть";
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.66);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-pin:hover::after { opacity: 1; transform: translateY(0); }
.gallery-pin img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-pin:hover img { transform: scale(1.03); }
.gallery-pin.h1 img { height: 240px; }
.gallery-pin.h2 img { height: 320px; }
.gallery-pin.h3 img { height: 420px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(10, 10, 14, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-image {
  max-width: min(1200px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  background: #111;
}
.lightbox-caption { margin: 0; color: rgba(255,255,255,0.86); font-size: 15px; }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.24); }

@media (max-width: 1100px) {
  .gallery-masonry { column-count: 3; }
}
@media (max-width: 760px) {
  .gallery-masonry { column-count: 2; column-gap: 14px; }
  .gallery-pin { margin-bottom: 14px; }
  .gallery-pin.h1 img, .gallery-pin.h2 img, .gallery-pin.h3 img { height: auto; }
  .lightbox { padding: 16px; }
}
@media (max-width: 520px) {
  .gallery-masonry { column-count: 1; }
}


.breed-video-card {
  margin: 22px 0 0;
  padding: 20px;
}
.breed-video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.breed-video-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}
.breed-video-note {
  margin: 0;
  color: var(--muted);
}
.breed-video {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 76%, transparent), color-mix(in srgb, var(--surface-strong) 90%, transparent));
  border: 1px solid var(--line);
  min-height: 260px;
}
.breed-video::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.breed-video > * {
  position: absolute;
  inset: 0;
}
.rutube-frame {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.video-placeholder-inner {
  max-width: 520px;
}
.video-placeholder .inline-chip {
  margin-bottom: 14px;
}
.video-placeholder h3 {
  margin-bottom: 10px;
}
.video-placeholder p {
  margin: 0;
  color: var(--muted);
}
.progressive-image {
  filter: blur(18px);
  transform: scale(1.025);
  opacity: 0.9;
  transition: filter 0.45s ease, transform 0.45s ease, opacity 0.45s ease;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.progressive-image.is-loaded {
  filter: blur(0);
  transform: scale(1);
  opacity: 1;
}


.feature-grid-articles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.article-teaser { padding: 0; }
.btn-inline { margin-top: 12px; }
.rutube-launch { position:absolute; inset:0; border:0; padding:0; background:transparent; cursor:pointer; overflow:hidden; }
.rutube-poster, .rutube-poster-fallback { width:100%; height:100%; object-fit:cover; display:block; }
.rutube-poster-fallback { background: linear-gradient(135deg, rgba(64,55,84,.95), rgba(23,27,35,.98)); }
.rutube-overlay { position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.45)); }
.rutube-play-button { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:88px; height:62px; border-radius:18px; background: rgba(235, 51, 72, 0.95); display:grid; place-items:center; box-shadow: 0 18px 34px rgba(0,0,0,.28); transition: transform .25s ease, background .25s ease; }
.rutube-play-triangle { width:0; height:0; border-left:22px solid #fff; border-top:14px solid transparent; border-bottom:14px solid transparent; margin-left:4px; }
.rutube-launch:hover .rutube-play-button { transform:translate(-50%,-50%) scale(1.06); background: rgba(245, 63, 84, 1); }
.rutube-play-caption { position:absolute; left:22px; right:22px; bottom:20px; display:grid; gap:4px; text-align:left; color:#fff; }
.rutube-play-caption strong { font-size:18px; }
.rutube-play-caption span { color: rgba(255,255,255,.84); font-size:14px; }
@media (max-width: 1100px) { .feature-grid-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .feature-grid-articles { grid-template-columns: 1fr; } .rutube-play-button { width:74px; height:54px; } }

.search-panel{margin:0 0 18px}.search-input{width:100%;padding:16px 18px;border-radius:18px;border:1px solid var(--line);background:color-mix(in srgb,var(--surface-strong) 78%,transparent);box-shadow:var(--shadow-soft)}.search-status{margin:10px 0 0;min-height:22px}.search-card.is-hidden{display:none!important}.compare-table{width:100%;border-collapse:collapse}.compare-table th,.compare-table td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}.compare-table th{color:var(--text);font-size:14px}.article-intro-card{margin-top:20px}.editor-quote{margin:18px 0 0;padding:18px 20px;border-left:4px solid var(--primary);background:color-mix(in srgb,var(--surface-2) 70%,transparent);border-radius:18px;color:var(--text)}.breed-stats{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}.breed-stats li{padding:10px 0;border-bottom:1px solid var(--line)}.editorial-grid{margin-top:18px}@media (max-width:760px){.breed-stats{grid-template-columns:1fr}.compare-table{font-size:14px}}
/* UX unification & scalable design system */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --content-narrow: 760px;
  --content-readable: 68ch;
  --focus: 0 0 0 4px color-mix(in srgb, var(--primary) 28%, transparent);
  --ease: cubic-bezier(.2,.8,.2,1);
}

html { font-size: 16px; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.skip-link {
  position: fixed;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 2000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); outline: none; box-shadow: var(--shadow-soft), var(--focus); }
:focus-visible { outline: none; box-shadow: var(--focus); }

.container { width: min(var(--max), calc(100% - clamp(32px, 5vw, 72px))); }
.section { padding: clamp(32px, 5vw, 64px) 0; }
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 5vw, 56px); }
.hero-card { padding: clamp(24px, 4vw, 48px); }
.card { padding: clamp(18px, 2.2vw, 28px); }
.card.photo-card, .article-teaser, .breed-card { padding: 0; }

h1, .hero h1 { letter-spacing: -0.045em; line-height: .96; max-width: 12.5em; }
h2 { letter-spacing: -0.025em; line-height: 1.08; }
h3 { line-height: 1.18; letter-spacing: -0.012em; }
p { margin-top: 0; }
.prose { max-width: var(--content-readable); }
.prose p { font-size: 1.03rem; }
.lead, .hero-copy { font-size: clamp(1rem, 1.25vw, 1.125rem); }

.topbar { isolation: isolate; }
.nav { min-height: 74px; }
.logo { flex-shrink: 0; }
.nav-side { gap: var(--space-3); }
.nav-links a, .theme-toggle, .nav-toggle { min-height: 44px; }
.nav-links a.active { color: var(--text); background: color-mix(in srgb, var(--surface-2) 78%, transparent); border-color: var(--line); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
body.nav-open .nav-toggle-icon { background: transparent; }
body.nav-open .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

.card, .hero-card, .gallery-item, .fact-box, .highlight-box, .table-wrap, .sidebar-list a, .metric {
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
a.card:hover, .card:has(a:hover), .breed-card:hover, .article-teaser:hover, .gallery-item:hover, .fact-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(52, 34, 28, 0.14);
  border-color: color-mix(in srgb, var(--primary) 24%, var(--line));
}
html[data-theme="dark"] a.card:hover,
html[data-theme="dark"] .card:has(a:hover),
html[data-theme="dark"] .breed-card:hover,
html[data-theme="dark"] .article-teaser:hover,
html[data-theme="dark"] .gallery-item:hover,
html[data-theme="dark"] .fact-box:hover {
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.btn, .inline-chip, .badge, .kicker, .eyebrow, .rank, .meta span { white-space: normal; }
.btn { min-height: 48px; }
.btn-primary { box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 28%, transparent); }
.btn:active { transform: translateY(0); }
.card-body, .gallery-caption, .breed-content { padding: clamp(18px, 2.4vw, 24px); }
.card-photo { aspect-ratio: 16 / 10; height: auto; }
.masonry .card-photo.tall { aspect-ratio: 4 / 5; height: auto; }
.masonry .card-photo.medium { aspect-ratio: 1 / 1; height: auto; }
.masonry .card-photo.short { aspect-ratio: 16 / 10; height: auto; }
.hero-photo, .hero-visual { min-height: clamp(360px, 44vw, 540px); }

.search-panel { position: relative; }
.search-input:focus { box-shadow: var(--focus), var(--shadow-soft); }
.search-status { color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.compare-table { min-width: 720px; }

.footer { padding-top: clamp(24px, 5vw, 48px); }
.footer-grid { align-items: flex-start; }
.footer .small { max-width: 54ch; }

@media (max-width: 980px) {
  .nav { align-items: flex-start; }
  .nav-side { width: auto; margin-left: auto; }
  .hero-grid { gap: var(--space-5); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .nav { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .nav-side { flex-direction: row; align-items: center; justify-content: flex-end; width: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    order: 10;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
    padding: var(--space-3) 0 var(--space-1);
  }
  body.nav-open .nav-links { display: grid; }
  .nav-links a { justify-content: center; text-align: center; background: color-mix(in srgb, var(--surface-strong) 64%, transparent); border-color: var(--line); }
  .theme-toggle { padding-inline: 12px; }
  .section-heading { align-items: flex-start; }
  .cta-row, .hero-metrics { gap: var(--space-3); }
  .cta-row .btn { width: 100%; }
  .hero-card { border-radius: 26px; }
  .feature-grid-articles, .grid-2, .grid-3, .tips-grid, .gallery-grid, .club-perks, .breed-facts, .stats-grid { gap: var(--space-4); }
  .footer-grid { gap: var(--space-6); }
  .mini-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .logo-mark { width: 40px; height: 40px; border-radius: 14px; }
  .logo span:last-child { max-width: 150px; }
  .nav-side { width: 100%; justify-content: space-between; }
  .nav-links { grid-template-columns: 1fr; }
  .hero h1, h1 { font-size: clamp(32px, 13vw, 44px); }
  .floating-pill { position: static; margin: 10px 0 0 10px; display: inline-flex; }
  .hero-photo-wrap::after { background: linear-gradient(180deg, rgba(12,12,12,0.08), rgba(12,12,12,0.22)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .progressive-image { filter: none; transform: none; }
}

@media (max-width: 760px) {
  .nav-side { width: 100%; flex-wrap: wrap; }
  .nav-links { flex-basis: 100%; }
}

/* Full-card links for breed listing */
.breed-card[data-card-link] {
  cursor: pointer;
  position: relative;
}
.breed-card[data-card-link] .btn {
  position: relative;
  z-index: 1;
}
.breed-card[data-card-link]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 75%, white);
  outline-offset: 4px;
}


/* Logo and favicon placeholders */
.logo-placeholder {
  width: 160px;
  height: 48px;
  object-fit: contain;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  border: 1px dashed color-mix(in srgb, var(--primary) 55%, var(--line));
  padding: 4px;
}
.logo-text-fallback { font-weight: 800; }
.footer-logo-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--primary) 55%, var(--line));
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  color: var(--muted);
  font-size: 13px;
}
.care-nav-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:20px; }
.checklist { display:grid; gap:10px; padding-left:0; list-style:none; }
.checklist li { padding: 12px 14px; border:1px solid var(--line); border-radius:16px; background: color-mix(in srgb, var(--surface-strong) 70%, transparent); }
.note-box { padding:18px; border-radius:20px; background: color-mix(in srgb, var(--surface-2) 72%, transparent); border:1px solid var(--line); color: var(--muted); }
.care-table { width:100%; border-collapse: collapse; overflow:hidden; border-radius:20px; }
.care-table th, .care-table td { padding:14px 16px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.care-table th { color: var(--text); background: color-mix(in srgb, var(--surface-2) 82%, transparent); }
@media (max-width: 980px) { .care-nav-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .logo-placeholder { width: 140px; } }
