/*main.css*/
:root {
    --primary-color: #007bff;
    --secondary-color: #28a745;
    --accent-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    background: #f8f9fa;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Hero секция */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1533473359331-0135ef1b58bf?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
}

/* Категории транспорта */
.category-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--category-color, #007bff);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--category-color, #007bff);
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.2);
}

.price-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 15px;
    font-size: 1.2rem;
}

/* Calculator */
.calculator-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    border: none;
}

.calculator-header {
    background: var(--primary-color);
    color: white;
    padding: 25px;
}

.calculator-body {
    padding: 30px;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
}

/* Цены */
.price-summary {
    background: var(--light-color);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.1rem;
}

.price-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.price-row.total {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
}
/* === Modal overlay + animation (moved from index.php) === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1050;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalFadeIn 0.3s ease;
}

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

/* modal addons */
.addon-checkbox-item {
  padding: 10px 15px;
  margin-bottom: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  transition: all 0.2s;
}
.addon-checkbox-item:hover {
  background: #fff;
  border-color: #20c997;
  box-shadow: 0 2px 5px rgba(32, 201, 151, 0.1);
}
.addon-checkbox-item.selected {
  background: #e8f8f1;
  border-color: #20c997;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
}