/* ===== Страница категории «Налоги» — сетка карточек калькуляторов ===== */

.tax-hub {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.tax-hub h1 {
  text-align: center;
  font-size: 2rem;
  color: #222;
  margin: 0 0 12px;
}

.tax-hub-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 36px;
}

/* Сетка карточек: 3 колонки на десктопе */
.tax-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Карточка калькулятора */
.tax-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px 22px;
  text-decoration: none;
  color: #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tax-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 119, 255, 0.14);
  border-color: #0077ff;
}

.tax-card:active {
  transform: translateY(-2px);
}

/* Иконка калькулятора */
.tax-card-icon {
  width: 54px;
  height: 54px;
  background: #eef6ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.tax-card-icon svg {
  width: 28px;
  height: 28px;
  stroke: #0077ff;
}

.tax-card:hover .tax-card-icon {
  background: #0077ff;
}

.tax-card:hover .tax-card-icon svg {
  stroke: #fff;
}

/* Заголовок и описание */
.tax-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 8px;
  line-height: 1.35;
}

.tax-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.55;
  margin: 0;
}

/* Адаптивность: 2 колонки на планшете */
@media (max-width: 900px) {
  .tax-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Адаптивность: 1 колонка на телефоне */
@media (max-width: 600px) {
  .tax-grid {
    grid-template-columns: 1fr;
  }

  .tax-hub h1 {
    font-size: 1.6rem;
  }
}
