/* HSK-BASE-001 + HSK-BASE-002
   Test overview: warm educational-platform hierarchy with one clear exam path. */

body.tests-library-page.test-catalog-page {
  --test-edu-ink: #17352e;
  --test-edu-muted: #566b64;
  --test-edu-green: #2f6a55;
  --test-edu-green-dark: #1f4e3e;
  --test-edu-mint: #cde6d7;
  --test-edu-cream: #fff7ef;
  --test-edu-peach: #ffd8c9;
  --test-edu-yellow: #f7dfa1;
  --test-edu-blue: #cbdff5;
  --test-edu-line: #23483c;
  color: var(--test-edu-ink);
  background: var(--test-edu-cream);
}

body.tests-library-page.test-catalog-page main,
body.tests-library-page.test-catalog-page .seo-hero,
body.tests-library-page.test-catalog-page .test-status-strip {
  background: var(--test-edu-cream);
}

body.tests-library-page.test-catalog-page [data-site-header] {
  display: block;
  padding: 16px 0 0;
  background: var(--test-edu-cream);
}

body.tests-library-page.test-catalog-page .site-header {
  top: 12px;
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  overflow: visible;
  border: 2px solid var(--test-edu-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 6px 6px 0 rgba(35, 72, 60, 0.18);
}

body.tests-library-page.test-catalog-page .site-header.is-scrolled {
  border-color: var(--test-edu-line);
  box-shadow: 6px 6px 0 rgba(35, 72, 60, 0.18);
}

body.tests-library-page.test-catalog-page .site-header .nav-wrap {
  min-height: 68px;
}

body.tests-library-page.test-catalog-page .site-header .button--dark {
  min-height: 44px;
  border: 2px solid var(--test-edu-line);
  border-radius: 12px;
  color: #fff;
  background: var(--test-edu-green);
  box-shadow: 3px 3px 0 var(--test-edu-line);
}

body.tests-library-page.test-catalog-page .site-header .button--dark:hover,
body.tests-library-page.test-catalog-page .site-header .button--dark:focus-visible {
  color: #fff;
  background: var(--test-edu-green-dark);
  box-shadow: 1px 1px 0 var(--test-edu-line);
  transform: translate(2px, 2px);
}

body.tests-library-page.test-catalog-page .exam-context-bar,
body.tests-library-page.test-catalog-page .test-product-nav {
  display: none;
}

body.tests-library-page.test-catalog-page .seo-hero {
  padding: 22px 0 38px;
  border: 0;
}

body.tests-library-page.test-catalog-page .seo-breadcrumb {
  margin: 0 0 20px;
  color: var(--test-edu-muted);
  font-size: 13px;
}

body.tests-library-page.test-catalog-page .seo-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.68fr);
  align-items: center;
  gap: clamp(48px, 6vw, 92px);
  min-height: 510px;
  padding: 34px 10px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.tests-library-page.test-catalog-page .seo-hero__grid::before {
  display: none;
}

body.tests-library-page.test-catalog-page .seo-hero__grid > div:first-child {
  display: grid;
  max-width: 720px;
  align-content: center;
  justify-items: start;
}

body.tests-library-page.test-catalog-page .seo-hero .module-brand-icon {
  display: none;
}

body.tests-library-page.test-catalog-page .seo-hero__eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin: 0;
  padding: 7px 13px;
  border: 1.5px solid var(--test-edu-line);
  border-radius: 999px;
  color: var(--test-edu-green-dark);
  background: var(--test-edu-mint);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
}

body.tests-library-page.test-catalog-page .seo-hero__eyebrow::before {
  display: none;
}

body.tests-library-page.test-catalog-page .seo-hero h1 {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--test-edu-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(52px, 5.3vw, 76px);
  font-weight: 800;
  letter-spacing: -0.064em;
  line-height: 0.98;
  text-wrap: balance;
}

body.tests-library-page.test-catalog-page .seo-hero h1 em {
  color: var(--test-edu-green);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

body.tests-library-page.test-catalog-page .seo-hero__lead {
  max-width: 640px;
  margin-top: 24px;
  color: var(--test-edu-muted);
  font-size: 17px;
  line-height: 1.65;
}

body.tests-library-page.test-catalog-page .test-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

body.tests-library-page.test-catalog-page .test-hero-actions .button {
  min-height: 50px;
  justify-content: center;
  padding: 13px 20px;
  border: 2px solid var(--test-edu-line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 760;
}

body.tests-library-page.test-catalog-page .test-hero-actions .button--dark {
  color: #fff;
  background: var(--test-edu-green);
  box-shadow: 4px 4px 0 var(--test-edu-line);
}

body.tests-library-page.test-catalog-page .test-hero-actions .button--paper {
  color: var(--test-edu-ink);
  background: #fff;
  box-shadow: none;
}

body.tests-library-page.test-catalog-page .test-hero-actions .button:hover,
body.tests-library-page.test-catalog-page .test-hero-actions .button:focus-visible {
  border-color: var(--test-edu-line);
  color: #fff;
  background: var(--test-edu-green-dark);
}

body.tests-library-page.test-catalog-page .test-focus-card {
  position: relative;
  display: grid;
  align-self: center;
  overflow: hidden;
  border: 2px solid var(--test-edu-line);
  border-radius: 22px;
  color: var(--test-edu-ink);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(35, 72, 60, 0.24);
}

body.tests-library-page.test-catalog-page .test-focus-card__header {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 15px;
  padding: 26px 26px 22px;
}

body.tests-library-page.test-catalog-page .test-focus-card__icon {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1.5px solid var(--test-edu-line);
  border-radius: 15px;
  background: var(--test-edu-peach);
}

body.tests-library-page.test-catalog-page .test-focus-card__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

body.tests-library-page.test-catalog-page .test-focus-card small {
  color: var(--test-edu-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

body.tests-library-page.test-catalog-page .test-focus-card__header strong {
  color: var(--test-edu-ink);
  font-size: 21px;
}

body.tests-library-page.test-catalog-page .test-focus-card__progress {
  gap: 12px;
  padding: 20px 26px 22px;
  border-color: rgba(35, 72, 60, 0.16);
  background: #fbf4ea;
}

body.tests-library-page.test-catalog-page .test-focus-card__progress strong {
  color: var(--test-edu-green-dark);
  font-size: 14px;
}

body.tests-library-page.test-catalog-page .test-focus-card__progress [role="progressbar"] {
  height: 11px;
  border: 1px solid rgba(35, 72, 60, 0.18);
  background: #fff;
}

body.tests-library-page.test-catalog-page .test-focus-card__progress [role="progressbar"] i {
  background: var(--test-edu-green);
}

body.tests-library-page.test-catalog-page .test-focus-card__meta {
  border-color: rgba(35, 72, 60, 0.16);
}

body.tests-library-page.test-catalog-page .test-focus-card__meta > span {
  padding: 18px 26px;
}

body.tests-library-page.test-catalog-page .test-focus-card__meta > span + span {
  border-color: rgba(35, 72, 60, 0.16);
}

body.tests-library-page.test-catalog-page .test-focus-card__meta strong {
  color: var(--test-edu-ink);
  font-size: 14px;
}

body.tests-library-page.test-catalog-page .test-focus-card .test-next__action {
  min-height: 58px;
  padding: 0 26px;
  color: #fff;
  background: var(--test-edu-green);
  font-size: 15px;
}

body.tests-library-page.test-catalog-page .test-focus-card .test-next__action:hover,
body.tests-library-page.test-catalog-page .test-focus-card .test-next__action:focus-visible {
  background: var(--test-edu-green-dark);
}

body.tests-library-page.test-catalog-page .test-status-strip {
  padding: 0 0 72px;
}

body.tests-library-page.test-catalog-page .test-status-strip__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.tests-library-page.test-catalog-page .test-status-strip article {
  gap: 5px;
  padding: 0 28px;
}

body.tests-library-page.test-catalog-page .test-status-strip article + article {
  border-left: 1.5px solid rgba(35, 72, 60, 0.22);
}

body.tests-library-page.test-catalog-page .test-status-strip small {
  color: var(--test-edu-muted);
  font-size: 12px;
}

body.tests-library-page.test-catalog-page .test-status-strip strong {
  color: var(--test-edu-ink);
  font-size: clamp(27px, 3vw, 39px);
  letter-spacing: -0.04em;
}

body.tests-library-page.test-catalog-page .test-status-strip span {
  color: var(--test-edu-muted);
  font-size: 13px;
  line-height: 1.45;
}

body.tests-library-page.test-catalog-page .test-version-section {
  padding: 82px 0 92px;
  border: 0;
  background: #fff;
}

body.tests-library-page.test-catalog-page .seo-section-heading {
  align-items: end;
  gap: 36px;
}

body.tests-library-page.test-catalog-page .seo-section-heading .kicker,
body.tests-library-page.test-catalog-page .test-final-cta > .shell > div > span {
  color: var(--test-edu-green-dark);
  font-size: 12px;
  letter-spacing: 0.1em;
}

body.tests-library-page.test-catalog-page .seo-section-heading h2,
body.tests-library-page.test-catalog-page .test-feature-rail__heading h2,
body.tests-library-page.test-catalog-page .test-final-cta h2 {
  color: var(--test-edu-ink);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 790;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}

body.tests-library-page.test-catalog-page .seo-section-heading > p {
  color: var(--test-edu-muted);
  font-size: 15px;
  line-height: 1.65;
}

body.tests-library-page.test-catalog-page .test-version-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

body.tests-library-page.test-catalog-page .test-version-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  overflow: hidden;
  grid-template-rows: auto auto 1fr auto;
  border: 2px solid var(--test-edu-line);
  border-radius: 22px;
  background: var(--test-edu-blue);
  box-shadow: 6px 6px 0 rgba(35, 72, 60, 0.18);
}

body.tests-library-page.test-catalog-page .test-version-card--pilot {
  border-color: var(--test-edu-line);
  background: var(--test-edu-peach);
}

body.tests-library-page.test-catalog-page .test-version-card:hover,
body.tests-library-page.test-catalog-page .test-version-card:focus-within {
  border-color: var(--test-edu-line);
  box-shadow: 3px 3px 0 rgba(35, 72, 60, 0.22);
  transform: translate(3px, 3px);
}

body.tests-library-page.test-catalog-page .test-version-card__edition {
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(23, 53, 46, 0.15);
  font-size: clamp(54px, 6vw, 84px);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 1;
}

body.tests-library-page.test-catalog-page .test-version-card__meta {
  position: relative;
  z-index: 1;
  gap: 7px;
}

body.tests-library-page.test-catalog-page .test-version-card__meta span {
  color: var(--test-edu-green-dark);
  font-size: 12px;
}

body.tests-library-page.test-catalog-page .test-version-card__meta strong {
  color: var(--test-edu-ink);
  font-size: 16px;
}

body.tests-library-page.test-catalog-page .test-version-card h3 {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin-top: 50px;
  color: var(--test-edu-ink);
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

body.tests-library-page.test-catalog-page .test-version-card p {
  position: relative;
  z-index: 1;
  max-width: 500px;
  color: #3f5c53;
  font-size: 15px;
  line-height: 1.6;
}

body.tests-library-page.test-catalog-page .test-version-card > a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border: 2px solid var(--test-edu-line);
  border-radius: 12px;
  color: #fff;
  background: var(--test-edu-green);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

body.tests-library-page.test-catalog-page .test-version-card > a:hover,
body.tests-library-page.test-catalog-page .test-version-card > a:focus-visible {
  color: #fff;
  background: var(--test-edu-green-dark);
}

body.tests-library-page.test-catalog-page .test-version-help {
  margin: 24px 0 0;
  color: var(--test-edu-muted);
  font-size: 14px;
  text-align: center;
}

body.tests-library-page.test-catalog-page .test-version-help a {
  color: var(--test-edu-green-dark);
  font-weight: 750;
}

body.tests-library-page.test-catalog-page .sample-library {
  padding: 88px 0 96px;
  background: var(--test-edu-cream);
}

body.tests-library-page.test-catalog-page .paper-fit-banner {
  margin: 0 0 36px;
  padding: 14px 18px;
  border: 1.5px solid rgba(35, 72, 60, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

body.tests-library-page.test-catalog-page .paper-fit-banner span,
body.tests-library-page.test-catalog-page .paper-fit-banner strong {
  font-size: 12px;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card {
  min-height: 430px;
  overflow: hidden;
  border: 2px solid var(--test-edu-line);
  border-top: 2px solid var(--test-edu-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(35, 72, 60, 0.15);
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card:hover,
body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card:focus-within {
  border-color: var(--test-edu-line);
  box-shadow: 3px 3px 0 rgba(35, 72, 60, 0.2);
  transform: translate(3px, 3px);
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card:nth-child(n) .sample-paper-card__band {
  display: grid;
  min-height: 132px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 24px;
  color: var(--test-edu-ink);
  background: var(--test-edu-blue);
}

body[data-page="mock"].multipage-site.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card:nth-child(n) .sample-paper-card__band {
  color: var(--test-edu-ink);
  background: var(--test-edu-blue);
}

body[data-page="mock"].multipage-site.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card[data-test-card-tone="gold"] .sample-paper-card__band {
  background: var(--test-edu-yellow);
}

body[data-page="mock"].multipage-site.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card[data-test-card-tone="green"] .sample-paper-card__band {
  background: var(--test-edu-mint);
}

body.tests-library-page.test-catalog-page .sample-paper-card__mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1.5px solid var(--test-edu-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.68);
}

body.tests-library-page.test-catalog-page .sample-paper-card__mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

body.tests-library-page.test-catalog-page .sample-paper-card__level {
  display: grid;
  gap: 3px;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__band .sample-paper-card__level strong {
  color: var(--test-edu-ink);
  font-size: 28px;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__band .sample-paper-card__level small {
  color: var(--test-edu-muted);
  font-size: 12px;
  font-weight: 700;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__band > span:last-child {
  max-width: 155px;
  color: var(--test-edu-green-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  text-align: right;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__body {
  gap: 12px;
  padding: 26px;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__body > span {
  color: var(--test-edu-green-dark);
  font-size: 12px;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__body h2 {
  color: var(--test-edu-ink);
  font-size: 26px;
  line-height: 1.15;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__body p {
  color: var(--test-edu-muted);
  font-size: 14px;
  line-height: 1.6;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__stats {
  margin-top: 10px;
  border: 1px solid rgba(35, 72, 60, 0.18);
  border-radius: 12px;
  background: #fbf7f1;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__stats span {
  padding: 13px 12px;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__stats span + span {
  border-color: rgba(35, 72, 60, 0.16);
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__stats small,
body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__stats strong {
  color: var(--test-edu-muted);
  font-size: 12px;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__stats strong {
  color: var(--test-edu-ink);
  font-size: 13px;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__footer {
  min-height: 78px;
  gap: 10px;
  padding: 14px 18px;
  border-color: rgba(35, 72, 60, 0.16);
  background: #fff;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__footer .button {
  min-height: 46px;
  border: 1.5px solid var(--test-edu-line);
  border-radius: 11px;
  font-size: 12px;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__footer .button--dark {
  color: #fff;
  background: var(--test-edu-green);
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__footer .button--paper {
  color: var(--test-edu-ink);
  background: #fff;
}

body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__footer > small {
  color: var(--test-edu-muted);
  font-size: 12px;
}

body.tests-library-page.test-catalog-page .sample-library__note {
  gap: 24px;
  margin-top: 34px;
}

body.tests-library-page.test-catalog-page .sample-library__note > div,
body.tests-library-page.test-catalog-page .sample-library__note > div + div {
  min-height: 200px;
  padding: 28px;
  border: 2px solid var(--test-edu-line);
  border-radius: 20px;
  color: var(--test-edu-ink);
  background: var(--test-edu-yellow);
  box-shadow: 5px 5px 0 rgba(35, 72, 60, 0.14);
}

body.tests-library-page.test-catalog-page .sample-library__note > div + div {
  color: var(--test-edu-ink);
  background: var(--test-edu-mint);
}

body.tests-library-page.test-catalog-page .sample-library__note span,
body.tests-library-page.test-catalog-page .sample-library__note > div + div span {
  color: var(--test-edu-green-dark);
  font-size: 12px;
}

body.tests-library-page.test-catalog-page .sample-library__note strong {
  color: var(--test-edu-ink);
  font-size: 25px;
}

body.tests-library-page.test-catalog-page .sample-library__note p,
body.tests-library-page.test-catalog-page .sample-library__note > div + div p,
body.tests-library-page.test-catalog-page .sample-library__note a {
  color: var(--test-edu-muted);
  font-size: 14px;
  line-height: 1.6;
}

body.tests-library-page.test-catalog-page .sample-library__note a {
  color: var(--test-edu-green-dark);
  font-weight: 750;
}

body.tests-library-page.test-catalog-page .test-feature-rail {
  padding: 92px 0;
  border: 0;
  background: #fff;
}

body.tests-library-page.test-catalog-page .test-feature-rail__heading {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 42px;
}

body.tests-library-page.test-catalog-page .test-feature-rail__heading span {
  color: var(--test-edu-green-dark);
  font-size: 12px;
}

body.tests-library-page.test-catalog-page .test-feature-rail__heading p {
  color: var(--test-edu-muted);
  font-size: 15px;
}

body.tests-library-page.test-catalog-page .test-feature-rail__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 38px 0 0;
  padding: 0;
}

body.tests-library-page.test-catalog-page .test-feature-rail__grid article {
  display: grid;
  min-height: 250px;
  align-content: space-between;
  gap: 28px;
  padding: 28px;
  border: 2px solid var(--test-edu-line);
  border-radius: 20px;
  background: var(--test-edu-blue);
  box-shadow: 5px 5px 0 rgba(35, 72, 60, 0.14);
}

body.tests-library-page.test-catalog-page .test-feature-rail__grid article:nth-child(2) {
  background: var(--test-edu-peach);
}

body.tests-library-page.test-catalog-page .test-feature-rail__grid article:nth-child(3) {
  background: var(--test-edu-mint);
}

body.tests-library-page.test-catalog-page .test-feature-rail__grid article > span {
  color: rgba(23, 53, 46, 0.35);
  font-size: 42px;
  font-weight: 820;
  letter-spacing: -0.05em;
  line-height: 1;
}

body.tests-library-page.test-catalog-page .test-feature-rail__grid article > div {
  display: grid;
  gap: 8px;
}

body.tests-library-page.test-catalog-page .test-feature-rail__grid small {
  color: var(--test-edu-green-dark);
  font-size: 12px;
}

body.tests-library-page.test-catalog-page .test-feature-rail__grid strong {
  color: var(--test-edu-ink);
  font-size: 21px;
}

body.tests-library-page.test-catalog-page .test-feature-rail__grid p {
  color: var(--test-edu-muted);
  font-size: 14px;
  line-height: 1.6;
}

body.tests-library-page.test-catalog-page .test-final-cta {
  padding: 0 0 96px;
  background: #fff;
}

body.tests-library-page.test-catalog-page .test-final-cta > .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: clamp(34px, 5vw, 58px);
  border: 2px solid var(--test-edu-line);
  border-radius: 24px;
  background: var(--test-edu-yellow);
  box-shadow: 7px 7px 0 rgba(35, 72, 60, 0.18);
}

body.tests-library-page.test-catalog-page .test-final-cta h2 {
  max-width: 830px;
  margin: 10px 0 0;
}

body.tests-library-page.test-catalog-page .test-final-cta p {
  max-width: 690px;
  margin: 15px 0 0;
  color: var(--test-edu-muted);
  font-size: 15px;
  line-height: 1.6;
}

body.tests-library-page.test-catalog-page .test-final-cta .button {
  min-height: 50px;
  padding: 13px 20px;
  border: 2px solid var(--test-edu-line);
  border-radius: 12px;
  color: #fff;
  background: var(--test-edu-green);
  box-shadow: 4px 4px 0 var(--test-edu-line);
  white-space: nowrap;
}

body.tests-library-page.test-catalog-page :is(a, button):focus-visible {
  outline: 3px solid #b84732;
  outline-offset: 4px;
}

@media (max-width: 980px) {
  body.tests-library-page.test-catalog-page .seo-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
    min-height: 0;
  }

  body.tests-library-page.test-catalog-page .test-focus-card {
    width: 100%;
    max-width: 650px;
  }

  body.tests-library-page.test-catalog-page .test-version-grid,
  body.tests-library-page.test-catalog-page .sample-library__grid--levels {
    gap: 18px;
  }

  body.tests-library-page.test-catalog-page .test-feature-rail__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tests-library-page.test-catalog-page .test-feature-rail__grid article {
    min-height: 0;
  }

  body.tests-library-page.test-catalog-page .test-final-cta > .shell {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
}

@media (max-width: 760px) {
  body.tests-library-page.test-catalog-page [data-site-header] {
    padding-top: 0;
  }

  body.tests-library-page.test-catalog-page .site-header {
    top: 0;
    width: 100%;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
  }

  body.tests-library-page.test-catalog-page .seo-hero {
    padding-top: 18px;
  }

  body.tests-library-page.test-catalog-page .seo-hero__grid {
    padding: 22px 0 12px;
  }

  body.tests-library-page.test-catalog-page .seo-hero h1 {
    font-size: clamp(44px, 13vw, 60px);
  }

  body.tests-library-page.test-catalog-page .test-status-strip {
    padding-bottom: 54px;
  }

  body.tests-library-page.test-catalog-page .test-status-strip__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  body.tests-library-page.test-catalog-page .test-status-strip article {
    padding: 0;
  }

  body.tests-library-page.test-catalog-page .test-status-strip article + article {
    padding-top: 22px;
    border-top: 1px solid rgba(35, 72, 60, 0.2);
    border-left: 0;
  }

  body.tests-library-page.test-catalog-page .seo-section-heading,
  body.tests-library-page.test-catalog-page .test-feature-rail__heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.tests-library-page.test-catalog-page .test-version-grid,
  body.tests-library-page.test-catalog-page .sample-library__grid--levels,
  body.tests-library-page.test-catalog-page .sample-library__note {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tests-library-page.test-catalog-page .test-version-card {
    min-height: 310px;
  }

  body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  body.tests-library-page.test-catalog-page .shell {
    width: min(100% - 32px, 1240px);
  }

  body.tests-library-page.test-catalog-page .seo-hero__eyebrow {
    font-size: 11px;
  }

  body.tests-library-page.test-catalog-page .seo-hero__lead {
    font-size: 16px;
  }

  body.tests-library-page.test-catalog-page .test-hero-actions,
  body.tests-library-page.test-catalog-page .test-hero-actions .button,
  body.tests-library-page.test-catalog-page .test-final-cta .button {
    width: 100%;
  }

  body.tests-library-page.test-catalog-page .test-focus-card__header,
  body.tests-library-page.test-catalog-page .test-focus-card__progress,
  body.tests-library-page.test-catalog-page .test-focus-card__meta > span {
    padding-inline: 18px;
  }

  body.tests-library-page.test-catalog-page .test-version-section,
  body.tests-library-page.test-catalog-page .sample-library,
  body.tests-library-page.test-catalog-page .test-feature-rail {
    padding-block: 64px;
  }

  body.tests-library-page.test-catalog-page .test-version-card,
  body.tests-library-page.test-catalog-page .test-feature-rail__grid article {
    padding: 22px;
  }

  body.tests-library-page.test-catalog-page .test-version-card__edition {
    top: 22px;
    right: 22px;
    font-size: 58px;
  }

  body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card:nth-child(n) .sample-paper-card__band {
    min-height: 118px;
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 20px;
  }

  body.tests-library-page.test-catalog-page .sample-paper-card__mark {
    width: 50px;
    height: 50px;
  }

  body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__band > span:last-child {
    grid-column: 1 / -1;
    max-width: none;
    text-align: left;
  }

  body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__stats {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tests-library-page.test-catalog-page .sample-library__grid--levels .sample-paper-card__stats span + span {
    border-top: 1px solid rgba(35, 72, 60, 0.16);
    border-left: 0;
  }

  body.tests-library-page.test-catalog-page .test-final-cta {
    padding-bottom: 72px;
  }

  body.tests-library-page.test-catalog-page .test-final-cta > .shell {
    padding: 30px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tests-library-page.test-catalog-page .site-header .button--dark,
  body.tests-library-page.test-catalog-page .test-version-card,
  body.tests-library-page.test-catalog-page .sample-paper-card {
    transition: none;
  }
}

/* Test Center compact tool layout: one title, two choices, one result. */
body.tests-library-page.test-catalog-page .seo-hero {
  padding: 14px 0 24px;
}

body.tests-library-page.test-catalog-page .seo-hero__grid {
  min-height: 230px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding-block: 20px;
}

body.tests-library-page.test-catalog-page .seo-hero__grid > div:first-child {
  max-width: 760px;
}

body.tests-library-page.test-catalog-page .seo-hero__facts:empty {
  display: none;
}

body.tests-library-page.test-catalog-page .seo-hero h1 {
  max-width: none;
  margin-top: 8px;
  font-size: clamp(34px, 3.6vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

body.tests-library-page.test-catalog-page .seo-hero__lead {
  max-width: 560px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
}

body.tests-library-page.test-catalog-page .test-hero-actions {
  align-items: center;
  margin-top: 20px;
}

body.tests-library-page.test-catalog-page .test-hero-actions .button {
  min-height: 44px;
  padding-inline: 18px;
}

body.tests-library-page.test-catalog-page .test-hero-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--test-edu-ink);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

body.tests-library-page.test-catalog-page .test-hero-link:hover,
body.tests-library-page.test-catalog-page .test-hero-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.tests-library-page.test-catalog-page .test-resume-strip {
  padding: 14px 0 0;
  background: #fff7ef;
}

body.tests-library-page.test-catalog-page .test-resume-strip > .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(35, 72, 60, 0.18);
  border-radius: 13px;
  background: #fff;
}

body.tests-library-page.test-catalog-page .test-resume-strip > .shell > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

body.tests-library-page.test-catalog-page .test-resume-strip small {
  color: var(--test-edu-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.tests-library-page.test-catalog-page .test-resume-strip strong {
  color: var(--test-edu-ink);
  font-size: 14px;
}

body.tests-library-page.test-catalog-page .test-resume-strip span {
  color: var(--test-edu-muted);
  font-size: 12px;
}

body.tests-library-page.test-catalog-page .test-resume-strip .button {
  min-height: 42px;
  flex: 0 0 auto;
  padding-inline: 15px;
  font-size: 12px;
}

body.tests-library-page.test-catalog-page .test-center-catalog {
  padding: 46px 0 68px;
}

body.tests-library-page.test-catalog-page .test-center-catalog__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

body.tests-library-page.test-catalog-page .test-center-catalog__header h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 32px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

body.tests-library-page.test-catalog-page .test-center-catalog__header > p {
  max-width: none;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

body.tests-library-page.test-catalog-page .test-center-builder {
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  gap: 18px;
  margin-top: 22px;
}

body.tests-library-page.test-catalog-page .seo-hero__grid > *,
body.tests-library-page.test-catalog-page .test-hero-actions,
body.tests-library-page.test-catalog-page .test-center-builder > *,
body.tests-library-page.test-catalog-page .test-center-segmented > *,
body.tests-library-page.test-catalog-page .test-center-levels > *,
body.tests-library-page.test-catalog-page .test-center-selection__body > * {
  min-width: 0;
}

body.tests-library-page.test-catalog-page .test-center-controls,
body.tests-library-page.test-catalog-page .test-center-selection {
  border-radius: 16px;
}

body.tests-library-page.test-catalog-page .test-center-controls > section {
  padding: 20px;
}

body.tests-library-page.test-catalog-page .test-center-controls,
body.tests-library-page.test-catalog-page .test-center-selection {
  border-radius: 16px;
}

body.tests-library-page.test-catalog-page .test-center-control__heading {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
}

body.tests-library-page.test-catalog-page .test-center-control__heading > span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 11px;
}

body.tests-library-page.test-catalog-page .test-center-control__heading strong {
  font-size: 14px;
}

body.tests-library-page.test-catalog-page .test-center-segmented,
body.tests-library-page.test-catalog-page .test-center-levels {
  margin-top: 14px;
}

body.tests-library-page.test-catalog-page .test-center-segmented button {
  min-height: 54px;
}

body.tests-library-page.test-catalog-page .test-center-levels button {
  min-height: 48px;
}

body.tests-library-page.test-catalog-page .test-center-selection {
  grid-template-rows: auto auto auto 1fr;
  box-shadow: 3px 4px 0 rgba(35, 72, 60, 0.12);
}

body.tests-library-page.test-catalog-page .test-center-selection > header {
  min-height: 48px;
  padding: 10px 18px;
}

body.tests-library-page.test-catalog-page .test-center-selection__body {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
}

body.tests-library-page.test-catalog-page .test-center-selection__level {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  box-shadow: 2px 2px 0 rgba(35, 72, 60, 0.13);
}

body.tests-library-page.test-catalog-page .test-center-selection__level strong {
  font-size: 38px;
}

body.tests-library-page.test-catalog-page .test-center-selection h3 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(21px, 2.2vw, 25px);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

body.tests-library-page.test-catalog-page .test-center-selection__body p {
  margin: 8px 0 0;
  color: var(--test-edu-muted);
  font-size: 14px;
  line-height: 1.5;
}

body.tests-library-page.test-catalog-page .test-center-selection__metrics > div {
  gap: 4px;
  padding: 15px 18px;
}

body.tests-library-page.test-catalog-page .test-center-selection__metrics dd {
  font-size: 13px;
}

body.tests-library-page.test-catalog-page .test-center-selection > footer {
  grid-template-columns: max-content max-content minmax(190px, 1fr);
  gap: 10px;
  padding: 18px;
}

body.tests-library-page.test-catalog-page .test-center-selection__details {
  min-width: 0;
  justify-self: stretch;
  border: 1px solid rgba(35, 72, 60, 0.17);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

body.tests-library-page.test-catalog-page .test-center-selection__details summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: var(--test-edu-ink);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

body.tests-library-page.test-catalog-page .test-center-selection__details summary::-webkit-details-marker {
  display: none;
}

body.tests-library-page.test-catalog-page .test-center-selection__details summary::after {
  content: "+";
  color: var(--test-edu-muted);
  font-size: 17px;
  font-weight: 500;
}

body.tests-library-page.test-catalog-page .test-center-selection__details[open] summary::after {
  content: "−";
}

body.tests-library-page.test-catalog-page .test-center-selection__details p,
body.tests-library-page.test-catalog-page .test-center-selection__details small {
  display: block;
  margin: 0;
  padding: 0 12px 10px;
  color: var(--test-edu-muted);
  font-size: 12px;
  line-height: 1.48;
  text-align: left;
}

body.tests-library-page.test-catalog-page .test-center-selection__details small {
  padding-top: 0;
}

@media (max-width: 820px) {
  body.tests-library-page.test-catalog-page .test-center-builder {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tests-library-page.test-catalog-page .test-center-selection > footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tests-library-page.test-catalog-page .test-center-selection__details {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body.tests-library-page.test-catalog-page .seo-hero {
    padding: 10px 0 18px;
  }

  body.tests-library-page.test-catalog-page .seo-hero__grid {
    min-height: 0;
    padding-block: 16px;
  }

  body.tests-library-page.test-catalog-page .seo-hero h1 {
    font-size: 30px;
  }

  body.tests-library-page.test-catalog-page .test-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  body.tests-library-page.test-catalog-page .test-hero-actions .button,
  body.tests-library-page.test-catalog-page .test-hero-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  body.tests-library-page.test-catalog-page .seo-hero__lead {
    font-size: 14px;
  }

  body.tests-library-page.test-catalog-page .test-center-catalog {
    padding: 36px 0 54px;
  }

  body.tests-library-page.test-catalog-page .test-center-catalog__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  body.tests-library-page.test-catalog-page .test-center-catalog__header h2 {
    font-size: 24px;
  }

  body.tests-library-page.test-catalog-page .test-center-selection > footer {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tests-library-page.test-catalog-page .test-center-selection__details {
    grid-column: auto;
  }

  body.tests-library-page.test-catalog-page .test-resume-strip > .shell,
  body.tests-library-page.test-catalog-page .test-resume-strip > .shell > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  body.tests-library-page.test-catalog-page .test-resume-strip .button {
    width: 100%;
    justify-content: center;
  }
}

/* Unified Test Center: one version choice, one level choice, one matching result. */
body.tests-library-page.test-catalog-page .seo-hero__grid {
  min-height: 440px;
  padding-block: 28px;
}

body.tests-library-page.test-catalog-page .seo-hero h1 {
  max-width: 780px;
  font-size: clamp(48px, 5vw, 70px);
}

body.tests-library-page.test-catalog-page .test-status-strip {
  padding-bottom: 52px;
}

body.tests-library-page.test-catalog-page .test-center-catalog {
  position: relative;
  scroll-margin-top: 96px;
  padding: 86px 0 96px;
  border-top: 1px solid rgba(35, 72, 60, 0.16);
  background: #fff;
}

body.tests-library-page.test-catalog-page .test-center-anchor {
  position: absolute;
  top: 0;
}

body.tests-library-page.test-catalog-page .test-center-catalog__header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: 48px;
}

body.tests-library-page.test-catalog-page .test-center-catalog__header .kicker,
body.tests-library-page.test-catalog-page .test-center-selection .kicker {
  color: var(--test-edu-green-dark);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.1em;
}

body.tests-library-page.test-catalog-page .test-center-catalog__header h2 {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--test-edu-ink);
  font-size: clamp(38px, 4.3vw, 58px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
  text-wrap: balance;
}

body.tests-library-page.test-catalog-page .test-center-catalog__header > p {
  max-width: 520px;
  margin: 0;
  color: var(--test-edu-muted);
  font-size: 16px;
  line-height: 1.65;
}

body.tests-library-page.test-catalog-page .test-center-builder {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  margin-top: 42px;
}

body.tests-library-page.test-catalog-page .test-center-controls,
body.tests-library-page.test-catalog-page .test-center-selection {
  border: 1.5px solid var(--test-edu-line);
  border-radius: 20px;
}

body.tests-library-page.test-catalog-page .test-center-controls {
  display: grid;
  align-content: start;
  overflow: hidden;
  background: #f7f9f8;
}

body.tests-library-page.test-catalog-page .test-center-controls > section {
  padding: 26px;
}

body.tests-library-page.test-catalog-page .test-center-controls > section + section {
  border-top: 1px solid rgba(35, 72, 60, 0.16);
  background: #fffaf4;
}

body.tests-library-page.test-catalog-page .test-center-control__heading {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

body.tests-library-page.test-catalog-page .test-center-control__heading > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(35, 72, 60, 0.22);
  border-radius: 50%;
  color: var(--test-edu-green-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

body.tests-library-page.test-catalog-page .test-center-control__heading div {
  display: grid;
  gap: 3px;
}

body.tests-library-page.test-catalog-page .test-center-control__heading small {
  color: var(--test-edu-muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

body.tests-library-page.test-catalog-page .test-center-control__heading strong {
  color: var(--test-edu-ink);
  font-size: 16px;
}

body.tests-library-page.test-catalog-page .test-center-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
  padding: 5px;
  border: 1px solid rgba(35, 72, 60, 0.2);
  border-radius: 14px;
  background: #fff;
}

body.tests-library-page.test-catalog-page .test-center-segmented button {
  display: grid;
  min-height: 64px;
  align-content: center;
  gap: 3px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--test-edu-muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
}

body.tests-library-page.test-catalog-page .test-center-segmented button[aria-pressed="true"] {
  border-color: var(--test-edu-line);
  color: var(--test-edu-ink);
  background: var(--test-edu-blue);
  box-shadow: 2px 2px 0 rgba(35, 72, 60, 0.16);
}

body.tests-library-page.test-catalog-page [data-test-center-version="hsk30"] .test-center-segmented button[aria-pressed="true"] {
  background: var(--test-edu-peach);
}

body.tests-library-page.test-catalog-page .test-center-segmented strong {
  font-size: 15px;
}

body.tests-library-page.test-catalog-page .test-center-segmented small {
  font-size: 12px;
}

body.tests-library-page.test-catalog-page .test-center-help {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 10px;
  color: var(--test-edu-green-dark);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

body.tests-library-page.test-catalog-page .test-center-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

body.tests-library-page.test-catalog-page .test-center-levels button {
  display: flex;
  min-height: 54px;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(35, 72, 60, 0.2);
  border-radius: 11px;
  color: var(--test-edu-muted);
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
}

body.tests-library-page.test-catalog-page .test-center-levels button[aria-pressed="true"] {
  border-color: var(--test-edu-line);
  color: #fff;
  background: var(--test-edu-green);
  box-shadow: 2px 2px 0 var(--test-edu-line);
}

body.tests-library-page.test-catalog-page .test-center-levels button span {
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.06em;
}

body.tests-library-page.test-catalog-page .test-center-levels button strong {
  font-size: 19px;
}

body.tests-library-page.test-catalog-page .test-center-selection {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  overflow: hidden;
  background: #fffaf4;
  box-shadow: 6px 6px 0 rgba(35, 72, 60, 0.14);
}

body.tests-library-page.test-catalog-page .test-center-selection > header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(35, 72, 60, 0.16);
  background: var(--test-edu-blue);
}

body.tests-library-page.test-catalog-page [data-test-center-version="hsk30"] .test-center-selection > header {
  background: var(--test-edu-peach);
}

body.tests-library-page.test-catalog-page .test-center-selection > header span,
body.tests-library-page.test-catalog-page .test-center-selection > header small {
  color: var(--test-edu-ink);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
}

body.tests-library-page.test-catalog-page .test-center-selection__body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 32px;
}

body.tests-library-page.test-catalog-page .test-center-selection__level {
  display: grid;
  width: 116px;
  height: 116px;
  place-content: center;
  border: 1.5px solid var(--test-edu-line);
  border-radius: 26px;
  color: var(--test-edu-ink);
  background: #fff;
  box-shadow: 4px 4px 0 rgba(35, 72, 60, 0.15);
  text-align: center;
}

body.tests-library-page.test-catalog-page .test-center-selection__level small {
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.12em;
}

body.tests-library-page.test-catalog-page .test-center-selection__level strong {
  font-size: 52px;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

body.tests-library-page.test-catalog-page .test-center-selection h3 {
  max-width: 600px;
  margin: 8px 0 0;
  color: var(--test-edu-ink);
  font-size: clamp(28px, 3.2vw, 43px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

body.tests-library-page.test-catalog-page .test-center-selection__body p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--test-edu-muted);
  font-size: 15px;
  line-height: 1.6;
}

body.tests-library-page.test-catalog-page .test-center-selection__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(35, 72, 60, 0.16);
  border-bottom: 1px solid rgba(35, 72, 60, 0.16);
  background: #fff;
}

body.tests-library-page.test-catalog-page .test-center-selection__metrics > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 20px;
}

body.tests-library-page.test-catalog-page .test-center-selection__metrics > div + div {
  border-left: 1px solid rgba(35, 72, 60, 0.16);
}

body.tests-library-page.test-catalog-page .test-center-selection__metrics dt {
  color: var(--test-edu-muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

body.tests-library-page.test-catalog-page .test-center-selection__metrics dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--test-edu-ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
}

body.tests-library-page.test-catalog-page .test-center-selection > footer {
  display: grid;
  grid-template-columns: max-content max-content minmax(160px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 22px 24px;
}

body.tests-library-page.test-catalog-page .test-center-selection > footer .button {
  min-height: 48px;
  justify-content: center;
  border: 1.5px solid var(--test-edu-line);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 750;
}

body.tests-library-page.test-catalog-page .test-center-selection > footer .button--dark {
  color: #fff;
  background: var(--test-edu-green);
  box-shadow: 3px 3px 0 var(--test-edu-line);
}

body.tests-library-page.test-catalog-page .test-center-selection > footer > small {
  color: var(--test-edu-muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

body.tests-library-page.test-catalog-page .test-center-contract {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

body.tests-library-page.test-catalog-page .test-center-contract > span {
  display: grid;
  min-height: 78px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: center;
  column-gap: 10px;
  padding: 14px 18px;
  border: 1px solid rgba(35, 72, 60, 0.18);
  border-radius: 14px;
  background: #f7f9f8;
}

body.tests-library-page.test-catalog-page .test-center-contract .ph {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--test-edu-green);
  font-size: 22px;
}

body.tests-library-page.test-catalog-page .test-center-contract strong {
  color: var(--test-edu-ink);
  font-size: 13px;
}

body.tests-library-page.test-catalog-page .test-center-contract small {
  color: var(--test-edu-muted);
  font-size: 11px;
  line-height: 1.35;
}

body.tests-library-page.test-catalog-page .test-center-noscript {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--test-edu-line);
  border-radius: 12px;
}

@media (max-width: 1080px) {
  body.tests-library-page.test-catalog-page .test-center-builder {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  }

  body.tests-library-page.test-catalog-page .test-center-selection > footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tests-library-page.test-catalog-page .test-center-selection > footer > small {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 820px) {
  body.tests-library-page.test-catalog-page .test-center-catalog__header,
  body.tests-library-page.test-catalog-page .test-center-builder {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tests-library-page.test-catalog-page .test-center-catalog__header {
    gap: 18px;
  }

  body.tests-library-page.test-catalog-page .test-center-selection__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tests-library-page.test-catalog-page .test-center-selection__metrics > div:nth-child(3) {
    border-left: 0;
  }

  body.tests-library-page.test-catalog-page .test-center-selection__metrics > div:nth-child(n + 3) {
    border-top: 1px solid rgba(35, 72, 60, 0.16);
  }
}

@media (max-width: 640px) {
  body.tests-library-page.test-catalog-page .seo-hero__grid {
    min-height: 0;
  }

  body.tests-library-page.test-catalog-page .test-center-catalog {
    padding: 62px 0 72px;
  }

  body.tests-library-page.test-catalog-page .test-center-catalog__header h2 {
    font-size: clamp(36px, 11vw, 46px);
  }

  body.tests-library-page.test-catalog-page .test-center-builder {
    margin-top: 30px;
  }

  body.tests-library-page.test-catalog-page .test-center-controls > section,
  body.tests-library-page.test-catalog-page .test-center-selection__body {
    padding: 20px;
  }

  body.tests-library-page.test-catalog-page .test-center-segmented button {
    min-height: 66px;
  }

  body.tests-library-page.test-catalog-page .test-center-selection > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
  }

  body.tests-library-page.test-catalog-page .test-center-selection__body {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
  }

  body.tests-library-page.test-catalog-page .test-center-selection__level {
    width: 78px;
    height: 78px;
    border-radius: 18px;
  }

  body.tests-library-page.test-catalog-page .test-center-selection__level strong {
    font-size: 38px;
  }

  body.tests-library-page.test-catalog-page .test-center-selection h3 {
    font-size: 27px;
  }

  body.tests-library-page.test-catalog-page .test-center-selection__body p {
    grid-column: 1 / -1;
    font-size: 14px;
  }

  body.tests-library-page.test-catalog-page .test-center-selection > footer,
  body.tests-library-page.test-catalog-page .test-center-contract {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tests-library-page.test-catalog-page .test-center-selection > footer {
    padding: 20px;
  }

  body.tests-library-page.test-catalog-page .test-center-selection > footer .button,
  body.tests-library-page.test-catalog-page .test-center-selection > footer > small {
    width: 100%;
    grid-column: auto;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tests-library-page.test-catalog-page .test-center-segmented button,
  body.tests-library-page.test-catalog-page .test-center-levels button,
  body.tests-library-page.test-catalog-page .test-center-selection {
    transition: none;
  }
}

/* Final compact overrides must follow the legacy Test Center layer above. */
body.tests-library-page.test-catalog-page .test-center-controls,
body.tests-library-page.test-catalog-page .test-center-selection {
  border-radius: 16px;
}

body.tests-library-page.test-catalog-page .seo-hero {
  padding: 14px 0 24px;
}

body.tests-library-page.test-catalog-page .seo-hero__grid {
  min-height: 230px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding-block: 20px;
}

body.tests-library-page.test-catalog-page .seo-hero h1 {
  max-width: none;
  margin-top: 8px;
  font-size: clamp(34px, 3.6vw, 40px);
  line-height: 1.06;
}

body.tests-library-page.test-catalog-page .seo-hero__lead {
  max-width: 560px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
}

body.tests-library-page.test-catalog-page .test-center-catalog {
  padding: 46px 0 68px;
}

body.tests-library-page.test-catalog-page .test-center-catalog__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

body.tests-library-page.test-catalog-page .test-center-catalog__header h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.1;
}

body.tests-library-page.test-catalog-page .test-center-catalog__header > p {
  max-width: none;
  margin: 0;
  font-size: 14px;
}

body.tests-library-page.test-catalog-page .test-center-builder {
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  gap: 18px;
  margin-top: 22px;
}

body.tests-library-page.test-catalog-page .test-center-controls > section {
  padding: 20px;
}

body.tests-library-page.test-catalog-page .test-center-segmented,
body.tests-library-page.test-catalog-page .test-center-levels {
  margin-top: 14px;
}

body.tests-library-page.test-catalog-page .test-center-segmented button {
  min-height: 54px;
}

body.tests-library-page.test-catalog-page .test-center-levels button {
  min-height: 48px;
}

body.tests-library-page.test-catalog-page .test-center-selection__body {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
}

body.tests-library-page.test-catalog-page .test-center-selection__level {
  width: 82px;
  height: 82px;
  border-radius: 18px;
}

body.tests-library-page.test-catalog-page .test-center-selection__level strong {
  font-size: 38px;
}

body.tests-library-page.test-catalog-page .test-center-selection h3 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.12;
}

body.tests-library-page.test-catalog-page .test-center-selection > footer {
  grid-template-columns: max-content max-content minmax(190px, 1fr);
  gap: 10px;
  padding: 18px;
}

@media (max-width: 820px) {
  body.tests-library-page.test-catalog-page .test-center-builder {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tests-library-page.test-catalog-page .test-center-selection > footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tests-library-page.test-catalog-page .test-center-selection__details {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body.tests-library-page.test-catalog-page .seo-hero {
    padding: 10px 0 18px;
  }

  body.tests-library-page.test-catalog-page .seo-hero__grid {
    min-height: 0;
    padding-block: 16px;
  }

  body.tests-library-page.test-catalog-page .seo-hero h1 {
    font-size: 30px;
  }

  body.tests-library-page.test-catalog-page .test-center-catalog {
    padding: 36px 0 54px;
  }

  body.tests-library-page.test-catalog-page .test-center-catalog__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  body.tests-library-page.test-catalog-page .test-center-catalog__header h2 {
    font-size: 24px;
  }

  body.tests-library-page.test-catalog-page .test-center-selection > footer {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tests-library-page.test-catalog-page .test-center-selection__details {
    grid-column: auto;
  }
}
