/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* Hero */

.hero-card {
	height: 100vh;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	color: var(--color-white);
}

.hero-card__sup-title {
	font-family: var(--title-accent-font);
	font-size: 49px;
	line-height: 1.38;
	color: var(--color-accent-light);
	margin-bottom: 4px;
}
.hero-card__title {
	text-transform: uppercase;
	font-family: var(--title-font);
	font-size: 85px;
	text-shadow: 0px 4px 56px rgba(0, 0, 0, 0.6);
	margin-bottom: 42px;
}
.hero-card__text {
	font-family: 'Arimo';
	font-size: 20px;
	line-height: 140%;
}
.hero-swiper__nav {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	gap: 32px;
	position: absolute;
	bottom: 42px;
	left: 50%;
	-webkit-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
	z-index: 5;
	.swiper-pagination,
	.swiper-button-prev,
	.swiper-button-next {
		position: static;
		margin: 0;
	}
	.swiper-button-prev,
	.swiper-button-next {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 auto;
		flex: 0 0 auto;
	}
}

/* Hero */

/* Welcome */

.welcome__inner {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 48px;
}
.welcome__content {
	width: 632px;
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	/* flex: 0 0 auto; */
	padding: 20px 0;
	.title-label {
		margin-bottom: 4px;
	}
	.title {
		margin-bottom: 40px;
	}
	.description {
		margin-bottom: 40px;
	}
}

.welcome__decor {
	position: relative;
	padding-bottom: 55px;
	width: 100%;
	max-width: 600px;
}
.partner-item {
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	width: 100%;
	&:nth-child(1),
	&:nth-child(2) {
		aspect-ratio: 158/150;
	}
	&:nth-child(3) {
		aspect-ratio: 240/150;
	}
	&:nth-child(4) {
		aspect-ratio: 238/150;
	}
}
.welcome__img {
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	&:nth-child(1) {
		width: 524px;
		aspect-ratio: 1;
		margin-right: auto;
	}
	&:nth-child(2) {
		position: absolute;
		right: 0;
		bottom: 0;
		border-top: 12px solid var(--color-background);
		border-left: 12px solid var(--color-background);
		width: 262px;
		aspect-ratio: 250/384;
	}
}
/* Welcome */
/* Partners */

.partners {
	background-color: var(--color-white);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.partners__inner {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 56px;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	.title-md {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 auto;
		flex: 0 0 auto;
		min-width: 284px;
	}
}
.partners__items {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	flex: 1;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	gap: 48px;
}

/* Partners */

.favorites {
	background-color: var(--color-white);
}
/* Quality */

.quality {
	background-color: var(--color-dark);
}

.quality__head {
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: (1fr) [2];
	grid-template-columns: repeat(2, 1fr);
	-webkit-box-align: end;
	-ms-flex-align: end;
	align-items: end;
	color: var(--color-white);
	margin-bottom: 26px;
	.text {
		margin-bottom: 20px;
	}
}

.quality__body {
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: 1fr 48px 1fr 48px 1fr 48px 1fr;
	grid-template-columns: repeat(4, 1fr);
	gap: 60px 48px;
}
.quality__list {
	display: contents;
	counter-reset: counter;
	list-style: none;
	li {
		line-height: 140%;
		color: rgba(255, 255, 255, 0.6);
		counter-increment: counter;
		position: relative;
		padding-top: 85px;
		&::before {
			position: absolute;
			font-family: var(--title-accent-font);
			font-size: 89px;
			line-height: 1.38;

			z-index: -1;
			text-align: right;
			color: rgba(250, 230, 170, 0.3);

			top: 0;
			right: 0;
			content: counter(counter, decimal-leading-zero);
		}
	}
}
.quality__decor {
	-ms-grid-row: 2;
	-ms-grid-row-span: 3;
	-ms-grid-column: 3;
	-ms-grid-column-span: 2;
	grid-area: 2 / 3 / 5 / 5;
	padding-top: 26px;
	padding-left: 92px;
	position: relative;
	margin-top: auto;
}
.quality__img {
	/* height: 100%; */
	width: 100%;
	aspect-ratio: 1;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}
.quality__img--sm {
	position: absolute;
	border-right: 12px solid var(--color-dark);
	border-bottom: 12px solid var(--color-dark);
	left: 0;
	top: 0;
	aspect-ratio: 250/384;
	width: 250px;
	height: auto;
}

/* Quality */

/* Block */
.block {
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: var(--color-white);
	min-height: 100vh;
}

.block__inner {
	max-width: 740px;
}

.block__body {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	/* gap: 40px; */
	gap: 8px;
}
.block__text {
	line-height: 140%;
	p {
		margin: 16px 0;
	}
	ul {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		gap: 16px;
		li {
			text-align: left;
			position: relative;
			padding-left: 40px;
			&::before {
				position: absolute;
				content: '';
				left: 0;
				top: 50%;
				-webkit-transform: translateY(-50%);
				-ms-transform: translateY(-50%);
				transform: translateY(-50%);
				width: 16px;
				height: 16px;
				background-color: var(--color-accent-light);
				rotate: 45deg;
			}
			b {
				color: var(--color-accent-light);
			}
		}
	}
}
/* Block */

@media (max-width: 1199.98px) {
	.hero-card__sup-title {
		font-size: 50px;
	}
	.hero-card__title {
		font-size: 70px;
		margin-bottom: 36px;
	}
	.welcome__inner {
		gap: 32px;
	}
	.quality__list {
		& li {
			padding-top: 60px;
			&::before {
				font-size: 52px;
			}
		}
	}
	.welcome__decor {
		max-width: none;
		width: 50%;
	}
	.welcome__img {
		&:nth-child(1) {
			width: 88%;
		}
		&:nth-child(2) {
			border-top-width: 10px;
			border-left-width: 10px;
			width: 44%;
		}
	}
	.partners__inner {
		gap: 44px;
	}
	.partners__items {
		gap: 40px;
	}

	.quality__decor {
		padding-left: 72px;
	}
	.quality__img--sm {
		width: 44%;
		border-bottom-width: 10px;
		border-right-width: 10px;
	}
}
@media (max-width: 1023.98px) {
	.quality__decor {
		-ms-grid-row: 3;
		-ms-grid-row-span: 2;
		-ms-grid-column: 3;
		-ms-grid-column-span: 2;
		grid-area: 3 / 3 / 5 / 5;
	}
}
@media (max-width: 767.98px) {
	.hero-card__sup-title {
		font-size: 30px;
		text-align: center;
	}
	.hero-card__title {
		font-size: 40px;
		margin-bottom: 48px;
		text-align: center;
	}
	.hero-card__text {
		text-align: center;
	}
	.welcome {
		text-align: center;

		.title {
			margin-bottom: 16px;
			text-align: center;
		}
	}
	.welcome__content {
		padding: 0;
	}
	.welcome__decor {
		width: 100%;
		margin-bottom: 32px;
	}
	.welcome__img {
		&:nth-child(2) {
			border-top-width: 8px;
			border-left-width: 8px;
		}
	}
	.partners__inner {
		gap: 32px;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		.title-md {
			text-align: center;
			br {
				display: none;
			}
		}
	}
	.partners__items {
		display: -ms-grid;
		display: grid;
		-ms-grid-columns: 1fr 32px 1fr;
		grid-template-columns: repeat(2, 1fr);
		gap: 32px;
		width: 100%;
	}
	.blog-swiper {
		.swiper-slide {
			width: 285px;
		}
	}

	.quality__decor {
		padding-top: 24px;
		padding-left: 50px;
	}
	.quality__img--sm {
		border-bottom-width: 8px;
		border-right-width: 8px;
	}
	.quality__head {
		-ms-grid-columns: auto;
		grid-template-columns: auto;
		text-align: center;
		gap: 32px;
		margin-bottom: 24px;
	}
	.quality__body {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
	}
	.quality__list {
		display: -ms-grid;
		display: grid;
		-ms-grid-columns: 1fr 48px 1fr;
		grid-template-columns: repeat(2, 1fr);
		gap: 16px 48px;
		li {
			padding-top: 41px;
			&::before {
				font-size: 60px;
				color: #212118;
			}
		}
	}
	.review-card {
		padding: 24px;
		min-height: 464px;
		gap: 20px;
	}
	.review-card__stars {
		-ms-grid-columns: (16px) [5];
		grid-template-columns: repeat(5, 16px);
	}
	.review-card__name,
	.review-card__title {
		font-size: 18px;
	}

	.review-card__bottom {
		-ms-grid-columns: 48px 1fr;
		grid-template-columns: 48px 1fr;
	}
	.block {
		text-align: center;
	}
	.block__text {
		ul {
			gap: 12px;
		}
	}
}
