/* Блок "Наши услуги": плитки с фото, подпись и кнопка при наведении */
.svc { padding: 48px 0 56px; }
.svc-inner { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 15px; box-sizing: border-box; }
.svc-h {
  display: block;
  width: 100%;
  margin: 0 auto 36px;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #1c2733;
}
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.svc-card {
  position: relative;
  display: block;
  aspect-ratio: 9 / 8;
  overflow: hidden;
  background: #1c2733;
  color: #fff;
  text-decoration: none;
}
.svc-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 18, 26, .06);
  transition: background .3s ease;
}
.svc-card:hover img { transform: scale(1.04); }
.svc-card:hover::before, .svc-card:focus-visible::before { background: rgba(10, 18, 26, .58); }

.svc-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.svc-card:hover .svc-body, .svc-card:focus-visible .svc-body { opacity: 1; }
.svc-title { font-size: 26px; font-weight: 300; line-height: 1.2; }
.svc-sub { max-width: 280px; font-size: 14px; line-height: 1.4; font-weight: 300; opacity: .9; }
.svc-more {
  margin-top: 6px;
  padding: 10px 26px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease, color .2s ease;
}
.svc-card:hover .svc-more, .svc-card:focus-visible .svc-more { opacity: 1; transform: none; }
.svc-more:hover { background: #fff; color: #1c2733; }

@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .svc-h { font-size: 28px; }
}
@media (max-width: 560px) {
  .svc { padding: 32px 0 40px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-card { aspect-ratio: 16 / 10; }
  .svc-h { font-size: 24px; margin-bottom: 24px; }
  .svc-title { font-size: 22px; }
}
/* на устройствах без наведения кнопка видна всегда */
/* на устройствах без наведения подписи видны всегда, иначе плитки были бы пустыми */
@media (hover: none) {
  .svc-body { opacity: 1; }
  .svc-card::before { background: rgba(10, 18, 26, .45); }
  .svc-more { opacity: 1; transform: none; }
}
