:root {
  --bg: #fcfbff;
  --text: #37466f;
  --muted: #7482a3;
  --line: #e7e9f6;
  --blue: #7c89d8;
  --blue-dark: #5966c2;
  --yellow: #eb7f95;
  --yellow-dark: #dd6f87;
  --max: 1240px;
  --card: #ffffff;
  --shadow: 0 14px 32px rgba(97, 106, 166, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Nunito", "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 213, 186, .42), rgba(255, 213, 186, 0) 36%),
    radial-gradient(circle at 92% 10%, rgba(208, 218, 255, .45), rgba(208, 218, 255, 0) 40%),
    var(--bg);
  line-height: 1.6;
}

.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #ece1f3;
  background: linear-gradient(90deg, rgba(255, 248, 250, .98), rgba(246, 249, 255, .98));
  backdrop-filter: blur(8px); box-shadow: 0 4px 12px rgba(140,122,165,.12);
}

.nav {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: #434e80;
  font-weight: 800;
  font-size: 1.08rem;
  flex: 0 0 auto;
}

.brand img, .f-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #dce6fb;
  background: #fff;
  padding: 3px;
}

.links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  justify-content: center;
  flex: 1;
  flex-wrap: nowrap;
  row-gap: .34rem;
}

.links a {
  text-decoration: none;
  color: #505d8a;
  font-size: .99rem;
  font-weight: 700;
  white-space: nowrap;
  background: transparent;
  padding: .1rem 0;
  border-radius: 0;
}
.links a:hover { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(89, 102, 194, .28);
  outline-offset: 2px;
}

.btn {
  border: 0;
  border-radius: 6px;
  padding: .78rem 1.24rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn-primary {
  background: var(--yellow);
  color: #fff;
  border: 1px solid #d9647d;
  box-shadow: 0 10px 22px rgba(217, 100, 125, .2);
}
.btn-primary:hover { background: var(--yellow-dark); }
.btn:active { transform: translateY(1px); }

.btn-secondary {
  background: #fff;
  border: 1px solid #dbe6fb;
  color: #5b66ba;
}

.nav-cta {
  border-radius: 4px;
  padding: .72rem 1.08rem;
  min-width: 120px;
}

.hero {
  position: relative;
  min-height: auto;
  display: grid;
  place-items: center;
  padding: 1.4rem 0 1.1rem;
  border-bottom: 1px solid #ece1f3;
}

.trust-strip {
  padding: .62rem 0;
  border-bottom: 1px solid #e6eefc;
  background: #fff;
}
.trust-strip .container {
  display: grid;
  justify-items: center;
}
.trust-title {
  margin: 0;
  color: #27458d;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  letter-spacing: .01em;
}

.hero::before { content: none; }

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 2rem));
  text-align: center;
  color: var(--text);
  border: 1px solid #efcfb4;
  border-radius: 20px;
  background: linear-gradient(135deg,#ffe8dc 0%,#ffd9c9 55%,#ffe7c6 100%);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 2.8vw, 2rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.05rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  font-weight: 800;
  text-wrap: balance;
  color: #243963;
}

.hero p {
  margin: .6rem auto 0;
  max-width: 34ch;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  color: #2f3b5f;
  font-weight: 500;
  text-wrap: balance;
}

.hero-cta {
  margin-top: .85rem;
  display: flex;
  gap: .7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.meta {
  margin-top: .7rem;
  display: flex;
  gap: .65rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .85rem;
  font-weight: 600;
  color: #43557f;
}
.meta span {
  background: #f7f6ff;
  border: 1px solid #dfe6fb;
  padding: .22rem .56rem;
  border-radius: 999px;
}

.stats {
  padding: .7rem 0 .8rem;
  background: #fff;
}

.stats-grid {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: .65rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
}

.stat {
  text-align: center;
  border-right: 1px solid #ecf1fb;
  padding: .2rem;
}
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--blue-dark); font-size: 1.45rem; line-height: 1; }
.stat span { color: var(--muted); font-size: .84rem; font-weight: 600; }

.section {
  padding: 2.5rem 0;
  border-top: 1px solid #f2f5fd;
  content-visibility: auto;
  contain-intrinsic-size: 1px 620px;
  background: #fff;
}

.section h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.62rem, 3.5vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.sub {
  margin: .42rem auto 0;
  max-width: 70ch;
  text-align: center;
  color: var(--muted);
  font-size: .98rem;
}

.micro-proof {
  margin: .45rem auto 0;
  max-width: 44ch;
  text-align: center;
  color: #5b6791;
  font-size: .86rem;
  font-weight: 600;
}

.cards3 {
  margin-top: .75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .82rem;
}

.card {
  background: var(--card);
  border: 1px solid #e1e9fb;
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 10px 24px rgba(29,53,116,.08);
}

.card h3 { margin: 0; color: #24489d; font-size: 1rem; }
.card p { margin: .38rem 0 0; color: var(--muted); font-size: .88rem; }

.lead-form-grid {
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin-top: 0;
}
.field label {
  display: block;
  margin: 0 0 .34rem;
  color: #21355f;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #ccd9f6;
  border-radius: 10px;
  background: #fff;
  color: #1d2c4c;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  padding: .72rem .78rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea {
  resize: vertical;
  min-height: 104px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #7ea3f4;
  box-shadow: 0 0 0 3px rgba(126, 163, 244, .2);
}

.form-status {
  margin-top: .65rem;
  text-align: center;
  font-size: .87rem;
  font-weight: 700;
  min-height: 1.2rem;
}
.form-status.error { color: #c43f54; }
.form-status.success { color: #2f8b63; }

.review-strip {
  margin-top: .75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .82rem;
}

.review {
  background: #f7f5ff;
  color: #35406b;
  border: 1px solid #e1dcf7;
  border-radius: 16px;
  padding: 1.05rem;
  min-height: 190px;
}

.review h4 { margin: 0; font-size: .92rem; letter-spacing: .01em; }
.review p { margin: .4rem 0 0; color: #5f6a92; font-size: .86rem; }
.review .name { margin-top: .62rem; color: #3e4a7a; font-size: .84rem; font-weight: 700; }

.review-foot {
  margin-top: .6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  color: #7280ab;
  font-size: .79rem;
  font-weight: 600;
}

.tutor-grid {
  margin-top: .75rem;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  align-items: start;
}

.list { display: grid; gap: .5rem; margin-top: .55rem; }
.item {
  background: #fff;
  border: 1px solid #e2eafc;
  border-radius: 14px;
  padding: .95rem;
}
.item strong { display: block; color: #24489d; font-size: .9rem; }
.item span { display: block; margin-top: .2rem; color: var(--muted); font-size: .84rem; }

.tutor-media {
  background: #fff;
  border: 1px solid #dfe8fc;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tutor-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #fff;
}

.teacher-intro {
  margin-top: .4rem;
}
.teacher-intro-grid {
  margin-top: .6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 380px));
  justify-content: center;
  gap: 1rem;
}
.teacher-video-card {
  background: #fff;
  border: 1px solid #dfe8fc;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 7px 16px rgba(29,53,116,.07);
  padding: .75rem;
}
.teacher-video-wrap {
  aspect-ratio: 9 / 16;
  width: min(100%, 230px);
  margin: 0 auto;
  border-radius: 24px;
  padding: 10px;
  background: linear-gradient(180deg, #edf3ff, #dfe8ff);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.teacher-video-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  border-radius: 16px;
}
.teacher-video-card .cap {
  padding: .72rem .85rem;
  border-top: 1px solid #ecf1fb;
}
.teacher-video-card .cap strong {
  display: block;
  color: #24489d;
  font-size: .95rem;
}
.teacher-video-card .cap span {
  display: block;
  margin-top: .18rem;
  color: var(--muted);
  font-size: .82rem;
}

.faq {
  margin-top: .75rem;
  display: grid;
  gap: .58rem;
}
details {
  background: #fff;
  border: 1px solid #e2eafc;
  border-radius: 13px;
  padding: .78rem .9rem;
}
summary { cursor: pointer; font-weight: 700; color: #2b436f; font-size: .92rem; }
details p { margin: .45rem 0 0; color: var(--muted); font-size: .87rem; }

.cta-row { margin-top: .75rem; display: flex; justify-content: center; }

footer {
  margin-top: .6rem;
  border-top: 1px solid var(--line);
  padding: .9rem 0 1.5rem;
  color: #66779b;
  font-size: .84rem;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 1rem;
}

.f h6 { margin: 0; color: #24489d; font-size: .87rem; }
.f a, .f p { margin: .34rem 0 0; display: block; text-decoration: none; color: #5e6f94; font-size: .8rem; line-height: 1.45; }

.social-row { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .55rem; }
.social-row a {
  text-decoration: none;
  color: #24489d;
  font-size: .76rem;
  font-weight: 700;
  border: 1px solid #d9e5fb;
  border-radius: 999px;
  padding: .2rem .55rem;
  background: #f7faff;
}

.legal {
  margin-top: .6rem;
  padding-top: .55rem;
  border-top: 1px solid #eaf0fb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  flex-wrap: wrap;
}

.footer-connect { margin-top: .55rem; display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.c-btn {
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .34rem .68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e4fb;
  background: #fff;
  color: #24489d;
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: .7rem .8rem calc(.7rem + env(safe-area-inset-bottom));
  background: linear-gradient(90deg, rgba(255,244,249,.96), rgba(241,246,255,.96));
  border-top: 1px solid #dfe8fc;
  backdrop-filter: blur(8px); box-shadow: 0 4px 12px rgba(140,122,165,.12);
}
.mobile-cta .btn { width: 100%; }

@media (max-width: 1080px) {
  .nav { min-height: 72px; gap: .9rem; }
  .links { gap: .92rem; justify-content: flex-start; }
  .links a { font-size: .87rem; }
  .cards3, .review-strip, .footer-grid, .tutor-grid { grid-template-columns: 1fr 1fr; }
  .teacher-intro-grid { grid-template-columns: repeat(2, minmax(240px, 340px)); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "links links";
    min-height: auto;
    padding: .55rem 0 .35rem;
    row-gap: .45rem;
  }
  .brand { grid-area: brand; }
  .nav-cta {
    grid-area: cta;
    min-width: auto;
    padding: .52rem .86rem;
    font-size: .82rem;
  }
  .links {
    grid-area: links;
    width: 100%;
    justify-content: flex-start;
    gap: .38rem;
    overflow: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }
  .links a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    font-size: .76rem;
    line-height: 1;
    background: #fff;
    border: 1px solid #e1e8fb;
    border-radius: 999px;
    padding: .3rem .54rem;
  }
  .brand span { font-size: 1rem; }
}

@media (max-width: 720px) {
  header { position: static; }
  .container { width: min(var(--max), calc(100% - .9rem)); }
  .nav { gap: .4rem; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: .95rem; }
  .nav-cta { padding: .42rem .66rem; font-size: .76rem; }
  .hero { padding: .95rem 0 .75rem; }
  .hero h1 { font-size: clamp(1.85rem, 8.8vw, 2.35rem); line-height: 1.12; }
  .hero p { font-size: .95rem; max-width: 30ch; }
  .section { padding: 1.65rem 0; }
  .trust-title { font-size: .86rem; }
  .cards3, .review-strip, .footer-grid, .tutor-grid, .stats-grid, .lead-form-grid { grid-template-columns: 1fr; }
  .teacher-intro-grid { grid-template-columns: minmax(0, 340px); }
  .teacher-video-card { width: min(100%, 340px); margin-inline: auto; }
  .teacher-video-wrap { width: min(100%, 220px); }
  .stat { border-right: 0; border-bottom: 1px solid #ecf1fb; }
  .stat:last-child { border-bottom: 0; }
  .hero-cta a, .cta-row .btn, .mobile-cta .btn { width: 100%; }
  .field label { font-size: 1rem; }
  .card { padding: .9rem; }
  body { padding-bottom: 68px; }
  .mobile-cta { display: block; }
}
