/* ==========================================================================
   СТИЛІ ПОСЛУГ (css/services.css) - $1M TECH-BRUTALISM
   Компанія: APFEL GROUP
   ========================================================================== */

.services-brutal {
  position: relative;
  background-color: #05080A; 
  padding: 120px 0;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

.relative-z { position: relative; z-index: 10; }

/* --- ЗАГОЛОВОК --- */
.services-brutal__header {
  text-align: center; max-width: 900px; margin: 0 auto 60px auto;
  display: flex; flex-direction: column; align-items: center;
}

.services-brutal__title {
  font-size: clamp(3rem, 5vw, 5rem); font-weight: 900; line-height: 1.1;
  color: #F8FAFC; letter-spacing: -0.04em; margin: 0 0 20px 0; text-transform: uppercase;
}

.services-brutal__subtitle {
  font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.6;
  color: #94A3B8; max-width: 650px; font-weight: 400; margin: 0;
}

/* ==========================================================================
   СІТКА МОДУЛІВ
   ========================================================================== */
.services-brutal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px; margin-bottom: 60px;
}

/* ==========================================================================
   МОДУЛЬ ПОСЛУГИ (TECH-CARD)
   ========================================================================== */
.service-tech-card {
  position: relative;
  background: rgba(10, 13, 20, 0.65);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1); padding: 25px;
  display: flex; flex-direction: column; gap: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  height: 100%;
}

.service-tech-card:hover {
  transform: translateY(-5px); border-color: rgba(99, 175, 56, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 175, 56, 0.2) inset;
}

/* Шапка картки */
.service-tech-card__header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15); padding-bottom: 15px;
}

/* Візуал */
.service-tech-card__visual {
  position: relative; width: 100%; height: 220px; /* Фіксована висота для послуг */
  overflow: hidden; background: #000; display: block;
}

.service-tech-card__visual img, .placeholder-bg {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(80%) contrast(1.2); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-tech-card:hover .service-tech-card__visual img {
  filter: grayscale(0%) contrast(1.1); transform: scale(1.05);
}

/* Дані та Текст */
.service-tech-card__data { 
  display: flex; flex-direction: column; gap: 15px; flex-grow: 1; 
}

.service-tech-title {
  font-size: 1.35rem; font-weight: 800; color: #F8FAFC;
  line-height: 1.3; margin: 0; text-transform: uppercase; transition: color 0.3s ease;
}

.service-tech-card:hover .service-tech-title { color: var(--primary-green); }

.service-tech-excerpt {
  font-size: 0.9rem; color: #94A3B8; line-height: 1.6;
}

.mt-auto { margin-top: auto; }

/* --- АДАПТИВНІСТЬ --- */
@media screen and (max-width: 1200px) {
  .services-brutal__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media screen and (max-width: 768px) {
  .services-brutal { padding: 80px 0; }
  .services-brutal__title { font-size: 2.8rem; }
  .services-brutal__grid { grid-template-columns: 1fr; }
  .service-tech-card { padding: 20px; }
}