:root {
  --gold: #9d7c47;
  --gold-dark: #765b31;
  --ink: #111111;
  --muted: #777777;
  --line: #e8e8e8;
  --paper: #ffffff;
  --soft: #f2f2f2;
  --footer: #444444;
  --shell: 1440px;
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-display-en: "Playfair Display", "Noto Serif SC", Georgia, serif;
}

html[lang="en-US"] {
  --font-display: var(--font-display-en);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
}

.nav-wrap {
  position: relative;
  z-index: 30;
  height: 80px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.nav-shell {
  display: flex;
  align-items: center;
  height: 80px;
}

.brand {
  width: 401px;
  min-width: 320px;
  height: 80px;
  display: flex;
  align-items: center;
}

.brand img {
  width: 401px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  flex: 1;
  min-width: 0;
  height: 80px;
  margin-left: 22px;
}

.main-nav ul {
  display: flex;
  height: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav li {
  position: relative;
  height: 80px;
}

.main-nav li > a {
  position: relative;
  display: grid;
  place-items: center;
  height: 80px;
  padding: 0 19px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav li:not(:last-child) > a::after {
  position: absolute;
  right: 0;
  top: 31px;
  content: "";
  width: 1px;
  height: 18px;
  background: #dddddd;
}

.main-nav li > a::before {
  position: absolute;
  left: 50%;
  bottom: 0;
  content: "";
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.24s ease;
}

.main-nav li:hover > a::before,
.main-nav li.active > a::before {
  width: calc(100% - 38px);
}

.submenu {
  position: absolute;
  top: 80px;
  left: 50%;
  width: 210px;
  padding: 0;
  background: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: 0.24s ease;
}

.submenu.wide {
  width: 250px;
}

.submenu a {
  display: block;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid #eeeeee;
  color: #333333;
  font-size: 14px;
  line-height: 40px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submenu a:hover {
  color: var(--gold);
  font-weight: 700;
}

.main-nav li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
}

.search {
  display: flex;
  align-items: center;
  width: 188px;
  height: 50px;
  padding: 0 14px;
  background: #f2f2f2;
  border-radius: 25px;
}

.search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #1f1f1f;
  font-size: 14px;
}

.search button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.search button::before {
  display: block;
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #333;
  border-radius: 50%;
}

.search button::after {
  display: block;
  content: "";
  width: 8px;
  height: 2px;
  margin: -2px 0 0 13px;
  background: #333;
  transform: rotate(45deg);
}

.lang-switch {
  min-width: 76px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  color: var(--gold);
  background: #fff;
  cursor: pointer;
}

.lang-switch:hover {
  color: #fff;
  background: var(--gold);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #111111;
}

.hero {
  position: relative;
  height: 650px;
  overflow: hidden;
}

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

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 43%;
  left: 42.5%;
  display: none;
  width: min(920px, 54vw);
  transform: translateY(-50%);
  color: #172029;
  text-align: left;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.55);
}

html[lang="en-US"] .hero-copy {
  display: block;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display-en);
  font-size: 72px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 18px 0 0 4px;
  font-family: var(--font-body);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-dot {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}

.section {
  overflow: hidden;
}

.section-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  margin: 0 auto 8px;
}

.section-title::before {
  position: absolute;
  top: 9px;
  left: calc(50% - 145px);
  content: "";
  width: 117px;
  height: 117px;
  border: 2px solid rgba(157, 124, 71, 0.2);
  border-radius: 50%;
}

.section-title::after {
  position: absolute;
  top: 34px;
  left: calc(50% - 120px);
  content: "";
  width: 68px;
  height: 68px;
  border-top: 16px solid rgba(157, 124, 71, 0.72);
  border-left: 16px solid rgba(157, 124, 71, 0.72);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.section-title h1,
.section-title h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

html[lang="en-US"] .section-title h1,
html[lang="en-US"] .section-title h2 {
  font-size: 44px;
  font-weight: 700;
}

.section-title span {
  width: 75px;
  height: 2px;
  margin-left: 24px;
  background: #000;
}

.section-lede {
  max-width: 1050px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.85;
  text-align: center;
}

.about {
  margin-top: 34px;
}

.about-text {
  display: block;
  max-width: 1320px;
  margin: 25px auto 0;
  color: #333333;
  font-size: 16px;
  line-height: 32px;
  text-align: center;
}

.moment-strip {
  width: min(1080px, 100%);
  margin: 30px auto 0;
  overflow: hidden;
}

.moment-track {
  display: flex;
  width: max-content;
  animation: moments 36s linear infinite;
}

.moment-track img {
  width: 340px;
  aspect-ratio: 340 / 234;
  margin: 0 13px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.moment-strip:hover .moment-track {
  animation-play-state: paused;
}

.moment-track img:hover {
  transform: scale(1.05);
}

@keyframes moments {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-1098px);
  }
}

.gold-link {
  display: block;
  width: 214px;
  height: 56px;
  margin: 34px auto 0;
  padding-left: 26px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 16px;
  line-height: 54px;
  transition: 0.2s ease;
}

.gold-link::after {
  content: ">";
  float: right;
  margin-right: 24px;
}

.gold-link:hover {
  color: #ffffff;
  background: var(--gold);
}

.about-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1008px, 100%);
  margin: 54px auto 0;
}

.about-tabs::before {
  position: absolute;
  top: 46px;
  left: 0;
  content: "";
  width: 100%;
  height: 1px;
  background: #dddddd;
}

.about-tabs a {
  position: relative;
  z-index: 1;
  text-align: center;
}

.about-tabs span {
  display: block;
  height: 40px;
  color: #999999;
  font-size: 18px;
  line-height: 40px;
  transition: 0.2s ease;
}

.about-tabs i {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: #ffffff;
}

.about-tabs a:hover span {
  color: #000000;
  font-size: 22px;
  font-weight: 700;
}

.about-tabs a:hover i {
  border: 4px solid var(--gold);
}

.stats {
  height: 220px;
  margin-top: 50px;
  padding-top: 60px;
  color: #ffffff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.2)),
    url("assets/original/hero.jpg") center 46% / cover fixed;
}

.stat-item {
  width: max-content;
  margin: 0 auto;
  text-align: center;
}

.stat-item strong {
  position: relative;
  display: inline-block;
  font-size: 60px;
  line-height: 1;
}

.stat-item strong::after {
  position: absolute;
  right: -20px;
  top: 3px;
  content: "+";
  color: #fff;
  font-size: 22px;
}

.stat-item p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 40px;
}

.courses {
  margin-top: 35px;
}

.course-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 25px auto 0;
}

.course-tabs button {
  position: relative;
  min-height: 112px;
  padding: 22px 12px 38px;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  color: #000000;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  text-overflow: ellipsis;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.course-tabs button::before {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 31px;
  content: "";
  height: 1px;
  background: #eeeeee;
}

.course-tabs button::after {
  position: absolute;
  left: 50%;
  bottom: 6px;
  content: "+";
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 650;
  transform: translateX(-50%);
}

.course-tabs button.is-active,
.course-tabs button:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(157, 124, 71, 0.08);
  color: #111111;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 2%;
  margin-top: 36px;
}

.course-card {
  position: relative;
  min-width: 0;
  padding: 10px;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.course-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.course-card figure::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: rgba(157, 124, 71, 0);
  transition: 0.35s ease;
}

.course-card img {
  width: 100%;
  aspect-ratio: 800 / 550;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.course-card h3 {
  height: 55px;
  margin: 10px 0 0;
  color: #000000;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 55px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-card:hover img {
  transform: scale(1.05);
}

.course-card:hover figure::before {
  background: rgba(157, 124, 71, 0.18);
}

.course-card.is-hidden {
  display: none;
}

.news {
  margin-top: 90px;
  padding: 50px 0;
  background: #f2f2f2;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px 2%;
  margin-top: 60px;
}

.news-card {
  min-height: 175px;
  padding: 25px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #ffffff;
  transition: 0.2s ease;
}

.news-card h3 {
  height: 40px;
  margin: 0;
  color: #000000;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card time {
  display: block;
  height: 30px;
  color: #aaaaaa;
  font-size: 16px;
  line-height: 30px;
}

.news-card p {
  display: -webkit-box;
  height: 56px;
  margin: 0;
  color: #999999;
  font-size: 14px;
  line-height: 28px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card:hover {
  border-color: var(--gold);
}

.news-more {
  margin-top: 20px;
  margin-bottom: 34px;
}

.links {
  padding: 10px 0;
}

.links-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.links h2 {
  margin: 0;
  color: var(--gold);
  font-size: 20px;
}

.links p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.footer {
  color: #ffffff;
  background: var(--footer);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 48px;
  padding: 58px 0 80px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(115px, 1fr));
  gap: 32px;
}

.footer dt {
  width: max-content;
  margin-bottom: 20px;
  padding-right: 32px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(90deg, transparent calc(100% - 20px), var(--gold) calc(100% - 20px), var(--gold) calc(100% - 8px), transparent calc(100% - 8px));
}

.footer dd {
  margin: 0;
}

.footer dd a {
  display: block;
  height: 30px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  line-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer dd a:hover {
  color: #ffffff;
}

.footer-contact {
  min-width: 0;
}

.service-line {
  display: flex;
  align-items: center;
  gap: 38px;
  margin: 0;
  color: #ffffff;
  font-size: 16px;
}

.service-line::before {
  content: "";
  width: 100px;
  height: 2px;
  background: #a2a2a2;
}

.footer-contact h2 {
  margin: 10px 0 10px 20px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
}

.footer-contact h2 em {
  color: var(--gold);
  font-style: normal;
}

.partner {
  display: flex;
  align-items: center;
  gap: 38px;
  margin: 0 0 35px 20px;
  color: #ffffff;
  font-size: 16px;
}

.partner::after {
  content: "";
  width: 100px;
  height: 2px;
  background: #a2a2a2;
}

.contact-copy p {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 32px;
}

.message-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  resize: vertical;
}

.message-form input::placeholder,
.message-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.message-form button {
  height: 44px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: var(--gold);
  cursor: pointer;
}

.message-form button:hover {
  background: var(--gold-dark);
}

.footer-copy {
  height: 60px;
  color: #ffffff;
  background: var(--gold);
}

.footer-copy .shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  height: 60px;
}

.footer-copy p {
  margin: 0;
  font-size: 14px;
}

.quick-contact {
  position: fixed;
  right: 0;
  top: 250px;
  z-index: 40;
  width: 77px;
}

.quick-contact a,
.quick-contact button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 77px;
  min-height: 62px;
  margin-bottom: 1px;
  padding: 8px 10px;
  border: 0;
  color: #ffffff;
  background: var(--gold);
  cursor: pointer;
  overflow: hidden;
  transition: 0.28s ease;
}

.quick-contact strong {
  display: inline-block;
  min-width: 57px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

html[lang="en-US"] .quick-contact,
html[lang="en-US"] .quick-contact a,
html[lang="en-US"] .quick-contact button {
  width: 96px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 4px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1500px) {
  :root {
    --shell: 1200px;
  }

  .brand {
    width: 330px;
    min-width: 300px;
  }

  .brand img {
    width: 330px;
  }

  .main-nav li > a {
    padding: 0 13px;
  }

  .search {
    width: 160px;
  }
}

@media (max-width: 1180px) {
  .nav-wrap,
  .nav-shell {
    height: auto;
    min-height: 78px;
  }

  .nav-shell {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8px 0;
  }

  .brand,
  .brand img {
    width: 300px;
    min-width: 0;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    flex-basis: 100%;
    height: auto;
    order: 3;
    margin: 8px 0 0;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    display: grid;
    height: auto;
    border-top: 1px solid var(--line);
  }

  .main-nav li,
  .main-nav li > a {
    height: auto;
  }

  .main-nav li > a {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 4px;
  }

  .main-nav li:not(:last-child) > a::after,
  .main-nav li > a::before {
    display: none;
  }

  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .submenu.wide {
    width: 100%;
  }

  .submenu a {
    text-align: left;
    padding-left: 22px;
  }

  .nav-tools {
    margin-left: 0;
  }

  .hero {
    height: clamp(320px, 48vw, 560px);
  }

  .hero-copy h1 {
    font-size: 50px;
  }

  .hero-copy p {
    font-size: 21px;
  }

  .course-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .brand,
  .brand img {
    width: 245px;
  }

  .nav-tools {
    flex-basis: 100%;
    order: 2;
    width: 100%;
    margin-top: 8px;
  }

  .search {
    flex: 1;
    width: auto;
  }

  .lang-switch {
    min-width: 74px;
  }

  .hero {
    height: 315px;
  }

  .hero img {
    object-position: center;
  }

  .hero-copy {
    top: 43%;
    left: 42%;
    width: 55%;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-copy p {
    margin-top: 12px;
    font-size: 17px;
  }

  .section-title {
    padding-top: 60px;
  }

  .section-title h1,
  .section-title h2 {
    font-size: 30px;
  }

  .section-title span {
    width: 54px;
    margin-left: 16px;
  }

  .section-title::before {
    left: calc(50% - 115px);
    width: 92px;
    height: 92px;
  }

  .section-title::after {
    top: 28px;
    left: calc(50% - 96px);
    width: 52px;
    height: 52px;
    border-width: 12px;
  }

  .section-lede,
  .about-text {
    font-size: 15px;
    line-height: 28px;
  }

  .moment-track img {
    width: 250px;
    margin: 0 8px;
  }

  @keyframes moments {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-798px);
    }
  }

  .about-tabs {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }

  .about-tabs::before {
    display: none;
  }

  .stats {
    height: 180px;
    padding-top: 46px;
    background-attachment: scroll;
  }

  .stat-item strong {
    font-size: 48px;
  }

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

  .course-tabs button {
    min-height: 100px;
    padding: 18px 10px 34px;
    font-size: 15px;
    line-height: 1.2;
  }

  .course-tabs button::before {
    bottom: 29px;
  }

  .course-tabs button::after {
    bottom: 5px;
  }

  .course-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news {
    margin-top: 60px;
  }

  .news-grid {
    margin-top: 34px;
  }

  .links-inner,
  .footer-copy .shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-copy,
  .footer-copy .shell {
    height: auto;
    min-height: 60px;
    padding: 10px 0;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    padding: 42px 0 58px;
  }

  .service-line,
  .partner {
    gap: 16px;
  }

  .footer-contact h2 {
    margin-left: 0;
    font-size: 27px;
  }

  .partner {
    margin-left: 0;
  }

  .quick-contact {
    top: auto;
    right: 12px;
    left: 12px;
    bottom: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
  }

  .quick-contact a,
  .quick-contact button {
    justify-content: center;
    width: 58px;
    min-height: 58px;
    margin-bottom: 0;
    border-radius: 50%;
  }

  .quick-contact strong {
    min-width: 0;
    font-size: 12px;
  }

  html[lang="en-US"] .quick-contact {
    width: auto;
  }

  html[lang="en-US"] .quick-contact a,
  html[lang="en-US"] .quick-contact button {
    width: 82px;
    border-radius: 29px;
  }
}

@media (max-width: 430px) {
  .brand,
  .brand img {
    width: 220px;
  }

  .hero {
    height: 280px;
  }

  .course-tabs,
  .footer-nav {
    grid-template-columns: 1fr;
  }
}
