/* 
 * Footer Styles
 * Стили для футера сайта
 */

/* Контейнер для футера */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Адаптивные отступы для контейнера футера */
@media (max-width: 767px) {
    .footer-container {
        padding: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .footer-container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .footer-container {
        padding: 0 40px;
    }
}

/* Мобильные стили (до 767px) */
@media (max-width: 767px) {
    .footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        background: #242424;
        width: 100%;
        min-height: auto;
        height: auto;
        padding: 40px 0 40px;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .footer-content {
        padding: 0;
        width: 100%;
        max-width: none;
        order: 1; /* Контент будет первым */
        height: auto;
        margin: 48px 0 16px 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .footer-navigation {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 24px;
        width: 100%;
        height: auto;
        flex: none;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .footer-nav-blocks {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 32px;
        margin: 0 auto 88px auto;
        width: 100%;
        height: auto;
        flex: none;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .footer-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 20px;
        width: 100%;
        height: auto;
        flex: none;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .footer-title {
        width: 100%;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 700;
        font-size: 16px;
        line-height: 19px;
        letter-spacing: 0.04px;
        color: rgb(130, 130, 130);
        flex: none;
        margin: 32px 0 16px 0;
        padding: 0;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 12px;
        width: 100%;
        height: auto;
        flex: none;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .footer-link {
        width: auto;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 17px;
        letter-spacing: 0.04px;
        color: rgb(101, 101, 101);
        text-decoration: none;
        flex: none;
        transition: color 0.3s ease;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
    }

    .footer-link:hover {
        color: #3056D3;
    }

    .footer-copyright {
        margin: 32px 0;
        width: auto;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 12px;
        line-height: 15px;
        text-align: left;
        order: 3; /* Копирайт будет третьим */
        letter-spacing: 0.04px;
        color: rgb(81, 81, 81);
        flex: none;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
    }

    .footer-logo {
        width: 100%;
        height: auto;
        min-height: 38px;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 900;
        font-size: 32px;
        line-height: 38px;
        text-transform: uppercase;
        color: #363535;
        flex: none;
        margin: 0 0 104px 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        order: 2; /* Логотип будет вторым */
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

/* iPad (431px - 1024px) */
@media screen and (min-width: 431px) and (max-width: 1024px) {
    .footer {
        min-height: auto;
        height: auto;
        padding: 40px 0 40px;
    }
    
    .footer-content {
        padding: 0;
        width: 100%;
        max-width: none;
        order: 1; /* Контент будет первым */
        height: auto;
        margin: 48px 0 16px 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .footer-logo {
        width: 100%;
        min-height: 38px;
        padding: 0;
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

/* Планшеты (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 80px;
        background: #242424;
        width: 100%;
        height: auto;
        padding: 60px 0 0px;
    }

    .footer-content {
        padding: 0;
        width: 100%;
        max-width: 1200px;
        height: auto;
        margin: 32px auto 56px auto;
    }

    .footer-navigation {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 32px;
        width: 100%;
        height: auto;
        flex: none;
    }

    .footer-nav-blocks {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 0;
        gap: 40px;
        margin: 0 auto 88px auto;
        width: 100%;
        height: auto;
        flex: none;
    }

    .footer-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 24px;
        width: 164px;
        height: auto;
        flex: none;
    }

    .footer-title {
        width: 164px;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 700;
        font-size: 16px;
        line-height: 19px;
        letter-spacing: 0.04px;
        color: rgb(130, 130, 130);
        flex: none;
        margin: 32px 0 16px 0;
        padding: 0;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 14px;
        width: 164px;
        height: auto;
        flex: none;
    }

    .footer-link {
        width: auto;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 17px;
        letter-spacing: 0.04px;
        color: rgb(101, 101, 101);
        text-decoration: none;
        flex: none;
        transition: color 0.3s ease;
    }

    .footer-link:hover {
        color: #3056D3;
    }

    .footer-copyright {
        margin: 32px 0;
        width: auto;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 17px;
        text-align: left;
        letter-spacing: 0.04px;
        color: rgb(81, 81, 81);
        flex: none;
        order: 3; /* Копирайт будет третьим */
    }

    .footer-logo {
        width: 100%;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 900;
        font-size: 48px;
        line-height: 56px;
        text-transform: uppercase;
        color: #363535;
        flex: none;
        margin: 0 0 104px 0;
        order: 2; /* Логотип будет вторым */
        padding: 0 24px 0 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
}

/* Десктопы (1024px+) */
@media (min-width: 1024px) {
    .footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 104px;
        background: #242424;
        width: 100%;
        height: auto;
        padding: 0;
    }

    .footer-content {
        padding: 0;
        width: 100%;
        max-width: 1440px;
        height: auto;
        margin: 32px 0 16px 0;
        padding: 0;
    }

    .footer-navigation {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 32px;
        width: 100%;
        height: auto;
        flex: none;
    }

    .footer-nav-blocks {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 0;
        gap: 88px;
        margin: 0 0 88px 0;
        padding: 0;
        width: 1140px;
        height: auto;
        flex: none;
    }

    .footer-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 32px;
        width: 164px;
        height: auto;
        flex: none;
    }

    .footer-title {
        width: 164px;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 700;
        font-size: 16px;
        line-height: 19px;
        letter-spacing: 0.04px;
        color: rgb(130, 130, 130);
        flex: none;
        margin: 32px 0 16px 0;
        padding: 0;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 14px;
        width: 164px;
        height: auto;
        flex: none;
    }

    .footer-link {
        width: auto;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 17px;
        letter-spacing: 0.04px;
        color: rgb(101, 101, 101);
        text-decoration: none;
        flex: none;
        transition: color 0.3s ease;
    }

    .footer-link:hover {
        color: #3056D3;
    }

    .footer-copyright {
        margin: 32px 0;
        width: auto;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 17px;
        text-align: left;
        letter-spacing: 0.04px;
        color: rgb(81, 81, 81);
        flex: none;
        order: 3; /* Копирайт будет третьим */
    }

    .footer-logo {
        width: 1140px;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 900;
        font-size: 72px;
        line-height: 84px;
        text-transform: uppercase;
        color: #363535;
        flex: none;
        margin: 0 0 104px 0;
        padding: 0 40px 0 0;
        display: flex;
        align-items: center;
        order: 2; /* Логотип будет вторым */
        justify-content: flex-start;
    }
}
