/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

section {
    padding: 60px 20px;
}

/*  Слайдер */
.slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    height: 500px;
    border-radius: 5px; 
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка будет заполнять область */
}

.slide-text {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
}

.btn {
    display: inline-block;
    background: #686868; /* цвет акцента */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.indicators span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.indicators span.active {
    background: white;
}

/* Карта */
.dealers-map {
    background: #f5f5f5;
    text-align: center;
}

.dealers-map h2 {
    margin-bottom: 30px;
}

#map {
    height: 400px;
    background: #ddd; 
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Блоки */
.info-blocks {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.info-block {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.info-block img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.block-content {
    padding: 20px;
}

.block-link {
    display: inline-flex;
    align-items: center;
    color: #686868; /* Ваш цвет акцента */
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}

.block-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.block-link:hover i {
    transform: translateX(5px);
}

/*  CTA блок */
.cta-block {
    background: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 10px 20px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.3s;
}

.cta-btn:hover {
    transform: scale(1.05);
}
/* Шапка */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 130px;
}

.logo img {
    height: 100px;
    width: 100px;
    margin-top: 30px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-list a:hover {
    color: #686868; /* цвет акцента */
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #686868;
    transition: width 0.3s;
}

.nav-list a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
}

.search-btn, .cart-btn, .menu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6600;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* Адаптивка */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .phone {
        display: none;
    }

    .container {
        height: 80px;
    }
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-8px,0);
    }
    70% {
        transform: translate3d(0,-4px,0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}


/* Адаптивность */
@media (max-width: 480px) {
    .cart-dropdown {
        width: 320px;
        right: -50px;
    }
    
    .cart-dropdown::before {
        right: 60px;
    }
    
    .cart-header {
        padding: 15px 20px;
    }
    
    .cart-items {
        max-height: 300px;
        padding: 10px;
    }
    
    .cart-footer {
        padding: 15px 20px;
    }
    
    .checkout-btn, .clear-cart {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .cart-dropdown {
        width: 280px;
        right: -80px;
    }
    
    .cart-dropdown::before {
        right: 80px;
    }
}

/* Темная тема  */
@media (prefers-color-scheme: dark) {
    .cart-dropdown {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .cart-dropdown::before {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .cart-header {
        background: #1a202c;
        border-color: #4a5568;
    }
    
    .cart-header h3 {
        color: #e2e8f0;
    }
    
    .cart-footer {
        background: #1a202c;
        border-color: #4a5568;
    }
    
    .cart-total {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .close-cart {
        color: #a0aec0;
    }
    
    .close-cart:hover {
        background: #4a5568;
        color: #fff;
    }
    
    .clear-cart {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .clear-cart:hover {
        background: #718096;
        color: #fff;
    }
}