/* Zentra Motors Group – papildymai prie Modera main.css (sostena.lt etalonas) */

/* Hero: nuotraukų juostos (kaip sostena.lt sudėtinis baneris), kiekviena – nuoroda.
   Desktop: trys lygios juostos su vienodais tarpais (Renatos maketas 2026-09-08).
   Mobile: juostos slenka pirmyn–atgal kaip sostena.lt „bounce“ fonas (Renatos 2 variantas). */
.c-carousel--home .c-hero {
    display: flex;
    flex-direction: row;
    height: auto;
    padding: 12px 0;
    gap: 10px;
    background-color: #fff;
}
.c-hero__group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.c-hero__panel {
    display: block;
    background: #f2f2f2 no-repeat 50% 50%;
    background-size: cover;
    -webkit-transition: opacity 0.35s ease;
    transition: opacity 0.35s ease;
}
.c-hero__panel:hover {
    opacity: 0.92;
}

/* Mobile / planšetė: slenkanti juosta */
@-webkit-keyframes hero-pan {
    0%   { -webkit-transform: translateX(0); transform: translateX(0); }
    50%  { -webkit-transform: translateX(calc(-100% + 100vw)); transform: translateX(calc(-100% + 100vw)); }
    100% { -webkit-transform: translateX(0); transform: translateX(0); }
}
@keyframes hero-pan {
    0%   { -webkit-transform: translateX(0); transform: translateX(0); }
    50%  { -webkit-transform: translateX(calc(-100% + 100vw)); transform: translateX(calc(-100% + 100vw)); }
    100% { -webkit-transform: translateX(0); transform: translateX(0); }
}
@media (max-width: 767px) {
    .c-carousel--home {
        overflow: hidden;
    }
    .c-carousel--home .c-hero {
        width: -webkit-max-content;
        width: max-content;
        padding: 10px 0;
        will-change: transform;
        -webkit-animation: hero-pan 18s ease-in-out infinite;
        animation: hero-pan 18s ease-in-out infinite;
    }
    .c-hero__panel {
        width: 78vw;
        height: 80vw;
        max-height: 70vh;
    }
    /* Vartotojas paprašė mažiau judesio – rodome statinį variantą (Renatos 1 variantas) */
    @media (prefers-reduced-motion: reduce) {
        .c-carousel--home .c-hero {
            width: auto;
            flex-direction: column;
            -webkit-animation: none;
            animation: none;
        }
        .c-hero__group {
            flex-direction: column;
        }
        .c-hero__panel {
            width: auto;
            height: 48vw;
            max-height: none;
        }
    }
}

@media (min-width: 768px) {
    .c-carousel--home .c-hero {
        flex: 1;
    }
    .c-hero__panel {
        flex: 1;
        height: auto;
        min-height: 0;
    }
    .c-hero__group {
        flex: 2;
    }
}

/* Ženklų logotipai pager juostoje: pilki visuose pločiuose (Renatos maketas), desktop'e pašviesėja užvedus */
.c-carousel--home .c-carousel__page .c-img {
    opacity: 0.5;
    filter: grayscale(100%);
}
/* Logotipų aukščiai: matomos raidės turi būti vienodo aukščio (Renata 2026-09-09).
   Omoda|Jaecoo PNG raidės užima 71,4 % paveikslėlio aukščio, Zeekr SVG – 90,6 %,
   todėl Zeekr aukštis = OJ aukštis × 0,788. OJ aukštis ribojamas ir pločiu (90 % eilutės telefone). */
.c-carousel--home {
    --oj-h: min(36px, calc((100vw - 40px) * 0.0669));
}
.c-carousel--home .c-carousel__page .c-img img.c-logo {
    width: auto;
    max-width: none;
    vertical-align: middle;
}
.c-carousel--home .c-carousel__page .c-img img.c-logo--oj {
    height: var(--oj-h);
    max-height: none;
}
.c-carousel--home .c-carousel__page .c-img img.c-logo--zeekr {
    height: calc(var(--oj-h) * 0.788);
    max-height: none;
}
@media (min-width: 768px) {
    .c-carousel--home .c-carousel__content {
        padding: 18px 0 12px;
    }
    .c-carousel--home .c-carousel__pager {
        flex-wrap: wrap;
        justify-content: center;
    }
    .c-carousel--home .c-carousel__page {
        margin: 0 30px;
        padding: 10px 20px;
    }
    .c-carousel--home .c-carousel__page .c-img {
        height: 50px;
        line-height: 50px;
    }
}
@media (min-width: 992px) {
    .c-carousel--home .c-carousel__page {
        margin: 0 55px;
    }
}

/* Kontaktų blokas – atskira eilutė po logotipais, centre (Renatos maketas) */
.c-carousel--home .c-carousel__page--contacts {
    width: 100%;
    flex: 0 0 100%;
    margin: 15px 0 0 !important;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
    cursor: default;
}
@media (min-width: 768px) {
    .c-carousel--home .c-carousel__page--contacts {
        margin-top: 4px !important;
        padding-top: 10px;
        border-top: 0;
    }
}
.c-carousel--home .c-carousel__page .text {
    margin: 0;
    line-height: 1.6;
}
.c-carousel--home .c-carousel__page .text a {
    color: inherit;
    text-decoration: underline;
}

/* Nuotraukų fokusas siaurose juostose (kad automobilis liktų kadre) */
.c-hero__panel--zeekr  { background-position: 38% 50%; }
.c-hero__panel--omoda  { background-position: 62% 50%; }
.c-hero__panel--jaecoo { background-position: 58% 50%; }

/* Mobile: ženklų logotipai vienas po kitu per visą plotį (Renatos maketas) */
@media (max-width: 767px) {
    .c-carousel--home .c-carousel__page {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Footer: „Privatumo politika“ didžiosiomis, kaip likęs tekstas */
.c-footer__copy-text a {
    color: inherit;
    text-transform: uppercase;
}

/* Navbar: Zentra logotipas centre (dešinėje nėra Sostena Plius banerio) */
.c-navbar__header .l-container {
    justify-content: center;
}
.c-navbar__side {
    display: none;
}

/* Vidiniai puslapiai (privatumo politika) */
.c-page {
    flex: 1;
    padding: 40px 0 60px;
    color: #333;
}
.c-page .l-container {
    max-width: 900px;
}
.c-page h1 {
    margin: 0 0 30px;
    font-size: 1.75em;
    font-weight: 600;
    color: #000;
}
.c-page h2 {
    margin: 40px 0 15px;
    font-size: 1.2em;
    font-weight: 600;
    color: #000;
}
.c-page p {
    margin: 0 0 12px;
}
.c-page .c-sub1 { padding-left: 2em; }
.c-page .c-sub2 { padding-left: 4em; }
.c-page .c-num { display: inline-block; min-width: 1.8em; font-weight: 500; color: #000; }
.c-page ul { margin: 0 0 12px; padding-left: 3em; }
.c-page ul li { margin-bottom: 6px; }
.c-page a { color: #000; text-decoration: underline; }
.c-table-wrap { overflow-x: auto; margin: 15px 0 25px; }
.c-table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.c-table caption { caption-side: top; text-align: left; padding: 0 0 8px; font-weight: 500; color: #000; }
.c-table th, .c-table td { border: 1px solid #ddd; padding: 8px 10px; vertical-align: top; text-align: left; }
.c-table thead th { background: #f2f2f2; color: #000; }
.c-table__group { background: #fafafa; font-weight: 500; }
@media (max-width: 575px) {
    .c-page { padding: 25px 0 40px; }
    .c-page .c-sub1 { padding-left: 1.2em; }
    .c-page .c-sub2 { padding-left: 2.4em; }
}
