:root {
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    overflow-x: hidden;
}

.page-bg {
    background: #f5f7fa;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

.container-pad {
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-pad {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.hero-grid {
    min-height: auto;
}

.hero-trust-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    max-width: 34rem;
    margin-top: 1.15rem;
    column-gap: 2.1rem;
    row-gap: .42rem;
    color: #475569;
    font-size: .8rem;
    font-weight: 650;
    line-height: 1.35;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
}

.hero-trust-dot {
    display: inline-block;
    width: .38rem;
    height: .38rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #009b4f;
}

.card {
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
    border-color: rgba(16, 185, 129, .38);
}

.model-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: .85rem;
    background: #f1f5f9;
}

.model-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.pagination-link {
    display: inline-flex;
    min-width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: .8rem;
    background: #ffffff;
    padding: 0 .95rem;
    color: #07111f;
    font-size: .85rem;
    font-weight: 900;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.pagination-link:hover,
.pagination-link.is-active {
    border-color: #009b4f;
    background: #009b4f;
    color: #ffffff;
    transform: translateY(-1px);
}

.menu-line,
.menu-line::before,
.menu-line::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: #07111f;
    content: "";
    transition: transform .18s ease, opacity .18s ease;
}

.menu-line::before {
    transform: translateY(-6px);
}

.menu-line::after {
    transform: translateY(4px);
}

.mobile-menu-button[aria-expanded="true"] .menu-line {
    transform: rotate(45deg);
}

.mobile-menu-button[aria-expanded="true"] .menu-line::before {
    opacity: 0;
}

.mobile-menu-button[aria-expanded="true"] .menu-line::after {
    transform: translateY(-2px) rotate(90deg);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.model-detail-hero {
    background-image: radial-gradient(#dbe8f1 1px, transparent 1px);
    background-size: 20px 20px;
}

.model-showcase img {
    display: block;
}

.model-facts-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.model-fact,
.detail-panel,
.similar-ev-card {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
}

.model-fact {
    min-height: 8rem;
    border-radius: 1rem;
    padding: 1.15rem;
}

.detail-panel {
    border-radius: 1.25rem;
}

.similar-ev-card {
    overflow: hidden;
    border-radius: 1.15rem;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.similar-ev-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, .38);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .11);
}

.similar-ev-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #eef5f0);
}

.similar-ev-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.similar-ev-card:hover .similar-ev-media img {
    transform: scale(1.035);
}

.comparison-table {
    min-width: 760px;
}

.comparison-table th,
.comparison-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    text-align: left;
    vertical-align: top;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.filter-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    background: #ffffff;
    padding: .85rem 1rem;
    font-size: .95rem;
    font-weight: 600;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.filter-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}

.hero-city {
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 18px 18px;
}

.hero-ambient {
    background-color: #ffffff;
}

.brand-tile {
    min-height: 5rem;
}

.market-band {
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
}

.site-footer {
    position: relative;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.footer-cta,
.footer-main {
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
}

.footer-cta {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2.5rem;
    border-radius: 1.25rem;
    background: #07111f;
    padding: 1.5rem;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.footer-cta-copy p {
    color: #86efac;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.footer-cta-copy h2 {
    max-width: 46rem;
    margin-top: .8rem;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 900;
    line-height: 1.05;
}

.footer-cta-copy span {
    display: block;
    max-width: 44rem;
    margin-top: .85rem;
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    line-height: 1.75;
}

.footer-cta-actions {
    display: grid;
    gap: .75rem;
}

.footer-primary-btn,
.footer-secondary-btn {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    padding: .85rem 1.1rem;
    font-size: .88rem;
    font-weight: 900;
    text-align: center;
}

.footer-primary-btn {
    background: #009b4f;
    color: #ffffff;
}

.footer-secondary-btn {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.footer-main {
    display: grid;
    gap: 2.5rem;
    align-items: start;
    padding: 3rem 0 3.5rem;
}

.footer-logo {
    height: 3rem;
}

.footer-brand p {
    max-width: 27rem;
    margin-top: 1.2rem;
    color: #64748b;
    font-size: .95rem;
    line-height: 1.85;
}

.footer-contact {
    display: grid;
    gap: .45rem;
    margin-top: 1.25rem;
    font-size: .9rem;
    font-weight: 800;
}

.footer-contact a,
.footer-menu a {
    color: #64748b;
    transition: color .18s ease;
}

.footer-contact a:hover,
.footer-menu a:hover {
    color: #009b4f;
}

.footer-menu-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
}

.footer-menu h2 {
    color: #07111f;
    font-size: .9rem;
    font-weight: 900;
}

.footer-menu ul {
    display: grid;
    gap: .8rem;
    margin: 1.05rem 0 0;
    padding: 0;
    list-style: none;
}

.footer-menu a {
    font-size: .95rem;
    line-height: 1.4;
}

.footer-floating-contact {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #009b4f;
    padding: .78rem 1.15rem;
    color: #ffffff;
    font-size: .85rem;
    font-weight: 900;
    box-shadow: 0 18px 34px rgba(0, 155, 79, .25);
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding: 1.25rem 1rem;
    color: #64748b;
    font-size: .78rem;
    text-align: center;
}

.fade-in {
    animation: fadeIn .32s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 640px) {
    .container-pad {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .section-pad {
        padding-top: 4.25rem;
        padding-bottom: 4.25rem;
    }

    .spec-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .model-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-cta-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .container-pad {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .section-pad {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .model-facts-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-cta {
        grid-template-columns: 1.35fr .65fr;
        padding: 2rem;
    }

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

    .footer-main {
        grid-template-columns: minmax(20rem, .9fr) minmax(0, 1.55fr);
    }
}

@media (max-width: 767px) {
    .hero-trust-list {
        grid-template-columns: 1fr;
        max-width: 100%;
        font-size: .78rem;
    }

    .hero-city {
        background-size: 16px 16px;
    }

    main section > .mx-auto {
        width: 100%;
        max-width: 100%;
    }

    .model-hero-grid {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .model-hero-grid > *,
    .model-showcase,
    .model-fact,
    .detail-panel,
    .similar-ev-card {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
    }

    .model-detail-hero p,
    .detail-panel p,
    .model-fact p {
        overflow-wrap: anywhere;
    }

    .model-detail-hero h1 {
        max-width: 100%;
        font-size: 2.25rem;
        line-height: 1.02;
        overflow-wrap: normal;
    }

    .model-detail-hero .hero-copy {
        width: calc(100vw - 4rem);
        max-width: calc(100vw - 3rem);
    }

    .detail-panel p {
        width: 100%;
        max-width: calc(100vw - 5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
