:root {
	--main-color:#2c5ca8;
	--accent-color:#ef7d53;
	--star-color:#eea300;
	--border: 1px solid #d3d3d3;
	--indent: 32px;
}

body,head {padding: 0;margin: 0;}
button {
	font-size: inherit;
	padding: 0;
}

body {
	font: 18px "Rubik", sans-serif;
	overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.second_page {
	min-height: calc(100vh - 275px);
}

h1 {
	font-size: 30px;
	font-weight: 400;
	color: var(--main-color);
}

.main_header h1 {
	margin: 50px 0 40px;
	font-size: 50px;
	line-height: 100%;
	font-weight: 500;
	color: var(--accent-color);
}

h2 {
	text-align: center;
	margin: 0 auto var(--indent);
	font-size: 28px;
	font-weight: 500;
	color: var(--main-color);
	padding: var(--indent) 0 0;
}

p {
	padding: 3px 0;
	margin: 0;
}

.small {font-size: 16px;}
td.small {width: 110px;max-width: max-content;}
.pt0 {padding: 0;}
.mt0 {margin-top: 0 !important;}
.indent-t {
	padding-top: var(--indent);
}
.indent-b {
	padding-bottom: var(--indent);
}
.indent-mt {margin-top: 15px !important;}

.loading:not(#search_field) {opacity: .5;}

.mobile_only {display: none;}
.desktop_only {display: block;}
td.desktop_only {display: table-cell;}
span.desktop_only {display: inline;}


a {
	color: #000;
	text-underline-offset: 4px;
}
a:hover {color: var(--accent-color);}
sup,.accent {
	color: var(--accent-color);
}

.button {
	margin: var(--indent) auto;
	display: block;
	border: 1px solid var(--accent-color);
	border-radius: 15px;
	width: fit-content;
	color: var(--accent-color);
	cursor: pointer;
	text-decoration: none;
	background: transparent;
	position: relative;
}
.button.inverted:not(.disabled) span {
	background-color: var(--accent-color);
	color: #fff;
}
.button.inverted:not(.disabled):hover span {
	background-color: #fff;
	color: var(--accent-color);
}
.button.disabled,
.button.disabled:hover,
.button.next.disabled::after {
	color: #ccc;
	border-color: #ccc;
	cursor: not-allowed;
}
.button.disabled:hover span {background-color: #d4d4d4;}
.button span {
	transition: all .3s;
	border-radius: 15px;
	justify-content: center;
	align-items: center;
	display: flex;
	padding: 10px 25px 11px;
	position: relative;
	z-index: 2;
	background: #fff;
}
.button.show_more span {padding-right: 47px;}
.button.show_more::before {
	content: "...";
	position: absolute;
	right: 15px;
	z-index: 3;
	top: -5px;
	font-size: 35px;
	font-family: 'Times New Roman', Times, serif;
}
.button:hover span,
.button:not(.with_shadow):hover {
	background-color: var(--accent-color);
	color: #fff;
}
.button.back {
	margin-top: 5px;
	margin-left: 0;
	padding: 4px 20px 5px 30px;
	font-size: 20px;
}
.button.back::before {
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	border: 2px solid var(--accent-color);
	border-width: 2px 0 0 2px;
	transform: rotate(-45deg);
	margin: 8px 0 0;
	position: absolute;
	left: 15px;
}
.button.next span {padding: 8px 40px 9px 25px;}
.button.next::after {
	box-shadow: 0 0 0;
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border: 2px solid var(--accent-color);
	border-width: 0 2px 2px 0;
	transform: rotate(-45deg);
	position: absolute;
	right: 20px;
	left: auto;
	z-index: 2;
	border-radius: 0;
	top: 50%;
	margin-top: -6px;
}
.button.back:hover::before,
.button.next:hover::after {
	border-color: #fff;
}

.wrapper {
	padding: 0 90px;
	max-width: 2000px;
	margin-left: auto;
	margin-right: auto;
}

.flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.flex.left {justify-content: flex-start;}
.flex.left button,
.flex.left a {margin-left: 0;margin-right: 15px;}
.center {text-align: center;}
.button.left {margin-left: 0;margin-right: auto;}

.full_height {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	height: 100%;
}

.long {
	grid-column: 1 / -1;
}
.i2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	gap: 30px;
}
.i1-2 {
	display: grid;
	grid-template-columns: 200px 1fr 1fr;
	gap: 30px;
}

.i260-1 {
	display: grid;
	grid-template-columns: 260px 1fr;
	align-items: flex-start;
	gap: 30px;
}
.i3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.i4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.relative {
	position: relative;
	z-index: 2;
}

/* header */

header {
	position: fixed;
	width: 100%;
	z-index: 7;
	transition: padding .2s, box-shadow .3s;
	overflow: hidden;
}

.main_header header {
	padding-top: 90px;
}

#top_space {height: 50px;}
.second_page #top_space {height: 90px;}

header .wrapper {max-width: none;}

.main_header {
	width: 100%;
	padding: 0;
	box-sizing: border-box;
	max-height: 100vh;
	background: linear-gradient(0deg, #f9f9f9, #fff);
	overflow: hidden;
	position: relative;
}

.main_header .wrapper.i2 {
	padding-top: 160px;
	max-width: none;
}

.main_header::after {
	content: "";
	display: block;
	height: 200%;
	width: 760px;
	position: absolute;
	right: -230px;
	top: -50%;
	background-color: var(--accent-color);
	transform: rotate(15deg);
}

.main_header .full_height {
	max-width: 800px;
	max-height: calc(100vh - 180px);
	margin-bottom: auto;
}

.main_header .flex {align-items: flex-start;}

.main_header .logo img {
	width: 335px;
	display: block;
	transition: width .2s;
}

.fixed_menu .main_header .logo img,
.second_page .logo img {
	width: 110px;
}

.main_header p {
	margin-bottom: auto;
	margin-top: 40px;
}

.with_shadow {position: relative;}
.with_shadow::after {
	content: "";
	display: block;
	width: 100%;
	height: 30px;
	position: absolute;
	left: 0;
	bottom: 10px;
	box-shadow: 0 20px 40px #0000007e;
	border-radius: 50%;
	transition: opacity .3s;
}
a.with_shadow:hover::after {
	opacity: .3;
}
.with_shadow input {position: relative;z-index: 2;}

/* Modals */

#modal_frame {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 9999;
	width: 100vw;
	height: 100vh;
	background: #00000000;
	display: flex;
	align-content: center;
	align-items: center;
	justify-content: center;
	transition: background .3s;
}
#modal_frame.opened {
	background: #0000003b;
}
.chat_window.opened.expanded {
	width: 100%;
	height: calc(100vh - 10px);
}

#modal_frame .backdrop {
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: 99;
}

#modal_frame .window {
	background: #fff;
	border-radius: 15px;
	padding: var(--indent);
	min-width: 200px;
	min-height: 80px;
	transform: scale(0);
	opacity: 0;
	transition: transform .4s, opacity .2s;
	box-shadow: 0 5px 20px #0000004f;
	max-width: 95vw;
	max-height: 95vh;
	position: relative;
	z-index: 100;
}
#modal_frame .window.good {
	background: url(/frontend/images/ok.jpg) no-repeat center #fff;
	height: 370px;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	max-width: 470px;
	min-width: 300px;
	text-align: center;
}
#modal_frame .window.good #win_content {
	background: var(--main-color);
	border-radius: 0 0 14px 14px;
	padding: 10px;
	position: absolute;
	left: 0;
	bottom: 0;
	color: #fff;
	width: calc(100% - 20px);
}

#modal_frame .window.form {
	background: linear-gradient(14deg, #e7e7e7, #ffffffb2);
	text-align: center;
	font-size: 20px;
	backdrop-filter: blur(3px);
	padding-top: 20px;
}

#modal_frame.opened .window {
	transform: scale(1);
	opacity: 1;
}

.window .closer {
	position: absolute;
	right: 5px;
	top: 5px;
	background: transparent;
	border: 0;
	height: 20px;
	width: 20px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
}

.window .closer::before, 
.window .closer::after {
	display: block;
	content: "";
	width: 18px;
	height: 2px;
	transform: rotate(45deg);
	background: #000;
	border-radius: 1px;
	position: absolute;
}
.window .closer::after {transform: rotate(-45deg);}

.window .closer:hover::before,
.window .closer:hover::after {background-color: red;}

#win_content {transition: opacity .3s;}
#win_content.loading {opacity: .6;}
#win_content.loading input[type="submit"],
#win_content input[type="submit"]:disabled {
	background-color: #363636;
	cursor: not-allowed;
}
#win_content h2 {
	margin-bottom: 5px;
	font-size: 29px;
	padding: 10px 0;
}
#win_content > h2:first-child {
	padding-top: 0;
}

.loading_bar {
  width: fit-content;
  font-size: 40px;
  font-family: monospace;
  font-weight: bold;
  color: #0000;
  margin: auto;
  -webkit-text-stroke: 1px var(--main-color);
  --g:conic-gradient(var(--main-color) 0 0) no-repeat text;
  --r:conic-gradient(var(--accent-color) 0 0) no-repeat text;
  background:var(--g) 0,var(--g) 1ch,var(--g) 2ch,var(--g) 3ch,var(--g) 4ch,var(--r) 5ch,var(--r) 6ch;
  background-position-y: 100%;
  animation: l15 3s infinite;
  opacity: .6;
}
.loading_bar::before {
  content: "Profi24";
}
@keyframes l15 {
  0%     {background-size: 1ch 0   ,1ch 0   ,1ch 0   ,1ch 0   ,1ch 0   ,1ch 0   ,1ch 0   }
  14.28% {background-size: 1ch 100%,1ch 0   ,1ch 0   ,1ch 0   ,1ch 0   ,1ch 0   ,1ch 0   }
  28.57% {background-size: 1ch 100%,1ch 100%,1ch 0   ,1ch 0   ,1ch 0   ,1ch 0   ,1ch 0   }
  42.85% {background-size: 1ch 100%,1ch 100%,1ch 100%,1ch 0   ,1ch 0   ,1ch 0   ,1ch 0   }
  57.14% {background-size: 1ch 100%,1ch 100%,1ch 100%,1ch 100%,1ch 0   ,1ch 0   ,1ch 0   }
  71.43% {background-size: 1ch 100%,1ch 100%,1ch 100%,1ch 100%,1ch 100%,1ch 0   ,1ch 0   }
  85.71% {background-size: 1ch 100%,1ch 100%,1ch 100%,1ch 100%,1ch 100%,1ch 100%,1ch 0   }
  100%   {background-size: 1ch 100%,1ch 100%,1ch 100%,1ch 100%,1ch 100%,1ch 100%,1ch 100%}
}

#password_rating {
	height: 3px;
	width: calc(100% - var(--indent) - var(--indent));
	background: #fff;
	position: absolute;
	left: var(--indent);
	margin-top: 8px;
	border-radius: 2px;
}
#password_rating div {
	height: 100%;
	width: 10px;
	transition: all .3s;
}
#password_rating.rating1 div {width: 10px;background: red;}
#password_rating.rating2 div {width: 35%;background: #ff7b00;}
#password_rating.rating3 div {width: 50%;background: #ffc400;}
#password_rating.rating4 div {width: 75%;background: #cedd00;}
#password_rating.rating5 div {width: 100%;background: #18ce00;}

.stages:not(.visible) {display: none;}

.file_hovered {
	background: #ffe59633;
	border-color: var(--accent-color);
}
.file_hovered > * {
	opacity: .3;
}

/* #code_inputs {
	display: flex;
	margin: 20px auto;
	justify-content: center;
}

#code_inputs input {
	border-radius: 0;
	margin: 0;
	width: 40px;
	font-size: 30px;
	padding: 5px;
	text-transform: uppercase;
	text-align: center;
}
#code_inputs input:first-child {border-radius: 10px 0 0 10px;}
#code_inputs input:last-child {border-radius: 0 10px 10px 0;} */

/* search */

#search_overlay {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 5;
	width: 100%;
	height: 100%;
}

#search_field {
	position: relative;
	z-index: 6;
}

#search_field.opened input {
	border-radius: 16px 16px 0 0;
}

.result_bar {
	position: absolute;
	top: 53px;
	margin: 0;
	padding: 10px;
	background: #eee;
	z-index: 10;
	width: 100%;
	box-sizing: border-box;
	left: 0;
	list-style: none;
	border-radius: 0 0 16px 16px;
	font-size: 18px;
	overflow: hidden;
	box-shadow: 0px 4px 5px #00000017;
}
#add_job .result_bar {top: 40px;}
.result_bar li {
	padding: 5px 15px 5px 5px;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	white-space: nowrap;
}
.result_bar li .icon {
	display: block;
	width: 20px;
	height: 20px;
	background-size: contain;
	background-repeat: no-repeat;
	margin-right: 8px;
	font-size: 22px;
}
.result_bar li .parent {
	opacity: .65;
	max-width: 45%;
	display: block;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.result_bar li .parent::after {
	content: "/";
	margin: auto 5px;
	opacity: .75;
}
.result_bar li.space {
	padding: 1px 0 0;
	background: #d3d3d3;
	margin: 5px 0;
}
.result_bar li.empty {color: #777;}
.result_bar li:not(.space):not(.empty):hover,
.result_bar li.focus {
	background: var(--accent-color);
	color: #fff;
	cursor: pointer;
}
.result_bar li:not(.empty):hover .icon,
.result_bar li.focus .icon {
	filter: brightness(100);
}

#form_message.error,
#win_content #form_message.error {
	text-align: center;
}
#win_content #form_message.error {
	color: var(--accent-color);
}

/* #form_message.error::before {
	content: "\eac5";
	display: block;
	font: 70px 'Lineicons';
	text-align: center;
	color: var(--main-color);
	line-height: 60px;
	margin-bottom: 15px;
} */

.window:not(.form) #form_message.error::before {
	content: "\eac5";
	display: block;
	font: 80px 'Lineicons';
	text-align: center;
	color: #f2b29b;
	background: linear-gradient(45deg ,#e3683a94 ,#dd8a6c);
	margin: -32px -32px 20px;
	border-radius: 15px 15px 0 0;
	box-shadow: 0 5px 1px #00000021;
	padding: 10px 0px;
	text-shadow: -1px -1px 0 #ffffff4a, -2px -2px 0 #ffffff38, 1px 1px 0 #00000047;
}

/* items list */

.items {
	display: flex;
	flex-direction: column;
	list-style: none;
	padding: 0;
	gap: 5px;
	margin: 0;
}
ul.items {
	list-style: none;
}
.items.job_list {
	display: grid;
	gap: 15px;
	grid-template-columns: repeat(2, 1fr);
}

.items .item {
	padding: 5px 15px;
	border: 1px solid #cacaca;
	border-radius: 7px;
	display: flex;
	align-items: center;
	position: relative;
}
.items .item.checker {
	padding: 0 5px 0 25px;
	display: grid;
	grid-template-columns: 17px auto;
	border: 0;
}
.items .item.checker.has_sub {
	padding-left: 0;
	grid-template-columns: 25px 17px auto;
}

.items .item.checker.has_sub .sub_toggle {
	display: block;
	width: 20px;
	height: 20px;
	position: relative;
}
.items .item.checker.has_sub .sub_toggle::before {
	position: absolute;
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border: 1px solid var(--accent-color);
	border-width: 1px 1px 0 0;
	transform: rotate(45deg);
	top: 5px;
	transition: transform .3s;
}
.items .item.checker.has_sub.opened > .sub_toggle::before {
	transform: rotate(135deg);
}

ul.items .item.checker.has_sub .items {
	padding-top: 5px;
	margin-left: 10px;
	width: 100%;
	grid-column: 1 / -1;
}
ul.items .item.checker.has_sub:not(.opened) > .items {
	display: none;
}

#service_list.items .item {
	font-size: 16px;
}
.items .item.checker .items .item {
	border: 0;
}

.items button {
	display: flex;
	border: 0;
	text-decoration: none;
	cursor: pointer;
	width: 100%;
	padding: 5px 12px;
	align-items: center;
	gap: 6px;
	background: transparent;
	font-size: 17px;
}

.items.job_list .item {
	display: grid;
	grid-template-areas: "img date stat" "img title title" "img desc desc" "img addr price";
	grid-template-columns: 150px auto 115px;
	grid-template-rows: 20px 33px auto 24px;
	gap: 0 15px;
	box-sizing: border-box;
	align-items: flex-start;
	padding: 5px 10px 5px 5px;
	height: 100%;
}

.items.job_list button {
	border: 1px solid;
	border-radius: 10px;
	padding: 1px 3px 2px;
}

.items button::before {font-size: 20px;}

.items.job_list .item h3 {
	font-weight: normal;
	margin: 2px 0 5px;
	text-overflow: ellipsis;
	height: 100%;
	overflow: hidden;
	white-space: nowrap;
}
.items.job_list .item h3 a {
	color: var(--main-color);
	text-decoration: none;
}

.items.job_list .item .price {
	grid-area: price;
	text-align: right;
	color: var(--main-color);
	font-size: 17px;
}
.items.job_list .item .addr {
	grid-area: addr;
	color: #777;
	font-size: 16px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.items.job_list .item .status_bar {
	grid-area: stat;
	font-size: 14px;
	padding: 2px 10px 2px 5px;
	border: 0;
	white-space: nowrap;
	width: fit-content;
	gap: 5px;
	position: absolute;
	right: 0;
}

div.status_bar {
	display: flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 20px;
	gap: 10px;
	border: 1px solid;
}
.status_bar .lni {
	display: flex;
	align-items: center;
}
.status_bar .lni::before {
	height: 20px;
	font-size: 20px;
}

.status_bar.red {
	background-color: #f1cbcb77;
	border-color: #c84d4d;
	color: #c84d4d;
}
.status_bar.orange {
	background-color: #f1e5cb;
	border-color: #c88f4d;
	color: #c88f4d;
}
.status_bar.green {
	background-color: #daf1cb63;
	border-color: #57b53b;
	color: #57b53b;
}
.status_bar.blue {
	background-color: #bacfe75d;
	border-color: #3b74b5;
	color: #3b74b5;
}

.items.job_list .item .description {
	grid-area: desc;
	color: #191919;
	height: 42px;
	overflow: hidden;
	font-size: 17px;
	text-overflow: ellipsis;
	hyphens: auto;
}
.items.job_list .item picture {
	grid-area: img;
	display: flex;
	width: 150px;
	height: 100%;
	border-radius: 5px;
	gap: 0;
	padding: 0;
	overflow: hidden;
	background-color: #e4e2e2;
}
.items.job_list .item img {
	display: block;
	max-width: 150px;
	margin: auto;
}
.items.job_list .item img:not(.no_photo) {
	height: 100%;
	object-fit: cover;
}

.items.list .item {
	flex-direction: column;
	width: 100%;
}
.items .item .title {
	margin-top: 0;
	grid-area: title;
}

.item.checker {cursor: pointer;}
.item.checker .checkbox {
	display: block;
	width: 15px;
	height: 15px;
	border: 1px solid #cacaca;
	transition: background .15s;
	margin: auto 0;
	position: relative;
	cursor: pointer;
}
.item.checker label {
	cursor: pointer;
	padding: 5px 5px 5px 10px;
}
.item.checker.select_all label {
	color: #777;
}
.item.checker .checkbox::before {
	content: "";
	position: absolute;
	left: 0;
	top: 15px;
	margin-top: -9px;
	border-radius: 3px;
}
/* .items .item.check {
	background-color: var(--accent-color);
	color: #fff;
} */
.item.checker:hover > .checkbox {border-color: var(--accent-color);}
.item.checker.check .checkbox {
	background: var(--accent-color);
	border-color: var(--accent-color);
}
.item.checker .checkbox::after {
	position: absolute;
	content: "\ea78";
	font-family: LineIcons;
	font-size: 20px;
	left: 3px;
	top: 50%;
	color: #fff;
	margin-top: -12px;
	transform: scale(.1);
	opacity: 0;
	transition: transform .3s, opacity .4s;
}
.item.checker.check .checkbox::after {
	transform: scale(1);
	opacity: 1;
}

.date {
	font-size: 14px;
	color: #777;
}

table.list {
	width: 100%;
	border-collapse: separate;
	border: 0;
}

.rate_big {height: 35px;display: flex;}
.rate_big a {
	font-size: 40px;
	cursor: pointer;
}
.rate_big.r0 a {opacity: .6;}

/* reviews */

.reviews {
	background: linear-gradient(#7A9FD9, #BCC7DB, #fff);
	min-height: 400px;
}

.reviews h2 {color: #fff;}

/* .reviews_list {padding-top: 40px;} */

.review_item,
.worker_item {
	background: #fff;
	border-radius: 15px;
	padding: 20px 25px;
	box-sizing: border-box;
	box-shadow: 0 3px 6px #0003;
	position: relative;
	display: grid;
	grid-template-areas: "cover name date" "cover desc desc" "cover rate author";
	align-items: center;
}
.review_item .report {
	position: absolute;
	left: 15px;
	top: 8px;
	font-size: 14px;
	color: #d29a9a;
	cursor: pointer;
}
.reviews .review_item .report {display: none;}
.review_item .report:hover {color: red;}
.review_item .date {grid-area: date;}
.review_item .date,
.review_item .author {
	color: #A8A8A8;
	font-size: 13px;
	text-align: right;
}
.review_item .author {grid-area: author;}
.review_item .name {
	color: #363636;
	grid-area: name;
}
.review_item .desc {
	grid-area: desc;
	font-size: 18px;
}
.review_item .rate {
	grid-area: rate;
	display: flex;
}
.review_item .photo,
.worker_item .photo {
	margin-right: 20px;
	width: 140px;
	min-width: 140px;
	height: 140px;
	min-height: 140px;
	border-radius: 50%;
	overflow: hidden;
	background: #cfcfcf;
	grid-area: cover;
	text-align: center;
	font-size: 70px;
	line-height: 135px;
	color: #0000005e;
	font-weight: 500;
}
.review_item .photo img {
	width: 100%;
	object-fit: cover;
	height: 100%;
	display: block;
}

.review_item .lni-star-fat {
	color: var(--star-color);
}
.lni-star-fat.off {
	opacity: .5;
	color: #000;
}

/* Workers list */

.worker_item {
	grid-template-areas: "cover name name rate" "cover count achievements achievements";
	grid-template-columns: 100px auto auto 87px;
}

.worker_item .photo {
	width: 85px;
	min-width: 85px;
	height: 85px;
	min-height: 85px;
	font-size: 50px;
	line-height: 91px;
}
.worker_item .photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.worker_item .title {
	margin: 0;
}
.worker_item .rate {
	grid-area: rate;
}

.worker_item .rate .lni-star-fat {
	color: var(--star-color);
}

.worker_item .counts {
	grid-area: count;
	padding-top: 10px;
}

.worker_item .counts p {
	font-size: 13px;
	text-align: left;
	margin: 0px 5px 2px 0;
	display: flex;
	align-items: center;
	padding: 1px 0;
}

.worker_item .online {
	position: absolute;
	color: #fff;
	font-size: 11px;
	background: green;
	border-radius: 10px;
	padding: 1px 5px;
	left: 10px;
	top: 10px;
}

.worker_item .counts p b {
	font-size: 23px;
	line-height: 20px;
	margin: auto 8px auto 5px;
	font-weight: normal;
}
.worker_item .achievements {
	display: flex;
	margin: auto 0 0 auto;
	grid-area: achievements;
}
.worker_item .achievements i {
	font-size: 12px;
	color: #777;
}
.worker_item .achievements img {
	width: 30px;
}


.author_photo {
	width: 150px;
	height: 150px;
	overflow: hidden;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 5px auto;
}

.author_photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.author_photo.no_photo {
	font-size: 83px;
	background: linear-gradient(45deg, #c3c3c3, #e5e5e5) #d7d7d7;
	text-align: center;
	line-height: 150px;
	color: #9d9d9d;
	text-transform: uppercase;
}

/* chat */

.chat_window {
	position: fixed;
	right: 10px;
	bottom: 0;
	width: 220px;
	height: 40px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #c6c6c6;
	box-sizing: border-box;
	border-radius: 5px 5px 0 0;
	border-width: 1px 1px 0 1px;
	z-index: 99;
	box-shadow: -2px -4px 10px #00000024;
}
.chat_window.animate {transition: all .4s;}
.chat_window.opened {
	height: 370px;
	width: 350px;
	border-radius: 5px;
	border-width: 1px;
	bottom: 5px;
	box-shadow: 2px 2px 5px #00000024;
	max-width: calc(100vw - 20px);
}
#chat_window .chat_header span {min-height: 22px;}
#chat_window .chat_header p > span:first-child {display: none;}
#chat_window:not(.opened) .chat_header p > span:first-child,
#chat_window.chats_list .chat_header p > span:first-child {display: block;}
#chat_window:not(.opened) .chat_header p > span:last-child,
#chat_window.chats_list .chat_header p > span:last-child {display: none;}
#chat_window.opened:not(.chats_list) .chat_header p > span:last-child {
	display: block;
	transform: translateY(-5px);
	font-size: 16px;
}
#chat_window .chat_header p span span {
	display: block;
	font-size: 12px;
	min-height: 0;
	position: absolute;
	top: 19px;
	white-space: nowrap;
	max-width: 255px;
	overflow: hidden;
}
#chat_window.chats_list .empty_chat {
	padding: 10px 16px;
	font-size: 15px;
	color: #777;
}
#chat_header button {
	width: 20px;
	height: 24px;
	position: relative;
	background: transparent;
	border: 0;
	color: var(--main-color);
	font-size: 23px;
	cursor: pointer;
}
#chat_header button.back {
	margin-right: 6px;
}
#chat_header button.expand {
	margin-left: auto;
	margin-right: 20px;
}
.chat_window .chat_header:hover .back {color: #fff;}

.chat_window.chats_list .back,
.chat_window.chats_list .send_form,
.chat_window:not(.opened) button,
.chat_window:not(.opened) .chat_body,
.chat_window:not(.opened) .send_form {
	display: none;
}

.chat_window .send_form {
	padding: 5px 10px;
	gap: 10px;
	position: absolute;
	bottom: 5px;
	display: flex;
	width: 100%;
	box-sizing: border-box;
}

.chat_window .send_form .send_button {
	background: transparent;
	border: 1px solid #2c5ca812;
	color: var(--main-color);
	width: 38px;
	height: 38px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 5px;
}
.chat_window .send_form .send_button::before {
	font-size: 30px;
	margin-left: 6px;
}
.chat_window .send_form .send_button:hover {
	background: var(--main-color);
	color: #fff;
}

.chat_window .send_form .send_message {
	margin: 0 auto;
}

.chat_window .chat_header {
	cursor: pointer;
	position: relative;
	padding: 7px 10px;
	display: flex;
	align-items: center;
	border: 1px solid #f4f4f4;
	border-width: 0 0 1px 0;
}
.chat_window.new_messages .chat_header {
	animation: new_message 1.5s linear;
}
@keyframes new_message {
	0%,100% {
		background-color: var(--accent-color);
		color: #fff;
	}
	50% {
		background-color: #fff;
		color: #000;
	}
}
.chat_window .chat_body {
	padding: 5px 10px;
	font-size: 16px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 5px;
	max-height: 247px;
	overflow: auto;
}

.chat_window .chat_body .send_offer {
	position: absolute;
	bottom: 56px;
	z-index: 2;
	font-size: 13px;
	border: 1px solid #d3d3d3;
	padding: 2px 5px;
	color: var(--accent-color);
	text-align: center;
	width: 100%;
	box-sizing: border-box;
	left: 0;
	border-width: 1px 0;
	cursor: pointer;
}

.chat_window .chat_body .send_offer:hover {
	background: var(--accent-color);
	color: #fff;
	border-color: var(--accent-color);
}

.chat_window .chat_body::after {
	content: "";
	display: block;
	width: 100%;
	height: 20px;
	background: linear-gradient(#fff0,#fff);
	position: absolute;
	bottom: 67px;
	left: 0;
}

.chat_window.chats_list .chat_body {
	max-height: 298px;
	padding: 2px 0;
}

.chat_window .chat_body.loading {
	filter: blur(2px);
	opacity: .5;
}

.chat_window .chat_item {
	border-radius: 30px 30px 0 30px;
	padding: 6px 12px 8px;
	width: 85%;
	box-sizing: border-box;
	position: relative;
}
.outbox {background: #c2e2ff;}
.inbox {background: #dbffc2;}
.chat_window .chat_item.online::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	position: absolute;
	left: 10px;
	top: 5px;
	background: rgb(43, 194, 43);
	border-radius: 50%;
}
.chat_window .chat_item.offer {
	border: 1px solid #6cf1d2;
	background: linear-gradient(45deg, #ffffff2b, #00000014) #4ae9c4;
	animation: offer 2s infinite alternate;
	font-size: 14px;
	box-shadow: -1px 1px 0 #54b479;
}
.chat_window .chat_item.offer b {
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: normal;
	color: #48a965;
	margin-bottom: 3px;
	display: block;
}
@keyframes offer {
	from {background-color: #30e2b9cf;}
	to {background-color: #83fadecf;}
}

.chat_window .chat_item.inbox {
	margin-left: auto;
	border-radius: 30px 30px 30px 0;
}
.chat_window .chat_item img {
	width: 55px;
	height: 55px;
	object-fit: cover;
	border-radius: 50%;
	grid-area: img;
}
.chat_window.chats_list .chat_item {
	display: grid;
	border-radius: 2px;
	padding: 2px 10px;
	gap: 0 10px;
	align-items: center;
	width: 100%;
	cursor: pointer;
	grid-template-areas: "img name date" "img work work" "img text text";
	grid-template-columns: 55px auto 35px;
}
.chat_window .chat_item:last-child {margin-bottom: 10px;}
.chat_window.chats_list .chat_item.system {
	background-color: #ffe0e0;
}
.chat_window.chats_list .chat_item:hover {
	background-color: var(--main-color);
	color: #fff;
}
.chat_window.chats_list .chat_item:hover * {
	color: #fff;
}
.chat_window.chats_list .chat_item .name {
	grid-area: name;
	font-weight: bold;
	font-size: 17px;
	padding: 0;
}
.chat_window.chats_list .chat_item .work {
	grid-area: work;
	font-size: 16px;
}
.chat_window.chats_list .chat_item .message,
.chat_window.chats_list .chat_item .date {padding: 0;}

.chat_window .chat_item .message i {
	color: #bd8888;
}
.chat_window .chat_item.bad_word {
	background-color: #ecdbdb;
}

.chat_window .chat_item .time {
	font-size: 12px;
	color: #666;
	position: absolute;
	right: -40px;
	bottom: 2px;
}
.chat_window:not(.chats_list) .date {
	margin: auto;
}
.chat_window .chat_item.inbox .time {
	left: -40px;
	right: auto;
}

.chat_window.chats_list .chat_item .text {
	padding: 0;
	grid-area: text;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: .7;
	font-size: 15px;
	width: calc(100% - 12px);
}

.chat_window .chat_item button {
	position: absolute;
	right: 10px;
	top: 1px;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.chat_window .chat_item button:hover {
	color: red;
}

.chat_window .chat_header p {min-height: 20px;}
.chat_window .chat_header .lni-arrow-upward::before {
	position: absolute;
	font-size: 22px;
	right: 10px;
	top: 50%;
	margin-top: -11px;
	transition: transform .7s;
}
.chat_window.opened .chat_header .lni-arrow-upward::before {
	transform: rotate(180deg);
}
.chat_window .chat_header:hover {
	background: var(--accent-color);
	color: #fff;
}

/* forms  */

input,
textarea,
.multi_list .desc,
select {
	width: 100%;
	box-sizing:border-box;
	display: block;
	padding: 8px 20px;
	border: 1px solid #d3d3d3;
	background-color: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 16px #00000017, 0 7px 6px #0000000a inset;
	outline: none !important;
	margin: 15px auto;
	font-size: inherit;
	font-family: inherit;
}
input::placeholder,textarea::placeholder {color:#c2c2c2;}
input[type="submit"] {
	background-color: var(--main-color);
	color: #fff;
	cursor: pointer;
	margin: 20px auto;
	font-weight: normal;
}
input[type="submit"]:hover {
	background-color: var(--accent-color);
}
input::placeholder,textarea::placeholder,.not_selected {
	color: #9c9c9c;
}

.multi_list {
	position: relative;
	margin-top: 10px;
}
.multi_list .desc {
	position: relative;
	color: #7b7b7b;
	cursor: pointer;
	margin:0;
	overflow: hidden;
	white-space: nowrap;
}
.multi_list .desc::after {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border: 1px solid #6e6e6e;
	border-width: 0 1px 1px 0;
	transform: rotate(45deg);
	position: absolute;
	right: 15px;
	top: 50%;
	margin-top: -9px;
}

.multi_list.opened .desc {
	border-radius: 10px 10px 0 0;
}
.multi_list.opened .desc::after {
	border-width: 1px 0 0 1px;
	margin-top: -5px;
}

.multi_list .counter {
	position: absolute;
	right: 35px;
	text-align: right;
	display: none;
	top: 50%;
	padding: 5px;
	background: #e9e9e9;
	border-radius: 5px;
	color: #8d8f91;
	font-weight: normal;
	height: 32px;
	box-sizing: border-box;
	margin-top: -15px;
}

.multi_list:not(.opened) > .items {
	height: 0;
	opacity: 0;
	padding-top: 0;
	padding-bottom: 0;
	overflow: hidden;
}
.multi_list > .items {
	position: absolute;
	z-index: 3;
	background: #f2f2f2;
	border: 1px solid #d3d3d3;
	padding:  5px;
	max-height: 190px;
	height: 190px;
	overflow: auto;
	margin-top: -1px;
	box-sizing: border-box;
	transition: height .3s, opacity .6s, padding .7s;
	box-shadow: 0 4px 16px #00000017, 0 1px 1px #0000000a inset;
}

.list td, .list th {
	padding: 4px 10px;
	background: #fffcee;
	border: 1px solid #fff5c9;
	transition: background .4s;
	box-sizing: border-box;
}
.list li {
	position: relative;
	border: 1px solid #d3d3d3;
	padding: 4px 10px;
	margin: 1px auto;
	border-radius: 5px;
}

.list td:first-child,
.list th:first-child {
	border-radius: 10px 0 0 10px;
}
.list td:last-child,
.list th:last-child {
	border-radius: 0 10px 10px 0;
}
.list tr:hover td {background-color: #e6d4aa;}

.list th {
	text-align: left;
	padding: 2px 10px;
	color: #fff;
	font-size: 15px;
	background: var(--main-color);
	font-weight: normal;
	letter-spacing: .5px;
	border-color: var(--main-color);
}

.title {
	display: block;
	color: var(--main-color);
	font-weight: normal;
	margin-top: 10px;
	font-size: 19px;
}

#win_content .title {color: #000;margin-top: 0;padding-bottom: 12px;}
#win_content .message {
	color: var(--main-color);
	font-size: 18px;
	margin-bottom: 10px;
}
.message a {
	text-decoration: underline;
	color: var(--accent-color);
	cursor: pointer;
}

.files_bar {
	width: 100%;
	padding: 5px 0 0;
	display: flex;
	justify-content: flex-start;
	gap: 15px;
	flex-wrap:wrap;
}

.files_bar .item {
	border-radius: 10px;
	width: 200px;
	height: 150px;
	text-align: center;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #acacac;
	overflow: hidden;
	position: relative;
}

.files_bar .item.add {
	padding: 110px 0 0;
	background: url(/frontend/images/photo.png) no-repeat center #d3d3d3;
}
.files_bar .item.add::after {
	content: attr(data-name);
	font-size: 20px;
	color: #707070;
}
.files_bar .item input {
	position: absolute;
	right: 0;
	top: 0;
	opacity: 0;
	background: transparent;
	border: 0;
	margin: 0;
}
.files_bar .item:not(.add):not(.mono) input {
	width: 1px;
	height: 1px;
	right: 300px;
}
.files_bar .item.add input,
.files_bar .item.mono input {
	cursor: pointer;
	width: 1000px;
	height: 1000px;
}

.files_bar .item button {
	position: absolute;
	right: 5px;
	top: 5px;
	display: block;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	cursor: pointer;
	padding: 3px;
	background: #ffffff8c no-repeat center;
	backdrop-filter: blur(3px);
	border: 1px solid #000;
	box-sizing: border-box;
	z-index: 2;
}
.files_bar .item button.rotate {
	right: 30px;
	background-image: url(/frontend/images/rotate.svg);
}
.files_bar .item .delete::before,
.files_bar .item .delete::after {
	content: "";
	display: block;
	width: 13px;
	height: 1px;
	background: #000;
	transform: rotate(45deg);
	position: absolute;
	left: 3px;
	top: 9px;
}
.files_bar .item .delete:hover {background: red;}
.files_bar .item button:hover::before,
.files_bar .item button:hover::after {background-color: #fff;}
.files_bar .item .delete::after {transform: rotate(-45deg);}

.files_bar .item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .2s;
}

.toggle_bar {
	display: flex;
	justify-content: space-between;
	width: fit-content;
	align-items: center;
	padding: 8px 0;
	min-width: 380px;
}
.toggle_bar .toggle {margin-left: 10px;margin-right: 0;}
.toggle {
	display: block;
	border-radius: 18px;
	width: 70px;
	height: 20px;
	margin: 0 auto;
	padding: 2px;
	background: #aaa;
	box-sizing: border-box;
	transition: all .3s;
	cursor: pointer;
	border: 1px solid #707070;
	overflow: hidden;
	box-shadow: 1px 1px 3px #0000003d inset;
}
.toggle::before {
	content: "";
	display: block;
	height: 100%;
	border-radius: 15px;
	background: #fff;
	width: 50%;
	transition: all .3s;
	box-shadow: 5px 5px 10px #0000006b;
}
.select_bar {
	display: flex;
	align-items: center;
}
.select_bar select {
	width: 200px;
	margin: auto 0 auto 10px;
}
.toggle.status1 {
	background: #00c300;
	border-color: #36e31d;
}
.toggle.status1.denied {
	background: #7c8447;
	cursor: not-allowed;
}
.toggle.status1::before {
	transform: translateX(33px);
}


.accent_bar {
	background: #ffffff7a;
	padding: 2px 10px;
	border-radius: 8px;
	font-size: 16px;
}

.accent_bar a,
.accent_bar button {
	background: transparent;
	border: 1px solid #00000013;
	display: block;
	color: #000;
	margin: 2px auto;
	padding: 5px 10px;
	cursor: pointer;
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	border-radius: 5px;
	text-decoration: underline;
}
.accent_bar a:hover,
.accent_bar button:hover {
	background: #fff;
	color: var(--accent-color);
}

.dev_bar {
	font-size: 13px;
	background: #282c34;
	color: #ffd17a;
	box-sizing: border-box;
	padding: 10px 20px 10px 200px;
	margin: 2px 20px;
	border-radius: 5px;
}

.big_number {
	font-size: 90px;
	color: var(--main-color);
	margin-right: 15px;
	font-weight: 500;
	display: block;
	line-height: 75px;
}

@media (max-height: 750px) {
	.main_header header {padding-top: 50px;}
	.main_header .wrapper.i2 {padding-top: 90px;}
	.main_header .full_height {max-height: calc(100vh - 100px);}
}

@media (max-height: 700px) {
	.main_header header {padding-top: 35px;}
	.main_header .wrapper.i2 {padding-top: 70px;}
}
@media (max-height: 650px) {
	.main_header header {padding-top: 25px;}
	.main_header .wrapper.i2 {padding-top: 60px;}
}

@media (max-width: 1700px) {
	.i4 {
		grid-template-columns: repeat(4, 1fr);
		gap: 25px;
	}
}
@media (max-width: 1540px) {
	:root {
		--indent: 28px;
    }

	.main_header h1 {
		font-size: 47px;
		margin: 45px 0 25px;
	}
	#modal_frame .window.form {font-size: 19px;}
	#win_content h2 {font-size: 27px;}
	input, select {margin: 13px auto;}
	.big_number {font-size: 87px;}
	.wrapper {padding: 0 60px;}
	.main_header::after {right: -260px;}
	.main_header .logo img {width: 310px;}
}

@media (max-width: 1439px) {
	.big_number {font-size: 82px;}
	.wrapper {padding: 0 50px;}
	.main_header::after {right: -280px;}
	.main_header .logo img {width: 280px;}
	.main_header h1 {
		font-size: 45px;
		margin: 40px 0 22px;
	}

	.items.job_list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1279px) {
	:root {
		--indent: 25px;
    }
	.small {font-size: 15px;}
	.mobile_only {display: block;}
	span.mobile_only {display: inline;}
	.desktop_only {display: none !important;}
	body {font-size: 17px;}
	h1 {font-size: 28px;}
	h2 {font-size: 26px;}
	#win_content h2 {font-size: 25px;}
	#modal_frame .window.form {font-size: 18px;}
	.big_number {font-size: 75px;}
	.wrapper {padding: 0 40px;}
	.main_header header {padding-top: 40px;}
	.main_header::after {display: none;}
	.main_header .logo img {width: 240px;}
	.main_header h1 {
		margin: 30px 0 20px;
		font-size: 42px;
	}
	.i4 {grid-template-columns:repeat(2, 1fr);}
	.i3,.i2 {display: block;}
	.main_header .full_height {
		max-width: none;
	}
	.digits > div,.how_its_work > div {
		text-align: center;
		justify-content: center;
	}
	.items.job_list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 750px) {
	.small {font-size: 14px;}
	:root {
		--indent: 22px;
    }
	.wrapper {padding: 0 22px;}
	body {font-size: 16px;}
	h1 {font-size: 24px;}
	.main_header h1 {
		font-size: 30px;
		margin-top: 15px;
	}
	h2 {
		font-size: 22px;
		line-height: 23px;
	}
	#win_content h2 {font-size: 20px;}
	#modal_frame .window.form {font-size: 17px;}
	.main_header header {padding-top: 20px;}
	.main_header .logo img {
		width: 170px;
	}
	img.relative {
		max-width: 90vw;
		margin-top: 20px;
		margin-bottom: 10px;
	}
	.main_header p {
		position: absolute;
		bottom: 0;
		background: var(--accent-color);
		color: #fff;
		left: 0;
		width: 100%;
		box-sizing: border-box;
		padding: 5px 20px;
		font-size: 15px;
		text-align: center;
		z-index: 3;
	}
	.button span {padding: 8px 20px;}
	.button.show_more::before {
		font-size: 32px;
	}
	.big_number {font-size: 60px;}
	.i4 {
		grid-template-columns: 100%;
		gap: var(--indent);
	}
	.i1-2 {grid-template-columns: 1fr;gap: 0;}
	.fixed_menu header::after,
	.second_page header::after {
		display: none !important;
	}
	
	#modal_frame .window {
		border-radius: 15px;
	}

	.with_shadow::after {
		box-shadow: 0 10px 20px #0000007e;
	}

	.toggle_bar {
		min-width: 0;
		width: 100%;
	}

	.review_item {
		margin-bottom: 15px;
		padding: 15px 20px;
		grid-template-areas: "cover cover" "name name" "desc desc" "rate date" "author author";
	}
	.review_item .photo {
		margin: 0 auto 15px;
	}
	.review_item .desc {margin-top: 10px;margin-bottom: 10px;}
	.review_item .name {text-align: center;font-size: 20px;}

	.files_bar div.item.mono {
		max-width: 400px;
		margin-left: auto;
		margin-right: auto;
		width: 100%;
	}
	.items.job_list .item picture {width: 100%;min-height: 120px;}
	.items.job_list .item picture img {max-width: 300px;}
	.items.job_list .item {
		gap: 5px 5px;
		grid-template-areas: "img img" "date stat" "title title" "desc desc" "addr price";
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
	}

	#chat_window:not(.opened) {display: none;}
	.chat_window.opened {
		height: calc(100% - 152px);
		width: 100%;
		bottom: 75px;
	}

	.chat_window.opened.expanded {
		max-width: none;
		right: 0;
		height: 100vh;
		bottom: 0;
		border-radius: 0;
	}
	.second_page {padding-bottom: 30px;}
}

/* portrait mode */
@media (max-height: 500px) AND (min-width: 600px) {
	.main_header h1 {
		margin: 20px 0 0px;
		width: 50%;
		font-size: 35px;
	}
	div.search_bar {
		width: 50%;
		position: absolute;
		right: 40px;
		top: 50%;
		margin-top: 25px;
	}
	.main_header .relative {
		position: absolute;
		right: -40px;
		top: 0;
		width: 50%;
		z-index: 1;
	}
	.main_header p {
		margin: 20px 0;
		background: transparent;
		position: static;
		color: #000;
		text-align: left;
		padding: 0;
	}

}