:root {
    --black: #000000;
    --white: #ffffff;
    --dark-blue: #0B132A;
    --red: #F53838;
    --green: #2FAB73;
    --gray: #4F5665;
    --light-gray: #DDDDDD;
    --bg-footer: #F8F8F8;
    --bg-details: #FFECEC;
    --shadow-gray: rgba(113, 113, 113, 0.35);
    --shadow-red: rgba(245, 56, 56, 0.35);

}

/* rubik-regular - latin_cyrillic */
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/rubik-v12-latin_cyrillic-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
            url('../fonts/rubik-v12-latin_cyrillic-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
            url('../fonts/rubik-v12-latin_cyrillic-regular.woff2') format('woff2'), /* Super Modern Browsers */
            url('../fonts/rubik-v12-latin_cyrillic-regular.woff') format('woff'), /* Modern Browsers */
            url('../fonts/rubik-v12-latin_cyrillic-regular.ttf') format('truetype'), /* Safari, Android, iOS */
            url('../fonts/rubik-v12-latin_cyrillic-regular.svg#Rubik') format('svg'); /* Legacy iOS */
}

/* rubik-500 - latin_cyrillic */
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/rubik-v12-latin_cyrillic-500.eot'); /* IE9 Compat Modes */
    src: local(''),
            url('../fonts/rubik-v12-latin_cyrillic-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
            url('../fonts/rubik-v12-latin_cyrillic-500.woff2') format('woff2'), /* Super Modern Browsers */
            url('../fonts/rubik-v12-latin_cyrillic-500.woff') format('woff'), /* Modern Browsers */
            url('../fonts/rubik-v12-latin_cyrillic-500.ttf') format('truetype'), /* Safari, Android, iOS */
            url('../fonts/rubik-v12-latin_cyrillic-500.svg#Rubik') format('svg'); /* Legacy iOS */
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.container {
    margin: 0 auto;
    width: 1140px;
}

.page {
    font-family: "Rubik", "Arial", sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 30px;
    color: var(--gray);
    height: 100%;
}

.page__body {
    display: grid;
    grid-template-rows: min-content 1fr min-content;
    align-content: start;
    min-height: 100%;
}

.logo {
    position: relative;
    font-size: 20px;
    line-height: 24px;
    text-decoration: none;
    color: var(--black);
    padding-left: 45px;
}

.logo::before {
    content: "";
    position: absolute;
    background-image: url('../img/icon-logo.svg');
    background-repeat: no-repeat;
    height: 36px;
    width: 35px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.logo__name {
    font-size: 20px;
    line-height: 24px;
    color: var(--dark-blue);
}

.header {
    margin-top: 45px;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 45px;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 60px;
    border-radius: 10px;
    background-color: var(--red);
    box-shadow: 0 20px 50px var(--shadow-red);
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    line-height: 25px;
}

.button:hover {
    opacity: 0.7;
}

.button:active {
    opacity: 0.5;
}

.main-navigation__list {
    display: flex;
    flex-wrap: wrap;
    max-width: 700px;
    column-gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation__link {
    text-decoration: none;
    color: var(--gray);
    font-size: 16px;
    line-height: 19px;
}

.main-navigation__link:hover,
.user-navigation__link:hover {
    opacity: 0.7;
}

.main-navigation__link:active,
.user-navigation__link:active {
    opacity: 0.5;
}

.user-navigation__list {
    display: flex;
    column-gap: 30px;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-navigation__link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;

}

.user-navigation__link--color {
    width: 150px;
    color: var(--red);
    border: 1px solid var(--red);
    border-radius: 50px;
    height: 45px;
}

.main {
    margin-top: 88px;
}

.commercial__inner {
    display: flex;
}

.commercial__description {
    display: flex;
    flex-direction: column;
    width: 550px;
}

.commercial__title {
    margin: 0;
    color: var(--dark-blue);
    font-weight: 500;
    font-size: 50px;
    line-height: 70px;
}

.commercial__text {
    margin: 0;
    margin: 30px 0;
}

.commercial__link {
    margin-top: auto;
}

.commercial__image {
    position: relative;
    right: -60px;
}

.details {
    margin-top: 103px;
}

.detail__inner {
    box-shadow: 0 40px 60px rgba(205, 205, 205, 0.35);
    border-radius: 10px;
}

.details__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

.details__item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-grow: 1;
    width: 380px;
    min-height: 200px;
}

.details__item:not(:last-child)::before {
    content: "";
    background-color: var(--light-gray);
    width: 2px;
    height: 125px;
    position: absolute;
    right: 0;
}

.details__icon {
    position: relative;
    height: 55px;
    width: 55px;
    background-color: var(--bg-details);
    border-radius: 50%;
    margin-right: 36px;
}

.details__icon::before {
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.details__icon--users::before {
    background-image: url('../img/user-icon.svg');
    height: 18px;
    width: 16px;
}

.details__icon--locations::before {
    background-image: url('../img/marker-icon.svg');
    height: 21px;
    width: 14px;
}

.details__icon--servers::before {
    background-image: url('../img/server-icon.svg');
    height: 25px;
    width: 25px;
}

.details__features {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    line-height: 30px;
}

.features {
    margin-top: 95px;
}

.features__inner {
    display: flex;
    justify-content: space-between;
    column-gap: 169px;
}

.features__list {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    row-gap: 15px;
}

.features__item {
    padding-left: 35px;
    position: relative;
}

.features__item::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--green);
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
}

.features__item::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    left: 5px;
    top: 50%;
    transform: translate(0, -70%) rotate(-45deg);
}

.features__content {
    padding: 50px;
}

.features__content-title {
    font-size: 35px;
    line-height: 50px;
    text-decoration: underline;
    color: var(--dark-blue);
    margin: 0;
}

.features__content-description {
    font-size: 16px;
    line-height: 30px;
    margin: 0;
    margin-top: 30px;
    width: 400px;
}

.features__list {
    font-size: 14px;
    line-height: 30px;
    margin-top: 30px;
}

.plans {
    margin-top: 80px;
}

.plans__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plans__title {
    font-size: 35px;
    line-height: 50px;
    margin: 0;
    color: var(--dark-blue);
    text-align: center;
}

.plans__text {
    margin: 0;
    margin-top: 20px;
    text-align: center;
}

.plans__list {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: 60px;
}

.offer {
    display: flex;
    flex-wrap: wrap;
    column-gap: 50px;
    row-gap: 50px;
}

.offer__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 330px;
    min-height: 760px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--shadow-gray);
    padding-left: 30px;
    padding-right: 30px;
}

.offer__card::before {
    content: "";
    background-image: url('../img/cart.svg');
    background-repeat: no-repeat;
    height: 165px;
    width: 144px;
    margin-top: 79px;
}

.offer__card:hover {
    box-shadow: 0 0 20px var(--shadow-gray);
}

.offer__title {
    margin-top: 30px;
    color: var(--dark-blue);
    font-weight: 500;
    font-size: 18px;
    line-height: 30px;
}

.offer__list {
    margin: 0;
    padding: 0;
    padding-left: 40px;
    list-style: none;
    margin-top: 30px;
}

.offer__item {
    position: relative;
}

.offer__item::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 6px;
    transform: rotate(-45deg);
    border-left: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    left: -40px;
    bottom: 15px;
    font-size: 14px;
    line-height: 30px;
}

.offer__item:not(:first-child) {
    margin-top: 10px;
}

.offer__item:last-child {
    margin-bottom: 50px;
}

.offer__order {
    margin-top: auto;
    margin-bottom: 20px;
    font-size: 25px;
    line-height: 30px;
}

.offer__price {
    font-weight: 500;
    font-size: 25px;
    line-height: 30px;
    color: var(--dark-blue);
}

.offer__link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    margin-bottom: 50px;
    width: 177px;
    min-height: 45px;
}

.offer__link:hover {
    background-color: var(--red);
    color: var(--white);
    box-shadow: 0 25px 50px var(--shadow-red);
}

.offer__link:active {
    opacity: 0.6;
}

.offer__link--accent {
    color: var(--red);
    border: 1px solid var(--red);
    border-radius: 50px;
}

.map {
    margin-top: 130px;
}

.map__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map__title {
    margin: 0;
    font-size: 35px;
    line-height: 50px;
    text-align: center;
    color: var(--dark-blue);
}

.map__text {
    font-size: 16px;
    line-height: 30px;
    color: var(--gray);
    margin: 0;
    margin-top: 20px;
    text-align: center;
}

.map__image {
    margin-top: 155px;
}

.partners {
    margin-top: 109px;
}

.partners__inner {
    display: flex;
    align-items: center;
    min-height: 200px;
}

.partners__list {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reviews {
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.reviews__inner {
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.reviews__title {
    margin: 0;
    font-size: 35px;
    line-height: 50px;
    color: var(--dark-blue);
    text-align: center;
}

.reviews__text {
    font-size: 16px;
    line-height: 30px;
    color: var(--gray);
    margin: 0;
    padding: 0;
    margin-top: 20px;
    text-align: center;
}

.slider__list {
    display: flex;
    column-gap: 50px;
    padding: 0;
    margin: 0;
}

.reviews__list {
    position: absolute;
    top: 200px;
}

.slider__item {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    min-height: 230px;
    min-width: 400px;
    padding: 30px;
}

.slider__wrapper {
    margin: 0;
}

.slider__item:hover {
    border-color: var(--red);
}

.slider__author-inner {
    margin-left: 20px;
}

.slider__author {
    display: flex;
    align-items: center;
}

.slider__author-name {
    display: block;
    font-weight: 500;
    font-size: 18px;
    color: #0B132A;
}

.slider__author-rating {
    margin-left: auto;
}

.slider__text {
    margin: 0;
    padding: 0;
    margin-top: 20px;
}

.reviews__pagination {
    margin-top: auto;
}

.pagination-reviews {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.pagination-reviews__list {
    display: flex;
    padding: 0;
    margin: 0;
    column-gap: 15px;
}

.pagination-reviews__item {
    list-style: none;
    width: 15px;
    height: 15px;
    background-color: var(--light-gray);
    border-radius: 50%;
}

.pagination-reviews__item--active {
    width: 45px;
    height: 15px;
    background-color: var(--red);
    border-radius: 10px;
}

.pagination-reviews__link {
    display: block;
    width: 100%;
    height: 100%;
}

.pagination-reviews__button {
    outline: none;
    background-color: transparent;
    border: 2px solid var(--red);
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
}

.pagination-reviews__button:not(:last-child) {
    margin-right: 30px;
}

.pagination-reviews__button:hover {
    background-color: var(--red);
}

.pagination-reviews__button:hover .pagination-reviews__arrow-icon {
    fill: var(--white);
}

.pagination-reviews__arrow-icon {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    fill: var(--red);
}

.pagination-reviews__button--next .pagination-reviews__arrow-icon{
    transform: rotate(180deg);
}

.subscribe__inner {
    display: flex;
    align-items: center;
    box-shadow: 0 0 60px rgba(205, 205, 205, 0.35);
    border-radius: 10px;
    padding: 58px 70px;
    position: relative;
    background-color: var(--white);
    bottom: -90px;
}

.subscribe__description {
    width: 372px;
}

.subscribe__title {
    font-size: 35px;
    line-height: 45px;
    color: var(--dark-blue);
    margin: 0;
}

.subscribe__text {
    margin: 0;
}

.subscribe__link {
    margin-left: auto;
}

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

.footer__inner {
    display: flex;
    min-height: 563px;
    padding-top: 161px;
    padding-bottom: 50px;
}

.footer__about-us {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 340px;
}

.footer__copyright {
    margin-top: 30px;
}

.social {
    display: flex;
    width: 340px;
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: 30px;
    gap: 30px;
}

.social__link {
    display: block;
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--red);
    box-shadow: 0 0 10px var(--shadow-red);
}

.social__link::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
}

.social__link:hover {
    opacity: 0.7;
}

.social__link:active {
    opacity: 0.5;
}

.social__link--facebook::before {
    background-image: url('../img/facebook.svg')
}

.social__link--twitter::before {
    background-image: url('../img/twitter.svg')
}

.social__link--instagram::before {
    background-image: url('../img/instagram.svg')
}

.footer__text {
    margin: 0;
    margin-top: 20px;
}

.footer__product {
    margin-left: auto;
}

.footer__engage {
    margin-left: 125px;
}

.footer__earn-money {
    margin-left: 125px;
}

.footer-navigation__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-navigation__title {
    font-size: 18px;
    line-height: 30px;
    color: var(--dark-blue);
}

.footer-navigation__link {
    text-decoration: none;
    color: var(--gray);
}

.footer-navigation__link:hover {
    opacity: 0.7;
}

.footer-navigation:active {
    opacity: 0.5;
}

.footer__copyright {
    color: var(--light-gray);
    text-decoration: none;
}
