/* ===== Настройки стиля: те же цвета, что и в галерее (pint/styles.css) ===== */
:root {
  --bg: #0e0d10;          /* фон страницы */
  --card: #1a181d;        /* фон карточек */
  --card-hover: #211e25;  /* фон карточки при наведении */
  --text: #d9d4dd;        /* основной текст */
  --muted: #8f8896;       /* второстепенный текст */
  --accent: #b0163a;      /* акцент */
  --radius: 10px;         /* скругление углов */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(176, 22, 58, 0.12), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Заголовок — как в галерее */
h1 {
  margin: 48px 0 12px;
  text-align: center;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.25em;
  text-transform: lowercase;
}
h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--accent);
}

.tagline {
  margin: 0 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* Карточки-ссылки */
.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 190px;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  outline: 2px solid transparent;
  transition: outline-color 0.25s, background-color 0.25s, transform 0.25s;
}
.card:hover,
.card:focus-visible {
  outline-color: var(--accent);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.card__path {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.card__icon {
  width: 28px;
  height: 28px;
  margin: 18px 0 14px;
  color: var(--text);
  opacity: 0.85;
}

.card__title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
}

.card__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.card__arrow {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--muted);
  transition: transform 0.25s, color 0.25s;
}
.card:hover .card__arrow,
.card:focus-visible .card__arrow {
  color: var(--accent);
  transform: translateX(3px);
}

footer {
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}
footer a { color: var(--text); }

/* На телефоне карточки идут в столбик, лишняя высота не нужна */
@media (max-width: 540px) {
  h1 { margin-top: 24px; }
  .card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card__arrow { transition: none; }
  .card:hover, .card:focus-visible { transform: none; }
}
