body.ai-page .ai-container,
body.ai-page .site-content {
	width: min(1140px, calc(100% - 32px));
	margin-left: auto;
	margin-right: auto;
}
body.ai-page.bare .ai-container,
body.ai-page .site-content:has(.ai-static-page) {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}
body.ai-page .page-banner {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100%;
	height: 360px !important;
	min-height: 360px !important;
	margin: 0;
	padding: 0 24px !important;
	box-sizing: border-box;
	background-size: cover;
	background-position: top center;
}
body.ai-page .page-banner h1,
body.ai-page .page-banner .page-banner__title {
	margin: 0;
	color: #fff !important;
	text-align: center;
	font-size: 48px;
	line-height: 56px;
	font-weight: 600;
}
@media (max-width: 640px) {
	body.ai-page .page-banner h1, body.ai-page .page-banner .page-banner__title { font-size: 36px; line-height: 44px; }
}

/* Native static pages (О сайте, Контакты) */
.ai-static-page {
	color: #1e293b;
	background: #fff;
}
.ai-static-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 360px;
	min-height: 360px;
	max-height: 360px;
	padding: 0 24px;
	box-sizing: border-box;
	overflow: hidden;
	background-color: #334155;
	background-size: cover;
	background-position: top center;
	background-repeat: no-repeat;
	text-align: center;
}
.ai-static-hero--default {
	background-image:
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
		url("/assets/banners/banner-contact.jpg");
	background-image:
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
		-webkit-image-set(
			url("/assets/banners/banner-contact.avif") type("image/avif"),
			url("/assets/banners/banner-contact.webp") type("image/webp"),
			url("/assets/banners/banner-contact.jpg") type("image/jpeg")
		);
	background-image:
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
		image-set(
			url("/assets/banners/banner-contact.avif") type("image/avif"),
			url("/assets/banners/banner-contact.webp") type("image/webp"),
			url("/assets/banners/banner-contact.jpg") type("image/jpeg")
		);
}
.ai-static-hero--about {
	background-image:
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
		url("/assets/banners/banner-about.jpg");
	background-image:
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
		-webkit-image-set(
			url("/assets/banners/banner-about.avif") type("image/avif"),
			url("/assets/banners/banner-about.webp") type("image/webp"),
			url("/assets/banners/banner-about.jpg") type("image/jpeg")
		);
	background-image:
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
		image-set(
			url("/assets/banners/banner-about.avif") type("image/avif"),
			url("/assets/banners/banner-about.webp") type("image/webp"),
			url("/assets/banners/banner-about.jpg") type("image/jpeg")
		);
}
/* Документы: Политика + Правила (Elementor muldu_00003) */
.ai-static-hero--docs-policy {
	background-image:
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
		url("/assets/banners/banner-policy.jpg");
	background-image:
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
		-webkit-image-set(
			url("/assets/banners/banner-policy.avif") type("image/avif"),
			url("/assets/banners/banner-policy.webp") type("image/webp"),
			url("/assets/banners/banner-policy.jpg") type("image/jpeg")
		);
	background-image:
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
		image-set(
			url("/assets/banners/banner-policy.avif") type("image/avif"),
			url("/assets/banners/banner-policy.webp") type("image/webp"),
			url("/assets/banners/banner-policy.jpg") type("image/jpeg")
		);
}
/* Документы: Оферта (Elementor didaj_00001) */
.ai-static-hero--docs-oferta {
	background-image:
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
		url("/assets/banners/banner-oferta.jpg");
	background-image:
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
		-webkit-image-set(
			url("/assets/banners/banner-oferta.avif") type("image/avif"),
			url("/assets/banners/banner-oferta.webp") type("image/webp"),
			url("/assets/banners/banner-oferta.jpg") type("image/jpeg")
		);
	background-image:
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
		image-set(
			url("/assets/banners/banner-oferta.avif") type("image/avif"),
			url("/assets/banners/banner-oferta.webp") type("image/webp"),
			url("/assets/banners/banner-oferta.jpg") type("image/jpeg")
		);
}
@media (max-width: 768px) {
	/* Same frame as desktop (downscaled only) — avoid crop that looked like another page. */
	.ai-static-hero.ai-static-hero--default {
		background-position: top center;
		background-image:
			linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
			url("/assets/banners/banner-contact-m.jpg");
		background-image:
			linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
			-webkit-image-set(
				url("/assets/banners/banner-contact-m.avif") type("image/avif"),
				url("/assets/banners/banner-contact-m.webp") type("image/webp"),
				url("/assets/banners/banner-contact-m.jpg") type("image/jpeg")
			);
		background-image:
			linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
			image-set(
				url("/assets/banners/banner-contact-m.avif") type("image/avif"),
				url("/assets/banners/banner-contact-m.webp") type("image/webp"),
				url("/assets/banners/banner-contact-m.jpg") type("image/jpeg")
			);
	}
	.ai-static-hero.ai-static-hero--about {
		background-position: top center;
		background-image:
			linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
			url("/assets/banners/banner-about-m.jpg");
		background-image:
			linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
			-webkit-image-set(
				url("/assets/banners/banner-about-m.avif") type("image/avif"),
				url("/assets/banners/banner-about-m.webp") type("image/webp"),
				url("/assets/banners/banner-about-m.jpg") type("image/jpeg")
			);
		background-image:
			linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
			image-set(
				url("/assets/banners/banner-about-m.avif") type("image/avif"),
				url("/assets/banners/banner-about-m.webp") type("image/webp"),
				url("/assets/banners/banner-about-m.jpg") type("image/jpeg")
			);
	}
	.ai-static-hero.ai-static-hero--docs-policy {
		background-position: top center;
		background-image:
			linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
			url("/assets/banners/banner-policy-m.jpg");
		background-image:
			linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
			-webkit-image-set(
				url("/assets/banners/banner-policy-m.avif") type("image/avif"),
				url("/assets/banners/banner-policy-m.webp") type("image/webp"),
				url("/assets/banners/banner-policy-m.jpg") type("image/jpeg")
			);
		background-image:
			linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
			image-set(
				url("/assets/banners/banner-policy-m.avif") type("image/avif"),
				url("/assets/banners/banner-policy-m.webp") type("image/webp"),
				url("/assets/banners/banner-policy-m.jpg") type("image/jpeg")
			);
	}
	.ai-static-hero.ai-static-hero--docs-oferta {
		background-position: top center;
		background-image:
			linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
			url("/assets/banners/banner-oferta-m.jpg");
		background-image:
			linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
			-webkit-image-set(
				url("/assets/banners/banner-oferta-m.avif") type("image/avif"),
				url("/assets/banners/banner-oferta-m.webp") type("image/webp"),
				url("/assets/banners/banner-oferta-m.jpg") type("image/jpeg")
			);
		background-image:
			linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
			image-set(
				url("/assets/banners/banner-oferta-m.avif") type("image/avif"),
				url("/assets/banners/banner-oferta-m.webp") type("image/webp"),
				url("/assets/banners/banner-oferta-m.jpg") type("image/jpeg")
			);
	}
}
.ai-static-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1.15;
	font-weight: 600;
}
.ai-static-block {
	width: min(1100px, calc(100% - 32px));
	margin: 0 auto;
	padding: 48px 0;
}
.ai-static-rule {
	width: 80px;
	height: 4px;
	margin: 0 0 20px;
	background: #1e73be;
}
.ai-static-rule--center { margin-left: auto; margin-right: auto; }
.ai-static-kicker {
	margin: 0 0 8px;
	font-size: 18px;
	color: #64748b;
}
.ai-static-copy h2,
.ai-about-author h2,
.ai-contact-head h2,
.ai-contact-form-copy h2 {
	margin: 0 0 16px;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.2;
}
.ai-static-copy p,
.ai-static-lead,
.ai-contact-form-copy p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #334155;
}
.ai-static-lead {
	max-width: 720px;
	margin: 0 auto 28px;
	text-align: center;
}
.ai-about-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
}
.ai-static-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}
.ai-about-author { text-align: center; }
.ai-author-card {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	text-align: left;
	padding: 20px;
	border: 1px solid rgba(51, 51, 51, 0.08);
	border-radius: 4px;
	background: #f8fafc;
}
.ai-author-card img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 4px;
}
.ai-author-card h3 { margin: 0 0 8px; font-size: 20px; }
.ai-author-card p { margin: 0; line-height: 1.5; }
.ai-author-card a { color: #1e73be; }
.ai-static-benefits {
	width: min(1100px, calc(100% - 32px));
	margin: 0 auto 56px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	text-align: center;
}
.ai-static-benefits img {
	display: block;
	margin: 0 auto 12px;
	width: 72px;
	height: 72px;
	object-fit: contain;
}
.ai-static-benefits h3 { margin: 0 0 8px; font-size: 18px; }
.ai-static-benefits p { margin: 0; font-size: 14px; line-height: 1.45; color: #555; }

.ai-legal-body {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}
.ai-legal-body p {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.65;
	color: #334155;
}
.ai-legal-body p:first-child {
	color: #64748b;
	font-size: 14px;
}
.ai-legal-body b { color: #0f172a; font-weight: 650; }

.ai-contact-head { text-align: center; padding-bottom: 12px; }
.ai-contact-topics {
	width: min(1100px, calc(100% - 32px));
	margin: 0 auto 40px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.ai-contact-topics article {
	padding: 20px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
}
.ai-contact-topics h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; }
.ai-contact-topics p { margin: 0 0 12px; color: #475569; line-height: 1.5; }
.ai-contact-topics a { color: #1e73be; font-weight: 650; text-decoration: none; }
.ai-contact-form-wrap {
	width: min(1100px, calc(100% - 32px));
	margin: 0 auto 56px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	padding: 28px;
	border-radius: 12px;
	background: linear-gradient(135deg, #eef6fb, #f8fafc);
	box-sizing: border-box;
}
.ai-contact-form-wrap .contact-form-card {
	margin: 0;
	box-shadow: none;
	border: 1px solid #e2e8f0;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}
.ai-contact-form-copy { min-width: 0; }

body.ai-page .entry-content {
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.ai-about-intro,
	.ai-contact-form-wrap,
	.ai-static-benefits {
		grid-template-columns: 1fr;
	}
	.ai-contact-topics { grid-template-columns: 1fr; }
	.ai-author-card { flex-direction: column; text-align: center; }
	.ai-contact-form-wrap {
		width: min(100% - 24px, 1100px);
		padding: 18px 14px;
		gap: 18px;
	}
	.ai-static-block,
	.ai-static-benefits,
	.ai-contact-topics {
		width: min(100% - 24px, 1100px);
	}
}
