:root {
  color-scheme: light;
  --ink: #182027;
  --muted: #64717c;
  --line: #dbe2e8;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --navy: #10263d;
  --red: #b51621;
  --blue: #256b8f;
  --green: #557a46;
  --gold: #c69638;
  --shadow: 0 24px 70px rgba(16, 38, 61, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, #f7f9fb 520px),
    #f7f9fb;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 54px);
  border-bottom: 1px solid rgba(219, 226, 232, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 245px;
}

.brand-mark {
  width: 87px;
  height: 43px;
  display: block;
  flex: 0 0 87px;
  object-fit: contain;
}

.brand strong,
.brand em {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 17px;
  font-weight: 830;
}

.brand em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav a,
.header-cta,
.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 760;
}

.nav a {
  padding: 0 12px;
  color: #344756;
}

.nav a:hover {
  background: #eef3f5;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.language-switch a {
  min-height: 32px;
  padding: 0 10px;
  color: #52616b;
  font-size: 12px;
  font-weight: 820;
}

.language-switch a.active {
  background: #eef3f5;
  color: var(--navy);
}

.header-cta {
  padding: 0 16px;
  background: var(--navy);
  color: #fff;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 34px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 28px 34px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-top: 14px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 650;
}

h2 {
  max-width: 820px;
  margin-top: 10px;
  font-size: clamp(31px, 3.8vw, 48px);
  line-height: 1.08;
  font-weight: 650;
}

.lead {
  max-width: 735px;
  margin-top: 24px;
  color: #3c4d59;
  font-size: 18px;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--navy);
}

.note {
  max-width: 690px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.hero-media {
  overflow: hidden;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
  object-position: center;
}

.hero-media figcaption {
  padding: 18px 20px 20px;
  color: #4a5a64;
  font-size: 14px;
  line-height: 1.55;
}

.hero-media figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 17px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1184px;
  margin: 8px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 38, 61, 0.08);
}

.proof-strip div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  display: block;
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

.proof-strip span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 94px 28px 0;
}

.section-head {
  max-width: 900px;
}

.section-head p:not(.eyebrow),
.lab-copy p,
.consult p {
  margin-top: 18px;
  color: #51616b;
  font-size: 17px;
  line-height: 1.72;
}

.compact {
  max-width: 720px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  margin-top: 34px;
}

.award-panel,
.result-cards article,
.family-grid article,
.mentor-grid article,
.steps li,
.contact-qr {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.award-panel {
  padding: 28px;
  background: var(--navy);
  color: white;
}

.label,
.result-cards span,
.mentor-grid span,
.steps span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.award-panel h3 {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.15;
}

.award-list {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.award-list li {
  color: #dce6ed;
  font-size: 15px;
  line-height: 1.6;
}

.award-list strong {
  color: #fff;
}

.result-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.result-cards article,
.family-grid article,
.mentor-grid article {
  padding: 22px;
}

.result-cards h3,
.family-grid h3,
.mentor-grid h3,
.steps h3 {
  margin-top: 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.result-cards p,
.family-grid p,
.mentor-grid p,
.steps p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.audience {
  max-width: none;
  margin-top: 86px;
  padding: 82px max(28px, calc((100vw - 1184px) / 2)) 88px;
  background: #eef3f5;
}

.family-grid,
.mentor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.mentor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mentor-grid article {
  min-height: 228px;
}

.labs {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 36px;
  align-items: start;
}

.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

.category-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d5dfd6;
  border-radius: 999px;
  background: #fff;
  color: #354854;
  font-size: 14px;
  font-weight: 710;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 230px;
  padding: 22px;
}

.consult {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 34px;
  max-width: 1184px;
  margin: 96px auto 70px;
  padding: 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(181, 22, 33, 0.92), rgba(16, 38, 61, 0.96)),
    var(--navy);
  color: #fff;
}

.consult .eyebrow {
  color: #ffd166;
}

.consult h2 {
  color: #fff;
}

.consult p {
  color: #e7edf2;
}

.contact-qr {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  text-align: center;
}

.contact-qr-frame {
  width: min(100%, 310px);
  aspect-ratio: 1 / 0.9;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.contact-qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-qr strong {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.35;
}

.contact-qr p {
  margin-top: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
  max-width: 1184px;
  margin: 0 auto 42px;
  padding: 28px 4px;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--navy);
  font-size: 17px;
}

.site-footer p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.site-footer a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 760;
}

.site-footer a:hover {
  color: var(--red);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-tools {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .hero,
  .result-layout,
  .labs,
  .consult {
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .family-grid,
  .mentor-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip div:nth-child(2) {
    border-right: 0;
  }

  .proof-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
    padding-right: 84px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand em {
    font-size: 11px;
  }

  .header-cta {
    display: none;
  }

  .language-switch {
    display: flex;
  }

  .site-footer {
    grid-template-columns: 1fr;
    margin-right: 20px;
    margin-left: 20px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 46px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .proof-strip,
  .result-cards,
  .family-grid,
  .mentor-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 68px;
  }

  .audience {
    margin-top: 66px;
    padding-top: 66px;
    padding-bottom: 70px;
  }

  .consult {
    margin: 72px 18px 46px;
    padding: 26px 18px;
  }
}

.reviews-section { padding-bottom: 90px; }
.reviews-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.reviews-heading > div { max-width: 720px; }
.reviews-heading h2 { margin-bottom: 12px; }
.reviews-heading p:last-child { color: var(--muted); line-height: 1.7; }
.reviews-open-button, .review-submit { border: 0; border-radius: 7px; background: var(--red); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.reviews-open-button { flex: 0 0 auto; padding: 13px 18px; }
.reviews-open-button:hover, .review-submit:hover { background: #98111b; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.reviews-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
.review-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 34px rgba(16, 38, 61, .07); }
.review-card > img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.review-card .review-stars, .review-card blockquote, .review-card footer { margin-right: 22px; margin-left: 22px; }
.review-stars { margin-top: 22px; color: #d39b23; font-size: 18px; letter-spacing: .08em; }
.review-card blockquote { margin-top: 14px; margin-bottom: 22px; color: var(--ink); font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 18px; line-height: 1.65; }
.review-translation-note { margin: -10px 22px 18px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.review-card footer { display: flex; flex-direction: column; gap: 3px; padding: 17px 0 20px; border-top: 1px solid var(--line); }
.review-card footer strong { color: var(--navy); }
.review-card footer span { color: var(--muted); font-size: 13px; }
.review-dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100vh - 36px); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.review-dialog::backdrop { background: rgba(7, 26, 50, .68); backdrop-filter: blur(4px); }
.review-form { position: relative; display: grid; gap: 16px; padding: 32px; }
.review-form h3 { margin: -5px 0 0; color: var(--navy); font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 30px; }
.review-form > p { margin: 0; color: var(--muted); }
.review-form label { display: grid; gap: 7px; color: var(--navy); font-size: 14px; font-weight: 750; }
.review-form input, .review-form select, .review-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #c8d1d8; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.review-form textarea { resize: vertical; }
.review-form input:focus, .review-form select:focus, .review-form textarea:focus { outline: 3px solid rgba(181,22,33,.14); border-color: var(--red); }
.review-dialog-close { position: absolute; top: 16px; right: 18px; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
.review-submit { padding: 13px 18px; }
.review-submit:disabled { opacity: .55; cursor: wait; }
.review-form .review-form-note { margin-top: -7px; font-size: 12px; }
.review-form-status { min-height: 22px; font-size: 14px; }
.review-form-status.success { color: #18763c; }
.review-form-status.error { color: var(--red); }

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .reviews-heading { align-items: flex-start; flex-direction: column; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-form { padding: 26px 20px; }
}
