:root {
  --ink: #13293d;
  --muted: #5f7181;
  --line: #dbe7ee;
  --paper: #ffffff;
  --mist: #f5f9fb;
  --teal: #138a84;
  --teal-soft: #e7f6f4;
  --blue: #1261a6;
  --amber: #f8b84e;
  --coral: #e85d5a;
  --shadow: 0 20px 48px rgba(19, 41, 61, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--mist);
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  font-weight: 900;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 9px 10px;
  border-radius: 8px;
  color: #2e4557;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--teal-soft);
  color: #0c635f;
}

.alert-strip {
  background: #fff8ea;
  color: #634300;
  border-bottom: 1px solid #f0d693;
}

.alert-strip p {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
  font-size: 14px;
}

.home-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  gap: 36px;
  align-items: center;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 76px);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  margin: 18px 0 0;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(.96);
}

.btn.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn.warning {
  background: var(--coral);
}

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-card img {
  border-radius: 8px;
}

.search-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.search-panel label {
  display: block;
  font-weight: 800;
  margin-bottom: 10px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-header p {
  max-width: 600px;
  color: var(--muted);
  margin: 8px 0 0;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.step,
.side-panel,
.notice,
.status-card,
.contact-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card {
  min-height: 188px;
  padding: 22px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #b7d7e4;
  box-shadow: var(--shadow);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 900;
  margin-bottom: 18px;
}

.card:nth-child(2n) .icon {
  background: #eef5ff;
  color: var(--blue);
}

.card:nth-child(3n) .icon {
  background: #fff4df;
  color: #a06600;
}

.card h3 {
  font-size: 20px;
}

.card p,
.step p,
.side-panel p,
.notice p,
.status-card p,
.contact-tile p {
  color: var(--muted);
}

.page-main {
  padding-bottom: 56px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

.guide-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  padding: 22px;
}

.step h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.side-panel ul,
.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.side-panel li,
.check-list li {
  position: relative;
  padding-left: 24px;
  color: #344b5d;
}

.side-panel li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.notice {
  padding: 18px;
  border-color: #f0d693;
  background: #fff8ea;
}

.notice strong {
  color: #604300;
}

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

.status-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #0c635f;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.pill.warning {
  background: #fff4df;
  color: #8a5700;
}

.contact-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-tile {
  padding: 24px;
}

.site-footer {
  background: #102638;
  color: #d8e6ee;
  margin-top: 36px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

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

.footer-links a {
  color: #f7fbff;
  text-decoration: none;
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 25, 38, .54);
}

.popup-backdrop.open {
  display: flex;
}

.support-popup {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
  border: 1px solid var(--line);
  overflow: hidden;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(135deg, #1261a6, #138a84);
  color: #fff;
}

.popup-header h2 {
  font-size: 26px;
}

.popup-close {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.popup-body {
  padding: 22px;
}

.popup-body p {
  color: var(--muted);
}

.popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.small-print {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .home-hero,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .grid,
  .grid.three,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section,
  .search-panel,
  .home-hero,
  .page-hero,
  .guide-layout,
  .contact-grid,
  .footer-inner,
  .alert-strip p {
    width: min(100% - 24px, 1180px);
  }

  .brand span:last-child {
    white-space: normal;
  }

  .site-nav.open,
  .grid,
  .grid.three,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding-top: 32px;
  }

  .search-box,
  .status-card,
  .popup-actions {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }

  .page-hero h1 {
    font-size: 34px;
  }
}
