/* Палитра и шрифт мастер-лендинга tomorrow-school.ai */
:root {
	--primary: #0000fd;
	--primary-light: #0267ff;
	--accent-purple: #7c3aed;
	--accent-cyan: #00f0ff;
	--text: #14151d;
	--muted: #5a5d6e;
	--border: rgba(0, 0, 255, 0.12);
	--danger: #d61f3d;
	--card-bg: #ffffff;
	--page-bg: #081487;
	--ring: rgba(0, 0, 253, 0.14);
	--shadow: 0 10px 30px rgba(0, 0, 40, 0.28), 0 40px 80px -30px rgba(0, 0, 60, 0.5);
	--font: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	background: var(--page-bg);
	-webkit-font-smoothing: antialiased;
}

/* Мягкий брендовый фон: цветные «свечения» по углам + тонкая сетка точек.
   Фиксированный слой под контентом, не мешает чтению. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(48rem 48rem at 12% -8%, rgba(2, 103, 255, 0.55), transparent 60%),
		radial-gradient(44rem 44rem at 92% 0%, rgba(124, 58, 237, 0.42), transparent 60%),
		radial-gradient(40rem 40rem at 84% 100%, rgba(0, 240, 255, 0.30), transparent 62%),
		linear-gradient(160deg, #0b1fb0 0%, #060c86 55%, #0a1470 100%);
}
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
	-webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
	pointer-events: none;
}

.wrap {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 16px 56px;
}

/* Шапка: все логотипы в один ряд, одной высоты, чёрные. */
.head { width: 100%; max-width: 560px; padding: 0 0 24px; }
.head__logos {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	flex-wrap: wrap;
}
.head__logos a { display: inline-flex; text-decoration: none; transition: opacity 0.15s ease; }
.head__logos a:hover { opacity: 0.7; }
.head__logos img {
	display: block;
	height: 38px;
	width: auto;
	/* любое начертание → белый силуэт + мягкое свечение */
	filter: brightness(0) invert(1)
		drop-shadow(0 0 8px rgba(255, 255, 255, 0.6))
		drop-shadow(0 0 24px rgba(150, 190, 255, 0.55));
}

.card {
	position: relative;
	width: 100%;
	max-width: 560px;
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 36px 32px;
	background: var(--card-bg);
	box-shadow: var(--shadow);
	overflow: hidden;
}
/* Тонкая градиентная полоса сверху карточки — фирменный акцент */
.card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--accent-purple), var(--accent-cyan));
}
.card--center { text-align: center; }

h1 { font-size: 27px; line-height: 34px; margin: 6px 0 8px; font-weight: 700; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin: 0 0 26px; font-size: 15px; }

.field { display: block; margin-bottom: 18px; }
.field__name { display: block; font-weight: 500; margin-bottom: 7px; font-size: 14px; }
.field__name b { color: var(--primary); }
.field input {
	width: 100%;
	font: inherit;
	color: var(--text);
	padding: 13px 15px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #fff;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #a2a5b4; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.field.is-invalid input { border-color: var(--danger); }
.field__err { display: none; color: var(--danger); font-size: 13px; margin-top: 5px; }
.field.is-invalid .field__err { display: block; }

/* honeypot — уводим с экрана, но не display:none (боты такое замечают) */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
	display: inline-block;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, var(--primary) 0%, #3b32ff 100%);
	border: none;
	border-radius: 12px;
	padding: 14px 22px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 8px 20px -8px rgba(0, 0, 253, 0.6);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(0, 0, 253, 0.65); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; filter: none; }
.btn--submit { width: 100%; margin-top: 8px; }

.form-error {
	color: var(--danger);
	background: rgba(214, 31, 61, 0.07);
	border: 1px solid rgba(214, 31, 61, 0.25);
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 14px;
}

.done-mark {
	width: 68px; height: 68px;
	margin: 10px auto 18px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), var(--accent-purple));
	color: #fff;
	font-size: 36px;
	line-height: 68px;
	box-shadow: 0 12px 28px -10px rgba(0, 0, 253, 0.7);
}

@media (max-width: 480px) {
	.wrap { padding: 28px 14px 40px; }
	.card { padding: 26px 20px; border-radius: 16px; }
	.head__logos { gap: 16px; }
	.head__logos img { height: 26px; }
	h1 { font-size: 23px; line-height: 30px; }
}
