/* ===== Astra Education — фирменные цвета взяты из логотипа ===== */
:root {
  --red: #C8102E;
  --red-dark: #9B0C23;
  --red-soft: #FCEEF0;
  --ink: #1E1517;
  --muted: #6B5F62;
  --line: #EFE4E6;
  --bg: #FFFFFF;
  --bg-soft: #FBF7F7;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(155, 12, 35, .08);
  --shadow-lg: 0 24px 60px rgba(155, 12, 35, .16);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.accent { color: var(--red); }
.eyebrow {
  margin-bottom: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow--light { color: #FFB3BE; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px; border: 2px solid transparent;
  font: 700 15px/1.2 var(--sans); cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(200, 16, 46, .28); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #25D366; color: #128C4A; }
.btn--ghost svg { color: #25D366; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ===== Шапка ===== */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 76px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__emblem { width: 52px; height: auto; mix-blend-mode: multiply; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 700 24px/1 var(--serif); color: var(--red); letter-spacing: .04em; }
.brand__sub { font-size: 10px; font-weight: 700; letter-spacing: .38em; color: var(--red-dark); margin-top: 4px; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: #FFB3BE; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 600; color: var(--muted); position: relative; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--red); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .2s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; margin-left: auto; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Первый экран ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, #FDE3E7 0%, transparent 60%),
    radial-gradient(600px 400px at 0% 100%, #FFF4F5 0%, transparent 70%),
    var(--bg);
  padding: 72px 0 96px;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__title { font: 700 clamp(40px, 6vw, 68px)/1.08 var(--serif); letter-spacing: -.01em; margin-bottom: 20px; }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__features { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.hero__features li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ico { width: 38px; height: 38px; border-radius: 10px; background: var(--red-soft); display: grid; place-items: center; flex-shrink: 0; }
.ico svg { width: 20px; height: 20px; fill: var(--red); }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.hero__card {
  position: relative; z-index: 2;
  width: min(400px, 100%); padding: 40px 32px 32px;
  background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg);
  text-align: center;
  animation: float 6s ease-in-out infinite;
}
.hero__emblem { width: 100%; max-width: 320px; margin: 0 auto 20px; mix-blend-mode: multiply; }
.hero__slogan { font: 600 22px/1.2 var(--serif); color: var(--red); letter-spacing: .06em; }
.hero__tagline { margin-top: 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.orbit { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(200, 16, 46, .22); }
.orbit--1 { width: 480px; height: 480px; animation: spin 60s linear infinite; }
.orbit--2 { width: 360px; height: 360px; border-style: solid; border-color: rgba(200, 16, 46, .1); }
.chip {
  position: absolute; z-index: 3;
  padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.chip--a { top: 10%; left: -2%; animation: float 5s ease-in-out infinite .5s; }
.chip--b { top: 48%; right: -4%; animation: float 7s ease-in-out infinite 1s; }
.chip--c { bottom: -2%; left: 4%; animation: float 6s ease-in-out infinite 1.5s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Секции ===== */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; margin-bottom: 48px; }
.section__title { font: 700 clamp(30px, 4vw, 42px)/1.15 var(--serif); }
.section__title--left { text-align: left; margin-bottom: 24px; }

/* ===== Страны ===== */
.countries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.country {
  --c1: var(--red); --c2: var(--red-dark);
  position: relative; display: flex; flex-direction: column; gap: 16px;
  min-height: 210px; padding: 24px; border-radius: var(--radius); overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, var(--c1) 0%, var(--c2) 130%);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.country::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.country:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.country__code { font: 700 44px/1 var(--serif); opacity: .9; }
.country__body { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.country__name { font-size: 20px; font-weight: 800; }
.country__desc { font-size: 13.5px; line-height: 1.45; opacity: .88; }
.country__arrow {
  position: absolute; right: 18px; bottom: 18px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); font-weight: 800;
  transition: transform .2s;
}
.country:hover .country__arrow { transform: translateX(4px); }
.country .country__body { padding-right: 40px; }
.more-countries { margin-top: 32px; text-align: center; }
.more-countries__label { font-weight: 700; margin-bottom: 14px; }
.more-countries__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 0 auto; }
.pill {
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink); transition: border-color .2s, color .2s;
}
.pill:hover, .pill:focus-visible { border-color: var(--red); color: var(--red); }

.programs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; }
.programs__label { font-weight: 700; color: var(--muted); margin-right: 4px; }
.tag { padding: 8px 16px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font-size: 14px; font-weight: 700; }

/* ===== Карточки ===== */
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft); display: grid; place-items: center; margin-bottom: 20px; }
.card__ico svg { width: 26px; height: 26px; fill: var(--red); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }

/* ===== Этапы ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; left: calc(50% + 44px); right: calc(-50% + 44px);
  border-top: 2px dashed #E7C9CE;
}
.step__num {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--red); color: #fff;
  font: 700 26px/1 var(--serif); box-shadow: 0 0 0 8px var(--red-soft);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* ===== Почему мы ===== */
.feature { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.feature__ico svg { width: 24px; height: 24px; fill: #fff; }
.feature h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ===== О нас ===== */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about__visual { border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg); padding: 24px; }
.about__visual img { border-radius: 16px; }
.about__content p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.about__visual img { width: 100%; height: auto; }

/* ===== Основатели ===== */
.founders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; }
.founder {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 26px 26px; border-radius: 24px; background: var(--bg-soft); border: 1px solid var(--line);
}
.founder__photo {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--red-soft); margin-bottom: 20px;
}
.founder__name { font: 700 21px/1.25 var(--serif); }
.founder__role { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--red); line-height: 1.4; }
.founder__facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; text-align: left; width: 100%; }
.founder__facts li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.founder__facts li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}
.founder__more { margin-top: auto; padding-top: 18px; width: 100%; text-align: left; }
.founder__more summary {
  list-style: none; cursor: pointer; text-align: center; font-weight: 700; font-size: 14px; color: var(--red);
  padding: 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; transition: border-color .2s;
}
.founder__more summary::-webkit-details-marker { display: none; }
.founder__more summary:hover { border-color: var(--red); }
.founder__more[open] summary { margin-bottom: 14px; }
.founder__more p { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }

.about__motto { font: 600 20px/1.4 var(--serif) !important; color: var(--red) !important; padding-left: 16px; border-left: 3px solid var(--red); margin-top: 24px; }

/* ===== FAQ ===== */
.faq-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; transition: box-shadow .2s; }
.faq__item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 700; font-size: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; font-size: 20px; font-weight: 600; transition: transform .2s, background .2s;
}
.faq__item[open] summary::after { content: "−"; background: var(--red); color: #fff; }
.faq__item p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

.ask {
  position: sticky; top: 100px; overflow: hidden;
  padding: 36px 32px; border-radius: 24px;
  background: linear-gradient(150deg, var(--red) 0%, var(--red-dark) 100%); color: #fff;
}
.ask__emblem {
  position: absolute; right: -40px; bottom: -30px; width: 220px; opacity: .14;
  filter: brightness(0) invert(1);
}
.ask h3 { font: 700 28px/1.2 var(--serif); margin-bottom: 12px; position: relative; }
.ask p { opacity: .9; margin-bottom: 24px; position: relative; }
.ask .btn { background: #fff; color: var(--red); box-shadow: none; position: relative; }
.ask .btn:hover { background: #FFF0F2; }

/* ===== Заявка ===== */
.apply {
  position: relative; padding: 96px 0; color: #fff;
  background:
    radial-gradient(700px 400px at 10% 0%, rgba(200, 16, 46, .45), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(200, 16, 46, .3), transparent 60%),
    #24090F;
}
.apply__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.apply__title { font: 700 clamp(30px, 4vw, 44px)/1.15 var(--serif); margin-bottom: 16px; }
.apply__lead { opacity: .8; font-size: 17px; margin-bottom: 32px; }
.contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contacts a, .contacts > li > span { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; opacity: .92; transition: opacity .2s; }
.contacts a:hover { opacity: 1; color: #FFB3BE; }
.contacts svg { width: 20px; height: 20px; fill: #FFB3BE; flex-shrink: 0; }

.form { background: #fff; color: var(--ink); border-radius: 24px; padding: 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field span { font-size: 13px; font-weight: 700; color: var(--muted); }
.field textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: 500 15px var(--sans); color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5F62' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.field input.is-invalid { border-color: var(--red); background: #FFF7F8; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); margin: 4px 0 20px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); margin-top: 1px; flex-shrink: 0; }
.check.is-invalid span { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__hint { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.form__note { margin-top: 14px; font-size: 14px; text-align: center; min-height: 1.4em; }
.form__note.is-ok { color: #128C4A; font-weight: 700; }
.form__wa { display: flex; margin-top: 12px; background: #25D366; box-shadow: none; }
.form__wa:hover { background: #128C4A; }
.form__note.is-error { color: var(--red); font-weight: 600; }

/* ===== Подвал ===== */
.footer { background: #17060A; color: rgba(255, 255, 255, .6); padding: 28px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ===== WhatsApp ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Появление при прокрутке ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 1080px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .founders { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .header__cta { display: none; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; padding: 8px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 16px; }

  .hero { padding: 40px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__visual { min-height: 360px; }
  .orbit--1 { width: 340px; height: 340px; }
  .orbit--2 { width: 260px; height: 260px; }
  .hero__card { width: min(300px, 100%); padding: 28px 22px 22px; }
  .chip { font-size: 12.5px; padding: 8px 12px; }
  .chip--a { left: 0; } .chip--b { right: 0; }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step::after { display: none; }
  .about, .faq-wrap, .apply__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__visual { max-width: 420px; }
  .ask { position: relative; top: 0; }
  .section { padding: 72px 0; }
  .apply { padding: 72px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 40px; }
  .hero__lead { font-size: 17px; }
  .hero__actions .btn { width: 100%; }
  .hero__features { flex-direction: column; gap: 12px; }
  .hero__visual { min-height: 320px; }
  .countries { grid-template-columns: 1fr 1fr; gap: 12px; }
  .country { min-height: 150px; padding: 16px; }
  .country__code { font-size: 28px; }
  .country__name { font-size: 16px; }
  .country__desc { display: none; }
  .country__arrow { width: 30px; height: 30px; right: 12px; top: 12px; bottom: auto; }
  .country .country__body { padding-right: 0; }
  .grid--4, .grid--3, .steps { grid-template-columns: 1fr; }
  .founders { margin-top: 48px; }
  .founder { padding: 26px 20px 20px; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { justify-content: center; text-align: center; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
