/* styles.css — для главной страницы index.html */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  background: #f5f7fc;
  color: #1e2a3e;
  line-height: 1.4;
  scroll-behavior: smooth;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  background: #0b1c2c;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  color: #f0f3f8;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
  font-size: 1rem;
}
.nav a:hover,
.nav a.active {
  color: #e67e22;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* ===== HERO (Главная) ===== */
.hero {
  background: linear-gradient(135deg, #0f2a3f 0%, #1a3a4f 100%);
  color: white;
  padding: 60px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-content h1 {
  font-size: 2.7rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
.accent {
  color: #f39c12;
}
.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 28px;
  font-weight: 500;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 60px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn-primary {
  background: #e67e22;
  color: #0b1c2c;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  background: #f39c12;
  transform: scale(1.02);
}
.btn-outline {
  background: transparent;
  border: 2px solid #e67e22;
  color: #e67e22;
}
.btn-outline:hover {
  background: #e67e22;
  color: #0b1c2c;
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.adv-item {
  background: rgba(255,255,255,0.12);
  padding: 8px 14px;
  border-radius: 40px;
  font-weight: 500;
  backdrop-filter: blur(2px);
}
.contact-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.call-widget, .messenger-widget {
  background: #e67e22;
  padding: 10px 20px;
  border-radius: 40px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.call-widget:hover, .messenger-widget:hover {
  background: #f39c12;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(230,126,34,0.3);
}

/* Галерея фото */
.hero-gallery > img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 30px -12px rgba(0,0,0,0.3);
  margin-bottom: 10px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.gallery-thumbs img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  border: 2px solid transparent;
}
.gallery-thumbs img:hover {
  transform: scale(1.02);
  opacity: 0.9;
  border-color: #e67e22;
}

/* ===== Секции общие ===== */
.section-title {
  font-size: 2.2rem;
  margin: 40px 0 28px 0;
  border-left: 8px solid #e67e22;
  padding-left: 20px;
}

/* Услуги и цены — единообразные карточки */
.price-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.service-card {
  background: white;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.15);
  border: 1px solid #e67e22;
}
.service-card.highlight {
  border: 2px solid #e67e22;
  background: #fffaf2;
}
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.desc {
  color: #4a5568;
  font-size: 0.95rem;
  margin-bottom: 10px;
  flex-grow: 1;
}
.price {
  font-size: 1.7rem;
  font-weight: 800;
  color: #e67e22;
  margin: 15px 0 10px 0;
}
.price-details {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}
.price-details small {
  display: block;
  margin-bottom: 4px;
}

/* Кнопка "Полный прайс шиномонтажа" */
.price-link {
  margin-top: 30px;
  text-align: center;
}
.price-link .btn-outline {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 60px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  background: #e67e22;
  border: 2px solid #e67e22;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(230,126,34,0.3);
}
.price-link .btn-outline:hover {
  background: #f39c12;
  border-color: #f39c12;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230,126,34,0.5);
}

/* О компании */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.about-card {
  background: white;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.15);
  border: 1px solid #e67e22;
}
.about-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #1e2a3e;
  border-left: 4px solid #e67e22;
  padding-left: 15px;
}
.about-text-content {
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 20px;
}
.about-img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 16px;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.certificates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}
.certificates span {
  background: #fef9e6;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e67e22;
}
.equipment-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
  text-align: center;
}
.team-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.team-card {
  background: #f8fafc;
  border-radius: 20px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
}
.team-card:hover {
  transform: translateY(-3px);
  background: #fffaf2;
  border: 1px solid #e67e22;
}
.team-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  margin-bottom: 12px;
}
.team-card strong {
  font-size: 1.2rem;
  color: #e67e22;
  display: block;
  margin-bottom: 5px;
}

/* Процесс шаги */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.step {
  background: white;
  padding: 18px;
  border-radius: 28px;
  font-weight: 500;
  box-shadow: 0 5px 12px rgba(0,0,0,0.05);
}

/* Контакты */
.contacts-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.contacts-info {
  flex: 1.2;
  background: white;
  padding: 28px;
  border-radius: 32px;
}
.contacts-info a {
  color: #e67e22;
  text-decoration: none;
}
.contacts-info a:hover {
  color: #f39c12;
  text-decoration: underline;
}
.social-links {
  margin-top: 15px;
}
.social-links a {
  background: #e67e22;
  color: white;
  padding: 8px 16px;
  border-radius: 40px;
  text-decoration: none;
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.social-links a:hover {
  background: #f39c12;
  transform: translateY(-2px);
}
#map-contacts {
  flex: 1.5;
  height: 280px;
  border-radius: 20px;
  background: #cbd5e1;
}

/* Акции */
.promo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 40px;
}
.promo-card {
  background: linear-gradient(115deg, #ffeedb, #fff6e8);
  padding: 24px;
  border-radius: 28px;
  flex: 1;
  min-width: 240px;
  font-weight: 600;
  border-left: 5px solid #e67e22;
}

/* Footer */
.footer {
  background: #0b1c2c;
  color: #b0c4de;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 950px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #0f2a3f;
    padding: 20px;
    margin-top: 16px;
    border-radius: 32px;
  }
  .nav.nav-open {
    display: flex;
  }
  .header-container {
    flex-wrap: wrap;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .btn, .call-widget, .messenger-widget {
    font-size: 0.9rem;
    padding: 12px 20px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .contacts-flex {
    flex-direction: column;
  }
  .price-table {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

/* Логотип на мобильных — в одну строку */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  
  .logo {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65%;
  }
  
  .mobile-menu-btn {
    flex-shrink: 0;
  }
}

@media (max-width: 580px) {
  .container {
    padding: 0 14px;
  }
  .hero {
    padding: 40px 0 50px;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .hero-buttons .btn {
    text-align: center;
  }
  .contact-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .call-widget, .messenger-widget {
    justify-content: center;
  }
  .price-table {
    grid-template-columns: 1fr;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
  }
  .gallery-thumbs img {
    height: 60px;
  }
  .section-title {
    font-size: 1.4rem;
    border-left-width: 5px;
    padding-left: 12px;
  }
  .about-card {
    padding: 18px;
  }
  .about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  .certificates span {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
  .footer {
    font-size: 0.8rem;
    padding: 20px 16px;
  }
  .price-details small {
    font-size: 0.75rem;
  }
  .price-link .btn-outline {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
  }
  
  .logo {
    font-size: 0.75rem;
    max-width: 70%;
  }
}

@media (max-width: 450px) {
  .logo {
    font-size: 0.65rem;
    max-width: 75%;
  }
}

/* Улучшения для касаний */
button, .btn, .nav a, .call-widget, .messenger-widget, .gallery-thumbs img, 
.service-card, .about-card, .team-card, .social-links a {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Плавные переходы */
.service-card, .about-card, .team-card, .btn, .call-widget, .messenger-widget, .social-links a {
  transition: all 0.25s ease-in-out;
}