﻿/* Layout + shared components (without base/menu) */

.hero {
  position: relative;
  margin-top: 18px;
  border: 1px solid #f0e6db;
  border-radius: 20px;
  padding: 46px 52px 34px;
  overflow: visible;
  background: radial-gradient(circle at 84% 42%, #fff1e2 0 49%, transparent 52%), #fff;
  min-height: 420px;
  z-index: 5
}

.hero:after {
  content: "";
  position: absolute;
  right: 220px;
  top: 12px;
  width: 430px;
  height: 370px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 138, 33, .16), transparent 58%);
  opacity: .18;
  pointer-events: none
}

.hero h1,
.hero p,
.stats,
.search,
.popular {
  position: relative;
  z-index: 3
}

.hero h1 {
  font-size: 46px;
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -.04em;
  max-width: 455px
}

.hero h1 span {
  color: var(--orange)
}

.hero p {
  font-size: 17px;
  line-height: 1.45;
  margin: 0 0 24px;
  max-width: 440px
}

.hero-pets {
  position: absolute;
  right: 210px;
  top: 25px;
  z-index: 1;
  filter: drop-shadow(0 18px 38px rgba(88, 53, 24, .18))
}

.stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  max-width: 430px
}

.stat {
  width: 205px;
  min-height: 88px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(98, 62, 37, .1);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  transition: .2s
}

.stat:hover,
.stat:focus-visible {
  background: #fff4ea;
  box-shadow: 0 14px 28px rgba(255, 106, 0, .14), inset 0 0 0 1px #ffc49a;
  transform: translateY(-2px);
  outline: 0
}

.stat .ico {
  font-size: 39px;
  color: #ff8a1c;
  line-height: 1
}

.stat b {
  font-size: 29px;
  color: var(--orange);
  display: block;
  line-height: 1
}

.stat small {
  font-weight: 700
}

.benefits {
  position: absolute;
  right: 52px;
  top: 55px;
  display: grid;
  gap: 20px;
  z-index: 4
}

.benefit {
  width: 184px;
  min-height: 80px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 28px rgba(91, 57, 33, .1);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25
}

.benefit img {
  width: 35px;
  height: auto;
  flex: 0 0 auto
}

.search {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 210px;
  column-gap: 10px;
  background: #fff;
  border-radius: 13px;
  padding: 10px;
  box-shadow: 0 11px 28px rgba(75, 45, 25, .15);
  z-index: 50
}

.field {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border: 0;
  border-right: 1px solid #f0e8e0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  transition: .2s
}

.field:after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #9b6b4c;
  border-bottom: 2px solid #9b6b4c;
  transform: rotate(45deg) translateY(-2px);
  transition: .2s
}

.select-field.is-open .field:after {
  transform: rotate(225deg) translate(-2px, -1px)
}

.field:hover,
.field:focus-visible,
.select-field.is-open .field {
  background: #fff4ea;
  box-shadow: inset 0 0 0 1px #ffc49a;
  outline: 0
}

.field:hover:after,
.field:focus-visible:after,
.select-field.is-open .field:after {
  border-color: #ff6400
}

.field:hover .i,
.field:focus-visible .i,
.select-field.is-open .field .i,
.field:hover b,
.field:focus-visible b,
.select-field.is-open .field b,
.field:hover small,
.field:focus-visible small,
.select-field.is-open .field small {
  color: #ff6400
}

.field:last-of-type {
  border-right: 0
}

.field .i {
  font-size: 24px;
  color: #9c6e55;
  flex: 0 0 auto
}

.field small {
  display: block;
  color: #7b6b63;
  font-weight: 700;
  margin-bottom: 3px
}

.field b {
  font-size: 13px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.popular {
  margin-top: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.chip {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #eee4dc;
  border-radius: 999px;
  background: #fff;
  color: #635a55;
  font-size: 13px;
  font-weight: 700;
  transition: .2s
}

.chip:hover,
.chip:focus-visible {
  color: #ff6400;
  border-color: #ffc49a;
  background: #fff4ea;
  box-shadow: 0 8px 18px rgba(255, 106, 0, .12);
  outline: 0
}

.section {
  margin-top: 18px
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px
}

.section h2 {
  font-size: 21px;
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  color: chocolate;
}

.section h2:before {
  content: 'в™§';
  color: var(--orange);
  margin-right: 10px
}

.section .more {
  color: var(--orange);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none
}

.section .more:hover,
.section .more:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: 0
}

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

.carousel-section {
  position: relative
}

.carousel-section .ads-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 1px 4px
}

.carousel-section .ads-carousel::-webkit-scrollbar {
  display: none
}

.carousel-section .card {
  flex: 0 0 calc((100% - 60px)/4);
  scroll-snap-align: start
}

.carousel-btn {
  position: absolute;
  top: calc(50% + 22px);
  width: 42px;
  height: 42px;
  border: 1px solid #f0e2d8;
  border-radius: 50%;
  background: #fff;
  color: #9b6b4c;
  box-shadow: 0 12px 28px rgba(73, 42, 22, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-50%);
  transition: .2s;
  z-index: 5
}

.carousel-btn.prev {
  left: -21px
}

.carousel-btn.next {
  right: -21px
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  color: #ff6400;
  border-color: #ffc49a;
  background: #fff4ea;
  box-shadow: 0 16px 32px rgba(255, 106, 0, .18);
  outline: 0
}

.carousel-btn:disabled {
  opacity: .38;
  cursor: default;
  pointer-events: none
}

.card {
  background: #fff;
  border: 1px solid #eee6de;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 7px 18px rgba(68, 42, 25, .08);
  position: relative;
  transition: .25s;
  min-width: 0
}

.card:hover,
.kennel:hover,
.breed:hover,
.city:hover,
.adv:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(62, 38, 22, .13)
}

.card img.photo {
  width: 100%;
  height: auto;
  aspect-ratio: 198/94;
  object-fit: cover;
  display: block
}

.info-section {
  margin-top: 24px;
  margin-bottom: 34px
}

.info-cards .info-card img.photo {
  aspect-ratio: 16/9
}

.info-card .title {
  display: block;
  min-height: 42px
}

.info-card .meta {
  line-height: 1.35
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 7px;
  padding: 6px 11px;
  font-weight: 900;
  color: #fff;
  font-size: 11px;
  background: var(--orange);
  z-index: 2
}

.tag.green {
  background: #73bd32
}

.tag.blue {
  background: #4aa3df
}

.fav {
  position: absolute;
  right: 12px;
  top: 10px;
  color: #fff;
  font-size: 25px;
  text-shadow: 0 1px 5px #654;
  z-index: 2
}

.card-body {
  padding: 12px 14px 14px
}

.title {
  font-weight: 900;
  line-height: 1.24;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start
}

.price {
  color: #ff6400;
  font-weight: 900;
  white-space: nowrap
}

.meta {
  font-size: 12px;
  color: #8b817b;
  margin: 6px 0
}

.badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap
}

.badge {
  font-size: 11px;
  background: #f4f8ed;
  color: #566f35;
  border-radius: 6px;
  padding: 5px 8px;
  font-weight: 700
}

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

.kennel {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border: 1px solid #eee6de;
  border-radius: 12px;
  padding: 14px 18px;
  transition: .25s;
  box-shadow: 0 7px 17px rgba(67, 42, 26, .07);
  min-width: 0
}

.kennel img {
  width: 48px;
  height: auto;
  flex: 0 0 auto
}

.kennel b,
.kennel small {
  display: block
}

.stars {
  color: #ffab19;
  font-size: 12px;
  margin: 4px 0;
  white-space: nowrap
}

.kennel small {
  color: #6b625e
}

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

.review-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid #eee6de;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(68, 42, 25, .07);
  transition: .25s
}

.review-card:hover,
.review-card:focus-visible {
  transform: translateY(-3px);
  border-color: #ffc49a;
  box-shadow: 0 14px 26px rgba(255, 106, 0, .13);
  outline: 0
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.review-top b {
  font-size: 16px
}

.review-top span {
  color: #ffb22e;
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap
}

.review-card p {
  margin: 0;
  color: #4f4640;
  font-size: 13px;
  line-height: 1.45
}

.review-card small {
  color: #8b817b;
  font-weight: 700
}

.breed-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px
}

.breed-panel {
  background: #fff;
  border: 1px solid #eee6de;
  border-radius: 13px;
  padding: 14px;
  min-width: 0
}

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

.breed-list.cat {
  grid-template-columns: repeat(6, minmax(0, 1fr))
}

.breed {
  text-align: center;
  transition: .25s;
  border-radius: 10px;
  padding: 2px;
  min-width: 0
}

.breed img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover
}

.breed b {
  display: block;
  font-size: 12px;
  line-height: 1.15
}

.breed small {
  font-size: 11px;
  color: #777;
  line-height: 1.15;
  display: block
}

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

.city {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #eee6de;
  border-radius: 11px;
  padding: 15px 18px;
  transition: .25s;
  min-width: 0
}

.city b {
  display: block;
  line-height: 1.1
}

.city small {
  color: #777
}

.city.all {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fffaf5;
  border-color: #f3e4d8;
  box-shadow: 0 7px 18px rgba(98, 62, 37, .05)
}

.city.all .city-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff1e6;
  color: var(--orange);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto
}

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

.adv {
  display: flex;
  gap: 17px;
  background: #f3faed;
  border-radius: 13px;
  padding: 23px 18px;
  transition: .25s;
  min-width: 0
}

.adv .big {
  font-size: 44px;
  color: #74b72d;
  line-height: 1;
  flex: 0 0 auto
}

.adv b {
  display: block;
  line-height: 1.15
}

.adv p {
  font-size: 12px;
  margin: 6px 0 0;
  color: #555;
  line-height: 1.25
}

.cta {
  position: relative;
  overflow: visible;
  margin: 34px 0 18px;
  border-radius: 20px;
  min-height: 122px;
  background: linear-gradient(135deg, #ffb15b 0%, #ff913b 48%, #ff7d22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 17px 315px 16px;
  box-shadow: 0 16px 28px rgba(255, 132, 42, .12)
}

.cta:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 17% 72%, rgba(255, 255, 255, .2), transparent 18%), radial-gradient(circle at 86% 65%, rgba(255, 255, 255, .16), transparent 21%);
  pointer-events: none
}

.cta h2 {
  position: relative;
  z-index: 2;
  font-size: 34px;
  margin: 0 0 5px;
  line-height: 1.05
}

.cta p {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.2
}

.cta img {
  position: absolute;
  bottom: 0;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 10px 15px rgba(92, 43, 12, .18))
}

.cta .dog {
  left: 86px;
  width: 188px
}

.cta .cat {
  right: 106px;
  width: 186px
}

.cta .btn {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 11px 22px;
  margin: 0 7px;
  border: 0;
  background: #fff;
  color: #ff6400;
  box-shadow: 0 8px 18px rgba(117, 45, 0, .13);
  font-weight: 900;
  white-space: nowrap
}

.cta .btn.primary {
  background: #ff6a0a;
  color: #fff;
  box-shadow: 0 8px 18px rgba(136, 44, 0, .14)
}

.cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(117, 45, 0, .18)
}

.footer {
  border-top: 1px solid #f0e6db;
  padding: 34px 0 30px;
  background: linear-gradient(180deg, #fff8f2 0%, #fffdfb 100%)
}

.footgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 30px
}

.footgrid img {
  width: 135px
}

.footgrid h4 {
  margin: 0 0 10px
}

.footgrid p,
.footgrid li {
  font-size: 14px;
  color: #555;
  margin: 7px 0;
  list-style: none
}

.footgrid a:hover,
.footgrid a:focus-visible {
  color: #ff6400;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: 0
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #f0e6db;
  color: #6f625a
}

.footer-bottom p {
  max-width: 980px;
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.45
}

.social {
  font-size: 18px;
  letter-spacing: 12px;
  margin-top: 18px
}

@media(max-width:1100px) {
  .nav {
    display: none
  }

  .burger {
    display: flex
  }

  .header .wrap {
    justify-content: space-between;
    gap: 18px
  }

  .mobile-menu {
    left: 24px;
    right: 24px;
    width: auto
  }

  .btn {
    padding: 12px 16px
  }

  .hero {
    padding: 36px 30px
  }

  .hero-pets {
    right: 110px
  }

  .benefits {
    right: 30px
  }

  .search {
    width: 100%;
    max-width: none
  }
}

@media(max-width:1200px) {
  .nav {
    gap: 5px;
    font-size: 13px
  }

  .nav-link {
    padding: 9px 8px
  }

  .breed-box {
    grid-template-columns: 1fr
  }

  .breed-panel {
    width: 100%
  }
}

@media(max-width:1000px) {
  .card .title {
    display: block
  }

  .card .price {
    display: block;
    margin-top: 4px
  }
}

@media(max-width:900px) {
  .hero {
    padding: 30px 24px
  }

  .hero:after {
    right: -70px;
    top: 35px
  }

  .hero-pets {
    opacity: .28;
    right: 0;
    max-width: 65%;
    top: 60px
  }

  .benefits {
    display: none
  }

  .hero h1 {
    font-size: 36px
  }

  .hero p {
    max-width: 460px
  }

  .search {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    width: 100%;
    gap: 10px
  }

  .field {
    height: 58px
  }

  .select-field:nth-of-type(2) .field {
    border-right: 0
  }

  .searchbtn {
    grid-column: 1/-1
  }

  .cards,
  .kennels,
  .advantages,
  .reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .carousel-section .card {
    flex-basis: calc((100% - 20px)/2)
  }

  .carousel-btn.prev {
    left: -14px
  }

  .carousel-btn.next {
    right: -14px
  }

  .breed-box {
    grid-template-columns: 1fr
  }

  .cities {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .cta {
    padding: 22px 118px;
    margin-top: 36px;
    min-height: 136px
  }

  .cta .dog {
    left: 18px;
    width: 150px
  }

  .cta .cat {
    right: 20px;
    width: 168px
  }

  .footgrid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:640px) {
  .wrap {
    width: calc(100% - 32px)
  }

  .header {
    height: auto;
    padding: 12px 0
  }

  .header .wrap {
    flex-wrap: nowrap;
    gap: 12px
  }

  .actions {
    margin-left: auto;
    gap: 10px
  }

  .burger {
    width: 42px;
    height: 42px;
    border-radius: 11px
  }

  .mobile-menu {
    top: 70px;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100vh - 86px);
    max-height: calc(100dvh - 86px);
    grid-template-columns: 1fr;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom))
  }

  .mobile-menu .mobile-add {
    grid-column: auto
  }

  .actions .btn {
    display: inline-flex
  }

  .actions .btn.primary {
    display: none
  }

  .btn.add {
    display: none
  }

  .btn {
    padding: 11px 15px
  }

  .hero {
    padding: 25px 18px;
    border-radius: 16px
  }

  .hero h1 {
    font-size: 31px
  }

  .hero p {
    width: auto;
    font-size: 15px
  }

  .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 100%
  }

  .stat {
    width: 100%;
    gap: 12px;
    padding: 14px
  }

  .stat b {
    font-size: 25px
  }

  .search {
    grid-template-columns: 1fr;
    padding: 8px;
    gap: 0
  }

  .select-field .field {
    border-right: 0 !important;
    border-bottom: 1px solid #f0e8e0
  }

  .select-field:last-of-type .field {
    border-bottom: 0
  }

  .kennels,
  .reviews,
  .cities,
  .info-cards,
  .footgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .advantages {
    grid-template-columns: 1fr
  }

  .cards {
    gap: 12px
  }


  .carousel-section .ads-carousel {
    gap: 12px;
    padding-bottom: 4px
  }

  .carousel-section .card {
    flex-basis: calc((100% - 12px)/2)
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 28px;
    top: calc(50% + 18px)
  }

  .carousel-btn.prev {
    left: -8px
  }

  .carousel-btn.next {
    right: -8px
  }

  .breed-list,
  .breed-list.cat {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px
  }

  .section .more {
    font-size: 12px
  }

  .card img.photo {
    height: auto
  }

  .card-body {
    padding: 9px 10px 11px
  }

  .tag {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 42px);
    padding: 5px 8px;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
  }

  .fav {
    right: 8px;
    top: 7px;
    font-size: 22px
  }

  .title {
    display: block;
    font-size: 13px
  }

  .info-card .title {
    min-height: 0
  }

  .price {
    display: block;
    margin-top: 4px
  }

  .cta {
    padding: 28px 15px
  }

  .cta h2 {
    font-size: 27px
  }

  .cta .dog,
  .cta .cat {
    display: none
  }


  .chip {
    margin: 0
  }

  /* «Популярно» на главной: на мобиле — по 2 породы в строке,
     ярлык — отдельной строкой */
  .popular-label {
    flex: 1 1 100%
  }

  .popular .chip {
    flex: 0 0 calc(50% - 5px);
    text-align: center
  }

  .price {
    font-size: 14px
  }

  .meta {
    font-size: 11px
  }

  .badges {
    gap: 5px;
    margin-top: 9px
  }

  .badge {
    padding: 4px 6px;
    font-size: 9px
  }
}

@media(max-width:390px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
  }

  .stat {
    min-height: 76px;
    gap: 8px;
    padding: 11px 8px
  }

  .stat .ico img {
    height: auto
  }

  .stat b {
    font-size: 21px
  }

  .stat small {
    font-size: 10px;
    line-height: 1.15
  }

  .cards {
    gap: 10px
  }

  .info-cards {
    grid-template-columns: 1fr
  }

  .carousel-section .ads-carousel {
    gap: 10px
  }

  .carousel-section .card {
    flex-basis: calc((100% - 10px)/2)
  }

  .card-body {
    padding: 8px
  }

  .title {
    font-size: 12px
  }

  .price {
    font-size: 12px
  }

  .section-head {
    flex-direction: column
  }

  .actions .heart {
    display: none
  }

  .breed-list,
  .breed-list.cat {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

.ico img,
.field-icon,
.adv-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain
}

.stat .ico {
  width: 42px;
  height: 42px;
  font-size: 0;
  flex: 0 0 auto
}

.field .i {
  width: 28px;
  height: 28px;
  font-size: 0
}

.select-field {
  position: relative;
  min-width: 0;
  z-index: 51;
  display: flex;
  align-items: center;
  min-height: 56px
}

.field {
  height: 56px
}

.searchbtn {
  height: 56px;
  align-self: center
}

.select-field.is-open {
  z-index: 999
}

.field:focus-visible {
  outline: 0
}

.select-menu {
  position: absolute;
  left: 10px;
  right: 10px;
  top: calc(100% + 12px);
  display: none;
  max-height: 194px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #f0dfcf;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(75, 45, 25, .18);
  z-index: 1000;
  scrollbar-width: thin;
  scrollbar-color: #ff9d54 #fff3e8
}

.select-menu::-webkit-scrollbar {
  width: 8px
}

.select-menu::-webkit-scrollbar-track {
  background: #fff3e8;
  border-radius: 999px
}

.select-menu::-webkit-scrollbar-thumb {
  background: #ff9d54;
  border-radius: 999px
}

.select-field.is-open .select-menu {
  display: grid
}

.select-menu button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
  color: #3b312b;
  cursor: pointer
}

.select-menu button:hover,
.select-menu button.is-active {
  background: #fff3e8;
  color: var(--orange)
}

/* Скрыто текстовым фильтром «Быстрый поиск» (data-filtered-out) — отдельный
   канал видимости: категорийная фильтрация (Собаки/Кошки, город) работает
   через style.display и не должна затираться/затирать текстовую */
.select-menu button[data-filtered-out] {
  display: none
}

.select-filter {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 4px;
  border: 1px solid #f0dfcf;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3b312b;
  background: #fff;
  outline: none;
  box-sizing: border-box
}

.select-filter:focus {
  border-color: var(--orange)
}

.select-filter::placeholder {
  color: #b0a296;
  font-weight: 500
}

.section h2:before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 10px;
  vertical-align: -6px;
  background: url('../icons/icon-paw.png') center/contain no-repeat
}

.section h2.no-icon:before {
  display: none
}

.section h2.dec-cat:before {
  background-image: url('../icons/dec-cat.png')
}

.section h2.dec-dog:before {
  background-image: url('../icons/dec-dog.png')
}

.section h2.map:before {
  background-image: url('../icons/map.png')
}

.adv .big {
  width: 64px;
  height: 64px;
  font-size: 0;
  display: block
}

.city.all .city-arrow {
  font-size: 24px;
  padding: 0;
  line-height: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center
}

.searchbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.searchbtn img {
  width: 18px;
  height: 18px;
  object-fit: contain
}

.cta .cta-content {
  position: relative;
  z-index: 3;
  width: min(520px, 100%)
}

.cta .cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap
}

.cta .btn {
  gap: 10px
}

.cta .btn img.cta-btn-icon {
  position: static;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: none;
  flex: 0 0 auto
}

.cta .btn.primary img.cta-btn-icon {
  filter: brightness(0) invert(1)
}

@media(max-width:1100px) {
  .cta {
    padding-left: 245px;
    padding-right: 225px
  }

  .cta .dog {
    left: 46px;
    width: 176px
  }

  .cta .cat {
    right: 54px;
    width: 146px
  }

  .cta .cta-content {
    width: min(480px, 100%)
  }
}

@media(max-width:900px) {
  .cta .cta-actions {
    gap: 10px
  }

  .cta .btn {
    padding: 10px 15px;
    font-size: 12px
  }

  .cta .btn img.cta-btn-icon {
    width: 18px;
    height: 18px
  }
}

@media(max-width:640px) {
  .select-field {
    display: block;
    min-height: auto;
    width: 100%
  }

  .wrap {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px
  }

  .hero {
    padding-left: 14px;
    padding-right: 14px;
    overflow: hidden
  }

  .hero h1 {
    max-width: 100%
  }

  .hero p {
    max-width: 100%;
    overflow-wrap: break-word
  }

  .search {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    padding: 8px;
    overflow: visible
  }

  .search>* {
    min-width: 0
  }

  .select-field .field {
    padding-left: 12px;
    padding-right: 12px
  }

  .searchbtn {
    width: 100%;
    min-width: 0;
    margin-top: 10px
  }

  .select-menu {
    position: static;
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0 6px;
    max-height: 172px
  }

  .cta {
    min-height: 176px;
    padding: 20px 12px 18px;
    margin-top: 26px
  }

  .cta .cta-content {
    width: 100%
  }

  .cta h2 {
    font-size: 25px
  }

  .cta p {
    font-size: 12px;
    margin-bottom: 12px
  }

  .cta .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px
  }

  .cta .btn {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 11px;
    margin: 0;
    width: 100%;
    min-width: 0
  }

  .cta .btn img.cta-btn-icon {
    width: 16px;
    height: 16px
  }

  .cta .dog,
  .cta .cat {
    display: none
  }
}

@media(max-width:390px) {
  .cta .btn {
    font-size: 10px;
    padding-left: 8px;
    padding-right: 8px;
    gap: 6px
  }

  .cta .btn img.cta-btn-icon {
    width: 14px;
    height: 14px
  }
}

/* Mobile polish: bigger statistic cards and richer menu */
@media(max-width:640px) {
  .mobile-menu {
    top: 64px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 148, 63, .28);
    border-radius: 24px;
    background:
      radial-gradient(circle at 14% 0%, rgba(255, 228, 198, .9), transparent 34%),
      radial-gradient(circle at 95% 9%, rgba(255, 169, 96, .34), transparent 26%),
      rgba(255, 255, 255, .98);
    box-shadow: 0 22px 55px rgba(73, 42, 22, .22), inset 0 1px 0 rgba(255,255,255,.9);
    gap: 10px;
    backdrop-filter: blur(14px);
  }.mobile-menu-group {
    position: relative;
    gap: 5px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 22px rgba(98, 62, 37, .08), inset 0 0 0 1px rgba(255, 190, 142, .55);
  }

  .mobile-menu-group b {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px 7px;
    color: #ff6400;
    font-size: 15px;
    line-height: 1.15;
  }

  .mobile-menu-group b:before {
    content: '•';
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffae57, #ff6400);
    color: #fff;
    font-size: 18px;
    line-height: 1;
  }

  .mobile-menu-group a,
  .mobile-menu a {
    min-height: 46px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.15;
  }

  .mobile-menu-group a {
    justify-content: space-between;
    padding: 11px 12px;
    background: #fffaf5;
    box-shadow: inset 0 0 0 1px rgba(246, 226, 210, .75);
  }

  .mobile-menu-group a:after {
    content: '›';
    color: #ff7b18;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible {
    background: #fff0e3;
    box-shadow: inset 0 0 0 1px #ffc49a;
    transform: translateX(2px);
  }

  .mobile-menu .mobile-add {
    position: sticky;
    bottom: calc(2px + env(safe-area-inset-bottom));
    min-height: 52px;
    margin-top: 2px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(255, 106, 0, .26);
  }

  .mobile-menu .mobile-add:before {
    content: '+';
    margin-right: 8px;
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
  }

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

  .stat {
    min-height: 100px;
    gap: 12px;
    padding: 16px 12px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(98, 62, 37, .13), inset 0 0 0 1px rgba(255, 210, 174, .65);
  }

  .stat .ico {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff3e8;
  }

  .stat b {
    font-size: 30px;
    line-height: .95;
  }

  .stat small {
    margin-top: 5px;
    display: block;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 850;
  }
}

@media(max-width:390px) {
  .stats {
    gap: 9px;
  }

  .stat {
    min-height: 96px;
    gap: 9px;
    padding: 14px 10px;
  }

  .stat .ico {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .stat b {
    font-size: 27px;
  }

  .stat small {
    font-size: 12px;
  }

  .mobile-menu {
    left: 8px;
    right: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .mobile-menu-group a,
  .mobile-menu a {
    font-size: 14px;
  }
}


/* ===== Mobile fullscreen light menu ===== */
@media(max-width:900px){

  .mobile-menu{
    top:68px;
    right:0;
    left:0;
    width:100vw;
    max-width:none;
    height:calc(100dvh - 68px);
    max-height:calc(100dvh - 68px);
    border:none;
    border-radius:0;
    padding:
      20px
      20px
      calc(40px + env(safe-area-inset-bottom));
    background:#fffdfb;
    box-shadow:none;
    z-index:1490;
    grid-template-columns:1fr;
    gap:14px;
    overflow-y:auto;
    overscroll-behavior:contain;
  }

  .mobile-menu.is-open{
    display:grid;
  }


  .mobile-menu-title{
    position:sticky;
    top:0;
    margin:0 -20px 4px;
    padding:18px 24px 18px;
    background:#fffdfb;
    font-size:28px;
    font-weight:900;
    letter-spacing:-.03em;
    color:#1f160f;
    z-index:2;
    border-bottom:1px solid rgba(255,122,26,.08);
  }

  .mobile-menu-group{
    padding:16px;
    border-radius:24px;
    background:rgba(255,255,255,.92);
    border:1px solid #f5e6d8;
    box-shadow:
      0 10px 30px rgba(255,107,0,.08),
      inset 0 1px 0 rgba(255,255,255,.7);
    gap:8px;
  }

  .mobile-menu-group b{
    font-size:13px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#ff7a1a;
    padding:0 4px 8px;
  }

  .mobile-menu a{
    min-height:58px;
    padding:14px 16px;
    border-radius:18px;
    background:#fff;
    font-size:17px;
    font-weight:800;
    box-shadow:0 4px 14px rgba(50,30,10,.05);
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible{
    background:#fff2e7;
    color:#ff6400;
  }

  .burger{
    position:relative;
    z-index:1701;
  }

  body.menu-open{
    overflow:hidden;
    touch-action:none;
  }
}

.mobile-title{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#8a94a6;margin:0 0 10px;padding:0 4px}


@media(max-width:900px){
  .mobile-menu{padding-bottom:120px;}
  .mobile-menu .mobile-add{
    position:fixed;
    left:16px;
    right:16px;
    bottom:calc(14px + env(safe-area-inset-bottom));
    margin:0;
    z-index:1600;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:58px;
    border-radius:18px;
    box-shadow:0 12px 30px rgba(255,122,26,.22);
  }
}



/* Mobile menu final behavior */
@media (max-width: 768px) {

  .mobile-menu,
  .menu-mobile,
  .mobile-nav,
  .nav-mobile {
      padding-bottom: 110px !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
  }

  .add-kennel-btn,
  .mobile-add-btn,
  .btn-add-kennel {
      position: fixed !important;
      left: 16px !important;
      right: 16px !important;
      bottom: 16px !important;
      z-index: 99999 !important;
  }
}


/* Final mobile menu: keep "Р”РѕР±Р°РІРёС‚СЊ РїРёС‚РѕРјРЅРёРє" pinned to viewport bottom while menu scrolls underneath */
@media (max-width: 1024px) {
  .mobile-menu {
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body > .mobile-add {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    z-index: 2000 !important;
    display: none !important;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin: 0 !important;
    border-radius: 18px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff8b15, #ff6400);
    box-shadow: 0 12px 30px rgba(255,122,26,.26);
  }

  body.menu-open > .mobile-add {
    display: flex !important;
  }
}

@media (min-width: 1025px) {
  body > .mobile-add {
    display: none !important;
  }
}


/* Final fix: attach opened mobile menu directly to the visible header */
@media (max-width: 1024px) {
  .mobile-menu {
    top: var(--mobile-header-h, 68px) !important;
    height: calc(100dvh - var(--mobile-header-h, 68px)) !important;
    max-height: calc(100dvh - var(--mobile-header-h, 68px)) !important;
    margin-top: 0 !important;
    border-top: 0 !important;
  }
}


@media (max-width: 768px){
  .logo img,
  .header__logo img,
  .site-logo img{
      max-height: none !important;
      height: auto !important;
      width: auto !important;
      transform: scale(1) !important;
  }
}


@media (max-width: 768px){
  .logo img,
  .header__logo img,
  .site-logo img{
      width: 200px !important;
      max-width: 200px !important;
      height: auto !important;
  }
}

.login-icon {
  display: none;
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

@media (max-width: 900px) {
  .actions .login-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ff6400;
  }

  .actions .login-btn .login-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .actions .login-btn .login-icon {
    display: block;
  }
}

/* Mobile header fit fix */
@media (max-width: 640px) {
  .header {
    height: 64px !important;
    padding: 0 !important;
  }

  .header .wrap {
    width: calc(100% - 48px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 8px !important;
    justify-content: space-between !important;
    min-width: 0 !important;
  }

  .logo {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .logo img,
  .header__logo img,
  .site-logo img {
    width: 200px !important;
    max-width: none !important;
    height: auto !important;
  }

  .actions {
    margin-left: 0 !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
  }

  .actions .heart {
    display: none !important;
  }

  .actions .login-btn,
  .burger {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex: 0 0 40px !important;
  }

  .mobile-menu {
    top: var(--mobile-header-h, 64px) !important;
    left: 12px !important;
    right: 12px !important;
    height: calc(100dvh - var(--mobile-header-h, 64px)) !important;
    max-height: calc(100dvh - var(--mobile-header-h, 64px)) !important;
  }
}

@media (max-width: 360px) {
  .logo img,
  .header__logo img,
  .site-logo img {
    width: 200px !important;
    max-width: none !important;
  }

  .header .wrap {
    width: calc(100% - 48px) !important;
    gap: 6px !important;
  }
}

/* Requested mobile layout fixes */
@media (max-width: 640px) {
  .kennels {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 390px) {
  .info-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .info-card .photo {
    width: 100%;
  }

  .review-top {
    align-items: flex-start !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 4px !important;
  }

  .review-top span {
    display: block !important;
  }
}

/* Tablet header right spacing fix */
@media (min-width: 641px) and (max-width: 900px) {
  .header .wrap {
    width: calc(100% - 48px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* .header,
  .wrap,
  body {
    overflow-x: hidden;
  } */
}

/* Mobile readable typography fix */
@media (max-width: 640px) {
  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    font-size: 16px;
    line-height: 1.45;
  }

  .hero h1 {
    font-size: clamp(30px, 8.8vw, 38px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em;
  }

  .hero p {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  .section {
    margin-top: 34px;
  }

  .section h2,
  .cta h2 {
    font-size: clamp(23px, 6.5vw, 30px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em;
  }

  .section h2:before {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    vertical-align: -4px;
  }

  .section .more {
    font-size: 14px !important;
    line-height: 1.3;
  }

  .mobile-title,
  .mobile-menu-group b {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .mobile-menu a,
  .mobile-menu-group a {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  .field small {
    font-size: 12px !important;
    line-height: 1.2;
  }

  .field b,
  .select-menu button,
  .searchbtn {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  .stat b {
    font-size: 28px !important;
  }

  .stat small {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .title,
  .card .title,
  .info-card .title {
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 800;
  }

  .price {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  .meta,
  .card .meta,
  .info-card .meta {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .badge,
  .tag {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  .kennel b,
  .breed b,
  .city b,
  .adv b,
  .review-top b,
  .footer h4 {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  .kennel small,
  .breed small,
  .city small,
  .review-card small,
  .footer p,
  .footer a,
  .footer-bottom p {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .stars,
  .review-top span {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .review-card p,
  .adv p,
  .cta p {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .cta .btn {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: clamp(28px, 8.4vw, 32px) !important;
  }

  .section h2,
  .cta h2 {
    font-size: clamp(21px, 6.4vw, 25px) !important;
  }

  .mobile-menu a,
  .mobile-menu-group a,
  .field b,
  .select-menu button,
  .searchbtn {
    font-size: 15px !important;
  }

  .title,
  .card .title,
  .info-card .title,
  .price {
    font-size: 14px !important;
  }

  .meta,
  .card .meta,
  .info-card .meta {
    font-size: 12.5px !important;
  }

  .kennel b,
  .breed b,
  .city b,
  .adv b,
  .review-top b,
  .footer h4 {
    font-size: 15px !important;
  }

  .kennel small,
  .breed small,
  .city small,
  .review-card small,
  .footer p,
  .footer a,
  .footer-bottom p {
    font-size: 13px !important;
  }

  .review-card p,
  .adv p,
  .cta p {
    font-size: 14px !important;
  }
}

/* Final fix: mobile menu without side gutters and rounded corners */
@media (max-width: 1024px) {
  .mobile-menu,
  .mobile-menu.is-open {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
  }

  .mobile-menu-group,
  .mobile-menu a,
  .mobile-menu .mobile-add,
  body > .mobile-add {
    border-radius: 0 !important;
  }

  body > .mobile-add {
    left: 0 !important;
    right: 0 !important;
    bottom: env(safe-area-inset-bottom) !important;
    width: 100vw !important;
  }
}

/* Simple compact mobile menu override */
@media (max-width: 1024px) {
  .mobile-menu {
    top: var(--mobile-header-h, 68px) !important;
    height: calc(100dvh - var(--mobile-header-h, 68px)) !important;
    max-height: calc(100dvh - var(--mobile-header-h, 68px)) !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px 14px calc(84px + env(safe-area-inset-bottom)) !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .mobile-menu-group {
    gap: 2px !important;
    padding: 8px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }

  .mobile-title {
    margin: 0 0 4px !important;
    padding: 0 2px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    color: #8a8a8a !important;
  }

  .mobile-menu a,
  .mobile-menu-group a {
    min-height: 36px !important;
    padding: 7px 2px !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    color: #231f20 !important;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible {
    background: #f7f7f7 !important;
    color: #ff6400 !important;
  }

  body > .mobile-add,
  .mobile-menu .mobile-add {
    min-height: 48px !important;
    left: 14px !important;
    right: 14px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    background: #ff6400 !important;
    box-shadow: none !important;
  }
}

/* Elegant minimal mobile menu override */
@media (max-width: 1024px) {
  body.menu-open {
    overflow: hidden !important;
  }

  .mobile-menu,
  .mobile-menu.is-open {
    left: 0 !important;
    right: 0 !important;
    top: var(--mobile-header-h, 64px) !important;
    width: 100vw !important;
    height: calc(100dvh - var(--mobile-header-h, 64px)) !important;
    max-height: calc(100dvh - var(--mobile-header-h, 64px)) !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    align-content: start !important;
    gap: 4px !important;
    padding: 16px 18px calc(92px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
      radial-gradient(circle at 95% 0%, rgba(255, 100, 0, .08), transparent 34%),
      linear-gradient(180deg, #fffdfb 0%, #ffffff 48%, #fff9f4 100%) !important;
    box-shadow: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .mobile-menu.is-open {
    display: grid !important;
  }

  .mobile-menu::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
  }

  .mobile-menu-group {
    display: grid !important;
    gap: 1px !important;
    padding: 10px 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-menu-group + .mobile-menu-group {
    margin-top: 4px !important;
  }

  .mobile-title,
  .mobile-menu-group b {
    margin: 0 0 5px !important;
    padding: 0 4px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: rgba(35, 31, 32, .38) !important;
  }

  .mobile-menu a,
  .mobile-menu-group a {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #231f20 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 650 !important;
    letter-spacing: -.01em !important;
    transition: background-color .18s ease, color .18s ease, transform .18s ease !important;
  }

  .mobile-menu a::after,
  .mobile-menu-group a::after {
    content: none !important;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible,
  .mobile-menu a:active {
    background: rgba(255, 100, 0, .08) !important;
    color: #ff6400 !important;
    outline: 0 !important;
    transform: translateX(2px) !important;
  }

  body > .mobile-add,
  .mobile-menu .mobile-add {
    left: 18px !important;
    right: 18px !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    min-height: 50px !important;
    justify-content: center !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #ff8a1d 0%, #ff6400 100%) !important;
    box-shadow: 0 14px 34px rgba(255, 100, 0, .22) !important;
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    letter-spacing: -.01em !important;
  }

  body > .mobile-add:hover,
  body > .mobile-add:focus-visible,
  .mobile-menu .mobile-add:hover,
  .mobile-menu .mobile-add:focus-visible {
    background: linear-gradient(135deg, #ff9430 0%, #ff6400 100%) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    outline: 0 !important;
  }
}

/* Mobile menu hover full-width minimalist highlight */
@media (max-width: 768px) {
  .mobile-menu a,
  .mobile-menu-group a {
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible,
  .mobile-menu a:active,
  .mobile-menu-group a:hover,
  .mobile-menu-group a:focus-visible,
  .mobile-menu-group a:active {
    background: transparent !important;
    border-color: rgba(255, 100, 0, 0.35) !important;
    color: #ff6400 !important;
    transform: none !important;
  }
}


@media (max-width: 1024px) {
    /* Старый костыль [class*=cat] матчил подстроку в catalog-классах —
       сужено до префикса cat- (иначе сбивало паддинги на <1024px) */
    .district-card,
    .cat-card,
    .types-card,
    .county-card,
    [class*="district-"],
    [class*="cat-"] {
        padding: 14px;
    }

    .district-card h3,
    .cat-card h3,
    .types-card h3,
    .county-card h3,
    [class*="district-"] h3,
    [class*="cat-"] h3 {
        font-size: 18px !important;
        line-height: 1.3;
        color: #000 !important;
    }

    .district-card p,
    .cat-card p,
    .types-card p,
    .county-card p,
    [class*="district-"] p,
    [class*="cat-"] p {
        font-size: 14px !important;
        line-height: 1.4;
        color: #555 !important;
    }
}







/* CLEAN FINAL CARD TITLE COLORS */
.district-card .title,
.district-card h3,
.cat-card .title,
.cat-card h3,
.types-card .title,
.types-card h3,
.county-card .title,
.county-card h3,
[class*="district-"] .title,
[class*="district-"] h3,
[class*="cat-"] .title,
[class*="cat-"] h3 {
    color: #000000 !important;
    transition: color .2s ease;
}

.district-card:hover .title,
.district-card:hover h3,
.cat-card:hover .title,
.cat-card:hover h3,
.types-card:hover .title,
.types-card:hover h3,
.county-card:hover .title,
.county-card:hover h3,
[class*="district-"]:hover .title,
[class*="district-"]:hover h3,
[class*="cat-"]:hover .title,
[class*="cat-"]:hover h3 {
    color: #ff7a00 !important;
}

/* mobile/tablet readability */
@media (max-width: 1024px) {
    .district-card h3,
    .district-card .title,
    .cat-card h3,
    .cat-card .title,
    .types-card h3,
    .types-card .title,
    .county-card h3,
    .county-card .title,
    [class*="district-"] h3,
    [class*="district-"] .title,
    [class*="cat-"] h3,
    [class*="cat-"] .title {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    .district-card p,
    .cat-card p,
    .types-card p,
    .county-card p,
    [class*="district-"] p,
    [class*="cat-"] p {
        color: #555555 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
}

/* Fix heading icons paths after CSS modularization */
.section h2.dec-cat::before,
.section h2.dec-dog::before,
.section h2.map::before {
  content: "" !important;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: -3px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.section h2.dec-cat::before {
  background-image: url("../icons/dec-cat.png") !important;
}

.section h2.dec-dog::before {
  background-image: url("../icons/dec-dog.png") !important;
}

.section h2.map::before {
  background-image: url("../icons/map.png") !important;
}

/* Title alignment fix for <=900px */
@media (max-width: 900px) {
  .hero h1,
  .catalog-title-block h1,
  .section-head h2 {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-self: start !important;
    align-self: start !important;
  }
}

/* ==========================================================================
   Stage 3a additions (главная страница)
   1) .breed--text — карточка породы без фото (в БД нет картинок пород);
   2) .seo-text — SEO-блоки внизу главной (тексты со старой страницы).
   ========================================================================== */
.breed.breed--text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 64px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #eee6de;
  border-radius: 16px;
}

.breed.breed--text b {
  font-size: 15px;
  color: #231f20;
}

.breed.breed--text:hover {
  border-color: #ffc49a;
  background: #fff8f1;
}

/* --- SEO-текст (главная) --- */
.seo-text {
  padding-top: 8px;
}

.seo-text h2 {
  font-size: 24px;
  margin: 18px 0 10px;
}

.seo-text p {
  color: #777;
  line-height: 1.7;
  margin: 0 0 12px;
}

.seo-text .seo-text-list {
  margin: 0 0 16px;
  padding-left: 20px;
  color: #777;
  line-height: 1.7;
}

.seo-text .seo-text-list li {
  margin-bottom: 8px;
}

/* Hero-поиск: кнопка «Найти питомник» с лупой (по запросу, Этап 3+) */
.searchbtn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   SEO-блок главной (модификатор --home) и каталогов (category/poroda/list):
   карточка на кремовом фоне, зелёные галочки-маркеры списков, спокойный
   текст. Селекторы ul/h3 покрывают и статичную разметку главной
   (.seo-text-list), и seo-контент из БД (голые ul, заголовки h2/h3).
   ========================================================================== */
.section.seo-text--home {
  margin-top: -6px;
  margin-bottom: 44px; /* отступ до футера */
  padding: 26px 28px;
  border: 1px solid #f7ece3;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff8f1 0%, #fffdfb 100%);
}

.section.seo-text--home h2 {
  margin: 20px 0 12px;
  color: #231f20;
  font-size: 22px;
}

.section.seo-text--home h2:first-child {
  margin-top: 0;
}

.section.seo-text--home h3 {
  margin: 18px 0 10px;
  color: #231f20;
  font-size: 18px;
}

.section.seo-text--home p {
  color: #6b5d52;
  line-height: 1.7;
  margin: 0 0 12px;
}

.section.seo-text--home ul,
.section.seo-text--home .seo-text-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 6px;
}

.section.seo-text--home ul li,
.section.seo-text--home .seo-text-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #55503f;
  line-height: 1.65;
}

.section.seo-text--home ul li:last-child,
.section.seo-text--home .seo-text-list li:last-child {
  margin-bottom: 0;
}

.section.seo-text--home ul li::before,
.section.seo-text--home .seo-text-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: #f0f7e6;
  color: #7bb52d;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .section.seo-text--home {
    padding: 18px 16px;
    border-radius: 18px;
  }
}

/* ==========================================================================
   Рекламный блок Яндекс.РТБ (.rtb-block) — одинаковые отступы сверху и снизу.
   Отступ задаёт сам блок (padding), а margin'ы соседних секций обнуляются:
   без этого верхний отступ съедала бы .info-section (34px), нижний — отрицательный
   margin-top у .seo-text--home (-6px), и симметрия ломалась бы.
   ========================================================================== */
.rtb-block {
  padding: 24px 0
}

.rtb-block+.seo-text--home {
  margin-top: 0
}

.info-section:has(+.rtb-block),
.cta:has(+.rtb-block) {
  margin-bottom: 0
}

/* Самые узкие экраны (≤400px): плитки статистики питомников («N питомников
   кошек/собак») — во всю ширину. Плашки «Популярно» остаются по 2 в строке
   (правило для ≤640px выше) — по 1 в строке не делаем */
@media (max-width: 400px) {
  .stats {
    grid-template-columns: 1fr
  }

  /* Контент полноширинных плиток статистики — по центру */
  .stat {
    justify-content: center
  }
}

/* карточка объявления на главной: акценты */
.card .price{color:#ff6400;font-weight:800}
.card .title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .meta.is-boy{color:#3b82c4;font-weight:700}
.card .meta.is-girl{color:#e75480;font-weight:700}

/* карточки «Полезная информация» на главной: описание + «Читать →» */
.info-card .info-desc{margin-top:2px;color:#6f645a;font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.info-card .info-more{margin-top:auto;padding-top:6px;color:#ff6400;font-size:13px;font-weight:800}
.info-card .card-body{display:flex;flex-direction:column;flex:1;min-height:0}
.info-card:hover{border-color:#ffc49a;box-shadow:0 14px 28px rgba(255,106,0,.12)}
.info-card:hover .info-more{text-decoration:underline}
