.drev8-hero-header-space { display: none; }

/* SHS24's viewport sizing, applied to the ordinary Aspro header in flow. */
:is([data-drev-v8-hero], [data-drev-v8-home-hero]) {
  --drev8-hero-viewport: 100vh;
  --drev8-hero-header-ssr: 132px;
  --drev8-hero-top: var(--drev8-hero-initial-top, var(--drev8-header-flow, var(--drev8-hero-header-ssr)));
  --drev8-hero-height: max(0px, calc(var(--drev8-hero-viewport) - var(--drev8-hero-top)));
}

@supports (height: 100svh) {
  :is([data-drev-v8-hero], [data-drev-v8-home-hero]) { --drev8-hero-viewport: 100svh; }
}

body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  align-items: stretch;
  width: 100%;
  height: auto;
  min-height: var(--drev8-hero-height);
  background: #f7f6f3;
}

body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__copy {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Onest, Inter, sans-serif;
  min-width: 0;
  padding: clamp(24px, 3vw, 84px);
  z-index: 1;
}

body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpr-v5-source-top { width: 100%; max-width: 560px; }
body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpr-v5-source-header { margin: 0 0 clamp(12px, 1.6vw, 30px); }
body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__eyebrow { margin: 0; }
body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__title {
  min-width: 0;
  margin: 0;
  max-width: none;
  font-family: inherit;
  font-size: clamp(26px, 2.45vw, 64px);
  line-height: 1.065;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__rule { margin-block: clamp(12px, 1.5vw, 28px); }
body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__intro { margin: 0 0 clamp(14px, 1.5vw, 30px); max-width: 42ch; }
body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__actions { gap: 8px; }
body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__cta { min-height: 44px; }

body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__media {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  aspect-ratio: auto;
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
  background: #eeedea;
}

body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
}

@media (min-width: 992px) {
  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero]:not([data-drev-v8-fit="verified-cover"]) .dpv-hero__scene {
    left: 5%;
    width: 95%;
  }
}

body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__scene-main {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: transparent;
  object-fit: var(--drev8-hero-fit, contain);
  object-position: var(--drev8-hero-position, center);
}

body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__secondary { display: none; }
body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpr-v5-source-footer { display: none; }

body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero].dpv-hero--text { grid-template-columns: minmax(0, 1fr); }

[data-drev-v8-alternate-execution] .dpv-hero__media::after {
  content: 'Вариант исполнения в интерьере';
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  border-radius: 4px;
  padding: 4px 8px;
  color: #fff;
  background: #161616cc;
  font-size: 12px;
}

body.site_s2:has([data-drev-v8-hero]) #dpv-commercial {
  scroll-margin-top: calc(max(var(--drev8-header-sticky, 0px), var(--drev8-header-offset, 0px), var(--drev8-hero-anchor-fallback, 0px)) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  body.site_s2 :is(
    [data-drev-v8-hero][data-drev-v8-hero-motion],
    [data-drev-v8-home-hero][data-drev-v8-hero-motion] .swiper-slide-active
  ) .dpv-hero__media {
    animation: drev8-diagonal-reveal .9s cubic-bezier(.05,.55,.38,1) both;
    /* circOut from the original Hero reference, sampled near its steep start. */
    animation-timing-function: linear(0.0000 0%, 0.0999 0.5%, 0.1726 1.5%, 0.2431 3%, 0.3412 6%, 0.4359 10%, 0.5268 15%, 0.6000 20%, 0.7141 30%, 0.8000 40%, 0.8660 50%, 0.9165 60%, 0.9539 70%, 0.9798 80%, 0.9950 90%, 1.0000 100%);
  }

  body.site_s2 [data-drev-v8-hero-motion] .dpv-hero__media:not([data-drev-v8-hero-image-ready]) {
    animation-play-state: paused;
  }
}

@keyframes drev8-diagonal-reveal {
  from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  to { clip-path: polygon(var(--drev8-hero-reveal-edge, 5%) 0, 100% 0, 100% 100%, 0 100%); }
}

@media (max-width: 991px) {
  :is([data-drev-v8-hero], [data-drev-v8-home-hero]) {
    --drev8-hero-header-ssr: 63px;
    --drev8-hero-reveal-edge: 0%;
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 0;
  }

  body.site_s2.dpr-v7 .dpv-hero[data-drev-v8-subject] {
    grid-template-rows: clamp(180px, 55vw, 460px) auto;
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__media {
    grid-row: 1;
    width: 100%;
    clip-path: none;
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero]:not([data-drev-v8-subject]) .dpv-hero__media {
    aspect-ratio: var(--dpr-v7-hero-aspect, 3/2);
    max-height: 46vh;
    max-height: 46svh;
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero].dpv-hero--studio .dpv-hero__media {
    aspect-ratio: auto;
    min-height: 215px;
    height: min(400px, 39vh);
    height: min(400px, 39svh);
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__copy {
    grid-row: 2;
    padding: 18px clamp(16px, 5vw, 36px) clamp(24px, 5vw, 36px);
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero].dpv-hero--text .dpv-hero__copy { grid-row: 1 / -1; }
  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpr-v5-source-header { margin-bottom: 9px; }
  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpr-v7-title-row { gap: 12px; align-items: center; }
  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__title {
    font-size: clamp(24px, 5vw + 4px, 43px);
    text-wrap: pretty;
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__rule { margin-block: 12px; }
  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__intro { margin-bottom: 12px; }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__secondary {
    display: grid;
    place-items: center;
    position: static;
    flex: none;
    inline-size: clamp(57px, 17vw, 96px);
    max-height: none;
    min-height: 44px;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    clip-path: none;
    transform: none;
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__secondary a:has([data-drev-v8-inset]) {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 44px;
    min-height: 44px;
  }

  body.site_s2 [data-drev-v8-hero] [data-drev-v8-inset] {
    position: relative;
    display: block;
    inline-size: min(100%, calc(var(--drev8-inset-aspect, .6) * 124px));
    max-inline-size: var(--dpr-v5-overlay-mobile-max, 100%);
    aspect-ratio: var(--drev8-inset-aspect, .6);
    overflow: clip;
  }

  body.site_s2 [data-drev-v8-hero] [data-drev-v8-inset] img {
    position: absolute;
    top: 0;
    left: var(--drev8-inset-offset, 0);
    display: block;
    width: var(--drev8-inset-image-width, 100%);
    height: auto;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

}

/* Native Swiper still owns slide order, navigation, autoplay and links. */
body.site_s2 .BIG_BANNER_INDEX [data-drev-v8-home-hero] {
  margin: 0;
}

body.site_s2 .BIG_BANNER_INDEX [data-drev-v8-home-hero].top_big_banners :is(.top_slider_wrapp, .main-slider, .main-slider__wrapper) {
  height: auto !important;
  max-height: none;
  max-width: none;
}

body.site_s2 [data-drev-v8-home-hero] .main-slider__wrapper {
  align-items: stretch;
}

body.site_s2 .BIG_BANNER_INDEX [data-drev-v8-home-hero] .main-slider__item[data-drev-home-slide] {
  display: flex;
  height: auto !important;
  min-height: var(--drev8-hero-height);
  background: #f7f6f3 !important;
}

body.site_s2 [data-drev-home-slide] > div {
  display: flex;
  width: 100%;
  height: auto !important;
}

body.site_s2 [data-drev-home-slide] > div::before,
body.site_s2 [data-drev-home-slide] > div::after {
  content: none;
}

body.site_s2 [data-drev-home-slide] > div > .wrapper_inner[hidden] {
  display: none !important;
}

body.site_s2 [data-drev-home-slide] .dpv-hero__media a.target {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

body.site_s2 [data-drev-home-slide] .dpv-hero__media a.target:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -5px;
}

body.site_s2 [data-drev-home-slide] :is(.dpv-hero__copy, .dpv-hero__title, .head-title a, .banner_text, .section) {
  color: #28251f !important;
  text-shadow: none;
}

body.site_s2 [data-drev-home-slide] .banner_title,
body.site_s2 [data-drev-home-slide] .dpv-hero__title,
body.site_s2 [data-drev-home-slide] .dpv-hero__intro {
  padding-inline: 0;
  text-align: start;
  text-wrap: wrap;
}

body.site_s2 [data-drev-home-slide] .banner_title {
  margin: 0;
}

body.site_s2 [data-drev-home-slide] .dpv-hero__title {
  display: block;
  font-family: inherit;
}

body.site_s2 [data-drev-home-slide] .dpv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  gap: 8px;
}

body.site_s2 [data-drev-home-slide] .dpv-hero__actions > a {
  margin: 0;
  min-height: 44px;
  white-space: normal;
}

body.site_s2 [data-drev-home-slide] .dpv-hero__actions > a.white {
  color: #28251f;
  background-color: transparent;
  border-color: #716759;
}

body.site_s2 [data-drev-home-slide] .dpv-hero__intro {
  margin-top: 14px;
  font-family: inherit;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  max-height: none;
}

body.site_s2 [data-drev-home-slide] .dpv-hero__scene {
  inset: 0 !important;
  width: 100% !important;
}

body.site_s2 [data-drev-home-slide] .dpv-hero__scene-main {
  object-fit: cover !important;
  object-position: var(--drev8-home-focus, 71%) center !important;
  border-radius: 0;
}

body.site_s2 [data-drev-home-slide] .dpv-hero__scene-main[src="/upload/iblock/e8a/1ckgqtzxni0wc2fccok0fl4s2d03cfuj.jpg"] {
  --drev8-home-focus: 64%;
}

body.site_s2 .BIG_BANNER_INDEX [data-drev-v8-home-hero] {
  height: auto !important;
}

body.site_s2 [data-drev-v8-home-hero] .swiper-pagination {
  z-index: 3;
}

/* The collections rail is Aspro's native scrollable banner row on phones. */
body.site_s2 .MIDDLE_ADV[data-class="middle_adv_drag"] .float_banners .maxwidth-theme {
  width: 100%;
  max-width: none;
}

body.site_s2 .MIDDLE_ADV[data-class="middle_adv_drag"] .float_banners :is(.image, .img_inner, .image__fon) {
  border-radius: 0 !important;
}

@media (max-width: 991px) {
  body.site_s2 [data-drev-home-slide] .dpv-hero[data-drev-v8-hero] {
    align-content: start;
    grid-template-rows: auto 1fr;
  }

  body.site_s2 [data-drev-home-slide] .dpv-hero[data-drev-v8-hero] .dpv-hero__media {
    aspect-ratio: 7 / 5;
    max-height: 48svh;
    aspect-ratio: 7 / 5 !important;
  }

  body.site_s2 [data-drev-home-slide] .dpv-hero[data-drev-v8-hero] .dpv-hero__copy {
    align-items: start;
    padding-bottom: 70px;
  }
}

@media (max-width: 991px) {
  body.site_s2 .BIG_BANNER_INDEX [data-drev-v8-home-hero] .swiper-pagination {
    bottom: calc(var(--dpr-v7-mobilebar-height, 60px) + 10px);
  }

  /* Aspro moves its mobile header from normal flow to fixed at scroll start. */
  #mobileheader.fixed + .drev8-hero-header-space {
    display: block;
    block-size: var(--drev8-header-flow, 63px);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  body.site_s2:has([data-drev-v8-hero], [data-drev-v8-home-hero]) #footer .footer-bottom__items-wrapper,
  body.site_s2:has([data-drev-v8-hero]) .ordered-block.staff :is(.staff1 > .row, .mobile-margin-16),
  body.site_s2:has([data-drev-v8-hero]) .item-views.list-news1 > .mobile-margin-16 {
    margin-inline: max(-16px, -2vw);
  }
}

@media (max-width: 767px) {
  body.site_s2 .MIDDLE_ADV[data-class="middle_adv_drag"] {
    box-sizing: border-box;
    width: 100vw !important;
    max-width: none;
    margin-inline: calc((100% - 100vw) / 2) !important;
    padding-inline: 0;
  }

  body.site_s2 .MIDDLE_ADV[data-class="middle_adv_drag"] .float_banners .maxwidth-theme {
    padding-inline: 0;
  }

  body.site_s2 .MIDDLE_ADV[data-class="middle_adv_drag"] .type1 .items > .mobile-overflow {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100vw;
    margin-inline: calc((100% - 100vw) / 2) !important;
    padding-inline: 0 !important;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
  }

  body.site_s2 .MIDDLE_ADV[data-class="middle_adv_drag"] .type1 .mobile-overflow > .item-width-261 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
    scroll-snap-align: start;
  }

  body.site_s2 .MIDDLE_ADV[data-class="middle_adv_drag"] .type1 .item-width-261 .image {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0;
    aspect-ratio: 7 / 5;
  }

  body.site_s2 .MIDDLE_ADV[data-class="middle_adv_drag"] .type1 .item-width-261 .image .img_inner {
    position: absolute;
    inset: 0;
    padding: 0;
  }

  body.site_s2 .MIDDLE_ADV[data-class="middle_adv_drag"] .type1 .item-width-261 .image__fon {
    width: 100%;
    height: 100%;
    padding: 0;
    background-size: cover;
  }

  body.site_s2 .MIDDLE_ADV[data-class="middle_adv_drag"] .type1 .item-width-261 .inner-text {
    padding-inline: 16px;
  }
}

@media (min-width: 650px) and (max-width: 991px) and (max-height: 550px) {
  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero]:not(.dpv-hero--text) {
    grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
    grid-template-rows: auto;
    align-content: stretch;
    min-height: var(--drev8-hero-height);
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__copy {
    grid-area: 1 / 1;
    align-items: center;
    padding: 12px clamp(16px, 2vw, 25px);
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__media {
    grid-area: 1 / 2;
    min-height: 0;
    height: auto;
    max-height: none !important;
    align-self: stretch;
    aspect-ratio: auto !important;
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__secondary {
    display: none;
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__title {
    font-size: clamp(23px, 3.1vw, 31px);
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__intro {
    margin-block: 8px 10px;
    font-size: 13px;
    line-height: 1.38;
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__actions {
    flex-flow: row wrap;
    gap: 6px;
    margin-block: 8px 0;
  }

  body.site_s2:is(.dpr-v7, :has([data-drev-v8-home-hero])) .dpv-hero[data-drev-v8-hero] .dpv-hero__actions > a {
    flex: 1 1 120px;
    width: auto;
    min-height: 44px;
    padding: 8px 12px;
    margin: 0;
    font-size: 13px;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.drev8-hero-boot body.site_s2 .dpv-hero[data-drev-v8-hero] .dpv-hero__media {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  }
  html.drev8-hero-boot body.site_s2 [data-drev-v8-home-hero] .main-slider__item:not([data-drev-home-slide]) {
    visibility: hidden;
  }
}


/* The first slide is available before Swiper takes ownership of the track. */
body.site_s2 [data-drev-v8-home-hero] .swiper:not(.swiper-initialized, .swiper-container-initialized) > .swiper-wrapper > [data-drev-home-slide]:not(:first-child) {
  visibility: hidden;
}
