/* --- SERVICES PAGE STYLES --- */

/* Hero Section */
.services-hero {
  padding: 60px 0 40px;
  background: radial-gradient(circle at top right, rgba(229, 180, 92, 0.1), transparent 40%);
}

/* --- Core Services (Premium Look) --- */
.core-services-section {
  padding: 40px 0 60px;
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.core-card {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent);
  padding: 24px;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.core-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.core-icon {
  font-size: 32px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.core-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}

.core-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Tech Services (Cyberpunk/Architecture Look) --- */
.tech-services-section {
  padding: 60px 0 80px;
  background: #000;
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

/* Сетка "Blueprint" на фоне */
.tech-services-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.tech-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.tech-badge {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  letter-spacing: 1px;
  background: rgba(229, 180, 92, 0.1);
  box-shadow: 0 0 10px rgba(229, 180, 92, 0.1);
}

.tech-cluster {
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

.cluster-title {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--accent-soft);
  margin-bottom: 20px;
  opacity: 0.8;
  letter-spacing: 2px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* --- TECH CARD ANIMATION: System Activation --- */
.tech-card {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid #333;
  padding: 16px;
  border-radius: 4px; /* Более квадратные углы для "техно" */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Линия сканирования сверху */
.tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tech-card:hover {
  border-color: #555;
  background: #111;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

/* Активация линии при наведении */
.tech-card:hover::before {
  transform: scaleX(1);
}

.tech-head {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
  transition: color 0.3s;
}

/* Номер загорается белым */
.tech-card:hover .tech-head {
  color: #fff;
  text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.tech-card h4 {
  font-size: 15px;
  color: #eee;
  margin-bottom: 6px;
  font-weight: 600;
  transition: color 0.3s;
}

.tech-card:hover h4 {
  color: var(--accent-soft);
}

.tech-card p {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

/* Сетка для WhatsApp кнопок */
.wa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .core-card {
    padding: 20px;
  }
}