/* ==========================================================================
   kreditburada.az — əsas stil faylı
   Rənglər admin paneldən (Kreditburada → Dizayn və CSS) dəyişdirilə bilər.
   Öz stillərinizi bu fayla YOX, assets/css/custom.css faylına yazın.
   ========================================================================== */

:root {
  --kb-ink: #2A2145;
  --kb-ink-2: #3A2F5E;
  --kb-violet: #5A43C6;
  --kb-violet-dark: #46329F;
  --kb-lilac: #B9A5F3;
  --kb-lilac-soft: #E2D8FC;
  --kb-mist: #F4F0FD;
  --kb-white: #FFFFFF;
  --kb-gold: #E6D29A;
  --kb-text: #2A2145;
  --kb-muted: #625B7C;
  --kb-line: #E6DFF7;
  --kb-good: #1F8A5B;
  --kb-bad: #C2410C;

  --kb-font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --kb-r-xl: 32px;
  --kb-r-lg: 24px;
  --kb-r-md: 16px;
  --kb-r-sm: 12px;

  --kb-shadow: 0 24px 60px -28px rgba(70, 50, 159, .35);
  --kb-container: 1200px;
  --kb-gap: clamp(16px, 3vw, 32px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--kb-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--kb-text);
  background: var(--kb-white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--kb-violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--kb-violet-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--kb-ink); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 300; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--kb-violet); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text, .kb-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.kb-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--kb-ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.kb-skip:focus { top: 12px; color: #fff; }

.kb-container { width: 100%; max-width: var(--kb-container); margin: 0 auto; padding: 0 var(--kb-gap); }
.kb-section { padding: clamp(56px, 8vw, 96px) 0; }
.kb-section--mist { background: var(--kb-mist); }
.kb-section--plum { background: var(--kb-ink); color: #fff; }
.kb-section--plum h2, .kb-section--plum h3 { color: #fff; }
.kb-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.kb-section__head h2 { margin: 0; max-width: 30ch; }
.kb-section__lead { color: var(--kb-muted); max-width: 60ch; margin: 8px 0 0; }
.kb-note { font-size: .85rem; color: var(--kb-muted); margin: 16px 0 0; }

/* ---------- Buttons ---------- */
.kb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: var(--kb-r-sm);
  font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.kb-btn:active { transform: translateY(1px); }
.kb-btn--primary { background: var(--kb-violet); color: #fff; }
.kb-btn--primary:hover { background: var(--kb-violet-dark); color: #fff; }
.kb-btn--dark { background: var(--kb-ink); color: #fff; }
.kb-btn--dark:hover { background: var(--kb-ink-2); color: #fff; }
.kb-btn--light { background: #fff; color: var(--kb-ink); }
.kb-btn--light:hover { background: var(--kb-gold); color: var(--kb-ink); }
.kb-btn--ghost { background: transparent; color: var(--kb-violet); border-color: var(--kb-violet); }
.kb-btn--ghost:hover { background: var(--kb-violet); color: #fff; }
.kb-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.kb-btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.kb-btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.kb-btn--block { width: 100%; }

/* ---------- Header ---------- */
.kb-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--kb-line);
}
.admin-bar .kb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .kb-header { top: 0; } }
.kb-header__bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.kb-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.kb-logo__icon { width: 38px; height: 38px; }
.kb-logo__word { font-size: 1.45rem; font-weight: 300; letter-spacing: .06em; color: var(--kb-violet-dark); line-height: 1; }
.kb-logo__word span { color: var(--kb-lilac); }
.kb-logo img.custom-logo { max-height: 48px; width: auto; }
.kb-nav { margin-left: auto; }
.kb-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.kb-nav a {
  display: block; padding: 10px 14px; border-radius: 10px; color: var(--kb-ink);
  text-decoration: none; font-weight: 500; font-size: .95rem;
}
.kb-nav a:hover, .kb-nav .current-menu-item > a, .kb-nav .current-menu-ancestor > a, .kb-nav .current_page_item > a { background: var(--kb-mist); color: var(--kb-violet-dark); }
.kb-header__cta { flex-shrink: 0; }
/* Menyu heç vaxt gizlənmir: dar ekranda logonun altında ayrıca sətirdə görünür. */
.kb-burger { display: none !important; }
@media (max-width: 1100px) {
  .kb-header__cta { display: none; }
}
@media (max-width: 900px) {
  .kb-header__bar { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 12px; }
  .kb-nav { margin-left: 0; width: 100%; padding: 10px 0 12px; }
  .kb-nav ul { flex-wrap: wrap; gap: 6px; }
  .kb-nav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--kb-mist); font-size: .9rem; }
}
@media (max-width: 420px) {
  .kb-nav a { padding: 7px 11px; font-size: .84rem; }
}

/* ---------- Breadcrumbs & page hero ---------- */
.kb-crumbs { font-size: .85rem; color: var(--kb-muted); margin-bottom: 18px; }
.kb-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.kb-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--kb-lilac); }
.kb-crumbs a { color: var(--kb-muted); text-decoration: none; }
.kb-crumbs a:hover { color: var(--kb-violet); }
.kb-pagehero { position: relative; overflow: hidden; background: var(--kb-mist); padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }
.kb-pagehero::after {
  content: ""; position: absolute; right: -14%; top: -55%; width: 62%; aspect-ratio: 1.15; border-radius: 50%;
  background: var(--kb-lilac-soft); z-index: 0;
}
.kb-pagehero > .kb-container { position: relative; z-index: 1; }
.kb-pagehero h1 { max-width: 20ch; margin-bottom: 12px; }
.kb-pagehero p.kb-pagehero__lead { font-size: 1.1rem; color: var(--kb-muted); max-width: 58ch; margin: 0; }

/* ---------- Hero / Calculator ---------- */
.kb-hero { position: relative; overflow: hidden; background: var(--kb-mist); padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.kb-hero::before {
  content: ""; position: absolute; left: 38%; top: -30%; width: 90%; aspect-ratio: 1.25; border-radius: 50%;
  background: var(--kb-lilac-soft);
}
.kb-hero > .kb-container { position: relative; z-index: 1; }
.kb-hero__intro { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.kb-hero__intro h1 { margin-bottom: 14px; }
.kb-hero__intro p { font-size: 1.12rem; color: var(--kb-muted); margin: 0; max-width: 52ch; }

.kb-calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; filter: drop-shadow(0 30px 50px rgba(70,50,159,.18)); }
.kb-calc__inputs { background: #fff; border-radius: var(--kb-r-xl) 0 0 var(--kb-r-xl); padding: clamp(24px, 3.5vw, 44px); }
.kb-calc__result {
  background: var(--kb-ink); color: #fff; border-radius: 0 var(--kb-r-xl) var(--kb-r-xl) 0;
  padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 22px;
}
.kb-field { margin-bottom: 26px; }
.kb-field:last-child { margin-bottom: 0; }
.kb-field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.kb-field label { font-size: .9rem; color: var(--kb-muted); font-weight: 500; }
.kb-field__hint { font-size: .8rem; color: var(--kb-muted); }
.kb-input {
  display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--kb-line); border-radius: var(--kb-r-md);
  background: #FBFAFF; padding: 0 16px; min-height: 58px; transition: border-color .15s;
}
.kb-input:focus-within { border-color: var(--kb-violet); background: #fff; }
.kb-input input {
  border: 0; outline: 0; background: transparent; width: 100%; font-size: 1.25rem; font-weight: 500; color: var(--kb-ink);
  -moz-appearance: textfield; appearance: textfield; min-width: 0;
}
.kb-input input::-webkit-outer-spin-button, .kb-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kb-input__suffix { color: var(--kb-muted); font-weight: 500; white-space: nowrap; }
.kb-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 10px 0 0; cursor: pointer; --kb-fill: 50%; }
.kb-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--kb-violet) var(--kb-fill), var(--kb-lilac-soft) var(--kb-fill)); }
.kb-range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--kb-lilac-soft); }
.kb-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--kb-violet); }
.kb-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--kb-violet); border: 5px solid #fff; box-shadow: 0 0 0 1.5px var(--kb-violet); margin-top: -9px; }
.kb-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--kb-violet); border: 4px solid #fff; box-shadow: 0 0 0 1.5px var(--kb-violet); }
.kb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kb-chip {
  min-width: 58px; min-height: 42px; padding: 0 14px; border-radius: var(--kb-r-sm); border: 0; cursor: pointer;
  background: var(--kb-mist); color: var(--kb-ink); font-weight: 600; font-size: .95rem;
}
.kb-chip:hover { background: var(--kb-lilac-soft); }
.kb-chip.is-active { background: var(--kb-violet); color: #fff; }

.kb-calc__result-title { font-size: 1.05rem; font-weight: 500; color: rgba(255,255,255,.75); margin: 0; }
.kb-donut { position: relative; width: min(230px, 70%); margin: 0 auto; }
.kb-donut svg { width: 100%; transform: rotate(-90deg); }
.kb-donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.kb-donut__value { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.kb-donut__label { font-size: .85rem; color: rgba(255,255,255,.65); margin-top: 4px; }
.kb-legend { list-style: none; margin: 0; padding: 18px 20px; background: rgba(255,255,255,.06); border-radius: var(--kb-r-md); }
.kb-legend li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: .93rem; }
.kb-legend li + li { border-top: 1px solid rgba(255,255,255,.08); }
.kb-legend i { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.kb-legend span { color: rgba(255,255,255,.75); }
.kb-legend strong { margin-left: auto; font-weight: 600; white-space: nowrap; }
.kb-calc__actions { display: grid; gap: 10px; margin-top: auto; }
.kb-calc__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; }
.kb-calc__foot .kb-note { margin: 0; max-width: 70ch; }

.kb-schedule { margin-top: 28px; background: #fff; border-radius: var(--kb-r-lg); padding: clamp(18px, 3vw, 32px); box-shadow: var(--kb-shadow); }
.kb-schedule[hidden] { display: none; }
.kb-schedule__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.kb-schedule h2, .kb-schedule h3 { font-size: 1.25rem; margin: 0; }
.kb-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kb-schedule__table-wrap { max-height: 440px; overflow: auto; border: 1px solid var(--kb-line); border-radius: var(--kb-r-sm); }
.kb-schedule table { font-size: .92rem; min-width: 560px; }
.kb-schedule th { position: sticky; top: 0; background: var(--kb-mist); text-align: right; padding: 10px 14px; font-weight: 600; font-size: .82rem; color: var(--kb-muted); }
.kb-schedule td { text-align: right; padding: 9px 14px; border-top: 1px solid var(--kb-line); font-variant-numeric: tabular-nums; }
.kb-schedule th:first-child, .kb-schedule td:first-child { text-align: left; }

@media (max-width: 880px) {
  .kb-calc { grid-template-columns: 1fr; }
  .kb-calc__inputs { border-radius: var(--kb-r-xl) var(--kb-r-xl) 0 0; }
  .kb-calc__result { border-radius: 0 0 var(--kb-r-xl) var(--kb-r-xl); }
}

/* ---------- Trust strip ---------- */
.kb-trust { background: var(--kb-ink); color: #fff; }
.kb-trust ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 44px; }
.kb-trust li { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .98rem; }
.kb-trust svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Bank table ---------- */
.kb-table-card { background: #fff; border-radius: var(--kb-r-lg); border: 1px solid var(--kb-line); overflow: hidden; }
.kb-banks { min-width: 640px; }
.kb-banks th {
  text-align: left; font-size: .82rem; font-weight: 600; color: var(--kb-muted); padding: 16px 22px;
  background: var(--kb-mist); border-bottom: 1px solid var(--kb-line); white-space: nowrap;
}
.kb-banks td { padding: 18px 22px; border-bottom: 1px solid var(--kb-line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.kb-banks tr:last-child td { border-bottom: 0; }
.kb-banks tbody tr { transition: background .15s; }
.kb-banks tbody tr:hover { background: #FBFAFF; }
.kb-bank { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--kb-ink); }
.kb-bank__badge {
  width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff; background: var(--kb-violet); flex-shrink: 0; overflow: hidden;
}
.kb-bank__badge img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.kb-bank small { display: block; font-weight: 400; color: var(--kb-muted); font-size: .8rem; }
.kb-rate { font-size: 1.25rem; font-weight: 600; color: var(--kb-violet-dark); white-space: nowrap; }
.kb-rate small { font-size: .8rem; font-weight: 500; color: var(--kb-muted); }
.kb-banks .kb-pay { font-weight: 600; white-space: nowrap; }
.kb-banks tr.is-out { opacity: .45; }
.kb-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.kb-tag[hidden] { display: none; }
.kb-tag--ok { background: #E3F5EC; color: var(--kb-good); }
.kb-tag--no { background: #FDECE3; color: var(--kb-bad); }
.kb-tag--best { background: var(--kb-gold); color: var(--kb-ink); }
.kb-banks__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.kb-banks__foot .kb-note { margin: 0; }

.kb-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; background: #fff; border: 1px solid var(--kb-line); border-radius: var(--kb-r-lg); padding: 20px; margin-bottom: 20px; align-items: end; }
.kb-filter label { display: block; font-size: .82rem; color: var(--kb-muted); font-weight: 500; margin-bottom: 6px; }
.kb-filter .kb-input { min-height: 50px; }
.kb-filter .kb-input input { font-size: 1.05rem; }
.kb-select { width: 100%; min-height: 50px; border: 1.5px solid var(--kb-line); border-radius: var(--kb-r-md); padding: 0 14px; background: #FBFAFF; font-weight: 500; }
.kb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.kb-tabs a { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--kb-line); text-decoration: none; color: var(--kb-ink); font-weight: 500; font-size: .92rem; }
.kb-tabs a.is-active, .kb-tabs a:hover { background: var(--kb-violet); border-color: var(--kb-violet); color: #fff; }
@media (max-width: 780px) { .kb-filter { grid-template-columns: 1fr 1fr; } }

/* ---------- Credit types ---------- */
.kb-credits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.kb-credit {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 22px;
  background: #fff; border-radius: var(--kb-r-lg); text-decoration: none; color: var(--kb-ink);
  border: 1.5px solid transparent; transition: border-color .15s, transform .15s;
  min-height: 230px;
}
.kb-section--mist .kb-credit { background: #fff; }
.kb-credit:hover { border-color: var(--kb-violet); color: var(--kb-ink); transform: translateY(-2px); }
.kb-credit__icon { width: 54px; height: 54px; border-radius: 16px; background: var(--kb-mist); display: flex; align-items: center; justify-content: center; color: var(--kb-violet); }
.kb-credit__icon svg { width: 28px; height: 28px; }
.kb-credit h3 { margin: 0; font-size: 1.1rem; }
.kb-credit p { margin: 0; font-size: .9rem; color: var(--kb-muted); line-height: 1.5; }
.kb-credit__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--kb-line); font-size: .88rem; }
.kb-credit__meta strong { color: var(--kb-violet-dark); }
.kb-credit__arrow { width: 32px; height: 32px; border-radius: 50%; background: var(--kb-mist); display: inline-flex; align-items: center; justify-content: center; color: var(--kb-violet); transition: background .15s, color .15s; }
.kb-credit:hover .kb-credit__arrow { background: var(--kb-violet); color: #fff; }
.kb-credit--featured { background: var(--kb-ink) !important; color: #fff; }
.kb-credit--featured h3 { color: #fff; }
.kb-credit--featured p { color: rgba(255,255,255,.7); }
.kb-credit--featured .kb-credit__icon { background: rgba(255,255,255,.1); color: var(--kb-gold); }
.kb-credit--featured .kb-credit__meta { border-color: rgba(255,255,255,.12); }
.kb-credit--featured .kb-credit__meta strong { color: var(--kb-gold); }
.kb-credit--featured:hover { color: #fff; border-color: var(--kb-gold); }
@media (max-width: 1100px) { .kb-credits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .kb-credits { grid-template-columns: 1fr 1fr; } .kb-credit { min-height: 0; } }
@media (max-width: 460px) { .kb-credits { grid-template-columns: 1fr; } }

/* ---------- Rates ---------- */
.kb-rates-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.kb-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kb-rate-card { background: #fff; border-radius: var(--kb-r-lg); padding: 20px 22px; border: 1px solid var(--kb-line); }
.kb-rate-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.kb-rate-card__code { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--kb-ink); }
.kb-rate-card__sym { width: 36px; height: 36px; border-radius: 12px; background: var(--kb-mist); color: var(--kb-violet); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.kb-rate-card__val { font-size: 1.7rem; font-weight: 300; letter-spacing: -.02em; color: var(--kb-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.kb-rate-card__name { font-size: .82rem; color: var(--kb-muted); margin-top: 4px; }
.kb-delta { font-size: .8rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--kb-mist); color: var(--kb-muted); white-space: nowrap; }
.kb-delta--up { background: #E3F5EC; color: var(--kb-good); }
.kb-delta--down { background: #FDECE3; color: var(--kb-bad); }
.kb-rates-table td, .kb-rates-table th { padding: 14px 20px; border-bottom: 1px solid var(--kb-line); text-align: left; }
.kb-rates-table th { background: var(--kb-mist); font-size: .82rem; color: var(--kb-muted); font-weight: 600; }
.kb-rates-table td.num, .kb-rates-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.kb-rates-table tr:last-child td { border-bottom: 0; }
.kb-rates-table .kb-rates-table__val { font-weight: 600; font-size: 1.05rem; }
.kb-converter { background: var(--kb-ink); color: #fff; border-radius: var(--kb-r-xl); padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; }
.kb-converter h2 { color: #fff; font-size: 1.4rem; margin: 0; }
.kb-converter .kb-input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.kb-converter .kb-input input, .kb-converter .kb-input select { color: #fff; }
.kb-converter select { background: transparent; border: 0; font-weight: 600; outline: 0; }
.kb-converter select option { color: var(--kb-ink); }
.kb-converter__out { font-size: 2rem; font-weight: 300; }
.kb-converter__out small { font-size: .9rem; color: rgba(255,255,255,.7); display: block; }
@media (max-width: 880px) { .kb-rates-wrap { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .kb-rates { grid-template-columns: 1fr; } }

/* ---------- Posts ---------- */
.kb-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kb-post { display: flex; flex-direction: column; background: #fff; border-radius: var(--kb-r-lg); overflow: hidden; border: 1px solid var(--kb-line); }
.kb-post__img { display: block; aspect-ratio: 16 / 9; background: var(--kb-mist); overflow: hidden; }
.kb-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.kb-post:hover .kb-post__img img { transform: scale(1.03); }
.kb-post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kb-post__meta { font-size: .8rem; color: var(--kb-muted); }
.kb-post h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.kb-post h3 a { color: var(--kb-ink); text-decoration: none; }
.kb-post h3 a:hover { color: var(--kb-violet); }
.kb-post p { margin: 0; color: var(--kb-muted); font-size: .94rem; }
.kb-post__more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .9rem; text-decoration: none; }
@media (max-width: 960px) { .kb-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .kb-posts { grid-template-columns: 1fr; } }

.kb-pagination { margin-top: 40px; display: flex; justify-content: center; }
.kb-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--kb-line); text-decoration: none; color: var(--kb-ink); font-weight: 600; }
.kb-pagination .page-numbers.current, .kb-pagination .page-numbers:hover { background: var(--kb-violet); color: #fff; border-color: var(--kb-violet); }

/* ---------- Article / prose ---------- */
.kb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.kb-layout--narrow { max-width: 820px; margin: 0 auto; display: block; }
@media (max-width: 960px) { .kb-layout { grid-template-columns: 1fr; } }
.kb-prose { font-size: 1.05rem; line-height: 1.8; max-width: 72ch; }
.kb-prose h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; }
.kb-prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.kb-prose > :first-child { margin-top: 0; }
.kb-prose ul, .kb-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.kb-prose li { margin-bottom: .4em; }
.kb-prose li::marker { color: var(--kb-violet); }
.kb-prose blockquote { margin: 1.5em 0; padding: 18px 24px; background: var(--kb-mist); border-radius: var(--kb-r-md); border-left: 4px solid var(--kb-violet); }
.kb-prose table { margin: 1.5em 0; font-size: .95rem; }
.kb-prose th, .kb-prose td { border: 1px solid var(--kb-line); padding: 10px 14px; text-align: left; }
.kb-prose th { background: var(--kb-mist); }
.kb-prose img { border-radius: var(--kb-r-md); }
.kb-prose .wp-block-image { margin: 1.5em 0; }
.kb-article__head { margin-bottom: 28px; }
.kb-article__meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--kb-muted); font-size: .9rem; margin-top: 12px; }
.kb-article__cover { border-radius: var(--kb-r-xl); overflow: hidden; margin: 0 0 36px; aspect-ratio: 16/8; background: var(--kb-mist); }
.kb-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.kb-side { position: sticky; top: 100px; display: grid; gap: 20px; }
.admin-bar .kb-side { top: 132px; }
.kb-side-card { background: var(--kb-mist); border-radius: var(--kb-r-lg); padding: 24px; }
.kb-side-card h2, .kb-side-card h3 { font-size: 1.1rem; }
.kb-side-card--dark { background: var(--kb-ink); color: #fff; }
.kb-side-card--dark h2, .kb-side-card--dark h3 { color: #fff; }
.kb-side-card--dark p { color: rgba(255,255,255,.75); font-size: .93rem; }
.kb-side-list { list-style: none; padding: 0; margin: 0; }
.kb-side-list li + li { border-top: 1px solid var(--kb-line); }
.kb-side-list a { display: block; padding: 10px 0; text-decoration: none; color: var(--kb-ink); font-weight: 500; font-size: .95rem; }
.kb-side-list a:hover { color: var(--kb-violet); }

/* ---------- Credit single ---------- */
.kb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; max-width: 760px; }
.kb-fact { background: #fff; border-radius: var(--kb-r-md); padding: 18px 20px; }
.kb-fact span { display: block; font-size: .82rem; color: var(--kb-muted); }
.kb-fact strong { display: block; font-size: 1.3rem; font-weight: 600; color: var(--kb-violet-dark); margin-top: 2px; }
@media (max-width: 620px) { .kb-facts { grid-template-columns: 1fr; } }

.kb-faq { display: grid; gap: 12px; }
.kb-faq details { background: #fff; border: 1px solid var(--kb-line); border-radius: var(--kb-r-md); padding: 0 22px; }
.kb-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.kb-faq summary::-webkit-details-marker { display: none; }
.kb-faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; color: var(--kb-violet); line-height: 1; transition: transform .2s; }
.kb-faq details[open] summary::after { transform: rotate(45deg); }
.kb-faq details > div { padding: 0 0 18px; color: var(--kb-muted); }

/* ---------- Contact ---------- */
.kb-contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); }
.kb-contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.kb-contact__list li { display: flex; gap: 14px; align-items: flex-start; background: var(--kb-mist); border-radius: var(--kb-r-md); padding: 18px 20px; }
.kb-contact__list svg { width: 22px; height: 22px; color: var(--kb-violet); flex-shrink: 0; margin-top: 2px; }
.kb-contact__list span { display: block; font-size: .82rem; color: var(--kb-muted); }
.kb-contact__list a, .kb-contact__list strong { font-weight: 600; color: var(--kb-ink); text-decoration: none; }
.kb-form { background: #fff; border: 1px solid var(--kb-line); border-radius: var(--kb-r-xl); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; }
.kb-form label { display: block; font-size: .88rem; font-weight: 500; color: var(--kb-muted); margin-bottom: 6px; }
.kb-form input, .kb-form textarea { width: 100%; border: 1.5px solid var(--kb-line); border-radius: var(--kb-r-sm); background: #FBFAFF; padding: 14px 16px; outline: 0; }
.kb-form input:focus, .kb-form textarea:focus { border-color: var(--kb-violet); background: #fff; }
.kb-form textarea { min-height: 150px; resize: vertical; }
.kb-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kb-form__hp { position: absolute; left: -9999px; }
.kb-alert { padding: 14px 18px; border-radius: var(--kb-r-sm); font-weight: 500; }
.kb-alert--ok { background: #E3F5EC; color: var(--kb-good); }
.kb-alert--err { background: #FDECE3; color: var(--kb-bad); }
@media (max-width: 860px) { .kb-contact { grid-template-columns: 1fr; } .kb-form__row { grid-template-columns: 1fr; } }

/* ---------- Custom (admin) sections ---------- */
.kb-custom-section .kb-prose { max-width: none; }

/* ---------- 404 / search ---------- */
.kb-empty { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.kb-empty__code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 200; color: var(--kb-lilac); line-height: 1; letter-spacing: -.04em; }
.kb-search { display: flex; gap: 8px; max-width: 520px; margin: 24px auto 0; }
.kb-search input { flex: 1; min-height: 52px; border: 1.5px solid var(--kb-line); border-radius: var(--kb-r-sm); padding: 0 16px; background: #fff; }

/* ---------- Footer ---------- */
.kb-footer { background: var(--kb-ink); color: rgba(255,255,255,.78); padding: clamp(48px, 7vw, 80px) 0 28px; font-size: .95rem; }
.kb-footer a { color: #fff; text-decoration: none; }
.kb-footer a:hover { color: var(--kb-gold); }
.kb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.kb-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.kb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kb-footer .kb-logo__word { color: #fff; }
.kb-footer .kb-logo__icon rect, .kb-footer .kb-logo__icon path:first-of-type { fill: #fff; stroke: #fff; }
.kb-footer__about { margin-top: 16px; max-width: 34ch; }
.kb-social { display: flex; gap: 10px; margin-top: 18px; }
.kb-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; }
.kb-social a:hover { background: var(--kb-violet); color: #fff; }
.kb-social svg { width: 18px; height: 18px; }
.kb-disclaimer { margin-top: 40px; padding: 20px 24px; border-radius: var(--kb-r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: .88rem; line-height: 1.6; display: flex; gap: 14px; }
.kb-disclaimer svg { width: 22px; height: 22px; color: var(--kb-gold); flex-shrink: 0; margin-top: 1px; }
.kb-footer__bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.kb-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 900px) { .kb-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .kb-footer__grid { grid-template-columns: 1fr; } }

/* ---------- WordPress core ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--kb-muted); text-align: center; margin-top: 8px; }
.sticky, .bypostauthor, .gallery-caption { }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .kb-header, .kb-footer, .kb-calc__actions, .kb-trust { display: none; }
}

/* ---------- Extra small pieces ---------- */
.kb-check { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500; color: var(--kb-ink) !important; cursor: pointer; min-height: 50px; }
.kb-check input { width: 18px; height: 18px; accent-color: var(--kb-violet); }
.kb-converter .kb-input input { font-size: 1.2rem; }
.kb-converter .kb-btn svg { width: 18px; height: 18px; }
