:root {
  --brand: #0a4d68;
  --brand2: #088395;
  --accent: #05bfdb;
  --accent-soft: rgba(5, 191, 219, 0.14);
  --bg: #f5f9fb;
  --bg-alt: #eef5f8;
  --text: #1c2b33;
  --muted: #5b6b73;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --line: #dce7ec;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 24px rgba(10, 77, 104, 0.08);
  --shadow-hover: 0 18px 40px rgba(10, 77, 104, 0.16);
  --grad-hero: linear-gradient(135deg, #0a4d68 0%, #088395 55%, #05bfdb 100%);
  --grad-line: linear-gradient(90deg, #0a4d68, #05bfdb);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.dark {
  --bg: #0d1b22;
  --bg-alt: #0a161c;
  --text: #e6f1f5;
  --muted: #9db4be;
  --card: #132a34;
  --card-glass: rgba(19, 42, 52, 0.72);
  --line: #1f3d4a;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(5, 191, 219, 0.12), transparent 60%),
    radial-gradient(50vw 50vw at -10% 20%, rgba(8, 131, 149, 0.1), transparent 60%);
}

body.dark::before {
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(5, 191, 219, 0.1), transparent 60%),
    radial-gradient(50vw 50vw at -10% 20%, rgba(8, 131, 149, 0.12), transparent 60%);
}

a {
  color: var(--brand2);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  text-decoration: underline;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-glass);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--brand);
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

body.dark .logo {
  color: #e6f1f5;
}

.logo svg {
  width: 38px;
  height: 38px;
  transition: transform 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

nav.main-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
}

nav.main-nav a {
  position: relative;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-line);
  transition: width 0.3s var(--ease);
}

nav.main-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

nav.main-nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  background: var(--card);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  width: 130px;
  font-size: 14px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box button {
  border: none;
  background: var(--brand2);
  color: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.search-box button:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.icon-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.menu-toggle {
  display: none;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--brand2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  color: #fff;
  padding: 70px 0 64px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45vw 45vw at 80% 10%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(35vw 35vw at 10% 90%, rgba(5, 191, 219, 0.28), transparent 60%);
  animation: heroShift 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 80px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(245, 249, 251, 0.35));
  opacity: 0.5;
  pointer-events: none;
}

body.dark .hero::after {
  background: linear-gradient(to bottom, transparent, rgba(13, 27, 34, 0.45));
}

@keyframes heroShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.06);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.12);
}

.hero p.lead {
  font-size: 17px;
  opacity: 0.95;
  margin-bottom: 24px;
  max-width: 640px;
}

.hero .cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero svg {
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.22));
  border-radius: 18px;
  animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-3px);
}

.btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #e6f1f5;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stats > div {
  min-width: 88px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.hero-stats > div:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-stats .num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(180deg, #fff, #c9f4fb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats .lbl {
  font-size: 13px;
  opacity: 0.85;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head h2 {
  position: relative;
  display: inline-block;
  font-size: 30px;
  color: var(--brand);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-line);
}

body.dark .section-head h2 {
  color: var(--accent);
}

.section-head p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  color: var(--brand);
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.45;
}

body.dark .card h3 {
  color: var(--accent);
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--brand2);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

body.dark .badge {
  color: var(--accent);
}

/* ---------- Articles ---------- */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

.article-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.article-card:hover::after {
  opacity: 1;
  transform: scale(1.2);
}

.article-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--brand);
  line-height: 1.5;
}

body.dark .article-card h3 {
  color: var(--accent);
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.article-card p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
}

.read-more {
  font-weight: 600;
  color: var(--brand2);
  display: inline-block;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.read-more:hover {
  color: var(--accent);
  transform: translateX(4px);
  text-decoration: none;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.faq-item.open {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  transition: color 0.25s var(--ease);
}

.faq-q:hover {
  color: var(--brand2);
}

body.dark .faq-q:hover {
  color: var(--accent);
}

.faq-q .arrow {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
  background: var(--brand2);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 420px;
  padding-bottom: 18px;
}

.faq-a p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 64px;
  margin-bottom: 28px;
  transition: transform 0.3s var(--ease);
}

.step:hover {
  transform: translateX(4px);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-hero);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(8, 131, 149, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step:hover::before {
  transform: scale(1.08);
  box-shadow: 0 12px 24px rgba(8, 131, 149, 0.4);
}

.step h4 {
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--brand);
}

body.dark .step h4 {
  color: var(--accent);
}

.step p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Tables ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 15px;
  vertical-align: top;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table th {
  background: rgba(8, 131, 149, 0.1);
  color: var(--brand);
  width: 180px;
  font-weight: 600;
}

body.dark .info-table th {
  color: var(--accent);
  background: rgba(5, 191, 219, 0.08);
}

.info-table tr {
  transition: background-color 0.25s var(--ease);
}

.info-table tbody tr:hover,
.info-table tr:hover {
  background: var(--accent-soft);
}

/* ---------- Tags ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.tag:hover {
  transform: translateY(-2px);
  color: var(--brand2);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Team ---------- */
.team-card {
  text-align: center;
}

.team-card svg {
  margin: 0 auto 14px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.team-card:hover svg {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 14px 30px rgba(8, 131, 149, 0.3);
}

.team-card h4 {
  color: var(--brand);
  margin-bottom: 4px;
}

body.dark .team-card h4 {
  color: var(--accent);
}

.team-card p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Sitemap lists ---------- */
.card ul {
  list-style: none;
  line-height: 2.2;
}

.card ul a {
  position: relative;
  display: inline-block;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.card ul a:hover {
  transform: translateX(4px);
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Footer ---------- */
footer.site-footer {
  position: relative;
  background: #0a2b38;
  color: #c9dde5;
  padding: 56px 0 24px;
  margin-top: 40px;
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-line);
}

footer.site-footer::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 191, 219, 0.16), transparent 70%);
  pointer-events: none;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

footer h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 16px;
  position: relative;
  padding-bottom: 10px;
}

footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 8px;
  font-size: 14px;
}

footer a {
  color: #c9dde5;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

footer a:hover {
  color: var(--accent);
  padding-left: 4px;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 13px;
  color: #8fb0bd;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand2);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  z-index: 200;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.back-top.show {
  display: flex;
}

.back-top:hover {
  background: var(--accent);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slides {
  display: flex;
  transition: transform 0.6s var(--ease);
}

.slide {
  min-width: 100%;
  padding: 40px;
  background: var(--grad-hero);
  color: #fff;
}

.slide h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.slide p {
  opacity: 0.95;
}

.dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.dots span:hover {
  transform: scale(1.2);
}

.dots span.active {
  background: #fff;
}

/* ---------- Inline style helpers (override) ---------- */
section[style*="background:var(--card)"] {
  background: var(--bg-alt) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 32px;
  }

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

@media (max-width: 900px) {
  nav.main-nav {
    display: none;
  }

  nav.main-nav.open {
    display: block;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--card-glass);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    animation: navDrop 0.3s var(--ease);
  }

  nav.main-nav.open ul {
    flex-direction: column;
    gap: 4px;
  }

  nav.main-nav.open a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  nav.main-nav.open li:last-child a {
    border-bottom: none;
  }

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

  .search-box {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 52px 0 48px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero svg {
    max-width: 340px;
    margin: 0 auto;
  }

  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

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

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p.lead {
    font-size: 15px;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-stats > div {
    flex: 1 1 40%;
    padding: 10px 12px;
  }

  .hero-stats .num {
    font-size: 24px;
  }

  .section {
    padding: 44px 0;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .card,
  .article-card {
    padding: 20px;
  }

  .info-table th {
    width: 110px;
    padding: 12px;
  }

  .info-table th,
  .info-table td {
    padding: 12px;
    font-size: 14px;
  }

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

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .step {
    padding-left: 56px;
  }

  .step::before {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* ---------- Accessibility / motion ---------- */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand2), var(--accent));
  border-radius: 999px;
  border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}