:root {
  --bg: #1c1e27;
  --panel: #252a37;
  --accent: #3498fe;
  --text: #f4f8ff;
  --muted: #b7c3d6;
  --border: #3f4a62;
  --radius: 16px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body {
  background-image:
    radial-gradient(circle at 15% -10%, rgba(52, 152, 254, 0.24) 0%, rgba(28, 30, 39, 0) 42%),
    radial-gradient(circle at 85% 12%, rgba(52, 152, 254, 0.12) 0%, rgba(28, 30, 39, 0) 32%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

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

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.brand img {
  width: 168px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #dce6f6;
}

.main-nav a {
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  border-color: var(--accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 11px 18px;
  border: 1px solid transparent;
}

.btn-login {
  background: #1c1e27;
  border-color: #4a5671;
  color: #eef4ff;
}

.btn-register {
  background: #3498fe;
  border-color: #3498fe;
  color: #ffffff;
}

.page-main {
  padding: 34px 0 42px;
}

.content-card {
  background: linear-gradient(140deg, rgba(37, 42, 55, 0.95), rgba(29, 34, 46, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.prose section + section {
  margin-top: 18px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #ffffff;
  line-height: 1.2;
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

h1 {
  font-size: clamp(1.9rem, 3.7vw, 2.8rem);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  margin-bottom: 10px;
  margin-top: 24px;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 8px;
  margin-top: 18px;
}

p,
li {
  color: #dbe5f5;
}

ul,
ol {
  margin: 10px 0 18px 22px;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

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

th {
  background: #1e2432;
  color: #eaf2ff;
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

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

.content-image {
  width: 100%;
  max-width: 860px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin: 10px 0 16px;
  display: block;
  box-shadow: var(--shadow);
}

.site-footer {
  background: #1c1e27;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px 0;
}

.trust-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.trust-link {
  background: #181c27;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-height: 72px;
}

.trust-link img {
  max-height: 46px;
  max-width: 100%;
  object-fit: contain;
}

.providers-row {
  display: grid;
  grid-template-columns: repeat(9, minmax(80px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.logo-box {
  background: #1a1f2b;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.logo-box img {
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  color: #d8e4f7;
  margin-bottom: 12px;
}

.footer-links a {
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-color: var(--accent);
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  color: #afbdd2;
  margin: 0;
}

@media (max-width: 760px) {
  .header-inner {
    justify-content: center;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
  }

  .trust-links {
    grid-template-columns: 1fr;
  }

  .providers-row {
    grid-template-columns: repeat(3, minmax(76px, 1fr));
  }
}
