* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f9fafb;
  color: #111827;
  line-height: 1.6;
}

header {
  background: linear-gradient(rgba(17, 24, 39, 0.4), rgba(17, 24, 39, 0.7)),
    url("../img/panorama2.webp") center/cover no-repeat;
  color: #fff;
  height: 420px;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  animation: fadeInDown 1s ease-out;
}

header p {
  font-size: 1.25rem;
  opacity: 0.8;
  animation: fadeInUp 1.5s ease-out;
}

nav {
  display: flex;
  justify-content: center;
  background-color: #1f2937;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1.5rem;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #fbbf24;
}

.hero {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(to right, #facc15, #fbbf24);
  color: #111827;
  background-attachment: fixed;
  position: relative;
}

.wave {
  position: relative;
  height: 80px;
  overflow: hidden;
}

.wave svg {
  position: absolute;
  width: 100%;
}

.wave-top svg {
  transform: rotate(180deg);
}

.hero h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease-out;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 1.3s ease-out;
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: #111827;
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #4b5563;
  transform: scale(1.05);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: #fff;
}

.feature {
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background-color: #f9fafb;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-10px);
}

.feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.feature p {
  color: #6b7280;
}

.map-section {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
  margin-top: 50px;
}

#mapContainer {
  height: 660px;
  border-radius: 12px;
  overflow: hidden;
}

footer {
  background-color: #111827;
  color: #d1d5db;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

/* Медіа запити для мобільних пристроїв */
@media (max-width: 500px) {
  /* 1. Збільши padding у секціях */
  .hero,
  .features,
  #pricing,
  .map-section {
    padding: 4rem 1rem !important;
  }

  /* 2. Зменши розмір шрифтів заголовків */
  .hero h2,
  #pricing h2,
  #jobs h2,
  .map-section h2 {
    font-size: 1.5rem !important;
  }
  .hero p,
  #pricing p,
  #jobs p,
  .map-section p {
    font-size: 1rem !important;
  }

  /* 3. Центруй кнопки */
  .cta-button {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* 4. Адаптивна висота карти */
  #mapContainer {
    height: 300px !important;
  }

  /* 5. Зменшити висоту header */
  header {
    height: auto;
    padding: 3rem 1rem;
  }

  /* 6. Адаптація форми */
  #jobForm input {
    font-size: 1rem !important;
  }

  nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }

  nav a {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.9rem;
  }
}

/* Анімації */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.leaflet-popup .leaflet-popup-content b {
  color: #fbbf24 !important;
}
