.test-article-page {
  --article-rose: #dea0b9;
  --article-rose-soft: rgba(222, 160, 185, 0.14);
  --article-mint: #79d8bf;
}

.test-article {
  gap: 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(198, 112, 150, 0.2), transparent 27%),
    radial-gradient(circle at 92% 8%, rgba(119, 85, 139, 0.16), transparent 25%),
    linear-gradient(155deg, rgba(29, 19, 29, 0.99), rgba(12, 13, 21, 0.98) 56%, rgba(20, 16, 24, 0.99));
}

.test-article::before {
  background: radial-gradient(circle, rgba(222, 160, 185, 0.13), transparent 64%);
}

.test-article-hero {
  display: block;
}

.test-article-hero__copy,
.test-article-hero__visual,
.test-article-prose,
.test-article-picker,
.test-article-steps,
.test-article-faq,
.test-article-related,
.test-article-final {
  border: 1px solid rgba(238, 190, 211, 0.13);
  border-radius: 26px;
  background: rgba(24, 20, 28, 0.76);
  box-shadow: 0 22px 54px rgba(4, 2, 8, 0.21);
}

.test-article-hero__copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 220px;
  padding: clamp(24px, 4vw, 46px);
  background:
    radial-gradient(circle at 5% 0%, rgba(222, 160, 185, 0.16), transparent 43%),
    rgba(24, 20, 28, 0.76);
}

.test-article-hero__copy h1 {
  max-width: 25ch;
  margin: 0;
  color: #fff8fb;
  font-size: clamp(1.85rem, 3.4vw, 3.05rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.test-article-hero__copy > p:not(.hero-panel__eyebrow),
.test-article-section-head > p:not(.hero-panel__eyebrow),
.test-article-prose p,
.test-article-final p {
  margin: 0;
  color: rgba(238, 225, 232, 0.72);
  font-size: 0.98rem;
  line-height: 1.7;
}

.test-article-hero__visual {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 330px;
  padding: 20px;
  background:
    radial-gradient(circle at 76% 18%, rgba(222, 160, 185, 0.18), transparent 42%),
    linear-gradient(160deg, rgba(40, 27, 40, 0.94), rgba(18, 18, 27, 0.96));
}

.test-article-hero__visual a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 76px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(9, 10, 17, 0.43);
  color: #f7edf2;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.test-article-hero__visual a:hover,
.test-article-hero__visual a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(222, 160, 185, 0.32);
  background: rgba(49, 31, 46, 0.75);
  outline: none;
}

.test-article-hero__visual img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.test-article-prose {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 6px;
}

.test-article-prose p {
  padding: 22px;
}

.test-article-prose p + p {
  border-left: 1px solid rgba(238, 190, 211, 0.1);
}

.test-article-picker,
.test-article-steps,
.test-article-faq {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
}

.test-article-section-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.test-article-section-head h2,
.test-article-related h2,
.test-article-final h2,
.test-article-sections h2 {
  margin: 0;
  color: #fff7fa;
  font-size: clamp(1.25rem, 2.25vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.test-article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.test-article-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 98px;
  padding: 12px 14px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 5% 50%, rgba(222, 160, 185, 0.12), transparent 34%),
    rgba(11, 12, 20, 0.55);
  color: #f8eff3;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.test-article-card:hover,
.test-article-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(222, 160, 185, 0.34);
  background: rgba(40, 26, 38, 0.72);
  outline: none;
}

.test-article-card__icon,
.test-article-card__icon img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.test-article-card > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.test-article-card strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.test-article-card small {
  color: rgba(238, 225, 232, 0.63);
  font-size: 0.72rem;
  line-height: 1.45;
}

.test-article-card b {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(222, 160, 185, 0.13);
  color: #e8b9cd;
  font-size: 0.68rem;
}

.test-article-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.test-article-sections .landing-article__section {
  gap: 12px;
  padding: 24px;
  border-color: rgba(238, 190, 211, 0.12);
  background: rgba(24, 20, 28, 0.72);
}

.test-article-sections .landing-article__section::before {
  background: linear-gradient(180deg, var(--article-rose), rgba(222, 160, 185, 0.04));
}

.test-article-sections h2 {
  font-size: clamp(1.18rem, 1.9vw, 1.55rem);
}

.test-article-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: article-step;
}

.test-article-steps li {
  counter-increment: article-step;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(10, 11, 18, 0.5);
  color: rgba(244, 233, 238, 0.78);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.55;
}

.test-article-steps li::before {
  content: counter(article-step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(222, 160, 185, 0.15);
  color: #efc0d3;
  font-size: 0.75rem;
  font-weight: 800;
}

.test-article-faq .game-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.test-article-faq details {
  margin: 0;
  border-color: rgba(238, 190, 211, 0.1);
  background: rgba(10, 11, 18, 0.5);
}

.test-article-related,
.test-article-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
}

.test-article-related > div,
.test-article-final > div {
  display: grid;
  gap: 7px;
}

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

.test-article-related nav a {
  padding: 10px 13px;
  border: 1px solid rgba(222, 160, 185, 0.15);
  border-radius: 999px;
  background: rgba(222, 160, 185, 0.08);
  color: #eec6d6;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.test-article-final {
  background:
    radial-gradient(circle at 82% 30%, rgba(222, 160, 185, 0.2), transparent 35%),
    linear-gradient(135deg, rgba(49, 30, 45, 0.92), rgba(20, 18, 26, 0.96));
}

.test-article-final .action-btn--primary,
.test-article-hero .action-btn--primary {
  background: linear-gradient(135deg, #e7acc4, #c889a6);
  color: #271921;
  box-shadow: 0 14px 34px rgba(197, 126, 159, 0.22);
}

@media (max-width: 900px) {
  .test-article-hero,
  .test-article-grid,
  .test-article-sections {
    grid-template-columns: 1fr;
  }

  .test-article-hero__visual {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
  }

  .test-article-hero__visual a {
    grid-template-columns: 48px minmax(0, 1fr);
    min-width: 0;
  }

  .test-article-hero__visual img {
    width: 48px;
    height: 48px;
  }

  .test-article-prose {
    grid-template-columns: 1fr;
  }

  .test-article-prose p + p {
    border-top: 1px solid rgba(238, 190, 211, 0.1);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .test-article {
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
  }

  .test-article-hero {
    gap: 12px;
  }

  .test-article-hero__copy {
    min-height: 0;
    padding: 22px 18px;
  }

  .test-article-hero__copy h1 {
    max-width: none;
    font-size: clamp(1.45rem, 6.2vw, 1.75rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  .test-article-hero__visual {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .test-article-hero__visual a {
    min-height: 64px;
  }

  .test-article-picker,
  .test-article-steps,
  .test-article-faq {
    padding: 19px 16px;
  }

  .test-article-card {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 92px;
  }

  .test-article-card__icon,
  .test-article-card__icon img {
    width: 58px;
    height: 58px;
  }

  .test-article-card b {
    display: none;
  }

  .test-article-sections,
  .test-article-faq .game-faq,
  .test-article-steps ol {
    grid-template-columns: 1fr;
  }

  .test-article-sections .landing-article__section {
    padding: 21px 18px;
  }

  .test-article-related,
  .test-article-final {
    align-items: stretch;
    flex-direction: column;
    padding: 21px 18px;
  }

  .test-article-related nav {
    justify-content: flex-start;
  }

  .test-article-final .action-btn {
    width: 100%;
  }
}
