/* 1 Кредит — portal / CPA tiles */

:root {
  --crd-navy: #12263a;
  --crd-navy-2: #1b3a55;
  --crd-accent: #c9a227;
  --crd-accent-hover: #a8861b;
  --crd-bg: #f4f1ea;
  --crd-card: #ffffff;
  --crd-text: #1a1a1a;
  --crd-muted: #5c6570;
  --crd-border: #e2dac8;
  --crd-radius: 14px;
  --crd-shadow: 0 8px 24px rgba(18, 38, 58, 0.08);
}

body.crd-hub-home .site-content,
body.post-type-archive-crd_product .site-content,
body.tax-crd_cat .site-content {
  background: var(--crd-bg);
}

.crd-hero {
  background: linear-gradient(145deg, var(--crd-navy) 0%, var(--crd-navy-2) 52%, #2a4a3a 100%);
  color: #fff;
  border-radius: var(--crd-radius);
  padding: 2.5rem 1.75rem;
  margin: 0 0 2rem;
  box-shadow: var(--crd-shadow);
}
.crd-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  opacity: 0.85;
  margin: 0 0 0.75rem;
}
.crd-hero__title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
  color: #fff !important;
}
.crd-hero__lead {
  font-size: 1.05rem;
  max-width: 48rem;
  opacity: 0.95;
  margin: 0 0 1.5rem;
  color: #e8eef7;
}
.crd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.crd-hero__note {
  font-size: 0.82rem;
  opacity: 0.7;
  margin: 0;
}

.crd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: 0.15s ease;
  line-height: 1.2;
}
.crd-btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}
.crd-btn--primary {
  background: var(--crd-accent);
  color: #1a1404 !important;
}
.crd-btn--primary:hover {
  background: var(--crd-accent-hover);
  color: #fff !important;
}
.crd-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
}
.crd-hero .crd-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
body:not(.crd-hub-home) .crd-btn--ghost,
.crd-card .crd-btn--ghost,
.crd-how .crd-btn--ghost {
  border-color: var(--crd-border);
  color: var(--crd-navy) !important;
}
.crd-card .crd-btn--ghost:hover {
  border-color: var(--crd-navy);
}

.crd-section {
  margin: 0 0 2.25rem;
}
.crd-section__title {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--crd-navy);
}

.crd-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}
.crd-cat-card {
  background: var(--crd-card);
  border: 1px solid var(--crd-border);
  border-radius: var(--crd-radius);
  padding: 1.1rem 0.9rem;
  text-decoration: none !important;
  color: var(--crd-text) !important;
  box-shadow: var(--crd-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 120px;
}
.crd-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(18, 38, 58, 0.12);
}
.crd-cat-card__icon {
  font-size: 1.5rem;
  line-height: 1;
}
.crd-cat-card__name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--crd-navy);
}
.crd-cat-card__meta {
  font-size: 0.8rem;
  color: var(--crd-muted);
  margin-top: auto;
}

.crd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.crd-card {
  position: relative;
  background: var(--crd-card);
  border: 1px solid var(--crd-border);
  border-radius: var(--crd-radius);
  padding: 1.15rem 1.1rem 1rem;
  box-shadow: var(--crd-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.crd-card--partner {
  border-color: #e6d59a;
}
.crd-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #f7efd2;
  color: #7a6410;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}
.crd-card__title {
  margin: 0;
  font-size: 1.05rem;
  padding-right: 4.5rem;
  line-height: 1.3;
}
.crd-card__title a {
  color: var(--crd-navy) !important;
  text-decoration: none !important;
}
.crd-card__title a:hover {
  color: var(--crd-accent-hover) !important;
}
.crd-card__text {
  margin: 0;
  color: var(--crd-muted);
  font-size: 0.92rem;
  flex: 1;
}
.crd-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.crd-card__label {
  margin: 0;
  font-size: 0.72rem;
  color: var(--crd-muted);
}

.crd-how__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.crd-how__item {
  background: var(--crd-card);
  border-radius: var(--crd-radius);
  padding: 1.1rem;
  border: 1px solid var(--crd-border);
}
.crd-how__item p {
  margin: 0.4rem 0 0;
  color: var(--crd-muted);
  font-size: 0.92rem;
}
.crd-how__cta {
  margin: 0;
}

.crd-disclaimer {
  font-size: 0.85rem;
  color: var(--crd-muted);
  border-left: 3px solid var(--crd-accent);
  padding: 0.5rem 0 0.5rem 0.9rem;
  margin: 1.5rem 0 0;
}

.crd-empty {
  color: var(--crd-muted);
}

.single-crd_product .entry-content .crd-go-box {
  background: #fbf6e6;
  border: 1px solid #e6d59a;
  border-radius: var(--crd-radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.single-crd_product .crd-go-box .crd-btn {
  margin-top: 0.5rem;
}

.tax-crd_cat .page-header,
.post-type-archive-crd_product .page-header {
  margin-bottom: 1.25rem;
}

.crd-faq__list { display: flex; flex-direction: column; gap: 0.65rem; }
.crd-faq__item {
  background: var(--crd-card);
  border: 1px solid var(--crd-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.crd-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--crd-navy);
}
.crd-faq__item p {
  margin: 0.6rem 0 0;
  color: var(--crd-muted);
  font-size: 0.95rem;
}

.site-header .custom-logo,
.site-header .header-image,
.site-header .is-logo-image {
  max-height: 52px;
  width: auto;
  height: auto;
}

@media (max-width: 600px) {
  .crd-hero {
    padding: 1.75rem 1.15rem;
  }
  .crd-cats {
    grid-template-columns: repeat(2, 1fr);
  }
}
