/* Лендинг карьерного теста — single-column centered; copy rhythm matches home */

.career-test-landing .career-test-hero {
  padding-top: clamp(2.25rem, 5.5vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

/* No right-stage demo — full home-container width (1280). */
.career-test-hero__container {
  max-width: min(80rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.career-test-landing .career-test-hero #career-test-page-title {
  white-space: pre-line;
  font-size: var(--home-type-h1, clamp(2.5rem, 5.5vw, 4rem));
  margin: 0 auto 1.15rem;
  max-width: none;
}

.career-test-landing .career-test-hero .home-lead,
.career-test-landing .career-test-hero .career-hub-hero__lead {
  font-size: var(--home-type-lead, clamp(1.125rem, 2.2vw, 1.35rem));
  line-height: 1.6;
  margin: 0 auto 1.75rem;
  max-width: none;
}

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

.landing-interview-readiness .landing-hero__copy .career-test-hero__actions {
  justify-content: flex-start;
}

.career-test-hero__trust {
  display: block;
  max-width: none;
  margin: 1.15rem auto 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--home-muted);
  text-wrap: balance;
}

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

.career-test-benefits .home-section-title.career-hub-section-title,
.career-test-flow .home-section-title.career-hub-section-title {
  margin-bottom: clamp(1.35rem, 3.2vw, 2rem);
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.career-test-flow .career-hub-section-sub {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: clamp(1.35rem, 3.2vw, 2rem);
}

.career-test-benefits__grid.home-cards-grid,
.career-test-flow__grid.home-cards-grid {
  max-width: none;
  margin: 0;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.career-test-benefits__grid.home-compare,
.career-test-flow__grid.home-compare {
  max-width: none;
  margin: 0;
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .career-test-benefits__grid.home-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 5 steps: 2+2+1 — last tile spans the row */
  .career-test-flow__grid.home-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-test-flow__grid.home-cards-grid > .home-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* Exactly 3 cards: stack — avoid awkward 2+1 */
  .career-test-flow__grid.home-cards-grid:has(> .home-card:nth-child(3):last-child) {
    grid-template-columns: 1fr;
  }

  .career-test-flow__grid.home-cards-grid:has(> .home-card:nth-child(3):last-child)
    > .home-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (min-width: 992px) {
  .career-test-benefits__grid.home-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  /* Desktop: 3 + 2 equal rows (6-track grid) */
  .career-test-flow__grid.home-cards-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .career-test-flow__grid.home-cards-grid > .home-card:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .career-test-flow__grid.home-cards-grid > .home-card:nth-child(n + 4) {
    grid-column: span 3;
  }
}

.career-test-benefits__card.home-card,
.career-test-flow__card.home-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.career-test-benefits__card.home-card > *,
.career-test-flow__card.home-card > * {
  position: relative;
  z-index: 1;
}

.career-test-flow__step-badge.home-card__icon {
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
  background: linear-gradient(145deg, #5eead4, #22d3ee);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(45, 212, 191, 0.2);
}

.career-test-benefits__card.home-card h3,
.career-test-flow__card.home-card h3 {
  margin: 0;
}

.career-test-benefits__card.home-card p,
.career-test-flow__card.home-card p {
  margin: 0;
  font-size: var(--home-type-body, 1.0625rem);
}

/* Intro panel = home-cta-strip (same language as AI-tutor CTA) */
.career-test-intro-panel.home-cta-strip {
  max-width: none;
  width: 100%;
  text-align: center;
}

.career-test-intro-panel__lead {
  margin: 0 0 1.5rem;
  color: var(--home-muted);
  font-size: var(--home-type-body, 1.0625rem);
  line-height: 1.55;
}

.career-test-intro-panel form {
  margin: 0;
  display: flex;
  justify-content: center;
}

.career-test-intro-panel .home-btn-primary {
  text-decoration: none;
}

.landing-interview-readiness .career-test-landing,
body.landing-career-test:not(.landing-interview-readiness) .career-test-landing:not(.career-test-landing--wizard):not(.career-test-landing--results) {
  --readiness-block-gap: clamp(2rem, 4vw, 3.25rem);
}

body.landing-career-test:not(.landing-interview-readiness) .career-test-flow.home-section {
  padding-top: clamp(0.65rem, 1.6vw, 1.15rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

body.landing-career-test:not(.landing-interview-readiness) .career-test-start.home-section {
  padding-top: clamp(2.5rem, 5.5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5.5vw, 4rem);
}

@media (max-width: 767.98px) {
  body.landing-career-test:not(.landing-interview-readiness) .career-test-start.home-section {
    padding-top: clamp(1.5rem, 4vw, 2rem);
    padding-bottom: clamp(1.5rem, 4vw, 2rem);
  }

  .career-test-benefits .home-section-title.career-hub-section-title,
  .career-test-flow .home-section-title.career-hub-section-title {
    margin-bottom: 0.85rem;
  }

  .career-test-flow .career-hub-section-sub {
    display: none;
  }

  /*
    Benefits / flow: horizontal snap rails (career-hub / live-coding pattern).
    Covers both home-compare (career test) and home-cards-grid (interview readiness).
  */
  .career-test-benefits__grid.home-compare,
  .career-test-flow__grid.home-compare {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.65rem;
    grid-template-columns: none;
    margin-top: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.15rem 0.1rem 0.4rem;
    border-radius: 0;
  }

  .career-test-benefits__grid.home-compare::-webkit-scrollbar,
  .career-test-flow__grid.home-compare::-webkit-scrollbar {
    display: none;
  }

  .career-test-benefits__grid.home-compare > .home-compare__col,
  .career-test-flow__grid.home-compare > .home-compare__col {
    flex: 0 0 min(78vw, 17.5rem);
    width: min(78vw, 17.5rem);
    max-width: min(78vw, 17.5rem);
    scroll-snap-align: start;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 1.1rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 30%),
      linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(10, 14, 20, 0.92));
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.05) inset,
      0 12px 28px rgba(0, 0, 0, 0.24);
  }

  .career-test-benefits__grid.home-compare > .home-compare__col + .home-compare__col,
  .career-test-flow__grid.home-compare > .home-compare__col + .home-compare__col {
    border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
  }

  .career-test-benefits__grid.home-cards-grid,
  .career-test-flow__grid.home-cards-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.65rem;
    grid-template-columns: none;
    margin-top: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.15rem 0.1rem 0.4rem;
  }

  .career-test-benefits__grid.home-cards-grid::-webkit-scrollbar,
  .career-test-flow__grid.home-cards-grid::-webkit-scrollbar {
    display: none;
  }

  .career-test-benefits__grid.home-cards-grid > .home-card,
  .career-test-flow__grid.home-cards-grid > .home-card {
    flex: 0 0 min(78vw, 17.5rem);
    width: min(78vw, 17.5rem);
    max-width: min(78vw, 17.5rem);
    scroll-snap-align: start;
    height: auto;
    grid-column: auto;
  }
}

body.landing-career-test:not(.landing-interview-readiness) .career-test-start .career-test-intro-panel {
  max-width: none;
}

.landing-interview-readiness .career-test-flow.home-section {
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* Same vertical rhythm as career-hub / AI-tutor / live-coding CTA bands */
.landing-interview-readiness #check.home-section {
  padding-top: clamp(1.1rem, 2.6vw, 1.85rem);
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

.career-test-landing #check .career-test-intro-panel {
  max-width: none;
}

/* Wizard */

.career-test-landing--wizard > .home-landing__inner > 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-reset {
  display: flex;
  justify-content: center;
  padding: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}

.career-test-wizard-reset .home-btn-ghost {
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.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 form {
  display: contents;
}

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

.career-test-results__actions button.home-btn-ghost {
  cursor: pointer;
  font: inherit;
}
