/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

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

/* ===== ХЕДЕР ===== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0066cc;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0066cc;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #0066cc;
}

.last-link {
    display: none;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.page-header {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
}

h1:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #0066cc;
    margin: 15px auto 0;
}

h2 {
    font-size: 1.8rem;
    margin: 30px 0 20px;
    color: #2c3e50;
    /* border-left: 4px solid #0066cc; */
    padding-left: 15px;
}

/* ===== СЛАЙДЕР ===== */
.slider-section {
    margin: 40px 0;
}

.slider {
    width: 100%;
    margin: 0 auto;
}

.slider img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.slick-prev:before, .slick-next:before {
    color: #0066cc !important;
}

/* ===== ОПИСАНИЕ ===== */
.description-section {
    background: #fff;
    padding: 40px 0;
}

.description-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.description-text {
    flex: 2;
}

.description-text p {
    margin-bottom: 16px;
    font-size: 1rem;
}

.highlight {
    background: #f0f7ff;
    padding: 20px;
    border-left: 4px solid #0066cc;
    border-radius: 8px;
    margin: 20px 0;
}

.highlight b {
    color: #0066cc;
}

span.highlight-green {
    color: #91B54D;
    font-weight: bold;
}

/* ===== ТАБЛИЦА ===== */
.table-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.table-wrapper {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.product-table th,
.product-table td {
    border: 1px solid #e0e0e0;
    padding: 15px;
    text-align: center;
    vertical-align: middle;
}

.product-table th {
    background: #2c3e50;
    color: white;
    font-weight: 600;
}

.product-table td:first-child {
    background: #f8f9fa;
    font-weight: 500;
}

.product-table img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}

.product-table img:hover {
    transform: scale(1.05);
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages-section {
    padding: 60px 0;
    background: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.advantage-item i {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 15px;
}

.advantage-item h3 {
    margin: 15px 0;
    color: #2c3e50;
}

.advantage-item p {
    color: #666;
}

/* ===== ФУТЕР ===== */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0;
    margin-top: 60px;
}

.footer .flex_container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer .logo {
    max-width: 120px;
    filter: brightness(0) invert(1);
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

.footer span {
    color: #91B54D;
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transition: left 0.3s;
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-link {
        padding: 12px 0;
        text-align: center;
    }
    
    .last-link {
        display: block;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .slider img {
        height: 250px;
    }
    
    .description-content {
        flex-direction: column;
    }
    
    .product-table th,
    .product-table td {
        padding: 10px;
        font-size: 12px;
    }
    
    .product-table img {
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .slider img {
        height: 200px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для кнопки наверх */
#toTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0066cc;
    color: white;
    padding: 12px 18px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    z-index: 99;
    display: none;
    transition: 0.2s;
    border: none;
}

#toTop:hover {
    background: #004d99;
}

/* ===== МОДЕЛЬНЫЙ РЯД - АДАПТИВНЫЕ КАРТОЧКИ ===== */
.models-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.model-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.4rem;
    background: #2c3e50;
    color: white !important;
    padding: 12px 20px;
    border-radius: 12px;
    margin: 30px 0 25px;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.model-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.model-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.model-info {
    padding: 15px;
}

.model-sizes {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.model-name {
    font-size: 0.9rem;
    color: #0066cc;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Адаптация для телефонов */
@media (max-width: 560px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .model-card img {
        height: 180px;
        padding: 15px;
    }
    .category-title {
        font-size: 1.2rem;
        padding: 10px 15px;
    }
}

/* ===== ГАЛЕРЕЯ (как на labi.shtml) ===== */
.gallery-section {
    padding: 40px 0;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border: 1px solid #ddd;
    padding: 10px;
    background: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 8px;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: #ccc;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    .gallery-img {
        height: 140px;
    }
}

* {
      text-align: left !important;
}