@charset "UTF-8";

* {
	box-sizing: border-box;
}

a {
	color: inherit;
	text-decoration: none;
}

body.contest-page {
	background: #fff1f1;
	color: #111111;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-width: 320px;
}

.header {
	background: #711622;
	color: #ffffff;
	position: sticky;
	top: 0;
	z-index: 20;
}

.header__inner,
.menu-overlay__header {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1280px;
	min-height: 111px;
	padding: 10px 20px;
}

.menu-close {
	gap: 0;
	height: 70px;
	position: relative;
	width: 93px;
}

.menu-close span {
	background: currentColor;
	display: block;
	height: 4px;
	position: absolute;
	width: 38px;
}

.menu-close span:first-child {
	transform: rotate(45deg);
}

.menu-close span:last-child {
	transform: rotate(-45deg);
}

.menu-overlay__nav {
	display: grid;
	gap: 20px;
	margin: 0 auto;
	max-width: 1280px;
	padding: 36px 24px;
}

.menu-overlay__nav a {
	font-size: 28px;
	line-height: 1.4;
}

.contest {
	flex: 1 0 auto;
	margin: 0 auto;
	max-width: 1280px;
	padding: 48px 20px 0;
}

.contest-about {
	display: grid;
	gap: 30px;
	grid-template-columns: 428px 1fr;
	align-items: start;
	margin-bottom: 48px;
}

.contest-about__image-shell {
	background: #b6dcdd;
	border-radius: 32px;
	height: 515px;
	overflow: hidden;
	width: 100%;
}

.contest-about__image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.contest-about__text {
	padding-top: 60px;
}

.contest-about__text h1 {
	font-size: 36px;
	font-weight: 400;
	line-height: 1;
	margin: 0 0 34px;
	white-space: nowrap;
}

.contest-about__text p {
	font-size: 24px;
	line-height: 1.35;
	margin: 0 0 18px;
}

.contest-ranking h2 {
	font-size: 48px;
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 30px;
	text-align: center;
	white-space: nowrap;
}

.contest-ranking__rows {
	display: grid;
	gap: 30px;
	justify-items: center;
}

.contest-row {
	display: flex;
	justify-content: center;
	width: 100%;
}

.contest-row--xl {
	padding-top: 8px;
}

.contest-row--lg {
	gap: 80px;
}

.contest-row--md {
	gap: 40px;
}

.contest-row--sm {
	gap: 22px;
}

.contest-row--five {
	justify-content: space-between;
}

.contest-card {
	background: #b6dcdd;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contest-card:hover {
	transform: scale(1.03);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contest-card__image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.contest-card--xl {
	height: 434px;
	width: 328px;
}

.contest-card--lg {
	height: 368px;
	width: 278px;
}

.contest-card--md {
	height: 304px;
	width: 230px;
}

.contest-card--sm {
	height: 266px;
	width: 201px;
}



@media (max-width: 900px) {
	.header__nav-link {
		display: none;
	}

	.header__inner,
	.menu-overlay__header {
		min-height: 72px;
		padding: 8px 14px;
	}

	.header__logo,
	.menu-overlay__logo {
		font-size: clamp(1.6rem, 5vw, 2rem);
	}

	.menu-button,
	.menu-close {
		height: 56px;
		width: 72px;
	}

	.menu-button span {
		height: 4px;
		width: 52px;
	}

	.contest {
		padding-inline: 14px;
	}

	.contest-about {
		grid-template-columns: 1fr;
	}

	.contest-about__text {
		padding-top: 0;
	}

	.contest-about__text h1,
	.contest-ranking h2 {
		white-space: normal;
	}

	.contest-row--lg,
	.contest-row--md,
	.contest-row--sm,
	.contest-row--five {
		flex-wrap: wrap;
		gap: 16px;
	}

	.contest-card--xl,
	.contest-card--lg,
	.contest-card--md,
	.contest-card--sm {
		width: min(100%, 320px);
	}


}

@media (max-width: 560px) {
	.contest-about__image-shell {
		height: 420px;
	}

	.contest-about__text p {
		font-size: 18px;
	}

	.contest-ranking h2 {
		font-size: 28px;
	}


}