* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 226, 240, 0.95), transparent 34%),
    radial-gradient(circle at bottom right, rgba(221, 237, 255, 0.95), transparent 34%),
    #fff8fc;
  color: #2b2331;
}

a { color: inherit; }

.hero {
  min-height: 72vh;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 14px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7b45df, #ff7bc0);
  color: white;
  box-shadow: 0 12px 26px rgba(123, 69, 223, 0.22);
}

.small-link {
  text-decoration: none;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(87, 66, 102, 0.12);
}

.hero-content {
  width: min(1120px, 100%);
  margin: auto;
  padding: 44px 0;
}

.eyebrow {
  color: #7b45df;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.8rem;
  font-weight: 900;
  margin: 0 0 12px;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 680px;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.6;
  color: #594e62;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.primary-btn,
.secondary-btn,
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 900;
}

.primary-btn,
.card-btn {
  background: #6f3fd4;
  color: white;
  box-shadow: 0 14px 28px rgba(111, 63, 212, 0.22);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(87, 66, 102, 0.13);
}

.section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 34px 18px;
}

.intro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.intro-card,
.lab-card,
.teacher-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(87, 66, 102, 0.13);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(46, 30, 66, 0.09);
}

.intro-card { padding: 24px; }

.intro-card h2,
.teacher-card h2,
.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.intro-card p,
.teacher-card p,
.teacher-card li {
  line-height: 1.65;
  color: #594e62;
}

.section-heading { margin-bottom: 16px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter {
  border: 1px solid rgba(87, 66, 102, 0.15);
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  color: #3a3042;
}

.filter.active {
  background: #2b2331;
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.lab-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 330px;
}

.tag {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1e8ff;
  color: #5b2ba5;
  font-size: 0.8rem;
  font-weight: 900;
}

.lab-card h3 {
  margin: 16px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.lab-card p {
  margin: 0 0 16px;
  line-height: 1.55;
  color: #594e62;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 18px;
}

.meta span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #fff7fb;
  border: 1px solid rgba(87, 66, 102, 0.11);
  font-size: 0.82rem;
  font-weight: 800;
}

.card-btn { width: 100%; }

.teacher-section { padding-bottom: 54px; }

.teacher-card { padding: clamp(22px, 4vw, 34px); }

footer {
  padding: 24px 18px 34px;
  text-align: center;
  color: #6b5b73;
}

.hidden-card { display: none; }

@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .intro,
  .grid { grid-template-columns: 1fr; }

  .hero { min-height: auto; }

  .hero-content { padding: 64px 0; }

  .lab-card { min-height: auto; }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
