.atgs,
.atgs * {
	box-sizing: border-box;
}

.atgs {
	--atgs-ink: #071936;
	--atgs-muted: #68758a;
	--atgs-accent: #f4bd1c;
	--atgs-surface: #ffffff;
	--atgs-gap: 16px;
	width: 100%;
	direction: ltr;
	color: var(--atgs-ink);
	font-family: inherit;
	background: var(--atgs-surface);
	padding: clamp(34px, 5vw, 72px) 0;
}

.atgs__inner {
	width: min(1240px, calc(100% - 40px));
	margin: 0 auto;
}

.atgs__title,
.atgs-panel__heading h3 {
	margin: 0;
	color: var(--atgs-ink);
	font-family: inherit;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.15;
}

.atgs__title {
	font-size: clamp(28px, 3.2vw, 44px);
	margin-bottom: 26px;
}

.atgs-panel__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 40px 0 20px;
}

.atgs-panel__heading h3 {
	font-size: clamp(22px, 2.2vw, 32px);
}

.atgs-panel__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.atgs-count {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 11px;
	border-radius: 999px;
	background: #f0f4f9;
	color: var(--atgs-muted);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.atgs-autoplay {
	position: relative;
	display: inline-grid;
	width: 34px;
	height: 34px;
	padding: 0;
	place-items: center;
	border: 1px solid #dce3ed;
	border-radius: 50%;
	background: #fff;
	color: var(--atgs-ink);
	cursor: pointer;
	transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.atgs-autoplay:hover,
.atgs-autoplay:focus-visible {
	border-color: var(--atgs-accent);
	background: #fff9e5;
	transform: scale(1.06);
}

.atgs-autoplay__pause {
	display: block;
	width: 10px;
	height: 12px;
	border-right: 3px solid currentColor;
	border-left: 3px solid currentColor;
}

.atgs-autoplay__play {
	display: none;
	width: 0;
	height: 0;
	margin-left: 2px;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid currentColor;
}

.atgs-autoplay.is-paused .atgs-autoplay__pause {
	display: none;
}

.atgs-autoplay.is-paused .atgs-autoplay__play {
	display: block;
}

.atgs-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--atgs-ink);
	font-size: 15px;
	font-weight: 750;
	text-decoration: none !important;
	white-space: nowrap;
}

.atgs-more span {
	font-size: 26px;
	line-height: 1;
	transition: transform 180ms ease;
}

.atgs-more:hover span {
	transform: translateX(4px);
}

.atgs-carousel {
	position: relative;
}

.atgs-groups,
.atgs-cities {
	display: flex;
	gap: var(--atgs-gap);
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.atgs-groups::-webkit-scrollbar,
.atgs-cities::-webkit-scrollbar {
	display: none;
}

.atgs-group {
	position: relative;
	flex: 0 0 calc((100% - (var(--atgs-gap) * 4)) / 5);
	min-width: 180px;
	height: 126px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 11px;
	background: #17345f;
	box-shadow: none;
	cursor: pointer;
	scroll-snap-align: start;
	font: inherit;
	text-align: left;
	isolation: isolate;
	transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.atgs-group:hover,
.atgs-group:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 15px 34px rgba(7, 25, 54, 0.18);
}

.atgs-group.is-active {
	box-shadow: 0 0 0 3px var(--atgs-accent), 0 15px 34px rgba(7, 25, 54, 0.2);
}

.atgs-group.is-active::after {
	position: absolute;
	right: 20px;
	bottom: -7px;
	width: 14px;
	height: 14px;
	content: '';
	background: var(--atgs-accent);
	transform: rotate(45deg);
	z-index: 4;
}

.atgs-group img,
.atgs-city img,
.atgs-placeholder {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}

.atgs-placeholder {
	background:
		radial-gradient(circle at 72% 25%, rgba(244, 189, 28, 0.72), transparent 24%),
		linear-gradient(135deg, #294e7c 0%, #0c284f 48%, #071936 100%);
}

.atgs-group:hover img,
.atgs-group:focus-visible img,
.atgs-city:hover img,
.atgs-city:focus-visible img {
	transform: scale(1.07);
}

.atgs-card-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(1, 10, 26, 0.04) 18%, rgba(1, 10, 26, 0.84) 100%);
	z-index: 1;
}

.atgs-group__label,
.atgs-city__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	max-width: calc(100% - 24px);
	overflow: hidden;
	padding: 5px 8px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.93);
	color: #24344e;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	text-overflow: ellipsis;
	white-space: nowrap;
	backdrop-filter: blur(5px);
}

.atgs-group__name {
	position: absolute;
	right: 14px;
	bottom: 12px;
	left: 14px;
	z-index: 2;
	overflow: hidden;
	color: #fff;
	font-size: clamp(16px, 1.45vw, 21px);
	font-weight: 800;
	line-height: 1.08;
	text-overflow: ellipsis;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
	white-space: nowrap;
}

.atgs-panel[hidden] {
	display: none !important;
}

.atgs-panel.is-active {
	animation: atgs-panel-in 260ms ease both;
}

.atgs-panel.is-active .atgs-city {
	animation: atgs-card-reveal 420ms cubic-bezier(.2,.75,.25,1) backwards;
}

.atgs-panel.is-active .atgs-city:nth-child(2) { animation-delay: 55ms; }
.atgs-panel.is-active .atgs-city:nth-child(3) { animation-delay: 110ms; }
.atgs-panel.is-active .atgs-city:nth-child(4) { animation-delay: 165ms; }
.atgs-panel.is-active .atgs-city:nth-child(n+5) { animation-delay: 220ms; }

@keyframes atgs-panel-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes atgs-card-reveal {
	from { opacity: 0; transform: translateY(16px) scale(.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.atgs-city {
	position: relative;
	flex: 0 0 calc((100% - (var(--atgs-gap) * 3)) / 4);
	min-width: 250px;
	height: 410px;
	overflow: hidden;
	border-radius: 14px;
	background: #17345f;
	color: #fff !important;
	text-decoration: none !important;
	scroll-snap-align: start;
	isolation: isolate;
	box-shadow: 0 6px 18px rgba(7, 25, 54, 0.08);
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.atgs-city:hover,
.atgs-city:focus-within {
	transform: translateY(-5px);
	box-shadow: 0 20px 42px rgba(7, 25, 54, 0.22);
}

.atgs-city__guide {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	color: inherit !important;
	text-decoration: none !important;
}

.atgs-city .atgs-card-shade {
	background: linear-gradient(180deg, rgba(1, 10, 26, 0.03) 34%, rgba(1, 10, 26, 0.92) 100%);
}

.atgs-city__content {
	position: absolute;
	right: 16px;
	bottom: 17px;
	left: 16px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
	color: #fff;
	text-align: left;
}

.atgs-city--has-flights .atgs-city__content {
	bottom: 72px;
}

.atgs-city__flights {
	position: absolute;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 4;
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 13px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 9px;
	background: rgba(7, 25, 54, 0.78);
	color: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.035em;
	cursor: pointer;
	backdrop-filter: blur(8px);
	transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.atgs-city__flights span {
	font-size: 17px;
	line-height: 1;
	transform: rotate(-12deg);
}

.atgs-city__flights:hover,
.atgs-city__flights:focus-visible {
	border-color: var(--atgs-accent);
	background: var(--atgs-accent);
	color: var(--atgs-ink);
	transform: translateY(-2px);
}

.atgs-city__content small {
	max-width: 100%;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.78);
	font-size: 11px;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.atgs-city__content strong {
	font-size: clamp(22px, 2.1vw, 30px);
	font-weight: 850;
	line-height: 1.04;
	letter-spacing: -0.025em;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

.atgs-city__content > span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

.atgs-arrow {
	position: absolute;
	top: 50%;
	z-index: 6;
	display: inline-grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(7, 25, 54, 0.08);
	border-radius: 50%;
	background: #fff;
	color: var(--atgs-ink);
	box-shadow: 0 8px 22px rgba(7, 25, 54, 0.17);
	cursor: pointer;
	transform: translateY(-50%);
	transition: transform 180ms ease, opacity 180ms ease;
}

.atgs-arrow span {
	font-family: Arial, sans-serif;
	font-size: 31px;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-1px);
}

.atgs-arrow:hover,
.atgs-arrow:focus-visible {
	transform: translateY(-50%) scale(1.08);
}

.atgs-arrow:disabled {
	opacity: 0;
	pointer-events: none;
}

.atgs-arrow--previous {
	left: -18px;
}

.atgs-arrow--next {
	right: -18px;
}

.atgs-progress {
	position: relative;
	width: min(300px, 52%);
	height: 3px;
	margin: 20px auto 0;
	overflow: hidden;
	border-radius: 999px;
	background: #e5eaf1;
}

.atgs-progress span {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--atgs-accent), #f2772e);
	transition: left 160ms ease, width 160ms ease;
}

.atgs-flights {
	margin-top: 28px;
	overflow: hidden;
	border: 1px solid #dfe6ef;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(7, 25, 54, 0.1);
}

.atgs-flights[hidden] {
	display: none !important;
}

.atgs-flights__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 26px 20px;
	background:
		radial-gradient(circle at 88% 5%, rgba(244, 189, 28, 0.28), transparent 30%),
		linear-gradient(135deg, #071936, #102f58);
	color: #fff;
}

.atgs-flights__eyebrow {
	display: block;
	margin-bottom: 7px;
	color: var(--atgs-accent);
	font-size: 10px;
	font-weight: 850;
	letter-spacing: 0.15em;
}

.atgs-flights__head h4 {
	margin: 0;
	color: #fff;
	font-size: clamp(20px, 2.2vw, 30px);
	font-weight: 850;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.atgs-flights__close {
	display: grid;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.09);
	color: #fff;
	font-size: 27px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.atgs-flights__tabs {
	display: flex;
	gap: 8px;
	padding: 16px 24px 0;
	border-bottom: 1px solid #e8edf3;
}

.atgs-flights__tabs button {
	position: relative;
	min-width: 132px;
	padding: 12px 18px 14px;
	border: 0;
	background: transparent;
	color: var(--atgs-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.atgs-flights__tabs button::after {
	position: absolute;
	right: 10px;
	bottom: -1px;
	left: 10px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	content: '';
	background: transparent;
}

.atgs-flights__tabs button.is-active {
	color: var(--atgs-ink);
}

.atgs-flights__tabs button.is-active::after {
	background: var(--atgs-accent);
}

.atgs-flights__status {
	min-height: 20px;
	padding: 13px 26px 0;
	color: var(--atgs-muted);
	font-size: 12px;
}

.atgs-flights__status.is-loading::before {
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-right: 8px;
	border: 2px solid #d9e0e9;
	border-top-color: var(--atgs-accent);
	border-radius: 50%;
	content: '';
	vertical-align: -2px;
	animation: atgs-spin 700ms linear infinite;
}

.atgs-flights__status.is-error {
	color: #a32929;
}

.atgs-flights__status.is-fallback {
	color: #8a5a00;
}

.atgs-flights__status.is-empty {
	padding-bottom: 22px;
}

.atgs-flights__status.is-external {
	padding-bottom: 22px;
	color: #1f5f93;
}

@keyframes atgs-spin {
	to { transform: rotate(360deg); }
}

.atgs-flights__table-wrap {
	overflow-x: auto;
	padding: 12px 24px 24px;
}

.atgs-flight-table {
	width: 100%;
	min-width: 760px;
	border: 0;
	border-collapse: collapse;
	color: var(--atgs-ink);
	font-size: 13px;
	text-align: left;
}

.atgs-flight-table th,
.atgs-flight-table td {
	padding: 14px 12px;
	border: 0;
	border-bottom: 1px solid #e8edf3;
	vertical-align: middle;
}

.atgs-flight-table th {
	background: #f5f7fa;
	color: #6d788b;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.atgs-flight-table tbody tr:hover {
	background: #fffaf0;
}

.atgs-flight-table__time,
.atgs-flight-table__number {
	font-weight: 850;
}

.atgs-flight-table__route {
	font-weight: 750;
}

.atgs-flight-table__status {
	color: #197149;
	font-size: 12px;
	font-weight: 700;
}

.atgs-flights__footer {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 26px;
	border-top: 1px solid #e8edf3;
	background: #f8fafc;
	color: var(--atgs-muted);
	font-size: 11px;
}

.atgs-flights__notice {
	max-width: 360px;
	padding-top: 8px;
	line-height: 1.55;
}

.atgs-flights__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.atgs-flights__links a {
	color: var(--atgs-ink);
	font-weight: 750;
	text-decoration: none;
	white-space: nowrap;
}

.atgs-flights__fr24 {
	display: inline-flex;
	min-height: 34px;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 11px;
	border: 1px solid #d9e1ec;
	border-radius: 9px;
	background: #fff;
	box-shadow: 0 3px 10px rgba(7, 25, 54, 0.05);
	transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.atgs-flights__fr24:hover,
.atgs-flights__fr24:focus-visible {
	border-color: #e21b2d;
	background: #e21b2d;
	color: #fff;
	transform: translateY(-1px);
}

.atgs-flights__fr24[aria-disabled="true"] {
	pointer-events: none;
	opacity: 0.5;
}

.atgs-empty {
	padding: 15px 18px;
	border: 1px dashed #9aa6b6;
	border-radius: 8px;
	background: #f7f9fc;
	color: #34445c;
}

.atgs-admin-empty {
	margin: 20px 0;
}

@media (max-width: 1024px) {
	.atgs-group {
		flex-basis: calc((100% - (var(--atgs-gap) * 2)) / 3);
	}

	.atgs-city {
		flex-basis: calc((100% - (var(--atgs-gap) * 2)) / 3);
	}
}

@media (max-width: 767px) {
	.atgs {
		--atgs-gap: 12px;
		padding: 32px 0 42px;
	}

	.atgs__inner {
		width: calc(100% - 32px);
	}

	.atgs__title {
		margin-bottom: 20px;
		font-size: 28px;
	}

	.atgs-panel__heading {
		align-items: flex-start;
		flex-direction: column;
		margin: 32px 0 16px;
		gap: 12px;
	}

	.atgs-panel__heading h3 {
		font-size: 22px;
	}

	.atgs-more {
		font-size: 13px;
	}

	.atgs-panel__actions {
		width: 100%;
		justify-content: flex-start;
	}

	.atgs-count {
		margin-right: auto;
	}

	.atgs-group {
		flex-basis: 72%;
		min-width: 220px;
		height: 118px;
	}

	.atgs-city {
		flex-basis: 82%;
		min-width: 270px;
		height: 390px;
	}

	.atgs-arrow {
		display: none;
	}

	.atgs-progress {
		width: 68%;
		margin-top: 16px;
	}

	.atgs-flights {
		margin-top: 22px;
		border-radius: 14px;
	}

	.atgs-flights__head {
		padding: 20px 18px;
	}

	.atgs-flights__head h4 {
		font-size: 20px;
	}

	.atgs-flights__tabs {
		padding: 10px 10px 0;
	}

	.atgs-flights__tabs button {
		min-width: 0;
		flex: 1 1 50%;
		padding-right: 8px;
		padding-left: 8px;
	}

	.atgs-flights__status {
		padding: 12px 16px 0;
	}

	.atgs-flights__table-wrap {
		overflow: visible;
		padding: 10px 14px 18px;
	}

	.atgs-flight-table,
	.atgs-flight-table tbody,
	.atgs-flight-table tr,
	.atgs-flight-table td {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.atgs-flight-table thead {
		display: none;
	}

	.atgs-flight-table tr {
		margin-bottom: 12px;
		padding: 8px 12px;
		border: 1px solid #e4eaf1;
		border-radius: 12px;
		background: #fff;
		box-shadow: 0 5px 15px rgba(7, 25, 54, 0.05);
	}

	.atgs-flight-table td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 8px 0;
		text-align: right;
	}

	.atgs-flight-table td::before {
		content: attr(data-label);
		color: var(--atgs-muted);
		font-size: 10px;
		font-weight: 800;
		letter-spacing: 0.07em;
		text-align: left;
		text-transform: uppercase;
	}

	.atgs-flight-table td:last-child {
		border-bottom: 0;
	}

	.atgs-flights__footer {
		align-items: flex-start;
		flex-direction: column;
		padding: 13px 16px;
	}

	.atgs-flights__notice {
		max-width: none;
		padding-top: 0;
	}

	.atgs-flights__links {
		width: 100%;
		align-items: stretch;
		justify-content: flex-start;
	}

	.atgs-flights__fr24 {
		flex: 1 1 100%;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atgs *,
	.atgs *::before,
	.atgs *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

