/* ════════════════════════════════════════════
   кре-дит.рф — полный CSS
   ════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── VARIABLES ─── */
:root {
  --bg:           #0b0f1e;
  --surface:      #131829;
  --surface2:     #1a2035;
  --border:       rgba(255,255,255,0.08);
  --border-hi:    rgba(255,255,255,0.16);
  --text:         #f0f4ff;
  --muted:        #6b7a9f;
  --blue:         #4f8eff;
  --blue2:        #7eb3ff;
  --purple:       #a855f7;
  --gold:         #f5a623;
  --gold2:        #ffd166;
  --green:        #22d3a0;
  --red:          #ff6b6b;
  --r:            20px;
  --r-sm:         12px;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Mulish', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* фоновые орбы */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,142,255,0.10) 0%, transparent 70%);
  top: -150px; left: -100px;
}
body::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 70%);
  bottom: -80px; right: -80px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════════
   ШАПКА
   ════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,30,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.header-nav {
  display: flex;
  gap: 32px;
}
.header-nav a {
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--text); }

/* ════════════════════════════════════════════
   ЛОГОТИП
   ════════════════════════════════════════════ */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-decoration: none;
  line-height: 1;
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 14px;
}
.logo .kre    { color: var(--text); display: block; }
.logo .dit    { color: var(--blue); display: block; }
.logo .dot-rf {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 3px;
  display: block;
}
.logo-divider {
  display: block;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  margin: 2px 0;
}

/* ════════════════════════════════════════════
   ГЕРОЙ
   ════════════════════════════════════════════ */
.hero {
  padding: 88px 0 96px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,142,255,0.1);
  border: 1px solid rgba(79,142,255,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px; font-weight: 700;
  color: var(--blue2);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  max-width: 700px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 44px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 26px; font-weight: 900;
  color: var(--text);
}
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: #fff;
  padding: 16px 36px;
  border-radius: var(--r-sm);
  font-family: 'Unbounded', sans-serif;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(79,142,255,0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(79,142,255,0.45);
}

/* ════════════════════════════════════════════
   ОБЩИЕ ЗАГОЛОВКИ СЕКЦИЙ
   ════════════════════════════════════════════ */
.section-tag {
  font-size: 11px; font-weight: 700;
  color: var(--blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-count { font-size: 13px; color: var(--muted); }

/* ════════════════════════════════════════════
   ПРЕИМУЩЕСТВА
   ════════════════════════════════════════════ */
.benefits {
  padding: 80px 0;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.benefit-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}
.benefit-icon { font-size: 30px; margin-bottom: 16px; }
.benefit-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.benefit-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ════════════════════════════════════════════
   КАЛЬКУЛЯТОР
   ════════════════════════════════════════════ */
.calc-section { padding: 0 0 80px; }

.calc-card {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--r);
  padding: 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}
.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}
.calc-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px; font-weight: 700;
  margin-bottom: 8px;
}
.calc-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* badge */
.amount-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  transition: all 0.3s;
}
.badge-micro { background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.3);  color: var(--gold);  }
.badge-card  { background: rgba(79,142,255,0.12);  border: 1px solid rgba(79,142,255,0.3);  color: var(--blue2); }
.badge-mixed { background: rgba(34,211,160,0.12);  border: 1px solid rgba(34,211,160,0.3);  color: var(--green); }

/* sliders */
.sliders-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-bottom: 24px;
}
.slider-label-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.slider-label {
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.slider-value {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--text);
}
.slider-value-unit { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }

input[type="range"] {
  -webkit-appearance: none;
  width: 100%; height: 5px;
  border-radius: 100px;
  outline: none; cursor: pointer;
  border: none; padding: 0;
  background: rgba(255,255,255,0.1);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--blue), 0 4px 12px rgba(79,142,255,0.4);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--blue), 0 4px 20px rgba(79,142,255,0.6);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--bg);
  cursor: pointer;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px; color: var(--muted);
  margin-top: 7px;
}

/* threshold hint */
.threshold-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px; color: var(--muted);
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 28px;
}
.threshold-dot {
  width: 8px; height: 8px;
  border-radius: 50%; flex-shrink: 0;
  transition: background 0.3s;
}

/* form fields */
.fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.field input {
  height: 48px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-sm);
  padding: 0 14px;
  font-size: 15px;
  font-family: 'Mulish', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: rgba(107,122,159,0.5); }
.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,142,255,0.15);
}
.field input.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.12);
}
.field-error { font-size: 11px; color: var(--red); display: none; }
.field input.error ~ .field-error { display: block; }

/* submit button */
.submit-btn {
  width: 100%; height: 56px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: #fff;
  border: none; border-radius: var(--r-sm);
  font-family: 'Unbounded', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 6px 24px rgba(79,142,255,0.3);
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.2s;
}
.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(79,142,255,0.4);
}
.submit-btn:active { transform: translateY(0); }
.submit-btn svg { transition: transform 0.2s; }
.submit-btn:hover svg { transform: translateX(4px); }

/* ════════════════════════════════════════════
   ОФФЕРЫ
   ════════════════════════════════════════════ */
.offers-section { display: none; }
.offers-section.visible {
  display: block;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* плитка */
.offer-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 22px 20px 18px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: tileIn 0.35s ease backwards;
}
.offer-tile:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.offer-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.offer-tile.micro::before       { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.offer-tile.card-credit::before { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.offer-tile.mixed::before       { background: linear-gradient(90deg, var(--green), var(--blue)); }

@keyframes tileIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.offer-tile:nth-child(1){animation-delay:.04s}
.offer-tile:nth-child(2){animation-delay:.08s}
.offer-tile:nth-child(3){animation-delay:.12s}
.offer-tile:nth-child(4){animation-delay:.16s}
.offer-tile:nth-child(5){animation-delay:.20s}
.offer-tile:nth-child(6){animation-delay:.24s}
.offer-tile:nth-child(7){animation-delay:.28s}
.offer-tile:nth-child(8){animation-delay:.32s}
.offer-tile:nth-child(9){animation-delay:.36s}

.tile-bank-row { display: flex; align-items: center; justify-content: space-between; }
.tile-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px; font-weight: 900; color: #fff; flex-shrink: 0;
}
.tile-best {
  font-size: 10px; font-weight: 700; color: var(--gold);
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.25);
  padding: 3px 8px; border-radius: 100px;
}
.tile-type-tag {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 100px;
}
.tile-type-tag.micro { background: rgba(245,166,35,0.12); color: var(--gold);  border: 1px solid rgba(245,166,35,0.2); }
.tile-type-tag.bank  { background: rgba(79,142,255,0.10);  color: var(--blue2); border: 1px solid rgba(79,142,255,0.2);  }
.tile-bank-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.tile-bank-sub  { font-size: 11px; color: var(--muted); }
.tile-rate { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 900; color: var(--text); }
.tile-rate span { font-size: 13px; font-weight: 500; color: var(--muted); }
.tile-stats { display: flex; gap: 12px; }
.tile-stat  { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tile-stat-label { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; }
.tile-stat-val   { font-size: 13px; font-weight: 700; color: var(--text); }
.tile-btn {
  width: 100%; height: 40px; border: none; border-radius: 10px;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px; font-weight: 700; cursor: pointer;
  letter-spacing: 0.3px;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.tile-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.tile-btn.micro       { background: linear-gradient(135deg, var(--gold), #e8920a); color: #1a0e00; }
.tile-btn.card-credit { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; }
.tile-btn.mixed       { background: linear-gradient(135deg, var(--green), var(--blue)); color: #fff; }

/* ════════════════════════════════════════════
   СПИСОК ОРГАНИЗАЦИЙ
   ════════════════════════════════════════════ */
.org-list-section { padding: 80px 0; }
.org-list { display: flex; flex-direction: column; gap: 10px; }

.org-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  transition: border-color 0.2s;
}
.org-item:hover { border-color: var(--border-hi); }
.org-item--hidden { display: none; }

.org-item-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 9px; font-weight: 900; color: #fff;
}
.org-item-body { flex: 1; min-width: 0; }
.org-item-name {
  font-size: 14px; font-weight: 700;
  color: var(--text); margin-bottom: 8px; line-height: 1.3;
}
.org-item-details {
  display: flex; flex-wrap: wrap; gap: 4px 20px;
  font-size: 12px; color: var(--muted); margin-bottom: 6px;
}
.org-item-details a { color: var(--blue2); text-decoration: none; }
.org-item-details a:hover { text-decoration: underline; }
.org-item-reqs {
  display: flex; flex-wrap: wrap; gap: 4px 20px;
  font-size: 11px; color: rgba(107,122,159,0.55);
}

.org-expand-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 20px auto 0;
  background: transparent;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-sm);
  padding: 12px 28px;
  font-family: 'Mulish', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--muted); cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.org-expand-btn:hover { color: var(--text); border-color: var(--blue); }
.org-expand-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.org-expand-btn svg { transition: transform 0.3s; }
.org-expand-btn.hidden { display: none; }

/* ════════════════════════════════════════════
   LOADING OVERLAY
   ════════════════════════════════════════════ */
.loading-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.loading-overlay.open { display: flex; }

.loading-box {
  background: var(--surface2);
  border: 1px solid var(--border-hi);
  border-radius: var(--r);
  padding: 48px 44px 40px;
  max-width: 380px; width: 90%;
  text-align: center;
  animation: popIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden;
}
.loading-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.loading-progress-bar {
  position: absolute; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 3px 3px 0 0;
  transition: width 0.4s ease;
}
.loading-spinner {
  width: 56px; height: 56px;
  margin: 0 auto 24px;
  position: relative;
}
.loading-spinner::before, .loading-spinner::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}
.loading-spinner::before {
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  animation: spin 0.85s linear infinite;
}
.loading-spinner::after {
  border-bottom-color: var(--purple);
  border-left-color: var(--purple);
  animation: spin 0.85s linear infinite reverse;
  inset: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-emoji { font-size: 44px; margin-bottom: 20px; display: none; animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.loading-title { font-family: 'Unbounded', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; min-height: 24px; transition: opacity 0.2s; }
.loading-step  { font-size: 13px; color: var(--muted); line-height: 1.5; min-height: 40px; transition: opacity 0.2s; }
.loading-banks { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.loading-bank-dot {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', sans-serif; font-size: 8px; font-weight: 900; color: #fff;
  opacity: 0.2; transition: opacity 0.3s, transform 0.3s;
  transform: scale(0.85);
}
.loading-bank-dot.active { opacity: 1; transform: scale(1); }

/* ════════════════════════════════════════════
   МОДАЛЬНОЕ ОКНО
   ════════════════════════════════════════════ */
.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 100;
  align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface2);
  border: 1px solid var(--border-hi);
  border-radius: var(--r);
  padding: 40px; max-width: 400px; width: 90%;
  text-align: center;
  animation: popIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
.modal-emoji { font-size: 48px; margin-bottom: 16px; }
.modal h3 { font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.modal p  { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; }
.modal-btn {
  width: 100%; height: 48px;
  background: var(--blue); color: #fff;
  border: none; border-radius: var(--r-sm);
  font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background 0.15s;
}
.modal-btn:hover { background: #3a7aef; }

/* ════════════════════════════════════════════
   ПОДВАЛ
   ════════════════════════════════════════════ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
.footer-logo {
  display: inline-flex; flex-direction: column;
  align-items: center; gap: 0;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px; font-weight: 900;
  margin-bottom: 20px;
}
.footer-logo .kre  { color: var(--text); line-height: 1; }
.footer-logo .dit  { color: var(--blue); line-height: 1; }
.footer-logo .dot-rf { font-size: 9px; color: var(--muted); letter-spacing: 2px; margin-top: 3px; }
.footer-logo .logo-divider { width: 100%; height: 1px; background: linear-gradient(90deg, var(--blue), var(--purple)); }
.footer-copy { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.footer-disclaimer { font-size: 11px; color: rgba(107,122,159,0.45); }

/* ════════════════════════════════════════════
   АДАПТИВ
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .benefits-grid       { grid-template-columns: 1fr 1fr; }
  .offers-grid         { grid-template-columns: 1fr 1fr; }
  .sliders-row         { grid-template-columns: 1fr; gap: 20px; }
  .fields-row          { grid-template-columns: 1fr 1fr; }
  .header-nav          { display: none; }
  .calc-card           { padding: 24px 20px; }
  .hero                { padding: 60px 0 72px; }
}
@media (max-width: 480px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .offers-grid   { grid-template-columns: 1fr; }
  .fields-row    { grid-template-columns: 1fr; }
  .hero-stats    { gap: 24px; }
}

/* ════════════════════════════════════════════
   СТРАНИЦА ОФФЕРА
   ════════════════════════════════════════════ */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; margin-bottom: 32px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

.offer-page {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--r);
  padding: 40px;
  position: relative; overflow: hidden;
}
.offer-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.offer-page-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.offer-page-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px; font-weight: 900; color: #fff; flex-shrink: 0;
}
.offer-page-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px; font-weight: 900;
  color: var(--text); margin-bottom: 8px;
}

.offer-page-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.offer-stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.offer-stat-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.offer-stat-val   { font-family: 'Unbounded', sans-serif; font-size: 20px; font-weight: 900; color: var(--text); }
.offer-stat-note  { font-size: 11px; color: var(--muted); }

.offer-page-desc {
  font-size: 15px; color: var(--muted); line-height: 1.7;
  margin-bottom: 28px;
}

.offer-page-cta {
  display: flex; align-items: center; justify-content: center;
  height: 56px; width: 100%; max-width: 400px;
  border-radius: var(--r-sm);
  font-family: 'Unbounded', sans-serif;
  font-size: 13px; font-weight: 700;
  text-decoration: none; margin-bottom: 36px;
}

.offer-page-legal {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 32px;
}
.offer-legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.offer-legal-item {
  display: flex; flex-direction: column; gap: 3px;
}
.offer-legal-item span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.offer-legal-item b    { font-size: 13px; font-weight: 600; color: var(--text); }
.offer-legal-item a    { color: var(--blue2); text-decoration: none; }
.offer-legal-item a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════
   НОВОСТИ RSS
   ════════════════════════════════════════════ */
.news-section { padding: 80px 0; }

.news-sources { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.news-source-badge {
  font-size: 10px; font-weight: 700;
  color: #fff; padding: 4px 10px; border-radius: 100px;
  letter-spacing: 0.3px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.news-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.news-card-source {
  display: inline-flex;
  width: fit-content;
  font-size: 9px; font-weight: 700;
  color: #fff; padding: 3px 8px; border-radius: 100px;
  letter-spacing: 0.5px;
}
.news-card-title {
  font-size: 14px; font-weight: 700;
  color: var(--text); line-height: 1.45;
}
.news-card-desc {
  font-size: 12px; color: var(--muted); line-height: 1.55;
  flex: 1;
}
.news-card-date {
  font-size: 11px; color: rgba(107,122,159,0.5);
  margin-top: auto;
}

/* ─── АДАПТИВ ДОПОЛНЕНИЯ ─── */
@media (max-width: 768px) {
  .news-grid           { grid-template-columns: 1fr 1fr; }
  .offer-page-stats    { grid-template-columns: 1fr 1fr; }
  .offer-legal-grid    { grid-template-columns: 1fr; }
  .offer-page          { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ─── ЛОГОТИП В ПЛИТКЕ ─── */
.tile-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ─── COVER IMAGE 16:9 ─── */
.tile-cover {
  position: relative;
  width: calc(100% + 40px);
  margin: -22px -20px 0;
  height: 100px;
  overflow: hidden;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
}
.tile-cover img {
  max-width: 100%;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.tile-best--cover {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(245,166,35,0.92);
  color: #1a0e00;
  border: none;
  backdrop-filter: blur(4px);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}
.tile-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
}

/* ─── УТП В ПЛИТКЕ ─── */
.tile-utp {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(34,211,160,0.1);
  border: 1px solid rgba(34,211,160,0.2);
  border-radius: 6px;
  padding: 4px 8px;
  margin-top: 4px;
  line-height: 1.4;
  display: inline-block;
}

/* ─── ВКЛАДКИ ОФФЕРОВ ─── */
.offer-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.offer-tab {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border-hi);
  background: transparent;
  font-family: 'Mulish', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.offer-tab:hover {
  border-color: var(--blue);
  color: var(--text);
}
.offer-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,142,255,0.35);
}
.offer-tab[data-tab="micro"].active    { background: var(--gold);   border-color: var(--gold);   box-shadow: 0 4px 16px rgba(245,166,35,0.35); color: #1a0e00; }
.offer-tab[data-tab="refinance"].active { background: var(--green); border-color: var(--green);  box-shadow: 0 4px 16px rgba(34,211,160,0.35); color: #0a1f17; }

/* ─── СТИЛЬ ПЛИТКИ РЕФИНАНСИРОВАНИЯ ─── */
.offer-tile.refinance::before { background: linear-gradient(90deg, var(--green), var(--blue)); }
.tile-btn.refinance { background: linear-gradient(135deg, var(--green), var(--blue)); color: #fff; }
.tile-type-tag.refinance { background: rgba(34,211,160,0.1); color: var(--green); border: 1px solid rgba(34,211,160,0.2); }

/* ─── ПЕРЕКЛЮЧАТЕЛЬ ТИПА ПРОДУКТА ─── */
.product-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.product-btn {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--border-hi);
  background: var(--surface2);
  font-family: 'Mulish', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.product-btn:hover {
  border-color: var(--blue);
  color: var(--text);
}
.product-btn.active[data-type="micro"] {
  background: rgba(245,166,35,0.15);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
}
.product-btn.active[data-type="credit"] {
  background: rgba(79,142,255,0.15);
  border-color: var(--blue);
  color: var(--blue2);
  box-shadow: 0 0 0 3px rgba(79,142,255,0.1);
}
.product-btn.active[data-type="refinance"] {
  background: rgba(34,211,160,0.12);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,211,160,0.1);
}

/* ─── КНОПКА «ПОКАЗАТЬ ВСЕ ПРЕДЛОЖЕНИЯ» ─── */
.show-all-btn {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  background: transparent;
  border: 1.5px solid var(--border-hi);
  border-radius: var(--r-sm);
  font-family: 'Mulish', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.show-all-btn:hover {
  border-color: var(--blue);
  color: var(--text);
  background: rgba(79,142,255,0.05);
}

/* ─── СУММА В ПЛИТКЕ ─── */
.tile-amount {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tile-amount-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* ─── РУЧНОЙ ВВОД СУММЫ ─── */
.range-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}
.amount-input {
  width: 130px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Unbounded', sans-serif;
  color: var(--text);
  outline: none;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.amount-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,142,255,0.15);
}

/* ─── ИНЛАЙН ПОЛЕ СУММЫ ─── */
.slider-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.amount-input-inline {
  flex: 1;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 22px;
  font-weight: 900;
  font-family: 'Unbounded', sans-serif;
  color: var(--text);
  outline: none;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
  min-width: 0;
}
.amount-input-inline::-webkit-outer-spin-button,
.amount-input-inline::-webkit-inner-spin-button { -webkit-appearance: none; }
.amount-input-inline:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,142,255,0.15);
}