.contact-modal[hidden] {
	display: none;
}

.contact-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

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

.contact-modal__box {
	position: relative;
	z-index: 1;
	background: #0a0a0a;
	border: 1px solid #222;
	border-radius: 20px;
	padding: 32px 28px 28px;
	width: min(800px, 100%);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.contact-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: none;
	font-size: 32px;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	padding: 4px 10px;
	opacity: 0.7;
	transition: color 0.2s, opacity 0.2s;
}

.contact-modal__close:hover {
	color: #cf2e2e;
	opacity: 1;
}

.contact-modal__title {
	margin: 0 40px 12px 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

.contact-modal__title::after {
	content: '';
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 10px;
	background: #cf2e2e;
	border-radius: 2px;
}

.contact-modal__message {
	margin: 0 0 24px;
	color: rgba(255, 255, 255, 0.65);
	font-size: 16px;
	line-height: 1.5;
	word-break: break-word;
}

.contact-modal__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.contact-modal__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 112px;
	padding: 18px 12px;
	border: 1px solid #2a2a2a;
	border-radius: 14px;
	text-decoration: none;
	color: #fff;
	background: #141414;
	cursor: pointer;
	font: inherit;
	text-decoration: none !important;
	transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.contact-modal__item:hover {
	background: #1c1c1c;
	border-color: #cf2e2e;
	transform: translateY(-2px);
}

.contact-modal__item:active {
	transform: translateY(0);
}

.contact-modal__item img {
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.contact-modal__icon-svg {
	width: 52px;
	height: 52px;
	color: #f90;
}

.contact-modal__item span {
	font-size: 15px;
	font-weight: 500;
	text-align: center;
	line-height: 1.3;
	text-decoration: none !important;
}

.contact-modal__item--wide {
	grid-column: 1 / -1;
	flex-direction: row;
	min-height: auto;
	padding: 20px 24px;
	gap: 16px;
	border-color: #333;
}

.contact-modal__item--wide:hover {
	border-color: #cf2e2e;
}

.contact-modal__item--wide span {
	font-size: 18px;
	font-weight: 600;
	color: #fff;
}

@media (max-width: 768px) {
	.contact-modal {
		padding: 12px;
		align-items: flex-end;
	}

	.contact-modal__box {
		width: 100%;
		max-width: 100%;
		padding: 28px 22px 32px;
		border-radius: 20px 20px 0 0;
		border-bottom: none;
	}

	.contact-modal__title {
		font-size: 22px;
	}

	.contact-modal__message {
		font-size: 15px;
		margin-bottom: 20px;
	}

	.contact-modal__grid {
		gap: 12px;
	}

	.contact-modal__item {
		min-height: 108px;
		padding: 16px 10px;
	}

	.contact-modal__item img,
	.contact-modal__icon-svg {
		width: 48px;
		height: 48px;
	}

	.contact-modal__item span {
		font-size: 14px;
	}

	.contact-modal__item--wide {
		padding: 18px 20px;
	}

	.contact-modal__item--wide span {
		font-size: 17px;
	}
}

@media (max-width: 420px) {
	.contact-modal__box {
		padding: 26px 18px 28px;
	}

	.contact-modal__title {
		font-size: 21px;
	}

	.contact-modal__message {
		font-size: 14px;
	}

	.contact-modal__grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.contact-modal__item {
		min-height: 118px;
		padding: 18px 8px;
		gap: 12px;
	}

	.contact-modal__item img,
	.contact-modal__icon-svg {
		width: 54px;
		height: 54px;
	}

	.contact-modal__item span {
		font-size: 15px;
	}

	.contact-modal__item--wide {
		grid-column: 1 / -1;
		min-height: 72px;
		padding: 20px;
	}

	.contact-modal__item--wide span {
		font-size: 18px;
	}
}

@media (max-width: 320px) {
	.contact-modal__grid {
		grid-template-columns: 1fr;
	}

	.contact-modal__item--wide {
		grid-column: auto;
	}
}