/* Scoped styles for /razrabotka-ekologicheskih-proektov/ */
.eco-projects-page .fb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}

.eco-projects-page .fb-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  box-sizing: border-box;
}

.eco-projects-page .fb-item {
  flex: 0 1 calc(33.333% - 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-sizing: border-box;
}

.eco-projects-page .fb-item-bg {
  max-width: 350px;
  background-color: #fff !important;
}

.eco-projects-page .fb-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  display: block;
  box-sizing: border-box;
}

.eco-projects-page .fb-text {
  text-align: center;
  color: #333;
  font-family: inherit;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .eco-projects-page .fb-wrapper {
    justify-content: center;
  }

  .eco-projects-page .fb-item {
    flex-basis: calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 640px) {
  .eco-projects-page .fb-item {
    flex-basis: 100%;
    max-width: 100%;
  }

  .eco-projects-page .fb-logo {
    width: 48px;
    height: 48px;
  }
}

.eco-projects-page .style_email {
  display: none;
}

/* Button */
.eco-projects-page .custom-pulse-button {
  padding: 15px 25px;
  font-size: 17px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
  animation: customPulse 2s infinite;
  margin-top: 15px;
}

.eco-projects-page .custom-pulse-button:hover {
  transform: scale(1.05);
}

@keyframes customPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 107, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
  }
}

/* Modal */
.eco-projects-page .custom-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.eco-projects-page .custom-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: customModalAppear 0.3s ease-out;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.eco-projects-page .custom-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.eco-projects-page .custom-modal-header {
  margin-bottom: 20px;
}

.eco-projects-page .custom-modal-header h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 10px;
}

.eco-projects-page .custom-modal-description {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.eco-projects-page .custom-form-group {
  margin-bottom: 15px;
}

.eco-projects-page .custom-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.eco-projects-page .custom-form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.eco-projects-page .custom-form-group input:focus {
  outline: none;
  border-color: #ff6b6b;
}

.eco-projects-page .custom-submit-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s;
}

.eco-projects-page .custom-submit-button:hover {
  transform: translateY(-2px);
}

