/* Only ancestors of this block: standard Aspro header and footer are not changed. */
html:has(#arfg-home) .right_block:has(#arfg-home),
html:has(#arfg-home) .content-md:has(#arfg-home){width:100%!important;max-width:none!important;float:none!important;margin-left:0!important;padding-left:0!important;padding-right:0!important}
html:has(#arfg-home) .maxwidth-theme:has(#arfg-home),
html:has(#arfg-home) .container:has(#arfg-home){width:100%!important;max-width:none!important;padding-left:0!important;padding-right:0!important}
html:has(#arfg-home) .row:has(#arfg-home){margin-left:0!important;margin-right:0!important}
#arfg-home.portal-ui .opening h1{font-size:clamp(32px,3vw,46px);line-height:1.15}

/* r16.4: suppress the obsolete link, including focused legacy markup. */
#arfg-home.portal-ui>a.skip[href="#arfg-home-main"],
#arfg-home.portal-ui>a.skip[href="#arfg-home-main"]:focus,
#arfg-home.portal-ui>a.skip[href="#arfg-home-main"]:focus-visible{display:none!important;visibility:hidden!important;pointer-events:none!important}

/* Home banner correction, phones only. Append after Aspro template styles. */
@media (max-width: 767px) {
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big {
    padding: 0 !important;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .main-slider,
  html:has(#arfg-home) .BIG_BANNER_INDEX .swiper-wrapper,
  html:has(#arfg-home) .BIG_BANNER_INDEX .main-slider__item,
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__item {
    height: auto !important;
    min-height: 0 !important;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__item {
    display: flex;
    flex-direction: column;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .main-slider__item {
    background-image: none !important;
    background-color: #031650;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__item > .maxwidth-theme {
    width: 100%;
    padding: 0 20px !important;
    height: auto !important;
    min-height: 0 !important;
    background-image: none !important;
  }
  /* The first banner is a single 2172 x 724 image: preserve its full composition. */
  html:has(#arfg-home) .BIG_BANNER_INDEX .main-slider__item[data-slide_index="0"] {
    background-image: url("https://fincubator.ru/upload/iblock/1f3/hkgo46dgerxxlfd4lvcs8j7d8h4kf605.png") !important;
    background-size: contain !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .main-slider__item[data-slide_index="0"] .banners-big__item > .maxwidth-theme {
    aspect-ratio: 3 / 1;
    padding: 0 !important;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .main-slider__item[data-slide_index="0"] .banners-big__adaptive-block {
    display: none !important;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    padding: 20px 0 0 !important;
    height: auto !important;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__text {
    display: none !important;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__img-wrapper,
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__img-wrapper a {
    display: flex !important;
    position: relative !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 170px !important;
    min-height: 0 !important;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__img-wrapper img {
    display: block !important;
    position: static !important;
    transform: none !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 170px !important;
    object-fit: contain !important;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__adaptive-block {
    display: flex !important;
    padding: 20px 20px 28px !important;
    background: #031650 !important;
    color: #fff !important;
    text-align: center;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__adaptive-block .banners-big__title {
    color: #fff !important;
    font-size: 26px !important;
    line-height: 1.2 !important;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__adaptive-block .banners-big__text-block {
    margin: 14px 0 0 !important;
    max-width: 100%;
    color: #e3edff !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__adaptive-block .banners-big__text-block > div {
    color: #8bb7ff !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    margin-bottom: 12px;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__adaptive-block .banners-big__text-block p {
    color: #e3edff !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__adaptive-block br {
    display: none;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__buttons {
    margin-top: 18px !important;
  }
  html:has(#arfg-home) .BIG_BANNER_INDEX .banners-big__buttons a {
    min-height: 44px;
    white-space: normal;
  }
}
