/* ============================================================
   V4 · CASES — примеры работ + услуги ремонта (прайс-лист)
   ============================================================ */

/* ---- Cases grid ---- */
.v4-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.v4-case { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: all 0.15s; }
.v4-case:hover { border-color: var(--ink-400); box-shadow: 0 8px 24px rgba(0,0,0,0.05); transform: translateY(-2px); }
.v4-case-img { position: relative; aspect-ratio: 16/10; background: var(--ink-100); overflow: hidden; }
.v4-case-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.v4-case:hover .v4-case-img img { transform: scale(1.04); }
.v4-case-tag { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 10px; background: var(--ink-900); color: #fff; padding: 4px 8px; border-radius: 4px; letter-spacing: 0.12em; z-index: 1; }
.v4-case-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.v4-case-car { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); letter-spacing: 0.06em; text-transform: uppercase; }
.v4-case-work { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; color: var(--ink-900); line-height: 1.25; margin-bottom: 12px; text-wrap: balance; }
.v4-case-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.v4-case-meta span { display: flex; flex-direction: column-reverse; gap: 2px; }
.v4-case-meta b { font-family: var(--font-display); font-size: 14px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink-900); }
.v4-case-meta i { font-family: var(--font-mono); font-style: normal; font-size: 9.5px; color: var(--ink-500); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- Service list (price rows) ---- */
.v4-svc-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.v4-svc { display: grid; grid-template-columns: 56px 60px 1fr 140px 36px; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: inherit; transition: background 0.12s; }
.v4-svc:last-child { border-bottom: 0; }
.v4-svc:hover { background: var(--ink-100); }
.v4-svc-n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.16em; font-weight: 600; }
.v4-svc-ico { width: 60px; height: 44px; background: var(--ink-100); border-radius: 8px; display: grid; place-items: center; overflow: hidden; padding: 0; }
.v4-svc-ico svg { width: 100%; height: 100%; padding: 4px; }
.v4-svc-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v4-svc-text { min-width: 0; }
.v4-svc-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.015em; color: var(--ink-900); line-height: 1.25; margin-bottom: 3px; }
.v4-svc-desc { font-size: 12.5px; color: var(--ink-500); line-height: 1.4; }
.v4-svc-time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-600); letter-spacing: 0.04em; text-align: right; }
.v4-svc-price { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink-900); text-align: right; }
.v4-svc-arrow { width: 36px; height: 36px; border-radius: 50%; background: var(--ink-100); color: var(--ink-700); display: grid; place-items: center; transition: all 0.15s; }
.v4-svc:hover .v4-svc-arrow { background: var(--accent); color: #fff; transform: translateX(2px); }

/* ============ Mobile ============ */
@media (max-width: 760px) {
  .v4-cases { grid-template-columns: 1fr 1fr; gap: 10px; }
  .v4-case-body { padding: 12px 14px 14px; }
  .v4-case-tag { font-size: 9px; padding: 3px 6px; top: 8px; left: 8px; }
  .v4-case-car { font-size: 10px; }
  .v4-case-work { font-size: 14px; margin-bottom: 8px; }
  .v4-case-meta { gap: 2px; padding-top: 8px; }
  .v4-case-meta b { font-size: 12.5px; }
  .v4-case-meta i { font-size: 8.5px; }

  .v4-svc {
    grid-template-columns: 44px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    padding: 14px 14px;
  }
  .v4-svc-n { grid-column: 1; grid-row: 1 / 3; align-self: start; padding-top: 4px; font-size: 10px; }
  .v4-svc-ico { display: none; }
  .v4-svc-text { grid-column: 2; grid-row: 1; }
  .v4-svc-title { font-size: 14px; }
  .v4-svc-desc { font-size: 11.5px; }
  .v4-svc-time { grid-column: 2; grid-row: 2; text-align: left; font-size: 11px; color: var(--ink-500); }
  .v4-svc-time::before { content: '· '; }
  .v4-svc-price { grid-column: 3; grid-row: 1 / 3; font-size: 15px; align-self: center; white-space: nowrap; }
  .v4-svc-arrow { display: none; }
  /* перетасуем: цена справа сверху, время под title */
  .v4-svc-time { order: 3; }
}

@media (max-width: 460px) {
  .v4-cases { grid-template-columns: 1fr; }
}
