body {
  margin: 0;
  background: #121212;
  font-family: "Inter", sans-serif;
  color: #fff;
}

.card-big, .card-half {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-big:hover, .card-half:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.section {  
  padding: 30px 20px;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ===== Топ карточки ===== */

.card-big {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.card-half {
  position: relative;
  width: calc(50% - 10px);
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* Градиент под текст */
.card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 55%;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
}

/* Текст блока карточек */
.card-info {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
}

.card-info h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.card-info p {
  margin: 6px 0 10px;
  font-size: 14px;
  color: #ddd;
}

.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge i { font-size: 10px; }

/* ====== Блок сообщества ====== */

.community-wrapper {
  position: relative;
}

.community-list {
  display: flex;
  gap: 15px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 0 50px;
}

.community-card {
  min-width: calc(25% - 15px);
  background: #1f1f1f;
  padding: 16px;
  border-radius: 10px;
}

.community-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.community-card p {
  font-size: 13px;
  line-height: 1.3em;
  color: #ccc;
}

/* Стрелки */
.arrow {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  cursor: pointer;
  position: absolute;
  top: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.arrow-left { left: -5px; }
.arrow-right { right: -5px; }

.arrow:hover { background: rgba(255,255,255,0.3); }

@media(max-width:800px){
  .card-half { width: 100%; }
  .community-card { min-width: 60%; }
}
  .tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    max-width: 300px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }