/* =========================================================================
   VARIABLES & BASE STYLES
   ========================================================================= */
:root {
    --primary-color: #003781;  /* Allianz Blue */
    --primary-light: #0056b3;  /* Lighter Blue */
    --accent-color: #003781;   /* Primary Allianz Blue */
    --accent-hover: #002b66;   /* Darker Blue Hover */
    --text-dark: #2d3748;      /* Deep Slate for main text */
    --text-light: #ffffff;
    --text-muted: #5a6578;     /* Darker slate - passes WCAG AA 4.5:1 */
    --bg-main: #ffffff;        /* Pure white for modern clean look */
    --bg-gray: #f8fafc;        /* Very light gray for sections */
    --bg-dark: #003781;        /* Use Allianz Blue for dark sections */
    --bg-slate: #f1f5f9;       /* Light slate/grey for contrast */
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 55, 129, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-main);
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Nav container specifically should be full width for logo to be on far left */
.nav-container {
    max-width: 100% !important;
    padding: 12px 40px !important;
}

.section-padding {
    padding: 80px 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

.bg-gray {
    background-color: var(--bg-gray);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark p, .bg-dark span {
    color: var(--text-light);
}

.bg-dark .stat-label, .bg-dark .stat-icon, .bg-dark .plus {
    color: var(--text-light);
}

.bg-dark .stat-number {
    color: var(--text-light);
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-green { color: #10b981; }
.text-blue { color: #3b82f6; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-body); /* Changed to body for generic clean look */
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent; /* thinner border */
    text-align: center;
}

.msg-form .btn-primary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
}

.msg-form .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 55, 129, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Body lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Animations Setup */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Zrušení opožděných animací na mobilech (protože se prvky řadí pod sebe) */
@media (max-width: 768px) {
    .fade-in-up {
        transition-delay: 0s !important;
    }
}

/* Fallback: no JS – show everything */
.no-js .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Fallback: reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================================================
   1. NAVIGATION
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    color: var(--text-dark);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100px;
    transition: height 0.3s ease;
    gap: 0;
}

.navbar.scrolled .nav-container {
    height: 75px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--primary-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.divider {
    height: 1px;
    background-color: var(--glass-border);
    margin: 5px 0;
}

.btn-contact {
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    border: 1px solid transparent;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background-color: #c95514; /* Assuming some brand orange color */
    color: #fff;
}

.nav-links .btn-contact {
    margin-left: 4px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    margin-left: auto;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* =========================================================================
   2. HERO SECTION
   ========================================================================= */
.hero {
    position: relative;
    height: 60vh;
    min-height: 600px;
    overflow: hidden;
    background-color: #fff;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, transform 1s ease;
    transform: scale(1.05); /* subtle zoom out effect */
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.slide-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    max-width: 1100px;
    padding: clamp(40px, 8vh, 120px) 20px;
    margin-left: 0;
    text-align: left;
}

.slide-badge {
    display: inline-block;
    padding: 8px 18px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.slide-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    word-break: break-word;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 0;
}

.slide-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    z-index: 10;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 55, 129, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* =========================================================================
   3. SEARCH FORM
   ========================================================================= */
.search-section {
    position: relative;
    margin-top: -60px;
    z-index: 20;
    padding: 0 20px;
}

.search-panel {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.search-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--accent-color);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: var(--transition);
}

.tab-btn.active::after {
    background-color: var(--accent-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.msg-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-select-wrapper select,
.form-group select,
.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: #fff;
    transition: var(--transition);
    outline: none;
}

.custom-select-wrapper select,
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23003781' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.custom-select-wrapper select:focus,
.form-group select:focus,
.form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    background-color: var(--bg-slate);
}

.search-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.advanced-search-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.advanced-search-link:hover {
    color: var(--accent-color);
}

.btn-search {
    padding: 12px 40px;
    font-size: 1.1rem;
}

.search-note {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

/* =========================================================================
   COMMON SECTION STYLES
   ========================================================================= */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    word-break: break-word;
}

.title-line {
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
    margin-bottom: 25px;
}

.title-line.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 50px;
}

.center .section-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.light-text .section-title,
.light-text .section-desc {
    color: var(--text-light);
}

/* =========================================================================
   4. BODY TYPES
   ========================================================================= */
.body-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
}

.body-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px 15px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.body-card:hover {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.body-icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    transition: var(--transition);
}

.body-card:hover .body-icon {
    color: var(--accent-color);
}

.body-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.body-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================================================
   5. HOW IT WORKS
   ========================================================================= */
.timeline {
    max-width: 800px;
    margin: 0 auto 50px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 1px;
    background-color: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    padding-top: 10px;
}

.timeline-content p {
    color: var(--text-muted);
}

.how-it-works-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.how-it-works-cta .btn-outline {
    border-color: var(--glass-border);
    color: var(--text-muted);
}

.how-it-works-cta .btn-outline:hover {
    border-color: var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
}

/* =========================================================================
   6. PRICING
   ========================================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.card-head {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.card-head h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-head p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.pricing-list li span {
    margin-left: auto;
    font-weight: 600;
    color: var(--text-dark);
}

.pricing-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: underline;
}

.pricing-link:hover {
    color: #c95514; /* Orange hover instead of white */
}

/* =========================================================================
   7. STATS
   ========================================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .stat-number { font-size: 2.4rem; }
    .plus { font-size: 2.4rem; }
    .stat-icon { font-size: 2rem; margin-bottom: 8px; }
    .stat-label { font-size: 0.75rem; letter-spacing: 0.5px; }
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.plus {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================================================
   8. CUSTOM CAR (AUTO NA KLÍČ)
   ========================================================================= */
.custom-car-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.badge-tag {
    display: inline-block;
    background-color: var(--bg-slate); /* Slate for better pop vs bg-gray */
    color: var(--accent-color); /* White instead of black for contrast */
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benefits-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.b-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(232, 101, 26, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.b-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.b-text span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.lead-form {
    background: var(--primary-light);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.lead-form h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--bg-gray);
    padding-bottom: 15px;
}

.form-row {
    margin-bottom: 20px;
}

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

.radio-label input[type="radio"], 
.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    accent-color: var(--accent-color);
}

.form-block-title {
    font-weight: 700;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.radio-group span {
    font-weight: 600;
    font-size: 0.9rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 400 !important;
    text-transform: none !important;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    text-transform: none;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.full-width {
    width: 100%;
}

/* =========================================================================
   9. FINANCE CALCULATOR
   ========================================================================= */
.calc-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: #ffffff;
}

.range-group {
    margin-bottom: 30px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.range-header label {
    font-weight: 600;
    color: #ffffff;
}

.range-value {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
}

/* Range input styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e1e1e1;
    border-radius: 3px;
}
input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.calc-results {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.result-box.main {
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.result-box.main h4 {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.result-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
}

.res-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.res-item strong {
    font-weight: 700;
    color: #ffffff;
}

.calc-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
}

.mt-4 { margin-top: 20px; }

/* =========================================================================
   10. GALLERY (RECENTLY IMPORTED)
   ========================================================================= */
.gallery-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.btn-insta {
    margin-bottom: 50px;
}

.horizontal-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-left: max(20px, calc((100% - 1200px) / 2));
}

.scroll-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 40px;
    padding-right: 40px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.scroll-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.scroll-track .car-card {
    min-width: min(85vw, 350px);
    background-color: var(--primary-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    color: var(--text-dark);
    flex-shrink: 0;
}

.car-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.car-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.car-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: #000; /* Dark text on white background */
    padding: 6px 15px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: var(--font-heading);
}

.car-info {
    padding: 25px;
}

.car-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.car-specs span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.car-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.scroll-hint {
    text-align: center;
    color: #aaa;
    font-size: 0.85rem;
    margin-top: -10px;
}

/* =========================================================================
   11. CONTACT
   ========================================================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    text-align: left;
}

.contact-info,
.contact-form-area {
    text-align: left;
}

.contact-phone {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: left;
}

.contact-phone:hover {
    color: var(--accent-color);
}

.contact-details {
    margin-bottom: 40px;
    text-align: left;
}

.c-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: flex-start;
    text-align: left;
}

.c-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.c-item strong {
    display: block;
    margin-bottom: 5px;
}

.c-item span, .c-item a {
    color: var(--text-muted);
}

.c-subtext {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.google-rating {
    background-color: var(--bg-gray);
    padding: 20px;
    border-radius: var(--radius-md);
    display: inline-block;
    border: 1px solid var(--glass-border);
}

.stars {
    color: #fbbc05;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.msg-form {
    background: var(--primary-color);
    border: none;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Contact form - specific styles */
.msg-form .custom-select-wrapper select,
.msg-form .form-group select,
.msg-form .form-group input:not([type="radio"]):not([type="checkbox"]),
.msg-form .form-group textarea {
    background-color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-dark);
    padding: 16px 18px;
    margin-bottom: 20px;
}

.msg-form .custom-select-wrapper select:focus,
.msg-form .form-group select:focus,
.msg-form .form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.msg-form .form-group textarea:focus {
    border-color: #ffffff;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.msg-form .btn-primary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
}

.msg-form .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* =========================================================================
   12. FOOTER
   ========================================================================= */
.footer {
    background-color: var(--primary-color); /* Allianz Dark Blue */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.4fr 1fr;
    gap: 54px;
    margin-bottom: 60px;
    align-items: start;
}

.footer-col {
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-col > * {
    width: 100%;
}

.footer-col:not(:first-child) {
    padding-top: 8px;
}

.footer-logo {
    color: #fff;
    margin-bottom: 20px;
    display: inline-block;
    text-align: left;
}

.footer-text {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 520px;
}

.company-info p {
    font-size: 0.85rem;
    margin: 0 0 8px;
}

.footer-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.footer-links li {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    text-align: left;
}

.footer-links li i {
    color: var(--accent-color);
    margin-top: 4px;
    min-width: 14px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: #000;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
    color: #fff;
}

/* =========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================= */
@media (max-width: 1200px) {
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 992px) {
    .custom-car-wrapper,
    .calc-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-header-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-insta {
        margin-bottom: 30px;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
    .hero { height: 60vh; min-height: 500px; padding-bottom: 0; }
    .slide-title { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 15px; }
    .slide-subtitle { font-size: 1rem; margin-bottom: 30px; }
    .slide-content { padding: clamp(30px, 5vh, 80px) 20px; justify-content: center; max-width: 100%; }
    .slide-actions { flex-direction: column; gap: 12px; }
    .slide-actions .btn { width: 100%; min-height: 48px; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background-color: var(--primary-color); /* Allianz Blue Background */
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        z-index: 1001;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 0;
        text-align: center;
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateY(16px);
    }

    .nav-menu.active .nav-links li {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active .nav-links li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active .nav-links li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active .nav-links li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active .nav-links li:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active .nav-links li:nth-child(5) { transition-delay: 0.25s; }

    .nav-links .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        padding: 16px 20px;
        display: block;
        color: #fff;
        min-height: 48px;
    }

    .nav-links .btn-contact {
        margin-top: 15px;
        font-size: 1.1rem;
        background-color: #fff;
        color: var(--primary-color) !important;
        display: inline-block;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span {
        background-color: #fff;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255,255,255,0.05);
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li a {
        color: #fff;
    }
    
    .form-row.two-cols {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-num {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal a {
        margin: 0 10px;
    }
    
    .search-actions {
        flex-direction: column-reverse;
        gap: 20px;
        align-items: stretch;
        text-align: center;
    }
    
    .btn-search {
        width: 100%;
        padding: 15px 20px;
    }
    
    .advanced-search-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .slide-title { font-size: 1.65rem; }
    .container { padding: 0 20px; }
}

/* =========================================================================
   BLOG PAGES
   ========================================================================= */

/* Blog Hero */
.blog-hero {
    background: #fff;
    color: var(--text-dark);
    padding: 100px 0 60px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}
.blog-hero .section-title { color: var(--primary-color); }
.blog-hero .section-desc { color: var(--text-muted); }

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 28px;
}
.blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.blog-card:hover {
    border-color: var(--accent-color);
}
.blog-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: #cbd5e1;
}
.blog-card-body { padding: 20px; }
.blog-card-date { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 8px; }
.blog-card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.blog-card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.blog-card-link { font-size: 14px; font-weight: 600; color: var(--accent-color); }
.blog-card-link i { transition: transform .2s; }
.blog-card:hover .blog-card-link i { transform: translateX(4px); }

/* Blog Pagination */
.blog-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin-top: 40px;
}
.pagination-info { font-size: 14px; color: var(--text-muted); }

/* Blog Empty */
.blog-empty {
    text-align: center; padding: 80px 20px;
}
.blog-empty h2 { font-size: 24px; margin-bottom: 12px; }
.blog-empty p { color: var(--text-muted); margin-bottom: 24px; }

/* ===== Single Post Page ===== */
.post-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex; align-items: flex-end;
}
.post-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 30%, rgba(10,22,40,.85));
}
.post-hero-content {
    position: relative; z-index: 2;
    padding-bottom: 40px; color: #fff;
}
.post-hero-content h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.post-meta { font-size: 14px; color: rgba(255,255,255,.8); display: flex; gap: 16px; }

.post-header-simple {
    background: var(--primary-color); color: #fff;
    padding: 80px 0 40px; text-align: center;
}
.post-header-simple h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.post-header-simple .post-meta { justify-content: center; color: rgba(255,255,255,.6); }

.post-container { max-width: 780px; margin: 0 auto; }
.post-content { font-size: 17px; line-height: 1.8; color: var(--text-dark); }
.post-content p { margin-bottom: 1.2em; }
.post-content h2, .post-content h3, .post-content h4 { margin: 1.8em 0 .6em; font-weight: 700; }
.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 22px; }
.post-content h4 { font-size: 18px; }
.post-content blockquote {
    margin: 1.5em 0; padding: 20px 24px;
    border-left: 4px solid var(--accent-color);
    background: var(--bg-gray); border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}
.post-content blockquote cite { display: block; margin-top: 8px; font-size: 14px; color: var(--text-muted); font-style: normal; }
.post-content ul, .post-content ol { margin: 1em 0; padding-left: 1.5em; }
.post-content li { margin-bottom: .4em; }
.post-content .content-image { margin: 1.5em 0; }
.post-content .content-image img { border-radius: var(--radius-md); max-width: 100%; height: auto; display: block; }
.post-content .content-image figcaption { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 8px; }
.post-content .img-small { max-width: 25%; }
.post-content .img-medium { max-width: 50%; }
.post-content .img-large { max-width: 75%; }
.post-content .img-full { max-width: 100%; }
.post-content .align-left { margin-right: auto; margin-left: 0; }
.post-content .align-center { margin-left: auto; margin-right: auto; }
.post-content .align-right { margin-left: auto; margin-right: 0; }
.post-content .img-wrap.align-left { float: left; margin: 0.25em 1.5em 1em 0; width: auto; }
.post-content .img-wrap.align-right { float: right; margin: 0.25em 0 1em 1.5em; width: auto; }
.post-content .img-wrap.img-small { width: 25%; max-width: 25%; }
.post-content .img-wrap.img-medium { width: 50%; max-width: 50%; }
.post-content .img-wrap.img-large { width: 75%; max-width: 75%; }
.post-content .content-divider { border: none; border-top: 2px solid #e2e8f0; margin: 2em 0; clear: both; }
.post-content h2, .post-content h3, .post-content h4 { clear: both; }
.post-content p a, .post-content li a { color: var(--primary); text-decoration: underline; }
.post-content p a:hover, .post-content li a:hover { opacity: .8; }

.post-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid #e2e8f0; }

@media (max-width: 768px) {
    .post-hero { height: 280px; }
    .post-hero-content h1 { font-size: 24px; }
    .post-header-simple h1 { font-size: 24px; }
    .post-content { font-size: 16px; }
}

/* =========================================================================
   PUBLIC CAR LISTING
   ========================================================================= */

/* Cars Hero */
.cars-hero {
    background: #fff;
    color: var(--text-dark);
    padding: 100px 0 60px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}
.cars-hero .section-title { color: var(--primary-color); }
.cars-hero .section-desc { color: var(--text-muted); }

/* Cars Filters */
.cars-filters {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 32px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}
.cars-filter-form {}
.cars-filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}
.cars-filter-row:last-child { margin-bottom: 0; }
.cars-filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark); /* High contrast */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.cars-filter-group input,
.cars-filter-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-body);
    background: #fff;
    color: var(--text-dark);
    transition: var(--transition);
}
.cars-filter-group input:focus,
.cars-filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 55, 129, 0.1);
}
.cars-filter-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.cars-filter-actions .btn { flex: 1; padding: 10px 14px; font-size: 14px; }
.btn-outline-dark {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--text-dark);
}
.btn-outline-dark:hover {
    border-color: var(--text-dark);
    background: var(--bg-gray);
}

/* Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

/* Car Card */
.car-card {
    background: var(--primary-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.car-card:hover {
    border-color: var(--accent-color);
}

.car-card-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e2e8f0;
}
.car-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.car-card:hover .car-card-img img { transform: scale(1.05); }

.car-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: #cbd5e1;
}

.car-card-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .3px;
}

/* =========================================================================
   SERVICES SECTION
   ========================================================================= */
.services-section .section-header {
    max-width: 620px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.service-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.6s ease;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card-right {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    order: -1;
}

.service-card-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.service-card:hover .service-card-right img {
    transform: scale(1.07);
}

.service-card-left {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background: var(--primary-color);
    transition: background 0.3s ease;
    flex: 1;
}

.service-card:hover .service-card-left {
    background: #ffffff;
}

.service-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    transition: background 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background: rgba(0, 55, 129, 0.1);
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    line-height: 1.35;
    transition: color 0.3s ease;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.service-card:hover h3 {
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.services-more {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.services-more .link-accent {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.services-more .link-accent:hover {
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .service-card-right {
        height: 120px;
    }
    .service-card-left {
        padding: 10px 10px 12px;
        gap: 10px;
    }
    .service-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
        flex-shrink: 0;
    }
    .service-card h3 {
        font-size: 0.8rem;
    }
}

/* =========================================================================
   WHY US
   ========================================================================= */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.why-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.6s ease;
    box-shadow: var(--shadow-sm);
}

.why-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 55, 129, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.why-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 900px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .why-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   HOW WE WORK (PROCESS)
   ========================================================================= */
.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin: 48px 0 40px;
    flex-wrap: nowrap;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.step-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.process-connector {
    flex-shrink: 0;
    padding: 0 8px;
    padding-top: 18px;
    color: rgba(255,255,255,0.2);
    font-size: 14px;
}

.process-cta {
    text-align: center;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 16px;
    }
    .process-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    .process-connector {
        display: none;
    }
    .step-content {
        flex: 1;
    }
    .step-num {
        margin-top: 2px;
    }
}

/* =========================================================================
   ABOUT US
   ========================================================================= */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text .badge-tag {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.75;
}

.about-values {
    list-style: none;
    margin: 24px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-values li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.about-values li i {
    color: #4ade80;
    flex-shrink: 0;
}

.about-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-img-wrap:hover img {
    transform: scale(1.03);
}

.about-badge-box {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.about-stat {
    flex: 1;
    background: var(--bg-slate);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    text-align: center;
}

.about-stat span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.about-stat {
    font-size: 0.78rem;
    color: var(--text-dark);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.testi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.testi-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.testi-stars {
    display: flex;
    gap: 3px;
    color: #facc15;
    font-size: 13px;
}

.testi-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
    margin: 0;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--glass-border);
    padding-top: 14px;
}

.testi-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.testi-author strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 600;
}

.testi-author span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.google-rating-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 18px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.gr-stars {
    display: flex;
    gap: 3px;
    color: #facc15;
    font-size: 14px;
    flex-shrink: 0;
}

.google-rating-bar span {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-muted);
    min-width: 180px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.825rem;
}

@media (max-width: 900px) {
    .testi-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   BLOG PREVIEW
   ========================================================================= */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.bp-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
}

.bp-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.bp-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.bp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.bp-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.bp-body {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.bp-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--text-dark);
}

.bp-body p {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.bp-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    transition: var(--transition);
}

.bp-more:hover {
    color: var(--accent-hover);
    gap: 10px;
}

.bp-cta {
    text-align: center;
    margin-top: 36px;
}

@media (max-width: 900px) {
    .bp-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .bp-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list {
    max-width: 760px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    width: 100%;
    background: #003781;
    border: none;
    padding: 20px 24px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.2s ease;
}

.faq-q:hover {
    background: #002a60;
}

.faq-q[aria-expanded="true"] {
    background: #002a60;
}

.faq-icon {
    flex-shrink: 0;
    font-size: 13px;
    color: #ffffff;
    transition: transform 0.25s ease;
}

.faq-q[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--bg-main);
}

.faq-a.open {
    max-height: 200px;
    padding: 16px 24px 20px;
}

.faq-a p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* =========================================================================
   MICROINTERACTIONS & SUBTLE ANIMATIONS
   ========================================================================= */

/* Buttons – slight lift on hover */
.btn-primary,
.btn-outline {
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,255,255,0.08);
}

.btn-outline:hover {
    transform: translateY(-1px);
}

.btn-primary:active,
.btn-outline:active {
    transform: translateY(0);
}

/* Section title line – subtle grow on appear */
.title-line {
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0;
}

.is-visible .title-line,
.fade-in-up.is-visible .title-line,
.no-js .title-line {
    width: 50px;
}

/* Service/Why cards – gentle border glow */
.service-card:hover,
.why-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Step number pulse on hover */
.step-num {
    transition: background 0.25s ease, border-color 0.25s ease;
}

.process-step:hover .step-num {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
}

/* Stat numbers – slight scale */
.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

/* Contact phone – subtle pulse */
.contact-phone {
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.contact-phone:hover {
    letter-spacing: 0.3px;
}

/* Blog card arrow slide */
.bp-more i {
    transition: transform 0.2s ease;
}

.bp-card:hover .bp-more i {
    transform: translateX(4px);
}

/* Testimonial card – subtle lift */
.testi-card {
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.testi-card:hover {
    transform: translateY(-3px);
}

/* FAQ icon smooth rotate */
.faq-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo subtle hover */
.logo:hover .logo-icon {
    transition: transform 0.3s ease;
    transform: rotate(-6deg) scale(1.05);
}

/* Google rating bar glow on hover */
.google-rating-bar {
    transition: border-color 0.25s ease;
}

.google-rating-bar:hover {
    border-color: rgba(250, 204, 21, 0.25);
}

/* About image parallax-like feel */
.about-visual {
    transition: transform 0.4s ease;
}

/* Hero slide content – entrance */
.slide.active .slide-content {
    animation: slideContentIn 0.8s ease both;
}

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

/* Smooth scroll indicator for contact phone */
@keyframes subtleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.contact-phone i {
    animation: subtleBounce 2s ease-in-out infinite;
}
.badge-stock { background: #22c55e; color: #fff; }
.badge-sold { background: rgba(0,0,0,.5); color: #fff; }

.car-card-photos {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,.6); color: #fff;
    padding: 4px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
}

.car-card-body { padding: 20px; }

.car-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.car-card-specs {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-bottom: 12px;
}
.car-card-specs span {
    font-size: 13px; color: var(--text-muted);
    display: flex; align-items: center; gap: 5px;
}
.car-card-specs i { color: var(--accent-color); font-size: 12px; }

.car-card-desc {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.5; margin-bottom: 16px;
}

.car-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}

.car-card-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
}
.car-card-price.price-ask {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-sm-car {
    padding: 8px 16px;
    font-size: 13px;
}

/* Cars Empty */
.cars-empty {
    text-align: center;
    padding: 80px 20px;
}
.cars-empty i {
    font-size: 56px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 16px;
}
.cars-empty h2 { font-size: 24px; margin-bottom: 10px; }
.cars-empty p { color: var(--text-muted); margin-bottom: 24px; }

/* Cars Responsive */
@media (max-width: 768px) {
    .cars-filter-row { grid-template-columns: 1fr 1fr; }
    .cars-filters { margin-top: -20px; padding: 16px; }
    .car-card-img { height: 180px; }
}
@media (max-width: 480px) {
    .cars-filter-row { grid-template-columns: 1fr; }
}

/* =========================================================================
   CAR DETAIL PAGE
   ========================================================================= */
.car-detail-hero {
    background: var(--primary-color);
    color: #fff;
    padding: 80px 0 32px;
}
.car-detail-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500;
    margin-bottom: 12px;
}
.car-detail-back:hover { color: #fff; }
.car-detail-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.car-detail-badges { display: flex; gap: 8px; }
.car-detail-badges .car-card-badge { position: static; }

.car-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Gallery */
.car-gallery-main {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #e2e8f0;
    aspect-ratio: 16/10;
}
.car-gallery-main img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.car-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.car-gallery-thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s, opacity .2s;
    opacity: .7;
}
.car-gallery-thumb:hover { opacity: 1; }
.car-gallery-thumb.active {
    border-color: var(--accent-color);
    opacity: 1;
}
.car-gallery-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* Info Sidebar */
.car-detail-price-box {
    margin-bottom: 24px;
}
.car-detail-price {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-color);
}
.car-detail-price.price-ask {
    font-size: 18px;
    color: var(--text-muted);
}

.car-detail-specs {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}
.car-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}
.car-spec-row:last-child { border-bottom: none; }
.car-spec-label {
    font-size: 14px;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 8px;
}
.car-spec-label i {
    color: var(--accent-color);
    width: 18px;
    text-align: center;
}
.car-spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.car-detail-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.car-detail-cta .btn {
    justify-content: center;
    gap: 8px;
}
.btn-block { width: 100%; text-align: center; }

/* Description */
.car-detail-description {
    margin-top: 48px;
    background: var(--primary-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.car-detail-description h2 {
    font-size: 22px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}
.car-detail-desc-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Detail Responsive */
@media (max-width: 768px) {
    .car-detail-layout { grid-template-columns: 1fr; gap: 24px; }
    .car-detail-hero h1 { font-size: 24px; }
    .car-detail-price { font-size: 26px; }
    .car-detail-description { padding: 20px; }
}

/* =========================================================================
   CONTACT FORM – ANO/NE TOGGLE & LAYOUT
   ========================================================================= */

/* Alert messages */
.cf-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-bottom: 20px;
}
.cf-alert--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.cf-alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ANO / NE toggle */
.cf-toggle-group {
    margin-bottom: 24px;
}
.cf-toggle-label {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.cf-toggle {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 5px;
    gap: 4px;
}
.cf-toggle input[type="radio"] {
    display: none;
}
.cf-toggle-btn {
    cursor: pointer;
    padding: 12px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
    user-select: none;
    white-space: nowrap;
}
.cf-toggle input[type="radio"]:checked + .cf-toggle-btn {
    background: var(--text-dark);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

/* Two-column row */
.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 560px) {
    .cf-row {
        grid-template-columns: 1fr;
    }
    .cf-toggle-btn {
        padding: 11px 22px;
        font-size: 0.95rem;
    }
}

/* =========================================================================
   SLUZBY PAGE – Service detail subpage
   ========================================================================= */

/* Back bar */
.sluzby-back-bar {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--glass-border);
    z-index: 900;
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    transition: top 0.3s ease;
}

.navbar.scrolled ~ .sluzby-back-bar,
.sluzby-back-bar.scrolled {
    top: 75px;
}

.sluzby-back-bar .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sluzby-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 16px;
    border: 1.5px solid var(--primary-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
}

.sluzby-back-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.sluzby-back-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Hero */
.sluzby-hero {
    position: relative;
    height: 360px;
    background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1600&h=600&fit=crop&auto=format') center/cover no-repeat;
    margin-top: 144px; /* navbar height (100px) + back-bar height (44px) */
    display: flex;
    align-items: flex-end;
}

.sluzby-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,55,129,0.82) 0%, rgba(0,55,129,0.38) 100%);
}

.sluzby-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-bottom: 50px;
}

.sluzby-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.1;
}

.sluzby-hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.88);
    max-width: 580px;
    margin: 0;
}

/* Main content */
.sluzby-main {
    padding-top: 60px;
}

/* Each service article */
.sluzby-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    padding: 40px 0;
}

.sluzby-item--reverse {
    direction: rtl;
}

.sluzby-item--reverse > * {
    direction: ltr;
}

.sluzby-item-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sluzby-item-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.sluzby-item-body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.sluzby-item-lead {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.5;
}

.sluzby-item-body p {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 0;
}

.sluzby-item-list {
    list-style: none;
    padding: 0;
    margin: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sluzby-item-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.sluzby-item-list li i {
    color: var(--primary-color);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.sluzby-cta {
    align-self: flex-start;
    margin-top: 8px;
}

.sluzby-item-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.sluzby-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.sluzby-item:hover .sluzby-item-img img {
    transform: scale(1.04);
}

/* Scroll-target highlight */
.sluzby-item:target {
    scroll-margin-top: 160px;
}

.sluzby-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0;
}

/* Service card as link – reset anchor styles */
a.service-card {
    cursor: pointer;
    color: inherit;
}

a.service-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 900px) {
    .sluzby-item {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .sluzby-item--reverse {
        direction: ltr;
    }
    .sluzby-item-img {
        order: -1;
        aspect-ratio: 16/9;
    }
    .sluzby-hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .sluzby-hero {
        height: 280px;
    }
    .sluzby-hero-content h1 {
        font-size: 1.55rem;
    }
    .sluzby-hero-content p {
        font-size: 0.95rem;
    }
    .sluzby-back-title {
        display: none;
    }
    .sluzby-item-body h2 {
        font-size: 1.35rem;
    }
}

/* =========================================================================
   CONTACT MODAL STYLES
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 55, 129, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #ef4444;
}

#inspectionModalDialog .modal-content {
    background: #003b9b;
    border: none;
    max-width: 620px;
    width: min(90vw, 620px);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 36, 86, 0.35);
    padding: 26px 26px 20px;
}

#inspectionModalDialog .modal-content .modal-close {
    top: 16px;
    right: 18px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 20px;
}

#inspectionModalDialog .modal-content .modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

#inspectionModalDialog #inspectionModalTitle {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 20px;
    text-align: center;
    letter-spacing: 0.02em;
}

#inspectionModalDialog .msg-form {
    display: block;
}

#inspectionModalDialog .cf-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    margin-bottom: 18px;
}

#inspectionModalDialog .form-group {
    margin: 0;
}

#inspectionModalDialog .form-group label {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#inspectionModalDialog .form-group input,
#inspectionModalDialog .form-group textarea,
#inspectionModalDialog .form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    color: #1f2a37;
    font-size: 1rem;
    padding: 12px 14px;
    min-height: 46px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

#inspectionModalDialog .form-group input::placeholder,
#inspectionModalDialog .form-group textarea::placeholder {
    color: rgba(31, 42, 55, 0.6);
}

#inspectionModalDialog .form-group textarea {
    min-height: 90px;
    resize: vertical;
}

#inspectionModalDialog .form-submit {
    margin-top: 12px;
}

#inspectionModalDialog .form-submit .btn-primary {
    width: 100%;
    background: #0a58d8;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 1rem;
}

#inspectionModalDialog .form-submit .btn-primary:hover {
    background: #0d4fc4;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.modal-form .form-group {
    margin-bottom: 18px;
}

.modal-form label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: var(--text-dark);
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 55, 129, 0.1);
}

.form-submit {
    margin-top: 25px;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 30px 20px;
    }
}
