/* Footer Styles */

.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer__main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Бренд */
.footer__brand {
    display: flex;
    flex-direction: column;
}

.footer__logo {
    display: inline-block;
    transition: opacity 0.2s;
}

.footer__logo:hover {
    opacity: 0.8;
}

.footer__logo img {
    max-width: 120px;
    height: auto;
    display: block;
}

/* О нас */
.footer__about {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.footer__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer__cta {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.footer__cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Контакты */
.footer__contacts,
.footer__address,
.footer__socials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__phone {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.footer__phone:hover {
    color: #f39c12;
}

/* Адрес */
.footer__addr {
    font-style: normal;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer__addr a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__addr a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer__social-links {
    display: grid;
    gap: 8px;
}

.footer__social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer__social-link:hover {
    color: #fff;
}

/* Нижняя часть */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer__legal {
    flex: 1;
}

.footer__legal p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Кнопка Back to Top */
.footer__back-to-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer__back-to-top:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.footer__back-to-top:active {
    transform: translateY(0);
}

.footer__back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Адаптивность */

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

    .footer__brand {
        grid-column: 1 / -1;
        justify-content: center;
        align-items: center;
    }

    .footer__about {
        grid-column: 1 / -1;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }

    .footer__main {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .footer__brand {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .footer__logo img {
        max-width: 100px;
    }

    .footer__about {
        gap: 0.75rem;
    }

    .footer__title {
        font-size: 1rem;
    }

    .footer__text {
        font-size: 0.8125rem;
    }

    .footer__phone {
        font-size: 1.125rem;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer__back-to-top {
        width: 100%;
        justify-content: center;
    }

    .footer__legal p {
        font-size: 0.75rem;
    }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer__main {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .footer__logo img {
        max-width: 90px;
    }

    .footer__cta {
        width: 100%;
        justify-content: center;
    }

    .footer__phone {
        font-size: 1rem;
    }
}

/* Smooth scroll для всего документа */
html {
    scroll-behavior: smooth;
}

/* Анимация появления при скролле (опционально) */
@media (prefers-reduced-motion: no-preference) {
    .footer {
        animation: fadeInUp 0.6s ease-out;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
