.custom-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(48, 135, 169, 0); 
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.8s ease; 
}

/* "Активная" модалка */
.custom-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Анимация фона снизу вверх */
.custom-modal::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(48, 135, 169, 0.5);
  transition: height 0.4s ease;
  z-index: -1;
}

.custom-modal.active::before {
  height: 100%;
}

/* Контейнер */
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative;

  /* Плавное появление */
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.custom-modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* Крестик */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #666;
}

.modal-content h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #3086a9;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-content label {
  font-weight: 600;
  font-size: 14px;
}

.modal-content input,
.modal-content select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.modal-content input:focus,
.modal-content select:focus {
  outline: none;
  border-color: #3086a9;
}

.checkboxx {
  font-size: 13px;
  display: flex;
  align-items: center; 
  gap: 8px;
  justify-content: flex-start; 
}

.btn-submit {
  background: orange;
  border: none;
  padding: 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: darkorange;
}

.social-links img.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  transition: transform 0.3s ease; 
  cursor: pointer;
}

.social-links img.social-icon:hover {
  transform: scale(1.2); 
}

.faq-extra {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
}

.faq-extra-text {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.extraquestion-btn {
  transition: transform var(--transition), box-shadow var(--transition);
  background: #3086a9;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 50px;
}
.extraquestion-btn:hover {
  transform: translateY(-3px);
}
.extraquestion-btn:active {
  transform: translateY(0);
}

.hiddenField {
  display: none !important;
}

.news-section {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.news-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 50px;
  color: #111;
}

.news-container {
  display: flex;
  flex-direction: row; 
  flex-wrap: wrap; 
  gap: 30px; 
  justify-content: center; 
}

.news-article {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 1 calc(33.333% - 20px); 
  min-width: 300px; 
  max-width: 380px; 
}

.news-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.news-header {
  padding: 25px 25px 0;
  margin-bottom: 15px;
}

.news-article-title {
  font-size: 1.2rem; 
  font-weight: 600;
  color: #111;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.news-date {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.news-media {
  width: 100%;
  margin: 0 0 20px 0;
}

.news-image {
  width: 100%;
  height: 200px; 
  object-fit: cover;
  display: block;
}

.news-video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #000;
}

.news-content {
  padding: 0 25px 25px;
}

.news-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 12px;
}

.news-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .news-article {
    flex: 0 1 calc(50% - 15px); 
  }
}

@media (max-width: 768px) {
  .news-section {
    margin: 60px auto;
    padding: 0 15px;
  }

  .news-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .news-container {
    gap: 20px;
  }

  .news-article {
    flex: 0 1 100%; 
    min-width: auto;
    max-width: none;
  }

  .news-header {
    padding: 20px 20px 0;
  }

  .news-article-title {
    font-size: 1.1rem;
  }

  .news-content {
    padding: 0 20px 20px;
  }

  .news-content p {
    font-size: 0.9rem;
  }
}