/* ════════════════ Каталог-агрегатор: общие стили ════════════════ */

/* Skip-link и a11y фокус-стили */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--green); color: #fff;
  padding: 10px 16px; z-index: 9999;
  border-radius: 0 0 6px 0; font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Visible focus-styles (НЕ убираем outline без замены) */
*:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible { outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 0;
  border-color: var(--green);
}

/* Breadcrumbs */
.breadcrumbs { padding: 14px 0 4px; font-size: 13px; color: var(--text-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: '·'; margin: 0 6px; color: var(--text-dim); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs li[aria-current="page"] { color: var(--text); }

/* Container variants */
.container-narrow { max-width: 880px; }

/* Catalog shell */
.catalog-shell { padding-bottom: 60px; }
.catalog-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 16px 0 28px; flex-wrap: wrap;
}
.catalog-hero__main { flex: 1 1 460px; min-width: 0; }
.catalog-hero__main h1 { font-size: 30px; font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.catalog-hero__lead { color: var(--text-muted); font-size: 15px; margin-bottom: 14px; max-width: 720px; }
.catalog-hero__stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-pill {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 99px;
  padding: 6px 14px; font-size: 13px; color: var(--text-muted);
}
.stat-pill b { color: var(--text); font-weight: 700; }
.catalog-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.catalog-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px;
  text-decoration: none; transition: transform .15s, background .15s;
  border: none; cursor: pointer; font-family: inherit;
}
.catalog-cta.primary { background: var(--green); color: #fff; }
.catalog-cta.primary:hover { background: var(--green-hover); }
.catalog-cta.ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.catalog-cta.ghost:hover { background: var(--bg-card); }

/* Catalog layout 2-col */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: flex-start; }
@media (max-width: 880px) {
  .catalog-layout { grid-template-columns: 1fr; }
}

/* Filters sidebar */
.filters-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }

/* Toggle-кнопка фильтров — видна только на мобиле */
.filters-toggle {
  display: none;
  width: 100%; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 15px;
  font-weight: 700; color: var(--text); text-align: left;
  transition: background .15s;
}
.filters-toggle:hover { background: var(--bg-elev); }
.filters-toggle .filters-toggle-label { flex: 1; }
.filters-toggle .filters-toggle-count {
  display: inline-block; padding: 2px 8px; background: var(--green); color: #fff;
  border-radius: 99px; font-size: 12px; margin-left: 4px;
}
.filters-toggle .filters-toggle-caret { transition: transform .2s var(--ease); font-size: 12px; color: var(--text-muted); }
.filters-sidebar.open .filters-toggle .filters-toggle-caret { transform: rotate(180deg); }

@media (max-width: 880px) {
  .filters-sidebar { padding: 10px; }
  .filters-toggle { display: flex; }
  /* По умолчанию тело свёрнуто на мобиле */
  .filters-body {
    max-height: 0; overflow: hidden;
    transition: max-height .25s var(--ease), padding .25s var(--ease);
    padding: 0;
  }
  .filters-sidebar.open .filters-body {
    max-height: 1200px;
    padding-top: 12px;
  }
}
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.filters-head h3 { font-size: 15px; font-weight: 700; }
.filters-reset { font-size: 12px; color: var(--green); text-decoration: none; }
.filters-reset:hover { text-decoration: underline; }
.filter-block { padding: 12px 0; border-top: 1px solid var(--border); }
.filter-block:first-of-type { border-top: 0; padding-top: 4px; }
.filter-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  display: inline-flex; align-items: center; padding: 5px 10px; font-size: 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 99px;
  color: var(--text); text-decoration: none; cursor: pointer; transition: all .15s;
}
.filter-chip:hover { background: var(--bg-elev); }
.filter-chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.filter-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.filter-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 4px 0; }
.filter-checkbox input { margin: 0; }
.filter-checkbox .filter-count { margin-left: auto; color: var(--text-muted); font-size: 11px; }
.filter-select { width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 6px; font-family: inherit; font-size: 13px; background: #fff; }
.filter-apply { width: 100%; padding: 10px; background: var(--green); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 10px; }

/* Active filters */
.active-filters { margin-bottom: 14px; font-size: 13px; color: var(--text-muted); }
.active-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: var(--green); color: #fff; border-radius: 99px; font-weight: 600; }
.active-chip a { color: #fff; margin-left: 4px; text-decoration: none; }

/* Catalog list */
.catalog-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.catalog-empty { padding: 40px; text-align: center; color: var(--text-muted); background: var(--bg-card); border: 1px dashed var(--border-strong); border-radius: 12px; }

/* Product card (новая) */
.pc-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: 1fr; gap: 12px;
  transition: box-shadow .2s, transform .15s;
}
.pc-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.pc-head { display: flex; align-items: flex-start; gap: 12px; }
.pc-logo {
  flex: 0 0 50px; width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; overflow: hidden;
}
.pc-logo img { width: 100%; height: 100%; object-fit: contain; }
.pc-logo.privat { background: #00a341; }
.pc-logo.mono { background: #1a1a1a; }
.pc-logo.raif { background: #fee600; color: #000; }
.pc-logo.osh { background: #006633; }
.pc-head-info { flex: 1; min-width: 0; }
.pc-title { display: block; font-size: 16px; font-weight: 700; color: var(--text); text-decoration: none; line-height: 1.25; }
.pc-title:hover { color: var(--green); }
.pc-partner { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.pc-partner a { color: inherit; text-decoration: none; }
.pc-partner a:hover { color: var(--green); }
.pc-mfo-badge { display: inline-block; padding: 1px 6px; background: #f5a623; color: #fff; border-radius: 4px; font-size: 10px; font-weight: 700; margin-left: 2px; }
.pc-bank-badge { display: inline-block; padding: 1px 6px; background: var(--blue-logo-1); color: #fff; border-radius: 4px; font-size: 10px; font-weight: 700; }

.pc-features { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-feature {
  font-size: 11px; padding: 3px 8px; border-radius: 99px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
  white-space: nowrap;
}

.pc-params {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.pc-param { display: flex; flex-direction: column; gap: 2px; }
.pc-param-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.pc-param-value { font-size: 15px; font-weight: 700; color: var(--text); }
.pc-param-value.accent { color: var(--green-dark); }

.pc-bonus { font-size: 12.5px; color: var(--text); background: rgba(126,181,58,0.08); padding: 6px 10px; border-radius: 6px; }

.pc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-cta {
  flex: 1; min-width: 160px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; background: var(--green); color: #fff;
  border-radius: 8px; font-weight: 700; font-size: 13px; text-decoration: none;
  transition: background .15s;
}
.pc-cta:hover { background: var(--green-hover); }
.pc-more { font-size: 13px; color: var(--green); font-weight: 600; text-decoration: none; padding: 0 6px; }
.pc-more:hover { text-decoration: underline; }
.pc-compare, .pc-favorite {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--text-muted); transition: all .15s;
}
.pc-compare:hover, .pc-favorite:hover { background: var(--bg-elev); color: var(--text); }
.pc-compare.active, .pc-favorite.active { background: var(--green); border-color: var(--green); color: #fff; }

/* Subcategories on category page */
.catalog-subcats { margin-top: 40px; }
.catalog-subcats h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.subcats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.subcat-card {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: var(--text); transition: all .15s;
}
.subcat-card:hover { background: var(--bg-elev); transform: translateY(-1px); }
.subcat-icon { font-size: 22px; }
.subcat-title { flex: 1; font-weight: 600; font-size: 14px; }
.subcat-count { font-size: 12px; color: var(--text-muted); }

/* FAQ */
.catalog-faq { margin-top: 40px; }
.catalog-faq h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 18px; margin-bottom: 8px;
}
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 6px 0; outline: none; list-style: none; position: relative; padding-right: 30px; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 4px; font-size: 22px; font-weight: 400; color: var(--text-muted); transition: transform .15s; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 10px 0 8px; color: var(--text-muted); line-height: 1.55; font-size: 14px; }

/* Articles grid */
.catalog-articles { margin-top: 40px; }
.catalog-articles h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.article-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s; }
.article-card:hover { transform: translateY(-2px); }
.article-card .article-bg { aspect-ratio: 16/9; background-size: cover; background-position: center; background-color: var(--hero-blue-2); }
.article-card .article-meta { display: flex; justify-content: space-between; padding: 10px 14px 4px; font-size: 11.5px; color: var(--text-muted); }
.article-card .article-tag { background: var(--bg); padding: 1px 8px; border-radius: 99px; }
.article-card h4 { padding: 0 14px 14px; font-size: 14px; font-weight: 600; line-height: 1.35; }

/* ════════════════ Страница продукта ════════════════ */
.product-shell { padding-bottom: 60px; }
.product-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
@media (max-width: 880px) { .product-layout { grid-template-columns: 1fr; } }
.product-header { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.product-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.product-partner { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.product-partner a { color: var(--green); text-decoration: none; }
.product-features { display: flex; flex-wrap: wrap; gap: 6px; }
.product-summary, .product-details, .product-related { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 16px; }
.product-summary h2, .product-details h2, .product-related h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.product-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.product-summary-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--bg); border-radius: 8px; }
.product-summary-grid .lbl { font-size: 11px; text-transform: uppercase; color: var(--text-muted); }
.product-summary-grid b { font-size: 15px; }
.product-summary-grid b.accent { color: var(--green-dark); }
.product-details p { color: var(--text); line-height: 1.55; margin-bottom: 10px; }
.product-sidebar { position: sticky; top: 16px; align-self: flex-start; }
.product-side-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 22px; text-align: center; }
.product-side-logo { width: 70px; height: 70px; border-radius: 16px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: #fff; }
.product-side-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.product-side-card p { color: var(--text-muted); font-size: 13px; margin-bottom: 14px; }
.product-cta { display: block; padding: 12px 18px; margin-bottom: 8px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; border: none; cursor: pointer; font-family: inherit; width: 100%; }
.product-cta:not(.ghost) { background: var(--green); color: #fff; }
.product-cta:not(.ghost):hover { background: var(--green-hover); }
.product-cta.ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.product-cta.ghost:hover { background: var(--bg); }
.product-side-perks { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--border); text-align: left; font-size: 13px; color: var(--text-muted); }
.product-side-perks li { padding: 4px 0; }
.product-disclaimer { font-size: 12px; color: var(--text-dim); margin-top: 14px; line-height: 1.5; }
.product-disclaimer a { color: var(--text-muted); }

/* ════════════════ Страница банка ════════════════ */
.bank-shell { padding-bottom: 60px; }
.bank-header { display: flex; align-items: center; gap: 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 16px; flex-wrap: wrap; }
.bank-header .bank-logo, .bank-header .bank-logo-img { width: 80px; height: 80px; border-radius: 18px; flex: 0 0 80px; display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 800; color: #fff; object-fit: contain; }
.bank-header .bank-logo.privat { background: #00a341; }
.bank-header .bank-logo.mono { background: #1a1a1a; }
.bank-header .bank-logo.raif { background: #fee600; color: #000; }
.bank-header .bank-logo.osh { background: #006633; }
.bank-info { flex: 1; min-width: 280px; }
.bank-info h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.bank-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.bank-address { font-size: 13px; color: var(--text-dim); }
.bank-cta { display: inline-flex; align-items: center; padding: 12px 22px; background: var(--green); color: #fff; border-radius: 10px; font-weight: 700; text-decoration: none; }
.bank-cta:hover { background: var(--green-hover); }

.bank-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.bank-tab { padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent; transition: all .15s; }
.bank-tab:hover { color: var(--text); }
.bank-tab.active { color: var(--text); border-bottom-color: var(--green); }
.bank-pane h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.bank-type-title { font-size: 16px; font-weight: 700; margin: 18px 0 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

.branches-list { list-style: none; padding: 0; }
.branch-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.branch-type { font-size: 22px; }
.branch-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

.bank-review-actions { margin-bottom: 14px; }
.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.review-head { display: flex; gap: 14px; align-items: center; font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; flex-wrap: wrap; }
.review-author { font-weight: 700; color: var(--text); }
.review-rating { color: var(--star); font-weight: 700; }
.review-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.review-card p { color: var(--text); font-size: 14px; line-height: 1.5; }

.bank-contacts { display: grid; grid-template-columns: 200px 1fr; gap: 8px 18px; max-width: 700px; }
.bank-contacts dt { font-weight: 600; color: var(--text-muted); font-size: 13px; }
.bank-contacts dd { font-size: 14px; color: var(--text); }
.bank-contacts dd a { color: var(--green); text-decoration: none; }

/* ════════════════ Каталог банков ════════════════ */
.bank-list-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.bank-list-tab { padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; }
.bank-list-tab.active { background: var(--green); border-color: var(--green); color: #fff; }
.banks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bank-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); transition: all .15s; box-shadow: var(--shadow-card); }
.bank-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.bank-card-logo { width: 52px; height: 52px; border-radius: 12px; flex: 0 0 52px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #fff; overflow: hidden; }
.bank-card-logo.privat { background: #00a341; }
.bank-card-logo.mono { background: #1a1a1a; }
.bank-card-logo.raif { background: #fee600; color: #000; }
.bank-card-logo.osh { background: #006633; }
.bank-card-info { flex: 1; min-width: 0; }
.bank-card-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.bank-card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.bank-card-products { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.bank-card-arrow { color: var(--text-muted); font-size: 18px; }

/* ════════════════ Static pages ════════════════ */
.static-shell { padding-bottom: 60px; }
.static-article { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 28px 32px; }
.static-article h1 { font-size: 30px; font-weight: 800; margin-bottom: 18px; }
.static-body h3 { font-size: 18px; font-weight: 700; margin: 18px 0 8px; }
.static-body p { color: var(--text); line-height: 1.65; margin-bottom: 10px; }
.static-body ul, .static-body ol { padding-left: 22px; margin-bottom: 12px; }
.static-body li { margin-bottom: 4px; line-height: 1.55; }
.static-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.static-body th, .static-body td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.static-body th { background: var(--bg); font-weight: 600; }
.static-body a { color: var(--green); }
.static-body code { background: var(--bg); padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 12px; }

/* ════════════════ Compare tray ════════════════ */
.compare-tray { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-hover); padding: 12px 18px; }
.compare-tray[hidden] { display: none !important; }
.compare-tray__inner { display: flex; align-items: center; gap: 16px; }
.compare-tray__label { font-size: 14px; font-weight: 600; }
.compare-tray__actions { display: flex; gap: 8px; }
.compare-tray__btn { padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; font-family: inherit; }
.compare-tray__btn.primary { background: var(--green); color: #fff; }
.compare-tray__btn.ghost { background: transparent; color: var(--text-muted); }

/* ════════════════ Calculator ════════════════ */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 880px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-form-card, .calc-chart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.calc-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.calc-row label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.calc-row.calc-toggle { flex-direction: row; gap: 18px; align-items: center; }
.calc-row.calc-toggle label { flex-direction: row; align-items: center; gap: 6px; }
.calc-row input[type="range"] { width: 100%; }
.calc-row input[type="number"], .calc-row select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong);
  border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff;
}
.calc-value { font-weight: 700; color: var(--text); font-size: 16px; }
.calc-row .calc-arrow { font-size: 22px; color: var(--green); padding: 0 6px; align-self: center; }
.calc-result { background: linear-gradient(180deg, rgba(126,181,58,0.08), rgba(126,181,58,0.02)); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.calc-result-main { font-size: 28px; font-weight: 800; color: var(--green-dark); }
.calc-result-main span { color: var(--green-dark); }
.calc-result-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.calc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-chart-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.calc-chart { background: var(--bg); border-radius: 8px; padding: 4px; }
.calc-table-details summary { cursor: pointer; margin-top: 14px; font-size: 13px; color: var(--green); font-weight: 600; }
.calc-table-wrap { max-height: 320px; overflow: auto; margin-top: 10px; }
.calc-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.calc-table th, .calc-table td { padding: 4px 8px; border-bottom: 1px solid var(--border); text-align: right; }
.calc-table th { background: var(--bg); position: sticky; top: 0; }
.calc-table td:first-child, .calc-table th:first-child { text-align: left; }

/* Calc email modal */
.calc-email-modal {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,20,40,0.5); backdrop-filter: blur(3px);
  display: flex; justify-content: center; align-items: center; padding: 16px;
}
.calc-email-modal[hidden] { display: none !important; }
.calc-email-modal__inner {
  width: 100%; max-width: 440px; background: var(--bg-card);
  border-radius: 14px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.calc-email-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.calc-email-modal__head h3 { font-size: 16px; font-weight: 700; }
.calc-email-modal__close { background: var(--bg); border: none; cursor: pointer; width: 30px; height: 30px; border-radius: 6px; font-size: 14px; }
.calc-email-modal__inner .form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; }
.calc-email-modal__inner .form-grid input[type=email],
.calc-email-modal__inner .form-grid input[type=text] {
  padding: 10px 12px; border: 1px solid var(--border-strong);
  border-radius: 8px; font-size: 14px; font-family: inherit; outline: none;
}
.calc-email-modal__inner .form-grid input[type=email]:focus { border-color: var(--green); }
.calc-email-modal__inner .form-grid label:has(input[type=checkbox]) {
  flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--text);
}
.calc-email-modal__inner .form-result { margin-top: 12px; font-size: 13px; }

/* ════════════════ News list ════════════════ */
.news-shell { padding-bottom: 60px; }
.news-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
@media (max-width: 880px) { .news-layout { grid-template-columns: 1fr; } }
.news-side { display: flex; flex-direction: column; gap: 8px; }
.news-cat-link { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text); text-decoration: none; }
.news-cat-link:hover { background: var(--bg-elev); }
.news-cat-link.active { background: var(--green); border-color: var(--green); color: #fff; }
.news-cat-count { font-size: 11px; color: var(--text-muted); padding: 2px 8px; background: var(--bg); border-radius: 99px; }
.news-cat-link.active .news-cat-count { background: rgba(255,255,255,0.25); color: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.news-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; box-shadow: var(--shadow-card); }
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.news-card-bg { aspect-ratio: 16/9; background-size: cover; background-position: center; background-color: var(--hero-blue-2); }
.news-card-body { padding: 14px 16px 16px; }
.news-card-meta { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.news-card-meta .tag { background: var(--bg); padding: 2px 8px; border-radius: 99px; }
.news-card-body h3 { font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.news-card-excerpt { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* ════════════════ Reviews list ════════════════ */
.reviews-shell { padding-bottom: 60px; }
.reviews-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }

.review-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; max-width: 720px; }
.review-form .form-row { margin-bottom: 14px; }
.review-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.review-form input, .review-form textarea, .review-form select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong);
  border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff;
}
.review-form textarea { min-height: 120px; resize: vertical; }
.review-form .star-rating { display: flex; gap: 4px; font-size: 28px; cursor: pointer; }
.review-form .star { color: #d1d9e0; transition: color .12s; user-select: none; }
.review-form .star.active, .review-form .star:hover, .review-form .star:hover ~ .star { color: var(--star); }
.review-form .form-row.checkbox { flex-direction: row; align-items: center; gap: 8px; }
.review-form .form-row.checkbox label { flex-direction: row; align-items: flex-start; gap: 8px; }

/* ════════════════ Compare ════════════════ */
.compare-shell { padding-bottom: 60px; }
.compare-table-wrap { overflow-x: auto; }
.compare-table { border-collapse: collapse; min-width: 100%; }
.compare-table th, .compare-table td { padding: 12px 14px; border: 1px solid var(--border); vertical-align: top; }
.compare-table th { background: var(--bg); font-weight: 600; text-align: left; min-width: 160px; }
.compare-table td { background: var(--bg-card); min-width: 220px; }
.compare-table tr:first-child td { padding: 16px; }
.compare-row-best td.best { background: rgba(126,181,58,0.08); font-weight: 700; }

/* ════════════════ Search ════════════════ */
.search-shell { padding-bottom: 60px; }
.search-form { margin-bottom: 24px; }
.search-form input { width: 100%; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 16px; font-family: inherit; }
.search-results-group { margin-bottom: 30px; }
.search-results-group h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.search-result { display: flex; gap: 12px; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; text-decoration: none; color: var(--text); }
.search-result:hover { background: var(--bg-elev); }
.search-result-icon { font-size: 20px; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.search-result-meta { font-size: 12px; color: var(--text-muted); }

/* ════════════════ Account ════════════════ */
.account-shell { padding-bottom: 60px; }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
@media (max-width: 880px) { .account-layout { grid-template-columns: 1fr; } }
.account-side { display: flex; flex-direction: column; gap: 4px; }
.account-side a { padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text); text-decoration: none; display: flex; justify-content: space-between; }
.account-side a:hover { background: var(--bg-elev); }
.account-side a.active { background: var(--green); border-color: var(--green); color: #fff; }
.account-side .count { font-size: 11px; color: var(--text-muted); padding: 2px 8px; background: var(--bg); border-radius: 99px; }
.account-side a.active .count { background: rgba(255,255,255,0.25); color: #fff; }
.account-pane { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.account-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.account-empty p { margin-bottom: 16px; }

/* ════════════════ Quiz / Master ════════════════ */
.quiz-shell { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.quiz-progress { margin-bottom: 22px; }
.quiz-progress-bar { background: var(--bg); border-radius: 99px; height: 8px; overflow: hidden; margin-bottom: 6px; }
.quiz-progress-fill { background: linear-gradient(90deg, var(--green), var(--green-dark)); height: 100%; border-radius: 99px; transition: width .3s var(--ease); }
.quiz-progress-text { font-size: 12px; color: var(--text-muted); text-align: right; font-family: var(--font-mono); }
.quiz-step h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.quiz-hint { color: var(--text-muted); margin-bottom: 18px; font-size: 14px; }
.quiz-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 24px; }
.quiz-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 16px 18px; background: var(--bg); border: 2px solid var(--border);
  border-radius: 12px; cursor: pointer; text-align: left;
  font-family: inherit; transition: all .15s;
}
.quiz-choice:hover { background: var(--bg-elev); border-color: var(--border-strong); }
.quiz-choice.active { background: rgba(126,181,58,0.08); border-color: var(--green); }
.quiz-choice-icon { font-size: 22px; }
.quiz-choice-title { font-weight: 700; font-size: 15px; color: var(--text); }
.quiz-choice-subtitle { font-size: 12px; color: var(--text-muted); }

.quiz-range { display: grid; gap: 16px; margin-bottom: 24px; }
.quiz-range-row label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.quiz-range-row input[type=range] { width: 100%; }
.quiz-range-display { font-weight: 700; color: var(--text); font-size: 16px; }

.quiz-multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-bottom: 24px; }
.quiz-multi-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 14px; }
.quiz-multi-item input { margin: 0; }
.quiz-multi-item:hover { background: var(--bg-elev); }

.quiz-actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }

.quiz-result-card {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center;
  padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 10px;
}
.quiz-result-score {
  background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff;
  border-radius: 12px; width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.quiz-result-title { font-weight: 700; font-size: 15px; }
.quiz-result-partner { font-size: 12px; color: var(--text-muted); }
.quiz-result-meta { font-size: 12.5px; color: var(--text); margin-top: 4px; }
.quiz-result-actions { display: flex; flex-direction: column; gap: 6px; }
.quiz-result-actions .catalog-cta { padding: 8px 14px; font-size: 12px; }

@media (max-width: 600px) {
  .quiz-result-card { grid-template-columns: 1fr; }
  .quiz-result-actions { flex-direction: row; }
}

/* Защита от выхода блоков за viewport на узких экранах */
@media (max-width: 720px) {
  .bank-info { min-width: 0; flex: 1 1 auto; }
  .bank-header { flex-wrap: wrap; gap: 14px; }
  .bank-meta { flex-wrap: wrap; gap: 6px 12px; font-size: 12px; }
  .bank-contacts { grid-template-columns: 1fr; }
  .cookie-banner { padding: 14px 18px; }
  .cookie-banner__text { min-width: 0; }
  .pc-card { padding: 16px; }
  .pc-head { flex-wrap: wrap; }
  .catalog-hero__main { flex: 1 1 100%; min-width: 0; }
  .pc-rate, .pc-amount, .pc-term, .pc-extra { font-size: 13px; }
  .partner-name, .pc-head-info b { word-break: break-word; }
  /* Длинные текстовые поля — переносим */
  .pc-head-info { min-width: 0; word-break: break-word; }
  /* Бегущая строка партнёров не должна растягивать страницу */
  .partners-marquee, .marquee, .partners-track { max-width: 100%; overflow: hidden; }
  /* Любая таблица — со скроллом в своём контейнере */
  table { display: block; max-width: 100%; overflow-x: auto; }
  /* Картинки никогда не вылазят за родителя */
  img, video, iframe { max-width: 100%; height: auto; }
}

/* ════════════════ Sticky CTA на странице продукта (mobile) ════════════════ */
.product-sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: var(--bg-card); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px -10px rgba(0,0,0,0.15);
  padding: 10px 14px 12px;
  align-items: center; gap: 10px;
}
.product-sticky-cta__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.product-sticky-cta__rate { font-size: 13px; font-weight: 800; color: var(--green-dark); }
.product-sticky-cta__title { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-sticky-cta__btn {
  flex: 0 0 auto; padding: 11px 18px; background: var(--green); color: #fff;
  border-radius: 10px; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap;
}
.product-sticky-cta__btn:hover { background: var(--green-hover); }
@media (max-width: 880px) {
  .product-sticky-cta { display: flex; }
  /* Не даём sticky CTA закрыть нижний контент */
  .product-shell, .static-shell, .catalog-shell { padding-bottom: 100px; }
}

/* ════════════════ Recently Viewed ════════════════ */
.recently-viewed {
  margin: 40px 0;
}
.recently-viewed h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.recently-viewed h3 .rv-clear {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
  background: none; border: none; cursor: pointer;
}
.recently-viewed h3 .rv-clear:hover { color: var(--danger); }
.recently-viewed-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
}
.rv-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; text-decoration: none; color: var(--text);
  transition: all .15s;
}
.rv-item:hover { background: var(--bg-elev); transform: translateY(-1px); }
.rv-item-logo {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 16px;
}
.rv-item-info { flex: 1; min-width: 0; }
.rv-item-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.rv-item-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ════════════════ Hot/promo бейджи на карточках ════════════════ */
.pc-card { position: relative; }
.pc-hot-badge {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, #e85a5a, #f5a623);
  color: #fff; font-weight: 700; font-size: 10px; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 6px; text-transform: uppercase;
  box-shadow: 0 2px 8px -2px rgba(232,90,90,0.4);
  z-index: 2;
}
.pc-hot-badge.green { background: linear-gradient(135deg, #7eb53a, #5d8e25); box-shadow: 0 2px 8px -2px rgba(126,181,58,0.4); }
.pc-stats-line {
  padding: 8px 0; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.pc-stats-line .pc-stats-dot { color: var(--green); font-weight: 700; }

/* ════════════════ Cookie banner ════════════════ */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 720px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-hover); padding: 16px 22px; z-index: 80; }
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie-banner__text { flex: 1; font-size: 13px; color: var(--text); line-height: 1.45; min-width: 220px; }
.cookie-banner__btn { padding: 10px 18px; background: var(--green); color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: inherit; }

/* ════════════════ CRYPTO PAGE ════════════════ */
.crypto-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin: 18px 0 22px;
}
.crypto-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.crypto-sub { color: var(--text-muted); font-size: 13.5px; }
.crypto-fetched { color: var(--green-dark); font-weight: 600; }
.crypto-search {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 18px; font-size: 14px; min-width: 280px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.crypto-search:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(126,181,58,0.18); }

.crypto-table-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 8px 24px -8px rgba(20,30,40,0.06);
}
.crypto-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.crypto-table thead { background: var(--bg-elev); }
.crypto-table th {
  text-align: left; padding: 14px 16px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); font-weight: 700;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.crypto-table th.price, .crypto-table th.change, .crypto-table th.change-7d,
.crypto-table th.mcap, .crypto-table th.vol, .crypto-table th.supply { text-align: right; }
.crypto-table th.buy, .crypto-table td.buy { text-align: right; }
.crypto-table tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
.crypto-table tbody tr:hover { background: var(--bg-elev); }
.crypto-table tbody tr:last-child { border-bottom: none; }
.crypto-table td { padding: 14px 16px; vertical-align: middle; }
.crypto-table td.rank { color: var(--text-muted); font-family: var(--font-mono); font-size: 12.5px; }
.crypto-table td.price, .crypto-table td.change, .crypto-table td.change-7d,
.crypto-table td.mcap, .crypto-table td.vol, .crypto-table td.supply {
  text-align: right; font-variant-numeric: tabular-nums;
}
.crypto-table td.price { font-weight: 700; }
.crypto-table td.mcap, .crypto-table td.vol, .crypto-table td.supply {
  color: var(--text-muted); font-size: 13px;
}
.crypto-coin { display: flex; align-items: center; gap: 10px; }
.crypto-coin img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.crypto-coin strong { display: block; font-weight: 700; line-height: 1.2; }
.crypto-symbol { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-top: 2px; }
.crypto-table td.change, .crypto-table td.change-7d { font-weight: 700; }
.crypto-table td.change.up, .crypto-table td.change-7d.up { color: #16a34a; }
.crypto-table td.change.dn, .crypto-table td.change-7d.dn { color: #dc2626; }
.crypto-buy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #F0B90B, #d49a06);
  color: #181a20;
  border-radius: 8px;
  font-size: 12.5px; font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 10px -3px rgba(240,185,11,0.40), 0 0 0 1px rgba(255,255,255,0.20) inset;
  transition: transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.crypto-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -3px rgba(240,185,11,0.55), 0 0 0 1px rgba(255,255,255,0.30) inset;
}
.crypto-disclaimer { margin-top: 18px; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.crypto-disclaimer a { color: var(--green-dark); border-bottom: 1px dashed currentColor; }

@media (max-width: 880px) {
  .crypto-head { flex-direction: column; align-items: stretch; }
  .crypto-search { min-width: 0; width: 100%; }
  .crypto-table { font-size: 13px; }
  .crypto-table th, .crypto-table td { padding: 10px 8px; }
  /* На узких экранах прячем менее важные колонки */
  .crypto-table th.change-7d, .crypto-table td.change-7d,
  .crypto-table th.vol, .crypto-table td.vol,
  .crypto-table th.supply, .crypto-table td.supply { display: none; }
  .crypto-coin img { width: 22px; height: 22px; }
}
@media (max-width: 600px) {
  .crypto-table th.mcap, .crypto-table td.mcap { display: none; }
}
