/* components/contacts/contacts.css */

.contacts {
  padding: 120px 0;
  background: var(--black);
  position: relative;
}

/* Subtle gradient overlay при наведении */
.contacts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.contacts:hover::before {
  opacity: 1;
}

.contacts__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contacts__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
  letter-spacing: -1px;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.contacts__title:hover {
  transform: translateY(-4px);
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.12);
}

.contacts__subtitle {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-300);
  margin: 0;
  transition: color 0.3s ease;
}

.contacts__info:hover .contacts__subtitle {
  color: var(--gray-200);
}

.contacts__items {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 16px;
}

.contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Разные оттенки для визуального разделения */
.contacts__item:nth-child(1) {
  background: rgba(255, 255, 255, 0.02);
}

.contacts__item:nth-child(2) {
  background: rgba(255, 255, 255, 0.025);
}

.contacts__item:nth-child(3) {
  background: rgba(255, 255, 255, 0.03);
}

.contacts__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--accent-gradient);
  transition: height 0.4s ease;
  z-index: 0;
}

.contacts__item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.contacts__item:hover::before {
  height: 100%;
}

.contacts__item:hover::after {
  opacity: 1;
}

.contacts__item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--card-border-hover);
  transform: translateX(12px);
  box-shadow: var(--shadow-glow-white);
}

.contacts__item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--white);
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.contacts__item:hover .contacts__item-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--card-border-hover);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.contacts__item-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.contacts__item-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-400);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.contacts__item:hover .contacts__item-title {
  color: var(--gray-300);
}

.contacts__item-link {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
  transition: all 0.3s ease;
  position: relative;
  width: fit-content;
}

.contacts__item-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.contacts__item-link:hover::after {
  width: 100%;
}

.contacts__item-link:hover {
  color: var(--gray-100);
  transform: translateX(4px);
}

.contacts__item-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
  margin: 0;
  transition: all 0.3s ease;
}

.contacts__item:hover .contacts__item-text {
  color: var(--gray-100);
  transform: translateX(4px);
}

.contacts__map {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  position: sticky;
  top: 100px;
  transition: all 0.4s ease;
}

.contacts__map:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-glow-white);
  transform: scale(1.01);
}

.contacts__map-iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
  transition: filter 0.3s ease;
}

.contacts__map:hover .contacts__map-iframe {
  filter: brightness(1.05);
}

@media (max-width: 1024px) {
  .contacts {
    padding: 80px 0;
  }

  .contacts__wrapper {
    gap: 40px;
  }

  .contacts__title {
    font-size: 40px;
  }

  .contacts__subtitle {
    font-size: 18px;
  }

  .contacts__item-link,
  .contacts__item-text {
    font-size: 18px;
  }

  .contacts__map {
    min-height: 400px;
  }

  .contacts__map-iframe {
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .contacts {
    padding: 60px 0;
  }

  .contacts__wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contacts__info {
    gap: 24px;
  }

  .contacts__title {
    font-size: 32px;
  }

  .contacts__subtitle {
    font-size: 16px;
  }

  .contacts__items {
    gap: 20px;
    margin-top: 8px;
  }

  .contacts__item {
    padding: 20px;
    gap: 16px;
  }

  .contacts__item-icon {
    width: 40px;
    height: 40px;
  }

  .contacts__item-title {
    font-size: 14px;
  }

  .contacts__item-link,
  .contacts__item-text {
    font-size: 16px;
  }

  .contacts__map {
    position: static;
    min-height: 350px;
  }

  .contacts__map-iframe {
    min-height: 350px;
  }
}

@media (max-width: 480px) {
  .contacts__title {
    font-size: 28px;
  }

  .contacts__map {
    min-height: 300px;
  }

  .contacts__map-iframe {
    min-height: 300px;
  }
}