.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.project-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  padding: 1rem;
}

.project-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.project-item h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #003366;
}

.main-background {
  background: url('images/your_background.jpg') center center / cover no-repeat;
  min-height: 100vh;
}

.clients-section {
  margin: 4rem auto;
  max-width: 1200px;
}
.clients-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem;
}
.client-slide {
  min-width: 300px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 1rem;
}
.client-slide img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}
.client-slide p {
  margin-top: 0.5rem;
  font-weight: bold;
}
.client-slide.text-only {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-size: 1.1rem;
}

.project-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-slider {
  width: 100%;
  position: relative;
}

.project-slider img {
  display: none;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.project-slider img.active {
  display: block;
}

.slider-btn {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  margin: 0 5px;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.project-slider-wrapper {
  position: relative;
  width: 100%;
  height: 300px; /* АБО більше, наприклад 350-400px */
  overflow: hidden;
  border-radius: 10px;
}

.project-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.project-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 10px;
}

.project-slider img.active {
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3); /* прозорий чорний фон */
  color: white;
  border: none;
  font-size: 1rem; /* менший розмір тексту */
  padding: 0.3rem 0.6rem; /* менші кнопки */
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.slider-btn.prev {
  left: 8px;
}

.slider-btn.next {
  right: 8px;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.6); /* трохи яскравіше при наведенні */
}

.wave-separator {
  overflow: hidden;
  line-height: 0;
}
.wave-separator svg {
  display: block;
  width: 100%;
  height: 60px;
}

:root {
  --dark-bg: #212121;
  --light-bg: #f4f4f4;
  --accent: #d32f2f;
  --text-light: #eeeeee;
  --text-dark: #333333;
}

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: var(--accent);
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
#scrollTopBtn:hover {
  background-color: #b71c1c;
}

.why-us {
  background-color: #fff;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.why-us h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.why-item {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.why-item:hover {
  transform: translateY(-5px);
}

.why-item h3 {
  color: #212121;
  margin-bottom: 1rem;
}

.why-item p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

.counter-section {
  background-color: var(--light-bg);
  padding: 4rem 2rem;
  text-align: center;
}

.counter-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.counter-box {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 200px;
}

.counter-box span.counter {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent);
  display: block;
}

.counter-box p {
  margin-top: 0.5rem;
  font-weight: 600;
}

.gallery-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.horizontal-text {
  text-align: center;
  font-size: 24px; /* Збільшіть розмір, наприклад, до 24px або більше */
  font-weight: bold; /* Опціонально — зробити текст жирним */
  margin-top: 10px; /* Відступ зверху, якщо треба */
}

