body {
  margin: 0px;
}

header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-content h1 {
  font-size: 24px;
  color: #222;
  margin: 0;
}

.lang-switcher {
  display: flex;
  gap: 8px;
}

.lang-btn {
  background-color: transparent;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background-color: #222;
  color: #fff;
  border-color: #222;
}

.lang-btn:hover:not(.active) {
  background-color: #f0f0f0;
}
/* ====== Герой ====== */
.hero {
  background: linear-gradient(120deg, #ffe259, #ffa751);
  padding: 120px 20px 60px;
  text-align: center;
  color: #000;
}

.hero h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero button {
  padding: 14px 28px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.hero button:hover {
  background-color: #222;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* ====== Почему мы ====== */
.why {
  background-color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.why h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.why-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.why-card {
  background-color: #fffbe9;
  border-radius: 16px;
  padding: 30px 20px;
  width: 280px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.why-card:hover {
  transform: translateY(-6px);
}

.why-emoji {
  font-size: 48px;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 15px;
  color: #555;
}

/* ====== Благотворительность ====== */
.charity-stats {
  background-color: #f5f5f5;
  padding: 80px 20px;
  text-align: center;
}

.charity-stats h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.charity-stats p {
  font-size: 18px;
  margin-bottom: 40px;
}

.charity-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.charity-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  width: 260px;
  transition: transform 0.3s ease;
}

.charity-card:hover {
  transform: translateY(-6px);
}

.charity-emoji {
  font-size: 48px;
  margin-bottom: 12px;
}

.charity-amount {
  font-size: 24px;
  font-weight: bold;
}

.charity-label {
  font-size: 16px;
  color: #666;
}

/* ====== Как начать ====== */
.how-to {
  background-color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.how-to h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #fefbe9;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  width: 100%;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  background-color: #fffdd3;
}

.circle {
  background-color: #ffd700;
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.step p {
  margin: 0;
  font-size: 16px;
  text-align: left;
  color: #333;
}

/* ====== Футер ====== */
footer {
  background-color: #000;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

/* ====== WhatsApp кнопка ====== */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 999;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #f3cf05;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

.whatsapp-button img {
  width: 36px;
  height: 36px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 235, 5, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ====== Адаптив ====== */
@media (min-width: 768px) {
  .why-cards,
  .charity-cards {
    flex-direction: row;
  }

  .steps {
    flex-direction: column;
  }
}

.fade-in-hadith {
  font-style: italic;
  color: #004225;
  margin: 20px auto;
  max-width: 700px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.charity-amount.loading {
  animation: pulse-charity 1.2s infinite ease-in-out;
  color: #000000;
}

@keyframes pulse-charity {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

.check-sadaka-button {
  margin-top: 40px;
  padding: 14px 28px;
  background-color: #004225;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.check-sadaka-button:hover {
  background-color: #006f4e;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.modal-content button {
  background-color: #004225;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  height: 45px;
  margin-top: 12px;
  min-width: 120px;
}

.modal-content button:hover {
  background-color: #006f4e;
}

.modal-content .close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 20px;
  cursor: pointer;
}

#charityResult {
  margin-top: 10px;
  font-weight: bold;
}

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

/* Плавное исчезновение input и кнопки */
.modal-content .hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Добавим этот класс через JS после завершения анимации */
.modal-content .gone {
  display: none;
}

.modal-content {
  transition: min-height 0.6s ease;
}

.input-wrapper {
  transition: all 0.6s ease;
  overflow: hidden;
}

.input-wrapper.hidden {
  opacity: 0;
  transform: scaleY(0.7);
  max-height: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

.fade-left-wrapper {
  display: flex;
  gap: 10px;
  transition: all 0.8s ease;
}

.fade-left-wrapper.fade-out {
  opacity: 0;
  transform: translateX(-80px);
  pointer-events: none;
}

.join-button a {
  text-decoration: none;
  color: inherit;
}
