/* ── Education / ЭП Школа ──────────────────────────────────────── */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --edu-grad:   radial-gradient(48.84% 100% at 50% 0%, #FFA071 0%, #FF742F 100%);
  --edu-dark:   #2B1002;
  --edu-gray:   #AA9F9A;
  --edu-field:  #F5F5F5;
  --edu-font:   'SF Pro Rounded', 'SF Pro Display', ui-rounded, system-ui, sans-serif;
  --edu-r-card: 20px;
  --edu-r-btn:  999px;
}

body.edu-body {
  background: #fff;
  color: var(--edu-dark);
  font-family: var(--edu-font);
}

/* ── Shared helpers ─────────────────────────────────────────────── */
.edu-orange {
  background: var(--edu-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Badge ──────────────────────────────────────────────────────── */
.edu-badge {
  display: inline-flex;
  padding: 8px 12px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 1853.574px;
  border: 1.855px solid rgba(255, 166, 121, 0.29);
  background: #fff;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
  margin-bottom: 28px;
  white-space: nowrap;
}
.edu-badge span {
  background: radial-gradient(ellipse at 50% 0%,
    #fff    0%,
    #ffdccb 25%,
    #ffba97 50%,
    #ff9763 75%,
    #ff742f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ── Button ─────────────────────────────────────────────────────── */
.edu-btn {
  display: inline-flex;
  height: 43px;
  padding: 0 16px;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #FFA679;
  background: radial-gradient(48.84% 100% at 50% 0%, #FFA071 0%, #FF742F 100%);
  box-shadow: 0 4px 12px 0 rgba(47, 16, 1, 0.08);
  color: #fff;
  font-family: var(--edu-font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.edu-btn:hover  { opacity: .9; transform: translateY(-1px); }
.edu-btn:active { opacity: 1;  transform: translateY(0); }

/* ── Header ─────────────────────────────────────────────────────── */
.edu-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 89px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
  padding: 0 28px;
  /* grid: logo | nav | cta — so nav stays perfectly centred */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.edu-header__logo {
  display: flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}
.edu-header__logo img {
  height: 36px;
  width: auto;
}

.edu-header__nav {
  display: flex;
  gap: 36px;
  font-size: 20px;
  font-weight: 500;
}
.edu-header__nav a {
  color: rgba(0, 0, 0, 0.24);
  text-decoration: none;
  transition: color .2s;
}
.edu-header__nav a.active,
.edu-header__nav a:hover {
  background: var(--edu-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.edu-header__cta-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.edu-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.edu-hero__bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max(100%, 100vw);
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  opacity: .7;
}

.edu-hero__content {
  position: relative;
  max-width: 566px;
  margin: 0 auto;
  padding: 96px 24px 80px;
  text-align: center;
}

.edu-hero__title {
  font-family: var(--edu-font);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--edu-dark);
  margin-bottom: 20px;
}

.edu-hero__sub {
  font-family: var(--edu-font);
  font-size: 24px;
  font-weight: 500;
  color: rgba(43, 16, 2, 0.4);
  line-height: 1.55;
  margin-bottom: 32px;
}

/* ── Dashboard ───────────────────────────────────────────────────── */
.edu-dashboard {
  background: #fff;
  padding: 0 24px 100px;
}
.edu-dashboard__inner {
  max-width: 1084px;
  margin: 0 auto;
}
.edu-dashboard__img {
  width: 100%;
  display: block;
  border-radius: 0;
  filter: drop-shadow(0 4px 44px rgba(0, 0, 0, 0.04));
}

/* ── Features ────────────────────────────────────────────────────── */
.edu-features {
  background: #fff;
  padding: 100px 24px;
  text-align: center;
}

.edu-features__title {
  font-family: var(--edu-font);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--edu-dark);
  margin-bottom: 20px;
}

.edu-features__sub {
  font-size: 24px;
  font-weight: 500;
  color: rgba(43, 16, 2, 0.4);
  max-width: 520px;
  margin: 0 auto 56px;
  line-height: 1.55;
}

.edu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1084px;
  margin: 0 auto 52px;
  text-align: left;
}

.edu-card {
  background: #fff;
  border-radius: 36px;
  border: 2px solid #F5F5F5;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.04);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.edu-card__icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
}
.edu-card__icon--lessons {
  background: radial-gradient(ellipse at 50% 0%,
    rgba(189, 214, 255, 1) 0%,
    rgba(125, 174, 255, 1) 50%,
    rgba(94, 155, 255, 1) 75%,
    rgba(62, 135, 255, 1) 100%);
}
.edu-card__icon--challenge {
  background: radial-gradient(ellipse at 50% 0%,
    rgba(255, 227, 180, 1) 0%,
    rgba(255, 211, 135, 1) 25%,
    rgba(255, 194, 90, 1) 50%,
    rgba(255, 178, 45, 1) 75%,
    rgba(255, 161, 0, 1) 100%);
}
.edu-card__icon--games {
  background: radial-gradient(ellipse at 50% 0%,
    rgba(255, 181, 181, 1) 0%,
    rgba(255, 135, 135, 1) 50%,
    rgba(255, 89, 89, 1) 100%);
}

.edu-card__title {
  font-family: var(--edu-font);
  font-size: 20px;
  font-weight: 600;
  color: var(--edu-dark);
}

.edu-card__text {
  font-size: 16px;
  font-weight: 400;
  color: var(--edu-gray);
  line-height: 1.6;
}

/* ── Form ────────────────────────────────────────────────────────── */
.edu-form-section {
  padding: 100px 24px 120px;
  text-align: center;
}

.edu-form-section__title {
  font-family: var(--edu-font);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--edu-dark);
  margin-bottom: 16px;
}

.edu-form-section__sub {
  font-size: 24px;
  font-weight: 500;
  color: rgba(43, 16, 2, 0.4);
  line-height: 1.55;
  margin-bottom: 52px;
}

.edu-form {
  max-width: 566px;
  margin: 0 auto;
  text-align: left;
}

.edu-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

.edu-field { display: flex; flex-direction: column; gap: 8px; }
.edu-field--full { grid-column: 1 / -1; }

.edu-field label {
  font-size: 20px;
  font-weight: 500;
  color: var(--edu-gray);
  letter-spacing: -0.1px;
}

.edu-field input,
.edu-field textarea {
  background: var(--edu-field);
  border: 1px solid #e6e6e6;
  border-radius: 36px;
  padding: 16px 15px;
  font-family: var(--edu-font);
  font-size: 18px;
  font-weight: 400;
  color: rgba(43, 16, 2, 0.7);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 3px #fff;
  transition: border-color .15s, background .15s, color .15s;
}
.edu-field input::placeholder,
.edu-field textarea::placeholder {
  color: var(--edu-gray);
  opacity: 0.7;
}
.edu-field input:focus,
.edu-field textarea:focus {
  border-color: #FFA071;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
  color: var(--edu-dark);
}
.edu-field textarea {
  resize: none;
  height: 124px;
  border-radius: 28px;
}

.edu-form__footer {
  margin-top: 32px;
  text-align: center;
}

.edu-form__status {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  min-height: 22px;
}
.edu-form__status--ok  { color: #22a55b; }
.edu-form__status--err { color: #e53935; }

/* ── Footer ──────────────────────────────────────────────────────── */
.edu-footer {
  background: #F7F5F4;
  padding: 44px 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.edu-footer__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 88px;
}

.edu-footer__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.edu-footer__brand img { height: 32px; width: auto; }

.edu-footer__nav { text-align: right; }
.edu-footer__nav-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--edu-gray);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.edu-footer__nav a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--edu-dark);
  margin-bottom: 4px;
  text-decoration: none;
  transition: opacity .15s;
}
.edu-footer__nav a:hover { opacity: .55; }

/* ── Scroll reveal ───────────────────────────────────────────────── */
.edu-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.edu-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .edu-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Page-load animations ────────────────────────────────────────── */
@keyframes edu-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes edu-rise-in {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}

.edu-hero__content {
  animation: edu-fade-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.edu-dashboard__img {
  animation: edu-rise-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .edu-cards           { grid-template-columns: 1fr; max-width: 480px; }
  .edu-hero__title         { font-size: 48px; white-space: normal; }
  .edu-features__title,
  .edu-form-section__title { font-size: 40px; }
}

@media (max-width: 640px) {
  .edu-header {
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    height: 64px;
  }
  .edu-header__nav { display: none; }
  .edu-header__logo img { height: 24px; }
  .edu-header .edu-btn { height: 36px; font-size: 14px; padding: 0 12px; }
  .edu-hero__content   { padding: 72px 20px 60px; }
  .edu-hero__title     { font-size: 36px; white-space: normal; }
  .edu-hero__sub,
  .edu-features__sub,
  .edu-form-section__sub { font-size: 16px; }
  .edu-dashboard       { padding: 0 16px 72px; }
  .edu-features,
  .edu-form-section    { padding: 72px 20px; }
  .edu-features__title,
  .edu-form-section__title { font-size: 30px; }
  .edu-form__grid      { grid-template-columns: 1fr; }
  .edu-footer          { flex-direction: column; gap: 32px; padding: 40px 24px; }
  .edu-footer__left    { gap: 32px; }
  .edu-footer__nav     { text-align: left; }
}
