/* ===== Базовые сбросы и шрифты ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Подключение шрифтов и иконок */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Open+Sans:wght@400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* ===== Контейнер для ограничения ширины ===== */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Заголовки секций ===== */
.section-title {
  font-size: 3rem;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 20px rgba(245,124,0,0.3);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: #f57c00; /* акцентный оранжевый */
  box-shadow: 0 0 15px #f57c00;
}
@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  border: 2px solid #f57c00;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(245,124,0,0.2);
}
.btn:hover {
  background: #f57c00;
  color: #0a0a0a;
  box-shadow: 0 0 25px #f57c00;
  transform: scale(1.05);
}
.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* ===== Карточки (универсальные) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: #1a1a1a;
  padding: 20px;
  text-align: center;
  border: 1px solid #333;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.7);
  border-color: #f57c00;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,124,0,0.1), transparent);
  transition: left 0.5s;
}
.card:hover::before {
  left: 100%;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  background: #333;
}
.card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 800;
}
.card-text {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 15px;
}
.card-link {
  color: #f57c00;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin: 0 8px;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}
.card-link:hover {
  color: #fff;
  transform: translateY(-3px);
}

/* ===== Сетка для двух колонок ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ===== Табы для продукции ===== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-input {
  display: none;
}
.tab-label {
  padding: 12px 40px;
  background: #1a1a1a;
  border: 1px solid #333;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tab-label:hover {
  background: #f57c00;
  color: #0a0a0a;
  border-color: #f57c00;
}
#tab1:checked ~ .tab-container .tab-content-1,
#tab2:checked ~ .tab-container .tab-content-2 {
  display: block;
}
#tab1:checked ~ .tabs .tab-label[for="tab1"],
#tab2:checked ~ .tabs .tab-label[for="tab2"] {
  background: #f57c00;
  color: #0a0a0a;
  border-color: #f57c00;
  box-shadow: 0 0 20px #f57c00;
}
.tab-content {
  display: none;
}

/* ===== Форма и контакты ===== */
.contact-form {
  background: #1a1a1a;
  padding: 40px;
  border: 1px solid #333;
}
.form-group {
  margin-bottom: 20px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: #0a0a0a;
  border: 1px solid #333;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f57c00;
  box-shadow: 0 0 15px rgba(245,124,0,0.3);
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}
.social-links a {
  color: #fff;
  font-size: 2.5rem;
  transition: color 0.3s, transform 0.3s;
}
.social-links a:hover {
  color: #f57c00;
  transform: translateY(-5px) scale(1.1);
}

/* ===== Hero секция с видео ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 0 20px;
}
.hero-logo {
  font-size: 5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 15px;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 0 30px #f57c00;
  animation: fadeInDown 1s ease;
}
.hero-slogan {
  font-size: 1.8rem;
  letter-spacing: 4px;
  color: #f57c00;
  margin-bottom: 40px;
  text-shadow: 0 0 15px rgba(245,124,0,0.5);
  animation: fadeInUp 1s ease 0.3s both;
}
.hero .btn {
  animation: fadeInUp 1s ease 0.6s both;
  font-size: 1.2rem;
  padding: 15px 50px;
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .hero-logo {
    font-size: 3rem;
    letter-spacing: 8px;
  }
  .hero-slogan {
    font-size: 1.2rem;
  }
}

/* ===== Карусель (горизонтальный скролл) ===== */
.carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 0 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar {
  height: 5px;
}
.carousel::-webkit-scrollbar-track {
  background: #1a1a1a;
}
.carousel::-webkit-scrollbar-thumb {
  background: #f57c00;
  border-radius: 10px;
}
.carousel-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 25px 20px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.carousel-item:hover {
  transform: translateY(-10px);
  border-color: #f57c00;
}
.carousel-item .card-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 3px solid #f57c00;
  box-shadow: 0 0 25px rgba(245,124,0,0.3);
}
.carousel-item .card-title {
  font-size: 1.5rem;
}
.carousel-item .card-text {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 20px;
}

/* ===== Секции ===== */
.section {
  padding: 80px 0;
}
.bg-dark {
  background: #0a0a0a;
}
.bg-darker {
  background: #111;
}
.text-center {
  text-align: center;
}

/* ===== Логотипы вселенной (сетка с иконками) ===== */
.universe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
}
.universe-item {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 25px 15px;
  text-align: center;
  transition: 0.3s;
  cursor: pointer;
}
.universe-item:hover {
  border-color: #f57c00;
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(245,124,0,0.3);
}
.universe-item i {
  font-size: 3.5rem;
  color: #f57c00;
  margin-bottom: 15px;
}
.universe-item .item-title {
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
}
.universe-item .item-sub {
  font-size: 0.85rem;
  color: #999;
}

/* ===== Акцентный блок автосалона ===== */
.showcase-block {
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1494976388531-d1058494cdd8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover fixed;
  padding: 60px 40px;
  border: 1px solid #f57c00;
  box-shadow: 0 0 50px rgba(245,124,0,0.2);
}
.showcase-block h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.showcase-block p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #ddd;
}