.fp-footer,
.services-footer {
    min-height: 846px;
    margin-top: 112px;
    padding: 64px 192px 32px;
    color: #fff;
    background:
        radial-gradient(circle at 70% 110%, rgba(127, 10, 173, 0.85), transparent 34%),
        var(--black);
}

.footer-top {
    display: grid;
    grid-template-columns: 285px 408px 1fr;
    gap: 80px;
    align-items: start;
}

.footer-top h2,
.footer-top a {
    margin: 0;
    color: #fff;
    font-size: 64px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
}

.footer-top p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.4;
}

.footer-top a {
    justify-self: end;
}

.footer-top .footer-phones {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-top .footer-phones a {
    display: block;
    white-space: nowrap;
}

.footer-line {
    height: 1px;
    margin: 72px 0 56px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 260px 260px 180px 308px;
    gap: 128px;
}

.footer-grid h3 {
    margin: 0 0 26px;
    color: #fff;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

.footer-grid a,
.footer-grid p {
    display: block;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    transition: color .2s ease, transform .2s ease;
}

.footer-grid a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-grid .footer-link-title {
    color: rgba(255, 255, 255, 0.42);
    font-size: 18px;
    font-weight: 500;
}

.footer-grid .footer-link-title:hover {
    color: #fff;
    transform: translateX(4px) scale(1.08);
    transform-origin: left center;
}

.footer-contact div {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
}

.footer-contact div a {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 12px;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}

.footer-contact div a:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(24, 9, 29, .12);
}

.footer-contact img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 88px;
    margin-top: 104px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 1700px) {
    .fp-footer,
    .services-footer {
        padding-left: 48px;
        padding-right: 48px;
    }
}

@media (max-width: 900px) {
    .footer-top,
    .footer-grid,
    .footer-bottom {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .footer-top .footer-phones {
        width: 100%;
        align-items: flex-start;
    }

    .footer-top h2,
    .footer-top a {
        font-size: 38px;
        overflow-wrap: anywhere;
    }

    .fp-footer,
    .services-footer {
        padding: 48px 24px 32px;
    }

    .footer-bottom {
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .footer-top h2,
    .footer-top a {
        font-size: 34px;
        line-height: 1.04;
    }

    .fp-footer,
    .services-footer {
        min-height: 0;
        margin-top: 64px;
        padding: 40px 18px 24px;
    }

    .footer-top,
    .footer-grid,
    .footer-bottom {
        width: 100%;
        gap: 28px;
    }

    .footer-grid > div {
        width: 100%;
    }

    .footer-grid h3 {
        font-size: 22px;
    }

    .footer-grid a,
    .footer-grid p {
        font-size: 15px;
    }
}
