.site-footer {
    padding: 56px 0 28px;
    background: var(--navy);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
    align-items: start;
}

.footer-col h3 {
    margin: 0 0 14px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: var(--sky);
}

.footer-contact h3 {
    color: var(--white);
}

.signup-form {
    display: flex;
    align-items: center;
    max-width: 250px;
    margin-bottom: 28px;
    padding: 2px;
    background: var(--white);
    border-radius: 999px;
}

.signup-form input[type="email"],
.signup-form input[type="tel"] {
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    padding: 12px 18px;
    font-size: 0.9rem;
    color: #6f7480;
    outline: none;
}

.signup-form button[type="submit"] {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin-right: 4px;
    border: 0;
    border-radius: 999px;
    background: var(--teal);
    color: var(--white);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.footer-contact p {
    margin: 0 0 18px;
    max-width: 290px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    line-height: 1.35;
}

.footer-contact strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: var(--white);
}

.footer-signup-block + .footer-signup-block {
    margin-top: 6px;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 40px 0 0;
}

.footer-links {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
}

.footer-links li + li {
    margin-top: 14px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.footer-links svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.social-links a:nth-child(1) {
    background: #3b5998;
}

.social-links a:nth-child(2) {
    background: #1da1f2;
}

.social-links a:nth-child(3) {
    background: #ff0000;
}

.social-links a:nth-child(4) {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 8%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.social-links a[aria-label="Instagram"] svg,
.social-links a[aria-label="Instagram"] svg rect,
.social-links a[aria-label="Instagram"] svg path {
    fill: none;
    stroke: var(--white);
    stroke-width: 2;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}

.footer-logos img {
    max-height: 58px;
    width: auto;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.footer-bottom p {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

.footer-bottom a {
    color: inherit;
}

@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 36px;
    }

    .footer-signups {
        grid-column: 1 / -1;
    }

    .footer-meta {
        justify-content: flex-start;
    }

    .footer-logos {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding: 0 0 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "signups signups"
            "contact links"
            "social social";
        gap: 0;
        align-items: center;
        text-align: center;
    }

    .footer-col h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .footer-signups {
        grid-area: signups;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        justify-items: center;
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }

    .footer-signup-block {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 16px 20px;
    }

    .footer-signup-block:first-child {
        border-top: none;
    }

    .footer-signup-block + .footer-signup-block {
        margin-top: 0;
    }

    .footer-signup-block h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .signup-form {
        max-width: 260px;
        width: 100%;
        margin-bottom: 0;
        padding: 2px;
    }

    .signup-form input[type="email"],
    .signup-form input[type="tel"] {
        padding: 10px 14px;
        font-size: 0.7rem;
    }

    .signup-form button[type="submit"] {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .footer-contact {
        grid-area: contact;
        justify-self: center;
        text-align: center;
        width: 100%;
        padding: 20px 0 0;
    }

    .footer-contact h3 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .footer-contact p {
        max-width: none;
        font-size: 0.65rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .footer-contact strong {
        font-size: 0.68rem;
    }

    .footer-links-col {
        grid-area: links;
        width: 100%;
        justify-self: center;
        text-align: center;
        padding-top: 12px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-links li + li {
        margin-top: 8px;
    }

    .footer-links a {
        font-size: 0.76rem;
    }

    .footer-meta {
        grid-area: social;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-top: 14px;
        margin: 0;
    }

    .social-links {
        margin-top: 0;
        gap: 8px;
        justify-content: center;
    }

    .social-links a {
        width: 28px;
        height: 28px;
    }

    .social-links svg {
        width: 14px;
        height: 14px;
    }

    .footer-logos {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 0;
    }

    .footer-logos img {
        max-height: 34px;
    }

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

    .footer-bottom p {
        gap: 4px 8px;
        font-size: 0.52rem;
        line-height: 1.4;
    }
}
