:root {
  --color-primary: #E9C48D;
  --color-secondary: #F8E6CB;
  --color-button: rgba(43, 42, 40, 1);
}

.header { max-width: 1256px; min-width: 1000px; height: 124px; margin: 50px auto 0; background-color: var(--color-primary); border-radius: 15px; display: grid; grid-template-columns: auto auto auto; align-items: center; justify-content: center; display: flex; gap: 30%; width: 80%; }
.header-mobile { display: none; }
.logo-mobile { display: none; }
.language { cursor: pointer; }
a.language { text-decoration: none; font-family: "Montserrat"; font-size: 18px; font-weight: 400; color: black; height: 50px; width: 50px; }
a.language img { width: 100%; height: auto; }
.faq a { text-decoration: none; font-family: "Montserrat"; font-size: 18px; font-weight: 500; color: black; display: flex; align-items: center; gap: 5px; width: 50px; height: 50px; }
.faq a img { width: 100%; height: auto; }

a { cursor: pointer; }

article { max-width: 1256px; min-width: 1000px; margin: 0 auto;}

/* .swiper-carousel { overflow: visible !important; } */
.swiper-button-prev, .swiper-button-next { color: #2b2b2b !important; }

.mask{
  position: fixed;
  background: #000000;
  opacity: 0.7;
  width: 100%;
  height: 300%;
  margin-top: -50%;
  z-index: 10;  
}
.mask-block-show{
  position: fixed;
  width: 60%;
  margin-top: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  background: #ffffff;
  opacity: 1;
  padding: 15px;
  text-align: center;
  left: 50%; 
  z-index: 777;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.loading img {
  max-width: 100%;
 }
 .loading p {
  /* outline: 1px solid black; */
  text-align: center;
  font-size: 24px;
  color: #f1ce98;
  font-weight: 800;
  font-family: "Montserrat";
  position: absolute;
  bottom: -75px;
  height: 100px;
}

.loading{
  margin-top: -100px;
  margin-left: -100px;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 999999;
}
.none{
  display: none !important;
}
.hidden{
  visibility: hidden !important;
  position: absolute; 
  top: -9999px; 
  left: -9999px;
}

.foto_wrapper { 
	width: 100%;
	display: grid;
	grid-template-columns: 1fr repeat(3, auto) 1fr;
	grid-template-rows: auto auto;
	align-items: end;
	justify-content: center;
	justify-items: center;
	background-image: url("../images/wrapper_background.2acecc9d7cfa.svg");
	background-repeat: no-repeat;
	background-position: center;
	margin-top: 50px;
}

#foto_wrapper img{
  image-rendering: pixelated;
}
.foto_1 { grid-row: 1; grid-column: 2; margin-right: -55px; max-width: 308px; min-width: 220px; height: auto; overflow: hidden;}
.foto_1 img {width: 100%; height: auto;}
.foto_1_mirror { grid-row: 2; grid-column: 2; margin-top: -4px; align-self: start;}
.foto_1_mirror img { width: 100%; height: auto; }
.foto_2 { grid-row: 1; grid-column: 3; z-index: 10; max-width: 403px; min-width: 350px; height: auto; overflow: hidden;}
.foto_2 img {width: 100%; height: auto;}
.foto_2_mirror { grid-row: 2; grid-column: 3; margin-top: -4px;}
.foto_3 { grid-row: 1; grid-column: 4; margin-left: -55px; max-width: 308px; min-width: 220px; height: auto; overflow: hidden;}
.foto_3 img {width: 100%; height: auto;}
.foto_3_mirror { grid-row: 2; grid-column: 4; margin-top: -4px; align-self: start;}
.foto_3_mirror img { width: 100%; height: auto; }

.left_button { grid-row: 1; grid-column: 1; width: 60px; height: 60px; background-color: rgba(217, 217, 217, 1); border-radius: 30px; display: flex; align-items: center; justify-content: center; margin-bottom: 115px;}
.left_button img { height: 30px; margin-right: 4px; }
.right_button { grid-row: 1; grid-column: 5; width: 60px; height: 60px; background-color: rgba(217, 217, 217, 1); border-radius: 30px; display: flex; align-items: center; justify-content: center; margin-bottom: 115px;}
.right_button img { height: 30px; margin-left: 4px; }

.title { font-size: 1.5rem; font-weight: 500; font-family: "Inter"; margin: 15px auto 0; text-align: center;}
.discription { font-size: 24px; font-weight: 500; font-family: "Montserrat"; margin: 5px auto 0; text-align: center;}

.button { width: 278px; margin: 50px auto; height: 60px; background-color: rgba(43, 42, 40, 1); border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.button p { font-size: 20px; font-weight: 500; font-family: "Montserrat"; color: white; }
.button,
button,
.select_box,
.left_button,
.right_button,
.page,
.color-panel-button,
.photo-load-button,
.option-button,
.demo-choice,
.generation-thumb,
.page-nav-jump {
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}
.button:not([aria-disabled="true"]):hover,
button:not(:disabled):hover,
.select_box:not([aria-disabled="true"]):hover,
.left_button:hover,
.right_button:hover,
.page:hover,
.color-panel-button:hover,
.photo-load-button:not([aria-disabled="true"]):hover,
.option-button:not(:disabled):hover,
.demo-choice:not(:disabled):hover,
.generation-thumb:not(:disabled):hover,
.page-nav-jump:not(:disabled):hover {
	transform: translateY(-2px);
}
.button:not([aria-disabled="true"]):hover,
button.button:not(:disabled):hover {
	background-color: #3a3835;
}
.button:active,
button:active,
.select_box:active,
.left_button:active,
.right_button:active,
.page:active,
.color-panel-button:active,
.photo-load-button:active,
.option-button:active,
.demo-choice:active,
.generation-thumb:active,
.page-nav-jump:active {
	transform: translateY(0);
}

.footer { max-width: 1256px; min-width: 1000px; display: grid; grid-template-columns: auto auto; align-items: center; justify-content: space-between; margin: 50px auto;}
.contact { grid-column: 1; font-size: 16px; font-weight: 700; font-family: "Inter"; }
.year { grid-column: 2; font-size: 16px; font-weight: 700; font-family: "Inter"; }
.num_one { position: fixed; bottom: 0 ; right: 90px; width: 102px; height: 136px; background-color: var(--color-primary); }
.num_one p { font-size: 45px; font-weight: 700; font-family: "Inter"; text-align: center; margin-top: 30px;}

.orange_back { width: 100%; margin: 2em auto; }

.notice { text-align: center; font-size: 14px; font-weight: 500; font-family: "Montserrat"; margin-top: 10px;}

@media screen and (width < 1600px){ 
	.num_one { display: none; } 
}

.switch_title { display: none;}
.switch { display: none;}


.options { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; justify-items: center; align-items: center; width: 330px; margin: 0; user-select: none; }
.options .zoom_button { grid-column: 1; margin: 5px; width: 70px; height: 70px; border: 1px dashed #B59A70; border-radius: 35px;}
.options .anti_zoom_button { grid-column: 2; margin: 5px; width: 70px; height: 70px; border: 1px dashed #B59A70; border-radius: 35px;}
.options .left_button { grid-column: 3; margin: 5px; width: 70px; height: 70px; border: 1px dashed #B59A70; border-radius: 35px; background-color: white;}
.options .right_button { grid-column: 4; margin: 5px; width: 70px; height: 70px; border: 1px dashed #B59A70; border-radius: 35px; background-color: white;}



/*Страница индекс*/

.index .button { width: 403px; height: 60px; }
.index .button p { font-size: 26px; font-weight: 600; }
.index .orange_back { margin-top: -25px; height: auto; }
.mobile_title { display: none; padding-top: 20px; }
.mobile_discription { display: none; }
.index .foto_wrapper { margin-top: 0px; }
.index .orange_back_3 { display: none; }



/*Главная*/

.main_page { width: min(903px, 94%); min-width: 0; }
.main_page .orange_back,
.main_page .title,
.main_page .select_boxes { width: 100%; box-sizing: border-box; }
.main_page .orange_back { background-color: white; height: unset; border: unset; margin-left: auto; margin-right: auto; }
.main_page .swiper-carousel { max-width: 100%; margin-left: auto; margin-right: auto; }
.main_page .main-page-title { margin-top: 28px; }
.main_page .main-page-title h1 { margin: 0; font-family: "Inter"; font-size: 30px; font-weight: 800; }
.main_page .main-page-title p { margin: 10px auto 0; font-family: "Montserrat"; font-size: 18px; font-weight: 500; color: #6C6C6C; }
.about_position { width: 903px; display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; margin: 40px auto 0; justify-content: space-between;}

.about { display: flex; flex-direction: column; width: 278px; height: 237px; background-color: var(--color-primary); border-radius: 15px; }
.about .icon { flex: 1; height: 80px; width: 80px; margin-left: 20px; margin-top: 15px; }
.about .block_title { font-size: 20px; font-weight: 800; font-family: "Montserrat"; margin-left: 25px; margin-top: 25px;}
.about .notice { flex: 9; font-size: 14px; font-weight: 500; font-family: "Montserrat"; margin-left: 25px; margin-top: 35px; margin-right: 20px; text-align: left;}
.about_position .button { margin: 20px auto; text-align: center; }
.main_page .mobile_button { display: none; }



/*Страницы загрузки картинки*/

.upload_page .orange_back { background-color: white; border: unset; }
.upload { width: 600px; height: 200px; background-color: var(--color-secondary); border-radius: 15px; margin: 40px auto 0; display: flex; align-items: center; justify-content: center; border: 5px solid var(--color-primary); }
.upload_inner_border { display: flex; align-items: center; justify-content: center;}
.upload_inner_border .block_title { font-size: 20px; font-weight: 800; font-family: "Montserrat"; color: black;}
#mobile_icon { display:none; }
.upload_page .buttons {display: none;}
.upload_page .active{
	border: 2px solid;
}
.upload_page_demo .orange_back { height: unset; margin-top: 5em; }


/*Страницы демо*/

.demo_page .result-container .buttons { display: flex; width: 70%; margin: 0 auto; gap: 1.3em; flex-direction: row; flex-wrap: wrap; }
.demo_page .result-container .buttons .button { margin: 0; }
.demo_page .result-container .buttons .button-not-selected { background-color: unset; outline: 0.15em solid #2b2b2b; }
.demo_page .result-container .buttons .button-not-selected p { color: #2b2b2b; }
.demo_page .result-container .carousel-container-container { display: flex; width: 100%; max-width: 674px; margin: 0 auto; gap: 1em; position: relative; }
/* DO NOT EVER MAKE THIS SWIPER DIV display flex/grid! */
.demo_page .result-container .carousel-container { width: 474px; margin: 0 auto; gap: 1em; margin: 3em auto; }

.demo_page .orange_back .image { display: none; }

.demo_page .title { margin-top: 0; font-size: 1.65rem; font-weight: 600; }

.demo_page .buttons { display: flex; width: 50%; margin: 0 auto; gap: 1em; margin-top: 1em; }
.demo_page .discription { width: 50%; }
.demo_page > .buttons .button:first-child { background-color: #616161; }

.demo_page .background { background-image: url("../images/demo_wrapper_background.ff3a7454bc8b.svg"); background-size: 100%; background-position: top 10px center; width: 100%; background-repeat: no-repeat; padding-top: 10px; margin-top: 20px;}

.demo_page .foto_wrapper { background-image: none; width: 97%; margin: 50px auto 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: 20px;}

.demo_page .foto_1 { grid-column: 1; max-width: 500px; min-width: 0; width: 100%; height: auto; margin: 0;}
.demo_page .foto_1 img {width: 100%; height: auto;}

.demo_page .foto_1_mirror { grid-column: 1; width: 100%; }
.demo_page .foto_1_mirror img { width: 100%; height: auto; }

.demo_page .foto_2 { grid-column: 2; max-width: 500px; min-width: 0; width: 100%; height: auto; margin: 0;}
.demo_page .foto_2 img {width: 100%; height: auto;}

.demo_page .foto_2_mirror { grid-column: 2; width: 100%; height: auto;}
.demo_page .foto_2_mirror img { width: 100%; height: auto; }

.demo_page .foto_3 { grid-column: 3; max-width: 500px; min-width: 0; width: 100%;  height: auto; margin: 0;}
.demo_page .foto_3 img {width: 100%; height: auto;}

.demo_page .foto_3_mirror { grid-column: 3; width: 100%;}
.demo_page .foto_3_mirror img { width: 100%; height: auto; }

.demo_page .span { font-size: 25px; font-weight: 600; font-family: "Montserrat"; align-self: start; margin-top: 5px;}
.demo_page .active_span { font-size: 25px; font-weight: 600; font-family: "Montserrat"; align-self: start; margin-top: 5px;}
.demo_page #neon { grid-row: 3; grid-column: 1; margin-right: 20px; }
.demo_page #retro { grid-row: 3; grid-column: 2; font-size: 32px; }
.demo_page #classic { grid-row: 3; grid-column: 3; margin-left: 20px; }

.demo_page #visible {display: none;}

.demo-studio { width: min(1180px, 94%); margin: 42px auto 0; }
.demo-studio .button { margin: 0; border: 0; cursor: pointer; text-decoration: none; }
.demo-studio button.button { padding: 0; }
.demo-work-heading h2,
.demo-failed-box h2 { font-family: "Montserrat"; font-weight: 600; letter-spacing: 0; margin: 0; color: var(--color-button); }
.demo-work-heading h2,
.demo-failed-box h2 { font-size: 24px; line-height: 1.15; }
.demo-studio-kicker { margin: 0 0 6px; font-family: "Inter"; font-size: 13px; font-weight: 700; text-transform: uppercase; color: #6C6C6C; }
.demo-studio-shell { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.demo-studio-control,
.demo-work-panel { background: var(--color-secondary); border: 0; border-radius: 15px; box-sizing: border-box; }
.demo-studio-control { width: min(430px, 100%); padding: 0; background: transparent; border-radius: 0; box-sizing: border-box; }
.demo-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 auto 12px; padding: 14px; background: var(--color-primary); border-radius: 15px; box-sizing: border-box; }
.demo-progress-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.demo-progress-crop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-progress-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #6C6C6C; }
.demo-progress-step:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 14px); width: calc(100% - 22px); height: 2px; background: var(--color-button); transform: translateY(-50%); pointer-events: none; }
.demo-progress-step span { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.55); color: var(--color-button); font-family: "Inter"; font-weight: 800; font-size: 13px; }
.demo-progress-step p { margin: 0; font-family: "Inter"; font-size: 11px; font-weight: 700; }
.demo-progress-step.is-active span { background: var(--color-button); color: white; }
.demo-progress-step.is-complete span { background: var(--color-button); color: white; }
.demo-progress-step.is-active p { color: var(--color-button); }
.demo-panel { padding: 14px; background: var(--color-secondary); border: 0; border-radius: 15px; box-sizing: border-box; }
.demo-panel + .demo-panel { margin-top: 12px; }
.demo-panel-heading { margin-bottom: 12px; }
.demo-panel-title { display: block; margin: 0; font-family: "Montserrat"; font-weight: 800; font-size: 19px; color: var(--color-button); }
.demo-panel-note { display: block; margin: 5px 0 0; font-family: "Montserrat"; font-size: 13px; line-height: 1.35; color: #6C6C6C; }
.demo-upload-zone { min-height: 190px; border: 2px dashed #B59A70; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; cursor: pointer; background: rgba(255, 255, 255, 0.42); transition: background-color 160ms ease; }
.demo-upload-zone:hover { background: rgba(255, 255, 255, 0.68); }
.demo-upload-icon { width: 66px; height: 66px; border-radius: 0; display: flex; align-items: center; justify-content: center; background: transparent; }
.demo-upload-icon img { width: 34px; height: auto; margin: 0 !important; }
.demo-panel-actions { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.demo-panel-actions .button,
.demo-work-actions .button { width: 100%; }
.demo-muted-button { background-color: #616161; }
.demo-choice-grid { display: grid; gap: 10px; }
.demo-size-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-square-size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-choice { min-height: 54px; border: 2px dashed #B59A70; border-radius: 15px; background: rgba(255, 255, 255, 0.42); color: var(--color-button); cursor: pointer; font-family: "Montserrat"; font-weight: 700; font-size: 15px; padding: 8px; box-sizing: border-box; transition: background-color 160ms ease, color 160ms ease; }
.demo-choice:hover,
.demo-choice.is-preferred { background: var(--color-button); border-style: solid; border-color: var(--color-button); color: white; }
.demo-palette-choice { min-height: 48px; font-size: 13px; line-height: 1.2; }
.demo-studio-workspace { display: flex; justify-content: center; width: 100%; min-width: 0; }
.demo-work-panel { width: min(760px, 100%); padding: 22px; min-height: 610px; }
.demo-work-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.demo-tool-strip { display: flex; gap: 8px; margin: 0; width: auto; grid-template-columns: none; }
.demo-tool-strip .option-button { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border: 1px dashed #B59A70; border-radius: 50%; background: white; cursor: pointer; }
.demo-tool-strip .option-button i { font-size: 24px; color: var(--color-button); }
.demo-crop-area { width: min(620px, 100%); height: 430px; margin: 0 auto; background: rgba(255, 255, 255, 0.55); border-radius: 15px; overflow: hidden; }
.demo-crop-area img { display: block; max-width: 100%; }
.demo-orientation-control { display: flex; width: min(420px, 100%); margin: 14px auto 0; gap: 10px; grid-template-columns: none; }
.demo-orientation-control .button { flex: 1; width: auto; }
.demo-orientation-control .option-button-filled { background: transparent; border: 0; outline: 0.15em solid var(--color-button); }
.demo-orientation-control .option-button-filled p { color: var(--color-button); }
.demo-orientation-control .option-button-filled-selected { background: var(--color-button); }
.demo-orientation-control .option-button-filled-selected p { color: white; }
.demo-work-actions { display: flex; gap: 12px; width: min(520px, 100%); margin: 18px auto 0; }
.demo-studio .demo_page .orange_back { background: transparent; border: 0; width: 100%; max-width: none; margin: 0; display: block; }
.demo-studio .demo_page .result-container .carousel-container-container { margin: 0 auto; align-items: center; }
.demo-studio .demo_page .swiper-button-next,
.demo-studio .demo_page .swiper-button-prev { appearance: none; border: 0; background: transparent; padding: 0; margin: 0; }
.demo-studio .demo_page .result-container .carousel-container { margin: 18px auto; width: min(474px, 100%); }
.demo-studio .demo_page .result-container .buttons { width: min(620px, 100%); justify-content: center; }
.demo-studio .demo_page .discription { width: min(520px, 100%); margin: 8px auto 0; text-align: center; }
.demo-studio .demo_page .discription p { margin: 0; }
.demo-failed-box { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.demo-failed-box i { color: #b64646; font-size: 52px; }
.demo-failed-box p { margin: 0 0 10px; font-family: "Inter"; color: #6f665d; }
.demo-failed-box .button { width: 260px; }
.crop-studio .crop-upload-actions .photo-load-button { flex: 1; text-decoration: none; }
.crop-studio .crop-upload-actions .photo-load-button .button { width: 100%; }
.crop-studio .framing_page .demo-orientation-control { display: flex; width: min(420px, 100%); margin: 14px auto 0; gap: 10px; }
.crop-studio .framing_page .demo-work-actions { display: flex; gap: 12px; width: min(520px, 100%); margin: 18px auto 0; }
.crop-studio .framing_page .demo-work-actions .button { width: 100%; margin: 0; }
.crop-studio .result_page.demo-work-panel { width: min(760px, 100%); min-height: 610px; }
.crop-result-preview { width: min(430px, 100%); margin: 0 auto; border-radius: 15px; background: rgba(255, 255, 255, 0.55); overflow: hidden; }
.crop-result-preview img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.crop-studio .crop-result-thumbs { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 12px; width: min(620px, 100%); margin: 16px auto 0; user-select: none; }
.crop-result-thumbs .swiper { width: 100%; min-width: 0; margin: 0; overflow: hidden; }
.crop-result-thumbs .swiper-wrapper { align-items: center; }
.crop-studio .crop-result-thumbs .swiper-button-prev,
.crop-studio .crop-result-thumbs .swiper-button-next { position: static; appearance: none; width: 52px; height: 52px; margin: 0; border: 0; border-radius: 50%; background: var(--color-button); color: white !important; display: flex; align-items: center; justify-content: center; }
.crop-studio .crop-result-thumbs .swiper-button-prev::after,
.crop-studio .crop-result-thumbs .swiper-button-next::after { font-size: 18px; font-weight: 800; color: white; }
.crop-result-thumbs .result-pixel-img { display: flex; align-items: center; justify-content: center; cursor: pointer; height: 128px; }
.crop-result-thumbs .result-pixel-img img { display: block; width: auto; max-width: 128px; max-height: 118px; height: auto; image-rendering: pixelated; border-radius: 8px; box-sizing: border-box; }
.crop-studio .result-img-active { outline: 5px solid var(--color-primary); outline-offset: -5px; }
.crop-studio .result_page .crop-result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(520px, 100%); }
.crop-studio .result_page .crop-result-actions #crop-submit { grid-column: 1 / -1; }


/*Страница ошибки 404*/

.error { margin: 40px auto 0; width: 70%; display: block;}
.error_page .discription { width: 910px; margin-top: 15px;}
.error_page .button { width: 403px; }



/*Страницы итога*/

.itog_page { width: min(1100px, 94%); min-width: 0; margin-top: 36px; }
.itog_page .itog-layout { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 34px; align-items: center; }
.itog_page .itog-preview { padding: 16px; background: rgba(241, 206, 152, 0.25); border-radius: 15px; box-sizing: border-box; }
.itog_page .itog-preview img { display: block; width: 100%; height: auto; image-rendering: pixelated; border-radius: 8px; }
.itog_page .itog-content { min-width: 0; }
.itog_page .title { display: block; margin: 0; font-size: 1.6rem; font-weight: 600; text-align: left; }
.itog_page .title p { margin: 0; }
.itog_page .discription { width: 100%; margin: 14px 0 0; text-align: left; }
.itog_page .discription p { margin: 0; }
.itog_page .buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin: 24px 0 0; gap: 12px; }
.itog_page .buttons .button { width: 100%; margin: 0; }
.itog_page .buttons .button:nth-child(3) { grid-column: 1 / -1; }
.itog_page .itog-muted-button { background-color: #616161; }
.itog_page .buttons #pdf_generate {background-color: #616161; cursor: default; }
.itog_page .notice { margin: 14px 0 0; font-size: 14px; text-align: left; }
.loading-pdf{ display: inline-block; width: 24px; position: relative; margin-top: -10px; top: 5px; margin-left: 10px; }
.itog_page #pdf { animation: glow 2s ease-in infinite; animation-direction: alternate; }
.itog_page #pdf p { font-weight: 700; }
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(241, 206, 152, 0.5);
  }
  50% {
    box-shadow: 0 0 15px 12px var(--color-primary);
  }
  100% {
    box-shadow: 0 0 5px rgba(241, 206, 152, 0.5);
  }
}
.itog_page .buttons .button img { width: 34px; margin-right: 8px; }





/*Страницы с кодом*/
.code_page .orange_back { background-color: white; }
.code_page .orange_back_form { width: 903px; height: 210px; margin: 50px auto 0; background-color: var(--color-primary); border-radius: 15px;}
.code_page .orange_back_form .block_title { font-size: 24px; font-weight: 600; font-family: "Montserrat"; margin-left: 20px; margin-top: 25px; display: inline-block;}

.code_page .orange_back_form .form { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; width: 100%; margin: 30px auto; justify-content: space-around;}
.code_page .orange_back_form .form input { width: 403px; height: 60px; background-color: var(--color-primary); border-radius: 15px; border: 3px solid #616161; font-size:24px; font-weight: 500; font-family: "Montserrat"; text-align: center; color: #616161;}
.code_page .orange_back_form .form input::placeholder { font-size:26px; font-weight: 500; font-family: "Montserrat"; text-align: center; color: #616161; margin-top: 5px;}
.code_page .orange_back_form .form .notice { color: #CD2222; }

.code_page .title { font-size: 30px; }

.code_page .buttons { display: grid; grid-template-columns: auto auto; margin: 40px auto; width: 903px; justify-content: space-between;}
.code_page .buttons .button { width: 440px; margin: 0; }



.try_again_page .orange_back { display: none; }
.try_again_page .foto_wrapper { grid-template-columns: 1fr repeat(4, auto) 1fr; padding-top: 20px; background-image: url("../images/try_again_background.130fa591aa6e.svg"); background-size: 97%; background-position: top center;}

.try_again_page .foto_1 { grid-row: 1; grid-column: 2; max-width: 253px; min-width: 200px; height: auto; overflow: hidden; margin: 0 5px;}
.try_again_page .foto_1 img {width: 100%; height: auto;}
.try_again_page .foto_1_mirror { grid-row: 2; grid-column: 2; max-width: 253px; min-width: 200px; margin: -4px 5px 0;}


.try_again_page .foto_2 { grid-row: 1; grid-column: 3; max-width: 289px; min-width: 220px; height: auto; overflow: hidden; margin: 0 5px;}
.try_again_page .foto_2 img {width: 100%; height: auto;}
.try_again_page .foto_2_mirror { grid-row: 2; grid-column: 3; max-width: 289px; min-width: 220px; margin: -4px 5px 0;}
.try_again_page .foto_2_mirror img {width: 100%; height: auto;}


.try_again_page .foto_3 { grid-row: 1; grid-column: 4; max-width: 289px; min-width: 220px; height: auto; overflow: hidden; margin: 0 5px; }
.try_again_page .foto_3 img {width: 100%; height: auto; }
.try_again_page .foto_3_mirror { grid-row: 2; grid-column: 4; max-width: 289px; min-width: 220px; margin: -4px 5px 0;}


.try_again_page .foto_4 { grid-row: 1; grid-column: 5; max-width: 253px; min-width: 200px; height: auto; overflow: hidden; margin: 0 5px;}
.try_again_page .foto_4 img {width: 100%; height: auto;}
.try_again_page .foto_4_mirror { grid-row: 2; grid-column: 5; align-self: start; max-width: 253px; min-width: 200px; margin: -4px 5px 0;}
.try_again_page .foto_4_mirror img { width: 100%; height: auto; }

.try_again_page .right_button { grid-row: 1; grid-column: 6;}

.try_again_page .button { margin-top: 90px; }



.framing_instruction_page .orange_back { background-color: white; height: auto; width: 100%; border: unset; }

.framing_instruction_page .fotos { max-width: 1050px;	min-width: 1000px; height: 880px; padding: 20px 0; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; justify-content: center; margin: 40px auto; background-image: url("../images/cadrirovanie_background.2f67f1b4a84a.svg"); background-repeat: no-repeat; background-position: top center; background-size: 100%;}
.framing_instruction_page .fotos #framing_foto_1 { margin-right: 50px; margin-bottom: 50px; }
.framing_instruction_page .fotos #framing_foto_2 { margin-left: 50px; margin-bottom: 50px }
.framing_instruction_page .fotos #framing_foto_3 { margin-right: 50px; }
.framing_instruction_page .fotos #framing_foto_4 { margin-left: 50px; }

.framing_instruction_page .orange_back_how_better { width: 903px; height: 175px; margin: 0 auto; background-color: var(--color-secondary); border-radius: 15px;}
.framing_instruction_page .orange_back_how_better .block_title { font-size: 20px; font-weight: 800; font-family: "Montserrat"; margin-left: 30px; margin-top: 35px; display: inline-block;}
.framing_instruction_page .orange_back_how_better .notice { font-size: 20px; text-align: left; margin-left: 30px; margin-top: 30px;}




.framing_select_size .background { width: 80%; max-width: 1256px; background-image: url("../images/framing_background.6056285f047d.svg"); background-size: 97%; background-position: top center; background-repeat: no-repeat; margin: 0 auto; }
.framing_select_size .background .orange_back { width: 70%; margin: 30px auto 0; display: flex; align-items: center; flex-direction: column; }
.framing_select_size .background .orange_back .main_image { width: 500px; height: 500px; }
.framing_select_size .background .orange_back .main_image img { display: block; width: 100%; height: auto; }
.framing_select_size .title { width: 60%; }
.framing_select_size .buttons { display: flex; flex-direction: column; gap: 1em; justify-content: center; width: 100%; align-items: center; margin-top: 2em; }
.framing_select_size .buttons .button { margin: 0; }
.framing_select_size .buttons .button-back { margin-top: 0.7em; background-color: #616161; }






.framing_page .background { max-width: 1256px; background-image: url("../images/framing_background.6056285f047d.svg"); background-size: 97%; background-position: top center; background-repeat: no-repeat; max-width: 85%; background-size: 100%; margin: 0 auto; }
.framing_page .background .orange_back { width: 70%; margin: 2em auto; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1em; }
#image{ width: 100%; height: auto; }
.framing_page .buttons { display: grid; grid-template-columns: auto auto; margin: 0 auto; width: 500px; gap: 1em; }
.framing_page .buttons .button { width: 100%; margin: 0; }
.framing_page .buttons .button:first-child { background-color: #616161; }
.framing_page .background .orange_back .main_image { width: 500px; height: 500px; }
.framing_page .background .orange_back .main_image img { display: block; width: 100%; height: auto; }
.framing_page .options #turn_right { transform: scale(-1, 1); }
.framing_page .options.options-aspect-rotation { display: flex; width: 500px; gap: 0em; margin: 1em auto; }
.framing_page .options.options-aspect-rotation .button { width: 100%; margin: 0; border-radius: 0; }
.framing_page .options .option-button-filled { background-color: unset; outline: 0.15em solid #2b2a28; padding: 0; }
.framing_page .options.options-aspect-rotation #vertical { border-radius: 99em 0 0 99em; }
.framing_page .options.options-aspect-rotation #horizontal { border-radius: 0 99em 99em 0; }
.framing_page .options .option-button-filled p { color: #2b2a28; }
.framing_page .options .option-button-filled-selected { background-color: #2b2a28; }
.framing_page .options .option-button-filled-selected p { color: white; }
.framing_page .option-button { margin: 5px; width: 70px; height: 70px; border: 1px dashed #B59A70; border-radius: 35px; background-color: white; display: flex; justify-content: center; }
.framing_page .option-button img { width: 100%; height: auto; margin: 0.7em; }





.result_page .background { max-width: 1256px; background-image: url("../images/framing_background.6056285f047d.svg"); background-size: 97%; background-position: top center; background-repeat: no-repeat;}
.result_page .background .orange_back { width: 50%; margin: 30px auto 0; display: flex; align-items: center; justify-content: center; }
.result_page .background .orange_back .main_image { display: flex; justify-content: center; max-width: 350px; }

.result_page .buttons { display: grid; grid-template-columns: repeat(2, 1fr); margin: 2em auto 0; width: 50%; justify-content: space-between; gap: 1em; }
.result_page .buttons .button { width: 100%; margin: 0; text-align: center; }
.result_page .buttons .button#crop-submit { grid-column: span 2; }
.swiper { width: 60%; margin: 0; }
.my-swiper-wrapper { position: relative; user-select: none; width: 50%; margin: 0 auto; }
.swiper-slide img { width: 100%; height: auto; }
.result-img-active {
	outline: 8px solid #FFC263;
	outline-offset: -7px;
}
.my-swiper-wrapper .swiper-button-next { position: absolute; right: 0; }
.my-swiper-wrapper .swiper-button-prev { position: absolute; left: 0; }
.select-img { width: 400px; }





.columns { display: grid; grid-template-columns: 1fr 570px 1fr; width: 100%; justify-items: center; margin-top: 50px;}


/* ONLY for /photo_constructor ! */
.instruction-column { display: flex; justify-content: center; align-items: center; flex-direction: column; }
.instruction-column-top-bar { display: flex; position: relative; justify-content: center; flex-direction: row; width: 100%; }
.instruction-column-question { position: absolute; right: 380px; top: 60px; }
.instruction-column-colors { margin-top: 60px !important; }
.instruction-column-bricks { width: auto !important; margin-top: 50px !important; }


.columns .question { grid-column: 3; grid-row: 2; margin-top: -40px; }

.assembly_page .orange_back_colors { grid-column: 2; margin: 0 auto; display: flex; }
.assembly_page .colors { grid-column: 2; margin: 0 auto 0; width: 430px; display: grid; grid-template-columns: repeat(8, 1fr); justify-content: center; justify-items: center; align-items: center;}
.assembly_page .colors a .color { width: 40px; height: 40px; border-radius: 0px; border: 1px solid black; }
.assembly_page .colors a #color1 { background-color: rgba(255, 255, 255, 1); border: 1px solid rgba(175, 175, 175, 1);}
.assembly_page .colors a #color2 { background-color: rgba(231, 231, 231, 1); border: 1px solid rgba(175, 175, 175, 0);}
.assembly_page .colors a #color3 { background-color: rgba(203, 203, 203, 1); border: 1px solid rgba(175, 175, 175, 0);}
.assembly_page .colors a #color4 { background-color: rgba(140, 140, 140, 1); border: 1px solid rgba(175, 175, 175, 0);}
.assembly_page .colors a #color5 { background-color: rgba(88, 88, 88, 1); border: 1px solid rgba(175, 175, 175, 0);}
.assembly_page .colors a #color6 { background-color: rgba(18, 18, 18, 1); border: 1px solid rgba(175, 175, 175, 0);}
.assembly_page .colors a .color p{ font-family: "Arial Black"; font-weight: 900; font-size: 24px; margin: 14px 0 0 4px; color: black;}

.assembly_page .colors a #reload { background-color: var(--color-primary); border: 1px solid rgba(175, 175, 175, 0); margin-left: 30px;}
.assembly_page .colors a #reload #mobile_reload { display: none; }
.assembly_page .colors a #reload #desktop_reload { display: block; }

.assembly_page .bricks { grid-column: 2; border-collapse: separate; border-spacing: 5px; width: 535px; margin: 15px auto 0;}
.assembly_page .bricks td { width: 38px; height: 38px; }
.assembly_page .bricks .lable p{ text-align: center; font-family: "Inter"; font-weight: 400; font-size: 12px; margin-top: 13px; color: rgba(108, 108, 108, 1);}
.assembly_page .bricks .lable_interactive p{ text-align: center; font-family: "Inter"; font-weight: 400; font-size: 12px; margin-top: 15px; color: rgba(108, 108, 108, 1);}
.assembly_page .bricks .brick { background-color: black; border-radius: 0px; cursor: pointer; user-select: none; }
.assembly_page .bricks .brick .brick_word { width: 20px; font-family: "Inter"; color: white; font-size: 24px; margin: 13px 0 0 19px; position: absolute;}
.assembly_page .bricks .brick .brick_num { width: 10px; font-family: "Inter"; color: white; font-size: 12px; margin: 4px 0 0 2px; position: absolute; text-align: right;}

.assembly_page .bricks .small-bricks-td { width: 38px; height: 8px; }
.assembly_page .bricks .small-bricks-brick { background-color: black; cursor: pointer; user-select: none; border-radius: 0; position: relative; }
.assembly_page .bricks .brick .small-bricks-brick-word { width: 20px; font-family: "Inter"; color: white; font-size: 15px; position: absolute; margin: 0; bottom: 2px; left: 4px; }
.assembly_page .bricks .brick .small-bricks-brick-num { width: 10px; font-family: "Inter"; color: white; font-size: 10px; position: absolute; text-align: right; margin: 0; top: 3px; right: 3px; }
.assembly_page .bricks .small-bricks-lable p { text-align: center; font-family: "Inter"; font-weight: 400; font-size: 8px; margin-top: 13px; color: rgba(108, 108, 108, 1);}

.assembly_page .buttons { margin: 10px auto 0; width: 215px; display: grid; grid-template-columns: repeat(2, auto); justify-content: center; justify-items: center; align-items: center; }
.assembly_page .buttons a .onTheMainButton { width: 167px; height: 35px; margin: 0 auto; }
.assembly_page .buttons a .reloadButton { width: 35px; height: 35px; background-color: rgba(217, 217, 217, 1); border-radius: 5px;}
.assembly_page .buttons .reloadButton img { margin: 3px 0 0 6px; }

.assembly_page .orange_back { max-width: 1256px; height: auto; margin: 0 auto; display: flex; flex-direction: column; }

.assembly_page .pages { margin: 0 auto; width: 800px; display: grid; grid-template-columns: repeat(auto-fit, minmax(30px, 105px)); justify-content: center; justify-items: center; align-items: center; display: flex; gap: 35px; outline: #CD2222; height: 85px; }
.assembly_page .pages .swiper { width: 350px; height: 64px; margin: 0; }
.assembly_page .pages .swiper .swiper-wrapper .current-page { background-color: var(--color-button); border: none; }
.assembly_page .pages .swiper .swiper-wrapper .current-page p { color: #fff; }
.assembly_page .pages .swiper-button-prev,
.assembly_page .pages .swiper-button-next { 
  position: relative; top: auto; margin-top: 0; color: white;
}
.assembly_page .pages .page { border-radius: 4px; display: flex; justify-content: center; border: 1px solid var(--color-button); box-sizing: border-box; width: 80px; justify-content: center; align-items: center; }
.assembly_page .pages .page p { font-family: "Arial Black"; font-weight: 900; font-size: 25px; color: var(--color-button);}

.assembly_page #pages_button { display: none; }

.assembly_page .buttons-page-20 { display: flex; border-radius: 5px; justify-content: center;  gap: 10px; margin-bottom: 25px; }
.assembly_page .buttons-page-20 .page { width: 64px; height: 64px; border-radius: 5px; display: flex; align-items: center; justify-content: center; padding: 5px; user-select: none; cursor: pointer; border: 1px solid var(--color-button); box-sizing: border-box; }
.assembly_page .buttons-page-20 .page p { font-family: "Arial Black"; font-weight: 900; font-size: 25px; color: var(--color-button);}

.assembly_page:has(.bricks.table_2) .columns { display: flex; flex-direction: column; align-items: center;  }
.assembly_page:has(.bricks.table_2) .columns .question { margin-top: 0; }
.assembly_page:has(.bricks.table_2) .columns .question a { display: inline-block; width: 80px; }
.assembly_page:has(.bricks.table_2) .columns .question a img { width: 100%; }
.assembly_page:has(.bricks.table_2) .colors { display: flex; width: 30%; gap: 1em; margin-top: 2em; }
.assembly_page .bricks.table_2 { display: flex; flex-direction: column; width: auto; }
.assembly_page .bricks.table_2 .row { display: flex; flex-direction: row; }
.assembly_page .bricks.table_2 .row .column { display: flex; width: calc(1000px / 32); height: auto; aspect-ratio: 1 / 1; justify-content: center; align-items: center; }
.assembly_page .bricks.table_2 .row .column p { margin: 0 !important; }
.assembly_page .bricks.table_2 .row .column .brick_word { margin: 0; width: auto; }
.assembly_page .bricks.table_2 .row .column .brick_num { display: none; }
.assembly_page .huge_tiles { display: flex; width: 30%; margin-bottom: 0em; gap: 2em; }
.assembly_page .huge_tile { display: flex; width: 100%; }
.assembly_page .huge_tile_scaled { transform: scale(1.2); }
.assembly_page .huge_tile img { width: 100%; height: auto; }
.assembly_page .huge_tile img#current_page { outline: 0.5em solid #000; outline-offset: 0.3em; }

.assembly_page:has(.bricks.table_2) .orange_back { display: none; }




.assembly_page .assembly-workspace { display: flex; align-items: flex-start; justify-content: center; gap: 40px; width: 92%; max-width: 1180px; margin: 0 auto; }
.assembly_page .assembly-instruction-panel { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.assembly_page .assembly-tools-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.assembly_page .assembly-tools-row .orange_back_colors { margin: 0; }
.assembly_page .assembly-preview { position: sticky; top: 24px; width: 360px; flex: 0 0 360px; background: rgba(241, 206, 152, 0.25); border-radius: 8px; padding: 16px; box-sizing: border-box; }
.assembly_page .assembly-preview img { display: block; width: 100%; height: auto; object-fit: contain; }
.assembly_page .assembly-grid { display: flex; flex-direction: column; gap: 5px; width: auto; margin: 15px auto 0; border-spacing: 0; }
.assembly_page .assembly-grid-row { display: flex; gap: 5px; }
.assembly_page .assembly-grid-row:last-child { visibility: hidden; }
.assembly_page .assembly-grid-cell { position: relative; width: 38px; height: 38px; box-sizing: border-box; flex: 0 0 38px; }
.assembly_page .assembly-grid-cell.lable:last-child { visibility: hidden; }
.assembly_page .assembly-grid .lable { display: flex; align-items: center; justify-content: center; }
.assembly_page .assembly-grid .lable p { text-align: center; font-family: "Inter"; font-weight: 400; font-size: 12px; margin: 0; color: rgba(108, 108, 108, 1); }
.assembly_page .assembly-grid .brick { background-color: black; border-radius: 0; cursor: pointer; user-select: none; }
.assembly_page .assembly-grid .brick .brick_word { width: auto; font-family: "Inter"; color: white; font-size: 24px; margin: 0; position: absolute; right: 4px; bottom: 1px; }
.assembly_page .assembly-grid .brick .brick_num { width: auto; font-family: "Inter"; color: white; font-size: 12px; margin: 0; position: absolute; top: 3px; left: 3px; text-align: right; }
.assembly_page .assembly-instruction-panel .question { margin: 0; }
.assembly_page .assembly-instruction-panel .question a { display: inline-block; width: 54px; }
.assembly_page .assembly-instruction-panel .question img { display: block; width: 100%; height: auto; }
.assembly_page .assembly-navigation.orange_back { width: 100%; max-width: 620px; min-width: 0; margin: 12px auto 0; box-sizing: border-box; overflow: hidden; }
.assembly_page .assembly-navigation .pages { width: 100%; min-width: 0; height: auto; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 10px; margin: 0 auto; align-items: center; justify-content: stretch; box-sizing: border-box; overflow: hidden; }
.assembly_page .page-scroll { display: flex; min-width: 0; max-width: 100%; gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.assembly_page .page-scroll::-webkit-scrollbar { display: none; }
.assembly_page .pages .page,
.assembly_page .page-nav-jump { min-width: 50px; height: 50px; border-radius: 4px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--color-button); box-sizing: border-box; user-select: none; cursor: pointer; background: white; }
.assembly_page .pages .page { flex: 0 0 50px; width: 50px; }
.assembly_page .page-nav-jump { width: 52px; }
.assembly_page .pages .page p,
.assembly_page .page-nav-jump p { font-family: "Arial Black"; font-weight: 900; font-size: 18px; color: var(--color-button); margin: 0; }
.assembly_page .page-nav-jump i { color: var(--color-button); font-size: 22px; line-height: 1; }
.assembly_page .pages .current-page { background-color: var(--color-button); border-color: var(--color-button); }
.assembly_page .pages .current-page p { color: #fff; }
.assembly_page .assembly-mobile-back-button { display: none; }
.assembly_page { opacity: 1; animation: fadeIn 1000ms ease-in-out; }
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.assembly_page .brick-label-interactive { cursor: pointer; }
.assembly_page .brick-label-eye { display: none; }
.assembly_page .brick-label-interactive:hover .brick-label-value { display: none; }
.assembly_page .brick-label-interactive:hover .brick-label-eye { display: block; }
.assembly_page .brick-clean p { display: none; }
.assembly_page .brick-hiden { opacity: 0.1; }

.purchase_page .orange_back { background-color: white; }
.purchase_page .title { font-size: 33px; }
.purchase_page .discription { width: 940px; margin: 20px auto 50px; display: block; }
.purchase_page .markup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; width: 940px; margin: 0 auto;}
.purchase_page .marketplace .info {width: 206px; height: 176px; background: #F1CE98; border-radius: 20px;}
.purchase_page .marketplace .info p { font-family: "Montserrat"; margin: 10px auto; color: black; text-align: left; font-size: 14px; font-weight: 500; width: 90%; overflow: hidden;}
.purchase_page .marketplace .info .info_bg { background-image: url("../images/marketplace_bg.014357aede98.png"); background-position: center -4px; background-repeat: no-repeat; display: flex; align-items: center; justify-content: center; height: 112px;}
.purchase_page .marketplace .info .info_bg p { margin: 0; text-align: center; font-size: 32px; font-weight: 800; color: #FDFCE5; }
.purchase_page .button { width: 206px; height: 44px; margin-top: 30px;}
.purchase_page .marketplace #WB p:after { content: "ВЫБРАТЬ"; }
.purchase_page .marketplace #OZON p:after { content: "ВЫБРАТЬ"; }
.purchase_page .marketplace #DM p:after { content: "ВЫБРАТЬ"; }
.purchase_page .marketplace #MM p:after { content: "ВЫБРАТЬ"; }




.failed_page .background { max-width: 1256px; background-image: url("../images/framing_background.6056285f047d.svg"); background-size: 97%; background-position: top center; background-repeat: no-repeat; margin-top: 60px; margin-bottom: 100px;}
.failed_page .background .orange_back { width: 70%; height: 556px; margin: 30px auto 0; display: flex; align-items: center; justify-content: center; flex-direction: column;}
.failed_page .background .orange_back .title { margin-bottom: 30px; }
.failed_page .background .orange_back .discription { font-size:36px;  }
.failed_page .button { margin-bottom: 0; }
.failed_page #visible { display: none; }




.popup_page .background { max-width: 1256px; margin-top: 60px; margin-bottom: 100px;}
.popup_page .background .orange_back { width: 70%; height: 556px; margin: 30px auto 0; display: flex; align-items: center; justify-content: center; flex-direction: column;}
.popup_page .background .orange_back .discription { font-size:40px; width: 80%; font-weight: 800; }
.popup_page .button { margin-bottom: 0; }




.wait_page .orange_back { background-color: white; }
.wait_page .title { width: 90%; }
.wait_page .discription { width:90%; max-width:1000px; }
.wait_page .buttons { display: grid; grid-template-columns: auto auto; margin: 40px auto; width: 903px; justify-content: space-between;}
.wait_page .buttons .button { width: 440px; margin: 0; }


/*Страница всех генераций*/

.all_page .orange_back { background-color: white; }

.all_page .buttons { display: grid; grid-template-columns: auto auto ; width: 905px; margin: 100px auto 0; justify-content: space-between;}
.all_page .buttons .button { width: 440px; margin: 0; }




/*Страница с кодом НОВАЯ*/
.code_new_page .orange_back { background-color: white; }
.code_new_page .orange_back_form { display: flex; flex-direction: column; width: 903px; height: 210px; margin: 50px auto 0; background-color: var(--color-secondary); border-radius: 15px;}
.code_new_page .orange_back_form .block_title { text-align: center; font-size: 24px; font-weight: 600; font-family: "Montserrat"; margin: 25px auto 0; width: 50%; display: block;}

.code_new_page .orange_back_form .form { display: flex; flex-direction: column; width: 100%; margin: 30px auto; justify-content: center; align-items: center;}
.code_new_page .orange_back_form .form input { width: 403px; height: 60px; background-color: #fff; border-radius: 15px; border: 3px solid #616161; font-size:24px; font-weight: 500; font-family: "Fira Code", serif; font-optical-sizing: auto; text-align: center; color: #616161;}
.code_new_page .orange_back_form .form input::placeholder { font-size:26px; font-weight: 500; font-family: "Fira Code", serif; font-optical-sizing: auto; text-align: center; color: #616161; margin-top: 5px;}
.code_new_page .orange_back_form .form .notice { color: #CD2222; margin-top: 20px;}

.code_new_page .title { font-size: 30px;  }

.code_new_page .buttons { display: grid; grid-template-columns: auto auto; margin: 40px auto; width: 903px; justify-content: space-between;}
.code_new_page .buttons .button { width: 440px; margin: 0; }





/*Страница email*/
.email_page .orange_back { background-color: white; }
.email_page .orange_back_form { display: flex; flex-direction: column; width: 903px; margin: 50px auto 0; background-color: var(--color-secondary); border-radius: 15px;} 
.email_page .orange_back_form .block_title { text-align: center; font-family: "Montserrat"; margin: 25px auto 0; width: 50%; display: block; font-size: 1.5rem; font-weight: 500; }

.email_page .orange_back_form .form { display: flex; flex-direction: column; width: 100%; margin: 30px auto; justify-content: center; align-items: center;}
.email_page .orange_back_form .form input { width: 403px; height: 60px; background-color: #fff; border-radius: 15px; border: 3px solid #616161; font-size:24px; font-weight: 500; font-family: "Montserrat"; text-align: center; color: #616161;}
.email_page .orange_back_form .form input::placeholder { font-size:26px; font-weight: 500; font-family: "Montserrat"; text-align: center; color: #616161; margin-top: 5px;}

.email_page .title { font-size: 30px;  }

.email_page .buttons { display: grid; grid-template-columns: auto auto; margin: 40px auto; width: 903px; justify-content: space-between;}
.email_page .buttons .button { width: 440px; margin: 0; }





.email_search_page .orange_back { background-color: white; }
.email_search_page .orange_back_form { display: flex; flex-direction: column; width: 903px; margin: 50px auto 0; background-color: var(--color-secondary); border-radius: 15px;} 
.email_search_page .orange_back_form .block_title { text-align: center; font-family: "Montserrat"; margin: 25px auto 0; width: 50%; display: block; font-size: 1.5rem; font-weight: 500; }
.email_search_page .orange_back_form .form { display: flex; flex-direction: column; width: 100%; margin: 30px auto; justify-content: center; align-items: center;}
.email_search_page .orange_back_form .form input { width: 403px; height: 60px; background-color: #fff; border-radius: 15px; border: 3px solid #616161; font-size:24px; font-weight: 500; font-family: "Montserrat"; text-align: center; color: #616161;}
.email_search_page .orange_back_form .form input::placeholder { font-size:26px; font-weight: 500; font-family: "Montserrat"; text-align: center; color: #616161; margin-top: 5px;}
.email_search_page .title { font-size: 30px;  }
.email_search_page .description { font-size: 24px; width: 50%; margin: 1em auto; text-align: center; font-family: "Montserrat"; }
.email_search_page .buttons { display: flex; grid-template-columns: auto auto; margin: 1em auto; width: 100%; justify-content: center; }
.email_search_page .buttons .button { width: 440px; margin: 0; }

.email_search_page .description .email { font-family: "Montserrat"; font-style: normal; text-transform: unset !important; font-size: 1.3rem; color: #3e3e3e; }
.email_search_page .error { margin-bottom: 1em; }
.email_search_page .button { margin-bottom: 1em; }

.email_search_page .button.button-code { margin-bottom: 1em; background-color: var(--site-primary-color); margin: 0; width: 100%; background-color: var(--color-button); margin-bottom: 1em; } 

.email_search_page .codes-container { max-height: 150px; overflow-y: scroll; width: 50%; margin-top: 1em; margin: 1em auto 0; display: flex; justify-content: center; }
.email_search_page .codes { list-style: none; display: flex; flex-direction: column; align-items: center; width: 90%; padding: 0; }
.email_search_page .codes li { list-style: none; width: 100%; }




/*Страница версий*/
.versions_page .orange_back { display: none; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(-50px);
    }
    60% {
        transform: translateX(-5px);
    }
}
.bounce { animation: bounce 2s; }

.versions_page .foto_wrapper { display: flex; justify-content: space-around; background-image: none; max-width: 85%; overflow: scroll; gap: 2em; margin: 3em auto; }
.versions_page .foto_wrapper .version img { width: 100%; height: auto; }
.versions_page .foto_wrapper .version .span { font-size: 37px; font-weight: 800; font-family: "Inter"; text-align: center; margin: 20px auto;}
.versions_page .foto_wrapper .version .button { margin: 20px auto; }

.versions_page .discription { margin-top: 20px; width: 85%; }

.versions_page .buttons { display: grid; grid-template-columns: auto auto; width: 903px; margin: 0 auto;}
.versions_page .buttons .button { width: 440px; }

.versions_page .foto_wrapper .version .button img { width: 20%; }

.versions_page .generation-slider {
	display: grid;
	grid-template-columns: minmax(340px, 500px) minmax(280px, 360px);
	align-items: stretch;
	gap: 24px;
	width: 88%;
	max-width: 960px;
	margin: 3em auto 0;
}
.versions_page .generation-view {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 10px;
}
.versions_page .generation-stage {
	min-width: 0;
	max-width: 420px;
	margin: 0 auto;
}
.versions_page .generation-slide img {
	display: block;
	width: 100%;
	max-height: 520px;
	height: auto;
	object-fit: contain;
}
.versions_page .generation-slide .span {
	font-size: 28px;
	font-weight: 800;
	font-family: "Inter";
	text-align: center;
	margin: 14px auto 0;
}
.versions_page .generation-arrow {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background-color: var(--color-button);
	color: white;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 5px;
	user-select: none;
}
.versions_page .generation-arrow:disabled {
	background-color: rgba(97, 97, 97, 1);
	cursor: default;
}
.versions_page .generation-side {
	display: flex;
	flex-direction: column;
	gap: 20px;
	background-color: rgba(241, 206, 152, 0.28);
	border-radius: 8px;
	padding: 18px;
}
.versions_page .generation-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 14px;
	font-family: "Montserrat";
}
.versions_page .generation-meta-item {
	min-width: 0;
}
.versions_page .generation-meta-item-wide {
	grid-column: 1 / -1;
}
.versions_page .generation-meta-label {
	color: rgba(97, 97, 97, 1);
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 3px;
}
.versions_page .generation-meta-value {
	color: rgba(40, 40, 40, 1);
	font-size: 15px;
	font-weight: 700;
	overflow-wrap: anywhere;
}
.versions_page .generation-thumbs-row {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 34px;
	align-items: center;
	gap: 8px;
}
.versions_page .generation-thumb-arrow {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background-color: rgba(97, 97, 97, 1);
	color: white;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 4px;
	user-select: none;
}
.versions_page .generation-thumbs.foto_wrapper {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: flex-start;
	background-image: none;
	max-width: none;
	overflow-x: auto;
	overflow-y: hidden;
	gap: 12px;
	margin: 0;
	padding: 0 0 10px;
}
.versions_page .generation-thumb {
	flex: 0 0 76px;
	width: 76px;
	border: 3px solid transparent;
	background: transparent;
	padding: 0;
	cursor: pointer;
}
.versions_page .generation-thumb.active {
	border-color: var(--color-button);
}
.versions_page .generation-thumb img {
	display: block;
	width: 100%;
	height: auto;
}
.versions_page .generation-actions.buttons {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	width: 100%;
	margin: 0;
}
.versions_page .generation-actions.buttons .button {
	width: 100%;
	margin: 0;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.versions_page .generation-actions.buttons .button p {
	text-align: center;
}
.versions_page .generation-actions .button img {
	width: 20%;
}
.versions_page .generation-control-locked {
	filter: brightness(80%);
	cursor: default !important;
	pointer-events: none;
}


.error-message { display: block; color: #ca0000; font-family: "Montserrat"; font-weight: 600; margin-top: 5px; }

.popup-overlay {
  position: fixed; /* Stay in place */
  top: 0;
  left: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.7); /* Black background with transparency */
  z-index: 1000; /* Sit on top */
  display: flex;
  justify-content: center;
  justify-items: center;
}

.popup { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); z-index: 1001; }
.popup-x-button { display: flex; justify-content: right; margin-bottom: 20px; user-select: none; cursor: pointer; }
.popup-content { display: flex; justify-content: center; align-items: center; margin: 50px 0; overflow-y: auto; }
.help { width: 90%; background-color: white; border: solid 2px rgba(0, 0, 0, 0.25); }
.help img { width: 70%; height: auto; }
.help .close { text-decoration: none; font-family: "Montserrat"; font-size: 25px; font-weight: 600; color: white; width: 100px; height: 40px; background-color: #f1ce98; display: flex; align-items: center; justify-content: center; border-radius: 25px;}
.help #desktop_image { display: block; }
.help #tablet_image { display: none; }
.help #mobile_image { display: none; }


.index_new .top-star-container { position: relative; height: 40px; display: flex; justify-content: center; align-items: center; }
.index_new .about {width: 99%; height: auto; padding: 30px 0; margin: 40px auto; display: flex; align-items: center; background-color: rgba(241, 206, 152, 0.5); border: 3px solid var(--color-primary); position: relative; }
.index_new .about .people-image { width: 148px; height: 194px; float: left; margin-left: 40px; position: absolute; left: 50px; }
.index_new .about .mobile_img { display: none; } 
.index_new .about .info { width: 100%; }
.index_new .about .info .title { margin: 0 20px; display: flex; justify-content: center; align-items: center; gap: 15px; }
.index_new .about .info .button { margin: 50px auto 0; width: 403px;}

.index_new .title { margin-top: 1em; }

.select_boxes { margin: 2em auto; display: grid; grid-template-columns: 1fr 1fr; width: 80%; }
.select_boxes .select_box { width: 100%; }
.select_boxes .select_box#thirdItem { grid-column: span 2; width: 50%; justify-self: center; }
.select_boxes .select_box img { width: 100%; height: auto; }
.main_page .select_boxes { gap: 20px; padding: 18px; border-radius: 15px; }
.main_page .select_boxes .select_box { position: relative; display: block; border-radius: 15px; overflow: hidden; text-decoration: none; }
.main_page .select_boxes .select_box img { transition: transform 160ms ease; }
.main_page .select_boxes .select_box span { position: absolute; left: 18px; bottom: 18px; font-family: "Montserrat"; font-size: 18px; font-weight: 800; color: var(--color-button); pointer-events: none; }
.main_page .select_boxes .select_box:hover { transform: none; }
.main_page .select_boxes .select_box:hover img { transform: translateY(-2px); }

.select_boxes .select_box.box_continue_work img { align-self: center; }
.select_boxes .select_box.box_continue_work { justify-self: center; align-self: center; position: relative; }
.select_boxes .select_box.box_continue_work .user_continue_work_text { position: absolute; top: 50%; left: 8em; transform: translateY(-55%); font-size: 1.3rem; font-family: "Montserrat"; color: #000; font-weight: 600; }


.about-mobile { display: none; }



/* Overlay to dim the background */
.video-popup-overlay {
    position: fixed; /* Fixed position to cover the entire viewport */
    top: 0; /* Align to the top */
    left: 0; /* Align to the left */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    display: flex; /* Use flexbox to center the content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 1000; /* Ensure it appears above other content */
}

/* Popup container styling */
.video-popup {
  display: flex;
  position: absolute; 
  justify-content: center;
  flex-direction: column;
  align-items: center;
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  background-color: white; 
  z-index: 7777; 
  background-color: white; /* Background color for the popup */
  padding: 20px; /* Padding around the content */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Shadow for depth */
  width: 30%;
  height: 80%;
  overflow: auto; /* Scroll if content overflows */
}

/* Close button styling */
.video-popup-x-button {
  display: flex; 
  justify-content: right; 
  margin-bottom: 20px; 
  user-select: none; 
  cursor: pointer; 
  text-align: right; /* Align close button to the right */
  width: 100%;
}

.video-close {
  text-decoration: none; /* Remove underline from link */
  color: black; /* Color of the close button */
  font-size: 20px; /* Font size for the close button */
  cursor: pointer; /* Change cursor to pointer on hover */
  margin-right: 30px;
  margin-top: 10px;
}

/* Styles for desktop devices */
.video-popup-content {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  margin: 50px 0; 
  overflow-y: auto; 
  width: 80%; /* Use 80% of the viewport width */
  height: 80%; /* Use 80% of the viewport height */
}

.video-popup-content video {
  width: 100%; /* Full width of the popup content */
  height: 100%; /* Full height of the popup content */
  border: none; /* Remove default border */
}

.footer-2 { display: flex; justify-content: center; width: min(760px, 92%); font-family: "Montserrat"; color: #000; margin: 42px auto 24px; padding: 10px 14px; background: var(--color-secondary); border-radius: 15px; box-sizing: border-box; }
.error_page .footer-2 { width: 500px; justify-self: center; text-align: left; margin-top: 60px; }
.error_page_503 .footer-2 { justify-self: left; margin-top: 40px; }
.all_gen_page .left_side .footer-2 { width: 100%; }
.footer-2 .footer-2--title { font-size: 24px; font-weight: 600; text-align: left; flex: 1; align-self: center; }
.error_page .footer-2 .footer-2--title {text-align: left; }
.footer-2 .container { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; }
.footer-2 a { color: #000000; text-decoration: none; }
.footer-2 .container .link { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 34px; padding: 4px 8px; border-radius: 10px; box-sizing: border-box; }
.footer-2 .container .link:hover { background: rgba(255, 255, 255, 0.42); }
.error_page .container .link { justify-content: left; }
.footer-2 .container .link .text { font-weight: 500; font-size: 13px; margin: 0; white-space: nowrap; }
.footer-2 .container .link img { width: 24px; height: 24px; object-fit: contain; flex: 0 0 24px; }

.support_panel_page {
  width: 95%;
  margin: 40px auto;
}
.support_panel_page .round-counter { margin: 0.3em 1em; text-align: center; display: inline-flex; justify-content: center; align-items: center; width: 1.6em; font-weight: bold; outline: 3px solid #0009; border-radius: 99em; aspect-ratio: 1 / 1; color: #0009; }
.support_panel_page input.query-input { width: 100%; }
.support_panel_page input { width: 403px; height: 60px; background-color: var(--color-primary); border-radius: 15px; border: 3px solid #616161; font-size:24px; font-weight: 500; font-family: "Montserrat"; text-align: center; color: #616161; margin-bottom: 20px; }
.support_panel_page td img { width: 100%; height: auto; max-width: 10em; }






.faq_page { margin: 2em auto; position: relative; width: 50%; }
.faq_page .question-text-title { display: flex; padding: 24px; align-items: flex-start; gap: 10px; align-self: stretch; border-radius: 15px; background: var(--color-button); color: #fff; margin-bottom: 5px; position: relative; cursor: pointer; z-index: 2; user-select: none; }
.faq_page .question-block{ margin-top: 30px; }
.faq_page .question-text-title p{ min-height: 32px; font-size: 24px; font-weight: 600; font-family: "Montserrat"; text-align: center; padding-right: 100px; width: 100%; }
.faq_page .question-icon { position: absolute; right: 20px; top: 10px; background: var(--color-button); width: 60px; height: 60px; border-radius: 30px; }
.faq_page .question-icon img{ margin-top: 24px; margin-left: 14.5px; }
.faq_page .question-text-description {  padding: 1em; padding-top: 40px; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; border: 1px solid #5C5140; z-index: 1; font-size: 24px; font-family: "Montserrat"; border-top-style: unset; margin-top: -1em; padding-top: 1.5em; }
.faq_page .question-text-description img { width: auto; height: auto; }
.faq_page .question-text-description #scalable { width: 100%; }
.faq_page .question-text-description .desktop_img { margin: 0 auto; display: block; }
.faq_page .question-text-description .tablet_img { display: none; }
.faq_page .question-text-description .mobile_img { display: none; }
.faq_page ul { margin: auto; list-style-position: inside; }
.faq_page li { margin: 15px 0; }
.faq_page a { color: #000; }



.demo_page {
  font-family: Arial, sans-serif;
}

.demo_page .file-upload {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.demo_page .photo-load-button {
  cursor: pointer;
}

.demo_page .size-selection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.demo_page .dropdown {
  position: relative;
  display: inline-block;
}

.demo_page .dropbtn {
  background-color: #4CAF50; /* Green */
  color: white;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.demo_page .dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.demo_page .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.demo_page .dropdown-content a:hover {
  background-color: #f1f1f1;
}

.demo_page .dropdown:hover .dropdown-content {
  display: block;
}

.demo_page .orange_back {
  padding: 20px;
  border-radius: 5px;
}

.demo_page .buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
