.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    animation: pulse 3s infinite;
}

.car-battery-preloader {
    width: 140px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid white;
    border-radius: 5px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.car-battery-preloader:before,
.car-battery-preloader:after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: #c0c0c0;
    top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 2;
}

.car-battery-preloader:before {
    left: 25px;
    background: #ff3b30; /* Красная клемма */
}

.car-battery-preloader:after {
    right: 25px;
    background: #34c759; /* Зеленая клемма */
}

.battery-sections {
    display: flex;
    height: 100%;
    width: 100%;
    position: relative;
}

.battery-section {
    flex: 1;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.battery-section:last-child {
    border-right: none;
}

.battery-charge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #4caf50, #8bc34a);
    transition: height 0.3s ease;
    z-index: 1;
}

/* Анимация заряда для каждой секции */
.battery-section:nth-child(1) .battery-charge {
    animation: chargeSection 2s ease-in-out infinite;
    animation-delay: 0.2s;
}

.battery-section:nth-child(2) .battery-charge {
    animation: chargeSection 2s ease-in-out infinite;
    animation-delay: 0.4s;
}

.battery-section:nth-child(3) .battery-charge {
    animation: chargeSection 2s ease-in-out infinite;
    animation-delay: 0.8s;
}

.battery-section:nth-child(4) .battery-charge {
    animation: chargeSection 2s ease-in-out infinite;
    animation-delay: 1.2s;
}

.battery-section:nth-child(5) .battery-charge {
    animation: chargeSection 2s ease-in-out infinite;
    animation-delay: 1.7s;
}

.battery-section:nth-child(6) .battery-charge {
    animation: chargeSection 2s ease-in-out infinite;
    animation-delay: 2.1s;
}

.spark {
    position: absolute;
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.9);
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    filter: blur(1px);
    opacity: 0;
    z-index: 2;
}

.spark-1 {
    left: 20%;
    animation: sparkAnimation 2s infinite 0.2s;
}

.spark-2 {
    left: 40%;
    animation: sparkAnimation 2s infinite 0.7s;
}

.spark-3 {
    left: 60%;
    animation: sparkAnimation 2s infinite 1.2s;
}

.spark-4 {
    left: 80%;
    animation: sparkAnimation 2s infinite 1.7s;
}

.charge-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    z-index: 3;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: fadeInOut 4s infinite;
}

@keyframes chargeSection {
    0% { height: 0%; }
    50% { height: 100%; }
    100% { height: 0%; }
}

@keyframes sparkAnimation {
    0% { opacity: 0; transform: translateY(-50%) rotate(45deg) scale(1); }
    10% { opacity: 1; }
    20% { opacity: 0; transform: translateY(-50%) rotate(45deg) scale(1.5); }
    100% { opacity: 0; }
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    25% { opacity: 1; }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-particles {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

.hero-item {
            position: absolute;
            width: 55px;
            height: 75px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            opacity: 0.7;
            animation: float 20s infinite linear;
        }

.hero-item.wrench {
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white"><path d="M352 320c88.4 0 160-71.6 160-160c0-15.3-2.2-30.1-6.2-44.2c-3.1-10.8-16.4-13.2-24.3-5.3l-76.8 76.8c-3 3-7.1 4.7-11.3 4.7H336c-8.8 0-16-7.2-16-16V118.6c0-4.2 1.7-8.3 4.7-11.3l76.8-76.8c7.9-7.9 5.4-21.2-5.3-24.3C382.1 2.2 367.3 0 352 0C263.6 0 192 71.6 192 160c0 19.1 3.4 37.5 9.5 54.5L19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L297.5 310.5c17 6.2 35.4 9.5 54.5 9.5zM80 456c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24z"/></svg>');
top: 24%;
left: 12%;
animation-delay: 0s;
}

.hero-item.battery {
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="white"><path d="M80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zM464 160H80c-8.8 0-16 7.2-16 16V336c0 8.8 7.2 16 16 16H464c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16zM352 224c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v64c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16V224z"/></svg>');
top: 60%;
right: 15%;
animation-delay: 1s;
}


@keyframes float {
            0% { transform: translate(0, 0) rotate(0deg); }
            25% { transform: translate(50px, 50px) rotate(90deg); }
            50% { transform: translate(100px, 0) rotate(180deg); }
            75% { transform: translate(50px, -50px) rotate(270deg); }
            100% { transform: translate(0, 0) rotate(360deg); }
        }

.advantages-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }

        @media (max-width: 992px) {
            .advantages-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .advantages-grid {
                grid-template-columns: 1fr;
            }
        }


.protection-steps {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #004584;
    position: relative;
    overflow: hidden;
}

.protection-steps-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100vh;
    padding: 0;
}

.protection-steps-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 20px;
    color: white;
}

.protection-number {
    font-size: 25rem;
    font-weight: bold;
    line-height: 0.8;
    color: #004584; /* Темно-синий цвет */
    text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white;
    margin-bottom: -20px;
}

.protection-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    line-height: 1;
    text-align: left;
}

.protection-steps-right {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.protection-stripes {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 70%;
}

.protection-stripe {
    height: calc(100% / 7);
    width: 100%;
    background-color: #b6273e; /* Красный цвет полос */
    margin: 10px 0;
}

.protection-steps-btn {
    position: absolute;
    bottom: 3px;
    left: 33%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    background: #b6273e; /* Красный цвет кнопки */
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.protection-steps-btn:hover {
    background: #d42d4a; /* Немного светлее при наведении */
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
.protection-steps-btn {
    bottom: 2px;
    left: 28%;  
    gap: 4px;
    padding: 5px 7px;    
    }
    
.protection-steps-content {
        flex-direction: column;
    }
    
.protection-steps-left {
        align-items: center;
        padding-right: 0;
        padding-top: 20px;
    }
    
.protection-number {
        font-size: 15rem;
    }
    
.protection-title {
        font-size: 2.5rem;
        align-items: center;
        text-align: center;
    }
    
.protection-steps-right {
        justify-content: center;
    }
    
.protection-stripes {
        width: 80%;
        height: 200px;
    }
}