:root {
  color-scheme: light;
  --ink: #0f172a;
  --secondary: #475569;
  --accent: #806414;
  --accent-hover: #624c0e;
  --accent-on-dark: #e6cf86;
  --dark: #10151e;
  --line: #dbe0e7;
  --wash: #f4f6f8;
  --gutter: clamp(1.125rem, 5vw, 4.5rem);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  background: #fff;
  color: var(--ink);
}

* { box-sizing: border-box; }

html { scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  line-height: 1.65;
}

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

a { color: inherit; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 78rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 0;
  left: var(--gutter);
  padding: .75rem 1rem;
  transform: translateY(-150%);
  background: #fff;
  color: var(--ink);
}

.skip-link:focus { transform: translateY(.75rem); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .375rem;
  min-height: 2.75rem;
  text-decoration: none;
}

.brand img {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
}

.brand-wordmark {
  display: grid;
  gap: .125rem;
  padding-block: .25rem;
  line-height: 1.25;
}

.brand-wordmark :lang(en) { text-transform: uppercase; }

.brand-primary {
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 750;
}

.brand-secondary {
  color: var(--secondary);
  font-size: .6875rem;
  font-weight: 600;
}

.site-footer .brand-primary { color: #f6f7fa; }

.site-footer .brand-secondary { color: var(--accent-on-dark); }

.section-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(1rem, 1.75vw, 2rem);
}

.section-nav a,
.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--secondary);
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.section-nav a:hover,
.home-link:hover { color: var(--accent-hover); }

.header-actions, .language-switch {
  display: flex;
  align-items: center;
}

.header-actions {
  justify-self: end;
  gap: .75rem;
}

.language-switch {
  gap: .45rem;
  color: var(--secondary);
  font-size: .875rem;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.language-switch a[aria-current],
.language-switch a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: .23em;
}

.language-switch a[aria-current] { font-weight: 750; }

.home-link {
  padding-inline: .875rem;
  border: 1px solid var(--line);
  border-radius: .25rem;
}

.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 2.75rem;
  padding-inline: .75rem;
  border-radius: .25rem;
  background: var(--accent);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.account-link:hover { background: var(--accent-hover); }

.hero {
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(32rem, 44vw, 39rem);
}

.hero-content {
  z-index: 1;
  width: min(100%, 34rem);
  padding-block: 3.5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--accent-on-dark);
  font-size: .8125rem;
  font-weight: 750;
  letter-spacing: .18em;
}

.eyebrow::before {
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
  content: "";
}

.hero h1 {
  margin-block: .85rem .55rem;
  font-size: clamp(3.5rem, 7.5vw, 7rem);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.1;
}

:root:lang(en) .hero h1 {
  font-size: clamp(3.7rem, 7.5vw, 7rem);
  letter-spacing: -.045em;
  line-height: .97;
}

.hero-lead {
  color: #f6f7fa;
  font-size: clamp(1.13rem, 2.35vw, 1.6rem);
  font-weight: 700;
}

.hero-description {
  max-width: 23rem;
  margin-top: .85rem;
  color: #bfc9d8;
  line-height: 1.8;
}

.hero-content .button { margin-top: 1.75rem; }

.hero-figure {
  position: absolute;
  inset: 0 calc((100% - 100vw) / 2) 0 45%;
  height: 100%;
}

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

.hero-figure::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--dark), #10151e25 24%, transparent 52%),
    linear-gradient(0deg, #10151ed9, transparent 21%);
  pointer-events: none;
  content: "";
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  padding: .6rem 1rem;
  font-size: .9375rem;
  font-weight: 750;
  text-decoration: none;
}

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

.button-primary:hover { background: var(--accent-hover); }

.button-outline {
  border-color: var(--ink);
  background: #fff;
}

.button-outline:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

.button-outline span {
  border-left: 1px solid var(--line);
  padding-left: .6rem;
  color: var(--secondary);
  font-size: .8125rem;
  letter-spacing: .07em;
}

.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-on-dark); }

.section { padding-block: clamp(3rem, 6.5vw, 6rem); }

.section-heading h2 {
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.section-heading p {
  max-width: 35rem;
  margin-top: .75rem;
  color: var(--secondary);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.route-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  min-height: 10.5rem;
  padding: clamp(1.125rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .4rem;
}

.route-card h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.35;
}

.route-card p {
  margin-top: .55rem;
  color: var(--secondary);
}

.route-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border-radius: .3rem;
  background: #eef2f7;
  color: var(--accent-hover);
}

.route-icon::before {
  width: 1.4rem;
  aspect-ratio: 1;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.route-icon::after {
  position: absolute;
  width: .78rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  content: "";
}

.route-icon--mpw::after {
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100%,
    linear-gradient(currentColor, currentColor) center / 100% 1px;
  background-repeat: no-repeat;
}

.preparation {
  border-block: 1px solid var(--line);
  background: var(--wash);
}

.preparation-grid,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.preparation .button { margin-top: 1.25rem; }

.checklist {
  border-top: 1px solid #cbd3df;
}

.checklist > div {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: .85rem;
  align-items: baseline;
  padding-block: 1.05rem;
  border-bottom: 1px solid #cbd3df;
}

.checklist dt {
  display: grid;
  grid-template-columns: .6rem 1fr;
  gap: .65rem;
  align-items: baseline;
  font-weight: 750;
}

.checklist dt::before {
  height: 2px;
  align-self: center;
  background: var(--accent);
  content: "";
}

.checklist dd, .faq-list p { color: var(--secondary); }

.faq-list { border-top: 1px solid var(--line); }

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  display: grid;
  grid-template-columns: 1fr 1.25rem;
  gap: 1rem;
  min-height: 3.75rem;
  align-items: center;
  padding: .75rem .4rem .75rem 0;
  font-weight: 720;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  width: .8rem;
  height: .8rem;
  justify-self: end;
  background:
    linear-gradient(var(--accent-hover), var(--accent-hover)) center / 100% 2px,
    linear-gradient(var(--accent-hover), var(--accent-hover)) center / 2px 100%;
  background-repeat: no-repeat;
  content: "";
}

.faq-list details[open] summary::after { background-size: 100% 2px, 0 0; }

.faq-list summary:hover { color: var(--accent-hover); }

.faq-list p { padding: 0 2rem 1rem 0; }

.site-footer {
  background: var(--ink);
  color: #c7d0de;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem 1.5rem;
  padding-block: 1.5rem;
  font-size: .875rem;
}

.footer-meta {
  display: flex;
  justify-self: center;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .125rem .875rem;
}

.footer-meta small {
  color: #a5b2c7;
  font-size: .75rem;
}

.footer-inner > a:last-child {
  justify-self: end;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-underline-offset: .25em;
}

@media (max-width: 860px) {
  .hero-inner { display: block; min-height: 0; }

  .hero-content { padding-block: 2.8rem 1.1rem; }

  .hero-figure {
    position: relative;
    inset: auto;
    width: calc(100% + 2 * var(--gutter));
    height: clamp(14rem, 59vw, 24rem);
    margin-inline: calc(-1 * var(--gutter));
  }

  .hero-figure img { object-position: center 43%; }

  .hero-figure::after {
    background:
      linear-gradient(180deg, var(--dark), transparent 28%),
      linear-gradient(0deg, #10151ebb, transparent 28%);
  }

  .preparation-grid, .faq-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1320px) {
  .home-link { display: none; }
}

@media (max-width: 1150px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0 .75rem;
    padding-top: .625rem;
  }

  .section-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 0 clamp(.7rem, 4vw, 2rem);
    margin-top: .5rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 800px) {
  .brand-wordmark :lang(en) { text-transform: none; }

  .brand-primary:lang(en) { font-size: clamp(.75rem, 3.4vw, .875rem); }
}

@media (max-width: 700px) {
  .header-inner { grid-template-columns: minmax(0, 1fr); }

  .header-actions {
    grid-row: 3;
    justify-self: stretch;
    justify-content: space-between;
    padding-bottom: .65rem;
  }

  .brand img {
    width: 2.125rem;
    height: 2.125rem;
  }
}

@media (max-width: 680px) {
  .route-grid { grid-template-columns: 1fr; gap: .75rem; }

  .route-card { min-height: auto; gap: .85rem; }

  .checklist > div { grid-template-columns: 1fr; gap: .28rem; }

  .checklist dd { padding-left: 1.25rem; }

  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; }

  .footer-inner .brand { grid-column: 1 / -1; }

  .footer-inner .brand-secondary { font-size: .625rem; }

  .footer-meta { grid-column: 1; justify-self: start; }
}

@media (max-width: 380px) {
  .section-nav { gap: 0 .55rem; }

  .section-nav a { font-size: .875rem; }
}

html[lang] .brand img {
  width: clamp(40px, 5vw, 56px);
  height: clamp(40px, 5vw, 56px);
  flex: none;
}
html[lang=en] .brand .brand-primary {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 750;
  line-height: 1.15;
}
