/* ===== CONTACTS.CSS — страница "Контакты" ===== */

.contacts-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.contacts-header {
  margin-bottom: 40px;
  text-align: center;
}

.contacts-header h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #f0f6fa, #a0c0d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.contacts-header h1 i {
  -webkit-text-fill-color: #6fa0c0;
  font-size: 34px;
}

.contacts-header p {
  color: #8aa6b8;
  font-size: 18px;
  margin-top: 8px;
}

/* ---- СЕТКА КОНТАКТНЫХ КАРТОЧЕК ---- */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  display: block;
  background: #0f171e;
  border: 1px solid #1f2f38;
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  text-decoration: none;
  transition: 0.2s ease;
}

.contact-card:hover {
  border-color: #3f6a80;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.contact-card-icon {
  font-size: 52px;
  color: #3f8ab0;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #dce9f2;
  margin-bottom: 8px;
}

.contact-card p {
  color: #7a98aa;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.contact-link {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  background: #1a2a34;
  border: 1px solid #2f404a;
  color: #8aa6b8;
  transition: 0.2s ease;
}

.contact-card:hover .contact-link {
  border-color: #4f8aaa;
  color: #b0ccdd;
}

.contact-link {
  user-select: all;
}

.contact-link:hover {
  background: #223844;
  border-color: #4f8aaa;
  color: #b0ccdd;
  box-shadow: 0 0 0 3px rgba(79, 138, 170, 0.15);
}

/* Тост-уведомление "Скопировано" */
.contact-copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: #b8e6c8;
  background: #143a2e;
  border: 1px solid #2f8a5b;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideUp 0.3s ease;
  pointer-events: none;
}

.contact-copy-toast i {
  color: #4fd08a;
  font-size: 16px;
}

.contact-copy-toast b {
  font-weight: 600;
  color: #dff2e6;
}

.contact-copy-toast.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@keyframes toastSlideUp {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ---- КАРТОЧКА АВТОРА САЙТА ---- */
.author-info-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: linear-gradient(135deg, #0f171e, #0a0f13);
  border: 1px solid #2f404a;
  border-radius: 24px;
  padding: 28px 32px;
  margin-bottom: 40px;
}

.author-info-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1a2a34;
  border: 2px solid #2f404a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #4f8aaa;
  flex-shrink: 0;
}

.author-info-content {
  flex: 1;
  min-width: 0;
}

.author-info-label {
  font-size: 13px;
  color: #5f8095;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.author-info-label i {
  color: #f5a623;
  font-size: 14px;
}

.author-info-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #dce9f2;
  margin: 0 0 12px 0;
  letter-spacing: -0.3px;
}

.author-info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.author-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  background: #1a2a34;
  border: 1px solid #2f404a;
  color: #8aa6b8;
}

.author-info-badge.badge-status {
  background: rgba(76, 175, 80, 0.12);
  border-color: #2d8a3a;
  color: #66bb6a;
}

.author-info-badge i {
  font-size: 12px;
}

.author-info-content p {
  font-size: 13px;
  color: #6d8fa0;
  line-height: 1.6;
  margin: 0;
}

/* ---- FAQ на странице контактов ---- */
.contacts-faq {
  background: #10181e;
  border: 1px solid #293b44;
  border-radius: 28px;
  padding: 32px 36px;
}

.contacts-faq h2 {
  font-size: 24px;
  font-weight: 600;
  color: #dce9f2;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contacts-faq h2 i {
  color: #3f8ab0;
}

.contacts-faq .faq-item {
  border-bottom: 1px solid #1f2f38;
  padding: 16px 0;
}

.contacts-faq .faq-item:last-child {
  border-bottom: none;
}

.contacts-faq .faq-item .question {
  font-size: 16px;
  font-weight: 500;
  color: #d4e6f2;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.contacts-faq .faq-item .question i {
  color: #3f8ab0;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.contacts-faq .faq-item .answer {
  color: #7a98aa;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 6px;
  padding-left: 28px;
}

/* ---- Адаптивность ---- */
@media (max-width: 700px) {
  .contacts-header h1 {
    font-size: 28px;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 28px 20px;
  }
  .contact-card-icon {
    font-size: 40px;
  }
  .author-info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }
  .author-info-badges {
    justify-content: center;
  }
  .contacts-faq {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .contacts-header h1 {
    font-size: 24px;
  }
  .contacts-header p {
    font-size: 15px;
  }
  .contact-card {
    padding: 24px 16px;
  }
  .contact-card-icon {
    font-size: 36px;
  }
  .contacts-faq .faq-item .answer {
    padding-left: 0;
  }
}

