/* Загальні стилі */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}

header {
  background-color: #004d40;
  color: #fff;
  padding: 1rem 2rem;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #004d40;
  color: #fff;
  flex-wrap: wrap;
}

.logo img {
  max-height: 50px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* 📱 Адаптивність */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .burger {
    display: block;
  }
}

/* Hero-секція */
#hero {
  background-image: url('fon.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 4rem 2rem;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  background-color: rgba(0, 77, 64, 0.6);
  padding: 2rem;
  border-radius: 10px;
  display: inline-block;
  max-width: 90%;
}

#hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#hero p {
  font-size: 1.2rem;
}

/* 📱 Адаптивність */
@media (max-width: 768px) {
   #hero {
    padding: 3rem 1rem;
    min-height: 400px;
  }

 .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  #hero h2 {
    font-size: 1.6rem;
  }

  #hero p {
    font-size: 1rem;
  }

  .hero-overlay {
    padding: 1rem;
  }
}

#about {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
  background: linear-gradient(135deg, #e0f7fa, #ffffff);
  transition: background 0.5s ease;
}

#about h2 {
  color: #004d40;
  margin-bottom: 1rem;
}

#about p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #333;
}

.button-link {
  display: inline-block;
  background-color: #00796b;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-link:hover {
  background-color: #004d40;
  transform: scale(1.05);
}

.description ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.description li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

#services {
  background-color: #e0f7fa;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
}

#services h2 {
  text-align: center;
  color: #004d40;
  margin-bottom: 2rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-item {
  background-color: #ffffff;
  padding: 1rem 1.5rem;
  border-left: 6px solid #00796b;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-item:hover {
  transform: scale(1.02);
  background-color: #f1fdfd;
}

.service-item h3 {
  margin-top: 0;
  color: #00796b;
}

.description {
  margin-top: 0.5rem;
  display: none;
  color: #333;
}
.service-item .description {
  display: none;
  margin-top: 1rem;
  color: #333;
}

.service-item.active .description {
  display: block;
}

.description ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.description li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.image-gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.image-gallery img {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

.simple-slider {
  position: relative;
  max-width: 100%;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  display: none;
  object-fit: cover;
  border-radius: 10px;
}

.slide.active {
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

@media (max-width: 768px) {
  .slider-btn {
    padding: 0.5rem;
    font-size: 1.2rem;
  }
}


#contact {
  display: flex;
  flex-direction: column;
  align-items: center; /* центрує по горизонталі */
  justify-content: center; /* центрує по вертикалі (якщо є висота) */
  padding: 3rem 1rem;
  background-color: #f1fdfd;
  border-radius: 10px;
  margin: 2rem auto;
  max-width: 700px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

#contact h2 {
  color: #004d40;
  margin-bottom: 1.5rem;
}

#contact form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact form label {
  align-self: flex-start;
  margin-bottom: 0.3rem;
  font-weight: bold;
  color: #333;
}

#contact form input,
#contact form textarea {
  width: 100%;
  max-width: 500px;
  margin-bottom: 1rem;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#contact button {
  background: #00796b;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#contact button:hover {
  background: #004d40;
}


#contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* центрує блоки по горизонталі */
  gap: 2rem;
  margin-top: 2rem;
  text-align: center; /* центрує текст всередині блоків */
}

.info-block {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center; /* центрує вміст по горизонталі */
}

.icon {
  width: 40px;
  height: auto;
  margin-bottom: 1rem;
}

.info-block h3 {
  margin-top: 0;
  color: #004d40;
}

.info-block p {
  margin: 0.5rem 0;
  color: #333;
}

.info-block form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-block form input {
  width: 90%;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
}

.email-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.copy-btn {
  background-color: #e0e0e0;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.copy-btn:hover {
  background-color: #cfcfcf;
}

footer {
  background: #004d40;
  color: #fff;
  text-align: center;
  padding: 1rem;
}