/* =========================================================
   UI polish layer (spacing, adaptive, cards, forms, galleries)
   Version: 1.1.4
   ========================================================= */

:root {
  --stroy-yellow: #ffc700;
  --stroy-ink: #2b2835;
  --stroy-muted: rgba(43, 40, 53, 0.72);
  --stroy-line: rgba(43, 40, 53, 0.12);
  --stroy-soft: #f7f7f5;
  --stroy-radius: 12px;
  --stroy-radius-sm: 9px;
  --stroy-shadow: 0 14px 40px rgba(20, 18, 28, 0.10);
  --stroy-container-pad: 15px;
  --stroy-section-y: 64px;
  --stroy-section-y-sm: 40px;
}

/* ---- Base stability ---- */
html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* Prevent accidental horizontal scroll on mobile */
@media (max-width: 991px) {
  html,
  body {
    overflow-x: hidden; /* not clip: clip/stacking can hide offer__background z-index:-1 */
  }

  .container {
    max-width: 100%;
  }
}

/* ---- Section rhythm ---- */
.projects,
.reviews,
.actions,
.tech,
.how,
.faq,
.openform,
.about,
.pricelist,
#dop-services {
  scroll-margin-top: 96px;
}

@media (max-width: 991px) {
  .projects,
  .reviews,
  .actions,
  .tech,
  .how,
  .faq,
  .openform,
  .about,
  .pricelist,
  #dop-services {
    scroll-margin-top: 72px;
  }
}

/* Titles */
.projects .title,
.reviews .title,
.reviews_title,
.actions .title,
.tech .title,
.how .title,
.faq .title,
.openform__title,
.footer .title,
.h2 {
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  h2,
  .title,
  .h2,
  .openform__title,
  .reviews_title {
    font-size: clamp(1.55rem, 6.2vw, 2rem) !important;
    line-height: 1.18 !important;
  }
}

/* ---- Header polish (non-destructive) ---- */
.header {
  background: #fff;
}

.header._fixed {
  box-shadow: 0 8px 24px rgba(20, 18, 28, 0.08);
}

@media (min-width: 992px) {
  .header__menu-wrap {
    border-top: 1px solid var(--stroy-line);
  }

  .header__phone {
    white-space: nowrap;
  }
}

/* Do not clamp logo height globally — breaks tablet/mobile header */
.logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

/* ---- Buttons ---- */
.but,
a.but,
button.but {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.but:hover,
a.but:hover,
button.but:hover {
  transform: translateY(-1px);
}

.but:active,
a.but:active,
button.but:active {
  transform: translateY(0);
}

/* ---- Cards: projects / reviews / dop-services ---- */
#projects-slider .projects__slide,
#reviews-slider .reviews__review,
#dop-services__slider .slide {
  background: #fff;
  border: 1px solid var(--stroy-line);
  border-radius: var(--stroy-radius);
  box-shadow: var(--stroy-shadow);
  overflow: hidden;
  box-sizing: border-box;
}

#projects-slider .projects__slide {
  padding: 12px 12px 16px;
}

#reviews-slider .reviews__review {
  padding: 12px 12px 18px;
}

#dop-services__slider .slide {
  padding: 0;
}

#projects-slider .gallery-wrap,
#reviews-slider .gallery-wrap {
  border-radius: 10px;
  overflow: hidden;
  background: var(--stroy-soft);
}

#projects-slider .gallery .slick-slide a,
#reviews-slider .gallery .slick-slide a,
#projects-slider .gallery .slick-slide img,
#reviews-slider .gallery .slick-slide img {
  border-radius: 0;
}

/* Consistent media height */
#projects-slider .gallery .slick-slide,
#projects-slider .gallery .slick-slide a {
  height: 210px !important;
}

#projects-slider .gallery .slick-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

#reviews-slider .gallery .slick-slide,
#reviews-slider .gallery .slick-slide a {
  height: 220px !important;
}

#reviews-slider .gallery .slick-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.projects__slide-title {
  margin-top: 14px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.projects__slide-info {
  color: var(--stroy-muted);
  line-height: 1.35;
}

.reviews__review-place,
.reviews__review-service {
  color: var(--stroy-muted);
}

.reviews__review-text {
  line-height: 1.45;
}

.reviews__review-showmore {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  font-weight: 700;
  color: var(--stroy-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile project image proxy */
.gallery-image a {
  border-radius: 10px;
  overflow: hidden;
  background: var(--stroy-soft);
}

.gallery-image a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transform: none !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
}

@media (max-width: 450px) {
  .gallery-image a {
    height: 200px;
  }

  #projects-slider .projects__slide,
  #reviews-slider .reviews__review {
    padding: 10px 10px 14px;
  }
}

/* Slider nav
   IMPORTANT: .slider-next uses scaleX(-1). Hover must not reset transform. */
.slider-nav button,
.slider-prev,
.slider-next {
  transition: opacity 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.slider-nav button:hover,
.slider-prev:hover,
.slider-next:hover {
  filter: brightness(1.03);
  box-shadow: 0 6px 16px rgba(20, 18, 28, 0.16);
}

.slider-wrap {
  position: relative;
}

/* Gaps between variable-width slides */
#projects-slider .slick-slide,
#reviews-slider .slick-slide,
#dop-services__slider .slick-slide {
  margin-right: 16px;
}

@media (max-width: 767px) {
  #projects-slider .slick-slide,
  #reviews-slider .slick-slide,
  #dop-services__slider .slick-slide {
    margin-right: 12px;
  }
}

/* ---- Offer / hero ---- */
.offer .buttons {
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 650px) {
  .offer .buttons > a.but {
    width: 100% !important;
    max-width: 100%;
    justify-content: center;
  }
}

.offer .descr,
.offer__subtitle,
.offer__subtitle p {
  line-height: 1.45;
}

/* Service price cards */
.service-price-card,
.pricelist--service-price-design .pricelist__wrap {
  border-radius: 14px;
}

.service-price-card__gallery,
.gallery-bb {
  border-radius: 12px;
  overflow: hidden;
}

.service-price-card__order,
.service-price-card__estimate {
  min-height: 44px;
}

@media (max-width: 767px) {
  .pricelist--service-price-design {
    padding-top: 36px;
    padding-bottom: 24px;
  }

  .pricelist--service-price-design .pricelist__wrap {
    padding: 18px 14px 16px;
  }
}

/* ---- Forms ---- */
.stroy-form input[type="text"],
.stroy-form input[type="tel"],
.stroy-form input[type="email"],
.stroy-form textarea,
.stroy-form2 input[type="text"],
.stroy-form2 input[type="tel"],
.stroy-form2 input[type="email"],
.stroy-form2 textarea,
.modal__content input[type="text"],
.modal__content input[type="tel"],
.modal__content input[type="email"],
.modal__content textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  border-radius: 10px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stroy-form input:focus,
.stroy-form2 input:focus,
.stroy-form textarea:focus,
.stroy-form2 textarea:focus,
.modal__content input:focus,
.modal__content textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.28);
}

.stroy-form__status {
  min-height: 1.2em;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.stroy-attachments {
  border: 1px dashed rgba(43, 40, 53, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.55);
}

.stroy-attachments__label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.stroy-privacy {
  align-items: flex-start;
}

.stroy-privacy__checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

/* Modal polish */
.modal__content.fancybox__content {
  border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(20, 18, 28, 0.22) !important;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(43, 40, 53, 0.06);
}

.modal__close:hover {
  background: rgba(43, 40, 53, 0.12);
}

@media (max-width: 575px) {
  .modal__content.fancybox__content {
    width: min(94vw, 420px) !important;
    padding: 18px 14px 16px !important;
  }
}

/* Openform section */
.openform {
  position: relative;
}

.openform .container {
  gap: 18px;
}

@media (max-width: 899px) {
  .openform .stroy-two-cols,
  .modal__content .stroy-two-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .openform .stroy-form--discount .bottom,
  .openform .stroy-form--discount .item {
    width: 100%;
  }

  .openform .stroy-form--discount .but,
  .openform .stroy-form--discount button[type="submit"] {
    width: 100%;
  }
}

/* ---- FAQ / content ---- */
.faq__list li,
.faq details,
.faq .faq-item {
  border-radius: 10px;
}

.content img {
  border-radius: 8px;
}

.content p {
  line-height: 1.55;
}

/* Breadcrumbs */
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.breadcrumbs__link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumbs__current {
  color: var(--stroy-muted);
}

/* ---- Footer ---- */
.footer {
  position: relative;
}

.footer__contacts-info li {
  line-height: 1.4;
}

.footer a:hover {
  opacity: 0.85;
}

.widget-circle {
  z-index: 40;
}

/* ---- Fancybox gallery thumbs (bottom strip) ---- */
.fancybox__carousel .fancybox__slide {
  padding: 8px;
}

.fancybox__thumbs {
  padding-top: 8px;
}

.fancybox__thumbs .fancybox__thumb {
  border-radius: 6px;
  overflow: hidden;
}

/* ---- Loading overlay should never stick hard ---- */
body._loading::before {
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

body:not(._loading)::before {
  opacity: 0 !important;
  visibility: hidden;
  z-index: -1 !important;
}

/* ---- Utility: safer section paddings on small screens ---- */
@media (max-width: 767px) {
  .projects,
  .reviews,
  .actions,
  .tech,
  .how,
  .faq,
  .about {
    padding-top: max(28px, env(safe-area-inset-top, 0px));
  }

  .footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  }

  /* Keep floating widgets away from edges */
  .widget-circle {
    right: 12px !important;
    bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ---- Region switcher compact on mobile ---- */
@media (max-width: 767px) {
  .stroy-region-switcher {
    max-width: 100%;
  }
}

/* ---- Fix common image stretching ---- */
.reviews__review-avatar img {
  object-fit: cover;
}

/* Never force contain on offer background images — breaks hero cover */
.tech img,
.how img,
.offer .buttons img,
.offer .descr img,
.offer .sdvs img,
.offer .icon img {
  object-fit: contain;
}

.offer__background img {
  object-fit: cover !important;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
}

/* ---- Cookie banner polish if present ---- */
.cookie-wrapper,
#cookiebanner {
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(20, 18, 28, 0.16);
}

/* ---- Reduce layout shift for main nav arrows ---- */
.slider-prev._middle,
.slider-next._middle {
  flex: 0 0 auto;
}

/* ---- Single service content spacing ---- */
body.single-services .content > * + * {
  margin-top: 0.85em;
}

/* ---- Print / reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .but,
  a.but,
  button.but,
  .slider-nav button,
  .slider-prev,
  .slider-next,
  body._loading::before {
    transition: none !important;
  }
}

/* =========================================================
   Targeted fixes 1.1.5
   1) top menu last item alignment
   2) actions/slider next button hover flip
   3) Sochi service offer buttons overlap
   4) unified breadcrumbs spacing
   5) unified after-content / main spacing
   ========================================================= */

/* ---------- 1. Header top menu baseline (DESKTOP ONLY) ---------- */
@media (min-width: 992px) {
  .header__menu-wrap > .header__menu,
  .header__menu-wrap .header__menu {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center !important;
    justify-content: center;
    gap: 0;
  }

  .header__menu-wrap .header__menu > li,
  .header__menu-wrap .header__menu > .menu-item {
    display: flex !important;
    align-items: center !important;
    float: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 22px !important;
    padding-bottom: 22px !important;
    line-height: 1.15 !important;
  }

  .header__menu-wrap .header__menu > li:not(:last-child) {
    margin-bottom: 0 !important;
    margin-right: clamp(24px, 4vw, 70px) !important;
  }

  .header__menu-wrap .header__menu > li > a {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.15 !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap;
    color: #fff;
  }

  .header__menu-wrap .header__menu > .menu-item-has-children > a::after {
    position: static;
    display: inline-block;
    margin-left: 6px;
    transform: none !important;
    vertical-align: middle;
  }

  .header__menu-wrap .header__menu > li:last-child,
  .header__menu-wrap .header__menu > li:last-child > a {
    margin-top: 0 !important;
    transform: none !important;
    position: relative;
    top: 0 !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .header__menu-wrap .header__menu > li:not(:last-child) {
    margin-right: 28px !important;
  }
}

/* ---------- 2. Actions slider arrows on LEFT/RIGHT (not center pair) ---------- */
/* Markup: <div class="container actions__slider-nav"> with absolute prev/next.
   Nav is full container width; arrows sit on sides. Do NOT flex-center them. */
.actions__slider-wrap {
  position: relative;
}

.actions__slider-nav.container,
.actions__slider-nav {
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: 100% !important;
  max-width: 1306px !important;
  height: 0 !important;
  margin: 0 !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  box-sizing: border-box !important;
  z-index: 5 !important;
  pointer-events: none;
  /* kill earlier flex-center experiment */
  justify-content: unset !important;
  align-items: unset !important;
  gap: 0 !important;
}

.actions__slider-nav .slider-prev,
.actions__slider-nav .slider-next {
  pointer-events: auto;
  position: absolute !important;
  top: 0 !important;
  margin: 0 !important;
  z-index: 6 !important;
}

.actions__slider-nav .slider-prev,
.actions__slider-nav .slider-prev._actions {
  left: 15px !important;
  right: auto !important;
  transform: translateY(-50%) !important;
}

.actions__slider-nav .slider-next,
.actions__slider-nav .slider-next._actions {
  right: 15px !important;
  left: auto !important;
  transform: translateY(-50%) scaleX(-1) !important;
}

.actions__slider-nav .slider-prev:hover,
.actions__slider-nav .slider-prev._actions:hover {
  transform: translateY(-50%) !important;
  filter: brightness(1.03);
  box-shadow: 0 6px 16px rgba(20, 18, 28, 0.16);
}

.actions__slider-nav .slider-next:hover,
.actions__slider-nav .slider-next._actions:hover {
  transform: translateY(-50%) scaleX(-1) !important;
  filter: brightness(1.03);
  box-shadow: 0 6px 16px rgba(20, 18, 28, 0.16);
}

@media screen and (max-width: 575px) {
  .actions__slider-nav.container,
  .actions__slider-nav {
    top: auto !important;
    bottom: 48px !important;
    transform: translateX(-50%) !important;
    height: 40px !important;
  }

  .actions__slider-nav .slider-prev,
  .actions__slider-nav .slider-next {
    top: 50% !important;
  }

  .actions__slider-nav .slider-prev,
  .actions__slider-nav .slider-prev._actions {
    left: 15px !important;
    transform: translateY(-50%) !important;
  }

  .actions__slider-nav .slider-next,
  .actions__slider-nav .slider-next._actions {
    right: 15px !important;
    transform: translateY(-50%) scaleX(-1) !important;
  }
}

/* ---------- 3. Sochi / service offer buttons under banner ---------- */
/* Screenshot issue: two yellow CTAs stacked with overlap under the hero.
   Causes: .but._offer { width:280px; margin-top:13px }, flex/absolute fights,
   and max-content/nowrap rules. Force a real flow layout. */

body.single-services .offer.ups .buttons,
body.stroy-region-sochi .offer.ups .buttons,
body.stroy-region-sochi .offer .buttons,
.offer.ups .buttons,
.offer .buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  justify-content: flex-start !important;
  gap: 14px 16px !important;
  row-gap: 14px !important;
  column-gap: 16px !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  z-index: 3 !important;
  box-sizing: border-box !important;
}

body.single-services .offer.ups .buttons > a,
body.single-services .offer.ups .buttons > a.but,
body.single-services .offer.ups .buttons > a.but._offer,
body.stroy-region-sochi .offer.ups .buttons > a,
body.stroy-region-sochi .offer.ups .buttons > a.but,
body.stroy-region-sochi .offer.ups .buttons > a.but._offer,
.offer.ups .buttons > a,
.offer.ups .buttons > a.but,
.offer.ups .buttons > a.but._offer,
.offer .buttons > a.but._offer {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  float: none !important;
  clear: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 52px !important;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  box-sizing: border-box !important;
  vertical-align: top !important;
}

/* Kill base .but._offer fixed width/margin inside button rows */
body.single-services .offer .buttons > a.but._offer,
body.stroy-region-sochi .offer .buttons > a.but._offer,
.offer.ups .buttons > a.but._offer {
  width: auto !important;
  min-width: min(260px, 100%) !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

body.single-services .offer.ups .buttons > a .offer-button__text,
body.stroy-region-sochi .offer.ups .buttons > a .offer-button__text,
.offer.ups .buttons > a .offer-button__text {
  white-space: normal !important;
  display: inline !important;
}

body.single-services .offer.ups .buttons > a .offer-button__icon,
body.stroy-region-sochi .offer.ups .buttons > a .offer-button__icon,
.offer.ups .buttons > a .offer-button__icon,
.offer.ups .buttons > a > img {
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 10px 0 0 !important;
  object-fit: contain !important;
}

/* Outline/secondary button must stay readable on both dark hero and light overflow */
.offer.ups .buttons > a.but.white,
.offer .buttons > a.but.white {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

/* Sochi secondary banner button stays outline-on-dark (do not repaint to solid white). */
body.stroy-region-sochi .offer.ups .buttons > a.but.white,
body.stroy-region-sochi .offer .buttons > a.but.white {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid #fff !important;
  box-shadow: none !important;
}

body.stroy-region-sochi .offer.ups .buttons > a.but.white:hover,
body.stroy-region-sochi .offer .buttons > a.but.white:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-color: #fff !important;
  opacity: 0.95;
}

body.stroy-region-sochi .offer.ups .buttons > a.but:not(.white),
body.stroy-region-sochi .offer .buttons > a.but:not(.white) {
  background: #ffc700 !important;
  color: #2b2835 !important;
  border: none !important;
}


@media (max-width: 767px) {
  body.single-services .offer.ups .buttons,
  body.stroy-region-sochi .offer.ups .buttons,
  .offer.ups .buttons,
  .offer .buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  body.single-services .offer.ups .buttons > a,
  body.stroy-region-sochi .offer.ups .buttons > a,
  .offer.ups .buttons > a.but,
  .offer.ups .buttons > a.but._offer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* offer__buttons-row fallback (older markup) */
body.stroy-region-sochi .offer__buttons-row,
.offer__buttons-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px 16px !important;
}

body.stroy-region-sochi .offer__buttons-row a.but,
.offer__buttons-row a.but {
  position: static !important;
  flex: 1 1 220px !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: auto !important;
}

/* ---------- 4. Unified breadcrumbs ---------- */
.breadcrumbs {
  margin: 16px 0 24px !important;
  padding: 0 !important;
}

.breadcrumbs > .container {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.breadcrumbs__list,
.breadcrumbs ol,
.breadcrumbs ul {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.breadcrumbs__item,
.breadcrumbs li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

body.single-services .breadcrumbs,
body.page .breadcrumbs,
body.single .breadcrumbs,
body.archive .breadcrumbs,
body.error404 .breadcrumbs,
body.page-template-simple .breadcrumbs,
body.page-template-simple-php .breadcrumbs,
body.stroy-region-sochi .breadcrumbs,
body.stroy-region-moscow .breadcrumbs {
  margin: 16px 0 24px !important;
}

@media (max-width: 767px) {
  .breadcrumbs,
  body.single-services .breadcrumbs,
  body.page .breadcrumbs,
  body.single .breadcrumbs,
  body.page-template-simple .breadcrumbs,
  body.stroy-region-sochi .breadcrumbs {
    margin: 12px 0 18px !important;
  }
}

/* service pages: breadcrumbs own the top spacing */
/* keep native offer paddings; only neutralize accidental top margin */
body.single-services .offer.ups,
body.single-services .offer {
  margin-top: 0 !important;
}

body.single-services main > .breadcrumbs + .offer,
body.single-services main > .breadcrumbs + section {
  margin-top: 0 !important;
}

/* ---------- 5. Unified after-content spacing ---------- */
main {
  display: block;
}

body.single-services .content,
body.page .content,
body.single .content,
.page-template-simple .content,
.page-template-simple-php .content,
.content {
  padding-bottom: 48px !important;
  box-sizing: border-box;
}

/* About / simple pages: if last block is dark advantages strip, no white pad under it */
.page-template-simple .content:has(> .offer_section:last-child),
.page-template-simple-php .content:has(> .offer_section:last-child),
body.page .content:has(> .offer_section:last-child),
.content:has(> .offer_section:last-child),
.content:has(> section.offer_section:last-child) {
  padding-bottom: 0 !important;
}

/* Also when offer_section is nested one level deep as last element */
.page-template-simple .content:has(.offer_section:last-of-type),
.page-template-simple-php .content:has(.offer_section:last-of-type) {
  padding-bottom: 0 !important;
}

/* Ensure advantages strip touches footer without white seam */
.offer_section {
  margin-bottom: 0 !important;
}

.offer_section + *,
main > .offer_section + .footer,
body .offer_section + footer {
  margin-top: 0 !important;
}

/* Fallback for browsers without :has — zero bottom pad on simple pages that use advantages strip via common class on body if present */
body.page-template-simple .content .offer_section:last-child,
body.page-template-simple-php .content .offer_section:last-child {
  margin-bottom: 0 !important;
}

.actions {
  margin-bottom: 0;
  padding-bottom: 40px;
}

.footer {
  margin-top: 0 !important;
}

body.single-services .offer + .content,
body.single-services .offer.ups + .content,
body.single-services .offer + section,
.offer + .content {
  margin-top: 0 !important;
  padding-top: 28px !important;
}

@media (max-width: 767px) {
  body.single-services .content,
  body.page .content,
  body.single .content,
  .content {
    padding-bottom: 36px !important;
  }

  body.single-services .offer + .content,
  .offer + .content {
    padding-top: 20px !important;
  }

  .actions {
    padding-bottom: 28px;
  }
}

.page-template-simple .content--payment-guarantee,
.page-template-simple-php .content--payment-guarantee {
  padding-top: 28px !important;
}

@media (max-width: 767px) {
  .page-template-simple .content--payment-guarantee,
  .page-template-simple-php .content--payment-guarantee {
    padding-top: 20px !important;
  }
}

.actions__slider-wrap,
.slider-wrap {
  max-width: 100%;
}

/* ---------- Dropdown hover fix (DESKTOP ONLY) ---------- */
@media (min-width: 992px) {
  .header__menu-wrap {
    overflow: visible !important;
    position: relative;
    z-index: 50;
  }

  .header__menu-wrap .header__menu {
    overflow: visible !important;
  }

  .header__menu-wrap .header__menu > li.menu-item-has-children,
  .header__menu-wrap .header__menu > .menu-item-has-children {
    position: relative !important;
    overflow: visible !important;
    z-index: 2;
  }

  .header__menu-wrap .header__menu > .menu-item-has-children > a {
    display: flex !important;
    align-items: center !important;
    min-height: 100%;
  }

  .header__menu-wrap .header__menu > li > .sub-menu {
    top: 100% !important;
    left: 0 !important;
    margin-top: 0 !important;
    padding-top: 10px !important;
    z-index: 1000 !important;
  }

  .header__menu-wrap .header__menu > li > .sub-menu::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: -20px !important;
    height: 20px !important;
    background: transparent !important;
    pointer-events: auto !important;
  }

  .header__menu-wrap .header__menu > li:hover > .sub-menu,
  .header__menu-wrap .header__menu > li:focus-within > .sub-menu {
    display: block !important;
  }

  .header__menu-wrap .header__menu .sub-menu li {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
  }

  .header__menu-wrap .header__menu .sub-menu li a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 10px 16px !important;
    white-space: nowrap;
  }

  .header__menu-wrap .header__menu .sub-menu .sub-menu {
    top: 0 !important;
    left: 100% !important;
    margin-top: 0 !important;
    border-radius: 0 10px 10px 0;
  }
}

/* ---------- Mobile / tablet header + hamburger 1.1.10 ---------- */
@media (max-width: 991px) {
  .header__top {
    background: #fff;
  }

  .header__top .container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;
    padding: 10px 15px !important;
    min-height: 64px;
    box-sizing: border-box;
  }

  .header__top .logo._header {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 46%;
    display: flex;
    align-items: center;
  }

  .header__top .logo._header img {
    display: block;
    width: auto !important;
    height: 44px !important;
    max-height: 44px !important;
    max-width: 100%;
    object-fit: contain;
  }

  .header__top .logo._header span {
    display: none !important;
  }

  .header__phone-wrap {
    display: none !important;
  }

  .info_mob {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 10px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    flex: 0 0 auto;
  }

  .info_mob .icon {
    flex: 0 0 34px;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50%;
    background-color: #f3f3f4;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px !important;
  }

  .info_mob .icon.em {
    background-size: 16px 12px !important;
  }

  .info_mob .but,
  .info_mob .but._header {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border-radius: 17px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap;
    width: auto !important;
    box-shadow: none !important;
  }

  .burger {
    display: block !important;
    flex: 0 0 34px;
    width: 34px !important;
    height: 34px !important;
    margin: 0 0 0 2px !important;
    background-size: 22px !important;
    background-position: center !important;
  }

  .header__menu-wrap {
    display: none !important;
  }

  .header__menu-mobile.fancybox__content,
  #modal-menu.header__menu-mobile,
  #modal-menu {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: min(86vw, 340px) !important;
    max-width: 340px !important;
    min-width: 280px !important;
    height: auto !important;
    max-height: calc(100vh - 12px) !important;
    overflow: auto !important;
    background: #fff !important;
    padding: 18px 16px 24px !important;
    border-radius: 0 0 16px 0 !important;
    box-shadow: 0 18px 48px rgba(20, 18, 28, 0.18) !important;
    box-sizing: border-box !important;
  }

  #modal-menu .header__menu-close {
    display: block !important;
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 28px !important;
    height: 28px !important;
    z-index: 2;
  }

  #modal-menu .logo._menu-mobile {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 4px 36px 18px 0 !important;
    max-width: calc(100% - 36px);
  }

  #modal-menu .logo._menu-mobile img {
    width: auto !important;
    height: 40px !important;
    max-height: 40px !important;
    object-fit: contain;
  }

  #modal-menu .logo._menu-mobile span {
    display: none !important;
  }

  #modal-menu .stroy-region-switcher,
  .header__menu-mobile .stroy-region-switcher {
    margin: 0 0 16px !important;
    max-width: 100%;
  }

  #modal-menu .header__menu,
  .header__menu-mobile .header__menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    width: 100% !important;
  }

  #modal-menu .header__menu > li,
  .header__menu-mobile .header__menu > li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(43, 40, 53, 0.08);
    color: #2b2835 !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
  }

  #modal-menu .header__menu > li:last-child,
  .header__menu-mobile .header__menu > li:last-child {
    border-bottom: 0;
  }

  #modal-menu .header__menu > li > a,
  .header__menu-mobile .header__menu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    width: 100% !important;
    padding: 12px 4px !important;
    margin: 0 !important;
    color: #2b2835 !important;
    white-space: normal !important;
    text-decoration: none !important;
    box-sizing: border-box;
  }

  #modal-menu .header__menu .sub-menu,
  .header__menu-mobile .header__menu .sub-menu {
    position: static !important;
    display: none;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 8px !important;
    padding: 0 0 6px 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  #modal-menu .header__menu > li:hover > .sub-menu,
  #modal-menu .header__menu > li:focus-within > .sub-menu,
  #modal-menu .header__menu .sub-menu.active,
  .header__menu-mobile .header__menu > li:hover > .sub-menu,
  .header__menu-mobile .header__menu > li:focus-within > .sub-menu {
    display: block !important;
    top: auto !important;
    left: auto !important;
  }

  #modal-menu .header__menu .sub-menu li,
  .header__menu-mobile .header__menu .sub-menu li {
    border-bottom: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #modal-menu .header__menu .sub-menu li a,
  .header__menu-mobile .header__menu .sub-menu li a {
    display: block !important;
    padding: 8px 4px !important;
    color: rgba(43, 40, 53, 0.82) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    white-space: normal !important;
  }

  #modal-menu .header__menu .menu-item-has-children > a::after,
  .header__menu-mobile .menu-item-has-children > a::after {
    content: "\25BE";
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.55;
  }

  #modal-menu .header__adress,
  #modal-menu .header__adress._menu-mobile,
  .header__menu-mobile .header__adress,
  .header__menu-mobile .header__adress._menu-mobile {
    display: block !important;
    margin: 8px 0 14px !important;
    max-width: 100% !important;
    padding: 0 !important;
    color: #2b2835;
  }

  #modal-menu .header__adress li,
  .header__menu-mobile .header__adress li {
    margin: 0 0 10px !important;
    padding-left: 22px !important;
    font-size: 0.92rem !important;
    line-height: 1.3 !important;
  }

  #modal-menu .header__contacts,
  .header__menu-mobile .header__contacts {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 0 0 16px !important;
  }

  #modal-menu .header__phone,
  #modal-menu .header__email,
  #modal-menu .header__phone._menu-mobile,
  #modal-menu .header__email._menu-mobile,
  .header__menu-mobile .header__phone,
  .header__menu-mobile .header__email {
    display: block !important;
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    color: #2b2835 !important;
    margin: 0 !important;
  }

  #modal-menu .but,
  #modal-menu .but._menu-mobile,
  .header__menu-mobile .but,
  .header__menu-mobile .but._menu-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px 0 0 !important;
    min-height: 46px !important;
    border-radius: 24px !important;
    box-shadow: none !important;
  }
}

@media (max-width: 575px) {
  .header__top .container {
    padding: 8px 12px !important;
    min-height: 58px;
    gap: 8px;
  }

  .header__top .logo._header {
    max-width: 42%;
  }

  .header__top .logo._header img {
    height: 40px !important;
    max-height: 40px !important;
  }

  .info_mob {
    gap: 8px !important;
  }

  .info_mob .but,
  .info_mob .but._header {
    display: none !important;
  }

  .info_mob .icon {
    flex-basis: 32px;
    width: 32px !important;
    height: 32px !important;
  }

  .burger {
    width: 32px !important;
    height: 32px !important;
    background-size: 20px !important;
  }

  #modal-menu.header__menu-mobile,
  #modal-menu {
    width: min(92vw, 320px) !important;
    padding: 16px 14px 20px !important;
  }
}

@media (max-width: 991px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .slider > .slick-list {
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .projects .title,
  .reviews .title,
  .reviews_title,
  .actions .title,
  .tech .title,
  .how .title,
  .faq .title,
  .openform__title,
  .h2 {
    word-break: break-word;
  }
}

@media (max-width: 767px) {
  .offer .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .widget-circle {
    right: 12px !important;
    bottom: 16px !important;
  }

  .up {
    right: 12px !important;
    bottom: 70px !important;
    width: 44px !important;
    height: 44px !important;
  }
}

/* ---------- TAGS overlap fix 1.1.8 ---------- */
/* User report: related-service pills stack on top of each other (Sochi services).
   Missing flex on .tags + fixed widths on .tags a.but caused the overlap. */
.tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.tags .container {
  width: 100% !important;
}

.tags-inner {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  align-content: flex-start !important;
  justify-content: flex-start !important;
  gap: 15px !important;
  row-gap: 15px !important;
  column-gap: 15px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.tags a,
.tags a.but,
.tags-inner a,
.tags-inner a.but {
  position: static !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: min(240px, 100%) !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  margin-top: 0 !important;
  transform: none !important;
  white-space: normal !important;
  box-sizing: border-box !important;
}

@media (max-width: 767px) {
  .tags a,
  .tags a.but,
  .tags-inner a,
  .tags-inner a.but {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ---------- About + Sochi button fix 1.1.9 ---------- */

/* 1) Advantages strip (.offer_section) bottom spacing on About page */
.offer_section {
  background: #2b2835 !important;
  margin: 0 !important;
  border: 0 !important;
}

.offer_section .offer_wrapper,
.offer_section .container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.offer_section .offer_inner {
  padding-top: 44px !important;
  padding-bottom: 44px !important;
  margin: 0 !important;
}

/* Kill the white band between dark advantages and dark footer */
.page-template-simple .content,
.page-template-simple-php .content {
  /* keep default pad for normal text pages, but...
     if advantages strip is present near the end, remove bottom pad */
}

.page-template-simple .content:has(.offer_section),
.page-template-simple-php .content:has(.offer_section),
body.page .content:has(.offer_section) {
  padding-bottom: 0 !important;
}

/* If advantages is injected after .content (unlikely), still no gap */
main > .content + .offer_section,
main > .offer_section {
  margin-top: 0 !important;
}

main > .offer_section + /*footer via sibling after main close - handled by margin 0 */
.footer {
  margin-top: 0 !important;
  padding-top: 60px;
}

/* 2) Sochi banner secondary button “Вызвать замерщика” = outline white, not solid */
body.stroy-region-sochi .offer .buttons > a.but.white,
body.stroy-region-sochi .offer.ups .buttons > a.but.white,
body.stroy-region-sochi a.but._offer.white {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  box-shadow: none !important;
}

body.stroy-region-sochi .offer .buttons > a.but.white:hover,
body.stroy-region-sochi .offer.ups .buttons > a.but.white:hover,
body.stroy-region-sochi a.but._offer.white:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* primary stays yellow */
body.stroy-region-sochi .offer .buttons > a.but._offer:not(.white),
body.stroy-region-sochi .offer.ups .buttons > a.but._offer:not(.white) {
  background: #fed000 !important;
  color: #30384c !important;
  border: none !important;
}

/* ---------- Hero + header recovery 1.1.11 ---------- */
/* Screenshot: white void under header, yellow title text, banner image only at bottom.
   Cause: offer background (z-index:-1) hidden by stacking + object-fit:contain on .offer img. */

.header {
  position: relative;
  z-index: 20;
  background: #fff;
}

.header__top {
  background: #fff;
  position: relative;
  z-index: 21;
}

/* Offer must create its own stacking context ABOVE page background,
   so absolute background with negative z-index stays visible inside .offer */
.offer,
.offer.ups {
  position: relative !important;
  z-index: 1;
  isolation: isolate; /* contain z-index:-1 background inside section */
  overflow: hidden; /* clip bg, keep layout stable */
  color: #fff;
  background-color: #1a1f24; /* fallback if image late */
}

.offer__background {
  position: absolute !important;
  inset: auto;
  left: 0 !important;
  width: 100% !important;
  top: -83px !important;
  height: calc(100% + 83px) !important;
  z-index: 0 !important; /* was -1: goes behind white body when parent stacking breaks */
  overflow: hidden !important;
  pointer-events: none;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.offer__background img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.offer > .container,
.offer.ups > .container {
  position: relative !important;
  z-index: 2 !important;
}

/* Title/text must stay readable on photo */
.offer__title,
.offer__title h1,
.offer .offer__title,
.offer.ups .offer__title {
  position: relative;
  z-index: 2;
  color: #fff;
}

.offer__title h1 span,
.offer .offer__title h1 span {
  color: #fed000;
}

/* Mobile/tablet: keep top bar compact but not broken */
@media (max-width: 991px) {
  .offer,
  .offer.ups {
    overflow: hidden;
  }

  .offer__background {
    top: -70px !important;
    height: calc(100% + 70px) !important;
  }

  .header__top .container {
    background: #fff;
  }

  /* Don't force weird zero paddings that collapse hero */
  .offer .container {
    position: relative !important;
    z-index: 2 !important;
  }
}

@media (max-width: 767px) {
  .offer__background {
    top: -64px !important;
    height: calc(100% + 64px) !important;
  }

  .offer__background img:not(._mobile) {
    /* desktop image may still show if mobile swap CSS fails; cover anyway */
    object-fit: cover !important;
  }

  .offer__background img._mobile {
    object-fit: cover !important;
  }

  /* custom had padding 0 0 0 15px which can look uneven — normalize */
  .offer .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Undo any accidental white paint over hero from general rules */
.offer .container,
.offer.ups .container {
  background: transparent !important;
}

/* Logo in header should not inherit broken height:auto without max from theme */
.header .logo._header img {
  display: block;
  width: auto;
  max-width: 180px;
  height: auto;
}

@media (max-width: 991px) {
  .header .logo._header img {
    height: 44px !important;
    max-height: 44px !important;
    max-width: 150px;
  }
}

@media (max-width: 575px) {
  .header .logo._header img {
    height: 40px !important;
    max-height: 40px !important;
    max-width: 130px;
  }
}

/* ---------- Service breadcrumbs visibility 1.1.14 ---------- */
/* Guaranteed contrast: dark text + light strip under header (never white-on-white / white-on-dark). */

body.single-services main > .breadcrumbs,
body.single-services .breadcrumbs,
body.single-services main > nav.breadcrumbs,
main > .breadcrumbs:has(+ .offer),
main > .breadcrumbs:has(+ .offer.ups),
main > nav.breadcrumbs:has(+ section.offer) {
  position: relative !important;
  z-index: 40 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  background: #ffffff !important;
  color: #1a1a1a !important;
  border-bottom: 1px solid rgba(43, 40, 53, 0.08);
  box-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  pointer-events: auto !important;
}

body.single-services .breadcrumbs > .container,
main > .breadcrumbs:has(+ .offer) > .container {
  position: relative !important;
  z-index: 41 !important;
  background: transparent !important;
}

body.single-services .breadcrumbs__list,
body.single-services .breadcrumbs ol,
body.single-services .breadcrumbs ul,
body.single-services .breadcrumbs__item,
body.single-services .breadcrumbs li,
body.single-services .breadcrumbs__link,
body.single-services .breadcrumbs a,
body.single-services .breadcrumbs a:link,
body.single-services .breadcrumbs a:visited,
body.single-services .breadcrumbs a:hover,
body.single-services .breadcrumbs a:active,
body.single-services .breadcrumbs__current,
body.single-services .breadcrumbs span,
body.single-services .breadcrumbs *,
main > .breadcrumbs:has(+ .offer) .breadcrumbs__list,
main > .breadcrumbs:has(+ .offer) .breadcrumbs__link,
main > .breadcrumbs:has(+ .offer) .breadcrumbs__current,
main > .breadcrumbs:has(+ .offer) a,
main > .breadcrumbs:has(+ .offer) span {
  color: #1a1a1a !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #1a1a1a !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

body.single-services .breadcrumbs__list,
main > .breadcrumbs:has(+ .offer) .breadcrumbs__list {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 10px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
}

body.single-services .breadcrumbs__link,
body.single-services .breadcrumbs a,
main > .breadcrumbs:has(+ .offer) .breadcrumbs__link,
main > .breadcrumbs:has(+ .offer) a {
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  font-weight: 600 !important;
}

body.single-services .breadcrumbs__current,
main > .breadcrumbs:has(+ .offer) .breadcrumbs__current {
  font-weight: 800 !important;
  text-decoration: none !important;
}

body.single-services .breadcrumbs__item:not(:last-child)::after,
body.single-services .breadcrumbs li:not(:last-child)::after,
main > .breadcrumbs:has(+ .offer) .breadcrumbs__item:not(:last-child)::after {
  color: #6b6775 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #6b6775 !important;
}

/* No hero overlap under crumbs */
body.single-services main > .breadcrumbs + .offer,
body.single-services main > .breadcrumbs + .offer.ups,
body.single-services main > .breadcrumbs + section.offer,
main > .breadcrumbs + .offer,
main > .breadcrumbs + .offer.ups {
  margin-top: 0 !important;
  padding-top: 24px !important;
}

body.single-services .offer__background,
body.single-services .offer.ups .offer__background {
  top: 0 !important;
  height: 100% !important;
}

body.single-services .offer::before,
body.single-services .offer.ups::before {
  top: 0 !important;
  height: 100% !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  body.single-services main > .breadcrumbs,
  body.single-services .breadcrumbs,
  main > .breadcrumbs:has(+ .offer) {
    padding: 10px 0 !important;
  }

  body.single-services .breadcrumbs__list,
  main > .breadcrumbs:has(+ .offer) .breadcrumbs__list {
    font-size: 12px !important;
  }
}

