/* Hero Section Styles */
.hero-section {
    position: relative;
    height: 50vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: -20px -20px 0px -20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                      url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Эффект параллакса */
}

/* Если нет своей фотографии, используем градиент и иконку автомобиля */
.hero-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    z-index: -1;
}

/* Альтернативный вариант с иконкой автомобиля если нет фото */
.no-image .hero-image {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image .hero-image:after {
    content: '🚗';
    font-size: 8rem;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
    font-size: 2.1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.5;
    opacity: 0.9;
}

.hero-button {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* Анимация пульсации */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulsating {
    animation: pulse 1s infinite ease-in-out;
}


/* Основной контент */
.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Arrow Section */
.arrow-section {
    padding: 20px 0;
    text-align: center;
}

.arrow-container {
    display: inline-block;
    position: relative;
}

/* Большая стрелка как в меню, но увеличенная */
.big-arrow {
    position: relative;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.big-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.3s ease;
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Section */
.about-section {
    padding: 80px 0 20px 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 20px;
}

.about-left {
    flex: 1;
}

.about-title {
    font-size: 3rem;
    font-weight: 300;
    color: #2c3e50;
    line-height: 1.2;
    margin: 0;
}

.company-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #e74c3c;
    display: block;
    margin-top: 10px;
}

.about-right {
    flex: 1;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin: 0;
    padding: 20px;
    background: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-image {
        background-attachment: scroll; /* Убираем параллакс на мобильных */
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .about-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .company-name {
        font-size: 3rem;
    }

    .about-text {
        font-size: 1rem;
        padding: 15px;
    }

    .big-arrow {
        width: 14px;
        height: 14px;
    }

    .big-arrow::before {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .company-name {
        font-size: 2.5rem;
    }

    .about-text {
        font-size: 0.95rem;
        padding: 12px;
    }

    .arrow-section {
        padding: 20px 0;
    }

    .big-arrow {
        width: 12px;
        height: 12px;
    }

    .big-arrow::before {
        width: 10px;
        height: 10px;
    }
}

/* Анимация появления */
/* Vantaggi Section */
.vantaggi-section {
    padding: 10px 0 90px 0;
}

.vantaggi-header {
    text-align: center;
    margin-bottom: 60px;
}

.vantaggi-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.vantaggi-title::before,
.vantaggi-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e74c3c, transparent);
    max-width: 100px;
}

.vantaggi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.vantaggio-item {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.vantaggio-item:nth-child(even) {
    transform: translateX(50px);
}

.vantaggio-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.vantaggio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.vantaggio-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.vantaggio-text {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    text-align: justify;
}

/* Анимация появления */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Адаптивность для Vantaggi */
@media (max-width: 768px) {
    .vantaggi-section {
        padding: 60px 0;
    }

    .vantaggi-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 15px;
    }

    .vantaggi-title::before,
    .vantaggi-title::after {
        flex: none;
        width: 80px;
        height: 1px;
    }

    .vantaggi-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .vantaggio-item {
        padding: 30px 20px;
        transform: translateX(-30px) !important;
    }

    .vantaggio-item:nth-child(even) {
        transform: translateX(30px) !important;
    }

    .vantaggio-item.visible {
        transform: translateX(0) !important;
    }

    .vantaggio-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .vantaggi-title {
        font-size: 1.8rem;
    }

    .vantaggio-item {
        padding: 25px 20px;
    }

    .vantaggio-title {
        font-size: 1.1rem;
    }

    .vantaggio-text {
        font-size: 0.95rem;
    }
}



/* Products Sections */
.products-section {
    padding: 80px 0 0 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e74c3c, transparent);
    max-width: 100px;
}

.products-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.products-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    flex-shrink: 0;
    width: 250px; /* ФИКСИРОВАННАЯ ширина */
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}


.product-image {
    width: max-width 200px;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-info {
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Основной эффект при наведении - меняет цвет текста */
.product-info:hover {
    color: #1abc9c !important;
    background: transparent !important;
}

/* Применяем цвет ко всем текстовым элементам внутри product-info */
.product-info:hover .product-name,
.product-info:hover .product-price {
    color: #1abc9c !important;
}

/* Убедитесь, что у текстовых элементов есть transition для плавности */
.product-name,
.product-price {
    transition: color 0.3s ease;
}


/* Сохраняем оригинальные цвета когда нет hover */
.product-name {
    color: #2c3e50;
}

.product-price {
    color: #2c3e50;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3px;
}

.product-price::after {
    content: ' €';
}

.product-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}



/* Best Offers Section */
.best-offers-section {
    padding: 80px 0 40px 0;
}

.best-offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    z-index: 2;
}

.product-card {
    position: relative;
}

/* Навигационные стрелки для горизонтального скролла */
.products-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.scroll-button:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.scroll-button.prev {
    left: 10px;
}

.scroll-button.next {
    right: 10px;
}

/* Адаптивность для продуктов */
@media (max-width: 768px) {
    .products-section,
    .best-offers-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 15px;
    }

    .section-title::before,
    .section-title::after {
        flex: none;
        width: 80px;
        height: 1px;
    }

    .products-grid {
        gap: 20px;
        justify-content: flex-start;
        padding: 0 15px;
    }

    .product-card {
        min-width: 250px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 1rem;
        height: 2.8em;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .scroll-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .products-grid {
        gap: 15px;
    }

    .product-card {
        min-width: 220px;
    }

    .scroll-button {
        display: none; /* Скрываем стрелки на очень маленьких экранах */
    }
}

