/* Карточка — базовое состояние */
.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding: 48px 40px;
  background: #ede8de;
  transition: color 0.4s ease;
}

/* Псевдоэлемент — чёрная заливка, скрытая внизу */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;                /* растягивает на весь блок */
  background: #1a1714;
  transform: translateY(100%);  /* прячем вниз */
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
  z-index: 0;
}

/* При наведении — заливка едет вверх */
.service-card:hover::before {
  transform: translateY(0);
}

/* Текст поверх заливки */
.service-num,
.service-name,
.service-desc {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.service-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #8a7d6e;
  margin-bottom: 32px;
  display: block;
}

.service-line {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 1px;
  background: #8a7d6e;
  margin-bottom: 24px;
  transition: background 0.4s ease;
}

.service-name {
  font-size: 18px;
  font-weight: 500;
  color: #1a1714;
  margin-bottom: 16px;
  display: block;
}

.service-desc {
  font-size: 15px;
  font-weight: 300;
  color: #8a7d6e;
  line-height: 1.7;
  display: block;
}

/* Цвет текста меняется при наведении */
.service-card:hover .service-num,
.service-card:hover .service-name,
.service-card:hover .service-desc {
  color: #f5f0e8;
}

.service-card:hover .service-line {
  background: #d4502a;   /* акцентный цвет — полоска */
}