body {
  padding-top: 80px; /* щоб контент не заходив під navbar */
}

/* Текст навігація, класси : ( навігація кнопки, зміна мови, випадаюче меню, назва сайту )  */
.navbar-brand, .nav-link, .language-switcher, .fw-bold, .mt-2{

  font-family: Romul;
  font-weight: 100;
}

/* Текст футер, власні класси: ( bottem-email, bottc-contact, bott-all other text )  */
.bottem, .bottc,.bott{

  font-family: segoeu;
  font-weight: 300;
}

/* Текст лого, слоган, класси : ( title-107 years, subtitle- from ...to... )  */
.responsive-subtitle,.responsive-title{

  font-family: Adventure;
  
}

/* Текст : про нас  */
.proj,.newss, .textalln, .textcardo {

  font-family: FixelL;
  font-weight: 300;
  
}


/* Текст : про нас  */
.info1, .textcardh{

  font-family: Fixel;

}

.aboutt{
  font-family: FixelL;
  font-weight: 1000;
}


/* Налагодження */
.border1 {
  border: 2px solid red;
}

/* Розширення відступів у навігації */
.navbar .nav-link {
  padding: 0 15px;
  
}

/* main */

section {
  padding: 80px 0;
}

.gradient-divider1 {
  height: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
}
/* Главный текст */
.responsive-title {
  font-size: 4rem; /* Большой текст для больших экранов */
  line-height: 1.2;
  
 
}
@media (max-width: 768px) {
  .responsive-title {
    font-size: 2.5rem; /* Уменьшение текста на средних экранах */
  }
}
@media (max-width: 576px) {
  .responsive-title {
    font-size: 1.8rem; /* Уменьшение текста на маленьких экранах */
  }
}
/* Текст в колонках */
.responsive-subtitle {
  font-size: 2.5rem; /* Размер для больших экранов */
  line-height: 1.4;
  
}
@media (max-width: 768px) {
  .responsive-subtitle {
    font-size: 1.5rem; /* Уменьшение текста на средних экранах */
  }
}
@media (max-width: 576px) {
  .responsive-subtitle {
    font-size: 1rem; /* Уменьшение текста на маленьких экранах */
  }
}
.sections{
  margin-bottom: 50px;
}
.card-text {
  text-decoration: none;
}

/* footer */

footer {
  padding: 20px 0;
}
.gradient-divider2 {
  height: 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
}


/* Анімація прокрутки */
.smooth-scroll {
  scroll-behavior: smooth;
}


.text-startt{
text-align: justify;



}
/* Загальні стилі для навігації */
.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 40px;
  background-color: #f8f9fa;

  
  position: fixed; /* робимо navbar фіксованим */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: top 0.3s ease-in-out; /* анімація зникання */
}

.navbar-brand {
  display: flex;
  align-items: center;
  width: 200px;
  gap: 20px;
}

.navbar-brand img {
  height: 50px;
}

.desktop-menu {
  display: flex;
  gap: 30px;
  flex-grow: 1;
  justify-content: center;
  
}

.language-switcher {
  display: flex;
  width: 110px;
  gap: 20px;
  align-items: center;
}

/* Бургер-меню */
.navbar-toggler {
  display: none;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}



.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1040;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.menu-open .menu-overlay {
  display: block;
  opacity: 1;
}

.menu-slide {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 1050;
  transition: right 0.4s ease;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
}

.menu-open .menu-slide {
  right: 0;
}

/* Адаптивність */
@media (max-width: 992px) {
  .desktop-menu, .language-switcher {
    display: none;
  }

  .navbar-toggler {
    display: block;
  }
}

/* Ховаємо зміну мов разом із десктопним меню при малих екранах */
@media (max-width: 1200px) {
  .desktop-menu, .language-switcher {
      display: none !important;
  }
  .navbar-toggler {
      display: block !important;
  }
}


/* При ширині менше 1024px */
@media (max-width: 1024px) {
  .desktop-menu .language-switcher {
      display: none !important;
  }
  .navbar-toggler {
      display: block !important;
  }
}

/* При ширині менше 768px */
@media (max-width: 768px) {
  .desktop-menu .language-switcher{
      display: none !important;
  }
  .navbar-toggler {
      display: block !important;
  }
}

/* Показуємо зміну мов та меню тільки на великих екранах */
@media (min-width: 1200px) {
  .desktop-menu, .language-switcher {
      display: flex !important;
  }
  .navbar-toggler {
      display: none !important;
  }
}


/* Базове позиціонування бургер-меню */
.navbar-toggler {
  position: absolute;
  right: 15px; /* Вирівнюємо по правому краю */
  top: 55%; /* Опускаємо нижче */
  transform: translateY(-50%);
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
  .navbar {
      display: flex;
      align-items: center;
      justify-content: space-between; /* Вирівнюємо контент */
      padding: 10px 15px;
  }

  .navbar-toggler {
      position: static;
      margin-left: auto;
      transform: translateY(3px); /* Трішки опускаємо */
  }
}













.language-switcher {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  font-size: 15px;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #000;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.lang-btn:hover {
  color: #007bff;
}

.lang-btn.active {
  font-weight: bold;
  color: #007bff;
}



/*project */

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.project-card:hover {
  transform: scale(1.02);
}

.project-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
  text-align: center;
}

.card-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 20px;
}

.card-text {
  flex-grow: 1;
  font-size: 1rem;
  color: #555;
}



/*news */

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.news-card:hover {
  transform: scale(1.02);
}


.news-img-wrapper {
  width: 100%;
  max-height: 180px; 
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa; /* Колір фону для прозорих зображень */
}

.news-img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Вся картинка вміщується без обрізки */
}

.card-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

.card-text {
  color: #555;
  max-width: 100%;
  padding-right: 10px;
  padding-left: 10px;
}

.flex-grow-1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-outline-primary {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: white;
}