:root {
  --bg: #07111f;
  --bg-2: #0b1728;
  --panel: #0f2238;
  --panel-2: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #d9e2ec;
  --line-dark: rgba(255,255,255,.12);
  --accent: #00e0a4;
  --accent-2: #43a6ff;
  --accent-3: #ffb020;
  --danger-soft: #fff6df;
  --soft-blue: #eef7ff;
  --soft-green: #eafff8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0,224,164,.24), transparent 32rem),
    radial-gradient(circle at top right, rgba(67,166,255,.18), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 520px, #f5f8fb 521px, #f5f8fb);
  color: var(--ink);
  line-height: 1.55;
}

a { color: #0875c9; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: rgba(7,17,31,.82);
  color: white;
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 330px minmax(0,1fr);
  gap: 24px;
  align-items: center;
}

.brand {
  color: white;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-title {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand-title::before {
  content: "◆";
  color: var(--accent);
  margin-right: 8px;
}

.brand-subtitle {
  color: #a8b8cc;
  font-size: .84rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  color: #eaf4ff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .88rem;
  font-weight: 650;
}

.nav a:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(0,224,164,.55);
  text-decoration: none;
}

.site-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 18px 54px;
}

.directory-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.directory-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.box,
.card,
.content-main,
.article,
.diagnostic,
.side-box {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,34,56,.12);
  box-shadow: 0 14px 45px rgba(15,34,56,.08);
}

.box,
.side-box {
  border-radius: 18px;
  padding: 16px;
}

.box h2,
.side-box h2 {
  margin: 0 0 10px;
  font-size: .98rem;
  color: #0f2238;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.sidebar-list a {
  display: block;
  padding: 9px 10px;
  border-radius: 11px;
  background: #f3f8fc;
  border: 1px solid #dfebf5;
  color: #16324f;
  font-size: .92rem;
  font-weight: 650;
}

.sidebar-list a:hover {
  background: #eafff8;
  border-color: rgba(0,224,164,.42);
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15,34,56,.97), rgba(10,25,43,.94)),
    radial-gradient(circle at 85% 25%, rgba(0,224,164,.24), transparent 20rem);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: 34px 34px 32px;
  margin: 0 0 18px;
  color: white;
  box-shadow: 0 24px 70px rgba(7,17,31,.34);
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,224,164,.28), transparent 70%);
}

.hero h1 {
  position: relative;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: .98;
  margin: 9px 0 15px;
  max-width: 930px;
  letter-spacing: -.055em;
  z-index: 1;
}

.small-hero h1 { font-size: clamp(2rem, 3.5vw, 3.1rem); }

.hero p {
  position: relative;
  max-width: 850px;
  font-size: 1.08rem;
  color: #cad8e7;
  z-index: 1;
}

.eyebrow {
  position: relative;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  color: var(--accent) !important;
  font-size: .75rem !important;
  margin: 0;
  z-index: 1;
}

.hero-actions {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  z-index: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111f;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,224,164,.18);
}

.button:hover {
  filter: brightness(1.05);
  color: #07111f;
  text-decoration: none;
}

.button.secondary {
  background: rgba(255,255,255,.08);
  color: white;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: none;
}

.directory-tools {
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(15,34,56,.12);
  border-radius: 18px;
  padding: 15px;
  display: grid;
  gap: 11px;
  margin-bottom: 18px;
  box-shadow: 0 14px 45px rgba(15,34,56,.08);
}

.search-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cdd9e5;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(67,166,255,.13);
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-button {
  border: 1px solid #cdd9e5;
  background: #f7fbff;
  color: #12304f;
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 750;
}

.filter-button.active,
.filter-button:hover {
  background: #0f2238;
  border-color: #0f2238;
  color: white;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 28px;
}

.card {
  position: relative;
  border-radius: 18px;
  padding: 17px;
  min-height: 134px;
  display: grid;
  gap: 9px;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.card h3 {
  margin: 2px 0 0;
  font-size: 1.06rem;
  letter-spacing: -.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--soft-green);
  color: #087957;
  font-size: .76rem;
  font-weight: 850;
}

.warning-box,
.cta-box,
.result-box {
  background: var(--danger-soft);
  border: 1px solid #f0d39c;
  border-radius: 16px;
  padding: 17px;
  margin: 18px 0;
}

.cta-box {
  background: linear-gradient(135deg, #eafff8, #eef7ff);
  border-color: #bceadf;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}

.content-main,
.article,
.diagnostic {
  border-radius: 18px;
  padding: 25px;
}

.content-main.wide { max-width: none; }

.sidebar {
  display: grid;
  gap: 14px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.meta-line span {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: #dce8f5;
  font-size: .88rem;
}

.verdict {
  font-size: 1.08rem;
  font-weight: 800;
  border-left: 4px solid var(--accent);
  padding-left: 13px;
}

.discreet-link {
  font-size: .86rem;
  opacity: .92;
}

.diagnostic form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.diagnostic label {
  display: grid;
  gap: 7px;
  font-weight: 750;
}

select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cdd9e5;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-size: 1rem;
}

.site-footer {
  background: #07111f;
  color: #dce8f5;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 18px 38px;
  display: grid;
  gap: 8px;
}

.site-footer a { color: #a7f7df; }

@media (max-width: 920px) {
  .site-header {
    position: static;
  }

  .header-inner,
  .directory-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .nav { justify-content: flex-start; }

  .directory-sidebar {
    position: static;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px 22px;
  }
}
