/* =========================================
   БЛОК ПОДПИСКИ (NEWSLETTER)
   ========================================= */

.newsletter-section {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 80px; /* Отступ до Миссии */
    color: #fff;
    /* Анимированный градиентный фон */
    background: linear-gradient(-45deg, #003c82, #0050aa, #00a0c8, #003c82);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    box-shadow: 0 20px 40px rgba(0, 60, 130, 0.2);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Контент внутри */
.newsletter-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-family: 'Gotham', sans-serif;
    font-size: 2rem;
    margin: 0 0 15px 0;
    line-height: 1.1;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    max-width: 500px;
}

/* Форма */
.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.form-row {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px;
    border-radius: 50px; /* Капсула */
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.form-row:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 25px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    background: #fff;
    color: #003c82;
    border: none;
    border-radius: 40px;
    padding: 10px 30px;
    font-family: 'Gotham', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.success-message {
    margin-top: 10px;
    margin-left: 20px;
    color: #bbf7d0; /* Светло-зеленый */
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- Плавающие декоративные круги --- */
.newsletter-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.circle-1, .circle-2 {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: floatCircle 10s infinite ease-in-out;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes floatCircle {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

/* Адаптив для блока подписки */
@media (max-width: 900px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .newsletter-form {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
        gap: 15px;
    }

    .newsletter-form button {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
}

/* --- ФИКС АВТОЗАПОЛНЕНИЯ (Чтобы поле не белело) --- */
.newsletter-form input:-webkit-autofill,
.newsletter-form input:-webkit-autofill:hover,
.newsletter-form input:-webkit-autofill:focus,
.newsletter-form input:-webkit-autofill:active {
    /* Заставляем браузер ждать 5000 секунд перед тем, как перекрасить фон */
    transition: background-color 5000s ease-in-out 0s;
    /* Принудительно делаем текст белым */
    -webkit-text-fill-color: #fff !important;
    /* Убираем тень, если она появляется */
    box-shadow: none !important;
    /* Цвет каретки (курсора) */
    caret-color: #fff;
}

/* Дополнительно убедимся, что при фокусе нет белого фона */
.newsletter-form input:focus {
    background: transparent !important;
}