:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #101827;
  --muted: #536173;
  --line: #d9e1ec;
  --blue: #1d4ed8;
  --blue-dark: #123c9c;
  --teal: #0f766e;
  --amber: #b45309;
  --red: #b42318;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
}

h1,
h2,
h3,
p,
li,
span {
  word-break: keep-all;
}

h1,
h2 {
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration-color: rgba(29, 78, 216, 0.28);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(217, 225, 236, 0.84);
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell,
.site-footer,
.section,
.hero,
.article-hero,
.article-body {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav-links a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6.5rem) 0 3rem;
}

.hero h1,
.article-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.35rem, 5.2vw, 4.55rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero p,
.article-hero p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  line-height: 1.7;
  max-width: 720px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 720;
  padding: 0.75rem 1.05rem;
  text-decoration: none;
}

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

.button:hover {
  transform: translateY(-1px);
}

.hero-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.section.tight {
  padding-top: 1.5rem;
}

.section-label {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section h2 {
  max-width: 820px;
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.section > p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

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

.card,
.source-row,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1.25rem;
}

.card h3,
.source-row h3,
.faq-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.card p,
.source-row p,
.faq-item p,
.card li {
  color: var(--muted);
  line-height: 1.7;
}

.card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
}

.status-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.status-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.status-item strong {
  color: var(--text);
}

.status-item span {
  color: var(--muted);
  line-height: 1.7;
}

.warning {
  border-left: 4px solid var(--amber);
  background: #fff8e6;
  padding: 1.1rem 1.25rem;
}

.danger {
  border-left-color: var(--red);
  background: #fff1f0;
}

.source-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.article-hero {
  padding: clamp(3rem, 8vw, 6rem) 0 2rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.article-meta span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.5rem 0.7rem;
}

.article-body {
  max-width: 820px;
  padding: 1rem 0 5rem;
  line-height: 1.78;
  font-size: 1.05rem;
}

.article-body h2 {
  margin-top: 2.4rem;
  font-size: 1.65rem;
  line-height: 1.25;
}

.article-body h3 {
  margin-top: 1.8rem;
}

.article-body p,
.article-body li {
  color: #344256;
}

.article-body blockquote {
  margin: 1.8rem 0;
  border-left: 4px solid var(--blue);
  background: var(--surface-soft);
  padding: 1rem 1.25rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.site-footer p {
  max-width: 680px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.9rem;
  font-weight: 680;
}

@media (max-width: 860px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

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

  .status-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .site-footer,
  .section,
  .hero,
  .article-hero,
  .article-body {
    width: min(100% - 28px, 1120px);
  }

  .nav-links a {
    padding: 0.5rem 0.52rem;
  }
}
