/* ==========================================
   Стили хаба калькуляторов (Архив)
   calc-hub.css
   ========================================== */

.cc-calc-hub-page {
  padding: 80px 0 100px;
  background: #fbfbfe;
  min-height: 80vh;
}

/* Шапка хаба */
.cc-calc-hub-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.cc-calc-hub-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cc-calc-hub-subtitle {
  font-size: 16px;
  color: #718096;
  line-height: 1.6;
  margin: 14px auto 24px;
}

/* Живой поиск */
.cc-calc-hub-search-wrap {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
}

.cc-calc-hub-search {
  width: 100%;
  padding: 14px 44px 14px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #ffffff;
  color: #2d3748;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  outline: none;
}

.cc-calc-hub-search:focus {
  border-color: #667eea;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.cc-calc-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #edf2f7;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #718096;
}

.cc-calc-search-clear:hover {
  background: #e2e8f0;
  color: #2d3748;
}

/* Вкладки категорий */
.cc-calc-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.cc-calc-hub-tab {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.cc-calc-hub-tab:hover {
  background: #f7f9ff !important;
  border-color: #667eea !important;
  color: #667eea !important;
}

.cc-calc-hub-tab--active {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25) !important;
}

.cc-tab-count {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.cc-calc-hub-tab--active .cc-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Сетка карточек */
.cc-calc-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .cc-calc-hub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .cc-calc-hub-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Карточка калькулятора */
.cc-hub-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
}

.cc-hub-card:hover {
  transform: translateY(-4px);
  border-color: #667eea;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.12);
}

.cc-hub-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cc-hub-card__icon {
  font-size: 32px;
  line-height: 1;
}

.cc-hub-card__badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.cc-hub-card__badge--bleach {
  background: rgba(237, 137, 54, 0.12);
  color: #dd6b20;
}

.cc-hub-card__badge--diagnosis {
  background: rgba(72, 187, 120, 0.12);
  color: #2f855a;
}

.cc-hub-card__badge--business {
  background: rgba(159, 122, 234, 0.12);
  color: #805ad5;
}

.cc-hub-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.35;
  margin: 0 0 10px;
}

.cc-hub-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cc-hub-card__title a:hover {
  color: #667eea;
}

.cc-hub-card__desc {
  font-size: 13px;
  color: #718096;
  line-height: 1.55;
  margin: 0 0 18px;
}

.cc-hub-card__footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

.cc-hub-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #667eea;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cc-hub-card__arrow {
  transition: transform 0.2s ease;
}

.cc-hub-card__btn:hover {
  color: #764ba2;
}

.cc-hub-card__btn:hover .cc-hub-card__arrow {
  transform: translateX(4px);
}

/* Пустое состояние */
.cc-hub-empty {
  text-align: center;
  padding: 60px 20px;
}

.cc-hub-empty__icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.cc-hub-empty h3 {
  font-size: 20px;
  color: #2d3748;
  margin: 0 0 6px;
}

.cc-hub-empty p {
  color: #718096;
  font-size: 14px;
}