        input,
        textarea,
        select,
        button {
        font-size: 16px !important;
        }


.mini-value{
    text-align: end !important;
}

.company-certificate-link {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.company-certificate-link:hover {
    color: #0056b3;
    text-decoration: underline;
}


.date-placeholder::placeholder {
    color: #6c757d; /* Цвет как у обычного плейсхолдера */
}


    
    /* Группировка по типам */
/* Улучшенные стили для карточек продуктов */
.products-by-type {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Стили для фильтра */
.filters-container {
    background: white;
    padding: 0 !important;
    box-shadow: 0 !important;
    border-radius: 8px;
    margin-bottom: 20px;
}

@media ( max-width: 768px ){
    .filters-container{
        display:flex;
        flex-direction: column;
    }
}

.filters-container .form-select {
    width: auto !important;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 35px 10px 12px;
    font-size: 1rem;
    height: 46px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.filters-container .form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.products-row {
    display: flex;
    gap: 16px;
    padding: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    align-items: stretch; 
}

#step4 .card-item{
    max-width:450px;
}

.products-row .card-item {
    max-width: 450px;
    flex: 50 0 30%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 10px 10px 0 10px;
    height: auto; 
}
.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-img {
    height: 160px;
    min-height: 160px; /* Фиксируем высоту */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.meta-item {
    display: flex;
    margin-bottom: 6px;
    font-size: 0.9rem;
    gap: 5px;
}

.meta-label {
    color: #6c757d;
    font-weight: 500;
}

.meta-value {
    color: var(--dark);
    font-weight: 400;
}

.card-desc {
    margin-top: 10px;
    color: #6c757d;
    font-size: 0.9rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-price {
    margin-top: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.order-btn-container {
    padding: 0 16px 16px;
    margin-top: auto;
}

.order-btn {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
}

/* Адаптив для мобильных */

/* Мобильная версия для шага 2 */
@media (max-width: 768px) {
  .products-row {
        flex-direction: column !important;
        align-items: center;
        overflow-x: visible !important;
        gap: 16px;
    }

  .products-row .card-item {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
    }

  
  /* Обеспечиваем, чтобы кнопка была внизу карточки */
  .card-item {
    display: flex;
    flex-direction: column;
  }
  
  .order-btn-container {
    margin-top: auto;
    padding: 15px;
  }
}

@media (max-width: 576px) {
    .products-row .card-item {
        flex: 0 0 auto;
        min-height: 660px !important;
    }
    
    .card-img {
        height: 140px; 
        min-height: 140px;
    }
}

.order-success-header {
    text-align: center;
    padding: 30px;
    background: rgba(46, 125, 50, 0.05);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px dashed rgba(46, 125, 50, 0.2);
}

.order-success-header h2 {
    color: var(--success);
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
}

.order-id {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
    display: inline-block;
    padding: 10px 25px;
    background: rgba(160, 32, 32, 0.05);
    border-radius: 50px;
}

/* Заголовки секций */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-gray);
    color: var(--dark);
}
.text-warning {
    color: #ffc107 !important; /* Золотой цвет для заполненных звезд */
}

.text-muted {
    color: #6c757d !important; /* Серый цвет для пустых звезд */
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

#step4 .info-row{
    gap: 10px;
}

.info-label {
    font-weight: 500;
    color: #6c757d;
}

    .form-box {
      background: #cff4fc; /* Нежно-голубой */
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
      color: #055160;
      padding: 20px;
      border-radius: 8px;
    }

    .form-box .form-group label {
      color: #055160;
      font-weight: bold;
    }

    .form-group {
      margin-bottom: 15px;
    }

    input {
      width: 100%;
      padding: 8px 12px;
      border-radius: 6px;
      border: 1px solid #ccc;
    }



.num {
    font-weight: bold;
    margin-right: 20px;
}
#step6 .next-step-item {
    display: flex;
    flex-direction: row;
    margin-top: 10px;
}

.info-value {
    text-align: right;
}
 @media (max-width: 768px) {
            .trucks-container {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .truck-card {
                margin-bottom: 0;
            }
            
            .truck-header {
                flex-direction: column;
                text-align: center;
            }
            
            .truck-icon {
                margin-right: 0;
                margin-bottom: 10px;
            }
            
            .truck-controls {
                flex-direction: column;
                gap: 15px;
            }
            
            .total-volume {
                order: -1;
                margin-bottom: 10px;
            }
        }
        
        @media (max-width: 576px) {
            .header h1 {
                font-size: 1.8rem;
            }
            
            .truck-controls {
                padding: 12px;
            }
            
            .counter-btn {
                width: 32px;
                height: 32px;
            }
        }
        
        .instructions {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            margin-top: 30px;
        }
        
        .instructions h3 {
            color: #2575fc;
            margin-bottom: 15px;
        }
        
        .instructions ul {
            padding-left: 20px;
        }
        
        .instructions li {
            margin-bottom: 10px;
            line-height: 1.5;
        }

/* Для скрытия календарика в некоторых браузерах */
input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    left: 0;
}

/* Убираем старые стили для кнопки */
 #step1 .btn-primary {
            width: 100% !important;
            display: block !important;
            margin-left: 0 !important;
            position: relative;
            padding: 12px 20px 12px 20px !important; /* Больше правый отступ для стрелки */
            font-size: 18px;
            font-weight: 500;
            border: none;
            border-radius: 8px;
            background: var(--primary);
            transition: all 0.3s ease;
        }
        
       #step1  .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 7px 15px rgba(78, 84, 200, 0.4);
            background: var(--accent);
        }
        
        /* Большая стрелка вправо */
        #step1  .next-step::after {
            content: "";
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            width: 24px; /* Увеличиваем размер */
            height: 24px; /* Увеличиваем размер */
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-size: contain;
            transition: transform 0.2s ease;
            opacity: 1; /* Делаем видимой всегда */
        }
        
        #step1 .next-step:hover::after {
            transform: translateY(-50%) translateX(5px); /* Увеличиваем сдвиг при наведении */
        }

 #step3 .btn-primary {
            width: 100% !important;
            display: block !important;
            margin-left: 0 !important;
            position: relative;
            padding: 12px 20px 12px 20px !important; /* Больше правый отступ для стрелки */
            font-size: 18px;
            font-weight: 500;
            border: none;
            border-radius: 8px;
            background: var(--primary);
            transition: all 0.3s ease;
        }
        
       #step3  .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 7px 15px rgba(78, 84, 200, 0.4);
            background: var(--accent);
        }
        
        /* Большая стрелка вправо */
        #step3  .next-step::after {
            content: "";
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            width: 24px; /* Увеличиваем размер */
            height: 24px; /* Увеличиваем размер */
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-size: contain;
            transition: transform 0.2s ease;
            opacity: 1; /* Делаем видимой всегда */
        }
        
        #step1 .next-step:hover::after {
            transform: translateY(-50%) translateX(5px); /* Увеличиваем сдвиг при наведении */
        }


        
/* Для совместимости с Bootstrap */
.w-100 {
    width: 100% !important;
}

#step3 .mt-3{
    margin-top:auto !important;
}

#step2 .btn-primary {
    width: 100% !important; /* Ширина как у инпутов */
    display: block !important; /* Блочное поведение */
    margin-left: 0 !important; /* Сбрасываем выравнивание вправо */
}

/* Для совместимости с Bootstrap */
.w-100 {
    width: 100% !important;
}



#step4 .info-row:last-child {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 5px;
}

/* Стили для изображений грузовиков */
.truck-image-container {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.truck-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.truck-image-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #6c757d;
    font-size: 24px;
}
/* Выравнивание элементов */
.truck-info {
    min-width: 120px;
}
#step3 .volume-input,
#step3 .weight-display {
    width: 160px !important;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 1rem;
    margin: 0;
}

#step3 .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    width: 32%;
    margin-left: auto;
    display: flex;
    right: 0;
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

#step3 .truck-selection-card .card-body .btn-primary{
    background-color: var(--primary);
    border-color: var(--primary);
    width: 32%;
    margin-left: auto;
    display: flex;
    right: 0;
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
}


#step3 .trucks-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 !important;
}

#step3 .truck-selection-card {
    width: 100%;
    margin: 0 !important;
}

#step3 .truck-controls .btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    background: var(--accent);
    color: white;
    border: none;
    align-content: stretch;
}

/* Для мобильной версии - меняем порядок */
@media (max-width: 992px) {
    #step3 .order-1 {
        order: 1 !important; /* Мини-чек сверху */
    }
    #step3 .order-2 {
        order: 2 !important; /* Грузовики снизу */
    }
    
    #step3 .trucks-container {
        gap: 10px;
        margin-bottom: 10px !important;
    }
    #step1 .btn-primary{
    background-color: var(--primary);
    border-color: var(--primary);
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    margin-left: auto;
}
}


.best-price-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #a02020; /* основной цвет */
        color: white;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 12px;
        font-weight: bold;
        z-index: 10;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        animation: pulse 2s infinite;
    }

/* Специфичные стили для поля ввода */
#step3 .volume-input {
    text-align: center;
    -moz-appearance: textfield;
}

#step3 .volume-input::-webkit-outer-spin-button,
#step3 .volume-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Стиль для знака равенства */
#step3 .equals-sign {
    font-size: 1.5rem;
    font-weight: bold;
    width: 24px;
    text-align: center;
}

/* Стиль для блока с весом */
#step3 .weight-display {
    background-color: white !important;
    user-select: none;
}

#step5 a {
    all: unset;
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    font-weight: bold;
    cursor: pointer;
}

#step5 .form-check-label {
    background-color: transparent !important;
}

#step5 .text-muted {
    background-color: transparent !important;
}

#delivery_address {
    min-height: 100px; 
    height: auto;      
    resize: vertical;  
    padding: 15px;
    font-weight: 500;
    line-height: 1.5; 
    white-space: pre-wrap; 
    word-wrap: break-word; 
    background-repeat: no-repeat;
    background-position: 15px 15px;
    background-size: 20px;
}

#step2 .col-md-3 {
    padding: 0 !important;
}

.text-primary{
    color: black !important;
}
        .cost-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border-left: 3px solid var(--primary);
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.cost-row.total {
    font-weight: bold;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 5px;
    border-bottom: none;
}
        /* Глобальные стили */
        :root {
            --primary: #a02020;
            --accent: #c62828;
            --dark: #333;
            --light: #f5f5f5;
            --gray: #999;
            --light-gray: #e9ecef;
            --success: #2e7d32;
            --white: #fff;
            --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

 .form-box {
    background: #cff4fc; 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    color: #055160;
    padding: 10px;
    border-radius: 8px;
    color: #000 !important;
}

.form-box .form-group label{
    color: #055160;
}

#step3 .form-group{
    margin-bottom: 0 !important;
}

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Montserrat', 'Helvetica', sans-serif;
        }

        body {
            color: var(--text);
            line-height: 1.6;
            background-color: var(--white);
            overflow-x: hidden;
            scroll-behavior: smooth;
            padding-top: 80px;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        h1, h2, h3, h4, h5, h6 {
            color: var(--dark);
            font-weight: 700;
        }

        .btn {
            transition: var(--transition);
            border-radius: 8px;
            padding: 10px 25px;
            font-weight: 600;
        }

        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
            width: 100%;
        }

        .btn-primary:hover {
            background-color: var(--accent);
            border-color: var(--accent);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
        }

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-3px);
}

/* Кастомные стили для кнопки "назад" */
.prev-step {
    position: relative;
    background: transparent !important;
    border: none !important;
    padding: 8px 15px 8px 32px; /* Увеличиваем левый отступ */
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: #5a6268;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

/* Классическая стрелка-указатель */
.prev-step::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    
    /* Создаем стрелку с помощью границ */
    width: 10px;
    height: 10px;
    border-top: 2px solid #5a6268;
    border-right: 2px solid #5a6268;
    transform: translateY(-50%) rotate(-135deg);
    transition: all 0.3s ease;
}

/* Эффекты при наведении */
.prev-step:hover {
    color: #798188;
}

.prev-step:hover::before {
    border-color: #798188;
    left: 8px; /* Сдвигаем стрелку при наведении */
}




        /* Стили для оформления заказа */
        .order-container {
            padding: 40px 0;
        }

        .order-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .order-header h1 {
            font-size: 2.2rem;
            position: relative;
            display: inline-block;
            margin-bottom: 15px;
        }

        .order-header h1::after {
            content: "";
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 70px;
            height: 4px;
            background: linear-gradient(90deg, var(--accent), var(--primary));
            border-radius: 2px;
        }


       





       

        /* Шаги оформления */
        .step {
            display: none;
            animation: fadeIn 0.6s ease forwards;
            padding: 25px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.06);
            margin-bottom: 25px;
        }

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

        .step.active {
            display: block;
        }

        .step h2 {
            margin-bottom: 25px;
            padding-bottom: 12px;
            border-bottom: 2px solid rgba(160, 32, 32, 0.1);
            font-size: 1.6rem;
        }

        /* Карты */
        .map-container {
            height: 97%;
            margin-bottom: 20px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            border: 1px solid rgba(0,0,0,0.08);
        }

        /* Карточки товаров и карьеров */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
            gap: 20px;
            margin: 25px 0;
        }

        .card-item {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            transition: var(--transition);
            cursor: pointer;
            border: 2px solid transparent;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .card-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            border-color: rgba(160, 32, 32, 0.15);
        }

        .card-title,
        .card-desc,
        .card-price {
            width: 100%; /* Занимает всю ширину контейнера */
            }

        .card-item.selected {
            border-color: var(--primary);
            background-color: rgba(160, 32, 32, 0.03);
        }

        .card-img {
            height: 160px;
            overflow: hidden;
            background-color: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .card-item:hover .card-img img {
            transform: scale(1.05);
        }

        .card-content {
            padding: 18px;
            flex-grow: 1; 
            display: flex;
            flex-direction: column;
            justify-content: top; 
            align-items: center; 
            text-align: center; 
        }

        .card-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--dark);
        }

        .card-desc {
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 12px;
        }

        .card-price {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary);
            margin-top: auto;
        }

        /* Формы */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            font-weight: 600;
            margin-bottom: 8px;
            display: block;
            color: var(--dark);
            font-size: 0.95rem;
        }

        #step3 .form-label{
            font-weight: 100 !important;
        }
        .form-control {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 10px 14px;
            transition: var(--transition);
            font-size: 0.95rem;
        }

        #step3 .form-control {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 10px 14px;
            transition: var(--transition);
            font-size: 0.95rem;
            min-width: 150px;
            min-height: 50px;
        }

        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 0.2rem rgba(160, 32, 32, 0.15);
        }

        .form-text {
            font-size: 1rem;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
        }

        .form-text b {
            color: black;
            font-weight: 100;
        }

        /* Расчет транспорта */
        .trucks-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 18px;
            margin: 20px 0;
        }

        .truck-card {
            background: white;
            border-radius: 8px;
            padding: 18px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.04);
            border: 1px solid rgba(0,0,0,0.04);
            transition: var(--transition);
        }

        .truck-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.08);
            border-color: rgba(160, 32, 32, 0.15);
        }

        .truck-header {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }

        .truck-icon {
            width: 45px;
            height: 45px;
            background: rgba(160, 32, 32, 0.08);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            color: var(--primary);
            font-size: 1.3rem;
        }

        .truck-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 3px;
        }

        .truck-meta {
            color: var(--gray);
            font-size: 0.85rem;
        }

        .truck-info {
            font-size: 0.9rem;
        }

        .truck-info div {
            margin-bottom: 6px;
            display: flex;
            justify-content: space-between;
        }

        .truck-info span:first-child {
            color: var(--gray);
        }

        .truck-info span:last-child {
            font-weight: 600;
        }

        /* Итоговая стоимость */
        .summary-box {
            background: rgba(160, 32, 32, 0.03);
            border-left: 4px solid var(--primary);
            border-radius: 8px;
            padding: 18px;
            margin: 20px 0;
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            font-size: 0.95rem;
        }

        .summary-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .summary-total {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary);
        }

        /* Подтверждение заказа */
        
#step4 .info-value .company-egrul-link{
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

#step4 .info-value .company-egrul-link:hover{
    color: #0056b3;
    text-decoration: underline;
}



/* Контейнер подтверждения */
.confirmation-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    padding: 30px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Заголовок успешного заказа */
.order-success-header {
    text-align: center;
    padding: 30px;
    background: rgba(46, 125, 50, 0.05);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px dashed rgba(46, 125, 50, 0.2);
}

.order-success-header h2 {
    color: var(--success);
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
}

.order-id {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
    display: inline-block;
    padding: 10px 25px;
    background: rgba(160, 32, 32, 0.05);
    border-radius: 50px;
}

/* Заголовки секций */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-gray);
    color: var(--dark);
}

/* Детали заказа */
.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.order-detail-section {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
}

.order-detail-section span{
    color: red;
}

.detail-group {
    margin-bottom: 15px;
}

.detail-label {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Стоимость */
.cost-summary {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--light-gray);
    margin-top: 20px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cost-row.total {
    font-weight: bold;
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 10px;
    border-bottom: none;
    font-size: 1.2rem;
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.contact-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-title {
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.contact-info {
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-info strong {
    color: var(--dark);
}

/* Документы */
.documents-section {
    margin-top: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-buttons .btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .order-success-header {
        padding: 20px;
    }
    
    .order-details-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons .btn {
        min-width: 100%;
    }
    
    .confirmation-card {
        padding: 20px;
    }
}

/* Иконки */
.fas {
    margin-right: 8px;
}




        /* Чекбокс */
        .form-check {
            margin-top: 18px;
        }

        .form-check-input:checked {
            background-color: var(--primary);
            border-color: var(--primary);
        }

        .form-check-label {
            margin-left: 8px;
            font-size: 0.95rem;
        }

        /* Мини-чек */
        .mini-summary {
            background: var(--bs-gray-100);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 25px;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .mini-summary h5 {
            font-size: 1.1rem;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(0,0,0,0.08);
            color: black;
        }


        #step4 .mini-summary{
        background: var(--bs-gray-100);
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 25px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        flex-wrap: wrap;
        height: 100% !important;
        display: flex;
        }

/* Убираем все фоны и отступы, вызывающие ободок */
.mini-summary-item > span:first-child,
.mini-summary-item > span:last-child {
    background: none !important; /* Убираем фон */
    padding: 0 !important; /* Убираем внутренние отступы */
    border: none !important; /* Убираем границы */
    box-shadow: none !important; /* Убираем тени */
}

.mini-summary-item {
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    align-items: baseline; /* Выравнивание по базовой линии */
}

/* Добавляем точки между элементами */
.mini-summary-item::after {
    content: "";
    flex: 1;
    border-bottom: 1px dotted rgba(0,0,0,0.2);
    margin: 0 5px;
    order: 2;
}

.mini-summary-item > span:first-child {
    order: 1;
    padding-right: 5px;
    background: var(--light-gray); /* Защита от прозрачности точек */
}

.mini-summary-item > span:last-child {
    order: 3;
    white-space: nowrap;
    background: var(--light-gray); /* Защита от прозрачности точек */
    padding-left: 5px;
}

/* Добавляем рубль через псевдоэлемент */
.mini-summary-item > span:last-child::after {
    content: " ₽";
    margin-left: 2px;
}


.summary-item > span:first-child,
.summary-item > span:last-child {
    background: none !important; /* Убираем фон */
    padding: 0 !important; /* Убираем внутренние отступы */
    border: none !important; /* Убираем границы */
    box-shadow: none !important; /* Убираем тени */
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    align-items: baseline; /* Выравнивание по базовой линии */
}

/* Добавляем точки между элементами */
.summary-item::after {
    content: "";
    flex: 1;
    border-bottom: 1px dotted rgba(0,0,0,0.2);
    margin: 0 5px;
    order: 2;
}

.summary-item > span:first-child {
    order: 1;
    padding-right: 5px;
    background: var(--light-gray); /* Защита от прозрачности точек */
}

.summary-item > span:last-child {
    order: 3;
    white-space: nowrap;
    background: var(--light-gray); /* Защита от прозрачности точек */
    padding-left: 5px;
}

/* Добавляем рубль через псевдоэлемент */
.summary-item > span:last-child::after {
    content: " ₽";
    margin-left: 2px;
}
/* Убираем рубль для ненужных полей */
#step4_product_name::after,
#step4_volume::after,
#step4_quarry_name::after,
#step4_distance::after,
#step4_gost,
#step4_fraction::after,
#step4_weight::after,
#step4_strength_grade::after, #step4_flakiness::after, #step4_product_class::after, #step4_certificate::after {
    content: "" !important;

}

/* Для поля с объемом добавляем м³ */
#step4_volume::after {
    content: " м³" !important;

}


        .mini-summary-item span:first-child {
            color: black;
        }

        .mini-summary-item span:last-child {
            font-weight: 500;
        }

        .mini-summary-total {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(0,0,0,0.08);
            font-weight: 600;
        }

        /* Контролы объема */
        .volume-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 8px;
        }

        .volume-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            border: none;
        }

        .volume-btn:hover {
            background: var(--accent);
            transform: scale(1.05);
        }

        .volume-btn:disabled {
            background: #cccccc;
            cursor: not-allowed;
        }

        .volume-display {
            min-width: 40px;
            text-align: center;
            font-weight: 600;
            font-size: 1.1rem;
        }

        .weight-display {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            background: #f8f9fa;
            padding: 8px 15px;
            border-radius: 8px;
            min-width: 100px;
            text-align: center;
        }

        .weight-display::before {
            font-weight: normal;
            color: #6c757d;
            font-size: 0.9rem;
        }

        /* Адаптивность */
        @media (max-width: 992px) {
            .order-header h1 {
                font-size: 1.8rem;
            }
            #step4 .mini-summary{
                display:unset;
            }
            
            .step {
                padding: 20px;
            }
            
            .card-grid {
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            }
            
            .trucks-container {
                grid-template-columns: 1fr;
            }
            
            .step h2 {
                font-size: 1.4rem;
            }
            
            .map-container {
                height: 350px;
            }
        }

        @media (max-width: 768px) {
            .order-container {
                padding: 30px 0;
            }
            
            .map-container {
                height: 300px;
            }
            
            .card-grid {
                grid-template-columns: 1fr;
            }
            
            .order-header h1 {
                font-size: 1.6rem;
            }
            
            .step {
                padding-left: 18px !important;
                padding: 18px;
            }
            
            .progress-step {
                font-size: 0.7rem;
            }
        }

        .header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.header-container.hide {
    transform: translateY(-100%);
}


.header-info {
    display: flex;
    width: 100%;
    color: var(--white);
    padding: 15px 30px;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(90deg, var(--dark), #222);
}

.header-info .label h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
    overflow: hidden;
}

.header-info .label h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.header-info .label:hover h1::after {
    transform: translateX(0);
}

.header-info .header-number {
    margin-left: auto;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-info .header-number a {
    all: unset;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-info .header-number a:hover { 
    color: var(--accent);
    transform: translateX(5px);
}

    .header-container .header-info .label span{
        color: var(--accent);
    }
    .header-container .header-info .label h1{
        cursor: pointer;
    }
    .header-container .header-info .label a{
        all:unset;
    }


            .step4-container {
             display: flex;
            gap: 20px;
            height: 100%;
            min-height: 0; 
        }
        
        .quarries-column {
            flex:1;
            display: flex;
            flex-direction: column;
            min-height: 0; 
        }
        
        /* Контейнер только для карточек карьеров с прокруткой */
        .quarries-scroll-container {
            flex: 1;
            overflow-y: auto;
            max-height: 70vh; 
            min-height: 0;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 15px;
        }
        
        /* Фиксированные блоки под карточками */

        
        .summary-column {
            width: 350px;
        }
        
        /* Адаптивность */
        @media (max-width: 992px) {
            .step4-container {
                flex-direction: column;
            }
            
            .summary-column {
                width: 100%;
                display:flex;
                flex-direction: column-reverse;
            }
            
            .quarries-scroll-container {
                max-height: none;
                overflow-y: visible;
            }
        }



.filters-container {
        background: white !important;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 ;
    }
          .filters-container .form-select {
    /* Базовая стилизация */
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 32px 8px 12px; /* Увеличиваем правый отступ для стрелки */
    color: #495057;
    font-size: 1rem;
    height: calc(2.25rem + 8px); /* Высота как у поля поиска */
    cursor: pointer;
    
    /* Убираем стандартную стрелку */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Кастомная стрелка с FontAwesome */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Стили при фокусе */
.filters-container .form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Стилизация опций */
.filters-container .form-select option {
    padding: 8px 12px;
    background: #fff;
    color: #212529;
    
}



/* Стилизация при наведении на опции (работает не во всех браузерах) */
.filters-container .form-select option:hover {
    background-color: #e9ecef !important;
}

/* Стилизация для disabled */
.filters-container .form-select:disabled {
    background-color: #e9ecef;
}



/* Шаг 5: Подтверждение заказа - Улучшенные стили */
#step5 .summary-box {
    background: rgba(160, 32, 32, 0.03);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

#step5 .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

#step5 .summary-item:last-child {
    border-bottom: none;
}

#step5 .summary-total {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid rgba(0,0,0,0.1);
}

#step5 .form-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

#step5 .form-group {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0 20px;
}

#step5 .form-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#step5 .form-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

#step5 .form-control-static {
    font-weight: 500;
    font-size: 1rem;
    color: #333;
}

#step5 .trucks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

#step5 .truck-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Стили для условий оплаты */
.conditions-box {
    background-color: #e8f4fc;
    border-left: 3px solid #3498db;
}

/* Увеличенная кнопка */
#submit_order {
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    background-color: var(--accent);
    border: unset;
}

/* Подсветка итоговой цены */
.total-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e74c3c;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

/* Иконки */
.fs-4 {
    font-size: 1.5rem !important;
    color: #7f8c8d;
    min-width: 30px;
    text-align: center;
}

/* Адаптивность для шага 5 */
@media (max-width: 992px) {
    #step5 .row > div {
        margin-bottom: 25px;
    }
}


#final_product_name::after,
#final_volume::after,
#final_quarry_name::after,
#final_distance::after {
    content: "" !important;
}

/* Анимация выбора товара */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(160, 32, 32, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(160, 32, 32, 0); }
    100% { box-shadow: 0 0 0 0 rgba(160, 32, 32, 0); }
}

.card-item.selected {
    animation: pulse 0.7s ease;
    border-color: var(--primary) !important;
}


.order-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin: 10px auto 0;
    display: block;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.order-btn-container {
    margin-top: auto; /* Прижимает кнопку к низу */
    padding: 0 15px 15px; /* Отступы */
    width: 100%;
    text-align: center;
}


.summary-card {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.summary-card .card-header {
    padding: 12px 15px;
    background: #f8f9fa !important;
    
}




.summary-card .card-body {
    padding: 20px;
    
}

#step3 .summary-card .card-body {
    padding: 20px;
    background: var(--bs-gray-100);
    height: auto !important;
     min-height: 100% !important;
     display: flex;
     flex-direction: column;
}

.card-body{
    flex-grow: 1; /* Растягивает тело карточки */
    overflow-y: auto; /* Добавляет прокрутку при необходимости */
    
}

.summary-card {
    height: 100%; /* Занимает всю доступную высоту */
    display: flex;
    flex-direction: column;
}

.summary-card .form-group {
    margin-bottom: 15px;
}

.summary-card .form-control-static {
    font-size: 1rem;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.form-label{
    color: black !important; 
}



a{
    all:unset;
}




/* Стили для карточек выбора грузовиков */
#step3 .truck-selection-card {
    background: white !important; /* Белый фон вместо серого */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #e0e0e0; /* Четкая граница вместо размытой */
    transition: all 0.3s ease;
    margin-bottom: 15px;
    height: 10vh !important;
}

#step3 .truck-selection-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: rgba(160, 32, 32, 0.3); /* Акцентная граница при наведении */
}

#step3 .truck-selection-card .card-body {
    background: transparent !important; /* Убираем внутренний серый фон */
    padding: 0 5px;
    gap: 0 !important;
}



.truck-controls .btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--accent);
    color: white;
    border: none;
}

.truck-controls .btn:active {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--primary);
    color: white;
    border: none;
}

.truck-count {
    min-width: 30px;
    text-align: center;
    font-size: 1.1rem;
}

 #trucks_selection {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.3rem !important;
            margin-top: 20px;
        }
        
        .truck-selection-card {
            background: white;
            border-radius: 10px;
            padding: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            transition: all 0.3s ease;
            border: 1px solid rgba(0,0,0,0.05);
            flex-shrink: 0;
        }
        
        .truck-selection-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            border-color: rgba(160, 32, 32, 0.15);
        }

        #step5 .truck-selection-card {
            background: #f8f9fa;
            border-radius: 8px;
}
        #step3 .truck-selection-card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-bottom: 15px;
        }

        #step5 .col-lg-8 {
            border-radius: 16px;
            padding: 20px; /* Добавим отступы для красоты */
        }
        /* Исправим структуру колонок */
        @media (min-width: 992px) {
            .col-lg-8 {
                padding-right: 20px;
            }
        }

        .mt-4{
            display:flex;
            flex-direction: column;
        }

        #step5 .mt-4 a{
            color: var(--accent);
            cursor: pointer;
            
        }

        #step3 .mt-4{
            all:unset;
        }
.col-md-6{
    width: 100% !important;
} 

#step5 .col-lg-4{
    padding:20px;
}



/* Стили для кнопки выбора карьера */
.select-quarry-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
    margin: 10px auto 15px;
    display: block;
}

.select-quarry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.order-btn-container {
    margin-top: auto;
    padding: 0 15px 15px;
    width: 100%;
    text-align: center;
}
footer {
    background: linear-gradient(135deg, #111, #000);
    color: white;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    animation: gradient 3s ease infinite;
    background-size: 200% 200%;
}

.container {
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
    width: 100%;
}

/* Стили для колонок */
.footer-column {
    padding: 15px;
    text-align: left;
}

.footer-column h3 {
    color: #ff6b6b;
    margin-bottom: 25px;
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.footer-column:hover h3::after {
    width: 100px;
}

.footer-column p, 
.footer-column li {
    color: #ddd;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: left;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer a {
    cursor: pointer;
}

.footer-column ul li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
}

.footer-column ul li i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 1.1rem;
    margin-top: 5px;
}

/* Стили для нижнего блока */
.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 1rem;
    width: 100%;
}

.copyright-left {
    text-align: left;
    flex: 1;
    min-width: 300px;
    margin-bottom: 15px;
}

.copyright-right {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.copyright-right a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.copyright-right a:hover {
    color: #ff6b6b;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-start; /* Иконки по левому краю */
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.4);
}

.contact-info li {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Контактная информация по левому краю */
}

.contact-info i {
    min-width: 25px;
}

/* Анимация появления при скролле */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 992px) {
    
    #step3 .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    width: 100%;
    margin-left: auto;
    display: flex;
    right: 0;
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .benefit-icon {
        width: 85px;
        height: 85px;
    }
    
    .step-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header-info {
        padding: 12px 20px;
    }
    
    .header-info .label h1 {
        font-size: 1.5rem;
    }
    
    .header-info .header-number {
        font-size: 1rem;
    }
    
    
    
    section {
        padding: 80px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .benefits-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-column {
        padding: 0;
        /* Убрали text-align: center; */
    }
    
    .footer-column h3::after {
        /* Убрали transform: translateX(-50%); */
        left: 0; /* Линия под заголовком начинается слева */
    }
    
    .footer-column:hover h3::after {
        width: 80px;
    }
    
    .footer-column ul li {
        justify-content: flex-start; /* Выравнивание элементов списка по левому краю */
    }
    
    .copyright {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .copyright .user-info {
        width: 100%;
        margin-top: 20px;
    }
    
    .copyright .user-info a {
        text-align: center;
    }
    
    .social-icons {
        justify-content: flex-start; /* Иконки по левому краю */
    }
    
    .steps-container {
        gap: 50px;
    }
    
    .step {
        padding-left: 45px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .timeline {
        left: 22px;
    }
}

@media (max-width: 480px) {
    .header-info {
        padding: 10px 15px;
    }
    
    .header-info .label h1 {
        font-size: 1.3rem;
    }
    #step3 .truck-selection-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding: 0 !important;
}
    .row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin-top: var(--bs-gutter-y);
}
    
    section {
        padding: 70px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .cta {
        padding: 80px 20px;
    }
    
    .cta h2 {
        font-size: 2.2rem;
    }
    
    .cta p {
        font-size: 1.1rem;
    }
    
    .step {
        padding-left: 40px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .timeline {
        left: 20px;
    }
    
    /* Дополнительные стили для футера в мобильной версии */
    .footer-column {
        text-align: left; /* Гарантированное выравнивание по левому краю */
    }
    
    .footer-column h3 {
        text-align: left; /* Заголовки по левому краю */
    }
    
    .footer-column p {
        text-align: left; /* Текст по левому краю */
    }
    
    .footer-column ul {
        text-align: left; /* Списки по левому краю */
        padding-left: 0; /* Убираем отступ слева */
    }
    
    .footer-column ul li {
        justify-content: flex-start; /* Элементы списка по левому краю */
    }
    
    .social-icons {
        justify-content: flex-start; /* Иконки по левому краю */
    }
    
    .contact-info li {
        justify-content: flex-start; /* Контакты по левому краю */
    }
}


/* SUCCESS BANNER */

#step6 .row.g-4 {
    padding:0 2%;
}

#step6 a {
    all: unset;
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    font-weight: bold;
    cursor: pointer;
}


.success-banner{
      flex-direction: column;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
    margin-bottom: 16px;
    max-width: 100%;
    margin: 20px auto;
}
.success-banner .icon-circle{
    width: 150px;
    height: 150px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7fbe5;
    border: 1px solid #bdeeba; 
}
.success-banner .check{
  width:100px; 
  height:100px;
  stroke:#22c55e;                 /* зелёная галка */
}
.success-title{
  font-weight:700; font-size:1.1rem; line-height:1.2;
  text-align: center;
}
.success-order{     
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; }
.order-id{ color: var(--primary); font-weight:700; }
.success-note{ color:#64748b; font-size:.95rem; margin-top:2px; }

/* утилита, если нет bootstrap */
.d-none{ display:none !important; }


.mini-block-title{
    font-weight: bold;
}

.mini-row {
    justify-content: space-between;
    display: flex;
    position: relative;
}

.mini-row::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-image: radial-gradient(circle, #ccc 1px, transparent 1px);
    background-size: 4px 1px;
    background-repeat: repeat-x;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.mini-row > * {
    background: white; /* или ваш фон */
    padding: 0 5px;
    position: relative;
    z-index: 2;
}


.next-title{
    font-weight: bold;
}


@media (min-width: 992px) {
    #step6 .row.g-4 {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    #step6 .col-lg-5 {
        flex: 0 0 calc(41.666667% - 30px);
        max-width: calc(41.666667% - 30px);
        margin: 0 15px;
    }
}


/* Стили для шага 6 */
#step6 .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#step6 .col-lg-5 {
    flex: 0 0 45%;
    max-width: 45%;
    margin: 0 2.5%;
}

@media (max-width: 992px) {
    #step6 .col-lg-5 {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
    }
}

#step6 .h-100 {
    height: auto;
    min-height: 100%;
}

/* Выравнивание карточек по высоте */
#step6 .receipt-card,
#step6 .whats-next {
    display: flex;
    flex-direction: column;
}

#step6 .card-body {
    flex-grow: 1;
    display:flex !important;
    flex-direction: column !important;
}

#step6 .me-sm-3{
    margin: 0 auto 1rem auto !important;
}

/* Добавьте эти стили в ваш CSS */
#step5 .row.g-4 {
    margin-left: -15px;
    margin-right: -15px;
    margin-top:5%;
}

#step5 .col-lg-5 {
    flex: 0 0 calc(41.666667% - 30px);
    max-width: calc(41.666667% - 30px);
    margin: 0 15px;
}

#step5 .h-100 {
    height: auto;
    min-height: 100%;
}

/* Выравнивание карточек по высоте */
#step5 .receipt-card,
#step5 .whats-next {
    display: flex;
    flex-direction: column;
}

#step5 .card-body {
    flex-grow: 1;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
    #step5 .col-lg-5 {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
    }
}


.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
    
/* --- Custom adjustments requested --- */
#step5 .form-group, #step6 .form-group, #step5 .form-control-static, #step6 .form-control-static, .mini-row, .mini-summary-item {
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
}
.form-check { margin-top: 10px; display:flex; align-items:center; gap:10px; }
.form-check-label a, .small.text-muted a { text-decoration: underline; }
#step4_certificate a, #final_certificate a, #det_certificate a { text-decoration: underline; display:inline-block; }
#step4_gost::after, #step4_distance::after, #step4_certificate::after, #final_gost::after, #final_certificate::after, #det_gost::after, #det_certificate::after { content: "" !important; }


#delivery_map {
    height: 250px !important;
    width: 100% !important;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Гарантируем, что карта будет видимой на шаге 5 */
#step5 #delivery_map {
    display: block !important;
    visibility: visible !important;
}

#step5 .info-row .mb3{
    display:flex;
    flex-direction: column;
}


.hidden-force {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  clip: rect(0, 0, 0, 0) !important;
}

.fw-medium {
    text-align: end;
}