.loader-circle {
    width: 100%;
    height: 100%;
    border: 10px solid transparent;
    border-top-color: #e74c3c;
    border-radius: 50%;
    position: absolute;
    animation: rotate 1.5s linear infinite;
}

.loader-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #ffffff;
    animation-duration: 2s;
}

.loader-circle:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #e74c3c;
    animation-duration: 2.5s;
}

.loader-text {
    position: absolute;
    bottom: -40px;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

:root {
    --background-color: #f5f5f5;
    --header-color: #222222;
    --text-color: #2c3e50;
    --primary-color: #3498db;
    --dropdown-bg: #2c3e50;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
}

.header {
    background-color: #000000;
    color: white;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-top {
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 140px;
    margin-right: 0;
}

.contact-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.phones {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.phone-number {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    padding: 0.2rem 0;
}

.nav-list {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-content {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dropdown-bg);
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    transform: translateX(0);
}

.dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .contact-info {
        display: none;
    }

    .nav-list {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu.active .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--header-color);
        padding: 1rem;
        animation: slideDown 0.3s ease;
    }

    .dropdown-content {
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding-left: 1rem;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: all 0.3s ease;
    }

    .nav-item:hover .dropdown-content {
        opacity: 1;
        max-height: 500px;
        transform: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.8rem;
    }

    .logo img {
        height: 96px;
    }

    .header-top {
        padding: 0.12rem 0;
    }

    .nav-menu {
        padding: 0.12rem 0;
    }
}

/* Стили для центрирования слайдеров */
.slider-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.slider-wrapper {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.3s ease-out;
    cursor: grab;
}

.slider-wrapper:active {
    cursor: grabbing;
}

.slider {
    flex: 0 0 100%;
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 768px) {
    .slider-container {
        padding: 0 15px;
        box-sizing: border-box;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .slider-container::-webkit-scrollbar {
        display: none;
    }
    
    .slider {
        scroll-snap-align: start;
    }
}

/* Стили для кнопок */
.action-buttons {
    display: flex;
    gap: 1rem;
}

.action-button {
    display: inline-block;
    min-width: 180px; /* Фиксированная ширина для обеих кнопок */
    padding: 10px 20px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.call-button {
    background-color: #e74c3c;
    color: white;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
}

.hero-text {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    /* Убираем тень */
    text-shadow: none;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .action-button {
        width: 100%;
    }
}

.catalog-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
    .catalog-grid {
        gap: 1.6rem; /* Уменьшаем отступ на 20% (с 2rem до 1.6rem) */
    }
}

/* Стили для категорий автомобилей */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-item {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.category-item.active {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 480px) {
    .categories-grid {
        gap: 0.8rem;
        margin-bottom: 1.6rem;
    }

    .category-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}
