.page-contact__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-top: 0; /* Ensures no extra padding if body already has it */
  margin-top: 0;
  background-color: #8B0000; /* Fallback for image */
}

.page-contact__hero-image {
  width: 100%;
  height: 600px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.page-contact__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  padding: 20px;
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFD700;
  letter-spacing: -0.03em;
}

.page-contact__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-contact__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #FFD700;
}

.page-contact__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-contact__info-section,
.page-contact__form-section,
.page-contact__social-section,
.page-contact__faq-section,
.page-contact__cta-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #333333;
  background-color: #ffffff;
}

.page-contact__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #8B0000;
}

.page-contact__section-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__card {
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-contact__card-image {
  width: 100%;
  height: 200px; /* Ensure images are not too small */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-contact__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #8B0000;
}

.page-contact__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
}

.page-contact__card-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #FFD700;
}

.page-contact__card-button:hover {
  background-color: #e6c200;
  color: #8B0000;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: #fdfdfd;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-contact__form-group {
  margin-bottom: 25px;
}

.page-contact__form-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1rem;
  color: #333333;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFD700;
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__submit-button {
  display: block;
  width: 100%;
  background-color: #8B0000;
  color: #ffffff;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-contact__submit-button:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-contact__social-links {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-contact__social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFD700;
  color: #8B0000;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #FFD700;
}

.page-contact__social-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-contact__social-button--facebook {
  background-color: #3b5998;
  color: #ffffff;
  border-color: #3b5998;
}
.page-contact__social-button--facebook:hover {
  background-color: #2d4373;
}

.page-contact__social-button--twitter {
  background-color: #1da1f2;
  color: #ffffff;
  border-color: #1da1f2;
}
.page-contact__social-button--twitter:hover {
  background-color: #0c85d0;
}

.page-contact__social-button--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border-color: #bc1888;
}
.page-contact__social-button--instagram:hover {
  filter: brightness(1.1);
}

.page-contact__social-button--telegram {
  background-color: #0088cc;
  color: #ffffff;
  border-color: #0088cc;
}
.page-contact__social-button--telegram:hover {
  background-color: #006b9e;
}

.page-contact__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__faq-item {
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-contact__faq-item[open] > .page-contact__faq-question {
  background-color: #f0f0f0;
  color: #8B0000;
}

.page-contact__faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] > .page-contact__faq-question::after {
  content: '−';
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
}

.page-contact__faq-answer p {
  margin-bottom: 15px;
}

.page-contact__faq-link {
  color: #8B0000;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-contact__faq-link:hover {
  color: #FFD700;
  text-decoration: underline;
}

.page-contact__cta-section {
  padding-bottom: 80px;
}

.page-contact__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid;
}

.page-contact__cta-button--primary {
  background-color: #FFD700;
  color: #8B0000;
  border-color: #FFD700;
}

.page-contact__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-contact__cta-button--secondary {
  background-color: transparent;
  color: #8B0000;
  border-color: #8B0000;
}

.page-contact__cta-button--secondary:hover {
  background-color: #8B0000;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-image {
    height: 500px;
  }

  .page-contact__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-contact__hero-description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }

  .page-contact__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-contact__card-title {
    font-size: 1.4rem;
  }

  .page-contact__faq-question {
    font-size: 1.05rem;
    padding: 15px 20px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-image {
    height: 400px;
  }

  .page-contact__hero-content {
    padding: 15px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-contact__hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 20px;
  }

  .page-contact__hero-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__social-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 40px 15px;
  }

  .page-contact__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-contact__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-contact__contact-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__card {
    padding: 25px;
  }

  .page-contact__card-image {
    height: 180px;
  }

  .page-contact__card-title {
    font-size: 1.3rem;
  }

  .page-contact__card-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .page-contact__contact-form {
    padding: 30px;
  }

  .page-contact__form-label {
    font-size: 0.95rem;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .page-contact__submit-button {
    padding: 12px 15px;
    font-size: 1rem;
  }

  .page-contact__social-links {
    gap: 15px;
  }

  .page-contact__social-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .page-contact__faq-question {
    font-size: 1rem;
    padding: 15px 18px;
  }

  .page-contact__faq-answer {
    padding: 15px 18px;
    font-size: 0.95rem;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__cta-button {
    width: 100%;
    max-width: 300px; /* Limit width for very small screens */
    margin: 0 auto;
    padding: 14px 25px;
    font-size: 1.05rem;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
  }

  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
  }
}