/* Theme Name: Settlements Theme	
   Author: RENDART
   Version: 2.1.8
*/

.hero-company {
    .slider-description {
            max-width: 50% !important;
    }
    .carousel-indicators {
        display: none;
    }
}

@media (max-width: 991px) {
    .hero-company #slider .carousel-item img,
    .hero-company #slider .slick-slide img {
        height: 100vh;
        min-height: 760px;
        object-position: center center;
    }

    .hero-company .under_image.slider-description {
        top: 50% !important;
        right: 24px;
        bottom: auto !important;
        left: 24px !important;
        transform: translateY(-50%) !important;
        max-width: 340px !important;
        margin: 0;
        text-align: left;
    }

    .hero-company .slider_title_1 {
        margin-bottom: 0;
        font-size: 40px;
        line-height: 100%;
    }

    .hero-company .slider-description .btn-primary {
        margin-top: 32px;
        margin-bottom: 0;
    }

    .hero-company .carousel-fade .carousel-item:before {
        background: rgba(0, 0, 0, 0.22);
    }

    .hero-company .carousel-fade .carousel-item:after {
        background: linear-gradient(
            180deg,
            rgba(13, 20, 47, 0) 52%,
            rgba(13, 20, 47, 0.88) 100%
        );
    }
}

.company-details {
    .center_img {
        background: none !important;
    }
    img {
        width: 100%;
        height: 480px;
    }
    h1 {
                font-size: 80px;
        font-style: normal;
        font-weight: 400;
        line-height: 100%;
        letter-spacing: -0.8px;
        margin-bottom: 0;
    }
}

.company-details-year .center_img {
    display: flex;
    justify-content: center;
}

.company-details-year .center_img img {
    width: min(100%, 560px);
    height: auto;
}

.company-details-year h1 {
    font-family: "contralto-small", serif;
    font-size: 80px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -0.01em;
}

@media (min-width: 992px) {
    .company-details-year .row.reverse {
        align-items: center;
        position: relative;
    }

    .company-details-year .more_mobile_cta {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .company-details-year .media_box_text {
        width: max-content;
        margin-left: 0;
        transform: translateX(-180px);
    }

    .company-details-year h1 {
        white-space: nowrap;
    }

    .company-details-year h1:last-child {
        margin-top: 12px;
    }

    .company-details-year .mobile_media_box_img {
        position: relative;
        z-index: 1;
    }

    .company-details-year .center_img {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    .company-details h1 {
        color: var(--Bialy, #FFF);
        font-family: "contralto-small";
        font-size: 40px;
        font-style: normal;
        font-weight: 400;
        line-height: 100%;
        text-align: center !important;
    }
}

.media-extra {
  display: flex;
  flex-direction: column;
  gap: 84px;
    margin-top: 80px;
}

.media-extra__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* long line */
.media-extra__item::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* short accent line */
.media-extra__item::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 140px;
  height: 4px;
  background-color: #8a95c9;
}

.media-extra__value {
  font-family: "contralto-small", serif;
  font-size: 80px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.8px;
  color: #7985B7;
  white-space: nowrap;
  display: inline-block;
  transform: scaleY(0.94);
  transform-origin: center bottom;
}

.media-extra__value sup {
  font-size: 64.5%;
  top: -0.18em;
  position: relative;
  line-height: 1;
}

.media-extra__label {
  font-family: "contralto-small", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: #ffffff;
  max-width: 320px;
}

@media (max-width: 991px) {
  .media-extra__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .media-extra__value {
    color: #7985B7;
    text-align: left;
    font-family: "contralto-small";
    font-size: clamp(56px, 18vw, 80px);
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -0.8px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .media-extra {
    gap: 56px;
    margin-top: 56px;
  }

  .media-extra__label {
    text-align: left;
    max-width: none;
  }

  .media-extra__item::before {
    top: -28px;
  }

  .media-extra__item::after {
    top: -28px;
    width: 96px;
  }
}


.mission-hero {
  position: relative;
  overflow: hidden;
}

.mission-hero__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 40px 0;
  position: relative;
}



.mission-hero__content {
  position: relative;
  z-index: 2;
  min-height: 780px;
  max-width: none;
  width: 100%;
}

/* eyebrow */
.mission-hero__eyebrow {
  margin-bottom: 24px;
  color: #9e9a95;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* title */
.mission-hero__title {
  margin: 0 0 48px;
  font-family: "contralto-small", serif;
  font-style: normal;
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
  color: #3e3a37;
  max-width: 940px;
  text-wrap: balance;
}

.mission-hero__content > .mission-hero__eyebrow,
.mission-hero__content > .mission-hero__title,
.mission-hero__content > .button--fenrir,
.mission-hero__content > p {
  max-width: 980px;
}

.mission-hero .button--fenrir {
  margin-top: 8px;
}

/* button spacing */
.mission-hero__button {
  margin-top: 16px;
}

/* image */
.mission-hero__visual {
    /* position: absolute; */
    z-index: 1;
    /* margin-top: 80px; */
    text-align: center;
    bottom: 0;
    width: 100%;
}

.mission-hero__image {
  max-width: 100%;
  width: 100% !important;
  height: auto;
}

@media (min-width: 992px) {
  .mission-hero__visual {
    position: relative;
    left: 50%;
    width: min(1320px, calc(100vw - 80px));
    max-width: none;
    transform: translateX(-50%);
  }
}

@media (max-width: 991px) {
  .html_box.media_bg.bg_content.image_bg_relative .image_bg {
    min-height: 900px;
    aspect-ratio: auto;
    height: 900px !important;
    background-position: center top;
    background-size: cover;
  }

  .html_box.media_bg.bg_content.image_bg_relative.cystersow .image_bg {
    min-height: 500px;
    height: 500px !important;
    max-height: 500px;
  }

  .html_box.media_bg.bg_content.image_bg_relative .media_bg {
    margin-top: 35px;
  }

  .mission-hero__container {
    max-width: 100%;
    padding: 0 24px 40px;
  }

  .mission-hero__content {
    min-height: auto;
  }

  .mission-hero__eyebrow {
    margin-bottom: 24px;
    font-size: 17px;
    text-align: center;
  }

  .html_box.bg_content .mission-hero__title,
  .mission-hero__title {
    margin: 0;
    font-size: clamp(40px, 9vw, 56px);
    line-height: 0.98;
    color: #111111;
    text-align: center;
  }
}

.nagrody img {
    padding: 80px;
}
.sales-offices {
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.sales-office {
	display: grid;
	grid-template-columns: 64px 1fr;
	column-gap: 32px;
	align-items: start;
}

.sales-office__number {
	font-family: "contralto-small", serif;
	font-weight: 400;
	font-size: 40px;
	line-height: 1;
	letter-spacing: 0;
	color: #4d61b3;
}

.sales-office__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.sales-office__label {
	margin-bottom: 10px;
	font-family: "Outfit", sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.4;
	color: #9b8d7d;
}

.sales-office__address {
	margin-bottom: 22px;
	font-family: "contralto-small", serif;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.25;
	color: #161616;
}

.sales-office__link,
.sales-office__hours {
	position: relative;
	padding-left: 44px;
	font-family: "Outfit", sans-serif;
	font-size: 18px;
	line-height: 1.4;
}

.sales-office__link {
	display: inline-flex;
	align-items: center;
	margin-bottom: 16px;
	color: #1f2240;
	text-decoration: none;
}

.sales-office__link:hover,
.sales-office__link:focus,
.sales-office__link:active {
	color: #5262a1;
	text-decoration: none;
}

.sales-office__hours {
	padding-left: 0;
	color: #9b8d7d;
	font-weight: 300;
}

.sales-office__link::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: 1px solid #4d61b3;
	border-radius: 100%;
}

.sales-office__link::after {
	content: "";
	position: absolute;
	left: 10px;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	background-color: #4d61b3;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.sales-office__link[href^="tel:"]::after {
	-webkit-mask-image: url("img/a_tel_v2.svg");
	mask-image: url("img/a_tel_v2.svg");
}

.sales-office__link[href^="mailto:"]::after {
	-webkit-mask-image: url("img/a_mail_v2.svg");
	mask-image: url("img/a_mail_v2.svg");
}

.sales-office__link--map::after {
	-webkit-mask-image: url("img/svg/icon-send.svg");
	mask-image: url("img/svg/icon-send.svg");
}

.sales-office__link.sales-office__link--arrow::after {
	left: 10px;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	background-color: #5262a1;
	-webkit-mask-image: url("img/svg/icon-expert-arrow.svg");
	mask-image: url("img/svg/icon-expert-arrow.svg");
}

.expert-contact-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
}

.expert-contact-block__title {
	margin: 0;
	font-family: "contralto-small", serif;
	font-size: 40px;
	font-weight: 400;
	line-height: 1;
	color: #04060e;
}

.expert-contact-block__details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.expert-contact-block__person {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.expert-contact-block__label {
	margin: 0;
	font-family: "Outfit", sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.6;
	color: #5d5b58;
}

.expert-contact-block__name {
	margin: 0;
	font-family: "contralto-small", serif;
	font-size: 40px;
	font-weight: 400;
	line-height: 1;
	color: #04060e;
}

.expert-contact-block__phone {
	margin-bottom: 0;
	font-weight: 300;
	line-height: 1.6;
	color: #0d142f;
}

.expert-contact-block__cta {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	margin-bottom: 0;
	padding-right: 48px;
	padding-left: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0d142f;
}

.sales-office__link.expert-contact-block__cta::before {
	left: auto;
	right: 0;
	width: 32px;
	height: 32px;
	border-color: #c7cce4;
}

.sales-office__link.expert-contact-block__cta::after {
	left: auto;
	right: 11px;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	background-color: #5262a1;
	-webkit-mask-image: url("img/svg/icon-expert-arrow.svg");
	mask-image: url("img/svg/icon-expert-arrow.svg");
}

.sales-office__link.partner-offer-block__email::after {
	background-color: transparent;
	background-image: url("img/svg/icon-partner-mail.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	-webkit-mask-image: none;
	mask-image: none;
}

.partner-offer-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
	padding-top: 40px;
	padding-left: 120px;
}

.partner-offer-block__title {
	margin: 0;
	font-family: "contralto-small", serif;
	font-size: 40px;
	font-weight: 400;
	line-height: 1;
	color: #04060e;
}

.partner-offer-block__links,
.partner-offer-block__contact,
.partner-offer-block__person,
.partner-offer-block__contact-links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.partner-offer-block__links,
.partner-offer-block__contact {
	gap: 24px;
}

.partner-offer-block__person,
.partner-offer-block__contact-links {
	gap: 12px;
}

.partner-offer-block__link,
.partner-offer-block__phone,
.partner-offer-block__email {
	margin-bottom: 0;
}

.partner-offer-block__link {
	gap: 16px;
	padding-left: 48px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0d142f;
}

.partner-offer-block__link::before,
.partner-offer-block__phone::before,
.partner-offer-block__email::before {
	border-color: #c7cce4;
}

.partner-offer-block__label {
	margin: 0;
	font-family: "Outfit", sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.6;
	color: #5d5b58;
}

.partner-offer-block__name {
	margin: 0;
	font-family: "contralto-small", serif;
	font-size: 40px;
	font-weight: 400;
	line-height: 1;
	color: #04060e;
}

.partner-offer-block__phone,
.partner-offer-block__email {
	font-weight: 300;
	line-height: 1.6;
	color: #0d142f;
}

@media (max-width: 767px) {
	.sales-offices {
		gap: 40px;
	}

	.sales-office {
		grid-template-columns: 54px 1fr;
		column-gap: 18px;
	}

	.sales-office__number {
		font-size: 40px;
	}

	.sales-office__label,
	.sales-office__link,
	.sales-office__hours {
		font-size: 16px;
	}

	.sales-office__address {
		font-size: 22px;
	}

	.expert-contact-block {
		gap: 32px;
	}

	.expert-contact-block__title,
	.expert-contact-block__name {
		font-size: 32px;
	}

	.expert-contact-block__details {
		gap: 20px;
	}

	.partner-offer-block {
		gap: 32px;
		padding-top: 32px;
		padding-left: 0;
	}

	.partner-offer-block__title,
	.partner-offer-block__name {
		font-size: 32px;
	}

	.partner-offer-block__links,
	.partner-offer-block__contact {
		gap: 20px;
	}
}

.cta-inline-banner {
	padding: 24px 0;
	background: #fff;
}

.cta-inline-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: none;
	margin: 0 auto;
	padding: 0 32px;
}

.cta-inline-banner__text {
	font-family: "contralto-small", serif;
	font-size: 24px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	color: #161616;
}

.cta-inline-banner__link {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	font-family: "Outfit", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0d142f;
	text-decoration: none;
	white-space: nowrap;
}

.cta-inline-banner__icon {
	position: relative;
	display: inline-flex;
	width: 32px;
	height: 32px;
	border: 1px solid #cfd8f3;
	border-radius: 999px;
	flex-shrink: 0;
}

.cta-inline-banner__icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-top: 2px solid #6d7db9;
	border-right: 2px solid #6d7db9;
	transform: translate(-58%, -50%) rotate(45deg);
}

.cta-inline-banner__link br {
	display: none;
}

.cta-inline-banner__link .cta-inline-banner__icon {
	align-items: center;
	justify-content: center;
	border-color: #c7cce4;
	overflow: hidden;
}

.cta-inline-banner__link .cta-inline-banner__icon::before {
	position: static;
	top: auto;
	left: auto;
	width: 10px;
	height: 10px;
	border: 0;
	background: #5262a1;
	-webkit-mask: url("img/arrow_up_new.svg") center / contain no-repeat;
	mask: url("img/arrow_up_new.svg") center / contain no-repeat;
	transform: none;
}

.cta-inline-banner__link:hover,
.cta-inline-banner__link:focus,
.cta-inline-banner__link:active {
	text-decoration: none;
}

.cta-inline-banner__link:hover .cta-inline-banner__icon::before,
.cta-inline-banner__link:focus .cta-inline-banner__icon::before {
	animation: slide-arrow 0.5s linear;
}

@media (max-width: 767px) {
	.cta-inline-banner {
		padding: 20px 0;
	}

	.cta-inline-banner__inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 0 15px;
	}

	.cta-inline-banner__text {
		font-size: 20px;
	}
}

.company-years-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	min-height: 720px;
	padding: 80px 40px;
	background: #0d1430;
	overflow: hidden;
}

.company-years-hero__circle {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
}

.company-years-hero__circle img {
	display: block;
	width: min(100%, 560px);
	height: auto;
}

.company-years-hero__copy {
	position: relative;
	z-index: 2;
	margin-left: -40px;
}

.company-years-hero__title {
	margin: 0;
	color: #fff;
	font-family: "contralto-small", serif;
	font-weight: 400;
	font-style: normal;
	font-size: 80px;
	line-height: 100%;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.company-years-hero__title--offset {
	margin-top: 16px;
	margin-left: 340px;
}

@media (max-width: 991px) {
	.company-years-hero {
		flex-direction: column;
		min-height: auto;
		padding: 56px 24px;
	}

	.company-years-hero__copy {
		margin-left: 0;
		text-align: center;
	}

	.company-years-hero__title {
		font-size: 40px;
	}

	.company-years-hero__title--offset {
		margin-top: 12px;
		margin-left: 0;
	}
}

.company-years-hero__svg {
	display: block;
	width: min(100%, 560px);
	height: auto;
}

.company-years-hero__circle-stroke {
	stroke-width: 1;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.company-years-hero__circle-digit {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.company-years-hero.is-drawn .company-years-hero__circle-stroke {
	transition: stroke-dashoffset 1.4s ease-in-out;
	stroke-dashoffset: 0;
}

.company-years-hero.is-drawn .company-years-hero__circle-digit {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.9s;
}

.company-years-hero.is-drawn .company-years-hero__circle-digit:nth-of-type(2) {
	transition-delay: 1.1s;
}

@media (prefers-reduced-motion: reduce) {
	.company-years-hero__circle-stroke {
		stroke-dashoffset: 0;
		transition: none;
	}

	.company-years-hero__circle-digit {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.stroke-circle-anim {
	display: block;
	width: min(100%, 560px);
	height: auto;
}

.stroke-circle-anim__ring {
	stroke-width: 1;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.stroke-circle-anim__fill {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stroke-circle-anim.is-drawn .stroke-circle-anim__ring {
	transition: stroke-dashoffset 1.4s ease-in-out;
	stroke-dashoffset: 0;
}

.stroke-circle-anim.is-drawn .stroke-circle-anim__fill {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.9s;
}

.stroke-circle-anim.is-drawn .stroke-circle-anim__fill:nth-of-type(2) {
	transition-delay: 1.1s;
}

@media (prefers-reduced-motion: reduce) {
	.stroke-circle-anim__ring {
		stroke-dashoffset: 0;
		transition: none;
	}

	.stroke-circle-anim__fill {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.realization-banner {
	position: relative;
	overflow: hidden;
}

/* Anchor the .image_bg photo to the bottom only when it wraps a
   realization-banner — otherwise we'd shift every other image_bg block
   on the site. The default background-position: center on .image_bg
   (style.css:557) crops both top and bottom equally; bottom anchor
   keeps the lower part of the photo (building base) visible, where the
   composition is darker and the overlaid white text has more contrast. */
.image_bg_relative:has(.realization-banner) > .image_bg {
	background-position: center bottom;
}

.realization-banner__media {
	position: relative;
	min-height: 540px;
	overflow: hidden;
}

/* Darkening gradient at the bottom of the media so the white title/text
   stay legible against the photo regardless of how light the background
   shot is. Sits below the decorative shape (z-index: 2) and the content
   (z-index: 3), above the photo. */
.realization-banner__media::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			to top,
			rgba(155, 141, 125, 0.6) 0%,
			rgba(155, 141, 125, 0.3) 35%,
			rgba(155, 141, 125, 0) 70%
		),
		rgba(17, 25, 56, 0.12);
	z-index: 1;
	pointer-events: none;
}

.stretch-media-bg .realization-banner__media {
	min-height: 900px;
}

.realization-banner__content {
	position: absolute;
	left: 280px;
	bottom: 88px;
	z-index: 3;
	max-width: 420px;
}

.realization-banner .realization-banner__title,
.html_box .realization-banner__title {
	margin: 0 0 8px;
	color: #fff;
	font-family: "contralto-small", serif;
	font-weight: 400;
	font-style: normal;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: 0;
	/* Belt-and-suspenders with the gradient overlay — keeps text readable
	   even if the photo is unusually bright. */
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.realization-banner__text {
	margin: 0;
	color: #fff;
	font-family: "Outfit", sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 18px;
	line-height: 1.6;
	letter-spacing: 0;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.realization-banner__shape {
	position: absolute;
	border: 1px solid rgba(255, 255, 255, 0.88);
	border-radius: 50%;
	pointer-events: none;
	z-index: 2;
}

.realization-banner__shape--large {
	width: 1180px;
	height: 1180px;
	right: -260px;
	bottom: -760px;
}

.realization-banner__shape--small {
	width: 860px;
	height: 860px;
	right: 180px;
	bottom: -560px;
	opacity: 0.9;
}

.stretch-media-bg,
.stretch-media-bg > .image_bg,
.stretch-media-bg > .image_bg > .media_bg,
.stretch-media-bg > .image_bg > .media_bg > .container-fluid,
.stretch-media-bg > .image_bg > .media_bg > .container-fluid > .html_box_bg,
.stretch-media-bg > .image_bg > .media_bg > .container-fluid > .html_box_bg > .row,
.stretch-media-bg > .image_bg > .media_bg > .container-fluid > .html_box_bg > .row > .col,
.stretch-media-bg .realization-banner,
.stretch-media-bg .realization-banner__media,
/* Mirror the .stretch-media-bg chain whenever a .realization-banner is
   present so the photo area, the wrapper chain and the banner all share
   the same height. Without this the photo is forced to min-height 900px
   on desktop by assets/css/style.css:2754 while the banner stays at its
   natural 540px — text lands in the upper half of the photo with a big
   empty strip below. The .stretch-media-bg class was set up for exactly
   this but never wired into the HTML on the homepage. */
.image_bg_relative:has(.realization-banner),
.image_bg_relative:has(.realization-banner) > .image_bg,
.image_bg_relative:has(.realization-banner) > .image_bg > .media_bg,
.image_bg_relative:has(.realization-banner) > .image_bg > .media_bg > .container-fluid,
.image_bg_relative:has(.realization-banner) > .image_bg > .media_bg > .container-fluid > .html_box_bg,
.image_bg_relative:has(.realization-banner) > .image_bg > .media_bg > .container-fluid > .html_box_bg > .row,
.image_bg_relative:has(.realization-banner) > .image_bg > .media_bg > .container-fluid > .html_box_bg > .row > .col,
.image_bg_relative:has(.realization-banner) .realization-banner,
.image_bg_relative:has(.realization-banner) .realization-banner__media {
	height: 100%;
}

/* Match the bump from .stretch-media-bg .realization-banner__media so the
   banner reaches the photo's 900px desktop min-height. */
.image_bg_relative:has(.realization-banner) .realization-banner__media {
	min-height: 900px;
}

/* The Bootstrap col around the banner adds 15px padding on each side,
   leaving white strips between the photo edge and the section content
   (gradient overlay + shape) on the homepage. Pull the banner out by
   the same amount so the overlay and the photo line up edge-to-edge. */
.image_bg_relative:has(.realization-banner) .realization-banner {
	margin-left: -15px;
	margin-right: -15px;
}

/* On mobile the global .html_box .image_bg { height: 300px !important }
   override (assets/css/style.css under @media max-width: 991px) clamps the
   photo container to 300px. That makes the banner overflow below the
   photo onto white background. Release the clamp here so the photo
   matches the banner height (420px from .realization-banner__media's
   mobile min-height). */
@media (max-width: 991px) {
	.image_bg_relative:has(.realization-banner) > .image_bg {
		height: auto !important;
		min-height: 420px;
	}
	.image_bg_relative:has(.realization-banner) .realization-banner__media {
		min-height: 420px;
	}
}

@media (max-width: 991px) {
	.realization-banner__media {
		min-height: 420px;
	}

	.realization-banner__content {
		left: 24px;
		right: 24px;
		bottom: 32px;
		max-width: 280px;
	}

	.realization-banner__title {
		font-size: 20px;
	}

	.realization-banner__text {
		font-size: 16px;
	}

	.realization-banner__shape--large {
		width: 760px;
		height: 760px;
		right: -240px;
		bottom: -500px;
	}

	.realization-banner__shape--small {
		width: 520px;
		height: 520px;
		right: 40px;
		bottom: -360px;
	}
}
