:root {
  --bg: #edf6ff;
  --bg-2: #deecfb;
  --bg-3: #d4e6fa;
  --panel: #f7fbff;
  --panel-soft: #edf5ff;
  --shell: #e8f2ff;
  --shell-2: #dcecff;
  --line: rgba(104, 156, 221, 0.22);
  --line-strong: rgba(86, 142, 214, 0.34);
  --text: #12314d;
  --muted: #607b94;
  --blue: #2b78ff;
  --blue-soft: #69b8ff;
  --blue-ice: #e6f3ff;
  --blue-deep: #214c86;
  --shadow: 0 16px 34px rgba(49, 90, 142, 0.10);
  --shadow-soft: 0 10px 24px rgba(43, 120, 255, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 0% 0%, rgba(43, 120, 255, 0.12), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(105, 184, 255, 0.14), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(43, 120, 255, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 46%, var(--bg-3) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(43, 120, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 120, 255, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.site-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero,
.catalog-shell {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 120, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,250,255,0.92)),
    linear-gradient(180deg, #eff6ff 0%, #e5f1ff 100%);
  padding: 18px;
}

.hero__visual {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--shadow-soft);
}

.hero__banner {
  width: 100%;
  display: block;
}

.catalog-shell {
  margin-top: 16px;
  padding: 0 20px 18px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 120, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.90), rgba(245,250,255,0.92)),
    linear-gradient(180deg, var(--shell) 0%, var(--shell-2) 100%);
}

.catalog-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(43, 120, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 120, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
}

.toolbar {
  position: relative;
  z-index: 1;
  padding: 16px 0 14px;
}

.toolbar__kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-soft));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(43, 120, 255, 0.16);
}

.toolbar__title {
  margin: 10px 0 0;
  font-size: 26px;
  line-height: 1.15;
  color: #173455;
}

.toolbar__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(86, 142, 214, 0.22);
}

.filter-chip {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fe 100%);
  color: #3d5c7b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(43, 120, 255, 0.04);
}

.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-soft));
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(43, 120, 255, 0.18);
}

.software-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
}

.list-head,
.software-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
}

.list-head {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-strong);
  color: #4b6480;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.list-head__cell--index {
  text-align: center;
}

.list-head__cell--actions {
  justify-self: end;
}

.software-row {
  padding: 18px 0;
  border-bottom: 1px solid rgba(86, 142, 214, 0.16);
  background: linear-gradient(90deg, rgba(43, 120, 255, 0.04), rgba(255,255,255,0) 36%);
}

.software-row:nth-child(even) {
  background: linear-gradient(90deg, rgba(105, 184, 255, 0.08), rgba(255,255,255,0) 44%);
}

.software-row__index {
  width: 60px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-deep), #4c84c9);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(43, 120, 255, 0.12);
}

.software-row__main {
  min-width: 0;
}

.software-row__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.software-row__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #173455;
}

.software-row__tag {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  background: var(--blue-ice);
  border: 1px solid #cfe0ff;
  color: #2c5c99;
  font-size: 12px;
  font-weight: 700;
}

.software-row__desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.software-row__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-soft));
  box-shadow: 0 10px 20px rgba(43, 120, 255, 0.14);
}

.button--ghost {
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  border-color: var(--line-strong);
}

.support-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
  padding: 16px 0 0;
}

.support-bar__item {
  padding: 14px 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #eef4fa 100%);
  border: 1px solid var(--line);
}

.support-bar__item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #1b3a59;
}

.support-bar__item span {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .support-bar {
    grid-template-columns: 1fr;
  }

  .list-head,
  .software-row {
    grid-template-columns: 60px 1fr;
  }

  .list-head__cell--actions {
    display: none;
  }

  .software-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 78px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(var(--max), calc(100% - 20px));
    padding: 18px 0 36px;
  }

  .hero,
  .catalog-shell {
    padding: 16px;
  }

  .toolbar {
    padding: 0 0 16px;
  }

  .support-bar {
    padding: 16px 0 0;
  }

  .toolbar__title {
    font-size: 24px;
  }

  .hero__banner {
    min-height: 160px;
    object-fit: cover;
  }

  .list-head {
    display: none;
  }

  .software-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .software-row__actions {
    padding-left: 0;
  }
}
