body {
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
}

.content-section h1,
.content-section h2,
.content-section h3,
.content-section h4,
.content-section h5,
.content-section h6 {
  margin-bottom: calc(0.5rem + 21px);
}

.content-section p {
  margin-bottom: calc(1rem + 21px);
}

.container-xl {
  max-width: 1140px; /* твоя ширина */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px; /* як у стандартного container */
  padding-right: 15px;
}

#mainCarousel .carousel-item {
  position: relative;
  height: 602px;
  background: #1b2556;
  background-size: cover; /* вписати */
  background-repeat: no-repeat; /* no repeat */
  background-position: center right; /* по центру */
}

#mainCarousel p {
  margin-bottom: 14px;
}

.hero-title {
  font-size: 48px;
  line-height: 59px;
}

.section-404 {
  min-height: 100%;
}
.section-404 p {
  color: #4A5565;
}
.title-404 {
  font-size: 100px;
  line-height: 118px;
  color: #1B2556;
}

h2.about-mission-title  {
  font-size: 28px;
  line-height: 30px;
}

/* Контент поверх градієнту */
.carousel-caption {
  position: relative;
  z-index: 3;
}
.carousel-caption.custom-caption {
  left: 0;
  right: 0;
  padding-left: 0;
  padding-right: 0;
}

#mainCarousel .custom-btn {
  width: 71px;
  height: 71px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15); /* білий 15% */
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  z-index: 10; /* щоб кнопки були зверху */
}
#mainCarousel .carousel-control-prev {
  left: 1%;
}
#mainCarousel .carousel-control-next {
  right: 1%;
}

@media (min-width: 1300px) {
  #mainCarousel .custom-btn {
    display: flex;
  }
}

#mainCarousel .custom-btn span {
  border-top: 2px solid white;
  border-right: 2px solid white;
}

.custom-btn svg {
  fill: #000; /* можна змінити колір стрілки */
}

.custom-btn img {
  width: 8px;
  height: 16px;
  display: block;
}

.carousel-control-prev.custom-btn img {
  transform: rotate(180deg);
}

.carousel-caption .content-container {
  max-width: 50%; /* Блок на половину контейнера */
}

/* Флекс всередині слайда */
.carousel-caption .flex-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.carousel-caption .flex-blocks .block {
  flex: 1 1 calc(33.333% - 20px);
  padding: 15px;
  background: rgba(255, 255, 255, 0.2);
  text-align: center;
  color: #fff;
}

@media (max-width: 768px) {
  .carousel-caption .content-container {
    max-width: 90%;
  }
  .carousel-caption .flex-blocks .block {
    flex: 1 1 100%;
  }
}

.custom-line {
  border: none; /* прибираємо стандартний hr */
  height: 1px; /* висота лінії */
  background-color: rgba(255, 255, 255, 0.23); /* білий з прозорістю 23% */
  margin: 1rem 0; /* відступ зверху і знизу (за потреби) */
}
h2 {
  font-size: 48px;
  line-height: 67px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}
h4 {
  font-size: 24px;
  line-height: 24px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}
p {
  color: #d1d5dc;
  font-size: 16px;
  line-height: 24px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}
.icon {
  width: 40px;
  height: auto;
  max-width: 100%;
}
.stats h4 {
  margin: 0;
}
.header-home {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent !important;
}
.header {
  background: #1b2556;
}
.logo-subtitle {
  color: #ffffff;
  font-size: 16px;
  line-height: 24px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 466px;
  height: 100%;
  background-color: #1b2556;
  color: #fff;
  padding: 100px 80px 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease !important;
  z-index: 9999;

  /* додано */
  overflow-y: auto; /* вертикальна прокрутка, якщо вміст високий */
  -webkit-overflow-scrolling: touch; /* плавна прокрутка на мобільних */
}

.top-subtitle {
  font-size: 16px;
  text-transform: uppercase;
  color: #1b2556;
}

.side-menu.active {
  transform: translateX(0) !important; /* показуємо */
}

/* Кнопка закрити всередині меню */
.menu-close {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 30px;
  left: 70px;
  right: auto;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.side-menu ul li {
  margin: 15px 0;
}

.side-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  line-height: 24px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  display: block;
  padding: 5px 0;
}

.side-menu ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.text-grey {
  color: #4a5565;
}
#icon-grid h3 {
  color: #0a0a0a !important;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500 !important;
}
#icon-grid p {
  color: #4a5565;
  font-size: 14px;
  line-height: 20px;
}
.dark-blue {
  background: #1b2556;
}
.stats.dark-blue {
  border-radius: 16px;
  padding: 48px;
  padding-bottom: 28px;
}
.stats.dark-blue h4 {
  margin: 0;
  color: #fff;
  font-size: 40px;
}
.services {
  background: #e8eef4;
}
.item-block {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.item-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#multiCarousel .item-list li {
  text-align: left;
  margin-bottom: 6px;
  font-size: 14px;
  font-family: "Inter";
}

.services .carousel h4 {
  color: #101828;
  font-size: 16px;
}
/* Контейнер каруселі повинен бути position: relative */
#multiCarousel {
  position: relative;
}

/* Стиль кнопок */
#multiCarousel .carousel-control-prev,
#multiCarousel .carousel-control-next {
  top: 50%; /* по вертикалі по центру */
  transform: translateY(-50%);
  width: 49px;
  height: 49px;
  background-color: #ffffff; /* білий круг */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Виносимо на 80px з боків */
#multiCarousel .carousel-control-prev {
  left: -80px;
}

#multiCarousel .carousel-control-next {
  right: -80px;
}

/* Стрілки всередині */
#multiCarousel .carousel-control-prev-icon,
#multiCarousel .carousel-control-next-icon {
  background-image: none; /* прибираємо стандартну іконку */
  width: 10px;
  height: 10px;
  border-top: 2px solid #ec6801;
  border-right: 2px solid #ec6801;
  transform: rotate(-135deg); /* для лівої стрілки */
}

#multiCarousel .carousel-control-next-icon {
  transform: rotate(45deg); /* для правої стрілки */
}
#multiCarousel .btn {
  background-color: #8f7858;
  color: #fff;
  padding: 8px 16px; /* 8px зверху + знизу, 16px з боків */
  border-radius: 8px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  border: none;
}
#multiCarousel .btn:hover {
  background-color: #7a664c; /* трохи темніший — опціонально */
}

#multiCarousel .swiper-slide {
  height: unset;
}

.btn-outline-custom {
  width: 250px;
  padding: 8px 0;
  background: transparent;
  border: 1px solid #8f7858;
  border-radius: 8px;
  color: #8f7858;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  display: block;
  margin: 0 auto; /* вирівнює по центру */
  text-align: center;
  text-decoration: none;
}
.btn-outline-custom:hover {
  background: #8f7858;
  color: #fff;
}
.fatures {
  margin-bottom: 100px;
}

/* Центрування і ширина плашки */
#tabsMain ul {
  width: 823px;
  margin: 0 auto;
}

/* Одна плашка з усіма вкладками */
.custom-tabs {
  display: flex;
  background-color: #ececf0;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}

/* Всі вкладки рівні та з margin */
.custom-tabs .nav-item {
  flex: 1; /* рівні частини */
  margin: 3px; /* відступи навколо вкладок */
}

/* Кнопка на всю ширину вкладки */
.custom-tabs .nav-link {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px; /* висота плашки */
  line-height: 36px; /* текст по центру */
  background-color: transparent !important;
  color: #0a0a0a !important;
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  border: none !important;
  border-radius: 0;
  text-align: center;
  padding: 0;
}

/* Активна вкладка */
.custom-tabs .nav-link.active {
  background-color: #ffffff !important;
  color: #0a0a0a !important;
}

/* Закруглення крайніх вкладок */
.custom-tabs .nav-link {
  border-radius: 14px;
}
.masonry-container {
  margin-top: 20px;
}

/* Загальні блоки */
.masonry-block {
  padding: 10px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.masonry-block:hover {
  transform: translateY(-2px);
}

.masonry-block img {
  width: 100%; /* на всю ширину блоку */
  height: auto; /* зберігає пропорції */
  border-radius: 10px;
  display: block;
  object-fit: cover; /* обрізає зайве, заповнює блок повністю */
}

/* Заголовок */
.masonry-title {
  font-size: 16px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  color: #0a0a0a;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Review Block */
.review-block {
  padding: 24px;
  border-radius: 14px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

/* Stars */
.review-stars {
  display: flex;
  margin-bottom: 40px;
}

.review-stars span {
  color: #fdc700;
  font-size: 20px;
}

/* Review text */
.review-text {
  flex-grow: 1;
  color: #4a5565;
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 40px;
}

/* Divider line */
.review-divider {
  width: 100%;
  height: 1px;
  background-color: #ccc;
  margin-bottom: 20px;
}

/* Author */
.review-author {
  color: #101828;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 4px;
}

/* Position */
.review-position {
  color: #6a7282;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  margin: 0;
}
.reviews {
  background: #e8eef4;
}
/* Кнопки каруселі */
#reviewsCarousel .carousel-control-prev,
#reviewsCarousel .carousel-control-next {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background-color: #ffffff;
  top: 50%;
  border: none;
  box-shadow: 0px 4px 8.3px 0px rgba(0, 0, 0, 0.07);
}

/* Розташування */
#reviewsCarousel .carousel-control-prev {
  left: -80px;
}

#reviewsCarousel .carousel-control-next {
  right: -80px;
}

/* Іконки стрілок */
#reviewsCarousel .carousel-control-prev-icon,
#reviewsCarousel .carousel-control-next-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #ec6801;
  border-right: 2px solid #ec6801;
}

/* Ліва стрілка (вліво) */
#reviewsCarousel .carousel-control-prev-icon {
  transform: rotate(-135deg);
}

/* Права стрілка (вправо) */
#reviewsCarousel .carousel-control-next-icon {
  transform: rotate(45deg);
}
/* Clients Section */
.clients .client-block {
  padding: 16px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px; /* однакова висота для всіх блоків */
}

.clients .client-block img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Кнопки каруселі */
#clientsCarousel .carousel-control-prev,
#clientsCarousel .carousel-control-next {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background-color: #ffffff;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  box-shadow: 0px 4px 8.3px 0px rgba(0, 0, 0, 0.07);
}
#clientsCarousel .carousel-control-prev:hover,
#clientsCarousel .carousel-control-next:hover {
  box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.12);
}
#clientsCarousel .carousel-control-prev {
  left: -80px;
}

#clientsCarousel .carousel-control-next {
  right: -80px;
}

/* Іконки стрілок */
#clientsCarousel .carousel-control-prev-icon,
#clientsCarousel .carousel-control-next-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #ec6801;
  border-right: 2px solid #ec6801;
}

#clientsCarousel .carousel-control-prev-icon {
  transform: rotate(-135deg);
}

#clientsCarousel .carousel-control-next-icon {
  transform: rotate(45deg);
}

.home-page .news-section {
  background: #e8eef4;
}

.home-page .news-card {
  border-radius: 14px;
  padding: 30px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-page .news-date {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #6a7282;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
}

.home-page .news-icon {
  font-size: 16px;
}

.home-page .news-tag {
  display: inline-block;
  background-color: #dbeafe;
  color: #1b2556;
  border-radius: 16px;
  font-size: 16px;
  padding: 4px 12px;
  margin-bottom: 15px;
  font-family: "Inter", sans-serif;
}
.news-tag-action {
  background-color: #8f7858 !important;
  color: #fff !important;
  padding: 4px 20px !important;
}

.home-page .news-heading {
  font-size: 16px;
  font-weight: 600;
  color: #101828;
  margin-bottom: 15px;
  font-family: "Inter", sans-serif;
}

.home-page .news-text {
  font-size: 16px;
  line-height: 24px;
  color: #4a5565;
  margin-bottom: 15px;
  font-family: "Inter", sans-serif;
}

.home-page .news-link {
  font-size: 16px;
  font-weight: 500;
  color: #1b2556;
  text-decoration: none;
  font-family: "Inter", sans-serif;
}
.btn-all-news {
  display: inline-block;
  background-color: #ffffff;
  color: #1b2556;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.btn-all-news:hover {
  background-color: #f0f0f0;
  color: #101828;
}
.mt--4 {
  margin-top: -60px;
}
.contacts-section h2 {
  font-size: 36px;
  font-weight: 400;
}
.contacts-section p {
  color: #4a5565 !important;
  text-transform: none;
}
.contacts-section .questions-block p {
  color: #dbeafe !important;
}
.contact-form-block {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #f3f3f5;
  background-color: #ffffff;
}

.contact-form-block .form-label {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #1b2556;
  margin-bottom: 6px;
}

.contact-form-block .form-control {
  background-color: #f3f3f5;
  border: none;
  border-radius: 8px;
  color: #717182;
  padding: 12px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
}

.contact-form-block .form-control::placeholder {
  color: #e0e0e0;
}

.btn-submit {
  background-color: #8f7858;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background-color: #7a674a;
}
.contact-item .contact-title {
  font-size: 14px;
  font-weight: 400;
  color: #4a5565;
  font-family: "Inter", sans-serif;
}

.contact-item .contact-text {
  font-size: 16px;
  color: #0a0a0a;
  font-family: "Inter", sans-serif;
}

.contact-icon {
  display: flex;
  align-items: start;
  padding-top: 3px;
}
.worktime-block {
  background: #f3f3f5;
  border: 1px solid #e5e5e8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.worktime-map img {
  width: 100%;
  height: auto;
  display: block;
}

.worktime-info {
  background: #ffffff;
}

.worktime-info h5 {
  font-size: 18px;
  font-weight: 600;
}

.worktime-info span {
  font-size: 15px;
  color: #444;
}

.worktime-info .text-primary {
  color: #6a7ca0 !important;
}
.questions-block {
  background: #1b2556;
  border-radius: 16px;
  padding: 32px;
}

.questions-block {
  background: #1b2556;
  border-radius: 16px;
  padding: 32px;
}

/* Кнопка — на всю ширину і фон не змінюється */
.consult-btn {
  width: 100%;
  background: #8f7858;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  transition: 0.2s;
}

.consult-btn:hover {
  background: #8f7858; /* такий самий фон */
  opacity: 1; /* не затемнюється */
}
.footer {
  background: #1b2556;
  color: #fff;
  padding: 50px 0;
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 20px;
}

.footer-text {
  font-size: 16px;
  margin: 0 0 8px;
  color: #99a1af;
}

.footer-title {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 400;
  font-family: "Inter";
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 8px;
}

.footer-menu a {
  color: #99a1af;
  text-decoration: none;
  font-size: 16px;
}

.footer-menu a:hover {
  opacity: 0.75;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  font-size: 24px;
}

.footer-social a {
  color: #fff;
}

.footer-social a:hover {
  opacity: 0.75;
}

.footer-contact {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-contact i {
  font-size: 20px;
}

.footer-contact a,
.footer-contact span {
  color: #99a1af;
  text-decoration: none;
}

.footer-contact a:hover {
  opacity: 0.75;
}

.footer-hr {
  border-color: #99a1af;
  margin: 30px 0;
  opacity: 0.8;
}

.footer-copy {
  text-align: center;
  color: #bbb;
  font-size: 15px;
}
.footer-bottom {
  padding: 20px 0;
  background: #1b2556;
  color: #bbb;
  font-size: 15px;
}

.footer-bottom a {
  color: #bbb;
  text-decoration: none;
}

.footer-bottom a:hover {
  opacity: 0.75;
}
#multiCarousel .carousel-item .row {
  align-items: stretch;
}

#multiCarousel .item-block {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#multiCarousel .item-block .btn {
  margin-top: auto;
}

footer {
  background: #1b2556;
}
/* Планшет: ширина до 768px */
@media (max-width: 768px) {
  .logo img {
    width: 84px;
  }
  .logo-subtitle {
    font-size: 12px;
    white-space: nowrap;
  }
  h2 {
    font-size: 32px;
    line-height: 44px;
  }
  #tabsMain ul {
    width: 100%;
    margin: 0 auto;
  }
  /* Виносимо на 80px з боків */
  #multiCarousel .carousel-control-prev {
    left: -20px;
  }

  #multiCarousel .carousel-control-next {
    right: -20px;
  }
  #reviewsCarousel .carousel-control-next {
    right: -20px;
  }
  #reviewsCarousel .carousel-control-prev {
    left: -20px;
  }
  #clientsCarousel .carousel-control-prev {
    left: -20px;
  }

  #clientsCarousel .carousel-control-next {
    right: -20px;
  }
  #icon-grid p {
    font-size: 12px;
    line-height: 20px;
  }
  .fatures .row {
    padding-top: 1rem !important; /* py-3 */
  }
  .stats.dark-blue h4 {
    font-size: 32px;
  }
  .stats p {
    font-size: 12px;
  }
  .stats.dark-blue {
    padding-bottom: 17px;
  }
  .stats .mb-3 {
    margin-bottom: 0.5rem !important;
  }
  .fatures {
    margin-bottom: 60px;
    margin-top: 3rem;
  }
  .services .tablet-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .services .p-2 {
    padding: 0.25rem !important;
  }
  .services #multiCarousel .item-list li {
    font-size: 12px;
    text-align: center;
    padding: 0 20px;
  }
  #multiCarousel .btn {
    margin-bottom: 0px !important;
    margin-top: 10px;
  }
}
@media (max-width: 768px) {
  .tablet-container {
    max-width: 668px;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 768px) {
  #multiCarousel .carousel-item .col-md-3 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }

  #multiCarousel .carousel-item .col-md-3:nth-child(4) {
    display: none;
  }
  .my-5 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}
@media (max-width: 768px) {
  /* Усі колонки стають в колонку (stack) */
  .masonry-container > .col-md-3,
  .masonry-container > .col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Лівий стовпчик → два маленьких блока в ряд */
  .masonry-container > .col-md-3:first-child {
    flex-direction: row !important;
  }
  .masonry-container > .col-md-3:first-child .masonry-block {
    flex: 1;
  }

  /* Центральний стовпчик */
  .masonry-container > .col-md-6 {
    flex-direction: column !important;
  }

  /* Два маленьких блока зверху в ряд */
  .masonry-container > .col-md-6 > .d-flex {
    flex-direction: row !important;
    order: 0;
  }
  .masonry-container > .col-md-6 > .d-flex > .masonry-block {
    flex: 1;
  }

  /* Великий блок під ними */
  .masonry-container > .col-md-6 > .large-block {
    width: 66.666% !important;
    margin-left: auto;
    margin-right: auto;
    order: 1;
  }

  /* Правий стовпчик → ширина 66.666%, центр, внутрішні блоки в ряд */
  .masonry-container > .col-md-3:last-child {
    flex-direction: row !important; /* два блоки в ряд */
  }

  /* Внутрішні блоки правого стовпчика по 50% мінус половина gap */
  .masonry-container > .col-md-3:last-child .masonry-block {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
  }
  .worktime-info h5 {
    font-size: 16px;
  }
  .worktime-info span {
    font-size: 14px;
  }
  .questions-block h4 {
    font-size: 16px;
  }
  .footer-text {
    font-size: 14px;
  }
  .footer-menu a {
    font-size: 14px;
  }
  .footer-contact {
    font-size: 14px;
  }
  .footer-contact i {
    font-size: 16px;
  }
  .footer-bottom a {
    font-size: 14px;
  }
  .footer-copy-left {
    font-size: 14px;
  }
  .footer {
    padding-bottom: 15px;
  }
  /* Всі колонки row в header без горизонтального padding */
  .header .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  /* Кнопка меню і іконка разом 52px */
  .header .menu-btn {
    width: 52px;
    height: 52px;
    padding: 0;
  }

  .header .menu-btn img.menu-icon {
    width: 52px;
    height: 52px;
  }

  /* Тримати колонки горизонтально */
  .header .row.align-items-center {
    flex-wrap: nowrap;
  }
}
@media (max-width: 768px) {
  .footer-hr {
    width: 100vw; /* ширина на всю видиму область */
    margin-left: calc(-50vw + 50%); /* відцентрувати по екрану */
    margin-right: 0; /* додатково для точності */
    margin-bottom: 5px;
  }
}

@media (max-width: 768px) {
  #reviewsCarousel .carousel-item .col-md-4 {
    flex: 0 0 50%; /* два відгуки в ряд */
    max-width: 50%;
  }
}
.star {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('data:image/svg+xml;utf8,<svg fill="%23FFD700" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2L14.9 8.6L22 9.3L17 14.1L18.2 21L12 17.7L5.8 21L7 14.1L2 9.3L9.1 8.6L12 2Z"/></svg>')
    no-repeat center/contain;
}
/* Multi-item carousel */
#clientsCarousel .carousel-inner .row {
  flex-wrap: nowrap; /* на tablet/desktop не переносимо */
}
#clientsCarousel .carousel-item > .row > div {
  flex: 0 0 auto; /* колонки фіксованої ширини */
}

/* Відступи між картинками */
#clientsCarousel .client-block {
  padding: 0.5rem;
  text-align: center;
}
/* Загальний стиль кнопок як у попередньої каруселі */
#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next {
  top: 50%;
  transform: translateY(-50%);
  width: 49px;
  height: 49px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Стиль самих іконок */
#newsCarousel .carousel-control-prev-icon,
#newsCarousel .carousel-control-next-icon {
  background-image: none;
  width: 10px;
  height: 10px;
  border-top: 2px solid #ec6801;
  border-right: 2px solid #ec6801;
}

/* Поворот для напрямку */
#newsCarousel .carousel-control-prev-icon {
  transform: rotate(-135deg);
}
#newsCarousel .carousel-control-next-icon {
  transform: rotate(45deg);
}

.news-banner img {
  max-height: 388px;
  object-fit: cover;
}

.content-img {
  float: right;
  max-width: 50%;
  margin-left: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .content-img {
    float: none;
    max-width: 100%;
    margin-left: 0;
    margin-bottom: 1rem;
  }
}

/* Tablet: кнопки збоку, по середині блоку */
@media (max-width: 768px) {
  #newsCarousel .carousel-control-prev {
    left: -20px;
  }
  #newsCarousel .carousel-control-next {
    right: -20px;
  }
}

/* Відступ між колонками на tablet/mobile */
@media (max-width: 1199.98px) {
  .contacts-section .col-12 + .col-12 {
    margin-top: 30px;
  }

  /* Контейнер padding для tablet/mobile */
  .tablet-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (max-width: 768px) {
  /* Зменшуємо відступи секції */
  .contacts-section {
    padding-top: 1.5rem !important; /* py-5 → половина = 2.5rem */
    padding-bottom: 1.5rem !important;
  }

  /* Якщо хочеш, можна окремо зменшити padding контейнера всередині */
  .contacts-section > .container-xl {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}
@media (max-width: 768px) {
  /* Весь контейнер вертикально: ліва зверху, права під нею */
  .footer-bottom > .container-xl > .d-flex {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .footer .row .col-md-4 {
    padding-left: 6px; /* можна підкоригувати під дизайн */
    padding-right: 6px;
  }
  .footer .tablet-container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
/* Мобильная версия */
@media (max-width: 576px) {
  .mobile-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  h2 {
    font-size: 24px;
    line-height: 32px;
  }
  .hero-title {
    font-size: 24px;
    line-height: 32px;
  }
  .logo-subtitle {
    display: none !important;
  }
  #mainCarousel p {
    font-size: 14px;
  }
  #mainCarousel .carousel-item {
    height: unset;
  }
  #mainCarousel .mobile-container {
    min-height: 627px;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
  }
  #mainCarousel .custom-line {
    margin-top: auto;
  }
}
@media (max-width: 576px) {
  /* Блок stats на мобільних */
  #mainCarousel .stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* відстань між блоками */
  }
  #mainCarousel .stats p {
    font-size: 14px;
    margin: 0;
  }
  #mainCarousel .stats > .col {
    flex: 0 0 45%; /* дві колонки зверху */
    max-width: 45%;
    display: flex;
    justify-content: center !important; /* вирівнювання в середині колонки */
    margin-bottom: 0;
    padding: 0;
  }

  /* Третя колонка на повну ширину і по центру */
  #mainCarousel .stats > .col:last-child {
    flex: 0 0 100%;
    max-width: 100%;
    justify-content: center; /* центр контенту */
    display: flex; /* потрібно для justify-content */
  }

  /* h4 іконки і текст */
  #mainCarousel .stats h4 {
    font-size: 20px;
  }

  #mainCarousel .stats .icon {
    width: 28px !important;
    height: 28px;
  }
  .logo img {
    width: 59px;
  }
  .header .menu-btn img.menu-icon {
    width: 40px;
    height: 40px;
  }
  .header .col-10 {
    justify-content: center; /* центруємо контент всередині */
    display: flex;
  }

  /* Логотип */
  .header .logo {
    margin: 0 auto;
  }
  #mainCarousel .carousel-item {
    background-position: 65% 50%;
  }
  p {
    font-size: 14px;
  }
  .fatures .col {
    margin-top: 12px;
  }
  .fatures .row {
    padding-bottom: 1rem !important;
  }
  .stats.dark-blue {
    padding: 0 16px 16px !important;
    margin-left: 0;
    margin-right: 0;
  }
  .stats.dark-blue h4 {
    font-size: 24px;
    margin-bottom: 0 !important;
  }
  .stats.dark-blue .col-6 {
    padding: 0;
  }
  .stats.dark-blue p {
    font-size: 12px;
    margin-bottom: 0;
  }
  .stats.dark-blue {
    --bs-gutter-y: 16px;
  }
  .fatures {
    margin-bottom: 30px;
  }
  #multiCarousel .carousel-item > .row {
    flex-wrap: nowrap;
  }
  @media (max-width: 768px) {
    /* ширина карточки */
    #multiCarousel .carousel-item .col-md-3 {
      flex: 0 0 66.6666%;
      max-width: 66.6666%;
    }

    /* зсув, щоб було видно половину другої */
    #multiCarousel .carousel-inner {
      padding-left: 15px;
    }
  }
  #multiCarousel .carousel-control-prev,
  #multiCarousel .carousel-control-next {
    top: auto;
    bottom: -60px;
    transform: none;
  }

  #multiCarousel .carousel-control-prev {
    left: 32%;
  }

  #multiCarousel .carousel-control-next {
    right: 32%;
  }
  #multiCarousel .carousel-control-prev,
  #multiCarousel .carousel-control-next {
    width: 41px;
    height: 41px;
    background-color: #ffffff;
  }
  #multiCarousel .carousel-control-prev-icon,
  #multiCarousel .carousel-control-next-icon {
    width: 7px;
    height: 7px;
  }
  .btn-all-news {
    display: none;
  }
  .mt--4 {
    margin-top: 0;
  }
  .news-section .top-subtitle {
    text-align: center;
  }
  .news-section .news-title {
    text-align: center;
  }
  .home-page .news-section {
    padding-top: 0 !important;
  }
}
.multi-carousel-container {
  overflow: hidden;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.multi-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.multi-carousel-item {
  flex: 0 0 calc(100% / 6); /* Desktop: 6 блоків */
  padding: 0 5px;
  box-sizing: border-box;
}

.client-block img {
  width: 100%;
  height: auto;
}

.clients-carousel-wrapper {
  position: relative;
  width: 100%;
}

.clients-carousel {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.client-item {
  flex: 0 0 auto;
  padding: 0 12px;
}

/* ===== DESKTOP: 6 ===== */
@media (min-width: 1024px) {
  .client-item {
    width: calc(100% / 6);
	text-align: center;
  }
}

/* ===== TABLET: 4 ===== */
@media (max-width: 768px) {
  .client-item {
    width: calc(100% / 4);
	text-align: center;
  }
}

/* ===== MOBILE: 2 ===== */
@media (max-width: 560px) {
  .client-item {
    width: calc(100% / 2);
	text-align: center;
  }
}
.contact-info i {
  color: #8f7858;
}

.modal-backdrop.show {
  background-color: rgba(27, 37, 86, 0.64); /* #1B2556 с 64% opacity */
}

/* Выровнять все по центру */
#contactModal .modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center; /* вертикаль */
  align-items: center; /* горизонталь */
  text-align: center; /* текст */
  border-radius: 22px;
  padding: 20px;
}
.modal-header {
  border: 0;
}
.modal-title {
  font-size: 32px;
}
.modal-body p {
  color: #4a5565;
}
.content-section p {
  color: #000000;
  font-size: 18px;
  line-height: 28px;
}
.light-blue {
  background: #eff6ff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 50px;
}
.light-blue h2 {
  color: #1b2556;
}
.light-blue .contact-item {
  background: #fff;
  border-radius: 12px !important;
  padding: 30px !important;
}
/* Стиль для контактних посилань */
.contact-item a {
  color: #364153; /* колір тексту */
  text-decoration: none; /* без підкреслювання */
  font-size: 16px; /* розмір шрифту */
}

/* При наведенні можна додати легку зміну кольору (за бажанням) */
.contact-item a:hover {
  color: #2a333f; /* темніший відтінок при ховері */
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1 !important;
}
/* Стиль кнопок */
.carousel-control-prev,
.carousel-control-next {
  top: 50%; /* по вертикалі по центру */
  transform: translateY(-50%);
  width: 49px;
  height: 49px;
  background-color: #ffffff; /* білий круг */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  opacity: 0.9;
}

/* Виносимо на 80px з боків */
.carousel-control-prev {
  left: -80px;
}

.carousel-control-next {
  right: -80px;
}

/* Стрілки всередині */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none; /* прибираємо стандартну іконку */
  width: 10px;
  height: 10px;
  border-top: 2px solid #ec6801;
  border-right: 2px solid #ec6801;
  transform: rotate(-135deg); /* для лівої стрілки */
}

.carousel-control-next-icon {
  transform: rotate(45deg); /* для правої стрілки */
}
.content-img img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}
@media (max-width: 768px) {
  /* Виносимо на 80px з боків */
  .carousel-control-prev {
    left: -25px;
  }

  .carousel-control-next {
    right: -25px;
  }
}
@media (max-width: 560px) {
  .content-section .carousel-control-prev,
  .content-section .carousel-control-next {
    display: none;
  }
}
/* Mobile: кнопки під блоком */
@media (max-width: 560px) {
  #newsCarousel {
    padding-bottom: 100px;
  }
  #newsCarousel .carousel-control-prev {
    left: 50%;
    top: auto;
    bottom: 25px;
    transform: translateX(-100%) translateX(-10px);
  }
  #newsCarousel .carousel-control-next {
    right: auto;
    top: auto;
    bottom: 25px;
    transform: translateX(0) translateX(5px);
    left: 50%;
  }
  .home-page .news-section {
    padding-bottom: 0 !important;
  }
}
@media (max-width: 560px) {
  #tabsMain .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  #tabsMain .nav-tabs::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
  }

  #tabsMain .nav-item {
    flex: 0 0 auto;
  }

  #tabsMain .nav-link {
    white-space: nowrap;
    padding: 10px 16px;
  }
}

@media (max-width: 768px) {

  .content-section.py-5 {
    padding-top: 0rem !important;
  }
  .content-img {
    margin-bottom: 20px;
  }
  .content-section p {
    color: #000000;
    font-size: 14px;
    line-height: 28px;
  }
}
@media (max-width: 560px) {
  .contact-row {
    flex-direction: column !important;
  }
  .contact-item {
    display: flex !important;
    flex-direction: row !important;
  }
  .foot-1 {
    text-align: center;
    margin-bottom: 20px;
  }
  .foot-2,
  .foot-3 {
    padding: 0 20px !important;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-copy-left {
    font-size: 12px;
  }
  .footer-bottom > .container-xl > .d-flex {
    flex-direction: column-reverse !important;
  }
  .footer-bottom {
    text-align: center;
  }
}
.contact-item {
  display: flex; /* вже є d-flex, можна лишити */
  flex-direction: row; /* рядок */
  align-items: center; /* вертикально по центру іконки та тексту */
  gap: 10px; /* відстань між іконкою і текстом */
  justify-content: flex-start; /* текст зліва, не по центру */
}

.contact-icon {
  min-width: 30px; /* ширина під іконку, щоб вирівнювання було рівне */
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Висота банера */
.about-banner {
  height: 520px;
  border-radius: 12px;
  overflow: hidden;
  background-image: url("../img/about.png");
  background-size: cover;
  background-position: center;
}

/* Row тягнеться на всю висоту */
.about-banner > .row {
  height: 100%;
  margin: 0;
}

/* Ліва колонка */
.about-banner .col-lg-7 {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.about-banner-info {
  color: #1f6cfd;
}
.about-banner-year {
  font-size: 20px;
  font-weight: bold;
  font-family: "Inter";
}
.about-banner-title {
  color: #ffffff;
  font-size: 30px;
  line-height: 40px;
  font-family: "Inter";
}
.about-history {
  padding-bottom: 50px;
}
/* Заголовок + опис по центру */
.about-history-title,
.about-history-description {
  text-align: center;
}

/* Контейнер з текстом */
.about-history-description {
  max-width: 820px;
  margin: 0 auto;
  color: #4a5565;
}

/* Карточки історії */
.about-history-item {
  height: 100%;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Верхній ряд (іконка + рік) */
.about-history-top {
  margin-bottom: 30px;
}

/* Рік */
.about-history-year {
  color: #1b66fd;
  font-size: 24px;
  font-weight: bold;
  margin-left: 5px;
}

/* Заголовок всередині блока */
.about-history-item-title {
  margin-bottom: 8px;
}

/* Текст всередині блока */
.about-history-item-text {
  margin: 0;
  color: #4a5565;
}
/* Весь блок на всю ширину, фон і текст */
.about-mission {
  background-color: #e8eef4;
  color: #4a5565;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  padding-top: 100px !important; /* збільшений відступ зверху */
  padding-bottom: 100px !important; /* збільшений відступ знизу */
}

/* H4 заголовки */
.about-mission h4 {
  color: #000000;
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
  font-family: "Inter", sans-serif;
}

/* Правий блок */
.about-mission-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 32px;
  height: 100%;
}

/* Список в правому блоці */
.about-mission-list-item span {
  font-size: 15px;
  color: #4a5565;
  font-family: "Inter", sans-serif;
  padding-left: 5px;
}
/* Текст під H4 в лівій колонці */
.about-mission-text p {
  font-size: 15px;
  color: #4a5565;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  margin-bottom: 0;
}
.about-values {
  margin-top: 60px;
}
/* Весь блок */
.about-licenses {
  background-color: #e8eef4;
  color: #4a5565;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

/* H4 підзаголовок */
.about-licenses-subtitle {
  font-size: 22px;
  line-height: 30px;
  color: #000000;
  font-weight: 500;
  margin-bottom: 16px;
  font-family: "Inter", sans-serif;
}

/* Текст під H4 */
.about-licenses-text p {
  font-size: 15px;
  color: #4a5565;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  margin-bottom: 0;
}
/* Весь блок */
.about-infrastructure {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

/* Текст під заголовком + весь текст у блоках */
.about-infrastructure-description,
.about-infrastructure-item-text {
  color: #4a5565;
}

/* Карточки інфраструктури */
.about-infrastructure-item {
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1); /* #000 10% */
  border-radius: 12px;
  overflow: hidden; /* щоб картинка не вилізла */
}

/* Контент під картинкою */
.about-infrastructure-content {
  padding: 20px;
}
/* MOBILE (до 559px) — одна колонка за замовчуванням */

/* TABLET від 560px */
@media (min-width: 560px) and (max-width: 991.98px) {
  .licenses-row {
    flex-wrap: nowrap;
  }

  .licenses-img-col {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .licenses-text-col {
    flex: 0 0 60%;
    max-width: 60%;
  }
}
/* ABOUT LICENSES — tablet 768 → 580 */
@media (max-width: 768px) and (min-width: 580px) {
  .about-licenses .tablet-container {
    max-width: 100% !important;
    padding-left: 16px;
    padding-right: 16px;
  }
}
/* Планшет / маленькі екрани до 760px */
@media (max-width: 768px) {
  .about-infrastructure-item-title {
    font-size: 20px;
  }

  .about-infrastructure-item-text {
    font-size: 14px;
  }
  .about-infrastructure-content {
    padding: 20px 12px 5px;
  }
  .about-banner {
    height: 305px;
  }
  .about-banner-year {
    font-size: 15px;
  }
  .about-banner .col-lg-7 {
    padding: 20px;
  }
}
@media (max-width: 560px) {
  .about-banner-title {
    font-size: 24px;
    line-height: 32px;
  }
  .about-banner {
    height: auto;
  }
  .about-banner-content {
    margin-top: 30px;
  }
  .about-mission h4 {
    font-size: 16px;
    line-height: 22px;
  }
  .about-mission-box {
    padding: 20px;
  }
  .about-mission-list-item span {
    font-size: 14px;
  }
  .about-mission-box .gap-3 {
    gap: 0.5rem !important;
  }
}
/* Весь блок advantages */
.advantages {
  padding-top: 80px !important;
}

.advantages-description {
  color: #4a5565;
}

/* Карточки advantages */
.advantages-item {
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

/* Контент під картинкою */
.advantages-content {
  padding: 20px;
}
.advantages-item {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.advantages-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Заголовок всередині карточки */
.advantages-item-title a {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #000000;
  margin-top: 20px;
  margin-bottom: 15px;
  text-decoration: none;
}

/* Текст всередині карточки */
.advantages-item-text {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #4a5565;
}

/* Зображення всередині карточки */
.advantages-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.advantages-image {
  position: relative;
}
.advantages-image .img-ico {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* легка тінь */
}

.advantages-image .img-ico img {
  width: 28px;
}

@media (max-width: 768px) {
  .advantages {
    padding-top: 20px !important;
  }
  .light-blue h2 {
    text-align: center;
    margin-bottom: 30px !important;
  }
  .light-blue {
    margin-bottom: 0;
  }
}
@media (max-width: 560px) {
  .advantages {
    padding-top: 0 !important;
  }
  .contact-footer {
    padding-top: 0 !important;
  }
  .advantages-item-title {
    margin-top: 0px;
    margin-bottom: 5px;
  }
  .light-blue h2 {
    margin-bottom: 10px !important;
  }
}
.team-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

/* Фото */
.team-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Контент */
.team-content {
  padding: 20px;
}

.team-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.team-position {
  color: #1f6cfd;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Бейдж */
.team-exp .badge {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  padding: 10px;
  border-radius: 30px;
  margin-bottom: 10px;
  display: inline-block;
}

.team-text p {
  font-size: 14px;
  color: #4a5565;
  margin: 0;
}
.team-exp .badge img {
  padding-right: 5px;
}
.btn {
  background-color: #8f7858;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  border: none;
}
.btn:hover {
  background-color: #8f7858;
  opacity: 0.9;
}

.dropdown-menu {
  width: auto;
  min-width: 57px;
  padding: 0.25rem 0;
  white-space: nowrap;
  background: transparent;
  position: relative !important;
  margin: 0;
  margin-top: 0 !important;
  padding-top: 0;
  padding-bottom: 5px;
  box-shadow: none;
  border: 0;
}
.dropdown .btn {
  background: none !important;
  width: 57px;
  font-size: 14px;
  padding: 6px 8px;
}
.dropdown .btn:hover {
  background-color: none !important;
  opacity: 1;
  color: #ffffff;
}
.dropdown-text {
  color: #ffffff;
}
.dropdown {
  color: #ffffff;
  border: solid 1px #ffffff;
  border-radius: 10px;
  position: absolute;
  top: -17px;
}
.dropdown li {
  padding-bottom: 5px;
}
.dropdown-item {
  background: none !important;
  width: 57px;
  font-size: 14px;
  padding: 0px 8px;
  color: #fff;
  font-family: "Inter";
}
.dropdown-item:hover {
  color: #fff;
}
.dropdown-toggle::after {
  display: none;
}
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle::after {
  content: "";
  width: 8px;
  height: 5px;
  background: url("../img/arrow-m.svg") no-repeat center / contain;
  display: inline-block;
  display: inline-block;
  color: #fff;
  border: 0;
}

.relative {
  position: relative;
}

#load-more {
  width: 250px;
}

/* ===== TITLES ===== */
.section-title {
  color: #1b2556;
}

/* ===== COURSE CARD ===== */
.course-card {
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 14px;
  padding: 22px;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.course-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.course-card h6 {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  max-width: 100%;
  word-break: break-word;
}

.course-card .d-flex {
  flex-wrap: wrap;
  gap: 6px;
}

.badge-type {
  background: #eceef2;
  font-weight: 400;
  flex-shrink: 0;
}

.course-desc {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 12px;
}

.course-info li {
  font-size: 14px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

/* ===== FAQ ===== */
.faq-section {
  background: #eff6ff;
  padding: 50px 0 100px;
  margin-top: 100px;
}
.accordion-item {
  background-color: transparent;
  border: none;
  margin-bottom: 3px;
}
.accordion-button {
  font-weight: 500;
}
.accordion-button:focus {
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: #8f7858;
  color: white;
}

.accordion-icon {
  transition: transform 0.2s ease-in-out;
  font-size: 0.875rem;
}

.accordion-button:not(.collapsed) .accordion-icon {
  transform: rotate(180deg);
}

.accordion-button::after {
  display: none !important;
}

/* ===== MOBILE ===== */
@media (max-width: 576px) {
  .section-title {
    font-size: 22px;
    margin: 25px 0 20px;
  }

  .course-card {
    padding: 16px;
  }

  .course-card h6 {
    font-size: 16px;
  }

  .course-desc,
  .accordion-body {
    font-size: 13px;
  }
  .faq-section {
    margin-top: 0;
  }
}
.date-left img {
  width: 20px;
  height: 20px;
}

.date-text {
  font-size: 16px;
  color: #4a5565;
}

.archive-title {
  white-space: nowrap;
}
.content-text-section {
  margin-bottom: 76px;
}
.content-text-section p {
  color: #000000;
}

.content-highlight-section {
  background: #e8eef4;
}
/* modal card */
.gallery-modal {
  background: #eef1f6;
  border-radius: 24px;
  padding: 10px;
}

/* main image */
.gallery-main {
  border-radius: 18px;
  max-height: 552px;
  height: auto;
  object-fit: cover;
}

.gallery-thumbs img.active,
.gallery-thumbs img:hover {
  opacity: 1;
  outline: 2px solid #b5966b;
}
.gallery-thumbs {
  gap: 5px; /* відступи між мініатюрами */
}

.gallery-thumbs img {
  flex: 1 1 0; /* кожна картинка займає рівну частину */
  max-width: max-content; /* щоб не виходила за межі */
  height: 101px; /* висота мініатюри */
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  opacity: 1;
  outline: 2px solid #b5966b;
}

.gallery-single-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
}

.gallery-single-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 37, 86, .57) url('../img/fullscreen.svg') no-repeat center center / 44px 44px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
}

.gallery-single-item:hover::before {
  opacity: 1;
}

.carousel-item .gallery-single-item::before {
  width: calc(100% - 1rem);
  left: 0.5rem;
  border-radius: 20px;
}

/* Галереї 1–4 */
#galleryModal .modal-dialog,
#galleryModal2 .modal-dialog,
#galleryModal3 .modal-dialog,
#galleryModal4 .modal-dialog {
  max-width: 820px;
}

#galleryModal .carousel-control-prev,
#galleryModal2 .carousel-control-prev,
#galleryModal3 .carousel-control-prev,
#galleryModal4 .carousel-control-prev {
  left: 20px;
  background: #8f7858;
}

#galleryModal .carousel-control-next,
#galleryModal2 .carousel-control-next,
#galleryModal3 .carousel-control-next,
#galleryModal4 .carousel-control-next {
  right: 20px;
  background: #8f7858;
}

#galleryModal span,
#galleryModal2 span,
#galleryModal3 span,
#galleryModal4 span {
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}
.team-page p {
  font-size: 14px;
}
.team-card:hover {
  cursor: pointer;
}
@media (max-width: 576px) {
  .gallery-thumbs img {
    width: 18%;
    height: 40px;
  }
}

/* NEWS POST */
.news-post p {
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 1rem;
}
.news-post h2 {
  margin-bottom: calc(1.5rem + 2px);
  font-weight: 400;
  line-height: 67px;
  color: #1B2556;
}
.news-post h3 {
  font-size: 32px;
  line-height: 45px;
  font-weight: 600;
}
.news-post h4 {
  font-size: 28px;
  line-height: 32px;
  margin-bottom: calc(1rem + 18px);
}
.news-post ul {
  display: flex;
  gap: 10px;
  flex-direction: column;
  list-style-type: none;
  padding-left: 0;
}
.news-post li {
  position: relative;
  padding-left: 20px;
}
.news-post li::before {
  position: absolute;
  content: "» ";
  left: 0;
}
.news-post .is-type-video iframe,
.news-post video {
  width: 100%;
  height: 400px;
  border-radius: 10px;
}
.news-post img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.news-post .wp-block-group {
  margin-top: calc(3rem + 4px);
  padding: 30px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  display: none;
}

.news-archive {
    display: grid;
    grid-auto-flow: column;
    gap: 12px;
    align-items: center;
}
#multiCarousel a {
    text-decoration: none;
    color: inherit;
}
#multiCarousel .item-block img {
  width: 100%;
  height: 143px;
  object-fit: cover; 
  display: block;    
  border-radius: 10px;
}
.about-infrastructure-item a {
    text-decoration: none;
    color: inherit;
}
.swiper-button-next .swiper-navigation-icon,
.swiper-button-prev .swiper-navigation-icon {
  display: none !important;
}
.logo img {
    width: 131px;
    height: 100%;
}
@media (max-width: 768px) {
    .logo img {
    width: 84px;
}
}
@media (max-width: 576px) {
    .logo img {
    width: 59px;
}
}
@media (max-width: 576px) {
#reviewsCarousel {
	padding-bottom:100px;
}
#reviewsCarousel .carousel-control-prev {
    left: 50%;
    top: auto;
    bottom: 25px;
	transform: translateX(-100%) translateX(-10px);
}
#reviewsCarousel .carousel-control-next {
    right: auto;
    top: auto;
    bottom: 25px;
    transform: translateX(0) translateX(5px);
    left: 50%;
}
}
@media (max-width: 576px) {
#multiCarousel {
	padding-bottom:100px;
}
#multiCarousel .carousel-control-prev {
    left: 50%;
    top: auto;
    bottom: 25px;
	transform: translateX(-100%) translateX(-10px);
}
#multiCarousel .carousel-control-next {
    right: auto;
    top: auto;
    bottom: 25px;
    transform: translateX(0) translateX(5px);
    left: 50%;
}
}
#newsCarousel {
  position: relative;
}

/* Стиль кнопок */
#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next {
  top: 50%; /* по вертикалі по центру */
  transform: translateY(-50%);
  width: 49px;
  height: 49px;
  background-color: #ffffff; /* білий круг */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Виносимо на 80px з боків */
#newsCarousel .carousel-control-prev {
  left: -80px;
}

#newsCarousel .carousel-control-next {
  right: -80px;
}

/* Стрілки всередині */
#newsCarousel .carousel-control-prev-icon,
#newsCarousel .carousel-control-next-icon {
  background-image: none; /* прибираємо стандартну іконку */
  width: 10px;
  height: 10px;
  border-top: 2px solid #EC6801;
  border-right: 2px solid #EC6801;
  transform: rotate(-135deg); /* для лівої стрілки */
}

#newsCarousel .carousel-control-next-icon {
  transform: rotate(45deg); /* для правої стрілки */
}
#newsCarousel .btn {
  background-color: #8F7858;
  color: #fff;
  padding: 8px 16px; /* 8px зверху + знизу, 16px з боків */
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  border: none;
}
#newsCarousel .btn:hover {
  background-color: #7a664c; /* трохи темніший — опціонально */
}

@media (min-width: 1200px) {
  #newsCarousel .swiper-button-next,
  #newsCarousel .swiper-button-prev {
    display: none;
  }
}

@media (max-width: 1199px) {
  #newsCarousel .swiper-button-next,
  #newsCarousel .swiper-button-prev {
    display: flex;
  }
}
@media (max-width: 768px) {
#newsCarousel .carousel-control-prev {
  left: -20px;
}

#newsCarousel .carousel-control-next {
  right: -20px;
}
}
@media (max-width: 576px) {
#newsCarousel {
	padding-bottom:100px;
}
#newsCarousel .carousel-control-prev {
    left: 50%;
    top: auto;
    bottom: 25px;
	transform: translateX(-100%) translateX(-10px);
}
#newsCarousel .carousel-control-next {
    right: auto;
    top: auto;
    bottom: 25px;
    transform: translateX(0) translateX(5px);
    left: 50%;
}
}

.breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #606060;
}
.breadcrumb a {
  color: #606060;
  text-decoration: none;
}
@media (max-width: 576px) {
#clientsCarousel {
	padding-bottom:100px;
}
#clientsCarousel .carousel-control-prev {
    left: 50%;
    top: auto;
    bottom: 25px;
	transform: translateX(-100%) translateX(-10px);
}
#clientsCarousel .carousel-control-next {
    right: auto;
    top: auto;
    bottom: 25px;
    transform: translateX(0) translateX(5px);
    left: 50%;
}
}
.btn-close {
    z-index: 999;
}
.about-infrastructure-image {
  width: 100%;
  height: 269px;
  overflow: hidden;
}

/* tablet + mobile */
@media (max-width: 991px) {
  .about-infrastructure-image {
    height: 168px;
  }
}

.about-infrastructure-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* 🔥 заповнює по ширині */
  object-position: center; /* центр */
}
.news-card-img {
  position: relative;
  padding-top: 59.5%;
}
.news-card-img img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}
.advantages-image > a {
  display: block;
  width: 100%;
  height: 234px;       /* desktop */
  overflow: hidden;
}

.advantages-image > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wpcf7-spinner {
  display: block;
  margin: 16px auto 0;
}
.wpcf7-response-output {
  margin-top: 0 !important;
  border-radius: 8px;
  border-width: 1px;
}

/* Tablet */
@media (max-width: 991px) {
  .advantages-image > a {
    height: 211px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .advantages-image > a {
    height: 184px;
  }
}

.post-gallery {
  position: relative;
}

.carousel-item .row img:not(.icon) {
  width: 100%;
  height: 274px;      /* Desktop */
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

#postSwiper img.img-fluid {
  width: 100%;
  height: 274px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

/* Tablet */
@media (max-width: 991px) {
  .carousel-item .row img {
    height: 242px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .carousel-item .row img {
    height: 99px;
  }
  .carousel-item .row img:not(.icon) {
    height: 99px;
  }
  #postSwiper img.img-fluid {
    height: 99px;
  }
}


