/* Блок «Подпишитесь на рассылку» (главная) */
.home-newsletter {
    padding: 0 16px 56px;
    background: #e9f0ec;
    color: #181a17;
}

@media (min-width: 1200px) {
    .home-newsletter {
        padding: 0 20px 64px;
    }
}

.home-newsletter__inner {
    max-width: var(--yoge-container-max, 1580px);
    margin: 0 auto;
}

.home-newsletter__card {
    position: relative;
    background: #d4b45c;
    border-radius: 24px;
    padding: 28px 24px 24px;
    box-shadow: 0 10px 32px rgba(20, 26, 24, 0.08);
}

@media (min-width: 768px) {
    .home-newsletter__card {
        padding: 32px 40px 28px;
    }
}

.home-newsletter__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2d4a3e;
    color: #fff;
    margin-bottom: 16px;
}

.home-newsletter__bell {
    display: block;
}

.home-newsletter__title {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    max-width: 12em;
    color: #121512;
}

@media (min-width: 768px) {
    .home-newsletter__title {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }
}

.home-newsletter__form {
    margin: 0;
}

.home-newsletter__field {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-radius: 999px;
    padding: 5px 5px 5px 18px;
    max-width: 560px;
    box-shadow: 0 2px 12px rgba(20, 26, 24, 0.06);
}

.home-newsletter__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    color: #181a17;
    outline: none;
    padding: 10px 8px 10px 0;
}

.home-newsletter__input::placeholder {
    color: rgba(24, 26, 23, 0.45);
}

.home-newsletter__input.is-invalid {
    color: #a32020;
}

.home-newsletter__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px 12px 22px;
    background: #121512;
    color: #fff;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.home-newsletter__btn:hover {
    background: #2a2f2c;
}

.home-newsletter__btn:active {
    transform: scale(0.98);
}

.home-newsletter__btn-icon {
    flex-shrink: 0;
    opacity: 0.95;
}

.home-newsletter__error {
    margin: 10px 0 0 18px;
    font-size: 13px;
    color: #7a1e1e;
}

.home-newsletter__alert {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 560px;
}

.home-newsletter__alert--ok {
    background: rgba(45, 74, 62, 0.15);
    color: #1e3329;
    border: 1px solid rgba(45, 74, 62, 0.25);
}

.home-newsletter__alert--info {
    background: rgba(255, 255, 255, 0.65);
    color: #3a3d38;
    border: 1px solid rgba(24, 26, 23, 0.12);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Поп-ап после успешной подписки */
.home-newsletter-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.home-newsletter-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-newsletter-modal.is-closing {
    opacity: 0;
    visibility: hidden;
}

.home-newsletter-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(18, 21, 18, 0.45);
    cursor: pointer;
    border: 0;
    padding: 0;
}

.home-newsletter-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px 24px;
    box-shadow: 0 24px 48px rgba(20, 26, 24, 0.18);
    text-align: center;
    color: #181a17;
    transform: translateY(8px) scale(0.98);
    transition: transform 0.22s ease;
}

.home-newsletter-modal.is-open .home-newsletter-modal__panel {
    transform: translateY(0) scale(1);
}

.home-newsletter-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(45, 74, 62, 0.12);
    color: #2d4a3e;
}

.home-newsletter-modal__title {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px;
    color: #121512;
}

.home-newsletter-modal__text {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 22px;
    color: rgba(24, 26, 23, 0.72);
}

.home-newsletter-modal__btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    background: #121512;
    color: #fff;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.home-newsletter-modal__btn:hover {
    background: #2a2f2c;
}

.home-newsletter-modal--info .home-newsletter-modal__panel {
    border: 1px solid rgba(212, 180, 92, 0.45);
    box-shadow: 0 28px 56px rgba(20, 26, 24, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.home-newsletter-modal__icon--info {
    background: linear-gradient(145deg, rgba(68, 140, 116, 0.2) 0%, rgba(229, 196, 102, 0.45) 100%);
    color: #2d4a3e;
}

.home-newsletter-modal--info .home-newsletter-modal__title {
    color: #1a221c;
}

.home-newsletter-modal__btn--secondary {
    background: #448c74;
}

.home-newsletter-modal__btn--secondary:hover {
    background: #3a7a65;
}
