:root {
	--bg: #f1f1f1;
	--text: #111111;
	--purple: #6f36f6;
	--white: #ffffff;

	--page-width: 1440px;
	--container-pad: 22px;

	--h1-line: clamp(36px, 7.5vw, 104px);
	--h1-line-accent: clamp(40px, 8.1vw, 108px);
	--p-lg: clamp(16px, 2vw, 20px);

	--cta-outline: 10px;
	--cta-radius: 22px;
}

* {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	color: var(--text);
	background: var(--bg);
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
		Arial;
	overflow-x: hidden;
	-webkit-tap-highlight-color: transparent;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}

.container {
	width: 100%;
	max-width: var(--page-width);
	margin: 0 auto;
	padding: 0 var(--container-pad);
}
#trial {
	scroll-margin-top: 76px;
}

/* Header */
.header {
	background: #fff;
	border-bottom: 1px solid #eaeaea;
}
.header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 12px 0;
}
.logo__circle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--purple);
	color: #fff;
	font-family: Montserrat, Inter;
	font-weight: 900;
	font-size: 12px;
	line-height: 1.05;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-shadow: 0 0 0 6px #fff;
}
.nav {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 1;
}
.nav__link {
	color: #000;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
}
.nav__link:hover {
	color: var(--purple);
}
.nav__phone {
	color: #6f36f6;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--purple);
	color: #fff;
	font-weight: 800;
	border-radius: 999px;
	transition: transform 0.15s ease, background 0.15s ease;
	text-decoration: none;
}
.btn:hover {
	transform: translateY(-1px);
	background: #5b2eea;
}
.btn--pill {
	border-radius: 999px;
}
.btn--header {
	padding: 10px 18px;
	font-size: 16px;
	box-shadow: 0 0 0 6px #fff;
}

/* Hero */
.hero {
	padding-top: 24px;
	display: flex;
	flex-direction: column;
}
.hero__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

/* Заголовок */
.hero__title {
	margin: 0 0 16px;
	font-family: Montserrat, Inter;
	font-weight: 900;
	line-height: 1.03;
	letter-spacing: 0.2px;
}
.hero__title-line {
	display: block;
	font-size: var(--h1-line);
	color: #111;
}
.hero__title-line--accent {
	color: var(--purple);
	font-size: var(--h1-line-accent);
}
@supports (text-wrap: balance) {
	.hero__title {
		text-wrap: balance;
	}
}

/* Описание */
.hero__desc {
	font-size: var(--p-lg);
	font-weight: 700;
	line-height: 1.45;
	max-width: 820px;
}
.accent {
	color: var(--purple);
	font-weight: 800;
}

/* Правый блок (ПК "как было") */
.hero__right {
	display: flex;
	align-items: center;
	gap: 24px;
	transform: translateY(-16px);
}
.cow {
	width: 260px;
	transform: rotate(2deg);
}
.photo-card {
	margin: 0;
	position: relative;
	border: 6px solid var(--purple);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	width: 520px;
	aspect-ratio: 16/9;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
}
.photo-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Персонажи */
.hero__mid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	align-items: end;
	gap: 20px;
	margin-top: 8px;
}
.mid__left {
	display: flex;
	align-items: flex-end;
}
.mid__center {
	display: flex;
	justify-content: center;
	align-items: flex-end;
}
.mid__right {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 16px;
	padding-top: 24px;
}
.bear {
	width: 220px;
}
.fox {
	width: 164px;
}
.book {
	width: 142px;
	transform: rotate(8deg);
}
.mid__group {
	display: none;
}
.animals-group {
	display: none;
}

/* Волна */
.wave {
	position: relative;
	margin-top: 12px;
	z-index: 1;
}
.wave svg {
	width: 100%;
	height: 90px;
	display: block;
}

/* CTA */
.cta-wrap {
	position: relative;
	z-index: 2;
	padding: 22px 0 calc(32px + env(safe-area-inset-bottom));
	margin-top: 8px;
}
.btn--xl.btn--cta {
	width: calc(100% - 2 * var(--container-pad));
	display: block;
	margin: 0 auto;
	padding: 26px 34px;
	font-size: 42px;
	font-weight: 900;
	line-height: 1;
	border-radius: var(--cta-radius);
	background: #6f36f6;
	color: #fff;
	text-align: center;
	box-shadow: 0 0 0 var(--cta-outline) #ffffff,
		0 8px 24px rgba(111, 54, 246, 0.2);
	text-decoration: none;
	border: none;
}
.btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-left: 16px;
	background: #fff;
	color: #6f36f6;
	border-radius: 999px;
	font-weight: 900;
	box-shadow: inset 0 0 0 2px #eee;
}
.arrow {
	display: block;
	animation: bounce 1.4s infinite;
}
@keyframes bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(3px);
	}
}

/* ===== Desktop L (<=1280) — корректируем размеры ПК */
@media (max-width: 1280px) {
	:root {
		--page-width: 1180px;
	}
	.photo-card {
		width: 440px;
	}
	.cow {
		width: 230px;
	}
	.bear {
		width: 200px;
	}
	.fox {
		width: 156px;
	}
	.book {
		width: 132px;
	}
}

/* ===== Tablets (<=1024px) ===== */
@media (max-width: 1024px) {
	:root {
		--page-width: 960px;
		--container-pad: 18px;
		--cta-outline: 9px;
	}
	.header__inner {
		flex-wrap: wrap;
		gap: 12px;
	}
	.nav {
		order: 2;
		width: 100%;
		justify-content: flex-start;
		gap: 14px;
	}
	.btn--header {
		order: 3;
	}
	.logo {
		order: 1;
	}

	.hero__right {
		gap: 18px;
		transform: none;
	}
	.photo-card {
		width: 420px;
	}
	.cow {
		width: 230px;
	}
	.hero__desc {
		max-width: 720px;
	}

	.bear {
		width: 190px;
	}
	.fox {
		width: 150px;
	}
	.book {
		width: 128px;
	}

	.wave svg {
		height: 78px;
	}
	.btn--xl.btn--cta {
		font-size: 36px;
		padding: 24px 30px;
	}
	.btn__icon {
		width: 44px;
		height: 44px;
	}
}

/* ===== Large phones / small tablets (<=768px) ===== */
@media (max-width: 768px) {
	:root {
		--page-width: 720px;
		--container-pad: 14px;
		--cta-outline: 8px;
	}
	.header {
		position: sticky;
		top: 0;
		z-index: 50;
		background: rgba(255, 255, 255, 0.92);
		backdrop-filter: blur(8px);
		box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
	}
	.header__inner {
		flex-wrap: wrap;
		gap: 10px;
	}
	.logo {
		order: 1;
	}
	.btn--header {
		order: 2;
	}
	.nav {
		order: 3;
		width: 100%;
		justify-content: flex-start;
		gap: 12px;
	}

	.hero__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	/* Корова + фото — 2 колонки, фото больше */
	.hero__right {
		display: grid;
		grid-template-columns: 2fr 3fr;
		align-items: center;
		gap: 12px;
		width: 100%;
	}
	.cow {
		width: 40vw;
		max-width: 180px;
		justify-self: start;
	}
	.photo-card {
		width: 56vw;
		max-width: 460px;
		justify-self: end;
	}
	.photo-card__img {
		height: auto;
	}
}

/* ===== Phones (<=480px) ===== */
@media (max-width: 480px) {
	:root {
		--page-width: 420px;
		--container-pad: 12px;
		--cta-outline: 7px;
	}
	.header__inner {
		flex-wrap: wrap;
		gap: 8px;
	}
	.logo__circle {
		width: 50px;
		height: 50px;
		font-size: 11px;
	}
	.btn--header {
		padding: 9px 14px;
		font-size: 15px;
	}
	.nav {
		order: 3;
		width: 100%;
		gap: 10px;
	}
	.nav__link,
	.nav__phone {
		font-size: 15px;
	}

	.hero__row {
		gap: 14px;
	}
	.hero__desc {
		font-size: 16px;
	}

	/* Фото на всю ширину, корову скрываем */
	.hero__right {
		display: block;
		width: 100%;
		margin-bottom: 2px;
	}
	.cow {
		display: none !important;
	}
	.photo-card {
		width: 100%;
		max-width: 100%;
		border-width: 5px;
		border-radius: 10px;
	}
	.photo-card__img {
		height: auto;
	}

	/* Убираем отдельные животные, показываем общую картинку сразу под фото */
	.hero__mid {
		display: block;
		margin-top: 8px;
		padding: 0;
	}
	.mid__left,
	.mid__center,
	.mid__right {
		display: none !important;
		padding: 0 !important;
	}
	.mid__group {
		display: block;
	}
	.animals-group {
		display: block;
		width: min(92vw, 420px);
		margin: clamp(-210px, -28vw, -146px) auto 0; /* плотный стык */
	}

	.wave svg {
		height: 60px;
	}
	.cta-wrap {
		padding: 14px 0 calc(22px + env(safe-area-inset-bottom));
		margin-top: 10px;
	}
	.btn--xl.btn--cta {
		font-size: 24px;
		padding: 18px 20px;
	}
	.btn__icon {
		width: 36px;
		height: 36px;
	}
}

/* ===== Very small phones (<=360px) ===== */
@media (max-width: 360px) {
	:root {
		--container-pad: 10px;
		--cta-outline: 6px;
	}
	.hero__title-line {
		font-size: clamp(32px, 9.2vw, 36px);
	}
	.hero__title-line--accent {
		font-size: clamp(34px, 9.6vw, 40px);
	}
	.animals-group {
		margin-top: clamp(-230px, -32vw, -160px);
	}
	.btn--xl.btn--cta {
		font-size: 20px;
		padding: 14px 16px;
	}
}

/* ===================== PROMO BANNER ===================== */
.promo-banner {
	position: relative;
	background: var(--purple);
	border-radius: 20px;
	overflow: hidden;
	margin: 20px auto 0;

	/* Постоянные боковые/вертикальные отступы внутри баннера (без медиа) */
	--promo-pad-x: clamp(32px, 6vw, 110px);
	--promo-pad-y: clamp(22px, 3.2vw, 44px);
}
.promo-banner__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.12fr 1.28fr; /* шире обе колонки */
	gap: clamp(20px, 2.8vw, 40px);
	padding: var(--promo-pad-y) var(--promo-pad-x);
	/* ниже по высоте на ПК/планшетах, но не огромный */
	min-height: clamp(220px, 26vw, 320px);
	align-items: start;
}
.promo-banner__title {
	margin: 0;
	color: #fff;
	font-family: Montserrat, Inter, Arial;
	font-weight: 900;
	font-size: clamp(32px, 5.8vw, 68px); /* больше */
	line-height: 1.05;
	letter-spacing: 0.2px;
	text-wrap: balance;
}
.promo-banner__right {
	color: #111;
	font-size: clamp(16px, 1.3vw, 22px); /* больше */
	font-weight: 800;
	line-height: 1.5;
}

/* Флаг — привязан к правому внутреннему отступу */
.promo-banner__flag {
	position: absolute;
	top: calc(var(--promo-pad-y) - 6px);
	right: var(--promo-pad-x);
	width: clamp(52px, 4.6vw, 90px);
	height: auto;
	z-index: 2;
	pointer-events: none;
	filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.04));
}

/* Мишка — под заголовком, слева, с небольшим нижним отступом (не впритык) */
.promo-banner__bear {
	position: absolute;
	left: var(--promo-pad-x);
	bottom: 12px; /* отступ от нижнего края */
	width: clamp(240px, 24vw, 360px);
	height: auto;
	z-index: 0;
	pointer-events: none;
	filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.03));
}

/* Планшеты: фикс флага (чтобы не налезал на текст) */
@media (max-width: 1024px) {
	.promo-banner__inner {
		/* добавим немного воздуха сверху для флага */
		padding-top: calc(var(--promo-pad-y) + clamp(18px, 3.6vw, 40px));
	}
	.promo-banner__flag {
		right: var(--promo-pad-x);
		top: var(--promo-pad-y);
		width: clamp(44px, 4.8vw, 72px);
	}
}

/* Малые планшеты / большие телефоны */
@media (max-width: 768px) {
	.promo-banner {
		border-radius: 16px;
	}
	.promo-banner__inner {
		grid-template-columns: 1fr; /* в одну колонку */
		gap: 12px;
		min-height: auto;
	}
	.promo-banner__title {
		font-size: clamp(26px, 7.2vw, 40px);
	}
	.promo-banner__right {
		font-size: clamp(15px, 2.6vw, 18px);
	}
	.promo-banner__bear {
		width: clamp(180px, 56vw, 360px);
		left: 50%;
		transform: translateX(-50%);
		bottom: 6px;
	}
	.promo-banner__flag {
		width: clamp(40px, 6.8vw, 64px);
	}
}

/* Телефоны: баннер ниже, текст умещается, мишка скрыт */
@media (max-width: 480px) {
	.promo-banner {
		border-radius: 14px;
	}
	.promo-banner__inner {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 14px; /* компактные отступы */
		min-height: auto; /* не делаем высоким */
	}
	.promo-banner__title {
		font-size: clamp(22px, 7vw, 30px);
	} /* чуть больше, но компактно */
	.promo-banner__right {
		font-size: 15px;
		line-height: 1.5;
	}
	.promo-banner__bear {
		display: none !important;
	}
	.promo-banner__flag {
		width: clamp(36px, 8.2vw, 52px);
		top: 12px;
		right: 12px;
	}
}

/* Очень узкие телефоны */
@media (max-width: 360px) {
	.promo-banner__inner {
		padding: 12px;
		gap: 8px;
	}
	.promo-banner__title {
		font-size: clamp(20px, 8.2vw, 28px);
	}
	.promo-banner__right {
		font-size: 14px;
	}
}
/* Планшеты: скрываем лежащего мишку в промо-баннере */
@media (max-width: 1024px) {
	.promo-banner__bear {
		display: none !important;
	}
}
/* Desktop: увеличить карточку с фото викладачки, чтобы была как корова */
@media (min-width: 1025px) {
	.hero__right {
		gap: 28px;
		align-items: center;
	}
	.photo-card {
		/* ширина растёт на широких экранах, но не больше 700px */
		width: clamp(560px, 34vw, 700px);
		aspect-ratio: 16 / 9;
	}
	.photo-card__img {
		height: 100%;
		object-fit: cover;
		object-position: center;
	}
}
/* Franklin Gothic Heavy (локально, если есть в assets). Иначе fallback Montserrat 900 */
@font-face {
	font-family: 'Franklin Gothic Heavy';
	src: url('assets/fonts/FranklinGothic-Heavy.woff2') format('woff2');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}
.fg-heavy {
	font-family: 'Franklin Gothic Heavy', Montserrat, Inter, system-ui,
		-apple-system, Arial;
	font-weight: 900;
}

/* Hero: ПК — фото викладачки как корова по размеру */
@media (min-width: 1025px) {
	.hero__right {
		gap: 28px;
		align-items: center;
	}
	.photo-card {
		width: clamp(560px, 34vw, 700px);
		aspect-ratio: 16 / 9;
	}
}

/* ===== Expandable banner ===== */
.expand-banner {
	margin: 28px 0 0;
}
.expand-banner__inner {
	background: #4e4cc2; /* фиолетовый насыщенный */
	border-radius: 22px;
	padding: clamp(18px, 2.8vw, 36px);
}
.expand-banner__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}
.expand-banner__title {
	margin: 0;
	color: #fff;
	font-family: Montserrat, Inter, Arial;
	font-weight: 900;
	font-size: clamp(30px, 5.6vw, 72px); /* шире и крупнее */
	line-height: 1.05;
	text-wrap: balance;
}
.expand-banner__toggle {
	background: #fff;
	color: #111;
	border: none;
	border-radius: 999px;
	padding: 10px 14px;
	font-weight: 800;
	cursor: pointer;
	flex-shrink: 0;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Blocks container */
.expand-banner__blocks {
	margin-top: 12px;
	display: grid;
	grid-template-columns: 1fr 1fr; /* двухколоночный на Desktop */
	gap: clamp(16px, 2.2vw, 28px);
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(-8px);
	transition: max-height 0.5s ease, opacity 0.35s ease, transform 0.35s ease;
}
.expand-banner.is-open .expand-banner__blocks {
	max-height: 2200px; /* достаточно для контента */
	opacity: 1;
	transform: translateY(0);
}

/* Block */
.expand-block {
	background: #ffffff;
	border-radius: 16px;
	padding: clamp(14px, 2vw, 22px);
	box-shadow: 0 0 0 8px #efeffe inset; /* мягкая внутренняя рамка */
}
.expand-block__heading {
	margin: 0 0 8px;
	color: #111;
	font-size: clamp(22px, 3.2vw, 34px);
	line-height: 1.15;
}
.expand-block__content {
	color: #222;
	font-weight: 700;
	font-size: clamp(15px, 1.5vw, 18px);
	line-height: 1.55;
}
.expand-block__content ul {
	margin: 8px 0 8px 18px;
	padding: 0;
}
.expand-columns {
	columns: 2;
	column-gap: 18px;
}
@media (max-width: 768px) {
	.expand-banner__blocks {
		grid-template-columns: 1fr; /* одна колонка на планшетах/телефонах */
	}
	.expand-columns {
		columns: 1;
	}
	.expand-banner__title {
		font-size: clamp(26px, 7vw, 40px);
	}
}

/* Телефоны: баннер невысокий, текст умещается */
@media (max-width: 480px) {
	.expand-banner__inner {
		padding: 14px;
	}
	.expand-banner__title {
		font-size: clamp(24px, 7.6vw, 34px);
	}
	.expand-block {
		padding: 12px;
	}
	.expand-block__heading {
		font-size: clamp(20px, 5.6vw, 26px);
	}
	.expand-block__content {
		font-size: 15px;
		line-height: 1.52;
	}
}

/* ===== Lead form ===== */
.lead-form {
	margin: 24px 0;
}
.lead-form__inner {
	background: #ffffff;
	border-radius: 22px;
	padding: clamp(18px, 2.6vw, 28px);
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: start;
	gap: clamp(16px, 2.2vw, 28px);
	position: relative;
}
.lead-form__title {
	margin: 0;
	font-family: Montserrat, Inter, Arial;
	font-weight: 900;
	font-size: clamp(32px, 6.4vw, 72px);
	line-height: 1.05;
	color: #111;
}
.lead-form__desc {
	margin: 10px 0 0;
	font-weight: 800;
	font-size: clamp(16px, 2vw, 20px);
	color: #222;
}
.form {
	display: grid;
	gap: 12px;
}
.form__row {
	display: grid;
	gap: 6px;
}
.form__label {
	font-size: 14px;
	font-weight: 700;
	color: #666;
}
.form__input {
	border: none;
	border-bottom: 2px solid #ddd;
	padding: 10px 8px;
	font-size: 16px;
	outline: none;
}
.form__input:focus {
	border-bottom-color: #6f36f6;
}
.form__submit {
	margin-top: 8px;
	padding: 12px 18px;
	font-size: 18px;
	background: #6f36f6;
	color: #fff;
}

/* Декор лисица */
.lead-form__decor {
	position: absolute;
	right: clamp(12px, 2.2vw, 22px);
	bottom: clamp(8px, 1.8vw, 16px);
	width: clamp(120px, 18vw, 220px);
	height: auto;
	pointer-events: none;
}

/* Планшеты */
@media (max-width: 1024px) {
	.lead-form__inner {
		grid-template-columns: 1fr;
	}
	.lead-form__decor {
		width: clamp(120px, 24vw, 260px);
		right: 12px;
		bottom: 8px;
	}
}

/* Телефоны */
@media (max-width: 480px) {
	.lead-form__inner {
		padding: 14px;
	}
	.lead-form__title {
		font-size: clamp(26px, 8vw, 36px);
	}
	.lead-form__desc {
		font-size: 15px;
	}
	.lead-form__decor {
		width: clamp(100px, 38vw, 200px);
	}
}
/* Testimonials */
.testimonials {
	margin: 28px 0 40px;
	padding: 20px;
}
.testimonials__title {
	margin: 0 0 14px;
	font-family: Montserrat, Inter, Arial;
	font-weight: 900;
	font-size: clamp(26px, 4.8vw, 42px);
	line-height: 1.08;
	color: #111;
}
.testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2.2vw, 28px);
}

.testimonial {
	background: #fff;
	border-radius: 22px;
	border: 4px solid #4e4cc2; /* фиолетовая рамка */
	box-shadow: 0 6px 22px rgba(17, 17, 17, 0.06);
	padding: clamp(14px, 2.2vw, 22px);
}
.testimonial__text {
	margin: 0 0 12px;
	font-weight: 700;
	font-size: clamp(15px, 1.6vw, 18px);
	line-height: 1.55;
	color: #222;
	text-align: center;
}
.testimonial__person {
	text-align: center;
}
.testimonial__name {
	font-family: Montserrat, Inter, Arial;
	font-weight: 900;
	font-size: clamp(18px, 2.2vw, 22px);
	color: #111;
}
.testimonial__level {
	font-weight: 900;
	font-size: clamp(14px, 1.6vw, 18px);
	color: #4e4cc2;
}

/* Hover */
@media (hover: hover) {
	.testimonial {
		transition: transform 0.15s ease, box-shadow 0.15s ease;
	}
	.testimonial:hover {
		transform: translateY(-2px);
		box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
	}
}

/* Адаптив */
@media (max-width: 1024px) {
	.testimonials__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.testimonials__grid {
		grid-template-columns: 1fr;
	}
	.testimonial {
		border-width: 3px;
		border-radius: 18px;
	}
	.testimonial__text {
		font-size: 15px;
	}
}
