/*
 * Доработки темы поверх сборки вёрстки (themes/assets/css/main.css).
 * Подключается в modules/link.tpl после main.css. Классы с префиксом eg- — наши.
 *
 *  1. Шапка: закреплена у верхнего края, всегда чёрная, на всю ширину
 *  2. Рамки блоков убраны
 *  3. Главная: первый экран — текст по центру по вертикали
 *  4. Главная: «О бренде» — полноэкранное фото
 *  5. Главная: «Каталог» и «Коллекция» — сетка карточек как у «Портфолио»
 *  6. «Материалы для скачивания» — кнопка «Скачать» вместо стрелки
 *  7. Подвал: соцсети иконками; нижняя строка — © и политика
 */

:root {
	--eg-header-h: 80px;
}

@media screen and (max-width: 1024px) {
	:root {
		--eg-header-h: 54px;
	}
}

/* ---------- 1. Шапка ---------- */

.header,
.header.active {
	top: 0;
	padding: 0;
}

.header__inner {
	max-width: none;
	min-height: var(--eg-header-h);
	padding: 8px 40px;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	background: var(--black);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

@media screen and (max-width: 1024px) {
	.header,
	.header.active {
		top: 0;
		padding: 0;
	}

	.header__inner {
		padding: 8px 16px;
	}
}

/* ---------- 2. Рамки ---------- */

.block__inner {
	border: none;
}

/* Слайды главной: контент не уходит под закреплённую шапку */
.slider-page .block {
	padding-top: var(--eg-header-h);
}

.slider-page .intro .block,
.slider-page .eg-cover .block {
	padding-top: 0;
}

/* ---------- 3. Первый экран ---------- */

.intro .block__inner > .flex\:col-max-small {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.intro .block__content {
	flex-grow: 1;
	justify-content: center;
	padding: calc(var(--eg-header-h) + 60px) 0 140px;
}

@media screen and (max-width: 1170px) {
	.intro .block__content {
		padding: calc(var(--eg-header-h) + 40px) 0 120px !important;
	}
}

/* ---------- 4. Полноэкранное фото с текстом ---------- */

.eg-cover {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: calc(var(--vh, 1vh) * 100);
	overflow: hidden;
	background: var(--black);
}

.eg-cover__img {
	position: absolute;
	inset: 0;
}

.eg-cover__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eg-cover__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, 0) 75%);
}

.eg-cover > .flex\:col-max {
	z-index: 1;
	position: relative;
	flex-grow: 1;
}

.eg-cover .block__inner > .flex\:col-max-small {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.eg-cover .block__content {
	flex-grow: 1;
	justify-content: center;
	padding: calc(var(--eg-header-h) + 60px) 0 120px;
}

.eg-cover .text-tmp {
	max-width: 720px;
}

@media screen and (max-width: 768px) {
	.eg-cover__img::after {
		background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .4) 60%, rgba(0, 0, 0, .2) 100%);
	}

	.eg-cover .block__content {
		justify-content: flex-end;
		padding: calc(var(--eg-header-h) + 40px) 20px 60px !important;
	}
}

/* ---------- 5. Сетка карточек «как Портфолио» ---------- */

.eg-cards {
	grid-auto-rows: 1fr;
}

/* три карточки: последняя на всю ширину */
.eg-cards > .card-portfolio:last-child:nth-child(3) {
	grid-column: 1 / -1;
}

.eg-cards > .card-portfolio:last-child:nth-child(3) .card-portfolio__img::before {
	padding-bottom: 52%;
}

.eg-lead {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- 6. Кнопка «Скачать» ---------- */

.card-download__item:nth-child(2) {
	align-items: center;
}

.card-download .eg-download-btn {
	margin-left: auto;
	transition: .3s all ease;
}

@media (hover) {
	.card-download:hover .eg-download-btn {
		background: var(--accent-4);
	}
}

/* ---------- 7. Подвал ---------- */

.eg-footer-copy {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	width: 100%;
	margin-top: auto;
	padding-top: 30px;
	gap: 20px 40px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.eg-footer-copy__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 30px;
}

.eg-footer-copy a {
	color: var(--accent-3);
	font-size: var(--fs-14);
	transition: .3s all ease;
}

@media (hover) {
	.eg-footer-copy a:hover {
		color: var(--white);
	}
}

.eg-footer-copy .text-tmp {
	width: auto;
}

.eg-footer-copy__item > * {
	white-space: nowrap;
}

.eg-footer-copy .eg-dev i {
	font-style: normal;
}

.eg-socials {
	display: flex;
	align-items: center;
	gap: 10px;
}

.eg-socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--white);
}

.eg-socials a img {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

@media (hover) {
	.eg-socials a:hover {
		background: var(--accent-4);
	}

	.eg-socials a:hover img {
		filter: invert(1);
	}
}

.eg-footer-copy__item:last-child {
	justify-content: flex-end;
}

@media screen and (max-width: 1024px) {
	.eg-footer-copy {
		grid-template-columns: 1fr;
	}

	.eg-footer-copy__item:last-child {
		justify-content: flex-start;
	}
}

@media screen and (max-width: 768px) {
	.eg-footer-copy__item {
		flex-direction: column;
		align-items: flex-start;
	}

	.eg-footer-copy__item > * {
		white-space: normal;
	}
}

.footer__inner {
	gap: 120px;
}

@media screen and (max-width: 768px) {
	.footer__inner {
		gap: 60px;
	}
}

/* Главная: подвал-слайд не заходит под номера слайдов справа */
@media screen and (min-width: 1171px) {
	.slider-page .footer__inner {
		padding-right: 120px;
	}
}

/* =====================================================================
   Внутренние страницы «О бренде» (Философия, Производство, …)
   ===================================================================== */

:root {
	/* левый край контента .flex:col-max-small (1600px + поля 20px) */
	--eg-gutter: calc(max(0px, (100vw - 1600px) / 2) + 20px);
	/* отступ текста внутри полноширинных фото (.flex:col-max, 1920px) */
	--eg-inset: max(40px, calc((min(100vw, 1920px) - 1600px) / 2));
}

@media screen and (max-width: 768px) {
	:root {
		--eg-inset: 20px;
	}
}

/* ---------- Заголовок страницы H1 ---------- */

.eg-page-head {
	padding-top: calc(var(--eg-header-h) + 60px);
	padding-bottom: 60px;
}

@media screen and (max-width: 768px) {
	.eg-page-head {
		padding-top: calc(var(--eg-header-h) + 30px);
		padding-bottom: 30px;
	}
}

/* ---------- Баннер: фото + заголовок и текст снизу слева ---------- */

.eg-banner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	min-height: clamp(560px, 44.8vw, 860px);
	padding: 120px var(--eg-inset) 80px;
	overflow: hidden;
	background: var(--black);
}

.eg-banner__img {
	position: absolute;
	inset: 0;
}

.eg-banner__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eg-banner__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .85) 100%),
		radial-gradient(ellipse 110% 95% at 50% 25%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .53) 66%);
}

.eg-banner__desc {
	z-index: 1;
	position: relative;
	width: 100%;
	max-width: 768px;
}

.eg-banner__desc h2 {
	margin-bottom: 40px;
}

.eg-banner__desc p + p {
	margin-top: 12px;
}

@media screen and (max-width: 768px) {
	.eg-banner {
		min-height: 0;
		padding: 340px var(--eg-inset) 40px;
	}

	.eg-banner__img {
		bottom: auto;
		height: 520px;
	}

	.eg-banner__img::after {
		background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 1) 100%);
	}

	.eg-banner__desc h2 {
		margin-bottom: 24px;
	}
}

/* ---------- Горизонтальный слайдер карточек (scroll-snap + кнопки, js/custom.js) ---------- */

.eg-slider {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-left: var(--eg-gutter);
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.eg-slider::-webkit-scrollbar {
	display: none;
}

.eg-slider__track {
	display: flex;
	width: max-content;
	gap: 24px;
	padding: 0 var(--eg-gutter);
}

.eg-slider__track > * {
	scroll-snap-align: start;
}

.eg-slider__btns {
	width: 100%;
	margin-top: 60px;
	gap: 8px;
}

.eg-slider__btns.is-hidden {
	display: none;
}

@media screen and (max-width: 768px) {
	.eg-slider__track {
		gap: 16px;
	}

	.eg-slider__btns {
		margin-top: 30px;
	}
}

/* ---------- Карточка принципа (Философия) ---------- */

.eg-principle {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 0 0 auto;
	width: clamp(300px, 26.25vw, 504px);
	aspect-ratio: 504 / 800;
	padding: 24px 24px 32px;
	gap: 30px;
	overflow: hidden;
	background: var(--accent);
	color: var(--white);
}

.eg-principle__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eg-principle::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .9) 100%);
}

.eg-principle__head,
.eg-principle__text {
	z-index: 1;
	position: relative;
}

.eg-principle__head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.eg-principle__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 10px;
	border-radius: 50%;
	background: var(--white);
}

.eg-principle__icon img {
	width: 36px;
	height: 36px;
}

.eg-principle__head h3 {
	margin: 0;
	color: var(--white);
	font-family: var(--ff-second);
	font-size: var(--fs-32);
	font-weight: 600;
	line-height: .96;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.eg-principle__text,
.eg-principle__text p {
	margin: 0;
	color: var(--white);
	font-size: var(--fs-18);
	line-height: 1.5;
}

@media screen and (max-width: 768px) {
	.eg-principle {
		width: calc(100vw - 40px);
		max-width: 400px;
		padding: 20px 20px 24px;
	}

	.eg-principle__icon {
		width: 48px;
		height: 48px;
		padding: 8px;
	}

	.eg-principle__icon img {
		width: 32px;
		height: 32px;
	}
}

/* ---------- Фото-ссылка с кнопкой (низ страницы) ---------- */

.eg-photo-link {
	position: relative;
	display: block;
	width: 100%;
	height: clamp(260px, 44.8vw, 860px);
	margin-bottom: 20px;
	overflow: hidden;
}

.eg-photo-link > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: .6s transform ease;
}

.eg-photo-link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 79%, rgba(0, 0, 0, .9) 100%);
	pointer-events: none;
}

.eg-photo-link__btn {
	z-index: 1;
	position: absolute;
	left: 30px;
	bottom: 30px;
}

@media (hover) {
	a.eg-photo-link:hover > img {
		transform: scale(1.02);
	}

	a.eg-photo-link:hover .eg-photo-link__btn {
		background: var(--white);
		color: var(--black);
	}

	a.eg-photo-link:hover .eg-photo-link__btn .icon-arrow-long-left {
		filter: invert(100%);
	}
}

@media screen and (max-width: 768px) {
	.eg-photo-link__btn {
		left: 16px;
		bottom: 16px;
	}
}

/* ---------- Общие элементы внутренних страниц ---------- */

.eg-section-title {
	max-width: 1164px;
	margin-bottom: 60px;
}

.eg-section-title--narrow {
	max-width: 768px;
}

.eg-head-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 60px;
	margin-bottom: 60px;
}

.eg-head-row .eg-slider__btns {
	width: auto;
	margin-top: 0;
	flex-shrink: 0;
}

.eg-page-head__desc p {
	max-width: 611px;
	margin: 36px auto 0;
}

@media screen and (max-width: 768px) {
	.eg-section-title,
	.eg-head-row {
		margin-bottom: 30px;
	}

	.eg-head-row {
		gap: 20px;
	}

	.eg-page-head__desc p {
		margin-top: 20px;
	}
}

/* ---------- Первый экран: фото на весь экран, H1, подзаголовок, цифры ---------- */

.eg-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	min-height: clamp(640px, 100svh, 940px);
	overflow: hidden;
	background: #080a09;
}

.eg-hero__img {
	position: absolute;
	inset: 0;
}

.eg-hero__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eg-hero__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 70% 50%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .6) 50%),
		linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .55) 100%);
}

.eg-hero__inner {
	z-index: 1;
	position: relative;
	flex-grow: 1;
	justify-content: space-between;
	gap: 60px;
	padding-top: calc(var(--eg-header-h) + 76px);
	padding-bottom: 60px;
}

.eg-hero__desc {
	max-width: 1164px;
}

.eg-hero__desc h1 {
	margin-bottom: 36px;
}

.eg-hero__desc p {
	max-width: 503px;
}

.eg-hero__btns {
	margin-top: 60px;
}

.eg-stats {
	display: flex;
	width: 100%;
	gap: 24px;
	padding: 24px 24px 0;
	border-top: 1px solid rgba(164, 164, 164, .25);
	color: var(--white);
}

.eg-stats__item {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.eg-stats__label {
	font-size: var(--fs-14);
	line-height: 1.5;
}

.eg-stats__num {
	font-family: var(--ff-second);
	font-size: clamp(40px, 3.33vw, 64px);
	font-weight: 600;
	line-height: .96;
	white-space: nowrap;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.eg-stats__num sup {
	margin-left: 10px;
	font-size: clamp(16px, 1.04vw, 20px);
	font-weight: 700;
	line-height: 1;
	vertical-align: top;
}

@media screen and (max-width: 768px) {
	.eg-hero {
		min-height: clamp(600px, 100svh, 900px);
	}

	.eg-hero__inner {
		padding-top: calc(var(--eg-header-h) + 45px);
		padding-bottom: 40px;
	}

	.eg-hero__desc h1 {
		margin-bottom: 24px;
	}

	.eg-hero__btns {
		margin-top: 30px;
	}

	.eg-stats {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 24px 16px;
		padding: 24px 0 0;
	}
}

/* ---------- Заголовок слева + текст справа, широкое фото ---------- */

.eg-split {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	color: var(--white);
}

.eg-split > .text-tmp:first-child {
	flex: 1 1 0;
}

.eg-split__text {
	flex: 0 1 768px;
}

.eg-split__text p + p,
.eg-media__text p + p {
	margin-top: 12px;
}

.eg-wide-photo {
	width: 100%;
	height: clamp(240px, 35vw, 672px);
	margin-top: 60px;
	overflow: hidden;
}

.eg-wide-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media screen and (max-width: 1024px) {
	.eg-split {
		flex-direction: column;
		gap: 24px;
	}

	.eg-split__text {
		flex-basis: auto;
	}

	.eg-wide-photo {
		margin-top: 30px;
	}
}

/* ---------- Текст + фото (Лаборатория) ---------- */

.eg-media {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.eg-media__text,
.eg-media__img {
	flex: 1 1 0;
	min-width: 0;
}

.eg-media__text > * + * {
	margin-top: 40px;
}

.eg-media__text h3 {
	color: var(--white);
	font-family: var(--ff-second);
	font-size: var(--fs-32);
	font-weight: 600;
	line-height: .96;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.eg-media__text ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.eg-media__text li {
	font-size: var(--fs-18);
	line-height: 1.5;
}

.eg-media__text li + li {
	margin-top: 12px;
}

.eg-media__text li::before {
	content: "— ";
}

.eg-media__img {
	aspect-ratio: 768 / 632;
	overflow: hidden;
}

.eg-media__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media screen and (max-width: 1024px) {
	.eg-media {
		flex-direction: column;
		gap: 30px;
	}

	.eg-media__text,
	.eg-media__img {
		flex: none;
		width: 100%;
	}

	.eg-media__text > * + * {
		margin-top: 24px;
	}
}

/* ---------- Карточка стандарта с описанием по «+» ---------- */

.eg-std {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	width: clamp(300px, 26.25vw, 504px);
	aspect-ratio: 504 / 700;
	padding: 24px 24px 32px;
	overflow: hidden;
	background: var(--black);
	color: var(--white);
}

.eg-std__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eg-std::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, 0) 15.4%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .9) 100%);
	pointer-events: none;
}

.eg-std__text {
	z-index: 1;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	margin-top: auto;
}

.eg-std__code {
	font-size: var(--fs-18);
	line-height: 1.5;
}

.eg-std__text h3 {
	margin: 0;
	color: var(--white);
	font-family: var(--ff-second);
	font-size: clamp(28px, 2.08vw, 40px);
	font-weight: 700;
	line-height: .96;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.eg-std__toggle {
	z-index: 3;
	position: relative;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: none;
	border-radius: 50%;
	background: #f4f4f4;
	color: var(--black);
	cursor: pointer;
	transition: .3s transform ease, .3s background ease;
}

.eg-std__toggle[aria-expanded="true"] {
	transform: rotate(45deg);
}

.eg-std__popup {
	z-index: 2;
	position: absolute;
	inset: 1.43% 1.98%;
	display: flex;
	align-items: center;
	padding: 60px 12px 24px;
	overflow-y: auto;
	background: var(--white);
	color: var(--black);
	animation: eg-fade .3s ease;
}

.eg-std__popup[hidden] {
	display: none;
}

.eg-std__popup-text,
.eg-std__popup-text p {
	color: var(--black);
	font-family: var(--ff-second);
	font-size: clamp(20px, 1.67vw, 32px);
	font-weight: 600;
	line-height: .96;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.eg-std__popup-text p + p {
	margin-top: 1em;
}

@keyframes eg-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (hover) {
	.eg-std__toggle:hover {
		background: var(--white);
	}
}

@media screen and (max-width: 768px) {
	.eg-std {
		width: calc(100vw - 40px);
		max-width: 400px;
		padding: 20px 20px 24px;
	}
}

/* ---------- Большие цифры (Гарантия) ---------- */

.eg-warranty {
	display: flex;
	align-items: flex-start;
	gap: 60px;
}

.eg-warranty__title {
	flex: 0 0 min(504px, 32%);
}

.eg-warranty__list {
	display: flex;
	flex: 1 1 0;
	gap: 24px;
	padding-top: 32px;
	border-top: 1px solid rgba(128, 128, 128, .25);
}

.eg-warranty__item {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
	padding: 24px;
}

.eg-warranty__num {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--white);
	font-family: var(--ff-second);
	font-size: clamp(96px, 10.4vw, 200px);
	font-weight: 700;
	line-height: .8;
	white-space: nowrap;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.eg-warranty__num span {
	color: #bdbdbd;
	font-size: var(--fs-32);
	font-weight: 600;
	line-height: .96;
}

.eg-warranty__label {
	color: #bdbdbd;
	font-family: var(--ff-second);
	font-size: clamp(24px, 2.08vw, 40px);
	font-weight: 700;
	line-height: .96;
}

@media screen and (max-width: 1024px) {
	.eg-warranty {
		flex-direction: column;
		gap: 30px;
	}

	.eg-warranty__title {
		flex-basis: auto;
	}
}

@media screen and (max-width: 768px) {
	.eg-warranty__list {
		flex-direction: column;
		gap: 0;
		padding-top: 8px;
	}

	.eg-warranty__item {
		padding: 16px 0;
	}
}

/* ---------- Аккордеон с фото (Что представлено) ---------- */

.eg-showcase {
	display: flex;
	align-items: flex-start;
	gap: 60px;
}

.eg-showcase__list {
	flex: 0 0 min(771px, calc(50% - 30px));
}

.eg-showcase__item {
	margin-bottom: -1px;
	padding: 24px 0;
	border-top: 1px solid #aeaeae;
	border-bottom: 1px solid #aeaeae;
	transition: .3s padding ease;
}

.eg-showcase__item.is-open {
	padding: 24px 16px;
}

.eg-showcase__head {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	color: var(--white);
	font-family: var(--ff-second);
	font-size: var(--fs-32);
	font-weight: 600;
	line-height: .96;
	text-align: left;
	cursor: pointer;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.eg-showcase__head span {
	flex: 1 1 0;
}

.eg-showcase__arrow {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid #d3d3d3;
	border-radius: 50%;
	background: rgba(75, 75, 75, .25);
	color: var(--white);
	transition: .3s background ease, .3s border-color ease, .3s transform ease;
}

.eg-showcase__item.is-open .eg-showcase__arrow {
	border-color: var(--accent-4);
	background: var(--accent-4);
	transform: scaleY(-1);
}

.eg-showcase__body {
	display: grid;
	grid-template-rows: 0fr;
	transition: .3s grid-template-rows ease;
}

.eg-showcase__item.is-open .eg-showcase__body {
	grid-template-rows: 1fr;
}

.eg-showcase__body > * {
	min-height: 0;
	overflow: hidden;
}

.eg-showcase__text::before {
	content: "";
	display: block;
	height: 33px;
}

.eg-showcase__text,
.eg-showcase__text p {
	color: var(--white);
	font-size: var(--fs-14);
	line-height: 1.5;
}

.eg-showcase__img-m {
	display: none;
}

.eg-showcase__photo {
	position: relative;
	flex: 1 1 0;
	aspect-ratio: 729 / 720;
	overflow: hidden;
	background: #212121;
}

.eg-showcase__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: .5s opacity ease;
}

.eg-showcase__photo img.is-active {
	opacity: 1;
}

@media (hover) {
	.eg-showcase__head:hover .eg-showcase__arrow {
		border-color: var(--white);
	}
}

@media screen and (max-width: 1024px) {
	.eg-showcase__list {
		flex: 1 1 auto;
	}

	.eg-showcase__photo {
		display: none;
	}

	.eg-showcase__img-m {
		display: block;
	}

	.eg-showcase__img-m img {
		width: 100%;
		margin-top: 20px;
		aspect-ratio: 1 / 1;
		object-fit: cover;
		background: #212121;
	}
}

@media screen and (max-width: 768px) {
	.eg-showcase__item.is-open {
		padding: 20px 12px;
	}

	.eg-showcase__item {
		padding: 20px 0;
	}

	.eg-showcase__text::before {
		height: 20px;
	}
}

/* ---------- Шаги (Как проходит визит) ---------- */

.eg-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.eg-steps__item {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	min-height: 185px;
	padding: 24px;
	border: 1px solid rgba(128, 128, 128, .25);
}

.eg-steps__item h3 {
	margin: 0;
	color: var(--white);
	font-family: var(--ff-second);
	font-size: var(--fs-32);
	font-weight: 600;
	line-height: .96;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.eg-steps__text,
.eg-steps__text p {
	color: #bdbdbd;
	font-size: var(--fs-14);
	line-height: 1.5;
}

@media screen and (max-width: 1024px) {
	.eg-steps {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.eg-steps__item {
		min-height: 0;
	}
}

/* ---------- Видео ---------- */

.eg-video {
	position: relative;
	width: 100%;
	height: clamp(200px, 44.8vw, 860px);
	overflow: hidden;
	background: var(--black);
}

.eg-video > img,
.eg-video > video,
.eg-video > iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.eg-video::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .2);
	pointer-events: none;
}

.eg-video.is-playing::after {
	display: none;
}

.eg-video__play {
	z-index: 1;
	position: absolute;
	top: 50%;
	left: 50%;
	width: clamp(64px, 7.8vw, 150px);
	height: clamp(64px, 7.8vw, 150px);
	padding: 0;
	border: none;
	background: none;
	color: var(--white);
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: .3s transform ease;
}

.eg-video__play svg {
	width: 100%;
	height: 100%;
}

@media (hover) {
	.eg-video__play:hover {
		transform: translate(-50%, -50%) scale(1.06);
	}
}

/* ---------- Фото-слайдер «Пространство» ---------- */

.eg-space {
	flex: 0 0 auto;
	width: calc((min(100vw, 1600px) - 64px) / 2);
	aspect-ratio: 768 / 520;
	overflow: hidden;
}

.eg-space img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media screen and (max-width: 768px) {
	.eg-space {
		width: calc(100vw - 40px);
	}
}

/* ---------- Карта мира ---------- */

.eg-map {
	position: relative;
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	overflow: hidden;
	background: var(--black);
}

.eg-map::before,
.eg-map::after {
	content: "";
	z-index: 1;
	position: absolute;
	left: 0;
	right: 0;
	height: 13.75%;
	pointer-events: none;
}

.eg-map::before {
	top: 0;
	background: linear-gradient(180deg, var(--black) 0%, rgba(0, 0, 0, 0) 100%);
}

.eg-map::after {
	bottom: 0;
	background: linear-gradient(0deg, var(--black) 0%, rgba(0, 0, 0, 0) 100%);
}

.eg-map__canvas {
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 800;
}

.eg-map__bg,
.eg-map__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.eg-map__country {
	fill: #a4a4a4;
	stroke: #767676;
	stroke-width: 1;
	transition: .3s fill ease;
}

.eg-map__country.has-popup {
	cursor: pointer;
}

.eg-map__country.is-active {
	fill: var(--accent-4);
}

@media (hover) {
	.eg-map__country.has-popup:hover {
		fill: #d6d6d6;
	}

	.eg-map__country.has-popup.is-active:hover {
		fill: var(--accent-4);
	}
}

.eg-map__popup {
	z-index: 2;
	position: absolute;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: clamp(260px, 18vw, 345px);
	aspect-ratio: 345 / 419;
	padding: 12px 12px 24px;
	overflow: hidden;
	background: #222;
	color: var(--white);
	animation: eg-fade .3s ease;
}

.eg-map__popup[hidden] {
	display: none;
}

.eg-map__popup > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eg-map__popup::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .9) 6%, rgba(0, 0, 0, 0) 15.2%, rgba(0, 0, 0, 0) 68.2%, rgba(0, 0, 0, .9) 100%);
	pointer-events: none;
}

.eg-map__close {
	z-index: 1;
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	background: none;
	color: var(--white);
	cursor: pointer;
}

.eg-map__popup-text {
	z-index: 1;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.eg-map__popup-text h3 {
	margin: 0;
	color: var(--white);
	font-family: var(--ff-second);
	font-size: var(--fs-20);
	font-weight: 700;
	line-height: 1.1;
	font-feature-settings: "lnum" 1, "tnum" 1;
}

.eg-map__popup-text,
.eg-map__popup-text p {
	color: var(--white);
	font-size: var(--fs-14);
	line-height: 1.5;
}

@media screen and (max-width: 768px) {
	.eg-map {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.eg-map::-webkit-scrollbar {
		display: none;
	}

	.eg-map::before,
	.eg-map::after {
		display: none;
	}

	.eg-map__canvas {
		width: 1100px;
	}

	.eg-map__popup {
		position: fixed;
		z-index: 60;
		left: 20px !important;
		right: 20px;
		top: auto !important;
		bottom: 20px;
		width: auto;
		max-height: 70svh;
	}
}

/* ---------- Климатические условия: цифра и шкала температур ---------- */

.eg-climate {
	display: flex;
	border-top: 1px solid rgba(128, 128, 128, .25);
}

.eg-climate__item {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	min-width: 0;
	padding: 32px 32px 24px;
}

.eg-climate__item + .eg-climate__item {
	border-left: 1px solid rgba(164, 164, 164, .25);
}

.eg-climate__label {
	color: #bdbdbd;
	font-size: var(--fs-18);
	line-height: 1.5;
}

.eg-climate__num {
	margin-top: 24px;
	color: var(--white);
	font-family: var(--ff-second);
	font-size: clamp(96px, 10.4vw, 200px);
	font-weight: 700;
	line-height: .8;
	white-space: nowrap;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.eg-climate__caption {
	margin-top: 24px;
	color: #bdbdbd;
	font-size: var(--fs-16);
	line-height: 1.5;
}

.eg-climate__text {
	margin-top: 64px;
}

.eg-climate__text,
.eg-climate__text p {
	color: #bdbdbd;
	font-size: var(--fs-18);
	line-height: 1.5;
}

.eg-climate__text p + p {
	margin-top: 12px;
}

.eg-scale {
	position: relative;
	height: 70px;
	margin: 24px 3.3% 0;
}

.eg-scale__axis {
	position: absolute;
	inset: 0;
}

.eg-scale__axis::before {
	content: "";
	position: absolute;
	top: 33px;
	left: 0;
	right: -2%;
	height: 1px;
	background: #383835;
}

.eg-scale__axis span {
	position: absolute;
	top: 25px;
	padding-top: 25px;
	color: #898985;
	font-size: 12px;
	letter-spacing: 1.1px;
	white-space: nowrap;
	transform: translateX(-50%);
}

.eg-scale__axis span::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 1px;
	height: 17px;
	background: #393936;
}

.eg-scale__range {
	z-index: 1;
	position: absolute;
	top: 29px;
	height: 9px;
	background: #eeede9;
}

.eg-scale__range span {
	position: absolute;
	top: -29px;
	color: #f0efeb;
	font-size: var(--fs-14);
	letter-spacing: 1.1px;
	white-space: nowrap;
}

.eg-scale__range span:first-child {
	left: 0;
}

.eg-scale__range span:last-child {
	right: 0;
}

@media screen and (max-width: 1024px) {
	.eg-climate {
		flex-direction: column;
	}

	.eg-climate__item + .eg-climate__item {
		border-top: 1px solid rgba(164, 164, 164, .25);
		border-left: none;
	}

	.eg-climate__text {
		margin-top: 40px;
	}
}

@media screen and (max-width: 768px) {
	.eg-climate__item {
		padding: 24px 0;
	}

	.eg-scale__axis span {
		font-size: 10px;
		letter-spacing: 0;
	}
}

/* ---------- Карточки проектов (Международные проекты) ---------- */

.eg-slider__track:has(> .eg-project) {
	gap: 48px;
}

.eg-project {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	justify-content: flex-end;
	width: calc((min(100vw, 1600px) - 88px) / 2);
	aspect-ratio: 756 / 515;
	padding: 22px;
	overflow: hidden;
	background: #222;
}

.eg-project > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: .6s transform ease;
}

.eg-project::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, .65) 1.7%, rgba(0, 0, 0, 0) 50%);
	pointer-events: none;
}

.eg-project__text {
	z-index: 1;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 5px;
	color: var(--white);
}

.eg-project__text h3 {
	margin: 0;
	color: var(--white);
	font-family: var(--ff-second);
	font-size: var(--fs-32);
	font-weight: 600;
	line-height: .96;
}

.eg-project__text p {
	color: var(--white);
	font-size: var(--fs-14);
	line-height: 1.26;
}

@media (hover) {
	a.eg-project:hover > img {
		transform: scale(1.03);
	}
}

@media screen and (max-width: 768px) {
	.eg-slider__track:has(> .eg-project) {
		gap: 16px;
	}

	.eg-project {
		width: calc(100vw - 40px);
		padding: 16px;
	}
}

/* ---------- Форма на фото ---------- */

.eg-form .feedback {
	padding: 80px 0;
}

.eg-form--center {
	align-items: center;
}

@media screen and (max-width: 850px) {
	.eg-form .feedback {
		padding: 60px 0;
	}
}

/* ---------- Навигация по страницам раздела ---------- */

.eg-about-nav__head {
	margin-bottom: 60px;
}

.eg-about-nav__head p {
	margin-top: 24px;
	color: var(--white);
	font-family: var(--ff-second);
	font-size: var(--fs-24);
	font-weight: 600;
	line-height: .96;
}

.eg-about-nav__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 48px;
}

.eg-about-nav__card {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: clamp(280px, 20.8vw, 399px);
	padding: 24px;
	overflow: hidden;
	background: #222;
}

.eg-about-nav__card > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: .6s transform ease;
}

.eg-about-nav__card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 50%);
	pointer-events: none;
}

.eg-about-nav__card span {
	z-index: 1;
	position: relative;
	color: var(--white);
	font-family: var(--ff-second);
	font-size: var(--fs-32);
	font-weight: 600;
	line-height: .96;
	text-align: center;
}

@media (hover) {
	.eg-about-nav__card:hover > img {
		transform: scale(1.04);
	}
}

@media screen and (max-width: 768px) {
	.eg-about-nav__head {
		margin-bottom: 30px;
	}

	.eg-about-nav__list {
		gap: 16px;
	}
}

/* Контейнер вёрстки центрирует детей: блоки внутренних страниц — на всю ширину, по левому краю */
.flex\:col-max-small > [class*="eg-"],
.eg-hero__inner > * {
	width: 100%;
	align-self: flex-start;
}

@media screen and (max-width: 768px) {
	.eg-stats__num {
		font-size: 32px;
	}

	.eg-stats__num sup {
		margin-left: 4px;
		font-size: 14px;
	}
}
