/* Сброс базовых стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Шапка сайта */
header {
  background: #f8f8f8;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

header h1 {
  font-size: 2rem;
  text-align: center;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

header nav ul li {
  margin: 0 15px;
}

header nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* Hero секция с фоновым изображением */
.hero {
  position: relative;
  padding: 60px 0;
  text-align: center;
  color: #fff;
  background: url('back1.jpg') no-repeat center center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* затемнение */
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
}

/* Секция услуг */
.services {
  padding: 40px 0;
}

.services h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.service {
  background: #f8f8f8;
  padding: 20px;
  flex: 1 1 calc(33% - 40px);
  max-width: calc(33% - 40px);
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

.service h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.service p {
  font-size: 1rem;
}

/* Секции "О нас" и "Контакты" */
.about, .contact {
  padding: 40px 0;
  text-align: center;
}

.about h2, .contact h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.about p, .contact p {
  font-size: 1rem;
  margin-bottom: 10px;
}

/* Подвал */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .service {
    flex: 1 1 calc(45% - 40px);
    max-width: calc(45% - 40px);
  }
}

@media (max-width: 480px) {
  header nav ul {
    flex-direction: column;
  }
  
  header nav ul li {
    margin: 10px 0;
  }
  
  .service {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}
