/* "О компании" (Figma: desktop container 1440x559, mobile 390) */
.company {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 40px;
	padding: 70px 120px;
	background: var(--color-white);
}

.company__body {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	max-width: var(--container-max);
	padding: 0 158px 0 128px;
}

.company__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 30px;
	flex: 0 1 408px;
	min-width: 0;
	color: #000;
}

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

.company__title {
	margin: 0;
	font-size: 32px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.005em;
}

.company__address {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 15px;
	line-height: 1.43;
}

.company__address img {
	display: block;
	width: 20px;
	height: 20px;
}

.company__address span {
	transition: color 0.2s ease;
}

.company__address:hover span {
	color: var(--color-blue);
}

.company__address:focus-visible {
	outline: 2px solid var(--color-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

.company__text {
	max-width: 359px;
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
}

.company__actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

/* Figma desktop button is the large one scaled to 220x53.57 */
.company__order.button--lg {
	width: 220px;
	height: 53.57px;
}

.company__order.button--lg .button__label {
	font-size: 18px;
	line-height: 1.38;
}

.company__phones {
	flex: 0 0 auto;
}

/* Desktop: phones stay on the button's row as in Figma; the toggle's own padding hangs into the gap */
@media (min-width: 1024px) {
	.company__actions {
		flex-wrap: nowrap;
	}

	.company__phones {
		margin-left: -12px;
	}
}

.company__map {
	flex: 1 1 300px;
	max-width: 412px;
	aspect-ratio: 412 / 254;
	overflow: hidden;
	background: var(--color-soft-blue);
}

.company__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 1439px) {
	.company {
		padding-inline: 24px;
	}
}

@media (max-width: 1099px) {
	.company__body {
		padding-inline: 0;
	}
}

@media (max-width: 767px) {
	.company {
		gap: 20px;
		padding: 40px 24px 20px;
	}

	.company__body {
		flex-direction: column-reverse;
		align-items: center;
		justify-content: center;
		gap: 20px;
	}

	.company__info {
		flex: none;
		align-items: stretch;
		width: 100%;
		max-width: 278px;
		gap: 20px;
	}

	.company__title {
		font-size: 24px;
		line-height: 1.25;
	}

	.company__text {
		max-width: none;
	}

	.company__actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	/* On mobile the phones sit above the button, as in Figma */
	.company__phones {
		order: -1;
	}

	.company__order.button--lg {
		width: 100%;
		max-width: 278px;
		height: 67px;
	}

	.company__order.button--lg .button__label {
		font-size: 20px;
		line-height: 1.33;
	}

	.company__map {
		flex: none;
		width: 100%;
		max-width: 284px;
	}
}

@media (max-width: 767px) {
	/* Align the teaser icon with the text edge (the toggle has 12px inner padding) */
	.company__phones {
		margin-left: -12px;
	}
}
