/* Виджет tips-slot — карточки-подсказки на главной. Без эмодзи. Компактный, не ломает сетку. */
.tips-slot {
  overflow: hidden;
  transition: height 500ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
  box-sizing: border-box;
}
.tip-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  margin: 14px auto;
  max-width: 1152px;
  width: 100%;
  background: linear-gradient(135deg, #eaf4fb 0%, #ffffff 100%);
  border: 1px solid rgba(41, 128, 185, 0.20);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(41, 128, 185, 0.08);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 350ms cubic-bezier(0.4, 0, 0.2, 1), transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}
.tip-card.in { opacity: 1; transform: translateY(0); }
.tip-card.out { opacity: 0; transform: translateY(-6px); }
.tip-body { min-width: 0; }
.tip-head {
  display: flex; gap: 8px; align-items: center; margin-bottom: 6px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.tip-uk { padding: 3px 9px; border-radius: 8px; color: #fff; font-weight: 700; white-space: nowrap; }
.tip-uk.zks { background: #2980b9; }
.tip-uk.acc { background: #d68910; }
.tip-uk.both { background: linear-gradient(90deg, #2980b9, #d68910); }
.tip-kind { color: #5b6b7a; font-weight: 500; }
.tip-title {
  font-size: 15px; font-weight: 700; color: #1c5a86;
  line-height: 1.35;
  margin: 0 0 4px;
}
.tip-text {
  font-size: 13px; color: #3f4b57; line-height: 1.5;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tip-text:empty { display: none; }
.tip-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tip-cta {
  font-size: 13px; font-weight: 600; color: #1c5a86;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(41, 128, 185, 0.10);
  transition: background 150ms;
  white-space: nowrap;
}
.tip-cta:hover { background: rgba(41, 128, 185, 0.20); }
.tip-close {
  width: 32px; height: 32px;
  border: 0;
  background: transparent;
  color: #7b8a99;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background 150ms, color 150ms;
  flex-shrink: 0;
}
.tip-close:hover { background: rgba(0, 0, 0, 0.06); color: #3f4b57; }

/* Планшет */
@media (max-width: 900px) {
  .tips-slot { padding: 0 16px; }
  .tip-card { margin: 12px auto; padding: 12px 14px; gap: 10px; }
  .tip-title { font-size: 14px; }
  .tip-text { font-size: 12.5px; }
  .tip-cta { padding: 8px 12px; font-size: 12.5px; }
  .tip-close { width: 30px; height: 30px; font-size: 20px; }
  .tip-head { font-size: 10.5px; gap: 6px; }
  .tip-uk { padding: 2px 7px; font-size: 10.5px; }
}

/* Мобильный */
@media (max-width: 640px) {
  .tips-slot { padding: 0 12px; }
  .tip-card {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
    margin: 10px auto;
    border-radius: 12px;
  }
  .tip-title { font-size: 14px; }
  .tip-text { font-size: 12.5px; -webkit-line-clamp: 3; }
  .tip-actions {
    justify-content: space-between;
    margin-top: 2px;
  }
  .tip-cta { padding: 9px 14px; font-size: 13px; flex: 1; text-align: center; max-width: 60%; }
  .tip-close { min-width: 32px; }
  .tip-head { flex-wrap: wrap; }
  .tip-uk { max-width: 100%; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .tips-slot, .tip-card { transition: none !important; }
}
