/* Верхнее меню футера */
.sg-footer-menu {
    margin-top: 30px;
    background-color: #FFD200;
    width: 100%;
    padding: 10px 0;
}

.sg-footer-menu__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.sg-footer-menu__item {
    flex-shrink: 0;
}

.sg-footer-menu__link {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    text-transform: uppercase;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.sg-footer-menu__link:hover {
    color: #fff;
    text-decoration: none;
}

/* FOOTER */
.sg-footer-contacts-main__inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.sg-footer-contacts-main__left {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.sg-footer-contacts-main__address {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    display: flex;
    flex: none;
    color: #fff;
    order: 1;
    flex-grow: 0;
    flex-direction: column;
}
.sg-footer-contacts-main__address span {
    color: #FFD200;
}

.sg-footer-contacts-main__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.sg-footer-contacts-main__phones {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 19px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.sg-footer-contacts-main__phone {
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 16px;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    white-space: nowrap;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
.sg-footer-contacts-main__phone:hover {
    color: #FFD200;
}

.sg-footer-contacts-main__phone-divider {
    width: 9px;
    height: 14px;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 16px;
    display: flex;
    align-items: center;
    color: #FFFFFF;
}

.sg-footer-contacts-main__bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 41px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.sg-footer-contacts-main__hours {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    color: #FFFFFF;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.sg-footer-contacts-main__callback {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    background: #FFD200;
    border-radius: 4px;
    flex: none;
    order: 1;
    flex-grow: 0;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    cursor: pointer;
    text-decoration: none;
}

.sg-footer-contacts-main__callback:hover {
    background: #ffc400;
    transform: translateY(-2px);
}

.sg-footer-contacts-main__callback-text {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    color: #000000;
    flex: none;
    order: 0;
    flex-grow: 0;
}

@media (max-width: 1200px) {
    .sg-footer-contacts-main__inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        height: auto;
    }
    
    .sg-footer-contacts-main {
        height: auto;
        padding: 20px 0;
    }
    
    .sg-footer-contacts-main__left,
    .sg-footer-contacts-main__right {
        justify-content: center;
        text-align: center;
        width: 100%;
        margin: 0;
    }
    
    .sg-footer-contacts-main__right {
        align-items: center;
    }
    
    .sg-footer-contacts-main__phones {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 880px) {
    .sg-footer-contacts-main__inner {
        flex-direction: column;
        gap: 30px;
    }
    
    .sg-footer-contacts-main__left {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        height: auto;
    }
    
    .sg-footer-contacts-main__logo {
        width: 200px;
        height: auto;
        min-height: 50px;
    }
    
    .sg-footer-contacts-main__address {
        text-align: center;
        width: 100%;
        height: auto;
        justify-content: center;
    }
    
    .sg-footer-contacts-main__phones {
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .sg-footer-contacts-main__phone-divider {
        display: none;
    }
    
    .sg-footer-contacts-main__phone {
        font-size: 18px;
    }
    
    .sg-footer-contacts-main__bottom {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        align-items: center;
    }
    
    .sg-footer-contacts-main__hours {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sg-footer-contacts-main__phone {
        font-size: 16px;
    }
    
    .sg-footer-contacts-main__hours {
        font-size: 12px;
    }
    
    .sg-footer-contacts-main__callback-text {
        font-size: 12px;
    }
    
    .sg-footer-contacts-main__callback {
        width: 150px;
        height: 35px;
    }
}

/* Блок контактов футера */
.sg-footer-contacts {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 13px 0;
    width: 100%;
    background: #201E1E;
    flex: none;
    order: 2;
    flex-grow: 0;
}

.sg-footer-contacts__inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.sg-footer-contacts__left {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.sg-footer-contacts__right {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0px;
    gap: 30px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.sg-footer-contacts__info {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
}
.sg-footer-contacts__info-title {
    color: #FFD200;
}
.sg-footer-contacts__info-list {
    padding: 0;
    list-style: none;
}
.sg-footer-contacts__info-list li {
    margin-top: 5px;
    color: #FFFFFF;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
}

.sg-footer-contacts__phones {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #FFD200;
}

.sg-footer-contacts__phone {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.sg-footer-contacts__phone:hover {
    color: #FFD200;
}

.sg-footer-contacts__legal {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    text-align: right;
    color: #FFD200;
}

.sg-footer-contacts__info {
    flex: none;
    order: 0;
    flex-grow: 0;
}

.sg-footer-contacts__phones {
    flex: none;
    order: 1;
    flex-grow: 0;
}

.sg-footer-contacts__phone {
    flex: none;
    order: 0;
    flex-grow: 0;
}

.sg-footer-contacts__legal {
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Нижний блок футера (Frame 2) */
.sg-footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    width: 100%;
    background: #161414;
    flex: none;
    order: 3;
    flex-grow: 0;
}

.sg-footer-bottom__inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 16px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.sg-footer-bottom__item {
    height: 16px;
    flex: none;
    flex-grow: 0;
}

.sg-footer-bottom__link {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    display: flex;
    align-items: center;
    text-decoration-line: underline;
    color: #ACACAC;
    text-decoration: none;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.sg-footer-bottom__link:hover {
    color: #ffffff;
}

.sg-footer-bottom__copyright {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #ACACAC;
}

/* Адаптив */
@media (max-width: 1200px) {
    .sg-footer-menu__list {
        gap: 20px;
    }
    
    .sg-footer-contacts {
        padding: 20px 0;
    }
    
    .sg-footer-bottom {
        padding: 12px 0;
    }
}

@media (max-width: 880px) {
    .sg-footer-menu__list {
        gap: 15px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .sg-footer-menu__list::-webkit-scrollbar {
        height: 3px;
    }
    
    .sg-footer-menu__list::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }
    
    .sg-footer-contacts__inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .sg-footer-contacts__left,
    .sg-footer-contacts__right {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .sg-footer-contacts__phone {
        order: 1; /* Телефон идет вторым */
        text-align: center;
    }
    
    .sg-footer-contacts__legal {
        order: 0; /* Юридическая информация идет первой */
        text-align: center;
    }
    
    .sg-footer-contacts__info,
    .sg-footer-contacts__phones,
    .sg-footer-contacts__phone,
    .sg-footer-contacts__legal {
        text-align: center;
        width: 100% !important;
    }
    
    .sg-footer-bottom__inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        height: auto;
    }
    
    .sg-footer-bottom__item {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }
    
    .sg-footer-bottom__link,
    .sg-footer-bottom__copyright {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sg-footer-menu__list {
        gap: 12px;
    }
    
    .sg-footer-menu__link {
        font-size: 11px;
    }
    
    .sg-footer-contacts__info,
    .sg-footer-contacts__phones,
    .sg-footer-contacts__phone,
    .sg-footer-contacts__legal {
        font-size: 11px;
        line-height: 14px;
    }
    
    .sg-footer-contacts {
        padding: 15px 0;
    }
    
    .sg-footer-bottom__link,
    .sg-footer-bottom__copyright {
        font-size: 11px;
    }
}