/* Конкурсы 1nep.ru — страница конкурса, форма участия */

.nep-contest {
	font-family: 'Roboto', Arial, sans-serif;
	color: #323131;
	margin: 0 0 32px 0;
}

.nep-contest__title {
	font-size: 36px;
	line-height: 44px;
	font-weight: 700;
	color: #323131;
	margin: 0 0 16px 0;
}

.nep-contest__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin: 0 0 24px 0;
}

.nep-contest__badge {
	background: #b2798e;
	color: #fff;
	font-size: 14px;
	line-height: 18px;
	font-weight: 500;
	padding: 7px 14px;
	border-radius: 20px;
}

.nep-contest__badge--finished {
	background: #ababab;
}

.nep-contest__date {
	font-size: 17px;
	line-height: 22px;
}

.nep-contest__date-label {
	color: #858687;
}

.nep-contest__members {
	font-size: 17px;
	line-height: 22px;
	color: #858687;
}

.nep-contest__pic {
	border-radius: 16px;
	overflow: hidden;
	margin: 0 0 28px 0;
	background: #f4f4f4;
}

.nep-contest__pic img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 440px;
	object-fit: cover;
}

.nep-contest__pic--finished img {
	filter: grayscale(100%);
	opacity: .6;
}

.nep-contest__text {
	font-size: 17px;
	line-height: 26px;
	color: #323131;
}

.nep-contest__text img {
	max-width: 100%;
	height: auto;
}

.nep-contest__results {
	background: #f4f4f4;
	border-left: 4px solid #b2798e;
	border-radius: 12px;
	padding: 20px 24px;
	margin: 0 0 24px 0;
	font-size: 17px;
	line-height: 26px;
}

.nep-contest__results-title {
	font-size: 20px;
	line-height: 26px;
	font-weight: 700;
	margin: 0 0 10px 0;
}

/* --- блок участия --- */

.nep-contest__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	background: #f4f4f4;
	border-radius: 16px;
	padding: 22px 26px;
	margin: 0 0 28px 0;
}

.nep-contest__cta--bottom {
	margin: 28px 0 0 0;
}

.nep-contest__cta--finished {
	background: #fafafa;
	border: 1px solid #ececec;
}

.nep-contest__cta-info {
	flex: 1 1 300px;
	min-width: 0;
}

.nep-contest__cta-title {
	font-size: 22px;
	line-height: 28px;
	font-weight: 700;
	color: #323131;
	margin: 0 0 4px 0;
}

.nep-contest__cta-note {
	font-size: 15px;
	line-height: 22px;
	color: #656565;
}

.nep-contest__cta-note a {
	color: #b2798e;
}

.nep-contest__cta-action {
	flex: 0 0 auto;
}

.nep-contest__btn {
	display: block;
	min-width: 240px;
	background: #b2798e;
	color: #fff;
	border: none;
	border-radius: 30px;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 17px;
	line-height: 22px;
	font-weight: 500;
	padding: 14px 20px;
	cursor: pointer;
	transition: background .2s ease;
}

.nep-contest__btn:hover {
	background: #a06a7f;
}

.nep-contest__btn--disabled,
.nep-contest__btn--disabled:hover {
	background: #ececec;
	color: #858687;
	cursor: default;
}

/* призы */

.nep-contest__prizes {
	border: 1px solid #ececec;
	border-radius: 16px;
	padding: 20px 24px;
	margin: 0 0 28px 0;
}

.nep-contest__prizes-title {
	font-size: 18px;
	line-height: 24px;
	font-weight: 700;
	color: #323131;
	margin: 0 0 10px 0;
}

.nep-contest__prizes-list {
	margin: 0;
	padding: 0 0 0 20px;
	font-size: 17px;
	line-height: 26px;
	color: #323131;
}

.nep-contest__prizes-list li {
	margin: 0 0 4px 0;
}

/* --- модальное окно --- */

.nep-modal {
	position: fixed;
	inset: 0;
	/* на сайте есть прилипший .footer-banner с z-index: 999999 — модалка должна быть выше */
	z-index: 1000001;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
	font-family: 'Roboto', Arial, sans-serif;
}

.nep-modal.is-open {
	display: flex;
}

.nep-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(50, 49, 49, .55);
}

.nep-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 520px;
	padding: 32px;
	margin: auto;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.nep-modal__close {
	position: absolute;
	right: 16px;
	top: 12px;
	background: none;
	border: none;
	font-size: 30px;
	line-height: 30px;
	color: #ababab;
	cursor: pointer;
	padding: 4px 8px;
}

.nep-modal__close:hover {
	color: #323131;
}

.nep-modal__head {
	margin: 0 0 20px 0;
	padding-right: 30px;
}

.nep-modal__title {
	font-size: 26px;
	line-height: 32px;
	font-weight: 700;
	color: #323131;
}

.nep-modal__subtitle {
	font-size: 16px;
	line-height: 22px;
	color: #858687;
	margin-top: 6px;
}

/* --- форма --- */

.nep-form__row {
	margin: 0 0 16px 0;
}

.nep-form__label {
	display: block;
	font-size: 15px;
	line-height: 20px;
	color: #656565;
	margin: 0 0 6px 0;
}

.nep-form__req {
	color: #b2798e;
}

.nep-form__input {
	display: block;
	width: 100%;
	height: 48px;
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #fff;
	padding: 0 14px;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 16px;
	line-height: 46px;
	color: #323131;
	box-sizing: border-box;
	transition: border-color .2s ease;
}

.nep-form__input:focus {
	border-color: #b2798e;
	outline: none;
}

.nep-form__select {
	line-height: normal;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23858687' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}

.nep-form__hint {
	font-size: 13px;
	line-height: 18px;
	color: #858687;
	margin: 6px 0 0 0;
}

/* Условие конкурса над анкетой: заметнее подсказки, но не тревожнее ошибки */
.nep-form__notice {
	font-size: 14px;
	line-height: 20px;
	color: #4a4b4c;
	background: #f6eef1;
	border-left: 3px solid #B2798E;
	border-radius: 4px;
	padding: 10px 12px;
	margin: 0 0 18px 0;
}

.nep-form__notice a {
	color: #B2798E;
	text-decoration: underline;
}

.nep-form__error {
	display: none;
	font-size: 13px;
	line-height: 18px;
	color: #f60c0c;
	margin: 6px 0 0 0;
}

.nep-form__error.is-shown {
	display: block;
}

.nep-form__error--common {
	margin: 0 0 12px 0;
}

.nep-form__input.is-invalid {
	border-color: #f60c0c;
}

.nep-form__row--consent {
	margin: 20px 0 20px 0;
}

.nep-form__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 18px;
	color: #656565;
	font-weight: normal;
	margin: 0;
	cursor: pointer;
}

.nep-form__consent input {
	margin: 2px 0 0 0;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

.nep-form__consent a {
	color: #b2798e;
}

.nep-form__submit {
	display: block;
	width: 100%;
	background: #b2798e;
	color: #fff;
	border: none;
	border-radius: 30px;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 17px;
	line-height: 22px;
	font-weight: 500;
	padding: 14px 20px;
	cursor: pointer;
	transition: background .2s ease;
}

.nep-form__submit:hover {
	background: #a06a7f;
}

.nep-form__submit[disabled] {
	background: #d5b1ba;
	cursor: default;
}

.nep-form__submit--ghost {
	background: #fff;
	color: #b2798e;
	border: 1px solid #b2798e;
	margin-top: 8px;
}

.nep-form__submit--ghost:hover {
	background: #f4f4f4;
}

.nep-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- успешная отправка --- */

.nep-form__done {
	text-align: center;
	padding: 12px 0 0 0;
}

.nep-form__done-icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	border-radius: 50%;
	background: #b2798e;
	color: #fff;
	font-size: 28px;
	margin: 0 auto 16px auto;
}

.nep-form__done-title {
	font-size: 22px;
	line-height: 28px;
	font-weight: 700;
	margin: 0 0 8px 0;
}

.nep-form__done-text {
	font-size: 16px;
	line-height: 24px;
	color: #656565;
	margin: 0 0 20px 0;
}

/* индивидуальная ссылка участника */

.nep-form__link {
	display: flex;
	gap: 8px;
	margin: 0 0 14px 0;
}

.nep-form__link-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #f4f4f4;
	padding: 0 12px;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 14px;
	color: #323131;
	box-sizing: border-box;
}

.nep-form__link-copy {
	flex: 0 0 auto;
	height: 44px;
	padding: 0 18px;
	border: none;
	border-radius: 10px;
	background: #b2798e;
	color: #fff;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 15px;
	cursor: pointer;
	transition: background .2s ease;
}

.nep-form__link-copy:hover {
	background: #a06a7f;
}

.nep-form__share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px 0;
}

.nep-form__share-btn {
	flex: 1 1 160px;
	border: 1px solid #b2798e;
	border-radius: 30px;
	padding: 10px 14px;
	font-size: 15px;
	line-height: 20px;
	color: #b2798e;
	text-decoration: none;
	transition: background .2s ease;
}

.nep-form__share-btn:hover {
	background: #f4f4f4;
	color: #b2798e;
	text-decoration: none;
}

.nep-form__done-note {
	font-size: 14px;
	line-height: 20px;
	color: #858687;
	margin: 0 0 18px 0;
}

.nep-modal__referrer {
	font-size: 14px;
	line-height: 20px;
	color: #b2798e;
	margin-top: 8px;
}

@media (max-width: 767px) {
	.nep-contest__title {
		font-size: 26px;
		line-height: 32px;
	}

	.nep-contest__cta {
		padding: 20px;
	}

	.nep-contest__cta-action,
	.nep-contest__btn {
		width: 100%;
		min-width: 0;
	}

	.nep-modal__dialog {
		padding: 24px 18px;
	}

	.nep-modal__title {
		font-size: 22px;
		line-height: 28px;
	}
}

/* --- итоги розыгрыша --- */

.nep-draw {
	border: 1px solid #ececec;
	border-radius: 16px;
	padding: 24px;
	margin: 0 0 28px 0;
	font-family: 'Roboto', Arial, sans-serif;
}

.nep-draw__title {
	font-size: 24px;
	line-height: 30px;
	font-weight: 700;
	color: #323131;
	margin: 0 0 8px 0;
}

.nep-draw__lead {
	font-size: 16px;
	line-height: 24px;
	color: #656565;
	margin: 0 0 20px 0;
}

.nep-draw__video {
	margin: 0 0 24px 0;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
}

.nep-draw__video video {
	display: block;
	width: 100%;
	max-height: 460px;
}

.nep-draw__video--embed {
	position: relative;
	padding-top: 56.25%;
	height: 0;
}

.nep-draw__video--embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.nep-draw__prize {
	padding: 16px 0;
	border-top: 1px solid #ececec;
}

.nep-draw__prize:first-child {
	border-top: none;
	padding-top: 0;
}

.nep-draw__prize-name {
	font-size: 18px;
	line-height: 24px;
	font-weight: 700;
	color: #323131;
	margin: 0 0 10px 0;
}

/* барабан */

.nep-draw__reel {
	position: relative;
	height: 56px;
	overflow: hidden;
	background: #f4f4f4;
	border-radius: 10px;
	margin: 0 0 10px 0;
	max-width: 220px;
}

.nep-draw__reel-track {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	will-change: transform;
}

.nep-draw__reel-item {
	height: 56px;
	line-height: 56px;
	text-align: center;
	font-size: 24px;
	font-weight: 700;
	color: #858687;
}

.nep-draw__reel-item--win {
	color: #b2798e;
}

.nep-draw__reel-frame {
	position: absolute;
	inset: 0;
	border: 2px solid #b2798e;
	border-radius: 10px;
	pointer-events: none;
	opacity: 0;
	transition: opacity .3s ease;
}

.nep-draw__reel.is-done .nep-draw__reel-frame {
	opacity: 1;
}

.nep-draw__winner {
	font-size: 17px;
	line-height: 24px;
	color: #323131;
}

.nep-draw__winner-tickets {
	color: #858687;
	font-size: 15px;
}

.nep-draw__replay {
	margin: 16px 0 0 0;
	background: #fff;
	border: 1px solid #b2798e;
	border-radius: 30px;
	color: #b2798e;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 15px;
	padding: 10px 22px;
	cursor: pointer;
}

.nep-draw__replay:hover {
	background: #f4f4f4;
}

/* проверка расчёта */

.nep-draw__proof {
	margin: 20px 0 0 0;
	border-top: 1px solid #ececec;
	padding-top: 16px;
}

.nep-draw__proof summary {
	cursor: pointer;
	font-size: 16px;
	color: #b2798e;
}

.nep-draw__proof-body {
	font-size: 15px;
	line-height: 22px;
	color: #656565;
	margin-top: 12px;
}

.nep-draw__proof-body code {
	font-size: 13px;
	word-break: break-all;
	color: #323131;
}

.nep-draw__table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
	font-size: 14px;
}

.nep-draw__table th,
.nep-draw__table td {
	border-bottom: 1px solid #ececec;
	padding: 6px 8px;
	text-align: left;
	vertical-align: top;
}

.nep-draw__table th {
	color: #858687;
	font-weight: 500;
}

.nep-draw__table-skip td {
	color: #ababab;
}

.nep-draw__members {
	max-height: 320px;
	overflow-y: auto;
	margin-top: 12px;
}

.nep-draw__members-title {
	font-weight: 700;
	color: #323131;
	margin-bottom: 6px;
}

@media (max-width: 767px) {
	.nep-draw {
		padding: 18px;
	}

	.nep-draw__table {
		display: block;
		overflow-x: auto;
	}
}
