.training-home-link {
  min-height: 44px;
  margin-top: 8px;
  font-size: .84rem;
}

.training-home-link.is-active {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.is-home main > :not(.training-sections, .training-home, .install-guide) {
  display: none;
}

.training-home {
  margin-bottom: 24px;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.training-home h2,
.training-home h3,
.training-home p {
  margin: 0;
}

.training-home h2 {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  margin: 0 0 clamp(18px, 2.5vw, 27px);
  font-size: clamp(1.55rem, 3.4vw, 2.65rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.training-home h2::before {
  content: "";
  flex: 0 0 clamp(23px, 4vw, 52px);
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
}

.training-home ul { margin: 0; padding: 0; list-style: none; }

.training-home li {
  display: grid;
  grid-template-columns: minmax(0, 23%) minmax(0, 1fr) auto;
  grid-template-areas: "meta title action" "meta description action";
  align-items: center;
  gap: 4px clamp(12px, 2vw, 24px);
  padding: 18px 6px;
  overflow-wrap: anywhere;
}

.training-home li + li { border-top: 1px solid var(--border); }

.training-home li:first-child {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "meta action" "title action" "description action";
  gap: 8px clamp(14px, 2.7vw, 32px);
  margin-bottom: 20px;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--border));
  border-radius: var(--radius-medium);
  background: linear-gradient(112deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), color-mix(in srgb, var(--accent) 6%, var(--surface)));
}

.training-home h3 {
  grid-area: title;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 650;
  line-height: 1.25;
}

.training-home li:first-child h3 { font-size: clamp(1.23rem, 2.5vw, 1.8rem); font-weight: 700; }
.training-home p { color: var(--muted); line-height: 1.5; }
.training-home__meta { grid-area: meta; font-size: .85rem; }
.training-home .training-home__description {
  grid-area: description;
  color: color-mix(in srgb, var(--muted) 65%, var(--text));
  font-size: clamp(.9rem, 1.45vw, 1.04rem);
}

.training-home a {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  color: var(--accent-strong);
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.training-home a:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.training-home li:first-child a { background: var(--accent); color: #241a0e; }
.training-home li:first-child a:hover { background: var(--accent-strong); }

@media (max-width: 700px) {
  .training-home li,
  .training-home li:first-child {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "meta" "title" "description";
  }

  .training-home li { padding: 14px 2px; }
  .training-home li:first-child { margin-bottom: 14px; }
  .training-home a { grid-area: auto; justify-self: start; margin-top: 5px; }
}

.training-home a:focus-visible,
.training-home-link:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

