/* ==========================================================================
   Coverage page — page-templates/coverage.php
   Figma: Desktop 519:29635 · Tablet 519:47532 · Mobile 519:48067
   ========================================================================== */

/* ---------- Hero (shared page-hero, coverage image geometry) ---------- */
.page-hero--coverage { min-height: 636px; }
.page-hero--coverage .page-hero__media {
	/* 1475×638 image, right edge on the 1440 frame edge, vertically centred */
	--hero-img-w: min(102.43%, 1475px);
	width: var(--hero-img-w);
	aspect-ratio: 1475 / 638;
	right: max(0px, (100% - 1440px) / 2);
	transform: translateY(-50%);
}
.page-hero--coverage .page-hero__content { max-width: 900px; }
.page-hero--coverage .page-hero__title { max-width: 900px; }
.page-hero--coverage .page-hero__text { max-width: 680px; }

@media (max-width: 1199px) {
	.page-hero--coverage { min-height: 642px; padding-bottom: 70px; }
	.page-hero--coverage .page-hero__media {
		/* 1033×447 at the bottom right, bleeding 46px past the right edge */
		top: auto; bottom: 60px; right: -6%;
		width: 134.5%; height: auto; aspect-ratio: 1033 / 447;
	}
	.page-hero--coverage::before {
		background: linear-gradient(90deg, #312bb6 0%, rgba(49, 43, 182, .7) 45%, rgba(49, 43, 182, .12) 70%);
	}
	.page-hero--coverage .page-hero__content { max-width: none; }
	.page-hero--coverage .page-hero__title { max-width: 688px; }
	.page-hero--coverage .page-hero__text { max-width: 310px; }
}

@media (max-width: 767px) {
	.page-hero--coverage { padding-bottom: 258px; }
	.page-hero--coverage .page-hero__content { max-width: none; }
	.page-hero--coverage .page-hero__text { max-width: none; }
	.page-hero--coverage .page-hero__media {
		/* mobile art (855×984) behind the whole hero, box at the bottom */
		position: absolute; order: 0; margin: 0;
		top: auto; bottom: -9px; left: -118.13%; right: auto;
		width: 228%; height: auto; aspect-ratio: 855 / 984;
	}
	.page-hero--coverage .page-hero__img,
	.page-hero--coverage .page-hero__media picture:has(source) .page-hero__img { object-position: center; }
	.page-hero--coverage::before {
		display: block; bottom: auto; height: calc(100% - 205px);
		background: linear-gradient(180deg, rgba(49, 43, 182, .94) 0%, rgba(49, 43, 182, .86) 60%, rgba(49, 43, 182, .6) 100%);
	}
}

/* ---------- Common section parts ---------- */
.cov-lane, .cov-dirs, .cov-countries { padding-block: 96px; }
.cov-head { margin-bottom: 48px; }
.cov-head .section-head__main { gap: 16px; }
.cov-head__aside { width: 440px; gap: 14px; }
.cov-eyebrow {
	gap: 10px;
	font-size: 12px; line-height: 18px; letter-spacing: 1.5px;
	color: var(--c-navy);
}
.cov-h2 { max-width: 720px; font-size: 48px; line-height: 51.84px; letter-spacing: -1.2px; }
.cov-lead { font-family: var(--ff-text); font-weight: 400; font-size: 16px; line-height: 24px; color: #65777e; }
.cov-link .tk-icon { width: 16px; height: 16px; }
.cov-link { gap: 6px; line-height: 18px; }
.cov-link:hover { gap: 10px; }

/* ---------- Main lane ---------- */
.cov-lane__grid { display: flex; gap: 24px; align-items: stretch; }

.cov-card {
	flex: 0 0 500px; min-width: 0;
	display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
	padding: 40px; border-radius: 16px;
	background: var(--c-blue); color: #fff;
}
.cov-card__body { display: flex; flex-direction: column; gap: 28px; }
.cov-card__route { display: flex; align-items: flex-start; gap: 10px; }
.cov-card__chip {
	display: inline-flex; align-items: center;
	padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 100px;
	font-family: var(--ff-text); font-weight: 400; font-size: 13px; line-height: 15px; color: #ccdbe0;
}
.cov-card__swap { width: 22px; height: 22px; flex: none; color: var(--c-orange); }
.cov-card__title { font-weight: 300; font-size: 34px; line-height: 40px; color: #fff; }
.cov-card__text { font-family: var(--ff-text); font-weight: 400; font-size: 16px; line-height: 24px; color: #ccdbe0; }
.cov-card__stats { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.cov-card__stat {
	flex: 1 1 0; min-width: 0;
	display: flex; flex-direction: column; gap: 4px;
	padding: 16px; border-radius: 8px; background: #fff5e9;
}
.cov-card__stat-value { font-weight: 300; font-size: 28px; line-height: 1.28; color: var(--c-blue); white-space: nowrap; }
.cov-card__stat-label { font-family: var(--ff-text); font-weight: 400; font-size: 12px; line-height: 1.15; color: var(--c-navy); }
.cov-card__btn { min-height: 52px; padding-block: 16px; }

/* Corridors table */
.cov-corr {
	flex: 1 1 0; min-width: 0;
	display: flex; flex-direction: column;
	border: 1px solid #dee8ec; border-radius: 16px; background: #fff; overflow: hidden;
}
.cov-corr__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
	padding: 24px 28px 20px; border-bottom: 1px solid #dee8ec;
}
.cov-corr__title { font-weight: 400; font-size: 22px; line-height: 28px; color: var(--c-blue); }
.cov-corr__badge {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border-radius: 100px; background: var(--c-blue);
	font-family: var(--ff-text); font-weight: 400; font-size: 12px; line-height: 14px; color: #fff; white-space: nowrap;
}
.cov-corr__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-orange); animation: cov-pulse 2s var(--ease-out) infinite; }
@keyframes cov-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .cov-corr__dot { animation: none; } }

.cov-corr__list { margin: 0; padding: 0; list-style: none; }
.cov-corr__list li + li { border-top: 1px solid #dee8ec; }
.cov-corr__row {
	position: relative;
	display: flex; align-items: center; gap: 16px;
	padding: 16px 28px;
	transition: background-color .25s var(--ease-out);
}
.cov-corr__route { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cov-corr__name { font-weight: 400; font-size: 16px; line-height: 20px; color: var(--c-blue); }
.cov-corr__note { font-family: var(--ff-text); font-weight: 400; font-size: 12px; line-height: 14px; color: #65777e; }
.cov-corr__meta { display: flex; align-items: center; gap: 16px; flex: none; }
.cov-corr__time {
	padding: 4px 10px; border-radius: 100px; background: #dcf5e9;
	font-family: var(--ff-text); font-weight: 400; font-size: 12px; line-height: 15px; color: #059669; white-space: nowrap;
}
.cov-corr__price { width: 100px; text-align: right; font-weight: 400; font-size: 16px; line-height: 20px; color: var(--c-blue); white-space: nowrap; }
.cov-corr__arrow { width: 18px; height: 18px; flex: none; color: var(--c-orange); transition: transform .25s var(--ease-out); }
.cov-corr__row:hover { background: var(--c-bg-soft); }
.cov-corr__row:hover .cov-corr__arrow { transform: translateX(4px); }
.cov-corr__row:focus-visible { outline-offset: -2px; }
.cov-corr__foot { padding: 20px 28px 24px; margin-top: auto; }

/* ---------- Directions ---------- */
.cov-dirs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.cov-dir {
	position: relative;
	display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
	padding: 32px; border-radius: 12px; background: #fff;
	border: .8px solid transparent;
	transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.cov-dir--main, .cov-dir:hover { border-color: var(--c-orange); }
.cov-dir:hover { box-shadow: 0 12px 32px -18px rgba(19, 15, 115, .25); }
.cov-dir__head { display: flex; align-items: center; gap: 14px; }
.cov-dir__icon {
	display: flex; align-items: center; justify-content: center; flex: none;
	width: 48px; height: 48px; border-radius: 8px; background: var(--c-blue); color: #fff;
}
.cov-dir--main .cov-dir__icon { background: var(--c-orange); }
.cov-dir__icon .tk-icon { width: 24px; height: 24px; }
.cov-dir__title { font-weight: 400; font-size: 24px; line-height: 1.28; color: var(--c-blue); }
.cov-dir__tag {
	flex: none; padding: 4px 10px; border-radius: 100px; background: var(--c-orange);
	font-family: var(--ff-mono); font-size: 10px; line-height: 15px; letter-spacing: .5px; text-transform: uppercase; color: #fff; white-space: nowrap;
}
.cov-dir__text { font-family: var(--ff-text); font-weight: 400; font-size: 15px; line-height: 23px; color: #65777e; }
.cov-dir__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cov-dir__chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border: .7px solid #dee8ec; border-radius: 100px; background: var(--c-bg-soft);
	font-family: var(--ff-text); font-weight: 400; font-size: 13px; line-height: 15px; color: var(--c-blue); white-space: nowrap;
}
.cov-dir__chip .tk-icon { width: 16px; height: 16px; flex: none; }
.cov-dir__link { margin-top: auto; }

/* ---------- Countries ---------- */
.cov-regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cov-region { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 8px; background: var(--c-bg-soft); }
.cov-region__title { font-weight: 400; font-size: 14px; line-height: 18px; letter-spacing: .5px; text-transform: uppercase; color: var(--c-navy); }
.cov-region__list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.cov-region__list li {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--ff-text); font-weight: 400; font-size: 15px; line-height: 16px; color: var(--c-blue);
}
.cov-region__list .tk-icon { width: 16px; height: 16px; flex: none; color: var(--c-orange); }
.cov-cta { margin-top: 48px; }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
	.cov-lane, .cov-dirs, .cov-countries { padding-block: 77px; }
	.cov-head { gap: 28px; margin-bottom: 36px; }
	.cov-head__aside { width: 100%; max-width: none; }
	.cov-h2 { font-size: 38px; line-height: 41px; letter-spacing: -1px; }

	.cov-lane__grid { flex-direction: column; }
	.cov-card { flex: none; gap: 28px; padding: 40px 32px; }
	.cov-card__title { font-size: 29px; line-height: 34px; }
	.cov-card__stat-value { font-size: 26px; }
	.cov-corr { flex: none; }

	.cov-dir__head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px 14px; }
	.cov-dir__tag { grid-column: 1 / -1; justify-self: start; }
	.cov-dir__title { font-size: 22px; }

	.cov-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cov-cta { margin-top: 20px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.cov-lane, .cov-dirs, .cov-countries { padding-block: 58px; }
	.cov-head { gap: 20px; margin-bottom: 10px; }
	.cov-h2 { font-size: 30px; line-height: 32px; letter-spacing: -.8px; }

	.cov-card { padding: 30px 20px; }
	.cov-card__title { font-size: 28px; line-height: 33px; }
	.cov-card__stats { flex-wrap: wrap; }
	.cov-card__stat { flex: 0 0 calc(50% - 8px); }
	.cov-card__stat-value { font-size: 24px; }

	.cov-corr__head { flex-direction: column; align-items: flex-start; padding: 24px 20px 20px; }
	.cov-corr__title { font-size: 20px; line-height: 26px; }
	.cov-corr__row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 20px; }
	.cov-corr__route { gap: 8px; }
	.cov-corr__price { width: auto; text-align: left; }
	.cov-corr__foot { padding: 24px 20px; }

	/* Swipe rows (directions, countries) */
	.cov-swipe {
		display: flex; gap: 12px;
		margin-inline: calc(var(--gutter) * -1);
		padding: 16px var(--gutter) 4px;
		overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.cov-swipe::-webkit-scrollbar { display: none; }
	.cov-swipe > * { flex: 0 0 272px; scroll-snap-align: start; }

	.cov-dir { padding: 24px 22px; }
	.cov-dir__title { font-size: 18px; }
	.cov-region { padding: 28px 20px; }
}
