:root {
  --navy: #09133a;
  --navy-deep: #060c27;
  --cyan: #15b7d7;
  --white: #ffffff;
  --page: #f5f6f8;
  --shell: min(1120px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #fff;
  background: var(--page);
  font-family: Aptos, Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--navy);
  background: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  height: 72px;
  background: var(--navy-deep);
}

.header-inner,
.footer-inner {
  display: flex;
  width: var(--shell);
  height: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: block;
  height: 52px;
}

.brand img {
  display: block;
  width: auto;
  height: 52px;
}

.parent-site {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.parent-site svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.parent-site:hover,
.parent-site:focus-visible {
  color: white;
}

.title-banner {
  position: relative;
  display: grid;
  height: 236px;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 13% 140%, rgba(159, 61, 217, 0.8), transparent 34%),
    radial-gradient(circle at 87% -25%, rgba(16, 201, 230, 0.7), transparent 35%),
    linear-gradient(118deg, #10215b 0%, #364eb6 48%, #126f9e 100%);
}

.title-banner::before,
.title-banner::after {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border: 48px solid rgba(255, 255, 255, 0.055);
  border-radius: 45% 55% 48% 52%;
  content: "";
  transform: rotate(28deg);
}

.title-banner::before {
  top: -290px;
  left: 9%;
}

.title-banner::after {
  right: 5%;
  bottom: -330px;
  transform: rotate(-18deg);
}

.title-banner h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.65rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 4px 20px rgba(5, 12, 39, 0.22);
}

.sound-lines {
  position: absolute;
  inset: auto -4% 38%;
  z-index: -1;
  opacity: 0.22;
  transform: rotate(-4deg);
}

.sound-lines span {
  display: block;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.catalog-section {
  min-height: 500px;
  padding: 56px 0 90px;
  color: #111a3d;
}

.catalog-shell {
  width: var(--shell);
  margin-inline: auto;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  align-items: stretch;
}

.app-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 16px;
  color: white;
  background: #182054;
  box-shadow: 0 12px 34px rgba(19, 30, 72, 0.16);
  text-decoration: none;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  box-shadow: 0 22px 52px rgba(19, 30, 72, 0.25);
  transform: translateY(-7px);
}

.app-card:focus-visible {
  outline: 4px solid rgba(21, 183, 215, 0.55);
  outline-offset: 4px;
}

.app-image-wrap {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: #05091c;
}

.app-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.app-card:hover .app-image {
  transform: scale(1.025);
}

.access-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: white;
  background: rgba(4, 9, 29, 0.72);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.app-content {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 265px;
  padding: 28px 30px 30px;
}

.app-card--theme-1 .app-content {
  background: linear-gradient(135deg, #6f2fbd 0%, #9634ad 48%, #c22e91 100%);
}

.app-card--theme-2 .app-content {
  background: linear-gradient(135deg, #087b96 0%, #086b91 48%, #254c9b 100%);
}

.app-card--theme-3 .app-content {
  background: linear-gradient(135deg, #9b4b16 0%, #ba5e19 48%, #c98b16 100%);
}

.app-card--theme-4 .app-content {
  background: linear-gradient(135deg, #314285 0%, #533e9e 48%, #783f96 100%);
}

.app-category {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-content h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.app-description {
  max-width: 520px;
  margin: 13px 0 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.97rem;
  line-height: 1.55;
}

.app-action {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 10px 15px;
  border-radius: 999px;
  color: #15204b;
  background: white;
  font-size: 0.78rem;
  font-weight: 850;
}

.app-action svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 160ms ease;
}

.catalog-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border-radius: 14px;
  color: #4f5879;
  background: #fff;
  box-shadow: 0 12px 34px rgba(19, 30, 72, 0.09);
  text-align: center;
}

.app-card:hover .app-action svg {
  transform: translateX(3px);
}

.site-footer {
  height: 82px;
  background: var(--navy-deep);
}

.footer-inner img {
  width: auto;
  height: 42px;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
}

@media (max-width: 1023px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .site-header {
    height: 64px;
  }

  .brand,
  .brand img {
    height: 44px;
  }

  .parent-site {
    width: 34px;
    height: 34px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    font-size: 0;
  }

  .parent-site svg {
    width: 17px;
  }

  .title-banner {
    height: 190px;
  }

  .title-banner h1 {
    max-width: 320px;
    font-size: 2.35rem;
  }

  .catalog-section {
    padding: 28px 0 58px;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .app-card {
    border-radius: 13px;
  }

  .access-badge {
    top: 11px;
    right: 11px;
  }

  .app-content {
    min-height: 0;
    padding: 23px 22px 24px;
  }

  .app-description {
    font-size: 0.91rem;
  }

  .site-footer {
    height: 72px;
  }

  .footer-inner img {
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
