.profile-project {
	padding: 16px;
}
.profile-project__box {
	height: calc(100vh - 400px);
	overflow: auto;
}
.profile-project__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(288px, auto));
	justify-content: start;
	grid-gap: 16px;
	max-width: calc((320px*4) + (16px*3));
	margin: 0 auto;
}
.profile-project__list.preload {
	position: relative;
	height: calc(100vh - 368px);
}
.preload::after {
	background-color: var(--grayscale-barely);
}
.profile-project__image {
	position: relative;
	box-shadow: 0 0 0 1px rgba(64,64,64,.05);
}
.profile-project__link {
	display: block;
	max-width: 320px;
	height: 240px;
	width: 100%;
}
.profile-project__link picture {
	display: block;
	height: 100%;
}
.profile-project__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.profile-project__link--title {
	background: linear-gradient(180deg, rgba(32, 32, 32, 0) 0%, rgba(32, 32, 32, 0.75) 100%);
	position: absolute;
	bottom: 0;
	left: 0;
	height: 48px;
	padding: 8px 16px;
	width: 100%;
	opacity: 0;
	transition: all .15s ease-in-out;
}
.profile-project__link:hover .profile-project__link--title {
	opacity: 1;
}
/**/
.profile-project__icons {
	position: absolute;
	display: flex;
	right: 0;
	top: 0;
}
.profile-project__icons .icon.icon--project--favorite {
	position: unset;
}
.profile-project__icons ._hint {
	left: unset;
	right: 100%;
}
.profile-project__icons .project-dropmenu__btn {
	padding: 0;
}
.profile-project__icons .project-dropmenu__btn .icon {
	color: #fff;
	filter: drop-shadow(0 0 2px rgba(0,0,0,.2));
}
.project-dropmenu__dropbox.corner--dropmenu {
	left: unset;
	right: 0;
}
/**/

.profile-nav-selected__row .select__button {
	width: auto;
	max-width: 160px;
	min-width: inherit;
	border: none;
	padding-top: 4px;
	color: var(--primary-base);
}
.profile-nav-selected__row .select__text {
	font-size: 16px;
	line-height: 100%;
}
.profile-nav-selected__row .icon__pic {
	color: var(--primary-base);
}
.profile-nav-selected__row .select__box {
	width: 160px;
	left: 0;
	background-color: #fff;
}
.profile-nav-selected__row .select__box li:not(:last-child) {
	border-bottom: 1px solid var(--grayscale-pale);
}
.profile-nav-selected__row .select__box .select__filter {
	font-weight: 400;
	min-height: 40px;
	display: flex;
	align-items: center;
	padding: 0 8px 0 16px;
	font-size: 16px;
	line-height: 20px;
	color: var(--primary-base);
}
.profile-nav-selected__row .select__box a._active,
.profile-nav-selected__row .select__box a:hover {
	background-color: var(--primary-base);
	color: #fff;
}
@media (max-width: 1800px) {
	.fix--width .profile-project__list {
		padding-right: 8px;
	}
}
@media (max-width: 1680px) {
	.profile-project__list {
		max-width: calc((320px*3) + (16px*2));
	}
}
@media (max-width: 1366px) {
	.profile-project__box {
		height: calc(100vh - 312px);
	}
}
@media (min-width: 1261px) and (max-width: 1366px) {
	.profile-nav__all-maker .text--size--default {
		font-size: 0;
	}
	.profile-project__list {
		grid-template-columns: repeat(auto-fit, minmax(208px, auto));
		max-width: calc((256px*3) + (16px*2));
	}
	.profile-project__link {
		max-width: 256px;
		height: 192px;
	}
}
@media (max-width: 1270px) {
	.profile-project__box {
		height: calc(100vh - 428px);
	}
}
@media (max-width: 1260px) {
	.profile-project__list {
		grid-template-columns: repeat(auto-fit, minmax(256px, auto));
		max-width: calc((320px*2) + 16px);
	}
}
@media (max-width: 1024px) {
	.profile-project__list {
		max-width: 320px;
	}
	.profile-project__link--title {
		opacity: 1;
	}
}
@media (max-width: 720px) {
	.profile-project__box {
		height: auto;
		padding-bottom: 16px;
	}
}
@media (min-width: 581px) and (max-width: 720px) {
	.profile-project__list {
		grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
		max-width: inherit;
		gap: 16px;
		padding: 0 16px;
	}
	.profile-project__link {
		max-width: inherit;
		height: 192px;
	}
}
@media (min-width: 641px) and (max-width: 860px) {
	.select__button._active {
		border-radius: 2px 2px 0 0;
	}
	.nav--select--tablet .select--box {
		background-color: #fff;
		max-width: inherit;
		top: 40px;
		left: 16px;
		width: calc(100% - 32px);
	}
	.nav--select--tablet .select--box li:not(:last-child) {
		border-bottom: 1px solid var(--grayscale-light);
	}
	.nav--select--tablet .select__button {
		padding-left: 16px;
	}
	.nav--select--tablet .select__box .select__filter {
		padding-left: 16px;
		min-height: 32px;
		color: var(--grayscale-dark);
	}
	.nav--select--tablet .select--box li a {
		padding-left: 16px;
		min-height: 32px
	}
	.nav--select--tablet .select--box li a._active {
		background-color: var(--primary-base);
		color: #fff;
	}
}
@media (min-width: 471px) and (max-width: 860px) {
	.profile-nav-selected__row .select__button {
		width: 100%;
		max-width: inherit;
		border: 1px solid var(--grayscale-soft);
		color: var(--grayscale-base);
	}
	.profile-nav-selected__row .icon__pic {
		color: var(--grayscale-base);
	}
	/**/
	.profile-project {
		background-color: #fff;
		border-top: 2px solid var(--grayscale-barely);
		border-right: 2px solid var(--grayscale-barely);
		padding: 0;
	}
	.nav--select--tablet {
		padding: 8px 16px;
		flex: 1;
	}
	.profile-project__box {
		background-color: var(--grayscale-barely);
		padding-top: 16px;
	}
}
@media (max-width: 640px) {
	.profile-nav-selected__row .select__box {
		width: auto;
	}
	.profile-nav-selected__row .select__box li:not(:last-child) {
		border-bottom: none;
	}
	.profile-nav-selected__row .select__box .select__filter {
		color: #fff;
		padding: 0 8px;
	}
}
@media (max-width: 471px) {
	.profile-nav__list .profile-nav--data {
		order: 1;
	}
	.profile-nav__list .profile-nav--portfolio {
		order: 2;
	}
	.profile-nav__list .profile-nav--reviews {
		order: 3;
	}
}
@media (max-width: 470px) {
	.profile-nav--portfolio {
		display: flex;
		align-items: center;
		gap: 0 16px;
		justify-content: space-between;
	}
	.profile-nav-selected__row {
		padding-right: 48px;
	}
	.profile-project {
		padding: 0;
	}
	.profile-project__box {
		padding-top: 16px;
	}
}
@media (max-width: 350px) {
	.profile-project__box {
		padding-top: 8px;
		padding-bottom: 8px;
	}
	.profile-project__list {
		padding: 0 8px;
		max-width: inherit;
		gap: 8px 0;
		grid-template-columns: 1fr;
	}
	.profile-project__link {
		max-width: inherit;
	}
}

/* Стили для подсветки незаполненных обязательных полей */
.field-error,
input.field-error,
textarea.field-error,
.selectric.field-error,
#upload.field-error {
	border: 2px solid #ff0000 !important;
}

#upload.field-error .items-1 {
	border: 2px solid #ff0000 !important;
}

.agree__label.field-error {
	color: #ff0000;
}

/* Гарантируем, что чекбокс согласия всегда активен и кликабелен */
.agree {
	position: relative;
	z-index: 10;
}

.agree__label {
	pointer-events: auto !important;
	cursor: pointer !important;
	opacity: 1 !important;
	display: flex !important;
	align-items: center;
	position: relative;
}

.agree__label input[type="checkbox"] {
	pointer-events: auto !important;
	cursor: pointer !important;
	position: absolute;
	opacity: 0;
	width: 20px;
	height: 20px;
	left: 0;
	z-index: 2;
}

.agree__label .checkbox-custom {
	pointer-events: none;
	position: relative;
	z-index: 1;
}

.agree__label .label {
	pointer-events: auto;
	cursor: pointer;
}