/* ================================================
   ФИНАЛЬНЫЕ СТИЛИ БЛОКА "ЭТАПЫ ПРОИЗВОДСТВА УПАКОВКИ"
   Версия: 1.0.0 FINAL
   
   Все изменения:
   - Сетка 2x2 (вместо 4 колонок)
   - Белый фон #ffffff (вместо градиента)
   - Border-radius: 20px
   - Padding: 20px со всех сторон
   - Без теней на секции
   - Синяя цветовая схема var(--zv-brand)
   ================================================ */

/* Базовые стили секции */
.production-steps-section {
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.production-steps-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Заголовки секции */
.production-steps-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #1a365d;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.production-steps-subtitle {
    text-align: center;
    font-size: 16px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Сетка этапов - 2x2 (два ряда по две колонки) */
.production-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Убираем линию прогресса для сетки 2x2 */
.production-steps-grid::before {
    display: none;
}

/* Карточка этапа */
.production-step-card {
    background: white;
    border-radius: 8px;
    padding: 70px 25px 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #e2e8f0;
    z-index: 1;
}

/* Номер этапа */
.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--zv-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(86,92,224, 0.25);
    border: 4px solid white;
}

/* Заголовок этапа */
.step-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 25px 0 15px;
    line-height: 1.3;
    min-height: 52px;
}

/* Описание этапа */
.step-description {
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px;
    font-size: 14px;
    min-height: 80px;
}

/* Таймер этапа */
.step-timing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--zv-soft);
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid var(--zv-soft);
}

.timing-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.timing-value {
    font-size: 14px;
    color: var(--zv-brand);
    font-weight: 700;
}

/* Список особенностей */
.step-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.step-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.step-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--zv-brand);
    font-weight: 700;
}

/* Бейдж контроля качества */
.quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--zv-soft);
    color: var(--zv-brand);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--zv-soft);
}

.quality-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Блок контроля качества */
.quality-control-section {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 50px;
    position: relative;
}

.quality-control-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: center;
}

.quality-shield-icon {
    width: 48px;
    height: 48px;
    color: var(--zv-brand);
}

.quality-control-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.quality-control-description {
    color: #475569;
    line-height: 1.7;
    margin: 0 auto 35px;
    font-size: 16px;
    text-align: center;
    max-width: 900px;
}

/* Сетка пунктов контроля качества */
.quality-points-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.quality-point-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.quality-point-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--zv-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.quality-point-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.quality-point-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 5px;
}

.quality-point-content p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Итоговая информация */
.production-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.summary-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.summary-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--zv-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zv-brand);
}

.summary-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.summary-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
}

.summary-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Hover эффекты (минимальные) */
.production-step-card:hover {
    box-shadow: 0 4px 16px rgba(86,92,224, 0.1);
    border-color: var(--zv-border);
}

.quality-badge:hover {
    background: var(--zv-soft);
}

.summary-card:hover {
    box-shadow: 0 4px 16px rgba(86,92,224, 0.1);
    border-color: var(--zv-border);
}

/* Адаптивность для планшетов (1200px) */
@media (max-width: 1200px) {
    .production-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .quality-points-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Адаптивность для планшетов (768px) */
@media (max-width: 768px) {
    .production-steps-section {
        padding: 15px;
    }
    
    .production-steps-container {
        padding: 30px 15px;
    }
    
    .production-steps-title {
        font-size: 32px;
    }
    
    .production-steps-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .production-steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .quality-control-section {
        padding: 30px 20px;
    }
    
    .quality-control-header {
        flex-direction: column;
        text-align: center;
    }
    
    .quality-control-title {
        font-size: 24px;
    }
    
    .quality-points-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .production-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Адаптивность для мобильных (480px) */
@media (max-width: 480px) {
    .production-steps-title {
        font-size: 26px;
    }
    
    .production-steps-subtitle {
        font-size: 14px;
    }
    
    .production-step-card {
        padding: 35px 20px 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .step-title {
        font-size: 18px;
        min-height: auto;
    }
    
    .quality-control-section {
        padding: 25px 15px;
    }
    
    .summary-card {
        padding: 20px;
        gap: 15px;
    }
    
    .summary-icon {
        width: 48px;
        height: 48px;
    }
}

/* Оптимизация производительности */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Утилиты для доступности */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Печать */
@media print {
    .production-steps-section {
        padding: 20px;
        background: white;
    }
    
    .production-step-card,
    .quality-control-section,
    .summary-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}