.mimidog-homepage-blocks {
  display: grid;
  gap: 32px;
}

/* =========================
   ОБЩАЯ СЕКЦИЯ
   ========================= */

.home-page-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.home-section-head__main {
  min-width: 0;
}

.home-section-head__eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-section-head__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--text);
}

.home-section-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.home-section-head__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-section-head__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.home-carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.home-carousel-arrow:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

/* =========================
   ОБЩАЯ КАРУСЕЛЬ
   ========================= */

.home-carousel {
  position: relative;
}

.home-carousel__viewport {
  overflow: hidden;
}

.home-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  will-change: transform;
}

.home-carousel-card {
  flex: 0 0 auto;
}

/* =========================
   ЩЕНКИ
   ========================= */

.home-dog-card {
  position: relative;
  width: 320px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-dog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
}

.home-dog-card__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.home-dog-card__media,
.home-dog-card__info,
.home-dog-card__status,
.home-dog-card__media-caption {
  position: relative;   /* если нужно для внутреннего позиционирования, оставь */
  z-index: auto;        /* ❗ было 1, теперь auto – не создаёт новый stacking context */
}

.home-dog-card__media {
  position: relative;
  aspect-ratio: 4 / 4.9;
  overflow: hidden;
  background: var(--surface-soft);
}

.home-dog-card__media-track {
  position: relative;
  height: 100%;
}

.home-dog-card__slide {
  display: none;
  height: 100%;
}

.home-dog-card__slide.is-active {
  display: block;
}

.home-dog-card__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--surface-soft);
}

.home-dog-card__status {
  position: absolute;
  top: 14px;
  left: 14px;
}

.home-dog-card__media-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #fff;
}

.home-dog-card__name {
  font-size: 1.45rem;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.home-dog-card__gender {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.home-dog-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0));
  z-index: 1;
  pointer-events: none;
}

.home-dog-card__media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.home-dog-card__media-arrow--prev {
  left: 12px;
}

.home-dog-card__media-arrow--next {
  right: 12px;
}

.home-dog-card__info {
  padding: 18px 18px 20px;
}

.home-dog-card__breed {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text);
}

/* =========================
   ПИТОМНИКИ
   ========================= */

.home-kennel-card {
  position: relative;
  width: 300px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-kennel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.home-kennel-card__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-kennel-card__head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.home-kennel-card__logo img,
.home-kennel-card__logo-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 22px;
}

.home-kennel-card__logo img {
  object-fit: cover;
  display: block;
}

.home-kennel-card__logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 28px;
}

.home-kennel-card__head-main {
  min-width: 0;
}

.home-kennel-card__eyebrow {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.home-kennel-card__title {
  font-size: 1.5rem;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.home-kennel-card__location {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* =========================
   ЗАВОДЧИКИ
   ========================= */

.home-breeder-card {
  position: relative;
  width: 320px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-breeder-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.home-breeder-card__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-breeder-card__head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.home-breeder-card__photo img,
.home-breeder-card__photo-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 22px;
}

.home-breeder-card__photo img {
  object-fit: cover;
  display: block;
}

.home-breeder-card__photo-placeholder {
  background: linear-gradient(135deg, #dfe8e1 0%, #f5ead9 100%);
}

.home-breeder-card__head-main {
  min-width: 0;
}

.home-breeder-card__role {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.home-breeder-card__name {
  font-size: 1.55rem;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.home-breeder-card__city {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* =========================
   СТАТУСЫ
   ========================= */

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-badge--available {
  background: #eaf6ef;
  border-color: #cfe7d8;
  color: #1f5a3a;
}

.status-badge--reserved {
  background: #fbf3e3;
  border-color: #e8d6a8;
  color: #8a6420;
}

.status-badge--sold {
  background: #f1eeea;
  border-color: #d8d1c7;
  color: #6a6258;
}

.status-badge--announcement {
  background: #eef1f7;
  border-color: #d5dbe8;
  color: #4f5f7a;
}

/* =========================
   ADAPTIVE
   ========================= */

@media (max-width: 1024px) {
  .home-page-block {
    padding: 20px;
  }

  .home-dog-card {
    width: 300px;
  }

  .home-kennel-card {
    width: 280px;
  }

  .home-breeder-card {
    width: 300px;
  }
}

@media (max-width: 781px) {
  .mimidog-homepage-blocks {
    gap: 24px;
  }

  .home-page-block {
    padding: 18px;
    border-radius: 26px;
  }

  .home-section-head {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
  }

  .home-section-head__actions {
    width: 100%;
    justify-content: space-between;
  }

  .home-section-head__link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .home-carousel__track {
    gap: 14px;
  }

  .home-dog-card {
    width: 270px;
    border-radius: 24px;
  }

  .home-kennel-card,
  .home-breeder-card {
    width: 270px;
    border-radius: 24px;
    padding: 18px;
  }

  .home-kennel-card__head,
  .home-breeder-card__head {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .home-kennel-card__logo img,
  .home-kennel-card__logo-placeholder,
  .home-breeder-card__photo img,
  .home-breeder-card__photo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .home-kennel-card__title,
  .home-breeder-card__name {
    font-size: 1.3rem;
  }

  .home-dog-card__media-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .home-carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .home-section-head__title {
    font-size: 2.2rem;
  }

  .home-dog-card {
    width: 250px;
  }

  .home-kennel-card,
  .home-breeder-card {
    width: 250px;
  }

  .home-dog-card__info {
    padding: 16px 16px 18px;
  }

  .home-dog-card__name {
    font-size: 1.3rem;
  }

  .home-dog-card__breed,
  .home-kennel-card__location,
  .home-breeder-card__city {
    font-size: 13px;
  }
}
.home-carousel__track {
  transition: transform 0.32s ease;
}

.home-carousel-arrow.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.home-dog-card__slide {
  display: none;
}

.home-dog-card__slide.is-active {
  display: block;
}
.mimidog-homepage-shell {
  width: min(1680px, calc(100% - 40px));
  margin-inline: auto;
  padding-top: 24px;
  padding-bottom: 72px;
}

.mimidog-homepage-blocks {
  display: grid;
  gap: 32px;
}

@media (max-width: 1200px) {
  .mimidog-homepage-shell {
    width: calc(100% - 32px);
    padding-top: 20px;
    padding-bottom: 56px;
  }

  .mimidog-homepage-blocks {
    gap: 28px;
  }
}

@media (max-width: 781px) {
  .mimidog-homepage-shell {
    width: calc(100% - 16px);
    padding-top: 16px;
    padding-bottom: 48px;
  }

  .mimidog-homepage-blocks {
    gap: 24px;
  }
}
.mimidog-homepage-main {
  padding-top: 24px;
  padding-bottom: 72px;
}

.mimidog-homepage-shell {
  width: min(1680px, calc(100% - 40px));
  margin-inline: auto;
}

@media (max-width: 1200px) {
  .mimidog-homepage-main {
    padding-top: 20px;
    padding-bottom: 56px;
  }

  .mimidog-homepage-shell {
    width: calc(100% - 32px);
  }
}

@media (max-width: 781px) {
  .mimidog-homepage-main {
    padding-top: 16px;
    padding-bottom: 48px;
  }

  .mimidog-homepage-shell {
    width: calc(100% - 16px);
  }
}
.home-breeds-block {
  position: relative;
}

.home-breed-card {
  position: relative;
  width: 320px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-breed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.home-breed-card__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 2;          /* было 1 */
}

.home-breed-card__media,
.home-breed-card__info {
  position: relative;
  z-index: auto;        /* было 2 */
}

.home-breed-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 20px;
  background: linear-gradient(135deg, #eef3ec 0%, #f6efe5 100%);
}

.home-breed-card__media img,
.home-breed-card__image {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.home-breed-card__placeholder {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.45);
  font-size: 46px;
  line-height: 1;
}

.home-breed-card__info {
  padding: 18px 18px 20px;
  display: grid;
  gap: 8px;
}

.home-breed-card__title {
  font-size: 1.3rem;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.home-breed-card__count {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 600;
}

/* Чтобы мусорные теги от WP не ломали карточку */
.home-breed-card > p,
.home-breed-card > br,
.home-breed-card__media > p,
.home-breed-card__media > br,
.home-breed-card__info > p,
.home-breed-card__info > br {
  display: none !important;
}

/* Десктоп / планшет */
@media (max-width: 1024px) {
  .home-breed-card {
    width: 300px;
  }

  .home-breed-card__media {
    min-height: 300px;
    padding: 18px;
  }

  .home-breed-card__media img,
  .home-breed-card__image,
  .home-breed-card__placeholder {
    height: 260px;
  }
}

/* Мобильный */
@media (max-width: 781px) {
  .home-breed-card {
    width: 270px;
    border-radius: 24px;
  }

  .home-breed-card__media {
    min-height: 270px;
    padding: 16px;
  }

  .home-breed-card__media img,
  .home-breed-card__image,
  .home-breed-card__placeholder {
    height: 230px;
  }

  .home-breed-card__info {
    padding: 16px 16px 18px;
  }

  .home-breed-card__title {
    font-size: 1.18rem;
  }

  .home-breed-card__count {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .home-breed-card {
    width: 250px;
  }

  .home-breed-card__media {
    min-height: 250px;
    padding: 14px;
  }

  .home-breed-card__media img,
  .home-breed-card__image,
  .home-breed-card__placeholder {
    height: 210px;
  }
}
/* Сетка для карточек пород */
.home-breeds-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Каждая карточка занимает 1/4 ширины на десктопе */
.home-breeds-grid .home-breed-card {
    flex: 0 0 calc(25% - 20px);
    min-width: 200px;
}

/* Адаптация под планшеты */
@media (max-width: 992px) {
    .home-breeds-grid .home-breed-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

/* Адаптация под мобильные */
@media (max-width: 768px) {
    .home-breeds-grid .home-breed-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .home-breeds-grid .home-breed-card {
        flex: 0 0 100%;
    }
}