/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'Manrope', sans-serif;
  background: #f5f4f1;
  color: #1d1d1d;
  font-size: 20px;
  line-height: 1.7;
}

/* ================= VARIABLES ================= */

:root {
  --bg: #f5f4f1;
  --text: #1d1d1d;
  --muted: #7a7a7a;
  --line: #dedede;
}

/* ================= HERO ================= */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  padding: 12vh 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  font-size: 20px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 40px;
}

.hero-content p {
  max-width: 520px;
  font-size: 22px;
  color: var(--muted);
}

.hero-bottom {
  margin-top: 56px;
  display: flex;
  gap: 48px;
  align-items: center;
}

.hero-price {
  font-size: 32px;
  letter-spacing: .2em;
}

/* ================= BUTTONS ================= */

.btn-primary,
.btn-secondary {
  padding: 18px 44px;
  border: 1px solid var(--text);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: 16px;
  transition: .3s ease;
  background: transparent;
}

.btn-primary:hover,
.btn-secondary:hover {
  background: var(--text);
  color: #fff;
}

/* ===== PRICE SALE ===== */

.hero-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-old {
  font-size: 18px;
  color: var(--muted);
  text-decoration: line-through;
  letter-spacing: .15em;
}

.price-current {
  font-size: 32px;
  letter-spacing: .2em;
}

/* ================= SECTIONS ================= */

.section {
  padding: 96px 10%;
}

.section-title {
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 56px;
  line-height: 1.2;
  text-align: center;
}

/* ================= VALUE ================= */

.value-grid {
  display: grid;
  grid-template-columns: 42% 48%;
  gap: 10%;
  align-items: center;
}

.value-media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .12);
}

.value-text {
  max-width: 560px;
  margin: 0 auto;
}

.value-text p {
  font-size: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.value-text .lead {
  font-size: 28px;
}

/* ================= PUPPY ================= */

.puppy-carousel {
  max-width: 760px;
  margin: 0 auto 56px;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track.dragging {
  cursor: grabbing;
}

.carousel-track img {
  flex-shrink: 0;
  max-height: 260px;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
  scroll-snap-align: center;
  object-fit: contain;
}

.carousel-hint {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ===== CAROUSEL BUTTONS ===== */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(245, 244, 241, 0.95);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  transition: .25s ease;
}

.carousel-btn:hover {
  background: var(--text);
  color: #fff;
}

.carousel-btn.prev {
  left: -64px;
}

.carousel-btn.next {
  right: -64px;
}

/* ================= META ================= */

.puppy-meta {
  max-width: 560px;
  margin: 0 auto;
}

.puppy-meta div {
  font-size: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.puppy-meta span {
  color: var(--muted);
  margin-right: 14px;
}

/* ================= PROCESS ================= */

.process {
  text-align: center;
}

.process-list {
  max-width: 560px;
  margin: 0 auto 56px;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  counter-increment: step;
  font-size: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.process-list li::before {
  content: counter(step, decimal-leading-zero);
  margin-right: 18px;
  color: var(--muted);
}

.process-video {
  max-width: 900px;
  margin: 56px auto 0;
}

.process-video video {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 18px;
}

.process-caption {
  margin-top: 18px;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ================= CONTACT ================= */

.contact {
  text-align: center;
}

.contact-sub {
  color: var(--muted);
  font-size: 20px;
  margin-bottom: 40px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.contact-copy {
  display: flex;
  justify-content: center;
  gap: 56px;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 40px;
}

.contact-media img {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .15);
}

/* ===== PAGE NAVIGATION ===== */

.page-navigation {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 40px 10%;
  background: #f5f4f1;
}

.page-navigation .btn-primary,
.page-navigation .btn-secondary {
  min-width: 220px;
  text-align: center;
}

/* MOBILE */

@media (max-width: 900px) {

  .page-navigation {
    flex-direction: column;
    gap: 16px;
    padding: 32px 8%;
  }

  .page-navigation .btn-primary,
  .page-navigation .btn-secondary {
    width: 100%;
  }
}

/* ================= FOOTER ================= */

footer {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {

  body {
    font-size: 16px;
  }

  .hero-tag {
    font-size: 14px;
    letter-spacing: .18em;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 30px 8%;
  }

  .hero-content h1 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  .hero-content p {
    font-size: 18px;
    line-height: 1.6;
  }

  .hero-price {
    font-size: 20px;
    letter-spacing: .12em;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 30px;
  }

  .section {
    padding: 48px 8%;
  }

  .price-old {
    font-size: 14px;
  }

  .price-current {
    font-size: 22px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 32px;
    line-height: 1.3;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .value-text p {
    font-size: 17px;
    padding: 16px 0;
  }

  .value-text .lead {
    font-size: 20px;
    font-weight: 600;
  }

  .carousel-track img {
    max-height: 240px;
  }

  .puppy-meta div {
    font-size: 17px;
    padding: 16px 0;
  }

  .process-list li {
    font-size: 17px;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-copy {
    flex-direction: column;
    gap: 12px;
    font-size: 16px;
  }

  .btn-secondary,
  .btn-primary {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    letter-spacing: .18em;
    /* уменьшаем */
    font-size: 14px;
    /* чуть компактнее */
    line-height: 1.5;
    white-space: normal;
    /* разрешаем корректный перенос */
  }

  .carousel-btn {
    display: none;
  }
}

/* ================= DESKTOP LAYOUT FIXES ================= */

@media (min-width: 901px) {

  .puppy-carousel {
    max-width: 880px;
  }

  .carousel-track {
    gap: 20px;
  }

  .carousel-track img {
    max-height: 260px;
  }

  .puppy-meta {
    text-align: left;
  }

  .process-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .process-list,
  .process-video {
    margin: 0;
  }

  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .contact {
    text-align: left;
  }

  .contact-actions,
  .contact-copy {
    justify-content: flex-start;
  }
}