/* contacts.css – финальная версия с MAX и более ярким свечением */
:root {
  --spacing: 4px;
  --primary: lab(65.9688% 57.7443 77.7888);
  --blur-3xl: 64px;
}

html, body {
  overflow-x: visible !important;
}

#contacts-info {
    margin-top: 120px;
}

/* ========== HERO СЕКЦИЯ (без изменений) ========== */
.contacts-hero {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow-x: clip;
}
.contacts-hero .container {
  max-width: 1280px;
  padding: 60px 24px 0 24px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.contacts-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: calc(100% + 200px);
  background-image: url('../img/12.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}
.hero-contacts-content {
  position: relative;
  z-index: 1;
}
.hero-contacts-grid {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}
.back-to-home {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.back-to-home a {
  color: var(--secondary-text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.2s;
}
.back-to-home a:hover {
  color: var(--active-tab);
}
.jp-flag-badge {
  background: #0e162480;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--active-tab);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.jp-flag-badge i {
  color: lab(65.9688% 57.7443 77.7888);
}
.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: var(--headers-color);
  font-family: 'Space Grotesk', system-ui;
}
.hero-title .gradient-text {
  display: inline-block;
}
.hero-description {
  font-size: 1.1rem;
  color: #cbd5e6;
  max-width: 90%;
  margin-bottom: 32px;
}

/* ========== СЕТКА КОНТАКТНЫХ КАРТОЧЕК ========== */
.contacts-section {
  padding: 70px 0 40px 0;
}
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: center;
  align-items: start;
}

/* Карточка контакта */
.contact-item-large {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 182px;
  background: linear-gradient(145deg, lab(7.06747% -0.19002 -10.6574 / 0.9), lab(3.61341% -0.0697747 -6.86977 / 0.6));
  border-radius: 32px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.contact-item-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.3);
  border-color: lab(65.9688% 57.7443 77.7888);
}

/* Свечение */
.contact-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  pointer-events: none;
  opacity: 0.2;
  filter: blur(var(--blur-3xl));
  z-index: 0;
  transition: opacity 0.25s ease;
}
/* Усиленное свечение при наведении */
.contact-item-large:hover .contact-glow {
  opacity: 0.9;
}

/* Фон иконки – цветной, соответствует свечению */
.contact-icon-bg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.contact-icon-bg i {
  font-size: 1.8rem;
  color: #ffffff;
}

/* Цвета фона иконок */
.icon-bg-phone { background-color: #ffb428; }
.icon-bg-max { background-color: #aa66ff; }       /* для MAX */
.icon-bg-second-phone { background-color: #ff5078; }
.icon-bg-telegram { background-color: #0088cc; }
.icon-bg-vk { background-color: #5064ff; }
.icon-bg-email { background-color: #00c864; }

/* Тексты контакта */
.contact-content {
  z-index: 1;
  flex: 1;
}
.contact-label {
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
  letter-spacing: 0.1em;
  color: lab(67.45% -0.932187 -7.4149);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.contact-value {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: calc(1.75 / 1.25);
  color: lab(97.6882% -0.8232 -1.65225);
  word-break: break-word;
}

/* Свечения для каждой карточки */
.contact-phone .contact-glow { background: radial-gradient(circle, #ffb428, transparent); }
.contact-max .contact-glow { background: radial-gradient(circle, #aa66ff, transparent); }
.contact-second-phone .contact-glow { background: radial-gradient(circle, #ff5078, transparent); }
.contact-telegram .contact-glow { background: radial-gradient(circle, #0088cc, transparent); }
.contact-vk .contact-glow { background: radial-gradient(circle, #5064ff, transparent); }
.contact-email .contact-glow { background: radial-gradient(circle, #00c864, transparent); }

/* ========== ИНФОРМАЦИОННЫЕ КАРТОЧКИ (без анимации) ========== */
.info-section {
  padding: 20px 0 70px 0;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: center;
  align-items: start;
}
.info-card-item {
  width: 100%;
  max-width: 400px;
  background: #0e162480;
  border: 1px solid #ffffff14;
  border-radius: 32px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 20px;
  /* без hover-эффектов */
}
.info-icon {
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}
.info-icon i {
  font-size: 2rem;
  color: lab(65.9688% 57.7443 77.7888);
}
.info-content {
  flex: 1;
}
.info-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: lab(97.6882% -0.8232 -1.65225);
  margin-bottom: 8px;
}
.info-description {
  font-size: 1rem;
  color: lab(67.45% -0.932187 -7.4149);
  line-height: 1.4;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1320px) {
  .contacts-grid, .info-grid {
    gap: 20px;
  }
}
@media (max-width: 1100px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .contacts-grid, .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.2rem;
  }
}
@media (max-width: 768px) {
  .contacts-hero .container {
    padding-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 1rem;
    max-width: 100%;
  }
  .contacts-grid, .info-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .contact-item-large, .info-card-item {
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 182px;
  }
  .contact-icon-bg {
    width: 52px;
    height: 52px;
  }
  .contact-icon-bg i {
    font-size: 1.4rem;
  }
  .contact-value {
    font-size: 1rem;
  }
  .info-icon i {
    font-size: 1.6rem;
  }
  .info-title {
    font-size: 1rem;
  }
  .info-description {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-description {
    font-size: 0.9rem;
  }
  .contact-icon-bg {
    width: 44px;
    height: 44px;
  }
  .contact-icon-bg i {
    font-size: 1.2rem;
  }
  .contact-value {
    font-size: 0.9rem;
  }
  .info-icon i {
    font-size: 1.4rem;
  }
  .info-title {
    font-size: 0.95rem;
  }
  .info-description {
    font-size: 0.85rem;
  }
}