/* Footer Styles for mebel-garda.ru - по дизайну Figma */

.footer-main {
    width: 100%;
    height: 741px;
    background-color: #FFFFFF;
    position: relative;
}

.footer-wrapper {
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    position: relative;
    padding: 0;
}

/* Логотип */
.footer-logo {
    position: absolute;
    left: 120px;
    top: 80px;
    width: 138px;
    height: 60px;
}

.footer-logo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Верхняя навигация */
.footer-nav-top {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    gap: 0;
}

/* Колонка навигации */
.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
}

/* Каталог */
.footer-nav-col:nth-child(1) {
    position: absolute;
    left: 825px;
    width: 173px;
}

/* Новинки */
.footer-nav-col:nth-child(2) {
    position: absolute;
    left: 1076px;
    }

/* Коллекции */
.footer-nav-col:nth-child(3) {
    position: absolute;
    left: 1324px;
    width: 173px;
}

/* Сотрудничество */
.footer-nav-col:nth-child(4) {
    position: absolute;
    left: 1592px;
}

.footer-nav-col__title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 112%;
    text-transform: uppercase;
    color: #0C181A;
    margin: 0;
    padding: 0;
}

.footer-nav-col__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
}

.footer-nav-col__links a {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 112%;
    text-transform: uppercase;
    color: #0C181A;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-nav-col__links a:hover {
    opacity: 0.7;
}

/* Нижняя навигация - О бренде (Frame 260: содержит линию и ссылки) */
.footer-nav-bottom {
    position: absolute;
    left: 825px;
    top: 407px; /* 377px + 30px (margin-top) */
    width: 261px;
    display: flex;
    flex-direction: column;
    gap: 34px; /* Отступ между линией и ссылками */
}

/* Разделительная линия 1 (внутри footer-nav-bottom) */
.footer-separator-line {
    width: 240px;
    height: 1px;
    background: #0C181A;
    flex-shrink: 0;
}

.footer-nav-bottom__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.footer-nav-bottom__links a {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 112%;
    text-transform: uppercase;
    color: #0C181A;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-nav-bottom__links a:hover {
    opacity: 0.7;
}

/* Разделительная линия 2 - полная ширина */
.footer-separator-full {
    position: absolute;
    left: 120px;
    right: 120px;
    top: 661px;
    height: 1px;
    background: rgba(119, 119, 119, 0.3);
}

/* Копирайт */
    .footer-copyright {
    position: absolute;
    left: 0;
    right: 0;
    top: 695px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright__left {
    position: absolute;
    left: 120px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 10px;
    line-height: 112%;
    text-transform: uppercase;
    color: #777777;
    white-space: nowrap;
}

.footer-copyright__right {
    position: absolute;
    right: 120px;
}

.footer-copyright__right a {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 10px;
    line-height: 112%;
    text-transform: uppercase;
    color: #777777;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.footer-copyright__right a:hover {
    opacity: 0.7;
}

/* Адаптивность */
@media screen and (max-width: 1920px) {
    .footer-wrapper {
        padding: 0 clamp(20px, 120px, 120px);
    }
    
    .footer-logo {
        left: clamp(20px, 120px, 120px);
    }
    
    .footer-nav-col:nth-child(1) {
        left: clamp(300px, 825px, 825px);
    }
    
    .footer-nav-col:nth-child(2) {
        left: clamp(510px, 1076px, 1076px);
}

    .footer-nav-col:nth-child(3) {
        left: clamp(740px, 1324px, 1324px);
    }
    
    .footer-nav-col:nth-child(4) {
        left: clamp(970px, 1592px, 1592px);
    }

    .footer-separator-line,
    .footer-nav-bottom {
        left: clamp(300px, 825px, 825px);
        width: clamp(320px, 45vw, 360px);
    }
    
    .footer-separator-full {
        width: 100%;
        max-width: 1560px;
}

    .footer-copyright__left {
        left: clamp(20px, 120px, 120px);
    }
    
    .footer-copyright__right {
        right: clamp(20px, 120px, 120px);
    }
}

@media screen and (max-width: 1400px) {
    .footer-main {
        height: auto;
        min-height: 741px;
        padding-bottom: 40px;
    }
    
    .footer-nav-top {
        flex-wrap: wrap;
        gap: 40px;
        position: relative;
        top: 80px;
        padding: 0 20px;
    }
    
    .footer-nav-col {
        position: relative !important;
        left: auto !important;
}

    .footer-separator-line,
    .footer-nav-bottom {
    position: relative;
        left: 20px;
    top: 40px;
        margin-top: 40px;
    }
    
    .footer-separator-full {
        position: relative;
        top: 80px;
        left: 0;
        transform: none;
        width: calc(100% - 40px);
        margin: 0 20px;
    }
    
    .footer-copyright {
        position: relative;
        top: 100px;
    flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding: 0 20px;
}

    .footer-copyright__left,
    .footer-copyright__right {
        position: relative;
        left: auto;
        right: auto;
    }
}

/* Tablet and Mobile (768px и меньше) */
@media screen and (max-width: 768px) {
    .footer-main {
        min-height: auto;
        padding: 40px 0;
}

    .footer-logo {
        position: relative;
        left: auto;
        top: auto;
        margin: 0 auto 40px;
        width: 120px;
        height: auto;
    }

    .footer-nav-top {
        top: 0;
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .footer-nav-col {
        width: 100% !important;
}

    .footer-separator-line {
        width: 100%;
        left: 0;
    }

    .footer-nav-bottom {
        width: 100%;
        left: 0;
        padding: 0 20px;
    }

    .footer-separator-full {
        top: 40px;
        margin: 0 20px;
    }

    .footer-copyright {
        top: 60px;
        padding: 0 20px;
    }
}

/* Mobile (640px и меньше) */
@media screen and (max-width: 639px) {
    .footer-main {
        padding: 48px 0 40px;
    }
    
    .footer-wrapper {
        padding: 0;
}

    .footer-logo {
        position: relative;
        left: auto;
        top: auto;
        width: 110px;
        height: auto;
        margin: 0 0 72px 32px;
}

    .footer-nav-top {
        gap: 24px;
        padding: 0 32px;
    }
    
    .footer-nav-col__title {
        font-size: 16px;
    }
    
    /* В мобильном футере Mobile-Cart показываем только заголовки разделов */
    .footer-nav-top .footer-nav-col__links {
        display: none;
}

    .footer-nav-bottom {
        position: static;
        top: 0;
        padding: 0 32px;
        margin-top: 62px;
        gap: 34px;
    }
    
    .footer-nav-bottom__links a {
        font-size: 14px;
}

    /* Первая линия внутри блока без отступов, во всю ширину контейнера */
    .footer-separator-line {
        position: static;
    top: 0;
    width: 100%;
        margin: 0;
    }
    
    .footer-separator-full {
        position: relative;
    width: 100%;
        margin: 32px 0 0 0;
        left: 0;
        transform: none;
    }
    
    .footer-copyright {
        top: 48px;
        padding: 0 20px;
    flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .footer-copyright__left,
    .footer-copyright__right {
        font-size: 9px;
}
}

/* Small Mobile (480px и меньше) */
@media screen and (max-width: 479px) {
    .footer-main {
        padding: 24px 0 40px;
}

    .footer-logo {
        width: 90px;
        margin-bottom: 24px;
}

    .footer-nav-top {
        gap: 20px;
        padding: 0 16px;
}

    .footer-nav-col__title {
        font-size: 13px;
    }
    
    .footer-nav-col__links {
        gap: 8px;
}

    .footer-nav-col__links a {
        font-size: 11px;
}

    .footer-nav-bottom {
        padding: 0 16px;
        margin-top: 24px;
        gap: 20px;
}

    .footer-nav-bottom__links {
        gap: 8px;
}

    .footer-nav-bottom__links a {
        font-size: 11px;
    }
    
    .footer-separator-full {
        margin: 0 16px;
        top: 24px;
}

    .footer-copyright {
        top: 40px;
        padding: 0 16px;
        gap: 12px;
}

    .footer-copyright__left,
    .footer-copyright__right {
        font-size: 8px;
    }
}
