:root {
  --color-primary: #005baa;
  --color-primary-dark: #003f78;
  --color-accent: #00a6d6;
  --color-success: #16794b;
  --color-warning-bg: #fff5cf;
  --color-warning-border: #d99a00;
  --color-text: #1e293b;
  --color-muted: #5f6b7a;
  --color-surface: #ffffff;
  --color-background: #f5f8fc;
  --color-border: #dbe4ee;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius: 14px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-primary-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  color: #fff;
  background: #111827;
  border-radius: 0 0 8px 8px;
  transform: translateY(-120%);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  transition: box-shadow 180ms ease;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header > .container {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo img {
  display: block;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  font-weight: 650;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.hero {
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.16), transparent 28rem),
    linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.hero h1 {
  max-width: 900px;
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.08;
}

.hero p {
  max-width: 760px;
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.btn-primary {
  color: var(--color-primary-dark);
  background: #fff;
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.notice,
.cards,
.content {
  padding: 3rem 0;
}

.warning {
  padding: 1.5rem;
  background: var(--color-warning-bg);
  border-left: 5px solid var(--color-warning-border);
  border-radius: var(--radius);
}

.grid,
.benefits,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}

.grid article,
.benefits > div,
.content article {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.content article {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

section h2,
article h2 {
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

caption {
  padding: 0.75rem;
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 0.8rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

th {
  background: #edf5fc;
}

.footer {
  padding: 3rem 0 1.5rem;
  color: #d9e2ec;
  background: #102436;
}

.footer h2 {
  color: #fff;
  font-size: 1.1rem;
}

.footer a {
  color: #d9e2ec;
}

.footer ul {
  padding-left: 1.1rem;
}

.footer hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.footer-copy {
  font-size: 0.9rem;
  color: #b8c5d1;
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 180ms ease;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 0;
  height: 3px;
  background: var(--color-accent);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease, transform 400ms ease;
}

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

:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .header > .container {
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header nav {
    display: none;
    width: 100%;
  }

  .header nav.active {
    display: block;
  }

  .header nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .header nav a {
    display: block;
    padding: 0.8rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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