.catalog-page {
  background: var(--color-bg);
}

.catalog-main {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
  padding: 30px 0 64px;
}

.catalog-breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.catalog-breadcrumbs a {
  color: var(--color-text-muted);
}

.catalog-head h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.catalog-head p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 74ch;
}

.catalog-tools {
  margin: 20px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-chip {
  border: 1px solid rgba(3, 7, 18, 0.2);
  background: #fff;
  color: var(--color-text-muted);
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.catalog-chip.active {
  background: #030712;
  color: #fff;
  border-color: transparent;
}

.catalog-layout {
  display: grid;
  gap: 24px;
}

.catalog-list {
  display: grid;
  gap: 14px;
  width: 100%;
}

.catalog-card {
  border: 1px solid rgba(3, 7, 18, 0.16);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74));
  padding: 16px;
  padding-top: 18px;
  width: 100%;
  display: grid;
  position: relative;
}

.catalog-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  order: 1;
}

.catalog-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.catalog-logo {
  width: 148px;
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}

.credit-cards-page .catalog-logo {
  width: 170px;
}

.catalog-card h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}

.catalog-card p {
  margin: 0 0 10px;
  color: var(--color-text-muted);
  order: 3;
}

.catalog-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  justify-self: start;
  order: 2;
  margin: -2px 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1c6a40;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.catalog-stars {
  font-size: 16px;
  letter-spacing: 0;
  color: #1c6a40;
}

.catalog-card-top .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  right: 14px;
  top: 14px;
}

.catalog-card-top .badge::before {
  content: "";
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 13l4 4L19 7' stroke='%230f7b44' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.catalog-metrics {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  order: 4;
}

.catalog-card .btn {
  order: 5;
  position: absolute;
  right: 14px;
  top: 52px;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(3, 7, 18, 0.2);
}

.catalog-card .btn::after {
  content: "";
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px 14px;
  flex-shrink: 0;
}

.catalog-card .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(3, 7, 18, 0.25);
}

.catalog-metric {
  border: 1px solid rgba(3, 7, 18, 0.1);
  border-radius: 14px;
  padding: 12px 12px 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-metric:hover {
  border-color: rgba(86, 221, 121, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 6px 14px rgba(3, 7, 18, 0.06);
}

.catalog-metric-label {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 700;
}

.catalog-metric-value {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: #1a2233;
}

.catalog-aside {
  display: grid;
  gap: 12px;
  align-content: start;
}

.catalog-aside-card {
  border: 1px solid rgba(3, 7, 18, 0.14);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.catalog-aside-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.catalog-aside-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (min-width: 900px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
