/**
 * Стили тестов. Палитра и радиусы взяты из темы fdrk_academia
 * (синий #2b96d6, тёмно-синий текст #232d5f, серый #5d6588, шрифт Inter Tight).
 */

.fdrk-test {
	max-width: 44rem;
	margin: 0 auto;
	padding: 2.5rem;
	background-color: #ffffff;
	border-radius: 1.5rem;
	box-shadow: 0 20px 50px rgba(35, 45, 95, 0.08);
	font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #232d5f;
}

@media screen and (max-width: 640px) {
	.fdrk-test {
		padding: 1.5rem 1.25rem;
		border-radius: 1rem;
	}
}

.fdrk-test [hidden] {
	display: none !important;
}

.fdrk-test-title {
	margin: 0 0 1rem;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.25;
	color: #232d5f;
}

.fdrk-test-instruction {
	margin: 0 0 1rem;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: #5d6588;
}

.fdrk-test-note {
	margin: 0 0 1.75rem;
	padding: 0.875rem 1.125rem;
	border-radius: 0.875rem;
	background-color: #f7fafc;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #5d6588;
}

/* Кнопки */
.fdrk-test .fdrk-test-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.375rem;
	padding: 0.75rem 2.25rem;
	border: none;
	border-radius: 6.25rem;
	background: #2b96d6;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.fdrk-test .fdrk-test-btn .btn-text {
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
}

.fdrk-test .fdrk-test-btn:hover:not([disabled]) {
	transform: translateY(-2px);
}

.fdrk-test .fdrk-test-btn[disabled] {
	opacity: 0.45;
	cursor: default;
	transform: none;
}

/* Прогресс */
.fdrk-test-progress {
	margin-bottom: 2rem;
}

.fdrk-test-progress-bar {
	height: 0.5rem;
	border-radius: 6.25rem;
	background-color: #eef2f8;
	overflow: hidden;
}

.fdrk-test-progress-fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 6.25rem;
	background: linear-gradient(90deg, #2b96d6, #8453cf);
	transition: width 0.3s ease;
}

.fdrk-test-progress-label {
	margin: 0.625rem 0 0;
	font-size: 0.8125rem;
	color: #a0a5ba;
}

/* Вопрос */
.fdrk-test-question-lead {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	color: #5d6588;
}

.fdrk-test-question {
	margin: 0 0 1.75rem;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.35;
	color: #232d5f;
}

@media screen and (max-width: 640px) {
	.fdrk-test-question {
		font-size: 1.125rem;
	}
}

.fdrk-test-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.fdrk-test-option {
	width: 100%;
	padding: 1rem 1.375rem;
	border: 1px solid #d9dcea;
	border-radius: 1rem;
	background-color: #ffffff;
	cursor: pointer;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: #232d5f;
	text-align: left;
	transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.fdrk-test-option:hover {
	border-color: #2b96d6;
	background-color: #f7fafc;
}

.fdrk-test-option.is-selected {
	border-color: #2b96d6;
	background-color: #e8f3fb;
	font-weight: 600;
}

/* Навигация */
.fdrk-test-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.fdrk-test-back {
	padding: 0.5rem 0;
	border: none;
	background: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9375rem;
	color: #5d6588;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.fdrk-test-back:hover {
	color: #2b96d6;
}

.fdrk-test-nav .fdrk-test-next {
	margin-left: auto;
}

/* Результат */
.fdrk-test-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 8.75rem;
	height: 8.75rem;
	margin: 0 auto 1.5rem;
	border-radius: 50%;
	background: linear-gradient(135deg, #e8f3fb, #ece5fa);
}

.fdrk-test-score-value {
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1;
	color: #232d5f;
}

.fdrk-test-score-max {
	margin-top: 0.375rem;
	font-size: 0.8125rem;
	color: #5d6588;
}

.fdrk-test-range-label {
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	color: #232d5f;
	text-align: center;
}

.fdrk-test-interpretation p,
.fdrk-test-extra p,
.fdrk-test-safety p {
	margin: 0 0 0.875rem;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: #5d6588;
}

.fdrk-test-interpretation p:last-child,
.fdrk-test-extra p:last-child,
.fdrk-test-safety p:last-child {
	margin-bottom: 0;
}

/* Блок экстренной помощи */
.fdrk-test-safety {
	margin: 1.75rem 0;
	padding: 1.5rem;
	border: 1px solid #f3b8ae;
	border-left: 4px solid #ec543f;
	border-radius: 1rem;
	background-color: #fdf3f1;
}

.fdrk-test-safety-title {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #b8341f;
}

.fdrk-test-safety p {
	color: #6f4038;
}

.fdrk-test-extra {
	margin: 1.75rem 0;
	padding: 1.25rem 1.5rem;
	border-radius: 1rem;
	background-color: #f7fafc;
}

.fdrk-test-extra-title {
	margin: 0 0 0.625rem;
	font-size: 1rem;
	font-weight: 700;
	color: #232d5f;
}

.fdrk-test-disclaimer {
	margin: 1.75rem 0 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #eef2f8;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: #a0a5ba;
}

.fdrk-test-result {
	text-align: center;
}

.fdrk-test-result .fdrk-test-interpretation,
.fdrk-test-result .fdrk-test-safety,
.fdrk-test-result .fdrk-test-extra,
.fdrk-test-result .fdrk-test-disclaimer {
	text-align: left;
}

/* Сетка карточек в разделе «Тесты» */
.fdrk-tests-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
	gap: 1.5rem;
	margin-bottom: 3.75rem;
}

.fdrk-test-card {
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
	border-radius: 1.5rem;
	background: linear-gradient(160deg, #f2f7fc, #f6f2fc);
	box-shadow: 0 10px 30px rgba(35, 45, 95, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fdrk-test-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(35, 45, 95, 0.12);
}

.fdrk-test-card-badge {
	align-self: flex-start;
	margin-bottom: 1rem;
	padding: 0.375rem 0.875rem;
	border-radius: 6.25rem;
	background-color: #ffffff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #2b96d6;
	text-transform: uppercase;
}

.fdrk-test-card-title {
	margin: 0 0 0.625rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	color: #232d5f;
}

.fdrk-test-card-text {
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #5d6588;
}

.fdrk-test-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
}

.fdrk-test-card-meta {
	font-size: 0.8125rem;
	color: #a0a5ba;
}

.fdrk-test-card .fdrk-test-card-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0 1.5rem;
	border-radius: 6.25rem;
	background-color: #2b96d6;
	color: #ffffff;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.fdrk-test-card .fdrk-test-card-link:hover {
	transform: translateY(-2px);
}

.fdrk-tests-lead {
	max-width: 44rem;
	margin: 0 0 2.5rem;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: #5d6588;
}

/* ===== Профильный тест: значения из спецификации оформления ===== */

/* Вступление */
.fdrk-test--profile .fdrk-test-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
}
.fdrk-test--profile .fdrk-test-instruction {
  font-size: 18px;
  line-height: 1.6;
}
.fdrk-test--profile .fdrk-test-intro-points {
  margin: 0 0 1.25rem;
  font-size: 15px;
  color: #a0a5ba;
}
.fdrk-test--profile .fdrk-test-start {
  min-height: 3.5rem;
  padding: 0.875rem 2.5rem;
}
@media screen and (max-width: 640px) {
  .fdrk-test--profile .fdrk-test-title {
    font-size: 30px;
  }
}

/* Экран вопроса */
.fdrk-test--profile .fdrk-test-progress-label {
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #a0a5ba;
}
.fdrk-test--profile .fdrk-test-progress-bar {
  height: 4px;
  border-radius: 2px;
}
.fdrk-test--profile .fdrk-test-progress-fill {
  background: #2b96d6;
  border-radius: 2px;
  transition: width 250ms ease;
}
.fdrk-test--profile .fdrk-test-question {
  max-width: 640px;
  margin: 24px 0 36px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
}
@media screen and (max-width: 640px) {
  .fdrk-test--profile .fdrk-test-question {
    font-size: 21px;
  }
}
.fdrk-test--profile .fdrk-test-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fdrk-test--profile .fdrk-test-option {
  width: 100%;
  min-height: 56px;
  padding: 0 20px 0 20px;
  border: 0.5px solid #d9dcea;
  border-radius: 12px;
  background: #ffffff;
  font-size: 17px;
  text-align: left;
  color: #232d5f;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.fdrk-test--profile .fdrk-test-option:hover {
  background-color: #f2f5fb;
}
.fdrk-test--profile .fdrk-test-option.is-selected {
  border: 2px solid #2b96d6;
  background-color: #eef6fc;
}
.fdrk-test--profile .fdrk-test-back {
  border: none;
  background: none;
  color: #a0a5ba;
}
.fdrk-test--profile .fdrk-test-question.is-anim,
.fdrk-test--profile .fdrk-test-options.is-anim {
  animation: fdrkProfileFade 200ms ease;
}
@keyframes fdrkProfileFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Результат: шапка */
.fdrk-test .fdrk-profile-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #a0a5ba;
}
.fdrk-test .fdrk-profile-title {
  margin: 0 0 10px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  color: #232d5f;
}
@media screen and (max-width: 640px) {
  .fdrk-test .fdrk-profile-title {
    font-size: 30px;
  }
}
.fdrk-test .fdrk-profile-subtitle {
  margin: 0 0 32px;
  font-size: 16px;
  color: #5d6588;
}

/* Карточка визуализации: радар + полосы */
.fdrk-test .fdrk-profile-viz {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border-radius: 16px;
  background-color: #f2f4fa;
  margin-bottom: 40px;
}
.fdrk-test .fdrk-profile-radar {
  flex: 0 0 320px;
  max-width: 320px;
}
.fdrk-test .fdrk-profile-radar-svg {
  display: block;
  width: 100%;
  height: auto;
}
.fdrk-test .fdrk-profile-radar-label {
  font-size: 13px;
  fill: #a0a5ba;
}
.fdrk-test .fdrk-profile-radar-label.is-lead {
  font-weight: 500;
  fill: #232d5f;
}
.fdrk-test .fdrk-profile-bars {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fdrk-test .fdrk-profile-bar-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  grid-template-areas: "name value" "track value";
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
}
.fdrk-test .fdrk-profile-bar-name {
  grid-area: name;
  font-size: 15px;
  color: #5d6588;
}
.fdrk-test .fdrk-profile-bar-row.is-lead .fdrk-profile-bar-name {
  color: #232d5f;
  font-weight: 500;
}
.fdrk-test .fdrk-profile-bar-track {
  grid-area: track;
  display: block;
  height: 6px;
  border-radius: 3px;
  background-color: #e2e6f0;
  overflow: hidden;
}
.fdrk-test .fdrk-profile-bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background-color: #a0a5ba;
}
.fdrk-test .fdrk-profile-bar-row.is-lead .fdrk-profile-bar-fill {
  background-color: #2b96d6;
}
.fdrk-test .fdrk-profile-bar-value {
  grid-area: value;
  font-size: 14px;
  text-align: right;
  color: #a0a5ba;
}
.fdrk-test .fdrk-profile-bar-row.is-lead .fdrk-profile-bar-value {
  color: #232d5f;
}
@media screen and (max-width: 760px) {
  .fdrk-test .fdrk-profile-viz {
    flex-direction: column;
    align-items: stretch;
  }
  .fdrk-test .fdrk-profile-radar {
    flex: 0 0 auto;
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
  }
}

/* Результат: текстовая колонка */
.fdrk-test .fdrk-profile-description {
  max-width: 680px;
  margin: 0 auto;
}
.fdrk-test .fdrk-profile-description p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.75;
  color: #5d6588;
}
.fdrk-test .fdrk-profile-description p.is-lead {
  font-size: 21px;
  line-height: 1.6;
  font-weight: 400;
  color: #232d5f;
}
.fdrk-test .fdrk-profile-subhead {
  max-width: 680px;
  margin: 44px auto 16px;
  padding-top: 14px;
  border-top: 0.5px solid #d9dcea;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #a0a5ba;
}
.fdrk-test .fdrk-profile-pull {
  max-width: 680px;
  margin: 36px auto;
  padding-left: 24px;
  border-left: 3px solid #2b96d6;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 500;
  color: #232d5f;
}
.fdrk-test .fdrk-profile-infocard {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 680px;
  margin: 20px auto;
  padding: 18px 20px;
  border-radius: 12px;
  background-color: #eef3fb;
}
.fdrk-test .fdrk-profile-infocard-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #2b96d6;
}
.fdrk-test .fdrk-profile-infocard p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #5d6588;
}

/* Примечания (две шкалы / все низкие) */
.fdrk-test .fdrk-profile-note {
  max-width: 680px;
  margin: 24px auto;
  padding: 18px 20px;
  border-radius: 12px;
  background-color: #eef3fb;
}
.fdrk-test .fdrk-profile-note-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #232d5f;
}
.fdrk-test .fdrk-profile-note p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #5d6588;
}

/* Карточка методички */
.fdrk-test .fdrk-profile-guide {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 680px;
  margin: 48px auto 8px;
  padding: 24px;
  border: 0.5px solid #d9dcea;
  border-radius: 16px;
  background: #ffffff;
}
.fdrk-test .fdrk-profile-guide-cover {
  width: 92px;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(35, 45, 95, 0.22);
}
.fdrk-test .fdrk-profile-guide-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 122px;
  padding: 8px;
  background-color: #f2f4fa;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  color: #5d6588;
}
.fdrk-test .fdrk-profile-guide-eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #a0a5ba;
}
.fdrk-test .fdrk-profile-guide-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
  color: #232d5f;
}
.fdrk-test .fdrk-profile-guide-note {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
  color: #5d6588;
}
.fdrk-test .fdrk-profile-guide-note:last-child {
  margin-bottom: 0;
}
.fdrk-test .fdrk-profile-guide-btn {
  min-height: 2.875rem;
  padding: 0.5rem 1.5rem;
}
@media screen and (max-width: 560px) {
  .fdrk-test .fdrk-profile-guide {
    flex-direction: column;
    text-align: center;
  }
  .fdrk-test .fdrk-profile-guide-cover {
    margin: 0 auto;
  }
}

/* Профиль: текстовая часть читается слева направо, центрируется только шапка */
.fdrk-test .fdrk-test-profile-out {
  text-align: left;
}
.fdrk-test .fdrk-profile-eyebrow,
.fdrk-test .fdrk-profile-title,
.fdrk-test .fdrk-profile-subtitle {
  text-align: center;
}
