:root {
  color-scheme: light;
  --bg: #f6f3ed;
  --paper: #fffdf8;
  --ink: #1d241f;
  --muted: #647064;
  --line: #d8d1c5;
  --forest: #173c2c;
  --forest-2: #245840;
  --gold: #c69a4a;
  --clay: #8e4f35;
  --shadow: 0 22px 60px rgba(31, 39, 34, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: inherit;
}

.site-header,
.admin-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(246, 243, 237, 0.9);
  border-bottom: 1px solid rgba(216, 209, 197, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 13px;
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(23, 60, 44, 0.09);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  background: var(--forest);
  border: 0;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 130px clamp(18px, 6vw, 76px) 72px;
  background: var(--forest);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 28, 21, 0.84) 0%, rgba(13, 28, 21, 0.58) 42%, rgba(13, 28, 21, 0.16) 100%),
    linear-gradient(0deg, rgba(13, 28, 21, 0.72) 0%, rgba(13, 28, 21, 0) 48%);
}

.hero-content {
  position: relative;
  max-width: 760px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 6.3rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 630px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--forest);
}

.hero .button-primary {
  color: var(--forest);
  background: #fff;
}

.button-secondary {
  color: var(--forest);
  background: transparent;
  border-color: rgba(23, 60, 44, 0.32);
}

.hero .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0;
}

.intro,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.section h2,
.admin-panel h1,
.admin-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fact {
  min-height: 92px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(31, 39, 34, 0.06);
  font-weight: 800;
}

.dog-grid {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  gap: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.dog-card,
.gallery-item,
.contact-card,
.news-item,
.pedigree-item {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(31, 39, 34, 0.08);
}

.dog-slideshow {
  position: relative;
  overflow: hidden;
  background: #d8d1c5;
}

.dog-slides {
  position: relative;
  aspect-ratio: 16 / 10;
}

.dog-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition: opacity 220ms ease;
}

.dog-slide.is-active {
  opacity: 1;
}

.dog-slide-control {
  position: absolute;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: rgba(13, 28, 21, 0.7);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.dog-slide-control.prev {
  left: 12px;
}

.dog-slide-control.next {
  right: 12px;
}

.dog-slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.dog-slide-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.58);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.dog-slide-dots button.is-active {
  background: #fff;
}

.dog-card-content {
  padding: 18px;
}

.dog-card h3,
.news-item h3 {
  margin: 0;
  font-size: 1.25rem;
}

.dog-card p,
.news-item time {
  display: block;
  margin: 6px 0 14px;
  color: var(--clay);
  font-weight: 800;
}

.dog-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.news-band {
  width: 100%;
  max-width: none;
  padding: 76px max(18px, calc((100% - 1160px) / 2));
  background: #e9e1d4;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-item {
  padding: 22px;
}

.news-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.gallery-main {
  background:
    linear-gradient(180deg, rgba(23, 60, 44, 0.09), rgba(23, 60, 44, 0) 420px),
    var(--bg);
}

.stats-main {
  background:
    linear-gradient(180deg, rgba(142, 79, 53, 0.1), rgba(142, 79, 53, 0) 420px),
    var(--bg);
}

.stats-hero {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 28px;
}

.stats-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.stats-hero p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.stats-detail {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(31, 39, 34, 0.08);
}

.stat-card {
  min-height: 168px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 22px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.9;
}

.stats-detail {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.stats-detail h2 {
  max-width: 760px;
}

.stats-detail time {
  flex: 0 0 auto;
  color: var(--clay);
  font-weight: 900;
}

.gallery-intro {
  width: min(1160px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin: 0 auto;
  padding: 58px 0 38px;
}

.gallery-intro-copy h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.gallery-intro-copy p:not(.section-kicker) {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
}

.gallery-feature {
  min-height: 360px;
}

.gallery-feature-button {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  padding: 0;
  background: var(--forest);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-feature-button img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-feature-button:hover img {
  transform: scale(1.035);
}

.gallery-feature-button span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 11px 13px;
  color: #fff;
  background: rgba(13, 28, 21, 0.72);
  border-radius: var(--radius);
  font-weight: 800;
  text-align: left;
}

.gallery-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.gallery-toolbar h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.gallery-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-filters button {
  min-height: 40px;
  padding: 9px 13px;
  color: var(--forest);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.gallery-filters button.is-active {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.gallery-item {
  position: relative;
  padding: 0;
  cursor: pointer;
  min-height: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-item.is-wide {
  grid-column: span 2;
}

.gallery-item.is-wide img {
  aspect-ratio: 8 / 5;
}

.page-offset {
  padding-top: 84px;
}

.gallery-page h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(13, 28, 21, 0.72);
  border-radius: var(--radius);
}

.gallery-item figcaption span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-item figcaption strong {
  font-weight: 800;
}

.contact-card {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 24px;
  font-style: normal;
}

.contact-card a {
  color: var(--forest);
  font-weight: 800;
}

.pedigree-list {
  display: grid;
  gap: 14px;
}

.pedigree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.pedigree-item h3 {
  margin: 0 0 6px;
}

.pedigree-item p {
  margin: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: #fff;
  background: var(--forest);
}

.footer a {
  color: #fff;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.footer-links a {
  font-weight: 800;
}

.lightbox {
  width: min(940px, calc(100% - 28px));
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(13, 28, 21, 0.78);
}

.lightbox button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(13, 28, 21, 0.76);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #111;
}

.lightbox p {
  margin: 0;
  padding: 14px 18px 18px;
  font-weight: 800;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 86svh;
    padding: 116px 18px 46px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(13, 28, 21, 0.86) 0%, rgba(13, 28, 21, 0.58) 62%, rgba(13, 28, 21, 0.18) 100%);
  }

  .intro,
  .contact-section,
  .dog-grid,
  .news-list,
  .gallery-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .gallery-intro {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .stats-hero {
    padding-top: 38px;
  }

  .gallery-feature,
  .gallery-feature-button,
  .gallery-feature-button img {
    min-height: 280px;
  }

  .gallery-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .gallery-item.is-wide {
    grid-column: span 1;
  }

  .gallery-item.is-wide img,
  .gallery-item img {
    aspect-ratio: 4 / 3;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading {
    display: block;
  }

  .pedigree-item {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-detail {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand strong {
    max-width: 210px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .gallery-intro-copy h1 {
    font-size: 3.1rem;
  }

  .gallery-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .admin-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 0;
  }
}
