.newsletter-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.newsletter-modal__overlay--active {
    display: flex;
}

/* Попап */
.newsletter-modal {
    width: 480px;
    background: #FFFEF9;
    padding: 50px 25px 25px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
}

.newsletter-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.newsletter-modal__title {
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    color: #281D18;
    text-align: center;
    margin-bottom: 30px;
}

.newsletter-modal__text {
    font-size: 14px;
    color: #281D18;
    text-align: center;
    max-width: 100%;
    margin-bottom: 30px;
    line-height: 1.5;
}

.newsletter-modal__note {
    font-size: 14px;
    color: #281D18;
    text-align: left;
    margin-bottom: 15px;
}

.newsletter-modal__input {
    width: 100%;
    height: 55px;
    border: 1px solid #E7E7E7;
    padding: 0 25px;
    color: #281D18;
    font-size: 14px;
    margin: 28px 0 32px;
    box-sizing: border-box;
    outline: none;
}

.newsletter-modal__input:focus {
    border: 1px solid #281D18;
}

.newsletter-modal__input::placeholder {
    color: #AAAAAA;
}

.newsletter-modal__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #281D18;
    margin-bottom: 30px;
    line-height: 1.4;
}

.newsletter-modal__checkbox a {
    text-decoration: underline;
    color: #281D18;
}

.newsletter-modal__checkbox input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 1px solid #281D18;
    border-radius: 0;
    background: #FFFEF9;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
}

.newsletter-modal__checkbox input[type="checkbox"]:checked {
    background: #281D18;
}

.newsletter-modal__checkbox input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    color: #FFFEF9;
    font-size: 14px;
    line-height: 1;
}

.newsletter-modal__btn {
    width: 100%;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    text-transform: uppercase;
    border: 1px solid #281D18;
    background: #281D18;
    color: #FFFEF9;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.newsletter-modal__btn:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #FFFEF9;
    transform: scaleX(0);
    transform-origin: left;
    transition: all .4s ease;
    z-index: 0;
}

.newsletter-modal__btn span {
    position: relative;
    z-index: 1;
    transition: all .4s ease;
}

.newsletter-modal__btn:hover:after {
    transform: scaleX(1);
}

.newsletter-modal__btn:hover span {
    color: #281D18;
}

@media (max-width: 768px) {
    .newsletter-modal {
        width: auto;
        height: auto;
        margin: 0 25px;
        padding: 50px 15px 20px;
    }

    .newsletter-modal__title {
        font-size: 16px;
    }

    .newsletter-modal__text {
        width: 100%;
        font-size: 14px;
    }

    .newsletter-modal__btn {
        height: 50px;
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .newsletter-modal {
        width: auto;
        height: auto;
        margin: 0 25px;
        padding: 40px 15px 20px;
    }

    .newsletter-modal__title {
        font-size: 14px;
    }

    .newsletter-modal__text {
        width: 100%;
        font-size: 12px;
    }

    .newsletter-modal__note {
        font-size: 10px;
    }

    .newsletter-modal__btn {
        height: 40px;
        font-size: 12px;
    }
}


.footer__subscribe--mobile {
    display: none;
}

.footer__subscribe-title {
    margin-bottom: 14px;
}

.footer__subscribe-btn {
    width: 205px;
    height: 45px;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    border: 1px solid #281D18;
    background: transparent;
    cursor: pointer;
}

.footer__subscribe-btn:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #281D18;
    transform: scaleX(0);
    transform-origin: left;
    z-index: 0;
    transition: all 0.4s ease;
}

.footer__subscribe-btn:hover:after {
    transform: scaleX(1);
}

.footer__subscribe-btn span {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.footer__subscribe-btn:hover span {
    color: #FFFEF9;
}