/* styles.css — чистый, светлый и презентабельный */
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	font: 16px/1.55 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial,
		'Noto Sans', sans-serif;
	color: var(--ink);
	background: radial-gradient(
			1200px 600px at 80% -10%,
			#e9f3ff 0%,
			transparent 60%
		),
		var(--bg);

	font-size: clamp(14px, 1.2vw, 16px);
}

a {
	text-decoration: none;
}

:root {
	--bg: #fdfdfd; /* мягкий белый фон */
	--bg-elev: #ffffff; /* слегка «воздушный» белый */
	--ink: #1c1c2e; /* темно-серый вместо черного для менькой контрастности */
	--muted: #6b7280; /* серо-голубой для текста */
	--brand: #a3bffa; /* нежный голубой */
	--brand-2: #ffe0f0; /* светло-розовый для градиентов */
	--accent: #6ee7b7; /* мягкий мятный */
	--warning: #fcd34d; /* теплый желтый пастельный */
	--ring: color-mix(in oklab, var(--brand) 50%, transparent);
	--shadow: 0 10px 30px rgba(28, 28, 46, 0.05); /* мягкая тень */
	--radius: 18px;
}

ul {
	list-style: none;
	padding: 0;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 24px;
}
.grid {
	display: grid;
	gap: 24px;
}
.grid-3x6 {
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(6, 1fr);
}
.grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-1 {
	grid-column: span 2 / span 2;
	grid-row: span 2 / span 2;
}

.grid-2 {
	grid-row: span 2 / span 2;
	grid-column-start: 3;
}

.grid-3 {
	grid-column: span 2 / span 2;
	grid-row: span 2 / span 2;
	grid-column-start: 2;
	grid-row-start: 3;
}

.grid-4 {
	grid-row: span 2 / span 2;
	grid-column-start: 1;
	grid-row-start: 3;
}

.grid-5 {
	grid-column: span 3 / span 3;
	grid-row: span 2 / span 2;
	grid-row-start: 5;
}

@media (max-width: 960px) {
	.grid-3 {
		grid-template-columns: 1fr;
	}
	.grid-2 {
		grid-template-columns: 1fr;
	}
}

header.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(180%) blur(8px);
	background: color-mix(in oklab, var(--bg-elev) 86%, transparent);
	border-bottom: 1px solid #eef1f8;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
}
.brand {
	margin-top: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ink);
}
.brand .logo {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	box-shadow: var(--shadow);
}
.brand .title {
	font-weight: 700;
}
.nav a {
	text-decoration: none;
	color: var(--muted);
	font-weight: 600;
	margin: 0 10px;
}
.nav a.active,
.nav a:hover {
	color: var(--brand);
}
.cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: white;
	border: none;
	cursor: pointer;
	box-shadow: var(--shadow);
}

.burger-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: white;
	border: none;
	cursor: pointer;
	box-shadow: var(--shadow);
}

.cta-btn:focus-visible {
	outline: 3px solid var(--ring);
	outline-offset: 2px;
}

.hero {
	position: relative;
	isolation: isolate;
	min-height: 68vh;
	display: grid;
	align-items: center;
	background: radial-gradient(
			900px 400px at 10% 0%,
			#ffffff 0%,
			transparent 60%
		),
		radial-gradient(1200px 600px at 110% 10%, #f0faff 0%, transparent 70%);
}
.hero .container {
	padding-top: 40px;
	padding-bottom: 40px;
}
.kicker {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand);
	font-weight: 700;
	font-size: 0.85rem;
}
h1 {
	font-size: clamp(32px, 6vw, 56px);
	margin: 12px 0 12px;
}
.lead {
	font-size: clamp(16px, 2.6vw, 20px);
	color: var(--muted);
	max-width: 70ch;
}
.hero-card {
	margin-top: 32px;
	background: var(--bg-elev);
	border-radius: var(--radius);
	padding: 18px;
	box-shadow: var(--shadow);
	display: grid;
	gap: 12px;
	align-items: center;
}
.hero-card label {
	font-weight: 700;
	color: var(--muted);
}
.hero-card input,
.hero-card select {
	width: 100%;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid #e6eaf3;
	background: white;
}
.hero-card .row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
@media (max-width: 700px) {
	.hero-card .row {
		grid-template-columns: 1fr;
	}
}

.section {
	padding: 72px 0;
}
.section .headline {
	font-size: clamp(24px, 4vw, 40px);
	margin: 0 0 12px;
}
.section .subhead {
	color: var(--muted);
	max-width: 68ch;
	margin-bottom: 24px;
}

.card {
	background: var(--bg-elev);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}
.card .eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	color: var(--brand);
	font-size: 0.8rem;
}
.card h3 {
	margin: 0.2rem 0 0.4rem;
}
.badge {
	display: inline-flex;
	padding: 6px 10px;
	background: #eef5ff;
	color: var(--brand);
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.8rem;
}

.stats {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}
.stat {
	flex: 1 1 200px;
	padding: 18px;
	border-radius: 16px;
	background: linear-gradient(180deg, #fff, #f8f9fd);
	box-shadow: var(--shadow);
	text-align: center;
}
.stat .num {
	font-size: clamp(28px, 6vw, 44px);
	font-weight: 800;
}
.stat .label {
	color: var(--muted);
}

.marquee {
	display: flex;
	gap: 18px;
	padding-bottom: 6px;
}
.marquee .pill {
	scroll-snap-align: start;
	white-space: nowrap;
	padding: 10px 14px;
	border-radius: 999px;
	background: #f0f4ff;
	color: var(--brand);
	font-weight: 700;
}

footer a {
	color: var(--muted);
	text-decoration: none;
}
footer a:hover {
	color: var(--brand);
}
@media (max-width: 960px) {
	.footer-inner {
		grid-template-columns: 1fr;
	}
}

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
	opacity: 1;
	transform: none;
}

.parallax {
	position: relative;
	overflow: hidden;
}
.parallax::after {
	content: '';
	position: absolute;
	inset: -10%;
	background: radial-gradient(
			600px 200px at 20% 20%,
			rgba(245, 129, 229, 0.18),
			transparent 100%
		),
		radial-gradient(
			700px 250px at 80% 0%,
			rgba(114, 105, 231, 0.16),
			transparent 100%
		);
	z-index: -1;
	transform: translateY(var(--pY, 0px));
}

.table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: var(--shadow);
}
.table th,
.table td {
	padding: 14px 16px;
	border-bottom: 1px solid #eef2f9;
	text-align: left;
}
.table tr:last-child td {
	border-bottom: none;
}
.table th {
	background: #f3f7ff;
	color: #334155;
	font-weight: 800;
}

.form {
	display: grid;
	gap: 14px;
}
.input-group label {
	display: block;
	font-weight: 700;
	color: var(--muted);
	margin-bottom: 6px;
}
.input-group input,
.input-group select,
.input-group textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid #e6eaf3;
	background: white;
}
.help {
	font-size: 0.9rem;
	color: var(--muted);
}
.success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	margin: 0;
	padding: 12px 14px;
	border-radius: 12px;
}
.error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
	padding: 12px 14px;
	border-radius: 12px;
}

.cta {
	min-height: 51px;
}

@media (max-width: 1200px) {
	.grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
	.container {
		padding: 16px 16px; /* чуть меньше на мобильных */
	}
}

@media (max-width: 768px) {
	.grid-3,
	.grid-2 {
		grid-template-columns: 1fr;
	}

	.nav a {
		margin: 0 6px;
	}

	.hero-card {
		padding: 14px;
	}

	.section {
		padding: 48px 16px;
	}
}

/* Header burger */
.show-mobile {
	display: none;
}

@media (max-width: 700px) {
	.show-mobile {
		display: inline-flex;
	}
	nav.hide-mobile {
		display: none;
		flex-direction: column;
		gap: 14px;
		background: var(--bg-elev);
		position: absolute;
		top: 60px;
		right: 16px;
		padding: 14px;
		border-radius: var(--radius);
		box-shadow: var(--shadow);
	}
	nav.hide-mobile.show {
		display: flex;
	}
}

/* Футер */
footer {
	background: #f6f8ff;
	border-top: 1px solid #eaf0ff;
	margin-top: 60px;
	padding: 36px 24px 16px;
	color: var(--muted);
	font-size: 0.95rem;
}

/* Футер: универсальная резиновая сетка */
.footer-inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
	align-items: start;
}

/* Логотип и описание — шире */
.footer-inner > div:first-child {
	grid-column: span 2;
}

/* Ссылки футера */
footer a {
	color: var(--muted);
	text-decoration: none;
	transition: color 0.3s;
}
footer a:hover {
	color: var(--brand);
}

/* Бегущий блок */
.marquee {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	padding-bottom: 6px;
	justify-content: flex-start;
}
.marquee .pill {
	white-space: nowrap;
	padding: 10px 14px;
	border-radius: 999px;
	background: #f0f4ff;
	color: var(--brand);
	font-weight: 700;
}

/* Планшет */
@media (max-width: 1024px) {
	.footer-inner > div:first-child {
		grid-column: span 1; /* логотип уже не растягивается */
	}
}

/* Мобильные */
@media (max-width: 700px) {
	.footer-inner {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 16px;
		padding: 0 16px;
	}

	.footer-inner > div {
		width: 100%;
	}

	.marquee {
		justify-content: center;
	}

	.marquee .pill {
		font-size: 0.9rem;
		padding: 8px 12px;
	}
}

.image-cards-section {
	margin-top: 40px;
}

.image-card {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
	cursor: pointer;
}

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

.image-card-label {
	position: absolute;
	bottom: 0;
	width: 100%;
	padding: 12px;
	background: rgba(112, 90, 122, 0.8);
	color: #fff;
	font-size: 1rem;
	text-align: center;
	font-weight: 600;
}

.image-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-cont {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.cta-btn {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.hidden {
	display: none;
}

.grid-pricing {
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(1, 1fr);
}
