/* Перемикач у правому верхньому кутку */
.lang-switcher-top {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 10000;
  background: rgba(40, 40, 40, 0.9);
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 8px;
  align-items: center;
  backdrop-filter: blur(4px);
}

.lang-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
  background: #854d38; /* фірмовий колір вашого сайту */
  color: #fff;
}

/* Спливаюче вікно першого візиту */
.lang-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  backdrop-filter: blur(5px);
}

.lang-modal {
  background: #222;
  color: #fff;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #444;
}

.lang-modal h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.lang-modal p {
  color: #bbb;
  font-size: 14px;
  margin-bottom: 25px;
}

.lang-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lang-modal-btn {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lang-modal-btn:hover {
  background: #854d38;
  border-color: #854d38;
}