/* Загальні стилі */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: white;
  color: #2b2c34;
  line-height: 1.6;
}

/* Хедер */
header {
  background-color: #2B2C34; /* Трохи темніший синій */
  color: white;
  padding: 25px 15px;
  text-align: center;
  font-weight: 600;
  font-size: 1.5rem;
}

h1 {
  margin: 0rem;
}

/* Меню навігації */
nav {
  background-color: #037971;
  padding: 10px 15px;
  position: relative;
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 600;
}

nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between; /* або center + gap */
  max-width: 960px; /* Як у main */
  width: 100%;
}


nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover,
nav a:focus {
  color: #9BA4B5;
  outline: none;
}

/* Основний контент */
main {
  max-width: 900px;
  margin: 30px auto;
  background: white;
  padding: 25px 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
}

main h2 {
  color: #212A3E;
  padding-bottom: 0px;
  margin-top: 0;
  font-weight: 700;
}

h2, h3 {
  margin-top: 1rem;   /* Зменшений верхній відступ */
  margin-bottom: 0rem; /* Зменшений нижній відступ */
}
  
/* Вирівнювання тексту абзаців по ширині */
main p {
  text-align: justify;
}

/* Футер */
footer {
  background-color: #2B2C34;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
}

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

footer a:hover,
footer a:focus {
  text-decoration: underline;
  outline: none;
}

/* Адаптивність */
@media (max-width: 600px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 12px;
    background-color: #037971;
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    padding: 10px 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  nav ul.open {
    display: flex;
  }

  #menu-toggle {
    display: block;
  }

  main {
    margin: 20px 15px; /* Відступи від країв екрану */
    padding: 20px 15px;
  }

  header {
    font-size: 1.25rem;
    padding: 20px 10px;
  }
   .content-wrapper {
    flex-direction: column;
  }
  
  .image-block {
    margin-top: 15px;
    flex: none;
  }
}


.content-wrapper {
  display: flex;
  gap: 20px;
  align-items: stretch; /* Щоб блоки були однакової висоти */
}

.text-block {
  flex: 2; /* 2/3 ширини */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.image-block {
  flex: 1; /* 1/3 ширини */
}

.image-block img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Щоб картинка вписувалась, не обрізалась */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Контактна сторінка */

.contact-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-info h3 {
  color: #394867;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-info p {
  margin: 0;
}

a {
  color: #394867;
}

.contact-info a {
  color: #394867;
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover,
.contact-info a:focus {
  text-decoration: underline;
  outline: none;
}

.contact-map {
  flex: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 8px;
  overflow: hidden;
}

/* Адаптивність для контактів */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-map {
    height: 250px;
  }
}

    .approved {
      text-align: right;
    }
    .title-block {
      text-align: center;
      font-weight: bold;
    }

    .p-block{
      text-align: left;
      font-weight: bold;
    }

    li {
  margin-left: 1em;
}