  /* =============================================================================
     CSS CUSTOM PROPERTIES & THEME SUPPORT
  ============================================================================= */
  :root {
    --primary-color: #222;
    --secondary-color: #286090;
    --accent-color: #b3e5fc;
    --success-color: #43a047;
    --warning-color: #ffe082;
    --info-color: #5bc0de;
    --background-color: #f5f5f5;
    --container-bg: #fff;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #e2e8f0;
    --form-bg: #f8f8f8;
    --form-border: #bbb;
    --theme-bg: var(--background-color);
    --theme-surface: var(--container-bg);
    --theme-text: var(--text-primary);
    --theme-text-secondary: var(--text-secondary);
    --theme-border: var(--border-color);
    --mobile-sm: 480px;
    --mobile-md: 768px;
    --tablet: 1024px;
    --desktop: 1200px;
  }

  [data-theme="dark"] {
    --primary-color: #1a1a1a;
    --background-color: #121212;
    --container-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --form-bg: #2a2a2a;
    --form-border: #555;
    --accent-color: #81d4fa;
    --secondary-color: #3498db;
    --theme-bg: var(--background-color);
    --theme-surface: var(--container-bg);
    --theme-text: var(--text-primary);
    --theme-text-secondary: var(--text-secondary);
    --theme-border: var(--border-color);
  }

  /* =============================================================================
     RESET & BASE
  ============================================================================= */
  *, *::before, *::after { box-sizing: border-box; }
  html, body { height: 100%; margin: 0; padding: 0; }

  body {
    background: var(--theme-bg);
    color: var(--theme-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  /* =============================================================================
     HEADER
  ============================================================================= */
  .header {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 60px;
    flex-wrap: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
  }

  .header .logo {
    display: flex;
    align-items: center;
    font-size: 1.4em;
    font-weight: 600;
    flex: 0 0 auto;
    margin-right: 16px;
    text-decoration: none;
    color: #fff;
  }

  .header .logo img {
    height: 132px;
    width: 132px;
    margin-right: 8px;
    object-fit: contain;
  }

  .header-title-center {
    flex: 1 1 0;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--accent-color);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header .right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
  }

  .search-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
  }
  .search-icon-btn:hover { background: rgba(255,255,255,0.1); }

  /* =============================================================================
     BURGER
  ============================================================================= */
  .burger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 12px;
    z-index: 1001;
    border-radius: 4px;
    transition: background-color 0.2s;
    min-width: 44px;
    min-height: 44px;
  }
  .burger:hover { background: rgba(255,255,255,0.1); }
  .burger:focus { outline: 2px solid var(--accent-color); outline-offset: 2px; }
  .burger span {
    display: block;
    height: 3px;
    width: 24px;
    background: #fff;
    margin: 3px auto;
    border-radius: 2px;
    transition: 0.3s ease;
    transform-origin: center;
  }
  .burger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

  /* =============================================================================
     SIDE MENU
  ============================================================================= */
  .side-menu-backdrop {
    display: none;
    position: fixed;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
  }

  .side-menu {
    position: fixed;
    right: -320px;
    top: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--secondary-color);
    color: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
  }
  .side-menu.open { right: 0; }

  .side-menu .side-header {
    background: #204d74;
    padding: 20px 18px 16px 18px;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .side-menu .side-header img {
    height: 28px;
    width: 28px;
    object-fit: contain;
  }

  .side-menu .side-links {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px 20px;
    min-height: 0;
  }

  .side-menu .side-link {
    color: #fff;
    text-decoration: none;
    padding: 14px 16px;
    font-size: 1em;
    border-radius: 6px;
    margin: 1px 0;
    font-weight: 500;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    flex-shrink: 0;
  }

  .side-menu .side-link.active,
  .side-menu .side-link:hover,
  .side-menu .side-link:focus {
    background: #204d74;
    outline: none;
  }

  /* =============================================================================
     MAIN CONTENT
  ============================================================================= */
  .welcome-container {
    flex: 1;
    max-width: var(--desktop);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
  }

  /* =============================================================================
     PAGE HERO
  ============================================================================= */
  .page-hero {
    text-align: center;
    padding: 48px 24px 32px;
  }

  .page-hero h1 {
    font-size: 2.4em;
    font-weight: 800;
    color: var(--theme-text);
    margin: 0 0 16px;
    line-height: 1.2;
  }

  .page-hero .subtitle {
    font-size: 1.2em;
    color: var(--theme-text-secondary);
    max-width: 700px;
    margin: 0 auto 24px;
    line-height: 1.6;
  }

  .page-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 24px;
  }

  .page-hero .stat {
    text-align: center;
  }

  .page-hero .stat-number {
    font-size: 2em;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
  }

  .page-hero .stat-label {
    font-size: 0.85em;
    color: var(--theme-text-secondary);
    font-weight: 500;
  }

  /* =============================================================================
     FILTER BUTTONS
  ============================================================================= */
  .filter-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 16px 32px;
    max-width: var(--desktop);
    margin: 0 auto;
  }

  .filter-btn {
    background: var(--form-bg);
    border: 1px solid var(--theme-border);
    color: var(--theme-text-secondary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
  }

  .filter-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
  }

  /* =============================================================================
     CASE STUDY CARDS GRID
  ============================================================================= */
  .cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: var(--desktop);
    margin: 0 auto;
    padding: 0 16px 48px;
  }

  .case-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
  }

  .case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
  }

  .case-card.hidden {
    display: none;
  }

  .case-tag {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 12px;
  }

  .case-tag.garage-type { background: rgba(40, 96, 144, 0.12); color: var(--secondary-color); }
  .case-tag.revenue { background: rgba(67, 160, 71, 0.12); color: var(--success-color); }
  .case-tag.mot { background: rgba(255, 152, 0, 0.15); color: #e65100; }
  .case-tag.efficiency { background: rgba(91, 192, 222, 0.15); color: #0277bd; }
  .case-tag.marketing { background: rgba(156, 39, 176, 0.12); color: #7b1fa2; }

  [data-theme="dark"] .case-tag.garage-type { background: rgba(40, 96, 144, 0.3); color: var(--accent-color); }
  [data-theme="dark"] .case-tag.revenue { background: rgba(67, 160, 71, 0.25); color: #81c784; }
  [data-theme="dark"] .case-tag.mot { background: rgba(255, 152, 0, 0.2); color: #ffb74d; }
  [data-theme="dark"] .case-tag.efficiency { background: rgba(91, 192, 222, 0.2); color: #4fc3f7; }
  [data-theme="dark"] .case-tag.marketing { background: rgba(156, 39, 176, 0.2); color: #ce93d8; }

  .case-meta {
    font-size: 0.78em;
    color: var(--theme-text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
  }

  .case-card h3 {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--theme-text);
    margin: 0 0 10px;
    line-height: 1.35;
  }

  .case-card p {
    font-size: 0.95em;
    color: var(--theme-text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
  }

  .case-card .result-highlight {
    background: var(--form-bg);
    border-left: 3px solid var(--secondary-color);
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 16px;
  }

  [data-theme="dark"] .case-card .result-highlight {
    background: rgba(40, 96, 144, 0.15);
    color: var(--accent-color);
  }

  .case-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: gap 0.2s ease;
  }

  .case-link:hover { gap: 10px; }
  .case-link::after { content: '→'; transition: transform 0.2s; }
  .case-card:hover .case-link::after { transform: translateX(3px); }

  /* =============================================================================
     CTA SECTION
  ============================================================================= */
  .cta-section {
    background: var(--theme-surface);
    max-width: var(--desktop);
    margin: 0 auto 48px;
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid var(--theme-border);
  }

  .cta-section h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--theme-text);
    margin: 0 0 12px;
  }

  .cta-section p {
    font-size: 1.1em;
    color: var(--theme-text-secondary);
    margin: 0 0 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .btn-primary {
    background: var(--secondary-color);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.2s ease;
    border: 2px solid var(--secondary-color);
  }

  .btn-primary:hover {
    background: #204d74;
    border-color: #204d74;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 96, 144, 0.3);
  }

  .btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.2s ease;
    border: 2px solid var(--secondary-color);
  }

  .btn-secondary:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
  }

  /* =============================================================================
     FOOTER
  ============================================================================= */
  .footer-enhanced {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a52 100%);
    color: #ffffff;
    margin: 60px 0 0 0;
    border-top: 4px solid var(--secondary-color);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .footer-container {
    max-width: var(--desktop);
    margin: 0 auto;
    padding: 40px 24px;
  }

  .footer-company-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
  }

  .footer-logo-img {
    height: 180px;
    width: 180px;
    object-fit: contain;
  }

  .footer-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .social-icon-svg {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .social-link:hover .social-icon-svg {
    filter: none;
    transform: scale(1.1);
  }
  [data-theme="dark"] .social-icon-svg { filter: brightness(0) invert(1); }

  .footer-links-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-column { text-align: left; }

  .footer-column h4 {
    margin: 0 0 20px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--accent-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 8px;
  }

  .footer-links { list-style: none; padding: 0; margin: 0; }
  .footer-links li { margin-bottom: 12px; }

  .footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.2s ease;
    display: block;
    padding: 4px 0;
  }

  .footer-links a:hover {
    color: var(--accent-color);
    padding-left: 8px;
    text-decoration: underline;
  }

  .footer-copyright { text-align: center; }
  .footer-copyright p { margin: 8px 0; font-size: 0.9em; color: rgba(255, 255, 255, 0.8); }
  .footer-tagline { font-style: italic; color: var(--accent-color) !important; font-size: 0.95em !important; }

  /* =============================================================================
     RESPONSIVE
  ============================================================================= */
  @media (max-width: 768px) {
    .page-hero h1 { font-size: 1.8em; }
    .page-hero .subtitle { font-size: 1.05em; }
    .cases-grid { grid-template-columns: 1fr; padding: 0 12px 32px; }
    .cta-section { margin: 0 12px 32px; padding: 32px 20px; }
    .cta-section h2 { font-size: 1.4em; }
    .footer-links-row { grid-template-columns: 1fr; text-align: center; }
    .footer-column { text-align: center; }
    .page-hero .hero-stats { gap: 20px; }
    .header .logo img { height: 80px; width: 80px; }
  }

  @media (max-width: 480px) {
    .page-hero { padding: 32px 16px 24px; }
    .page-hero h1 { font-size: 1.5em; }
    .filter-bar { gap: 6px; }
    .filter-btn { padding: 6px 14px; font-size: 0.82em; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }
