/* Каталог криптовалют /coins/ (coin-pages/catalog.php). Переменные --cb-* — из темы сайта (template/components/theme.php). */

.cb-page { max-width: 1180px; margin: 0 auto; padding: 28px 16px 64px; }
.cb-breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; color: var(--cb-muted); font-size: 14px; }
.cb-breadcrumbs a { color: var(--cb-blue); }
.cb-breadcrumbs a:hover { text-decoration: underline; }
.cb-section { padding: 28px 30px; }
.cb-section h2 { font-family: var(--cb-display); font-weight: 500; font-size: 22px; line-height: 1.3; color: #fff; margin: 0 0 8px; }

/* ── Первый экран ── */
.cb-cat-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--cb-line); background: var(--cb-panel-soft); color: var(--cb-muted); font-size: 13px; margin-bottom: 14px; }
.cb-cat-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--cb-green); box-shadow: 0 0 0 4px rgba(53, 208, 138, .15); }
.cb-cat-h1 { font-family: var(--cb-display); font-weight: 500; font-size: clamp(24px, 3vw, 36px); line-height: 1.2; color: #fff; margin: 0 0 14px; }
.cb-cat-intro { color: var(--cb-text); line-height: 1.7; max-width: 860px; margin: 0 0 22px; }
.cb-cat-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-cat-btn { min-height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border-radius: 12px; font-weight: 600; }

/* ── Карточки монет ── */
.cb-cat-sub { color: var(--cb-muted); margin: 0 0 18px; }
.cb-cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cb-cat-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 18px; border-radius: 16px; border: 1px solid var(--cb-line); background: var(--cb-panel-soft); color: var(--cb-text); transition: border-color .2s, background .2s, transform .2s; }
.cb-cat-card:hover { border-color: var(--cb-line-strong); background: rgba(77, 163, 255, .07); color: #fff; transform: translateY(-2px); }
.cb-cat-head { display: flex; align-items: center; gap: 12px; }
.cb-cat-head img { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; background: rgba(255, 255, 255, .05); }
.cb-cat-head b { display: block; color: #fff; font-family: var(--cb-display); font-weight: 500; font-size: 16px; line-height: 1.25; }
.cb-cat-head small { display: block; color: var(--cb-muted); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.cb-cat-desc { color: var(--cb-muted); font-size: 13.5px; line-height: 1.5; flex: 1 1 auto; }
.cb-cat-rate { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 1px solid var(--cb-line); font-size: 13px; color: var(--cb-muted); }
.cb-cat-rate b { color: var(--cb-green); font-weight: 600; font-size: 14.5px; text-align: right; overflow-wrap: anywhere; }
.cb-cat-rate b.is-muted { color: var(--cb-muted); font-weight: 400; font-size: 13px; }
.cb-cat-more { color: var(--cb-blue); font-weight: 600; font-size: 14px; }

/* ── Как обменять ── */
.cb-cat-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cb-cat-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--cb-line); background: var(--cb-panel-soft); }
.cb-cat-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--cb-line-strong); background: linear-gradient(180deg, rgba(77, 163, 255, .22), rgba(77, 163, 255, .06)); color: #fff; font-family: var(--cb-display); font-weight: 500; }
.cb-cat-steps h3 { margin: 8px 0 6px; font-size: 16px; font-weight: 600; color: #fff; }
.cb-cat-steps p { margin: 0; color: var(--cb-muted); font-size: 14px; line-height: 1.6; }

/* ── FAQ (как на страницах монет) ── */
.cb-faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.cb-faq-item { border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03); border-radius: 14px; overflow: hidden; }
.cb-faq-item summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.cb-faq-item summary::marker, .cb-faq-item summary::-webkit-details-marker { display: none; }
.cb-faq-chevron { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(47, 124, 255, .12); display: flex; align-items: center; justify-content: center; transition: transform .25s; font-style: normal; }
details[open] .cb-faq-chevron { transform: rotate(180deg); }
.cb-faq-answer { padding: 0 20px 16px; color: var(--cb-muted); font-size: 14px; line-height: 1.7; }

@media (max-width: 1100px) { .cb-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
    .cb-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cb-cat-steps { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .cb-section { padding: 20px 16px; }
    .cb-cat-grid { gap: 10px; }
    .cb-cat-card { padding: 14px; gap: 10px; }
    .cb-cat-desc { display: none; }
    .cb-cat-head img { width: 34px; height: 34px; }
    .cb-cat-head b { font-size: 14.5px; }
    .cb-cat-rate { flex-direction: column; align-items: flex-start; gap: 2px; }
    .cb-cat-rate b { text-align: left; }
    .cb-cat-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cb-cat-card, .cb-faq-chevron { transition: none; } .cb-cat-card:hover { transform: none; } }

/* иконки с тёмным логотипом (XRP) — светлая подложка, иначе не видно на тёмном фоне */
.cb-cat-head img.is-dark { background: #fff; padding: 6px; }
.cb-cat a:not(.btn):not(.cb-cat-card) { color: var(--cb-blue); }
.cb-cat a:not(.btn):not(.cb-cat-card):hover { text-decoration: underline; }
@media (max-width: 575.98px) {
    /* шаги: номер рядом с заголовком, текст — на всю ширину карточки */
    .cb-cat-steps li { grid-template-columns: 36px minmax(0, 1fr); gap: 8px 12px; padding: 16px 14px; align-items: center; }
    .cb-cat-steps li > div { display: contents; }
    .cb-cat-steps h3 { margin: 0; grid-column: 2; }
    .cb-cat-steps p { grid-column: 1 / -1; }
    .cb-cat-num { width: 36px; height: 36px; }
}
