.tests-page-body {
  --tests-rose: #d58aa7;
  --tests-rose-soft: #e5aec2;
  --tests-wine: #3a2030;
  --tests-lilac: #a89ac8;
  background:
    radial-gradient(circle at 76% 4%, rgba(141, 75, 111, .1), transparent 31rem),
    radial-gradient(circle at 12% 31%, rgba(96, 72, 126, .07), transparent 27rem),
    #08090d;
}

.tests-page-body .topbar,
.tests-page-body .site-shell-sidebar__nav,
.tests-page-body .site-shell-sidebar__more,
.tests-page-body .site-shell-mobile-nav { backdrop-filter: blur(20px); }

.tests-page-body .app-shell {
  padding-bottom: clamp(52px, 6vw, 76px);
}

.tests-page.stage-card--active {
  display: grid;
  gap: 18px;
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tests-intro,
.tests-catalog,
.tests-how { position: relative; z-index: 1; }

.tests-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 30px;
  align-items: end;
  padding: 25px 28px;
  overflow: hidden;
  border: 1px solid rgba(218, 155, 184, .13);
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 0%, rgba(155, 103, 145, .09), transparent 23rem),
    linear-gradient(145deg, rgba(40, 24, 36, .96), rgba(17, 17, 27, .98) 62%, rgba(22, 15, 26, .98));
  box-shadow: 0 20px 54px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.tests-intro::before {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  right: -128px;
  bottom: -150px;
  border: 1px solid rgba(218, 155, 184, .1);
  border-radius: 50%;
  pointer-events: none;
}

.tests-intro__copy { position: relative; z-index: 1; display: grid; gap: 8px; max-width: 690px; }
.tests-intro .hero-panel__eyebrow { margin: 0; color: var(--tests-rose); font-size: .69rem; letter-spacing: .17em; }
.tests-intro h2 { margin: 0; color: #fff8fb; font-size: clamp(1.85rem, 3.4vw, 2.55rem); line-height: 1.05; letter-spacing: -.035em; }
.tests-intro__copy > p:not(.hero-panel__eyebrow) { max-width: 650px; margin: 0; color: rgba(226, 211, 220, .7); font-size: .9rem; line-height: 1.5; }

.tests-trust {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px;
  align-items: center;
}

.tests-trust span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 6px;
  border: 1px solid rgba(226, 182, 203, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: rgba(235, 219, 228, .75);
  font-size: .69rem;
  font-weight: 700;
}

.tests-trust i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(213, 138, 167, .13);
  color: #e6a9bf;
  font-size: .68rem;
  font-style: normal;
}

.tests-history-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(218, 155, 184, .12);
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(50, 29, 43, .84), rgba(20, 19, 28, .96));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .02);
}

.tests-history-entry__mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(224, 168, 192, .14); border-radius: 14px; background: rgba(216, 138, 170, .09); }
.tests-history-entry__mark svg { width: 23px; height: 23px; overflow: visible; fill: none; stroke: #dda1b8; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tests-history-entry__copy { display: grid; gap: 3px; }
.tests-history-entry__copy strong { color: #fff7fa; font-size: .83rem; }
.tests-history-entry__copy p { margin: 0; color: rgba(211, 193, 203, .65); font-size: .7rem; line-height: 1.42; }
.tests-history-entry__button { z-index: 1; margin: 0; text-decoration: none; white-space: nowrap; }

.tests-catalog { display: grid; gap: 13px; }
.tests-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 0 4px; }
.tests-section-head h3 { margin: 0 0 4px; color: #fff7fa; font-size: clamp(1.28rem, 2.2vw, 1.65rem); letter-spacing: -.025em; }
.tests-section-head p { margin: 0; color: rgba(205, 188, 198, .6); font-size: .78rem; line-height: 1.45; }
.tests-catalog__count { color: rgba(205, 188, 198, .55); font-size: .7rem; font-weight: 800; white-space: nowrap; }

.tests-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.test-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 184px;
  overflow: hidden;
  border: 1px solid rgba(213, 155, 183, .12);
  border-radius: 20px;
  color: #fff8fb;
  background:
    radial-gradient(circle at 0 12%, rgba(155, 90, 126, .07), transparent 14rem),
    linear-gradient(145deg, rgba(42, 25, 37, .93), rgba(20, 19, 28, .97));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .15), inset 0 1px 0 rgba(255, 255, 255, .018);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.test-card--available:hover {
  transform: translateY(-2px);
  border-color: rgba(218, 145, 176, .28);
  background:
    radial-gradient(circle at 0 12%, rgba(155, 90, 126, .1), transparent 14rem),
    linear-gradient(145deg, rgba(45, 27, 40, .96), rgba(21, 20, 30, .99));
}

.test-card__link { position: absolute; inset: 0; z-index: 3; }
.test-card__link:focus-visible { outline: 3px solid rgba(231, 171, 194, .9); outline-offset: -5px; border-radius: inherit; }
.test-card__art { position: relative; display: grid; place-items: center; min-height: 100%; overflow: hidden; padding: 9px; background: rgba(255, 255, 255, .012); }
.test-card__art::after { content: ''; position: absolute; inset: 14% 0; border-right: 1px solid rgba(226, 179, 200, .08); pointer-events: none; }
.test-card__art img { position: relative; z-index: 1; display: block; width: 66px; height: 66px; object-fit: contain; border-radius: 18px; filter: saturate(.82) drop-shadow(0 8px 13px rgba(0, 0, 0, .3)); transition: transform .25s ease, filter .25s ease; }
.test-card--available:hover .test-card__art img { transform: translateY(-2px) rotate(-1deg); filter: saturate(.94) drop-shadow(0 12px 16px rgba(0, 0, 0, .34)); }

.test-card__body { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 16px 15px; }
.test-card__badges { display: flex; flex-wrap: wrap; gap: 6px; min-height: 23px; }
.test-badge { display: inline-flex; align-items: center; width: fit-content; min-height: 23px; padding: 0 8px; border: 1px solid rgba(222, 183, 201, .06); border-radius: 999px; background: rgba(255, 255, 255, .055); color: rgba(211, 193, 203, .68); font-size: .61rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.test-card--available .test-badge { color: rgba(232, 196, 211, .78); background: rgba(213, 138, 167, .08); }
.test-card__body h4 { margin: 0; color: #fff8fb; font-size: 1rem; line-height: 1.24; letter-spacing: -.015em; }
.test-card__body p { margin: 0; color: rgba(213, 197, 206, .68); font-size: .73rem; line-height: 1.48; }
.test-card__body ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.test-card__body li { color: rgba(222, 200, 211, .64); font-size: .67rem; font-weight: 700; }
.test-card__body li + li::before { content: '·'; margin-right: 7px; color: var(--tests-rose); }

.test-card__action {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  gap: 11px;
  margin-top: 2px;
  padding: 5px 6px 5px 14px;
  border: 1px solid rgba(245, 205, 220, .16);
  border-radius: 999px;
  background: linear-gradient(135deg, #d8a0b5, #b986aa);
  color: #24151e;
  font-size: .76rem;
  font-weight: 900;
  box-shadow: 0 9px 18px rgba(105, 50, 78, .22), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.test-card__action i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .3); color: #59263e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42); font-style: normal; transition: transform .22s ease, background .22s ease; }
.test-card__action svg { display: block; width: 16px; height: 16px; overflow: visible; fill: currentColor; }
.test-card__action-spark { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.test-card:hover .test-card__action i { transform: scale(1.08) rotate(-5deg); background: rgba(255, 255, 255, .42); }

.tests-how { display: grid; grid-template-columns: 205px 1fr; gap: 26px; margin-top: 5px; padding: 26px 4px 4px; border-top: 1px solid rgba(255, 255, 255, .08); }
.tests-how .hero-panel__eyebrow { margin: 0; color: var(--tests-rose); }
.tests-how h3 { margin: 7px 0 0; color: #fff8fb; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.tests-how ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.tests-how li { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; }
.tests-how li > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(229, 174, 194, .18); border-radius: 50%; color: #f1cedb; background: rgba(213, 138, 167, .11); font-size: .75rem; font-weight: 800; }
.tests-how strong { display: block; margin-bottom: 5px; color: #f9f0f5; font-size: .82rem; }
.tests-how li p { margin: 0; color: rgba(198, 181, 191, .63); font-size: .73rem; line-height: 1.48; }

:root[data-theme='light'] .tests-page-body { background: radial-gradient(circle at 72% 8%, rgba(185, 119, 151, .08), transparent 28rem), #faf7f9; }
:root[data-theme='light'] .tests-intro { background: linear-gradient(145deg, #fff, #f7f0f5); border-color: #eadce4; }
:root[data-theme='light'] .tests-intro h2,
:root[data-theme='light'] .tests-section-head h3,
:root[data-theme='light'] .tests-how h3 { color: #30212a; }
:root[data-theme='light'] .tests-intro__copy > p:not(.hero-panel__eyebrow),
:root[data-theme='light'] .tests-section-head p,
:root[data-theme='light'] .tests-how li p { color: #725f69; }
:root[data-theme='light'] .tests-trust span { color: #66525d; background: #fff; border-color: #eadde4; }
:root[data-theme='light'] .test-card { color: #35252e; background: #fff; border-color: #eadce4; }
:root[data-theme='light'] .test-card__body h4 { color: #35252e; }
:root[data-theme='light'] .test-card__body p { color: #765f6b; }

@media (max-width: 980px) {
  .tests-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tests-how { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 680px) {
  .tests-page-body .app-shell { padding-bottom: 44px; }
  .tests-history-entry { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .tests-history-entry__button { grid-column: 1 / -1; width: 100%; justify-content: space-between; }
  .tests-page.stage-card--active { gap: 15px; }
  .tests-intro { grid-template-columns: 1fr; gap: 16px; padding: 20px 18px; border-radius: 21px; }
  .tests-intro__copy { gap: 7px; }
  .tests-intro h2 { font-size: 1.9rem; }
  .tests-intro__copy > p:not(.hero-panel__eyebrow) { font-size: .82rem; line-height: 1.46; }
  .tests-trust { grid-column: auto; gap: 6px; }
  .tests-trust span { min-height: 30px; padding-right: 10px; font-size: .64rem; }
  .tests-section-head { align-items: start; }
  .tests-section-head p { max-width: 315px; font-size: .72rem; }
  .tests-catalog__count { padding-top: 4px; font-size: .65rem; }
  .tests-grid { grid-template-columns: 1fr; gap: 10px; }
  .test-card { grid-template-columns: 84px minmax(0, 1fr); min-height: 164px; border-radius: 18px; }
  .test-card__art { padding: 8px; }
  .test-card__art img { width: 64px; height: 64px; border-radius: 17px; }
  .test-card__body { gap: 7px; padding: 14px 13px; }
  .test-card__body h4 { font-size: .96rem; }
  .test-card__body p { font-size: .7rem; line-height: 1.44; }
  .test-card__body ul { display: none; }
  .test-card__action { min-height: 34px; padding-left: 12px; font-size: .71rem; }
  .tests-how { padding: 22px 2px 2px; }
  .tests-how ol { grid-template-columns: 1fr; gap: 15px; }
}
