/* styles/style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  text-align: center;
}

.body22 {
  background-image: url('../pictures/fon1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Опционально - фиксирует фон */
}

/* Верхняя панель */
.top-bar {
  background-color: #2c3e50;
  color: white;
  padding: 10px;
  font-size: 0.9em;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Герой секция */
.hero {
  padding: 60px 20px 20px;
}

.hero h1 {
  font-size: 3.5em;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.5em;
  margin-bottom: 30px;
}

/* Кнопки CTA */
.cta-buttons {
  margin: 30px 0;
}

.cta-button {
  display: block;
  width: 300px;
  margin: 15px auto;
  padding: 15px;
  background-color: #2c3e50;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #4c739b;
}

/* Instagram кнопка */
.instagram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 10px auto;
}

.instagram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.instagram-btn svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Секция услуг */
.services {
  padding: 50px 20px;
  background-color: rgba(255, 255, 255, 0.9);
  margin: 20px;
  border-radius: 10px;
}

.services h2 {
  font-size: 2.2em;
  margin-bottom: 10px;
}

.services .highlight {
  font-size: 1.8em;
  color: #e74c3c;
  margin: 30px 0;
  font-weight: bold;
}

.services p {
  margin: 10px 0;
  line-height: 1.6;
}

.services h3 {
  font-weight: normal;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Секция галереи */
#gallery {
  padding: 50px 20px;
  background-color: rgba(255, 255, 255, 0.9);
  margin: 20px;
  border-radius: 10px;
}

#gallery h2 {
  font-size: 2.2em;
  margin-bottom: 10px;
}

#gallery > p {
  margin-bottom: 30px;
  color: #666;
}

/* Обертка для трех галерей */
.gallery-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1400px;
  margin: 40px auto;
}

/* Контейнер отдельной галереи */
.gallery-container {
  position: relative;
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: white;
  overflow: hidden;
  
  /* Touch интерфейс */
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.gallery-title {
  padding: 15px;
  background-color: #34495e;
  color: white;
  font-size: 1.3em;
  margin: 0;
}

/* Трек с изображениями */
.gallery-track {
  display: flex;
  transition: transform 0.3s ease-out;
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
  will-change: transform;
}

.gallery-track:active {
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}

/* Слайд */
.gallery-slide {
  flex: 0 0 100%;
  position: relative;
  padding: 0;
}

.gallery-slide img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none; /* Чтобы не мешать перетаскиванию */
  user-select: none;
}

.slide-caption {
  padding: 10px;
  font-style: italic;
  color: #555;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.9);
}

/* Кнопки навигации */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(52, 73, 94, 0.7);
  color: white;
  border: none;
  font-size: 18px;
  padding: 12px 8px;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
  transition: background 0.3s;
  min-width: 40px;
}

.gallery-btn:hover {
  background: rgba(52, 73, 94, 1);
}

.btn-prev {
  left: 5px;
}

.btn-next {
  right: 5px;
}

/* Индикаторы (точки) */
.gallery-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 15px 10px;
  background-color: #f1f1f1;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bdc3c7;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.indicator:hover {
  transform: scale(1.2);
}

.indicator.active {
  background: #34495e;
}

/* Секция "О нас" */
.about {
  color: #000000;
  padding: 50px 20px;
  background-color: rgba(255, 255, 255, 0.9);
  margin: 20px;
  border-radius: 10px;
}

.about h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1em;
}

/* Футер */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 30px 20px;
  margin-top: 40px;
}

footer p {
  margin: 10px 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5em;
  }
  
  .hero p {
    font-size: 1.2em;
  }
  
  .cta-button {
    width: 90%;
    max-width: 300px;
  }
  
  .services h2,
  #gallery h2,
  .about h2 {
    font-size: 1.8em;
  }
  
  .services .highlight {
    font-size: 1.5em;
  }
  
  .gallery-wrapper {
    gap: 20px;
  }
  
  .gallery-container {
    min-width: 280px;
  }
  
  .gallery-btn {
    padding: 8px 5px;
    font-size: 16px;
    min-width: 35px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 10px 20px;
  }
  
  .hero h1 {
    font-size: 2em;
  }
  
  .services,
  #gallery,
  .about {
    padding: 30px 15px;
    margin: 10px;
  }
  
  .gallery-container {
    min-width: 100%;
  }
  
  .gallery-title {
    font-size: 1.1em;
  }
  
  .instagram-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .instagram-btn svg {
    width: 16px;
    height: 16px;
  }
}