* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  color: #16202a;
  background: #f4f7fb;
}
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  background: linear-gradient(135deg, #0f2747 0%, #23538f 100%);
  color: #fff;
  padding: 72px 0 64px;
}
.hero-clean { min-height: 100vh; display: flex; align-items: center; }
.hero-photo {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: url('./assets/hero-baby-study-enhanced.jpg') center center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,19,37,0.72) 0%, rgba(8,19,37,0.45) 38%, rgba(8,19,37,0.20) 100%);
}
.hero-centered { position: relative; z-index: 1; width: min(1120px, calc(100% - 32px)); }
.hero-copy { max-width: 560px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.cover-card { padding: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.cover-image { display: block; width: 100%; height: auto; border-radius: 18px; }
.hero-art { box-shadow: none; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; opacity: 0.72; margin: 0 0 8px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.subtitle { max-width: 760px; font-size: 18px; line-height: 1.6; margin-bottom: 24px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lang-toggle { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.top-right { justify-content: flex-end; }
.lang-btn.active { background: #111827; color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 12px; text-decoration: none;
  font-weight: 700; border: none; cursor: pointer;
}
.btn-primary { background: #111827; color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.btn-secondary-dark { background: #e8effa; color: #21477d; }
.full { width: 100%; }
.section { padding: 56px 0; }
.alt { background: #eaf0f8; }
.section-head { margin-bottom: 24px; }
.grid { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card, .panel, .sidebar {
  background: #fff; border-radius: 20px; padding: 24px;
  box-shadow: 0 10px 30px rgba(25, 52, 89, 0.08);
}
.list { padding-left: 18px; line-height: 1.7; }
.list.compact { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 24px; align-items: start; }
.meta { display: grid; gap: 12px; }
.meta div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eef2f7; padding-bottom: 10px; }
.footer { padding: 28px 0 40px; color: #64748b; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.muted, .hint { color: #64748b; }
.app-shell { display: grid; grid-template-columns: 320px 1fr; gap: 24px; padding: 24px 0 48px; }
.app-shell-wide { grid-template-columns: 320px 1fr; }
.login-box { margin: 20px 0; }
.login-box label { display: block; margin-bottom: 8px; font-weight: 700; }
select,
.input {
  width: 100%; padding: 12px; border: 1px solid #cdd6e1; border-radius: 12px; margin-bottom: 12px; font: inherit; background: #fff;
}
.mini-panel { margin-top: 24px; border-top: 1px solid #eef2f7; padding-top: 20px; }
.hidden { display: none; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 20px; }
.tag {
  display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px;
  background: #e8effa; color: #21477d; font-size: 13px; font-weight: 700;
}
.tag-success { background: #ddf7e7; color: #146c3b; }
.tag-danger { background: #fde2e2; color: #a11d1d; }
.question-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.options { display: grid; gap: 12px; margin: 20px 0 24px; }
.option {
  display: flex; gap: 12px; align-items: flex-start; border: 1px solid #d7e1ec; border-radius: 14px;
  padding: 14px; cursor: pointer;
}
.option input { margin-top: 3px; }
.right { justify-content: flex-end; }
.score { font-size: 20px; font-weight: 800; margin: 16px 0; }
.review-list { display: grid; gap: 14px; margin: 20px 0; }
.review-item { border-radius: 14px; padding: 16px; border: 1px solid #e2e8f0; }
.review-item.ok { background: #f2fbf5; }
.review-item.bad { background: #fff3f3; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #edf2f7; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.full-span { grid-column: 1 / -1; }
.mode-switch { display: flex; gap: 10px; margin: 14px 0 10px; flex-wrap: wrap; }
.mode-btn { min-width: 120px; }
.btn-secondary-light { background: #eef4fb; color: #21477d; }
.btn-disabled { background: #d7dee8; color: #738196; cursor: not-allowed; }
.dashboard-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.level-card { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 900px) {
  .split, .app-shell, .app-shell-wide, .form-grid, .hero-grid { grid-template-columns: 1fr; }
}

.hero-actions-row { align-items: center; justify-content: space-between; }
.hero-lang-inline { margin-bottom: 0; }
@media (max-width: 640px) {
  .hero-centered {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 140px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-copy .actions {
    margin-top: 18px;
    width: 100%;
  }
  .hero-actions-row {
    justify-content: space-between;
  }
}
