*,
*::after,
*::before {
	padding: 0;
	margin: 0;
	box-sizing: inherit;
}

:root {
	--primary-color: hsl(300, 43%, 22%);
	--secondary-color: hsl(333, 80%, 67%);
	--tertiary-color: hsl(303, 10%, 53%);
	--light-gray: hsl(300, 24%, 96%);
	--white: hsl(0, 0%, 100%);
}
html {
	font-size: 62.5%;
	width: 100%;
	height: 100%;
}

body {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "League Spartan", sans-serif;
	height: 100%;
	background-image: url(../images/bg-pattern-top-desktop.svg), url(../images/bg-pattern-bottom-desktop.svg);
	background-repeat: no-repeat;
	background-position: left top, right bottom;
	background-attachment: fixed;
}

a,
a:visited,
a:link {
	/* code here */
	text-decoration: underline;
}

.container {
	max-width: 120rem;
	padding: 0 2rem;
	margin: 0 auto;
}

.space-between {
	display: flex;
	justify-content: space-between;
}
.mb-xs {
	margin-bottom: 8px;
}

button {
	cursor: pointer;
}
.attribution {
	font-size: 11px;
	text-align: center;
}
.attribution a {
	color: hsl(228, 45%, 44%);
}

.description__title {
	font-size: 4rem;
	color: var(--primary-color);
	font-weight: 700;
}
.description__text {
	font-size: 1.6rem;
	line-height: 1.4;
	color: var(--tertiary-color);
	font-weight: 500;
}

.mb-sm {
	margin-bottom: 2rem;
}

.main {
	padding-top: 10rem;
}

.rating {
	font-size: 1.6rem;
	padding: 1.5rem;
	width: 400px;
	margin: 2rem;
	font-weight: 700;
	color: var(--primary-color);
	background-color: var(--light-gray);
	position: relative;
	text-align: left;
}
.ratings__list {
	text-align: center;
}
div.rating:first-of-type {
	right: 80px;
}
div.rating:nth-of-type(2) {
	right: 40px;
}

.testimonials {
	margin-top: 4rem;
	align-items: flex-start;
	width: 100%;
	padding-bottom: 10rem;
}

.testimonial {
	background-color: var(--primary-color);
	padding: 3rem;
	color: var(--white);
	flex: 0 0 30%;
	border-radius: 5px;
	font-size: 1.6rem;
	max-width: 400px;
}

.testimonial__status {
	color: var(--secondary-color);
}
.testimonial__info {
	display: flex;
	align-items: center;
	padding-bottom: 2rem;
}
.testimonial__text {
	line-height: 1.3;
}
.testimonial__image {
	width: 64px;
	height: 64px;
	border-radius: 50%;
}
.testimonial__personal__info {
	margin-left: 8px;
}

.stars {
	margin-right: 10px;
}

@media only screen and (max-width: 968px) {
	.rating {
		position: static;
		text-align: center;
	}
	.space-between {
		flex-direction: column;
		align-items: center;
	}
	.testimonial {
		margin-top: 10px !important;
	}
	.stars {
		display: block;
		margin-bottom: 4px;
	}
}
