#imageContainer {
	background-image: url('step1.webp');
	background-repeat: no-repeat;
	background-size: cover;
}

#imageContainer2 {
	background-image: url('../images/Q2.webp');
	background-repeat: no-repeat;
	background-size: cover;
}

#imageContainer3 {
	background-image: url('../images/Q3.png');
	background-repeat: no-repeat;
	background-size: cover;
}




/*Поправка для textarea*/

.hiddendiv{
visibility:hidden;
white-space:pre-wrap;
word-wrap:break-word;
overflow-wrap:break-word;
padding-top:1.2rem;
position:absolute;
top:0;
z-index:-1
}
/*Поправка для textarea*/


/*Для блока информации*/
		#step2 {
			position: relative;
		}
		
		.info-icon {
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
            background-color: #fff;
            padding: 5px;
            border-radius: 50%;
            border: 1px solid #ccc;
            text-align: center;
            width: 20px;
            height: 20px;
            line-height: 20px;
        }

        .info-content {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(240, 240, 240, 1);
            z-index: 10;
            padding: 20px;
			border-radius: 10px;
            box-sizing: border-box;
        }

        .info-content.active {
            display: block;
        }
		
		
		
		
		
		
		 .page {
            display: none;
        }

        .page.active {
            display: block;
        }

        .pagination {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
        }

        .pagination button {
            margin: 0 5px;
            cursor: pointer;
        }
/*Для блока информации*/		
/*Подсказки*/
        .tooltip {
            position: relative;
            display: inline-block;
            cursor: pointer;
        }

        .tooltip .info-circle {
            display: inline-block;
            width: 20px;
            height: 20px;
            background-color: #444; /* Цвет фона */
            color: white; /* Цвет текста */
            text-align: center;
            line-height: 20px;
            border-radius: 50%; /* Делает элемент круглым */
            font-weight: bold;
            font-size: 14px;
            font-family: Times New Roman, sans-serif;
			font-style: italic;
        }

        .tooltip .tooltiptext {
            visibility: hidden;
            width: 350px;
            background-color: black;
            color: #fff;
            text-align: left;
            border-radius: 5px;
            padding: 10px;
            position: absolute;
            z-index: 1;
            
            left: 50%;
            margin-top: 20px;
            opacity: 0;
            transition: opacity 0.3s;
            white-space: normal;
            overflow-y: auto;
            max-height: 150px;
        }

        .tooltip:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
        }

/*Подсказки*/



/*Поля настройки*/
input[type="radio"] {
    background-color: initial;
    cursor: default;
    appearance: auto;
    box-sizing: border-box;
    margin: 3px 3px 0px 5px;
    padding: initial;
    border: initial;
}


input[type="number"] {
    border: 1px solid #3D6475;
    border-radius: 5px;
    height: 4vh;
    text-align: center;
	width: 10vh;
}

input[type="text"] {
    border: 1px solid #3D6475;
    border-radius: 5px;
    height: 4vh;
    text-align: center;
}

.input-field.col.s2,
.input-field.col.s4,
.input-field.col.s5,
.input-field.col.s6,
.col.s2,
.col.s3,
.col.s12 {
	padding-bottom: 5px;

}

.collection {
	list-style: none;
	margin-left: -30px;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
i {
    line-height: inherit;
}
.material-icons {
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: 'liga';
    -moz-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
}


.materialize-textarea.validate {
	height: 150px;
	width: 80%;
}

/*Поля настройки*/



/*Для скрипта*/

#divrezult {
	overflow: auto;
	
	height: 500px;
}

#palette {
	float: left;
}

.palette .color {
    float: left;
    width: 40px;
    height: 40px;
    border: 1px solid #AAA;
    border-radius: 5px;
    text-align: center;
    padding: 5px;
    font-weight: 600;
    margin: 5px;
    text-shadow: #FFF 1px 1px 1px;
}

.status {
    background-color: white;

    overflow: hidden;
}


progress{
display:inline-block;
vertical-align:baseline
}

.progress{
position:relative;
height:6px;
display:block;
width:100%;
background-color:#acece6;
border-radius:50px;
margin:.3rem 0 1rem 0;
overflow:hidden
}

.progress .determinate{
position:absolute;
top:0;
left:0;
bottom:0;
background-color:#26a69a;
-webkit-transition:width .3s linear;
transition:width .3s linear
}

.progress .indeterminate{
background-color:#26a69a
}

.progress .indeterminate:before{
content:'';
position:absolute;
background-color:inherit;
top:0;
left:0;
bottom:0;
will-change:left, right;
-webkit-animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite
}

.progress .indeterminate:after{
content:'';
position:absolute;
background-color:inherit;
top:0;
left:0;
bottom:0;
will-change:left, right;
-webkit-animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
-webkit-animation-delay:1.15s;
animation-delay:1.15s
}




/*Для скрипта*/




.radio-img-container {
  display: flex;
  width: 100%; /* Контейнер теперь будет занимать всю ширину родительского элемента */
  
  align-items: center; /* Центрируем изображения по вертикали */
  justify-content: center;
  max-width: 500px; /* Максимальная ширина контейнера */
  overflow: hidden; /* Предотвращаем выход содержимого за пределы контейнера */
}

.radio-img {
  cursor: pointer;
  transition: 0.3s;
  max-width: calc(50% - 5px); /* Примерно половина контейнера минус небольшой отступ */
  height: auto; /* Высота изменяется пропорционально ширине */
  object-fit: contain; /* Сохраняем пропорции изображения */
  max-height: 100px;
      margin: 0 auto;
}


.link {
    color: #3D6475;
    text-decoration: none;
    border-bottom: 1px dotted #3D6475;
}

.link:hover {
    border-bottom: 1px solid #3D6475;
}

.input-box {
	width: 100%;

	
}
#form{
	padding: 10px;
}

#progressBar {
    transition: width 0.1s ease-out;
}

/*-------------------------------------------------*/

.input-box {
  height: 50px;
  width: 100%;
  margin-bottom: 30px;
}
input[type="text"] {
  width: 10vh;
}

.input-box input[type="text"],
.input-box textarea {
  height: 100%;
  width: 100%;
  border: 1px solid #3D6475;
  border-radius: 5px;
  background: #f0f1f8;

  margin-bottom: 2px;
}

.input-box label {
  font-size: 14px;
  color: #afafb6;
  padding-left: 5px;
}

.input-box textarea {
  resize: none;

  font-family: "Roboto", sans-serif;
}

.message-box {
  min-height: 110px;
}


 .btn {
    display: block;
    width: 90%;
    height: 25px;
    background: #3d6475a3;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    line-height: 25px;
	margin-top: 10px;
        }
.btn:hover {
	background: #3d6475;
}


.button input[type="submit"] {
  color: #fff;
  font-size: 18px;

  outline: none;
  border: none;
  padding: 10px 20px;
  border-radius: 7px;
  transition: 0.2s;
  font-weight: 500;
}



.file-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 30px;
}

.file__field {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
/*
#file {
  display: none;
}
*/
.file__btn {
  display: inline-block;
  color: #fff;
  font-size: 15px;

  outline: none;
  border: none;
  padding: 10px 20px;
  border-radius: 7px;
  transition: 0.2s;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.file__btn:hover {
  background-color: #3D6475;
}

.file__info {
  display: flex;
  align-items: center;
  padding: 0 10px;
  margin-left: 10px;
}

.file__name {
  margin-bottom: 4px;
  color: #888;
  font-size: 14px;
  word-spacing: 1px;
  user-select: none;
}

.file__btn-close {
  background: none;
  outline: none;
  border: none;
  font-size: 20px;
  color: red;
  margin-left: 5px;
  cursor: pointer;
  padding: 3px;
  font-weight: bold;
}

.file__hint {
  color: #516d7b;
  font-size: 14px;
}

/*-------------------------------------------------*/



#btn_send,
#file_btn {
    color: #252525;
    font-size: 17px;
    width: 100%;
	border: 1px solid #3D6475;
    border-radius: 5px;
	background: #64859391;
}

#file_btn:hover, 
#btn_send:hover {
	color: #fff;
	background-color: #3D6475;
	border: 1px solid #333;
}




#main {
	width: 500px;
}

body {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	background-image: url('../images/fon.webp');
	background-repeat: no-repeat;
	background-attachment:fixed;
	background-size: cover;
	color: #4d4d4d;
}

button {
    color: #252525;
    font-size: 17px;
    
	border: 1px solid #3D6475;
    border-radius: 5px;
    height: 5vh;
}

button:hover {
	color: #fff;
	background-color: #3D6475;
	border: 1px solid #333;
}

.nav2 img {
	max-width: 100px;
}
.nav2 {
	z-index: 199;
	background: white;
	box-shadow: rgb(101, 101, 101) 0px 0px 19px 1px;
	height: auto;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content:space-between;
	padding: 0 4vw ;
}
.nav2 ul li {
	list-style-type: none;
	color: rgb(35, 35, 35);
}
.nav2 ul {
	display: flex;
	gap: 4vw;
	padding-inline-start: 0;
}
.nav2 a {
	text-decoration: none;
	color: rgb(35, 35, 35);
	font-size: 19px;
}
.nav2 a:hover {
	color: #3D6475;	
	transition: all .1s;
	border-bottom: 2px solid #3D6475;
	
}

#imageContainerID {
	width: 100%;
	border: 1px solid #3D6475;
	border-radius: 5px;
	font-size: 20px;
	color: #fff;
	background-color: #3D6475;
	text-align: center;

}


#imageContainerResult {
	margin-top: 10px;
	width: 500px;
	
	overflow: hidden;
	
	position: relative;
}


#step1 {
	margin-top: 10vh;
}

#step1, #step2 {
	height: 100%;
	max-width: 500px;
	
}
#imageContainer, 
#imageContainer2{
	width: 1000px; /* Исходный размер контейнера */
    height: 1000px; /* Исходный размер контейнера */
    overflow: hidden;
    transform: scale(0.5); /* Масштабируем контейнер до 50% */
    transform-origin: top left; /* Устанавливаем точку начала масштабирования */
	position: relative;
	
}

#step3 {
	margin-bottom: 70px;
}

.imageContainerScal {
	max-width: 500px;
	margin-top: 10px;
	border: 1px solid #000;
}

#scaleSelect {
	border: 1px solid #3D6475;
	border-radius: 5px;
	height: 6vh;
	text-align: center;
	margin: 10px;
}


#imageContainer2 {
	position: absolute !important;
	left: -9999px !important;
}

#imageContainer3 {
	margin-top: 10px;
	width: 500px;
	height: 500px;
	overflow: hidden;
	border-radius: 50%;
	position: relative;
	border: 1px solid #000;
	
}
#imageContainerSettings {

	width: 500px;
	overflow: hidden;	
	position: relative;

	
}

/* Применить стиль к элементам с data-value="0" */
#imageContainer[data-value="0"],
#imageContainer2[data-value="0"],
#imageContainer3[data-value="0"] {
  border-radius: 50%;
}

/* Применить стиль к элементам с data-value="1" */
#imageContainer[data-value="1"],
#imageContainer2[data-value="1"],
#imageContainer3[data-value="1"] {
  border-radius: 0;
}

/* Применить стиль к элементам с data-value="2" */
#imageContainer[data-value="2"],
#imageContainer2[data-value="2"],
#imageContainer3[data-value="2"] {
  border-radius: 0;
  height: 1414px;
}
/* Применить стиль к элементам с data-value="2" */
.imageContainerScal[data-value="1"] {
  max-height: 500px;
}
.imageContainerScal[data-value="2"] {
  max-height: 707px;
}






#imageContainer4 {
	margin-top: 10px;
	width: 500px;
	height: auto;
	overflow: hidden;

	position: relative;

	
}
#stringsSlider,
#nailsSlider {
	border: 1px solid #3D6475;
    border-radius: 5px;
	height: 4vh;
	text-align: center;
}

#mailform {
	border: 1px solid #3D6475;
    border-radius: 5px;
	height: 4vh;
	
}

#imageContainer img {
	max-width: 100%;
	max-height: 100%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#myCanvas {
  width: 100%;
  height: auto;

}




#upload {
	display: none;
}

@media (max-width: 600px) {

  #imageContainer2,
  #imageContainer3,
  #imageContainerResult,
  #imageContainerSettings,
  #imageContainer4 {
    width: 100%;
  }
  #main {
	  display: flex;
  
  }
}


.nav {
	display: none;
}

#main {
	margin-top: 10px;
	gap: 15px;
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: center;
}
#step1, #step2, #step3, #step4, #step5 {
	background: #fff;
	border: solid 1px #3D6475;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10px;
}

#step4, #step5 {
	margin-bottom: 5vh;
}

#step5 {
	margin-top: 10vh;
}

@media (max-width: 819px) {
	#step1, #step2, #step3, #step4, #step5 {
		width: auto
		
	}

}
#imageContainerResult, #imageContainerSettings {
		width: 500px;
		height: auto;
		margin-left: auto;
		margin-right: auto;
}

	#imageContainer4 {
		width: 500px;
		height: auto;
		margin-left: auto;
		margin-right: auto;
}

}
 
@media (max-width: 819px) {
	#main {
		width: 100%;
	}
} 
@media (max-width: 500px) {
	#step1 {
		margin-top: 0;
	}
	#step5 {
		margin-top: 0;
	}
	#step1, #step2, #step3, #step4, #step5 {
		width: 80vw;
		
	}
	#step4, #step5 {
		margin-bottom: 10vh;
	}

	#imageContainer[data-value="1"],
	#imageContainer2[data-value="1"],
	#imageContainer3[data-value="1"] {
		width: 80vw;
		height: 80vw;
		transform: scale(1);
	}
	#imageContainer[data-value="2"],
	#imageContainer2[data-value="2"],
	#imageContainer3[data-value="2"] {
		width: 80vw;
		height: 113vw;
		transform: scale(1);
	}
	
	#imageContainerResult, #imageContainerSettings {
		width: 80vw;

}
	#imageContainer4 {
		width: 80vw;
		height: auto;
	}
}

@media (max-width: 600px) {
	.nav2 {
		display: none;
	}

	.nav {
		display: flex;
		justify-content: center;
		box-shadow: rgb(101, 101, 101) 0px 0px 19px 1px;
		background: #f9f9f9;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 100;
		padding: 10px;
	}
}

.nav-text {
	display: flex;
	justify-content: space-evenly;
	max-width: 94vw;
	height: auto;
	gap: 5vw;
}
.nav-t-1 a {
	text-decoration: none;
	align-items: center;
	display: flex;
	gap: 2vw;
	flex-direction: column;
	color: #5f5f5f;
	font-size: 12px;
}
/* .nav-t-1 a:hover {
	color:rgb(48, 166, 206);
	transition: all .3s;
} */

.nav-t-1 svg {
	max-width: 20px;
	max-height: 20px;
}

.nav-t-1 svg path {
	fill:#5f5f5f;
}

.none-path svg path  {
	fill: white;
}

.none-path svg g,.none-path path {
	stroke: #5f5f5f ;
}

/* .none-path:hover svg g, .none-path:hover path {
	stroke: rgb(48, 166, 206);
	transition: all .3s;
}

.nav-t-1:hover svg path  {
	fill:rgb(48, 166, 206);
	transition: all .3s;
}

.none-path:hover svg path {
	fill: white;
} */

.nav-t-1 {
	gap: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* Нижнее меню: всегда помещается по ширине */
@media (max-width: 600px) {

  .nav {
    padding: 8px 6px;              /* чуть компактнее */
  }

  .nav-text{
    width: 100%;
    max-width: 100%;
    gap: 0;                        /* ВАЖНО: убираем vw-gap */
    display: flex;
    justify-content: space-between;
    align-items: stretch;
  }

  .nav-t-1{
    flex: 1 1 0;                   /* все пункты равной ширины */
    min-width: 0;                  /* позволяет сжиматься */
  }

  .nav-t-1 a{
    width: 100%;
    padding: 4px 2px;
    gap: 6px;
  }

  .nav-t-1 svg{
    width: 20px;
    height: 20px;
    max-width: none;
    max-height: none;
  }

  .nav-t-1 a span,
  .nav-t-1 a {                      /* если текст прямо в a без span */
    white-space: nowrap;            /* не переносить */
    overflow: hidden;               /* обрезать */
    text-overflow: ellipsis;        /* ... если не влезло */
    font-size: 11px;                /* чуть меньше */
  }
}
/* Нижнее меню: всегда помещается по ширине */