.ap-ds-works__grid_loading {
	opacity: .5;
	pointer-events: none;
	transition: opacity .2s;
}

.ap-ds-works__empty {
	padding: 48px 0;
	text-align: center;
	color: #808080;
}

.ap-ds-works__more {
	margin: 12px 0 8px;
}

.ap-teaser-slider__item_empty {
	background: #f2f2f2;
	min-height: 220px;
}

/* ---- корзины модератора ---- */
.ap-ds-baskets {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	justify-content: flex-end;
	margin: 0;
	font-size: 13px;
}

.ap-ds-baskets__label {
	color: #808080;
}

.ap-ds-baskets__item,
.ap-ds-baskets__reset {
	background: none;
	border: none;
	padding: 4px 0;
	cursor: pointer;
	font-size: 13px;
	color: #1a1a1a;
	border-bottom: 1px dashed transparent;
}

.ap-ds-baskets__item:hover,
.ap-ds-baskets__reset:hover {
	color: #e2001a;
}

.ap-ds-baskets__item_active {
	color: #e2001a;
	font-weight: 700;
	border-bottom-color: #e2001a;
}

.ap-ds-baskets__count {
	color: #e2001a;
	font-weight: 700;
}

.ap-ds-baskets__reset {
	color: #808080;
	text-decoration: underline;
}

.ap-ds-baskets__reset_active {
	color: #e2001a;
	font-weight: 700;
	text-decoration: none;
}

/* ---- бейдж стадии на тизере  */
.ap-ds-teaser-stage {
	position: absolute;
	left: 8px;
	bottom: 8px;
	z-index: 3;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	line-height: 1.4;
	background: rgba(255, 255, 255, .9);
	color: #1a1a1a;
}

.ap-ds-teaser-stage_long_list,
.ap-ds-teaser-stage_short_list {
	background: rgba(43, 178, 76, .92);
	color: #fff;
}

.ap-ds-teaser-stage_deleted {
	background: rgba(26, 26, 26, .92);
	color: #fff;
}

/* бейдж-ссылка на анкету  */
.ap-contest-modal-main__header {
	z-index: 6;
}

.ap-contest-modal-main__top-panel {
	position: relative;
	z-index: 6;
}

.ap-ds-work-code-link {
	pointer-events: auto;
	cursor: pointer;
}

/* превью-слайдер */
#ap-contest-modal .ap-contest-modal-previews-slider__img {
	display: inline-block;
	width: auto;
	vertical-align: top;
}

#ap-contest-modal .ap-contest-modal-previews-slider__item {
	width: auto;
	flex: 0 0 auto;
}

/* ---- плашка конкурс/номинация в модалке ---- */
.ap-ds-work-nomination {
	position: absolute;
	top: 64px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 6;
	max-width: min(560px, calc(100% - 32px));
	padding: 10px 18px;
	/*border-radius: 16px;*/
	border-radius: 30px;
	background: rgba(255, 255, 255, .75);
	text-align: center;
	color: #1a1a1a;
	border: 1px solid #1a1a1a;
}

.ap-ds-work-nomination_editable {
	cursor: pointer;
}

.ap-ds-work-nomination_editable:hover {
	background: rgba(255, 255, 255, .92);
}

.ap-ds-work-nomination__contest {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.35;
}

.ap-ds-work-nomination__nomination {
	margin: 2px 0 0;
	font-size: 12px;
	line-height: 1.35;
}

/* ---- панель модерации ---- */
.ap-ds-mod {
	display: contents;
}

/* иконка-переключатель */
.ap-contest-modal-main__action.ap-ds-mod__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ap-ds-mod__toggle .ap-ds-mod__dots {
	width: 40px;
	height: 22px;
	/*display: grid;*/
	/*grid-template-columns: repeat(2, 8px);*/
	/*grid-template-rows: repeat(2, 8px);*/
	/*gap: 4px;*/
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}

.ap-ds-mod__dot {
	display: none;
	/*fill: #2bb24c;*/
	fill: lime;
	/*width: 8px;*/
	/*height: 8px;*/
	/*border-radius: 50%;*/
	/*background: #c9c9c9;*/
}

.ap-ds-mod__dot_filled {
	background: #2bb24c;
}

.ap-ds-mod__dots_stage_0 .ap-ds-mod__dot:nth-child(1) {
	display: block;
}

.ap-ds-mod__dots_stage_1 .ap-ds-mod__dot:nth-child(1),
.ap-ds-mod__dots_stage_1 .ap-ds-mod__dot:nth-child(2) {
	display: block;
}

.ap-ds-mod__dots_stage_2 .ap-ds-mod__dot:nth-child(1),
.ap-ds-mod__dots_stage_2 .ap-ds-mod__dot:nth-child(2),
.ap-ds-mod__dots_stage_2 .ap-ds-mod__dot:nth-child(3) {
	display: block;
}

.ap-ds-mod__dots_stage_3 .ap-ds-mod__dot:nth-child(1),
.ap-ds-mod__dots_stage_3 .ap-ds-mod__dot:nth-child(2),
.ap-ds-mod__dots_stage_3 .ap-ds-mod__dot:nth-child(3),
.ap-ds-mod__dots_stage_3 .ap-ds-mod__dot:nth-child(4) {
	display: block;
}

.ap-ds-mod__toggle_deleted .ap-ds-mod__dot {
	/*background: #1a1a1a;*/
}

.ap-ds-mod__chat {
	position: relative;
}

.ap-ds-mod__chat-marker {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #e2001a;
	animation: ap-ds-blink 1s steps(2, start) infinite;
}

@keyframes ap-ds-blink {
	to {
		visibility: hidden;
	}
}

.ap-ds-mod__panel {
	position: fixed;
	top: 140px;
	left: 0;
	right: 0;
	z-index: 1010;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	pointer-events: none;
}

.ap-ds-mod__panel > * {
	pointer-events: auto;
}

.ap-ds-mod__hexes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	padding: 0 12px;
}

.ap-ds-hex-wrap {
	position: relative;
	/*padding-top: 20px;*/
	padding-top: 16px;
}

.ap-ds-hex {
	position: relative;
	width: 104px;
	height: 118px;
	border: none;
	cursor: pointer;
	background: none;
	/*clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);*/
	/*background: rgba(255, 255, 255, .92);*/
	color: #1a1a1a;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	font-family: inherit;
}

.ap-ds-hex::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(255, 255, 255, .92);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	z-index: -2;
}

.ap-ds-hex::after {
	content: "";
	position: absolute;
	inset: 2px;
	background-color: #fff;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	z-index: -1;
	opacity: 0;
}

.ap-ds-hex[disabled] {
	cursor: default;
	opacity: .55;
}

.ap-ds-hex[disabled]::before {
	background-color: rgba(255, 255, 255, .92);
}
.ap-ds-hex[disabled]::after {
	content: normal;
}

.ap-ds-hex_next:hover {
	/*background: #fff;*/
	/*box-shadow: inset 0 0 0 2px #2bb24c;*/
}

.ap-ds-hex_next:hover::before {
	background-color: #2bb24c;
}

.ap-ds-hex_next:hover::after {
	opacity: 1;
}

.ap-ds-hex__date {
	min-height: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 9px;
	line-height: 1.2;
	color: #4d4d4d;
}

.ap-ds-hex__label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
}

.ap-ds-hex__check {
	/*width: 26px;*/
	/*height: 26px;*/
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #d9d9d9;
	display: flex;
	align-items: center;
	justify-content: center;
	bottom: -6px;
	position: absolute;
	border: 3px solid #fff;
}

.ap-ds-hex__check svg {
	/*width: 16px;*/
	/*height: 16px;*/
	width: 20px;
	height: 20px;
	fill: #fff;
}

.ap-ds-hex__check_on {
	background: #2bb24c;
}

.ap-ds-hex_black {
	background: #1a1a1a;
	color: #fff;
	height: 104px;
	width: 96px;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.ap-ds-hex_black:hover {
	/*background-color: #ff0000;*/
	background-color: #e2001a;
}

.ap-ds-hex_black::before,
.ap-ds-hex_black::after {
	content: normal;
}

.ap-ds-hex_black .ap-ds-hex__date {
	color: #cfcfcf;
}

.ap-ds-hex_static {
	cursor: default;
}

.ap-ds-hex-eye {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 3px solid #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ap-ds-hex-eye svg {
	width: 20px;
	height: 15px;
	fill: #fff;
}

.ap-ds-hex-eye_on {
	background: #2bb24c;
}

.ap-ds-hex-eye_off {
	background: #e2001a;
}

.ap-ds-mod__pending {
	outline: 3px solid #e2001a;
	outline-offset: 2px;
}

.ap-ds-hex.ap-ds-mod__pending {
	outline: none;
	/*box-shadow: inset 0 0 0 3px #e2001a;*/
	background: none;
}

.ap-ds-hex.ap-ds-mod__pending:before {
	background-color: #e2001a;
}

.ap-ds-hex.ap-ds-mod__pending:after {
	opacity: 1;
}


.ap-ds-hex_black.ap-ds-mod__pending {
	background-color: #e2001a;
}

.ap-ds-mod__confirm {
	padding: 12px 34px;
	border: 1px solid #1a1a1a;
	border-radius: 26px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	cursor: pointer;
}

.ap-ds-mod__confirm:hover {
	background: #1a1a1a;
	color: #fff;
}

.ap-ds-mod__delete {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.ap-ds-mod__restore {
	border: none;
	background: rgba(255, 255, 255, .9);
	border-radius: 16px;
	padding: 6px 14px;
	font-size: 12px;
	cursor: pointer;
	text-decoration: underline;
}

/* ---- попап смены конкурса/номинации ---- */
.ap-ds-contest-popup,
.ap-ds-chat-popup {
	position: fixed;
	inset: 0;
	z-index: 1100;
}

.ap-ds-contest-popup__overlay,
.ap-ds-chat-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .6);
}

.ap-ds-contest-popup__dialog,
.ap-ds-chat-popup__dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(640px, calc(100% - 24px));
	max-height: calc(100% - 48px);
	background: #fff;
	/*border-radius: 8px;*/
	border-radius: 0;
	padding: 48px 8px 24px 24px;
	display: flex;
	flex-direction: column;
}

.ap-ds-contest-popup__close,
.ap-ds-chat-popup__close {
	position: absolute;
	top: 6px;
	right: 6px;
	border: none;
	background: none;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
	display: block;
	width: 40px;
	height: 40px;
	color: #000000;
	transition: color .3s;
}

.ap-ds-contest-popup__close:hover,
.ap-ds-chat-popup__close:hover {
	color: #e2001a;
}

.bx-touch .ap-ds-contest-popup__close,
.bx-touch .ap-ds-chat-popup__close {
	transition: none;
}

.bx-touch .ap-ds-contest-popup__close:hover,
.bx-touch .ap-ds-chat-popup__close:hover {
	color: #000000;
}

.ap-ds-contest-popup__list {
	overflow-y: auto;
	padding-right: 16px;
	flex: 1 1 auto;
}

.ap-ds-contest-popup__group {
	margin-bottom: 10px;
}

.ap-ds-contest-popup__contest {
	display: block;
	width: 100%;
	text-align: left;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 0;
	color: #1a1a1a;
}

.ap-ds-contest-popup__nominations {
	display: none;
	padding: 8px 0 6px 16px;
	flex-direction: column;
	gap: 5px;
}

.ap-ds-contest-popup__group_open .ap-ds-contest-popup__nominations {
	/*display: block;*/
	display: flex;
}

.ap-ds-contest-popup__nomination {
	display: block;
	width: 100%;
	text-align: left;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 13px;
	padding: 3px 0;
	color: #1a1a1a;
	padding-left: 22px;
	position: relative;
}

.ap-ds-contest-popup__nomination:before {
	content: '';
	display: block;
	width: 12px;
	height: 12px;
	border: 1px solid #999;
	position: absolute;
	left: 0;
	top: 4px;
}

.ap-ds-contest-popup__contest_current,
.ap-ds-contest-popup__nomination_current {
	color: #e2001a;
}

.ap-ds-contest-popup__contest_current,
.ap-ds-contest-popup__nomination_current {

}

.ap-ds-contest-popup__contest_selected,
.ap-ds-contest-popup__nomination_selected {
	color: #e2001a;
	font-weight: 700;
}

.ap-ds-contest-popup__contest_current:before,
.ap-ds-contest-popup__nomination_current:before,
.ap-ds-contest-popup__contest_selected:before,
.ap-ds-contest-popup__nomination_selected:before {
	background-color: #e2001a;
	box-shadow: inset 0 0 0 2px #fff;
	border-color: #e2001a;
}

.ap-ds-contest-popup__nominations:has(.ap-ds-contest-popup__contest_selected) .ap-ds-contest-popup__contest_current,
.ap-ds-contest-popup__nominations:has(.ap-ds-contest-popup__nomination_selected) .ap-ds-contest-popup__nomination_current {
	color: #1a1a1a;
}

.ap-ds-contest-popup__nominations:has(.ap-ds-contest-popup__contest_selected) .ap-ds-contest-popup__contest_current:before,
.ap-ds-contest-popup__nominations:has(.ap-ds-contest-popup__nomination_selected) .ap-ds-contest-popup__nomination_current:before {
	background: none;
	box-shadow: none;
	border-color: #999;
}

.ap-ds-contest-popup__confirm {
	margin: 14px auto 4px;
	padding: 12px 40px;
	border: 1px solid #1a1a1a;
	border-radius: 26px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.ap-ds-contest-popup__confirm[disabled] {
	opacity: .4;
	cursor: default;
}

.ap-ds-contest-popup__confirm:not([disabled]):hover {
	background: #1a1a1a;
	color: #fff;
}

/* ---- попап чата ---- */
.ap-ds-chat-popup__dialog {
	width: min(560px, calc(100% - 24px));
	padding: 48px 20px 20px;
}

.ap-ds-chat-popup__body {
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 200px;
}

.ap-ds-chat-popup__loading {
	color: #808080;
	text-align: center;
	padding: 40px 0;
}

/* пузыри переписки в попапе  */
.ap-ds-chat-popup .users-messages-list-bubble {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 8px;
	max-width: 86%;
	font-size: 13px;
	line-height: 1.45;
}

.ap-ds-chat-popup .users-messages-list-bubble-in {
	background: #f2f2f2;
	margin-right: auto;
}

.ap-ds-chat-popup .users-messages-list-bubble-out {
	background: #fdeaea;
	margin-left: auto;
}

.ap-ds-chat-popup .users-messages-list-header {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
	font-size: 11px;
}

.ap-ds-chat-popup .users-messages-list-name {
	font-weight: 700;
	color: #1a1a1a;
	text-decoration: none;
}

.ap-ds-chat-popup .users-messages-list-date {
	color: #999;
	white-space: nowrap;
}

.ap-ds-chat-popup .users-messages-list-attachment {
	margin-top: 6px;
	font-size: 12px;
}

.ap-ds-chat-popup .attached-img {
	display: inline-block;
	margin: 4px 6px 0 0;
}

.ap-ds-chat-popup .attached-img img {
	max-width: 110px;
	max-height: 110px;
	border-radius: 4px;
}

.ap-ds-chat-popup .users-messages-form {
	margin-top: 12px;
	border-top: 1px solid #e6e6e6;
	padding-top: 10px;
}

.ap-ds-chat-popup .users-messages-form__title {
	margin: 0 0 6px;
	font-size: 12px;
	color: #e2001a;
}

.ap-ds-chat-popup .users-messages-form-text {
	width: 100%;
	min-height: 74px;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	padding: 8px 10px;
	font-size: 13px;
	font-family: inherit;
	resize: vertical;
}

.ap-ds-chat-popup .users-messages-form-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-top: 8px;
	font-size: 12px;
}

.ap-ds-chat-popup .users-messages-form-attach {
	color: #1a1a1a;
}

.ap-ds-chat-popup .users-messages-form-submit {
	margin-left: auto;
	background: #e2001a;
	color: #fff;
	border: none;
	padding: 9px 26px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.ap-ds-chat-popup .users-messages-form-submit:hover {
	background: #c40017;
}

.ap-ds-chat-popup .ap-chat-action-collapse {
	display: none;
}

.ap-ds-chat-popup .users-messages-form-attachment-list {
	display: none;
	font-size: 11px;
	padding: 6px 0;
}

/* ---- адаптив ---- */
@media (max-width: 767px) {
	.ap-ds-baskets {
		justify-content: flex-start;
	}

	.ap-ds-work-nomination {
		top: 56px;
		padding: 8px 12px;
		max-width: 100%;
		width: max-content;
	}

	.ap-ds-work-nomination__contest {
		font-size: 11px;
	}

	.ap-ds-work-nomination__nomination {
		font-size: 10px;
	}

	.ap-ds-mod__panel {
		top: 120px;
		gap: 12px;
	}

	.ap-ds-hex {
		width: 82px;
		height: 94px;
	}

	.ap-ds-hex__label {
		font-size: 11px;
	}

	.ap-ds-hex__date {
		font-size: 8px;
		min-height: 20px;
	}

	.ap-ds-hex__check {
		width: 32px;
		height: 32px;
	}

	.ap-ds-hex__check svg {
		width: 18px;
		height: 18px;
	}

	.ap-ds-hex-eye {
		width: 32px;
		height: 32px;
	}

	.ap-ds-hex-eye svg {
		width: 18px;
		height: 14px;
	}

	.ap-ds-contest-popup__dialog,
	.ap-ds-chat-popup__dialog {
		width: 100%;
		height: 100%;
		max-height: 100%;
	}

}

@media (max-width: 420px) {

	.ap-ds-work-nomination {
		max-width: 100%;
		width: max-content;
	}

	.ap-ds-mod__hexes {
		gap: 8px;
	}

	.ap-ds-hex {
		width: 76px;
		height: 86px;
	}

	.ap-ds-hex__check {
		bottom: -10px;
	}

}

@media (max-width: 359px) {

	.ap-ds-hex {
		width: 70px;
		height: 80px;
	}

}
/* ---- модалка «связь с автором»: строка компании под именем автора ---- */

.ap-contest-modal-feedback__title-company {
	font-size: 14px;
	color: #666666;
	margin: -4px 0 0;
}

.ap-contest-modal-feedback .ap-modal__body p + p {
	margin-top: 14px;
}
