body {
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #fff;
}

/* HEADER */
header {
  background-color: #f2f2f2;
  padding: 10px 20px; /* определя вътрешното отстояние */
}

.header-container {
  display: flex; /*подреждане на елементи*/
  align-items: center; /*подравнява елементи по вертикала */
  justify-content: space-between; /* разпределяне на вътрешните елементи по хоризонтала с максимално възможно разстояние между тях.*/
  flex-wrap: wrap; /*позволява на вътрешните елементи (flex items) да прехвърлят на нов ред, ако няма достатъчно място в един ред.*/
}

.logo {
  width: 80px;
  height: auto;
}

h1 {
  font-size: 1.8rem;
  text-align: center; /*Подравняване от двете страни*/
  flex-grow: 1; /*запълва цялото възможно място*/
}

.menu-toggle {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}
h5 {font-size: 15px;
}
h6{
  font-size: 15px;
}

/* NAVIGATION */
nav {
  display: flex;
  justify-content: center;
  background-color: #eaeaea;
}

.nav-links {
  list-style: none; /*премахва елементи като точки,цифри*/
  display: flex; /*подреждат се по хоризонтала*/
  gap: 30px; /*добавя разстояние между самите елементи*/
  padding: 10px; /* добавя разстояние между границите на елемента*/
  justify-content: center; /*центрира хоризонтално елементите*/
  margin: 20px 0; /*центрира хоризонтално елементите*/
}

.nav-links li a {
  text-decoration: none; /*премахва подчертаването*/
  color: #333;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links li a:hover {
  color: #0077cc;
}

/* CONTENT */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 30px;
  text-align: justify;
}

#pic1 {
  width: 45%;
  border-radius: 10px;
}

.text {
  max-width: 900px;
  text-align: justify;
}

/* FOOTER */
footer {
  background-color: #f2f2f2;
  padding: 20px;
  text-align: center;
}

.footer-top {
  margin-bottom: 20px;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-section {
  flex: 1;
  min-width: 180px;
}

.gmap-logo {
  width: 20px;
  height: auto;
  margin-left: 5px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 {
    font-size: 1.4rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
  }

  nav.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .content {
    flex-direction: column; 
    align-items: center;
    gap: 20px;
    padding: 20px;
  }

  #pic1,
  .text {
    width: 100%;
    max-width: 100%;
  }

  .text {
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .gallery-container {
    height: 200px;
  }
}

/* === ГАЛЕРИЯ === */
.gallery-container {
  width: 100%;
  max-width: 800px;
  height: 250px; /* По-малка височина */
  margin: 30px auto;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.carousel-slides {
  display: flex;
  width: 300%;
  height: 100%;
  animation: autoGallery 120s infinite;
}

.carousel-slide {
  width: 30%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Показва цялото изображение без изрязване */
  object-position: center;
}

/* Навигационни бутони (по избор) */
.carousel-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.nav-btn {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

input[type="radio"] {
  display: none;
}

/* Автоматична анимация */
@keyframes autoGallery {
  0% { transform: translateX(0%); }
  14.2857% { transform: translateX(-100%); }
  28.5714% { transform: translateX(-200%); }
  42.8571% { transform: translateX(-300%); }
  57.1428% { transform: translateX(-400%); }
  71.4285% { transform: translateX(-500%); }
  85.7142% { transform: translateX(-600%); }
  100% { transform: translateX(0%); }
}
.contacts-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.contact-person {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 10px;
  gap: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-name {
  font-size: 1.2rem;
  font-weight: bold;
}
@media (max-width: 768px) { /* Да бъде адаптивен както за мобилни устройства, така и за декстоп версия */
  .contact-photo {
    width: 60px;
    height: 60px;
  }

  .contact-name {
    font-size: 1rem;
  }
}
.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Центрира по височина на екрана */
  background-color: #f9f9f9; /* по избор */
}

video {
  max-width: 20%;
  height: auto;
  border-radius: 8px; /* по избор */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* по избор */
}

