:root {
  --ink: #15213a;
  --muted: #657088;
  --blue: #1457b8;
  --blue-dark: #0e3d83;
  --red: #c9252d;
  --gold: #f2bd48;
  --paper: #fffaf1;
  --white: #ffffff;
  --line: #e5e8ef;
  --shadow: 0 18px 50px rgba(21, 33, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  background: var(--white);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 232, 239, 0.8);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(21, 33, 58, 0.08);
}

.topline {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 13px;
}

.topline-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  align-items: center;
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--red));
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 8px 18px rgba(20, 87, 184, 0.22);
  border-radius: 50%;
  font-weight: 900;
  font-size: 15px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 20px;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding: 28px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta,
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 22px rgba(201, 37, 45, 0.22);
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 30px rgba(201, 37, 45, 0.26);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 150px);
  max-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 24, 50, 0.88), rgba(10, 24, 50, 0.58) 42%, rgba(10, 24, 50, 0.12) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 8px, transparent 8px 24px);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 72px 0 92px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 64px;
  line-height: 1.05;
  font-weight: 950;
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-badges span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
}

.stats-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.stats-grid div {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 30px;
  border-left: 1px solid var(--line);
}

.stats-grid div:last-child {
  border-right: 1px solid var(--line);
}

.stats-grid strong {
  color: var(--blue);
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
}

.stats-grid span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.section {
  padding: 92px 0;
}

.section h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.18;
  font-weight: 950;
}

.section-copy p:not(.section-kicker),
.section-title p:not(.section-kicker),
.method-content p,
.cta-layout p {
  color: var(--muted);
  font-size: 17px;
}

.section-copy p:not(.section-kicker) {
  margin: 22px 0 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  color: var(--blue);
  font-weight: 900;
  border-bottom: 2px solid currentColor;
}

.about-layout,
.method-layout,
.faculty-layout,
.cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.about-image,
.method-photo,
.teacher-panel {
  position: relative;
}

.about-image img,
.method-photo img,
.teacher-panel > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  min-width: 220px;
  padding: 16px 18px;
  color: var(--white);
  background: var(--blue);
  border-left: 6px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(10, 24, 50, 0.22);
}

.image-caption strong,
.image-caption span {
  display: block;
}

.image-caption span {
  font-size: 14px;
  opacity: 0.9;
}

.values-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}

.section-title {
  max-width: 760px;
  margin-bottom: 38px;
}

.title-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-card,
.program-card,
.news-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(21, 33, 58, 0.06);
}

.value-card {
  min-height: 244px;
  padding: 30px;
}

.value-index,
.program-tag {
  display: inline-flex;
  min-width: 42px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 4px;
  font-weight: 900;
  font-size: 13px;
}

.value-card:nth-child(2) .value-index {
  background: var(--red);
}

.value-card:nth-child(3) .value-index {
  background: var(--gold);
  color: var(--ink);
}

.value-card h3,
.program-card h3,
.news-item h3,
.method-list h3 {
  margin: 20px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.value-card p,
.program-card p,
.news-item p {
  margin: 0;
  color: var(--muted);
}

.programs-section {
  background: var(--paper);
}

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

.program-card {
  position: relative;
  min-height: 364px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--blue);
}

.program-card.featured::before {
  background: var(--red);
}

.program-card.featured {
  transform: translateY(-12px);
  box-shadow: 0 22px 45px rgba(21, 33, 58, 0.14);
}

.program-card ul {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
}

.program-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
}

.method-section {
  background: #ffffff;
}

.method-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.method-list {
  margin-top: 30px;
  display: grid;
  gap: 18px;
}

.method-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.method-list span {
  grid-row: 1 / span 2;
  color: var(--red);
  font-size: 22px;
  font-weight: 950;
}

.method-list h3,
.method-list p {
  margin: 0;
}

.faculty-section {
  background:
    linear-gradient(90deg, rgba(20, 87, 184, 0.08), rgba(201, 37, 45, 0.04));
}

.faculty-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}

.teacher-panel > img {
  aspect-ratio: 5 / 4;
  object-position: center top;
}

.teacher-notes {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.teacher-notes div {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.teacher-notes strong,
.teacher-notes span {
  display: block;
}

.teacher-notes strong {
  font-size: 14px;
}

.teacher-notes span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-item {
  min-height: 216px;
  padding: 28px;
}

.news-item time {
  color: var(--red);
  font-weight: 900;
  font-size: 14px;
}

.faq-section {
  background: #f7f9fd;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 20px 22px;
  cursor: pointer;
}

.faq-item span {
  display: block;
  color: var(--ink);
  font-weight: 900;
  font-size: 18px;
}

.faq-item small {
  display: none;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.active {
  border-color: rgba(20, 87, 184, 0.35);
  box-shadow: 0 14px 32px rgba(20, 87, 184, 0.1);
}

.faq-item.active small {
  display: block;
}

.cta-section {
  padding: 84px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(14, 61, 131, 0.98), rgba(20, 87, 184, 0.9)),
    url("assets/hero-campus.jpg") center / cover;
}

.cta-section .section-kicker,
.cta-layout p {
  color: rgba(255, 255, 255, 0.86);
}

.cta-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
}

.cta-layout h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.2;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}

.contact-form input,
.contact-form select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcff;
}

.contact-form button {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: #111827;
  padding: 58px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr;
  gap: 38px;
}

.footer-brand .brand-mark {
  box-shadow: none;
}

.footer-brand strong,
.site-footer h3 {
  color: var(--white);
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.65);
}

.site-footer p {
  max-width: 360px;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-top: 8px;
}

.copyright {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 120px;
  z-index: 40;
  display: grid;
  gap: 8px;
}

.floating-contact a {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(21, 33, 58, 0.22);
  font-size: 13px;
  font-weight: 900;
}

.floating-contact a:nth-child(2) {
  background: var(--red);
}

.mobile-bottom {
  display: none;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 18px;
    font-size: 14px;
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-card.featured {
    transform: none;
  }
}

@media (max-width: 900px) {
  .topline {
    display: none;
  }

  .nav-shell {
    min-height: 68px;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .mobile-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    padding: 18px 20px 26px;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 38px rgba(21, 33, 58, 0.14);
  }

  .mobile-nav.open {
    display: grid;
  }

  .mobile-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 900;
  }

  .hero {
    min-height: calc(100svh - 118px);
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid div:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .about-layout,
  .method-layout,
  .faculty-layout,
  .faq-layout,
  .cta-layout {
    grid-template-columns: 1fr;
  }

  .method-photo {
    order: 2;
  }

  .teacher-notes,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .section h2,
  .cta-layout h2 {
    font-size: 32px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

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

  .hero {
    min-height: calc(100svh - 112px);
    max-height: none;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(10, 24, 50, 0.88), rgba(10, 24, 50, 0.66));
  }

  .hero-content {
    padding: 52px 0 76px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .stats-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid div,
  .stats-grid div:last-child,
  .stats-grid div:nth-child(2) {
    min-height: 104px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

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

  .program-card {
    min-height: 320px;
  }

  .method-list div {
    grid-template-columns: 42px 1fr;
  }

  .image-caption {
    position: static;
    margin-top: 12px;
  }

  .contact-form {
    padding: 18px;
  }

  .floating-contact {
    display: none;
  }

  .mobile-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 58px;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 28px rgba(21, 33, 58, 0.12);
  }

  .mobile-bottom a {
    display: grid;
    place-items: center;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
  }

  .site-footer {
    padding-bottom: 86px;
  }
}
