/* Приветственный баннер на главной */

.welcome {
	padding: 0 10px;
}

.welcome__banner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(40px, 2vw, 50px);

	position: relative;
	width: 100%;

	padding: clamp(25px, 5vw, 100px) 0;
	box-sizing: border-box;

	border-radius: clamp(20px, 2vw, 32px);
	overflow: hidden;

	background-color: var(--accent-color);
}

.welcome__img-mobile {
	display: none;
}

.welcome__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(20px, 2vw, 30px);

	width: 50%;

	padding: 0 clamp(20px, 3vw, 50px);
	box-sizing: border-box;
}

.welcome__title {
	font-size: clamp(2em, 3vw, 4em);
	font-weight: 900;
	line-height: 110%;
	font-style: normal;

	color: #7DF5FF;
}

.welcome__description {
	font-size: clamp(1em, 1vw, 1.125em);
	font-weight: 400;
	line-height: 150%;
	font-style: normal;

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

.welcome__actions {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;

	padding: 0 clamp(20px, 3vw, 50px);
	box-sizing: border-box;
}

.welcome__action {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 5px;

	padding: 15px 30px 18px 30px;
	box-sizing: border-box;

	border-radius: 50px;
	height: 50px;

	transition: background .2s ease;

	font-size: 1em;
	font-weight: 500;
	font-style: normal;
	line-height: normal;
}

.welcome__action:hover {
	background-color: var(--white-color);
}

.welcome__action:hover .fa-solid {
	color: var(--accent-color);
}

.welcome__action.create {
	background-color: var(--highlight-color);
	color: var(--accent-color);
}

.welcome__action.join {
	border: 1px solid var(--white-color);
	color: var(--white-color);

	transition: background .2s ease, color .2s ease, fill .2s ease;
}

.welcome__action:hover {
	background-color: var(--white-color);
	color: var(--accent-color);
}

.welcome__images-desktop img {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 85%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.welcome__images-desktop img:nth-child(1) {
    animation: fadeInOut 8s infinite;
}

.welcome__images-desktop img:nth-child(2) {
    animation: fadeInOut 8s infinite 4s;
}

.welcome__images-desktop img:nth-child(3) {
    animation: fadeInOut 8s infinite 6s;
}

.welcome__images-desktop img:nth-child(4) {
    animation: fadeInOut 8s infinite 2s;
}



/* Коротко о платформе */

.about__items {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 20px;
}

.about__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(30px, 2vw, 50px);

	padding: 30px 40px 50px 40px;

	border-radius: clamp(20px, 2vw, 32px);
}

.about__item.first {
	background-color: var(--bg-color);
}

.about__item.second {
	background-color: var(--accent-color);
}

.about__item-header {
	font-size: clamp(1.25em, 2vw, 1.5em);
	font-weight: 500;
	line-height: 150%;
	font-style: normal;
}

.about__item.first .about__item-header {
	color: var(--main-color);
}

.about__item.second .about__item-header {
	color: var(--white-color);
}

.about__item-details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(30px, 2vw, 40px);
}

.about__details-item {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 20px;
}

.about__details-item .fa-solid {
	font-size: 2em;
}

.about__details-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;

	width: 100%;
}

.about__details-info-header {
	font-size: clamp(1em, 2vw, 1.125em);
	font-weight: 500;
	line-height: 100%;
	font-style: normal;
}

.about__item.first .about__details-info-header {
	color: var(--main-color);
}

.about__item.second .about__details-info-header{
	color: var(--white-color);
}

.about__details-info-desc {
	font-size: 1em;
	font-weight: 400;
	line-height: 150%;
	font-style: normal;
}

.about__item.first .about__details-info-desc {
	color: var(--gray-color);
}

.about__item.second .about__details-info-desc {
	color: rgba(255, 255, 255, .8);
}

.about__details-info-desc .highlight {
	font-weight: 500;
	color: var(--highlight-color);
}


/* Зачем публиковать задания */

.advantages-section .container-section__header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(30px, 2vw, 50px);

	width: 50%;
}

.advantages__container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 100px;

	width: 100%;
	padding: 50px 0px 30px 0px;
}

.advantages__items {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(20px, 2vw, 30px);
}

.advantages__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	align-self: stretch;
	gap: 10px;

	width: 100%;
}

.advantages__item-title {
	font-size: clamp(1em, 2vw, 1.125em);
	font-weight: 500;
	line-height: 100%;
	font-style: normal;
}


.advantages__item p {
	font-size: 1em;
	font-weight: 400;
	line-height: 150%;
	font-style: normal;

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

.advantages__content {
	position: relative;
	width: 50%;
	height: 450px;
	margin: 0 30px;

	background-image: url("/assets/img/direct-content.webp");
	background-repeat: no-repeat;
	background-position: top right;
	background-size: cover;

	border-radius: clamp(20px, 2vw, 32px);
}

.advantages__tip {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;

	width: fit-content;
	position: absolute;

	padding: 12px 15px 17px 15px;
	box-sizing: border-box;

	background-color: var(--accent-color);

	border-radius: 12px;
}

.advantages__tip.first {
	top: -20px;
	left: 30px;
}

.advantages__tip.second {
	bottom: 30px;
	left: -30px;
}

.advantages__tip.third {
	top: 40%;
	right: -30px;
}

.advantages__tip-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	align-self: stretch;

	gap: 15px;
}

.advantages__tip-title,
.advantages__tip-percent {
	font-size: 0.875em;
	font-weight: 500;
	font-style: normal;
	line-height: normal;

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

.advantages__tip-progress {
	width: 100%;
	height: 5px;

	position: relative;

	border-radius: 100px;

	background-color: rgba(225, 255, 255, .5);
}

.advantages__tip-progress span {
	position: absolute;
	top: 0; left: 0;

	height: 5px;

	border-radius: 100px;

	background-color: var(--highlight-color);
}






@media screen and (max-width: 950px) {
	.welcome__actions {
		flex-direction: column;
	}
	.welcome__action {
		width: 100%;
	}
	.welcome__images-desktop img {
		right: -50px;
	}
	.about__items {
		flex-direction: column;
	}
	.about__item {
		padding: 20px 20px 30px 20px;
	}
	.advantages__container {
		flex-direction: column;
		gap: 50px;
		padding: 0;
	}
	.advantages-section .container-section__header,
	.advantages__content {
		width: 100%;
	}
	.advantages__tip.second {
		bottom: 30px;
		left: -10px;
	}

	.advantages__tip.third {
		top: 40%;
		right: -10px;
	}
}

@media screen and (max-width: 820px) {
	.welcome__images-desktop {
		display: none;
	}
	.welcome__img-mobile {
		display: block;
		width: 100%;
	}
	.welcome__content {
		width: 75%;
	}
	.welcome__actions {
		flex-direction: row;
		width: 100%;
	}
}

@media screen and (max-width: 600px) {
	.welcome__content {
		width: 100%;
	}
}

@media screen and (max-width: 550px) {
	.welcome__actions {
		flex-direction: column;
		width: 100%;
	}
}









