/* Основні стилі */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: #fafafa;
  color: #222;
  line-height: 1.6;
}

/* Логотип */
.logo-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}
.logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff0050;
}

/* Шапка */
header {
  text-align: center;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 2px solid #ff0050;
}
h1 {
  color: #ff0050;
  font-size: 24px;
}
h2 {
  margin: 0 0 20px;
  color: #444;
}
h3 {
  color: #555;
}

.contacts h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contacts h2 a {
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #ff0050;
  padding: 2px 8px;
}

.instruction-link img {
  width: 12px;
  height: 12px;
  margin-bottom: -2px;
}

/* Картки */
.card {
  margin: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Кнопки */
.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-radius: 30px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: all 0.3s ease;
  flex: 1 1 auto;
  max-width: 250px;
  justify-content: center;
}
.btn img {
  width: 22px;
  height: 22px;
}
.viber { background: #7360f2; }
.telegram { background: #0088cc; }
.phone { background: #25d366; }
.btn:hover {
  opacity: 0.85;
}

/* Реквізити */
.payment-block p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 8px 0;
}

.payment-block p span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
}
.payment-block strong {
  text-decoration: none;
  color: #000;
}
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
}
.copy-btn img {
  width: 20px;
  height: 20px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #333;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #fff;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #ddd;
}

/* Посилання "Інструкція" */
.instruction-link {
  font-size: 14px;
  margin-left: 10px;
  color: #0088cc;
  text-decoration: underline;
  cursor: pointer;
}
.instruction-link:hover {
  color: #005f88;
}

/* Popup */
.popup {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.popup-content {
  background: #fff;
  padding: 22px;
  border-radius: 12px;
  max-width: 70%;
  max-height: 90%;
  overflow: auto;
  position: relative;
}
.popup-content img {
  width: 100%;
  height: 540px;
  border-radius: 8px;
}
.close {
  position: absolute;
  top: -6px;
  right: 7px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}
.close:hover {
  color: red;
}

/* Адаптивність */
@media (max-width: 768px) {
  .buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
    max-width: none;
  }
  .payment-block p {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .popup-content img {
    height: auto;
  }
}