@font-face {
	font-family: "Modern-Sans";
	src: url("../fonts/ModernSans-Light.otf") format("opentype");
	font-weight: normal;
	font-style: normal;
}

:root {
	--gold: #f5f555;
	--gold-bright: #f1c40f;
	--dark-bg: #0a0a0a;
	--card-bg: #111216;
	--border: #fcdd99;
	--white: #f0f0f0;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

a {
	text-decoration: none;
	color: inherit;
}
ul,
ol {
	list-style: none;
}

body {
	background-color: var(--dark-bg);
	color: var(--white);
	font-family: "Modern-Sans", sans-serif;
	margin: 0;
	line-height: 1.6;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.title-span {
	color: var(--border);
	margin-right: 20px;
}
h1 {
	font-size: 46px;
}

h2 {
	text-transform: uppercase;
	font-size: 1.8vw;
}

/* Header */
.header {
	border-top: solid 2px var(--border);
	border-bottom: solid 2px var(--border);
}

.header__container {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 0;
}

.header__container span {
	width: 30px;
	margin: 0px 30px;
	height: 3px;
	background-color: var(--border);
}
.header-title {
	display: flex;
	align-items: center;
	justify-content: center;
}
/* Hero Section */
.hero-image {
	height: 400px;
	background: url(../img/main-photo.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	/* background-position: center; */
	position: relative;
	margin-bottom: 40px;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, transparent, var(--dark-bg));
}
.card__section {
	margin-top: -400px;
}
.card__container {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	padding: 20px 20px 40px 20px;
}
.card {
	background: linear-gradient(145deg, #1e1e1e, #111216);
	border: 2px solid var(--border);
	height: 250px;
	position: relative;
	grid-column: span 2;
	overflow: hidden;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	transition: transform 0.3s ease, border-color 0.3s ease;
	text-align: center;
	cursor: pointer;
}

.card:nth-child(4),
.card:nth-child(5) {
	grid-column: span 3;
}

.card p {
	font-size: 1.65vw;
	font-weight: 600;
	border-top: 2px solid var(--border);
	padding-top: 10px;
	margin-top: 10px;
	margin-bottom: 20px;
	width: 70%;
}

.card:hover {
	transition: all 0.3s ease;
	border-color: var(--gold-bright);
}

.icon {
	height: 54px;
	transition: all 0.3s ease;
}

.relative-content {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	top: 0;
	left: 0;
	z-index: 2;
	height: 100%;
	width: 100%;
}

.bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url(../img/card-bg.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 0;
	filter: brightness(0.3);
	transition: all 0.3s ease;
}

.bg-img-hidden {
	display: none;
	transition: all 0.3s ease;
}

/* Footer */
.footer {
	text-align: center;
	background: var(--dark-bg);
}

.footer-content p {
	margin: 0;
	font-size: 32px;
	font-weight: 800;
}

.partners {
	margin: 20px 0;
	font-size: 1.2rem;
	font-weight: bold;
	border-bottom: 1px solid var(--border);
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: center;
	align-items: center;
	width: calc(100% - 400px);
	margin: 20px auto;
}

.partners img {
	height: 30px;
	margin: 14px 30px;
}

.contact-btn {
	background: #f1c40f;
	background: linear-gradient(
		180deg,
		rgba(241, 196, 15, 1) 15%,
		rgba(245, 245, 85, 1) 50%,
		rgba(241, 196, 15, 1) 92%
	);
	border: 2px solid var(--gold-bright);
	box-shadow: 0px 0px 15px 2px rgba(241, 196, 15, 0.75);
	color: var(--dark-bg);
	font-weight: 600;
	font-size: 20px;
	padding: 10px 30px;
	cursor: pointer;
	height: 54px;
	transition: all 0.3s ease;
}

.card-button {
	display: none;
}

.contact-btn:hover {
	border: 2px solid var(--gold);
	transition: all 0.3s ease;
	box-shadow: 0px 0px 25px 4px rgba(241, 196, 15, 0.75);
}

/* Form */

input {
	width: 100%;
	margin-top: 30px;
	padding: 14px;
	font-size: 18px;
	border: 2px solid var(--border);
	background-color: var(--card-bg);
	border-radius: 5px;
	color: var(--gold-bright);
}

.input-error {
	border-color: red;
	color: red !important;
}

input::placeholder {
	color: var(--gold-bright);
}

input:focus {
	color: var(--gold);
	outline: none;
	border-color: var(--gold-bright);
}

button[type="submit"] {
	width: 100%;
	margin-top: 30px;
}

.form-container {
	max-width: 400px;
	padding: 40px 20px;
}

.bottom-btn {
	margin-top: 50px;
	margin: 50px auto 0 auto;
}

/* Адаптивность */
@media (max-width: 992px) {
	h1 {
		font-size: 28px;
	}
	h2 {
		text-transform: uppercase;
		font-size: 3vw;
	}

	.header img {
		height: 50px;
	}

	.card {
		grid-column: span 3;
	}

	.card:nth-child(5) {
		grid-column-start: 2;
		grid-column-end: span 4;
	}

	.card p {
		font-size: 2.5vw;
	}

	.icon {
		display: none;
	}

	.card-button {
		display: block;
	}

	.bg-img {
		filter: brightness(0.2) !important;
	}

	.bg-img-hidden {
		display: block !important;
		filter: brightness(1.2);
		opacity: 1;
	}

	.partners {
		width: calc(100% - 100px);
	}
}

@media (max-width: 660px) {
	h1 {
		font-size: 22px;
		text-align: center;
	}
	.title-span {
		margin: 0;
	}
	.header img {
		height: 40px;
	}

	.header__container {
		flex-direction: column;
	}
	.header__container span {
		display: none;
	}
	.header-title h1 {
		margin: 0px 10px;
	}
	.card {
		grid-column: span 6;
	}
	.card:nth-child(4) {
		grid-column: span 6;
	}
	.card:nth-child(5) {
		grid-column: span 6;
	}
	h2 {
		font-size: 20px;
	}
	.card p {
		font-size: 18px;
	}

	.partners {
		width: 100%;
	}

	.partners img {
		height: 24px;
		margin: 10px 15px;
	}

	.footer-content p {
		font-size: 28px;
	}
}

@media (max-width: 1024px) {
}
