/* =========================
   General Styles
========================= */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  color: #000;
  background: #fff;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
h1, h2, h3, h4 {
  margin: 0 0 15px;
}

/* =========================
   Header
========================= */
header {
  background: #43C4B7;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #36a89e;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 60px;
  filter: brightness(0) invert(1); /* белое лого */
}
nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}
nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
}
nav ul li a:hover {
  color: #F58345;
}

/* =========================
   Hamburger Menu (Mobile)
========================= */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* =========================
   Hero Section
========================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  background: url('hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(67,196,183,0.9), rgba(67,196,183,0.2));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease-out forwards;
}

/* Hero text animation */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================
   Buttons
========================= */
.btn-primary, .btn-secondary {
  padding: 12px 25px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-primary {
  background: #43C4B7;
  color: #fff;
}
.btn-primary:hover {
  background: #36a89e;
  transform: translateY(-3px);
}
.btn-secondary {
  background: #F58345;
  color: #fff;
}
.btn-secondary:hover {
  background: #e06b2a;
  transform: translateY(-3px);
}

/* =========================
   Cards
========================= */
.intro-cards, .cases-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.card, .case-card, .service {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  flex: 1;
  min-width: 280px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover, .case-card:hover, .service:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.card img, .case-card img, .service img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* =========================
   Forms
========================= */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
}
input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}
button {
  border: none;
  cursor: pointer;
}

/* =========================
   Footer
========================= */
footer {
  background: #43C4B7; /* зелёный футер */
  padding: 20px 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-left p, .footer-right p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-right p {
  color: #fff;
  text-align: right;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-right p {
    text-align: center;
    margin-top: 10px;
  }
}


/* =========================
   Scroll Animations
========================= */
.fadeIn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fadeIn.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #43C4B7;
    position: absolute;
    top: 80px;
    right: 20px;
    width: 200px;
    border-radius: 5px;
    padding: 10px;
  }
  nav ul.show {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .intro-cards, .cases-cards {
    flex-direction: column;
  }
}
/* Buttons */
.btn-primary, .btn-secondary {
  padding: 12px 25px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
  background: #F58345; /* оранжевые кнопки */
  color: #fff;
  transition: all 0.3s;
}
.btn-primary:hover, .btn-secondary:hover {
  background: #e06b2a;
  transform: translateY(-3px);
}

/* World Map Section */
.world-map .map-wrapper {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin: 0 auto; /* центрирование */
  display: block;   /* обязательно */
}
.map {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* Pin Styles */
.map-pin {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 43%;   /* чуть выше */
  left: 21.5%;  /* значительно левее */
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}
.pulse {
  width: 20px;
  height: 20px;
  background: #F58345;
  border-radius: 50%;
  position: absolute;
  top: 0; left: 0;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px rgba(245,131,69,0.5);
}

/* Tooltip */
.pin-tooltip {
  display: none;
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  background: #F58345; /* оранжевый */
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
  white-space: normal;
  max-width: 300px; /* шире, чтобы текст помещался */
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.map-pin:hover .pin-tooltip {
  display: block;
}
/* Clients Logos Section */
/* Центрируем весь блок клиентов внутри контейнера */
.clients {
  text-align: center;      /* центрирует заголовок */
  display: flex;
  flex-direction: column;
  align-items: center;     /* центрирует содержимое */

}

/* Центрируем логотипы */
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* горизонтальное центрирование логотипов */
  gap: 25px;
  width: 100%;
  max-width: 1200px;       /* ограничиваем максимальную ширину */
}

}
.clients h2 {
  margin-bottom: 30px;
}

.clients-logos img {
  max-width: 120px;
  height: auto;
  transition: transform 0.3s, filter 0.3s;
  filter: grayscale(50%);
}
.clients-logos img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}
