footer .container {
    padding: 75px 0;
}

.footer__wrapper {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: space-between;
    align-items: end;
}

.footer__column {
    display: flex;
    flex-direction: column;
}

h2.contacts-title.section-title {
    margin-bottom: 85px;
}

a.footer__logo {
    margin-bottom: 17px;
}

span.copyright {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: var(--color-accent);
}

form.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 40p 40px 40px;
    gap: 19px 24px;
    width: 624px;
}

label.form-label {
    display: none;
}

input,
textarea#message {
    background: #191919;
    border: 1px solid #4FAC25;
    border-radius: 15px;
    padding: 12px 20px;
    width: 100%;
}

input:active,
textarea#message:active {
    border: 1px solid #4FAC25;
}

button.submit-btn {
    background: rgba(79, 172, 37, 0.75);
    border: 1px solid #4FAC25;
    border-radius: 20px;
    padding: 10px 0;
    width: 100%;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    grid-column: 2 / 3;
    cursor: pointer;
    transition: background .4s ease, color .4s ease;
}

button.submit-btn:hover {
    background: #55b926;
}

.contact__item {
    pointer-events: none;
}

textarea {
    resize: none;
}

textarea#message {
    height: 100%;
}

.name {
    grid-column: 1 / 2;
}

.email {
    grid-column: 1 / 2;
}

.subject {
    grid-column: 1 / 2;
}

.message {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

.footer__row.wide-row {
    display: flex;
    gap: 5px;
    margin-top: 56px;
    justify-content: space-between;
}

.legal__link {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    color: var(--color-accent);
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 21px;
}

input,
input::placeholder,
textarea#message,
textarea#message::placeholder {
    font-size: 12px;
    color: #4fac25 !important;
    opacity: 0.7;
    transition: opacity 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    outline: none;
}

input:hover,
input:hover::placeholder,
input:focus,
input:focus::placeholder,
textarea#message:focus,
textarea#message:hover {
    opacity: 1;
}

input:focus,
textarea#message {
    outline: none;
    box-shadow: none;
}

a.footer__logo img {
    width: 100%;
}

.mobile {
    display: none;
}

.desktop {
    display: block;
}

.footer__social.desktop {
    display: flex;
}

a.footer_social-item img {
    opacity: 0.75;
    transition: opacity .4s ease;
}

a.footer_social-item:hover img {
    opacity: 1;
}

.footer__column span.contact__info {
    transition: color .4s ease;
}

.footer__column span.contact__info:hover {
    color: #4FAC25;
}


@media (max-width: 1025px) {
    .footer__wrapper {
        display: grid;
        grid-template-columns: 1fr 2fr;
        grid-template-rows: 1fr;
    }

    .footer__column#column-1 {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        display: flex;
        justify-content: space-between;
        height: 100%;
    }

    div#column-2 {
        grid-column: 2 / 3;
        display: flex;
        flex-direction: row;
        gap: 24px;
    }

    div#column-3 {
        grid-column: 2 / 3;
    }

    .mobile {
        display: block;
    }

    .footer__social.desktop {
        display: none;
    }

    .footer__social.mobile {
        display: flex;
        margin-left: auto;
    }

    .footer__row.wide-row {
        justify-content: end;
        margin-top: 24px;
    }

    .footer__column#column-1 {
        height: fit-content;
    }

    h2.contacts-title.section-title {
        margin-bottom: -25px;
    }

    div#column-3 {
        margin-top: 75px;
    }
}

@media (max-width: 768px) {
    .footer__wrapper {
        grid-template-columns: 1fr !important;
    }

    div#column-1 {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 2 !important;
    }

    div#column-2 {
        grid-column: 1 / 2 !important;
        grid-row: 2 / 3 !important;
    }

    div#column-3 {
        grid-column: 1 / 2 !important;
        grid-row: 3 / 4 !important;
    }

    form.contact-form {
        display: flex;
        flex-direction: column;
    }

    form.contact-form {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: calc(100vw - 16px * 2);
    }

    div#column-1 {
        order: 3;
    }

    div#column-2 {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 5px;
        order: 1;
        position: relative;
        width: 100%;
    }

    div#column-3 {
        order: 2;
        width: 100%;
    }

    .footer__wrapper {
        display: flex;
        flex-direction: column;
    }

    div#column-1 {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .footer__logo img {
        width: 100%;
        max-width: 180px;
        margin: auto;
    }

    a.footer__logo {
        width: fit-content;
        margin: auto;
        margin-bottom: 10px;
    }

    span.copyright {
        text-align: center;
    }

    .legal__link {
        font-size: 1rem;
    }

    a.legal_link {
        color: #4FAC25;
    }

    textarea#message {
        height: 10rem;
        font-size: 1.2rem;
    }

    input,
    input::placeholder,
    textarea#message,
    textarea#message::placeholder {
        opacity: 0.65;
    }

    .contact__item img {
        display: none;
    }

    .footer__social.mobile {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
    }

    span.contact__info {
        font-size: 1.2rem;
    }

    .desktop {
        display: none !important;
    }

    .footer__row.wide-row {
        justify-content: center;
    }

    footer .container {
        padding: 34px 0 51px 0;
    }

    .footer__wrapper {
        gap: 30px;
    }

    img.footer_logo-img {
        margin-top: 20px;
    }

    div#column-3 {
        margin-top: 0px !important;
    }

    section#about {
        background-size: contain;
    }
}