/* Test version 2026-05-18: tighter, clearer, more conversion-focused layout */
:root {
  --bg: #fff8f1;
  --surface-soft: #fff0e4;
  --ink: #241713;
  --muted: #5f5049;
  --primary: #ee724a;
  --primary-dark: #c95231;
  --secondary: #319895;
  --secondary-dark: #217775;
  --shadow: 0 18px 54px rgba(95, 62, 42, 0.12);
  --shadow-card: 0 14px 36px rgba(95, 62, 42, 0.10);
  --radius-lg: 28px;
  --radius-md: 22px;
  --section-space: clamp(14px, 2.4vw, 34px);
  --section-pad-y: clamp(24px, 4vw, 54px);
  --section-gap: clamp(18px, 3vw, 34px);
  --section-heading-shift: 20px;
  --font-base: 16px;
  --font-sm: 15px;
  --font-accent: 17px;
  --font-heading: clamp(34px, 3.2vw, 48px);
}

body {
  color: var(--ink);
}

p,
.blog_section .box .detail-box p,
.about_section .detail-box p,
.slider_section .detail-box p,
.contact_item {
  color: var(--muted);
}

.header_section {
  background: rgba(255, 248, 241, 0.92);
}

.custom_nav-container {
  min-height: 82px;
  padding: 6px 0;
  gap: clamp(14px, 2vw, 28px);
}

.navbar-brand {
  margin-left: var(--section-heading-shift);
}

.navbar-brand img {
  width: 346px;
  max-width: 100%;
}

.header_links {
  gap: 6px;
}

.header_links a,
.header_phone,
.slider_section .detail-box .btn-box a,
.blog_section .box .detail-box a,
.contact_actions a {
  min-height: 42px;
  padding: 9px 17px;
}

.header_links a {
  color: #4f423c;
}

.header_phone {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
  box-shadow: 0 10px 24px rgba(49, 152, 149, .18);
}

.header_phone:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.hero_area {
  padding-top: 96px;
}

.slider_section {
  padding: clamp(22px, 3.4vw, 44px) 0;
}

.slider_section .detail-box {
  padding-left: var(--section-heading-shift);
}

.slider_section .detail-box h1 {
  line-height: .98;
}

.slider_section .detail-box p {
  max-width: 560px;
  margin: 18px 0 18px;
  line-height: 1.62;
}

.hero_trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}

.hero_trust > span,
.hero_award {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(38, 23, 19, .09);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: #4e423c;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(38, 23, 19, .06);
}

.hero_award {
  min-height: 58px;
  padding: 7px 13px 7px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.90);
  border-color: rgba(238, 114, 74, .24);
}

.hero_award img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hero_award span {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.hero_award strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.hero_award small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.slider_section .img-box {
  min-height: 370px;
}

.slider_section .img-box img {
  width: min(92%, 540px);
  max-height: 455px;
}

.slider_section .carousel-indicators {
  justify-content: flex-start;
  padding-left: calc(var(--section-heading-shift) + 15px);
  margin-top: 18px;
}

.slider_section .carousel-indicators li {
  width: 34px;
  height: 6px;
  background: rgba(49, 152, 149, .28);
}

.slider_section .carousel-indicators li.active {
  width: 46px;
  height: 6px;
  background: var(--primary);
}

.blog_section.long_section,
.contact_section,
.about_section {
  box-shadow: var(--shadow);
}

.blog_section .row {
  margin-top: 28px;
}

.blog_section .box {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.blog_section .box:hover {
  border-color: rgba(238, 114, 74, .22);
}

.blog_section .box .img-box {
  height: 210px;
}

.blog_section .box .detail-box {
  padding: 22px;
}

.blog_section .box .detail-box h5 {
  margin-bottom: 10px;
}

.service_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.service_tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(49, 152, 149, .10);
  color: var(--secondary-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.contact_section .form_container,
.contact_section .map_container,
.contact_section .map_container .map {
  min-height: 350px;
}

.contact_section .form_container {
  padding: 28px;
}

.contact_cards {
  gap: 12px;
}

.contact_item {
  background: rgba(255,255,255,.78);
  align-items: center;
  padding: 9px 17px;
}

.contact_item > span {
  display: flex;
  align-items: center;
}

.contact_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.contact_actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.contact_actions .btn1 {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  box-shadow: 0 12px 28px rgba(238, 114, 74, .22);
}

.contact_actions .btn2 {
  background: rgba(49, 152, 149, .12);
  color: var(--secondary-dark);
  border: 1px solid rgba(49, 152, 149, .32);
}

.contact_actions a:hover {
  transform: translateY(-2px);
}

.contact_hours {
  align-items: center;
}

.contact_hours span {
  font-weight: 400;
}

.contact_section .map_container .map {
  isolation: isolate;
}

.map_visual {
  z-index: 0;
  pointer-events: none;
}

.contact_section .map_container iframe,
.contact_section .map_container ymaps {
  z-index: 2;
}

.map_open_link {
  z-index: 4;
}

.about_section .about_float_img {
  width: 34%;
  max-width: 360px;
}

.about_section .detail-box p {
  line-height: 1.72;
}

.about_facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.about_facts span {
  padding: 14px 16px;
  border: 1px solid rgba(38, 23, 19, .08);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-weight: 700;
}

.about_facts strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.mobile_sticky_cta {
  display: none;
}

.footer_links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 22px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.footer_links a {
  color: var(--secondary-dark);
  text-decoration: none;
}

.footer_links a:hover {
  color: var(--primary-dark);
}

.footer_links + p {
  padding-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 991px) {
  :root {
    --section-heading-shift: 0px;
    --font-heading: clamp(30px, 5vw, 40px);
  }

  .navbar-brand {
    margin-left: 0;
  }

  .custom_nav-container {
    min-height: 76px;
  }

  .navbar-brand img {
    width: clamp(260px, 32vw, 316px);
  }

  .hero_area {
    padding-top: 90px;
  }

  .slider_section .carousel-indicators {
    justify-content: center;
    padding-left: 0;
  }

  .about_facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --font-base: 15.5px;
    --font-heading: clamp(27px, 7.6vw, 34px);
  }

  html {
    scroll-padding-top: 88px;
  }

  .custom_nav-container {
    min-height: 66px;
    justify-content: center;
  }

  .navbar-brand {
    margin-left: auto;
    margin-right: auto;
  }

  .navbar-brand img {
    width: min(260px, 72vw);
  }

  .hero_area {
    padding-top: 82px;
  }

  .slider_section .detail-box,
  .services_heading,
  .about_section .about_heading {
    padding-left: 0;
    margin-left: 0;
  }

  .slider_section .detail-box h1 {
    white-space: normal;
  }

  .hero_trust > span,
  .hero_award {
    font-size: 13px;
  }

  .slider_section .img-box {
    min-height: 235px;
    margin-top: 6px;
  }

  .slider_section .img-box img {
    max-height: 285px;
  }

  .blog_section .box .img-box {
    height: 190px;
  }

  .contact_actions a {
    flex: 1 1 160px;
  }

  .contact_section .map_container,
  .contact_section .map_container .map {
    min-height: 280px;
  }

  .contact_section .map_container .map {
    height: 280px;
  }

  .about_section .about_float_img {
    width: 100%;
    max-width: none;
  }

  .mobile_sticky_cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 80;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 9px;
    padding: 8px;
    border: 1px solid rgba(238, 114, 74, .18);
    border-radius: 22px;
    background: rgba(255, 248, 241, .94);
    box-shadow: 0 18px 44px rgba(95, 62, 42, .18);
    backdrop-filter: blur(14px);
  }

  .mobile_sticky_cta a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
  }

  .mobile_sticky_cta a:first-child {
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 12px 28px rgba(238, 114, 74, .22);
  }

  .mobile_sticky_cta a:last-child {
    color: var(--secondary-dark);
    background: rgba(49, 152, 149, .12);
    border: 1px solid rgba(49, 152, 149, .32);
  }

  .mobile_sticky_cta a:active {
    transform: translateY(1px);
  }

  .footer_section p {
    padding-bottom: 86px;
  }
}

@media (max-width: 380px) {
  .hero_trust {
    gap: 6px;
  }
}


/* Revision 2026-05-18-test2 */
/* Autoplay carousel via fade disappear/appear, without horizontal slide. */
#customCarousel.carousel-fade .carousel-inner {
  overflow: hidden;
}

#customCarousel.carousel-fade .carousel-item {
  opacity: 0;
  transform: none !important;
  transition: opacity .55s ease-in-out !important;
}

#customCarousel.carousel-fade .carousel-item.active,
#customCarousel.carousel-fade .carousel-item-next.carousel-item-left,
#customCarousel.carousel-fade .carousel-item-prev.carousel-item-right {
  opacity: 1;
  transform: none !important;
}

#customCarousel.carousel-fade .active.carousel-item-left,
#customCarousel.carousel-fade .active.carousel-item-right {
  opacity: 0;
  transform: none !important;
}

.contact_actions .contact_route {
  white-space: nowrap;
}

/* The map itself remains interactive; the extra custom "Open map" pill was removed. */
.map_open_link {
  display: none !important;
}

@media (max-width: 767px) {
  /* On mobile keep only the sticky CTA plus meaningful conversion buttons: Записаться and Открыть маршрут. */
  .header_phone,
  .slider_section .btn-box .btn2,
  .blog_section .box .detail-box a.btn2,
  .contact_actions .contact_call {
    display: none !important;
  }

  .contact_actions .contact_signup,
  .contact_actions .contact_route,
  .slider_section .btn-box .btn1,
  .blog_section .box .detail-box a.btn1,
  .blog_section .box .detail-box a:not(.btn2) {
    display: inline-flex !important;
  }
}


.hero_award_static {
  position: absolute;
  top: 18px;
  right: clamp(18px, 3vw, 34px);
  z-index: 6;
  width: 188px;
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(238, 114, 74, .26);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(95, 62, 42, .13);
  backdrop-filter: blur(10px);
}

.hero_award_static img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hero_award_static span {
  display: grid;
  gap: 2px;
  line-height: 1.08;
}

.hero_award_static strong {
  font-size: 14px;
  font-weight: 900;
}

.hero_award_static small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 767px) {
  .hero_award_static {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 0 18px 14px;
  }
}


/* Revision 2026-05-18-test3 */
/* Badge is now the original PNG only, pinned to the top-right of the slider image. */
.hero_award_static,
.hero_award {
  display: none !important;
}

.slider_section .img-box {
  isolation: isolate;
}

.slider_award_badge {
  position: absolute;
  top: clamp(10px, 2vw, 22px);
  right: clamp(6px, 1.8vw, 24px);
  z-index: 3;
  width: clamp(78px, 8vw, 118px);
  display: block;
  filter: drop-shadow(0 12px 18px rgba(38, 23, 19, .20));
}

.slider_award_badge img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: block;
  object-fit: contain;
  filter: none !important;
}

.about_cta {
  display: flex;
  margin-top: 24px;
}

.about_cta .about_signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(238, 114, 74, .22);
}

.about_cta .about_signup:hover {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .slider_award_badge {
    top: 6px;
    right: 8px;
    width: clamp(74px, 24vw, 96px);
  }

  .about_cta .about_signup {
    display: inline-flex !important;
    width: 100%;
  }
}


/* Fine tune test3 badge placement: keep the original PNG inside the top-right corner of the pet image. */
.slider_award_badge {
  top: clamp(30px, 3.2vw, 42px);
  right: clamp(38px, 4.2vw, 58px);
  width: clamp(64px, 6vw, 84px);
}

@media (max-width: 767px) {
  .slider_award_badge {
    top: 8px;
    right: 18px;
    width: clamp(62px, 20vw, 82px);
  }
}


/* Revision 2026-05-18-test22 */
/* Desktop badge is fixed to the slider module; mobile badges stay in the image layer below text. */
:root {
  --award-badge-desktop-w: clamp(86px, 8.1vw, 104px);
  --award-badge-mobile-w: 68px;
}


@media (min-width: 768px) {
  .slider_section.long_section {
    min-height: 550px;
    overflow: hidden;
  }

  .slider_award_badge_mobile {
    display: none !important;
  }

  .slider_section.long_section > .slider_award_badge_desktop {
    display: block !important;
    top: calc(var(--award-badge-desktop-w) * 0.4);
    bottom: auto;
    right: calc(var(--award-badge-desktop-w) * 0.2);
    width: var(--award-badge-desktop-w);
    z-index: 5;
  }
}

@media (max-width: 767px) {
  .slider_award_badge_desktop {
    display: none !important;
  }

  .slider_section .img-box > .slider_award_badge_mobile {
    display: block !important;
    top: calc(var(--award-badge-mobile-w) * -0.96);
    bottom: auto;
    right: 0;
    width: var(--award-badge-mobile-w);
    z-index: 5;
  }
}

/* Desktop/wide-screen frame: keep key slider/header controls within the 1280px composition. */
@media (min-width: 1200px) {
  .header_section .container {
    width: calc(100% - 92px);
    max-width: 1188px;
    margin-left: auto;
    margin-right: auto;
  }

  .slider_section.long_section > .slider_award_badge_desktop {
    right: max(calc((100vw - 1280px) / 2 + 24px), calc(var(--award-badge-desktop-w) * 0.2));
  }

  .slider_section .carousel-indicators {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    padding-left: 0;
  }
}

.hero_trust_first_visit {
  flex-direction: column;
  align-items: flex-start;
}

.hero_trust_first_visit > span {
  width: fit-content;
}

/* Keep desktop slide headings aligned even when slide text heights differ. */
@media (min-width: 768px) {
  .slider_section .carousel-item .row {
    min-height: 410px;
    align-items: flex-start;
  }
}

/* Highlight discount size inside slider text. */
.slider_section .detail-box p .discount_value {
  display: inline-block;
  padding: 0 .32em;
  border-radius: .55em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: 1.14em;
  font-weight: 900;
  line-height: 1.22;
  box-shadow: 0 8px 18px rgba(238, 114, 74, .22);
}

@media (max-width: 767px) {
  .slider_section .detail-box p br.mobile-keep-break {
    display: block !important;
    content: "";
    margin-bottom: .18em;
  }
}

/* Mobile: keep signup only in "Как нас найти" (contact section). */
@media (max-width: 767px) {
  .hero_signup,
  .service_signup,
  .about_signup {
    display: none !important;
  }

  .contact_actions .contact_signup {
    display: inline-flex !important;
  }
}


/* Strong mobile specificity: hide signup everywhere except contact section. */
@media (max-width: 767px) {
  .slider_section .detail-box .btn-box a.hero_signup,
  .blog_section .box .detail-box a.service_signup,
  .about_section a.about_signup {
    display: none !important;
  }

  .contact_section .contact_actions a.contact_signup {
    display: inline-flex !important;
  }
}
