/* quiz */
body.process:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.6;
    z-index: 15;
}
body.process:after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 16;
	background-image: url("data:image/svg+xml,%3Csvg%20fill%3D%27hsl%280,%20100%25,%20100%25%29%27%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Ccircle%20cx%3D%274%27%20cy%3D%2712%27%20r%3D%273%27%3E%3Canimate%20id%3D%27spinner_jObz%27%20begin%3D%270%3Bspinner_vwSQ.end-0.25s%27%20attributeName%3D%27r%27%20dur%3D%270.75s%27%20values%3D%273%3B.2%3B3%27%2F%3E%3C%2Fcircle%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%273%27%3E%3Canimate%20begin%3D%27spinner_jObz.end-0.6s%27%20attributeName%3D%27r%27%20dur%3D%270.75s%27%20values%3D%273%3B.2%3B3%27%2F%3E%3C%2Fcircle%3E%3Ccircle%20cx%3D%2720%27%20cy%3D%2712%27%20r%3D%273%27%3E%3Canimate%20id%3D%27spinner_vwSQ%27%20begin%3D%27spinner_jObz.end-0.45s%27%20attributeName%3D%27r%27%20dur%3D%270.75s%27%20values%3D%273%3B.2%3B3%27%2F%3E%3C%2Fcircle%3E%3C%2Fsvg%3E");
	background-size: 5rem;
	background-repeat: no-repeat;
	background-position: center;
}
.mtm1 {
	margin-top: -1rem!important;
}
.stages__container {
	overflow: initial!important;
}
.stages {
	
}
.stages .wrap {
	
}
.stage-block {
	padding-top: 3rem;
}
.stage-block .h3 {
	padding-bottom: 2rem;
}
.stages .stages-progress {
	position: relative;
}
.stages .stages-progress .line {
	width: calc(100% - 0.5rem);
    height: 0.5rem;
    position: absolute;
    background: var(--borderGrey);
    top: calc(50% - 0.2rem);
    left: 0.25rem;
}
.stages .stages-progress .line .filler {
	position: absolute;
	width: 0%;
	height: 100%;
	top: 0;
	left: 0;
	background: linear-gradient(90deg, #0008b6 0%, #0893fc 100%);
	border-radius: 0.5rem;
}

.stages .stages-progress .items {
	display: flex;
    width: 100%;
    justify-content: space-between;
    z-index: 2;
    position: relative;
}
.stages .stages-progress .stage-item {
	cursor: default;
}
.stages .stages-progress .stage-item.allowed {
	cursor: pointer;
}
.stages .stages-progress .number-icon {
	transition: 0.3s;
	position: relative;
	background: var(--borderGrey);
}
.stages .stages-progress .number-icon:before {
	content: '';
	transition: 0.3s;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 100%;
    background: linear-gradient(90deg, #0893fc 0%, #0008b6 100%);
	opacity: 0;
	z-index: 1;
}

.stages .stages-progress .number-icon svg {
    width: auto;
    margin: auto;
    height: 1.6rem;	
	transition: 0.3s;
	z-index: 2;
}
.stages .stages-progress .stage-item.active .number-icon:before {
    opacity: 1;
}

.stages .stages-progress .stage-item:not(.active) .number-icon svg {
    width: auto;
    margin: auto;
    height: 1.6rem;
	filter: grayscale(1);
    opacity: 0.5;	
	transition: 0.3s;
}
.stages .tiles-3,
.stages .tiles-4 {
	justify-content: space-between;
}
.tiles-3 .form-group {
	flex: 0 0 30%;
}
.tiles-2 {
	display: flex;
	gap: 1.43rem;
	flex-wrap: wrap;
	justify-content: space-between;
}
.tiles-2 .form-group {
	flex: 0 0 calc(50% - 3rem);
}
.stages__row .border-block-btn {
	display: flex;
    justify-content: center;
	gap: 1rem;
}
.nice {
	width: 100%;
    height: 2.625rem;
    border: .05rem solid var(--formBorder);
}
.hidden-select {
    visibility: hidden;
    position: absolute;
}
.nice-select-dropdown {
	width: 100%;
}
.label {
    display: block;
    margin: 0 0 0.35rem 0;
    font-size: 0.85rem;
    color: var(--greyText);
}
.hidden_textarea {
    overflow: hidden;
    max-height: 0;
    transition: 0.3s;
}
.hidden_textarea.show {
	max-height: 4.2rem;
	padding-top: 1rem;
}
.choice_area {
	width: 100%;
    /* min-height: 8rem; */
    padding: 1rem 0;
    max-width: calc(100% - 2.2rem);
    position: relative;
    margin: 0;
    /* border: .05rem solid var(--formBorder); */
    border-radius: .5rem;
	display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.d-none {
	display: none!important;
}
.questions_area_wrap {
	width: 100%;
}
.questions_area_wrap .h3 {
	
}
.questions_area {


}

/* Stage 2 */
.questions_area {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	width: auto;
    position: relative;
/*	
	min-height: 8rem;
	margin-top: 0.75rem;
	padding: 1rem;
    margin: 1.5rem auto auto auto;
    border: .05rem solid var(--formBorder);
    border-radius: .5rem;  
*/	
}
.questions_area.v2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.questions_area.v2 .checkboxes-group {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.question-card{
	border: 1px solid #e6e6e6;
    border-radius: 0.75rem;
    padding: 1.25rem 0.75rem 0.75rem 0.75rem;
    background: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
    position: relative;
	display: flex;
    flex-direction: column;
    justify-content: space-between;	
}
.question-card .badge {
	position: absolute;
    top: 0.25rem;
    font-size: 0.6rem;
    right: 0.25rem;
    padding: 0 0.5rem 0.1rem 0.5rem;
    border-radius: 0.5rem;
    background: var(--lightGrey);
}
.question-title{
	font-weight: normal;
    margin-bottom: .5rem;
}
.question-control {
	height: 100%;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
}
.question-control label{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0.75rem 0.5rem 0;
  max-height: max-content;
}
.question-control .checkboxes-group {
	display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
	row-gap: 0;
    column-gap: 0.5rem;
}

.chioce-item {
	display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #0893fc, #0008b6);
    color: #fff;
    max-width: max-content;
    padding: 0.5rem 1rem 0.7rem 1rem;
    border-radius: 3rem;
}

.choice-remove {
	width: 1.2rem;
    height: 1.2rem;
    border: 1px solid #fff;
    border-radius: 50%;
    position: relative;
    top: 0.1rem;
    cursor: pointer;
    left: 0.1rem;
}
.choice-remove:before,
.choice-remove:after {
    content: '';
    width: 1.1rem;
    height: 2px;
    position: absolute;
    transform-origin: center;
    background: #fff;
    top: calc(50% - 1px);
    left: 0.05rem;
	scale: 0.75;
}
.choice-remove:before {
	transform: rotate(45deg);
}
.choice-remove:after {
	transform: rotate(-45deg);
}
.choice_area.is-empty { display: none; }
.question-control .radio-group-items {
	flex-direction: column;
}
.tiles-12 {
	width: 100%;
    display: flex;
    gap: 1.43rem;
    flex-wrap: wrap;
	
}
.tiles-12 .left {
	flex: 0 0 30%;
}
.tiles-12 .right {
	flex: 0 0 65%;
}
.form-group.flex-col {
	display: flex;
    flex-direction: column;
}

.form-group.flex-col .label {
	padding-bottom: 1rem;
	font-size: 1rem;
    font-weight: 500;
}
.form-group.flex-col .h4 small {
	font-size: 0.75rem;
    line-height: 0.85rem;
    display: block;
    margin-top: -0.75rem;
	font-weight: normal;
	text-transform: none;
}
.form-group.flex-col .range-block {
	margin-top: auto;
}
.tiles-3.gap1,
.tiles-4.gap1 {
	gap: 1rem;
}
.tiles-3.gap1 .form-group {
	flex: 0 0 calc(33% - 4rem);
}
.tiles-3 .form-group.bordered {
	padding: 1.5rem;
}

.tiles-4.gap1 .form-group {
	flex: 0 0 calc(25% - 3rem);
}

.form-group .checkboxes-group {
	display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.range-block { 
	margin: 2rem 0 0 0;
}




.range-slider{ 
	position: relative; 
	padding-bottom: 0.5rem; 
} 

.range-block .minmax{
  display:flex;
  justify-content:space-between;
  font-size: 1rem;
  margin-bottom: -0.5rem;
}

/* Сам range — единый стиль для Chrome/Safari (WebKit) */
.range{
  width: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent; /* важно */
  touch-action: pan-y; /* чтобы вертикальный скролл страницы работал нормально */
}

.range:focus{ outline: none; }

.range::-webkit-slider-runnable-track{
  height: 0.375rem;
  background: linear-gradient(90deg, #0008b6 0%, #0893fc 100%);
  border-radius: 20rem;
}

.range::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 1.375rem;
  height: 1.375rem;
  background: linear-gradient(90deg, #0008b6 0%, #0893fc 100%);
  border-radius: 20rem;
  margin-top: -0.5rem; /* центрирование по треку */
}

/* Деления/цифры для 1..5 (одинаково везде) */
.ticks{
	display: flex;
    font: 12px system-ui;
    width: calc(100% - 1rem);
    justify-content: space-between;
    margin: 0.5rem auto auto auto;
}
.ticks span{
  text-align: center;
  position: relative;
}
.ticks span::before{
  content:"";
  position:absolute;
  top:-10px;
  left:50%;
  transform:translateX(-50%);
  width: 2px;
  height: 0.5rem;
  background: #000;
  opacity: .8;
}

.range-block .bubble{
	position: absolute;
    top: -1.75rem;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    background: var(--blueText);
	color: #fff;
    padding: 0.25rem;
    border-radius: 0.4rem;
    z-index: 1;
    min-width: 1.25rem;
    text-align: center;
}

.range-block .bubble:before {
    content: '';
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--blueText);
    bottom: -0.5rem;
    transform: rotate(45deg) translateX(-50%);
    left: calc(50% - 0.09rem);
    z-index: -1;
}

.load_area {
	display: flex;
    background: var(--serviceBg);
    padding: 1rem;
    flex-direction: column;
    width: calc(100% - 2rem);
    align-items: center;
    margin: auto;
    border-radius: 1rem;
    cursor: pointer;
}
.load_area .row {
	display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
	margin-bottom: 0.5rem;
}
.load_area img {
	width: 2rem;
    height: auto;
}
.load_area input[type=file] {
	display: none;
}
.load_area.is-dragover {
	opacity: 0.5;
}
.load_area .description {
	font-size: 0.65rem;
    line-height: 0.7rem;
    text-align: center;
}
.files_attached {
	display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-top: 1rem;
}
.files_attached .item {
	max-width: max-content;
    border: 1px solid var(--lightGrey);
    padding: 0 0.5rem 0.1rem 0.5rem;
    border-radius: 0.5rem;
	display: flex;
    flex-direction: row;
    align-items: center;
	gap: 0.4rem;
}
.files_attached .filename {
	font-size: 0.8rem;
	word-break: break-all;
}
.files_attached .file_remove {
	position: relative;
	width: 0.75rem;
    height: 0.75rem;
	display: flex;
    flex-direction: row;
    align-items: center;
	top: 0.08rem;
	cursor: pointer;
}
.files_attached .file_remove:before,
.files_attached .file_remove:after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	transform-origin: center;
	background: #a70000;
}
.files_attached .file_remove:before {
	transform: rotate(45deg);
}
.files_attached .file_remove:after {
	transform: rotate(-45deg);
}

.radio-group-col {
	flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.ta-group {
	display: flex;
    flex-direction: column;
    height: 100%;
}
.ta-group textarea {
	height: 100%;
}
.ta-group label {
	display: block;
    margin: 0 0 0.35rem 0;
    font-size: 0.85rem;
    color: var(--greyText);
}
.colors-group {
	display: flex;
    flex-direction: column;
    gap: 0.8rem;
	max-width: calc(100% - 4rem);
    margin-right: -1rem;	
}
.color-item {
	display: flex;
    flex-direction: row;
    gap: 1rem;
}
.color-item input[type=text] {
	max-width: fit-content;
}
.color-pick {
	min-width: 2.75rem;
    min-height: 2.75rem;
    border: .05rem solid var(--formBorder);
    border-radius: .5rem;
	cursor: pointer;
} 
.stage-block .radio-group label {
	font-size: 0.8rem;
}
.stage-block .h4 {
	margin-bottom: 1rem;
}
#quizViewport {
  position: relative;
}

.quizStep {
  width: 100%;
}
.error_area {
	position: relative;
	width: 100%;
	height: 0;
}
.question-card .error {
    color: #dd0029;
    font-size: .7rem;
}


.copybtn2 {
    background: #fff;
    border: none;
	cursor: pointer;
	font-family: var(--fontFamily), sans-serif;
	font-size: 0.8rem;
    position: relative;
    font-weight: normal;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;	
	color: var(--greyText);
}

.copybtn2 svg {
	width: 1rem;
	height: auto;
}

.copybtn2:before {
	content: 'Скопировано';
    position: absolute;
    top: -1.25rem;
    left: 50%;
    font-size: 0.7rem;
    color: #fff;
    background: var(--borderGrey);
    padding: 0rem 0.35rem 0.2rem 0.35rem;
    border-radius: 0.35rem;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
}
.copybtn2.process:before {
	visibility: visible;
	opacity: 1;
}
.copybtn2.v2 {
	display: inline-block;
    font-size: 1rem;
    text-decoration: underline;
}
.copybtn2.v2 svg {
	width: 1.2rem;
    height: auto;
    margin-bottom: -0.1rem;
}
.fastlink {
	width: 100%;
    display: flex;
    justify-content: right;
    font-size: 0.8rem;
    position: relative;
    bottom: -3rem;
    right: -2rem;
	gap: 0.25rem;
}

.stages-form .checkbox label:before {
	top: 0;
}
.stages-form .checkbox label:after {
	top: -0.1rem;
}

/* end quiz */

.mt0 {
	margin-top: 0;
}

.color-block {
    border-radius: 1rem;
    padding: 5rem;
    width: 100%;
    background-color: var(--serviceBg);
    max-width: 100%;
}
.difficulty_desc {
	padding-bottom: 3rem;
}
.difficulty_desc ul {
	padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.75rem;
    position: relative;
}
.difficulty_desc ul li {
	transition: 0.2s;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0.6rem;
}
.difficulty_desc ul li.active {
	opacity: 1;
	visibility: visible;
}
.quiz-headers .h2 {
	margin-bottom: 0.75rem;
}
.quiz-headers .h3 {
	margin-bottom: 2rem;
}

.stage_8_wrap {
	display: flex;
}

.stage_8_wrap .description {
	max-width: calc(100% - 16rem);
    width: 100%;
}

.stage_8_wrap .superhero {
	width: 16rem;
}
.stage_8_wrap .superhero .img img {
	width: 100%;
    height: auto;
}
/* Плавнее и медленнее */
.stage_8_wrap .superhero .img{
  display: inline-block;
  margin-top: -5rem;
  transform-origin: 50% 70%;
  will-change: transform;
  animation: superhero-float 5.5s cubic-bezier(.45,0,.55,1) infinite;
}

@keyframes superhero-float{
  0%   { transform: translateY(0) rotate(-0.6deg); }
  50%  { transform: translateY(-1.5rem) rotate(0.6deg); }
  100% { transform: translateY(0) rotate(-0.6deg); }
}

@media (prefers-reduced-motion: reduce){
  .stage_8_wrap .superhero .img{ animation: none; }
}