/* styles\footer.css */

.footer {
    background-color: var(--color-dark);
    padding: 0;
    height: 200px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    overflow: hidden;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 80%;
    background-image: url('../images/footer/lines.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    opacity: 0.15;
    filter: grayscale(15%) brightness(0.9);
    pointer-events: none;
    z-index: 1;
}

.footer.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--container-padding-x);
    max-width: calc(var(--container-width) + var(--container-padding-x) * 2);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease-out 0.2s, transform 0.4s ease-out 0.2s;
}

.footer.animate-in .footer-inner {
    opacity: 1;
    transform: translateY(0);
}

.footer__left {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 3;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.4s ease-out 0.3s, transform 0.4s ease-out 0.3s;
}

.footer.animate-in .footer__brand {
    opacity: 1;
    transform: translateX(0);
}

.footer__logo {
    width: 141px;
    height: 141px;
}

.footer__menu {
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease-out 0.4s, transform 0.4s ease-out 0.4s;
}

.footer.animate-in .footer__menu {
    opacity: 1;
    transform: translateY(0);
}

.footer__menu-item {
    display: flex;
    background-color: #161B29;
    border-radius: 20px;
    padding: 5px 22px;
    align-items: center;
    height: 30px;
    white-space: nowrap;
    transition:
        transform var(--transition-duration),
        background-color var(--transition-duration);
    cursor: pointer;
}

.footer__menu-link {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #FFFFFF;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0%;
}

@media (any-hover: hover) {
    .footer__menu-item:hover {
        transform: translateY(-2px) scale(1.03);
        background-color: rgba(255, 255, 255, 0.15);
    }
}

@media (any-hover: none) {
    .footer__menu-item:active {
        transform: translateY(-1px) scale(1.01);
        background-color: rgba(255, 255, 255, 0.15);
    }
}

.footer__social {
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease-out 0.5s, transform 0.4s ease-out 0.5s;
    margin-right: calc(8% - 95px);
}

@media (max-width: 1300px) {
    .footer__social {
        margin-top: 15px;
    }
}

@media (max-width: 1200px) {
    .footer__social {
        margin-top: 20px;
    }
}

@media (max-width: 1100px) {
    .footer__social {
        margin-top: 35px;
    }
}

@media (max-width: 1024px) {
    .footer__social {
        margin-top: 0px;
    }
}

.footer.animate-in .footer__social {
    opacity: 1;
    transform: translateX(0);
}

.footer__social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer__social-link--email {
    background-color: #04DBD6;
    color: #060c1a;
}

.footer__social-link--telegram {
    background-color: #229ED9;
    color: #ffffff;
}

@media (any-hover: hover) {
    .footer__social-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .footer__social-link--email:hover {
        background-color: #02B8B3;
    }

    .footer__social-link--telegram:hover {
        background-color: #1E88C7;
    }
}

.footer__social-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer__copyright {
    position: absolute;
    bottom: 20px;
    left: var(--container-padding-x);
    font-size: 15px;
    color: #FFFFFF80;
    font-weight: 400;
    font-family: 'Manrope', sans-serif;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out 0.6s, transform 0.4s ease-out 0.6s;
}

.footer.animate-in .footer__copyright {
    opacity: 1;
    transform: translateY(0);
}

@media (width <=1024px) {
    .footer::after {
        display: none;
    }

    .footer__social {
        margin-right: 0;
    }
}

@media (width <=768px) {
    .footer {
        height: auto;
        min-height: 200px;
        padding: clamp(1.5rem, 4vw, 2rem) 0;
    }

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        gap: clamp(1.2rem, 3vw, 1.5rem);
        padding: 0 var(--container-padding-x);
        height: auto;
    }

    .footer__left {
        flex-direction: column;
        gap: clamp(1rem, 2.5vw, 1.2rem);
        width: 100%;
        align-items: center;
    }

    .footer__logo {
        width: clamp(100px, 20vw, 120px);
        height: clamp(100px, 20vw, 120px);
    }

    .footer__menu {
        gap: clamp(0.5rem, 1.5vw, 0.75rem);
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer__menu-item {
        padding: clamp(6px, 1.5vw, 8px) clamp(16px, 4vw, 20px);
        height: clamp(32px, 8vw, 36px);
        border-radius: clamp(16px, 4vw, 18px);
    }

    .footer__menu-link {
        font-size: clamp(13px, 3vw, 15px);
        white-space: nowrap;
    }

    .footer__social {
        gap: clamp(0.8rem, 2vw, 1rem);
    }

    .footer__social-link {
        width: clamp(36px, 8vw, 40px);
        height: clamp(36px, 8vw, 40px);
    }

    .footer__social-icon {
        width: clamp(16px, 3.5vw, 18px);
        height: clamp(16px, 3.5vw, 18px);
    }

    .footer__copyright {
        position: static;
        text-align: center;
        font-size: clamp(13px, 3vw, 14px);
        margin-top: clamp(0.8rem, 2vw, 1rem);
        order: 3;
    }
}

@media (width <=480px) {
    .footer {
        padding: clamp(1.5rem, 4vw, 2rem) 0 clamp(1rem, 3vw, 1.5rem) 0;
    }

    .footer-inner {
        padding: 0 clamp(1rem, 3vw, 1.5rem);
        gap: clamp(1rem, 3vw, 1.3rem);
    }

    .footer__left {
        gap: clamp(1rem, 3vw, 1.2rem);
    }

    .footer__logo {
        width: clamp(90px, 18vw, 110px);
        height: clamp(90px, 18vw, 110px);
    }

    .footer__menu {
        flex-direction: column;
        width: 100%;
        max-width: clamp(250px, 80vw, 320px);
        gap: clamp(0.5rem, 1.5vw, 0.75rem);
        align-items: center;
    }

    .footer__menu-item {
        width: 100%;
        justify-content: center;
        padding: clamp(8px, 2vw, 10px) clamp(20px, 5vw, 24px);
        height: clamp(36px, 9vw, 40px);
        border-radius: clamp(18px, 4vw, 20px);
    }

    .footer__menu-link {
        font-size: clamp(13px, 3.5vw, 15px);
    }

    .footer__social {
        gap: clamp(0.8rem, 2.5vw, 1rem);
    }

    .footer__social-link {
        width: clamp(36px, 9vw, 40px);
        height: clamp(36px, 9vw, 40px);
    }

    .footer__social-icon {
        width: clamp(15px, 4vw, 17px);
        height: clamp(15px, 4vw, 17px);
    }

    .footer__copyright {
        font-size: clamp(12px, 3vw, 13px);
        margin-top: clamp(0.8rem, 2vw, 1rem);
    }
}

@media (width <=360px) {
    .footer-inner {
        padding: 0 1rem;
        gap: 1rem;
    }

    .footer__logo {
        width: 90px;
        height: 90px;
    }

    .footer__menu {
        max-width: 240px;
    }

    .footer__menu-item {
        padding: 8px 20px;
        height: 36px;
    }

    .footer__menu-link {
        font-size: 13px;
    }

    .footer__social-link {
        width: 36px;
        height: 36px;
    }

    .footer__social-icon {
        width: 15px;
        height: 15px;
    }

    .footer__copyright {
        font-size: 12px;
    }
}

@media (width <=320px) {
    .footer__logo {
        width: 80px;
        height: 80px;
    }

    .footer__menu {
        max-width: 220px;
    }

    .footer__menu-item {
        padding: 6px 16px;
        height: 32px;
    }

    .footer__menu-link {
        font-size: 12px;
    }

    .footer__social-link {
        width: 32px;
        height: 32px;
    }

    .footer__social-icon {
        width: 14px;
        height: 14px;
    }

    .footer__copyright {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer,
    .footer-inner,
    .footer__brand,
    .footer__menu,
    .footer__social,
    .footer__copyright {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}