* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #4a2c2a;
  line-height: 1.6;
  background-color: #f9f6f2;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px; 
  background: #fdfaf7;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo a {
  font-family: 'Borel', cursive;
  text-decoration: none;
  color: #6b4226; 
  font-size: 1.9rem;
  font-weight: bold;
  line-height: 0.1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  font-family: "Zain", sans-serif;
  font-size: 1.6rem;
  text-decoration: none;
  color: #6b4226;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #a67856; 
}

.services-intro {
  background: #a67856d4;
  text-align: center;
  padding: 60px 20px 40px;
}

.services-content h1 {
  font-family: "Poiret One", sans-serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 3px 6px #3c2f2f;
}

.services-content p {
  font-family: "Zain", sans-serif;
  font-size: 1.6rem;
  margin-bottom: 25px;
  color: #f9f6f2;
  text-shadow: 0 2px 9px #3c2f2f;
}

.service-category {
  margin-bottom: 60px;
  text-align: center;
}

.service-category h2 {
  font-size: 3rem;
  color: #6b4226;
  font-family: "Zain", sans-serif;
  margin-top: 30px;

}

.procedures {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 60px; 
  max-width: 1100px;
  margin: 0 auto;
}

.procedure {
  background: #a678564f; 
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; 
}

.procedure:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.procedure img {
  width: 100%;
  height: 220px; 
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.procedure-info h3 {
  font-size: 1.3rem;
  color: #6b4226;
  margin-bottom: 8px;
}

.procedure-info p {
  font-size: 1rem;
  color: #5c4033;
  margin-bottom: 10px;
  line-height: 1.5;
}

.price {
  display: inline-block;
  font-weight: 600;
  color: #6b4226;
  font-size: 1.1rem;
  margin-top: 5px;
}

/* Модалка скрыта по умолчанию */
.modal {
  display: none; /* скрыто */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}


.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  color: #4a2c2a;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeIn 0.3s ease;
  
}

.modal-content p{
  font-family: "Zain", sans-serif;
  font-size: 1.6rem;

}


.modal-content h2{
  font-family: "Poiret One", sans-serif;
  font-size: 1.8rem;

}

  
.close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: #6b4226;
  cursor: pointer;
  transition: color 0.2s;
}

.open-modal {
  position: absolute;
  right: 20px;   /* отступ справа */
  bottom: 20px;  /* отступ снизу */
  padding: 8px 16px;
  background-color: #6b4226;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.open-modal:hover {
  background-color: #a67856;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.open-modal:active {
  transform: translateY(0); 
  box-shadow: none;
}

.close:hover {
  color: #a67856;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

footer {
  background: #3c2f2f; 
  color: #f3e9dd; 
  text-align: center;
  padding: 15px;
}

/* --- Burger Menu --- */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #6b4226;
}

/* Mobile */
@media (max-width: 768px) {
  /* Скрываем меню по умолчанию */
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fdfaf7;
    position: absolute;
    top: 70px;
    left: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
  }

  /* Когда активное */
  nav.active {
    display: flex;
    animation: dropdown 0.3s ease forwards;
  }

  /* Стили списка */
  nav ul {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  nav ul li a {
    font-size: 1.4rem;
    display: block;
    padding: 10px 0;
  }

  .menu-toggle {
    display: block; /* бургер показывается */
  }
}

/* Анимация выпадающего меню */
@keyframes dropdown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile version */
@media (max-width: 1024px) {
  .procedures {
    grid-template-columns: repeat(2, 1fr); /* на планшете по 2 карточки */
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .procedures {
    grid-template-columns: 1fr; /* на телефоне по одной */
    gap: 20px;
  }

  .procedure img {
    height: auto; /* пусть изображение само регулируется */
    max-height: 250px; /* ограничим высоту */
    object-fit: cover;
  }

  .open-modal {
    position: static; /* убираем фиксированное положение */
    margin-top: 10px;
    width: 100%; /* кнопка растянется */
    text-align: center;
  }
}