.telegram-promo {
  padding: 55px 0 130px 0;
  background: #1c1d1f;
  position: relative;
  overflow: visible;
  margin: 25px -55px 0 -55px;
}

.telegram-promo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/main/telegram/telegram-bg.png") center/cover no-repeat;
}

.telegram-promo::after {
  content: "";
  position: absolute;
  top: -50px;
  right: 30%;
  width: 330px;
  height: 300px;
  background: url("../img/main/telegram/telegram-icon.png") center/contain
    no-repeat;
  z-index: 0;
}

.telegram-promo__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 55px;
  position: relative;
  z-index: 1;
  max-width: 1900px;
  margin: 0 auto;
}

.telegram-promo__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 85px;
}

.telegram-promo__title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  text-shadow: 0 0 60px rgba(0, 0, 0, 0.95), 0 10px 45px rgba(0, 0, 0, 0.9),
    0 0 28px rgba(0, 0, 0, 0.85);
}

.telegram-promo__link {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--color-white);
  text-decoration: underline;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s ease;
  text-transform: lowercase;
}

.telegram-promo__link:hover {
  color: var(--color-primary-hover);
}

.telegram-promo__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-gray-700);
  border-radius: 9px;
  backdrop-filter: blur(20px);
}

.telegram-promo__link-icon:hover {
  border-color: var(--color-primary-hover);
}

.telegram-promo__link:hover .telegram-promo__link-icon {
  border-color: var(--color-primary-hover);
}

.telegram-promo__content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.telegram-promo__content.active {
  cursor: grabbing;
  user-select: none;
}

.telegram-promo__content::-webkit-scrollbar {
  display: none;
}

.telegram-promo__post-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 330px;
  align-self: flex-end;
}

.telegram-promo__post-wrapper--wide {
  grid-column: span 2;
}

.telegram-promo__post {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 330px;
  flex-shrink: 0;
}

.telegram-promo__post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.telegram-promo__post:hover .telegram-promo__post-thumbnail {
  transform: scale(1.05);
}

.telegram-promo__post .telegram-promo__post-thumbnail {
  height: 470px;
}

.telegram-promo__post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.telegram-promo__play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.telegram-promo__play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.telegram-promo__post-info {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
}

.telegram-promo__category {
  display: block;
  max-width: fit-content;
  padding: 7px 15px;
  border-radius: 130px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: var(--color-white);
  line-height: var(--line-height-tight);
  background-color: rgba(195, 172, 144, 0.45);
  backdrop-filter: blur(20px);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.telegram-promo__post-main-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 13px;
  justify-content: flex-end;
}

.telegram-promo__date {
  display: block;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-normal);
  color: var(--color-secondary);
  line-height: var(--line-height-tight);
}

.telegram-promo__post-title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  line-height: var(--line-height-normal);
}

.telegram-promo__post--small {
  min-width: 300px;
  flex: 1;
}

.telegram-promo__post-wrapper--small {
  min-width: 300px;
  flex: 1;
}

.telegram-promo__link--mobile {
  display: none;
}

.telegram-promo__categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.telegram-promo__link-img {
  width: 14px;
  height: 23px;
  color: var(--color-white);
  transition: all 0.3s ease;
}

.telegram-promo__link:hover .telegram-promo__link-img {
  color: var(--color-primary-hover);
}

@media (max-width: 1700px) {
  .telegram-promo__link-img {
    width: 8px;
    height: 15px;
  }

  .telegram-promo::after {
    top: -20px;
    right: 30%;
    width: 230px;
    height: 200px;
  }

  .telegram-promo {
    margin: 0 -40px;
  }

  .telegram-promo__container {
    gap: 35px;
    padding: 0 40px;
  }

  .telegram-promo__header {
    padding: 0 65px;
  }

  .telegram-promo__link {
    gap: 20px;
  }

  .telegram-promo__link-icon {
    width: 40px;
    height: 40px;
  }

  .telegram-promo__link-img {
    height: 15px;
  }

  .telegram-promo__content {
    gap: 20px;
  }

  .telegram-promo__post {
    border-radius: 20px;
  }

  .telegram-promo__post .telegram-promo__post-thumbnail {
    height: 360px;
  }

  .telegram-promo__post-info {
    padding: 20px;
  }

  .telegram-promo__category {
    padding: 5px 12px;
    border-radius: 100px;
    backdrop-filter: blur(15px);
  }

  .telegram-promo__post-main-info {
    gap: 10px;
  }

  .telegram-promo__posts-grid {
    gap: 15px;
  }
}

@media (max-width: 1024px) {
  .telegram-promo {
    margin: 0 -16px;
  }
  
  .telegram-promo__content {
    padding: 0 16px;
  }

  .telegram-promo::after {
    right: 20%;
  }

  .telegram-promo__container {
    gap: 5px;
    padding: 0;
  }

  .telegram-promo__header {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .telegram-promo::after {
    top: -10px;
    right: 0;
    width: 200px;
    height: 180px;
  }

  .telegram-promo {
    padding: 40px 0 40px 0;
  }

  .telegram-promo__link--desktop {
    display: none;
  }

  .telegram-promo__link--mobile {
    display: flex;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .telegram-promo__post-title {
    font-size: 18px;
  }

  .telegram-promo__date {
    font-size: 14px;
  }

  .telegram-promo__category {
    font-size: 12px;
  }
}
