/* ============================================================
   Tech Assurance QA Academy — landing page
   Фірмові кольори винесено в токени нижче: щоб привести сторінку
   у відповідність до брендбуку, достатньо замінити значення тут.
   ============================================================ */
:root {
  --paper: #f5f7fb;
  --card: #ffffff;
  --ink: #0c1d3a;
  --muted: #51617a;
  --line: #dce3ef;
  --accent: #1e56d6;        /* основний брендовий колір (кнопки, посилання) */
  --accent-ink: #ffffff;
  --accent-soft: #e6edfc;
  --pass: #0e9f5b;          /* семантика QA: тест пройдено */
  --fail: #e5484d;          /* семантика QA: дефект */
  --warn: #d98b1f;          /* семантика QA: попередження */
  --term-bg: #0b1830;       /* термінал у hero — завжди темний */
  --term-ink: #d7e3f4;
  --term-line: #1d3355;
  --shadow: 0 1px 2px rgba(12, 29, 58, .05), 0 12px 32px -16px rgba(12, 29, 58, .18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a1424;
    --card: #101d33;
    --ink: #e8eef7;
    --muted: #93a3bc;
    --line: #223350;
    --accent: #5b8cff;
    --accent-ink: #071228;
    --accent-soft: #16294a;
    --pass: #2fbf71;
    --fail: #f0666b;
    --warn: #e8a33d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="light"] {
  --paper: #f5f7fb; --card: #ffffff; --ink: #0c1d3a; --muted: #51617a;
  --line: #dce3ef; --accent: #1e56d6; --accent-ink: #ffffff; --accent-soft: #e6edfc;
  --pass: #0e9f5b; --fail: #e5484d; --warn: #d98b1f;
  --shadow: 0 1px 2px rgba(12, 29, 58, .05), 0 12px 32px -16px rgba(12, 29, 58, .18);
}
:root[data-theme="dark"] {
  --paper: #0a1424; --card: #101d33; --ink: #e8eef7; --muted: #93a3bc;
  --line: #223350; --accent: #5b8cff; --accent-ink: #071228; --accent-soft: #16294a;
  --pass: #2fbf71; --fail: #f0666b; --warn: #e8a33d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Unbounded", "Golos Text", system-ui, sans-serif;
  line-height: 1.15;
  text-wrap: balance;
  font-weight: 600;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 16px; }
.section-head p { color: var(--muted); max-width: 60ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.2; }
.logo strong {
  font-family: "Unbounded", sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: .02em; white-space: nowrap;
}
.logo span {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.nav { display: flex; gap: 22px; align-items: center; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500;
  transition: color .15s;
}
.nav a:not(.btn):hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15.5px; font-weight: 600;
  padding: 13px 26px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 42px; cursor: pointer; color: var(--ink); font-size: 18px;
}
@media (max-width: 980px) {
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-of-type { border-bottom: none; }
  .nav .btn { margin-top: 10px; }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { padding: 84px 0 96px; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "JetBrains Mono", monospace; font-size: 12.5px; font-weight: 600;
  color: var(--pass); background: color-mix(in srgb, var(--pass) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--pass) 30%, transparent);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--pass);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 700; margin-bottom: 22px; }
.hero h1 em {
  font-style: normal; color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 5px;
  text-underline-offset: 7px;
  text-decoration-skip-ink: none;
}
.hero-sub { color: var(--muted); font-size: 18.5px; max-width: 54ch; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 12px 36px;
  justify-content: start;
}
.hero-stats div strong {
  display: block; font-family: "Unbounded", sans-serif;
  font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.hero-stats div span { font-size: 13px; color: var(--muted); }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { grid-template-columns: repeat(2, auto); }
}

/* терминал «прогону тестів» */
.term {
  background: var(--term-bg); color: var(--term-ink);
  border: 1px solid var(--term-line); border-radius: 14px;
  box-shadow: var(--shadow);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13.5px; line-height: 1.9;
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--term-line);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: #e5484d; }
.term-bar i:nth-child(2) { background: #e8a33d; }
.term-bar i:nth-child(3) { background: #2fbf71; }
.term-bar span { margin-left: 10px; font-size: 12px; color: #6d84a8; }
.term-body { padding: 18px 20px 22px; overflow-x: auto; }
.term-body .line { display: flex; gap: 10px; white-space: nowrap; opacity: 0; animation: rise .4s ease forwards; }
.term-body .line:nth-child(1)  { animation-delay: .2s; }
.term-body .line:nth-child(2)  { animation-delay: .7s; }
.term-body .line:nth-child(3)  { animation-delay: 1.1s; }
.term-body .line:nth-child(4)  { animation-delay: 1.5s; }
.term-body .line:nth-child(5)  { animation-delay: 1.9s; }
.term-body .line:nth-child(6)  { animation-delay: 2.3s; }
.term-body .line:nth-child(7)  { animation-delay: 2.7s; }
.term-body .line:nth-child(8)  { animation-delay: 3.1s; }
.term-body .line:nth-child(9)  { animation-delay: 3.5s; }
.term-body .line:nth-child(10) { animation-delay: 4.1s; }
.term-body .line:nth-child(11) { animation-delay: 4.7s; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .term-body .line { opacity: 1; } }
.term .ok { color: var(--pass); }
.term .warn-t { color: var(--warn); }
.term .cmd { color: #8fb3e8; }
.term .dim { color: #5f769b; margin-left: auto; }
.term .result {
  margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--term-line);
  color: var(--pass); font-weight: 600;
}

/* ---------- skills ---------- */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.skill {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; font-size: 15.5px;
}
.skill .tick {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 6px; background: color-mix(in srgb, var(--pass) 12%, transparent);
  color: var(--pass); display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

/* ---------- format ---------- */
.spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.spec-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 22px 20px;
}
.spec-item dt {
  font-family: "JetBrains Mono", monospace; font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.spec-item dd { font-weight: 600; font-size: 17px; }
.format-note {
  margin-top: 28px; padding: 20px 24px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 12px 12px 0;
  color: var(--ink); max-width: 70ch;
}

/* ---------- program ---------- */
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .modules { grid-template-columns: 1fr; } }
.module {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 26px 22px; box-shadow: var(--shadow);
}
.module-code {
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600;
  color: var(--accent); letter-spacing: .1em; margin-bottom: 10px; display: block;
}
.module h3 { font-size: 17.5px; margin-bottom: 14px; }
.module ul { list-style: none; }
.module li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  font-size: 15px; color: var(--muted);
}
.module li::before {
  content: "▸"; position: absolute; left: 2px; color: var(--accent); font-size: 12px; top: 2px;
}

/* ---------- AI band ---------- */
.ai-band { background: var(--term-bg); color: var(--term-ink); }
.ai-band .eyebrow { color: #7ea6ff; }
.ai-band h2 { color: #ffffff; }
.ai-band .section-head p { color: #9db1cf; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ai-chip {
  font-size: 14.5px; padding: 14px 18px;
  background: #101f3c; border: 1px solid var(--term-line); border-radius: 10px;
  display: flex; gap: 10px; align-items: baseline;
}
.ai-chip .mono { color: #7ea6ff; font-size: 12px; flex: none; }
.ai-note {
  margin-top: 32px; max-width: 68ch; color: #9db1cf; font-size: 15.5px;
  padding-top: 24px; border-top: 1px dashed var(--term-line);
}
.ai-note strong { color: #ffffff; }

/* ---------- project checklist ---------- */
.project-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .project-wrap { grid-template-columns: 1fr; } }
.checklist {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px 0;
}
.checklist li {
  list-style: none; display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 24px; font-size: 15.5px;
}
.checklist li + li { border-top: 1px solid var(--line); }
.checklist .box {
  flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 5px;
  border: 1.5px solid var(--pass); color: var(--pass);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: color-mix(in srgb, var(--pass) 8%, transparent);
}
.portfolio-note {
  margin-top: 24px; display: flex; gap: 12px; align-items: flex-start;
  font-size: 15.5px; color: var(--muted); max-width: 60ch;
}
.portfolio-note .mono { color: var(--pass); font-weight: 600; }

/* ---------- difference ---------- */
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; max-width: 940px; }
@media (max-width: 800px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-grid li {
  list-style: none; position: relative; padding: 10px 0 10px 30px;
  font-size: 15.5px; border-bottom: 1px solid var(--line);
}
.diff-grid li::before {
  content: "→"; position: absolute; left: 0; top: 10px;
  color: var(--accent); font-weight: 700;
}

/* ---------- employment path ---------- */
.path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 960px) { .path { grid-template-columns: 1fr; } }
.path-step {
  counter-increment: step;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 20px;
}
.path-step::before {
  content: "0" counter(step);
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600;
  color: var(--accent); display: block; margin-bottom: 10px; letter-spacing: .1em;
}
.path-step h3 { font-size: 15px; margin-bottom: 6px; font-family: "Golos Text", sans-serif; font-weight: 600; }
.path-step p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.employ-note {
  margin-top: 36px; padding: 26px 30px; border-radius: 14px;
  background: color-mix(in srgb, var(--pass) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--pass) 30%, var(--line));
  max-width: 72ch;
}
.employ-note strong { color: var(--pass); }
.hire-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 52px; }
@media (max-width: 900px) { .hire-cards { grid-template-columns: 1fr; } }
.hire-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 26px 24px;
}
.hire-card .num {
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600;
  color: var(--accent); letter-spacing: .1em;
}
.hire-card h3 { font-size: 17px; margin: 12px 0 8px; }
.hire-card p { font-size: 15px; color: var(--muted); }

/* ---------- salary grid ---------- */
.salary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1080px) { .salary-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .salary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .salary-grid { grid-template-columns: 1fr; } }
.sal-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 24px 0; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.sal-tile .level {
  font-family: "JetBrains Mono", monospace; font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.sal-tile .value {
  font-family: "Unbounded", sans-serif; font-weight: 700;
  font-size: clamp(22px, 2vw, 28px); font-variant-numeric: tabular-nums;
  margin: 10px 0 4px; color: var(--ink); white-space: nowrap;
}
.sal-tile .note { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.sal-plot { height: 110px; display: flex; align-items: flex-end; margin-top: auto; }
.sal-bar {
  width: 58px; height: var(--h); border-radius: 4px 4px 0 0;
  background: var(--bar); transition: height .8s ease;
}
.sal-bar.open {
  background: transparent;
  border: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-bottom: none;
}
.js .reveal:not(.in) .sal-bar { height: 0; }
.salary-src { margin-top: 24px; font-size: 13.5px; color: var(--muted); max-width: 70ch; }

/* ---------- apply ---------- */
.apply { border-top: 1px solid var(--line); }
.apply-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
@media (max-width: 900px) { .apply-wrap { grid-template-columns: 1fr; gap: 40px; } }
.apply h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 18px; }
.apply-side p { color: var(--muted); max-width: 52ch; margin-bottom: 24px; }
.apply-contacts { list-style: none; display: grid; gap: 10px; font-size: 15.5px; }
.apply-contacts .mono { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-right: 10px; }
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { resize: vertical; min-height: 96px; }
.form-hint { font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.site-footer p { font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* scroll reveal — застосовується лише коли доступний JS (клас .js на <html>) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }


/* ============================================================
   Reverse Recruiting — специфічні компоненти
   ============================================================ */
/* процес: вертикальний нумерований список */
.rr-steps { display: grid; gap: 14px; counter-reset: rr; max-width: 940px; }
.rr-step {
  counter-increment: rr;
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 26px; box-shadow: var(--shadow);
}
.rr-step::before {
  content: counter(rr, decimal-leading-zero);
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 22px;
  color: var(--accent); background: var(--accent-soft);
  width: 54px; height: 54px; border-radius: 13px;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.rr-step h3 { font-size: 18px; margin-bottom: 6px; }
.rr-step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 560px) {
  .rr-step { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .rr-step::before { width: 44px; height: 44px; font-size: 18px; }
}

/* побажання кандидата: картки-чипи */
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.wish {
  display: flex; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; font-size: 15.5px; font-weight: 500;
}
.wish .ic {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 18px;
}
