* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Oswald', sans-serif;
  background: #0a0a0a;
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.header {
  background: #000;
  border-bottom: 3px solid #FFD700;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #FFD700;
  letter-spacing: 1px;
}

.logo-num { color: #fff; }

.nav { display: flex; gap: 30px; }
.nav a { font-weight: 600; transition: color 0.3s; }
.nav a:hover { color: #FFD700; }

.header-contacts {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-contacts .phone {
  color: #FFD700;
  font-weight: 700;
  font-size: 18px;
  border: 2px solid #FFD700;
  padding: 8px 16px;
  border-radius: 5px;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.9);
}

.header-contacts .phone:hover {
  background: #FFD700;
  color: #000;
  box-shadow: 0 0 30px rgba(255, 215, 0, 1);
}

.messenger-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.3s, filter 0.3s;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
}

.messenger-icon:hover img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 14px rgba(255, 215, 0, 1));
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #000 70%);
}

.hero-bg {
  position: absolute;
  top: 0; right: -12%;
  width: 70%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}

.hero-logo-img {
  max-width: 560px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 25px rgba(255,215,0,0.35));
}

.hero-motto {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 600;
  color: #FFD700;
  text-align: center;
  margin: 10px 0 20px;
  transform: rotate(-2deg);
}

.vin-search {
  display: flex;
  max-width: 500px;
  gap: 10px;
  margin: 0 auto;
}

.vin-input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid #FFD700;
  border-radius: 5px;
  background: #111;
  color: #fff;
  font-size: 15px;
}

.vin-input::placeholder { color: #888; }

.btn-search {
  padding: 15px 30px;
  background: #FFD700;
  color: #000;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.9);
}

.btn-search:hover {
  background: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 215, 0, 1);
}

/* ===== VIN HINT ===== */
.vin-hint {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.vin-hint img {
  width: 90px;
  height: auto;
  border-radius: 6px;
  border: 2px solid #FFD700;
  flex-shrink: 0;
}

.vin-hint-text {
  font-size: 13px;
  color: #aaa;
  text-align: left;
  line-height: 1.4;
}

/* ===== HERO PARTICLES ===== */
.hero-particles {
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.9) 0%, rgba(255,215,0,0.2) 60%, transparent 100%);
  filter: blur(1px);
  animation: floatUp linear infinite;
}

.p1 { width: 8px; height: 8px; left: 10%; bottom: -10%; animation-duration: 7s; animation-delay: 0s; }
.p2 { width: 5px; height: 5px; left: 25%; bottom: -10%; animation-duration: 9s; animation-delay: 1.5s; }
.p3 { width: 10px; height: 10px; left: 40%; bottom: -10%; animation-duration: 8s; animation-delay: 3s; }
.p4 { width: 6px; height: 6px; left: 15%; bottom: -10%; animation-duration: 10s; animation-delay: 2s; }
.p5 { width: 4px; height: 4px; left: 32%; bottom: -10%; animation-duration: 6s; animation-delay: 4s; }
.p6 { width: 7px; height: 7px; left: 5%; bottom: -10%; animation-duration: 11s; animation-delay: 0.8s; }

@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(-250px) translateX(20px); }
  90% { opacity: 1; }
  100% { transform: translateY(-550px) translateX(-10px); opacity: 0; }
}

/* ===== CLOCK WHEEL ===== */
.hero-clock {
  position: absolute;
  top: 8%;
  left: 3%;
  width: 260px;
  height: 260px;
  z-index: 2;
}

.clock-face {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 25px rgba(255,215,0,0.15));
  animation: spinWheel 8s linear infinite;
}

@keyframes spinWheel {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.clock-center {
  position: absolute;
  top: 47%; left: 50%;
  width: 10px; height: 10px;
  background: #FFD700;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  box-shadow: 0 0 8px rgba(255,215,0,0.8);
}

.clock-hand {
  position: absolute;
  top: 47%;
  left: 50%;
  transform-origin: top center;
  border-radius: 4px;
  z-index: 4;
}

.hour-hand {
  width: 5px;
  height: 55px;
  background: #ddd;
  margin-top: -5px;
}

.minute-hand {
  width: 4px;
  height: 75px;
  background: #fff;
  margin-top: -5px;
}

.second-hand {
  width: 2px;
  height: 85px;
  background: #ff2222;
  margin-top: -5px;
}

/* ===== BUTTON SCHEME (под колесом, слева) ===== */
.btn-scheme-under-wheel {
  position: absolute;
  top: calc(8% + 275px);
  left: 3%;
  width: 260px;
  z-index: 5;
  padding: 12px 0;
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.9);
}

.btn-scheme-under-wheel:hover {
  background: #FFD700;
  color: #000;
  box-shadow: 0 0 30px rgba(255, 215, 0, 1);
}

/* ===== PROMO ALERT WRAPPER ===== */
.promo-alert-wrapper {
  position: absolute;
  top: 15%;
  right: 60px;
  width: 200px;
  z-index: 5;
  text-align: center;
}

.promo-alert-text {
  color: #FFD700;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.9);
  animation: blinkText 1.5s ease-in-out infinite;
}

@keyframes blinkText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== HEADLIGHT PROMO SLIDER ===== */
.headlight-promo {
  position: relative;
  width: 200px;
  height: 250px;
  margin: 0 auto;
}

.headlight-promo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  border: 2px solid #FFD700;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 0 60px rgba(255, 215, 0, 0.4);
}

.headlight-promo-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.headlight-promo-slide img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.headlight-promo-info {
  padding: 8px;
  text-align: center;
}

.headlight-promo-title {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.headlight-promo-price {
  display: block;
  color: #FFD700;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .promo-alert-wrapper {
    right: 20px;
    width: 160px;
  }
  .headlight-promo {
    width: 160px;
    height: 210px;
  }
  .headlight-promo-slide img {
    height: 130px;
  }
}

@media (max-width: 900px) {
  .promo-alert-wrapper,
  .btn-scheme-under-wheel {
    display: none;
  }
}

/* ===== CATEGORIES ===== */
.section-title {
  font-size: 38px;
  color: #FFD700;
  text-align: center;
  margin: 60px 0 30px;
  text-transform: uppercase;
}

.categories { padding-bottom: 40px; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.category-card {
  background: #111;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 25px 15px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
}

.category-card:hover {
  border-color: #FFD700;
  background: #1a1a1a;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255,215,0,0.15);
}

/* ===== BRANDS ===== */
.brands { padding-bottom: 40px; }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  align-items: center;
}

.brand-item {
  background: #111;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 15px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.brand-item:hover { border-color: #FFD700; transform: translateY(-5px); }

.brand-item img {
  max-width: 70px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.brand-item:hover img { transform: scale(1.1); }

/* ===== POPULAR PRODUCTS ===== */
.popular-products {
  padding-bottom: 50px;
}

.products-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-scroll-card {
  background: #111;
  border: 2px solid #333;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
}

.product-scroll-card:hover {
  border-color: #FFD700;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255,215,0,0.15);
}

.product-scroll-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #1a1a1a;
}

.product-scroll-card h3 {
  font-size: 18px;
  padding: 14px 15px 5px;
  color: #fff;
  font-weight: 600;
}

.product-scroll-price {
  padding: 5px 15px 15px;
  color: #FFD700;
  font-size: 22px;
  font-weight: 700;
}

/* ===== PROMOTIONS ===== */
.promotions { padding-bottom: 60px; }

.promotions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 900px) {
  .promotions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .promotions-grid {
    grid-template-columns: 1fr;
  }
}

.promo-card {
  border: 2px solid #FFD700;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
  background: #111;
}

.promo-card:hover { transform: scale(1.03); }

.promo-card img {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
  background: #fff;
}

.promo-info { padding: 15px; text-align: center; }
.promo-info h3 { font-size: 18px; margin-bottom: 10px; }

.promo-price {
  color: #FFD700;
  font-size: 24px;
  font-weight: 700;
}

/* ===== FOOTER ===== */
.footer {
  background: #000;
  border-top: 3px solid #FFD700;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo { font-size: 24px; font-weight: 700; color: #FFD700; }
.footer-contacts { display: flex; gap: 30px; color: #ccc; }

.footer-social {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 15px 0;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  border: 2px solid #FFD700;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.social-icon:hover {
  background: #FFD700;
  color: #000;
  box-shadow: 0 0 25px rgba(255, 215, 0, 1);
}

.social-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.3s;
}

.social-icon:hover img {
  transform: scale(1.15);
}

.footer-bottom {
  margin-top: 15px;
  text-align: center;
}

.privacy-link {
  color: #999;
  font-size: 13px;
  text-decoration: underline;
}

.privacy-link:hover {
  color: #FFD700;
}

/* ===== CATALOG PAGE ===== */
.catalog-page {
  padding: 40px 20px 80px;
  min-height: 60vh;
}

.catalog-page h1 {
  color: #FFD700;
  font-size: 32px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.catalog-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.catalog-filter select,
.catalog-filter input {
  padding: 12px 15px;
  background: #111;
  border: 2px solid #333;
  border-radius: 5px;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
}

.catalog-filter select:focus,
.catalog-filter input:focus {
  outline: none;
  border-color: #FFD700;
}

.catalog-filter input {
  flex: 1;
  min-width: 200px;
}

.catalog-filter button {
  padding: 12px 25px;
  background: #FFD700;
  color: #000;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.catalog-filter button:hover { background: #fff; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: #111;
  border: 2px solid #333;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  transition: all 0.3s;
  padding-bottom: 15px;
}

.product-card:hover {
  border-color: #FFD700;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255,215,0,0.15);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #1a1a1a;
}

.product-card h3 {
  font-size: 16px;
  padding: 12px 15px 5px;
  color: #fff;
}

.product-category {
  padding: 0 15px;
  color: #888;
  font-size: 13px;
}

.product-price {
  padding: 8px 15px 0;
  color: #FFD700;
  font-size: 20px;
  font-weight: 700;
}

/* ===== PRODUCT PAGE ===== */
.product-page {
  padding: 40px 20px 80px;
  min-height: 60vh;
}

.back-link {
  display: inline-block;
  color: #FFD700;
  margin-bottom: 25px;
  font-weight: 600;
  transition: 0.3s;
}

.back-link:hover { color: #fff; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #111;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 30px;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  background: #1a1a1a;
}

.product-detail-info h1 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.product-meta {
  color: #ccc;
  margin-bottom: 8px;
  font-size: 15px;
}

.product-meta strong { color: #FFD700; }

.product-description {
  color: #aaa;
  margin: 15px 0;
  line-height: 1.6;
}

.product-detail-price {
  color: #FFD700;
  font-size: 36px;
  font-weight: 700;
  margin: 20px 0;
}

.product-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-order,
.btn-whatsapp {
  padding: 15px 25px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  transition: 0.3s;
}

.btn-order {
  background: #FFD700;
  color: #000;
}

.btn-order:hover { background: #fff; }

.btn-whatsapp {
  background: #25D366;
  color: #000;
}

.btn-whatsapp:hover { background: #1eb855; }

/* ===== CAR SCHEME MODAL ===== */
.car-scheme-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
  box-sizing: border-box;
}

.car-scheme-modal.active {
  display: flex;
}

.car-scheme-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
}

.car-scheme-content {
  position: relative;
  max-width: 90%;
  max-height: calc(90vh - 60px);
  z-index: 2001;
  display: flex;
  justify-content: center;
}

.car-scheme-img {
  max-width: 100%;
  max-height: calc(85vh - 60px);
  object-fit: contain;
  border-radius: 10px;
  border: 3px solid #FFD700;
}

.car-scheme-close {
  position: fixed;
  top: 15px;
  right: 20px;
  background: #FFD700;
  color: #000;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2002;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ===== ORDER FORM MODAL ===== */
.order-form-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.order-form-modal.active {
  display: flex;
}

.order-form-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
}

.order-form-content {
  position: relative;
  background: #111;
  border: 2px solid #FFD700;
  border-radius: 12px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  z-index: 2001;
}

.order-form-content h2 {
  color: #FFD700;
  margin-bottom: 20px;
  text-align: center;
}

.order-form-content input,
.order-form-content textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

.btn-submit-order {
  width: 100%;
  padding: 14px;
  background: #FFD700;
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit-order:hover {
  background: #e6c200;
}

.order-form-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  color: #FFD700;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #111;
  border-top: 2px solid #FFD700;
  padding: 20px 30px;
  z-index: 3000;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-banner.active {
  display: flex;
}

.cookie-banner p {
  color: #ccc;
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn-cookie-accept {
  padding: 10px 25px;
  background: #FFD700;
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.btn-cookie-accept:hover {
  background: #e6c200;
}

.btn-cookie-policy {
  color: #FFD700;
  text-decoration: underline;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 10px; }
  .nav { gap: 15px; flex-wrap: wrap; justify-content: center; }
  .hero { min-height: auto; padding: 40px 0; flex-direction: column; }
  .hero-bg { position: relative; width: 100%; margin-bottom: 20px; }
  .hero-content { max-width: 100%; }
  .hero-logo-img { max-width: 320px; }
  .vin-search { flex-direction: column; max-width: 100%; }
  .vin-hint { flex-direction: column; text-align: center; }
  .hero-particles { display: none; }
  .hero-clock { display: none; }
  .product-detail { grid-template-columns: 1fr; }
}