:root {
  --bg: #041b34;
  --bg-strong: #06182e;
  --surface: #082440;
  --surface-light: #0b2e46;
  --line: rgba(216, 226, 238, 0.18);
  --text: #f4f7fb;
  --muted: #b9c7d6;
  --purple: #a24bff;
  --violet: #c66bff;
  --magenta: #ff5bcf;
  --gold: #f7c86b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgba(4, 27, 52, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
}

.brand img,
.footer-brand img {
  width: 90px;
  max-height: none;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  color: #e8eef6;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.nav-item > a:hover,
.nav-item > a:focus,
.nav-link:hover,
.nav-link:focus,
.nav-item [aria-current="page"] {
  color: #ffffff;
  background: rgba(162, 75, 255, 0.18);
  outline: none;
}

.nav-dropdown {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  display: none;
  min-width: 210px;
  padding: 8px 0;
  background: transparent;
}

.nav-dropdown::before {
  position: absolute;
  inset: 8px 0 0;
  z-index: -1;
  content: "";
  background: #06182e;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-dropdown a {
  position: relative;
  display: block;
  margin: 0 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus {
  color: #ffffff;
  background: rgba(255, 91, 207, 0.16);
  outline: none;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  display: block;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(180deg, var(--violet) 0%, var(--purple) 52%, #8f3af2 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(162, 75, 255, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 16px 34px rgba(255, 91, 207, 0.28);
  outline: none;
}

.btn-secondary {
  background: rgba(8, 36, 64, 0.84);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-hero {
  margin-top: 20px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(8, 36, 64, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: clamp(430px, 68vh, 560px);
  overflow: hidden;
  background: var(--bg-strong);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 27, 52, 0.92) 0%, rgba(4, 27, 52, 0.74) 42%, rgba(4, 27, 52, 0.28) 100%),
    linear-gradient(180deg, rgba(4, 27, 52, 0.08) 0%, rgba(4, 27, 52, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  padding: clamp(72px, 11vw, 108px) 0 56px;
  margin-left: clamp(18px, 7vw, 86px);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Oswald, Impact, "Arial Narrow", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 67px);
}

h2 {
  font-size: clamp(32px, 4.5vw, 48px);
}

h3 {
  font-size: clamp(24px, 3.4vw, 34px);
}

.hero-copy {
  max-width: 660px;
  margin: 18px 0 0;
  color: #e8eef6;
  font-size: 16px;
}

.breadcrumbs,
.table-of-contents,
.content-section {
  width: min(1060px, calc(100% - 36px));
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: #ffffff;
  text-decoration: none;
}

.table-of-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 26px 0 4px;
}

.table-of-contents a {
  padding: 8px 12px;
  color: #f4f7fb;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(11, 46, 70, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section {
  padding: clamp(36px, 6vw, 66px) 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--line);
}

.content-section p,
.content-section li,
.content-section td,
.content-section th {
  font-size: 16px;
}

.content-section p {
  max-width: 850px;
  margin: 18px 0 0;
  color: #d8e2ee;
}

.content-section a {
  color: #ffd789;
  font-weight: 700;
}

.content-section ul,
.content-section ol {
  max-width: 850px;
  margin: 18px 0 0;
  padding-left: 24px;
  color: #d8e2ee;
}

.content-section li + li {
  margin-top: 8px;
}

.article-content img {
  width: 100%;
  height: auto;
  margin-top: 24px;
  padding: 8px;
  background: rgba(8, 36, 64, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-cta {
  width: min(1060px, calc(100% - 36px));
  margin: 10px auto 0;
}

.table-wrap {
  width: 100%;
  margin-top: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 560px;
  table-layout: auto;
  border-collapse: collapse;
  background: rgba(8, 36, 64, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: #ffffff;
  background: rgba(162, 75, 255, 0.22);
}

td {
  color: #d8e2ee;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

.faq-block h3 {
  margin-top: 28px;
}

.site-footer {
  margin-top: 40px;
  padding: 42px clamp(18px, 5vw, 56px);
  background: #06182e;
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 22px;
}

.site-footer a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer p {
  max-width: 840px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .header-menu {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    max-height: calc(100vh - 78px);
    padding: 18px;
    overflow-y: auto;
    background: #041b34;
    border-bottom: 1px solid var(--line);
  }

  .header-menu.is-open {
    display: block;
  }

  .main-nav,
  .header-actions {
    display: block;
  }

  .nav-item > a,
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 10px;
  }

  .nav-dropdown {
    position: static;
    display: block;
    min-width: 0;
    margin: 0 0 10px 12px;
    padding: 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-dropdown::before {
    display: none;
  }

  .header-actions {
    margin-top: 12px;
  }

  .header-actions .btn {
    width: 100%;
    margin-top: 10px;
  }
}

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

  .site-header {
    min-height: 70px;
    padding: 12px 16px;
  }

  .header-menu {
    top: 70px;
    max-height: calc(100vh - 70px);
  }

  .hero {
    min-height: 390px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(4, 27, 52, 0.65) 0%, rgba(4, 27, 52, 0.94) 74%),
      linear-gradient(90deg, rgba(4, 27, 52, 0.82), rgba(4, 27, 52, 0.4));
  }

  .hero-content {
    width: min(100% - 32px, 640px);
    padding: 54px 0 36px;
    margin-inline: auto;
  }

  .hero-copy,
  .content-section p,
  .content-section li,
  .content-section td,
  .content-section th {
    font-size: 15px;
  }

  .breadcrumbs,
  .table-of-contents,
  .content-section {
    width: min(100% - 32px, 1060px);
  }

  table {
    min-width: 500px;
  }
}
