.services {
  padding: 6.5rem 0 6rem;
  background-color: #050505;
}

.services__header {
  max-width: 56rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.services__title {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.services__title span {
  color: var(--accent);
}

.services__subtitle {
  margin: 0;
  color: #97a1b5;
  font-size: 1.16rem;
  line-height: 1.75;
}

.services__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 18.8rem));
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card {
  min-height: 20.5rem;
  padding: 2rem 1.75rem 1.55rem;
  background: #101317;
  border: 1px solid rgba(255, 255, 255, 0.045);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-0.45rem);
  border-color: rgba(212, 175, 79, 0.55);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.24);
  background: #14181d;
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.55rem;
  color: var(--accent);
}

.service-card__icon svg {
  width: 2rem;
  height: 2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.service-card__title {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 800;
}

.service-card__text {
  margin: 0;
  color: #94a0b3;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card__divider {
  width: 100%;
  height: 1px;
  margin: 1.55rem 0 1.25rem;
  background-color: rgba(255, 255, 255, 0.04);
  transition: background-color 0.35s ease;
}

.service-card:hover .service-card__divider,
.service-card:focus-within .service-card__divider {
  background-color: rgba(212, 175, 79, 0.14);
}

.service-card__price {
  margin: 0;
  color: var(--accent);
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 500;
}

.services__note {
  margin: 3.1rem 0 0;
  text-align: center;
  color: #7f8aa0;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 96rem) {
  .services {
    padding: 6rem 0;
  }

  .services__header {
    margin-bottom: 3.5rem;
  }

  .services__list {
    gap: 1.25rem;
  }

  .service-card {
    padding: 2.2rem 1.8rem 1.9rem;
  }
}

@media (max-width: 75rem) {
  .services__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 22rem;
  }
}

@media (max-width: 48rem) {
  .services {
    padding: 4.5rem 0;
  }

  .services__header {
    margin-bottom: 2.5rem;
  }

  .services__title {
    margin-bottom: 1rem;
    font-size: clamp(1.95rem, 7vw, 2.9rem);
  }

  .services__subtitle {
    font-size: 1.02rem;
    line-height: 1.68;
  }

  .services__list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Горизонтальний layout: іконка зліва, контент справа */
  .service-card {
    display: grid;
    grid-template-columns: 2.6rem 1fr;
    grid-template-rows: auto auto auto auto;
    column-gap: 1rem;
    row-gap: 0;
    min-height: auto;
    padding: 1.2rem 1.1rem;
  }

  .service-card__icon {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: start;
    margin-top: 0.1rem;
    margin-bottom: 0;
    width: 2.6rem;
    height: 2.6rem;
  }

  .service-card__icon svg {
    width: 1.55rem;
    height: 1.55rem;
  }

  .service-card__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 1rem;
    margin-bottom: 0.45rem;
  }

  .service-card__text {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .service-card__divider {
    grid-column: 2;
    grid-row: 3;
    margin: 0.8rem 0 0.6rem;
  }

  .service-card__price {
    grid-column: 2;
    grid-row: 4;
    font-size: 1rem;
  }

  .services__note {
    margin-top: 2.5rem;
    font-size: 0.92rem;
  }
}