/* ===================================
   Bileris.lt - CSS
   Based on Midnight Blogger Design
   =================================== */

/* CSS Variables */
:root {
    /* ===== Design system (2026) – one restrained palette, one accent ===== */

    /* Brand + accent */
    --ink: #1f2423;            /* primary: header/footer, buttons, headings, text */
    --ink-hover: #2c3331;
    --accent: #4f7cc4;         /* softened blue – focus, active underline, small accents */
    --accent-strong: #305a99;  /* price + accent buttons (white on it = 6.9:1 AA) */
    --accent-soft: #eaf1f9;    /* soft accent fill (pills, lease badge) */

    /* Neutrals – one cool-gray scale */
    --bg: #ffffff;
    --bg-subtle: #f4f6f8;      /* section background (alternates with white) */
    --bg-subtle-2: #eaeef3;
    --border: #e3e8ee;
    --text: #1f2937;
    --text-muted: #59616e;     /* AA 5.0:1 on white */
    --on-dark: #ffffff;
    --on-dark-muted: rgba(255, 255, 255, 0.82);

    /* Status */
    --success-fg: #1f7a3d;
    --success-bg: #e3f1e6;
    --danger-fg: #b3261e;
    --danger-bg: #fdeceb;

    /* Spacing scale: 4 / 8 / 16 / 24 / 32 / 48 / 64 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --section-y: clamp(48px, 7vw, 80px);  /* section vertical rhythm */

    /* Radius + shadow */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 4px rgba(31, 36, 35, 0.04), 0 4px 12px rgba(31, 36, 35, 0.02);
    --shadow: 0 10px 30px rgba(31, 36, 35, 0.06);
    --shadow-lg: 0 20px 40px rgba(31, 36, 35, 0.1), 0 4px 12px rgba(31, 36, 35, 0.05);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Type */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-h1: clamp(30px, 5vw, 40px);
    --fs-h2: clamp(24px, 3.5vw, 30px);
    --fs-h3: 18px;
    --fs-body: 16px;
    --fs-small: 14px;
    --fs-price: 22px;
    --fs-price-lg: clamp(26px, 4vw, 32px);

    /* ===== Legacy aliases – old names now resolve to the new system,
       so existing rules shift coherently instead of being piled over ===== */
    --primary-color: var(--ink);
    --primary-hover: var(--ink-hover);
    --secondary-color: var(--text-muted);
    --featured-color: var(--accent-strong);
    --contrast-light: #ffffff;
    --contrast-dark: #000000;
    --base-color: var(--bg-subtle);
    --mono-1: var(--text);
    --mono-2: var(--text);
    --mono-3: var(--border);
    --mono-4: var(--bg-subtle);
    --muted: var(--text-muted);
    --spacing-xs: var(--space-3);
    --spacing-sm: var(--space-4);
    --spacing-md: var(--space-6);
    --spacing-lg: var(--section-y);
    --spacing-xl: var(--section-y);
    --font-size-small: var(--fs-body);
    --font-size-medium: var(--fs-h3);
    --font-size-large: var(--fs-h2);
    --font-size-xlarge: var(--fs-h2);
    --font-size-xxlarge: var(--fs-h1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--font-size-small);
    line-height: 1.6;
    color: var(--mono-2);
    background-color: var(--bg);
}

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

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: var(--space-3);
}

h1 {
    font-size: var(--fs-h1);
    line-height: 1.15;
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.3;
}

p {
    font-family: var(--font-secondary);
    margin-bottom: var(--space-3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-secondary);
    font-size: var(--font-size-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--contrast-light);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--contrast-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--mono-3);
    color: var(--contrast-light);
}

.btn-outline:hover {
    background-color: var(--mono-4);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--contrast-light);
    color: var(--contrast-light);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-primary-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--contrast-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.main-header {
    background-color: var(--ink);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo h1 {
    color: var(--contrast-light);
    font-size: var(--font-size-medium);
    margin: 0;
    font-weight: 500;
}

.logo img {
    width: 250px;
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--contrast-light);
    font-size: var(--font-size-small);
    font-weight: 500;
    padding: 10px 0;
}

.main-nav a:hover {
    color: var(--mono-3);
}

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

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--contrast-light);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 550px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;

    background-image:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.354) 0%, rgba(0, 0, 0, 0.8) 75%, rgba(0, 0, 0, 0.9) 100%),
        /* Tamsesnis gradientas */
        url("../images/hero-bg.jpg");

    background-size: cover;
    background-position: center center;
    padding: var(--spacing-xl) 0;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(32px, 6vw, 52px);
    line-height: 1.1;
    color: var(--contrast-light);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: var(--space-4);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: var(--fs-h3);
    color: var(--contrast-light);
    margin-bottom: var(--space-5);
    line-height: 1.6;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats Section */
.stats-section {
    padding: var(--spacing-lg) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 40fr 60fr;
    gap: var(--spacing-md);
    align-items: start;
}

.stat-col-left h2 {
    font-size: var(--font-size-xlarge);
    color: var(--mono-1);
}

.stat-box {
    border-left: 4px solid var(--featured-color);
    padding-left: var(--spacing-xs);
}

.stat-numbers {
    display: flex;
    gap: var(--spacing-xs);
    align-items: baseline;
    margin-bottom: 15px;
}

.stat-number {
    color: var(--featured-color);
    font-size: var(--font-size-medium);
    margin: 0;
}

.stat-label {
    color: var(--mono-1);
    font-size: var(--font-size-medium);
    margin: 0;
}

.stat-description p {
    color: var(--secondary-color);
    font-size: var(--font-size-small);
}

/* Featured Cars Section */
.featured-cars {
    padding: var(--section-y) 0;
    background-color: var(--bg-subtle);
}

.section-title {
    text-align: center;
    font-size: var(--font-size-xlarge);
    margin-bottom: var(--spacing-md);
    color: var(--mono-1);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.car-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-soft);
}

.car-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--bg-subtle-2);
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--featured-color);
    color: var(--contrast-light);
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.car-info {
    padding: var(--space-3);
}

.car-title {
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-2);
    color: var(--text);
    /* uniform 2-line title height across cards */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.3em * 2);
}

.car-meta {
    display: flex;
    gap: var(--space-3);
    font-size: var(--fs-small);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
    /* rezervuojam vietą 2 eilutėms (kaip ir su car-title), kad kaina/lizingo
       ženkliukas kortelėse tos pačios eilutės (grid row) visada prasidėtų
       tame pačiame aukštyje, nepriklausomai nuo variklio teksto ilgio */
    align-content: flex-start;
    min-height: calc(2 * 1.6em + var(--space-3));
}

.car-price {
    font-size: var(--fs-price);
    font-weight: 700;
    color: var(--accent-strong);
    margin-bottom: var(--space-3);
}

/* Why Choose Us */
.why-choose-us {
    padding: var(--section-y) 0;
    background-color: var(--bg-subtle);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.feature-box {
    text-align: center;
    padding: var(--spacing-sm);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: var(--font-size-medium);
    margin-bottom: 15px;
}

.feature-box p {
    font-size: var(--font-size-small);
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    padding: var(--section-y) 0;
    background-color: var(--bg);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: var(--font-size-xlarge);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: var(--font-size-medium);
    margin-bottom: 30px;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--contrast-light);
    padding: var(--spacing-sm) 0 var(--spacing-xs);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.footer-col h4 {
    color: var(--contrast-light);
    font-size: var(--font-size-medium);
    margin-bottom: 12px;
}

.footer-col p,
.footer-col a {
    color: var(--mono-3);
    font-size: var(--font-size-small);
    line-height: 1.5;
}

.footer-col a:hover {
    color: var(--contrast-light);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xs);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--mono-3);
    font-size: 14px;
}

/* Contact Section */
.contact-section {
    padding: var(--section-y) 0;
    background-color: var(--bg-subtle);
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-size-medium);
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 35fr 65fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-info-item {
    background-color: white;
    padding: var(--spacing-sm);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-info-item h4 {
    font-size: var(--font-size-medium);
    margin-bottom: 10px;
    color: var(--mono-1);
}

.contact-info-item p {
    font-size: var(--font-size-small);
    color: var(--secondary-color);
    margin: 0;
}

.contact-info-item a {
    color: var(--featured-color);
    font-weight: 600;
}

.contact-form {
    background-color: white;
    padding: var(--spacing-sm);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--mono-1);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    font-size: var(--font-size-small);
    font-family: var(--font-primary);
    border: 2px solid var(--mono-3);
    border-radius: 4px;
    transition: var(--transition);
    background-color: var(--base-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--featured-color);
    background-color: white;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #d32f2f;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success,
.form-error {
    display: none;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-success.show,
.form-error.show {
    display: block;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

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

@media (max-width: 768px) {

    /* Header Mobile */
    .main-header {
        padding: 15px 0;
    }

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

    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--primary-color);
        transition: var(--transition);
        padding: var(--spacing-sm);
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav a {
        display: block;
        padding: 20px;
    }

    .header-cta {
        display: none;
    }

    /* Hero Mobile */
    .hero {
        min-height: 500px;
        padding: var(--spacing-md) 0;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
        letter-spacing: 10px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Cars Grid Mobile */
    .cars-grid {
        grid-template-columns: 1fr;
    }

    /* Features Grid Mobile */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Form Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-sm: var(--space-3);   /* 16 */
        --spacing-md: var(--space-5);   /* 32 */
        --spacing-lg: var(--space-6);   /* 48 */
        --section-y: var(--space-6);    /* 48 */
    }

    .container {
        padding: 0 var(--space-3);
    }

    .hero-title {
        letter-spacing: 2px;
    }

    .btn {
        padding: 10px 20px;
        font-size: var(--fs-small);
    }
}

/* ===================================
   Admin Tabs & Internal Management
   =================================== */
.tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.tab-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5px;
}

.tab-links li {
    margin: 0;
}

.tab-links a {
    display: inline-block;
    padding: 12px 20px;
    background: var(--bg-subtle-2);
    color: var(--text);
    border-radius: 5px 5px 0 0;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.tab-links a:hover {
    background: var(--border);
    text-decoration: none;
}

.tab-links li.active a {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--border);
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

.tab-content {
    display: none;
    padding: 20px 0;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Expenses Table */
.expenses-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.summary-card h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.summary-card .amount {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.summary-card.profit .amount {
    color: #4CAF50;
}

.summary-card.loss .amount {
    color: #f44336;
}

/* Documents List */
.documents-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.document-item {
    background: #fff;
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.doc-icon {
    font-size: 32px;
    color: var(--text-muted);
}

.doc-info {
    flex: 1;
    overflow: hidden;
}

.doc-title {
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

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

.gallery-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
}

.btn-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
    border: none;
}

.btn-icon:hover {
    background: #fff;
    color: #d32f2f;
}
/* ===================================
   Suvienodinti komponentai (2026 redizainas)
   =================================== */

/* Aktyvus meniu punktas */
.main-nav a.active {
    color: #fff;
    position: relative;
}
.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
}

/* Akcento mygtukas */
.btn-accent {
    background-color: var(--accent-strong); /* WCAG AA: #fff on #305a99 = 6.9:1 */
    color: #fff;
}
.btn-accent:hover {
    background-color: #264b80;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Sekcijų antraštės – vieningas „eyebrow + title + subtitle" blokas */
.section-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--spacing-md);
}
.section-intro .section-title,
.section-intro .section-subtitle {
    margin-bottom: 12px;
}
.eyebrow {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent-strong);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-intro p {
    color: var(--muted);
    font-size: var(--font-size-small);
    margin: 0;
}
.section-intro a {
    color: var(--accent-strong);
    font-weight: 600;
}

/* Automobilio kortelė – turinys + apačioje prilipusi kaina/mygtukas */
.car-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.car-info .btn-block {
    margin-top: auto;
}
.car-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Lizingo kainos ženklas (buvęs purpurinis) */
.car-lease-price {
    margin: 6px 0 14px;
    padding: 8px 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* Rekomenduojamo ženklas */
.car-badge.car-badge--featured {
    top: auto;
    bottom: 15px;
    right: 15px;
    background: var(--accent);
}

/* Parduotų / rezervuotų automobilių būsena */
.car-card.is-sold .car-image img,
.car-card.is-reserved .car-image img {
    filter: grayscale(0.7);
}
.car-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    z-index: 2;
}
.car-status-badge.sold { background: var(--danger-fg); }
.car-status-badge.reserved { background: var(--accent-strong); }

.car-price.is-struck {
    color: var(--muted);
    text-decoration: line-through;
    font-size: var(--font-size-medium);
}
.car-sold-note {
    margin-top: auto;
    padding: 12px;
    text-align: center;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
}

/* Filtrų juosta (parduodami / parduoti) */
.filter-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}
.filter-chip {
    padding: 9px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--mono-3);
    background: #fff;
    color: var(--mono-1);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.filter-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Bendros listo sekcijos antraštė puslapio viršuje */
.page-head {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: var(--spacing-lg) 0;
    text-align: center;
}
.page-head h1 { color: #fff; margin-bottom: 10px; }
.page-head p { color: var(--mono-3); margin: 0; font-size: var(--font-size-small); }

/* ===== Atsiliepimai ===== */
.reviews-section { padding: var(--section-y) 0; background: var(--bg); }
.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}
.reviews-summary .big-rating {
    font-size: 44px;
    font-weight: 800;
    color: var(--accent-strong);
    line-height: 1;
}
.stars { color: var(--accent); font-size: 20px; letter-spacing: 2px; }
.stars .empty { color: var(--mono-3); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-sm);
}
.review-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(31, 36, 35, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.review-card .stars { font-size: 16px; }
.review-body { color: var(--secondary-color); line-height: 1.7; flex: 1; margin: 0; }
.review-meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.review-author { font-weight: 700; color: var(--mono-1); }
.review-date { color: var(--muted); }

/* Žvaigždučių pasirinkimas formoje */
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { display: none; }
.rating-input label {
    font-size: 32px;
    color: var(--mono-3);
    cursor: pointer;
    transition: color 0.15s;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: var(--accent); }

.review-form-card {
    max-width: 640px;
    margin: var(--spacing-md) auto 0;
    background: #fff;
    border-radius: var(--radius);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow);
}

/* ===== Bendri pranešimai (alerts) ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
}
.alert-success { background: var(--success-bg); color: var(--success-fg); border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: var(--danger-fg); border: 1px solid #f5c6cb; }

/* ===== Automobilio detalės (perkelta iš inline <style>, perspalvinta) ===== */
.car-details-container { max-width: 1200px; margin: var(--spacing-md) auto; padding: 0 var(--spacing-sm); }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--accent-strong); font-weight: 600; }
.back-link:hover { color: var(--accent); }

.car-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}
.car-details-header h1 { font-size: var(--font-size-xlarge); margin: 0; }
.car-price-large { font-size: var(--font-size-xlarge); font-weight: 800; color: var(--accent-strong); }
.car-lease-large {
    margin-top: 10px; padding: 8px 16px; background: var(--accent-soft);
    color: var(--accent-strong); border-radius: var(--radius-sm); font-weight: 700;
    display: inline-block;
}

.car-details-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-bottom: 40px; }
.car-gallery-main { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.main-image-container { position: relative; width: 100%; aspect-ratio: 4/3; background: var(--mono-4); cursor: pointer; }
.main-image-container img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbnails { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; padding: 15px; background: var(--bg-subtle); }
.thumbnail { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 3px solid transparent; transition: var(--transition); }
.thumbnail:hover { border-color: var(--accent); transform: scale(1.05); }
.thumbnail.active { border-color: var(--accent); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.car-info-panel { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.specs-list { list-style: none; padding: 0; margin: 20px 0 0; }
.specs-list li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.specs-list li:last-child { border-bottom: none; }
.spec-label { color: var(--muted); font-weight: 500; }
.spec-value { color: var(--mono-1); font-weight: 600; text-align: right; }

.car-description { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); margin-bottom: 30px; }
.car-description h2 { font-size: var(--font-size-large); margin-bottom: 15px; }
.car-description p { line-height: 1.8; color: var(--secondary-color); }

.car-features { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); margin-bottom: 30px; }
.car-features h2 { font-size: var(--font-size-large); margin-bottom: 15px; }
.car-equipment-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 24px;
}
.car-equipment-grid li {
    position: relative; padding: 6px 0 6px 26px;
    color: var(--secondary-color); font-size: 15px; line-height: 1.4;
}
.car-equipment-grid li::before {
    content: ""; position: absolute; left: 0; top: 9px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23305a99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E");
    background-size: 12px; background-position: center; background-repeat: no-repeat;
}
@media (max-width: 600px) {
    .car-equipment-grid { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
    .car-equipment-grid li { font-size: 14px; }
}

.detail-contact-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff; border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 24px;
}
.detail-contact-card h3 { color: #fff; margin-bottom: 6px; }
.detail-contact-card p { color: var(--mono-3); font-size: 14px; margin-bottom: 18px; }
.contact-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-full-width { grid-column: 1 / -1; }
.contact-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
    transition: var(--transition); font-size: 14px; border: none; cursor: pointer;
}
.contact-btn:hover { transform: translateY(-2px); }
.btn-call { background: #fff; color: var(--primary-color); }
.btn-call:hover { color: var(--primary-color); }
.btn-offer { background: var(--accent); color: #fff; }
.btn-email { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-email:hover { color: #fff; }

.detail-sold-banner {
    background: var(--danger-fg); color: #fff; border-radius: var(--radius);
    padding: 20px 24px; text-align: center; margin-bottom: 24px;
}
.detail-sold-banner h3 { color: #fff; margin: 0 0 6px; }
.detail-sold-banner p { color: rgba(255,255,255,0.85); margin: 0; font-size: 14px; }

/* Modalas (siūlyti kainą) */
.modal { display: none; position: fixed; z-index: 1000; inset: 0; background: rgba(31,36,35,0.55); overflow-y: auto; }
.modal-content { background: #fff; margin: 6vh auto; padding: 30px; border-radius: var(--radius); width: 90%; max-width: 500px; box-shadow: var(--shadow-lg); position: relative; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h2 { margin: 0; font-size: var(--font-size-large); }
.modal .close { font-size: 28px; font-weight: bold; color: var(--muted); cursor: pointer; line-height: 1; }
.modal .close:hover { color: var(--mono-1); }

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 10000; inset: 0; background: rgba(0,0,0,0.92); cursor: pointer; }
.lightbox-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 92%; max-height: 92%; }
.lightbox-content img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close { position: absolute; top: 20px; right: 40px; font-size: 50px; color: #fff; cursor: pointer; z-index: 10001; }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10001;
    width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,0.14); color: #fff; font-size: 26px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10001;
    color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .5px;
    background: rgba(0,0,0,0.45); padding: 6px 14px; border-radius: 16px;
}
@media (max-width: 600px) {
    .lightbox-nav { width: 42px; height: 42px; font-size: 20px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

@media (max-width: 768px) {
    .car-details-grid { grid-template-columns: 1fr; }
    .car-info-panel { position: relative; top: 0; }
    .car-details-header { flex-direction: column; align-items: flex-start; }
}

/* ===================================
   Šlifavimas: header CTA, žemėlapis, atsiliepimų forma, filtrai (2026)
   =================================== */

/* Kompaktiškas „Skambinti" mygtukas header'yje */
.header-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 11px 22px;
}
.header-call svg { flex-shrink: 0; }
.header-call-num { display: none; }
@media (min-width: 1250px) {
    .header-call-num { display: inline; }
    .header-call-text { display: none; }
}

/* Žemėlapis kontaktuose */
.contact-map {
    margin-top: var(--spacing-md);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(31, 36, 35, 0.08);
    background: #fff;
}
.contact-map iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
}
.contact-map-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    flex-wrap: wrap;
}
.contact-map-addr { font-weight: 600; color: var(--mono-1); }
.btn-sm-map { padding: 9px 18px; font-size: 13px; }

/* Atsiliepimų formos šlifavimas */
.review-form-card {
    border: 1px solid rgba(31, 36, 35, 0.06);
    position: relative;
    overflow: hidden;
}
.review-form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}
.review-form-card .section-title { font-size: var(--font-size-large); }
.review-form-card .form-intro {
    text-align: center;
    color: var(--muted);
    margin-top: -6px;
    margin-bottom: 24px;
}
.rating-input {
    gap: 6px;
    padding: 6px 0;
}
.rating-input label { font-size: 38px; line-height: 1; }
.rating-field {
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.rating-field > label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--accent-strong);
    font-size: 14px;
}

/* Filtrų juosta + listo viršus */
.cars-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}
.cars-toolbar .filter-bar { margin-bottom: 0; }
.cars-count { color: var(--muted); font-weight: 600; font-size: 14px; }

/* „Skambinti" matomas ir mobiliajame */
@media (max-width: 768px) {
    .header-cta { display: block; }
    .header-call { padding: 9px 16px; font-size: 13px; }
    .contact-map iframe { height: 300px; }
}

/* ===== Breadcrumbs ===== */
.breadcrumbs { margin-bottom: 14px; font-size: 14px; }
.breadcrumbs ol {
    list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
    margin: 0; padding: 0; align-items: center;
}
.breadcrumbs li { display: flex; align-items: center; color: var(--muted); }
.breadcrumbs li + li::before { content: '›'; margin: 0 8px; opacity: 0.6; }
.breadcrumbs a { color: var(--accent-strong); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li[aria-current="page"] { color: var(--muted); }
.page-head .breadcrumbs a { color: #fff; }
.page-head .breadcrumbs li,
.page-head .breadcrumbs li[aria-current="page"] { color: rgba(255,255,255,0.85); }

/* ===== Kategorijų navigacija (vidinis linkavimas) ===== */
.category-nav {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--mono-3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
.category-nav-group h3 {
    font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--muted); margin: 0 0 10px;
}
.category-nav-group ul { list-style: none; margin: 0; padding: 0; }
.category-nav-group li { margin-bottom: 6px; }
.category-nav-group a { color: var(--accent-strong); text-decoration: none; font-size: 15px; }
.category-nav-group a:hover { text-decoration: underline; }

/* ===== FAQ / DUK ===== */
.faq-section { padding: var(--spacing-lg) 0; background: var(--mono-4); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--mono-3); border-radius: var(--radius); padding: 0 20px; }
.faq-question {
    cursor: pointer; font-weight: 600; color: var(--mono-1); list-style: none;
    padding: 18px 0; position: relative; padding-right: 32px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 24px; line-height: 1; color: var(--accent-strong);
}
.faq-item[open] .faq-question::after { content: '\2212'; }
.faq-answer { padding: 0 0 18px; color: var(--muted); line-height: 1.6; }
