.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-dark);
}

.hero__track {
  position: relative;
  height: clamp(320px, 46vw, 560px);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
  display: flex;
  align-items: center;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__slide:nth-child(1) {
  background: linear-gradient(115deg, #22303d 0%, #2c4a63 55%, #35708f 100%);
}

.hero__slide:nth-child(2) {
  background: linear-gradient(115deg, #1f2c38 0%, #2b5568 55%, #3a7d80 100%);
}

.hero__slide:nth-child(3) {
  background: linear-gradient(115deg, #232c3a 0%, #33415c 55%, #4a6383 100%);
}

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.82);
}

.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    102deg,
    rgba(14, 24, 34, 0.94) 0%,
    rgba(22, 40, 56, 0.82) 44%,
    rgba(28, 56, 76, 0.4) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: 660px;
  color: #fff;
}

.hero__tag {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  letter-spacing: 2px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.86);
}

.hero__title {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.28;
  color: #fff;
  letter-spacing: 1px;
}

.hero__desc {
  margin-top: 18px;
  font-size: clamp(14px, 1.1vw, 17px);
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero__dots button {
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}

.hero__dots button.is-active {
  width: 44px;
  background: #fff;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.25s var(--ease);
}

.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero__arrow--prev {
  left: 26px;
}

.hero__arrow--next {
  right: 26px;
}

.hero__arrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.hero__arrow--prev::before {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.hero__arrow--next::before {
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .hero__arrow {
      display: none;
  }

  .hero__track {
      height: clamp(300px, 78vw, 420px);
  }

  .hero__dots {
      bottom: 20px;
  }
}

.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: -46px;
  position: relative;
  z-index: 5;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.quick-nav__item {
  padding: 26px 22px;
  border-right: 1px solid var(--c-line);
  transition: background 0.25s var(--ease);
}

.quick-nav__item:last-child {
  border-right: 0;
}

.quick-nav__item:hover {
  background: var(--c-primary-soft);
}

.quick-nav__item svg {
  width: 26px;
  height: 26px;
  color: var(--c-primary);
  margin-bottom: 12px;
}

.quick-nav__item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.quick-nav__item p {
  font-size: 13px;
  color: var(--c-muted);
}

@media (max-width: 900px) {
  .quick-nav {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin-top: -30px;
  }

  .quick-nav__item {
      border-bottom: 1px solid var(--c-line);
  }

  .quick-nav__item:nth-child(2n) {
      border-right: 0;
  }

  .quick-nav__item:nth-last-child(-n + 2) {
      border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .quick-nav {
      grid-template-columns: minmax(0, 1fr);
      margin: 0 -20px;
      border-radius: 0;
      box-shadow: none;
  }

  .quick-nav__item {
      border-right: 0;
      padding: 20px 18px;
  }

  .quick-nav__item:nth-last-child(-n + 2) {
      border-bottom: 1px solid var(--c-line);
  }

  .quick-nav__item:last-child {
      border-bottom: 0;
  }
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.cat-tabs button {
  padding: 9px 22px;
  font-size: 14px;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 22px;
  transition: all 0.22s var(--ease);
}

.cat-tabs button:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.cat-tabs button.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.cat-tabs button [data-cat-count] {
  font-family: var(--font-num);
  font-size: 12px;
  opacity: 0.72;
}

.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

@media (max-width: 640px) {
  .sol-grid {
      grid-template-columns: minmax(0, 1fr);
  }
}
