/* ===== Услуги ===== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 28px; min-height: 230px; border-radius: var(--r);
  background: var(--brand-50); text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.svc:hover { background: #fff; transform: translateY(-4px); box-shadow: var(--shadow); }
.svc__icon {
  width: 60px; height: 60px; border-radius: 18px; flex: none;
  display: grid; place-items: center; background: #fff; color: var(--brand);
  transition: background .25s, color .25s;
}
.svc:hover .svc__icon { background: var(--brand); color: #fff; }
.svc__icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.svc__body { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.svc__title { font-weight: 700; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.svc__text { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.svc__arrow {
  position: absolute; top: 28px; right: 28px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--ink-2);
  transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.svc:hover .svc__arrow { background: var(--coral); border-color: var(--coral); color: #fff; transform: rotate(-45deg); }

/* Карточка-приглашение закрывает последнюю ячейку сетки */
.svc--cta { background: var(--butter); justify-content: space-between; }
.svc--cta:hover { background: #FFDD7A; }
.svc--cta .svc__body { margin-top: 0; }
.svc--cta .svc__text { color: var(--brand-900); opacity: .8; }
.svc--cta .btn { align-self: flex-start; }

/* Главная карточка — на две строки, тёмная */
.svc--wide { grid-row: span 2; background: var(--brand); color: #fff; min-height: 476px; overflow: hidden; }
.svc--wide::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 229, 154, .55), transparent 70%);
}
.svc--wide:hover { background: var(--brand-600); }
.svc--wide .svc__icon { background: rgba(255, 255, 255, .14); color: #fff; width: 76px; height: 76px; }
.svc--wide .svc__icon svg { width: 44px; height: 44px; }
.svc--wide:hover .svc__icon { background: var(--butter); color: var(--brand-900); }
.svc--wide .svc__title { font-size: clamp(28px, 2.6vw, 36px); }
.svc--wide .svc__text { color: rgba(255, 255, 255, .8); font-size: 17px; max-width: 22em; position: relative; z-index: 1; }
.svc--wide .svc__arrow { border-color: var(--line-light); color: #fff; }

@media (max-width: 980px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc--wide { grid-column: span 2; grid-row: auto; min-height: 280px; }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; gap: 12px; }
  .svc--wide { grid-column: auto; }
  .svc { min-height: 0; padding: 22px; flex-direction: row; align-items: center; }
  .svc__body { margin-top: 0; }
  .svc__arrow { position: static; flex: none; margin-left: auto; width: 34px; height: 34px; }
  .svc__text { display: none; }
  .svc--cta { flex-direction: column; align-items: stretch; }
  .svc--cta .svc__text { display: block; }
  .svc--cta .btn { align-self: stretch; }
  .svc--wide { flex-direction: column; align-items: flex-start; }
  .svc--wide .svc__text { display: block; }
  .svc--wide .svc__arrow { position: absolute; top: 22px; right: 22px; }
}
