/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Стили для хедера с изображением */
.page-header {
  position: relative;
  height: 350px;
  background-image: url("header.png");
  background-size: cover;
  background-position: center;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 82, 154, 0.7),
    rgba(0, 60, 113, 0.9)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.header-content h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.header-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Основной контент */
.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
}

.welcome-section {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.welcome-section h2 {
  color: #00529a;
  margin-bottom: 20px;
  font-size: 1.8rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.welcome-section p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.contact-info {
  background-color: #f0f8ff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 25px;
  border-left: 4px solid #00529a;
}

.contact-info i {
  color: #00529a;
  margin-right: 10px;
  font-size: 1.2rem;
}

.phone-number {
  font-size: 1.3rem;
  font-weight: bold;
  color: #00529a;
  margin-top: 10px;
}

/* Форма записи */
.booking-form-section {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.booking-form-section h2 {
  color: #00529a;
  margin-bottom: 25px;
  font-size: 1.8rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

.form-control {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition:
    border 0.3s,
    box-shadow 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #00529a;
  box-shadow: 0 0 0 3px rgba(0, 82, 154, 0.2);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300529a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(to right, #00529a, #0073c5);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  background: linear-gradient(to right, #004080, #00529a);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 82, 154, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 15px;
  text-align: center;
}

/* Диалоговое окно подтверждения */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-50px);
  transition: transform 0.4s;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header i {
  font-size: 2.5rem;
  color: #28a745;
  margin-right: 15px;
}

.modal-header h3 {
  color: #00529a;
  font-size: 1.5rem;
}

.modal-body {
  margin-bottom: 25px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

.modal-btn {
  padding: 12px 25px;
  background: #00529a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-btn:hover {
  background: #004080;
}

/* Адаптивность */
@media (max-width: 768px) {
  .page-header {
    height: 280px;
  }

  .header-content h1 {
    font-size: 2.2rem;
  }

  .header-content p {
    font-size: 1rem;
  }

  .main-content {
    flex-direction: column;
  }

  .welcome-section,
  .booking-form-section {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-header {
    height: 220px;
  }

  .header-content h1 {
    font-size: 1.8rem;
  }

  .header-content p {
    font-size: 0.9rem;
  }

  .welcome-section,
  .booking-form-section {
    padding: 20px;
  }

  .contact-info {
    padding: 15px;
  }

  .phone-number {
    font-size: 1.1rem;
  }
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-section,
.booking-form-section {
  animation: fadeIn 0.8s ease-out;
}

.booking-form-section {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

/* Стилизация фокуса для доступности */
.form-control:focus,
.submit-btn:focus,
.modal-btn:focus {
  outline: 2px solid #00529a;
  outline-offset: 2px;
}

/* .photo {
  width: 100%;
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
} */

.photo-slider {
  width: 100%;
  margin-top: 25px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  background-color: white; /* Белый фон для пустых областей */
  position: relative;
  height: 500px;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: white; /* Белый фон для контейнера */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    transform 0.8s ease-in-out,
    opacity 0.8s ease-in-out;
  transform: translateX(100%);
  background-color: white; /* Белый фон для каждого слайда */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Вписываем фото без обрезания */
  display: block;
  background-color: white; /* Белый фон для самого изображения */
}

/* Индикаторы слайдов */
.slider-indicators {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.indicator.active {
  background-color: #00529a;
  transform: scale(1.2);
}

/* Адаптивность */
@media (max-width: 768px) {
  .photo-slider {
    height: 450px;
  }
}

@media (max-width: 480px) {
  .photo-slider {
    height: 400px;
  }
}
