.footer-contact {
    padding: 74px 0 30px;
}

.footer-contact__top {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 52px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-brand__logo-wrap {
    position: relative;
    display: inline-block;
    height: clamp(72px, 10vw, 108px);
    overflow: hidden;
}

.footer-brand__logo {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.footer-brand__logo--base {
    position: relative;
    z-index: 1;
}

.footer-brand__logo-reveal {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 0%;
    height: 100%;
    overflow: hidden;
    animation: footerLogoReveal 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.25s;
}

.footer-brand__logo--reveal {
    height: 100%;
    max-width: none;
}

@keyframes footerLogoReveal {
    0% {
        width: 0%;
    }

    18% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.footer-contact__top p {
    margin-top: 16px;
    color: var(--color-text-soft);
    max-width: 860px;
    margin-inline: auto;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.footer-socials a {
    min-height: 54px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.01);
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease,
        color 0.28s ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.footer-contact__grid {
    display: grid;
    gap: 40px;
    padding-top: 30px;
}

.footer-contact__links {
    display: grid;
    gap: 30px;
}

.footer-links-column h3,
.footer-contact__form h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--color-white);
}

.footer-links-column ul {
    display: grid;
    gap: 13px;
}

.footer-links-column a {
    color: var(--color-text-soft);
    display: inline-flex;
    transform: translateX(0);
    transition:
        color 0.32s ease,
        transform 0.32s ease;
}

.footer-links-column a:hover {
    color: var(--color-white);
    transform: translateX(3px);
}

.footer-contact__form {
    max-width: 100%;
    width: 100%;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 16px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 54px;
    color: var(--color-white);
    background: transparent !important;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.28s ease;
    box-shadow: none !important;
    outline: none;
    padding-inline: 0;
}

.form-field textarea {
    min-height: 116px;
    resize: vertical;
    padding-top: 12px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.form-field input:focus,
.form-field textarea:focus {
    border-bottom-color: rgba(182, 212, 51, 0.34);
    background: transparent !important;
}

.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus,
.form-field textarea:-webkit-autofill,
.form-field textarea:-webkit-autofill:hover,
.form-field textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    transition: background-color 9999s ease-in-out 0s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-submit-btn {
    width: 100%;
    min-height: 54px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: transparent;
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    transition:
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        background-color 0.3s ease;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.footer-submit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 0%;
    background: var(--color-accent);
    z-index: -1;
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.footer-submit-btn:hover {
    border-color: rgba(182, 212, 51, 0.18);
    transform: translateY(-2px);
}

.footer-submit-btn__content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-submit-btn.is-loading {
    pointer-events: none;
    color: #111111;
    border-color: rgba(182, 212, 51, 0.42);
}

.footer-submit-btn.is-loading::before {
    width: 100%;
    background: var(--color-accent);
}

.footer-submit-btn.is-success {
    pointer-events: none;
    color: #111111;
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.footer-submit-btn.is-success::before {
    width: 100%;
    background: var(--color-accent);
}

.footer-submit-btn.is-error {
    pointer-events: none;
    color: #ffffff;
    border-color: #d83a3a;
    background: #d83a3a;
}

.footer-submit-btn.is-error::before {
    width: 100%;
    background: #d83a3a;
}

.footer-contact__bottom {
    margin-top: 68px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-contact__bottom p {
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.96rem;
}

@media (max-width: 991px) {
    .footer-contact {
        padding: 68px 0 30px;
    }

    .footer-contact__grid {
        text-align: center;
        justify-items: center;
        gap: 44px;
    }

    .footer-contact__links {
        width: 100%;
        justify-items: center;
        text-align: center;
    }

    .footer-links-column {
        width: 100%;
        display: grid;
        justify-items: center;
        text-align: center;
    }

    .footer-links-column h3,
    .footer-contact__form h3 {
        text-align: center;
    }

    .footer-links-column ul {
        justify-items: center;
    }

    .footer-links-column a {
        justify-content: center;
        text-align: center;
    }

    .footer-links-column a:hover {
        transform: translateY(-2px);
    }

    .footer-contact__form {
        width: 100%;
        justify-self: center;
        text-align: center;
    }

    .contact-form {
        width: 100%;
        text-align: left;
    }

    .footer-submit-btn {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .footer-brand__logo-wrap {
        height: clamp(82px, 8vw, 118px);
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .footer-brand__logo-wrap {
        height: 110px;
    }

    .footer-contact__grid {
        grid-template-columns: 1.25fr 0.82fr;
        align-items: start;
        gap: 62px;
    }

    .footer-contact__links {
        grid-template-columns: repeat(3, 1fr);
        gap: 34px;
        padding-top: 6px;
    }

    .footer-contact__form {
        max-width: 560px;
        justify-self: end;
    }
}