@font-face {
  font-family: 'Chillax';
  src: url('../fonts/chillax-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/chillax-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/chillax-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f1418;
  --ink-2: #1a2228;
  --paper: #f0f2ee;
  --paper-2: #e4e7df;
  --paper-3: #d6dad1;
  --muted: #5b6266;
  --coral: #ff5a3c;
  --coral-soft: #ff7157;
  --amber: #f5b93f;
  --yellow: #ffd400;
  --mint: #b9dcc6;
  --blue: #2b4bd0;
  --green: #2fae66;
  --font: 'Chillax', 'PingFang SC', 'HarmonyOS Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
  --cut: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }

::selection { background: var(--coral); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.container {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nowrap { display: inline-block; white-space: nowrap; }

/* ---------- shared type ---------- */

h2 { font-size: clamp(2.3rem, 3.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border: 0;
  background: var(--coral);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--coral-soft); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: rgba(240, 242, 238, 0.1); color: var(--paper); }
.btn-ghost:hover { background: rgba(240, 242, 238, 0.18); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-wide { width: 100%; }

.text-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.18s ease;
}
.text-btn:hover { color: var(--coral); }

.arrow-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.18s ease;
}
.arrow-link:hover { color: var(--coral); }

.bg-coral { background: var(--coral); color: var(--ink); }
.bg-amber { background: var(--amber); color: var(--ink); }
.bg-mint { background: var(--mint); color: var(--ink); }
.bg-blue { background: var(--blue); color: var(--paper); }
.bg-paper { background: var(--paper); color: var(--ink); }

.cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
}

.header-inner {
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand-cn { font-size: 14px; color: rgba(240, 242, 238, 0.72); letter-spacing: 0.08em; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { font-size: 14px; color: rgba(240, 242, 238, 0.68); transition: color 0.18s ease; }
.main-nav a:hover { color: var(--paper); }
.main-nav a.active { color: var(--coral); }

.header-account { justify-self: end; display: flex; align-items: center; gap: 20px; }
.header-account .login-link { font-size: 14px; color: rgba(240, 242, 238, 0.78); }
.header-account .login-link:hover { color: var(--paper); }
.header-account .hello { font-size: 14px; color: rgba(240, 242, 238, 0.62); }
.header-account .link-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 14px;
  color: rgba(240, 242, 238, 0.62);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.header-account .link-btn:hover { color: var(--paper); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.menu-toggle span { display: block; height: 2px; background: var(--paper); transition: transform 0.2s ease, opacity 0.2s ease; }

.mobile-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 28px 24px 40px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a,
.mobile-menu .mobile-logout {
  display: block;
  padding: 16px 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(240, 242, 238, 0.86);
  text-align: left;
  border: 0;
  background: none;
}
.mobile-menu nav a.active { color: var(--coral); }
.mobile-contact { border: 0; padding-top: 24px; }
.mobile-contact a { font-size: 18px; font-weight: 600; color: var(--coral); }
.mobile-contact p { margin-top: 10px; font-size: 14px; line-height: 1.7; color: rgba(240, 242, 238, 0.5); max-width: 32ch; }

.site-main { padding-top: 68px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  min-height: 820px;
  height: 100svh;
  overflow: hidden;
}

.hero-inner { padding-top: clamp(34px, 7vh, 84px); text-align: center; }

.hero h1 {
  font-size: clamp(3.4rem, 8.4vw, 7.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.hero-sub {
  max-width: 620px;
  margin: 26px auto 0;
  color: rgba(240, 242, 238, 0.68);
  font-size: 18px;
  line-height: 1.7;
}

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

.stack {
  position: absolute;
  top: 55%;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, 88vw);
}

.stack-band {
  position: absolute;
  left: 0;
  width: 100%;
  height: 180px;
  top: calc(var(--i) * 64px);
  padding: 20px 30px;
  cursor: pointer;
  transition: transform 0.24s ease, filter 0.24s ease;
}
.stack-band:hover { transform: translateY(-5px); filter: brightness(1.03); z-index: 6; }
.stack-band:focus-visible { outline-offset: -4px; }
.stack-band.front { background: var(--paper); color: var(--ink); height: calc(100% - 192px); min-height: 230px; }

.stack-tab {
  position: absolute;
  top: -30px;
  right: 8%;
  height: 30px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: inherit;
  color: inherit;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.stack-band:nth-child(1) .stack-tab { right: 5%; }
.stack-band:nth-child(2) .stack-tab { right: 21%; }
.stack-band:nth-child(3) .stack-tab { right: 37%; }
.stack-band:nth-child(4) .stack-tab { right: 53%; }

.stack-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 40px; }
.stack-age { font-size: 14px; font-weight: 500; }
.stack-lang { font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; letter-spacing: -0.025em; }

.stack-front { margin-top: 10px; max-width: 640px; }
.stack-front-title { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.stack-front-text { margin-top: 8px; font-size: 16px; color: rgba(15, 20, 24, 0.66); max-width: 48ch; }
.stack-front .btn { margin-top: 18px; }

/* ---------- intro ---------- */

.intro { background: var(--paper); padding: 160px 0 150px; }

.statement {
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.inline-media {
  display: inline-block;
  width: 1.65em;
  height: 1em;
  margin: 0 0.18em;
  vertical-align: -0.12em;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  background: var(--paper-2);
}
.inline-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.inline-media:hover img { transform: scale(1.08); }

.intro-foot { margin-top: 40px; text-align: center; font-size: 14px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- courses ---------- */

.courses { background: var(--paper-2); padding: 160px 0; scroll-margin-top: 76px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 80px; margin-bottom: 62px; }
.section-side { max-width: 460px; color: #3f464a; font-size: 16px; line-height: 1.7; }
.section-side .arrow-link { margin-top: 16px; }
.section-side .track-hint { margin-top: 18px; font-size: 14px; color: var(--muted); }
.section-side .track-hint strong { color: var(--ink); font-weight: 600; }
.section-head.on-dark .section-side { color: rgba(240, 242, 238, 0.64); }

.age-switch { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.age-switch button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 112px;
  padding: 11px 18px;
  border: 0;
  background: rgba(15, 20, 24, 0.06);
  color: var(--ink);
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.age-switch button:hover { background: rgba(15, 20, 24, 0.12); transform: translateY(-2px); }
.age-switch button.active { background: var(--ink); color: var(--paper); }
.age-value { font-size: 14px; font-weight: 600; }
.age-label { font-size: 14px; opacity: 0.6; }

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

.track-row {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 240px;
  gap: 40px;
  padding: 0;
  align-items: stretch;
  transition: transform 0.3s ease;
}
.track-row:not(.active):hover { transform: translateX(4px); }
.track-row:not(.active):hover .track-lead { filter: brightness(1.04); }
.track-row.active .track-lead { box-shadow: inset 0 -6px 0 var(--ink); }

.track-lead { padding: 30px; transition: filter 0.25s ease; }
.track-copy { padding: 30px 0; }
.track-meta { padding: 30px 0 30px; }

.track-stage { font-size: 14px; letter-spacing: 0.04em; opacity: 0.62; }
.track-lang { margin-top: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.track-stage { margin-top: 8px; }
.track-copy .track-title { margin-top: 0; font-size: 26px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; opacity: 1; }
.track-copy p { margin-top: 10px; font-size: 16px; line-height: 1.7; opacity: 0.78; max-width: 56ch; }
.track-meta { font-size: 14px; line-height: 1.7; }
.track-meta p { opacity: 0.8; }
.track-meta a { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.track-meta a:hover { color: var(--coral); }
.track-row.active .track-meta a:hover { color: inherit; opacity: 0.72; }

/* ---------- works ---------- */

.showcase { background: var(--ink); color: var(--paper); padding: 160px 0; }
.showcase h2 { color: var(--paper); }

.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.work { grid-column: span 5; }
.work-large { grid-column: span 7; grid-row: span 2; }
.work-media {
  overflow: hidden;
  background: var(--ink-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.work-large .work-media { aspect-ratio: 4 / 3; }
.work:not(.work-large) .work-media { aspect-ratio: 16 / 9; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.work:hover .work-media img { transform: scale(1.035); }
.work figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  font-size: 14px;
  color: rgba(240, 242, 238, 0.55);
}
.work figcaption span:last-child { text-align: right; }

/* ---------- features ---------- */

.features { background: var(--paper); padding: 160px 0; }
.features-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; align-items: start; }
.features-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.media-caption { margin-top: 14px; font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 40ch; }
.features-copy h2 { max-width: 10ch; }
.features-lead { margin-top: 22px; font-size: 18px; line-height: 1.75; color: #3f464a; max-width: 54ch; }

.point-list { list-style: none; margin-top: 46px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 32px; }
.point-mark { display: block; width: 13px; height: 13px; margin-bottom: 12px; }
.point-list h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.point-list p { margin-top: 6px; font-size: 16px; line-height: 1.65; color: #3f464a; }

/* ---------- news index ---------- */

.news-preview { background: var(--paper-2); padding: 160px 0 90px; }
.news-index { display: grid; gap: 8px; }
.news-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 130px;
  gap: 40px;
  padding: 30px 28px;
  background: var(--paper);
  transition: background 0.2s ease, transform 0.2s ease;
}
.news-row:hover { background: #f7f8f2; transform: translateX(4px); }
.news-date { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.news-date .cat { color: var(--coral); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; }
.news-main h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.32; letter-spacing: -0.02em; font-weight: 600; }
.news-main p { margin-top: 10px; font-size: 16px; line-height: 1.65; color: #3f464a; max-width: 66ch; }
.news-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.price-tag { font-size: 14px; color: var(--muted); }

.news-index-preview .news-row { background: transparent; padding: 26px 0; }
.news-index-preview .news-row:hover { background: transparent; transform: translateX(6px); }

/* ---------- home contact ---------- */

.home-contact { background: var(--paper); padding: 110px 0 160px; }
.contact-band {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  padding: 64px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.contact-band h2 { font-size: clamp(2rem, 3.6vw, 3.6rem); max-width: 12ch; color: var(--paper); }
.contact-band-copy > p { margin-top: 20px; color: rgba(240, 242, 238, 0.64); max-width: 46ch; font-size: 16px; }
.contact-band-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.contact-band-side { display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.contact-line { font-size: 14px; line-height: 1.7; color: rgba(240, 242, 238, 0.82); }
.contact-line span { display: block; font-size: 14px; letter-spacing: 0.08em; color: rgba(240, 242, 238, 0.4); margin-bottom: 3px; }
.contact-line a { text-decoration: underline; text-underline-offset: 4px; }
.contact-line a:hover { color: var(--coral); }

/* ---------- page hero / news page ---------- */

.page-hero { background: var(--ink); color: var(--paper); padding: 158px 0 96px; }
.page-hero h1 { font-size: clamp(3rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.page-lead { margin-top: 26px; max-width: 760px; font-size: 18px; line-height: 1.75; color: rgba(240, 242, 238, 0.66); }

.news-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: end; }
.news-meta { margin-top: 22px; font-size: 14px; color: rgba(240, 242, 238, 0.42); letter-spacing: 0.04em; }
.pay-card { background: var(--paper); color: var(--ink); padding: 24px; }
.pay-card-head { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.pay-card-head p { font-weight: 600; color: var(--ink); }
.pay-card-body { display: flex; gap: 18px; align-items: center; margin-top: 16px; }
.pay-card-body img { width: 150px; height: 150px; padding: 6px; background: #fff; flex: none; }
.pay-card-copy p { font-size: 14px; line-height: 1.6; color: #3f464a; }
.pay-card-copy .btn { margin-top: 14px; }

.news-list-section { background: var(--paper-2); padding: 96px 0 140px; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-row button {
  height: 40px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease;
}
.filter-row button:hover { background: rgba(15, 20, 24, 0.07); }
.filter-row button.active { background: var(--ink); color: var(--paper); }
.filter-count { margin-left: auto; font-size: 14px; color: var(--muted); }

.news-index-full .news-row { grid-template-columns: 150px minmax(0, 1fr) 120px; padding: 32px 28px; }
.news-index-full .news-main h2 { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.32; letter-spacing: -0.02em; font-weight: 600; }
.news-title-btn { border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; }
.news-title-btn:hover { color: var(--coral); }
.news-source { margin-top: 10px; font-size: 14px; color: var(--muted); }
.empty-state { padding: 60px 0; font-size: 14px; color: var(--muted); }

.news-footnote {
  margin-top: 56px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  padding: 28px 32px;
}
.news-footnote p { font-size: 14px; line-height: 1.7; color: rgba(240, 242, 238, 0.72); max-width: 72ch; }
.news-footnote .btn { flex: none; background: var(--coral); }

/* ---------- about ---------- */

.about-hero { padding-bottom: 100px; }
.about-intro { background: var(--paper); padding: 140px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.about-statement h2 { font-size: clamp(2.1rem, 3.3vw, 3.4rem); line-height: 1.16; max-width: 15ch; }
.about-copy p { font-size: 16px; line-height: 1.8; color: #3f464a; }
.about-copy p + p { margin-top: 20px; }

.facts-row { margin-top: 84px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fact { background: var(--paper-2); padding: 28px 24px; }
.fact span { display: block; font-size: clamp(1.9rem, 2.8vw, 2.9rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.fact p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }

.principles { background: var(--ink); color: var(--paper); padding: 150px 0; }
.principles h2 { color: var(--paper); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 56px; }
.principle { padding: 36px 32px 44px; min-height: 280px; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.principle h3 { font-size: 21px; line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; }
.principle p { margin-top: 22px; font-size: 16px; line-height: 1.7; color: rgba(15, 20, 24, 0.72); }

.about-team { background: var(--paper); padding: 150px 0; }
.team-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 90px; align-items: center; }
.team-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.team-copy h2 { font-size: clamp(2rem, 3.2vw, 3.3rem); line-height: 1.15; max-width: 16ch; }
.team-copy p { margin-top: 20px; font-size: 16px; line-height: 1.8; color: #3f464a; }
.team-copy .arrow-link { margin-top: 26px; }

.credentials { background: var(--paper-2); padding: 120px 0; }
.credentials-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 90px; }
.credentials h2 { font-size: clamp(1.9rem, 2.8vw, 2.8rem); }
.credentials-grid > div > p { margin-top: 18px; font-size: 14px; line-height: 1.75; color: #3f464a; max-width: 40ch; }
.credential-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 24px; }
.credential-list dt { font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }
.credential-list dd { margin: 5px 0 0; font-size: 14px; line-height: 1.55; }
.credential-list a { text-decoration: underline; text-underline-offset: 4px; }

.about-cta { background: var(--ink); color: var(--paper); padding: 120px 0; }
.about-cta-inner { text-align: center; }
.about-cta h2 { color: var(--paper); }
.about-cta p { margin: 20px auto 28px; font-size: 14px; line-height: 1.7; color: rgba(240, 242, 238, 0.62); max-width: 52ch; }

/* ---------- contact ---------- */

.contact-hero { padding-bottom: 90px; }
.contact-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: end; }
.contact-big { text-align: right; }
.contact-big a { display: block; font-size: clamp(1.9rem, 3vw, 3rem); font-weight: 600; letter-spacing: -0.03em; color: var(--coral); }
.contact-big span { display: block; margin-top: 8px; font-size: 14px; color: rgba(240, 242, 238, 0.45); }

.contact-main { background: var(--paper); padding: 120px 0 150px; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 100px; align-items: start; }
.contact-block { padding: 26px 0; }
.contact-label { font-size: 14px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.contact-value { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.65; max-width: 34ch; }
.contact-value a:hover { color: var(--coral); }
.contact-block .arrow-link { margin-top: 12px; }

.contact-form { background: var(--paper-2); padding: 48px; }
.contact-form h2 { font-size: clamp(1.8rem, 2.4vw, 2.4rem); }
.form-note { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 52ch; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-top: 18px; }
.field > span { display: block; margin-bottom: 8px; font-size: 14px; color: #3f464a; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid transparent;
  background: var(--paper);
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: #8b8a84; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); outline: none; }
.form-error { margin-top: 16px; font-size: 14px; color: #b42318; }
.form-success { margin-top: 16px; font-size: 14px; line-height: 1.6; color: #1b6e43; }

/* ---------- auth ---------- */

.view-auth { background: var(--paper); min-height: calc(100svh - 68px); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - 68px); }
.auth-aside {
  background: var(--ink);
  color: var(--paper);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.auth-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.auth-quote { font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1.45; letter-spacing: -0.03em; font-weight: 500; max-width: 19ch; }
.auth-small { font-size: 14px; line-height: 1.8; color: rgba(240, 242, 238, 0.5); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 80px 40px; }
.auth-box { width: min(440px, 100%); }
.auth-box h1 { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.1; letter-spacing: -0.035em; }
.auth-sub { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.auth-box .field input { background: var(--paper-2); }
.auth-box form { margin-top: 12px; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 74px; }
.password-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; }
.auth-switch { margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.auth-switch a:hover { color: var(--coral); }
.auth-note { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 12, 14, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 0.2s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.pay-modal {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  width: min(920px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  padding: 48px;
  animation: rise-in 0.26s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close span { position: absolute; width: 18px; height: 2px; background: var(--ink); }
.modal-close span:first-child { transform: rotate(45deg); }
.modal-close span:last-child { transform: rotate(-45deg); }
.modal-close:hover { background: rgba(15, 20, 24, 0.06); }

.pay-copy h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.3; letter-spacing: -0.025em; padding-right: 26px; }
.pay-desc { margin-top: 16px; font-size: 16px; line-height: 1.7; color: #3f464a; }
.pay-instruction { margin-top: 24px; padding: 16px; background: var(--paper-2); font-size: 14px; line-height: 1.75; color: #3f464a; }
.pay-actions { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.copy-note { margin-top: 12px; font-size: 14px; color: #1b6e43; }

.qr-panel { background: var(--paper-2); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; align-self: start; }
.qr-label { font-size: 14px; color: var(--muted); }
.qr-panel img { width: 260px; max-width: 100%; height: auto; background: #fff; padding: 10px; }
.qr-price { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: var(--paper); padding: 96px 0 36px; }
.footer-mark { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 56px; }
.footer-tagline { font-size: 14px; line-height: 1.6; color: rgba(240, 242, 238, 0.45); max-width: 22ch; text-align: right; }
.footer-grid { display: grid; grid-template-columns: 0.8fr 0.9fr 1.3fr 1.3fr; gap: 40px; }
.footer-label { font-size: 14px; letter-spacing: 0.08em; color: rgba(240, 242, 238, 0.35); margin-bottom: 16px; }
.footer-col a,
.footer-col p { display: block; font-size: 14px; line-height: 1.85; color: rgba(240, 242, 238, 0.68); }
.footer-col a:hover { color: var(--paper); }
.footer-contact p { max-width: 30ch; }
.footer-meta p { font-size: 14px; color: rgba(240, 242, 238, 0.44); }
.footer-meta a { display: inline; font-size: 14px; color: rgba(240, 242, 238, 0.6); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 72px;
  padding-top: 22px;
  font-size: 14px;
  color: rgba(240, 242, 238, 0.32);
}

/* ---------- motion ---------- */

.anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.anim .reveal.is-in { opacity: 1; transform: none; }

.anim .reveal .track-row,
.anim .reveal .work,
.anim .reveal .point-list li,
.anim .reveal .news-row,
.anim .reveal .fact,
.anim .reveal .principle,
.anim .reveal .contact-band,
.anim .reveal .features-media,
.anim .reveal .features-copy {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.anim .reveal.is-in .track-row,
.anim .reveal.is-in .work,
.anim .reveal.is-in .point-list li,
.anim .reveal.is-in .news-row,
.anim .reveal.is-in .fact,
.anim .reveal.is-in .principle,
.anim .reveal.is-in .contact-band,
.anim .reveal.is-in .features-media,
.anim .reveal.is-in .features-copy {
  opacity: 1;
  transform: none;
}

.anim .reveal.is-in .track-row:nth-child(2) { transition-delay: 0.06s; }
.anim .reveal.is-in .track-row:nth-child(3) { transition-delay: 0.12s; }
.anim .reveal.is-in .track-row:nth-child(4) { transition-delay: 0.18s; }
.anim .reveal.is-in .work:nth-child(2) { transition-delay: 0.08s; }
.anim .reveal.is-in .work:nth-child(3) { transition-delay: 0.16s; }
.anim .reveal.is-in .point-list li:nth-child(2) { transition-delay: 0.05s; }
.anim .reveal.is-in .point-list li:nth-child(3) { transition-delay: 0.1s; }
.anim .reveal.is-in .point-list li:nth-child(4) { transition-delay: 0.15s; }
.anim .reveal.is-in .point-list li:nth-child(5) { transition-delay: 0.2s; }
.anim .reveal.is-in .point-list li:nth-child(6) { transition-delay: 0.25s; }
.anim .reveal.is-in .news-row:nth-child(2) { transition-delay: 0.07s; }
.anim .reveal.is-in .news-row:nth-child(3) { transition-delay: 0.14s; }
.anim .reveal.is-in .fact:nth-child(2) { transition-delay: 0.06s; }
.anim .reveal.is-in .fact:nth-child(3) { transition-delay: 0.12s; }
.anim .reveal.is-in .fact:nth-child(4) { transition-delay: 0.18s; }
.anim .reveal.is-in .principle:nth-child(2) { transition-delay: 0.08s; }
.anim .reveal.is-in .principle:nth-child(3) { transition-delay: 0.16s; }

.stack-band { animation: stack-in 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.stack-band:nth-child(1) { animation-delay: 0.15s; }
.stack-band:nth-child(2) { animation-delay: 0.24s; }
.stack-band:nth-child(3) { animation-delay: 0.33s; }
.stack-band:nth-child(4) { animation-delay: 0.42s; }
@keyframes stack-in {
  from { transform: translateY(38px); }
  to { transform: translateY(0); }
}

.hero h1, .hero-sub, .hero-actions { animation: hero-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero h1 { animation-delay: 0.02s; }
.hero-sub { animation-delay: 0.1s; }
.hero-actions { animation-delay: 0.18s; }
@keyframes hero-in {
  from { transform: translateY(22px); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .anim .reveal,
  .anim .reveal .track-row,
  .anim .reveal .work,
  .anim .reveal .point-list li,
  .anim .reveal .news-row,
  .anim .reveal .fact,
  .anim .reveal .principle,
  .anim .reveal .contact-band,
  .anim .reveal .features-media,
  .anim .reveal .features-copy,
  .stack-band {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav { display: none; }
  .header-account { display: none; }
  .menu-toggle { display: flex; justify-self: end; }
  .brand-cn { display: none; }

  .hero h1 { font-size: clamp(3.2rem, 10vw, 6rem); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .work-large { grid-column: span 2; grid-row: auto; }
  .work { grid-column: span 1; }
  .features-grid { gap: 60px; }
  .section-head { gap: 48px; }
  .about-grid, .team-grid, .credentials-grid { gap: 56px; }
  .contact-grid { gap: 60px; }
  .auth-aside { padding: 40px; }
}

@media (max-width: 900px) {
  .container { width: calc(100% - 48px); }

  .hero { min-height: 760px; }
  .hero-inner { padding-top: 40px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5.2rem); }
  .hero-sub { margin-top: 18px; font-size: 18px; max-width: 350px; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-actions .btn { height: 48px; padding: 0 20px; font-size: 14px; }

  .stack { top: 54%; bottom: -20px; width: calc(100% - 32px); }
  .stack-band { height: 140px; top: calc(var(--i) * 50px); padding: 14px 18px; }
  .stack-band.front { height: calc(100% - 150px); min-height: 215px; }
  .stack-tab { top: -26px; height: 26px; padding: 0 16px; font-size: 14px; }
  .stack-row { height: 32px; }
  .stack-age { font-size: 14px; }
  .stack-lang { font-size: 18px; }
  .stack-front { margin-top: 12px; }
  .stack-front-title { font-size: 20px; }
  .stack-front-text { font-size: 14px; }
  .stack-front .btn { height: 44px; margin-top: 12px; padding: 0 20px; font-size: 14px; }

  .intro { padding: 100px 0 96px; }
  .statement { font-size: clamp(23px, 5.2vw, 32px); text-align: left; line-height: 1.5; }

  .courses, .showcase, .features, .news-preview, .home-contact { padding: 100px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 42px; }
  .section-side { max-width: 560px; }

  .track-row { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .track-lead { padding: 22px; }
  .track-copy { padding: 22px; }
  .track-lang { font-size: 26px; }
  .track-meta { padding: 0 22px 22px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
  .track-meta a { margin-top: 8px; width: 100%; }

  .features-grid { grid-template-columns: 1fr; gap: 36px; }
  .features-media { max-width: 520px; }
  .features-copy h2 { max-width: none; }
  .point-list { margin-top: 32px; }

  .news-row, .news-index-full .news-row { grid-template-columns: 1fr; gap: 14px; padding: 24px 20px; }
  .news-date { flex-direction: row; align-items: center; gap: 14px; }
  .news-action { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .filter-count { margin-left: 0; width: 100%; }

  .contact-band { grid-template-columns: 1fr; gap: 36px; padding: 40px 28px; }
  .contact-band-side { justify-content: flex-start; }

  .news-hero-grid, .contact-hero-grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .pay-card { max-width: 480px; }
  .contact-big { text-align: left; }

  .about-grid, .team-grid, .credentials-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .facts-row { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle { min-height: 220px; }
  .team-media { max-width: 560px; }
  .credential-list { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 32px 24px; }

  .auth-grid { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-panel { padding: 64px 24px 80px; }

  .pay-modal { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .qr-panel { width: 100%; }
  .qr-panel img { width: 220px; }

  .footer-mark { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-tagline { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { margin-top: 52px; }
}

@media (min-width: 561px) and (max-width: 900px) {
  .stack { top: 50%; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .stack-tab { display: none; }
  h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .page-hero { padding: 130px 0 70px; }
  .page-hero h1 { font-size: clamp(2.7rem, 11vw, 4rem); }
  .page-lead { font-size: 16px; margin-top: 20px; }

  .hero h1 { font-size: 14.2vw; }
  .hero-sub { max-width: 330px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: min(300px, 100%); }

  .inline-media { width: 1.35em; }

  .age-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .age-switch button { min-width: 0; }

  .works { grid-template-columns: 1fr; gap: 18px; }
  .work-large { grid-column: span 1; }

  .point-list { grid-template-columns: 1fr; gap: 24px; }

  .contact-band-actions { flex-direction: column; align-items: flex-start; }
  .news-footnote { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; }
  .news-footnote .btn { width: 100%; }

  .facts-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fact { padding: 22px 18px; }
  .principle { padding: 28px 24px 34px; }
  .credential-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 20px; }

  .pay-card { padding: 20px; }
  .pay-card-body { gap: 14px; align-items: flex-start; }
  .pay-card-body img { width: 118px; height: 118px; }
  .pay-card-head { flex-direction: column; gap: 4px; }

  .pay-modal { padding: 28px 20px; max-height: 92vh; }
  .pay-copy h2 { padding-right: 26px; }
  .pay-actions { flex-wrap: wrap; gap: 14px; }
  .qr-panel img { width: 190px; }

  .footer-mark .pixel-mark { height: 56px; width: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .auth-panel { padding: 48px 20px 64px; }
}
