.tests-page { padding-top: 40px; max-width: 1240px; }
.tests-heading { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 38px; background: #002653; border-radius: 20px; color: white; }
.tests-heading > div { max-width: 720px; min-width: 0; }
.tests-heading .eyebrow { color: #a5c7eb; font-size: 10px; }
.tests-heading h1 { color: white; font-size: clamp(36px,4.5vw,58px); letter-spacing: -2px; line-height: 1.15; margin: 16px 0; }
.tests-heading h1 em { color: #82ef4f; font-style: normal; }
.tests-heading p { color: #e0ebf8; font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.tests-heading .tests-scope { color: #b8cfe9; font-size: 12px; margin: 0; }
.tests-heading > .button { background: #65ed27; color: #002653; border-color: #65ed27; flex-shrink: 0; }
.tests-filters { display: grid; grid-template-columns: 180px minmax(0,1.4fr) minmax(0,1fr) auto; align-items: end; gap: 16px; padding: 26px 0; }
.tests-filters label { margin: 0; font-size: 12px; min-width: 0; }
.tests-filters select { margin-top: 8px; width: 100%; min-width: 0; font-size: 14px; min-height: 46px; }
.tests-filters .button { min-height: 46px; }
.tests-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: #f3f8fe; border: 1px solid var(--line); border-radius: 14px; padding: 25px 0; }
.tests-stats > div { padding: 0 26px; border-right: 1px solid var(--line); }
.tests-stats > div:last-child { border: 0; }
.tests-stats strong { display: block; font-family: Space,sans-serif; font-size: 37px; letter-spacing: -1px; color: #002653; line-height: 1.3; }
.tests-stats span { display: block; margin-top: 5px; font-size: 12px; color: #536b84; }
.tests-sections { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0; }
.tests-sections a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 13px; color: #365574; }
.tests-page .tests-card { margin: 0 0 28px; padding: 30px; border-radius: 16px; box-shadow: 0 8px 28px #00265306; min-width: 0; }
.tests-page [id] { scroll-margin-top: 100px; }
.tests-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tests-section-heading .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
.tests-section-heading h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.7px; margin: 10px 0 0; }
.tests-period { display: inline-block; white-space: nowrap; font-size: 11px; background: #f0f6fd; padding: 8px 12px; border-radius: 20px; color: #365574; }
.tests-page .tests-caption { font-size: 13px; margin: 18px 0 24px; }
.tests-ranking { width: 100%; min-width: 0; table-layout: fixed; }
.tests-ranking thead th { background: #f2f7fd; font-size: 11px; color: #536b84; padding: 14px 12px; white-space: normal; }
.tests-ranking thead th:first-child { width: 38%; }
.tests-ranking td, .tests-ranking tbody th { padding: 22px 12px; font-size: 13px; border-bottom: 1px solid var(--line); background: white; vertical-align: middle; white-space: normal; overflow-wrap: anywhere; }
.tests-ranking tbody th { font-weight: 400; text-align: left; }
.tests-entity { display: flex; align-items: center; gap: 14px; }
.tests-position { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; color: #536b84; background: #f0f5fb; font-weight: 700; font-size: 15px; }
.tests-position.tests-podium { background: #002653; color: #8aef5b; }
.tests-entity a { font-weight: 600; font-size: 15px; color: #002653; text-decoration: none; }
.tests-entity a:hover { text-decoration: underline; }
.tests-ranking small { display: block; color: #536b84; font-size: 11px; margin-top: 5px; font-weight: 400; }
.tests-time { font-size: 19px; font-family: Space,sans-serif; color: #006bd6; }
.tests-ranking time { font-size: 11px; color: #536b84; }
.tests-activity { padding: 0; margin: 28px 0 0; list-style: none; }
.tests-activity li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 0; border-top: 1px solid var(--line); }
.tests-activity-info { min-width: 0; overflow-wrap: anywhere; }
.tests-activity time { font-size: 11px; color: #536b84; }
.tests-activity h3 { font-size: 18px; margin: 8px 0 4px; }
.tests-activity h3 a { text-decoration: none; }
.tests-page .tests-activity p { margin: 0; font-size: 12px; color: #536b84; }
.tests-activity-result { display: grid; justify-items: end; gap: 8px; flex-shrink: 0; }
.tests-result { font-size: 10px; font-weight: 600; padding: 6px 9px; border-radius: 6px; }
.tests-result.is-complete { color: #286014; background: #effbe6; }
.tests-result.is-incomplete { color: #7b4b12; background: #fff6e5; }
.tests-activity-result > strong { font-family: Space,sans-serif; color: #002653; font-size: 23px; }
.tests-result-detail { font-size: 10px; color: #536b84; }
.tests-empty { padding: 38px 24px; text-align: center; background: #f7faff; border-radius: 12px; margin-top: 24px; }
.tests-empty > .icon { color: #006bd6; width: 32px; height: 32px; }
.tests-empty h3 { font-size: 23px; margin: 18px 0 12px; }
.tests-page .tests-empty p { max-width: 560px; font-size: 14px; margin: 0 auto 20px; line-height: 1.8; }
.tests-method { border: 1px solid var(--line); padding: 22px 28px; border-radius: 12px; background: #f5f9ff; }
.tests-method summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.tests-method p { font-size: 13px; line-height: 1.85; color: #365574; margin-bottom: 0; }
@media(max-width:1000px) { .tests-heading { align-items: flex-start; flex-direction: column; gap: 24px; } .tests-filters { grid-template-columns: 1fr 1fr; } .tests-ranking thead th:first-child { width: 32%; } }
@media(max-width:760px) {
  .tests-page { padding-top: 24px; }
  .tests-heading { padding: 27px 23px; border-radius: 16px; }
  .tests-heading h1 { font-size: 39px; letter-spacing: -1.5px; }
  .tests-heading p { font-size: 15px; }
  .tests-heading > .button { width: 100%; white-space: normal; }
  .tests-filters select { font-size: 16px; }
  .tests-stats { grid-template-columns: 1fr 1fr; gap: 25px 0; padding: 22px 0; }
  .tests-stats > div { padding: 0 20px; }
  .tests-stats > div:nth-child(2) { border: 0; }
  .tests-stats strong { font-size: 32px; }
  .tests-stats span { font-size: 11px; }
  .tests-page .tests-card { padding: 24px 20px; }
  .tests-section-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .tests-section-heading h2 { font-size: 25px; }
  .tests-ranking thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tests-ranking tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .tests-ranking td, .tests-ranking tbody th { display: block; padding: 0; border: 0; }
  .tests-ranking tbody th { grid-column: 1/-1; margin-bottom: 6px; }
  .tests-ranking td::before { content: attr(data-label); display: block; font-size: 11px; color: #536b84; margin-bottom: 6px; }
  .tests-activity li { gap: 16px; }
  .tests-activity h3 { font-size: 16px; }
  .tests-activity-result { max-width: 48%; flex-shrink: 1; text-align: right; }
  .tests-result-detail { line-height: 1.7; }
  .tests-empty { padding: 28px 16px; }
  .tests-method { padding: 20px; }
}
@media(max-width:480px) { .tests-filters { grid-template-columns: minmax(0,1fr); gap: 14px; } .tests-sections { gap: 0 18px; } .tests-sections a { font-size: 12px; } }
