:root {
  --ink: #14241f;
  --muted: #4a635a;
  --paper: #f3efe6;
  --panel: #fffcf7;
  --line: #d5cfc2;
  --home: #2f6f5e;
  --menu: #b85c38;
  --docs: #3d5a80;
  --urok: #6b4f9a;
  --alice: #2a6f97;
  --sched: #c4a035;
  --week: #1f6f6a;
  --trip: #c46b2d;
  --tanks: #4f5d2f;
  --servers: #24566e;
  --igra: #3f7a2a;
  --crm: #5a6a7a;
  --shadow: 0 18px 40px rgba(20, 36, 31, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(47, 111, 94, 0.16), transparent 55%),
    radial-gradient(700px 380px at 100% 10%, rgba(196, 160, 53, 0.14), transparent 50%),
    linear-gradient(180deg, #ebe4d6 0%, var(--paper) 45%, #e7efe9 100%);
}

.page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  margin-bottom: 36px;
  animation: rise 0.55s ease both;
}

.hero__brand {
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}

.hero__lead {
  margin: 12px 0 0;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 168px;
  padding: 20px 18px 16px;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: rise 0.6s ease both;
}

.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:nth-child(5) { animation-delay: 0.2s; }

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent, var(--home));
}

.card--home { --accent: var(--home); }
.card--menu { --accent: var(--menu); }
.card--docs { --accent: var(--docs); }
.card--urok { --accent: var(--urok); }
.card--alice { --accent: var(--alice); }
.card--sched { --accent: var(--sched); }
.card--week { --accent: var(--week); }
.card--trip { --accent: var(--trip); }
.card--tanks { --accent: var(--tanks); }
.card--servers { --accent: var(--servers); }
.card--igra { --accent: var(--igra); }
.card--crm { --accent: var(--crm); }

.card:nth-child(6) { animation-delay: 0.25s; }
.card:nth-child(7) { animation-delay: 0.3s; }
.card:nth-child(8) { animation-delay: 0.35s; }
.card:nth-child(9) { animation-delay: 0.4s; }
.card:nth-child(10) { animation-delay: 0.45s; }
.card:nth-child(11) { animation-delay: 0.5s; }

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 22px 48px rgba(20, 36, 31, 0.12);
  outline: none;
}

.card__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.card__name {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.card__desc {
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
}

.card__path {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--muted) 80%, white);
  font-variant-numeric: tabular-nums;
}

.foot {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .page { padding-top: 28px; }
  .card { min-height: 148px; }
}
