/* ============================================
   ОБЩИЕ СТИЛИ
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #f7fafc;
}

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

/* ============================================
   ШАПКА
   ============================================ */

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.logo-icon {
    font-size: 2rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #2563eb;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-contacts a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.header-contacts a:hover {
    color: #2563eb;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2563eb;
}

/* ============================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 2000;
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #4b5563;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.mobile-menu nav a {
    color: #4b5563;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ============================================
   ГЛАВНЫЙ ЭКРАН
   ============================================ */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   КНОПКИ - КРИТИЧЕСКИ ВАЖНО!
   ============================================ */

.btn,
button.btn,
a.btn,
.hero-buttons .btn,
.hero-buttons button,
.hero-buttons a {
    display: inline-block !important;
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.btn-primary,
button.btn-primary,
a.btn-primary,
.hero-buttons .btn-primary,
.hero-buttons button.btn-primary {
    background: #fff !important;
    color: #667eea !important;
}

.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
    background: #f3f4f6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.btn-secondary,
button.btn-secondary,
a.btn-secondary,
.hero-buttons .btn-secondary,
.hero-buttons a.btn-secondary {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

.btn-secondary:hover,
button.btn-secondary:hover,
a.btn-secondary:hover {
    background: rgba(255,255,255,0.1) !important;
    transform: translateY(-2px) !important;
}

/* ============================================
   СЕКЦИИ
   ============================================ */

.about,
.products,
.contacts {
    padding: 4rem 0;
}

.about {
    background: #fff;
}

.about h2,
.products h2,
.contacts h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.advantages h2 {
    font-size: 42px;        /* Увеличиваем шрифт */
    font-weight: 700;       /* Жирный */
    text-align: center;     /* По центру */
    margin-bottom: 10px;
    color: #333;
}

.advantages .section-description {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

/* ============================================
   ФИЛЬТР ПРОДУКЦИИ
   ============================================ */

.section-description {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
}

.products-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn,
button.filter-btn {
    padding: 0.75rem 1.5rem !important;
    background: #fff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    color: #4b5563 !important;
}

.filter-btn:hover,
button.filter-btn:hover {
    border-color: #2563eb !important;
    color: #2563eb !important;
    transform: translateY(-2px) !important;
}

.filter-btn.active,
button.filter-btn.active {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
}

/* ============================================
   СЕТКА ТОВАРОВ - КРИТИЧЕСКИ ВАЖНО!
   ============================================ */

.products-grid,
#products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

.product-card,
.products-grid .product-card,
#products-grid .product-card {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.product-card:hover,
.products-grid .product-card:hover,
#products-grid .product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.product-icon,
.product-card .product-icon {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

.product-card h3,
.product-card .product-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
    color: #1f2937 !important;
}

.product-card p,
.product-card .product-description {
    color: #6b7280 !important;
    margin-bottom: 1rem !important;
    flex-grow: 1 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.product-price,
.product-card .product-price {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: #2563eb !important;
    margin-bottom: 1rem !important;
}

.product-card .btn,
.product-card button,
.product-card .order-btn {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    background: #2563eb !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin-top: auto !important;
}

.product-card .btn:hover,
.product-card button:hover,
.product-card .order-btn:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px) !important;
}

/* ============================================
   УСЛУГИ СПЕЦТЕХНИКИ
   ============================================ */

.services {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.services h2 {
    color: white;
    font-size: 42px;        /* ← ДОБАВЛЕНО */
    font-weight: 700;       /* ← ДОБАВЛЕНО */
    text-align: center;     /* ← ДОБАВЛЕНО */
    margin-bottom: 10px;    /* ← ДОБАВЛЕНО */
}

.services .section-description {
    color: rgba(255,255,255,0.9);
    text-align: center;     /* ← ДОБАВЛЕНО */
    font-size: 18px;        /* ← ДОБАВЛЕНО */
    margin-bottom: 40px;    /* ← ДОБАВЛЕНО */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    font-size: 1rem;
}

/* ============================================
   НАШИ ПРЕИМУЩЕСТВА
   ============================================ */

.advantages {
    padding: 4rem 0;
    background: #f9fafb;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #2563eb;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.advantage-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.advantage-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

/* ============================================
   АДАПТИВНОСТЬ ДЛЯ НОВЫХ БЛОКОВ
   ============================================ */

@media (max-width: 768px) {
    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-icon {
        font-size: 3rem;
    }
    
    .advantage-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* ============================================
   КОНТАКТЫ
   ============================================ */

.contacts {
    background: #f9fafb;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.contact-item a,
.contact-item p {
    color: #2563eb;
    text-decoration: none;
    font-size: 1.1rem;
}

.contacts .section-description {
    text-align: center;
    font-size: 18px;
    color: #666;
}

/* ============================================
   ПОДВАЛ
   ============================================ */

.footer {
    background: #1f2937;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1024px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-contacts {
        display: none;
    }
    
    .products-grid,
    #products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn,
    .hero-buttons button,
    .hero-buttons a {
        width: 100% !important;
    }
    
    .products-grid,
    #products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .about h2,
    .products h2,
    .contacts h2 {
        font-size: 1.75rem;
    }
}
/* ============================================
   ИЗОБРАЖЕНИЯ ТОВАРОВ
   ============================================ */

.product-image,
.product-image-placeholder {
    width: 100% !important;
    height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
    background: #f3f4f6 !important;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.product-image-placeholder .product-icon {
    font-size: 4rem !important;
}

.no-products {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding: 3rem !important;
    color: #6b7280 !important;
    font-size: 1.1rem !important;
}