/* ==========================
   Base
========================== */

* {
  box-sizing: border-box;
}

html {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('../img/background.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.3;
  z-index: -1;
}

/* ==========================
   Header
========================== */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(15, 69, 56, 0.9);
  backdrop-filter: blur(5px);
  z-index: 1000;
  padding: 10px 0;
  min-height: 80px;
}

.header-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 10px 20px;
  flex-wrap: wrap;
  min-height: 60px;
}

/* ---------- Контакты ---------- */
.contact-info {
  display: flex;
  gap: 40px;
  color: #fff;
  align-items: center;
  min-width: 250px;
}

.contact-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 500;
}

.contact-column a {
  color: #fff;
  text-decoration: none;
}

.contact-column a:hover {
  color: #ffdd57;
}

.contact-column i {
  margin-right: 5px;
  font-size: 1rem;
}

/* ---------- Навигация ---------- */
.main-nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 400px;
}

/* Верхние кнопки меню */
.main-nav .btn {
  background-color: rgba(15,69,56,0.9);
  color: #fff;
  border-radius: 8px;
  padding: 10px 25px;
  font-weight: 600;
  border: 1px solid #0f4538;
  transition: all 0.3s;
  min-width: 120px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.main-nav .btn:hover {
  color: #ffdd57;
  background-color: #0f4538;
  transform: translateY(-2px);
}

/* ---------- Dropdown ---------- */
.dropdown {
  position: relative;
}

/* Подменю */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0f4538;
  border-radius: 8px;
  min-width: 180px;
  z-index: 2000;
  flex-direction: column;
}

.dropdown-menu.show {
  display: flex;
}

/* Ссылки подменю */
.dropdown-menu a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background-color: #135644;
  color: #ffdd57;
}

/* ---------- Языки ---------- */
.lang {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.lang button {
  background-color: rgba(255,255,255,0.2);
  border: 1px solid #fff;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  min-width: 50px;
}

.lang button:hover {
  background-color: #fff;
  color: #0F4538;
}

/* ==========================
   Main
========================== */
main {
  padding-top: 150px;
  text-align: center;
  min-height: calc(100vh - 150px);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: #555;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

/* ==========================
   Footer
========================== */
footer {
  background-color: #f8f9fa;
  color: #555;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}

/* ==========================
   Responsive (original)
========================== */
@media (max-width: 768px) {
  .dropdown-menu {
    position: relative;
    flex-direction: column;
    background-color: #0f4538 !important;
  }

  .dropdown-menu a {
    color: #fff !important;
  }

  .dropdown-menu a:hover {
    background-color: #135644 !important;
    color: #ffdd57 !important;
  }
}

/* ==========================
   Dropdown arrow
========================== */
#about-btn::after {
  content: "▼";
  font-size: 0.6rem;
  margin-left: 5px;
  transition: transform 0.3s ease;
  display: inline-block;
}

#about-btn.active::after {
  transform: rotate(180deg);
}

/* ==========================
   Mobile layout FIX (added, safe)
========================== */
@media (max-width: 768px) {

  header {
    position: static;
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
    min-width: auto;
    text-align: center;
  }

  .contact-column {
    align-items: center;
  }

  .main-nav {
    flex-direction: column;
    gap: 10px;
    min-width: auto;
  }

  .main-nav .btn {
    width: 100%;
    padding: 12px;
  }

  .dropdown,
  .dropdown-menu {
    width: 100%;
  }

  .lang {
    margin-left: 0;
    justify-content: center;
  }

  main {
    padding-top: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  #map {
    height: 300px;
  }
}
