/* Общие элементы сайта Ai travel. Цвета — из палитры темы (DESIGN.md). */
:root {
	--at-site-primary: var(--global-palette1, #1B75BC);
	--at-site-primary-hover: var(--global-palette2, #155E97);
	--at-site-heading: var(--global-palette3, #1F2A37);
	--at-site-muted: var(--global-palette6, #6B7280);
	--at-site-soft: var(--global-palette7, #F3EDE2);
	--at-site-bg: var(--global-palette8, #FFFBF3);
	--at-site-accent: #FDB913;
}

/* Кнопка «Подобрать путешествие» в меню */
.main-navigation .at-menu-cta > a,
.mobile-navigation .at-menu-cta > a {
	margin-left: 8px;
	padding: 10px 18px !important;
	border-radius: 12px;
	background: var(--at-site-primary);
	color: #fff !important;
	font-weight: 600;
}

.main-navigation .at-menu-cta > a:hover,
.main-navigation .at-menu-cta > a:focus-visible,
.mobile-navigation .at-menu-cta > a:hover {
	background: var(--at-site-primary-hover);
	color: #fff !important;
}

.mobile-navigation .at-menu-cta > a {
	display: inline-block;
	margin: 12px 0 0;
}

/* Кнопки сайта */
.at-site-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--at-site-primary);
	border-radius: 12px;
	background: var(--at-site-primary);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.15s ease;
}

.at-site-btn:hover,
.at-site-btn:focus-visible {
	background: var(--at-site-primary-hover);
	border-color: var(--at-site-primary-hover);
}

.at-site-btn-ghost {
	background: transparent;
	color: var(--at-site-primary) !important;
}

.at-site-btn-ghost:hover,
.at-site-btn-ghost:focus-visible {
	background: var(--at-site-soft);
	color: var(--at-site-primary) !important;
}

/* Секции страниц */
.at-section {
	padding: 56px 20px;
}

.at-section-soft {
	background: var(--at-site-soft);
}

.at-section-title {
	margin: 0 0 8px;
	font-size: clamp(26px, 3vw, 34px);
}

.at-section-more {
	margin-top: 8px;
	font-weight: 600;
}

.at-section-more a {
	text-decoration: none;
}

/* Первый экран */
.at-hero {
	padding-top: 40px;
}

.at-hero-cols {
	gap: 48px !important;
}

.at-eyebrow {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--at-site-primary);
}

.at-hero-title {
	margin: 0 0 16px;
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.1;
}

.at-hero-lead {
	max-width: 560px;
	margin: 0;
	font-size: 19px;
	color: var(--global-palette5, #4B5563);
}

.at-hero .at-cta {
	margin: 28px 0 16px;
}

.at-hero-photo {
	margin: 0;
}

.at-hero-photo img {
	width: 100%;
	max-height: 620px;
	object-fit: cover;
	border-radius: 24px;
	box-shadow: 0 20px 50px rgba(31, 42, 55, 0.18);
}

/* Что мы делаем */
.at-services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin-top: 24px;
}

.at-service {
	display: flex;
	flex-direction: column;
	padding: 28px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(31, 42, 55, 0.06);
	color: inherit !important;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.at-service:hover,
.at-service:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(31, 42, 55, 0.12);
}

.at-service-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: #DCEBF7;
	color: var(--at-site-primary);
}

.at-service h3 {
	margin: 0 0 8px;
	font-size: 21px;
}

.at-service p {
	flex: 1;
	margin: 0 0 16px;
	color: var(--global-palette5, #4B5563);
}

.at-service-more {
	font-weight: 600;
	color: var(--at-site-primary);
}

/* Почему Ai travel */
.at-reasons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 28px;
	margin-top: 24px;
}

.at-reason {
	padding-left: 16px;
	border-left: 3px solid var(--at-site-accent);
}

.at-reason h3 {
	margin: 0 0 6px;
	font-size: 19px;
}

.at-reason p {
	margin: 0;
	color: var(--global-palette5, #4B5563);
}

/* Шаги «Как мы помогаем» */
.at-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
	margin-top: 24px;
	counter-reset: at-step;
}

.at-step {
	padding: 24px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(31, 42, 55, 0.06);
}

.at-step::before {
	counter-increment: at-step;
	content: counter(at-step);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--at-site-accent);
	font-weight: 700;
	color: var(--at-site-heading);
}

.at-step h3 {
	margin: 0 0 6px;
	font-size: 19px;
}

.at-step p {
	margin: 0;
	color: var(--global-palette5, #4B5563);
}

/* Блок каталога круизов */
.at-catalog {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 36px;
	border-radius: 24px;
	background: var(--at-site-primary);
	color: #fff;
}

.at-catalog h2 {
	margin: 0 0 8px;
	color: #fff;
}

.at-catalog p {
	max-width: 620px;
	margin: 0;
	color: #DCEBF7;
}

.at-catalog .at-cta {
	margin: 0;
}

.at-catalog .at-site-btn {
	background: var(--at-site-accent);
	border-color: var(--at-site-accent);
	color: var(--at-site-heading) !important;
}

.at-catalog .at-site-btn-ghost {
	background: transparent;
	border-color: #fff;
	color: #fff !important;
}

/* Цифры и цитата на странице «Об агентстве» */
.at-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 24px;
}

.at-fact strong {
	display: block;
	font-family: var(--global-heading-font-family, 'Nunito', sans-serif);
	font-size: 44px;
	line-height: 1.1;
	color: var(--at-site-primary);
}

.at-fact span {
	color: var(--global-palette5, #4B5563);
}

.at-quote {
	max-width: 760px;
	margin: 0 auto;
	padding: 0;
	border: 0;
	text-align: center;
}

.at-quote p {
	margin: 0 0 8px;
	font-family: var(--global-heading-font-family, 'Nunito', sans-serif);
	font-size: clamp(26px, 3.4vw, 36px);
	font-weight: 700;
	font-style: normal;
	color: var(--at-site-heading);
}

.at-quote cite {
	font-style: normal;
	color: var(--at-site-muted);
}

/* Статьи «Круизного гида» */
.at-note,
.at-tip {
	margin: 28px 0;
	padding: 24px;
	border-radius: 16px;
}

.at-note {
	border-left: 4px solid var(--at-site-accent);
	background: var(--at-site-soft);
}

.at-tip {
	background: var(--at-site-primary);
	color: #fff;
}

.at-note h2,
.at-note h3,
.at-tip h2,
.at-tip h3 {
	margin-top: 0;
}

.at-tip h2,
.at-tip h3,
.at-tip p {
	color: #fff;
}

.at-note > :last-child,
.at-tip > :last-child {
	margin-bottom: 0;
}

.at-read-more {
	margin-top: 32px;
	font-weight: 600;
}

/* Кнопки под новостью */
.at-news-cta {
	margin-top: 40px;
	padding: 28px;
	border-radius: 20px;
	background: var(--at-site-soft);
}

.at-news-cta-title {
	margin: 0;
	font-family: var(--global-heading-font-family, 'Nunito', sans-serif);
	font-size: 21px;
	font-weight: 700;
	color: var(--at-site-heading);
}

.at-news-cta .at-cta {
	margin-bottom: 16px;
}

.at-share {
	margin: 0;
	font-size: 15px;
	color: var(--at-site-muted);
}

/* Контакты */
.at-contacts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin-top: 24px;
}

.at-contact {
	padding: 24px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(31, 42, 55, 0.06);
}

.at-contact h3 {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--at-site-muted);
}

.at-contact p {
	margin: 0 0 12px;
}

.at-contact > :last-child {
	margin-bottom: 0;
}

.at-contact-main {
	font-size: 20px;
	font-weight: 600;
	color: var(--at-site-heading);
}

.at-contact-main a {
	color: inherit;
	text-decoration: none;
}

@media (max-width: 781px) {
	.at-section {
		padding: 40px 16px;
	}

	.at-catalog {
		padding: 28px 20px;
	}

	.at-catalog .at-cta,
	.at-catalog .at-site-btn {
		width: 100%;
	}

	.at-hero {
		padding-top: 24px;
	}

	.at-hero-cols {
		gap: 28px !important;
	}

	.at-hero-lead {
		font-size: 17px;
	}

	.at-hero .at-cta .at-site-btn {
		flex: 1 1 100%;
	}

	.at-hero-photo img {
		max-height: 420px;
	}
}

/* Две главные кнопки */
.at-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0;
}

/* Карточки стран и новостей */
.at-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin: 24px 0;
}

.at-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(31, 42, 55, 0.08);
	color: inherit !important;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.at-card:hover,
.at-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(31, 42, 55, 0.14);
}

.at-card-img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.at-card-img-empty {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #DCEBF7, var(--at-site-soft));
}

.at-card-img-empty span {
	font-family: var(--global-heading-font-family, 'Nunito', sans-serif);
	font-size: 24px;
	font-weight: 700;
	color: var(--at-site-primary);
}

.at-card-body {
	padding: 16px 18px 20px;
}

.at-card-body h3 {
	margin: 0 0 6px;
	font-size: 20px;
}

.at-card-body p,
.at-card-body time {
	margin: 0;
	font-size: 15px;
	color: var(--at-site-muted);
}

.at-card-body time {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
}

/* Страница страны */
.at-dest-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 8px;
}

.at-dest-facts div {
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--at-site-soft);
}

.at-dest-facts dt {
	font-size: 13px;
	color: var(--at-site-muted);
}

.at-dest-facts dd {
	margin: 0;
	font-weight: 600;
	color: var(--at-site-heading);
}

.at-dest-section {
	margin-top: 32px;
}

.at-dest-section h2 {
	font-size: 24px;
}

.at-dest-note {
	margin-top: 32px;
	font-size: 14px;
	color: var(--at-site-muted);
}

/* Отзывы и рейтинг */
.at-reviews {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin: 24px 0 12px;
}

.at-review {
	margin: 0;
	padding: 24px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(31, 42, 55, 0.06);
}

.at-review blockquote {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	font-size: 16px;
	font-style: normal;
}

.at-review blockquote p {
	margin: 0 0 8px;
}

.at-review figcaption strong {
	display: block;
	color: var(--at-site-heading);
}

.at-review figcaption span {
	font-size: 14px;
	color: var(--at-site-muted);
}

.at-rating {
	color: var(--at-site-heading) !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.at-rating-stars {
	color: var(--at-site-accent);
	letter-spacing: 1px;
}

.at-reviews-all {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
}

/* Пустые разделы */
.at-empty {
	padding: 32px 24px;
	border: 1px dashed #E8E2D6;
	border-radius: 16px;
	text-align: center;
	color: var(--at-site-muted);
}

/* Полоса контактов перед подвалом */
.at-strip {
	background: var(--at-site-soft);
	padding: 48px 20px;
}

.at-strip-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.at-strip-title {
	margin: 0 0 6px;
	font-family: var(--global-heading-font-family, 'Nunito', sans-serif);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--at-site-heading);
}

.at-strip-meta {
	margin: 0;
	color: var(--at-site-muted);
}

.at-strip-meta a {
	color: inherit;
}

.at-strip-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 640px) {
	.at-strip {
		padding: 36px 16px;
	}

	.at-strip-title {
		font-size: 20px;
	}

	.at-strip-actions,
	.at-strip-actions .at-site-btn {
		width: 100%;
	}
}
