/* Карточка Telegram-канала: мягкий выход для тех, кто не готов оставить заявку.
   Разметка — ukompas24/templates/includes/telegram_cta.html. */

.tg-cta {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 32px 0;
  padding: 20px 22px;
  border: 1px solid #dfe4ea;
  border-left: 4px solid #009299;
  border-radius: 12px;
  background: #f7fafb;
}

.tg-cta--b2b {
  border-left-color: #f55d25;
  background: #fbf7f5;
}

.tg-cta__icon {
  flex: 0 0 auto;
  color: #009299;
  line-height: 0;
  padding-top: 2px;
}

.tg-cta--b2b .tg-cta__icon {
  color: #f55d25;
}

.tg-cta__body {
  flex: 1 1 auto;
  min-width: 0;
}

.tg-cta__heading {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #01314c;
}

.tg-cta__text {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #40525e;
}

.tg-cta__channel {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #01314c;
}

.tg-cta__handle {
  font-weight: 400;
  color: #7a8a95;
}

.tg-cta__link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 24px;
  background: #009299;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.tg-cta--b2b .tg-cta__link {
  background: #f55d25;
}

.tg-cta__link:hover,
.tg-cta__link:focus {
  background: #00767c;
  color: #fff;
  text-decoration: none;
}

.tg-cta--b2b .tg-cta__link:hover,
.tg-cta--b2b .tg-cta__link:focus {
  background: #d84a16;
}

.tg-cta__link:focus-visible {
  outline: 2px solid #01314c;
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .tg-cta {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .tg-cta__link {
    display: block;
    text-align: center;
  }
}

/* Ссылка на канал в колонках подвала */
.footer-tg a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-tg__icon {
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .tg-cta__link {
    transition: none;
  }
}
