/* 🎯 Стили для страницы Контакты */
.contact-section {
  --accent-local: #28a745;
  position: relative;
  background: var(--bg);
  padding: 4rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.contact-section::before,
.contact-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.contact-section::before {
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: var(--primary-light);
}

.contact-section::after {
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: var(--accent-local);
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.4rem;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

/* 🔹 Сетка с карточками */
.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .contact-info { grid-template-columns: 1fr 1fr; }
}

/* 🔹 Карточки контактов */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border: 2px solid var(--primary-light);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: border-color .3s, transform .3s;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
  cursor: pointer;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }

.contact-card:hover {
  border-color: var(--accent-local);
  transform: translateY(-5px);
}

.contact-card i {
  font-size: 2rem;
  color: var(--primary);
  width: 2.5rem;
  text-align: center;
}

.contact-card div {
  font-size: 1.05rem;
  color: var(--text);
}

.contact-card a {
  color: var(--accent-local);
  font-weight: 600;
  transition: color .2s;
}

.contact-card a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* 🔹 Часы работы */
.hours-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border: 2px dashed var(--primary-light);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-top: 2rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

.hours-card i {
  font-size: 2rem;
  color: var(--primary-light);
  width: 2.5rem;
  text-align: center;
}

.hours-card div {
  font-size: 1.05rem;
  color: var(--text);
}

/* 🔹 Блок действий */
.contact-actions {
  text-align: center;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.contact-actions .cta-button {
  padding: .75rem 1.5rem;
  background: var(--accent-local);
  color: #fff !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 600;
  display: inline-block;
  margin-bottom: .5rem;
  transition: background .2s, transform .2s;
}

.contact-actions .cta-button:hover {
  background: #1e7e34;
  transform: translateY(-2px);
}

.contact-actions .cta-button:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}

.contact-actions p a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.contact-actions p a:hover {
  color: var(--primary-light);
}

/* 🔹 Анимации */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📱 Адаптив для планшетов */
@media (max-width: 768px) {
  .contact-section { padding: 3rem 1rem; }
  .contact-section h2 { font-size: 2rem; }

  .contact-card,
  .hours-card {
    padding: 1.2rem;
  }

  .contact-card i,
  .hours-card i {
    font-size: 1.7rem;
    width: 2rem;
  }

  .contact-card div,
  .hours-card div {
    font-size: 1rem;
  }

  .contact-actions .cta-button {
    padding: 0.65rem 1.2rem;
    font-size: 0.95rem;
  }

  .contact-section::before { font-size: 4rem; top: -20px; right: -20px; }
}

/* 📱 Адаптив для телефонов */
@media (max-width: 480px) {
  .contact-section {
    padding: 2rem 0.75rem;
    border-radius: 12px;
  }

  .contact-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .contact-info { gap: 1rem; }

  .contact-card,
  .hours-card {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }

  .contact-card i,
  .hours-card i {
    font-size: 1.5rem;
    width: auto;
  }

  .contact-card div,
  .hours-card div {
    font-size: 0.95rem;
  }

  .contact-actions .cta-button {
    display: block;
    width: 100%;
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .contact-section::before,
  .contact-section::after {
    opacity: 0.1;
    filter: blur(2px);
  }

  .contact-section::before {
    width: 140px;
    height: 140px;
    top: -40px;
    right: -40px;
  }

  .contact-section::after {
    width: 180px;
    height: 180px;
    bottom: -50px;
    left: -50px;
  }
}

/* 📱 Очень маленькие экраны (<360px) */
@media (max-width: 360px) {
  .contact-section::before {
    width: 100px;
    height: 100px;
    top: -25px;
    right: -25px;
  }

  .contact-section::after {
    width: 140px;
    height: 140px;
    bottom: -30px;
    left: -30px;
  }
}
