.footer {
    background-color: #161620;
    background-image: url("../images/starsbg.png");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    padding: 113px 73px 113px 73px;
    height: 600px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 200px;
}

.footer__container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    
}

.footer__logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 378px;
}

.footer__logo img {
    width: 278px;
}

.footer__logo p {
    color: #FFF;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    margin-top: 14px;
}

.footer__logo button {
    display: flex;
    width: 248px;
    height: 40px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    color: #161620;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -0.16px;
    border-radius: 47px;
    background: #FFF;
    margin-top: 25px;
    border: none;
    cursor: pointer;
}

.footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer__links span {
    color: #FFF;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
}

.footer__links-items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer__links-items a {
    color: #E0E0E0;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22.516px;
    letter-spacing: -0.14px;
    text-decoration: none;
}

.footer__form-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 200px;
    align-items: center;
}

.footer__form-field input {
    border-radius: 8px;
    border: 0.5px solid #E4E4E4 !important;
    display: flex;
    padding: 11px 14px 8px 14px;
    align-items: center;
    gap: 8px;
    color: rgba(238, 248, 255, 0.47);
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 105%;
    letter-spacing: -0.16px;
    background: transparent;
    outline: none;
}

.footer__form-btn {
    display: flex;
    height: 48px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 47px;
    background: rgba(50, 220, 149, 0.68);
    border: none;
    color: #161620;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -0.16px;
}

.footer__form-label {
    color: #FFF;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 105%;
    letter-spacing: -0.16px;
}

.footer__form-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    max-width: 550px;
}

.footer__form-title h4 {
    color: #FFF;
    font-family: "Montserrat", sans-serif;
    font-size: 52px;
    font-style: normal;
    font-weight: 600;
    line-height: 103%;
    letter-spacing: -1.04px;
}

.footer__form-title p {
    color: #E4E4E4;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.footer__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__form-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__form-label {
    color: #FFF;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    cursor: pointer;
}

@media (max-width: 768px) {
    .footer {
        padding: 48px 24px;
        margin-top: 0;
        height: auto;
        min-height: auto;
        gap: 32px;
        align-items: stretch;
    }

    .footer__form-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        width: 100%;
    }

    .footer__container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
    }

    .footer__logo,
    .footer__links:not(.footer__links--products):not(.footer__links--contacts) {
        display: none;
    }

    .footer__links--products,
    .footer__links--contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__links--products span,
    .footer__links--contacts span {
        text-align: center;
    }

    .footer__links--products .footer__links-items,
    .footer__links--contacts .footer__links-items {
        align-items: center;
    }

    .footer__form-title h4{
        font-size: 32px;
        text-align: center;
    }

    .footer__form-title p{
        text-align: center;
        font-size: 14px;
    }

    .footer__form-container{
        gap: 32px;
    }
}