/**
 * http://new-dev.ru/
 * author GoldSoft <newdevexpert@gmail.com>
 * Copyright (c) New-Dev.ru
 */

.helper-wrapper {
	margin: 0 auto;
	text-align: center;
}

ul.helper {
	font-size: 0;
	padding: 0;
	margin: 0;
}

ul.helper .helper-item {
	display: inline-block;
	font-size: 15px;
	padding: 10px 0;
	margin: 0 1%;
	position: relative;
	vertical-align: middle;
	word-spacing: normal;
	
	width: 31%;
}

ul.helper .helper-item .helper-icon {
	left: 0;
	margin-top: -14px;
	position: absolute;
	top: 50%;
}

ul.helper .helper-item .helper-link {
	color: #0463bc;
	display: block;
	position: relative;
    text-transform: capitalize;
    border: 2px solid #0091d4;
    border-radius: 20px;
    font-size: 15px;
    padding: 5px 40px;
    text-align: center;
    -webkit-transition: background-color .5s;
    transition: background-color .5s
}
ul.helper .helper-item .helper-link:focus,
ul.helper .helper-item .helper-link:hover {
    text-decoration: none
}
ul.helper .helper-item .helper-link:hover {
    background-color: #0091d4;
    color: #fff!important;
}


ul.helper .helper-item .helper-link.nd_red {
    border: 2px solid red;
	color: red!important;
}
ul.helper .helper-item .helper-link.nd_red:hover {
    background-color: red;
	color: #fff!important;
}


ul.tests_items_wrap, ul.certificates_items_wrap {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.tests_items_wrap > li > a {
    color: #838383;
    display: block;
    font-size: 1.0em;
    padding: 0.1em 0;
}

ul.certificates_items_wrap img {
	max-width: 100%;
}

/* TestMe: таймер и навигация вопросов */
.testme-question .testme-question-topline {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	flex-wrap: nowrap !important;
	gap: 22px !important;
	width: 100% !important;
	margin: 8px 0 14px !important;
	padding: 0 !important;
}

.testme-question .testme-question-topline__timer,
.testme-question .testme-question-topline__timer.watch-box-container {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
}

.testme-question .testme-question-topline__timer .watch-box {
	display: inline-flex !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.testme-question .testme-question-topline__timer .watch-numbers,
.testme-question .testme-timer {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 94px !important;
	height: 38px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	float: none !important;
	clear: none !important;
	background: #eef8ff !important;
	border: 2px solid #3b82cc !important;
	border-radius: 12px !important;
	color: #2f6fb7 !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0.5px !important;
	font-family: inherit !important;
	box-sizing: border-box !important;
	box-shadow: 0 5px 12px rgba(47, 131, 185, 0.12) !important;
}

.testme-question .testme-question-topline__nav {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
}

.testme-question .testme-question-nav {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 8px !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
}

.testme-question .testme-question-nav__btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;
	max-width: 42px !important;
	max-height: 42px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 4px solid #3b82cc !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #3b82cc !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
	text-align: center !important;
	cursor: pointer !important;
}

/* Уже отвеченные вопросы */
.testme-question .testme-question-nav__btn--answered {
	background: #6bb7ee !important;
	border-color: #3b82cc !important;
	color: #fff !important;
}

.testme-question .testme-question-nav__btn--skipped {
	background: #fff !important;
	border-color: #3b82cc !important;
	color: #3b82cc !important;
}

/* Текущий вопрос */
.testme-question .testme-question-nav__btn--current {
	background: #2f6fb7 !important;
	border-color: #2f6fb7 !important;
	color: #fff !important;
	box-shadow: 0 0 0 4px rgba(47, 131, 185, 0.16) !important;
}

.testme-question .testme-question-nav__btn:hover {
	background: #eef7ff !important;
	color: #3b82cc !important;
}

.testme-question .testme-question-nav__btn--answered:hover,
.testme-question .testme-question-nav__btn--current:hover {
	background: #2f6fb7 !important;
	color: #fff !important;
}

.testme-question .testme-question-nav__btn--skipped:hover {
	background: #eef7ff !important;
	color: #3b82cc !important;
}

@media (max-width: 700px) {
	.testme-question .testme-question-topline {
		gap: 10px !important;
		flex-wrap: wrap !important;
	}

	.testme-question .testme-question-topline__timer .watch-numbers,
	.testme-question .testme-timer {
		height: 34px !important;
		min-width: 86px !important;
		padding: 0 11px !important;
		font-size: 15px !important;
		border-radius: 10px !important;
	}

	.testme-question .testme-question-nav {
		gap: 5px !important;
	}

	.testme-question .testme-question-nav__btn {
		width: 30px !important;
		height: 30px !important;
		min-width: 30px !important;
		min-height: 30px !important;
		max-width: 30px !important;
		max-height: 30px !important;
		border-width: 2px !important;
		font-size: 14px !important;
	}
}

/* TestMe: цифровая линейка */
.testme-ruler-toggle {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 38px !important;
	padding: 0 16px !important;
	border: 2px solid #3b82cc !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: #2f6fb7 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	box-sizing: border-box !important;
	box-shadow: 0 5px 12px rgba(47, 131, 185, 0.10) !important;
}

.testme-ruler-toggle:hover {
	background: #eef8ff !important;
}

.testme-question {
	position: relative !important;
}

.testme-ruler {
	position: absolute !important;
	left: 40px;
	top: 110px;
	width: 720px;
	height: 58px;
	z-index: 50;
	transform-origin: 0 0;
	opacity: 0.72;
	touch-action: none;
	user-select: none;
}

.testme-ruler__body {
	position: relative;
	width: 100%;
	height: 100%;
	background: rgba(238, 248, 255, 0.82);
	border: 2px solid rgba(47, 111, 183, 0.85);
	border-radius: 0 !important;
	box-shadow: 0 8px 18px rgba(47, 111, 183, 0.18);
	cursor: move;
	overflow: hidden;
	box-sizing: border-box;
}

.testme-ruler__marks {
	position: absolute;
	left: 0;
	top: 0;
	width: 250%;
	height: 100%;
	overflow: hidden;
}

/* миллиметровые маленькие штрихи */
.testme-ruler__marks:before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 16px;
	background-image: repeating-linear-gradient(
		to right,
		rgba(47, 111, 183, 0.38) 0,
		rgba(47, 111, 183, 0.38) 1px,
		transparent 1px,
		transparent 10.4px
	);
}

/* сантиметры и половинки */
.testme-ruler__marks:after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 34px;
	background-image:
		repeating-linear-gradient(
			to right,
			rgba(47, 111, 183, 0.95) 0,
			rgba(47, 111, 183, 0.95) 2px,
			transparent 2px,
			transparent 104px
		),
		repeating-linear-gradient(
			to right,
			transparent 0,
			transparent 52px,
			rgba(47, 111, 183, 0.62) 52px,
			rgba(47, 111, 183, 0.62) 53px,
			transparent 53px,
			transparent 104px
		);
}

.testme-ruler__numbers {
	position: absolute;
	left: 0;
	bottom: 5px;
	width: 100%;
	height: 16px;
	pointer-events: none;
}

.testme-ruler__numbers span {
	position: absolute;
	bottom: 0;
	color: #2f6fb7;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.testme-ruler__rotate {
	position: absolute;
	right: -15px;
	top: -15px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #3b82cc;
	border: 3px solid #fff;
	box-shadow: 0 4px 10px rgba(0,0,0,0.18);
	cursor: grab;
	z-index: 2;
	box-sizing: border-box;
}

.testme-ruler__rotate:before {
	content: "↻";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
}

.testme-ruler--active {
	opacity: 0.9;
	z-index: 100;
}



.testme-ruler__close {
	position: absolute !important;
	right: -13px !important;
	bottom: -13px !important;
	width: 28px !important;
	height: 28px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 3px solid #fff !important;
	border-radius: 50% !important;
	background: #3b82cc !important;
	color: #fff !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	z-index: 3 !important;
	box-shadow: 0 4px 10px rgba(0,0,0,0.18) !important;
	box-sizing: border-box !important;
}

.testme-ruler__close:hover {
	background: #2f6fb7 !important;
}

@keyframes testme-ruler-pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 6px 16px rgba(0,0,0,0.16), 0 0 0 0 rgba(59, 130, 204, 0.45);
	}

	50% {
		transform: scale(1.05);
		box-shadow: 0 8px 20px rgba(0,0,0,0.18), 0 0 0 8px rgba(59, 130, 204, 0.12);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 6px 16px rgba(0,0,0,0.16), 0 0 0 0 rgba(59, 130, 204, 0);
	}
}

/* TestMe: поле текстового ответа */
.testme-text-answer {
	list-style: none !important;
	margin: 28px 0 !important;
	padding: 24px !important;
	background: #eef8ff !important;
	border: 3px solid #3b82cc !important;
	border-radius: 18px !important;
	box-shadow: 0 8px 22px rgba(47, 131, 185, 0.14) !important;
	box-sizing: border-box !important;
}

.testme-text-answer__label {
	display: block !important;
	margin: 0 0 14px !important;
	color: #2f6fb7 !important;
	font-size: 26px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
}

.testme-text-answer__input {
	display: block !important;
	width: 100% !important;
	max-width: 620px !important;
	height: 58px !important;
	padding: 0 18px !important;

	background: #ffffff !important;
	border: 3px solid #3b82cc !important;
	border-radius: 14px !important;

	color: #222 !important;
	font-size: 26px !important;
	font-weight: 800 !important;
	line-height: 1 !important;

	box-shadow: inset 0 2px 5px rgba(0,0,0,0.08) !important;
	box-sizing: border-box !important;
	outline: none !important;
}

.testme-text-answer__input:focus {
	border-color: #2f6fb7 !important;
	box-shadow: 0 0 0 5px rgba(59, 130, 204, 0.18), inset 0 2px 5px rgba(0,0,0,0.08) !important;
}

@media (max-width: 700px) {
	.testme-text-answer {
		padding: 18px !important;
		border-radius: 14px !important;
	}

	.testme-text-answer__label {
		font-size: 21px !important;
	}

	.testme-text-answer__input {
		height: 52px !important;
		font-size: 22px !important;
	}
}

/* TestMe: уменьшаем расстояние между картинкой и полем ответа */
.testme-question__text {
	margin-bottom: 12px !important;
}

.testme-question-image {
	margin-bottom: 5px !important;
}

.testme-answer-list {
	margin-top: 5px !important;
}

.testme-text-answer {
	margin: 4px 0 20px !important;
	padding: 18px 22px !important;
}

/* TestMe: поле ответа + единицы измерения */
.testme-text-answer__row {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	max-width: 760px !important;
}

.testme-text-answer__row .testme-text-answer__input {
	flex: 1 1 auto !important;
	max-width: none !important;
}

.testme-text-answer__unit {
	display: inline-flex !important;
	align-items: center !important;

	min-height: 58px !important;
	padding: 0 !important;
	margin-left: 2px !important;

	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;

	color: #2f6fb7 !important;
	font-size: 26px !important;
	font-weight: 700 !important;
	line-height: 1 !important;

	white-space: nowrap !important;
}

@media (max-width: 700px) {
	.testme-text-answer__unit {
	min-height: 52px !important;
	padding: 0 !important;
	margin-left: 0 !important;
	border: 0 !important;
	background: transparent !important;
	font-size: 22px !important;
}
}

/* Страница модуля тестов */

.testme-shell {
  max-width: 1180px;
  margin: 0 auto 50px;
  padding: 30px;

  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/* Верхние кнопки */
.testme-shell .helper-wrapper {
  max-width: none;
  margin: 0 0 28px;
  padding: 0;

  background: transparent;
  border-radius: 0;
  box-shadow: none;
}



.testme-shell .helper-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  border: 2px solid #2d91dc;
  border-radius: 14px;
  background: #fff;
  color: #246fc2 !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.2;
}

.testme-shell .helper-link:hover {
  background: #2d91dc;
  color: #fff !important;
}


.testme-page {
  max-width: none;
  margin: 0;
  padding: 0;

  background: transparent;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.testme-page__title {
  margin: 0 0 28px;
  padding: 0;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: #222;
}

/* Список */
.testme-page__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Карточки */
.testme-page__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;

  background: #fff;
  border: 2px solid #35b7d3;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);

  text-decoration: none !important;
  color: #222 !important;
  transition: 0.2s ease;
}

.testme-page__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.testme-page__name {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #222;
}

.testme-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #2f83b9;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .testme-shell {
    padding: 18px;
  }

  .testme-shell .helper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .testme-page__title {
    font-size: 26px;
  }

  .testme-page__card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .testme-page__btn {
    width: 100%;
  }
}

.testme-answer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.testme-answer {
  margin: 0;
  padding: 0;
}

.testme-answer__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.testme-answer__label {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 2px solid #d9e3ec;
  border-radius: 12px;
  color: #222;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  box-sizing: border-box;
  transition: 0.2s ease;
}

.testme-answer__label:hover {
  border-color: #35b7d3;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.testme-answer__circle {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid #35b7d3;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  position: relative;
}

.testme-answer__input:checked + .testme-answer__label {
  border-color: #2f83b9;
  background: #f2f9ff;
}

.testme-answer__input:checked + .testme-answer__label .testme-answer__circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f83b9;
  transform: translate(-50%, -50%);
}

.testme-answer__text {
  flex: 1;
}

.testme-question__progress {
  margin-bottom: 18px;
  color: #666;
  font-size: 15px;
  font-weight: 600;
}



.testme-question__controls button,
.testme-question__controls .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: #2f83b9;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.testme-shell .helper-wrapper {
    margin: 0 0 24px 0;
}



.testme-shell .helper-item {
    margin: 0;
    padding: 0;
}

.testme-shell .helper-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 18px;

    border-radius: 10px;
    border: 1px solid #d7dde8;

    background: #f7f9fc;
    color: #1f2937;

    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.2;
    text-decoration: none;

    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);

    transition: 
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.testme-shell .helper-link:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;

    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .testme-shell .helper {
        flex-direction: column;
    }

    .testme-shell .helper-link {
        width: 100%;
    }
}

.testme-shell .helper {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
}

.testme-shell .helper-item {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.testme-shell .helper-link {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  text-align: center !important;
}

.testme-subject {
  margin: 0 0 34px;
}

.testme-subject:last-child {
  margin-bottom: 0;
}

.testme-subject__title {
  margin: 0 0 18px;
  padding: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #222;
  border-bottom: 2px solid #35b7d3;
}

.testme-subject__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testme-page__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.testme-page__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.testme-page__btn--secondary {
  background: #fff !important;
  color: #2f83b9 !important;
  border: 2px solid #2f83b9;
}

.testme-page__btn--secondary:hover {
  background: #eef8ff !important;
}

.testme-attempts {
  margin-top: 30px;
}

.testme-attempts__title {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: #222;
}



.testme-attempts-empty {
  padding: 18px 20px;
  background: #fff;
  border: 2px dashed #d9e3ec;
  border-radius: 12px;
  color: #666;
  font-size: 16px;
}

/* =========================================================
   TestMe: карточки попыток
========================================================= */

.testme-attempt {
	position: relative !important;

	display: block !important;
	float: none !important;

	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;

	height: auto !important;
	min-height: 0 !important;

	margin: 0 0 12px 0 !important;
	padding: 18px 20px !important;

	box-sizing: border-box !important;
	overflow: visible !important;

	background: #fff !important;

	border: 1px solid #e3e9ed !important;
	border-radius: 14px !important;

	box-shadow: none !important;

	color: #3b4b57 !important;
	text-decoration: none !important;

	cursor: pointer !important;

	transition:
		transform .15s ease,
		box-shadow .15s ease,
		border-color .15s ease,
		background .15s ease !important;
}


.testme-attempt:last-child {
	margin-bottom: 0 !important;
}


.testme-attempt:hover {
	background: #fbfefd !important;

	border-color: rgba(105, 208, 158, .5) !important;

	box-shadow:
		0 7px 20px rgba(36, 55, 75, .07) !important;

	transform: translateY(-1px) !important;

	color: #3b4b57 !important;
	text-decoration: none !important;
}


/* Выбранная попытка */

.testme-attempt--active {
	padding: 17px 19px !important;

	border: 2px solid #69d09e !important;

	background: rgba(105, 208, 158, .055) !important;
}


.testme-attempt--active::before {
	content: "" !important;

	position: absolute !important;

	left: -2px !important;
	top: 16px !important;
	bottom: 16px !important;

	width: 4px !important;

	background: #69d09e !important;

	border-radius: 0 4px 4px 0 !important;
}


/* Верхняя строка */

.testme-attempt__top {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;

	width: 100% !important;
	height: auto !important;

	margin: 0 0 8px 0 !important;
	padding: 0 !important;

	gap: 12px !important;
}


/* Название */

.testme-attempt__title {
	position: static !important;

	display: block !important;
	float: none !important;

	width: auto !important;
	height: auto !important;

	margin: 0 !important;
	padding: 0 !important;

	background: transparent !important;
	border: 0 !important;

	color: #344552 !important;

	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
}


/* Процент */

.testme-attempt__percent {
	position: static !important;

	display: block !important;
	float: none !important;

	width: auto !important;
	height: auto !important;

	margin: 0 !important;
	padding: 0 !important;

	background: transparent !important;
	border: 0 !important;

	color: #69d09e !important;

	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}


/* Баллы */

.testme-attempt__result,
.testme-attempt__wrong {
	position: static !important;

	display: block !important;
	float: none !important;

	width: auto !important;
	height: auto !important;

	margin: 0 !important;
	padding: 0 !important;

	background: transparent !important;
	border: 0 !important;

	color: #87939c !important;

	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
}


.testme-attempt__result {
	margin-bottom: 1px !important;
}


.testme-attempt__result b,
.testme-attempt__wrong b {
	color: #52616c !important;
	font-weight: 700 !important;
}

.testme-result-top {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 42px;
}

.testme-result-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.testme-result-summary {
  width: 100%;
  font-size: 18px;
  line-height: 1.5;
}

.testme-result-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 700;
  color: #222;
}

.testme-result-summary__row b {
  color: #6f45d8;
  font-weight: 700;
}

.testme-result-summary__level {
  margin-top: 18px;
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 10px;
  background: #eef8ff;
  color: #2f83b9;
  font-size: 16px;
  font-weight: 700;
}

.testme-result-chart {
  width: 100%;
  display: flex;
  justify-content: center;
}

.testme-result-chart__circle {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: conic-gradient(
    #69d09e calc(var(--percent) * 1%),
    #f44336 0
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.testme-result-chart__inner {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.testme-result-chart__inner span {
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  color: #222;
}

.testme-result-chart__inner small {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #666;
}

.testme-question-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.testme-question-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 2px solid #222;
  border-radius: 10px;
  overflow: hidden;
}

.testme-question-table th,
.testme-question-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
  padding: 15px 18px;
  border-right: 2px solid #222;
  border-bottom: 2px solid #222;
  font-size: 16px;
  color: #222;
}

.testme-question-table th {
  background: #f5f7fa;
  font-weight: 700;
  text-align: center;
}

.testme-question-table td:first-child {
  min-width: 140px;
  font-weight: 700;
}

@media (width > 700px) {
  .testme-question-table th:nth-child(2),
  .testme-question-table th:nth-child(3) {
    min-width: 6em;
  }
}

.testme-question-table th:last-child,
.testme-question-table td:last-child {
  width: 1%;
  border-right: 0;
  text-align: center;
  white-space: nowrap;
}

.testme-question-table tr:last-child td {
  border-bottom: 0;
}

.testme-student-answer,
.testme-ai-feedback {
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  height: auto;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.testme-ai-feedback {
  margin-top: 12px;
  padding: 12px;
  background: #edf6ff;
  border-radius: 6px;
}

.testme-ai-feedback > div {
  margin-top: 6px;
}

.testme-question-status--success {
  color: #69d09e !important;
  font-weight: 700;
}

.testme-question-status--wrong {
  color: #e53935 !important;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .testme-result-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .testme-result-left {
    max-width: 360px;
  }

  .testme-result-chart {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .testme-result-chart__circle {
    width: 180px;
    height: 180px;
  }

  .testme-result-chart__inner {
    width: 112px;
    height: 112px;
  }

  .testme-result-chart__inner span {
    font-size: 28px;
  }

  .testme-question-table {
    min-width: 0;
  }

  .testme-question-table th,
  .testme-question-table td {
    padding: 12px 14px;
    font-size: 14px;

  }
  .testme-question-table th:nth-child(3),
.testme-question-table td:nth-child(3) {
	white-space: nowrap;
}
}


@media (max-width: 700px) {

  /* Общая обертка тестов */
  .testme-shell {
    padding: 18px 14px !important;
    margin: 0 10px 40px !important;
    border-radius: 14px !important;
  }

  /* Верхние кнопки: Доступные / Пройденные / Сертификаты */
  .testme-shell .helper {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .testme-shell .helper-item {
    width: 100% !important;
    min-width: 0 !important;
  }

  .testme-shell .helper-link {
    width: 100% !important;
    min-height: 50px !important;
    padding: 10px 14px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Заголовки */
  .testme-page__title {
    font-size: 34px !important;
    line-height: 1.15 !important;
    margin-bottom: 24px !important;
  }

  /* Блок результатов: на телефоне всё в одну колонку */
  .testme-result-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 26px !important;
    align-items: start !important;
    margin-bottom: 32px !important;
  }

  .testme-result-left {
    width: 100% !important;
    max-width: none !important;
    align-items: stretch !important;
  }

  /* Краткая статистика */
  .testme-result-summary {
    width: 100% !important;
    font-size: 20px !important;
    line-height: 1.45 !important;
  }

  .testme-result-summary__row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .testme-result-summary__row span {
    flex: 1 !important;
  }

  .testme-result-summary__row b {
    flex: 0 0 auto !important;
  }

  /* Диаграмма под статистикой */
  .testme-result-chart {
    width: 100% !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .testme-result-chart__circle {
    width: 190px !important;
    height: 190px !important;
  }

  .testme-result-chart__inner {
    width: 112px !important;
    height: 112px !important;
  }

  .testme-result-chart__inner span {
    font-size: 28px !important;
  }

  .testme-result-chart__inner small {
    font-size: 13px !important;
  }

  /* Таблица вопросов */
  .testme-question-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .testme-question-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    display: block;
  }

  .testme-question-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .testme-question-table tbody,
  .testme-question-table tbody tr,
  .testme-question-table tbody td {
    display: block;
  }

  .testme-question-table tbody tr + tr {
    border-top: 2px solid #222;
  }

  .testme-question-table tbody td {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    border-right: 0;
    border-bottom: 0;
    text-align: left !important;
    white-space: normal !important;
  }

  .testme-question-table tbody td::before {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #555;
  }

  .testme-question-table tbody td:first-child::before {
    content: 'Вопрос';
  }

  .testme-question-table tbody td:nth-child(2)::before {
    content: 'Ваш ответ';
  }

  .testme-question-table tbody td:last-child::before {
    content: 'Баллы';
  }

  .testme-question-table th,
  .testme-question-table td {
    padding: 12px 10px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .testme-question-table th:first-child,
  .testme-question-table td:first-child {
    width: 100% !important;
  }

 .testme-question-table th:last-child,
.testme-question-table td:last-child {
	width: 100% !important;
	white-space: normal !important;
}

}


/* =========================================================
   TestMe: карточки попыток — размеры текста
========================================================= */

.testme-attempt__title {
	font-size: 18px !important;
}

.testme-attempt__percent {
	font-size: 23px !important;
}

.testme-attempt__result,
.testme-attempt__wrong {
	font-size: 15px !important;
	line-height: 1.55 !important;
}


/* Время выполнения */

.testme-attempt__time {
	margin-top: 7px !important;

	color: #98a3ab !important;

	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
}


/* MOBILE */

@media (max-width: 700px) {

	.testme-attempt {
		padding: 15px 16px !important;
		border-radius: 12px !important;
	}

	.testme-attempt--active {
		padding: 14px 15px !important;
	}

	.testme-attempt__title {
		font-size: 16px !important;
	}

	.testme-attempt__percent {
		font-size: 20px !important;
	}

	.testme-attempt__result,
	.testme-attempt__wrong {
		font-size: 14px !important;
		line-height: 1.5 !important;
	}

	.testme-attempt__time {
		margin-top: 6px !important;
		font-size: 12px !important;
	}

}



@media (max-width: 700px) {
  .testme-page__card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }

  .testme-page__actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .testme-page__actions .testme-page__btn {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .testme-page__btn--secondary {
    background: #fff !important;
    color: #2f83b9 !important;
    border: 2px solid #2f83b9 !important;
  }
}

@media (max-width: 700px) {
	.testme-answer__label {
		font-size: 18px !important;
		line-height: 1.35 !important;
		padding: 16px 18px !important;
	}
}



.testme-order-answer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 16px 18px;
  background: #fff;
  border: 2px solid #d9e3ec;
  border-radius: 12px;
  box-sizing: border-box;
}

.testme-order-answer__input {
  flex: 0 0 70px;
  width: 70px;
  height: 50px;
  border: 2px solid #35b7d3;
  border-radius: 10px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #222;
  outline: none;
  box-sizing: border-box;
}

.testme-order-answer__input:focus {
  border-color: #2f83b9;
  box-shadow: 0 0 0 4px rgba(47, 131, 185, 0.12);
}

.testme-order-answer__text {
  flex: 1;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #222;
}

@media (max-width: 700px) {
  .testme-order-answer {
    gap: 12px;
    padding: 14px;
  }

  .testme-order-answer__input {
    flex: 0 0 58px;
    width: 58px;
    height: 46px;
    font-size: 20px;
  }

  .testme-order-answer__text {
    font-size: 17px;
  }
}





.testme-order-hint {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: #555;
}

.testme-order-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 24px 0;
}

.testme-order-bank,
.testme-order-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testme-order-bank {
  padding: 16px;
  background: #f5f8fb;
  border: 2px dashed #cbd8e3;
  border-radius: 14px;
  min-height: 90px;
}

.testme-order-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: #fff;
  border: 2px solid #d9e3ec;
  border-radius: 12px;
  box-sizing: border-box;
  cursor: grab;
  transition: 0.2s ease;
}

.testme-order-card:hover {
  border-color: #35b7d3;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.testme-order-card--dragging {
  opacity: 0.55;
  cursor: grabbing;
  transform: scale(0.98);
}

.testme-order-card--selected {
  border-color: #2f83b9 !important;
  background: #eef8ff !important;
  box-shadow: 0 0 0 4px rgba(47, 131, 185, 0.14);
}

.testme-order-card__handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eef8ff;
  color: #2f83b9;
  font-size: 22px;
  font-weight: 700;
  user-select: none;
}

.testme-order-card__text {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #222;
}

.testme-order-slot {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 12px 16px;
  background: #fff;
  border: 2px dashed #b8c8d6;
  border-radius: 14px;
  box-sizing: border-box;
  transition: 0.2s ease;
}

.testme-order-slot--filled {
  border-style: solid;
  border-color: #35b7d3;
  background: #f8fcff;
}

.testme-order-slot__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2f83b9;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.testme-order-slot__placeholder {
  color: #9aa8b4;
  font-size: 16px;
  font-weight: 700;
}

.testme-order-slot .testme-order-card {
  grid-column: 2;
  width: 100%;
}

.testme-order-slot .testme-order-card__handle {
  display: none;
}

/* В ячейке справа ручки уже нет — карточке нужна одна колонка */
.testme-order-slot .testme-order-card {
  grid-template-columns: minmax(0, 1fr);
}

.testme-order-slot .testme-order-card__text {
  grid-column: 1;
  width: 100%;
  min-width: 0;
}

.testme-order-slot .testme-order-card__text {
  font-size: 17px;
}

@media (max-width: 800px) {
  .testme-order-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .testme-order-bank {
    order: 1;
  }

  .testme-order-slots {
    order: 2;
  }
}

@media (max-width: 700px) {
  .testme-order-card {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
  }

  .testme-order-card__handle {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .testme-order-card__text {
    font-size: 17px;
  }

  .testme-order-slot {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 72px;
    padding: 10px 12px;
  }

  .testme-order-slot__number {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}





.testme-question__text {
  max-width: 100%;
  overflow: hidden;
}

.testme-question-image {
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
  text-align: center;
}

.testme-question-image img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 12px;
}

@media (max-width: 700px) {
  .testme-question-image img {
    width: 100% !important;
    max-width: 100% !important;
  }
}


.testme-question__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.testme-dont-know-btn {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #8a8a8a !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2;
  cursor: pointer;
  border-bottom: 2px dotted #8a8a8a !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  min-height: auto !important;
  min-width: auto !important;
}

.testme-dont-know-btn:hover {
  color: #555 !important;
  border-bottom-color: #555 !important;
  background: none !important;
}

.testme-dont-know-btn:focus {
  outline: none;
  box-shadow: none !important;
}

@media (max-width: 700px) {
  .testme-question__controls {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .testme-question__controls > button:first-child {
    flex: 1;
  }

  .testme-dont-know-btn {
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* =========================================================
   TestMe: финальный фикс от глобальных стилей шаблона
   ========================================================= */

.testme-question,
.testme-question *,
.testme-question *:before,
.testme-question *:after {
	box-sizing: border-box !important;
}

.testme-question button:before,
.testme-question button:after,
.testme-ruler-toggle--image:before,
.testme-ruler-toggle--image:after,
.testme-ruler__close:before,
.testme-ruler__close:after {
	pointer-events: none !important;
}

/* Десктоп: картинка по размеру из админки, кнопка поверх картинки */
@media (min-width: 701px) {
	.testme-question-image--with-tools {
		position: relative !important;
		display: inline-block !important;
		width: auto !important;
		max-width: 100% !important;
		margin-bottom: 5px !important;
	}

	.testme-question-image--with-tools img {
		display: block !important;
		max-width: 100% !important;
		height: auto !important;
	}

	.testme-question-image--with-tools .testme-ruler-toggle--image {
		position: absolute !important;
		right: 14px !important;
		top: 14px !important;
		z-index: 5 !important;

		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;

		width: auto !important;
		height: 48px !important;
		min-height: 48px !important;
		padding: 0 17px !important;
		margin: 0 !important;

		border: 3px solid rgba(47, 111, 183, 0.95) !important;
		border-radius: 14px !important;

		background: rgba(238, 248, 255, 0.92) !important;
		color: #2f6fb7 !important;

		font-size: 18px !important;
		font-weight: 700 !important;
		line-height: 1 !important;
		letter-spacing: 0.3px !important;
		text-transform: uppercase !important;
		text-decoration: none !important;

		box-shadow: 0 6px 16px rgba(0,0,0,0.16) !important;
		cursor: pointer !important;
		overflow: visible !important;

		animation: testme-ruler-pulse 1.25s infinite !important;
	}
}

/* Мобильная версия: кнопка над картинкой, картинка 100% */
@media (max-width: 700px) {
	.testme-question__body,
	.testme-question__text,
	.testme-answer-list,
	.testme-text-answer {
		display: block !important;
	}

	.testme-question-image,
	.testme-question-image--with-tools {
		display: block !important;
		position: relative !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-bottom: 5px !important;
	}

	.testme-question-image--with-tools .testme-ruler-toggle--image {
		position: static !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;

		width: auto !important;
		height: 38px !important;
		min-height: 38px !important;
		padding: 0 14px !important;
		margin: 0 0 10px 0 !important;

		border: 2px solid rgba(47, 111, 183, 0.95) !important;
		border-radius: 12px !important;

		background: rgba(238, 248, 255, 0.92) !important;
		color: #2f6fb7 !important;

		font-size: 13px !important;
		font-weight: 700 !important;
		line-height: 1 !important;
		letter-spacing: 0 !important;
		text-transform: uppercase !important;

		box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
		cursor: pointer !important;

		animation: testme-ruler-pulse 1.25s infinite !important;
	}

	.testme-question-image img,
	.testme-question-image--with-tools img {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
	}

	.testme-answer-list {
		margin-top: 8px !important;
	}

	.testme-text-answer {
		margin-top: 10px !important;
	}
}

/* TestMe: ответы слева на компьютере, по центру на телефоне */

/* Компьютер */
@media (min-width: 701px) {
	.testme-answer-list {
		text-align: left !important;
	}

	.testme-text-answer,
	.testme-text-answer__label,
	.testme-text-answer__row {
		text-align: left !important;
		justify-content: flex-start !important;
	}

	.testme-text-answer__input {
		text-align: left !important;
	}

	.testme-answer-list label,
	.testme-answer-list li,
	.testme-answer-list div {
		text-align: left !important;
	}
}

/* Телефон */
@media (max-width: 700px) {
	.testme-answer-list {
		text-align: center !important;
	}

	.testme-text-answer,
	.testme-text-answer__label,
	.testme-text-answer__row {
		text-align: center !important;
		justify-content: center !important;
	}

	.testme-text-answer__input {
		text-align: center !important;
	}

	.testme-answer-list label,
	.testme-answer-list li,
	.testme-answer-list div {
		text-align: center !important;
	}
}

/* TestMe: выравнивание надписи "Введите ответ" */

/* Компьютер — слева */
@media (min-width: 701px) {
	.testme-question .testme-answer-list .testme-text-answer .testme-text-answer__label {
		display: block !important;
		width: 100% !important;
		text-align: left !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

/* Телефон — по центру */
@media (max-width: 700px) {
	.testme-question .testme-answer-list .testme-text-answer .testme-text-answer__label {
		display: block !important;
		width: 100% !important;
		text-align: center !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

@media (max-width: 700px) {
	.testme-ruler__rotate {
		right: -30px !important;
		top: -30px !important;
		width: 60px !important;
		height: 60px !important;
		border-width: 4px !important;
	}

	.testme-ruler__rotate:before {
		font-size: 34px !important;
	}
}

/* TestMe: множественный выбор */
.testme-answer__circle--checkbox {
	border-radius: 6px !important;
}

.testme-answer__input--checkbox:checked + .testme-answer__label .testme-answer__circle--checkbox::after {
	content: "✓" !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: auto !important;
	height: auto !important;
	background: transparent !important;
	border-radius: 0 !important;
	color: #2f83b9 !important;
	font-size: 18px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	transform: translate(-50%, -50%) !important;
}


@media (max-width: 700px) {
	.testme-answer__label {
		align-items: flex-start !important;
	}

	.testme-answer__image {
		max-width: 100% !important;
		margin: 0 auto !important;
	}

	.testme-answer__content {
		align-items: center !important;
		text-align: center !important;
	}
}

/* =========================================================
   TestMe: картинки в вариантах ответов
   ========================================================= */

.testme-answer__content {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 8px !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
}

.testme-answer__image {
	display: block !important;
	max-width: 100% !important;
	margin-bottom: 8px !important;
}

.testme-answer__image img {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	border-radius: 10px !important;
	box-sizing: border-box !important;
}

/* =========================================================
   TestMe: раскладки ответов с картинками
   ========================================================= */

/* 1 — варианты в один ряд под вопросом */
.testme-question-layout--answers-images-1 .testme-question-layout__answers {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 14px !important;
	align-items: stretch !important;
}

.testme-question-layout--answers-images-1 .testme-answer {
	flex: 1 1 0 !important;
	min-width: 0 !important;
}

/* 2 — варианты в 2 столбца под вопросом */
.testme-question-layout--answers-images-2 {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.testme-question-layout--answers-images-2 .testme-question-layout__answers {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	justify-items: center !important;
	gap: 18px !important;
	width: 100% !important;
	margin-top: 18px !important;
}

/* 3 — вопрос слева, ответы справа */
.testme-question-layout--answers-images-3 {
	position: relative !important;

	width: 100% !important;
	max-width: 100% !important;

	margin-left: 0 !important;
	margin-right: 0 !important;

	padding: 6px !important;
	box-sizing: border-box !important;

	background: #fff !important;
	border: 0 !important;
	border-radius: 16px !important;
	box-shadow: none !important;

	display: grid !important;
	grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1.25fr) !important;
	gap: 4px !important;
	column-gap: 4px !important;
	align-items: start !important;

	left: auto !important;
	transform: none !important;
}

.testme-question-layout--answers-images-3 .testme-question-layout__question {
	min-width: 0 !important;
}

.testme-question-layout--answers-images-3 .testme-question-layout__answers {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 12px !important;
	margin-top: 0 !important;
	width: 100% !important;
}

/* =========================================================
   TestMe: размер кнопки ответа зависит от размера картинки
   На компьютере работает процент из админки
   ========================================================= */

.testme-question-layout--answers-images-2 .testme-answer,
.testme-question-layout--answers-images-3 .testme-answer {
	width: var(--answer-image-width, auto) !important;
	max-width: 100% !important;
	justify-self: center !important;
	box-sizing: border-box !important;
}

.testme-question-layout--answers-images-2 .testme-answer__label,
.testme-question-layout--answers-images-3 .testme-answer__label {
	width: 100% !important;
	max-width: 100% !important;
	padding: 3px !important;
	box-sizing: border-box !important;
}

.testme-question-layout--answers-images-2 .testme-answer__content,
.testme-question-layout--answers-images-3 .testme-answer__content {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.testme-question-layout--answers-images-2 .testme-answer__image,
.testme-question-layout--answers-images-3 .testme-answer__image {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.testme-question-layout--answers-images-2 .testme-answer__image img,
.testme-question-layout--answers-images-3 .testme-answer__image img {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 8px !important;
}

.testme-question-layout--answers-images-2 .testme-answer__text,
.testme-question-layout--answers-images-3 .testme-answer__text {
	margin-top: 5px !important;
}

/* =========================================================
   TestMe: мобильная версия
   На телефоне проценты из админки не влияют
   ========================================================= */

@media (max-width: 900px) {
	.testme-question-layout--answers-images-2,
	.testme-question-layout--answers-images-3 {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding: 0 !important;
		display: block !important;
		background: transparent !important;
		overflow: visible !important;
	}

	.testme-question-layout--answers-images-1 .testme-question-layout__answers,
	.testme-question-layout--answers-images-2 .testme-question-layout__answers,
	.testme-question-layout--answers-images-3 .testme-question-layout__answers {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		gap: 12px !important;
		margin-top: 12px !important;
	}

	.testme-question-layout--answers-images-1 .testme-answer,
	.testme-question-layout--answers-images-2 .testme-answer,
	.testme-question-layout--answers-images-3 .testme-answer {
		width: 100% !important;
		max-width: 100% !important;
	}
}

@media (max-width: 700px) {
	.testme-question,
	.testme-question__body,
	.testme-question__text,
	.testme-question-layout,
	.testme-question-layout--answers-images-1,
	.testme-question-layout--answers-images-2,
	.testme-question-layout--answers-images-3 {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		box-sizing: border-box !important;
		overflow: visible !important;
	}

	.testme-answer-list {
		text-align: center !important;
	}

	.testme-answer__label {
		align-items: center !important;
	}

	.testme-answer__circle {
		align-self: center !important;
		margin-top: 0 !important;
	}

	.testme-answer__content {
		align-items: center !important;
		text-align: center !important;
	}

	.testme-answer__image,
	.testme-answer__image img,
	.testme-question-layout--answers-images-2 .testme-answer__image,
	.testme-question-layout--answers-images-3 .testme-answer__image,
	.testme-question-layout--answers-images-2 .testme-answer__image img,
	.testme-question-layout--answers-images-3 .testme-answer__image img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* TestMe: ближе вопрос и ответы в раскладке справа */
.testme-question-layout--answers-images-3 {
	grid-template-columns: minmax(0, 1fr) minmax(300px, 320px) !important;
	gap: 4px !important;
	column-gap: 4px !important;
}

.testme-streak-card {
	display: flex;
	align-items: center;
	gap: 18px;

	margin-top: 24px;
	margin-bottom: 24px;
	padding: 20px 24px;

	background: #fff;
	border-radius: 18px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.testme-streak-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;

	width: 58px;
	height: 58px;

	font-size: 34px;
	line-height: 1;

	background: #fff4e6;
	border-radius: 16px;
}

.testme-streak-card__content {
	flex: 1;
	min-width: 0;
}

.testme-streak-card__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.testme-streak-card__text {
	margin-top: 5px;

	font-size: 14px;
	line-height: 1.5;
	color: #777;
}

.testme-streak-card__best {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex-shrink: 0;
}

.testme-streak-card__best span {
	font-size: 12px;
	color: #999;
}

.testme-streak-card__best b {
	margin-top: 2px;

	font-size: 18px;
	font-weight: 700;
}


/* MOBILE */

@media (max-width: 767px) {

	.testme-streak-card {
		align-items: flex-start;
		gap: 13px;

		padding: 16px;
		margin-top: 18px;
		margin-bottom: 18px;
	}

	.testme-streak-card__icon {
		width: 48px;
		height: 48px;

		font-size: 28px;
		border-radius: 14px;
	}

	.testme-streak-card__title {
		font-size: 17px;
	}

	.testme-streak-card__text {
		font-size: 13px;
	}

	.testme-streak-card__best {
		display: none;
	}
}

.testme-result-answer-item {
	margin-bottom: 10px;
}

.testme-result-answer-item:last-child {
	margin-bottom: 0;
}

.testme-result-answer-image {
	width: 100%;
	margin-bottom: 6px;
}

.testme-result-answer-image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
}

.testme-result-answer-text {
	line-height: 1.35;
}

.testme-result-answer-arrow {
	margin: 5px 0;
	text-align: center;
	font-weight: 700;
}

/* =========================================================
   TestMe: форматирование текста вопроса из TinyMCE
   ========================================================= */

.testme-question-layout__question,
.testme-question-image-text {
	font-size: 24px;
	line-height: 1.35;
	font-weight: 400;
	color: #222;
}

/* жирный */
.testme-question-layout__question b,
.testme-question-layout__question strong,
.testme-question-image-text b,
.testme-question-image-text strong {
	font-weight: 700;
}

/* курсив */
.testme-question-layout__question i,
.testme-question-layout__question em,
.testme-question-image-text i,
.testme-question-image-text em {
	font-style: italic;
}

/* подчёркивание */
.testme-question-layout__question u,
.testme-question-image-text u {
	text-decoration: underline;
}

/* зачёркивание */
.testme-question-layout__question s,
.testme-question-layout__question strike,
.testme-question-image-text s,
.testme-question-image-text strike {
	text-decoration: line-through;
}

/* абзацы */
.testme-question-layout__question p,
.testme-question-image-text p {
	margin: 0 0 12px;
}

.testme-question-layout__question p:last-child,
.testme-question-image-text p:last-child {
	margin-bottom: 0;
}

/* списки */
.testme-question-layout__question ul,
.testme-question-image-text ul {
	list-style: disc;
	margin: 10px 0 10px 28px;
	padding: 0;
}

.testme-question-layout__question ol,
.testme-question-image-text ol {
	list-style: decimal;
	margin: 10px 0 10px 28px;
	padding: 0;
}

/* заголовки */
.testme-question-layout__question h1,
.testme-question-image-text h1 {
	font-size: 2em;
	font-weight: 700;
}

.testme-question-layout__question h2,
.testme-question-image-text h2 {
	font-size: 1.6em;
	font-weight: 700;
}

.testme-question-layout__question h3,
.testme-question-image-text h3 {
	font-size: 1.3em;
	font-weight: 700;
}

@media (max-width: 700px) {
	.testme-question-layout__question,
	.testme-question-image-text {
		font-size: 20px;
		line-height: 1.45;
		font-weight: 400;
	}
}

/* =========================================================
   TestMe: таблицы из TinyMCE
   ========================================================= */

.testme-question-layout__question table,
.testme-question-image-text table {
	border-collapse: collapse;
	border-spacing: 0;
	max-width: 100%;
	margin: 14px 0;
	background: #fff;
}

.testme-question-layout__question th,
.testme-question-layout__question td,
.testme-question-image-text th,
.testme-question-image-text td {
	min-width: 40px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	vertical-align: top;
	font: inherit;
	text-align: inherit;
}

.testme-question-layout__question th,
.testme-question-image-text th {
	font-weight: 700;
	background: #f5f5f5;
}

/* Чтобы широкая таблица не ломала страницу */
.testme-question-layout__question,
.testme-question-image-text {
	overflow-x: auto;
}

/* Цвета/фон, заданные через TinyMCE, не перебиваем */

@media (max-width: 700px) {
	.testme-question-layout__question table,
	.testme-question-image-text table {
		font-size: 16px;
	}

	.testme-question-layout__question th,
	.testme-question-layout__question td,
	.testme-question-image-text th,
	.testme-question-image-text td {
		padding: 6px 8px;
	}
}

/* =========================================================
   TestMe: сообщение об ошибке в задании
   ========================================================= */

.testme-error-report {
	margin-top: 24px;
}

.testme-error-report__link {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	color: #9a9a9a;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.testme-error-report__link:hover {
	color: #666;
	text-decoration: underline;
}

.testme-error-report__form {
	display: none;
	width: 100%;
	max-width: 520px;
	margin-top: 10px;
}

.testme-error-report.is-open .testme-error-report__form {
	display: block;
}

.testme-error-report__text {
	display: block;
	width: 100%;
	min-height: 90px;
	padding: 10px 12px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	background: #fff;
	color: #333;
	font: inherit;
	font-size: 14px;
	line-height: 1.45;
	resize: vertical;
	box-sizing: border-box;
}

.testme-error-report__text:focus {
	border-color: #aaa;
	outline: none;
}

.testme-error-report__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
}

.testme-error-report__send {
	padding: 7px 14px;
	border: 0;
	border-radius: 7px;
	background: #777;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.testme-error-report__send:hover {
	background: #666;
}

.testme-error-report__send:disabled {
	opacity: .55;
	cursor: default;
}

.testme-error-report__status {
	font-size: 13px;
	color: #777;
}

.testme-error-report__status.is-success {
	color: #69d09e;
}

.testme-error-report__status.is-error {
	color: #c94c4c;
}

.testme-question__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 18px;
}

.testme-question__meta .testme-question__progress {
	margin-bottom: 0;
}

.testme-error-report__link {
	flex-shrink: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #999;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	cursor: pointer;
}

.testme-error-report__link:hover {
	color: #666;
	text-decoration: underline;
}

.testme-error-report {
	margin-top: -8px;
	margin-bottom: 18px;
}

.testme-error-report__form {
	display: none;
	width: 100%;
	max-width: 520px;
	margin-left: auto;
}

.testme-error-report.is-open .testme-error-report__form {
	display: block;
}

@media (max-width: 700px) {
	.testme-question__meta {
		gap: 10px;
	}

	.testme-error-report__link {
		font-size: 12px;
		white-space: nowrap;
	}
}
.testme-draft-notice {
	padding: 24px;
	margin: 20px 0;
	border: 1px solid #cbdce8;
	border-radius: 12px;
	background: #f4f9fc;
}
.testme-draft-notice .testme-draft-notice__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	max-width: 100%;
	min-height: 44px;
	height: auto;
	margin: 8px 12px 0 0;
	padding: 12px 20px;
	border: 1px solid #236b99;
	border-radius: 8px;
	background: #236b99;
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
}
.testme-draft-notice .testme-draft-notice__button:hover { background: #195477; }
.testme-draft-notice .testme-draft-notice__button--secondary {
	background: #fff;
	color: #236b99;
}
.testme-draft-notice .testme-draft-notice__button--secondary:hover { background: #e8f2f8; }
.testme-draft-notice .testme-draft-notice__button:focus-visible {
	outline: 3px solid #236b99;
	outline-offset: 3px;
}
.testme-draft-notice .testme-draft-notice__button:disabled { opacity: .65; cursor: wait; }
.testme-draft-notice__hint { font-size: 14px; color: #526775; }
