/* ===========================================================
   Шпицы Никки и Лакки — стили сайта
   =========================================================== */

:root {
  --cream: #fff8ee;
  --cream-2: #fff0dc;
  --paper: #ffffff;
  --tangerine: #f2762e;
  --tangerine-dark: #d85f1c;
  --sun: #ffb84d;
  --cocoa: #4a3428;
  --cocoa-soft: #7a6355;
  --sky: #3e7cb1;
  --sky-dark: #2f6390;
  --mint: #4caf7d;
  --line: #f0ddc4;
  --shadow: 0 12px 30px -12px rgba(74, 52, 40, 0.25);
  --shadow-sm: 0 6px 16px -8px rgba(74, 52, 40, 0.25);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --gap: clamp(1rem, 2vw, 2rem);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: ui-rounded, "Segoe UI Rounded", "SF Pro Rounded", "Nunito", "Segoe UI",
    Verdana, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--cocoa);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--cocoa-soft); }

.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tangerine-dark);
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35em 1em;
  margin-bottom: 0.9em;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--tangerine);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }

.btn.btn-secondary {
  --btn-bg: var(--paper);
  --btn-fg: var(--cocoa);
  border: 2px solid var(--line);
  box-shadow: none;
}
.btn.btn-secondary:hover { border-color: var(--tangerine); }

.btn.btn-sky { --btn-bg: var(--sky); }
.btn.btn-block { width: 100%; }
.btn.btn-sm { padding: 0.6em 1.1em; font-size: 0.9rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 238, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  font-weight: 800;
  color: var(--cocoa);
  font-size: 1.05rem;
}
.brand .paw { font-size: 1.5rem; }
.brand small {
  display: block;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--cocoa-soft);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cocoa-soft);
  padding: 0.4em 0.1em;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--tangerine-dark); border-color: var(--tangerine); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cocoa);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 0.7em 0.2em; border-bottom: 1px solid var(--line); }
  .burger { display: inline-flex; }
  .header-actions .btn span.long { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin: 1.4em 0 1.8em;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1em;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8em; }

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}
.hero-media .blob {
  position: absolute;
  inset: 0.5rem;
  background: linear-gradient(160deg, var(--sun), var(--tangerine));
  border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%;
  filter: blur(6px);
  transform: rotate(-4deg) scale(1.03);
  z-index: 0;
  opacity: 0.9;
}
.hero-media img {
  position: relative;
  z-index: 1;
  width: min(400px, 90%);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 6px solid var(--paper);
  transform: rotate(-2deg);
}

.paw-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.paw-field span {
  position: absolute;
  opacity: 0.16;
  font-size: 2.4rem;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

/* ---------- Feature grid (о породе) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--gap);
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card .icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--cream-2);
  margin-bottom: 0.8rem;
}
.feature-card h3 { margin-bottom: 0.35em; font-size: 1.05rem; }
.feature-card p { margin: 0; font-size: 0.92rem; }

/* ---------- Parents ---------- */

.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 760px) {
  .parents-grid { grid-template-columns: 1fr; }
}

.parent-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.parent-card .gallery-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.8rem;
  background: var(--cream-2);
  cursor: pointer;
  position: relative;
}
.parent-card .gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.3s ease;
}
.parent-card .gallery-main:hover img { transform: scale(1.04); }

.parent-name {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  margin-bottom: 0.2em;
}
.parent-name .role,
.role {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sky-dark);
  background: #e8f1f8;
  border-radius: 999px;
  padding: 0.25em 0.75em;
}
.parent-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin: 0.6em 0 0;
}
.parent-traits li {
  list-style: none;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--cream-2);
  border-radius: 999px;
  padding: 0.3em 0.8em;
  color: var(--tangerine-dark);
}

/* ---------- Puppies ---------- */

.puppy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.puppy-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: pointer;
}
.puppy-card:hover { transform: translateY(-5px) rotate(-0.3deg); box-shadow: var(--shadow); }

.puppy-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--cream-2);
  cursor: pointer;
  overflow: hidden;
}
.puppy-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}
.puppy-card:hover .puppy-media img { transform: scale(1.05); }

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-badge span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--tangerine);
  box-shadow: var(--shadow-sm);
}

.status-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  color: #fff;
  background: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-badge.girl { background: #d9639b; }
.status-badge.sold { background: #9a9188; }

.puppy-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.puppy-body h3 { margin-bottom: 0; }
.puppy-tag { font-size: 0.85rem; font-weight: 700; color: var(--tangerine-dark); margin: 0; }

.link-more {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  margin: 0.1rem 0 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sky-dark);
  cursor: pointer;
}
.link-more:hover { text-decoration: underline; }

.puppy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
}
.price-tag { font-weight: 800; font-size: 1.05rem; color: var(--cocoa); white-space: nowrap; }
.price-tag small { display: block; font-weight: 600; font-size: 0.7rem; color: var(--cocoa-soft); }

.puppy-card.is-sold { filter: grayscale(0.85); opacity: 0.82; }
.puppy-card.is-sold:hover { transform: none; box-shadow: var(--shadow-sm); }

/* ---------- Pricing ---------- */

.price-card {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(160deg, #fff, var(--cream-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.price-card .amount {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 900;
  color: var(--tangerine-dark);
  margin: 0.1em 0 0.2em;
}
.price-card .amount span { font-size: 0.4em; font-weight: 800; color: var(--cocoa-soft); }

.terms-list {
  list-style: none;
  margin: 1.4em 0 1.8em;
  padding: 0;
  display: grid;
  gap: 0.7em;
  text-align: left;
}
.terms-list li {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  font-weight: 600;
  color: var(--cocoa);
}
.terms-list li::before {
  content: "🐾";
  flex-shrink: 0;
}

/* ---------- Contract ---------- */

.contract-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 700px) {
  .contract-card { flex-direction: column; text-align: center; }
}
.contract-card .icon {
  font-size: 2.6rem;
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contract-actions { display: flex; flex-wrap: wrap; gap: 0.7em; margin-top: 0.8em; }

/* ---------- Contact ---------- */

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(160deg, var(--sky), var(--sky-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow);
}
.contact-card h2 { color: #fff; }
.contact-card p { color: rgba(255, 255, 255, 0.9); }
.contact-card .btn { --btn-bg: #fff; --btn-fg: var(--sky-dark); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.5rem 0 3rem;
  text-align: center;
  color: var(--cocoa-soft);
  font-size: 0.85rem;
}
.site-footer p { margin: 0.3em 0; }

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 248, 238, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: none;
}
@media (max-width: 640px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 4.2rem; }
}

/* ---------- Profile modal (родители и щенки) ---------- */

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem) 1rem;
  background: rgba(30, 20, 12, 0.82);
  overflow-y: auto;
}
.profile-modal.is-open { display: flex; }

.profile-panel {
  position: relative;
  width: 100%;
  max-width: 740px;
  margin: auto 0;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--cocoa);
  box-shadow: var(--shadow-sm);
}

.profile-gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #000;
}
.profile-gallery-stage,
.profile-gallery-stage img,
.profile-gallery-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.profile-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--cocoa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.profile-nav:hover { background: #fff; }
.profile-nav.prev { left: 0.6rem; }
.profile-nav.next { right: 0.6rem; }

.profile-counter {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--cocoa);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.3em 0.9em;
  border-radius: 999px;
}

.profile-body { padding: clamp(1.25rem, 4vw, 2rem); }

.profile-head {
  display: flex;
  align-items: center;
  gap: 0.7em;
  flex-wrap: wrap;
  margin-bottom: 0.2em;
}
.profile-head .status-badge,
.profile-head .role {
  position: static;
}
.profile-head h3 { margin: 0; }

.profile-tag { color: var(--tangerine-dark); font-weight: 800; margin: 0 0 0.8em; }

.profile-description p { margin: 0 0 0.9em; }
.profile-bullets { list-style: none; margin: 0 0 0.9em; padding: 0; display: grid; gap: 0.5em; }
.profile-bullets li { font-weight: 600; color: var(--cocoa); }

.profile-pedigree {
  background: var(--cream-2);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin: 0 0 1em;
}
.profile-pedigree dt {
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cocoa-soft);
  margin-top: 0.7em;
}
.profile-pedigree dt:first-child { margin-top: 0; }
.profile-pedigree dd { margin: 0.1em 0 0; }

.profile-links-block { margin: 0 0 1em; }
.profile-links-block h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cocoa-soft);
  margin: 0 0 0.5em;
}
.profile-links { display: flex; flex-wrap: wrap; gap: 0.6em; }

.profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
}

/* ---------- Misc ---------- */

.section-alt {
  background: var(--cream-2);
  border-radius: 40px;
  margin: 0 clamp(0.5rem, 3vw, 1.5rem);
}

.confetti-burst {
  position: fixed;
  pointer-events: none;
  font-size: 1.4rem;
  z-index: 200;
  animation: burst 0.9s ease-out forwards;
}
@keyframes burst {
  0% { transform: translate(0, 0) scale(0.6); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.1); opacity: 0; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: #fff;
  padding: 0.6em 1em;
  border-radius: 8px;
}
