.site-footer {
    background-color: var(--color-bg-dark);
    padding: 64px 64px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Main grid */

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

/* Logo column */

.footer-logo-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex-shrink: 0;
}

.footer-logo img {
    display: block;
    width: 143px;
    height: auto;
}

.footer-desc {
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: var(--color-white);
    opacity: 0.5;
    width: 278px;
}

/* Shared column title */

.footer-col-title {
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-white);
    opacity: 0.5;
    white-space: nowrap;
}

/* Navigation column */

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
}

/* Contacts column */

.footer-contacts-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-nav a {
    font-family: var(--font-neo);
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
    color: var(--color-white);
    text-decoration: none;
}



.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-label {
    font-family: var(--font-inter);
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    color: var(--color-white);
    opacity: 0.5;
}

.footer-contact-value {
    font-family: var(--font-neo);
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
    color: var(--color-white);
}

/* Aside column */

.footer-aside-col {
    display: flex;
    flex-direction: column;
    gap: 64px;
    flex-shrink: 0;
}

.footer-social-block,
.footer-integration-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
    opacity: 0.43;
}

.footer-social-link img {
    display: block;
    width: 32px;
    height: 32px;
}

/* Integration */

.footer-integration {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-tecdoc {
    font-family: var(--font-neo);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-white);
    opacity: 0.5;
    white-space: nowrap;
}

.footer-integration-sub {
    font-family: var(--font-inter);
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    color: var(--color-white);
    opacity: 0.2;
    text-align: center;
}

.footer-integration-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.2);
}

.footer-integration img {
    display: block;
    width: 50px;
    height: 16px;
}

/* Divider */

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* Bottom bar */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-family: var(--font-inter);
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    color: var(--color-white);
    opacity: 0.5;
    white-space: nowrap;
}

.footer-bottom-left {
    display: flex;
    gap: 32px;
    align-items: center;
}

.footer-bottom-left a,
.footer-bottom-right {
    color: var(--color-white);
    text-decoration: none;
}

.footer-bottom-right {
    font-family: var(--font-inter);
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    opacity: 0.5;
}

/* ==============================
   Responsive Footer
   ============================== */

@media (max-width: 1170px) {
    .site-footer {
        padding: 44px 24px 32px;
        gap: 24px;
    }

    .footer-desc {
        width: 100%;
    }

    /* Nav + Contacts — 2 columns side by side, rest stacked */
    .footer-main {
        flex-direction: row;
        flex-wrap: wrap;
        row-gap: 24px;
        column-gap: 64px;
    }

    .footer-logo-col {
        width: 100%;
        order: 0;
        padding-bottom: 16px;
    }

    .footer-nav-col {
        order: 1;
        width: 100px;
        flex-shrink: 0;
        padding-bottom: 24px;
    }

    .footer-contacts-col {
        order: 2;
        flex: 1;
        padding-bottom: 24px;
    }

    .footer-aside-col {
        order: 3;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .footer-nav {
        gap: 40px;
    }

    .footer-nav a {
        text-decoration: underline;
        text-decoration-skip-ink: none;
    }

    /* Col title smaller on mobile */
    .footer-col-title {
        font-size: 12px;
        line-height: 18px;
    }

    /* Bottom — vertical stack */
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        white-space: normal;
    }

    .footer-bottom-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-bottom-right {
        opacity: 0.5;
    }
}
