/* --- Общие настройки --- */
:root {
  --brand-primary: #d32f2f; /* Фирменный красный цвет раков */
  --brand-primary-hover: #b71c1c;
  --brand-bg-light: #fff5f5;
}

.text-primary { color: var(--brand-primary) !important; }
.bg-primary { background-color: var(--brand-primary) !important; }
.border-primary { border-color: var(--brand-primary) !important; }

/* --- Хлебные крошки --- */
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 1.5rem 0;
  list-style: none;
  font-size: 0.9rem;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding: 0 0.5rem;
  color: #6c757d;
}
.breadcrumb-item a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-item a:hover {
  color: var(--brand-primary);
}
.breadcrumb-item.active {
  color: #212529;
  font-weight: 500;
}

/* --- Карточки кэшбэка (Калибр) --- */
.card-cashback {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  overflow: hidden;
}
.card-cashback:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.15);
  border-color: var(--brand-primary);
  color: inherit;
}
.card-img-wrapper {
  position: relative;
  padding-top: 100%; /* Квадратное соотношение сторон */
  background: #f8f9fa;
  overflow: hidden;
}
.card-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-cashback:hover .card-img-wrapper img {
  transform: scale(1.05);
}
.cashback-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}
.card-body {
  padding: 1.25rem;
  text-align: center;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #212529;
}

/* --- Карточки объёма --- */
.card-volume {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.card-volume:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.volume-icon {
  font-size: 2.5rem;
}

/* --- Шаги (Steps) --- */
.step-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  position: relative;
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto;
}

/* --- Таблица --- */
.table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.table a {
  color: var(--brand-primary);
  font-weight: 500;
}
.table a:hover {
  text-decoration: underline !important;
}

/* --- FAQ Аккордеон --- */
.accordion-custom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* Убираем стандартный треугольник */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--brand-primary);
  font-weight: 300;
  transition: transform 0.3s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover {
  background: var(--brand-bg-light);
}
.faq-content {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: #495057;
  line-height: 1.6;
  border-top: 1px solid #f1f3f5;
  margin-top: -5px;
  padding-top: 1rem;
}

/* --- Кнопка CTA --- */
.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}
/* --- Таблица кэшбэка --- */
/* Усиливаем специфичность, чтобы перебить Bootstrap */
.cashback-table.table th,
.cashback-table.table td {
  padding: 1rem 1.5rem !important; 
  vertical-align: middle;
}

/* Минимальная ширина столбцов */
.cashback-table.table th:nth-child(1),
.cashback-table.table td:nth-child(1) {
  min-width: 280px;
  width: 35%;
}
.cashback-table.table th:nth-child(2),
.cashback-table.table td:nth-child(2) {
  min-width: 130px;
  width: 15%;
}
.cashback-table.table th:nth-child(3),
.cashback-table.table td:nth-child(3) {
  min-width: 130px;
  width: 15%;
}
.cashback-table.table th:nth-child(4),
.cashback-table.table td:nth-child(4) {
  min-width: 200px;
  width: 35%;
}

/* Ссылки в первом столбце не должны переноситься */
.cashback-table.table td:first-child a {
  white-space: nowrap;
  display: inline-block;
}

/* Дополнительные стили для улучшения вида */
.cashback-table.table thead th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.cashback-table.table a {
  color: var(--brand-primary);
  font-weight: 500;
  transition: color 0.2s;
}

.cashback-table.table a:hover {
  color: var(--brand-primary-hover);
  text-decoration: underline !important;
}