.site-footer {
    color: #fff;
    padding: 50px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

/* колонки */
.footer-col {
    flex: 1;
}

/* логотип */
.footer-logo {
    width: 180px;
    margin-bottom: 20px;
}

/* контакты */
.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Inter", sans-serif;
    margin-bottom: 10px;
}

.footer-item img {
    width: 18px;
}

/* центр */

.footer-center {
    text-align: center;
}

.footer-center h3 {
    margin:0 0 15px 0;
}

.footer-center p {
    font-family: var(--titles);
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-center a {
    color: #fff;
    font-family: var(--titles);
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.3s;
}

.footer-center a:hover {
    opacity: 0.7;
}

/* меню */
.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
}

.footer-menu a:hover {
    opacity: 0.7;
}

/* низ */
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
}

/* ===== МОДАЛКА ===== */
.footer-modal {
    align-items: center;
    background: rgba(0, 0, 0, 0.76);
    display: flex;
    position: fixed;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 24px;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    visibility: hidden;
    z-index: 10050;
}

.footer-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
    visibility: visible;
}

.footer-modal-content {
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    max-height: min(88vh, 900px);
    max-width: 760px;
    opacity: 0;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    scrollbar-color: rgba(255, 255, 255, 0.38) #111113;
    scrollbar-width: thin;
    transform: translateY(24px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: min(100%, 760px);
}

.footer-modal.is-open .footer-modal-content {
    opacity: 1;
    transform: translateY(0);
}

.footer-modal-content::-webkit-scrollbar {
    width: 10px;
}

.footer-modal-content::-webkit-scrollbar-track {
    background: #111113;
}

.footer-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.34);
    border: 2px solid #111113;
}

.footer-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.modal-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #fff;
    display: inline-flex;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 28px;
    height: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
}

.modal-body {
    max-width: 680px;
}

.modal-body h2 {
    color: #fff;
    font-family: var(--titles);
    font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.3rem);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 24px;
    padding-right: 36px;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
    white-space: pre-line;
}

.footer-col ul {
    margin-top: 0;
}

.footer-col li {
    list-style: none;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    transition: all 0.3s;
    text-align: right;
}

.footer-col li:hover {
    opacity: 0.7;
}



/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
    .site-footer {
        padding: 32px 20px 20px;
    }

    .footer-container {
        display: grid;
        gap: 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-left,
    .footer-center {
        display: contents;
    }

    .footer-right {
        display: none;
    }

    .footer-logo {
        grid-column: 1 / -1;
        grid-row: 1;
        margin: 0;
        max-width: none;
        width: 46%;
    }

    .footer-company {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0 !important;
        text-align: left;
    }

    .footer-description {
        grid-column: 1 / -1;
        grid-row: 3;
        line-height: 1.6;
        margin: 0;
        max-width: 42rem;
        text-align: left;
    }

    .footer-contacts {
        align-items: start;
        display: grid;
        gap: 8px 24px;
        grid-column: 1 / -1;
        grid-row: 4;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-item {
        align-items: center;
        gap: 8px;
        margin-bottom: 0;
        min-height: 0;
        padding: 0;
    }

    .footer-item:last-child {
        grid-column: 1 / -1;
    }

    .footer-item span {
        font-family: "Inter", sans-serif;
        line-height: 1.4;
        word-break: break-word;
    }

    .footer-policy-link {
        display: inline-flex;
        grid-column: 1 / -1;
        grid-row: 5;
        justify-self: start;
        margin-top: 4px;
    }

    .footer-col li {
        text-align: left;
    }

}

@media (max-width: 767px) {
    .footer-container {
        gap: 16px;
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-logo {
        width: 300px;
    }

    .footer-contacts {
        gap: 8px 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-modal {
        align-items: flex-start;
        padding: 12px;
    }

    .footer-modal-content {
        max-height: calc(100vh - 24px);
        padding: 20px 16px;
        width: 100%;
    }

    .modal-close {
        right: 8px;
        top: 8px;
    }

    .modal-body h2 {
        margin-bottom: 18px;
        padding-right: 28px;
    }

    .modal-body p {
        font-size: 14px;
        line-height: 1.65;
    }
}

@media (max-width: 479px) {

    .footer-contacts {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-item:last-child {
        grid-column: auto;
    }
}
