    /* СТИЛИ ВЕРХНЕЙ ШТУКИ С КАРТИНКАМИ */


 /* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок */
.h1 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 2.5rem 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    border-radius: 2px;
}

.decoration {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 2rem auto;
    max-width: 1200px;
}

/* Вкладки */
.tabs-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 32px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: 0.5s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    background: #e3f2fd;
    color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #3498db;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 3rem 0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.image-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.image-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.image-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-item:hover::before {
    opacity: 1;
}

.image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.image-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

.image-caption {
    padding: 20px;
    background: white;
}

.image-caption a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
}

.image-caption a:hover {
    color: #3498db;
}

.hidden {
    display: none;
}

/* Сравнительная таблица */
.wrapper {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 4rem 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

.columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

@media (max-width: 1100px) {
    .columns {
        grid-template-columns: 1fr;
    }
}

.column {
    background: #f8fafc;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.col-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    margin: 1.5rem 0;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #3498db;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item:hover {
    border-color: #3498db;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.item:hover::before {
    opacity: 1;
}

.item.active {
    border-color: #3498db;
    background: #f0f8ff;
}

.icon {
    width: 28px;
    height: 28px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.icon.plus {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.icon.minus {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
    flex: 1;
    margin-top: 2px;
}

.desc {
    grid-column: 1 / -1;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-top: 10px;
    border-left: 4px solid #3498db;
    display: none;
    animation: slideDown 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.desc p {
    margin: 10px 0;
    color: #555;
}

.desc strong {
    color: #2c3e50;
}

/* Адаптивность */
@media (max-width: 768px) {
    .h1 {
        font-size: 2rem;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .wrapper {
        padding: 20px;
    }
    
    .columns {
        gap: 20px;
    }
    
    .column {
        padding: 20px;
    }
    
    .title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .columns {
        grid-template-columns: 1fr;
    }
    
    .col-title {
        font-size: 1.3rem;
    }
}

/* Специальные эффекты */
.image-item::after {
    content: 'Подробнее →';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(52, 152, 219, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.image-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover .icon {
    transform: rotate(90deg);
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}