* { box-sizing: border-box; }
:root {
  --navy: #08285b;
  --navy-deep: #061f4c;
  --gold: #f9ad10;
  --gold-light: #ffd166;
  --text-muted: #536b8d;
}
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: #fffdf8;
}
a { color: inherit; text-decoration: none; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  padding: 26px clamp(24px, 5.2vw, 90px) 95px;
  background:
    radial-gradient(ellipse at 70% 42%, rgba(194,225,255,.82) 0%, rgba(225,242,255,.55) 27%, transparent 48%),
    linear-gradient(110deg, #fffefa 0%, #fffefa 48%, #f4faff 100%);
}
.nav {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.logo-link img {
  display: block;
  width: clamp(105px, 13vw, 190px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(8,40,91,.12));
}
.admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 15px 29px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(8,40,91,.16);
  transition: transform .18s ease, background .18s ease;
}
.admin:hover { transform: translateY(-2px); background: #123b7d; }
.admin span { font-size: 19px; }
.main-content {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  min-height: min(690px, calc(100svh - 125px));
  margin: -26px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: clamp(20px, 3vw, 55px);
}
.text-content {
  position: relative;
  z-index: 3;
  padding: 0 0 24px;
  transform: translate(26px, -30px);
}
.eyebrow {
  margin: 0 0 4px;
  font-size: clamp(29px, 3.2vw, 48px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.05em;
}
h1 {
  margin: 0;
  font-size: clamp(48px, 5.8vw, 88px);
  font-weight: 950;
  line-height: .98;
  letter-spacing: -.065em;
  white-space: nowrap;
}
h1 span { color: var(--gold); }
h2 {
  margin: 17px 0 8px;
  font-size: clamp(28px, 3.45vw, 51px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 900;
}
.description {
  max-width: 690px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.5;
  font-weight: 500;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 25px;
}
.btn {
  min-height: 59px;
  padding: 15px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-radius: 999px;
  font-size: clamp(14px, 1.12vw, 18px);
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn span { font-size: 25px; line-height: 1; }
.btn-gold {
  background: linear-gradient(135deg, #ffc743, #f8a900);
  color: var(--navy-deep);
  box-shadow: 0 12px 24px rgba(249,173,16,.23);
}
.btn-gold:hover { box-shadow: 0 15px 30px rgba(249,173,16,.33); }
.btn-outline {
  border: 2px solid var(--navy);
  background: rgba(255,255,255,.8);
  color: var(--navy);
}
.btn-outline:hover { box-shadow: 0 10px 22px rgba(8,40,91,.1); }
.subjects {
  display: flex;
  align-items: stretch;
  max-width: 700px;
  margin-top: 25px;
}
.subject {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  padding: 0 12px;
  font-size: clamp(13px, 1.18vw, 17px);
}
.subject + .subject { border-left: 1px solid rgba(8,40,91,.22); }
.subject-icon {
  width: 51px;
  height: 51px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 29px;
  font-weight: 900;
  background: #fff4d9;
}
.subject-icon.book { color: #123b7d; }
.subject-icon.calculator { color: #123b7d; }
.subject-icon.bulb { color: #f1a800; }
.subject i { width: 42px; height: 4px; border-radius: 5px; background: var(--gold); margin-top: 2px; }
.portrait-area {
  align-self: stretch;
  min-height: 470px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translate(-24px, -34px);
}
.portrait-blob {
  position: absolute;
  bottom: 2%;
  width: min(100%, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #d7ebff 0%, rgba(217,237,255,.8) 49%, rgba(255,255,255,0) 73%);
}
.portrait {
  position: relative;
  z-index: 2;
  display: block;
  width: min(115%, 680px);
  max-height: min(80vh, 770px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 13px 18px rgba(6,31,76,.11));
}
.doodle { position: absolute; z-index: 1; color: #b6d7fb; user-select: none; font-weight: 800; }
.cap { top: 17%; left: 6%; font-size: 70px; transform: rotate(-10deg); }
.book-doodle { top: 27%; right: 2%; font-size: 58px; transform: rotate(8deg); }
.sparkle { top: 44%; right: -2%; font-size: 62px; }
.corner-glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.corner-left { width: 330px; height: 330px; top: -225px; left: -120px; background: #dceeff; }
.corner-right { width: 390px; height: 390px; top: -305px; right: -160px; background: #fff5dc; }
.decor-dots {
  position: absolute;
  width: 72px;
  height: 155px;
  opacity: .8;
  background-image: radial-gradient(var(--gold) 2px, transparent 2.5px);
  background-size: 18px 18px;
}
.decor-left { top: 15%; left: 8px; }
.decor-right { top: 18%; right: 9px; }
.footer-wave {
  position: absolute;
  z-index: 1;
  height: 190px;
  left: -8%;
  right: -8%;
  bottom: -145px;
  border-radius: 50% 50% 0 0 / 65% 65% 0 0;
  background: var(--navy);
}
.footer-wave::before {
  content: "";
  position: absolute;
  top: -15px; left: 0; right: 0; height: 100%;
  border-radius: inherit;
  background: var(--gold);
}
@media (min-width: 1500px) { .main-content { min-height: 730px; } }
@media (max-width: 1050px) {
  .hero { padding-left: 30px; padding-right: 30px; }
  .main-content { grid-template-columns: minmax(0, 1fr) minmax(270px, .72fr); gap: 12px; }
  h1 { font-size: clamp(44px, 5.4vw, 64px); }
  .portrait-area { min-height: 410px; margin-right: -28px; }
  .portrait { width: 125%; }
  .btn { padding: 14px 19px; gap: 12px; }
}
@media (max-width: 1050px) and (min-width: 721px) {
  .text-content { transform: translate(12px, -18px); }
}
@media (max-width: 720px) {
  .hero { padding: 15px 18px 70px; }
  .nav { align-items: center; }
  .logo-link img { width: 80px; }
  .admin { padding: 10px 16px; font-size: 14px; }
  .main-content { display: flex; flex-direction: column; gap: 0; min-height: auto; margin-top: 12px; }
  .text-content { padding-top: 6px; transform: none; }
  .eyebrow { font-size: clamp(25px, 6vw, 34px); }
  h1 { font-size: clamp(40px, 10vw, 68px); white-space: normal; }
  h2 { font-size: clamp(27px, 7vw, 40px); margin-top: 12px; }
  .description { font-size: 16px; }
  .buttons { display: grid; grid-template-columns: 1fr; gap: 11px; margin-top: 20px; }
  .btn { width: 100%; min-height: 54px; font-size: 15px; }
  .subjects { margin-top: 23px; }
  .subject { padding: 0 7px; font-size: 12px; gap: 6px; }
  .subject-icon { width: 40px; height: 40px; font-size: 23px; }
  .subject i { width: 30px; }
  .portrait-area { min-height: 300px; height: min(90vw, 440px); width: 100%; margin: 0; transform: translateY(-14px); }
  .portrait { width: min(100%, 420px); max-height: 100%; }
  .portrait-blob { width: 95%; }
  .cap { top: 8%; left: 7%; font-size: 45px; }
  .book-doodle { top: 20%; right: 5%; font-size: 42px; }
  .sparkle { top: 36%; right: 3%; font-size: 43px; }
  .decor-left { top: 10%; }
  .decor-right { top: 29%; }
}
@media (max-width: 390px) {
  .hero { padding-left: 13px; padding-right: 13px; }
  .logo-link img { width: 68px; }
  .admin { padding: 9px 12px; }
  .subject { padding: 0 4px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
