:root {
  --bg: #121312;
  --card: #1c1d1c;
  --line: #2e2f2e;
  --text: #f2f2f2;
  --dim: #a3a3a3;
  --green: #00ae42;
  --green-soft: #5ee08f;
  --blue: #7cc4ff;
  --orange: #ff9f43;
  --cyan: #5bc8d6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--green-soft); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 19px; color: var(--text); text-decoration: none; white-space: nowrap; }
nav { white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
nav a { color: var(--dim); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover { color: var(--text); }

.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: 48px 0 64px;
}
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.1; margin: 0 0 16px; }
.hero h1 span { color: var(--green); }
.hero p.lead { color: var(--dim); font-size: 19px; margin: 0 0 28px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 12px;
  background: var(--green); color: #0b0b0b; font-weight: 600; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--text); border: 1px solid #4a4a4a; }
.note { font-size: 13px; color: var(--dim); margin-top: 14px; }

.shots { display: flex; gap: 12px; justify-content: center; }
.shots img {
  width: 31%; max-width: 190px; min-width: 0; border-radius: 18px;
  border: 1px solid var(--line);
}

section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 28px; margin: 0 0 8px; }
section p.sub { color: var(--dim); margin: 0 0 32px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: 16px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--card); border-radius: 14px; padding: 16px 18px 16px 58px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 15px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #0b0b0b;
  font-weight: 700; font-size: 14px; display: grid; place-items: center;
}

.about { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; }
.avatar {
  width: 120px; height: 120px; border-radius: 50%; background: var(--card);
  display: grid; place-items: center; font-size: 40px; font-weight: 700; color: var(--green);
  border: 3px solid var(--green);
}

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 13px; }
footer a { color: var(--dim); }

/* Privacy page */
.doc { max-width: 760px; padding: 24px 0 64px; }
.doc h1 { font-size: 36px; margin: 8px 0 4px; }
.doc h2 { font-size: 21px; margin: 32px 0 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--dim); font-weight: 600; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  nav a { margin-left: 12px; font-size: 14px; }
  .brand img { width: 34px; height: 34px; }
}

/* Join-the-test page */
.join p.sub { color: var(--dim); margin: 0 0 20px; }
.tip { background: var(--card); border-left: 4px solid var(--green); border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.join-steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.join-steps li { background: var(--card); border-radius: 16px; padding: 18px 20px 20px; }
.join-steps h2 { margin: 0 0 4px; font-size: 19px; }
.join-steps p { margin: 0 0 14px; color: var(--dim); font-size: 15px; }
.join-steps .btn { display: block; text-align: center; }

/* Narrow phones: the menu goes under the name instead of running off the screen */
@media (max-width: 480px) {
  header.top { flex-wrap: wrap; row-gap: 6px; }
  nav a:first-child { margin-left: 0; }
}
.join-shots { margin: 4px 0 24px; justify-content: flex-start; }
.join-shots img { max-width: 220px; }
.join-shots a { width: 31%; max-width: 220px; }
.join-shots a img { width: 100%; max-width: none; display: block; }
.shots-note { margin: -16px 0 20px; }
