/* Стили для страницы контактов */

/* Основной контейнер страницы */
.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Заголовок страницы */
.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.contact-header-text {
  flex: 1;
  min-width: 260px;
}

.contact-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

.contact-header-photo {
  flex: 0 1 360px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-header-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Контент страницы */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Секция с формой */
.contact-form-section {
  flex: 1;
}

.contact-card {
  background: var(--bg-primary);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.contact-card > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Форма */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error {
  border-color: #DC2626;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Кнопка отправки */
.submit-btn {
  padding: 1rem 2rem;
  background: #4A6359;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.submit-btn:hover:not(:disabled) {
  background: #3B5248;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading .btn-loading {
  display: inline-block;
}

.btn-loading {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Секция с информацией */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  background: var(--bg-primary);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Список преимуществ */
.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-list strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.info-list p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* Методы связи */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-method:hover {
  background: var(--bg-tertiary);
  transform: translateX(5px);
}

.method-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.contact-method strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.contact-method p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

/* Уведомление */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: #10B981;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 9999;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.hidden {
  display: none;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notification-icon {
  font-size: 1.5rem;
}

.notification-text {
  font-weight: 500;
  line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 968px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-info-section {
    order: -1;
  }
}

@media (max-width: 768px) {
  .contact-header {
    flex-direction: column;
    text-align: center;
  }

  .contact-header-text p {
    margin: 0 auto;
  }

  .contact-header-photo {
    max-width: 320px;
    width: 100%;
  }

  .contact-header h1 {
    font-size: 2rem;
  }

  .contact-header p {
    font-size: 1rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-card h2 {
    font-size: 1.5rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .notification {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
  }
}

@media (max-width: 480px) {
  .contact-page {
    padding: 1rem;
  }

  .contact-header {
    margin-bottom: 2rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Предотвращает зум на iOS */
  }

  .submit-btn {
    padding: 0.875rem 1.5rem;
  }
}

/* Анимации */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-card,
.info-card {
  animation: slideIn 0.4s ease-out;
}

/* Загрузка */
@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.submit-btn.loading .btn-loading::after {
  content: '⏳';
  animation: spin 1s linear infinite;
}


