:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  color: #f4fbfd;
  background: #030b12;
  --academy-ink: #030b12;
  --academy-surface: #071923;
  --academy-surface-strong: #0a202b;
  --academy-cyan: #66dff2;
  --academy-gold: #f0cf8a;
  --academy-muted: #a8bbc2;
  --academy-card-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--academy-ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #f4fbfd;
  background-color: var(--academy-ink);
  background-image: linear-gradient(180deg, #071c29 0%, #04121b 46%, #030b12 100%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: #031018;
  background: #eefcff;
  border: 2px solid var(--academy-cyan);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
  outline: 3px solid var(--academy-gold);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.simple-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 14px;
  display: flex;
  align-items: center;
}

.card-list {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.catalog-card {
  min-width: 0;
  min-height: 148px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  color: #f4fbfd;
  background: var(--academy-surface);
  border: 1px solid rgba(126, 234, 255, 0.22);
  border-radius: var(--academy-card-radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  text-decoration: none;
}

.catalog-card--active {
  color: #ffffff;
  background: linear-gradient(180deg, #0b2733 0%, #071b25 100%);
  border-color: rgba(102, 223, 242, 0.68);
  border-top-color: rgba(240, 207, 138, 0.88);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.catalog-card--active:focus-visible {
  border-color: var(--academy-gold);
  outline: 3px solid var(--academy-cyan);
  outline-offset: 4px;
  box-shadow: 0 0 0 1px rgba(240, 207, 138, 0.5), 0 0 24px rgba(52, 215, 255, 0.2);
}

.catalog-card--inactive {
  color: #b9c5c9;
  background: #07151d;
  border-color: rgba(147, 167, 174, 0.2);
  border-top-color: rgba(240, 207, 138, 0.28);
}

.card-status {
  margin: 0;
  color: var(--academy-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-status--active {
  color: var(--academy-gold);
}

.catalog-card h2 {
  max-width: 22ch;
  margin: 0;
  overflow-wrap: anywhere;
  color: inherit;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .catalog-card {
    background-color: rgba(6, 23, 32, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .catalog-card--active {
    background: linear-gradient(180deg, rgba(10, 42, 55, 0.94), rgba(5, 24, 34, 0.94));
  }
}

@media (min-width: 760px) {
  body {
    background-image:
      linear-gradient(90deg, rgba(1, 8, 13, 0.82) 0%, rgba(4, 20, 30, 0.12) 25%, rgba(4, 20, 30, 0.12) 75%, rgba(1, 8, 13, 0.82) 100%),
      linear-gradient(180deg, #082333 0%, #04131d 48%, #02080d 100%);
  }

  .simple-shell {
    padding: 64px 38px;
  }

  .simple-shell::before {
    content: '';
    position: absolute;
    inset: 28px 18px;
    border: 1px solid rgba(102, 223, 242, 0.24);
    border-top-color: rgba(240, 207, 138, 0.42);
    border-radius: 12px;
    box-shadow: inset 0 0 42px rgba(18, 97, 116, 0.08), 0 0 34px rgba(23, 166, 197, 0.08);
    pointer-events: none;
  }

  .card-list {
    flex-direction: row;
    gap: 18px;
  }

  .catalog-card {
    flex: 1 1 0;
    min-height: 224px;
    padding: 26px;
    gap: 38px;
  }

  .catalog-card h2 {
    font-size: 24px;
  }
}

@media (min-width: 1100px) {
  .simple-shell {
    padding-right: 60px;
    padding-left: 60px;
  }

  .simple-shell::before {
    inset: 24px;
  }

  .card-list {
    gap: 22px;
  }

  .catalog-card {
    min-height: 252px;
    padding: 30px;
  }
}

@supports (display: grid) {
  .card-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  @media (min-width: 760px) {
    .card-list {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

@media (hover: hover) and (pointer: fine) {
  .catalog-card--active:hover {
    border-color: rgba(240, 207, 138, 0.82);
    background-color: var(--academy-surface-strong);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32), 0 0 24px rgba(52, 215, 255, 0.18);
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-card--active {
    transition: none;
  }

  .catalog-card--active:hover {
    transform: none;
  }
}
