:root {
  --ink: #161616;
  --muted: #5f646c;
  --line: #d8d3c8;
  --paper: #f7f4ee;
  --white: #fffdf8;
  --red: #8b1428;
  --teal: #0f7d73;
  --gold: #d9a22b;
  --blue: #284b8f;
  --navy: #111834;
  --magenta: #ef3b97;
  --soft-red: #f6e8e8;
  --soft-teal: #e7f1ef;
  --soft-blue: #e8ecf5;
  --soft-gold: #f6eedb;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid rgba(22, 22, 22, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

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

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

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  color: #3b3b3b;
  font-size: 14px;
}

.main-nav a {
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  border-color: var(--red);
}

.home-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 13px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid rgba(17, 24, 52, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 24px rgba(17, 24, 52, .08);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.home-button::before {
content: "";
width: 8px;
height: 8px;
border-left: 2px solid currentColor;
border-bottom: 2px solid currentColor;
transform: rotate(45deg);
}

.home-button:hover {
color: var(--magenta);
border-color: rgba(239, 59, 151, .36) !important;
transform: translateY(-1px);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 74px max(24px, calc((100vw - var(--max)) / 2)) 68px;
  background:
    linear-gradient(115deg, rgba(139, 20, 40, 0.06), transparent 38%),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h1 .latin {
  font-size: 1.14em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: #343434;
  font-size: clamp(17px, 1.7vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.button {
  min-width: 148px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-strip span {
  min-height: 78px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.metric-strip span:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.1;
}

.hero-media {
  margin: 0;
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 11% -2% -7% 18%;
  background: var(--teal);
  opacity: 0.12;
  transform: skewX(-10deg);
}

.hero-media img {
  position: relative;
  width: 100%;
  border: 1px solid rgba(22, 22, 22, 0.1);
  box-shadow: 0 30px 80px rgba(22, 22, 22, 0.16);
}

.section {
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 760px;
}

.intro-band {
  background: var(--ink);
  color: #fff;
}

.intro-band .eyebrow,
.intro-band .tile-index {
  color: #ffbd3a;
}

.intro-band p {
  color: rgba(255, 255, 255, 0.74);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.overview-main,
.info-tile {
  padding: clamp(24px, 3vw, 36px);
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.overview-main {
  grid-row: span 2;
}

.tile-index {
  display: block;
  margin-bottom: 42px;
  font-weight: 800;
}

.update-section,
.outline-section,
.faculty-section {
  background: var(--white);
}

.insight-layout,
.exam-grid,
.fees-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 4vw, 52px);
}

.insight-lead {
  padding: 34px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.insight-lead p {
  max-width: 760px;
  color: #343434;
}

.signal-stack {
  display: grid;
  gap: 16px;
}

.signal {
  min-height: 210px;
  padding: 28px;
  background: var(--soft-red);
  border: 1px solid rgba(139, 20, 40, 0.22);
}

.signal:nth-child(2) {
  background: var(--soft-teal);
  border-color: rgba(15, 125, 115, 0.24);
}

.signal span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.feature-band {
  background: #efebe3;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-list article {
  min-height: 260px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.54);
}

.feature-list h3::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 28px;
  background: var(--red);
}

.feature-list article:nth-child(2) h3::before,
.feature-list article:nth-child(5) h3::before {
  background: var(--teal);
}

.feature-list article:nth-child(3) h3::before {
  background: var(--gold);
}

.feature-list article:nth-child(4) h3::before {
  background: var(--blue);
}

.exam-section {
  background: linear-gradient(90deg, #fffdf8 0%, #fffdf8 58%, #efe6d3 58%, #efe6d3 100%);
}

.exam-copy {
  padding-top: 12px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  background: var(--red);
}

.domain-panel {
  display: grid;
  gap: 14px;
  align-content: center;
}

.domain-panel span {
  display: block;
  padding: 22px 24px;
  border-left: 6px solid var(--red);
  background: var(--white);
  box-shadow: 0 18px 34px rgba(22, 22, 22, 0.08);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
}

.domain-panel span:nth-child(2) {
  border-color: var(--teal);
}

.domain-panel span:nth-child(3) {
  border-color: var(--gold);
}

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

.module {
  min-height: 360px;
  padding: 28px;
  background: #f8f5ef;
  border: 1px solid var(--line);
}

.module.accent {
  min-height: 240px;
  background: var(--ink);
  color: #fff;
}

.module.accent p {
  color: rgba(255, 255, 255, 0.76);
}

.module-number {
  display: block;
  margin-bottom: 46px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.module.accent .module-number {
  color: var(--gold);
}

.module ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
  color: #3b3b3b;
}

.module.accent ul {
  color: rgba(255, 255, 255, 0.76);
}

.schedule-section {
  background: #f0eee8;
}

.table-set {
  display: grid;
  gap: 28px;
}

.schedule-block,
.price-table,
.exam-fee,
.faculty-grid article {
  border: 1px solid var(--line);
  background: var(--white);
}

.schedule-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.schedule-title h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.schedule-title span {
  color: var(--red);
  font-weight: 800;
}

.table-wrap,
.price-table {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #ede8df;
  color: #313131;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

td:first-child,
th:first-child {
  font-weight: 800;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.fees-section {
  background: var(--ink);
  color: #fff;
}

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

.price-table table {
  min-width: 720px;
}

.price-table {
  color: var(--ink);
}

.exam-fee {
  padding: 30px;
  color: var(--ink);
  background: var(--soft-gold);
}

.exam-fee h3 {
  font-size: 32px;
}

.exam-fee strong {
  color: var(--red);
  font-size: 22px;
}

.exam-fee span {
  display: block;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(22, 22, 22, 0.16);
  color: #4d463a;
  font-size: 14px;
}

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

.faculty-grid article {
  padding: 26px;
}

.faculty-grid article::before {
  content: "";
  display: block;
  width: 100%;
  height: 5px;
  margin-bottom: 28px;
  background: var(--red);
}

.faculty-grid article:nth-child(2)::before {
  background: var(--blue);
}

.faculty-grid article:nth-child(3)::before {
  background: var(--teal);
}

.faculty-grid article:nth-child(4)::before {
  background: var(--gold);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 70px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--red);
  color: #fff;
}

.contact-section .eyebrow {
  color: #ffd57c;
}

.contact-section h2 {
  margin-bottom: 14px;
}

.contact-section p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.contact-actions .button.primary {
  background: #fff;
  border-color: #fff;
  color: var(--red);
}

.contact-actions .button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
  background: #101010;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
}

@media (max-width: 1080px) {
  .site-header {
    align-items: flex-start;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .overview-grid,
  .feature-list,
  .outline-grid,
  .faculty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .insight-layout,
  .exam-grid,
  .fees-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

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

  .brand small,
  .nav-cta {
    display: none;
  }

  .hero,
  .section,
  .contact-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 62px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .metric-strip,
  .section-heading,
  .overview-grid,
  .feature-list,
  .outline-grid,
  .faculty-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .metric-strip span:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .feature-list article,
  .module {
    min-height: auto;
  }

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

  .contact-actions {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
