/* 1. Приветственный попап с акцией */
.promo-banner {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.promo-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.promo-banner h3 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.promo-banner p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.promo-button {
    display: inline-block;
    padding: 15px 30px;
    background: #ff4d4d;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.promo-button:hover {
    background: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,77,77,0.3);
}

/* 2. Верхний информационный баннер */
.top-banner {
    background: linear-gradient(45deg, #2196F3, #3F51B5);
    color: #fff;
    padding: 12px 20px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.top-banner p {
    margin: 0;
    font-size: 16px;
}

.banner-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s;
}

.banner-link:hover {
    opacity: 0.8;
}

/* 3. Виджет обратной связи */
.callback-widget {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
}

.callback-button {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(76,175,80,0.3);
    transition: all 0.3s ease;
}

.callback-button:hover {
    transform: scale(1.1);
}

.callback-form {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    width: 300px;
}

.callback-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

/* 4. Встроенный баннер для статей */
.article-promo {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.promo-content {
    flex: 1;
}

.article-promo h4 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.article-promo p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-promo ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.article-promo li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.article-promo img {
    max-width: 200px;
    border-radius: 10px;
}

.learn-more {
    display: inline-block;
    padding: 12px 25px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.learn-more:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* 5. Exit-Intent баннер */
.exit-promo {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.promo-header {
    margin-bottom: 30px;
}

.promo-header h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.promo-header p {
    color: #666;
    font-size: 18px;
}

.discount-badge {
    background: #ff4d4d;
    color: white;
    font-size: 36px;
    font-weight: bold;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transform: rotate(-10deg);
}

.promo-form {
    margin-top: 30px;
}

.promo-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 16px;
}

.promo-form button {
    width: 100%;
    padding: 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-form button:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Общие стили для оверлея */
.banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для всплывающих окон */
.banner-popup {
    position: relative;
    background: transparent;
    padding: 0;
    width: 60%;
    max-width: 320px;
    aspect-ratio: 9/16;
}

.hvac-ad-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: #000;
    aspect-ratio: 9/16;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center 15%;
}

.overlay-content {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.95) 50%);
    color: white;
    padding: 20px 10px 15px;
    text-align: center;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: clamp(8px, 2vw, 10px) clamp(18px, 4vw, 22px);
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: clamp(13px, 2.5vw, 15px);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    margin-bottom: 5px;
    animation: pulse 2s infinite;
}

.banner-close-timer {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 18px;
    cursor: default;
    user-select: none;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10000;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Стили для верхнего баннера */
.banner-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(45deg, #2196F3, #3F51B5);
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 1000;
}

/* Стили для виджета */
.banner-widget {
    position: fixed;
    z-index: 999;
}

.banner-position-right {
    right: 20px;
    bottom: 20px;
}

.banner-position-left {
    left: 20px;
    bottom: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .article-promo {
        flex-direction: column;
        text-align: center;
    }

    .article-promo img {
        max-width: 100%;
        margin-top: 20px;
    }

    .exit-promo {
        padding: 20px;
        margin: 15px;
    }

    .top-banner {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .callback-widget {
        right: 15px;
        bottom: 15px;
    }

    .callback-form {
        width: calc(100vw - 30px);
        right: -15px;
    }

    .banner-popup {
        width: 70%;
        max-width: 280px;
    }
    
    .banner-widget {
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

@media (max-width: 480px) {
    .banner-popup {
        width: 75%;
        max-width: 260px;
    }
} 