/* =========================================
   T9 MODEL PAGE STYLES
========================================= */

.e30x-page {
    background-color: #f4f6f9;
    color: #000;
    font-family: 'Noto Sans Georgian', 'Inter', sans-serif;
    /* overflow-x: hidden; ამოღებულია Sticky-ს სამუშაოდ */
}

.e30x-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-50 {
    margin-top: 50px;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 140px;
}
    
/* 1. HERO */
#t9-main-hero {
    background-image: url('https://jacen.jac.com.cn/_nuxt/img/banner-web.36f6ba7.jpg');
}

.e30x-hero {
    height: 75vh;
    /* 100vh-ის ნაცვლად შემცირდა */
    min-height: 450px;
    /* მინიმალური სიმაღლეც შემცირდა */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 10%;
    color: #fff;
}

.e30x-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}

.e30x-hero-content {
    position: relative;
    z-index: 2;
}

.e30x-hero-content h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.e30x-hero-content p {
    font-size: clamp(20px, 3vw, 36px);
    font-weight: 300;
}

/* =========================================
   2. SUB-NAV (Perfect Alignment)
========================================= */
.e30x-subnav {
    position: -webkit-sticky;
    position: sticky;
    top: 75px;
    background: #000;
    color: #fff;
    z-index: 990;
    border-bottom: 1px solid #222;
}

.subnav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

.subnav-brand {
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 1px;
}

/* Flexbox-ის იდეალური ცენტრირება */
.subnav-links {
    display: flex;
    align-items: center;
    /* <--- ეს ასწორებს ვერტიკალურ აცდენას */
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ჩვეულებრივი ლინკები (ბროშურის ღილაკის გარდა) */
.subnav-links a:not(.subnav-btn-brochure) {
    color: #999;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding: 23px 0;
    display: block;
}

.subnav-links a:not(.subnav-btn-brochure):hover,
.subnav-links a.active:not(.subnav-btn-brochure) {
    color: #fff;
}

/* ქვედა ხაზის ანიმაცია (მხოლოდ ჩვეულებრივ ლინკებზე) */
.subnav-links a:not(.subnav-btn-brochure)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #fff;
    transition: width 0.3s ease;
}

.subnav-links a:not(.subnav-btn-brochure):hover::after,
.subnav-links a.active:not(.subnav-btn-brochure)::after {
    width: 100%;
}

/* ბროშურის ღილაკის ზუსტი პოზიციონირება */
.subnav-btn-brochure {
    background-color: #fff;
    color: #000 !important;
    padding: 10px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1;
    /* იცავს ტექსტის გაწელვისგან */
}

.subnav-btn-brochure i {
    font-size: 16px;
    color: #d11f26;
}

.subnav-btn-brochure:hover {
    background-color: #d11f26;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(209, 31, 38, 0.3);
}

.subnav-btn-brochure:hover i {
    color: #fff;
}

.t9-section {
    padding: 120px 0;
}

.section-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 900;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
    color: #000;
}

.section-subtitle {
    font-size: 18px;
    color: #444;
    max-width: 750px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.section-label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.label-line {
    width: 40px;
    height: 2px;
    background-color: #ccc;
    margin: 0 auto 25px;
}

.t9-colors {
    /* ზუსტი გრადიენტი: თეთრიდან სუფთა ღია ნაცრისფერში (#f7f7f7) */
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    padding-bottom: 100px;
}

.t9-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.color-display-wrap {
    max-width: 800px;
    margin: 0 auto;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-display-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

/* გამყოფი ხაზები და ტექსტი */
.color-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 40px;
    max-width: 500px;
}

.color-divider::before,
.color-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dcdcdc;
}

.color-hint {
    padding: 0 20px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
}

/* ფერების წერტილები */
.color-dots {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.color-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* მსუბუქი კანტი ღია ფერებისთვის */
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* გარე შავი რგოლი (აქტიურზე ჩანს) */
.color-dot::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: border-color 0.3s ease;
}

.color-dot.active {
    border-color: transparent;
}

.color-dot.active::after {
    border-color: #111;
}

/* შიდა 'პწიჩკა' */
.check-icon {
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.color-dot.active .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* თეთრ ფერზე პწიჩკა რომ გამოჩნდეს, ვაშავებთ */
.color-dot[data-name="Pearl White"] .check-icon {
    color: #000;
    text-shadow: none;
}

/* დასახელება და დისქლეიმერი */
.color-name-display {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
}

.color-disclaimer {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

/* 5. HIGHLIGHTS */
.e30x-highlights {
    background: #e3cabc;
    padding: 80px 0;
}

.h-flex {
    display: flex;
    align-items: stretch;
    gap: 50px;
}

.h-left {
    width: 30%;
}

.h-left h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 5px;
}

.h-left p {
    font-size: 18px;
    color: #555;
}

.h-right {
    width: 70%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.spec-box {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-label {
    font-size: 12px;
    font-weight: 700;
    color: #444;
}

.spec-val {
    font-size: 16px;
    font-weight: 800;
    color: #000;
}

/* 6. GALLERY & FREE SECTIONS (Exact Style) */

/* Ever so fun - იწყება მწვანე ვერტიკალური გრადიენტით */
#gallery.gallery-main-wrapper {
    /* იწყება თეთრით და მთავრდება ღია ვერცხლისფერით */
    background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
    padding-top: 120px;
    padding-bottom: 40px; /* შევამცირეთ, რომ შემდეგ სექციას რბილად შეერწყას */
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    border-bottom: 1px solid #ddd;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.gal-tab {
    padding: 12px 25px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #888;
    position: relative;
    transition: color 0.3s;
    cursor: pointer;
    background: none;
}

.gal-tab.active {
    color: #000;
}

.gal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #000;
}

.t9-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 8px;
}

.gal-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    visibility: hidden;
}

.gal-img.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.gal-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
}

.gal-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

.gal-arrow.active {
    background: #000;
}

.gal-indicators {
    display: flex;
    gap: 10px;
}

.gal-ind {
    width: 30px;
    height: 3px;
    background: #ddd;
    border-radius: 2px;
    transition: all 0.3s;
}

.gal-ind.active {
    background: #000;
    width: 45px;
}

.gal-full-btn {
    padding: 14px 50px !important;
    font-size: 13px !important;
}

/* 7. FREE SECTION REFINED (Cinematic Loop & Trigger) */
.t9-free-section {
    /* აგრძელებს წინა ფერს და ჩადის უფრო მუქ ვერცხლისფერში */
    background: linear-gradient(180deg, #e6e6e6 0%, #cccccc 100%);
    padding-top: 40px; /* შევამცირეთ დაშორება შეერთების ადგილას */
    padding-bottom: 120px;
}

.t9-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    /* Cinematic Width */
    margin: 60px auto 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.free-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Modal Trigger Icon (Bottom Right) */
.video-modal-trigger {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 12px;
}

.video-modal-trigger:hover {
    background: #d11f26;
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .e30x-free-section {
        padding: 60px 0;
    }

    .e30x-video-wrapper {
        border-radius: 8px;
        margin-top: 30px;
        width: 100%;
        aspect-ratio: 4 / 3;
        /* Better fit for mobile view */
    }

    .video-modal-trigger {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 25px;
    }
}

/* Video Modal Styles */
.history-video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.history-video-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    position: relative;
}

.modal-content video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
}

/* MODAL CLOSE TRIGGER FIX */
.modal-close-trigger {
    position: absolute;
    top: -45px;
    /* ვიდეოს ჩარჩოს ზემოთ გამოტანა */
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10005;
    /* უმაღლესი პრიორიტეტი, რომ სხვა რამემ არ გადაფაროს */
    transition: all 0.3s ease;
}

.modal-close-trigger:hover {
    background: #d11f26;
}

@media (max-width: 768px) {
    .modal-close-trigger {
        top: -40px;
        right: 0;
    }
}


/* FEATURE SLIDER TRACK SETTINGS */
.interior-media-item {
    flex: 100%;
    aspect-ratio: 21 / 9;
    /* იდეალური სინემატიკური პროპორცია ფართო ეკრანებისთვის */
    max-height: 550px;
}

.interior-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .interior-media-item {
        aspect-ratio: 16 / 10;
        /* მობილურზე რომ ძალიან არ დავიწროვდეს */
        max-height: 350px;
    }
}

.feature-track-wrapper {
    width: 100%;
    overflow: hidden;
}

.feature-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.feature-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.e30x-features-wrapper {
    background: #e5e4dd;
}

.feature-slider-section {
    padding: 80px 0 100px;
}

/* მედია ელემენტების რიგი */
.feature-media-row {
    display: flex;
    gap: 25px;
    margin-bottom: 45px;
}

.feature-media-item {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.feature-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-media-row.half-grid .feature-media-item {
    aspect-ratio: 1 / 1;
}

.feature-media-grid-3 {
    display: flex;
    gap: 25px;
    margin-bottom: 45px;
}

.media-main {
    flex: 2.2;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
}

.media-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.media-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    flex: 1;
    min-height: 0;
}

 
/* ვიდეოს პატარა ფლეი ღილაკი სურათზე */
.play-icon-small {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 32px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    transition: all 0.3s ease;
}

.video-trigger {
    cursor: pointer;
}

.video-trigger:hover .play-icon-small {
    background: #d11f26;
}

/* ტექსტის ორსვეტიანი განლაგება */
.feature-content-row {
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding: 50px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-text-left {
    width: 38%;
}

.feature-text-left h3 {
    font-size: 30px;
    font-weight: 800;
    color: #000;
    margin: 0;
}

.feature-text-right {
    width: 58%;
}

.feature-text-right p {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 25px;
}

.spec-link {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.spec-link:hover {
    opacity: 0.7;
}

/* კონტროლები (ისრები და წერტილები) */
.feature-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    margin-top: 10px;
}

.feat-dots {
    display: flex;
    gap: 12px;
}

.f-dot {
    width: 35px;
    height: 3px;
    background: #bbb;
    border-radius: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.f-dot.active {
    background: #000;
    width: 55px;
}

.feat-arrow {
    width: 44px;
    height: 44px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.feat-arrow:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .feature-media-grid-3 {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .media-main {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .media-side {
        flex-direction: row;
        gap: 15px;
        width: 100%;
    }

    .media-side img {
        width: calc(50% - 7.5px);
        height: auto;
        aspect-ratio: 16 / 10;
        flex: unset;
    }

    .feature-media-row {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .feature-media-item, 
    .interior-media-item {
        width: 100%;
        aspect-ratio: 1 / 1;
        max-height: none;
    }

    .feature-media-row.half-grid {
        flex-direction: row;
        gap: 15px;
    }

    .feature-media-row.half-grid .feature-media-item {
        width: calc(50% - 7.5px);
        aspect-ratio: 4 / 5;
    }

    .feature-content-row {
        flex-direction: column;
        gap: 10px;
        padding: 5px 0 0 0;
        border-top: none;
    }

    .feature-text-left,
    .feature-text-right {
        width: 100%;
        text-align: center;
    }

    .feature-text-left h3 {
        font-size: 22px;
        margin-bottom: 5px;
    }

    .feature-text-right p {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .spec-link {
        justify-content: center;
    }

    .feature-slider-controls {
        margin-top: 15px;
        gap: 20px;
    }

    .feat-arrow {
        width: 40px;
        height: 40px;
    }
}

.gal-arrow, .gal-tab, .gal-ind, 
.feat-arrow, .f-dot, 
.color-dot, .video-modal-trigger, .safety-play-btn, .modal-close-trigger, .play-icon-small {
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ANIMATIONS */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* RESPONSIVE */
@media (max-width: 1024px) {

    .e30x-subnav {
        top: 60px; /* თუ შენი მობილურის ჰედერი სხვა სიმაღლისაა, მაგალითად 65px, შესაბამისად შეცვალე აქ */
    }

    .subnav-flex {
        height: 60px;
        min-height: auto;
        padding: 0;
    }

    .subnav-brand {
        display: none;
    }

    .subnav-links {
        display: flex !important;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 20px;
        padding: 0 15px;
        align-items: center;
    }

    .subnav-links::-webkit-scrollbar {
        display: none;
    }

    .subnav-links a:not(.subnav-btn-brochure) {
        white-space: nowrap;
        font-size: 14px;
        padding: 20px 0;
    }

    .subnav-btn-brochure {
        white-space: nowrap;
        padding: 8px 16px !important;
        font-size: 11px !important;
        margin: 0;
        flex-shrink: 0;
    }

    /* ქვედა სექციების ძველი სტილები */
    .h-flex {
        flex-direction: column;
        gap: 30px;
    }

    .h-left {
        width: 100%;
        text-align: center;
    }

    .h-right {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #t9-main-hero {
        background-image: url('https://jacen.jac.com.cn/_nuxt/img/T9_phone_01_02.4a89859.jpg');
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
        line-height: 1.5;
        padding: 0 10px;
    }

    .e30x-hero {
        height: 55vh;
        min-height: 500px; /* რათა ძალიან პატარა ეკრანებზეც არ დაპატარავდეს ზედმეტად */
        background-size: cover;
        background-position: center center;
        padding: 40px 20px 60px; /* ქვემოდან დაშორება ოდნავ გავზარდეთ ტექსტისთვის */
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* ტექსტი ჩამოვიდეს ქვემოთ, რომ მანქანა არ დაფაროს */
        text-align: center;
    }

    .e30x-hero-content h1 {
        font-size: 32px;
        margin-bottom: 5px;
    }

    .e30x-hero-content p {
        font-size: 18px;
    }

    .h-right {
        grid-template-columns: 1fr;
    }

    .t9-gallery {
        aspect-ratio: 4/3;
    }

    /* 4. COLORS - მობილურის ადაპტაცია */
    .e30x-colors {
        padding-top: 60px;
        padding-bottom: 50px;
    }

    .color-display-wrap {
        height: 220px;
    }

    .color-divider {
        margin: 20px auto 30px;
    }

    .color-hint {
        padding: 0 15px;
        font-size: 12px;
    }

    .color-dots {
        gap: 12px;
        margin-bottom: 30px;
    }

    .color-dot {
        width: 30px;
        height: 30px;
    }

    .color-dot::after {
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        border-width: 1px;
    }

    .check-icon {
        font-size: 12px;
    }

    .color-name-display {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .color-disclaimer {
        font-size: 10px;
        padding: 0 15px;
        line-height: 1.4;
    }
}

/* =========================================
   8. SAFETY SECTION
========================================= */
.safety-video-wrapper {
    position: relative;
    max-width: 900px;
    margin: 40px auto 50px;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.safety-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.safety-video-wrapper:hover .safety-video {
    transform: scale(1.02);
    /* ვიდეოზე ოდნავ ნაკლები ზუმი უკეთესია */
}


.safety-play-btn {
    position: absolute;
    bottom: 25px;
    right: 30px;
    width: 50px;
    height: 32px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 14px;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.safety-video-wrapper:hover .safety-play-btn {
    background: #d11f26;
    color: #fff;
}

.safety-bottom-content {
    max-width: 800px;
    margin: 0 auto;
}

.safety-bottom-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: #000;
    line-height: 1.4;
    margin-bottom: 20px;
}

.safety-bottom-content p {
    font-size: 13px;
    color: #000;
    font-weight: 600;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.info-badge {
    background: #555;
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .safety-video-wrapper {
        border-radius: 12px;
        aspect-ratio: 4 / 3;
    }

    .safety-overlay-text {
        font-size: 16px;
        bottom: 15px;
        left: 15px;
    }

    .safety-play-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 28px;
    }

    .safety-bottom-content h3 {
        font-size: 18px;
    }

    .safety-bottom-content p {
        font-size: 12px;
    }
}

/* =========================================
   9. BATTERY SECTION (CINEMATIC FULL WIDTH)
========================================= */

.e30x-battery {
    background-color: #fff;
    padding: 0px;
}

.battery-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 100% !important;
    /* სრული სიგანე */
    margin: 40px 0 0;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-shadow: none;
}

/* ფონის სურათი */
.battery-main-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* ტექსტის ბარათი */
.battery-info-card {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 40%;
    margin-right: 8%;
    /* დაშორება მარჯვენა კიდიდან */
    padding: 60px 45px;
    border-radius: 24px;
    color: #fff;
    text-align: left;
}

.battery-info-title {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.battery-info-desc {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 35px;
}

.battery-specs-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.battery-specs-grid li {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.battery-specs-grid li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.battery-info-card .btn-white-pill {
    background: #fff;
    color: #000;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.battery-info-card .btn-white-pill:hover {
    background-color: #d11f26;
    color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .battery-info-card {
        width: 55%;
        margin-right: 3%;
    }
}

/* --- 7. BATTERY MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .battery-content-wrapper {
        aspect-ratio: 9 / 16;
        /* ვერტიკალური პროპორცია მობილურისთვის */
        min-height: 650px;
        flex-direction: column;
        justify-content: flex-end;
        /* ტექსტი ჩამოვიდეს ქვემოთ სურათზე */
        padding: 40px 15px;
        margin: 30px 0 0;
    }

    .battery-main-bg,
    .battery-main-bg img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .battery-info-card {
        width: 100%;
        margin-right: 0;
        background: rgba(0, 0, 0, 0.75);
        /* გამჭვირვალე მუქი ფონი */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 35px 25px;
        border-radius: 20px;
        /* მომრგვალებული კუთხეები მობილურზეც */
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .battery-info-title {
        font-size: 26px;
    }

    .battery-specs-grid {
        margin-bottom: 30px;
    }

    .battery-specs-grid li {
        font-size: 14px;
        margin-bottom: 12px;
    }
}

/* =========================================
   8.5 MORE FEATURES (BENTO LAYOUT)
========================================= */
.more-features-section {
    background-color: #f8f9fa;
    padding: 100px 0;
}

.mf-banner {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

.mf-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.mf-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 25px;
}

.bento-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
}

.bento-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.bento-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #000;
    line-height: 1.2;
}

.bento-desc {
    font-size: 14.5px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.bento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desktop Grid */
.bento-vertical {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    flex-direction: column;
}

.bento-vertical .bento-img {
    flex-grow: 1;
}

.bento-horizontal {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    flex-direction: row;
}

.bento-horizontal .bento-text {
    flex: 0 0 45%;
    justify-content: center;
}

.bento-horizontal .bento-img {
    flex: 1;
}

.bento-text-only:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.bento-text-only:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.bento-text-only .bento-text {
    justify-content: center;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .mf-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 20px;
    }

    .bento-card {
        flex-direction: column !important;
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    /* მობაილზე ჯერ ფოტო, მერე ტექსტი */
    .bento-card .bento-img {
        order: 1;
        /* ფოტო პირველი */
        height: 250px;
    }

    .bento-card .bento-text {
        order: 2;
        /* ტექსტი მეორე */
        padding: 30px 20px;
    }

    .bento-text-only {
        order: 3;
    }

    /* ტექსტური ბარათები ბოლოში */

    .bento-title {
        font-size: 19px;
    }

    .bento-desc {
        font-size: 13.5px;
    }
}

/* =========================================
   7.5 SMART TECHNOLOGY SECTION
========================================= */
.smart-tech-section {
    background-color: #fff;
    padding: 100px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tech-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* კვადრატული ქარდები */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tech-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tech-card:hover img {
    transform: scale(1.05);
}

.tech-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.5) 100%);
    display: flex;
    align-items: flex-start;
    padding: 40px 30px;
    text-align: center;
}

.tech-card-overlay h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* მობილური ადაპტაცია */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-card {
        aspect-ratio: 4 / 3;
    }

    .tech-card-overlay h3 {
        font-size: 18px;
    }
}


.interior-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 25px;
    margin-top: 40px;
    aspect-ratio: 20 / 9;
    max-height: 550px;
}

.ig-item {
    border-radius: 12px;
    overflow: hidden;
}

.ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ig-item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.ig-item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.ig-item-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

@media (max-width: 768px) {
    .interior-grid-layout {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #000 #e6e6e6;
        gap: 15px;
        padding-bottom: 25px;
        aspect-ratio: auto;
        max-height: none;
    }

    .interior-grid-layout::-webkit-scrollbar {
        display: block;
        height: 6px;
    }

    .interior-grid-layout::-webkit-scrollbar-track {
        background: #e6e6e6;
        border-radius: 10px;
        margin: 0 20px;
    }

    .interior-grid-layout::-webkit-scrollbar-thumb {
        background: #000;
        border-radius: 10px;
    }

    .ig-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    .ig-item-1, 
    .ig-item-2, 
    .ig-item-3 {
        aspect-ratio: 16 / 10;
    }
}


.perf-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    border-bottom: 1px solid #ddd;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.perf-tab {
    padding: 12px 25px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #888;
    position: relative;
    transition: color 0.3s;
    cursor: pointer;
    background: none;
    border: none;
}

.perf-tab.active {
    color: #000;
}

.perf-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #000;
}

.perf-content-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.perf-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.perf-slide.active {
    display: block;
    opacity: 1;
}

.perf-slide-img {
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: 16px;
    overflow: hidden;
}

.perf-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.perf-slide-text {
    max-width: 800px;
    margin: 30px auto 0;
}

.perf-slide-text p {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .perf-slide-img {
        aspect-ratio: 16 / 10;
    }

    .e30x-battery#comfort {
        padding-bottom: 0;
        background: #fff;
    }

    .e30x-battery#comfort .battery-content-wrapper {
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: auto;
    }

    .e30x-battery#comfort .battery-main-bg {
        position: relative;
        width: 100%;
        height: auto;
        display: block;
        overflow: hidden;
    }

    .e30x-battery#comfort .battery-main-bg img {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    .e30x-battery#comfort .battery-info-card {
        position: relative;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        padding: 50px 20px 60px;
        box-shadow: none;
        margin: 0;
        background-color: #000;
        color: #fff;
    }

    .e30x-battery#comfort .battery-info-title {
        color: #fff;
        margin-bottom: 15px;
    }

    .e30x-battery#comfort .battery-info-desc {
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 35px;
    }

    .e30x-battery#comfort .battery-specs-grid li {
        color: #fff;
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
        padding: 15px;
        border: none;
    }
}


.t9-versions-section {
    background-color: #fff;
    padding: 100px 0;
}

.versions-title {
    font-size: 42px;
    font-weight: 700;
    color: #000;
    margin-bottom: 60px;
}

.v-main-flex {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.v-left-img {
    flex: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v-car-img {
    width: 100%;
    height: auto;
    display: none;
    animation: vFadeIn 0.5s ease forwards;
}

.v-car-img.active {
    display: block;
}

@keyframes vFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.v-right-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.versions-tabs {
    background-color: #f4f4f4;
    display: inline-flex;
    border-radius: 50px;
    padding: 0;
    margin-bottom: 50px;
}

.v-tab {
    padding: 12px 40px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.v-tab.active {
    background-color: #a88874;
    color: #fff;
}

.v-details-container {
    border-left: 1px solid #000;
    padding-left: 30px;
    min-height: 180px;
}

.v-content {
    display: none;
    animation: vFadeIn 0.5s ease forwards;
}

.v-content.active {
    display: block;
}

.v-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.v-content ul li {
    font-size: 18px;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.5;
    font-weight: 400;
}

@media (max-width: 768px) {
    .v-main-flex {
        flex-direction: column;
        gap: 40px;
    }
    .versions-title {
        font-size: 30px;
        margin-bottom: 40px;
    }
    .v-right-info {
        align-items: center;
    }
    .v-details-container {
        border-left: none;
        border-top: 1px solid #000;
        padding-left: 0;
        padding-top: 30px;
        text-align: center;
    }
}