/* ============================================
   BOLSHEKSHOP - Автозапчасти
   ============================================ */

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

:root {
  --primary: #1a237e;
  --primary-dark: #0d1642;
  --primary-light: #283593;
  --accent: #ff6f00;
  --accent-hover: #e65100;
  --text: #1a1a2e;
  --text-light: #5a5a7a;
  --text-lighter: #8a8a9a;
  --bg: #ffffff;
  --bg-light: #f5f7fa;
  --bg-dark: #0f1128;
  --border: #e2e8f0;
  --success: #00c853;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  border-radius: var(--radius);
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.logo-text strong {
  color: var(--accent);
}

.logo-text span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-lighter);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Navigation */
.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}

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

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

.nav a:hover::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-1px);
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.mobile-menu a {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.mobile-phone {
  font-size: 18px !important;
  color: var(--primary) !important;
  margin-top: 16px;
}

.mobile-whatsapp {
  margin-top: 8px;
  font-size: 16px !important;
  padding: 14px 28px !important;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 111, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,111,0,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero .highlight {
  color: #ff9800;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hero-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.hero-feature strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.hero-feature span {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   VIN SEARCH
   ============================================ */

.vin-search {
  padding: 60px 0;
  background: var(--bg-light);
}

.vin-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.vin-box h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.vin-box > p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.vin-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.vin-input,
.vin-phone {
  flex: 1;
  min-width: 200px;
  padding: 16px 20px;
  font-size: 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.vin-input:focus,
.vin-phone:focus {
  border-color: var(--accent);
}

.vin-input::placeholder,
.vin-phone::placeholder {
  color: var(--text-lighter);
}

.vin-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-light);
  font-size: 16px;
}

.section-header.light h2,
.section-header.light p {
  color: #fff;
}

.section-header.light p {
  opacity: 0.8;
}

/* ============================================
   CATALOG
   ============================================ */

.catalog {
  padding: 80px 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.catalog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

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

.catalog-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.catalog-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.catalog-card p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.catalog-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.catalog-more {
  text-align: center;
  padding: 32px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
}

.catalog-more p {
  margin-bottom: 16px;
  color: var(--text-light);
}

/* ============================================
   PARTS CATEGORIES
   ============================================ */

.parts-categories {
  padding: 60px 0;
  background: var(--bg-light);
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.parts-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  cursor: default;
}

.parts-item:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   ADVANTAGES
   ============================================ */

.advantages {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.advantage-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.advantage-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.advantage-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.advantage-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* ============================================
   HOW TO ORDER
   ============================================ */

.how-order {
  padding: 80px 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.step {
  flex: 1;
  text-align: center;
  max-width: 240px;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

.step-arrow {
  font-size: 24px;
  color: var(--accent);
  margin-top: 12px;
  flex-shrink: 0;
}

/* ============================================
   REVIEWS
   ============================================ */

.reviews {
  padding: 80px 0;
  background: var(--bg-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.review-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.review-stars {
  font-size: 16px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.reviews-more {
  text-align: center;
}

.reviews-more a {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.reviews-more a:hover {
  text-decoration: underline;
}

/* ============================================
   CONTACTS
   ============================================ */

.contacts {
  padding: 80px 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: stretch;
}

.contacts-info h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-item p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.5;
}

.contact-item a {
  color: var(--primary);
  font-weight: 500;
}

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

.contacts-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.contacts-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 400px;
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-logo strong {
  color: var(--accent);
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  transition: var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  font-size: 20px;
  transition: var(--transition);
}

.footer-social a:hover {
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom p {
  margin-bottom: 4px;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .parts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
  
  .nav {
    display: none;
  }
  
  .phone {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero {
    padding: 48px 0;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 15px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 16px;
  }
  
  .vin-box {
    padding: 28px 20px;
  }
  
  .vin-form {
    flex-direction: column;
  }
  
  .vin-input,
  .vin-phone {
    width: 100%;
  }
  
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  
  .parts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step-arrow {
    transform: rotate(90deg);
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  
  .contacts-map {
    min-height: 300px;
    order: -1;
  }
  
  .contacts-map iframe {
    min-height: 300px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .logo-text {
    font-size: 15px;
  }
  
  .btn-whatsapp {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden {
  display: none !important;
}

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

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
