/* ===== AUTOSPORT USA - Main Stylesheet ===== */

/* === Root Variables === */
:root {
    --primary-color: #d4af37;
    --secondary-color: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --border-color: #333333;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    display: block;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    position: relative;
    transition: var(--transition);
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.header-phone {
    font-weight: 600;
    color: var(--primary-color);
}

.header-phone i {
    margin-right: 8px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* === Hero Section === */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1618843479313-40f8afb4b4d8?w=1600&h=900&fit=crop') center/cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0.8));
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 0 30px;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: var(--primary-color);
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* === Page Hero (for internal pages) === */
.page-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1600&h=600&fit=crop') center/cover;
    margin-top: 90px;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0.8));
}

.page-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    font-family: var(--font-primary);
}

.page-hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
}

/* === Inventory Filters === */
.inventory-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 30px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 15px;
    font-family: var(--font-secondary);
    transition: var(--transition);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-select {
    cursor: pointer;
}

.inventory-count {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* === Content Sections === */
.content-section {
    padding: 80px 0;
}

.content-section.alt-bg {
    background-color: var(--bg-card);
}

/* === CTA Box === */
.cta-box {
    text-align: center;
    padding: 80px 60px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(26, 26, 26, 0.95));
    border: 2px solid var(--primary-color);
}

.cta-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-family: var(--font-primary);
}

.cta-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Service Details === */
.services-detailed {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-detailed-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    padding: 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-detailed-item:hover {
    border-color: var(--primary-color);
}

.service-detailed-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary-color);
    background-color: var(--bg-dark);
    border: 2px solid var(--primary-color);
}

.service-detailed-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.service-detailed-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-detailed-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.service-detailed-list li {
    padding: 10px 0 10px 30px;
    color: var(--text-secondary);
    position: relative;
}

.service-detailed-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

/* === Values & Features Grid === */
.values-grid,
.benefits-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card,
.benefit-card,
.feature-item {
    padding: 40px 30px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover,
.benefit-card:hover,
.feature-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.value-icon,
.benefit-icon,
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
    background-color: var(--bg-dark);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.value-title,
.benefit-title,
.feature-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.value-description,
.benefit-description,
.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Process Steps === */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.process-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    padding: 30px;
    background-color: var(--bg-card);
    border-left: 4px solid var(--primary-color);
}

.process-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--bg-dark);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    font-family: var(--font-primary);
}

.process-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.process-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Buyback Forms === */
.buyback-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.buyback-intro p {
    margin-bottom: 20px;
}

.buyback-form-container {
    max-width: 900px;
    margin: 0 auto;
}

.buyback-form {
    padding: 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.buyback-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.buyback-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buyback-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buyback-form input,
.buyback-form select,
.buyback-form textarea {
    padding: 12px 15px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 15px;
    font-family: var(--font-secondary);
    transition: var(--transition);
}

.buyback-form input:focus,
.buyback-form select:focus,
.buyback-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.buyback-form textarea {
    resize: vertical;
}

/* === FAQ Styles === */
.faq-categories {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 60px;
}

.faq-category-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 25px 30px;
    font-size: 18px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    margin: 0;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    color: var(--primary-color);
    font-size: 20px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 30px 25px 65px;
}

.faq-answer p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.faq-answer ul {
    list-style: none;
    padding-left: 0;
}

.faq-answer li {
    padding: 8px 0 8px 25px;
    position: relative;
}

.faq-answer li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* === Map Section === */
.map-section {
    width: 100%;
}

.map-container {
    width: 100%;
    height: 450px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* === Stats Section === */
.stats {
    background-color: var(--bg-card);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Section Styles === */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
}

/* === Inventory Section === */
.inventory {
    padding: 100px 0;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.vehicle-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.vehicle-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-image {
    transform: scale(1.1);
}

.vehicle-info {
    padding: 30px;
}

.vehicle-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
    min-height: 58px;
    display: flex;
    align-items: center;
}

.vehicle-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.vehicle-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vehicle-detail i {
    color: var(--primary-color);
}

.vehicle-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

/* === Services Section === */
.services {
    padding: 100px 0;
    background-color: var(--bg-card);
}

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

.service-card {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    background-color: var(--secondary-color);
}

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* === About Section === */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.about-feature i {
    color: var(--primary-color);
    font-size: 20px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* === Contact Section === */
.contact {
    padding: 100px 0;
    background-color: var(--bg-card);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 24px;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.contact-details h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 16px;
    font-family: var(--font-secondary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* === Footer === */
.footer {
    background-color: var(--secondary-color);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2001;
}

.modal-content {
    position: relative;
    max-width: 1000px;
    margin: 30px auto;
    background-color: var(--bg-card);
    z-index: 2002;
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    z-index: 2003;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.modal-body {
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
}

/* === Vehicle Detail Page === */
.vehicle-detail {
    display: flex;
    flex-direction: column;
}

/* Image Gallery */
.vehicle-gallery {
    position: relative;
    background-color: var(--bg-dark);
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 600px;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.gallery-nav:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.gallery-nav-prev {
    left: 20px;
}

.gallery-nav-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 600;
    z-index: 10;
}

/* Thumbnail Carousel */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px;
    background-color: var(--bg-dark);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-dark);
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.gallery-thumbnail {
    flex: 0 0 auto;
    width: 100px;
    height: 70px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0.6;
}

.gallery-thumbnail:hover {
    opacity: 1;
    border-color: var(--text-secondary);
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vehicle Info Detail */
.vehicle-info-detail {
    padding: 40px;
}

.vehicle-header {
    text-align: center;
    padding: 30px 40px 20px;
    background-color: var(--bg-dark);
    border-bottom: 2px solid var(--primary-color);
}

.vehicle-name {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.vehicle-price-detail {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 0;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background-color: var(--bg-card);
    text-align: center;
}

.spec-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.spec-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.vehicle-description-detail {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    white-space: pre-wrap;
}

.vehicle-description-detail p {
    margin-bottom: 12px;
}

.vehicle-description-detail strong {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vehicle-description-detail ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px 0;
}

.vehicle-description-detail li {
    padding: 6px 0 6px 20px;
    position: relative;
}

.vehicle-description-detail li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.vehicle-actions {
    display: flex;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .vehicle-detail {
        grid-template-columns: 1fr;
    }

    .vehicle-info-detail {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .section-title {
        font-size: 36px;
    }

    .stat-number {
        font-size: 48px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .modal-body {
        padding: 0;
    }

    .vehicle-header {
        padding: 20px 20px 15px;
    }

    .vehicle-name {
        font-size: 28px;
    }

    .vehicle-price-detail {
        font-size: 32px;
    }

    .vehicle-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .vehicle-info-detail {
        padding: 20px;
    }

    .vehicle-actions {
        flex-direction: column;
    }
}

/* === FIX: Vehicle gallery modal should fit the viewport === */
.modal,
.lightbox,
.vehicle-modal {
    overflow: hidden;
}

.modal-content,
.lightbox-content,
.vehicle-modal-content {
    max-width: 95vw;
    max-height: 90vh;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Main image area */
.modal-content img,
.lightbox-content img,
.vehicle-modal-content img,
.modal img,
.lightbox img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

/* Thumbnails strip */
.thumbnails,
.thumbnail-strip,
.gallery-thumbs,
.modal-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    max-width: 100%;
}

/* Make thumbnails a consistent size */
.thumbnails img,
.thumbnail-strip img,
.gallery-thumbs img,
.modal-thumbnails img {
    width: 110px;
    height: 70px;
    object-fit: cover;
    flex: 0 0 auto;
    cursor: pointer;
}

/* Modal header: name + price on one line */
.vehicle-header{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:16px;
  margin: 16px 0 10px;
}

.vehicle-name{
  margin:0;
}

.vehicle-price-detail{
  margin:0;
}

/* Modal description: tighter spacing */
.vehicle-description-detail{
  line-height: 1.35;
}

.vehicle-description-detail p{
  margin: 6px 0;
}

.vehicle-description-detail ul{
  margin: 6px 0 10px;
  padding-left: 18px;
}

.vehicle-description-detail li{
  margin: 4px 0;
}

/* 1) Space after the mini table (specs grid) */
.vehicle-specs{
  margin-bottom: 36px;
}

/* 2) Make description compact */
/* Base text: readable */
.vehicle-description-detail{
  line-height: 1.2;
}

/* Lists: compact */
.vehicle-description-detail ul,
.vehicle-description-detail li{
  line-height: 0.2;
}


/* Paragraphs: small margins */
.vehicle-description-detail p{
  margin: 4px 0;
}

/* Lists: remove big gaps */
.vehicle-description-detail ul{
  margin: 4px 0 10px;
  padding-left: 18px;
}

.vehicle-description-detail li{
  margin: 2px 0;              /* key: each bullet no longer looks like a new paragraph */
}

/* If the headings like "Exterior:" are plain text in <p>, this helps too */
.vehicle-description-detail p strong{
  display: inline;
}

/* Make image container a positioning context */
.vehicle-modal-content,
.modal-content,
.gallery-main,
.modal-image-wrapper {
  position: relative;
}

/* Gallery navigation arrows stick to image edges */
.gallery-prev,
.gallery-next,
.modal-prev,
.modal-next {
  position: absolute;          /* НЕ fixed */
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

/* Left arrow */
.gallery-prev,
.modal-prev {
  left: 12px;                  /* прямо у края фото */
}

/* Right arrow */
.gallery-next,
.modal-next {
  right: 12px;
}

/* Fix: nav arrows should sit on the image edges, not on the viewport */
.gallery-main { position: relative; } /* у тебя уже есть, но пусть будет */

.gallery-nav{
  position: absolute;     /* важно: не fixed */
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

/* Именно твои классы */
.gallery-nav-prev{ left: 12px; }
.gallery-nav-next{ right: 12px; }
