#main-footer {
    background:
        linear-gradient(180deg, rgba(42, 74, 87, 0.98), rgba(20, 36, 45, 1));
    padding: clamp(56px, 8vw, 80px) 0 34px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 32px);
    align-items: flex-start;
}

.footer-branding-horizontal {
    display: flex;
    gap: clamp(16px, 2vw, 24px);
    align-items: flex-start;
    max-width: 640px;
}

.footer-branding-horizontal .hero-logo-wrapper {
    width: 132px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

.hero-names-footer {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.footer-descr {
    max-width: 40ch;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    line-height: 1.7;
}

.footer-right-group {
    display: flex;
    gap: clamp(20px, 4vw, 48px);
    flex-wrap: wrap;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 18px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links li + li,
.footer-contact p + p {
    margin-top: 10px;
}

.footer-links a,
.footer-contact a {
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-contact p {
    max-width: 28ch;
    font-size: clamp(0.88rem, 1.9vw, 0.92rem);
    line-height: 1.68;
}

.footer-bottom {
    margin-top: 52px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .footer-grid,
    .footer-right-group,
    .footer-branding-horizontal {
        flex-direction: column;
    }

    .footer-bottom {
        text-align: left;
    }
}

@media (max-width: 480px) {
    #main-footer {
        padding-top: 48px;
    }

    .footer-branding-horizontal .hero-logo-wrapper {
        width: 108px;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .footer-bottom {
        margin-top: 36px;
    }
}
