/**
 * Block: Route Overview
 *
 * Назначение:
 * - обзор конкретного маршрута;
 * - левая колонка описания + правая тарифная карточка;
 * - уникальный класс: .atb-route-overview.
 */

.atb-route-overview {
	background: #f4f7fb;
}

.atb-route-overview__container {
        width: min(calc(100% - 40px), 1320px);
        max-width: 1320px;
        margin-right: auto;
        margin-left: auto;
	padding-top: 44px;
	padding-bottom: 44px;
}

.atb-route-overview__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
	gap: 24px;
	align-items: stretch;
	padding: 26px;
	background: #ffffff;
	border: 1px solid rgba(9, 32, 65, .1);
	border-radius: 24px;
	box-shadow: 0 18px 48px rgba(9, 32, 65, .08);
}

.atb-route-overview__content {
	min-width: 0;
	padding: 4px 0;
}

.atb-route-overview__eyebrow {
	margin: 0 0 10px;
	color: #2563eb;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.atb-route-overview__title {
	margin: 0;
	color: #07111f;
	font-size: clamp(30px, 3vw, 46px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.02em;
}

.atb-route-overview__lead {
	max-width: 760px;
	margin: 16px 0 0;
	color: #52627a;
	font-size: 16px;
	line-height: 1.65;
}

.atb-route-overview__points {
	display: grid;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.atb-route-overview__points li {
	position: relative;
	padding-left: 28px;
	color: #26364d;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
}

.atb-route-overview__points li::before {
	position: absolute;
	left: 0;
	top: .12em;
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: #ffffff;
	background: #2563eb;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 900;
}

.atb-route-overview__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 24px;
	padding: 0 22px;
	color: #ffffff;
	background: #2563eb;
	border-radius: 14px;
	box-shadow: 0 14px 34px rgba(37, 99, 235, .28);
	font-size: 14px;
	font-weight: 900;
	text-decoration: none;
}

.atb-route-overview__button:hover,
.atb-route-overview__button:focus {
	color: #ffffff;
	background: #1d4ed8;
}

/* Tariffs card */

.atb-route-overview__tariffs {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	padding: 20px;
	color: #ffffff;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0)),
		#070a0f;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 18px;
	box-shadow: 0 22px 50px rgba(0, 0, 0, .18);
}

.atb-route-overview__tariffs-title {
	margin: 0 0 16px;
	color: #ffffff;
	font-size: 22px;
	line-height: 1.15;
	letter-spacing: -.02em;
}

.atb-route-overview__tariffs-table-wrap {
	overflow-x: auto;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 14px;
	background: rgba(255, 255, 255, .04);
}

.atb-route-overview__tariffs-table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	color: #ffffff;
}

.atb-route-overview__tariffs-table th,
.atb-route-overview__tariffs-table td {
	padding: 14px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	text-align: left;
	vertical-align: middle;
}

.atb-route-overview__tariffs-table th {
	color: rgba(255, 255, 255, .8);
	background: rgba(255, 255, 255, .07);
	font-size: 12px;
	font-weight: 900;
	white-space: nowrap;
}

.atb-route-overview__tariffs-table td {
	color: rgba(255, 255, 255, .86);
	font-size: 14px;
	font-weight: 700;
}

.atb-route-overview__tariffs-table tbody tr:last-child td {
	border-bottom: 0;
}

.atb-route-overview__tariffs-table td:first-child strong {
	display: block;
	color: #ffffff;
	font-size: 14px;
	line-height: 1.25;
}

.atb-route-overview__tariffs-table td:first-child span {
	display: block;
	margin-top: 3px;
	color: rgba(255, 255, 255, .58);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
}

.atb-route-overview__tariffs-table td:last-child {
	text-align: right;
	white-space: nowrap;
}

.atb-route-overview__tariffs-table td:last-child strong {
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
}

.atb-route-overview__tariffs-note {
	position: relative;
	margin: 14px 0 0;
	padding-left: 26px;
	color: rgba(255, 255, 255, .72);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

.atb-route-overview__tariffs-note::before {
	position: absolute;
	left: 0;
	top: .08em;
	content: "ⓘ";
	color: rgba(255, 255, 255, .88);
	font-size: 16px;
	line-height: 1;
}

/* Fallback old panel if tariffs are not passed */

.atb-route-overview__panel {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
	padding: 24px;
	color: #ffffff;
	background:
		linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(7, 17, 31, 0)),
		#07111f;
	border-radius: 20px;
	overflow: hidden;
}

.atb-route-overview__route {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 14px;
	align-items: center;
}

.atb-route-overview__place {
	padding: 16px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 16px;
}

.atb-route-overview__place span,
.atb-route-overview__fact span {
	display: block;
	margin-bottom: 6px;
	color: rgba(255, 255, 255, .62);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.atb-route-overview__place strong {
	display: block;
	color: #ffffff;
	font-size: 20px;
	line-height: 1.1;
}

.atb-route-overview__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: #ffffff;
	background: #2563eb;
	border-radius: 999px;
	font-size: 22px;
	font-weight: 900;
}

.atb-route-overview__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.atb-route-overview__fact {
	padding: 14px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 14px;
}

.atb-route-overview__fact strong {
	display: block;
	color: #ffffff;
	font-size: 14px;
	line-height: 1.35;
}

@media (max-width: 1080px) {
	.atb-route-overview__card {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.atb-route-overview__container {
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.atb-route-overview__card {
		padding: 18px;
		border-radius: 20px;
	}

	.atb-route-overview__tariffs,
	.atb-route-overview__panel {
		padding: 18px;
	}

	.atb-route-overview__route,
	.atb-route-overview__facts {
		grid-template-columns: 1fr;
	}

	.atb-route-overview__arrow {
		transform: rotate(90deg);
		margin: 0 auto;
	}
}
