﻿.rse-highlights {
  background: #f4f4f4;
  padding: 58px 0 64px;
}

.rse-highlights__inner {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.rse-highlights__title {
  margin: 0 0 24px;
  color: #303030;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.rse-highlights__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 28px;
}

.rse-highlights__tab {
  display: inline-flex;
  align-items: center;
  border: 0;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 18px;
  background: transparent;
  color: #7e7e7e;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: default;
}

.rse-highlights__tab:hover,
.rse-highlights__tab.is-active {
  background: #ffffff;
  color: #111827;
}

.rse-highlights__grid {
  display: grid;
  grid-template-columns: 2.05fr 1fr 1fr;
  grid-auto-rows: 302px;
  gap: 22px;
}

.rse-highlight-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #1f2933;
  color: #ffffff;
  text-decoration: none;
  cursor: default;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.rse-highlight-card--hero {
  grid-row: span 2;
}

.rse-highlight-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rse-highlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 38%, rgba(0, 0, 0, 0.58) 100%);
}

.rse-highlight-card__content {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 14px;
}

.rse-highlight-card__content strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.rse-highlight-card__content span {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 20px;
  background: #ed1c24;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 991px) {
  .rse-highlights {
    padding: 44px 0 50px;
  }

  .rse-highlights__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 260px;
  }

  .rse-highlight-card--hero {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .rse-highlights__inner {
    width: min(100% - 24px, 1320px);
  }

  .rse-highlights__title {
    font-size: 24px;
  }

  .rse-highlights__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .rse-highlights__tab {
    white-space: nowrap;
  }

  .rse-highlights__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 248px;
    gap: 16px;
  }

  .rse-highlight-card--hero {
    grid-column: auto;
  }

  .rse-highlight-card__content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .rse-highlight-card__content strong {
    font-size: 14px;
  }
}


