:root {
  --bg: #fbf7f3;
  --paper: #ffffff;
  --tint: #f5ebe1;
  --ink: #2d2523;
  --muted: #796b62;
  --line: #e9ded3;
  --accent: #d9693f;
  --accent-dark: #b4522c;
  --radius: 20px;
  --shadow: 0 18px 45px rgba(60, 38, 25, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.18; letter-spacing: -.02em; }
p { margin: 0 0 14px; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 243, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent);
  font-size: 19px;
  line-height: 1;
}
.brand-dot { color: var(--accent); }
.nav-links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217, 105, 63, .28); }
.btn span { font-size: 19px; line-height: 1; }
.btn-small { padding: 9px 16px; font-size: 14px; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--paper); color: var(--accent); box-shadow: none; }

/* Hero */
.hero {
  position: relative;
  padding: 66px 0 52px;
  background:
    radial-gradient(700px 400px at 85% -10%, rgba(217, 105, 63, .14), transparent 70%),
    radial-gradient(500px 350px at 0% 60%, rgba(217, 105, 63, .07), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 100px;
  background: #fbe6d9;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); max-width: 580px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 20px; }
.hero-note { color: var(--muted); font-size: 14px; }
.hero-visual { position: relative; padding: 0 18px 22px 0; }
.hero-photo {
  border-radius: 34px 34px 90px 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--tint);
}
.hero-photo img { width: 100%; height: 430px; object-fit: cover; }
.float-card {
  position: absolute;
  display: grid;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.float-card b { font-size: 15px; }
.float-card span { color: var(--muted); font-size: 12px; }
.float-card-top { top: 30px; left: -14px; transform: rotate(-5deg); }
.float-card-bottom { bottom: -2px; right: -6px; transform: rotate(4deg); }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 26px; color: var(--accent); letter-spacing: -.03em; }
.stat span { font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 78px 0; }
.section-tinted { background: var(--tint); }
.section-head { max-width: 730px; margin: 0 auto 42px; text-align: center; }
.kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 17px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: var(--muted); font-size: 17px; }
.text-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.feature-list { display: grid; gap: 14px; }
.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(60, 38, 25, .05);
}
.feature-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tint);
  font-size: 23px;
}
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* Gallery */
.gallery-grid { columns: 3 280px; column-gap: 18px; }
.gallery-item {
  position: relative;
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: 20px;
  overflow: hidden;
  background: #d9c7b8;
  box-shadow: 0 10px 26px rgba(60, 38, 25, .10);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 42px 18px 16px;
  color: #fff;
  background: linear-gradient(transparent, rgba(25, 17, 14, .78));
  display: flex;
  flex-direction: column;
}
.gallery-item figcaption b { font-size: 16px; }
.gallery-item figcaption span { font-size: 12px; opacity: .85; }
.gallery-hint { text-align: center; color: var(--muted); margin: 26px 0 0; font-size: 14px; }

/* Cats */
.cat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-card img { width: 100%; height: 215px; object-fit: cover; }
.cat-card-body { padding: 18px; }
.cat-card h3 { font-size: 18px; margin-bottom: 6px; }
.cat-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Facts */
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fact-num { display: block; color: var(--accent); font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.fact h3 { font-size: 18px; }
.fact p { margin: 0; color: var(--muted); font-size: 14px; }
.random-fact { margin-top: 30px; text-align: center; }
.random-fact p { margin: 14px auto 0; color: var(--muted); max-width: 640px; }

/* Care */
.care-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.care-card {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(60, 38, 25, .05);
}
.care-icon { font-size: 30px; }
.care-card h3 { margin-top: 10px; font-size: 18px; }
.care-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Credits */
.credit-list {
  columns: 2;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
}
.credit-list li { margin-bottom: 10px; break-inside: avoid; }
.credit-list a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.credit-list a:hover { color: var(--accent); }

/* Footer */
.site-footer { background: var(--ink); color: #f7eee6; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-inner a { color: #f7b28d; text-decoration: none; font-weight: 600; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 16, 13, .94);
  padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; max-width: 100%; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 12px; object-fit: contain; }
.lightbox figcaption { color: #f7eee6; margin-top: 12px; font-size: 15px; }
.lb-close, .lb-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 20px; right: 24px; width: 44px; height: 44px; font-size: 30px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 34px; line-height: 1; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* Responsive */
@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0; padding: 14px 20px 22px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; gap: 12px; }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .nav .btn-small { margin-left: auto; }
  .nav .menu-toggle { margin-left: 0; }
  .hero-grid { gap: 34px; }
  .hero-photo img { height: 360px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .cat-cards, .care-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .wrap { width: min(1120px, 100% - 32px); }
  .hero { padding: 44px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .lead { font-size: 16px; }
  .hero-photo img { height: 320px; }
  .float-card { padding: 9px 13px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 58px 0; }
  .gallery-grid { columns: 2 200px; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; }
  .cat-cards, .care-grid, .facts-grid { grid-template-columns: 1fr; }
  .credit-list { columns: 1; }
  .footer-inner { flex-direction: column; text-align: center; }
  .lightbox { padding: 60px 16px; }
  .lb-nav { width: 40px; height: 40px; font-size: 28px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
