/* MSI School landing. Phone first; wider layouts at 640, 960 and 1200 px. */

:root {
  --purple: #7b6af4;
  --purple-dark: #6a58ec;
  --green: #15b18c;
  --ink: #26262d;
  --dark: #1c1d22;
  --dark-card: #26262d;
  --card: #edeff4;
  --muted: #5c5e66;
  --muted-light: #abadb3;
  --white: #ffffff;
  --gradient: linear-gradient(101deg, var(--purple) 0%, var(--green) 100%);
  --gradient-hover: linear-gradient(272deg, var(--purple) 0%, var(--green) 100%);
  --purple-light: #897bf1;
  --grey: #7e8087;
  --pill-hover: #d4d5d7;
  --hover: .2s ease-in-out;
  --ease-out-expo: cubic-bezier(.19, 1, .22, 1);
  --bounce: cubic-bezier(.34, 1.61, .7, 1);
  --radius: 15px;
  --radius-big: 30px;
  --gutter: 18px;
  --max: 1344px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
b { font-weight: 600; }
.accent { color: var(--purple); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

/* ---------- buttons, pills, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 0 32px;
  border: 0; border-radius: 500px;
  font-size: 16px; font-weight: 500; text-decoration: none; text-align: center;
  position: relative; isolation: isolate;
  transition: background-color var(--hover), color var(--hover), box-shadow var(--hover);
}
.btn--gradient { background: var(--gradient); color: var(--white); }
/* Tilda flips the gradient on hover; a layer fades in because gradients can't transition. */
.btn--gradient::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--gradient-hover); opacity: 0; transition: opacity var(--hover);
}
.btn--gradient:hover::before { opacity: 1; }
.btn--purple { background: var(--purple); color: var(--white); }
.btn--purple:hover { background: var(--purple-light); }
.btn--dark:hover { background: var(--grey); }
.btn--outline-purple:hover { color: var(--purple-light); box-shadow: inset 0 0 0 1px var(--purple-light); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--outline-purple { background: transparent; color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.btn--ghost-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.85); }
.btn--small { min-height: 40px; padding: 0 22px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.arrow { font-size: .85em; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 22px; border-radius: 3px;
  background: var(--card); color: var(--ink);
  font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: background-color var(--hover), color var(--hover);
}
.pill:hover { background: var(--pill-hover); }
.pill--dark { background: var(--dark); color: var(--white); }
.pill--dark:hover { background: var(--grey); }
.pill--outline { background: transparent; box-shadow: inset 0 0 0 1px #d4d5d7; }

.tag {
  display: inline-block; padding: 3px 16px;
  border: 1px solid var(--purple); border-radius: 50px;
  color: var(--purple); font-size: 13px; font-weight: 500;
}
.tag--dark { margin-bottom: 14px; }
.tag--promo { color: var(--white); border-color: var(--purple); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.header__inner {
  display: flex; align-items: center; gap: 6px;
  max-width: calc(var(--max) + 2 * var(--gutter)); height: var(--header-h);
  margin: 0 auto; padding: 0 var(--gutter);
}
.header__logo { flex: none; margin-right: auto; }
.header__logo img { width: 150px; height: auto; }
.nav, .header__phone, .header__login { display: none; }

.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 12px;
  height: 38px; padding: 0 18px; border-radius: 3px;
  background: var(--card); font-size: 14px; cursor: pointer; list-style: none;
  transition: background-color var(--hover);
}
.lang summary:hover { background: var(--pill-hover); }
.lang summary::-webkit-details-marker { display: none; }
.lang__caret { width: 0; height: 0; border: 5px solid transparent; border-top: 7px solid var(--purple); border-bottom: 0; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 100%;
  display: grid; padding: 6px; border-radius: 6px; background: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.lang__menu a { padding: 8px 14px; border-radius: 3px; font-size: 14px; text-decoration: none; }
.lang__menu a:hover, .lang__menu a[aria-current] { background: var(--card); }

.burger {
  display: grid; align-content: center; gap: 6px;
  width: 52px; height: 38px; padding: 0 12px; border: 0; border-radius: 3px; background: var(--purple);
}
.burger span { height: 2px; background: var(--white); }

/* ---------- layout ---------- */
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 80px; padding-bottom: 80px; }
.section, .hero, .dark-block {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 0 var(--gutter);
}
.h2 { margin: 10px 0 0; font-size: 32px; font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.h2--light { color: var(--white); }
.lead-text { font-size: 18px; font-weight: 500; line-height: 1.3; }

.card { position: relative; padding: 22px; border-radius: var(--radius); background: var(--card); overflow: hidden; }
.card--purple { background: var(--purple); color: var(--white); }
.card--dark { background: var(--dark-card); color: var(--white); }
.card__title { font-size: 20px; font-weight: 500; line-height: 1.2; }
.card__text { margin-top: 40px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.card--purple .card__text { color: rgba(255,255,255,.92); }

/* ---------- hero ---------- */
.hero {
  position: relative; display: grid; gap: 22px;
  max-width: none; margin: 8px 0 0; padding: 28px var(--gutter) 30px;
  border-radius: var(--radius-big); background: var(--dark); color: var(--white);
}
.hero__main { display: grid; justify-items: start; }
.hero__title, .hero__bullet, .hero__cta { justify-self: stretch; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hero__chips li { padding: 6px 14px; border-radius: 3px; background: #26272d; font-size: 13px; }
.hero__title { margin-top: 18px; font-size: 32px; font-weight: 500; line-height: 1.04; letter-spacing: -.02em; }
.hero__badge {
  display: inline-block; justify-self: start; margin-top: 16px; padding: 10px 22px; border-radius: 8px;
  background: var(--purple); font-size: 15px; font-weight: 500;
  rotate: -3deg; transform-origin: left center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.hero__bullet { position: relative; margin-top: 18px; padding-left: 18px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.hero__bullet::before { content: ""; position: absolute; left: 0; top: 5px; border: 6px solid transparent; border-left: 9px solid var(--purple); border-right: 0; }
.hero__cta { width: 100%; margin-top: 26px; }
.hero__bottom { display: grid; gap: 10px; }
.hero__graduates { width: 220px; height: auto; }
.hero__graduates-text { font-size: 12px; line-height: 1.5; color: var(--muted-light); }
.hero__video { aspect-ratio: 16 / 10; }

/* ---------- video cards & play buttons ---------- */
.video-card { position: relative; overflow: hidden; border-radius: var(--radius); background: #111; }
.video-card__media { width: 100%; height: 100%; object-fit: cover; }
.video-card__hit { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; }
.video-card__caption { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 1; text-align: center; color: var(--white); font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.play {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 0; border-radius: 50%;
  background: linear-gradient(140deg, rgba(123,106,244,.75), rgba(21,177,140,.75));
  display: grid; place-items: center; pointer-events: none;
}
button.play { pointer-events: auto; }
.play__icon { width: 0; height: 0; border: 10px solid transparent; border-top: 14px solid var(--white); border-bottom: 0; margin-top: 6px; }

/* ---------- about / stats ---------- */
.about__text { margin-top: 26px; max-width: 1150px; }
.stats { display: grid; gap: 12px; margin-top: 32px; }
.stat { position: relative; padding: 22px; border-radius: var(--radius); background: var(--card); overflow: hidden; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.stat__value { font-size: 38px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.stat__value span { display: block; margin-top: 4px; font-size: 22px; letter-spacing: -.02em; }
.stat__text { margin-top: 30px; font-size: 14px; color: var(--muted); }
.stat--photo { color: var(--white); min-height: 230px; }
.stat__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.stat__logo { position: relative; width: 156px; height: auto; }
.stat--photo .stat__text { position: relative; color: var(--white); }

/* ---------- program ---------- */
.program { display: grid; gap: 28px; }
.program__right { display: grid; gap: 24px; align-content: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 9px 22px; border: 1px solid var(--ink); border-radius: 50px; font-size: 17px; }
.dates { display: grid; gap: 8px; margin-top: 28px; }
.date { display: grid; gap: 30px; padding: 20px 22px; border-radius: var(--radius); color: var(--white); }
.date--purple { background: var(--purple); }
.date--dark { background: var(--dark-card); }
.date__label { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.date__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 14px; }
.date__value { font-size: 22px; }
.schedule { padding: 20px 22px; border-radius: var(--radius); background: var(--card); }
.schedule__head { display: grid; gap: 14px; font-size: 15px; }
.schedule__head b { font-weight: 500; }
.schedule__days { margin-top: 30px; font-size: 20px; }
.schedule__times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.schedule__times li { padding: 6px 12px; border-radius: 3px; background: var(--white); font-size: 14px; color: var(--muted); }

/* ---------- quality ---------- */
.quality { display: grid; gap: 12px; margin-top: 32px; }
.quality .card { min-height: 220px; display: flex; flex-direction: column; }
.quality .card__text { margin-top: auto; padding-top: 40px; }
.quality__plan .btn { align-self: flex-start; margin-top: 22px; }
.quality__video, .quality__video-tall { min-height: 230px; }
.quality__progress { padding-bottom: 180px; }
.quality__illustration { position: absolute; right: 0; bottom: 0; width: 230px; height: auto; }
.quality__cta { width: 100%; margin-top: 22px; }

/* ---------- student box ---------- */
.dark-block {
  max-width: none; display: grid; gap: 28px;
  padding: 36px var(--gutter); border-radius: var(--radius-big);
  background: var(--dark); color: var(--white);
}
.box__title { display: flex; align-items: center; gap: 14px; margin: 0; }
.box__dot { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--purple); font-size: 18px; }
.box__image { position: relative; margin-top: 18px; }
.box__play { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.box__intro { font-size: 18px; font-weight: 500; line-height: 1.3; }
.box__list { display: grid; gap: 6px; margin-top: 22px; }
.box__list li { display: flex; gap: 4px; align-items: stretch; }
.box__arrow { display: grid; place-items: center; flex: none; width: 44px; border-radius: 3px; background: var(--purple); }
.box__list li > span:last-child { padding: 10px 16px; border-radius: 3px; background: #26272d; font-size: 15px; }
.box__note { margin-top: 26px; font-size: 13px; color: var(--muted-light); }
.box__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* ---------- results ---------- */
.results { display: grid; gap: 12px; }
.results__title { margin-bottom: 14px; }
.results .card { min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 15px; }
.results__text { font-size: 18px; font-weight: 500; line-height: 1.3; }
.results__first { padding-right: 22px; }
.results__first .results__text { max-width: 440px; }
.results__illustration { display: none; }
.results__bonus .results__text { font-size: 20px; }
.bonus-label { align-self: flex-start; padding: 5px 18px; border-radius: 50px; background: var(--dark); font-size: 15px; font-weight: 500; }
.info-btn {
  position: absolute; right: 22px; top: 22px; z-index: 1;
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.25); color: var(--white); font-weight: 600;
}
.info-btn--grey { position: static; flex: none; background: #d4d5d7; color: var(--white); }

/* ---------- reviews ---------- */
.reviews { display: grid; gap: 12px; }
.review { position: relative; overflow: hidden; border-radius: var(--radius); }
.review img { width: 100%; height: auto; aspect-ratio: 1148 / 1234; object-fit: cover; }

/* ---------- audience ---------- */
.audience__text { margin-top: 26px; max-width: 720px; }
.audience { display: grid; gap: 12px; margin-top: 32px; }
.audience__card { min-height: 228px; display: flex; flex-direction: column; justify-content: space-between; }
.audience__label { position: relative; z-index: 1; max-width: 330px; font-size: 20px; font-weight: 500; line-height: 1.2; }
.audience__card--first .audience__label { max-width: 150px; }
.corner-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: var(--white); font-size: 16px; }
.corner-arrow--dark { background: var(--dark); }
.audience__illustration { position: absolute; right: 12px; bottom: 0; width: 150px; height: auto; }

/* ---------- price ---------- */
.prices { display: grid; gap: 12px; margin-top: 32px; }
.price { display: flex; flex-direction: column; gap: 18px; padding: 28px 22px; }
.price__label { font-size: 14px; }
.price__value { font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.price__value span { font-weight: 400; white-space: nowrap; }
.price__value--purple { color: var(--purple); }
.price__options { display: flex; gap: 8px; align-items: flex-start; margin-top: auto; padding-top: 40px; }
.price__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.price__chips li { padding: 6px 16px; border-radius: 50px; background: var(--white); font-size: 14px; color: var(--muted); }
.price--promo { align-items: center; text-align: center; }
.price__note { margin-top: auto; padding-top: 30px; font-size: 12px; color: var(--muted-light); }
.price--promo .btn { padding: 0 18px; }

/* ---------- small pages ---------- */
.page-small main { padding-top: 40px; }
.parents { max-width: 640px; }
.parents__buttons { display: grid; gap: 10px; margin-top: 32px; }
.policy { max-width: 820px; }
.policy__h { margin-top: 28px; font-size: 20px; font-weight: 500; }
.policy__p { margin: 10px 0 24px; font-size: 16px; color: var(--muted); }

/* ---------- footer ---------- */
.footer {
  padding: 40px var(--gutter) 24px; border-radius: var(--radius-big) var(--radius-big) 0 0;
  background: var(--dark-card); color: var(--white);
}
.footer__grid { display: grid; gap: 40px; max-width: var(--max); margin: 0 auto; }
.footer__phone { display: block; font-size: 40px; font-weight: 500; letter-spacing: -.03em; text-decoration: none; transition: color var(--hover); }
.footer__line { margin-top: 14px; font-size: 14px; color: var(--muted-light); }
.footer__line a, .footer__bottom a { text-decoration: none; transition: color var(--hover); }
.footer__line a:hover, .footer__bottom a:hover, .footer__phone:hover { color: var(--grey); }
.footer__bottom a { text-decoration: underline; }
.footer__title { font-size: 24px; font-weight: 500; line-height: 1.2; }
.footer__sub { margin: 14px 0 30px; font-size: 14px; font-weight: 600; color: var(--muted-light); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  max-width: var(--max); margin: 50px auto 0; font-size: 13px; color: var(--muted-light);
}
.footer__bottom b { color: #d4d5d7; }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(28,29,34,.6); }
.dialog {
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  border-radius: 20px; overflow: auto; background: var(--white);
}
.dialog__header-img { width: 100%; height: auto; }
.dialog__body { padding: 26px 22px 30px; }
.dialog__close {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.25);
}
.dialog__close::before, .dialog__close::after {
  content: ""; position: absolute; left: 11px; right: 11px; top: 19px; height: 2px; background: var(--white);
  transform: rotate(45deg);
}
.dialog__close::after { transform: rotate(-45deg); }
.dialog--video { width: min(960px, calc(100% - 24px)); background: #000; overflow: visible; }
.dialog--video .dialog__close { top: -48px; right: 0; }
.video-frame { aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.info-text { margin-top: 12px; font-size: 16px; }
.info-text a { color: var(--purple); }

/* lead form */
.lead { display: grid; gap: 18px; }
.lead__title { font-size: 22px; font-weight: 500; line-height: 1.2; }
.lead__subtitle { margin-top: -8px; font-size: 14px; color: var(--muted); }
.field { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); }
.field input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.field input::placeholder { color: #9a9ca3; }
.field__flag { flex: none; width: 20px; height: 14px; border-radius: 2px; background: linear-gradient(#0099b5 0 33%, #fff 33% 36%, #ce1126 36% 39%, #fff 39% 61%, #ce1126 61% 64%, #fff 64% 67%, #1eb53a 67%); }
.field[data-invalid] { border-bottom-color: #d92d20; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--purple); }
.check a { color: var(--purple); }
.lead__error { padding: 10px 14px; border-radius: 8px; background: #fdecea; color: #a61b12; font-size: 14px; }
.lead__error a { color: inherit; font-weight: 600; }
.lead__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__done { display: grid; gap: 14px; padding: 20px 0; text-align: center; }

/* mobile menu */
.menu {
  position: fixed; inset: 0 0 0 auto; width: min(400px, 100%); height: 100dvh; max-height: none; margin: 0 0 0 auto;
  padding: 24px; background: #282b37; color: var(--white); overflow: auto;
}
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu .dialog__close { position: relative; right: auto; top: auto; flex: none; }
.menu__nav { display: grid; gap: 4px; margin-top: 36px; }
.menu__nav a { padding: 10px 0; font-size: 22px; text-decoration: none; transition: color var(--hover); }
.menu__nav a:hover { color: var(--grey); }
.menu__note { margin-top: 30px; color: var(--muted-light); font-size: 15px; }
.menu__phone { display: block; margin-top: 20px; font-size: 26px; text-decoration: none; }
.menu__login { display: inline-block; margin-top: 18px; color: var(--muted-light); }
.menu__langs { display: flex; gap: 8px; margin-top: 26px; }
.menu__langs a { padding: 8px 16px; border-radius: 3px; background: rgba(255,255,255,.08); text-decoration: none; }
.menu__langs a[aria-current] { background: var(--purple); }

/* ================= 640px+ ================= */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .h2 { font-size: 42px; }
  .hero__title { font-size: 44px; }
  .hero__cta { width: auto; min-width: 400px; justify-self: start; }
  .stats, .quality, .reviews, .audience, .prices { grid-template-columns: 1fr 1fr; }
  .results { grid-template-columns: 1fr 1fr; }
  .results__title, .results__first { grid-column: 1 / -1; }
  .quality__progress { grid-column: 1 / -1; padding-bottom: 22px; padding-right: 250px; }
  .reviews > div:first-child { grid-column: 1 / -1; }
  .audience__card--first { grid-column: 1 / -1; }
  .price--promo { grid-column: auto; }
  .quality__cta { width: auto; min-width: 400px; }
  .parents__buttons { grid-template-columns: 1fr 1fr; }
  .results__illustration { display: block; position: absolute; right: 24px; bottom: 0; width: 220px; height: auto; }
  .results__first { padding-right: 260px; }
}

/* ================= 960px+ ================= */
@media (min-width: 960px) {
  :root { --gutter: 48px; --header-h: 66px; }
  body { font-size: 17px; }
  main { gap: 120px; padding-bottom: 120px; }
  .h2 { font-size: 48px; }
  .header__logo img { width: 180px; }
  .header__phone { display: inline-flex; }
  .card { padding: 24px; }

  .hero {
    grid-template-columns: 1fr 434px; grid-template-rows: auto auto;
    column-gap: 40px; row-gap: 60px; padding: 36px var(--gutter) 40px;
  }
  .hero__main { grid-column: 1 / -1; }
  .hero__title { max-width: 1040px; font-size: 62px; }
  .hero__badge { position: relative; left: 500px; margin-top: -14px; font-size: 18px; }
  .hero__bullet { max-width: 500px; margin-top: -22px; font-size: 19px; }
  .hero__bottom { grid-template-columns: auto 1fr; align-items: center; gap: 22px; align-self: end; }
  .hero__graduates { width: 240px; }
  .hero__graduates-text { max-width: 440px; font-size: 14px; }
  .hero__video { grid-column: 2; grid-row: 2; margin-top: -170px; aspect-ratio: 434 / 293; }

  .stats { grid-template-columns: repeat(4, 1fr); align-items: end; }
  .stat { min-height: 230px; }
  .stat--photo { min-height: 340px; }
  .stat--1 { min-height: 300px; }
  .stat--2 { min-height: 250px; }
  .stat--3 { min-height: 310px; align-self: start; }
  .stat__value { font-size: 52px; }

  .program { grid-template-columns: minmax(0, 572fr) minmax(0, 660fr); column-gap: clamp(40px, 7vw, 112px); }
  .program__left .h2 { margin-top: 0; }
  .program__right { padding-top: 12px; gap: 36px; }
  .program__right .lead-text { font-size: 22px; }
  .program__cta { margin-top: 80px; min-width: min(432px, 100%); justify-self: start; }
  .chips li { font-size: 20px; }
  .dates { grid-template-columns: 1fr 1fr; margin-top: 80px; }
  .schedule { grid-column: 1 / -1; }
  .schedule__head { grid-template-columns: 1fr auto; align-items: start; }

  .quality { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(228px, auto); }
  .quality__plan { grid-column: 1; grid-row: 1; }
  .quality__teachers { grid-column: 2; grid-row: 1; }
  .quality__video-tall { grid-column: 3; grid-row: 1 / span 2; }
  .quality__video { grid-column: 1; grid-row: 2; }
  .quality__tech { grid-column: 2; grid-row: 2; }
  .quality__homework { grid-column: 1; grid-row: 3; }
  .quality__progress { grid-column: 2 / span 2; grid-row: 3; padding-right: 320px; }
  .quality__illustration { width: 290px; }
  .quality__cta { min-width: 432px; }

  .dark-block { grid-template-columns: 1fr 1fr; column-gap: 72px; padding: 42px var(--gutter) 44px; }
  .box__title { font-size: 46px; }
  .box__intro { font-size: 22px; }
  .box__right { padding-top: 6px; }
  .box__list li > span:last-child { font-size: 17px; }

  .results { grid-template-columns: repeat(3, 1fr); }
  .results__title { grid-column: 1; grid-row: 1; font-size: 42px; margin: 0; }
  .results__first { grid-column: 2 / span 2; grid-row: 1; }
  .results__text { font-size: 20px; }

  .reviews { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .reviews > div:first-child { grid-column: 1; }

  .audience { grid-template-columns: repeat(3, 1fr); }
  .audience__card--first { grid-column: auto; }
  .audience__card--first .audience__label { max-width: 150px; }
  .audience__illustration { right: 10px; width: 180px; }
  .price--promo .btn { padding: 0 32px; }

  .prices { column-gap: 25px; }
  .price { padding: 48px 30px 30px; min-height: 360px; }
  .price__value { font-size: 46px; }

  .footer { padding: 54px var(--gutter) 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; column-gap: 50px; }
  .footer__phone { font-size: 52px; }
  .footer__title { font-size: 30px; }
  .footer__bottom > *:nth-child(2) { margin-right: auto; margin-left: calc(50% - 160px); }
}

/* ================= 1360px+: full menu in the header ================= */
@media (min-width: 1360px) {
  .nav { display: flex; gap: 6px; }
  .burger { display: none; }
}
@media (min-width: 1440px) {
  .header__login { display: inline-flex; }
}

/* ================= motion (copied from the Tilda site) ================= */
/* Scroll-in: hidden only when the script runs (html.motion), so the page is
   never blank without JavaScript. site.js adds .is-in when it scrolls into view. */
.motion [data-reveal] {
  opacity: 0;
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
  backface-visibility: hidden;
}
.motion [data-reveal="up"] { transform: translateY(100px); }
.motion [data-reveal="right"] { transform: translateX(-100px); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Play buttons: grow + tilt with a bounce, back, repeat while on screen. */
@keyframes play-wiggle {
  0% { transform: none; animation-timing-function: var(--bounce); }
  50% { transform: scale(1.2) rotate(-27deg); animation-timing-function: var(--bounce); }
  100% { transform: none; }
}
.play { animation: play-wiggle 2s infinite paused; }
.play.is-live { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  .motion [data-reveal] { opacity: 1; transform: none; transition: none; }
  .play { animation: none; }
}
