/* MANUL — тестовая страница новогодних билетов (/test/) */

.mny-page {
	padding-top: 24px;
	padding-bottom: 120px;
}

.mny-page .rank-math-breadcrumb {
	display: none;
}

.mny-hero {
	max-width: 980px;
	margin: 0 auto;
	text-align: center;
}

.mny-hero .title-line {
	margin: 22px auto 30px;
}

.mny-title {
	text-transform: uppercase;
	font-size: clamp(42px, 7vw, 86px);
	line-height: 0.95;
}

.mny-desc {
	max-width: 780px;
	margin: 34px auto 0;
	font-size: 13px;
	line-height: 1.55;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.88);
}

.mny-prices {
	max-width: 640px;
	margin: 52px auto 0;
	text-align: left;
}

.mny-prices__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	font-size: 13px;
	line-height: 1.35;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.mny-prices__value {
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	letter-spacing: 0.02em;
}

.mny-cta {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.mny-buy {
	width: 300px;
	max-width: 100%;
}

.mny-offline {
	font-size: 14px;
	line-height: 1.5;
}

.mny-offline a {
	color: #fff;
	text-decoration: underline;
}

/* ---------- Попап ---------- */

.mny-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mny-modal.active {
	opacity: 1;
	visibility: visible;
}

.mny-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.mny-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: #000;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	padding: 38px 45px 30px;
}

.mny-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.mny-modal__close:hover {
	opacity: 1;
}

.mny-modal__title {
	margin: 0 0 34px;
	font-family: "Epos", sans-serif;
	font-size: 34px;
	line-height: 1;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.mny-test-note {
	margin: -16px 0 22px;
	padding: 9px 12px;
	border: 1px solid #e2b96a;
	color: #e2b96a;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mny-form {
	margin: 0;
}

.mny-error {
	display: none;
	margin: 0 0 18px;
	padding: 9px 12px;
	border: 1px solid #e30313;
	color: #ff8a8a;
	font-size: 12px;
	line-height: 1.45;
}

/* поля */

.mny-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 40px;
	margin-bottom: 20px;
}

.mny-field {
	position: relative;
	min-width: 0;
}

.mny-field__label {
	display: block;
	width: auto;
	margin: 0 0 2px;
	font-size: 12px;
	line-height: 1.3;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.6);
	cursor: default;
}

.mny-field__input {
	display: block;
	width: 100%;
	height: 34px;
	padding: 0 14px 6px 0;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	line-height: 1.3;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.mny-field__input:focus {
	border-bottom-color: #fff;
}

.mny-field__input:-webkit-autofill,
.mny-field__input:-webkit-autofill:focus {
	-webkit-text-fill-color: #fff;
	-webkit-box-shadow: 0 0 0 1000px #000 inset;
	transition: background-color 9999s;
}

.mny-field::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 8px;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	pointer-events: none;
}

.mny-field--no-dot::after {
	display: none;
}

.mny-field.error .mny-field__input {
	border-bottom-color: #e30313;
	color: #ff8a8a;
}

/* счётчики */

.mny-counter-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.mny-counter-row--wide {
	margin-top: 4px;
}

.mny-counter-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 40px;
}

.mny-counter-row__label {
	font-size: 13px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.92);
}

.mny-counter-row .input-number {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: none;
	width: 64px;
	height: 24px;
	font-size: 12px;
	background: #fff;
	color: #000;
}

.mny-counter-row .input-number input {
	width: 24px;
	height: 24px;
	line-height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #000 !important;
	-webkit-text-fill-color: #000;
	font-size: 12px;
	text-align: center;
	-webkit-appearance: none;
	appearance: none;
	-moz-appearance: textfield;
}

.mny-counter-row .input-number input::-webkit-outer-spin-button,
.mny-counter-row .input-number input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.mny-counter-row .input-number a {
	width: 20px;
	height: 24px;
	flex: none;
}

.mny-counter-row .input-number a:before,
.mny-counter-row .input-number a:after {
	left: 25%;
	width: 50%;
	background: #000 !important;
}

/* итого */

.mny-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin: 24px 0 22px;
	text-transform: uppercase;
}

.mny-total__label {
	font-family: inherit;
	font-size: 30px;
	line-height: 1;
	font-weight: 400;
	letter-spacing: 0.01em;
}

.mny-total__value {
	font-size: 24px;
	line-height: 1;
	font-weight: 500;
	white-space: nowrap;
}

/* кнопки */

.mny-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 18px;
}

.mny-actions .button {
	height: 48px;
}

@media (hover: hover) {
	.mny-modal .button:hover,
	.mny-modal .button:hover span {
		color: #fff !important;
	}
}

.mny-actions .button:disabled {
	opacity: 0.55;
	cursor: default;
}

.mny-cancel {
	height: 48px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	background: transparent;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s;
}

.mny-cancel:hover {
	background: #fff;
	color: #000;
}

/* согласие */

.mny-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	margin: 0;
	font-size: 10.5px;
	line-height: 1.45;
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.78);
	cursor: pointer;
}

.mny-consent__input {
	position: relative;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 3px;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.mny-consent__input:checked {
	border-color: #fff;
	background: #fff url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2010'%3E%3Cpath%20d='M1%205l3%203%207-7'%20fill='none'%20stroke='%23000'%20stroke-width='2'/%3E%3C/svg%3E") center / 10px 8px no-repeat;
}

.mny-consent.error .mny-consent__input {
	border-color: #e30313;
}

.mny-consent.error .mny-consent__text {
	color: #ff8a8a;
}

.mny-consent__text a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* телефон и мессенджеры */

.mny-support {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.7);
}

.mny-support__phone {
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

.mny-support__phone:hover {
	text-decoration: underline;
}

.mny-socials {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mny-social {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	opacity: 1;
	transition: opacity 0.2s;
}

.mny-social:hover {
	opacity: 0.75;
}

.mny-social svg {
	display: block;
	width: 13px;
	height: 13px;
	fill: #000;
}

.mny-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

body.mny-modal-open {
	overflow: hidden;
}

body.mny-modal-open .cookie,
body.mny-modal-open .cookies {
	display: none !important;
}

/* ---------- Мобильная версия ---------- */

@media (max-width: 767.98px) {
	.mny-page {
		padding-top: 8px;
		padding-bottom: 80px;
	}

	.mny-title {
		font-size: 36px;
	}

	.mny-desc {
		margin-top: 24px;
		font-size: 11px;
		line-height: 1.55;
	}

	.mny-prices {
		margin-top: 36px;
	}

	.mny-prices__row {
		padding: 13px 0;
		font-size: 11px;
	}

	.mny-prices__value {
		font-size: 13px;
	}

	.mny-cta {
		margin-top: 36px;
	}

	.mny-buy {
		width: 100%;
	}

	.mny-modal {
		padding: 0;
		align-items: flex-start;
	}

	.mny-modal__dialog {
		max-width: none;
		width: calc(100% - 16px);
		max-height: calc(100vh - 16px);
		margin: 8px;
		padding: 26px 20px 22px;
	}

	.mny-modal__title {
		margin-bottom: 24px;
		font-size: 26px;
	}

	.mny-fields {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-bottom: 16px;
	}

	.mny-counter-cols {
		grid-template-columns: 1fr;
	}

	.mny-counter-row {
		padding: 11px 0;
	}

	.mny-counter-row--wide {
		margin-top: 2px;
	}

	.mny-total {
		margin: 22px 0 18px;
	}

	.mny-total__label {
		font-size: 24px;
	}

	.mny-total__value {
		font-size: 20px;
	}

	.mny-actions {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-bottom: 16px;
	}

	.mny-support {
		margin-top: 16px;
	}
}
