/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background: #f7f7f7;
    color: #151515;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}


/* =========================================
   VARIÁVEIS
========================================= */

:root {
    --primary: #f5b400;
    --primary-dark: #d99d00;

    --dark: #101010;
    --dark-2: #171717;

    --light: #f7f7f7;
    --white: #ffffff;

    --gray: #707070;
    --border: #e5e5e5;
}


/* =========================================
   CONTAINER
========================================= */

.container {
    width: min(1180px, 92%);
    margin: auto;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    background: rgba(16, 16, 16, 0.95);

    backdrop-filter: blur(10px);

    z-index: 1000;
}

.nav-container {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    display: flex;
    flex-direction: column;

    color: white;

    line-height: 1;
}

.logo span {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo small {
    color: var(--primary);

    font-size: 9px;

    letter-spacing: 3px;

    margin-top: 4px;
}


/* NAV */

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    color: #ddd;

    font-size: 13px;
    font-weight: 500;

    transition: 0.3s;
}

.nav a:hover {
    color: var(--primary);
}

.nav-button {
    background: var(--primary);

    color: #111 !important;

    padding: 12px 18px;

    border-radius: 6px;

    font-weight: 700 !important;
}

.nav-button:hover {
    background: white;
}


/* MENU MOBILE */

.menu-button {
    display: none;

    background: transparent;
    border: none;

    color: white;

    font-size: 24px;

    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    height: 720px;

    margin-top: 80px;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .85),
            rgba(0, 0, 0, .45),
            rgba(0, 0, 0, .15)
        ),
        url("https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?auto=format&fit=crop&w=2000&q=80");

    background-size: cover;
    background-position: center;

    position: relative;

    overflow: hidden;
}


/* =========================================
   SLIDES
========================================= */

.slide {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;

    opacity: 0;

    transition: opacity .8s ease;

    pointer-events: none;
}

.slide.active {
    opacity: 1;

    pointer-events: auto;
}

.slide-content {
    width: min(650px, 90%);

    margin-left: max(4%, calc((100% - 1180px) / 2));

    color: white;
}


/* TAG */

.tag {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 20px;
}


/* HERO TITLE */

.slide h1 {
    font-size: clamp(44px, 6vw, 76px);

    line-height: 1.05;

    font-weight: 700;

    margin-bottom: 24px;
}

.slide h1 strong {
    color: var(--primary);

    display: block;
}

.slide p {
    color: #ddd;

    max-width: 550px;

    font-size: 17px;

    line-height: 1.7;

    margin-bottom: 35px;
}


/* BUTTON */

.primary-button {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    background: var(--primary);

    color: #111;

    padding: 15px 22px;

    border-radius: 6px;

    font-size: 13px;

    font-weight: 800;

    transition: .3s;
}

.primary-button:hover {
    background: white;

    transform: translateY(-2px);
}


/* =========================================
   CAROUSEL CONTROLS
========================================= */

.carousel-button {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 46px;
    height: 46px;

    border: 1px solid rgba(255, 255, 255, .3);

    background: rgba(0, 0, 0, .3);

    color: white;

    border-radius: 50%;

    cursor: pointer;

    transition: .3s;
}

.carousel-button:hover {
    background: var(--primary);

    color: #111;
}

.prev {
    left: 25px;
}

.next {
    right: 25px;
}


/* DOTS */

.carousel-dots {
    position: absolute;

    bottom: 35px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .4);

    cursor: pointer;
}

.dot.active {
    width: 25px;

    border-radius: 10px;

    background: var(--primary);
}


/* =========================================
   FEATURES
========================================= */

.features {
    background: var(--dark);

    padding: 30px 0;
}

.features-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}

.feature {
    display: flex;

    gap: 15px;

    align-items: center;

    color: white;
}

.feature > i {
    font-size: 25px;

    color: var(--primary);
}

.feature h3 {
    font-size: 13px;

    margin-bottom: 4px;
}

.feature p {
    color: #888;

    font-size: 11px;
}


/* =========================================
   SEÇÕES
========================================= */

.section {
    padding: 110px 0;
}

.section-title {
    max-width: 650px;

    margin-bottom: 60px;
}

.section-title.center {
    text-align: center;

    margin-left: auto;
    margin-right: auto;
}

.section-title span,
.instructor-content > span,
.location-content span,
.cta-content > span {
    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}

.section-title h2 {
    font-size: clamp(34px, 5vw, 50px);

    line-height: 1.1;

    margin: 15px 0;
}

.section-title p {
    color: var(--gray);

    line-height: 1.7;

    font-size: 15px;
}


/* =========================================
   CNH
========================================= */

.cnh-section {
    background: white;
}

.steps {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}

.step {
    border-top: 2px solid var(--border);

    padding-top: 25px;
}

.step-number {
    color: var(--primary);

    font-size: 35px;

    font-weight: 800;

    margin-bottom: 20px;
}

.step h3 {
    font-size: 17px;

    margin-bottom: 12px;
}

.step p {
    color: var(--gray);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================
   AULAS
========================================= */

.classes-section {
    background: #f4f4f4;
}

.classes-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

    max-width: 900px;

    margin: auto;
}


/* =========================================
   CARD COM VIRADA
========================================= */

.class-card-wrapper {
    perspective: 1200px;

    min-height: 620px;
}

.class-card-inner {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 620px;

    transform-style: preserve-3d;

    transition: transform .7s ease;
}

.class-card-wrapper.flipped .class-card-inner {
    transform: rotateY(180deg);
}


/* FRENTE E VERSO */

.class-card {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background: white;

    padding: 45px;

    border-radius: 12px;

    border: 1px solid var(--border);

    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;
}


/* FRENTE */

.class-card-front {
    transform: rotateY(0deg);

    display: flex;

    flex-direction: column;
}


/* VERSO */

.class-card-back {
    transform: rotateY(180deg);

    overflow-y: auto;

    display: flex;

    flex-direction: column;
}


/* BORDA AMARELA */

.class-card.featured {
    border-top: 4px solid var(--primary);
}


/* ÍCONE */

.class-icon {
    width: 60px;
    height: 60px;

    border-radius: 10px;

    background: #fff4cc;

    color: #111;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 25px;

    margin-bottom: 25px;
}


/* CATEGORIA */

.class-category {
    color: var(--primary-dark);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}


/* TÍTULO */

.class-card h3 {
    font-size: 30px;

    margin: 10px 0 15px;
}


/* PARÁGRAFO */

.class-card > p {
    color: var(--gray);

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 25px;
}


/* LISTA */

.class-card ul {
    list-style: none;

    margin-bottom: 30px;
}

.class-card li {
    font-size: 13px;

    margin-bottom: 12px;
}

.class-card li i {
    color: var(--primary-dark);

    margin-right: 8px;
}


/* BOTÃO */

.card-button {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 14px 16px;

    border: 1px solid var(--border);

    border-radius: 6px;

    font-size: 12px;

    font-weight: 700;

    transition: .3s;

    cursor: pointer;

    background: white;
}

.card-button:hover {
    background: var(--dark);

    color: white;
}


/* BOTÃO DA FRENTE NO FINAL */

.class-card-front .card-button {
    margin-top: auto;
}


/* =========================================
   CABEÇALHO DO VERSO
========================================= */

.back-header {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 5px;
}

.back-button {
    width: 34px;
    height: 34px;

    border: 1px solid var(--border);

    background: white;

    border-radius: 6px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    transition: .3s;
}

.back-button:hover {
    background: var(--dark);

    color: white;
}


/* =========================================
   PACOTES
========================================= */

.package-section {
    margin-top: 10px;
}

.package-section h4,
.flexible-box h4,
.ideal-section h4 {
    font-size: 13px;

    margin-bottom: 12px;

    display: flex;

    align-items: center;

    gap: 8px;
}

.package-section h4 i,
.flexible-box h4 i,
.ideal-section h4 i {
    color: var(--primary-dark);
}


/* LISTA DE PACOTES */

.package-list {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.package-item {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 14px;

    border: 1px solid var(--border);

    border-radius: 7px;

    background: #fafafa;
}

.package-item > div {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.package-item strong {
    font-size: 12px;
}

.package-item span {
    color: var(--gray);

    font-size: 10px;
}

.package-price {
    color: var(--primary-dark);

    font-size: 14px !important;
}


/* PACOTE POPULAR */

.package-item.popular {
    border: 2px solid var(--primary);

    background: #fffaf0;
}

.package-item.popular small {
    position: absolute;

    right: 10px;

    top: -9px;

    background: var(--primary);

    color: #111;

    padding: 3px 7px;

    border-radius: 10px;

    font-size: 8px;

    font-weight: 800;
}


/* =========================================
   DURAÇÃO
========================================= */

.duration-box {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px;

    margin-top: 14px;

    background: #f7f7f7;

    border-radius: 7px;
}

.duration-box > i {
    color: var(--primary-dark);

    font-size: 20px;
}

.duration-box div {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.duration-box strong {
    font-size: 11px;
}

.duration-box span {
    color: var(--gray);

    font-size: 10px;
}


/* =========================================
   DISTRIBUIÇÃO
========================================= */

.flexible-box {
    margin-top: 14px;

    padding: 15px;

    background: #fffaf0;

    border-left: 3px solid var(--primary);

    border-radius: 6px;
}

.flexible-box p {
    color: var(--gray);

    font-size: 10px;

    line-height: 1.6;

    margin-bottom: 12px;
}


/* DISTRIBUIÇÃO VISUAL */

.distribution {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-bottom: 10px;
}

.distribution > div {
    background: white;

    border: 1px solid var(--border);

    border-radius: 6px;

    padding: 10px;

    display: flex;

    align-items: center;

    gap: 7px;
}

.distribution i {
    color: var(--primary-dark);

    font-size: 14px;
}

.distribution strong {
    font-size: 10px;
}

.distribution span {
    color: var(--gray);

    font-size: 9px;

    margin-left: auto;
}

.flexible-box small {
    display: block;

    color: #888;

    font-size: 9px;

    line-height: 1.5;
}


/* =========================================
   IDEAL PARA
========================================= */

.ideal-section {
    margin-top: 14px;
}

.ideal-list {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}

.ideal-list span {
    display: flex;

    align-items: center;

    gap: 5px;

    background: #f7f7f7;

    border-radius: 20px;

    padding: 6px 9px;

    font-size: 9px;

    color: #555;
}

.ideal-list i {
    color: var(--primary-dark);
}


/* =========================================
   AULA AVULSA
========================================= */

.back-description {
    margin-bottom: 15px !important;
}


/* VEÍCULO */

.vehicle-section {
    margin-bottom: 13px;
}

.vehicle-section h4 {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    margin-bottom: 8px;
}

.vehicle-section h4 i {
    color: var(--primary-dark);
}


/* HABILIDADES */

.skill-list {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;
}

.skill-list span {
    padding: 6px 8px;

    background: #f7f7f7;

    border-radius: 5px;

    color: #555;

    font-size: 9px;
}


/* =========================================
   INFORMAÇÕES DA AULA
========================================= */

.single-class-info {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 3px;
}

.single-class-info > div {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 11px;

    background: #f7f7f7;

    border-radius: 6px;
}

.single-class-info i {
    color: var(--primary-dark);

    font-size: 17px;
}

.single-class-info span {
    display: flex;

    flex-direction: column;

    gap: 3px;

    font-size: 10px;

    color: var(--gray);
}

.single-class-info strong {
    color: #111;

    font-size: 10px;
}


/* =========================================
   RODAPÉ DO CARD
========================================= */

.back-footer {
    margin-top: auto;

    padding-top: 15px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    border-top: 1px solid var(--border);
}

.back-footer > span {
    color: var(--gray);

    font-size: 10px;
}

.back-footer .card-button {
    width: 100%;
}


/* =========================================
   PROCESSO
========================================= */

.process-section {
    background: white;
}

.process-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}

.process-item {
    text-align: center;
}

.process-icon {
    width: 70px;
    height: 70px;

    margin: auto auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--dark);

    color: var(--primary);

    font-size: 23px;
}

.process-item > span {
    color: var(--primary-dark);

    font-size: 11px;

    font-weight: 800;
}

.process-item h3 {
    margin: 10px 0;

    font-size: 16px;
}

.process-item p {
    color: var(--gray);

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================
   INSTRUTOR
========================================= */

.instructor-section {
    background: var(--dark);

    color: white;
}

.instructor-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}


/* =========================================
   FOTO DO INSTRUTOR
========================================= */

.instructor-photo {
    height: 550px;

    border-radius: 10px;

    overflow: hidden;
}

.instructor-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;
}


/* CONTEÚDO */

.instructor-content h2 {
    font-size: clamp(35px, 5vw, 55px);

    line-height: 1.1;

    margin: 15px 0 25px;
}

.instructor-content p {
    color: #aaa;

    font-size: 14px;

    line-height: 1.8;

    margin-bottom: 15px;
}


/* DESTAQUE DO NOME */

.instructor-intro {
    margin-bottom: 12px !important;
}

.instructor-intro strong {
    color: white;
}


/* =========================================
   ESTATÍSTICAS DO INSTRUTOR
========================================= */

.instructor-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;

    margin: 35px 0;
}

.instructor-stat {
    border-left: 2px solid var(--primary);

    padding: 5px 0 5px 18px;

    display: flex;

    flex-direction: column;

    gap: 4px;
}

.instructor-stat strong {
    color: var(--primary);

    font-size: 28px;

    font-weight: 800;

    line-height: 1;
}

.instructor-stat span {
    color: #aaa;

    font-size: 10px;

    line-height: 1.4;

    text-transform: uppercase;

    letter-spacing: .5px;
}


/* =========================================
   CREDENCIAIS
========================================= */

.credentials {
    margin-top: 35px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.credentials div {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 12px;
}

.credentials i {
    color: var(--primary);
}


/* TEXTO FINAL */

.instructor-final {
    margin-top: 25px !important;

    padding-top: 25px;

    border-top: 1px solid #292929;
}


/* =========================================
   LOCALIZAÇÃO
========================================= */

.location-section {
    background: var(--primary);

    padding: 70px 0;
}

.location-content {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.location-content h2 {
    font-size: 45px;

    margin: 10px 0;
}

.location-content p {
    font-size: 14px;

    margin-bottom: 25px;
}

.location-content .primary-button {
    background: var(--dark);

    color: white;
}

.location-icon {
    font-size: 150px;

    color: rgba(0, 0, 0, .12);
}


/* =========================================
   FAQ
========================================= */

.faq-section {
    background: white;
}

.faq-container {
    max-width: 800px;
}

.faq-list {
    border-top: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;

    background: none;

    border: none;

    padding: 25px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    text-align: left;
}

.faq-question i {
    transition: .3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;

    overflow: hidden;

    transition: max-height .4s ease;
}

.faq-answer p {
    color: var(--gray);

    font-size: 13px;

    line-height: 1.8;

    padding-bottom: 25px;
}


/* =========================================
   CTA
========================================= */

.cta-section {
    background: var(--dark);

    color: white;

    padding: 110px 0;

    text-align: center;
}

.cta-content {
    max-width: 700px;
}

.cta-content h2 {
    font-size: clamp(38px, 6vw, 60px);

    line-height: 1.1;

    margin: 15px 0;
}

.cta-content p {
    color: #aaa;

    margin-bottom: 30px;

    font-size: 14px;
}

.whatsapp-button {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    background: #25D366;

    color: white;

    padding: 16px 25px;

    border-radius: 6px;

    font-size: 13px;

    font-weight: 800;

    transition: .3s;
}

.whatsapp-button:hover {
    transform: translateY(-3px);

    background: white;

    color: #111;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: #080808;

    color: white;
}

.footer-content {
    padding: 70px 0;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 60px;
}

.footer-logo > span {
    font-size: 22px;

    font-weight: 800;

    letter-spacing: 2px;
}

.footer-logo small {
    display: block;

    color: var(--primary);

    font-size: 9px;

    letter-spacing: 3px;

    margin-top: 4px;
}

.footer-logo p {
    color: #777;

    font-size: 12px;

    margin-top: 20px;

    max-width: 250px;

    line-height: 1.7;
}

.footer h4 {
    margin-bottom: 20px;

    font-size: 20px;
}

.footer-links,
.footer-contact {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-links a,
.footer-contact a {
    color: #777;

    font-size: 12px;

    transition: .3s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
}

.footer-contact i {
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #1d1d1d;

    padding: 20px;

    text-align: center;

    color: #555;

    font-size: 10px;
}


/* =========================================
   RESPONSIVO — TABLET
========================================= */

@media (max-width: 900px) {

    /* MENU */

    .nav {
        position: absolute;

        top: 80px;
        left: 0;

        width: 100%;

        background: var(--dark);

        display: none;

        flex-direction: column;

        padding: 25px;
    }

    .nav.active {
        display: flex;
    }

    .menu-button {
        display: block;
    }


    /* GRIDS */

    .features-grid,
    .steps,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* INSTRUTOR */

    .instructor-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .instructor-photo {
        height: 400px;
    }


    /* CARDS */

    .classes-grid {
        max-width: 700px;
    }

}


/* =========================================
   RESPONSIVO — CELULAR
========================================= */

@media (max-width: 650px) {

    /* HEADER */

    .header {
        height: 70px;
    }

    .nav {
        top: 70px;
    }


    /* HERO */

    .hero {
        height: 650px;

        margin-top: 70px;
    }

    .slide-content {
        margin-left: 5%;
    }

    .slide h1 {
        font-size: 43px;
    }

    .slide p {
        font-size: 14px;
    }

    .carousel-button {
        display: none;
    }


    /* GRIDS */

    .features-grid,
    .steps,
    .classes-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        gap: 20px;
    }


    /* SEÇÕES */

    .section {
        padding: 75px 0;
    }


    /* CARDS */

    .class-card-wrapper {
        min-height: 700px;
    }

    .class-card-inner {
        min-height: 700px;
    }

    .class-card {
        padding: 30px;
    }


    /* VERSO DOS CARDS */

    .class-card-back {
        overflow-y: auto;
    }


    /* PACOTES */

    .distribution {
        grid-template-columns: 1fr;
    }

    .single-class-info {
        grid-template-columns: 1fr;
    }


    /* LOCALIZAÇÃO */

    .location-content {
        flex-direction: column;

        align-items: flex-start;
    }

    .location-icon {
        display: none;
    }

    .location-content h2 {
        font-size: 38px;
    }


    /* INSTRUTOR */

    .credentials {
        grid-template-columns: 1fr;
    }

    .instructor-stats {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .instructor-stat {
        flex-direction: row;

        align-items: center;

        gap: 15px;
    }

    .instructor-stat strong {
        min-width: 75px;
    }


    /* FOOTER */

    .footer-content {
        grid-template-columns: 1fr;

        gap: 35px;
    }

}

a:hover{
color: #f5b400;
transition: 0.5s;}

/* =========================================
   VEÍCULOS UTILIZADOS
========================================= */

.vehicles-section {
    background: #f4f4f4;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: auto;
}

.vehicle-card-wrapper {
    perspective: 1200px;
    min-height: 620px;
}

.vehicle-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 620px;
    transform-style: preserve-3d;
    transition: transform .7s ease;
}

.vehicle-card-wrapper.flipped .vehicle-card-inner {
    transform: rotateY(180deg);
}

.vehicle-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.vehicle-card-front {
    transform: rotateY(0deg);
    display: flex;
    flex-direction: column;
}

.vehicle-card-back {
    transform: rotateY(180deg);
    padding: 35px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--primary);
}

.vehicle-image {
    width: 100%;
    height: 310px;
    background: #e9e9e9;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vehicle-card-content {
    padding: 30px 35px 35px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vehicle-category {
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.vehicle-card h3 {
    font-size: 30px;
    margin: 10px 0 15px;
}

.vehicle-card-content p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.vehicle-card-content .card-button {
    margin-top: auto;
}

.vehicle-back-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.vehicle-card-back h3 {
    margin: 10px 0 20px;
    font-size: 30px;
}

.vehicle-info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vehicle-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f7f7f7;
    border-radius: 7px;
}

.vehicle-info-item > i {
    color: var(--primary-dark);
    font-size: 17px;
    margin-top: 2px;
    min-width: 18px;
}

.vehicle-info-item span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--gray);
    font-size: 10px;
    line-height: 1.4;
}

.vehicle-info-item strong {
    color: #111;
    font-size: 10px;
}

.vehicle-back-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: var(--gray);
    font-size: 10px;
}

@media (max-width: 900px) {

    .vehicles-grid {
        max-width: 700px;
    }

}

@media (max-width: 650px) {

    .vehicles-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-card-wrapper,
    .vehicle-card-inner {
        min-height: 700px;
    }

    .vehicle-card-back {
        padding: 30px;
    }

    .vehicle-image {
        height: 300px;
    }

    .vehicle-info-list {
        grid-template-columns: 1fr;
    }

}
