:root {
  --nx-text: #24384b;
  --nx-primary: #1e3a5f;
  --nx-accent: #3f7cac;
  --nx-surface: #ffffff;
  --nx-line: #d5e0e8;
  --nx-shadow: 0 16px 42px rgba(23, 52, 78, 0.12);
  --nx-highlight: #e0a458;
  --nx-bg: #eef4f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--nx-text);
  background: var(--nx-bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--nx-primary);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--nx-accent);
}

a:focus-visible {
  outline: 3px solid var(--nx-highlight);
  outline-offset: 4px;
}

.nx-site {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.nx-header {
  position: relative;
  z-index: 2;
  background: var(--nx-surface);
  border-bottom: 1px solid var(--nx-line);
}

.nx-header-inner {
  width: min(1160px, calc(100% - 48px));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nx-brand {
  color: var(--nx-primary);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-decoration: none;
}

.nx-nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-nav-link {
  color: var(--nx-text);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nx-nav-link:hover,
.nx-nav-link[aria-current="page"] {
  color: var(--nx-accent);
}

.nx-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(330px, 47vw, 560px);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 72px 24px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(18, 44, 70, 0.15), rgba(18, 44, 70, 0.48)),
    linear-gradient(145deg, #3f7cac 0%, #7ba7b8 40%, #e0a458 100%);
}

.nx-hero::before,
.nx-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.nx-hero::before {
  inset: 0;
  opacity: 0.75;
  background:
    radial-gradient(ellipse at 74% 25%, rgba(255, 226, 170, 0.75) 0 8%, transparent 8.5%),
    linear-gradient(155deg, transparent 0 43%, rgba(30, 58, 95, 0.62) 43.2% 61%, transparent 61.2%),
    linear-gradient(25deg, transparent 0 52%, rgba(63, 124, 172, 0.78) 52.2% 70%, transparent 70.2%);
  filter: saturate(0.72);
}

.nx-hero::after {
  inset: 55% -8% -28%;
  opacity: 0.82;
  background:
    linear-gradient(166deg, transparent 0 27%, rgba(30, 58, 95, 0.88) 27.2% 48%, transparent 48.2%),
    linear-gradient(12deg, rgba(224, 164, 88, 0.82) 0 34%, rgba(30, 58, 95, 0.95) 34.2% 72%, #1e3a5f 72.2%);
  transform: skewY(-3deg);
}

.nx-hero-content {
  width: min(820px, 100%);
  text-shadow: 0 2px 18px rgba(12, 31, 49, 0.34);
}

.nx-hero-kicker {
  margin: 0 0 12px;
  color: #fff2dc;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nx-hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.nx-hero-description {
  max-width: 650px;
  margin: 22px auto 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.nx-main {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 82px) 0;
}

.nx-content {
  padding: clamp(24px, 5vw, 52px);
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  box-shadow: var(--nx-shadow);
}

.nx-content > :first-child {
  margin-top: 0;
}

.nx-content > :last-child {
  margin-bottom: 0;
}

.nx-content h2,
.nx-content h3 {
  color: var(--nx-primary);
  line-height: 1.25;
}

.nx-content h2 {
  margin-top: 1.8em;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.nx-content h3 {
  margin-top: 1.5em;
  font-size: 1.25rem;
}

.nx-content p,
.nx-content li {
  max-width: 75ch;
}

.nx-content li + li {
  margin-top: 0.45em;
}

.nx-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.4rem;
  color: var(--nx-primary);
  background: #f3f7fa;
  border-left: 4px solid var(--nx-highlight);
}

.nx-content .nx-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.nx-content .nx-card {
  padding: 22px;
  background: #f5f8fa;
  border: 1px solid var(--nx-line);
  border-radius: 10px;
}

.nx-content .nx-card h2,
.nx-content .nx-card h3 {
  margin-top: 0;
}

.nx-footer {
  padding: 30px 24px;
  color: #e8f0f5;
  background: var(--nx-primary);
  text-align: center;
}

.nx-footer-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.nx-footer p {
  margin: 0;
}

.nx-footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.nx-footer-link {
  color: #fff;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.nx-footer-link:hover {
  color: #ffe0ae;
}

.nx-footer-note {
  color: #d3e0e9;
  font-size: 0.86rem;
}

@media (max-width: 1024px) {
  .nx-header-inner {
    width: min(100% - 40px, 920px);
    gap: 20px;
  }

  .nx-nav-list {
    gap: 8px 16px;
  }

  .nx-main {
    width: min(100% - 40px, 900px);
  }
}

@media (max-width: 768px) {
  .nx-header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 18px 0;
  }

  .nx-nav-list {
    gap: 8px 18px;
  }

  .nx-hero {
    min-height: 380px;
  }

  .nx-content .nx-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nx-header-inner,
  .nx-main {
    width: calc(100% - 32px);
  }

  .nx-nav-list {
    gap: 7px 13px;
  }

  .nx-nav-link {
    font-size: 0.85rem;
  }

  .nx-hero {
    min-height: 340px;
    padding: 54px 18px;
  }

  .nx-hero-title {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .nx-main {
    padding: 30px 0;
  }

  .nx-content {
    padding: 24px 20px;
    border-radius: 10px;
  }
}