:root {
  --ink: #172033;
  --muted: #5e6a7d;
  --line: #d8dee8;
  --paper: #ffffff;
  --soft: #f4f6f9;
  --navy: #121f55;
  --blue: #1f5f99;
  --teal: #287c79;
  --gold: #b38b3d;
  --deep: #0b1230;
  --shadow: 0 16px 40px rgba(18, 31, 85, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
  background: var(--paper);
}

body.dialog-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

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

.topbar {
  background: var(--deep);
  color: #eef3ff;
  font-size: 14px;
}

.topbar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-band {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94)),
    radial-gradient(circle at 80% 30%, rgba(179, 139, 61, 0.18), transparent 28%);
  border-bottom: 1px solid var(--line);
}

.brand-row {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #ffffff, 0 8px 22px rgba(18, 31, 85, 0.18);
}

.brand strong {
  display: block;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
}

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

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

.primary-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(9, 18, 46, 0.16);
}

.nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nav-inner a,
.cert-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-inner a:hover,
.nav-inner a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.cert-button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
  background: var(--blue);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(11, 18, 48, 0.95) 0%, rgba(18, 31, 85, 0.88) 48%, rgba(18, 31, 85, 0.4) 100%),
    url("assets/logo.jpg");
  background-repeat: no-repeat;
  background-size: cover, min(520px, 58vw);
  background-position: center, right 9vw center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 115px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.96), transparent);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(179, 139, 61, 0.2), transparent 28%),
    linear-gradient(0deg, rgba(40, 124, 121, 0.12), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 82px 0 112px;
}

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

.hero h1 {
  width: min(760px, 100%);
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 22px 0 0;
  color: #e7edf8;
  font-size: clamp(17px, 2vw, 22px);
}

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

.primary-action,
.secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.primary-action {
  color: var(--deep);
  background: #ffffff;
}

.secondary-action {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-metrics {
  width: min(920px, 100%);
  margin: 46px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-metrics div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero-metrics dt {
  font-size: 22px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: #d9e2f3;
}

.intro-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.intro-grid > div {
  min-height: 130px;
  padding: 26px;
  background: #ffffff;
}

.strip-label {
  display: block;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 8px;
}

.intro-grid strong {
  display: block;
  font-size: 20px;
  line-height: 1.45;
}

.section {
  padding: 86px 0;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-section p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.centered {
  width: min(760px, 100%);
  margin: 0 auto 38px;
  text-align: center;
}

.two-column {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 64px;
  align-items: start;
}

.about-copy {
  font-size: 18px;
  color: #2c3548;
}

.about-copy p {
  margin: 0 0 18px;
}

.value-list {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.value-list span {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: var(--soft);
  font-weight: 700;
}

.services-section,
.news-section {
  background: var(--soft);
}

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

.service-card,
.news-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(18, 31, 85, 0.06);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 18px solid rgba(40, 124, 121, 0.08);
}

.service-index {
  color: var(--gold);
  font-weight: 800;
}

.service-card h3,
.news-card h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

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

.process-band {
  padding: 70px 0;
  color: #ffffff;
  background:
    linear-gradient(100deg, rgba(18, 31, 85, 0.97), rgba(31, 95, 153, 0.92)),
    linear-gradient(0deg, rgba(179, 139, 61, 0.16), transparent);
}

.process-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.process-inner .eyebrow {
  color: #e0bf73;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.process-list li {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.process-list span {
  color: #e0bf73;
  font-weight: 800;
}

.station-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 52px;
  align-items: center;
}

.station-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.station-list div {
  padding: 18px;
  border-left: 4px solid var(--teal);
  background: var(--soft);
  border-radius: 0 8px 8px 0;
}

.station-list strong {
  display: block;
  font-size: 18px;
}

.station-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.map-panel {
  min-height: 470px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 246, 249, 0.95)),
    radial-gradient(circle at 70% 35%, rgba(31, 95, 153, 0.16), transparent 30%);
  box-shadow: var(--shadow);
}

.map-grid {
  position: relative;
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(216, 222, 232, 0.52) 1px, transparent 1px),
    linear-gradient(0deg, rgba(216, 222, 232, 0.52) 1px, transparent 1px);
  background-size: 42px 42px;
}

.map-grid::before {
  content: "";
  position: absolute;
  inset: 58px 80px;
  border: 2px solid rgba(18, 31, 85, 0.1);
  border-radius: 48% 52% 44% 56%;
  transform: rotate(-9deg);
  background: rgba(255, 255, 255, 0.45);
}

.node {
  position: absolute;
  z-index: 2;
  min-width: 76px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(31, 95, 153, 0.24);
  font-weight: 800;
}

.node.active {
  background: var(--gold);
  color: #171205;
}

.north {
  left: 48%;
  top: 16%;
}

.east {
  right: 18%;
  top: 47%;
}

.south {
  right: 28%;
  bottom: 14%;
}

.west {
  left: 18%;
  bottom: 22%;
}

.central {
  left: 42%;
  top: 46%;
}

.route {
  position: absolute;
  height: 2px;
  background: rgba(31, 95, 153, 0.24);
  transform-origin: left center;
}

.route-one {
  width: 190px;
  left: 49%;
  top: 51%;
  transform: rotate(-5deg);
}

.route-two {
  width: 210px;
  left: 31%;
  top: 57%;
  transform: rotate(-22deg);
}

.route-three {
  width: 165px;
  left: 55%;
  top: 60%;
  transform: rotate(48deg);
}

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

.news-card time {
  color: var(--teal);
  font-weight: 800;
}

.contact-section {
  padding: 76px 0;
  color: #ffffff;
  background: var(--deep);
}

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

.contact-section p {
  color: #d9e2f3;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.contact-panel {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.phone-link {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 900;
  color: #ffffff;
}

.footer {
  padding: 32px 0;
  background: #070d21;
  color: #cbd5e6;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-registration {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(203, 213, 230, 0.2);
  text-align: center;
  font-size: 14px;
}

.registration-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  line-height: 24px;
}

.registration-link img {
  flex-shrink: 0;
  width: 18px;
  height: 20px;
  object-fit: contain;
}

.registration-link:hover,
.registration-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cert-dialog {
  width: min(520px, calc(100% - 34px));
  padding: 30px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(7, 13, 33, 0.32);
}

.cert-dialog::backdrop {
  background: rgba(7, 13, 33, 0.62);
}

.cert-dialog h2 {
  margin: 0;
  font-size: 30px;
}

.cert-dialog p {
  margin: 12px 0 22px;
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.cert-form {
  display: grid;
  gap: 10px;
}

.cert-form label {
  font-weight: 800;
}

.cert-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.cert-input-row input {
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
}

.cert-input-row button {
  height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  color: #ffffff;
  background: var(--navy);
  cursor: pointer;
}

.cert-result {
  min-height: 24px;
  color: var(--teal);
  font-weight: 700;
}

@media (max-width: 920px) {
  .topbar-inner,
  .brand-row,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-row {
    min-height: auto;
    padding: 18px 0;
    flex-direction: row;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: static;
  }

  .nav-inner {
    display: none;
    padding: 14px 0;
    align-items: stretch;
    flex-direction: column;
  }

  .primary-nav.is-open .nav-inner {
    display: flex;
  }

  .nav-inner a,
  .cert-button {
    justify-content: flex-start;
    width: 100%;
  }

  .hero {
    min-height: auto;
    background-size: cover, 430px;
    background-position: center, right -150px center;
  }

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

  .hero-metrics,
  .intro-grid,
  .service-grid,
  .news-grid,
  .two-column,
  .process-inner,
  .station-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

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

  .brand {
    gap: 12px;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }

  .brand small {
    font-size: 11px;
  }

  .hero {
    background-size: cover, 360px;
    background-position: center, right -170px top 80px;
  }

  .hero-metrics,
  .process-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .service-card,
  .news-card {
    min-height: auto;
  }

  .map-panel {
    min-height: 360px;
    padding: 16px;
  }

  .map-grid {
    height: 320px;
  }

  .node {
    min-width: 64px;
    font-size: 14px;
  }

  .cert-input-row {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 12px;
  }
}
