/* ============================================================================
   WHY US BLOCK - ISOLATED CSS (BEM Methodology)
   Все селекторы имеют префикс .dlf-why-us- для избежания конфликтов со стилями сайта
   ============================================================================ */

/* Сброс стилей только для элементов блока */
.dlf-why-us-section,
.dlf-why-us-section * {
    box-sizing: border-box;
}

.dlf-why-us-section {
    padding: 3rem 0;
    background: #fff; /* Изменено на белый фон */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

.dlf-why-us-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================================
   SECTION HEADER
   ============================================================================ */

.dlf-why-us-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dlf-why-us-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333; /* Изменено на темно-серый как в новом блоке */
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    margin-top: 0;
}

.dlf-why-us-subtitle {
    font-size: 1.1rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================================================
   ADVANTAGES GRID
   ============================================================================ */

.dlf-why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dlf-why-us-card {
    background: #ffffff;
    border: 1.5px solid #333; /* Изменено на темную обводку как у тегов */
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dlf-why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #7cb342; /* Изменено на ваш фирменный зеленый */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.dlf-why-us-card:hover {
    border-color: #7cb342; /* Изменено на зеленый при наведении */
    box-shadow: 0 8px 24px rgba(124, 179, 66, 0.15); /* Зеленоватая тень */
    transform: translateY(-4px);
}

.dlf-why-us-card:hover::before {
    transform: scaleX(1);
}

.dlf-why-us-icon {
    width: 56px;
    height: 56px;
    background: rgba(124, 179, 66, 0.1); /* Светло-зеленый фон иконки */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #7cb342; /* Зеленый цвет иконки */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dlf-why-us-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
}

.dlf-why-us-card:hover .dlf-why-us-icon {
    background: #7cb342;
    color: #fff; /* Иконка становится белой на зеленом фоне при наведении */
    transform: scale(1.1) rotate(-5deg);
}

.dlf-why-us-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    margin-top: 0;
}

.dlf-why-us-card-text {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================================
   MAP AND DELIVERY ZONES SECTION
   ============================================================================ */

.dlf-why-us-map-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    align-items: start;
}

.dlf-why-us-map-container {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1.5px solid #333; /* Добавлена обводка для стиля */
}

.dlf-why-us-map-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333; /* Изменено на темный */
    padding: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    margin: 0;
}

.dlf-why-us-map-wrapper {
    width: 100%;
    min-height: 541px;
    overflow: hidden;
}

.dlf-why-us-map-wrapper iframe,
.dlf-why-us-map-wrapper script {
    width: 100%;
    height: 100%;
}

/* ============================================================================
   DELIVERY ZONES
   ============================================================================ */

.dlf-why-us-zones {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1.5px solid #333; /* Добавлена обводка для стиля */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dlf-why-us-zones-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333; /* Изменено на темный */
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    margin-top: 0;
}

.dlf-why-us-zones-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dlf-why-us-zone-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.dlf-why-us-zone-item:hover {
    background: #fff;
    border-color: #7cb342;
    color: #7cb342;
    transform: translateX(4px);
}

.dlf-why-us-zone-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dlf-why-us-zone-name {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 500;
    margin: 0;
}

/* ============================================================================
   DELIVERY INFO CARDS
   ============================================================================ */

.dlf-why-us-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.dlf-why-us-info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1.5px solid #333; /* Изменено на темную обводку */
}

.dlf-why-us-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.2);
    border-color: #7cb342;
    background-color: #f9fbf2; /* Очень легкий зеленый оттенок при наведении */
}

.dlf-why-us-info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333; /* Изменено на темный */
    margin-bottom: 1rem;
    margin-top: 0;
}

.dlf-why-us-info-text {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .dlf-why-us-section {
        padding: 2rem 0;
    }

    .dlf-why-us-container {
        padding: 0 1.5rem;
    }

    .dlf-why-us-title {
        font-size: 2rem;
    }

    .dlf-why-us-subtitle {
        font-size: 1rem;
    }

    .dlf-why-us-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dlf-why-us-map-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dlf-why-us-zones {
        min-height: 400px;
    }

    .dlf-why-us-zones-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .dlf-why-us-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .dlf-why-us-info-title {
        font-size: 1rem;
    }

    .dlf-why-us-info-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .dlf-why-us-section {
        padding: 2rem 0;
    }

    .dlf-why-us-container {
        padding: 0 1rem;
    }

    .dlf-why-us-title {
        font-size: 1.5rem;
    }

    .dlf-why-us-subtitle {
        font-size: 0.95rem;
    }

    .dlf-why-us-card {
        padding: 1.5rem;
    }

    .dlf-why-us-card-title {
        font-size: 1.1rem;
    }

    .dlf-why-us-card-text {
        font-size: 0.9rem;
    }

    .dlf-why-us-map-title,
    .dlf-why-us-zones-title {
        font-size: 1.2rem;
    }

    .dlf-why-us-zones-list {
        grid-template-columns: 1fr;
    }

    .dlf-why-us-zone-item {
        padding: 1.5rem;
    }

    .dlf-why-us-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dlf-why-us-map-wrapper {
        min-height: 300px;
    }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes dlf-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dlf-why-us-card {
    animation: dlf-fadeInUp 0.6s ease-out forwards;
}

.dlf-why-us-card:nth-child(1) { animation-delay: 0.1s; }
.dlf-why-us-card:nth-child(2) { animation-delay: 0.2s; }
.dlf-why-us-card:nth-child(3) { animation-delay: 0.3s; }
.dlf-why-us-card:nth-child(4) { animation-delay: 0.4s; }
.dlf-why-us-card:nth-child(5) { animation-delay: 0.5s; }
.dlf-why-us-card:nth-child(6) { animation-delay: 0.6s; }

/* Блок "Кому хотите подарить цветы?" */
.delivery-to-section {
    padding: 40px 0;
    margin: 40px 0;
    text-align: center;
    font-family: inherit;
}

.delivery-to-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.delivery-to-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.delivery-tag {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1.5px solid #333;
    font-weight: 500;
}

.delivery-tag:hover {
    background-color: #7cb342;
    color: #fff;
    border-color: #7cb342;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .delivery-to-section {
        padding: 30px 0;
        margin: 30px 0;
    }
    
    .delivery-to-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .delivery-tag {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .delivery-to-tags {
        gap: 10px;
    }
}