/* ======================================================================
   /assets/css/company-modern.css
   Скопировать в отдельный CSS-файл. Здесь оставлено в одном документе
   для удобства просмотра.
====================================================================== */

:root {
	--company-red: #e31e24;
	--company-dark: #101827;
	--company-text: #4a5568;
	--company-muted: #eef2f7;
	--company-bg: #f6f8fb;
	--company-white: #ffffff;
	--company-radius-lg: 32px;
	--company-radius-md: 22px;
	--company-shadow: 0 24px 70px rgba(16, 24, 39, .10);
}

.company-page {
	font-family: inherit;
	color: var(--company-dark);
	background: var(--company-bg);
	overflow: hidden;
}

.company-page * {
	box-sizing: border-box;
}

.company-container {
	width: min(1240px, calc(100% - 32px));
	margin: 0 auto;
}

.company-hero {
	position: relative;
	padding: 64px 0 42px;
	background:
		radial-gradient(circle at 80% 20%, rgba(227, 30, 36, .13), transparent 34%),
		linear-gradient(135deg, #ffffff 0%, #f4f7fb 56%, #edf2f8 100%);
}

.company-hero::before {
	content: "";
	position: absolute;
	right: -160px;
	top: -160px;
	width: 420px;
	height: 420px;
	border-radius: 999px;
	background: rgba(227, 30, 36, .08);
}

.company-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
	gap: 48px;
	align-items: center;
}

.company-eyebrow,
.company-section-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(227, 30, 36, .09);
	color: var(--company-red);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.company-hero__title {
	max-width: 780px;
	margin: 0;
	font-size: clamp(36px, 5vw, 72px);
	line-height: .96;
	letter-spacing: -.055em;
}

.company-hero__text {
	max-width: 680px;
	margin: 26px 0 0;
	font-size: clamp(17px, 2vw, 21px);
	line-height: 1.55;
	color: var(--company-text);
}

.company-hero__actions,
.company-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.company-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 24px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.company-btn:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.company-btn--primary {
	background: var(--company-red);
	color: #fff;
	box-shadow: 0 18px 42px rgba(227, 30, 36, .25);
}

.company-btn--light {
	background: #fff;
	color: var(--company-dark);
	box-shadow: 0 12px 34px rgba(16, 24, 39, .08);
}

.company-btn--outline {
	background: transparent;
	color: var(--company-dark);
	border: 1px solid rgba(16, 24, 39, .16);
}

.company-hero__media {
	position: relative;
	padding: 18px;
	border-radius: var(--company-radius-lg);
	background: #fff;
	box-shadow: var(--company-shadow);
}

.company-hero__media img {
	display: block;
	width: 100%;
	min-height: 360px;
	object-fit: cover;
	border-radius: 24px;
}

.company-hero__badge {
	position: absolute;
	left: -18px;
	bottom: 34px;
	width: 150px;
	height: 150px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--company-red);
	color: #fff;
	font-weight: 800;
	text-align: center;
	box-shadow: 0 20px 54px rgba(227, 30, 36, .35);
}

.company-hero__badge span {
	font-size: 44px;
	line-height: 1;
}

.company-stats {
	padding: 0 0 32px;
	background: linear-gradient(180deg, transparent 0, transparent 50%, var(--company-bg) 50%);
}

.company-stats__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
	padding: 18px;
	border-radius: var(--company-radius-lg);
	background: #fff;
	box-shadow: var(--company-shadow);
}

.company-stat {
	padding: 24px 18px;
	border-radius: 22px;
	background: #f7f9fc;
}

.company-stat__num {
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1;
	font-weight: 900;
	color: var(--company-red);
	letter-spacing: -.04em;
}

.company-stat__text {
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.35;
	color: var(--company-text);
	font-weight: 700;
}

.company-section {
	padding: 72px 0;
}

.company-about-short__grid {
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: 48px;
	align-items: start;
}

.company-title {
	margin: 0;
	font-size: clamp(30px, 4vw, 52px);
	line-height: 1.05;
	letter-spacing: -.045em;
}

.company-text-block {
	padding: 32px;
	border-radius: var(--company-radius-lg);
	background: #fff;
	box-shadow: 0 16px 50px rgba(16, 24, 39, .07);
}

.company-text-block p,
.company-section-head p,
.company-advantages__content p,
.company-cta p {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	color: var(--company-text);
}

.company-text-block p + p {
	margin-top: 16px;
}

.company-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 32px;
}

.company-section-head p {
	max-width: 420px;
}

.company-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.company-card {
	min-height: 220px;
	padding: 28px;
	border-radius: var(--company-radius-md);
	background: #fff;
	box-shadow: 0 14px 46px rgba(16, 24, 39, .06);
	transition: transform .2s ease, box-shadow .2s ease;
}

.company-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--company-shadow);
}

.company-card span {
	font-size: 13px;
	font-weight: 900;
	color: var(--company-red);
}

.company-card h3 {
	margin: 42px 0 12px;
	font-size: 22px;
	line-height: 1.2;
}

.company-card p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--company-text);
}

.company-subsidiaries__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
}

.company-subsidiary {
	position: relative;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	align-items: center;
	padding: 18px;
	border-radius: var(--company-radius-lg);
	background: #fff;
	box-shadow: 0 16px 52px rgba(16, 24, 39, .07);
	text-decoration: none;
	color: inherit;
	overflow: hidden;
}

.company-subsidiary img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 24px;
}

.company-subsidiary h3 {
	margin: 0 0 10px;
	font-size: 26px;
}

.company-subsidiary p {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--company-text);
}

.company-advantages {
	background: var(--company-dark);
	color: #fff;
}

.company-advantages__grid {
	display: grid;
	grid-template-columns: .75fr 1.25fr;
	gap: 40px;
	align-items: start;
}

.company-advantages .company-title,
.company-advantages__content p {
	color: #fff;
}

.company-advantages__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.company-advantages__list div {
	position: relative;
	padding: 18px 18px 18px 48px;
	border-radius: 18px;
	background: rgba(255,255,255,.07);
	font-weight: 700;
	line-height: 1.35;
}

.company-advantages__list div::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 21px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--company-red);
}

.company-history__layout,
.company-requisites__layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
}

.company-history__tabs,
.company-requisites__tabs {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.company-history__tabs button,
.company-requisites__tabs button {
	width: 100%;
	padding: 15px 18px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--company-dark);
	font-weight: 900;
	text-align: left;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.company-history__tabs button.active,
.company-requisites__tabs button.active {
	background: var(--company-red);
	color: #fff;
}

.company-history__content,
.company-requisites__content {
	min-height: 420px;
	padding: 18px;
	border-radius: var(--company-radius-lg);
	background: #fff;
	box-shadow: 0 16px 52px rgba(16, 24, 39, .07);
}

.company-history__item,
.company-req {
	display: none;
}

.company-history__item.active,
.company-req.active {
	display: block;
}

.company-history__item img {
	width: 100%;
	height: 360px;
	object-fit: cover;
	border-radius: 24px;
}

.company-history__item p {
	margin: 18px 8px 4px;
	font-size: 22px;
	line-height: 1.45;
	font-weight: 800;
}

.company-logo-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
}

.company-logo-grid img {
	width: 100%;
	height: 112px;
	object-fit: contain;
	padding: 22px;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(16, 24, 39, .05);
}

.company-trust {
	background: #101827;
	color: #fff;
}

.company-trust .company-title {
	color: #fff;
}

.company-logo-grid--trust {
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.company-logo-grid--trust img {
	height: 110px;
	padding: 24px;
	border-radius: 22px;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.06);

	object-fit: contain;

	transition:
		transform .2s ease,
		opacity .2s ease,
		background .2s ease;
}

.company-logo-grid--trust img:hover {
	opacity: 1;
	transform: translateY(-2px);
	background: rgba(255,255,255,.08);
}

.company-partners__old-slider,
.company-branches__component {
	padding: 18px;
	border-radius: var(--company-radius-lg);
	background: #fff;
	box-shadow: 0 16px 52px rgba(16, 24, 39, .07);
}

/* Красивое оформление старого шаблона филиалов companySlide */
.company-branches__component .about-branches_slider {
	overflow: hidden;
	padding: 2px;
}

.company-branches__component .swiper-wrapper {
	align-items: stretch;
}

.company-branches__component .swiper-slide {
	height: auto;
}

.company-branches__component .about-branches_slide {
	position: relative;
	display: grid;
	grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
	min-height: 360px;
	height: 100%;
	border-radius: 28px;
	overflow: hidden;
	background: #111827;
}

.company-branches__component .about-branches_slide-img {
	width: 100%;
	height: 100%;
	min-height: 360px;
	object-fit: cover;
	filter: saturate(1.05) contrast(1.03);
}

.company-branches__component .about-branches_slide-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(24px, 4vw, 46px);
	background:
		radial-gradient(circle at 100% 0%, rgba(227, 30, 36, .18), transparent 38%),
		linear-gradient(135deg, #111827 0%, #1f2937 100%);
	color: #fff;
}

.company-branches__component .about-branches_slide-name {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.05;
	font-weight: 900;
	letter-spacing: -.04em;
	color: #fff;
}

.company-branches__component .about-branches_slide-name svg {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	padding: 10px;
	border-radius: 16px;
	background: rgba(255,255,255,.08);
}

.company-branches__component .about-branches_slide-inner p:not(.about-branches_slide-name),
.company-branches__component .about-branches_slide-inner li,
.company-branches__component .about-branches_slide-inner div {
	font-size: 16px;
	line-height: 1.65;
	color: rgba(255,255,255,.78);
}

.company-branches__component .about-branches_slide-inner a:not(.about-branches_slide-link) {
	color: #fff;
}

.company-branches__component .about-branches_slide-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: fit-content;
	min-height: 50px;
	margin-top: 22px;
	padding: 13px 20px;
	border-radius: 999px;
	background: #fff;
	color: var(--company-dark);
	font-size: 15px;
	font-weight: 900;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.company-branches__component .about-branches_slide-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(0,0,0,.18);
	text-decoration: none;
}

.company-branches__component .about-branches_contacts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 14px;
}

.company-branches__component .about-branches_contacts-link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 72px;
	padding: 14px 16px;
	border-radius: 20px;
	background: #f6f8fb;
	color: var(--company-dark);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease;
}

.company-branches__component .about-branches_contacts-link:hover {
	background: #eef2f7;
	transform: translateY(-2px);
	text-decoration: none;
}

.company-branches__component .about-branches_contacts-link svg {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	overflow: hidden;
}

.company-branches__component .about-partners_slider-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
}

.company-branches__component .about-partners_slider-arrow {
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	border-radius: 50%;
	background: #f6f8fb;
	color: var(--company-dark);
	box-shadow: none;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.company-branches__component .about-partners_slider-arrow:hover {
	background: var(--company-red);
	color: #fff;
	transform: translateY(-2px);
}

.company-branches__component .about-partners_slider-arrow svg path {
	fill: currentColor;
}

.company-branches__component .swiper-pagination {
	position: static;
	margin-top: 14px;
}

.company-branches__component .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #cbd5e1;
	opacity: 1;
}

.company-branches__component .swiper-pagination-bullet-active {
	width: 22px;
	border-radius: 999px;
	background: var(--company-red);
}

@media (max-width: 900px) {
	.company-branches__component .about-branches_slide {
		grid-template-columns: 1fr;
	}

	.company-branches__component .about-branches_slide-img {
		height: 240px;
		min-height: 240px;
	}

	.company-branches__component .about-branches_contacts {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.company-branches__component {
		padding: 10px;
	}

	.company-branches__component .about-branches_slide {
		border-radius: 22px;
	}

	.company-branches__component .about-branches_slide-inner {
		padding: 22px;
	}

	.company-branches__component .about-branches_slide-name {
		font-size: 28px;
	}
}

.company-team__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

.company-person {
	padding: 14px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 14px 40px rgba(16, 24, 39, .06);
}

.company-person img {
	width: 100%;
	aspect-ratio: 1 / 1.2;
	object-fit: cover;
	border-radius: 18px;
}

.company-person h3 {
	margin: 14px 0 5px;
	font-size: 18px;
}

.company-person p {
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--company-text);
}

.company-req p {
	margin: 0;
	padding: 18px 8px;
	border-bottom: 1px solid #edf1f6;
	font-size: 16px;
	line-height: 1.5;
	color: var(--company-text);
}

.company-req p:last-child {
	border-bottom: 0;
}

.company-cta {
	padding: 72px 0;
	background: #fff;
}

.company-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 42px;
	border-radius: var(--company-radius-lg);
	background: linear-gradient(135deg, #101827, #263143);
	color: #fff;
}

.company-cta h2 {
	margin: 0 0 10px;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.05;
	letter-spacing: -.04em;
	color: #fff;
}

.company-cta p {
	color: rgba(255,255,255,.82);
}

.company-cta .company-btn--light {
	color: var(--company-dark);
	background: #fff;
}

.company-cta .company-btn--primary {
	background: #e31e24;
	color: #fff;
}

@media (max-width: 1100px) {
	.company-hero__grid,
	.company-about-short__grid,
	.company-advantages__grid {
		grid-template-columns: 1fr;
	}

	.company-stats__grid,
	.company-logo-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.company-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.company-team__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 820px) {
	.company-section {
		padding: 52px 0;
	}

	.company-hero {
		padding-top: 38px;
	}

	.company-hero__grid {
		gap: 28px;
	}

	.company-hero__media img {
		min-height: 260px;
	}

	.company-hero__badge {
		left: 16px;
		bottom: 28px;
		width: 116px;
		height: 116px;
	}

	.company-hero__badge span {
		font-size: 32px;
	}

	.company-stats__grid,
	.company-card-grid,
	.company-subsidiaries__grid,
	.company-advantages__list,
	.company-logo-grid,
	.company-team__grid {
		grid-template-columns: 1fr;
	}

	.company-subsidiary,
	.company-history__layout,
	.company-requisites__layout {
		grid-template-columns: 1fr;
	}

	.company-history__tabs,
	.company-requisites__tabs {
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 6px;
	}

	.company-history__tabs button,
	.company-requisites__tabs button {
		width: auto;
		white-space: nowrap;
	}

	.company-history__item img {
		height: 240px;
	}

	.company-section-head,
	.company-cta__inner {
		align-items: stretch;
		flex-direction: column;
	}
}

@media (max-width: 520px) {
	.company-container {
		width: min(100% - 20px, 1240px);
	}

	.company-hero__title {
		font-size: 34px;
	}

	.company-btn {
		width: 100%;
	}

	.company-text-block,
	.company-cta__inner {
		padding: 24px;
	}
}