/* Speak Era Academy — сайт.
   Цвета продолжают Academy из программы: фиолетово-синий градиент, тёмно-синий,
   салатовый для главных кнопок. Шрифты: Unbounded (заголовки), Manrope (текст). */
:root {
  --ink: #14163a;
  --ink-2: #474b72;
  --navy: #0f1340;
  --navy-2: #1d1670;
  --violet: #7c3aed;
  --blue: #3b82f6;
  --lime: #b6f23a;
  --lime-2: #d3f97a;
  --bg: #f6f4ff;
  --card: #ffffff;
  --line: #e4e0fb;
  --grad: linear-gradient(100deg, #8b5cf6 0%, #3b82f6 100%);
  --r: 24px;
  --shadow: 0 24px 50px -30px rgb(40 30 120 / 0.45);
  --head: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.section { padding: clamp(72px, 10vw, 128px) 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lime { background: var(--lime); color: var(--navy); box-shadow: 0 14px 30px -14px rgb(182 242 58 / .7); }
.btn--lime:hover { background: var(--lime-2); }
.btn--ghost { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn--ghost:hover { background: rgb(255 255 255 / .08); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- шапка ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.top.is-solid { background: rgb(15 19 64 / .86); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -20px rgb(0 0 0 / .6); }
.top__row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand__name { font: 700 19px/1 var(--head); letter-spacing: -0.02em; white-space: nowrap; }
.brand__name b { background: linear-gradient(100deg, #b49bff, #7fb0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__name small { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-left: 2px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: rgb(255 255 255 / .82); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
.nav a:hover { color: #fff; }
.top__end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; background: rgb(255 255 255 / .08); border-radius: 999px; padding: 4px; }
.lang button {
  min-width: 44px; min-height: 36px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: rgb(255 255 255 / .75); font: 700 13px/1 var(--body);
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.burger { display: none; }

/* ---------- первый экран ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 140px 0 0;
  background:
    radial-gradient(55% 80% at 85% 35%, rgb(99 102 241 / .5), transparent 62%),
    radial-gradient(40% 50% at 5% 90%, rgb(124 58 237 / .35), transparent 70%),
    linear-gradient(115deg, #151a55 0%, var(--navy-2) 46%, #0d1238 100%);
}
.hero__glow {
  position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, rgb(182 242 58 / .12), transparent 60%); pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.eyebrow { font: 700 13px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 18px; }
.eyebrow--dark { color: var(--lime); }
.hero__title { font-size: clamp(38px, 5.6vw, 78px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
.hero__title .line { display: inline-block; white-space: nowrap; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(95deg, var(--lime) 0%, #7fe3c4 45%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 24px; max-width: 560px; font-size: clamp(17px, 1.6vw, 19px); color: rgb(255 255 255 / .82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; margin: 40px 0 0; padding: 0; }
.hero__facts li { display: flex; align-items: baseline; gap: 8px; color: rgb(255 255 255 / .72); font-size: 15px; }
.hero__facts b { font: 700 28px/1 var(--head); color: #fff; }

.hero__art { position: relative; height: clamp(420px, 46vw, 600px); }
.hero__ring {
  position: absolute; left: 50%; top: 50%; width: 86%; aspect-ratio: 1; translate: -50% -46%;
  border-radius: 50%;
  background: linear-gradient(140deg, #7c3aed 0%, #2563eb 100%);
  box-shadow: 0 0 90px -10px rgb(99 102 241 / .7), inset 0 0 0 14px rgb(255 255 255 / .06);
}
.art { position: absolute; bottom: 0; height: auto; filter: drop-shadow(0 24px 30px rgb(0 0 0 / .35)); }
.art--mentor { left: 50%; translate: -50% 0; height: 100%; width: auto; z-index: 2; }
.art--girl { left: 4%; height: 78%; width: auto; z-index: 1; }
.art--pixi { right: 0; height: 46%; width: auto; z-index: 3; }
.chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px;
  background: rgb(255 255 255 / .94); color: var(--navy);
  font: 700 14px/1.2 var(--body); box-shadow: 0 16px 30px -16px rgb(0 0 0 / .5);
}
.chip svg { width: 18px; height: 18px; fill: none; stroke: var(--violet); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chip small { display: block; font-size: 11px; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: .08em; }
.chip--c { flex-direction: column; align-items: flex-start; gap: 2px; font: 700 18px/1.1 var(--head); }
.chip--a { left: 0; top: 14%; }
.chip--b { right: 2%; top: 30%; background: var(--lime); }
.chip--b svg { stroke: var(--navy); }
.chip--c { left: 8%; bottom: 14%; }

.ticker {
  position: relative; margin-top: 56px; padding: 18px 0;
  border-top: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .03); overflow: hidden;
}
.ticker__row { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font: 600 clamp(18px, 2.2vw, 26px)/1 var(--head); color: rgb(255 255 255 / .55); white-space: nowrap; }
.ticker span:nth-child(3n+1) { color: var(--lime); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- новая эра ---------- */
.h2 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 700; max-width: 900px; }
.h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; max-width: 680px; font-size: 19px; color: var(--ink-2); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow); }
.pillar__ico {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--grad); margin-bottom: 22px;
}
.pillar__ico svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 20px; margin-bottom: 10px; }
.pillar p { color: var(--ink-2); }

/* ---------- направления ---------- */
.programs { background: #fff; }
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin-top: 56px; }
.card {
  --tone: #ece7ff; --accent: var(--violet);
  grid-column: span 2; display: flex; flex-direction: column;
  border-radius: 28px; overflow: hidden; background: var(--bg); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--kids, .card--students { grid-column: span 3; }
.card--kids { --tone: #ffe9c2; --accent: #c2570c; }
.card--students { --tone: #e9e2ff; --accent: #6d28d9; }
.card--career { --tone: #dbe8ff; --accent: #1d4ed8; }
.card--ielts { --tone: #ffe0e3; --accent: #be123c; }
.card--business { --tone: #d6f5e8; --accent: #047857; }
.card__art {
  position: relative; height: 260px; display: flex; justify-content: center; align-items: flex-end;
  background: radial-gradient(70% 90% at 50% 100%, #fff 0%, transparent 70%), var(--tone);
}
.card--kids .card__art, .card--students .card__art { height: 300px; }
.card__art img { height: 92%; width: auto; filter: drop-shadow(0 18px 20px rgb(30 20 80 / .22)); }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 30px; flex: 1; }
.card__brand { font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.card__title { font-size: clamp(30px, 3vw, 40px); color: var(--accent); }
.tag {
  align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  background: var(--tone); color: var(--accent); font-weight: 800; font-size: 13px;
}
.card__body > p { color: var(--ink-2); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 600; font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.card__link {
  margin-top: auto; padding-top: 14px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--accent); font-weight: 800; text-decoration: none;
}
.card__link i { font-style: normal; transition: transform .2s ease; }
.card__link:hover i { transform: translateX(4px); }

/* ---------- как это работает ---------- */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--card); border-radius: var(--r); padding: 30px 26px; border: 1px solid var(--line); }
.step__n {
  display: inline-block; font: 700 40px/1 var(--head);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 16px; }

/* ---------- вопросы ---------- */
.faq { background: #fff; }
.faq__list { margin-top: 40px; display: grid; gap: 12px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff; font: 700 20px/1 var(--body); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* ---------- финальный призыв ---------- */
.final { padding: 40px 0 clamp(72px, 10vw, 120px); background: #fff; }
.final__box {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  border-radius: 36px; padding: clamp(48px, 7vw, 84px) 24px;
  background:
    radial-gradient(60% 90% at 50% 0%, rgb(124 58 237 / .55), transparent 70%),
    linear-gradient(120deg, #151a55 0%, var(--navy-2) 50%, #0d1238 100%);
}
.final__heroes { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin-bottom: 26px; }
.final__heroes img { height: 120px; width: auto; filter: drop-shadow(0 14px 16px rgb(0 0 0 / .35)); }
.final__heroes img:nth-child(2) { height: 140px; }
.final__title { font-size: clamp(30px, 4.6vw, 56px); }
.final__lead { margin: 16px auto 32px; max-width: 520px; color: rgb(255 255 255 / .8); font-size: 18px; }

/* ---------- подвал ---------- */
.foot { background: var(--navy); color: rgb(255 255 255 / .72); padding: 48px 0; }
.foot__row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 32px; align-items: center; }
.foot__tag { font: 600 15px/1.3 var(--head); color: var(--lime); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.foot__nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 0; }
.foot__nav a:hover { color: #fff; }
.foot__copy { grid-column: 1 / -1; font-size: 14px; color: rgb(255 255 255 / .5); border-top: 1px solid rgb(255 255 255 / .1); padding-top: 22px; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { height: 440px; max-width: 560px; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card--kids, .card--students { grid-column: span 1; }
  .card--business { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; padding: 8px 20px 24px;
    background: rgb(15 19 64 / .97); backdrop-filter: blur(14px);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .nav a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / .08); }
  .menu-open .nav { transform: none; visibility: visible; }
  .menu-open .top { background: rgb(15 19 64 / .97); }
  .burger {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 12px;
    border: 0; background: rgb(255 255 255 / .1); cursor: pointer;
  }
  .burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease; }
  .menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .top__cta { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .foot__row { grid-template-columns: 1fr; }
  .foot__nav { justify-content: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top__row { gap: 10px; min-height: 68px; }
  .brand__name small { display: none; }
  .brand img { width: 30px; height: 30px; }
  .lang button { min-width: 38px; }
  .nav { inset: 68px 0 auto; }
  .hero { padding-top: 108px; }
  .hero__art { height: 360px; }
  .chip { font-size: 12px; padding: 8px 10px; }
  .chip--c { font-size: 15px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .card--business { grid-column: auto; }
  .card__art, .card--kids .card__art, .card--students .card__art { height: 240px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
  .hero__facts li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.3; }
  .hero__facts b { font-size: 24px; }
  .final__heroes img { height: 90px; }
  .final__heroes img:nth-child(2) { height: 104px; }
}

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__row { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
