.tests-page {
  --tp-bg: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
  --tp-hero-max: 760px;
  --tp-card-bg: #ffffff;
  --tp-card-border: #e6ebf5;
  --tp-card-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
  --tp-card-hover-border: #d6deed;
  --tp-card-hover-shadow: 0 20px 44px rgba(15, 23, 42, 0.11);
  --tp-title: #182033;
  --tp-text: #374151;
  --tp-subtext: #4b5563;
  --tp-note: #6b7280;
  --tp-cta-min: 250px;
  background: var(--tp-bg);
  min-height: 100dvh;
  color: var(--tp-title);
}

.tests-shell {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

.tests-hero {
  padding: 4.6rem 0 2rem;
}

.tests-hero .tests-shell {
  max-width: var(--tp-hero-max);
}

.tests-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 700;
}

.tests-hero h1 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.06;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.tests-accent {
  color: #ff5a3c;
}

.tests-subtitle {
  margin: 0;
  max-width: 100%;
  color: var(--tp-subtext);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.tests-body {
  padding: 2.2rem 0 4.2rem;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.test-card {
  border: 1px solid var(--tp-card-border);
  border-radius: 22px;
  background: var(--tp-card-bg);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  box-shadow: var(--tp-card-shadow);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(2px);
}

.test-card:hover {
  transform: translateY(-1px);
  border-color: var(--tp-card-hover-border);
  box-shadow: var(--tp-card-hover-shadow);
}

.test-card h2 {
  margin: 0.15rem 0 0.25rem;
  text-align: center;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  line-height: 1.12;
  color: rgb(255 91 60);
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.01em;
}

.test-note {
  margin: 0.25rem 0 0.35rem;
  text-align: center;
  color: rgba(203, 213, 225, 0.82);
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.65;
}

.test-card ul {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
  color: var(--tp-text);
  display: grid;
  gap: 0.45rem;
  font-size: clamp(1rem, 1.45vw, 1.05rem);
}

.test-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.6rem;
}

.test-cta {
  min-width: 210px;
  padding: 0.78rem 1.2rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 91, 60, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.test-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(255, 91, 60, 0.25);
  filter: saturate(1.02);
}

.test-cta-disabled {
  background: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
}

/* Theme 2: centered hero + blue cards */
.tests-page.tests-theme-2 {
  --tp-bg: #0f172a;
  --tp-hero-max: 760px;
  --tp-card-bg: #1e293ba6;
  --tp-card-border: #475569cc;
  --tp-card-shadow: 0 14px 34px rgba(2, 6, 23, 0.36);
  --tp-card-hover-border: #64748b;
  --tp-card-hover-shadow: 0 18px 42px rgba(2, 6, 23, 0.44);
  --tp-title: #eef3ff;
  --tp-text: #cfdaee;
  --tp-subtext: #c3d0e6;
  --tp-note: #b2c1dd;
  --tp-cta-min: 260px;
}

.tests-page.tests-theme-2 .tests-hero .tests-shell {
  text-align: center;
}

.tests-page.tests-theme-2 .tests-kicker {
  color: #8fa4ca;
}

.tests-page.tests-theme-2 .tests-hero h1 {
  color: #f0f5ff;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.tests-page.tests-theme-2 .tests-subtitle {
  color: #c1cfe5;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.tests-page.tests-theme-2 .test-card h2 {
  color: #eef4ff;
}

.tests-page.tests-theme-2 .test-card ul,
.tests-page.tests-theme-2 .test-note {
  color: #c8d5eb;
}

/* Theme 3: compact editorial layout */
.tests-page.tests-theme-3 {
  --tp-bg: linear-gradient(180deg, #ffffff 0%, #f3f5f9 100%);
  --tp-hero-max: 680px;
  --tp-card-bg: #f9fbff;
  --tp-card-border: #d8e1f0;
  --tp-card-shadow: 0 10px 30px rgba(24, 32, 51, 0.08);
  --tp-card-hover-border: #bfcde3;
  --tp-card-hover-shadow: 0 16px 38px rgba(24, 32, 51, 0.12);
  --tp-title: #121a2d;
  --tp-text: #2d3a52;
  --tp-subtext: #43526e;
  --tp-note: #60718f;
  --tp-cta-min: 235px;
}

.tests-page.tests-theme-3 .tests-grid {
  gap: 1.2rem;
}

.tests-page.tests-theme-3 .tests-hero .tests-shell {
  text-align: center;
}

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

@media (max-width: 760px) {
  .tests-shell {
    width: min(100%, calc(100% - 1rem));
  }

  .tests-hero {
    padding: 4.3rem 0 1.15rem;
  }

  .tests-body {
    padding-bottom: 2rem;
  }

  .test-card {
    border-radius: 16px;
    padding: 1.1rem;
    min-height: 0;
    gap: 0.85rem;
  }

  .test-cta {
    width: min(240px, 100%);
    min-width: 0;
  }

  .test-card h2 {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .test-note {
    font-size: clamp(0.98rem, 4.1vw, 1.08rem);
    line-height: 1.6;
  }
}
