html {
  scroll-behavior: smooth;
}

header {
  display: flex;
  justify-content: space-between;
  background-image: url("img/wave-haikei (3).svg");
  background-repeat: no-repeat;
  background-size: cover;
  padding-left: 50px;
  padding-right: 50px;
}

.second-header-img img{
  padding-left: 50px;
}

header img {
  height: 120px;
}


header h1 {
    text-align: center; 
    color: #f3f3f3f5;
    font-weight: 400;
    font-style: normal;
}

.hd_text {
  position: relative;
  top: -40px; /* рухає вище */
  right: 0px;
  align-items: center;    /* по центру горизонтально */
  justify-content: center; /* по центру вертикально */
}


nav {
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    gap: 5%;
    justify-content: center;
    padding-bottom: 10px;
}

/*a style*/
.a-outline {
    text-decoration: none;
    padding: 7px 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: "Nata Sans", sans-serif;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.a-outline:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.a-outline:active {
    background-color: #1c6ea4;
    transform: translateY(0);
}

.a-outline {
    background: transparent;
    border: 2px solid;
    color: #b4babe;
}

.a-outline:hover {
    background-color: #3c4247;
    color: rgb(182, 164, 164);
}


/**/

main {
    background-image: url('img/World Map (2).svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; 
    min-height: 100vh; 
    padding-left: 30px;
    padding-top: 10px;
}


main h1, h2, h3 {
  color: #000000;
  background: linear-gradient(
    120deg,
    rgba(242, 237, 237, 0.9), 
    rgba(203, 208, 253, 0.6)   
  );
  background-repeat: no-repeat; 
  border-radius: 5px;
  padding: 10px;
  width: 500px;
  text-align: center;
  margin: 0 auto;
  font-family: 'Times New Roman', Times, serif;
}


.options-info p {
  color: #000000;
  background: linear-gradient(
    120deg,
    rgba(242, 237, 237, 0.9), 
    rgba(203, 208, 253, 0.6)   
  );
}

#services {
  padding: 50px 20px;
  text-align: center;
}

#services h2 {
  color: #000000;
  font-size: 28px;
  margin-bottom: 30px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: linear-gradient(
    120deg,
    rgba(242, 237, 237, 0.9), 
    rgba(203, 208, 253, 0.6)
  );
  border-radius: 10px;
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  color: #060606;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  cursor: pointer;
}


h2, h3, h4, h5 {
  background: linear-gradient(
  120deg,
  rgba(242, 237, 237, 0.9), 
  rgba(203, 208, 253, 0.6)   
);
  background-repeat: no-repeat; 
  border-radius: 5px;
  padding-top: 10px;
}


footer {
  display: flex;
  word-spacing: 10px;
  padding-left: 40px;
  color: aliceblue;
  margin-top: 20px;
  background-image: url("img/wave-haikei (4).svg");
  background-repeat: no-repeat;
  background-size: cover;


}

footer a {
    text-decoration: none;
    color: #f5f5f6;
}

#map {
  padding-left: 30px;
}

#tel-mail {
  padding-left: 100px;
}

h2.animate__animated {
  animation-name: zoomIn; 
  animation-duration: 1s;
  animation-fill-mode: both;
  color: #b92929;
}


.list-of-schedule  {
    list-style-type: none;
    color: rgb(0, 0, 0);
    font-weight: 1000;
    font-family: "Cal Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.list-of-services  {
    padding-left: 40px;
    list-style-type: none;
    color: rgb(7, 7, 7);
    font-weight: 1000;    
    font-family: "Cal Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.list-of-services {
    display: flex;
    justify-content: center;
} 

.list-of-services li {
    justify-content: center;
    padding-right: 40px;
}

p {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: large;
}


#container_text p {
    padding-left: 70px;
    padding-right: 70px;
    display: flex;
}

img {
    height: 300px;
    width: auto;
}

/*contact*/

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;  
}

.contact-card {
  background: linear-gradient(
    120deg,
    rgba(242, 237, 237, 0.9), 
    rgba(203, 208, 253, 0.6)
  );
  border-radius: 10px;
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  color: #060606;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card iframe {
  width: 100%;
  height: 300px;       /* можна збільшити до 400px */
  border: 0;
  border-radius: 10px;
}

.contact-card address,
.contact-card p {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
}

.contact-card a {
  color: #1c6ea4;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}




@media (max-width: 600px) {

  header {
    flex-direction: column;
    align-items: center;
    padding: 15px;
    text-align: center;
  }

  header img {
    height: 80px; /* менший логотип */
  }

  .second-header-img img {
    padding-left: 0;
    height: 80px;
  }

  .hd_text {
    top: -10px; 
    font-size: 20px;
  }

  header h1 {
    font-size: 18px;
    margin-top: 5px;
  }

  /* меню */
  nav {
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
  }

  .a-outline {
    font-size: 14px;
    padding: 6px 8px;
    width: 90%; /* кнопки на всю ширину */
    text-align: center;
  }

  main {
    padding: 10px;
    background-size: cover; /* карта не ріже фон */
  }

  main h1, main h2 {
    width: auto;
    font-size: 20px;
    padding: 8px;
  }

  /* блок послуг */
  .services-grid {
    grid-template-columns: 1fr; /* одна колонка */
    gap: 20px;
    padding: 0 10px;
  }

  .service-card {
    font-size: 16px;
    padding: 15px;
  }

  /* футер */
  footer {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  #tel-mail {
    padding-left: 0;
    margin-top: 15px;
  }

  address {
    font-size: 14px;
  }

  p {
    font-size: 14px;
  }

  /* зображення */
  img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
  }
}


.options-info {
  display: flex;
}