/* Shared UI layer for legacy test engines rendered inside the BrainApps.io layout. */
:root {
  --test-primary: #6366f1;
  --test-primary-dark: #4f46e5;
  --test-accent: #8b5cf6;
  --test-ink: #171a2b;
  --test-muted: #667085;
  --test-surface: #ffffff;
  --test-soft: #f3f5ff;
  --test-border: rgba(99, 102, 241, 0.16);
  --test-shadow: 0 24px 70px rgba(52, 55, 110, 0.13);
}

body > .page-wrapper,
.page-wrapper > .container-fluid,
.main-container + #loader-container,
.main-container ~ .tests-item {
  position: relative;
}

.page-wrapper {
  background:
    radial-gradient(circle at 10% 5%, rgba(99, 102, 241, 0.14), transparent 31rem),
    radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.12), transparent 28rem),
    #f7f8fc;
}

.page-wrapper > .container-fluid {
  padding-right: 0;
  padding-left: 0;
}

.container-iq-test,
.containerbestsidetest,
.main-container,
.tests-item {
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.container-iq-test,
.containerbestsidetest,
.tests-item {
  margin-top: 2.25rem;
  margin-bottom: 4rem;
}

.promo-test-landing-breadcrumbs {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-right: 16px;
  padding-left: 16px;
  padding-top: clamp(5.25rem, 7vw, 6.5rem);
}

.promo-test-breadcrumbs {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: .65rem;
  padding: .65rem 1rem;
  border: 1px solid rgba(99, 102, 241, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 30px rgba(52, 55, 110, .07);
  color: var(--test-muted);
  font-size: .88rem;
  line-height: 1.25;
  backdrop-filter: blur(12px);
}

.promo-test-breadcrumbs__link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .4rem;
  color: var(--test-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.promo-test-breadcrumbs__link:hover {
  color: var(--test-accent);
}

.promo-test-breadcrumbs__separator {
  flex: 0 0 auto;
  color: #b6bbca;
  font-size: 1.15rem;
}

.promo-test-breadcrumbs__current {
  min-width: 0;
  overflow: hidden;
  color: var(--test-muted);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-test-landing-breadcrumbs + .container-iq-test,
.promo-test-landing-breadcrumbs + .containerbestsidetest {
  margin-top: 1.15rem;
}

.iq-test-container,
.brain-test-container,
.tests-item {
  position: relative;
  overflow: hidden;
  min-height: 0 !important;
  padding: clamp(1.25rem, 3vw, 3rem);
  border: 1px solid var(--test-border);
  border-radius: 2rem;
  background: var(--test-surface);
  box-shadow: var(--test-shadow);
}

.iq-test-container::before,
.brain-test-container::before,
.tests-item::before {
  position: absolute;
  z-index: 0;
  top: -9rem;
  right: -8rem;
  width: 25rem;
  height: 25rem;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 68%);
  pointer-events: none;
}

.iq-test-container > *,
.brain-test-container > *,
.tests-item > * {
  position: relative;
  z-index: 1;
}

.iq-test-container.is-running {
  overflow: visible;
}

.iq-test-container.is-running::before {
  display: none;
}

.iq-test-container #start-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.iq-test-container #start-container > .row:first-of-type,
.tests-item > .row {
  align-items: center;
  row-gap: 2rem;
}

.iq-test-container #start-container img,
.tests-item .test-avatar {
  display: block;
  width: min(100%, 430px);
  height: auto;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(62, 68, 117, 0.14));
}

.iq-test-container h1,
.tests-item__heading,
.static-slider10 h1,
.c2a10 h1,
.c2a10 h3 {
  color: var(--test-ink) !important;
  font-family: Inter, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em;
}

.iq-test-container h1 {
  margin: .45rem 0 .75rem;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.06;
}

.h1divtest,
.seconds30,
.tests-item__title {
  display: inline-flex;
  align-items: center;
  margin-bottom: .55rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, .1);
  color: var(--test-primary-dark);
  font-size: .85rem;
  font-weight: 700;
}

.iq-test-container p,
.tests-item p,
.tests-item__for,
.tests-item__feedback {
  color: var(--test-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.iq-test-container #start-container > .row:last-child {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid #edf0f7;
}

.iq-test-container .btn,
.brain-test-container .btn,
.tests-item .btn,
.static-slider10 .btn,
.c2a10 .btn,
.result .customBtn {
  min-height: 3.25rem;
  padding: .85rem 1.45rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--test-primary), var(--test-accent));
  box-shadow: 0 12px 25px rgba(99, 102, 241, .23);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.iq-test-container .btn:hover,
.brain-test-container .btn:hover,
.tests-item .btn:hover,
.static-slider10 .btn:hover,
.c2a10 .btn:hover,
.result .customBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(99, 102, 241, .28);
  color: #fff;
}

.facebook_like_abs,
.facebook_blockG,
#fb-root {
  display: none !important;
}

.share-buttons {
  padding-bottom: 2rem;
}

/* Question states shared by the five promo engines. */
#questions-container {
  width: 100%;
}

.iq-task,
.itest,
.otest-block,
.brain-container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2.2rem);
  border: 1px solid var(--test-border);
  border-radius: 1.5rem;
  background: #fff;
}

.promo-test-session {
  width: 100%;
  scroll-margin-top: 6rem;
}

.promo-test-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  gap: clamp(1rem, 2.3vw, 2rem);
  align-items: start;
}

.promo-test-main {
  min-width: 0;
}

.promo-test-main .iq-task {
  max-width: none;
  margin: 0;
}

.promo-test-sidebar {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 1rem;
  align-items: start;
}

.promo-test-timer-card,
.promo-test-navigation {
  border: 1px solid var(--test-border);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(52, 55, 110, .08);
}

.promo-test-timer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
}

.promo-test-timer__label {
  color: var(--test-muted);
  font-size: .85rem;
  font-weight: 700;
}

.promo-test-timer__value {
  color: var(--test-ink);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}

.promo-test-navigation {
  padding: 1rem;
}

.promo-test-navigation__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
  color: var(--test-muted);
  font-size: .86rem;
}

.promo-test-navigation__summary strong {
  color: var(--test-ink);
}

.promo-test-navigation__remaining {
  white-space: nowrap;
}

.promo-test-navigation__toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: .65rem;
  background: #eef0f8;
  color: var(--test-primary-dark);
}

.promo-test-progress {
  height: .45rem;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ecf7;
}

.promo-test-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--test-primary), var(--test-accent));
  transition: width .3s ease;
}

.promo-test-question-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .5rem;
}

.question_selector {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  cursor: pointer;
  border: 0;
  border-radius: .7rem;
  background: transparent;
}

.question_selector:focus-visible {
  outline: 3px solid rgba(99, 102, 241, .25);
  outline-offset: 2px;
}

.question_badge,
.question_selector .badge {
  display: inline-flex;
  width: 100%;
  min-width: 2rem;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: .7rem;
  background: #eef0f8;
  color: var(--test-muted);
  font-size: .82rem;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.question_badge.complete {
  background: #dff7ed;
  color: #087a5b;
}

.question_selector:hover .question_badge.complete {
  background: #c8f1df;
  color: #066449;
}

.question_selector:hover .question_badge {
  transform: translateY(-1px);
  background: rgba(99, 102, 241, .18);
  color: var(--test-primary-dark);
}

.question_selector.active .question_badge,
.question_badge.active,
.question_selector.active .question_badge.complete {
  background: var(--test-primary);
  color: #fff;
}

.promo-test-result-link {
  grid-column: 6;
}

.iq-question,
.itest-header__title,
.otest-block h2,
.questions h2 {
  margin-bottom: 1.25rem;
  color: var(--test-ink);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.task {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: var(--test-soft);
  color: var(--test-ink);
  font-size: 1.3rem;
  text-align: center;
}

.task__img,
.iq-task img,
.itest img,
.otest-block img {
  max-width: 100%;
  height: auto;
}

.promo-test-main .task > img {
  width: auto;
  max-width: 100%;
  max-height: min(42vh, 340px);
  object-fit: contain;
}

.promo-test-main .img-answers img {
  width: auto;
  max-width: 100%;
  max-height: 6rem;
  object-fit: contain;
}

.promo-test-result-action {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.promo-test-input-answer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin-right: 0;
  margin-left: 0;
}

.promo-test-input-fields {
  display: flex !important;
  width: min(100%, 29rem);
  max-width: 29rem;
  flex: 1 1 29rem;
  flex-wrap: nowrap !important;
  gap: .75rem;
  padding-right: 0;
  padding-left: 0;
}

.promo-test-input-fields .form-control {
  min-width: 0;
  flex: 1 1 0;
}

.promo-test-input-action {
  display: flex !important;
  width: auto;
  flex: 0 0 auto;
  padding-right: 0;
  padding-left: 0;
}

.promo-test-input-answer .next-btn {
  min-width: 7rem;
  border-color: transparent !important;
  background: linear-gradient(135deg, #695cff, #8b5cf6) !important;
  box-shadow: 0 14px 28px rgba(99, 102, 241, .3);
  color: #fff !important;
}

.promo-test-input-answer .next-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #5548ee, #7c3aed) !important;
  box-shadow: 0 17px 34px rgba(99, 102, 241, .38);
}

.text-answers,
.img-answers {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: .75rem;
}

.text-answers > div,
.img-answers > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.ans,
.otest-answer,
.braintest_next {
  display: inline-flex;
  min-width: 3.1rem;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  cursor: pointer;
  border: 1px solid rgba(99, 102, 241, .28) !important;
  border-radius: .9rem !important;
  background: #fff !important;
  box-shadow: 0 7px 18px rgba(52, 55, 110, .07);
  color: var(--test-primary-dark) !important;
  font-weight: 700;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.ans:hover,
.otest-answer:hover,
.braintest_next:hover {
  transform: translateY(-2px);
  border-color: var(--test-primary) !important;
  background: var(--test-soft) !important;
}

.ans.selectedAnswer {
  border-color: var(--test-primary) !important;
  background: rgba(99, 102, 241, .12) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}

.ans-img {
  width: clamp(84px, 15vw, 145px);
}

.promo-test-main .ans-img {
  width: 5.9rem;
  min-width: 5.9rem;
  padding: .5rem;
}

.progress,
.iq-test-progress,
.brain-side-test-progress {
  height: .65rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ecf7;
}

.progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--test-primary), var(--test-accent));
  transition: width .35s ease;
}

.form-control,
.custom-input input,
.overall-share__input,
#typedtext {
  min-height: 3.2rem;
  border: 1px solid #dfe3ef;
  border-radius: .9rem;
  background: #fff;
  box-shadow: none;
}

.form-control:focus,
.custom-input input:focus,
#typedtext:focus {
  border-color: rgba(99, 102, 241, .7);
  box-shadow: 0 0 0 .25rem rgba(99, 102, 241, .12);
}

/* Results injected by the existing engines. */
.result,
.iq-result,
.raven-result,
.bennet-result,
.brain-side-result,
.overall {
  width: 100%;
  color: var(--test-ink);
}

.result-body,
.result-share,
.iq-result,
.raven-result,
.bennet-result,
.brain-side-result,
.overall-wrapper {
  max-width: 920px;
  margin: 0 auto 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--test-border);
  border-radius: 1.5rem;
  background: #fff !important;
}

.result-iq__title,
.result__title,
.result-share__title,
.iq-result-header,
.brain-score {
  color: var(--test-ink);
  font-weight: 800;
  text-align: center;
}

.result-iq__title {
  font-size: clamp(2rem, 5vw, 4rem);
}

.result-iq__title span,
.brain-score {
  color: var(--test-primary);
}

.result-form {
  display: grid;
  max-width: 560px;
  gap: .9rem;
  margin: 1.5rem auto;
}

.result-form fieldset {
  display: grid;
  gap: .75rem;
}

.sharing-socials {
  display: flex;
  justify-content: center;
  gap: .75rem;
}

.sharing-socials__item {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Database-backed /test/{key} pages. */
.main-container {
  padding-top: 2rem;
}

.breadcrumbs {
  margin-bottom: 1.25rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 0;
  background: transparent;
  list-style: none;
}

.breadcrumb li + li::before {
  margin-right: .45rem;
  content: "/";
  color: #98a2b3;
}

.titel-bn-big-blue {
  margin-bottom: 1.25rem;
}

.tests-item__heading {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.tests-item__info-box {
  display: grid;
  gap: .75rem;
}

.tests-item__rating,
.tests-item__feedback,
.tests-item__for {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-right: 1rem;
}

.tests-item__rating .star::before {
  content: "★";
  color: #f7b731;
  font-style: normal;
}

.tests-item__paragraph {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid #edf0f7;
}

#loader-container,
#answers-container,
.test-container,
#questions-container {
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

/* Typing-test landing and interactive screen. */
.static-slider10,
.c2a10 {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 520px;
  align-items: center;
  overflow: hidden;
  padding: 5rem 1rem;
  background-position: center !important;
  background-size: cover !important;
}

.static-slider10::before,
.c2a10::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(247, 248, 252, .97) 25%, rgba(247, 248, 252, .78) 60%, rgba(247, 248, 252, .35));
}

.static-slider10 .subtitle {
  color: var(--test-muted) !important;
  font-size: 1.1rem;
  line-height: 1.7;
}

.spacer,
.mini-spacer {
  padding: 4.5rem 0;
}

.feature1 .card,
.c2a10 .card {
  height: 100%;
  border: 1px solid var(--test-border);
  border-radius: 1.5rem;
  box-shadow: 0 16px 45px rgba(52, 55, 110, .09);
}

.feature1 .card-body,
.c2a10 .card-body {
  min-height: 0 !important;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.mini-spacer.bg-info {
  background: linear-gradient(135deg, var(--test-primary), var(--test-accent)) !important;
}

.kbHolder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 1.25rem;
  padding: 0 !important;
}

.kbTextContainer,
.mainStat,
#testHint {
  border: 1px solid var(--test-border);
  border-radius: 1rem;
  background: var(--test-soft);
}

.kbTextContainer {
  min-height: 220px;
  padding: 1.25rem;
  font-size: 1.15rem;
  line-height: 1.8;
}

.mainStat {
  padding: 1rem;
}

#testHint {
  grid-column: 1 / -1;
}

.hide,
.testFinished.hide {
  display: none;
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

.autocenter,
.center-block {
  margin-right: auto;
  margin-left: auto;
}

.pull-right {
  float: right;
}

/* Dominant hemisphere test. */
.brain-side-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, .7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: 360px;
}

.brain-side-hero__content {
  max-width: 700px;
}

.brain-side-hero h1 {
  margin: .65rem 0 1rem;
  color: var(--test-ink);
  font-size: clamp(2.15rem, 4.3vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.04;
  text-align: left;
}

.brain-side-hero__lead {
  max-width: 620px;
  margin: 0;
  color: var(--test-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.brain-side-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1.5rem 0;
}

.brain-side-hero__facts span {
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  border: 1px solid rgba(99, 102, 241, .12);
  border-radius: .85rem;
  background: #f7f8ff;
  color: #4d5570;
  font-size: .9rem;
  font-weight: 650;
}

.brain-side-hero__facts i {
  color: var(--test-primary);
}

.brain-test-container .brain-side-hero__start,
.temperament-test-hero .temperament-test-hero__start {
  display: inline-flex;
  min-width: 10.5rem;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  border-color: transparent !important;
  background: linear-gradient(135deg, #6558f5, #8b5cf6) !important;
  box-shadow: 0 16px 32px rgba(99, 102, 241, .3);
  color: #fff !important;
}

.brain-side-hero__visual {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(99, 102, 241, .13);
  border-radius: 1.75rem;
  background: linear-gradient(145deg, #eef1ff, #f9f7ff);
  box-shadow: 0 20px 45px rgba(55, 59, 115, .12);
}

.brain-side-hero__image-wrap {
  display: flex;
  aspect-ratio: 1.25;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #2380c4, #2767aa);
}

.brain-side-hero__image-wrap img {
  display: block;
  width: min(88%, 270px);
  height: auto;
  filter: drop-shadow(0 18px 25px rgba(28, 62, 126, .2));
}

.brain-side-hero__axis {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: #46506c;
  font-size: .85rem;
  font-weight: 750;
}

.brain-side-session {
  width: min(100%, 880px);
  margin: 0 auto;
}

.brain-side-session__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.brain-side-session__topline > div {
  display: grid;
  gap: .25rem;
}

.brain-side-session__eyebrow,
.brain-side-question__counter {
  color: var(--test-primary-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.brain-side-session__topline strong {
  color: var(--test-ink);
  font-size: 1.05rem;
}

.brain-side-session__total {
  flex: 0 0 auto;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: var(--test-soft);
  color: var(--test-muted);
  font-size: .85rem;
  font-weight: 700;
}

.brain-side-test-progress {
  width: 100%;
  height: .55rem;
  overflow: hidden;
  margin: 0 0 1.75rem;
  border-radius: 999px;
  background: #e9ecf7;
}

.brain-side-test-progress .progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--test-primary), var(--test-accent));
  transition: width .3s ease;
}

.brain-side-question {
  text-align: center;
}

.brain-side-question__visual {
  display: flex;
  width: 12rem;
  height: 12rem;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  padding: 1.4rem;
  border-radius: 2rem;
  background: linear-gradient(145deg, #f0f2ff, #faf9ff);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .1);
}

.brain-side-question__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brain-side-question .brain-test-header {
  min-height: 0;
  max-width: 680px;
  margin: 0 auto 1.6rem;
  color: var(--test-ink);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 750;
  line-height: 1.35;
}

.brain-side-question__answers {
  display: grid;
  width: min(100%, 560px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 0 auto;
}

.brain-test-container .brain-side-answer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}

.brain-test-container .brain-side-answer--yes {
  border-color: transparent !important;
  background: linear-gradient(135deg, #13b981, #08a574) !important;
  box-shadow: 0 12px 25px rgba(16, 185, 129, .22);
  color: #fff !important;
}

.brain-test-container .brain-side-answer--no {
  border: 1px solid rgba(99, 102, 241, .2) !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(52, 55, 110, .09);
  color: var(--test-primary-dark) !important;
}

/* Temperament landing, scoped so the other legacy online tests stay untouched. */
.temperament-test-page {
  width: min(1180px, calc(100% - 32px));
  margin: 1.15rem auto 4rem;
}

.temperament-test-page > #loader-container,
.temperament-test-page > #questions-container,
.temperament-test-page > .test-container,
.temperament-test-page > #answers-container {
  width: 100%;
}

.temperament-test-page .temperament-test-hero {
  width: 100%;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.temperament-test-hero__grid {
  display: grid;
  grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.temperament-test-hero__visual {
  display: flex;
  min-height: 390px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.95), transparent 46%),
    linear-gradient(145deg, #edf1ff, #f8f5ff);
}

.temperament-test-hero__image {
  display: block;
  width: min(100%, 337px);
  height: auto;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(50, 55, 110, .15));
}

.temperament-test-hero__content {
  max-width: 640px;
}

.temperament-test-hero__eyebrow {
  display: inline-flex;
  padding: .5rem .8rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, .1);
  color: var(--test-primary-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.temperament-test-hero .temperament-test-hero__title {
  margin: .85rem 0 1rem;
  font-size: clamp(2.15rem, 4vw, 3.45rem);
  line-height: 1.04;
}

.temperament-test-hero__intro {
  max-width: 620px;
  margin: 0;
  color: var(--test-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.temperament-test-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin: 1.55rem 0;
}

.temperament-test-fact {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: .7rem;
  padding: .8rem;
  border: 1px solid rgba(99, 102, 241, .12);
  border-radius: 1rem;
  background: #f8f9ff;
  color: var(--test-muted);
  font-size: .82rem;
  line-height: 1.3;
}

.temperament-test-fact i {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  border-radius: .7rem;
  background: #ebeafe;
  color: var(--test-primary-dark);
}

.temperament-test-fact strong {
  display: block;
  color: var(--test-ink);
  font-size: 1rem;
}

.temperament-test-hero__description {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #edf0f7;
  color: var(--test-muted);
  line-height: 1.75;
}

.temperament-test-hero__description h2 {
  margin: 0 0 .75rem;
  color: var(--test-ink);
  font-size: 1.45rem;
}

@media (max-width: 991.98px) {
  .promo-test-layout {
    grid-template-columns: 1fr;
  }

  .promo-test-sidebar {
    position: static;
    grid-row: 1;
    grid-template-columns: 12rem minmax(0, 1fr);
  }

  .promo-test-question-grid {
    grid-template-columns: repeat(10, minmax(2rem, 1fr));
  }

  .promo-test-result-link {
    grid-column: auto;
  }

  .kbHolder {
    grid-template-columns: 1fr;
  }

  .static-slider10,
  .c2a10 {
    min-height: 440px;
  }

  .tests-item__btn {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
  }

  .tests-item__btn .m-l-20 {
    margin-left: 0 !important;
  }

  .brain-side-hero,
  .temperament-test-hero__grid {
    gap: 2rem;
  }

  .brain-side-hero {
    grid-template-columns: minmax(0, 1fr) 16rem;
  }

  .temperament-test-hero__grid {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .temperament-test-hero__visual {
    min-height: 320px;
  }

  .temperament-test-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .container-iq-test,
  .containerbestsidetest,
  .main-container,
  .tests-item,
  #loader-container,
  #answers-container,
  .test-container,
  #questions-container {
    width: min(100% - 20px, 1180px);
  }

  .container-iq-test,
  .containerbestsidetest,
  .tests-item {
    margin-top: .75rem;
    margin-bottom: 2rem;
  }

  .promo-test-landing-breadcrumbs {
    width: min(100% - 20px, 1180px);
    padding-top: 4.75rem;
  }

  .promo-test-breadcrumbs {
    display: flex;
    width: 100%;
    gap: .45rem;
    padding: .6rem .8rem;
    font-size: .8rem;
  }

  .promo-test-breadcrumbs__link:first-child span {
    display: none;
  }

  .promo-test-input-answer {
    flex-wrap: wrap;
  }

  .promo-test-input-fields {
    width: 100%;
    flex-basis: 100%;
  }

  .promo-test-input-action,
  .promo-test-input-answer .next-btn {
    width: 100%;
  }

  .iq-test-container,
  .brain-test-container,
  .tests-item {
    border-radius: 1.25rem;
  }

  .iq-test-container {
    padding: .85rem;
  }

  #questions-container.col-sm-12 {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .promo-test-session {
    padding-top: 3.5rem;
  }

  .promo-test-sidebar {
    grid-template-columns: 1fr;
  }

  .promo-test-question-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .promo-test-navigation {
    padding: .85rem;
  }

  .promo-test-navigation__toggle {
    display: inline-flex;
  }

  .promo-test-question-grid {
    display: none;
  }

  .promo-test-navigation.is-expanded .promo-test-question-grid {
    display: grid;
  }

  .promo-test-main .iq-task {
    padding: .9rem;
    border-radius: 1rem;
  }

  .promo-test-main .task {
    min-height: 140px;
    padding: .65rem;
  }

  .promo-test-main .task > img {
    max-height: min(38vh, 280px);
  }

  .promo-test-main .ans-img {
    width: 5.25rem;
    min-width: 5.25rem;
  }

  .iq-test-container #start-container > .row:first-of-type {
    text-align: center;
  }

  .iq-test-container #start-container img,
  .tests-item .test-avatar {
    max-height: 280px;
  }

  .text-answers,
  .img-answers {
    gap: .5rem;
  }

  .ans,
  .otest-answer {
    min-width: 2.85rem;
    min-height: 2.85rem;
  }

  .static-slider10,
  .c2a10 {
    min-height: 0;
    padding: 3.5rem .5rem;
  }

  .static-slider10::before,
  .c2a10::before {
    background: rgba(247, 248, 252, .88);
  }

  .brain-side-hero,
  .temperament-test-hero__grid {
    grid-template-columns: 1fr;
  }

  .temperament-test-hero__grid {
    gap: 1.25rem;
  }

  .brain-side-hero {
    min-height: 0;
    gap: 1.5rem;
  }

  .brain-side-hero__visual {
    width: min(100%, 16rem);
    order: -1;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 1.25rem;
  }

  .brain-side-hero h1,
  .temperament-test-hero .temperament-test-hero__title {
    font-size: clamp(2rem, 9vw, 2.3rem);
  }

  .brain-side-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
  }

  .brain-side-hero__facts span {
    min-height: 4.25rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .25rem;
    padding: .55rem;
    font-size: .72rem;
  }

  .brain-side-hero__facts span,
  .brain-side-hero__start,
  .temperament-test-hero__start {
    width: 100%;
  }

  .brain-side-session__topline {
    align-items: flex-start;
  }

  .brain-side-session__topline strong {
    font-size: .92rem;
  }

  .brain-side-question__visual {
    width: 9.5rem;
    height: 9.5rem;
    border-radius: 1.5rem;
  }

  .brain-side-question__answers {
    gap: .6rem;
  }

  .temperament-test-page {
    width: min(100% - 20px, 1180px);
    margin-top: .75rem;
    margin-bottom: 2rem;
  }

  .temperament-test-page .temperament-test-hero {
    padding: 1rem;
  }

  .temperament-test-hero__visual {
    width: min(100%, 15rem);
    min-height: 180px;
    margin: 0 auto;
    border-radius: 1.25rem;
  }

  .temperament-test-hero__image {
    max-height: 180px;
  }

  .temperament-test-hero__intro {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .temperament-test-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin: 1rem 0;
  }

  .temperament-test-fact {
    min-height: 5.5rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .35rem;
    padding: .55rem;
    font-size: .7rem;
  }

  .temperament-test-fact i {
    width: 1.7rem;
    height: 1.7rem;
    flex-basis: 1.7rem;
  }

  .temperament-test-hero__description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
}
