/* #region HEADER */
.header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 10;
}

.header__content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	gap: 18px;
}

.header__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 43px;
}

.nav__list {
	display: flex;
	gap: 43px;
}

.nav__item {
	display: flex;
	align-items: center;
	justify-content: center;
}

.nav__link {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-weight: 600;
	padding-block: 8px;
	transition: color 0.3s;

	&:hover {
		color: #60f;
	}
}

.header__toggler {
	display: none;
	width: 40px;
	height: 40px;
	position: relative;
	z-index: 3;

	&::before,
	&::after {
		content: "";
	}

	span,
	&::before,
	&::after {
		display: block;
		background: #ffffff;
		height: 2px;
		width: 28px;
		border-radius: 4px;
		position: absolute;
		transition: transform 0.3s, opacity 0.3s, background 0.3s;
	}

	&::before {
		top: 8px;
	}

	&::after {
		bottom: 8px;
	}

	&:hover {
		span,
		&::before,
		&::after {
			background: #60f;
		}
	}
}

.header--menu-open .header__toggler {
	span {
		background: transparent;
	}

	&::before {
		transform: translateY(10px) rotate(45deg);
	}

	&::after {
		transform: translateY(-12px) rotate(-45deg);
	}
}

@media (max-width: 998px) {
	.header__content {
		flex-direction: column;
	}
}

@media (max-width: 744px) {
	.header__content {
		flex-wrap: nowrap;
		flex-direction: row;
		padding-top: 24px;
	}

	.header__logo {
		min-width: 192px;
		width: 192px;
	}

	.header__toggler {
		display: flex;
		justify-content: center;
		align-items: center;
		z-index: 3;
		cursor: pointer;
		flex-shrink: 0;
	}

	.header__nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100dvh;
		flex-direction: column;
		justify-content: start;
		background-color: #404040;
		padding-top: 100px;
		padding-inline: 16px;
		opacity: 0;
		transform: translateX(100%);
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
		z-index: 2;
	}

	.header--menu-open {
		.header__nav {
			transform: translateX(0);
			opacity: 1;
			visibility: visible;
			pointer-events: auto;
		}

		.header__logo {
			position: relative;
			z-index: 3;
		}
	}

	.nav__list {
		flex-direction: column;
	}

	.nav__link {
		padding: 0;
	}

	.header__language-selector {
		max-width: 100%;
		width: 100%;
		justify-content: center;
	}
}

/* #endregion Header */

/* #region HERO SECTION */

.hero {
	padding-block: 216px 255px;
	position: relative;
	background: url("../img/hero-bg.webp") lightgray 50%;
	background-size: cover;
	background-position: 0 5%;
	background-repeat: no-repeat;
	background-attachment: fixed;

	&::before {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.4) 0%,
			rgba(0, 0, 0, 0.8) 100%
		);
	}
}

.hero__content {
	position: relative;
	text-wrap: pretty;
}

.hero__title {
	color: #d8d8d8;
	margin-bottom: 42px;
}

.hero__wrapper {
	display: flex;
	gap: 64px;
	align-items: center;
	justify-content: flex-start;
}

.hero__description {
	max-width: 455px;
	color: #fff;
	font-weight: 600;
}

.hero__text-highlight {
	font-weight: 900;
	background: var(--bg-gradient);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

@media (max-width: 998px) {
	.hero {
		padding-block: 206px 200px;
		background-position: left;
	}

	.hero__wrapper {
		flex-direction: column;
		gap: 42px;
	}

	.hero__description {
		margin-right: auto;
	}
}

@media (max-width: 744px) {
	.hero {
		padding-block: 96px 93px;
	}
	.hero__title {
		margin-bottom: 30px;
	}
}

/* #endregion HERO SECTION */

/* #region ABOUT SECTION */
.about {
	padding-block: 150px;
}

.about__wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.about__header {
	text-align: center;
	max-width: 760px;
	margin-bottom: 70px;
}

.about__title {
	color: #d8d8d8;
	margin-bottom: 30px;
}

.about__description {
	color: #a09e9e;
	max-width: 710px;
}

.about__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 30px;
}

.about__card {
	border-radius: 15px;
	border: 1px solid transparent;
	background-image: linear-gradient(#121216, #121216),
		linear-gradient(225deg, #26008f 0%, #606060 50%, #26008f 100%);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	background-size: 100% 100%, 200% 200%;
	background-position: 0 0, 100% 0;
	box-shadow: 0 4px 48px 0 rgba(0, 0, 0, 0.65);
	padding: 50px 40px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	transition: background-position 0.6s, box-shadow 0.3s, border-color 0.3s,
		scale 0.3s;

	&:hover {
		scale: 1.03;
		box-shadow: 0 20px 40px -10px rgba(38, 0, 143, 0.3);
		background-position: 0 0, 0 100%;

		.about__card-icon {
			background: rgba(68, 0, 255, 0.4);
			box-shadow: 0 0 20px rgba(68, 0, 255, 0.6);
			transform: scale(1.1) rotate(5deg);
			color: #ffffff;
			border-color: #6633ff;
		}
	}
}

.about__card-wrapper {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 32px;
}

.about__card-icon {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1d6af0;
	border-radius: 8px;
	border: 1px solid #40f;
	background: rgba(68, 0, 255, 0.17);
	transition: box-shadow 0.3s, transform 0.3s, background-color 0.3s, color 0.3s;
}

.about__card-title {
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	text-wrap: balance;
}

.about__card-text {
	font-weight: 400;
}

@media (max-width: 998px) {
	.about {
		padding-block: 120px;
	}
	.about__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 16px;
	}

	.about__card {
		padding-inline: 30px;

		&:nth-child(3) {
			grid-column: span 2;
		}
	}
}

@media (max-width: 744px) {
	.about {
		padding-block: 100px;
	}
	.about__header {
		margin-bottom: 50px;
	}
	.about__grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.about__card {
		padding-inline: 25px;
		min-width: 0;

		&:nth-child(3) {
			grid-column: auto;
		}
	}
	.about__card-wrapper {
		margin-bottom: 20px;
	}
}
/* #endregion ABOUT SECTION */

/* #region SUCCESS SECTION */
.success,
.success__wrapper {
	padding-bottom: 150px;
}

.success__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 26px;
	margin-bottom: 26px;
}

.success__header {
	max-width: 518px;
}

.success__title {
	color: #d8d8d8;
	margin-bottom: 36px;
}

.success__image {
	flex-grow: 1;
	img {
		border-radius: 30px;
		transition: scale 0.3s, box-shadow 0.3s, background-position 0.3s;

		&:hover {
			scale: 1.03;
			box-shadow: 0 20px 40px -10px rgba(38, 0, 143, 0.3);
			background-position: 0 0, 0 100%;
		}
	}
}

.success__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.success__images {
	display: flex;
	gap: 24px;
	flex-shrink: 0;

	img {
		border-radius: 30px;
		width: 304px;
		transition: scale 0.3s, box-shadow 0.3s, background-position 0.3s;

		&:hover {
			scale: 1.03;
			box-shadow: 0 20px 40px -10px rgba(38, 0, 143, 0.3);
			background-position: 0 0, 0 100%;
		}

		&:last-child {
			filter: brightness(50%);
		}
	}
}

.success__stats {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 63px 26px;
}

.success__stat-item {
	text-align: center;
	flex: 1;
}

.success__stat-number {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-size: 100px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.25;
	background: var(--bg-gradient);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-variant-numeric: tabular-nums;
	margin-bottom: 10px;
}

.success__stat-label {
	font-weight: 500;
}

@media (max-width: 998px) {
	.success,
	.success__wrapper {
		padding-bottom: 120px;
	}

	.success__top {
		gap: 16px;
	}

	.success__image {
		flex-shrink: 0;
		max-width: 50%;
		width: 100%;

		img {
			aspect-ratio: 1;
		}
	}

	.success__header {
		max-width: 100%;
	}

	.success__images {
		max-width: 334px;
		width: 100%;

		img {
			width: 100%;

			&:last-child {
				display: none;
			}
		}
	}

	.success__stats {
		flex-wrap: wrap;
		justify-content: center;
	}

	.success__stat-item {
		flex: 0 0 45%;
		min-width: 320px;
	}
}

@media (max-width: 744px) {
	.success,
	.success__wrapper {
		padding-bottom: 100px;
	}

	.success__top,
	.success__bottom {
		flex-direction: column;
	}

	.success__top {
		margin-bottom: 20px;
	}

	.success__title {
		margin-bottom: 30px;
	}

	.success__image {
		height: 296px;
		max-width: 334px;

		img {
			height: 100%;
		}
	}

	.success__images {
		min-height: 192px;
	}

	.success__stats {
		gap: 40px;
	}

	.success__stat-item {
		min-width: 100%;
	}
}

/* #endregion SUCCESS SECTION */

/* #region SERVICES SECTION */
.services {
	padding-bottom: 150px;
}

.services__wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.services__title {
	text-align: center;
	margin-bottom: 70px;
}

.services__item {
	display: flex;
	flex-direction: column;
	gap: 20px;

	h4 {
		color: #d8d8d8;
	}
}

.services__content {
	display: grid;
	grid-template-columns: auto minmax(150px, 410px) auto;
	grid-template-rows: auto auto auto;
	gap: 56px 26px;
	margin-bottom: 50px;
}

.services__top {
	grid-column: 1 / -1;
	grid-row: 1;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}

.services__item--it-services {
	text-align: right;
	align-self: end;
	max-width: 498px;
	min-width: 334px;
}
.services__item--it-consulting {
	text-align: left;
	align-self: end;
	max-width: 498px;
	min-width: 334px;
}
.services__item--web-services {
	grid-column: 1;
	grid-row: 2;
	text-align: right;
	max-width: 409px;
	min-width: 253px;
}

.services__center {
	grid-column: 2;
	grid-row: 1 / 3;
	display: flex;
	justify-content: center;
	align-items: center;

	&.show img {
		opacity: 1;
		transform: rotate(360deg) scale(1);
	}

	img {
		flex-shrink: 1;
		max-width: 410px;
		min-width: 150px;
		width: auto;
		opacity: 0;
		transform: rotate(0deg) scale(0.5);
		transition: transform 1s ease, opacity 1s ease;
	}
}

.services__item--training {
	grid-column: 3;
	grid-row: 2;
	text-align: left;
	max-width: 409px;
	min-width: 246px;
}

.services__bottom {
	grid-column: 1 / -1;
	grid-row: 3;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 50px;
	margin-left: 80px;
}

.services__item--financial-guidance {
	text-align: right;
	max-width: 409px;
	min-width: 334px;
}

.services__item--ai {
	text-align: left;
	max-width: 498px;
	min-width: 334px;
}

@media (max-width: 1300px) {
	.services__content {
		align-items: center;
	}
	.services__center {
		grid-row: 2 / 3;
	}
	.services__bottom {
		margin-left: 0;
		gap: 16px;
	}
	.services__item--it-services {
		margin-bottom: auto;
	}
}

@media (max-width: 998px) {
	.services {
		padding-bottom: 120px;
	}
	.services__content {
		gap: 30px 16px;
		margin-bottom: 0;
	}

	.services__item--it-services,
	.services__item--web-services,
	.services__item--financial-guidance {
		text-align: start;
	}

	.services__btn {
		display: none;
	}
}

@media (max-width: 744px) {
	.services {
		padding-bottom: 100px;
	}
	.services__title {
		margin-bottom: 50px;
	}
	.services__content {
		display: flex;
		flex-direction: column;
		gap: 30px;
	}
	.services__top,
	.services__bottom {
		flex-direction: column;
		gap: 30px;
		width: 100%;
	}
	.services__item {
		max-width: 100%;
		min-width: 0;
	}
	.services__center {
		display: none;
	}
}
/* #endregion SERVICES SECTION */

/* #region INDUSTRIES SECTION */
.industries {
	padding-bottom: 150px;
}

.industries__wrapper {
	position: relative;

	padding: 80px 60px;
	border-radius: 30px;
	border: 1px solid #3c3c3c;

	&::before {
		content: "";
		background-image: url("../img/industries-bg.webp");
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		background-attachment: fixed;
		border-radius: 30px;
		height: 100%;
		width: 100%;
		position: absolute;
		top: 0;
		left: 0;
		z-index: -1;
		filter: brightness(50%);
	}
}

.industries__content {
	display: flex;
	flex-direction: column;
	max-width: 974px;
}

.industries__title {
	color: #fff;
	margin-bottom: 70px;
}

.industries__list {
	display: grid;
	align-items: stretch;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(4, 1fr);
	grid-auto-flow: column;
	gap: 20px 42px;
}

.industries__item {
	display: flex;
	align-items: center;
	position: relative;
	padding: 30px;
	border-radius: 15px;
	color: #bdbcbc;
	font-size: 20px;
	line-height: normal;
	font-weight: 500;
	letter-spacing: -1px;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(64, 64, 64, 0.4);
	transition: background 0.3s, color 0.3s, box-shadow 0.3s;

	span {
		margin-left: 28px;
	}

	&::before {
		content: "";
		position: absolute;
		left: 42px;
		top: 50%;
		transform: translateY(-50%);
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: currentColor;
	}

	&:hover {
		background: rgba(255, 255, 255, 0.4);
		color: #fff;
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	}
}

.industries__item--last {
	display: flex;
	align-items: center;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 150%;
	letter-spacing: -0.8px;
	max-width: 624px;
}

@media (max-width: 1200px) {
	.industries {
		padding-bottom: 120px;
	}
	.industries__wrapper {
		padding: 80px 30px;
	}

	.industries__content {
		max-width: 100%;
	}

	.industries__list {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		grid-auto-flow: row;
	}
}

@media (max-width: 744px) {
	.industries {
		padding-bottom: 100px;
		.container {
			padding: 0;
		}
	}
	.industries__wrapper {
		padding: 80px 16px;
	}
	.industries__title {
		margin-bottom: 50px;
	}
	.industries__item {
		align-items: flex-start;
		font-size: 16px;

		span {
			margin-left: 10px;
		}

		&::before {
			position: static;
			transform: none;
			display: inline-block;
			margin-top: 6px;
			width: 4px;
			height: 4px;
			flex-shrink: 0;
		}
	}
}

/* #endregion INDUSTRIES SECTION */

/* #region CLIENTS SECTION */
.clients {
	padding-bottom: 150px;
}
.clients__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 824px;
	margin: 0 auto;
}

.clients__title {
	margin-bottom: 30px;
}

.clients__description {
	margin-bottom: 50px;
}

@media (max-width: 998px) {
	.clients {
		padding-bottom: 120px;
	}
	.clients__content {
		max-width: 624px;
	}
}

@media (max-width: 744px) {
	.clients {
		padding-bottom: 100px;
	}
	.clients__content {
		max-width: 100%;
	}
}
/* #endregion CLIENTS SECTION */

/* #region CONTACT SECTION */
.contact {
	padding-bottom: 192px;
}
.contact__wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 26px;
}

.contact__content {
	max-width: 628px;
}

.contact__title {
	margin-bottom: 30px;
}

.contact__description {
	margin-bottom: 20px;
	font-weight: 600;

	&:last-child {
		margin-bottom: 30px;
	}
}

.contact__info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 30px;
	font-weight: 600;

	a {
		span {
			transition: color 0.3s;
		}

		&:hover span {
			color: #fff;
		}
	}
}

.contact__text {
	color: #d8d8d8;
	font-weight: 700;
}

.contact__form-wrapper {
	display: flex;
	flex-direction: column;
	max-width: 628px;
	width: 100%;
	gap: 38px;
	border-radius: 15px;
	border: 1px solid #5f5f60;
	background: #121212;
	box-shadow: 0 4px 47.7px 0 rgba(0, 0, 0, 0.65);
	padding: 60px 54px 46px 54px;
}

.contact__form {
	display: flex;
	flex-direction: column;

	label {
		font-weight: 600;
		margin-bottom: 16px;
		transition: color 0.3s;

		&:has(+ input:user-invalid) {
			color: #c90000;
		}

		&:has(+ input:user-valid) {
			color: #71eba3;
		}
	}

	input {
		display: flex;
		padding: 20px;
		align-items: center;
		gap: 10px;
		margin-bottom: 20px;
		border-radius: 5px;
		font-size: 16px;
		font-weight: 400;
		color: #fff;
		background: transparent;
		border: 1px solid #5d5c5c;
		transition: border-color 0.3s;

		&::placeholder {
			color: #706e6e;
			font-size: 14px;
			font-weight: 400;
			line-height: 1.5;
		}

		&:-webkit-autofill {
			background-color: transparent !important;
			color: #fff !important;
			-webkit-text-fill-color: #fff !important;
			box-shadow: 0 0 0px 1000px rgb(18, 18, 18) inset !important;
		}

		&:hover {
			border-color: #fff;
		}

		&:focus {
			border-color: #fff;
		}

		&:user-valid {
			border-color: #71eba3;
		}

		&:user-invalid {
			border-color: #c90000;
			color: #c90000;
			outline-color: #c90000;

			&::placeholder {
				color: #c90000;
				opacity: 1;
			}
		}
	}

	textarea {
		display: flex;
		background: transparent;
		padding: 20px;
		align-items: center;
		border-radius: 5px;
		border: 1px solid #5d5c5c;
		color: #fff;
		min-height: 118px;
		max-width: 516px;
		transition: border-color 0.3s;

		&::placeholder {
			color: #706e6e;
			font-size: 14px;
			font-weight: 400;
			line-height: 1.5;
		}
		&:hover {
			border-color: #fff;
		}
	}
}

.contact__btn {
	max-width: 100%;
	padding: 22px 32px;

	&.loading {
		opacity: 0.6;
		pointer-events: none;
		cursor: not-allowed;
	}
}

.alert-container {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.alert {
	padding: 16px 24px;
	border-radius: 6px;
	font-weight: 600;
	color: #fff;
	opacity: 0;
	transform: translateY(-20px);
	transition: all 0.3s ease;

	&.show {
		opacity: 1;
		transform: translateY(0);
	}

	&.alert-success {
		background-color: #71eba3;
	}

	&.alert-error {
		background-color: #c90000;
	}
}

@media (max-width: 1200px) {
	.contact {
		padding-bottom: 128px;
	}
	.contact__wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 50px;
	}
	.contact__content {
		max-width: 100%;
	}
	.contact__form-wrapper {
		margin-inline: auto;
	}
}

@media (max-width: 744px) {
	.contact {
		padding-bottom: 100px;
	}
	.contact__form-wrapper {
		padding: 30px 20px;
	}
	.contact__form {
		input {
			font-size: 14px;
		}
		textarea {
			font-size: 14px;
			min-height: 128px;
			max-width: 100%;
		}
	}
}

/* #endregion CONTACT SECTION */

/* #region FOOTER */
.footer {
	padding-block: 40px 42px;
	border-top: 1px solid #5f5f60;
}
.footer__wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 28px;
}
.footer__content {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 20px;
	max-width: 550px;
	width: 100%;
}

.footer__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 42px;
	padding-left: 20px;
}

.footer__list {
	display: flex;
	align-items: center;
	gap: 42px;
	text-align: center;
}

.footer__info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	color: #40f;
	width: 100%;

	a {
		transition: color 0.3s;
		&:hover {
			color: #fff;
			text-decoration: underline;
		}
	}
}
.footer__copyright {
	font-weight: 600;
}

@media (max-width: 998px) {
	.footer__wrapper {
		flex-direction: column;
	}
	.footer__copyright {
		text-align: center;
	}
	.footer__nav {
		padding-left: 0;
	}
}

@media (max-width: 744px) {
	.footer {
		padding-block: 40px 52px;
	}
	.footer__wrapper {
		align-items: flex-start;
	}
	.footer__content {
		align-items: flex-start;
		gap: 42px;
	}
	.footer__nav,
	.footer__list,
	.footer__info {
		align-items: flex-start;
		flex-direction: column;
	}
	.footer__copyright {
		text-align: start;
		font-size: 16px;
	}
}

/* #endregion FOOTER */
