/**
 * Block: To BER Popular Routes
 * Location: assets/css/blocks/to-ber-popular-routes.css
 *
 * Назначение:
 * - стили блока популярных маршрутов в BER Airport на /to-ber/;
 * - карточки не дублируют таблицу тарифов;
 * - расстояние и время остаются только в блоке Tariffs.
 */

.atb-to-ber-popular-routes {
	padding: 48px 0;
	background: #f4f8fe;
}
.atb-to-ber-popular-routes__container {
        width: min(calc(100% - 40px), 1320px);
        max-width: 1320px;
        margin-right: auto;
        margin-left: auto;
}


.atb-to-ber-popular-routes__panel {
	overflow: hidden;
	padding: 24px;
	color: #ffffff;
	background:
		linear-gradient(135deg, rgba(7, 20, 38, 0.98), rgba(8, 16, 32, 0.98));
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	box-shadow: 0 22px 50px rgba(7, 20, 38, 0.2);
}

.atb-to-ber-popular-routes__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 20px;
}

.atb-to-ber-popular-routes__intro {
	max-width: 760px;
}

.atb-to-ber-popular-routes__eyebrow {
	margin: 0 0 8px;
	color: #60a5fa;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.13em;
	line-height: 1.2;
	text-transform: uppercase;
}

.atb-to-ber-popular-routes__title {
	margin: 0;
	color: #ffffff;
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 900;
	line-height: 1.04;
	letter-spacing: -0.05em;
}

.atb-to-ber-popular-routes__text {
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 15px;
	line-height: 1.6;
}

.atb-to-ber-popular-routes__button,
.atb-to-ber-popular-routes__button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 16px;
	color: #ffffff;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	background: #2563eb;
	border-radius: 10px;
	box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.atb-to-ber-popular-routes__button:hover,
.atb-to-ber-popular-routes__button:focus {
	color: #ffffff;
	background: #1d4ed8;
}

.atb-to-ber-popular-routes__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.atb-to-ber-popular-routes__card {
	overflow: hidden;
	min-width: 0;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
}

.atb-to-ber-popular-routes__image {
	display: block;
	width: 100%;
	height: 112px;
	object-fit: cover;
	background: #111827;
}

.atb-to-ber-popular-routes__body {
	display: flex;
	flex-direction: column;
	min-height: 176px;
	padding: 13px;
}

.atb-to-ber-popular-routes__label {
	margin: 0 0 6px;
	color: #93c5fd;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.atb-to-ber-popular-routes__card-title {
	margin: 0;
	color: #ffffff;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.atb-to-ber-popular-routes__description {
	margin: 9px 0 0;
	color: rgba(255, 255, 255, 0.66);
	font-size: 12px;
	line-height: 1.45;
}

.atb-to-ber-popular-routes__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 12px;
}

.atb-to-ber-popular-routes__price {
	margin: 0;
	color: #fbbf24;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.2;
}

.atb-to-ber-popular-routes__link,
.atb-to-ber-popular-routes__link:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #ffffff;
	text-decoration: none;
	background: rgba(37, 99, 235, 0.96);
	border-radius: 999px;
}

.atb-to-ber-popular-routes__link:hover,
.atb-to-ber-popular-routes__link:focus {
	color: #ffffff;
	background: #1d4ed8;
}

@media (max-width: 1180px) {
	.atb-to-ber-popular-routes__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.atb-to-ber-popular-routes {
		padding: 36px 0;
	}

	.atb-to-ber-popular-routes__panel {
		padding: 18px;
		border-radius: 18px;
	}

	.atb-to-ber-popular-routes__head {
		display: block;
	}

	.atb-to-ber-popular-routes__button,
	.atb-to-ber-popular-routes__button:visited {
		margin-top: 16px;
	}

	.atb-to-ber-popular-routes__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
        .atb-to-ber-popular-routes__container {
                width: min(calc(100% - 32px), 100%);
        }

	.atb-to-ber-popular-routes__grid {
		grid-template-columns: 1fr;
	}

	.atb-to-ber-popular-routes__image {
		height: 150px;
	}

	.atb-to-ber-popular-routes__body {
		min-height: 0;
	}
}

/* === To BER Popular Routes price footer restore: start === */
/*
 * Назначение:
 * - возвращает цену и стрелку в карточках Popular Routes;
 * - расстояние и время здесь не выводятся;
 * - подробная таблица тарифов остаётся отдельным блоком.
 */

.atb-to-ber-popular-routes__body {
	display: flex;
	flex-direction: column;
}

.atb-to-ber-popular-routes__description {
	margin-bottom: 12px;
}

.atb-to-ber-popular-routes__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.atb-to-ber-popular-routes__price {
	margin: 0;
	color: #f8b84e;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
}

.atb-to-ber-popular-routes__link,
.atb-to-ber-popular-routes__link:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 999px;
	background: #2563eb;
	color: #ffffff;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(37, 99, 235, 0.34);
}

.atb-to-ber-popular-routes__link:hover,
.atb-to-ber-popular-routes__link:focus {
	background: #1d4ed8;
	color: #ffffff;
}
/* === To BER Popular Routes price footer restore: end === */
