.footer {
    background-color: #7c9ef5;
    color: #fff;
    font-family: "Inter", sans-serif;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 34px clamp(18px, 5vw, 72px) 22px;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
    text-decoration: underline;
}

.footer p {
    margin: 0;
}

.footer__links {
    display: grid;
    grid-template-columns: 72px minmax(120px, 170px) minmax(140px, 180px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: start;
    width: min(100%, 1220px);
    margin: 0 auto;
}

.footer__logo,
.footer__logo a {
    display: flex;
    align-items: flex-start;
}

.footer__logo img {
    width: 56px;
    height: auto;
    display: block;
}

.footer__nav-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__nav-title {
    margin: 0;
}

.footer__nav-link,
.footer__social-title,
.footer__contacts-title,
.footer__brick-name,
.footer__brick-prof,
.footer__brick-number,
.footer__copyright-text {
    font-size: 14px;
    line-height: 1.35;
}

.footer__social,
.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.footer__social-title,
.footer__contacts-title,
.footer__brick-name {
    font-weight: 700;
}

.footer__social img {
    width: 28px;
    height: 28px;
    display: block;
}

.footer__contacts-bricks {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 18px 28px;
    min-width: 0;
}

.footer__contacts-brick {
    min-width: 0;
}

.footer__brick-prof {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.86);
}

.footer__brick-number {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.94);
    white-space: nowrap;
}

.footer__brick-number img {
    width: 12px;
    height: auto;
    flex: 0 0 auto;
}

.footer__copyright {
    width: min(100%, 1220px);
    margin: 30px auto 0;
    text-align: center;
}

.footer__copyright-text {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1024px) {
    .footer {
        padding: 30px 28px 22px;
    }

    .footer__links {
        grid-template-columns: 56px minmax(130px, 1fr) minmax(140px, 1fr);
        gap: 28px;
    }

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

    .footer__contacts-bricks {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .footer {
        padding: 28px 18px 20px;
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: 24px;
        justify-items: center;
        text-align: center;
    }

    .footer__logo img {
        width: 52px;
    }

    .footer__nav-list {
        gap: 10px;
    }

    .footer__nav-link,
    .footer__social-title,
    .footer__contacts-title,
    .footer__brick-name,
    .footer__brick-prof,
    .footer__brick-number,
    .footer__copyright-text {
        font-size: 14px;
    }

    .footer__social,
    .footer__contacts {
        align-items: center;
    }

    .footer__contacts-bricks {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
        width: 100%;
        max-width: 430px;
        gap: 18px 16px;
    }

    .footer__brick-number {
        justify-content: center;
        white-space: normal;
    }

    .footer__copyright {
        margin-top: 24px;
    }
}

@media (max-width: 420px) {
    .footer__contacts-bricks {
        grid-template-columns: 1fr;
        max-width: 260px;
    }

    .footer__nav-link,
    .footer__social-title,
    .footer__contacts-title,
    .footer__brick-name,
    .footer__brick-prof,
    .footer__brick-number,
    .footer__copyright-text {
        font-size: 13px;
    }
}
/* Final footer override: keeps the shared footer readable over old page CSS */
.footer {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 34px clamp(18px, 5vw, 72px) 22px !important;
    gap: 0 !important;
}

.footer__links {
    display: grid !important;
    grid-template-columns: 72px minmax(120px, 170px) minmax(140px, 180px) minmax(0, 1fr) !important;
    gap: clamp(24px, 5vw, 72px) !important;
    align-items: start !important;
    width: min(100%, 1220px) !important;
    margin: 0 auto !important;
}

.footer__logo {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.footer__logo img {
    width: 56px !important;
    height: auto !important;
}

.footer__nav-list {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer__nav-title,
.footer__brick-prof,
.footer__social-title {
    margin: 0 !important;
}

.footer__social,
.footer__contacts {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.footer__contacts-bricks {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(120px, 1fr)) !important;
    gap: 18px 28px !important;
}

.footer__nav-link,
.footer__social-title,
.footer__contacts-title,
.footer__brick-name,
.footer__brick-prof,
.footer__brick-number,
.footer__copyright-text {
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.footer__brick-prof {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

.footer__brick-number {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin-top: 12px !important;
    white-space: nowrap !important;
}

.footer__brick-number img {
    width: 12px !important;
    height: auto !important;
}

.footer__copyright {
    width: min(100%, 1220px) !important;
    margin: 30px auto 0 !important;
}

@media (max-width: 1024px) {
    .footer {
        padding: 30px 28px 22px !important;
    }

    .footer__links {
        grid-template-columns: 56px minmax(130px, 1fr) minmax(140px, 1fr) !important;
        gap: 28px !important;
    }

    .footer__contacts {
        grid-column: 1 / -1 !important;
    }

    .footer__contacts-bricks {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .footer {
        padding: 28px 18px 20px !important;
    }

    .footer__links {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        justify-items: center !important;
        text-align: center !important;
    }

    .footer__logo img {
        width: 52px !important;
    }

    .footer__nav-list {
        gap: 10px !important;
    }

    .footer__social,
    .footer__contacts {
        align-items: center !important;
    }

    .footer__contacts-bricks {
        grid-template-columns: repeat(2, minmax(130px, 1fr)) !important;
        width: 100% !important;
        max-width: 430px !important;
        gap: 18px 16px !important;
    }

    .footer__brick-number {
        justify-content: center !important;
        white-space: normal !important;
    }

    .footer__copyright {
        margin-top: 24px !important;
    }
}

@media (max-width: 420px) {
    .footer__contacts-bricks {
        grid-template-columns: 1fr !important;
        max-width: 260px !important;
    }

    .footer__nav-link,
    .footer__social-title,
    .footer__contacts-title,
    .footer__brick-name,
    .footer__brick-prof,
    .footer__brick-number,
    .footer__copyright-text {
        font-size: 13px !important;
    }
}