/* CSS для компьютеров */
  body {
    margin: 0;
    padding-top: 20px; /* чтобы контент не перекрывался меню */
    font-family: Arial, sans-serif;
  }
  .top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 6%;
    background-color: #333;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000;
  }
  .top-menu img {
    height: 40px;
    margin-right: 30px;
  }
  .top-menu ul {
  flex: 1;
  display: flex;
  justify-content: center; /* центрируем пункты меню */
  list-style: none;
  margin: 0;
  padding: 0;
  }
  
  .top-menu li {
    margin-right: 25px;
  }
  .top-menu li:last-child {
    margin-right: 0;
  }
  .top-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 22px;
    transition: color 0.3s ease;
  }
  .top-menu a:hover {
    color: #ffcc00;
  }

 /* Отступ сверху для контента из-за фиксированного меню */
  main {
    padding-top: 50px;
    max-width: 1200px;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Главный баннер */
  .hero {
    background: url("/images/header.jpg") center/cover no-repeat;
    border-radius: 12px;
    color: white;
    padding: 80px 30px;
    text-align: center;
    box-shadow: inset 0 0 0 1000px rgba(0,64,128,0.6);
    margin-bottom: 50px;
  }
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
  }
  .hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  }
  .hero .btn-primary {
    background-color: #ffcc00;
    color: #004080;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(255,204,0,0.6);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
  }
  .hero .btn-primary:hover,
  .hero .btn-primary:focus {
    background-color: #e6b800;
    box-shadow: 0 6px 14px rgba(230,184,0,0.8);
    outline: none;
  }

  /* О мастерской */
  .about {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    background-color: white;
    border-radius:12px;
    padding:40px;
    box-shadow:0 4px 20px rgba(0,0,0,0.05);
  }
  .about img {
    width:100%;
    max-width:400px;
    border-radius:12px;
    object-fit: cover;
    box-shadow:0 6px 15px rgba(0,64,128,0.15);
  }
  .about-text {
    flex-grow:1;
    min-width:280px;
  }
  .about-text h2 {
    font-size:2rem;
    margin-bottom:15px;
    color:#004080;
  }
  .about-text p {
    font-size:1.1rem;
    line-height:1.6em;
    color:#555555;
    margin-bottom:20px;
  }
  
  /* Услуги */
  .services {
    margin-bottom:60px;
    text-align:center;
  }
  
  .services h2 {
    font-size:2rem;
    color:#004080;
    margin-bottom:40px;
  }
  
  .service-list {
    display:flex;
    flex-wrap: wrap;
    justify-content:center;
    gap:30px;
  }
  
  .service-item {
    background:white;
    border-radius:12px;
    padding:25px;
    width:260px;
    box-shadow:0 4px 15px rgba(0,64,128,0.1);
    transition: transform .3s ease, box-shadow .3s ease;
    
    display:flex; 
    flex-direction: column; 
    align-items:center; 
    text-align:center; 
  }
  
  .service-item:hover,
  .service-item:focus-within {
      transform: translateY(-8px);
      box-shadow:0 10px 25px rgba(0,64,128,0.2);
      outline:none; 
      cursor:pointer; 
   }
  
   .service-icon {
     font-size:48px; 
     color:#004080; 
     margin-bottom:15px; 
   }
   .service-title {
     font-weight:bold; 
     font-size:18px; 
     margin-bottom:10px; 
     color:#004080; 
   }
   .service-desc {
     font-size:14.5px; 
     color:#555555; 
   }

   /* Контакты */
   .contacts {
     background:#004080; 
     color:white; 
     padding:40px; 
     border-radius:12px; 
     text-align:center; 
     max-width:100%; 
     margin:auto; 
     box-shadow:0 8px 30px rgba(0,64,128,0.3);
   }
   .contacts h2 {
     font-size:2rem; 
     margin-bottom:20px; 
   }
   .contacts p {
     font-size:1.1rem; 
     margin-bottom:10px; 
   }
   .contacts a {
     color:#ffcc00; 
     text-decoration:none; 
     font-weight:bold; 
     font-size:1.2rem; 
   }
   .contacts a:hover,
   .contacts a:focus {
     text-decoration:underline; 
     outline:none; 
   }

   /* Футер */
   footer {
     text-align:center; 
     padding:20px; 
     font-size:.9rem; 
     color:#777777; 
     margin-top:60px; 
   }
   
  #modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex; /* для центрирования */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-family: Arial, sans-serif;
  }

  #modal .modal-content {
    background: #fff;
    padding: 30px 25px 25px 25px;
    max-width: 420px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    position: relative;
  }

  #closeModal {
    position: absolute;
    top: 12px; right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
  }
  #closeModal:hover {
    color: #000;
  }

  #modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
  }

  #bookingForm label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #444;
  }

  #bookingForm input[type="text"],
  #bookingForm input[type="tel"],
  #bookingForm input[type="date"],
  #bookingForm textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1.8px solid #ccc;
    font-size: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    resize: vertical;
  }
  #bookingForm input[type="text"]:focus,
  #bookingForm input[type="tel"]:focus,
  #bookingForm input[type="date"]:focus,
  #bookingForm textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74,144,226,0.5);
  }

  #bookingForm textarea {
    min-height: 70px;
  }

  #bookingForm button[type="submit"] {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
  }
  #bookingForm button[type="submit"]:hover {
    background-color: #357ABD;
  }

  #responseMessage {
    margin-top: 15px;
    font-size: 14px;
    color: green;
    text-align: center;
  }

/* Расположите контейнер с изображением (необходимо расположить стрелки влево и вправо) */
.container {
  position: relative;
}

/* Скрыть изображения по умолчанию */
.mySlides {
  display: none;
}

/* Добавление указателя при наведении указателя мыши на миниатюры изображений */
.cursor {
  cursor: pointer;
}

/* Вперед и назад кнопки */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Расположите кнопку "вперед" справа */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* При наведении курсора мыши добавьте черный цвет фона с небольшим прозрачным слоем */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Номер текста (1/3 и т.д.) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Контейнер для текста изображения */
.caption-container {
  text-align: center;
  background-color: #222;
  padding: 2px 16px;
  color: white;
   border-radius: 12px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Шесть колонн бок о бок */
.column {
  float: left;
  width: 10%;
}

/* Добавьте эффект прозрачности для миниатюрных изображений */
.demo {
  opacity: 0.6;
   border-radius: 12px;
}

.active,
.demo:hover {
  opacity: 1;
}

   /* Адаптив */
   @media (max-width:990px) {
	.top-menu a {
    font-size: 12px;
  } 
  .service-item {
    width: calc(30% - 10px); /* два блока в строку с небольшим отступом */
  }
}