﻿/**
 * Homepage industrial layout, content from mbi_home.
 */

.home-industrial {
	font-family: 'Inter', sans-serif;
	color: var(--txt-blue);
}

.home-section__title {
	margin: 0 0 32px;
	font-size: clamp(32px, 4vw, 64px);
	font-weight: 500;
	letter-spacing: -0.06em;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--txt-blue);
}

.home-section__title--light {
	color: var(--txt-white);
}

.home-section__title a {
	text-decoration: none;
	color: inherit;
}

.home-section__label {
	margin: 0 0 8px;
	font-size: 16px;
	color: var(--txt-grey);
}

.home-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.home-section__head .home-section__title {
	margin: 0;
}

.home-section__link {
	color: var(--txt-coffee);
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: -0.04em;
	white-space: nowrap;
}

.home-section__cta {
	margin-top: 40px;
}

/* Hero — Figma 1:2163–1:2179
   Фото 1000px → резкий стык → тёмный блок (описание / статистика / фото).
   Без градиента и без текста поверх «размытого» перехода. */
.home-hero {
	position: relative;
	background: var(--bg-dark-blue);
	color: var(--txt-white);
}

.home-hero__stage {
	position: relative;
	width: 100%;
	height: min(1000px, calc(100vw * 1000 / 1920));
	min-height: 420px;
	display: flex;
	align-items: flex-end;
	/* title top 743, h 192 → bottom pad ≈ 65px at 1000 */
	padding: 0 0 clamp(24px, 3.4vw, 65px);
	box-sizing: border-box;
	background-color: var(--bg-dark-blue);
	background-image: var(--hero-bg);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	overflow: hidden;
}

.home-hero--video .home-hero__stage {
	background-image: none;
}

.home-hero__video {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

.home-hero__stage-inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.home-hero__title {
	margin: 0;
	max-width: 1345px;
	font-size: clamp(36px, 5vw, 96px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.08em;
	text-transform: uppercase;
	color: var(--txt-white);
}

.home-hero__title-main,
.home-hero__title-accent {
	display: block;
}

.home-hero__title-accent {
	color: var(--txt-coffee);
}

/* body: pad-top 60 от видео, pad-bottom 200 от низа статистики (Figma 42195) */
.home-hero__body {
	position: relative;
	padding: 60px 0 200px;
	background: var(--bg-dark-blue);
}

/* copy | stats | side — без row-span, иначе side растягивает gap текст↔кнопки */
.home-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 755px) minmax(0, 284px) minmax(0, 755px);
	column-gap: 20px;
	align-items: start;
	justify-content: space-between;
}

.home-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
	max-width: 755px;
}

.home-hero__text {
	margin: 0;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.03em;
	color: var(--txt-white);
}

.home-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.home-hero__ctas .mbi-btn {
	height: 76px;
	min-height: 76px;
}

.home-hero__ctas .mbi-btn:first-child {
	width: 391px;
	max-width: 100%;
}

.home-hero__ctas .mbi-btn--outline {
	width: auto;
	min-width: 261px;
	max-width: 100%;
}

.home-hero__stats {
	display: flex;
	flex-direction: column;
	gap: 58px;
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: 284px;
}

.home-hero__stats > li {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.home-hero__stat-value {
	display: block;
	font-size: clamp(36px, 3.4vw, 64px);
	font-weight: 500;
	letter-spacing: -0.08em;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--txt-white);
	white-space: nowrap;
}

.home-hero__stat-label {
	display: block;
	margin: 0;
	max-width: 228px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.03em;
	color: var(--txt-light-grey);
}

.home-hero__side {
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 755 / 520;
	background: var(--bg-blue);
	width: 100%;
	max-width: 755px;
	justify-self: end;
	position: relative;
}

.home-hero__side img,
.home-hero__side-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-hero__side-video {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* About — Figma 1:2156
   pad 128 · image 731×782 · content 1065 · texts gap 32 · text↔btn gap 48 */
.home-about {
	background: var(--bg-white);
	padding: 128px 0;
}

.home-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 731px) minmax(0, 1065px);
	column-gap: 44px;
	align-items: start;
	justify-content: space-between;
}

.home-about__media {
	width: 100%;
	max-width: 731px;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 731 / 782;
	background: var(--bg-blue);
}

.home-about__media img,
.home-about__video {
	width: 100%;
	height: 100%;
	border-radius: var(--radius);
	object-fit: cover;
	display: block;
}

.home-about__video {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.home-about__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 48px;
	max-width: 1065px;
	width: 100%;
}

.home-about__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
	width: 100%;
}

.home-about__title {
	margin: 0;
	font-size: clamp(32px, 3.4vw, 64px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.08em;
	text-transform: uppercase;
	color: var(--txt-blue);
}

.home-about__title-accent {
	color: var(--txt-coffee);
}

.home-about__title-main {
	color: var(--txt-blue);
}

.home-about__copy p {
	margin: 0;
	max-width: 895px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.03em;
	color: var(--txt-blue);
}

.home-about__btn {
	width: 445px;
	max-width: 100%;
	height: 76px;
	min-height: 76px;
}

/* Products — Figma 1:2205
   title→text 32 · text→cards 64 · cards gap 20 · cards→note 48 · note→btn 24
   cards 600×597 pad 32 · btn full-width 76 */
.home-products {
	padding: 100px 0;
	background: var(--bg-dark-blue);
	color: var(--txt-white);
}

.home-products__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
	max-width: 964px;
	margin-bottom: 64px;
}

.home-products__title {
	margin: 0;
	font-size: clamp(32px, 3.4vw, 64px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.08em;
	text-transform: uppercase;
	color: var(--txt-white);
}

.home-products__title-accent {
	color: var(--txt-coffee);
}

.home-products__text {
	margin: 0;
	max-width: 831px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.03em;
	color: var(--txt-white);
}

.home-products__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.home-products .home-card {
	width: 100%;
	min-width: 0;
	position: relative;
	display: block;
	aspect-ratio: 600 / 597;
	min-height: 360px;
	padding: 32px;
	border-radius: var(--radius);
	background: var(--bg-blue);
	text-decoration: none;
	color: var(--txt-white);
	overflow: hidden;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.home-products .home-card:hover {
	background: var(--bg-coffee);
}

.home-products .home-card__copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 305px;
}

.home-products .home-card__media {
	/* Figma 1:2209 Slot: left 159/600, top 157/597, size 652×659 */
	position: absolute;
	left: 26.5%;
	top: 26.3%;
	width: 108.7%;
	height: 110.4%;
	pointer-events: none;
	z-index: 1;
}

.home-products .home-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left top;
	display: block;
}

.home-products .home-card__title {
	margin: 0;
	font-size: clamp(24px, 2vw, 36px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.06em;
	text-transform: uppercase;
	color: var(--txt-white);
}

.home-products .home-card__text {
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--txt-white);
}

.home-products__note {
	margin: 48px 0 0;
	text-align: center;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--txt-light-grey);
}

.home-products__btn {
	display: flex;
	width: 100%;
	max-width: 100%;
	height: 76px;
	min-height: 76px;
	margin-top: 24px;
	box-sizing: border-box;
}

/* Tech — Figma 1:2377: 3+2 cards, card 2 accent coffee */
.home-tech {
	padding: 100px 0;
	background: var(--bg-dark-blue);
	color: var(--txt-white);
}

.home-tech__title {
	margin: 0 0 64px;
	max-width: 1166px;
	font-size: clamp(32px, 3.4vw, 64px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.08em;
	text-transform: uppercase;
	color: var(--txt-white);
}

.home-tech__title-accent {
	color: var(--txt-coffee);
}

.home-tech__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.home-tech__card {
	width: 100%;
	min-width: 0;
	position: relative;
	aspect-ratio: 600 / 597;
	min-height: 360px;
	padding: 32px;
	border-radius: var(--radius);
	background: var(--bg-blue);
	overflow: hidden;
	box-sizing: border-box;
	color: var(--txt-white);
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.home-tech__card:hover {
	background: var(--bg-coffee);
}

.home-tech__copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 305px;
}

.home-tech__card-title {
	margin: 0;
	font-size: clamp(24px, 2vw, 36px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.06em;
	text-transform: uppercase;
	color: var(--txt-white);
}

.home-tech__card-text {
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--txt-white);
}

/* Same image slot as product card 1:2209 */
.home-tech__media {
	position: absolute;
	left: 26.5%;
	top: 26.3%;
	width: 108.7%;
	height: 110.4%;
	pointer-events: none;
	z-index: 1;
}

.home-tech__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left top;
	display: block;
}

/* Legacy catalog styles kept for safety */
.home-catalog {
	padding: 80px 0 100px;
	background: var(--bg-dark-blue);
	color: var(--txt-white);
}

.home-catalog .home-section__title {
	color: var(--txt-white);
}

.home-catalog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 48px;
}

.home-catalog .home-card {
	width: 100%;
	min-width: 0;
	position: relative;
	display: block;
	aspect-ratio: 600 / 597;
	min-height: 360px;
	padding: 32px;
	border-radius: var(--radius);
	background: var(--bg-blue);
	text-decoration: none;
	color: var(--txt-white);
	overflow: hidden;
	box-sizing: border-box;
}

.home-catalog__name {
	font-size: 18px;
	font-weight: 500;
}

/* Cycle */
.home-cycle__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.home-cycle__text {
	margin: 0 0 32px;
	font-size: 20px;
	line-height: 1.5;
	color: var(--txt-grey);
}

.home-cycle__steps {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.home-cycle__steps li {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.home-cycle__num {
	flex-shrink: 0;
	font-size: 20px;
	font-weight: 600;
	color: var(--txt-coffee);
	letter-spacing: -0.04em;
}

.home-cycle__steps strong {
	display: block;
	margin-bottom: 4px;
	font-size: 20px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: -0.04em;
}

.home-cycle__steps p {
	margin: 0;
	font-size: 16px;
	color: var(--txt-grey);
}

.home-cycle__media img {
	width: 100%;
	border-radius: var(--radius);
	object-fit: cover;
	aspect-ratio: 4 / 5;
	display: block;
}

/* News — Figma 1:2180 4×4 cards 445×444 */
/* Catalog ЖБИ — Figma 1:2180 */
.home-news {
	padding: 100px 0 200px;
	background: var(--bg-dark-blue);
	color: var(--txt-white);
}

.home-news__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 64px;
}

.home-news__title-heading {
	margin: 0;
	max-width: 964px;
	font-size: clamp(32px, 3.4vw, 64px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.08em;
	text-transform: uppercase;
	color: var(--txt-white);
}

.home-news__title-accent {
	color: var(--txt-coffee);
}

.home-news__btn {
	flex-shrink: 0;
	min-width: min(445px, 100%);
	height: 76px;
	min-height: 76px;
	box-sizing: border-box;
}

.home-news__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.home-news__card {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	aspect-ratio: 445 / 444;
	min-height: 320px;
	/* Без этого min-height задаёт min-content ширину и рвёт сетку на узких экранах. */
	width: 100%;
	min-width: 0;
	padding: 0 32px 32px;
	border-radius: var(--radius);
	background: var(--bg-blue);
	text-decoration: none;
	color: var(--txt-white);
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.home-news__card:hover {
	background: var(--bg-coffee);
}

.home-news__media {
	position: absolute;
	left: 50%;
	top: calc(50% - 14px);
	width: 88%;
	height: 72%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 1;
	background: transparent;
}

.home-news__media img,
.home-news__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	background: transparent;
	transition: opacity 0.25s ease;
}

.home-news__img--default {
	opacity: 1;
}

.home-news__img--hover {
	opacity: 0;
}

.home-news__card:hover .home-news__img--default {
	opacity: 0;
}

.home-news__card:hover .home-news__img--hover {
	opacity: 1;
}

.home-news__card:not(:has(.home-news__img--hover)):hover .home-news__img--default {
	opacity: 1;
}

.home-news__label {
	position: relative;
	z-index: 2;
	width: 100%;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.03em;
	text-align: center;
	text-transform: uppercase;
	color: var(--txt-white);
}

/* Advantages — Figma 1:2262 */
.home-advantages {
	padding: 128px 0;
	background: var(--bg-white);
}

.home-advantages__title {
	margin: 0 0 64px;
	max-width: 1116px;
	font-size: clamp(32px, 3.4vw, 64px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.08em;
	text-transform: uppercase;
}

.home-advantages__title-accent {
	color: var(--txt-coffee);
}

.home-advantages__title-main {
	color: var(--txt-blue);
}

.home-advantages__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.home-advantages__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	min-height: 518px;
	height: 100%;
}

.home-advantages__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px;
	border-radius: var(--radius);
	background: var(--bg-coffee);
	text-align: center;
	box-sizing: border-box;
}

.home-advantages__item--wide {
	grid-column: 1 / -1;
}

.home-advantages__dots {
	display: flex;
	gap: 4px;
	align-items: center;
}

.home-advantages__dots span {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #e4c5a8;
}

.home-advantages__dots span.is-on {
	background: var(--bg-white);
}

.home-advantages__label {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--txt-white);
}

.home-advantages__media {
	border-radius: var(--radius);
	overflow: hidden;
	min-height: 518px;
	height: 100%;
	background: var(--bg-blue);
}

.home-advantages__media img,
.home-advantages__video {
	width: 100%;
	height: 100%;
	min-height: 518px;
	object-fit: cover;
	display: block;
}

/* Production / projects gallery — Figma 1:2234 */
.home-production {
	padding: 128px 0;
	background: var(--bg-dark-blue);
	color: var(--txt-white);
}

.home-production__intro {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 964px;
	margin-bottom: 64px;
}

.home-production__title {
	margin: 0;
	max-width: 964px;
	font-size: clamp(32px, 3.4vw, 64px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.08em;
	text-transform: uppercase;
	color: var(--txt-white);
}

.home-production__title-accent {
	color: var(--txt-coffee);
}

.home-production__text {
	margin: 0;
	max-width: 831px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.03em;
	color: var(--txt-white);
}

.home-production__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.home-production__col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.home-production__col--left {
	gap: 215px;
}

.home-production__col--right {
	gap: 245px;
	padding-top: 0;
}

.home-production__item {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	min-width: 0;
}

.home-production__media {
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-blue);
}

.home-production__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Tall left project — Figma ~600×787 within 910 col */
.home-production__item--1 {
	width: 65.9%;
	max-width: 600px;
}

.home-production__item--1 .home-production__media {
	aspect-ratio: 600 / 787;
}

/* Top-right — 445×416 */
.home-production__item--2 {
	width: 48.9%;
	max-width: 445px;
}

.home-production__item--2 .home-production__media {
	aspect-ratio: 445 / 416;
}

/* Bottom-left — 445×410 */
.home-production__item--3 {
	width: 48.9%;
	max-width: 445px;
}

.home-production__item--3 .home-production__media {
	aspect-ratio: 445 / 410;
}

/* Wide bottom-right — full column */
.home-production__item--4 {
	width: 100%;
}

.home-production__item--4 .home-production__media {
	aspect-ratio: 910 / 745;
}

.home-production__caption {
	margin: 0;
	font-size: clamp(20px, 1.9vw, 36px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.06em;
	text-transform: uppercase;
	color: var(--txt-white);
}

/* Portfolio — asymmetric */
.home-portfolio__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: minmax(180px, auto);
	gap: 16px;
}

.home-portfolio__item {
	margin: 0;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	grid-column: span 6;
}

.home-portfolio__item--1 {
	grid-column: span 7;
	grid-row: span 2;
}

.home-portfolio__item--2 {
	grid-column: span 5;
}

.home-portfolio__item--3 {
	grid-column: span 5;
}

.home-portfolio__item--4 {
	grid-column: span 12;
	min-height: 280px;
}

.home-portfolio__item img {
	width: 100%;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
	display: block;
}

.home-portfolio__item figcaption {
	position: absolute;
	left: 20px;
	bottom: 16px;
	margin: 0;
	padding: 8px 14px;
	background: rgba(34, 42, 54, 0.72);
	border-radius: 8px;
	color: var(--txt-white);
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: -0.03em;
}

/* Panels gallery — Figma 1:2338 */
.home-panels {
	padding: 128px 0;
	background: var(--bg-white);
	color: var(--txt-blue);
}

.home-panels__title {
	margin: 0 0 64px;
	max-width: 992px;
	font-size: clamp(32px, 3.4vw, 64px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.08em;
	text-transform: uppercase;
	color: var(--txt-blue);
}

.home-panels__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 23px;
	align-items: stretch;
}

.home-panels__info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	min-height: 549px;
	padding: 32px;
	border-radius: var(--radius);
	background: var(--bg-blue);
	box-sizing: border-box;
}

.home-panels__copy {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.home-panels__heading {
	margin: 0;
	font-size: clamp(22px, 1.8vw, 32px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.04em;
	color: var(--txt-white);
}

.home-panels__text {
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--txt-light-grey);
}

.home-panels__btn {
	width: 100%;
	height: 76px;
	min-height: 76px;
	box-sizing: border-box;
	white-space: normal;
	text-align: center;
	line-height: 1.2;
}

.home-panels__card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 549px;
	padding: 24px;
	border-radius: var(--radius);
	overflow: hidden;
	box-sizing: border-box;
	color: var(--txt-white);
}

.home-panels__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.home-panels__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-panels__card::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 55%);
	pointer-events: none;
}

.home-panels__label {
	position: relative;
	z-index: 2;
	max-width: 305px;
	font-size: clamp(22px, 1.9vw, 36px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.06em;
	text-transform: uppercase;
	color: var(--txt-white);
}

/* Stats highlight — Figma 1:2350 */
.home-stats-block {
	padding: 128px 0;
	background: var(--bg-white);
	color: var(--txt-blue);
	border-bottom: 200px solid var(--bg-dark-blue);
}

.home-stats-block__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 910px);
	gap: 24px;
	align-items: stretch;
}

.home-stats-block__media {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	align-self: stretch;
	min-height: 640px;
	height: 100%;
	/* Figma 1:2351 — 906×914 */
	aspect-ratio: 906 / 914;
	background: var(--bg-blue);
	/* min-height + aspect-ratio задавали min-content ширину и рвали сетку на мобиле. */
	min-width: 0;
	max-width: 100%;
}

.home-stats-block__media img,
.home-stats-block__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	display: block;
	border: 0;
	background: var(--bg-dark-blue);
}

.home-stats-block__video {
	pointer-events: none;
}

.home-stats-block__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 201px;
	min-width: 0;
	width: 100%;
	max-width: 910px;
}

.home-stats-block__title {
	margin: 0;
	font-size: clamp(28px, 3.2vw, 64px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.08em;
	text-transform: uppercase;
	color: var(--txt-blue);
}

.home-stats-block__title-accent {
	color: var(--txt-coffee);
}

.home-stats-block__ticker {
	position: relative;
	height: 433px;
	border-radius: var(--radius);
	background: var(--bg-dark-blue);
	overflow: hidden;
	padding: 0 24px;
	box-sizing: border-box;
}

.home-stats-block__ticker::before,
.home-stats-block__ticker::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	z-index: 2;
	height: 96px;
	pointer-events: none;
}

.home-stats-block__ticker::before {
	top: 0;
	background: linear-gradient(to bottom, #222a36 0%, rgba(34, 42, 54, 0) 100%);
}

.home-stats-block__ticker::after {
	bottom: 0;
	background: linear-gradient(to top, #222a36 0%, rgba(34, 42, 54, 0) 100%);
}

.home-stats-block__ticker-track {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 96px;
	padding: 120px 0;
	animation: home-stats-ticker 28s linear infinite;
	will-change: transform;
}

.home-stats-block__ticker-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	width: 100%;
	max-width: 100%;
	padding: 8px 16px;
	box-sizing: border-box;
	text-align: center;
	overflow: visible;
}

.home-stats-block__ticker-value {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.08em 0;
	font-size: clamp(48px, 6.5vw, 128px);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.06em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0.35) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	overflow: visible;
}

.home-stats-block__ticker-label {
	display: block;
	width: 100%;
	max-width: 36em;
	margin: 0 auto;
	padding: 0 8px;
	box-sizing: border-box;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.03em;
	color: var(--txt-white);
	overflow-wrap: anywhere;
	word-wrap: break-word;
	hyphens: auto;
}

@keyframes home-stats-ticker {
	0% {
		transform: translateY(0);
	}

	100% {
		transform: translateY(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-stats-block__ticker-track {
		animation: none;
	}
}

/* Panorama / Instagram — Figma 1:2253 (static strip, edges clipped) */
.home-panorama {
	padding: 64px 0 0;
	background: var(--bg-dark-blue);
	color: var(--txt-white);
	overflow: hidden;
}

.home-panorama__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 64px;
}

.home-panorama__title {
	margin: 0;
	max-width: 920px;
	padding: 0 var(--pad, 40px);
	font-size: clamp(28px, 3.4vw, 64px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.08em;
	text-align: center;
	text-transform: uppercase;
	color: var(--txt-white);
}

.home-panorama__title a {
	color: inherit;
	text-decoration: none;
}

.home-panorama__viewport {
	width: 100%;
	overflow: hidden;
}

.home-panorama__track {
	display: flex;
	gap: 20px;
	width: max-content;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.home-panorama__item {
	position: relative;
	flex: 0 0 445px;
	width: 445px;
	height: 725px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-blue);
}

.home-panorama__item img,
.home-panorama__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-panorama__video {
	pointer-events: none;
}

/* —— Adaptive (desktop → tablet → mobile) —— */
@media (max-width: 1600px) {
	.home-hero__inner {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.55fr) minmax(0, 1.1fr);
		column-gap: 20px;
	}

	.home-hero__text,
	.home-hero__stat-label,
	.home-about__copy p {
		font-size: 20px;
	}

	.home-hero__ctas .mbi-btn:first-child {
		min-width: 0;
	}

	.home-about__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
		gap: 32px;
	}
}

@media (max-width: 1280px) {
	.home-hero__stage {
		min-height: 480px;
		padding-bottom: 28px;
	}

	.home-hero__body {
		padding: 40px 0 80px;
	}

	.home-hero__inner {
		grid-template-columns: 1fr 1fr;
		grid-template-areas: none;
	}

	.home-hero__copy {
		grid-column: 1;
		grid-row: 1;
		max-width: none;
		gap: 32px;
	}

	.home-hero__stats {
		grid-column: 2;
		grid-row: 1;
		max-width: none;
		gap: 32px;
	}

	.home-hero__side {
		grid-column: 1 / -1;
		grid-row: 2;
		max-width: none;
		justify-self: stretch;
		aspect-ratio: 16 / 9;
		margin-top: 24px;
	}

	.home-hero__ctas .mbi-btn:first-child {
		width: auto;
	}

	.home-about {
		padding: 80px 0;
	}

	.home-panorama__item {
		flex-basis: 320px;
		width: 320px;
		height: 520px;
	}

	.home-tech__grid {
		grid-template-columns: 1fr 1fr;
	}

	.home-tech__card,
	.home-tech__card:nth-child(n + 4) {
		grid-column: auto;
	}

	.home-portfolio__grid {
		grid-template-columns: 1fr 1fr;
	}

	.home-portfolio__item,
	.home-portfolio__item--1,
	.home-portfolio__item--2,
	.home-portfolio__item--3,
	.home-portfolio__item--4 {
		grid-column: span 1;
		grid-row: auto;
	}
}

@media (max-width: 1100px) {
	.home-advantages__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Три колонки в 375px давали ячейку 103px — подписи вылезали за экран. */
	.home-advantages__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto;
		min-height: 0;
	}

	.home-advantages__label {
		font-size: 15px;
		overflow-wrap: anywhere;
	}

	.home-advantages__item {
		padding: 16px;
		min-width: 0;
	}

	.home-advantages__media,
	.home-advantages__media img,
	.home-advantages__video {
		min-height: 360px;
	}

	.home-production__grid {
		grid-template-columns: 1fr 1fr;
	}

	.home-production__col--left,
	.home-production__col--right {
		gap: 48px;
	}

	.home-production__item--1,
	.home-production__item--2,
	.home-production__item--3,
	.home-production__item--4 {
		width: 100%;
		max-width: none;
	}
}

@media (max-width: 900px) {
	/* Планшет: 4 и 3 колонки не помещаются — по две. */
	.home-news__grid,
	.home-panels__grid,
	.home-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/*
	 * Смещения картинок в карточках рассчитаны на десктопную ширину:
	 * на узкой карточке они уезжают за край. Центрируем и вписываем.
	 */
	.home-products .home-card__media,
	.home-catalog .home-card__media,
	.home-news__media {
		left: 50%;
		top: 46%;
		width: 74%;
		height: 54%;
		max-width: calc(100% - 32px);
		transform: translate(-50%, -50%);
	}

	.home-products .home-card__media img,
	.home-catalog .home-card__media img,
	.home-news__media img,
	.home-news__img {
		object-fit: contain;
		object-position: center;
	}

	/* Кнопка с min-width 445px не влезала в строку заголовка и вылезала за экран. */
	.home-news__head,
	.home-section__head {
		flex-wrap: wrap;
	}

	.home-news__btn,
	.home-about__btn {
		min-width: 0;
		max-width: 100%;
	}

	.home-news__btn {
		width: 100%;
	}

	.home-hero__inner {
		grid-template-columns: 1fr;
		grid-template-areas: none;
	}

	.home-hero__side {
		grid-column: auto;
		grid-row: auto;
		order: -1;
		margin-top: 0;
		margin-bottom: 8px;
	}

	.home-hero__copy,
	.home-hero__stats {
		grid-column: auto;
		grid-row: auto;
	}

	.home-hero__copy {
		gap: 28px;
	}

	.home-hero__stats {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 28px 40px;
		max-width: none;
	}

	.home-hero__ctas .mbi-btn {
		flex: 1 1 auto;
		width: auto;
		min-width: min(100%, 240px);
	}

	.home-hero__ctas .mbi-btn--outline {
		min-width: 0;
	}

	.home-about__grid {
		grid-template-columns: 1fr;
	}

	.home-about__media img {
		aspect-ratio: 4 / 3;
		min-height: 0;
	}
}

@media (max-width: 700px) {
	/*
	 * Мобилка: вместо бегущей ленты — статичные карточки друг под другом (Figma).
	 * Копия элементов, нужная для бесшовной прокрутки, скрывается.
	 */
	.home-stats-block__ticker {
		height: auto;
		padding: 0;
		background: transparent;
		overflow: visible;
	}

	.home-stats-block__ticker::before,
	.home-stats-block__ticker::after {
		content: none;
	}

	.home-stats-block__ticker-track {
		animation: none;
		gap: 16px;
		padding: 0;
		transform: none;
		will-change: auto;
	}

	.home-stats-block__ticker-item.is-clone {
		display: none;
	}

	.home-stats-block__ticker-item {
		gap: 12px;
		padding: 32px 20px;
		border-radius: var(--radius);
		background: var(--bg-dark-blue);
	}

	.home-hero__stage {
		height: min(420px, 70vh);
		min-height: 320px;
		padding-bottom: 24px;
	}

	.home-hero__body {
		padding: 32px 0 64px;
	}

	.home-hero__title {
		font-size: clamp(28px, 9vw, 40px);
		letter-spacing: -0.06em;
	}

	.home-hero__text,
	.home-hero__stat-label {
		font-size: 16px;
	}

	.home-hero__stat-value {
		font-size: 32px;
	}

	.home-hero__ctas {
		flex-direction: column;
		align-items: stretch;
	}

	.home-hero__ctas .mbi-btn {
		width: 100%;
		min-width: 0;
		height: 56px;
		min-height: 56px;
		font-size: 14px;
	}

	.home-about,
	.home-products {
		padding: 56px 0;
	}

	.home-about__text {
		gap: 32px;
	}

	.home-about__copy {
		gap: 24px;
	}

	.home-about__copy p {
		font-size: 16px;
	}

	.home-about__btn {
		width: 100%;
		min-width: 0;
		height: 56px;
		min-height: 56px;
		font-size: 14px;
	}

	.home-panorama__item {
		flex-basis: 260px;
		width: 260px;
		height: 420px;
	}

	/* Три-четыре колонки в 360px давали карточки по 90px — на мобиле в одну колонку. */
	.home-panels__grid,
	.home-news__grid,
	.home-products__grid,
	.home-tech__grid,
	.home-catalog__grid,
	.home-cycle__grid,
	.home-production__grid,
	.home-portfolio__grid,
	.home-stats-block__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Вертикальные отступы секций: 100–128px на телефоне — слишком много. */
	.home-tech,
	.home-stats-block,
	.home-catalog,
	.home-cycle,
	.home-panels,
	.home-news,
	.home-production {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	/* Кнопки hero не должны упираться в статистику. */
	.home-hero__ctas {
		margin-bottom: 16px;
	}

	/* Картинка в карточке рассчитана на десктоп — на телефоне центрируем и вписываем. */
	.home-products .home-card__media,
	.home-catalog .home-card__media {
		left: 50%;
		top: 52%;
		width: 74%;
		height: 56%;
		transform: translate(-50%, -50%);
	}

	.home-products .home-card__media img,
	.home-catalog .home-card__media img {
		object-fit: contain;
		object-position: center;
	}

	.home-news__media {
		top: 42%;
		width: 72%;
		height: 52%;
	}

	/* Заголовок карточки поверх картинки и с запасом снизу. */
	.home-card__title,
	.home-news__title {
		position: relative;
		z-index: 2;
	}

	.home-panels__info,
	.home-panels__card {
		min-height: 420px;
	}

	.home-panels__btn {
		height: var(--btn-h);
		min-height: var(--btn-h);
	}

	.home-stats-block__media {
		aspect-ratio: 16 / 10;
		min-height: 0;
		height: auto;
		width: 100%;
	}

	.home-stats-block__media img,
	.home-stats-block__video {
		inset: 0;
		width: 100%;
		height: 100%;
		transform: none;
	}

	.home-stats-block__content {
		gap: 48px;
		max-width: none;
	}

	.home-stats-block__ticker-value {
		font-size: 44px;
		letter-spacing: -0.04em;
	}

	.home-stats-block__ticker-label {
		font-size: 16px;
		padding: 0 4px;
	}

	.home-production__col--left,
	.home-production__col--right {
		gap: 32px;
	}

	.home-production__intro {
		margin-bottom: 40px;
		gap: 20px;
	}

	.home-production__text {
		font-size: 18px;
	}

	.home-production__caption {
		font-size: 20px;
	}

	.home-section__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.home-news__head {
		flex-direction: column;
		align-items: stretch;
	}

	.home-news__btn {
		min-width: 0;
		width: 100%;
		height: var(--btn-h);
		min-height: var(--btn-h);
	}

	.home-portfolio__item,
	.home-portfolio__item--1,
	.home-portfolio__item--2,
	.home-portfolio__item--3,
	.home-portfolio__item--4 {
		grid-column: span 1;
	}
}

