@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #07101a;
  --card: #0f1c2b;
  --card-alt: #102133;
  --surface: #16283d;
  --text: #e8eef7;
  --muted: #aec1d6;
  --line: rgba(169, 207, 255, 0.2);
  --radius: 18px;
  --max: 1040px;
  --accent: #6eb7ff;
  --accent-strong: #3f90f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.01em;
  position: relative;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(62, 129, 210, 0.24), transparent 60%),
    radial-gradient(760px 420px at 92% 0%, rgba(22, 109, 190, 0.18), transparent 58%),
    linear-gradient(180deg, #081321 0%, #070f19 100%);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 14, 23, 0.82);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 1.04rem;
}

.site-menu {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-menu a {
  color: #cfe6ff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.88;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 70px;
}

.card {
  background: var(--card-alt);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(3, 8, 16, 0.22);
}

h1 {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h2 {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.34rem, 2.5vw, 1.56rem);
  line-height: 1.2;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

p,
ul {
  color: var(--muted);
}

p {
  margin: 0 0 0.9rem;
}

ul {
  padding-left: 18px;
}

li {
  margin: 7px 0;
}

.nav {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: #cfe6ff;
  text-decoration: none;
  font-weight: 650;
  opacity: 0.88;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 850px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.block,
.step,
.callout,
.mini {
  background: linear-gradient(180deg, rgba(30, 52, 78, 0.75) 0%, rgba(21, 40, 61, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}

.block,
.step,
.callout {
  margin-top: 12px;
}

.block a {
  display: inline-block;
  margin-top: 10px;
  color: #cfe6ff;
  font-weight: 650;
  text-decoration: none;
}

.block a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 12px 17px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(180deg, #2b6aad 0%, #1f4f8c 100%);
  margin-top: 14px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn.secondary {
  background: var(--surface);
}

.btn.primary {
  border-color: var(--accent);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(24, 78, 138, 0.35);
  filter: brightness(1.04);
}

.ctaRow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.kpi {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.mini {
  padding: 12px;
  font-size: 14px;
}

.small,
.note {
  font-size: 13px;
  color: #93a6bc;
  margin-top: 10px;
}

.check {
  margin-top: 12px;
}

.check li {
  list-style: none;
  margin: 8px 0;
  padding-left: 28px;
  position: relative;
}

.check li:before {
  content: "☐";
  position: absolute;
  left: 0;
  top: 0;
  color: #7fb3ff;
  font-weight: bold;
}

footer {
  margin-top: 28px;
  font-size: 12px;
  color: #98a7ba;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 16px 0;
}

.legal-page .card {
  max-width: 900px;
}

body.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-404-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 24px 18px;
}

.box {
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body:before {
    display: none;
  }

  .card {
    border: 1px solid #000;
  }

  .site-header,
  .nav,
  .btn,
  footer {
    display: none;
  }
}
