/* ===== FOOTER STYLES ===== */

.footer {
    background: #1f3541;
    color: #a8b3bd;
    font-family: 'Roboto', sans-serif;
}

/* Основная секция футера */
.footer .footer-main {
    padding: 20px 0 10px;
    border-bottom: 1px solid rgba(168, 179, 189, 0.2);
}

.footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

/* Заголовки колонок */
.footer .footer-column h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 10px;
    position: relative;
}

.footer .footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #E67E22;
    border-radius: 2px;
}

/* Логотип */
.footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer .footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer .footer-logo h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.footer .footer-logo span {
    font-size: 12px;
    color: #E67E22;
    display: block;
}

.footer .footer-description {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #a8b3bd;
}

/* Социальные сети */
.footer .footer-social {
    display: flex;
    gap: 12px;
}

.footer .footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer .footer-social a:hover {
    background: #E67E22;
    transform: translateY(-3px);
}

/* Меню футера */
.footer .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-column ul li {
    margin-bottom: 8px;
}

.footer .footer-column ul li:last-child {
    margin-bottom: 0;
}

.footer .footer-column ul a {
    font-size: 12px;
    color: #a8b3bd;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.footer .footer-column ul a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Контакты */
.footer .footer-contacts li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 12px;
}

.footer .footer-contacts i {
    color: #E67E22;
    font-size: 14px;
    width: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer .footer-contacts a {
    color: #a8b3bd;
    text-decoration: none;
}

.footer .footer-contacts a:hover {
    color: #E67E22;
    padding-left: 0;
}

/* Нижняя секция */
.footer .footer-bottom {
    background: #16262f;
    padding: 15px 0;
}

.footer .footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer .footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: #a8b3bd;
}

.footer .footer-links {
    display: flex;
    gap: 20px;
}

.footer .footer-links a {
    font-size: 12px;
    color: #a8b3bd;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer .footer-links a:hover {
    color: #E67E22;
}

/* Кнопка "Наверх" */
.footer .scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: #E67E22;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.footer .scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer .scroll-top:hover {
    background: #F39C12;
    transform: translateY(-5px);
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты (< 1024px) */
@media (max-width: 1024px) {
    .footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

/* Планшеты маленькие (< 768px) */
@media (max-width: 768px) {
    .footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer .scroll-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Мобильные (< 480px) */
@media (max-width: 480px) {
    .footer .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer .footer-column h4 {
        font-size: 16px;
    }
    
    .footer .footer-logo h3 {
        font-size: 20px;
    }
    
    .footer .footer-description {
        font-size: 13px;
    }
    
    .footer .footer-column ul a,
    .footer .footer-contacts li {
        font-size: 13px;
    }
    
    .footer .footer-bottom {
        padding: 20px 0;
    }
    
    .footer .footer-bottom p,
    .footer .footer-links a {
        font-size: 12px;
    }
    
    .footer .scroll-top {
        right: 15px;
        bottom: 15px;
        width: 42px;
        height: 42px;
    }
}

/* Минимальный размер (< 320px) */
@media (max-width: 320px) {
    .footer .footer-description,
    .footer .footer-column ul a,
    .footer .footer-contacts li {
        font-size: 12px;
    }
}
