@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --main-color: #D8060B;
    --additional-color: #bb1119;
}

a {
    text-decoration: none;
}

html {
    font-family: 'Open Sans', sans-serif;
}

svg:not(.logo, .footer-icon) path {
    fill: var(--additional-color);
}

.container {
    width: 1312px;
    max-width: 100%;
    margin: 0 auto;
}

a:hover {
    text-decoration: none;
    color: #384364;
} 

.divider {
    height: 16px;
    border: 1px solid rgba(56, 67, 100, 0.2);
    margin: 0 24px;
}

/* header */

.header {
    padding: 24px 0;
}

.header__navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__navigation-contacts {
    display: flex;
    align-items: center;
}

.main-description {
    margin-bottom: 20px;
    font-weight: normal;
    font-size: 20px;
}

@media screen and (max-width: 768px) {
    .main-description {
      font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .main-title {
      font-size: 20px;
    }
}

.header__navigation-contacts-item {
    display: flex;
    align-items: center;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    color: #384364;
}

.header__navigation-contacts-item svg  {
    margin-right: 8px;
}

.header__navigation-btn {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--additional-color);
    border-radius: 12px;
    font-size: 16px;
    color: #FFFFFF;
}

.header__navigation-btn:hover {
   color: #FFFFFF
}

.header__navigation-btn svg {
    margin-left: 8px;
}

@media (max-width: 1079px) {
    .header__navigation-contacts {
        display: none;
    }
}

/* hero */

.hero {
    height: 730px;
    max-width: 1412px;
    position: relative;
    margin: 0 auto;
}

.hero__bg-img {
    display: block;
    position: absolute;
    width: calc(100% - 30px);
    object-fit: cover;
    height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 20px;
    margin: 0 auto;
}

.hero .container {
    position: relative;
    height: 100%;
}

.hero__about-card {
    position: absolute;
    left: 15px;
    bottom: 45px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 598px;
    min-height: 456px;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
}

.hero__about-card-subtitle {
    font-weight: 500;
    font-size: 16px;
    color: var(--main-color);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.hero__about-card-title {
    font-weight: 700;
    font-size: 40px;
    color: #384364;
}

.hero__about-card-contacts {
    font-weight: 700;
    font-size: 24px;
    
}

.hero__about-card-contacts-item {
    font-weight: 500;
    font-size: 20px;
    color: #384364;
}

.hero__about-card-contacts-item:first-child {
    margin-top: 16px;
    margin-bottom: 8px;
}

.hero__about-card-contacts-item a {
    color: var(--main-color);
}

.hero__about-card-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero__about-card-btns-item {
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__about-card-btns-item svg {
    margin-left: 8px;
}

.hero__bg-img-mobile {
    display: none;
}

.consult-btn {
    color: #FFFFFF;
    background: var(--main-color);
}

.consult-btn:hover {
    color: #FFFFFF;
    background: var(--main-color);
}

.site-btn {
    margin-left: 8px;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    font-weight: bold;
}

.site-btn:hover {
    color: var(--main-color);
}

@media (max-width: 991px) {
    .hero__bg-img {
        width: 100%;
        object-fit: cover;
    }
}

@media (max-width: 567px) {
    .hero__bg-img {
        width: 100%;
        object-fit: cover;
        display: none;
    }
    .hero__bg-img-mobile {
        display: block;
        position: absolute;
        width: calc(100% - 30px);
        height: 100%;
        width: 100%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
        border-radius: 20px;
        margin: 0 auto;
        object-fit: cover;
    }
}


@media (max-width: 767px) {
    .hero__about-card {
        padding: 26px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 95%;
    }
    .hero__about-card-btns {
        flex-direction: column;
        justify-content: stretch;
        width: 100%;
    }
    .hero__about-card-btns-item {
        width: 100%;
        text-align: center;
        margin-top: 12px;
    }

    .hero__about-card-title {
        font-size: 32px;
    }

    .hero__about-card-contacts-item {
        font-size: 18px;
    }

}

/* benefits */



.benefits {
    padding: 84px 0;
}

.benefits__wrapper {
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
    gap: 8px;
}

.benefits__title {
    font-weight: 700;
    font-size: 48px;
    line-height: 48px;
    color: #384364;
    margin-bottom: 64px;
}

.benefits__item {
    padding: 24px;
    width: 308px;
    max-width: 100%;
    height: 272px;
    box-sizing: border-box;
    display: flex;
    /* justify-content: space-between; */
    flex-direction: column;
    background: #F8F8F8;
    border-radius: 24px;
    margin-right: 8px;
}

.benefits__item-icon {
    padding: 16px;
    background: var(--additional-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
}


.benefits__item-title {
    font-weight: 700;
    font-size: 22px;
    color: #384364;
    margin-bottom: 12px;
}

.benefits__item-descr {
    font-weight: 500;
    font-size: 18px;
    color: rgba(56, 67, 100, 0.7);
}

.benefits__wrapper--top {
    display: flex;
    overflow-x: scroll;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.benefits__wrapper--down {
    display: flex;
   overflow-x: scroll;
   -ms-overflow-style: none;
   scrollbar-width: none;
}

.benefits__wrapper--down::-webkit-scrollbar, .benefits__wrapper--top::-webkit-scrollbar {
    display: none;
}


@media (max-width: 991px) {
    .benefits__item {
        min-width: 308px;
        min-height: 272px;
    }
}

/* footer */

.footer {
    background: var(--additional-color);
    border-radius: 24px;
    padding: 40px 0;
}

.footer__title {
    text-align: center;
    width: 420px;
    max-width: 100%;
    font-weight: 700;
    font-size: 32px;
    color: #FFFFFF;
    margin: 0 auto;
    margin-bottom: 24px;
}

.footer__btns {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__btns-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.footer__btns-item svg {
    margin-left: 8px;
}

.enroll-btn {
    background: #FFFFFF;
    color: #384364;
}

.site-footer-btn {
    border: 1px solid #FFFFFF;
    color: white;
    margin-left: 16px;
}

.site-footer-btn:hover {
    color: white;
}

@media (max-width: 767px) {
    .footer__btns {
        flex-direction: column;
        justify-content: center;
    }
    .footer__btns-item {
        width: 80%;
    }
    .site-footer-btn {
        margin-left: 0;
        margin-top: 12px;
    }
}