/* Основные стили */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  position: relative;
}

.logo-title {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

h1 {
  margin: 0;
}

.nav-toggle {
  display: none;
  font-size: 24px;
  background: none;
  color: white;
  border: none;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
}

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

.nav-menu a {
  color: white;
  text-decoration: none;
  margin: 5px 0;
}

main {
  padding: 30px 20px;
  background-color: #fdfdfd;
}

footer {
  background-color: #f2f2f2;
  text-align: center;
  padding: 10px;
}

/* Галерея */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
  gap: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.gallery figure {
  margin: 0;
  padding: 15px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease-in-out;
}

.gallery figure:hover {
  transform: scale(1.02);
}

.gallery img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border: 2px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

.gallery h3 {
  text-align: center;
  font-size: 1.1em;
  margin: 10px 0 5px;
  color: #333;
}

.gallery figcaption {
  text-align: center;
  padding: 5px 10px;
  font-size: 0.95em;
  color: #555;
}

/* Секции */
#services {
  background-color: #f5f9f9;
  padding: 30px 20px;
  border-bottom: 2px solid #ddd;
}

#contact {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

#contact h2 {
  margin-bottom: 15px;
  font-size: 1.8em;
}

#contact p {
  margin: 10px 0;
  font-size: 1.1em;
}

#contact a {
  color: #ffc107;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* Медиазапросы */
@media (max-width: 768px) {
  .logo-title {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo {
    margin: 0 0 10px 0;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

  .gallery img {
    height: auto;
  }

  h1 {
    font-size: 1.5em;
  }

  h3 {
    font-size: 1.2em;
  }

  p, li {
    font-size: 1em;
  }
}
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center; }
/* Десктоп (от 768px и выше): в ряд */
@media (min-width: 768px) {
  .services {
    flex-direction: row;
  }
}

/* Мобильный (до 767px): колонна */
@media (max-width: 767px) {
  .services {
    flex-direction: column;
    align-items: center;
  }
}
