/* ================= Тарифы ================= */

.tariffs-content {
  padding-top: 80px; /* больше отступ от меню */
}

.tariffs-page {
  padding: 1rem;
  background-color: #fafafa;
}

.tariffs-page h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0;
  text-align: center;
}

.tariffs-page .underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #7a3cff, #5f2ed9);
  margin: 0.25rem auto 1rem auto; /* уменьшили отступы */
  border-radius: 2px;
}

.tariffs-page p {
  font-size: 1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 1rem auto; /* уменьшили отступ вниз */
  text-align: justify; /* выравнивание по ширине */
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.tariffs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  min-width: 350px; /* уменьшили минимальную ширину таблицы */
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.85rem;
}

.tariffs-table th,
.tariffs-table td {
  padding: 0.5rem 0.4rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #eee;
  word-break: break-word;
  white-space: normal;
}

.tariffs-table th {
  background-color: #7a3cff;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
}

.tariffs-table td {
  background-color: #fff;
  font-size: 0.8rem;
}

.tariffs-table td img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.car-cell .car-link {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  text-decoration: none;
  color: #333;
}

.car-cell .car-link:hover {
  color: #7a3cff;
}

.price-cell {
  font-weight: 600;
  color: #5f2ed9;
  font-size: 0.85rem;
}

.price-cell .price {
  font-weight: 700;
  color: #5f2ed9;
  font-size: 0.9rem;
}

.price-cell small {
  font-weight: 400;
  color: #999;
  font-size: 0.75rem;
}

/* --- Планшеты (до 900px) --- */
@media (max-width: 900px) {
  .tariffs-page h2 {
    font-size: 1.5rem;
  }

  .tariffs-page p {
    font-size: 0.9rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  .tariffs-table {
    min-width: 320px; /* уменьшили минимальную ширину */
    font-size: 0.75rem;
  }

  .tariffs-table th,
  .tariffs-table td {
    padding: 0.4rem 0.3rem;
  }

  .tariffs-table td img {
    width: 30px;
    height: 30px;
  }
}

/* --- Мобильные (до 576px) --- */
@media (max-width: 576px) {
  .tariffs-page h2 {
    font-size: 1.3rem;
  }

  .tariffs-page p {
    font-size: 0.8rem;
  }

  .tariffs-table {
    font-size: 0.7rem;
    min-width: 300px; /* минимальная ширина таблицы */
  }

  .tariffs-table th,
  .tariffs-table td {
    padding: 0.3rem 0.2rem;
  }

  .tariffs-table td img {
    width: 25px;
    height: 25px;
  }

  .car-cell .car-link {
    gap: 6px;
  }
}
