/* КРЕАТИВНАЯ СТРАНИЦА КОНТАКТОВ - TONITRAMP */

/* Базовые переменные */
:root {
  --primary-color: var(--text-primary);
  --secondary-color: var(--text-secondary);
  --accent-color: #007aff;
  --background-color: var(--bg-primary);
  --text-color: var(--text-primary);
  --border-color: var(--border-secondary);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Основные стили */
.page-contacts {
  background: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ===== ГЕРОЙ СЕКЦИЯ ===== */
.hero-section {
  position: relative;
  min-height: auto; /* Убираем 100vh */
  display: flex;
  align-items: flex-start; /* Вместо center */
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
  margin-top: 0; /* Убираем отступ до хедера */
  padding-top: clamp(130px, 21.6vw, 259px); /* Уменьшаем отступ до хедера на 10% */
  padding-bottom: clamp(86px, 13vw, 173px); /* Уменьшаем расстояние до следующего блока на 10% */
}

/* Простой белый фон */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: var(--bg-primary);
}

/* Контент героя */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 clamp(1rem, 3vw, 2rem); /* Плавные отступы */
}

.hero-title {
  margin: 0 0 clamp(20px, 3vw, 32px); /* Умеренные отступы */
  font-size: clamp(2.75rem, 7vw, 6rem); /* Оптимальный размер */
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-primary);
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 1s ease-out forwards;
  text-align: center;
  width: auto;
}

.title-line:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  font-weight: 300;
  margin: 0 0 clamp(24px, 4vw, 40px); /* Умеренные отступы */
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 1s ease-out 0.6s forwards;
  color: var(--secondary-color);
}

/* CTA кнопка */
/* Hero CTA убран */

/* Кнопка CTA убрана */

/* Индикатор прокрутки убран */

/* Уменьшаем отступ до футера */
.page-contacts main {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ===== ИНТЕРАКТИВНЫЕ КОНТАКТЫ ===== */
.interactive-contacts {
  padding: clamp(130px, 17.3vw, 216px) 2rem; /* Уменьшаем отступы на 10% */
  background: var(--background-color);
}

.contacts-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 4rem;
  opacity: 0;
  transform: translateY(30px);
}

.section-title.animate-in {
  animation: slideInUp 0.8s ease-out forwards;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.contact-method {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition-medium);
  opacity: 0;
  transform: translateY(50px);
  cursor: pointer;
}

.contact-method.animate-in {
  animation: slideInUp 0.8s ease-out forwards;
}

.contact-method:hover,
.contact-method.hovered {
  border-color: var(--accent-color);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 122, 255, 0.15);
}

.method-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--accent-color), #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  transition: all var(--transition-medium);
}

.contact-method:hover .method-icon {
  transform: scale(1.1) rotate(5deg);
}

.method-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--primary-color);
}

.method-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--secondary-color);
  margin: 0 0 2rem;
}

.method-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.method-link:hover {
  gap: 1rem;
}

.link-arrow {
  transition: transform var(--transition-fast);
}

.method-link:hover .link-arrow {
  transform: translateX(5px);
}

/* ===== КРЕАТИВНЫЙ ПРОЦЕСС ===== */
.creative-process {
  padding: clamp(130px, 17.3vw, 216px) 2rem; /* Уменьшаем отступы на 10% */
  background: var(--bg-primary);
}

.process-container {
  max-width: 1000px;
  margin: 0 auto;
}

.process-timeline {
  position: relative;
  margin-top: 4rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(50px);
}

.timeline-item.animate-in {
  animation: slideInUp 0.8s ease-out forwards;
}

.timeline-item:nth-child(odd) {
  text-align: right;
  padding-right: 50%;
}

.timeline-item:nth-child(even) {
  text-align: left;
  padding-left: 50%;
}

.timeline-number {
  position: absolute;
  left: 50%;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-medium);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--primary-color);
}

.timeline-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--secondary-color);
  margin: 0;
}

/* ===== СОЦИАЛЬНЫЕ СЕТИ ===== */
.social-section {
  padding: clamp(130px, 17.3vw, 216px) 2rem; /* Уменьшаем отступы на 10% */
  background: var(--background-color);
}

.social-container {
  max-width: 1200px;
  margin: 0 auto;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.social-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-medium);
  opacity: 0;
  transform: translateY(50px);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-card.animate-in {
  animation: slideInUp 0.8s ease-out forwards;
}

.social-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 122, 255, 0.15);
}

.social-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.social-content {
  flex: 1;
}

.social-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--primary-color);
}

.social-content p {
  font-size: 1rem;
  color: var(--secondary-color);
  margin: 0;
}

.social-arrow {
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform var(--transition-fast);
}

.social-card:hover .social-arrow {
  transform: translateX(5px);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    line-height: 1.5;
  }

  .cta-button {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .process-timeline::before {
    left: 30px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 80px;
    padding-right: 0;
  }

  .timeline-number {
    left: 30px;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .social-card {
    flex-direction: column;
    text-align: center;
  }

  .hero-section {
    padding-top: clamp(
      184px,
      38.3vw,
      306px
    ); /* Увеличиваем отступ от хедера на мобильном еще на 10% */
    padding-bottom: clamp(84px, 18.1vw, 168px); /* Увеличиваем отступ до футера еще на 15% */
  }

  .interactive-contacts,
  .creative-process,
  .social-section {
    padding: clamp(121px, 18.1vw, 181px) 1rem; /* Увеличиваем отступы на мобильном еще на 15% */
  }

  .contact-method,
  .timeline-content,
  .social-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: clamp(
      153px,
      30.6vw,
      245px
    ); /* Увеличиваем отступ от хедера на маленьких экранах еще на 10% */
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .interactive-contacts,
  .creative-process,
  .social-section {
    padding: clamp(97px, 18.1vw, 144px) 1rem; /* Увеличиваем отступы еще на 15% */
  }

  .contact-method,
  .timeline-content,
  .social-card {
    padding: 1.5rem;
  }
}

/* ===== АНИМАЦИИ ===== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Анимации убраны */

/* Плавное появление элементов */
.animate-in {
  animation: slideInUp 0.8s ease-out forwards;
}

/* Дополнительные hover эффекты */
.contact-method:hover .method-icon svg,
.social-card:hover .social-icon {
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
