html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #172033;
  background:
    radial-gradient(circle at top left, rgba(45, 125, 246, 0.12), transparent 28%),
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 38%, #eef4ff 100%);
}

a {
  color: #0a58ca;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #d9e4f8;
  backdrop-filter: blur(12px);
}

.site-nav {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: #1346a5;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.nav-links a {
  color: #36507f;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a.current {
  color: #0d6efd;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 56px 0 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dbe9ff;
  color: #1346a5;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1,
.article-hero h1 {
  margin: 0 0 14px;
  line-height: 1.1;
  font-size: clamp(2.25rem, 4vw, 4rem);
}

.hero p,
.article-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 1.1rem;
  color: #44506b;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: #0d6efd;
  color: #fff;
}

.button-secondary {
  border: 1px solid #b9c9e8;
  color: #17305c;
  background: rgba(255, 255, 255, 0.82);
}

.section {
  padding: 28px 0 52px;
}

.grid {
  display: grid;
  gap: 22px;
}

.two-up {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cards-tight {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.content-block {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d9e4f8;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(41, 72, 152, 0.08);
}

.card {
  padding: 24px;
}

.card p:last-child,
.content-block p:last-child {
  margin-bottom: 0;
}

.card h2,
.card h3,
.content-block h2,
.content-block h3 {
  margin-top: 0;
  line-height: 1.2;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 0;
  color: #5a6784;
  font-size: 0.95rem;
}

.article-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}

.content-block {
  padding: 28px;
}

.toc {
  padding: 22px;
}

.toc ul {
  margin: 0;
  padding-left: 18px;
}

.example-box {
  padding: 18px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid #d7e5ff;
}

.example-box strong {
  display: block;
  margin-bottom: 8px;
}

.stack > * + * {
  margin-top: 18px;
}

.faq-item + .faq-item {
  margin-top: 18px;
}

.kicker {
  margin: 0 0 10px;
  color: #36507f;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.list-clean {
  margin: 0;
  padding-left: 20px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c8d7f1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #24406d;
  font-size: 0.95rem;
}

.section-title {
  margin: 0 0 14px;
  line-height: 1.15;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.lead {
  max-width: 760px;
  margin: 0 0 16px;
  color: #44506b;
  font-size: 1.05rem;
}

.top-nav {
  padding-top: 24px;
}

.top-nav a {
  text-decoration: none;
  font-weight: 700;
}

.footer {
  padding: 0 0 56px;
  color: #57647e;
}

.site-footer {
  border-top: 1px solid #d9e4f8;
  background: rgba(255, 255, 255, 0.88);
}

.site-footer-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #57647e;
}

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

.footer-links a {
  text-decoration: none;
  font-weight: 700;
}

@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 0.8fr);
    align-items: start;
  }

  .toc {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 720px) {
  .site-nav {
    padding: 14px 0;
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
  }
}
