body {
    overflow-x: hidden;
}

.hero {
    box-sizing: border-box;
    font-family: inherit;
}
.hero *, .hero *::before, .hero *::after {
    box-sizing: inherit;
}

.hero-bg {
    background-color: #EBF1FF;
}

.hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0; /* Отступы сверху и снизу */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    font-family: 'TildaSans', Arial, sans-serif;
}

/* Левая колонка */
.hero__info {
    flex: 0 0 70%;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Правая колонка */
.hero__visual {
    flex: 0 0 40%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Заголовки и тексты */
.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
}

.hero__subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 32px;
    font-weight: 600;
    color: #000;
}

.hero__price {
    background-color: #6A90FB;
    color: #fff;
    padding: 10px 16px;
    font-size: 32px;
    font-weight: 700;
}

.hero__desc {
    font-size: 18px;
    line-height: 1.5;
    color: #111;
}

/* Форма */
.hero__form-box {
    border: 2px solid #6A90FB;
    padding: 25px 25px 25px 40px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
}

.hero__form-header {
    font-size: 20px;
    font-weight: 800;
    color: #000;
}

.hero__form-discount {
    color: #6A90FB;
}

.hero__form {
    display: flex;
    gap: 15px;
}

.hero__input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    background: #ffffff;
    width: 194px;
    height: 52px;
}

/* Переопределяем стили браузерного автозаполнения */
.hero__input:-webkit-autofill,
.hero__input:-webkit-autofill:hover, 
.hero__input:-webkit-autofill:focus, 
.hero__input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important; /* Заливаем фон белой тенью */
    -webkit-text-fill-color: #000000 !important; /* Указываем цвет текста (черный) */
    transition: background-color 5000s ease-in-out 0s; /* Дополнительная защита от мигания фона */
}

.hero__button {
    background-color: #6A90FB;
    color: #fff;
    border: none;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    box-sizing: border-box;
    width: 240px;
    height: 52px;
}

.hero__button:hover {
    background-color: #5575E0;
}

.hero__consent {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.hero__consent-link {
    color: #6A90FB;
    text-decoration: underline;
}

.hero__consent-link:hover {
    text-decoration: none;
}

/* Буллиты (УТП) */
.hero__features {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero__feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.4;
    color: #222;
}

.hero__feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    /* Временный заглушечный фон, пока не подгрузится SVG */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236A90FB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat center / contain;
}

/* Изображения */
.hero__visual-bg {
    width: 100%;
    max-width: 480px;
    height: auto;
}

.hero__visual-img {
    position: absolute;
    width: 120%;
    max-width: 580px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(20deg);
    z-index: 2;
}

/* ==========================================================================
   АДАПТИВНОСТЬ (Breakpoints)
   ========================================================================== */

/* 1200px - Планшеты */
@media (max-width: 1200px) {
    .hero {
        width: calc(100% - 60px); /* Вместо контейнера делаем отступы на обертке */
        gap: 20px;
    }
    .hero__title { font-size: 38px; }
    .hero__visual-img { width: 110%; }
    .hero__subtitle, .hero__price {
        font-size: 28px;
    }
    
    .hero__form-box {
        padding: 25px 25px 25px 25px;
        background: transparent;
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
    .hero__info {
        flex: 0 0 60%;
        max-width: 650px;
    }
}

/* 980px - Мобильные устройства (Планшеты портрет) */
@media (max-width: 980px) {
    .hero {
        flex-direction: column;
        padding: 40px 0;
    }
    .hero__info { flex: auto; max-width: 100%; }
    .hero__visual { flex: auto; width: 100%; }
    
    .hero__features { text-align: left; margin: 0 auto; }
    
    .hero__visual-bg { max-width: 350px; }
    .hero__visual-img { max-width: 420px; }
    .hero__subtitle, .hero__price {
        font-size: 26px;
    }
}

/* 640px - Средние телефоны */
@media (max-width: 640px) {
    .hero__title { font-size: 32px; }
    .hero__subtitle { gap: 10px; }
    .hero__features { grid-template-columns: 1fr; }
    .hero__form { flex-direction: column; background: transparent; gap: 10px; width: 100%;}
    .hero__input { background: #fff; padding: 16px; text-align: center; width: 100%;}
    .hero__button {
        width: 100%;
    }
    .hero__subtitle, .hero__price {
        font-size: 24px;
    }
    .hero {
        gap: 40px;
    }
}

/* 480px - Малые телефоны */
@media (max-width: 480px) {
    .hero { width: calc(100% - 40px); }
    .hero__title { font-size: 28px; }
    .hero__visual-bg { max-width: 280px; }
    .hero__visual-img { max-width: 320px; }
    .hero__form-box { padding: 20px; }
    .hero__subtitle, .hero__price {
        font-size: 17px;
    }
}

/*----- Кастомный alert----- */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.3);
    font-family: 'TildaSans', Arial, sans-serif;
}

.custom-alert__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2000;
}

.custom-alert__content {
    position: relative;
    background-color: #fff;
    padding: 25px 35px;
    margin: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.custom-alert__icon {
    width: 50px;
    height: auto;
}

.custom-alert__message {
    font-size: 16px;
}

.custom-alert__button {
    padding: 13px 30px;
    font-size: 14px;
    color: #fff;
    background-color: #4f7bf6;
    border: none;
    cursor: pointer;
    width: 140px;
}

.custom-alert__button:hover {
    background-color: #2e63f7;
}
