/* DSA Market - Стили для футера сайта (обновленные) */

/* Основной футер */
footer {
    color: var(--white);
    margin-top: 0;
    position: relative;
}

.footer__top {
    background-color: var(--primary);
    padding: 80px 0 64px;
    position: relative;
    overflow: hidden;
}

.footer__top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0.05;
    pointer-events: none;
}

.footer__top h4 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer__top h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer__top p {
    font-size: 16px;
    margin-bottom: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.footer__top ul li {
    margin-bottom: 12px;
}

.footer__top a {
    color: var(--white);
    font-size: 16px;
    opacity: 0.9;
    transition: all var(--transition-fast);
}

.footer__top a:hover {
    color: var(--accent);
    opacity: 1;
    padding-left: 5px;
}

/* Навигационные блоки */
.footer__nav-block {
    margin-bottom: 30px;
}

.footer__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__docs {
    display: flex;
    gap: 20px;
}

.footer__docs-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 14px;
}

.footer__docs-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer__company-info {
    margin-bottom: 32px;
}

.footer__company-info img {
    max-width: 150px;
    margin-bottom: 24px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.footer-contact-icon {
    width: 20px;
    margin-right: 12px;
    opacity: 0.9;
    flex-shrink: 0;
}

.footer-contact-text {
    flex: 1;
}

/* Преимущества - обновленные классы */
.footer__advantages-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__advantage-item {
    display: flex;
    align-items: center;
}

.footer__advantage-icon {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.footer__advantage-icon img {
    max-width: 22px;
    opacity: 0.9;
}

.footer__advantage-item:hover .footer__advantage-icon {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer__advantage-text {
    font-size: 16px;
    line-height: 1.4;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: all var(--transition);
}

.social-icon:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

/* Нижний футер */
.footer__bottom {
    background-color: var(--primary);
    color: var(--white);
    padding: 24px 0;
    font-size: 14px;
}

.footer__bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    opacity: 0.8;
}

.footer__nav ul {
    display: flex;
    gap: 24px;
}

.footer__nav-link {
    color: var(--white);
    opacity: 0.8;
    transition: all var(--transition-fast);
}

.footer__nav-link:hover,
.footer__nav-link_state_active {
    color: var(--accent);
    opacity: 1;
}

/* Украшения футера */
.footer-shape {
    position: absolute;
    pointer-events: none;
}

.footer-shape-1 {
    top: 50px;
    right: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 194, 255, 0.1), rgba(0, 194, 255, 0));
    animation: floatAnimation 8s ease-in-out infinite;
}

.footer-shape-2 {
    bottom: 100px;
    left: 5%;
    width: 150px;
    height: 150px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    animation: morphAnimation 15s ease-in-out infinite, floatAnimation 10s ease-in-out infinite;
}

@keyframes floatAnimation {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes morphAnimation {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Адаптивность для футера */
@media (max-width: 992px) {
    .footer__top {
        padding: 64px 0 48px;
    }

    .footer__advantages-list {
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .footer__top {
        padding: 48px 0 32px;
    }

    .footer__top .col {
        flex: 1 1 50%;
    }

    .footer__company-info {
        margin-bottom: 32px;
    }

    .footer__bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer__nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer__nav ul li {
        margin: 8px 12px;
    }

    .footer__top .footer__company-col {
        flex: 1 1 100%;
        padding: 0;
    }

    .footer__company-info img {
        margin: 0 auto 24px;
    }

    .footer__company-text,
    .footer__company-contacts {
        padding: 16px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid #445378;
        border-left: none;
        border-right: none;
        text-align: center;
    }

    .footer__company-contacts {
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 16px;
        font-weight: bold;
    }

    .footer__company-info p {
        margin-bottom: 0;
        opacity: 1;
    }

    .footer__company-contacts p,
    .footer__company-contacts a {
        color: var(--white);
        font-size: 16px;
        opacity: 0.9;
        transition: all var(--transition-fast);
        font-weight: normal;
    }

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

    .footer__top h4 {
        font-size: 18px;
        margin-bottom: 16px;
    }
}

@media (max-width: 576px) {
    .footer__subscribe-form {
        flex-direction: column;
    }

    .footer__subscribe-input {
        border-radius: var(--radius-full);
        margin-bottom: 12px;
        padding: 15px 20px;
    }

    .footer__subscribe-button {
        border-radius: var(--radius-full);
        width: 100%;
    }

    .footer-social {
        justify-content: center;
    }
}


@media (max-width: 476px) {
    .footer__contact-label {
        display: none;
    }
}