/* Основные стили */
html {
  scroll-padding-top: 120px; /* Высота вашего хедера + небольшой отступ */
}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Roboto', sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
        }
        
        /* Шапка */
        header {
            background-color: #1a1a1a;
            color: white;
            padding: 20px 0;
            position: fixed;
            width: 100%;
            z-index: 100;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
  .logo img {
    height: 50px; /* Стандартная высота логотипа */
    width: auto; /* Сохраняет пропорции */
    transition: all 0.3s ease; /* Плавное изменение при наведении */
}

.logo img:hover {
    opacity: 0.8; /* Эффект при наведении */
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row; /* Горизонтальное расположение */
        align-items: center; /* Выравнивание по центру */
        padding: 10px 15px; /* Удобные отступы */
        /*flex-wrap: nowrap;*/ /* Запрет переноса на новую строку */
        overflow-x: auto; /* Горизонтальная прокрутка если не помещается */
        -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
        background-color: #1a1a1a; /* Цвет фона */
    }

    .logo {
        margin-bottom: 0;
        margin-right: 15px; /* Отступ от меню */
        flex-shrink: 0; /* Запрет уменьшения лого */
    }

    .logo img {
        height: 40px;
    }

    nav {
        flex-shrink: 0; /* Запрет уменьшения навигации */
    }

    nav ul {
        display: flex;
        flex-direction: row; /* Горизонтальное меню */
        width: auto; /* Автоматическая ширина */
        gap: 10px; /* Равномерные отступы */
        padding-bottom: 5px; /* Место для скролла */
    }

    nav ul li {
        margin: 0; /* Убираем отступы */
    }

    nav ul li a {
        padding: 8px 12px; /* Удобные для касания */
        border-bottom: none; /* Убираем нижнюю границу */
        background: rgba(255, 255, 255, 0.1); /* Легкий фон */
        border-radius: 20px; /* Скругленные углы */
        white-space: nowrap; /* Текст в одну строку */
        transition: all 0.3s ease; /* Плавные анимации */
    }

    nav ul li a:hover {
        background: rgba(255, 107, 0, 0.3); /* Эффект при наведении */
        transform: translateY(-2px); /* Легкий подъем */
    }

    /* Скрываем scrollbar */
    .header-container::-webkit-scrollbar {
        display: none;
    }
}
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 30px;
        }
        
        nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        nav ul li a:hover {
            color: #ff6b00;
        }
        
        /* Герой-секция */
        .hero {
            height: 100vh;
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('квадроциклОбложка.jpg') no-repeat center/cover;
            display: flex;
            align-items: center;
            text-align: center;
            color: white;
            padding-top: 80px;
        }
        
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .hero h1 {
            font-size: 48px;
            margin-bottom: 20px;
        }
        
        .hero p {
            font-size: 20px;
            margin-bottom: 30px;
        }
        
        .btn {
            display: inline-block;
            background-color: #ff6b00;
            color: white;
            padding: 12px 30px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: background-color 0.3s;
        }
        
        .btn:hover {
            background-color: #e05d00;
        }
        
        /* Секция услуг */
        .services {
            padding: 80px 0;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .section-title {
            text-align: center;
            font-size: 36px;
            margin-bottom: 50px;
            color: #1a1a1a;
        }
        
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            padding: 0 20px;
        }
        
        .service-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .service-card:hover {
            transform: translateY(-10px);
        }
        
        .service-img {
            height: 200px;
            background-color: #ddd;
            background-size: cover;
            background-position: center;
        }
        
        .service-content {
            padding: 20px;
        }
        
        .service-content h3 {
            font-size: 22px;
            margin-bottom: 10px;
        }

        /* Секция маршрутов */
        .routes {
            padding: 80px 0;
            background-color: #f9f9f9;
        }

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

        .route-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
        }

        .route-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .route-img {
            height: 200px;
            background-size: cover;
            background-position: center;
        }

        .route-content {
            padding: 20px;
        }

        .route-content h3 {
            color: #ff6b00;
            margin-bottom: 10px;
        }

        .route-features {
            margin: 15px 0;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .feature-tag {
            background: #f0f0f0;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 14px;
        }

        /* Секция правил */
        .rules {
            padding: 80px 0;
            max-width: 1200px;
            margin: 0 auto;
        }

        .rules-list {
            background: white;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .rule-item {
            margin-bottom: 20px;
            padding-left: 30px;
            position: relative;
        }

        .rule-item:before {
            content: "•";
            color: #ff6b00;
            font-size: 24px;
            position: absolute;
            left: 0;
            top: -3px;
        }

        /* Галерея */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
    border: none;
    color: #ff6b00;
    font-size: 24px;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: #ff6b00;
    color: white;
}

.prev-btn {
    left: 5px;
}

.next-btn {
    right: 5px;
}
.gallery {
    padding: 80px 0;
    background-color: #f9f9f9;
    overflow: hidden;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
}

.carousel {
    display: flex;
    overflow-x: auto; /* Изменено с hidden на auto */
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Для плавности на iOS */
}

.carousel-item {
    flex: 0 0 auto;
    width: 300px; /* Фиксированная ширина элемента */
    height: 250px;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    transition: transform 0.3s;
}

/* Скрываем scrollbar */
.carousel::-webkit-scrollbar {
    display: none;
}
/* Адаптивность */
@media (max-width: 992px) {
    .carousel-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .gallery-container {
        padding: 0 40px;
    }
    
    .carousel-item {
        flex: 0 0 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

        /* Отзывы */
        .testimonials {
            padding: 80px 0;
            max-width: 1200px;
            margin: 0 auto;
        }

        .testimonial-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .testimonial-card {
            background: white;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .testimonial-text {
            font-style: italic;
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
        }

        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #ddd;
            margin-right: 15px;
            background-size: cover;
            background-position: center;
        }

        .author-name {
            font-weight: 700;
            color: #ff6b00;
        }

        /* Техника */
        .quads {
            padding: 80px 0;
            background-color: #f9f9f9;
        }

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

        .quad-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
        }

        .quad-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .quad-img {
    height: 200px;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    object-fit: contain; /* для тега <img> */
}

        .quad-content {
            padding: 20px;
        }

        .quad-specs {
            margin: 15px 0;
        }

        .spec-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .spec-name {
            color: #666;
        }

        .spec-value {
            font-weight: 500;
        }

        /* Футер */
        footer {
            background-color: #1a1a1a;
            color: white;
            padding: 60px 0 30px;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            padding: 0 20px;
        }

        .footer-logo {
            font-size: 24px;
            font-weight: 700;
            color: #ff6b00;
            margin-bottom: 20px;
        }

        .footer-contacts h3,
        .footer-social h3 {
            font-size: 20px;
            margin-bottom: 20px;
            color: #ff6b00;
        }

        .footer-contacts p {
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }

        .footer-contacts i {
            margin-right: 10px;
            color: #ff6b00;
            width: 20px;
            text-align: center;
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: #333;
            border-radius: 50%;
            color: white;
            font-size: 18px;
            transition: all 0.3s;
        }

        .social-links a:hover {
            background-color: #ff6b00;
            transform: translateY(-3px);
        }

        .copyright {
            text-align: center;
            padding-top: 30px;
            margin-top: 30px;
            border-top: 1px solid #333;
            font-size: 14px;
            color: #999;
        }

        /* Адаптивность */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 36px;
            }
            
            .services-grid,
            .route-cards,
            .testimonial-cards,
            .quad-cards {
                grid-template-columns: 1fr;
            }

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

            .carousel-item {
                min-width: calc(50% - 10px);
            }
        }

        @media (max-width: 480px) {
            .carousel-item {
                min-width: 100%;
            }
        }
#booking-form {
  background: #ffffff;
  max-width: 600px;
  margin: 60px auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', sans-serif;
}

#booking-form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #222;
}

#booking-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#booking-form label {
  font-weight: 600;
  color: #333;
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

#booking-form input[type="date"],
#booking-form input[type="time"],
#booking-form input[type="number"],
#booking-form input[type="text"] {
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  background: #f9f9f9;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#booking-form input:focus {
  border-color: #4facfe;
  outline: none;
  box-shadow: 0 0 5px rgba(79, 172, 254, 0.5);
}

#priceInput[readonly] {
  background-color: #e9ecef;
  color: #555;
  cursor: not-allowed;
}

#booking-form button[type="submit"] {
  background: linear-gradient(to right, #4facfe, #00f2fe);
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

#booking-form button:hover {
  background: linear-gradient(to right, #00c6ff, #0072ff);
}

@media (max-width: 480px) {
  #booking-form {
    padding: 20px;
  }

  #booking-form label {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .header-btn { padding: 8px 12px; font-size: 14px; }
  .form { width: 90%; }
}
