/* Лендинг карьерного теста */

.career-test-landing .career-test-hero {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.career-test-hero__container {
  max-width: min(46rem, 92vw);
  margin: 0 auto;
  text-align: center;
}

.career-test-hero__actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.career-test-hero__trust {
  display: block;
  max-width: min(52rem, 96vw);
  margin: 1.1rem auto 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--home-muted);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .career-test-hero__trust {
    white-space: normal;
    max-width: 28rem;
  }
}

.career-test-benefits {
  scroll-margin-top: calc(var(--header-height, 60px) + 5rem);
}

.career-test-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .career-test-benefits__grid {
    grid-template-columns: 1fr;
  }
}

.career-test-benefit-card {
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(17, 24, 39, 0.72);
}

.career-test-benefit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--home-accent);
  font-size: 1rem;
}

.career-test-benefit-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.career-test-benefit-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--home-muted);
}

.career-test-flow__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.career-test-flow__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(17, 24, 39, 0.55);
}

.career-test-flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--home-accent-2);
  font-weight: 700;
  font-size: 0.9rem;
}

.career-test-flow__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.career-test-flow__body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--home-muted);
}

.career-test-intro-panel {
  max-width: min(40rem, 92vw);
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  text-align: center;
}

.career-test-intro-panel__lead {
  margin: 0 0 1.25rem;
  color: var(--home-muted);
  line-height: 1.55;
}

.career-test-intro-panel form {
  margin-top: 1.75rem;
}

/* Wizard */

.career-test-landing--wizard .home-landing__inner > nav.career-subnav + section.career-test-wizard.home-section {
  padding-top: 0.25rem;
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.career-test-landing--wizard .career-test-wizard__container {
  max-width: 100%;
  width: 100%;
}

.career-test-wizard__header {
  margin-bottom: 1.25rem;
}

.career-test-landing--wizard .career-test-wizard__header {
  text-align: left;
  margin-bottom: 0.85rem;
}

.career-test-landing--wizard .career-test-wizard__header .home-section-title {
  margin-bottom: 0;
}

.career-test-wizard__panel {
  padding: 1.35rem 1.5rem;
  --cabinet-text: var(--home-text);
  --cabinet-text-muted: var(--home-muted);
  --cabinet-border: rgba(148, 163, 184, 0.18);
}

.career-test-wizard__progress {
  margin-bottom: 1.25rem;
}

.career-test-wizard__bar {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.career-test-wizard__bar-fill {
  height: 100%;
  width: var(--career-test-progress, 0%);
  border-radius: inherit;
  background: var(--home-cta);
  transition: width 0.2s ease;
}

.career-test-wizard__progress-label {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
  color: var(--home-muted);
}

.career-test-wizard__panel .career-test-quiz__hint {
  margin: 0 0 2.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--home-muted);
}

/* Quiz options — same as cabinet lesson screen (cabinet-lesson-quiz) */
.career-test-wizard__panel .cabinet-lesson-quiz {
  margin-top: 0;
}

.career-test-wizard__panel .cabinet-lesson-quiz__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.career-test-wizard__panel .cabinet-lesson-quiz__question {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.career-test-wizard__panel .cabinet-lesson-quiz__prompt {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cabinet-text);
  margin: 0 0 0.75rem;
  padding: 0;
}

.career-test-wizard__panel .cabinet-lesson-quiz__options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.career-test-wizard__panel .cabinet-lesson-quiz__option {
  display: block;
  position: relative;
  margin: 0;
  cursor: pointer;
}

.career-test-wizard__panel .cabinet-lesson-quiz__option-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

.career-test-wizard__panel .cabinet-lesson-quiz__option-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--cabinet-border);
  background: rgba(15, 23, 42, 0.28);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.career-test-wizard__panel .cabinet-lesson-quiz__option:hover .cabinet-lesson-quiz__option-body,
.career-test-wizard__panel .cabinet-lesson-quiz__option:focus-within .cabinet-lesson-quiz__option-body {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(15, 23, 42, 0.42);
}

.career-test-wizard__panel .cabinet-lesson-quiz__option-marker {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.75);
  background: transparent;
  position: relative;
}

.career-test-wizard__panel .cabinet-lesson-quiz__option-marker--checkbox {
  border-radius: 4px;
}

.career-test-wizard__panel .cabinet-lesson-quiz__option.is-selected .cabinet-lesson-quiz__option-marker {
  border-color: var(--home-cta, #2dd4bf);
  box-shadow: inset 0 0 0 3px rgba(15, 23, 42, 0.92);
  background: var(--home-cta, #2dd4bf);
}

.career-test-wizard__panel .cabinet-lesson-quiz__option-label {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--cabinet-text);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.career-test-wizard__panel .career-test-wizard__actions {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.career-test-wizard__actions .home-btn-primary[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.career-test-wizard .career-question-detail__pager {
  margin-top: 0;
}

/* Results */

.career-test-landing--results .career-test-hero + .career-test-results.home-section {
  padding-top: 0;
}

.career-test-landing--results .career-test-hero.home-section {
  padding-bottom: clamp(0.65rem, 1.5vw, 0.85rem);
}

.career-test-landing--results .home-landing__inner > nav.career-subnav + section.career-test-hero.home-section {
  padding-top: clamp(0.85rem, 2vw, 1.25rem);
}

.career-test-hero__container--results {
  max-width: min(54rem, 94vw);
  text-align: center;
}

.career-test-hero__lead--results {
  max-width: min(48rem, 90vw);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.career-test-landing--results .career-test-results__container {
  max-width: 100%;
  width: 100%;
}

.career-test-results__lead {
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: var(--home-muted);
  line-height: 1.55;
}

.career-test-results__list {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.career-test-result-card {
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(17, 24, 39, 0.72);
}

.career-test-result-card--primary {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.06);
}

.career-test-result-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.career-test-result-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.career-test-result-card__badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(34, 211, 238, 0.16);
  color: var(--home-accent);
}

.career-test-result-card__score {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--home-accent-2);
}

.career-test-result-card__explanation {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--home-muted);
  text-align: justify;
}

.career-test-results__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.career-test-results__actions .home-btn-primary,
.career-test-results__actions .home-btn-ghost {
  text-decoration: none;
}

.career-test-cta__strip {
  text-align: center;
}

.career-test-cta__actions {
  justify-content: center;
}
