/* ==================================================
   DOG PAGE — UNIVERSAL LAYOUT (WORKS EVERYWHERE)
================================================== */

/* ==================================================
   PAGE WRAPPER — CENTERING
================================================== */

.dog-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* ==================================================
   MAIN TITLE
================================================== */

.dog-name {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}

.dog-name span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(214,191,167,0.55);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.14),
    inset 0 0 0 1px rgba(255,255,255,0.6);
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 500;
}

/* лапки */
.dog-name span::before,
.dog-name span::after {
  content: "🐾";
  font-size: 22px;
  opacity: 0.4;
}

/* декоративная линия */
.dog-name::after {
  content: '';
  display: block;
  width: 96px;
  height: 3px;
  margin: 26px auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201,178,124,0.95),
    transparent
  );
}

/* ==================================================
   CONTENT FLOW
================================================== */

.dog-text {
  max-width: 860px;
  margin: 0 auto 56px;
}

/* ==================================================
   SECTION TITLES
================================================== */

.dog-text h2 {
  text-align: center;
  margin: 60px 0 32px;
}

.dog-text h2 span {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(214,191,167,0.45);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.6);
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 500;
}

/* линия снизу */
.dog-text h2 span::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--accent, #c9b27c);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* BOYS */
.dog-text:nth-of-type(1) h2 span {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.95),
    rgba(240,232,222,0.95)
  );
}

/* GIRLS */
.dog-text:nth-of-type(2) h2 span {
  background: linear-gradient(
    180deg,
    rgba(255,245,247,0.95),
    rgba(255,220,225,0.9)
  );
  border-color: rgba(214,120,140,0.55);
}

.dog-text:nth-of-type(2) h2 span::after {
  background: rgba(214,120,140,0.9);
}

/* ==================================================
   DOG CARD
================================================== */

.dog-info-item {
  background: rgba(255,255,255,0.95);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 56px;
  box-shadow:
    0 14px 36px rgba(0,0,0,0.14),
    inset 0 0 0 1px rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
}

/* divider */
.dog-info-item::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);
  width: 160px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0,0,0,0.35),
    transparent
  );
}

.dog-info-item:last-child::after {
  display: none;
}

/* ==================================================
   IMAGE
================================================== */

.dog-info-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(214,191,167,0.55);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.6);
  background: #fff;
}

/* ==================================================
   TEXT
================================================== */

.dog-info-item p {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {

  .dog-name span {
    font-size: 38px;
    padding: 16px 36px;
  }

  .dog-text h2 span {
    font-size: 28px;
    padding: 10px 26px;
  }

  .dog-info-item {
    padding: 18px;
    margin-bottom: 48px;
  }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {

  .dog-name span {
    font-size: 28px;
    padding: 14px 26px;
  }

  .dog-name span::before,
  .dog-name span::after {
    font-size: 18px;
  }

  .dog-text h2 {
    margin: 48px 0 24px;
  }

  .dog-text h2 span {
    font-size: 24px;
    padding: 10px 22px;
  }

  .dog-info-item {
    padding: 16px 16px 28px;
    border-radius: 18px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  }

  .dog-info-item img {
    height: 280px;
    border-radius: 16px;
    object-fit: cover;
  }
}

/* ==================================================
   PAGINATION — RESPONSIVE, CENTERED, LUXURY
================================================== */

.dog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px auto 40px;
  width: 100%;
}

.dog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  margin: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(214,191,167,0.55);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.6);
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  line-height: 1;
  color: #444;
  text-decoration: none;
  transition: all 0.25s ease;
}

.dog-pagination .page-numbers:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}

.dog-pagination .page-numbers.current {
  background: linear-gradient(
    180deg,
    rgba(240,232,222,0.95),
    rgba(214,191,167,0.95)
  );
  border-color: rgba(201,178,124,0.9);
  color: #222;
  font-weight: 500;
  pointer-events: none;
}

/* arrows */
.dog-pagination .page-numbers.prev,
.dog-pagination .page-numbers.next {
  font-size: 22px;
  padding: 0 16px;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {
  .dog-pagination {
    margin: 50px auto 30px;
  }

  .dog-pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    font-size: 17px;
  }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {
  .dog-pagination {
    margin: 40px auto 24px;
    flex-wrap: wrap;
  }

  .dog-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    font-size: 16px;
    margin: 4px;
  }

  .dog-pagination .page-numbers.prev,
  .dog-pagination .page-numbers.next {
    font-size: 20px;
  }
}

/* ==================================================
   BACK TO HOME — FIXED LUXURY BUTTON
================================================== */

.dog-back-home {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 26px;
  border-radius: 999px;

  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(214,191,167,0.55);

  box-shadow:
    0 14px 36px rgba(0,0,0,0.16),
    inset 0 0 0 1px rgba(255,255,255,0.6);

  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: #444;
  text-decoration: none;

  transition: all 0.25s ease;
}

.dog-back-home:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 44px rgba(0,0,0,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {
  .dog-back-home {
    padding: 12px 22px;
    font-size: 16px;
    left: 18px;
    bottom: 18px;
  }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {
  .dog-back-home {
    padding: 10px 18px;
    font-size: 15px;
    left: 12px;
    bottom: 12px;
  }
}
