/*
 * Shared stability layer for Moscow and Sochi.
 * Regional differences must be limited to data, contacts and the region switcher.
 */

/* Hidden honeypot used by custom forms. */
.stroy-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Header and main navigation. */
.header__menu > li {
  display: flex;
  align-items: center;
  margin-bottom: 0 !important;
}

.header__menu > li > a {
  display: flex;
  align-items: center;
  min-height: 24px;
}

@media (min-width: 1200px) {
  .header__top .container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }

  .header__top .logo._header {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    min-width: 0;
  }

  .header__top .logo._header img {
    flex: 0 0 auto;
  }

  .header__top .logo._header span {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 1199px) {
  #modal-menu,
  #modal-menu .header__menu-mobile {
    color: #2b2835;
    background: #fff;
  }

  #modal-menu .header__menu,
  #modal-menu .sub-menu {
    background: transparent !important;
  }

  #modal-menu .header__menu a,
  #modal-menu .sub-menu a,
  #modal-menu .header__adress,
  #modal-menu .header__email,
  #modal-menu .header__phone {
    color: #2b2835 !important;
    -webkit-text-fill-color: #2b2835 !important;
  }
}

/* One breadcrumb geometry on both sites. */
.breadcrumbs,
body.stroy-region-moscow .breadcrumbs,
body.stroy-region-sochi .breadcrumbs {
  position: relative !important;
  z-index: 20 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  padding: 16px 0 24px !important;
  background: #fff !important;
  color: #2b2835 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.breadcrumbs__list {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  list-style: none !important;
}

.breadcrumbs__item {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.breadcrumbs__link,
.breadcrumbs__current {
  color: #2b2835 !important;
  -webkit-text-fill-color: #2b2835 !important;
  text-shadow: none !important;
}

body.single-services .breadcrumbs {
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(43, 40, 53, 0.08) !important;
}

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

@media (max-width: 767px) {
  .breadcrumbs,
  body.stroy-region-moscow .breadcrumbs,
  body.stroy-region-sochi .breadcrumbs {
    padding: 12px 0 18px !important;
  }

  body.single-services .breadcrumbs {
    padding: 10px 0 !important;
  }

  .breadcrumbs__list {
    gap: 4px 8px !important;
    font-size: 12px !important;
  }
}

/* Identical internal hero buttons on both regional sites. */
.offer.ups .buttons,
body.single-services .offer.ups .buttons {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 14px 16px !important;
  width: 100% !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
}

.offer.ups .buttons > a.but._offer,
body.single-services .offer.ups .buttons > a.but._offer {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 270px !important;
  max-width: 100% !important;
  min-height: 54px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 13px 20px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transform: none !important;
}

.offer.ups .buttons .offer-button__icon {
  display: block !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  object-fit: contain !important;
}

.offer.ups .buttons .offer-button__text {
  display: block !important;
  white-space: nowrap !important;
}

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

  .offer.ups .buttons > a.but._offer,
  body.single-services .offer.ups .buttons > a.but._offer {
    width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
  }

  .offer.ups .buttons .offer-button__text {
    white-space: normal !important;
  }
}

/* Related-service pills and content callbacks. */
.tags,
.tags-inner {
  box-sizing: border-box;
}

.tags {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

.after-table-callback {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 32px 0 48px !important;
  padding: 0 !important;
}

.after-table-callback > .but {
  margin: 0 !important;
}

.content--payment-guarantee {
  padding-top: 60px;
}

/* Reviews should grow by content, not by artificial row height. */
#reviews-slider .reviews__review,
.reviews .reviews__review {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  height: auto !important;
  min-height: 0 !important;
}

#reviews-slider .reviews__review-text,
.reviews .reviews__review-text {
  flex: 0 0 auto !important;
}

.gallery.is-empty,
.gallery-wrap.is-empty,
.gallery-bb.is-empty {
  display: none !important;
}

/* Desktop dropdown: keep submenu close to its parent item and remove hover gap. */
@media (min-width: 1200px) {
  .header__menu-wrap .header__menu > li.menu-item-has-children {
    position: relative !important;
  }

  .header__menu-wrap .header__menu > li > .sub-menu {
    top: calc(100% - 24px) !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .header__menu-wrap .header__menu > li > .sub-menu::before {
    top: -10px !important;
    height: 10px !important;
  }
}

/* Keep desktop dropdowns above breadcrumbs and page content. */
@media (min-width: 1200px) {
  .header {
    position: relative !important;
    z-index: 1000 !important;
    overflow: visible !important;
  }

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

  .header__menu-wrap .header__menu > li > .sub-menu,
  .header__menu-wrap .header__menu .sub-menu .sub-menu {
    z-index: 1200 !important;
  }

  .breadcrumbs,
  body.stroy-region-moscow .breadcrumbs,
  body.stroy-region-sochi .breadcrumbs {
    z-index: 1 !important;
  }
}

/* Keep the open region switcher above the main navigation and its dropdowns. */
@media (min-width: 1200px) {
  .header__top {
    position: relative !important;
    z-index: 1300 !important;
    overflow: visible !important;
  }

  .header__top .container,
  .header__top .region-switch,
  .header__top .region-switch.is-open {
    overflow: visible !important;
  }

  .header__top .region-switch {
    z-index: 1400 !important;
  }

  .header__top .region-switch.is-open {
    z-index: 1500 !important;
  }

  .header__top .region-switch__list {
    z-index: 1600 !important;
  }
}

/* Service page polish: additional services, completed works and footer slider. */

/* Additional services: compact, readable cards without the artificial title-price gap. */
#dop-services__slider .slide {
  min-height: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(43, 40, 53, 0.1) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(20, 18, 28, 0.12) !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

#dop-services__slider .slide:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(20, 18, 28, 0.18) !important;
}

#dop-services__slider .slide > a {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  color: #2b2835 !important;
  text-decoration: none !important;
}

#dop-services__slider .slide > a > img {
  display: block !important;
  width: 100% !important;
  height: 210px !important;
  min-width: 100% !important;
  min-height: 210px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.25s ease !important;
}

#dop-services__slider .slide:hover > a > img {
  transform: scale(1.025);
}

#dop-services__slider .slide .info {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-content: initial !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-height: 0 !important;
  padding: 18px 18px 20px !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

#dop-services__slider .slide .projects__slide-title {
  margin: 0 !important;
  color: #2b2835 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

#dop-services__slider .slide .price,
#dop-services__slider .slide .projects__slide-info.price {
  align-self: stretch !important;
  margin: auto 0 0 !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(43, 40, 53, 0.12) !important;
  color: #2b2835 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

@media (max-width: 575px) {
  #dop-services__slider .slide > a > img {
    height: 190px !important;
    min-height: 190px !important;
  }

  #dop-services__slider .slide .info {
    gap: 10px !important;
    padding: 15px 15px 17px !important;
  }

  #dop-services__slider .slide .projects__slide-title {
    font-size: 16px !important;
  }

  #dop-services__slider .slide .price,
  #dop-services__slider .slide .projects__slide-info.price {
    font-size: 16px !important;
    padding-top: 10px !important;
  }
}

/* Completed works: keep one active gallery image visible and preserve the whole photo. */
#projects-slider .gallery-wrap,
#projects-slider .gallery,
#projects-slider .gallery .slick-list {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

/* Do not constrain Slick's calculated track and slide widths. */
#projects-slider .gallery .slick-track,
#projects-slider .gallery .slick-slide,
#projects-slider .gallery .slick-slide > div {
  background: #fff !important;
  box-sizing: border-box !important;
}

#projects-slider .gallery,
#projects-slider .gallery .slick-list,
#projects-slider .gallery .slick-track,
#projects-slider .gallery .slick-slide,
#projects-slider .gallery .slick-slide > div,
#projects-slider .gallery a {
  height: 210px !important;
  min-height: 210px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

#projects-slider .gallery .slick-slide > div,
#projects-slider .gallery a {
  width: 100% !important;
}

#projects-slider .gallery a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #fff !important;
  line-height: 0 !important;
  box-sizing: border-box !important;
}

/* Before Slick is initialized, show only the first image to prevent a row of thumbnails. */
#projects-slider .gallery:not(.slick-initialized) > a {
  display: none !important;
}

#projects-slider .gallery:not(.slick-initialized) > a:first-child {
  display: flex !important;
}

#projects-slider .gallery img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  vertical-align: middle !important;
}

@media (max-width: 450px) {
  #projects-slider .gallery-image,
  #projects-slider .gallery-image a {
    width: 100% !important;
    max-width: 100% !important;
    background: #fff !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #projects-slider .gallery-image img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* Slider above the footer: stable first-frame height and symmetrical spacing. */
.actions {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.actions__slider .slick-list {
  overflow: hidden !important;
  transition: height 0.22s ease !important;
}

.actions__slider .slick-slide,
.actions__slider .actions__slide {
  height: auto !important;
  min-height: 1px !important;
  box-sizing: border-box !important;
}

.actions__slider .actions__slide {
  padding-top: 55px !important;
  padding-bottom: 55px !important;
}

.actions__slider .actions__slide-img,
.actions__slider .actions__slide-img img {
  box-sizing: border-box !important;
}

.actions__slider .actions__slide-img img {
  display: block !important;
  margin: 0 !important;
}

@media (max-width: 991px) {
  .actions__slider .actions__slide {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
}

@media (max-width: 767px) {
  .actions__slider .actions__slide {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
}

@media (max-width: 575px) {
  .actions__slider .actions__slide {
    padding-left: 52px !important;
    padding-right: 52px !important;
  }

  .actions__slider-nav.container,
  .actions__slider-nav {
    top: 50% !important;
    bottom: auto !important;
    height: 0 !important;
    transform: translate(-50%, -50%) !important;
  }

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

/* Completed works v1.1.19: full-width rounded preview per card, full Fancybox gallery on click. */
#projects-slider .projects-card-gallery-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 210px !important;
  min-height: 210px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

#projects-slider .projects-card-gallery {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #fff !important;
}

#projects-slider .projects-card-gallery__main {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #fff !important;
  line-height: 0 !important;
  box-sizing: border-box !important;
}

#projects-slider .projects-card-gallery__main img {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 12px !important;
  transform: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

#projects-slider .projects-card-gallery__item,
#projects-slider .projects-card-gallery__item[hidden] {
  display: none !important;
}

@media (max-width: 450px) {
  #projects-slider .projects-card-gallery-wrap {
    display: none !important;
  }
}

/* Test service page footer v1.1.22. Scoped to one conditional footer variant. */
.footer--zaezd-test {
  --footer-test-dark: #171b28;
  --footer-test-panel: rgba(255, 255, 255, 0.055);
  --footer-test-line: rgba(255, 255, 255, 0.11);
  --footer-test-muted: rgba(255, 255, 255, 0.72);
  --footer-test-accent: #ffc400;
  position: relative;
  margin-top: 0 !important;
  padding-top: 40px !important;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 196, 0, 0.13), transparent 30%),
    radial-gradient(circle at 96% 72%, rgba(66, 85, 128, 0.22), transparent 32%),
    linear-gradient(145deg, #1d2231 0%, var(--footer-test-dark) 54%, #131722 100%);
}

.footer--zaezd-test::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}

footer.footer--zaezd-test > .container.footer-test {
  position: relative;
  z-index: 1;
  display: block !important;
}

.footer-test__cta {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: center;
  padding: 30px 34px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 28px;
  color: #1d2231;
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 255, 255, 0.58), transparent 25%),
    linear-gradient(135deg, #ffd438 0%, var(--footer-test-accent) 62%, #ffb600 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.footer-test__eyebrow,
.footer-test__section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-test__eyebrow::before,
.footer-test__section-label::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.footer-test__cta-title {
  max-width: 690px;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.footer-test__cta-copy p {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 600;
  color: rgba(29, 34, 49, 0.78);
}

.footer-test__cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.footer-test__estimate.but {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  width: 100%;
  margin: 0;
  padding: 14px 22px;
  border: 1px solid #1d2231;
  border-radius: 16px;
  color: #fff;
  background: #1d2231;
  box-shadow: 0 12px 25px rgba(29, 34, 49, 0.22);
}

.footer-test__estimate.but:hover {
  opacity: 1;
  color: #fff;
  background: #10131d;
}

.footer-test__phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 11px 16px;
  border: 1px solid rgba(29, 34, 49, 0.25);
  border-radius: 16px;
  color: #1d2231;
  background: rgba(255, 255, 255, 0.48);
}

.footer-test__phone:hover {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.72);
}

.footer-test__phone span {
  font-size: 0.83rem;
  font-weight: 700;
  opacity: 0.66;
}

.footer-test__phone strong {
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}

.footer-test__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.04fr) minmax(0, 1.45fr);
  gap: 18px;
  margin-top: 22px;
  padding-bottom: 28px;
}

.footer-test__brand,
.footer-test__panel {
  position: relative;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--footer-test-line);
  border-radius: 24px;
  background: var(--footer-test-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
}

.footer-test__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-test__logo {
  display: inline-flex;
  max-width: 250px;
  margin: 0 0 18px;
}

.footer-test__logo img {
  display: block;
  width: auto !important;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.footer-test__brand > p {
  margin: 0;
  max-width: 330px;
  color: var(--footer-test-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.footer-test__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 26px;
}

.footer-test__socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--footer-test-line);
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.86rem;
  font-weight: 700;
}

.footer-test__socials a:hover {
  opacity: 1 !important;
  border-color: rgba(255, 196, 0, 0.6);
  background: rgba(255, 196, 0, 0.12);
}

.footer-test__socials img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-test__section-label {
  margin-bottom: 8px;
  color: var(--footer-test-accent);
}

.footer-test__panel-title {
  margin: 0 0 22px;
  color: #fff;
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 900;
}

.footer--zaezd-test .footer-test__contacts {
  margin: 0;
}

.footer--zaezd-test .footer-test__contacts li {
  min-height: 24px;
  padding-left: 34px;
  color: var(--footer-test-muted);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

.footer--zaezd-test .footer-test__contacts li::before {
  width: 20px;
  height: 20px;
  top: 1px;
}

.footer--zaezd-test .footer-test__contacts li:not(:last-child) {
  margin-bottom: 15px;
}

.footer--zaezd-test .footer-test__contacts li._phone {
  font-size: 1.24rem;
  font-weight: 900;
}

.footer--zaezd-test .footer-test__contacts a {
  color: #fff;
}

.footer-test__callback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 196, 0, 0.52);
  border-radius: 14px;
  color: var(--footer-test-accent);
  font-size: 0.94rem;
  font-weight: 800;
}

.footer-test__callback:hover {
  opacity: 1 !important;
  color: #1d2231;
  background: var(--footer-test-accent);
}

.footer-test__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.footer-test__links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 38px 10px 14px;
  border: 1px solid var(--footer-test-line);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.91rem;
  line-height: 1.3;
  font-weight: 700;
}

.footer-test__links a::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  color: var(--footer-test-accent);
  font-size: 1.45rem;
  line-height: 1;
  transform: translateY(-52%);
  transition: transform 0.2s ease;
}

.footer-test__links a:hover {
  opacity: 1 !important;
  border-color: rgba(255, 196, 0, 0.42);
  color: #fff;
  background: rgba(255, 196, 0, 0.09);
}

.footer-test__links a:hover::after {
  transform: translate(3px, -52%);
}

.footer--zaezd-test .footer-test__copy {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 15, 0.34);
  font-size: 0.92rem;
}

.footer--zaezd-test .footer-test__copy .container {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer--zaezd-test .footer-test__copy .footer__copy-text,
.footer--zaezd-test .footer-test__copy .footer__copy-policy {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.footer--zaezd-test .footer-test__copy a {
  color: rgba(255, 255, 255, 0.8);
  text-underline-offset: 3px;
}

@media (max-width: 1280px) {
  .footer-test__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-test__services {
    grid-column: 1 / -1;
  }

  .footer-test__brand,
  .footer-test__contacts-panel {
    min-height: 100%;
  }

  .footer-test__brand {
    align-items: center;
    text-align: center;
  }

  .footer-test__brand > p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-test__socials {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .footer-test__cta {
    grid-template-columns: 1fr;
  }

  .footer-test__cta-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .footer--zaezd-test {
    padding-top: 24px !important;
    padding-bottom: 0 !important;
  }

  .footer-test__cta {
    gap: 22px;
    padding: 24px;
    border-radius: 22px;
  }

  .footer-test__cta-actions,
  .footer-test__grid {
    grid-template-columns: 1fr;
  }

  .footer-test__grid {
    gap: 14px;
    margin-top: 14px;
    padding-bottom: 20px;
  }

  .footer-test__services {
    grid-column: auto;
  }

  .footer-test__brand,
  .footer-test__panel {
    padding: 23px;
    border-radius: 20px;
  }

  .footer-test__socials {
    margin-top: 0;
  }

  .footer--zaezd-test .footer-test__copy .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px !important;
    row-gap: 3px !important;
  }

  .footer--zaezd-test .footer-test__copy .footer__copy-text,
  .footer--zaezd-test .footer-test__copy .footer__copy-policy {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
  }

  .footer--zaezd-test .footer-test__copy .footer__copy-text > *,
  .footer--zaezd-test .footer-test__copy .footer__copy-policy > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 520px) {
  .footer-test__cta {
    padding: 21px 18px;
  }

  .footer-test__cta-title {
    font-size: 1.75rem;
  }

  .footer-test__cta-copy p {
    font-size: 0.96rem;
  }

  .footer-test__phone {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .footer-test__links {
    grid-template-columns: 1fr;
  }

  .footer-test__socials a span {
    display: none;
  }

  .footer-test__socials a {
    justify-content: center;
    width: 44px;
    min-height: 44px;
    padding: 8px;
  }
}

/* Moscow contacts v1.1.25: compact two-phone presentation; Sochi is untouched. */
.stroy-region-moscow .header__contacts .header__phone {
  margin-top: 3px;
  font-size: 1.02rem;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.stroy-region-moscow .header__contacts .header__phone + .header__phone {
  margin-top: 2px;
}

.stroy-region-moscow .footer-test__phone--multi {
  cursor: default;
}

.stroy-region-moscow .footer-test__phone--multi:hover {
  background: rgba(255, 255, 255, 0.48);
}

.stroy-region-moscow .footer-test__phone-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}

.stroy-region-moscow .footer-test__phone-list a {
  display: block;
  color: #1d2231;
  line-height: 1.1;
  white-space: nowrap;
}

.stroy-region-moscow .footer-test__phone-list a:hover {
  opacity: 0.72 !important;
}

.stroy-region-moscow .footer-test__phone-list strong {
  font-size: 1.02rem;
}

.stroy-region-moscow .footer-test__contacts li._phone + li._phone {
  margin-top: -7px;
}

@media (min-width: 1200px) and (max-width: 1320px) {
  .stroy-region-moscow .header__contacts .header__phone,
  .stroy-region-moscow .header__contacts .header__phone + .header__phone {
    font-size: 13.5px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .stroy-region-moscow .header__contacts .header__phone,
  .stroy-region-moscow .header__contacts .header__phone + .header__phone {
    font-size: 13.5px;
  }
}

@media (max-width: 520px) {
  .stroy-region-moscow .footer-test__phone--multi {
    align-items: flex-start;
  }

  .stroy-region-moscow .footer-test__phone-list {
    align-items: flex-start;
    gap: 5px;
  }
}

/* Mobile menu submenu toggle v1.1.30: isolated row per menu item, stable at any depth. */
@media (max-width: 1199px) {
  #modal-menu .header__menu .stroy-mobile-parent-item,
  .header__menu-mobile .header__menu .stroy-mobile-parent-item {
    position: relative !important;
    display: block !important;
    width: 100% !important;
  }

  #modal-menu .header__menu .stroy-mobile-menu-row,
  .header__menu-mobile .header__menu .stroy-mobile-menu-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 40px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  #modal-menu .header__menu .stroy-mobile-menu-row > a,
  .header__menu-mobile .header__menu .stroy-mobile-menu-row > a {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 12px 4px !important;
    color: #2b2835 !important;
    -webkit-text-fill-color: #2b2835 !important;
    white-space: normal !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
  }

  #modal-menu .header__menu .stroy-mobile-menu-row > a::after,
  .header__menu-mobile .header__menu .stroy-mobile-menu-row > a::after {
    display: none !important;
    content: none !important;
  }

  #modal-menu .header__menu .stroy-mobile-menu-row > .menu-item-has-children-toggle,
  .header__menu-mobile .header__menu .stroy-mobile-menu-row > .menu-item-has-children-toggle {
    position: static !important;
    grid-column: 2 !important;
    align-self: center !important;
    justify-self: end !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #2b2835 !important;
    line-height: 0 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
    transform: none !important;
    touch-action: manipulation !important;
  }

  #modal-menu .header__menu .stroy-mobile-menu-row > .menu-item-has-children-toggle::before,
  .header__menu-mobile .header__menu .stroy-mobile-menu-row > .menu-item-has-children-toggle::before {
    content: "" !important;
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    margin: -4px 0 0 !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    opacity: 0.65 !important;
    transform: rotate(45deg) !important;
    transform-origin: center !important;
    transition: transform 0.18s ease, margin 0.18s ease !important;
  }

  #modal-menu .header__menu .stroy-mobile-menu-row > .menu-item-has-children-toggle._active::before,
  .header__menu-mobile .header__menu .stroy-mobile-menu-row > .menu-item-has-children-toggle._active::before {
    margin-top: 4px !important;
    transform: rotate(225deg) !important;
  }

  #modal-menu .header__menu .stroy-mobile-menu-row > .menu-item-has-children-toggle:focus-visible,
  .header__menu-mobile .header__menu .stroy-mobile-menu-row > .menu-item-has-children-toggle:focus-visible {
    outline: 2px solid rgba(43, 40, 53, 0.35) !important;
    outline-offset: 1px !important;
  }

  /* Mobile submenu visibility is controlled only by the explicit JS state. */
  #modal-menu .header__menu .sub-menu,
  #modal-menu .header__menu .sub-menu[hidden],
  #modal-menu .header__menu > li:hover > .sub-menu,
  #modal-menu .header__menu > li:focus-within > .sub-menu,
  #modal-menu .header__menu .sub-menu li:hover > .sub-menu,
  #modal-menu .header__menu .sub-menu li:focus-within > .sub-menu,
  .header__menu-mobile .header__menu .sub-menu,
  .header__menu-mobile .header__menu .sub-menu[hidden],
  .header__menu-mobile .header__menu > li:hover > .sub-menu,
  .header__menu-mobile .header__menu > li:focus-within > .sub-menu,
  .header__menu-mobile .header__menu .sub-menu li:hover > .sub-menu,
  .header__menu-mobile .header__menu .sub-menu li:focus-within > .sub-menu {
    display: none !important;
  }

  #modal-menu .header__menu .stroy-mobile-parent-item._submenu-open > .sub-menu:not([hidden]),
  #modal-menu .header__menu .sub-menu.active:not([hidden]),
  .header__menu-mobile .header__menu .stroy-mobile-parent-item._submenu-open > .sub-menu:not([hidden]),
  .header__menu-mobile .header__menu .sub-menu.active:not([hidden]) {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 8px 0 2px !important;
    padding: 6px 0 2px 14px !important;
    border-left: 2px solid rgba(43, 40, 53, 0.12) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  #modal-menu .header__menu .sub-menu > li,
  .header__menu-mobile .header__menu .sub-menu > li {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  #modal-menu .header__menu .sub-menu > li:last-child,
  .header__menu-mobile .header__menu .sub-menu > li:last-child {
    margin-bottom: 0 !important;
  }

  #modal-menu .header__menu .sub-menu li > a,
  .header__menu-mobile .header__menu .sub-menu li > a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 5px 8px 5px 0 !important;
    color: #2b2835 !important;
    -webkit-text-fill-color: #2b2835 !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  #modal-menu .header__menu .sub-menu .stroy-mobile-menu-row,
  .header__menu-mobile .header__menu .sub-menu .stroy-mobile-menu-row {
    grid-template-columns: minmax(0, 1fr) 34px !important;
    min-height: 34px !important;
  }

  #modal-menu .header__menu .sub-menu .stroy-mobile-menu-row > a,
  .header__menu-mobile .header__menu .sub-menu .stroy-mobile-menu-row > a {
    min-height: 34px !important;
    padding: 5px 8px 5px 0 !important;
    color: rgba(43, 40, 53, 0.82) !important;
    -webkit-text-fill-color: rgba(43, 40, 53, 0.82) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
  }

  #modal-menu .header__menu .sub-menu .stroy-mobile-menu-row > .menu-item-has-children-toggle,
  .header__menu-mobile .header__menu .sub-menu .stroy-mobile-menu-row > .menu-item-has-children-toggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }

  #modal-menu .header__menu .sub-menu .sub-menu,
  .header__menu-mobile .header__menu .sub-menu .sub-menu {
    margin-top: 4px !important;
    padding-left: 12px !important;
  }
}
