.footer {
    background-color: #0D0D0D;
    background-image: url('../images/footer/footer-background.svg');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
}

.footer__upper__container {
    background-color: #131313;
}


.footer__upper {
    max-width: 120rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 4rem 7.5rem 3.4375rem 7.5rem;
    justify-content: space-between;
    align-content: center;
}

.footer__logo {
    width: 27.25rem;
    height: 3.75rem;
}


.footer__description {
    color: var(--white-color);
    font-family: ALSGorizont_reg, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-stretch: expanded;
    font-size: 1.125rem;
    line-height: 120%;
    letter-spacing: -4%;
    margin: 1.125rem 0 0 0;
    opacity: 60%;
}

.footer__link {
    font-family: ALSGorizont_reg, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-stretch: expanded;
    font-size: 6rem;
    line-height: 1.2;
    letter-spacing: -0.04em;
    text-align: right;
    text-decoration: none;
    width: 39rem;
    opacity: 0.12;
    color: var(--white-color);
    display: inline-flex;
}


/*********************Блок с перечнем курсов***************************/
.footer__content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: center;
    padding: 5rem 0 5.375rem 7.5rem;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}


/*Блок с дружественными сайтами*/

.footer__friend-sites {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    column-gap: 5rem;
    row-gap: 5.25rem;
    align-self: stretch;
    max-width: 100%;
    flex-wrap: wrap;
}
.footer__friend-sites__item {
    width: 22.5rem;
}

.footer__friend-sites__heading {
    height: 1.5rem;
    width: auto;
}

.footer__friend-sites__title {
    margin: 0;
    padding: 0;
    color: var(--white-color);
    margin-top: 0.625rem;
    font-family: ALSGorizont_var, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-stretch: expanded;
    font-size: 0.875rem;
    line-height: 1.2;
    letter-spacing: -2%;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.12);
    padding-bottom: 2rem;
    height: 3rem;
    min-height: 3rem;
}

.footer__friend-sites__links {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    align-self: stretch;
    margin-top: 1.5rem;
}

.footer__friend-sites__links-item {
    list-style-type: none;
}
.footer__friend-sites__links-item a {
    text-decoration: none;
    color: #fff;
    font-family: PTGolos_reg;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.0156rem;
    -webkit-line-clamp: 1;
    padding-bottom: 0.125rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.20);
}
.footer__friend-sites__links-item a:hover,
.footer__friend-sites__links-item a:focus,
.footer__friend-sites__links-item a:active {
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.60);
}
.footer__friend-sites__more-courses {
    text-decoration: none;
    overflow: hidden;
    color: rgba(255, 255, 255);
    text-overflow: ellipsis;
    font-family: PTGolos_reg;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.0938rem;
    display: inline-flex;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    opacity: 0.2;
    margin-top: 1.6875rem;
    column-gap: 0.375rem;
}

.footer__friend-sites__more-courses:hover,
.footer__friend-sites__more-courses:focus,
.footer__friend-sites__more-courses:active {
    opacity: 1;
}
.footer__friend-sites__more-courses span {
    display: inline-block;
    padding-bottom: 0.125rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255);
    overflow: hidden;
    color: rgba(255, 255, 255);
    text-overflow: ellipsis;
    font-family: PTGolos_reg;
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.0938rem;
    display: inline-flex;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}
.footer__friend-sites__more-courses::after {
    content: "";
    display: inline-flex;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.7239 3.33333H9.33336V2H14V6.66667H12.6667V4.27614L8.47143 8.4714L7.52863 7.5286L11.7239 3.33333Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.66669 3.99984C4.2985 3.99984 4.00002 4.29831 4.00002 4.6665V11.3332C4.00002 11.7014 4.2985 11.9998 4.66669 11.9998H11.3334C11.7015 11.9998 12 11.7014 12 11.3332V8.6665C12 8.29831 12.2985 7.99984 12.6667 7.99984C13.0349 7.99984 13.3334 8.29831 13.3334 8.6665V11.3332C13.3334 12.4377 12.4379 13.3332 11.3334 13.3332H4.66669C3.56212 13.3332 2.66669 12.4377 2.66669 11.3332V4.6665C2.66669 3.56193 3.56212 2.6665 4.66669 2.6665H7.33335C7.70154 2.6665 8.00002 2.96498 8.00002 3.33317C8.00002 3.70136 7.70154 3.99984 7.33335 3.99984H4.66669Z' fill='white'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 105%;
    width: 1.25rem;
    height: 1.25rem;
}


/***Нижний блок футера****/
.footer__lower__container {
    border-top: 0.0625rem solid rgba(201, 212, 235, 0.20);
}

.footer__lower {
    display: flex;
    padding: 1rem 7.5rem 1rem 7.5rem;
    flex-direction: row;
    align-items: flex-start;
    align-self: stretch;
    justify-content: space-between;
    max-width: 120rem;
    margin-left: auto;
    margin-right: auto;
}

.footer__lower__logo {
    display: inline-flex;
    align-self: center;
    width: 10rem;
    height: auto;
}

.footer__license {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}
.footer__license__title {
    font-family: PTGolos_reg, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.75rem;
    line-height: 125%;
    letter-spacing: 0%;
    vertical-align: bottom;
    opacity: 0.6;
    color: var(--white-color);
    margin: 0;
    padding: 0;
}
.footer__license__links {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6875rem;
}
.footer__license__links-item {
    font-family: PTGolos_reg, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.75rem;
    line-height: 125%;
    letter-spacing: 0%;
    vertical-align: bottom;
    color: #fff;
    text-decoration: none;
    padding-bottom: 0.125rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.20);
}
.footer__license__links-item:hover,
.footer__license__links-item:focus,
.footer__license__links-item:active {
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.60);
}


@media screen and (max-width: 1400px) {
    .footer {
        background-image: url('../images/footer/footer-bg-tablet.svg');
    }
    .footer__upper {
        padding: 5rem 2.5rem 5rem 2.5rem;
        align-items: center;
    }

    .footer__link {
        width: auto;
        font-size: 3rem;
    }

    .footer__description {
        margin-top: 1.25rem;
        letter-spacing: -4%;
        line-height: 120%;
        font-size: 1.25rem;
        max-width: 27.5rem;
    }

    .footer__content {
        padding: 5rem 0 5rem 2.5rem;
        flex-direction: column;
        row-gap: 5rem;
    }

    .footer__friend-sites {
        column-gap: 4rem;
        row-gap: 5rem;
    }


    .footer__friend-sites__item {
        width: 27.5rem;
        min-height: 17rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__friend-sites .footer__friend-sites__item:nth-child(3),
    .footer__friend-sites .footer__friend-sites__item:nth-child(4) {
        min-height: 18.375rem;
    }

    .footer__friend-sites__heading {
        height: 2rem;
    }

    .footer__friend-sites__title {
        font-size: 1rem;
        margin-top: 0.875rem;
        padding-bottom: 0.4375rem;
        box-sizing: content-box;
        width: 100%;
    }

    .footer__friend-sites__links {
        margin-top: 1.625rem;
        row-gap: 1.25rem;
    }

    .footer__friend-sites__links > :nth-child(n+4) {
        display: none;
    }

    .footer__friend-sites__links-item a {
        font-size: 1rem;
    }

    .footer__friend-sites__more-courses {
        margin-top: auto;
        margin-bottom: 0px;
    }

    .footer__friend-sites__more-courses span {
        font-size: 1.0625rem;
    }

    .footer__lower {
        padding: 0.9375rem 2.5rem 1rem 2.5rem;
        align-items: center;
    }

    .footer__license {
        max-width: 44rem;
        gap: 0.4375rem;
    }

    .footer__license__title {
        font-size: 0.875rem;
    }
}

@media screen and (max-width: 768px) {
    .footer {
        background-image: url("../images/footer/footer-bg-mobile.svg");
    }

    .footer__upper {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 4rem 1.25rem 3.5625rem 1.25rem;
    }

    .footer__logo {
        width: 14.5625rem;
        height: 2.0625rem;
    }

    .footer__description {
        font-size: 0.875rem;
        margin-top: 0.625rem;
    }

    .footer__link {
        font-size: 2rem;
        margin-top: 1rem;
    }

    .footer__content {
        padding: 4rem 1.25rem 4rem 1.1875rem;
        row-gap: 4rem;
    }

    .footer__friend-sites {
        row-gap: 4rem;
        column-gap: normal;
    }

    .footer__friend-sites__item,
    .footer__friend-sites .footer__friend-sites__item:nth-child(3),
    .footer__friend-sites .footer__friend-sites__item:nth-child(4) {
        min-height: auto;
    }

    .footer__friend-sites__heading {
        height: 1.5rem;
    }

    .footer__friend-sites__title {
        font-size: 0.875rem;
        padding-bottom: 1.0625rem;
        margin-bottom: 0rem;
        min-height: auto;
        height: auto;
    }

    .footer__friend-sites__links {
        margin-top: 1.5rem;
        row-gap: 0.75rem;
    }

    .footer__friend-sites__links-item a {
        font-size: 0.875rem;
    }

    .footer__friend-sites__more-courses, 
    .footer__friend-sites__item:nth-child(1) .footer__friend-sites__more-courses, 
    .footer__friend-sites__item:nth-child(2) .footer__friend-sites__more-courses {
        margin-top: 1.75rem;
    }

    .footer__friend-sites__more-courses span {
        font-size: 0.9375rem;
    }

    .footer__lower {
        flex-direction: column-reverse;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 1.375rem 1.25rem 1.5rem 1.25rem;
        row-gap: 1.0625rem;
    }

    .footer__lower__logo {
        align-self: flex-start;
        width: 10.9375rem;
        height: 1.5rem;
    }


    .footer__license {
        row-gap: 1rem;
    }

    .footer__license__title {
        font-size: 0.75rem;
    }

    .footer__license__links {
        flex-direction: column;
        gap: 0.4375rem;
    }

    .footer__license__links-item {
        font-size: 0.6875rem;
    }
    
}