/* ==========================================================================
   koridvigatel.bg - Premium Style Sheet (Light Theme)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Color Variables & Styling Tokens (Light Theme) */
:root {
  --bg-primary: #f8fafc;         /* Slate 50 */
  --bg-secondary: #ffffff;       /* Pure White */
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(15, 23, 42, 0.08); /* slate 900 with low opacity */
  --text-primary: #0f172a;       /* Slate 900 */
  --text-secondary: #475569;     /* Slate 600 */
  --text-muted: #64748b;         /* Slate 500 */
  
  --accent-blue: #2563eb;        /* Electric Blue */
  --accent-blue-hover: #1d4ed8;
  --accent-blue-light: #eff6ff;
  --accent-glow: rgba(37, 99, 235, 0.08);
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  
  --accent-orange: #ea580c;      /* Off-road Safety Orange */
  --accent-orange-hover: #c2410c;
  --accent-orange-light: #fff7ed;
  
  --card-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --hover-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --modal-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Typography elements */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
}

/* Section Common Styles */
section {
  padding: 90px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: -40px auto 50px auto;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 850;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.03em;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

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

.logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo i {
  color: var(--accent-blue);
  font-size: 1.6rem;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}

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

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

.nav-cta {
  background: var(--accent-gradient);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 40px;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(13, 148, 136, 0.04) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-orange-light);
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: 50px;
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.hero-image-container:hover .hero-image {
  transform: scale(1.02);
}

/* Featured Carousel Section */
.carousel-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 60px !important;
}

.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.carousel-track-wrapper {
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-glass);
  background: var(--bg-secondary);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  background: var(--bg-secondary);
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.slide-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 50px;
  align-items: center;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: var(--accent-blue-light);
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.carousel-slide h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.carousel-slide p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.slide-specs-mini {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.slide-specs-mini span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.slide-specs-mini i {
  color: var(--accent-orange);
}

.slide-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-image img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
  cursor: zoom-in;
}

.carousel-slide:hover .slide-image img {
  transform: scale(1.03);
}

/* Carousel Navigation */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  color: var(--text-primary);
}

.carousel-arrow:hover {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dots .dot.active {
  background: var(--accent-blue);
  width: 24px;
  border-radius: 5px;
}

/* Upgrades Section Cards */
.upgrades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.upgrade-card {
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.upgrade-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(37, 99, 235, 0.2);
}

.upgrade-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-glass);
  position: relative;
}

.upgrade-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.upgrade-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.upgrade-content h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.upgrade-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.upgrade-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-top: 15px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.upgrade-meta .thickness {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.upgrade-meta .price-tag {
  color: var(--accent-orange);
  font-weight: 800;
  font-size: 1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 40px 30px;
  text-align: center;
  background: var(--bg-secondary);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--hover-shadow);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  color: var(--accent-blue);
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* Brands Catalog Section */
.brands-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-glass);
  background: var(--bg-primary);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.brand-card.active, .brand-card:hover {
  border-color: var(--accent-blue);
  background: var(--bg-secondary);
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.1);
  transform: translateY(-3px);
}

.brand-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: grayscale(20%) brightness(1.1);
  transition: var(--transition-smooth);
}

.brand-card:hover .brand-logo,
.brand-card.active .brand-logo {
  filter: grayscale(0%) brightness(1.2);
  transform: scale(1.05);
}

.brand-logo-placeholder {
  width: 50px;
  height: 50px;
  background: var(--accent-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.brand-card span {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

/* Models Drawer / Table Panel */
.catalog-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  margin-top: 20px;
}

.catalog-drawer.open {
  max-height: 2000px;
}

.drawer-inner {
  padding: 40px;
  margin-top: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
}

.search-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 45px;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1px solid #cbd5e1;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: var(--bg-secondary);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.models-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.models-table th, .models-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.models-table th {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-primary);
  font-size: 0.95rem;
}

.models-table tr:hover td {
  background: #f8fafc;
}

.order-btn-sm {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Order Section */
.order-section {
  position: relative;
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.order-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.order-info h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.order-info span {
  color: var(--accent-blue);
}

.order-info-list {
  list-style: none;
  margin-top: 30px;
}

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

.order-info-list i {
  color: var(--accent-orange);
  font-size: 1.35rem;
  margin-top: 3px;
  background: var(--accent-orange-light);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.order-card {
  padding: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
}

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

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1px solid #cbd5e1;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: var(--bg-secondary);
}

/* Selected Vehicle Alert Box */
.selected-vehicle-display {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--accent-blue-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 8px;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.selected-vehicle-display span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clear-vehicle {
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.clear-vehicle:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* FAQ Section Styling */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.faq-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.faq-header i {
  transition: transform 0.3s ease;
  color: var(--accent-blue);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-body {
  max-height: 200px;
  padding-bottom: 22px;
}

.faq-item.active .faq-header i {
  transform: rotate(180deg);
}

.faq-item.active {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--hover-shadow);
}

/* Modals & Pop-ups Common */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Success Modal Styles */
.success-modal {
  padding: 40px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  box-shadow: var(--modal-shadow);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .success-modal {
  transform: scale(1);
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  color: #0d9488;
  font-size: 2.5rem;
}

.success-modal h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.success-modal p {
  margin-bottom: 24px;
}

/* Model Detail modal (Model Page) */
.model-modal {
  position: relative;
  max-width: 950px;
  width: 100%;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--modal-shadow);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 40px;
}

.modal-overlay.active .model-modal {
  transform: translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  z-index: 10;
}

.close-modal-btn:hover {
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  border-color: rgba(234, 88, 12, 0.2);
  transform: rotate(90deg);
}

.model-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: flex-start;
}

.model-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-gallery-image {
  width: 100%;
  height: 320px;
  background-color: #f1f5f9;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.main-gallery-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.main-gallery-image:hover img {
  transform: scale(1.03);
}

/* Image Zoom Overlay */
.image-zoom-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.image-zoom-overlay.active {
  display: flex;
}

.image-zoom-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  width: auto;
  height: auto;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.thumbnail-item {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.thumbnail-item img {
  width: 100%;
  height: 60px;
  object-fit: contain;
}

.thumbnail-item span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.thumbnail-item.active {
  border-color: var(--accent-blue);
  background: var(--accent-blue-light);
}

.thumbnail-item.active span {
  color: var(--accent-blue);
}

.thumbnail-item:hover:not(.active) {
  border-color: #cbd5e1;
  background: var(--bg-primary);
}

.model-info-container {
  display: flex;
  flex-direction: column;
}

.model-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 12px;
}

.model-info-container h2 {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.model-product-type {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.model-specs {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 15px 0;
  margin-bottom: 20px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
}

.spec-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.spec-value {
  color: var(--text-primary);
  font-weight: 700;
}

.model-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.model-price-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px 20px;
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-glass);
}

.price-label {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.price-value {
  color: var(--accent-blue);
  font-weight: 850;
  font-size: 1.8rem;
}

.order-btn-lg {
  padding: 16px;
  font-size: 1.1rem;
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-glass);
  background-color: #0f172a; /* keep footer dark for high-contrast professional layout, as is typical in modern web apps */
  color: #f8fafc;
  padding: 80px 24px 30px 24px;
}

footer p {
  color: #94a3b8;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 20px;
}

.footer-brand .logo i {
  color: #38bdf8;
}

.footer-brand p {
  max-width: 320px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #94a3b8;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contacts p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #94a3b8;
}

.footer-contacts i {
  color: #38bdf8;
  font-size: 1.1rem;
}

.footer-contacts a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #1e293b;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.9rem;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-image {
    max-width: 90%;
  }
  .slide-grid {
    grid-template-columns: 1fr;
    padding: 30px;
    text-align: center;
  }
  .slide-specs-mini {
    justify-content: center;
  }
  .slide-image img {
    max-height: 250px; /* Increased from 200px for better mobile visibility */
  }
  .carousel-container {
    padding: 0 20px;
  }
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }
  .carousel-arrow.prev {
    left: -5px;
  }
  .carousel-arrow.next {
    right: -5px;
  }
  .model-modal {
    padding: 24px;
  }
  .model-modal-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .main-gallery-image {
    height: 250px;
  }
  .order-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-start;
    padding: 12px;
  }

  .model-modal {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .nav-menu {
    display: none;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Mobile brand logo fixes */
  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
  }
  
  .brand-card {
    padding: 16px 12px;
  }
  
  .brand-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
  }
  
  .brand-card span {
    font-size: 0.85rem;
    text-align: center;
  }
  
  .brand-card.active, .brand-card:hover {
    transform: translateY(-2px);
  }
  
  /* Mobile catalog drawer and table fixes */
  .drawer-inner {
    padding: 20px 15px;
    margin-top: 15px;
  }
  
  .search-filter-bar h3 {
    font-size: 1.2rem !important;
  }
  
  .models-table {
    font-size: 0.9rem;
  }
  
  .models-table th, .models-table td {
    padding: 12px 8px;
  }
  
  .order-btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  /* Make table scrollable on very small screens */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }
  
  .brand-card {
    padding: 12px 8px;
  }
  
  .brand-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
  }
  
  .brand-card span {
    font-size: 0.75rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .drawer-inner {
    padding: 15px 10px;
  }
  
  .models-table th, .models-table td {
    padding: 10px 6px;
    font-size: 0.85rem;
  }
}
