/* Базовые настройки */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
}

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

/* Шапка */
header {
  background: #2c3e50;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

nav a {
  color: #ecf0f1;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.3s;
}

nav a:hover,
nav a.active {
  background: #34495e;
}

/* Герой-секция */
.hero {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #e0f7fa, #fff);
  border-radius: 12px;
  margin: 20px 0;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

/* Галерея */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Кнопки */
.btn {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 10px 25px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  margin: 10px 0;
  transition: background 0.3s;
}

.btn:hover {
  background: #2980b9;
}

/* Список услуг */
.services-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.services-list li {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

/* Карточки аксессуаров */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding-bottom: 15px;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  padding: 10px 15px 5px;
}

.card p {
  padding: 0 15px;
  font-size: 0.95rem;
  color: #555;
}

/* Видео-сетка */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.video-item h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Подвал */
footer {
  background: #2c3e50;
  color: #bdc3c7;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
  font-size: 0.9rem;
}

footer a {
  color: #ecf0f1;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    justify-content: space-around;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery img {
    height: 140px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
