/* Главная: список сервисов. Общая часть — в /shared/styles.css. */

.intro { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px 0; }
.intro h1 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; }

.services { display: flex; flex-direction: column; gap: 12px; }

/* Ссылка на историю — тише карточек: заходят туда изредка */
.history-link { text-decoration: none; }

/* Карточка-ссылка: вся плашка целиком — попадание пальцем, а не только текст */
.service {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.service:active { background: var(--accent); transform: scale(.99); }
@media (hover: hover) {
  .service:hover { background: color-mix(in oklch, var(--accent) 60%, var(--card)); border-color: var(--input); }
}
.service:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 50%, transparent); }

/* Ещё не сделанный сервис: та же карточка, но приглушённая и без нажатия */
.service-soon { opacity: .55; }
.service-soon:active { background: var(--card); transform: none; }
@media (hover: hover) {
  .service-soon:hover { background: var(--card); border-color: var(--border); }
}

.service-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.service-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.service-desc { font-size: 13px; line-height: 18px; color: var(--muted-foreground); }
.service-go { font-size: 18px; color: var(--muted-foreground); }

/* Десктоп: карточки в две колонки, чтобы список не растягивался в столбик */
@media (min-width: 900px) {
  :root { --content-w: 820px; }
  .main { padding: 32px 24px; }
  .wrap { max-width: 820px; }
  .services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Страница, которой нет ─────────────────────────────────────────────── */
.notfound { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.notfound-code {
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: color-mix(in oklch, var(--primary) 55%, transparent);
}
.notfound h1 { margin: 4px 0 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; }
.notfound-joke { margin: 0 0 8px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.notfound .btn { max-width: 260px; text-decoration: none; }
