/* ========================================
   ОБНУЛЕНИЕ И БАЗОВЫЕ СТИЛИ
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c5f8d;
  --secondary-color: #4a90c7;
  --accent-color: #e67e22;
  --text-color: #333;
  --light-bg: #f5f7fa;
  --white: #ffffff;
  --border-color: #ddd;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

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

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

ul {
  list-style: none;
}

/* ========================================
   ШАПКА САЙТА
   ======================================== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s;
}

.header.scroll-down {
  transform: translateY(-100%);
}

.header.scroll-up {
  transform: translateY(0);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.logo h1 {
  color: var(--primary-color);
  font-size: 28px;
  margin-bottom: 5px;
}

.logo p {
  color: #666;
  font-size: 14px;
}

.header-contacts {
  text-align: right;
}

.phone {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.email {
  color: var(--secondary-color);
  font-size: 14px;
}

.phone:hover,
.email:hover {
  opacity: 0.8;
}

/* ========================================
   НАВИГАЦИЯ
   ======================================== */
.navigation {
  background: var(--primary-color);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-list li a {
  display: block;
  color: var(--white);
  padding: 15px 20px;
  transition: background 0.3s;
}

.nav-list li a:hover,
.nav-list li a.active {
  background: var(--secondary-color);
}

/* ========================================
   ГЛАВНЫЙ ЭКРАН
   ======================================== */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.hero-content h2 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   КНОПКИ
   ======================================== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

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

.btn-primary:hover {
  background: #d35400;
  transform: translateY(-2px);
}

.btn-large {
  padding: 15px 40px;
  font-size: 18px;
}

/* ========================================
   СЕКЦИИ
   ======================================== */
.section {
  padding: 80px 0;
  animation: fadeIn 0.6s ease-out;
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 15px auto 0;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
}

/* ========================================
   О КОМПАНИИ
   ======================================== */
.about {
  background: var(--light-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-text p {
  margin-bottom: 15px;
  font-size: 16px;
}

.company-info {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: var(--shadow);
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: bold;
  color: var(--primary-color);
}

.info-value {
  color: var(--text-color);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-icon {
  font-size: 32px;
  color: var(--accent-color);
  font-weight: bold;
}

.feature h3 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

.feature p {
  color: #666;
  font-size: 14px;
}

/* ========================================
   ПРОДУКЦИЯ
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
}

.product-card.show {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.product-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 22px;
}

.product-card p {
  color: #666;
  margin-bottom: 20px;
}

.product-list {
  list-style: none;
  text-align: left;
}

.product-list li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.product-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* ========================================
   АВТОТОВАРЫ
   ======================================== */
.auto-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
}

.auto-section .section-title {
  color: var(--white);
}

.auto-section .section-title::after {
  background: var(--white);
}

.auto-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
}

.auto-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.auto-info p {
  margin-bottom: 25px;
  font-size: 16px;
}

.auto-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.auto-feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.auto-feature strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.auto-feature p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.auto-note {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  font-style: italic;
}

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

.placeholder-image {
  font-size: 120px;
  background: rgba(255, 255, 255, 0.2);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  backdrop-filter: blur(10px);
}

.image-caption {
  font-size: 14px;
  opacity: 0.9;
}

/* ========================================
   ФОРМА ЗАКАЗА
   ======================================== */
.order-section {
  background: var(--light-bg);
}

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

.order-form {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.checkbox-group {
  margin: 25px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.checkbox-label input {
  margin-top: 3px;
}

.form-note {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
  text-align: center;
  font-style: italic;
}

.order-info {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.order-info h3 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 24px;
}

.order-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.order-step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.order-step.show {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  background: var(--primary-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.step-content p {
  color: #666;
  font-size: 14px;
}

.order-contacts {
  border-top: 2px solid var(--border-color);
  padding-top: 25px;
}

.order-contacts h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-link {
  display: block;
  color: var(--secondary-color);
  padding: 8px 0;
  font-size: 16px;
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--primary-color);
}

/* ========================================
   КОНТАКТЫ
   ======================================== */
.contacts-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-block {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.contact-block h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 22px;
}

.requisites {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.req-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.req-label {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 14px;
}

.req-value {
  color: var(--text-color);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

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

.contact-label {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.contact-value {
  color: var(--text-color);
}

.contact-value:hover {
  color: var(--secondary-color);
}

/* ========================================
   ЯНДЕКС КАРТА
   ======================================== */
.contacts-map {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  height: 550px; /* Увеличил высоту */
}

#yandex-map {
  width: 100%;
  height: 100%; /* Заполняет весь контейнер */
  border-radius: 8px;
  overflow: hidden;
  background: #f0f2f5;
  margin: 0; /* Убрал отступы */
  padding: 0; /* Убрал внутренние отступы */
}

/* Адаптив для карты */
@media (max-width: 968px) {
  .contacts-map {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .contacts-map {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .contacts-map {
    height: 300px;
  }
}

/* ========================================
   ПОДВАЛ
   ======================================== */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-section p {
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-requisites {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 15px;
}

.footer-section a {
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-section a:hover {
  opacity: 1;
}

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

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

.footer-links a {
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
  font-size: 14px;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 968px) {
  .header-top {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

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

  .nav-list {
    justify-content: center;
  }

  .hero-content h2 {
    font-size: 32px;
  }

  .about-content,
  .auto-content,
  .order-container,
  .contacts-content {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  #yandex-map {
    height: 350px;
  }
}

@media (max-width: 600px) {
  .nav-list {
    flex-direction: column;
  }

  .nav-list li a {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-content h2 {
    font-size: 26px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .order-form,
  .order-info,
  .contact-block {
    padding: 20px;
  }

  #yandex-map {
    height: 250px;
  }
}

/* ========================================
   АНИМАЦИИ И ПРОКРУТКА
   ======================================== */
html {
  scroll-behavior: smooth;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Плавная прокрутка */
.scroll-smooth {
  scroll-behavior: smooth;
}
