/* ============================================================================
   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: linear-gradient(135deg, rgba(45, 134, 89, 0.03) 0%, rgba(76, 175, 80, 0.03) 100%);
    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: #2d8659;
    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: 1px solid #e0e0e0;
    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: linear-gradient(90deg, #4caf50, #2d8659);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.dlf-why-us-card:hover {
    border-color: #4caf50;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

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

.dlf-why-us-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(45, 134, 89, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #2d8659;
    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: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(45, 134, 89, 0.2));
    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);
}

.dlf-why-us-map-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d8659;
    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);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dlf-why-us-zones-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d8659;
    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;
}

.dlf-why-us-zone-item:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(45, 134, 89, 0.1));
    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: linear-gradient(135deg, #fafafa 0%, #f8f8f8 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.dlf-why-us-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #4caf50;
}

.dlf-why-us-info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d8659;
    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; }
