/* ==========================================================================
   Ecosoft.by - Стили новых блоков (унифицированные и изолированные)
   Совместимо с base.css — не ломает существующие стили сайта Ecosoft.by
   ========================================================================== */

/* Изолированный box-sizing для новых компонентов */
.hero-block,
.hero-block *,
.why-us-section,
.why-us-section * {
    box-sizing: border-box;
}

/* ==========================================================================
   1. Баннер подбора системы (Чанк_advantagess)
   ========================================================================== */
.hero-block {
    max-width: 1690px;
    width: 100%;
    margin: 0 auto 60px auto;
    background: #f2f7fe;
    border-radius: 60px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 350px;
    position: relative;
    font-family: 'Open Sans', sans-serif;
}

.hero-block .hero-image {
    width: 48.8%;
    min-height: 400px;
    background: url('img/hero.jpg') center/cover no-repeat;
    flex-shrink: 0;
}

.hero-block .hero-image img,
.hero-block .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-block .hero-content {
    flex: 1;
    padding: 10px 150px 0 30px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero-block .support-icon {
    position: absolute;
    top: 45px;
    right: 45px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #e4edfe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-block .support-icon svg {
    width: 75px;
    height: 75px;
    fill: #005ec9;
}

.hero-block .hero-title {
    font-size: 26px;
    font-weight: 700;
    color: #383838;
    line-height: 1.35;
    margin: 0 0 30px 0;
    max-width: 516px;
    text-align: left;
    margin-top: 40px;
}

.hero-block .hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: #383838;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.hero-block .hero-description {
    font-size: 16px;
    font-weight: 400;
    color: #383838;
    line-height: 1.5;
    margin: 0 0 35px 0;
    max-width: 577px;
}

.hero-block .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #63a30f;
    color: #ffffff;
    border: none;
    border-radius: 90px;
    padding: 10px 40px 10px 15px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
    width: fit-content;
}

.hero-block .cta-button:hover {
    background: #548c0d;
    color: #ffffff;
    text-decoration: none;
}

.hero-block .cta-button svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
    flex-shrink: 0;
}

/* ==========================================================================
   2. Блок преимуществ «Почему выбирают ЧИСТО ПИТЬ» (Чанк_mainFeedbackk)
   ========================================================================== */
.why-us-section {
    max-width: 1690px;
    margin: 25px auto 60px auto;
    font-family: 'Open Sans', sans-serif;
    padding: 20px 0;
}

.why-us-section .section-title {
    font-size: 38px;
    font-weight: 600;
    text-align: center;
    color: #383838;
    margin: 0 0 60px 0;
    line-height: 1.2;
}

.why-us-section .cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.why-us-section .card {
    border: 1px solid #d9d9d9;
    border-radius: 30px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    min-height: 250px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.why-us-section .card-content {
    flex: 1;
    max-width: 65%;
}

.why-us-section .card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.why-us-section .card-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.why-us-section .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #353535;
    line-height: 1.1;
    margin: 0;
}

.why-us-section .card-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #005ec9;
    margin-top: 15px;
}

.why-us-section .card-description {
    font-size: 16px;
    font-weight: 500;
    color: #353535;
    line-height: 1.5;
    margin: 40px 15px 0 0;
}

.why-us-section .card-image {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 30%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
}
.why-us-section .card-image1 {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 35%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
}
/* ==========================================================================
   Адаптивность (Responsive)
   ========================================================================== */
@media (max-width: 1200px) {
    /* Hero Block */
    .hero-block { border-radius: 40px; min-height: 480px; }
    .hero-block .hero-content { padding: 50px 30px 30px 30px; }
    .hero-block .hero-title { font-size: 22px; margin-top: 0px;}
    .hero-block .hero-subtitle, 
    .hero-block .hero-description { font-size: 18px; }
    .hero-block .cta-button { font-size: 16px; padding: 12px 30px 12px 20px; }
    .hero-block .support-icon { width: 60px; height: 60px; top: 50px; right: 40px; }
    .hero-block .support-icon svg { width: 50px; height: 50px; }

    /* Why Us Section */
    .why-us-section .section-title { font-size: 36px; margin-bottom: 40px; }
    .why-us-section .card-title { font-size: 18px; }
    .why-us-section .card-description { font-size: 15px; }
}
 
@media (max-width: 900px) {
    /* Hero Block */
    .hero-block { flex-direction: column; border-radius: 30px; }
    .hero-block .hero-image { width: 100%; min-height: 300px; }
    .hero-block .hero-content { padding: 40px 30px; }
    .hero-block .support-icon { top: 50px; right: 30px; width: 60px; height: 60px; }
    .hero-block .support-icon svg { width: 50px; height: 50px; }
    .hero-block .hero-title { font-size: 24px; max-width: 80%; }
    .hero-block .hero-subtitle, 
    .hero-block .hero-description { font-size: 16px; }
    .hero-block .cta-button { font-size: 18px; padding: 12px 25px 12px 18px; }
}

@media (max-width: 768px) {
    /* Why Us Section */
    .why-us-section .cards-grid { grid-template-columns: 1fr; gap: 24px; }
    .why-us-section .section-title { font-size: 28px; margin-bottom: 30px; }
    .why-us-section .card {
        min-height: auto;
        flex-direction: column;
        padding: 24px;
    }
    .why-us-section .card-content { max-width: 100%; }
    .why-us-section .card-image {
        position: static;
        transform: none;
        max-width: 60%;
        margin: 20px auto 0;
        display: block;
    }
    .why-us-section .card-image1 {
        position: static;
        transform: none;
        max-width: 80%;
        margin: 20px auto 0;
        display: block;
    }
}

@media (max-width: 480px) {
    /* Hero Block */
    .hero-block { border-radius: 20px; }
    .hero-block .hero-image { height: 220px; min-height: 220px; }
    .hero-block .hero-content { padding: 30px 20px; }
    .hero-block .hero-title { font-size: 20px; max-width: 75%; }
    .hero-block .hero-subtitle, 
    .hero-block .hero-description { font-size: 14px; }
    .hero-block .cta-button { font-size: 16px; padding: 10px 20px 10px 15px; gap: 10px; }
    .hero-block .cta-button svg { width: 22px; height: 22px; }
    .hero-block .support-icon { width: 50px; height: 50px; top: 30px; right: 20px; }
    .hero-block .support-icon svg { width: 40px; height: 40px; }
}
