@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap");
@import url("https://fonts.cdnfonts.com/css/gotham-6");

:root {
	--header-height: 4rem;

	--body-font: 'Manrope', sans-serif;
	--section-font-size: 4em;
	--title-font-size: 4em;
	--desc-font-size: 1.2em;
	--normal-font-size: 1em;
	--logo-font-size: 1.5em;

	--second1-font: 'Gotham', sans-serif;
	--section1-font-size: 4em;
	--title1-font-size: 4em;
	--desc1-font-size: 1.2em;
	--normal1-font-size: 1em;
	--logo1-font-size: 1.5em;

	--font-regular: 400;
	--font-medium: 500;
	--font-semi-bold: 700;

	--body-color: #F5F5F5;;
	--logo-color: rgba(54, 65, 76, 1);
	--header-color: rgba(255, 255, 255, 1);
	--title-color: rgba(255, 255, 255, 1);
	--home-card: linear-gradient(302.14deg, #FF005C -56.3%, #FF5B83 69.29%);
	--fail-color: #FF6262;
	--wait-color: rgba(0, 119, 255, 1);
	--back-color: #36414C;
	--coin-color: rgb(255, 219, 164);
	--second-color: #FFB8FF;
	--haha-color: #FFB8FF;
	--desc-color: rgba(143, 156, 169, 1);
	--btn-bg-active: rgba(0, 119, 255, 1);
	--btn-bg: rgba(56, 201, 118, 1);
	--btn-bg-default: rgba(255, 255, 255, 1);
	--footer-desc: rgba(213, 221, 229, 1);
}

@media screen and (max-width: 1400px) {
	:root {
		--section-font-size: 2.5em;
		--title-font-size: 2em;
		--desc-font-size: 1em;
		--normal-font-size: 1em;
		--logo-font-size: 1.5em;
	}
}

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

ul {
	list-style: none;
}

a {
	color: var(--desc-color);
	text-decoration: none;
}

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

html {
	scroll-behavior: smooth;
}

button,
input {
	cursor: pointer;
	border: none;
	background: none;
}

h1 {
	color: var(--title-color);
	font-size: var(--title-font-size);
	font-family: var(--font-semi-bold);
}

.avatar {
	border-radius: 50%;
	padding: 8px;
	margin-bottom: auto;
	margin-top: auto;
}

.profile__title {
	font-size: 2.25em;
	font-weight: 800;
}

.terms {
	color: var(--desc-color);
	font-size: 1em;
}

.terms h1 {
	color: var(--desc-color);
}

.terms ul {
	padding-left: 10px;
	counter-reset: item;
	list-style-type: none;
}

.terms ul > li:before {
	background-color: var(--desc-color);
	color: var(--title-color);
	display: inline-block;
	margin-right: 12px;
	content: counter(item) " ";
	counter-increment: item;
	box-sizing: border-box;
	font-weight: bold;
	min-width: 20px;
	text-align: center;
}

.terms ul > li {
	line-height: 24px;
	position: relative;
	padding-top: 20px;
	font-size: 16px;
}

.terms .right {
	text-align: right;
}

p {
	color: var(--desc-color);
	font-size: var(--desc-font-size);
}

button,
body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	color: var(--title-color);
}

::-webkit-scrollbar {
	width: 0px;
	background: rgba(255, 255, 255, 0);
}

body {
	background-color: var(--body-color);
}

.container {
	max-width: 1700px;
	margin-inline: 1.5rem;
}

.section {
	margin-top: 11rem;
}

.products__cat {
	display: flex;
	flex-direction: column;
	gap: 1rem;

	color: var(--back-color);
	padding-bottom: 1.5rem;
}

.prudcts__link-cat {
	text-align: center;
	width: 100%;
	padding: 1rem 2rem;
	border-radius: 23px;

	color: var(--body-color);
	background-color: var(--btn-bg-active);
}

.grid {
	display: grid;
	gap: 1.5rem;
}

.header {
	position: absolute;
	top: 30px;
	left: 0;
	right: 0;

	padding: 1rem;
	z-index: 1;

	border-radius: 24px;
	background-color: var(--header-color);

	transition: all 0.3s;
}

.nav {
	display: flex;
	justify-content: space-between;
	align-items: center;

	height: var(--header-height);
}

.nav__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 64px;
	margin-left: 2rem;

	font-size: var(--logo-font-size);
	font-weight: var(--font-semi-bold);
	color: var(--logo-color);

	transition: all 0.3s;
}

.nav__logo svg {
	width: 40px;
	height: 40px;

	transition: all 0.3s;
}

.nav__toggle,
.nav__close {
	display: flex;
	cursor: pointer;

	width: 20px;
	height: 20px;

	transition: all 0.3s;
}

.nav__toggle:hover,
.nav__close:hover {
	transform: translateY(-5px);
}

@media screen and (max-width: 1400px) {
	.nav__menu,
	.nav__payment {
		position: fixed;
		left: 0;
		top: -100%;

		width: 100%;
		padding-block: 4rem;

		box-shadow: 0px 4px 10px rgba(0, 0, 0, 0);
		background-color: var(--body-color);

		transition: all 0.3s;

		z-index: 1;
	}
}

.nav__list {
	display: flex;
	flex-direction: column;
	row-gap: 3rem;

	text-align: center;
}

.nav__link {
	display: inline-flex;
	vertical-align: top;
	padding: 1.5rem 2rem;
	position: relative;

	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
	color: var(--desc-color);

	transition: all 0.3s;
}

.nav__link-active {
	display: inline-flex;
	vertical-align: top;
	position: relative;
	padding: 1.5rem 2rem;

	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
	color: var(--desc-color);

	border-radius: 24px;
	background-color: var(--btn-bg-active);
	color: var(--title-color);

	transition: all 0.3s;
}

.nav__link:hover {
	color: var(--wait-color);
}
.nav__link:active {
	color: var(--wait-color);
}

.active {
	padding: 1.5rem 2rem;
	border-radius: 24px;
	background-color: var(--btn-bg-active);
	color: var(--title-color);

	transition: all 0.3s;
}

.active-img {
	filter: hue-rotate(539deg) contrast(3);

	transition: all 0.3s;
}

.nav__close {
	position: absolute;
	top: 4.5rem;
	right: 4rem;
}

.snow-menu {
	top: 0;
}

.home__banner {
	border-radius: 23px;
	background: var(--home-card);
}

.home__banner-data {
	display: flex;
	flex-direction: column;
	gap: 3rem;

	padding: 3rem;
}

.home__title {
	font-size: 2.5em;
	font-weight: 800;
}

.home__desc {
	color: var(--coin-color);
	font-size: 1.5em;

	margin-bottom: 2rem;
}

.home__link {
	border-radius: 24px;
	padding: 1rem 1rem 1rem;
	width: max-content;
	background-color: var(--logo-color);

	transition: all 0.3s;
}

.home__form {
	display: flex;
	row-gap: 1rem;
	flex-direction: column;
}

.home__input {
	padding: 2rem;
	text-align: center;

	font-size: 1.2em;
	border: 2px solid var(--body-color);
	color: var(--desc-color);

	background-color: var(--header-color);
	border-radius: 24px;

	transition: all 0.3s;
}

.home__input:hover {
	border: 2px solid var(--btn-bg);

	transition: all 0.3s;
}

.home__input[type="text"]:focus {
	border: 2px solid var(--btn-bg);

	transition: all 0.3s;
}

.home__input::placeholder {
	font-size: 1em;
	font-weight: 600;
	color: var(--desc-color);
}

.home__btn {
	padding: 2rem;
	border-radius: 24px;
	background-color: var(--btn-bg);
}

.home__form-label {
	color: var(--desc-color);
}

.home__form-input {
	color: var(--btn-bg);
}

.color-red,
.color-green {
	text-align: center;
	color: #ff005c;

	font-size: 1em;
	font-weight: 700;
}

.color-green {
	color: var(--btn-bg);
}

.home__label {
	font-size: 1em;
	font-weight: 600;
	color: var(--desc-color);

	transition: all 0.3s;
}

.home__box {
	display: flex;
	align-items: center;

	margin-top: 1rem;
	margin-bottom: 1rem;
	gap: 1rem;

	transition: all 0.3s;
}

input[type="checkbox"],
label {
	cursor: pointer;

	transition: all 0.3s;
}

input[type="checkbox"] {
	position: relative;

	height: 22px;
	width: 22px;

	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none;

	transition: all 0.3s;
}

input[type="checkbox"]::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background-color: white;
	border: 2px solid #ffffff;

	transition: all 0.3s;
}

input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--btn-bg);
	transform: translate(-50%, -50%);
	visibility: visible;

	transition: all 0.3s;
}

input[type="checkbox"]::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--body-color);
	transform: translate(-50%, -50%);

	transition: all 0.3s;
}

.input-deactive {
	filter: grayscale(1) opacity(0.4);

	transition: all 0.3s;
}

.home__select {
	padding: 1.5rem;
	text-align: center;
	font-size: 1.2em;
	border: 2px solid var(--body-color);
	color: var(--desc-color);
	background-color: var(--header-color);
	border-radius: 24px;
	transition: all 0.3s;
	font-weight: 600;
}

.home__select:hover {
	border: 2px solid var(--btn-bg);
}

.home__select:focus {
	border: 2px solid var(--btn-bg);
}

.modal-overlay {
	background: rgba(0, 0, 0, 0.5);
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1050;
	pointer-events: none;
	margin: 0;
	padding: 0;
	opacity: 0;
	-webkit-transition: opacity 150ms ease-in;
	-moz-transition: opacity 150ms ease-in;
	transition: opacity 150ms ease-in;
	padding: 20px;
}

.modal-dialog {
	background: #ffffff;
	position: relative;
	width: 40%;
	margin: auto;
	padding: 10px;
	border-radius: 20px;
	color: black;
}

.modal-overlay.active {
	opacity: 1;
	pointer-events: auto;
	overflow-y: auto;
}

#modal-close-info {
	text-decoration: none;
}

.modal-dialog [data-modal-close] {
	position: absolute;
	right: 62px;
	top: 54px;
	font-size: 45px;
	color: #5d6db4;
	opacity: 0.35;
	line-height: 45px;
}

.modal-dialog-title {
	color: #141414;
	padding: 54px 54px 40px 54px;
	text-transform: uppercase;
	font-size: 22px;
	font-weight: 800;
}

.modal-dialog-body {
	padding: 0 54px;
}

.modal-dialog-body h2 {
	color: #141414;
	font-size: 20px;
	margin-bottom: 24px;
}

.modal-dialog-body p {
	color: #141414;
}

.modal-contact {
	margin-top: 24px;
}

.modal-overlay-info {
	background: rgba(0, 0, 0, 0.5);
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1050;
	pointer-events: none;
	margin: 0;
	padding: 0;
	opacity: 0;
	-webkit-transition: opacity 150ms ease-in;
	-moz-transition: opacity 150ms ease-in;
	transition: opacity 150ms ease-in;
	padding: 20px;
	border-radius: 0px;
}

.modal-overlay-info.active {
	opacity: 1;
	pointer-events: auto;
	overflow-y: auto;
}

.home__select:after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1rem;
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid var(--btn-bg);
	transform: translateY(-50%);
}

.home__select:hover:after {
	border-top-color: var(--body-color);
}

.products {
	margin-top: 5rem;
	margin-bottom: 5rem;
}

.products__card {
	cursor: pointer;

	position: relative;
	text-align: center;

	padding: 2rem;
	border-radius: 24px;
	background-color: var(--header-color);

	transition: all 0.3s;
}

.products__buy-img {
	display: none;
	margin: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.products__title {
	color: var(--desc-color);
}

.products__desc {
	color: var(--btn-bg);

	text-transform: uppercase;
}

.products__statuses {
	display: flex;
	flex-direction: row;
	gap: 1rem;
}

.products__status,
.products__status-popular {
	font-size: 1em;

	padding: 1rem;
	border-radius: 10px;
	width: max-content;
	background-color: var(--btn-bg);
}

.products__status-popular {
	background-color: var(--fail-color);
}

.footer__link {
	cursor: pointer;
}

.footer__container,
.footer__list,
.footer__social {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.footer {
	margin-top: 5rem;
	margin-bottom: 5rem;
}

.footer__img {
	cursor: pointer;
}

.footer__img:hover {
	filter: contrast(3);
}

.footer__logo {
	font-size: 1em;
	font-weight: var(--font-medium);
	color: var(--desc-color);
}

.footer__list,
.footer__social {
	gap: 2rem;
}

.success__container {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.success__data {
	gap: 5rem;
	text-align: center;
}

.success__title {
	color: var(--btn-bg);
}

.success__btn {
	position: absolute;
	right: 0;
	left: 0;
	bottom: 40px;

	text-align: center;

	color: var(--back-color);
}

.fail__container {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.fail__data {
	gap: 5rem;
	text-align: center;
}

.fail__title {
	color: var(--fail-color);
}

.fail__btn {
	position: absolute;
	right: 0;
	left: 0;
	bottom: 40px;

	text-align: center;

	color: var(--back-color);
}

.wait__container {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.wait__data {
	gap: 5rem;
	text-align: center;
}

.wait__title {
	color: var(--wait-color);
}

.wait__btn {
	position: absolute;
	right: 0;
	left: 0;
	bottom: 40px;

	text-align: center;

	color: var(--back-color);
}

@media screen and (min-width: 500px) {
	.products__container {
		grid-template-columns: repeat(2, auto);
	}

	.products__cat {
		flex-direction: row;
	}
}

@media screen and (min-width: 1000px) {
	.home__title {
		font-size: 4em;
	}

	.home__banner-container {
		grid-template-columns: repeat(2, auto);
		align-items: flex-end;
	}

	.products__container {
		grid-template-columns: repeat(3, auto);
	}
}

@media screen and (min-width: 1400px) {
	.container {
		margin: 0 auto;
	}

	.nav__list {
		gap: 2rem;
		flex-direction: row;
	}

	.nav__toggle,
	.nav__close {
		display: none;
	}

	.home__container {
		width: 100%;
	}

	.products__container {
		grid-template-columns: repeat(4, auto);
	}

	.footer__container,
	.footer__list,
	.footer__social {
		flex-direction: row;
	}
}

@media screen and (max-width: 1024px) {
	.nav__logo {
		margin-left: 0;
	}

	.modal-dialog {
		width: 100%;
	}
}