﻿body {
    *

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

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

.machine-park-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 70px;
        height: 3px;
        background: #c41e3a;
    }

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-top: 20px;
}

.machine-timeline {
    position: relative;
    padding: 30px 0;
}

    .machine-timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, #c41e3a, #8b1428);
        transform: translateX(-50%);
    }

.machine-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    align-items: center;
}

    .machine-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .machine-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .machine-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .machine-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .machine-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .machine-item:nth-child(6) {
        animation-delay: 0.6s;
    }

    .machine-item:nth-child(7) {
        animation-delay: 0.7s;
    }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.machine-item.right .machine-image-box {
    order: 2;
}

.machine-item.right .machine-details {
    order: 1;
}

.machine-image-box {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .machine-image-box:hover {
        transform: scale(1.02);
    }

.machine-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.machine-image-box:hover .machine-image {
    box-shadow: 0 6px 30px rgba(196, 30, 58, 0.2);
}

.machine-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    background: rgba(196, 30, 58, 0.95);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.machine-details {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    .machine-details:hover {
        box-shadow: 0 6px 30px rgba(196, 30, 58, 0.15);
    }

.machine-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 3px solid #c41e3a;
}

.machine-basic-info {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

    .specs-list li {
        padding: 10px 0;
        padding-left: 25px;
        position: relative;
        font-size: 0.95rem;
        color: #555;
        border-bottom: 1px solid #e0e0e0;
        transition: all 0.3s ease;
    }

        .specs-list li:last-child {
            border-bottom: none;
        }

        .specs-list li::before {
            content: '▸';
            position: absolute;
            left: 0;
            color: #c41e3a;
            font-weight: bold;
            font-size: 1.1rem;
        }

        .specs-list li:hover {
            padding-left: 30px;
            color: #c41e3a;
        }

.center-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #c41e3a;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 3px #c41e3a;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

@media (max-width: 968px) {
    .machine-timeline::before {
        display: none;
    }

    .machine-item {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }

        .machine-item.right .machine-image-box,
        .machine-item.right .machine-details {
            order: unset;
        }

    .center-dot {
        display: none;
    }

    .machine-image {
        height: 240px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .machine-park-section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .machine-image {
        height: 200px;
    }

    .machine-details {
        padding: 25px;
    }

    .machine-name {
        font-size: 1.1rem;
    }

    .specs-list li {
        font-size: 0.9rem;
    }
}
}
