:root {
    /* Hlavní barvy - Prémiový světlý vzhled */
    --bg-main: #f8fafc; /* Velmi jemná šedá pro pozadí webu */
    --bg-card: #ffffff; /* Čistě bílá pro karty */
    --bg-dark: #0f172a; /* Hluboká břidlicová pro tmavé sekce (patička atd.) */
    --bg-darker: #0b1120;
    
    /* Texty */
    --text-main: #0f172a; /* Téměř černá pro nadpisy */
    --text-muted: #64748b; /* Šedá pro doplňkové texty */
    --text-body: #334155; /* Tmavě šedá pro běžný text */
    
    /* Akcent - Prémiová automobilová červená */
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --accent-subtle: #fee2e2;
    
    /* Ostatní UI prvky */
    --border: #e2e8f0;
    --border-dark: #1e293b;
    
    /* Elegantní stíny */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    
    /* Ostřejší rohy pro serióznější vzhled */
    --radius: 8px;
    --radius-sm: 4px;
}

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

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-body);
    line-height: 1.65;
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.bg-light { background-color: #ffffff; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.max-w-lg { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Typografie */
h1, h2, h3 { line-height: 1.2; font-weight: 800; color: var(--text-main); }
h1 { font-size: 3.75rem; letter-spacing: -0.04em; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em; margin-bottom: 1rem; text-transform: uppercase; }
h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }

.section-title { font-size: 2.25rem; color: var(--text-main); margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 3.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Tlačítka */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover { 
    background: var(--accent-hover); 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-lg); 
}
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}
.btn-outline:hover { 
    background: white; 
    color: var(--text-main); 
    transform: translateY(-2px); 
}
.btn-block { display: flex; width: 100%; justify-content: center; }

/* Navigace */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}
.logo-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 0;
}
.logo span { color: var(--accent); }
.navbar nav { display: flex; align-items: center; gap: 1rem; }
.navbar nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}
.navbar nav a:hover, .navbar nav a.active { color: var(--accent); }

/* Hero Sekce */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-dark);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/uploads/hero-bg.jpg') center 40% / cover;
    filter: brightness(0.6) contrast(1.1);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.6) 50%, rgba(15,23,42,0.1) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 8rem 0 6rem;
    max-width: 750px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}
.hero h1 { font-size: 4.5rem; margin-bottom: 1.5rem; color: white; line-height: 1.05; text-transform: uppercase; }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,0.8); margin-bottom: 2.5rem; line-height: 1.6; max-width: 560px; font-weight: 400; }
.hero .btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.section { padding: 6rem 0; }

/* Funkce / Služby */
.features { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; display: grid; }
.feature-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-subtle); }
.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--bg-main);
    color: var(--accent);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}
.feature-card h3 { font-size: 1.2rem; color: var(--text-main); }
.feature-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* Důvěra / Trust Section */
.trust-section {
    background: var(--bg-dark);
    color: white;
    position: relative;
    border-top: 4px solid var(--accent);
}
.trust-section .section-title { color: white; }
.trust-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; display: grid;}
.trust-item {
    text-align: center;
    padding: 2rem 1rem;
}
.trust-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
}
.trust-label { color: var(--accent); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* O nás */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 450px;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text { font-size: 1.1rem; line-height: 1.8; color: var(--text-body); }
.about-list { list-style: none; margin-top: 2rem; }
.about-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}
.about-list li:last-child { border-bottom: none; }
.about-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent);
    font-size: 1.2rem;
}

/* Hlavička stránky s filtry */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1.5rem;
}
.page-top { padding-top: 10rem; }
.page-header p { color: var(--text-muted); font-weight: 600; font-size: 1.1rem;}
.page-header .section-title { margin-bottom: 0.25rem; }
.filters { display: flex; gap: 1rem; }
.filter-select {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}
.filter-select:focus, .filter-select:hover { outline: none; border-color: var(--accent); }

/* Mřížka aut */
.car-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; display: grid; }
.car-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.car-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: var(--bg-main);
}
.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.car-card:hover .car-image img { transform: scale(1.05); }
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.car-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.car-content h3 { font-size: 1.25rem; margin-bottom: 1rem; text-transform: none; }
.car-specs {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}
.car-specs i { color: var(--text-main); margin-right: 0.25rem; }
.car-price {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 1rem;
    margin-top: auto;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
    color: var(--text-muted);
}

/* Galerie */
.gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; display: grid;}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; height: auto; }

/* Patička */
.footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding: 5rem 0 2rem;
    border-top: 4px solid var(--accent);
}
.footer h3 { color: white; font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; display: grid; }
.footer p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 0.75rem; }
.footer p i { width: 20px; color: var(--accent); }
.footer-bottom { 
    margin-top: 4rem; 
    padding-top: 2rem; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    font-size: 0.85rem; 
    text-align: center; 
}

/* Animace */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fadeInUp 0.8s ease-out; }

/* Mobilní navigace a Hamburger */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.25rem;
}
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 200;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav .nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
.mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.mobile-nav-links a {
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
}
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--accent); }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Detail Auta */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 10rem 0 6rem;
}
.detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  height: 450px;
  box-shadow: var(--shadow-lg);
  background: #fff;
  border: 1px solid var(--border);
}
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h2 { color: var(--text-main); margin-bottom: 2rem; font-size: 2.5rem; }
.detail-specs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.detail-specs p {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}
.detail-specs p:last-of-type:not(.detail-price) { border-bottom: none; padding-bottom: 0; }
.detail-specs p i { width: 24px; color: var(--text-muted); font-size: 1.2rem; text-align: center; }
.detail-price {
  font-size: 2.5rem !important;
  font-weight: 900;
  color: var(--text-main);
  margin-top: 1.5rem;
  border-bottom: none !important;
  padding-top: 1rem;
  border-top: 2px solid var(--border);
}

/* Kontaktní formulář */
.contact-form {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: inherit;
  transition: all 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form-group textarea { resize: vertical; min-height: 120px; }


/*******************************************************************************
 * POKROČILÁ RESPONSIVITA (PRO VŠECHNA ZAŘÍZENÍ)
 ******************************************************************************/

/* 1. Velké monitory a TV (Optimalizace kontejneru) */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

/* 2. Notebooky a menší PC (Zúžení mezer a jemné zmenšení nadpisů) */
@media (max-width: 1200px) {
    h1 { font-size: 3.25rem; }
    .hero h1 { font-size: 4rem; }
    .about-grid, .detail-grid { gap: 2.5rem; }
}

/* 3. Tablety na šířku / iPady Pro (1024px) */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    .hero h1 { font-size: 3.5rem; }
    .about-grid, .detail-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image, .detail-image { height: 380px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:first-child { grid-column: span 2; grid-row: span 1; height: 300px; }
}

/* 4. Klasické Tablety na výšku (992px dolů) */
@media (max-width: 992px) {
    .section { padding: 5rem 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .filters { width: 100%; }
    .filter-select { flex-grow: 1; }
}

/* 5. Větší Mobily / Smartphony (768px dolů) - Přechod na mobilní UI */
@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2, .section-title { font-size: 1.75rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; margin-bottom: 2rem; }
    .hero-content { padding: 7rem 0 4rem; }
    .hero { min-height: auto; }
    
    /* Navigace */
    .hamburger { display: block; }
    .navbar nav { display: none; }
    
    /* Mřížky padají na 1 sloupec */
    .car-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item:first-child { grid-column: span 1; grid-row: span 1; height: 220px; }
    .gallery-item { height: 220px; }
    
    .about-image, .detail-image { height: 280px; }
    .contact-form { padding: 1.75rem; }
}

/* 6. Menší Smartphony (576px dolů) */
@media (max-width: 576px) {
    .container { padding: 0 1.25rem; }
    .hero .btn-group { flex-direction: column; width: 100%; }
    .hero .btn { width: 100%; }
    .trust-grid { grid-template-columns: 1fr; gap: 1rem; }
    .trust-item { padding: 1.25rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-sm); }
    .trust-number { font-size: 3rem; }
    .filters { flex-direction: column; gap: 0.75rem; }
    .filter-select { width: 100%; }
}

/* 7. Extrémně malé telefony (méně než 380px - např. starší iPhony SE) */
@media (max-width: 380px) {
    .hero h1 { font-size: 2.1rem; }
    h2, .section-title { font-size: 1.5rem; }
    .section-subtitle { margin-bottom: 2.5rem; }
    .feature-card { padding: 1.75rem 1.25rem; }
    .car-content { padding: 1.25rem; }
    .car-price { font-size: 1.5rem; }
    .detail-price { font-size: 2rem !important; }
}