/* Results + payment screens (Figma 1:1117, 1:1358) */

.rus-test--postflow .rus-test-exam__sidebar,
.rus-test--postflow .rus-test-exam__main,
.rus-test--postflow .rus-test-exam__lead,
.rus-test--postflow .rus-test-exam-cover,
.rus-test--postflow .rus-test__empty {
  display: none !important;
}

.rus-test--postflow .rus-test-exam {
  display: block;
}

.rus-test--postflow .rus-test-exam__results {
  background: #eaf1f6;
  border-radius: 10px;
  padding: clamp(16px, 2vw, 24px);
}

.rus-test-exam__results,
.rus-test-payment,
.rus-test-exam__processing {
  width: 100%;
}

.rus-test-exam__processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  justify-content: center;
  padding-block: clamp(48px, 8vw, 120px);
}

.rus-test-exam__processing-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(0, 114, 201, 0.15);
  border-top-color: var(--rx-blue, #0072c9);
  border-radius: 50%;
  animation: rus-test-processing-spin 0.8s linear infinite;
}

@keyframes rus-test-processing-spin {
  to {
    transform: rotate(360deg);
  }
}

.rus-test-exam__processing[hidden],
.rus-test-payment[hidden],
.rus-test-exam__results[hidden] {
  display: none !important;
}

.rus-test-exam__processing-text {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.4;
  text-align: center;
  color: var(--color-text, #1a1a1a);
}

.rus-test-results {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 60px);
  padding-block: clamp(24px, 3vw, 40px);
  max-width: 100%;
}

/* ─── Hero (Figma result block) ───────────────────────────── */

.rus-test-results__hero {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: clamp(16px, 2vw, 30px);
  align-items: start;
}

.rus-test-results__hero-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.rus-test-results__title {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
}

.rus-test-results__subtitle {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.87);
}

.rus-test-results__score {
  margin: 0 0 12px;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 500;
  line-height: 1.4;
}

.rus-test-results__verdict {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 500;
  line-height: 1.4;
}

.rus-test-results__verdict-mark {
  color: #cc0a0a;
  font-weight: 700;
}

.rus-test-results__pdf {
  margin: 16px 0 0;
}

.rus-test-results__pdf-link {
  font-size: 16px;
  font-weight: 500;
  color: #2154b2;
  text-decoration: underline;
  cursor: pointer;
}

.rus-test-results__pdf-link:hover,
.rus-test-results__pdf-link:focus-visible {
  color: #000;
}

/* Hide interactive chrome while capturing screenshot → PDF / Chromium print */
.rus-test-results.is-pdf-capture .rus-test-results__pdf,
.rus-test-results.is-pdf-capture .rus-test-results__share,
.rus-test-results.is-pdf-capture .rus-test-results__email,
.rus-test-results.is-pdf-capture .rus-test-results__btn--wide,
.rus-test-results.is-pdf-capture .rus-test-exam__audio-player,
body.rus-pdf-render .rus-test-results__pdf,
body.rus-pdf-render .rus-test-results__share,
body.rus-pdf-render .rus-test-results__email,
body.rus-pdf-render .rus-test-results__btn--wide,
body.rus-pdf-render .rus-test-exam__audio-player,
body.rus-pdf-render .rus-test-results__pills-wrap,
body.rus-pdf-render .site-header,
body.rus-pdf-render .site-footer,
body.rus-pdf-render header.header,
body.rus-pdf-render footer.footer,
body.rus-pdf-render .header,
body.rus-pdf-render .footer {
  display: none !important;
}

body.rus-pdf-render,
body.rus-pdf-render * {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

body.rus-pdf-render .rus-test-results-page {
  background: #eaf1f6;
  padding: 12px 0 16px;
}

body.rus-pdf-render .rus-test-results {
  display: block;
  gap: 0;
  padding-block: 8px;
}

body.rus-pdf-render .rus-test-results > * {
  margin-bottom: 18px;
}

body.rus-pdf-render .rus-test-results__hero {
  display: block;
}

body.rus-pdf-render .rus-test-results__hero-icon {
  float: left;
  margin: 0 16px 8px 0;
}

body.rus-pdf-render .rus-test-results__paid,
body.rus-pdf-render .rus-test-results__details,
body.rus-pdf-render .rus-test-results__details-intro,
body.rus-pdf-render .rus-test-results__module,
body.rus-pdf-render .rus-test-results__part,
body.rus-pdf-render .rus-test-results__question-block,
body.rus-pdf-render .rus-test-results__question-card {
  display: block !important;
}

body.rus-pdf-render .rus-test-results__paid {
  gap: 0;
}

body.rus-pdf-render .rus-test-results__paid > * {
  margin-bottom: 16px;
}

/* Outer shells may split; keep inner units together. */
body.rus-pdf-render .rus-test-results__details,
body.rus-pdf-render .rus-test-results__module--hard,
body.rus-pdf-render .rus-test-results__module--simple,
body.rus-pdf-render .rus-test-results__part,
body.rus-pdf-render .rus-test-results__section-card {
  break-inside: auto;
  page-break-inside: auto;
  box-shadow: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.rus-pdf-render .rus-test-results__details {
  gap: 0;
  padding: 16px 8px 8px;
}

body.rus-pdf-render .rus-test-results__hero,
body.rus-pdf-render .rus-test-results__recommend,
body.rus-pdf-render .rus-test-results__ai-summary,
body.rus-pdf-render .rus-test-results__sub-quest,
body.rus-pdf-render .rus-test-results__answer-row,
body.rus-pdf-render .rus-test-results__explain,
body.rus-pdf-render .rus-test-results__group-instruction {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* Prefer keeping a whole question on one page; if too tall Chromium may still split. */
body.rus-pdf-render .rus-test-results__question-card {
  break-inside: avoid;
  page-break-inside: avoid;
  break-before: auto;
  page-break-before: auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  margin: 0 0 10px;
  padding: 10px 12px;
}

body.rus-pdf-render .rus-test-results__module {
  break-before: auto;
  page-break-before: auto;
  margin-bottom: 14px;
}

body.rus-pdf-render .rus-test-results__module-title,
body.rus-pdf-render .rus-test-results__part-title {
  break-after: avoid;
  page-break-after: avoid;
  break-inside: avoid;
  page-break-inside: avoid;
}

body.rus-pdf-render .rus-test-results__explain {
  border: none;
}

body.rus-pdf-render .rus-test-results__question-block {
  gap: 0;
}

body.rus-pdf-render .rus-test-results__question-block > * {
  margin-bottom: 10px;
}

body.rus-pdf-render .rus-test-results__section--pdf {
  margin-bottom: 8px;
}

/* Prefer solid blue over gradient text in print. */
body.rus-pdf-render .text-gradient-blue {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #2154b2;
}

body.rus-pdf-render .rus-test-results__explain-link::-webkit-details-marker {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 8mm;
  }

  body.rus-pdf-render .rus-test-results-page {
    background: #eaf1f6 !important;
  }

  body.rus-pdf-render .rus-test-results__question-card {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }
}

.rus-test-results__share {
  margin-top: clamp(16px, 2vw, 24px);
}

.rus-test-results__share-label {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 500;
  line-height: 1.4;
}

.rus-test-results__share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.rus-test-results__share-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  background: #f9fafb;
}

.rus-test-results__email {
  margin-top: clamp(12px, 1.5vw, 18px);
}

.rus-test-results__email-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.rus-test-results__email-row .rus-test-results__btn {
  flex: 0 0 auto;
  padding: 12px 24px;
}

.rus-test-results__email-row .rus-test-results__share-input {
  flex: 1 1 220px;
  background: #fff;
}

.rus-test-results__email-status {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #4b5563;
}

.rus-test-results__email-status.is-success {
  color: #1f7a4d;
}

.rus-test-results__email-status.is-error {
  color: #cc0a0a;
}

.rus-test-results-page {
  background: #eaf1f6;
  padding-block: clamp(24px, 4vw, 48px);
}

.rus-test-results-page__pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 40px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 10px;
  background: #f3f6fb;
  text-align: center;
}

.rus-test-results-page__pending-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(33, 84, 178, 0.2);
  border-top-color: #2154b2;
  border-radius: 50%;
  animation: rus-test-payment-spin 0.85s linear infinite;
}

.rus-test-results-page__pending-title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  color: #124097;
}

.rus-test-results-page__pending-text {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.45;
  color: #4b5563;
}

.rus-test-results-page__content.is-pending {
  opacity: 0.45;
  pointer-events: none;
}

.rus-test-results-page__payment {
  margin-top: clamp(24px, 4vw, 40px);
}

.rus-test-results-page--missing {
  padding-block: clamp(48px, 8vw, 120px);
  text-align: center;
}

.rus-test-results-page__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
}

.rus-test-results-page__text {
  margin: 0 0 24px;
  color: #4b5563;
}

/* ─── Upsell (system_results) ─────────────────────────────── */

.rus-test-results__upsell {
  background: rgba(255, 255, 255, 0.64);
  border-radius: 10px;
  box-shadow: 0 2px 10.5px rgba(17, 38, 53, 0.1);
  padding: clamp(24px, 3vw, 30px);
  text-align: center;
}

.rus-test-results__upsell-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.rus-test-results__upsell-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.rus-test-results__upsell-text {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.54);
  text-align: center;
}

.rus-test-results__upsell-text:last-of-type {
  margin-bottom: 24px;
}

.rus-test-results__group-instruction {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.rus-test-results__group-instruction p {
  margin: 0;
}

.rus-test-results__task-label {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.54);
}

.rus-test-results__sub-quest {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 7px;
  scroll-margin-top: 16px;
}

.rus-test-results__question-prompt {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.rus-test-results__question-prompt p {
  margin: 0;
}

.rus-test-results__question-prompt .rus-test-question-table-wrap {
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 16px;
}

.rus-test-results__question-prompt .rus-test-question-table-wrap > p {
  margin: 0 0 10px;
  text-align: center;
  width: 100%;
}

.rus-test-results__question-prompt .rus-test-question-table {
  width: 100%;
  min-width: min(100%, 560px);
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
}

.rus-test-results__question-prompt .rus-test-question-table td,
.rus-test-results__question-prompt .rus-test-question-table th {
  vertical-align: top;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.rus-test-results__question-prompt .rus-test-question-table td p {
  margin: 0;
  font-weight: inherit;
}

/* ─── Details panel ───────────────────────────────────────── */

.rus-test-results__paid {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 60px);
}

.rus-test-results__details {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  box-shadow: 0 2px 10.5px rgba(17, 38, 53, 0.1);
  padding: 32px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rus-test-results__details-intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rus-test-results__details-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.rus-test-results__modules-label {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: #e83b3b;
}

.rus-test-results__module {
  margin-bottom: 20px;
}

.rus-test-results__module--hard {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  box-shadow: 0 2px 10.5px rgba(17, 38, 53, 0.1);
  padding: 7px 10px;
}

.rus-test-results__module--simple {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  box-shadow: 0 2px 10.5px rgba(17, 38, 53, 0.1);
  padding: 7px 10px;
}

.rus-test-results__module-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.rus-test-results__part {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10.5px rgba(17, 38, 53, 0.1);
  padding: 7px 10px;
  margin-top: 10px;
}

.rus-test-results__part-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.87);
}

.rus-test-results__section {
  margin-top: 10px;
}

.rus-test-results__section-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10.5px rgba(17, 38, 53, 0.1);
  padding: 7px 10px;
}

.rus-test-results__section-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.87);
}

.rus-test-results__question-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rus-test-results__pills-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10.5px rgba(17, 38, 53, 0.1);
  padding: 10px;
}

.rus-test-results__pills-label {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: #e83b3b;
  margin-right: 8px;
  white-space: nowrap;
}

.rus-test-results__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.rus-test-results__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #2154b2;
  box-shadow: 0 2px 10.5px rgba(0, 114, 201, 0.1);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.rus-test-results__pill.is-correct {
  background: #75cb99;
  box-shadow: 0 2px 10.5px rgba(117, 203, 153, 0.35);
}

.rus-test-results__pill.is-wrong {
  background: #e83b3b;
  box-shadow: 0 2px 10.5px rgba(232, 59, 59, 0.25);
}

.rus-test-results__pill-num {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
}

.rus-test-results__pill.is-active {
  background: #fff;
  box-shadow: 0 2px 10.5px rgba(17, 38, 53, 0.15);
}

.rus-test-results__pill.is-active.is-correct .rus-test-results__pill-num {
  color: #75cb99;
}

.rus-test-results__pill.is-active.is-wrong .rus-test-results__pill-num {
  color: #e83b3b;
}

.rus-test-results__question-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10.5px rgba(17, 38, 53, 0.1);
  padding: 5px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rus-test-results__question-prompt {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.rus-test-results__question-prompt p {
  margin: 0;
}

.rus-test-results__question-prompt .rus-test-question-table-wrap {
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 16px;
}

.rus-test-results__question-prompt .rus-test-question-table-wrap > p {
  margin: 0 0 10px;
  text-align: center;
  width: 100%;
}

.rus-test-results__question-prompt .rus-test-question-table {
  width: 100%;
  min-width: min(100%, 560px);
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
}

.rus-test-results__question-prompt .rus-test-question-table td,
.rus-test-results__question-prompt .rus-test-question-table th {
  vertical-align: top;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.rus-test-results__question-prompt .rus-test-question-table td p {
  margin: 0;
  font-weight: inherit;
}

.rus-test-results__audio {
  max-width: 100%;
}

.rus-test-results__table-image {
  margin: 4px 0;
}

.rus-test-results__table-image img {
  max-width: 100%;
  height: auto;
}

.rus-test-results__answers {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rus-test-results__answer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10.5px rgba(17, 38, 53, 0.1);
}

.rus-test-results__radio {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 28px;
  flex: 0 0 30px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.2);
  background: #fff;
}

.rus-test-results__radio.is-correct {
  background: #75cb99;
  border-color: #75cb99;
}

.rus-test-results__radio.is-wrong {
  background: #e83b3b;
  border-color: #e83b3b;
}

.rus-test-results__radio.is-selected.is-correct::after,
.rus-test-results__radio.is-correct::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

.rus-test-results__answer-radio {
  width: 30px;
  height: 28px;
  flex: 0 0 30px;
}

.rus-test-results__answer-image {
  max-width: 120px;
  height: auto;
}

.rus-test-results__answer-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.87);
}

.rus-test-results__text-answer p {
  margin: 0 0 6px;
  font-size: 16px;
}

.rus-test-results__explain {
  margin: 8px 0 0;
}

.rus-test-results__explain-link {
  font-size: 16px;
  font-weight: 500;
  color: #2154b2;
  text-decoration: underline;
  cursor: pointer;
  list-style: none;
}

.rus-test-results__explain-link::-webkit-details-marker {
  display: none;
}

.rus-test-results__explain-link:hover,
.rus-test-results__explain-link:focus-visible {
  color: #000;
}

.rus-test-results__explain-body {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(33, 84, 178, 0.06);
  font-size: 15px;
  line-height: 150%;
  color: rgba(0, 0, 0, 0.87);
  white-space: pre-wrap;
}

.rus-test-results__explain--pdf .rus-test-results__explain-link {
  text-decoration: none;
  cursor: default;
}

/* ─── Recommend + CTA ───────────────────────────────────────── */

.rus-test-results__ai-summary {
  margin: clamp(24px, 3vw, 40px) 0;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 12px;
  background: rgba(0, 114, 201, 0.06);
}

.rus-test-results__ai-summary-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 120%;
}

.rus-test-results__ai-summary-body {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 150%;
  color: rgba(0, 0, 0, 0.87);
  white-space: pre-wrap;
}

.rus-test-results__recommend {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: clamp(16px, 2vw, 30px);
  align-items: start;
}

.rus-test-results__recommend-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
}

.rus-test-results__recommend-body {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.87);
}

.rus-test-results__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 50px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.75px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
}

.rus-test-results__btn--primary {
  background: #cc0a0a;
  color: #fff;
}

.rus-test-results__btn--primary:hover,
.rus-test-results__btn--primary:focus-visible {
  color: #000;
  background: #cc0a0a;
}

.rus-test-results__btn--wide {
  width: 100%;
  min-height: 52px;
  padding: 16px 56px;
  font-size: 17px;
}

/* ─── Payment ─────────────────────────────────────────────── */

.rus-test-payment__scene {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, #2154b2 0%, #124097 100%);
  padding: clamp(20px, 3vw, 40px) clamp(16px, 2.78vw, 40px) clamp(32px, 4vw, 48px);
  min-height: 520px;
}

.rus-test-payment__overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 64, 151, 0.94);
  border-radius: 10px;
}

.rus-test-payment__overlay[hidden] {
  display: none !important;
}

.rus-test-payment__overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(420px, 90%);
  padding: 24px;
  text-align: center;
  color: #fff;
}

.rus-test-payment__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rus-test-payment-spin 0.85s linear infinite;
}

@keyframes rus-test-payment-spin {
  to {
    transform: rotate(360deg);
  }
}

.rus-test-payment__overlay-title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  line-height: 1.35;
}

.rus-test-payment__overlay-text {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.45;
  opacity: 0.92;
}

.rus-test-payment.is-processing .rus-test-payment__grid {
  visibility: hidden;
}

.rus-test-payment.is-processing .rus-test-payment__heading {
  visibility: hidden;
}

.rus-test-payment__back {
  position: absolute;
  inset: 0 0 0 40%;
  pointer-events: none;
  opacity: 0.5;
  mask-image: url('../../../assets/images/figma/lead-back-mask.svg');
  mask-size: cover;
  mask-position: center;
  -webkit-mask-image: url('../../../assets/images/figma/lead-back-mask.svg');
  -webkit-mask-size: cover;
}

.rus-test-payment__back-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rus-test-payment__heading {
  position: relative;
  z-index: 1;
  margin: 0 0 clamp(12px, 1.5vw, 16px);
  max-width: 577px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.rus-test-payment__notice {
  position: relative;
  z-index: 1;
  margin: 0 0 clamp(20px, 2.5vw, 32px);
  max-width: 720px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.45;
  color: #fff;
}

.rus-test-payment__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(160px, 198px) minmax(220px, 288px) minmax(280px, 1fr);
  gap: clamp(16px, 2.5vw, 36px);
  align-items: start;
}

.rus-test-payment__label {
  margin: 0 0 10px;
  padding-left: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.rus-test-payment__card {
  background: rgba(255, 255, 255, 0.64);
  border-radius: 10px;
  box-shadow: 0 2px 10.5px rgba(17, 38, 53, 0.1);
  padding: clamp(16px, 2vw, 30px);
}

.rus-test-payment__methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rus-test-payment__method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 10px 5px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.rus-test-payment__method span {
  font-size: 12px;
  line-height: 1.5;
  background: linear-gradient(180deg, #2154b2 0%, #1a4fb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rus-test-payment__method.is-active {
  outline: 2px solid #2154b2;
}

.rus-test-payment__card-logos {
  width: 131px;
  height: auto;
  align-self: center;
}

.rus-test-payment__order-num,
.rus-test-payment__order-item,
.rus-test-payment__order-total {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.rus-test-payment__order-total strong {
  font-size: 20px;
}

.rus-test-payment__card--widget {
  color: #333;
}

.rus-test-payment__loading {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.rus-test-payment__loading-text {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #2154b2;
}

.rus-test-payment__widget.is-hidden {
  display: none;
}

.rus-test-payment__legal,
.rus-test-payment__secure {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.54);
}

.rus-test-payment__legal a {
  color: #50b3ff;
}

@media (max-width: 900px) {
  .rus-test-payment__grid {
    grid-template-columns: 1fr;
  }

  .rus-test-payment__back {
    display: none;
  }
}

@media (max-width: 600px) {
  .rus-test-results__hero,
  .rus-test-results__recommend {
    grid-template-columns: 1fr;
  }

  .rus-test-results__pills-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .rus-test-results__email-row .rus-test-results__btn {
    width: 100%;
  }
}
