/* ==========================================================================
   Cargills Bank — Homepage
   Built on Bootstrap 5.3.9 + Cargills Bank Visual Design System (proposed v1.0)
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --cb-red: #ED1C24;
  --cb-red-600: #D71920;
  --cb-red-700: #B9141B;
  --cb-red-100: #FDE8E9;
  --cb-red-50: #FFF5F5;
  --cb-orange: #F36F21;
  --cb-orange-700: #C84F10;
  --cb-orange-100: #FDEBDD;
  --cb-yellow: #FCB315;
  --cb-yellow-100: #FFF4D6;
  /* Neutral */
  --cb-ink: #171B24;
  --cb-dark: #303746;
  --cb-slate: #596273;
  --cb-muted: #87909F;
  --cb-border: #E6E8EC;
  --cb-surface: #F5F6F8;
  --cb-canvas: #FAFAFB;
  /* Type */
  --font-heading: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(23,27,36,.06);
  --shadow-md: 0 8px 24px rgba(23,27,36,.08);
  --shadow-lg: 0 16px 40px rgba(23,27,36,.12);
  /* Layout */
  --container-max: 1440px;
  --gutter-x: 80px;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--cb-ink);
  --bs-primary: var(--cb-red-600);
  --bs-primary-rgb: 215,25,32;
  --bs-link-color: var(--cb-red-700);
  --bs-link-hover-color: var(--cb-red-700);
  --bs-border-radius: 0;
}

/* ---------- 2. Base ---------- */
body { font-family: var(--font-body); color: var(--cb-ink); background: #fff; }
h1,h2,h3,h4,h5,h6,.font-heading { font-family: var(--font-heading); }
a { color: var(--cb-ink); text-decoration: none; }
a:hover { color: var(--cb-red-700); }
:focus-visible { outline: 2px solid var(--cb-red); outline-offset: 2px; }
.cb-container { max-width: var(--container-max); margin: 0 auto; padding-left: var(--gutter-x); padding-right: var(--gutter-x); }
.brand-stripe { display: flex; height: 6px; }
.brand-stripe span:nth-child(1) { flex: 6; background: var(--cb-red); }
.brand-stripe span:nth-child(2) { flex: 3; background: var(--cb-orange); }
.brand-stripe span:nth-child(3) { flex: 1; background: var(--cb-yellow); }
.visually-hidden-focusable:focus { position: fixed; top: 8px; left: 8px; z-index: 400; background: #fff; padding: 8px 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cb-red-700); }
.eyebrow .brand-stripe { height: 4px; width: 40px; }

/* Buttons (square, per design) */
.btn-cb { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; font-size: 16px; font-weight: 600;  border: 1.5px solid transparent; transition: background .2s, color .2s, filter .2s; }
.btn-cb-primary { background: var(--cb-red-600); color: #fff; }
.btn-cb-primary:hover { background: var(--cb-red-700); color: #fff; }
.btn-cb-outline { border-color: var(--cb-red-600); color: var(--cb-red-700); background: #fff; }
.btn-cb-outline:hover { background: var(--cb-red-50); color: var(--cb-red-700); }
.btn-cb-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-cb-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- 3. Page loader ---------- */
.cb-loader { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: linear-gradient(135deg, #B9141B 0%, #D71920 45%, #E2401F 75%, #F36F21 100%); transition: opacity .55s ease, visibility .55s; }
.cb-loader.is-hidden { opacity: 0; visibility: hidden; }
.cb-loader__symbol { height: 104px; animation: cbSym 1.6s ease-in-out infinite; }
.cb-loader__logo { height: 44px; filter: brightness(0) invert(1); }
.cb-loader__bar { position: relative; width: 220px; height: 4px; overflow: hidden; background: rgba(255,255,255,.25); }
.cb-loader__bar span { position: absolute; top: 0; bottom: 0; width: 40%; background: var(--cb-yellow); animation: cbBar 1.1s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes cbSym { 0%,100% { transform: scale(.92) rotate(-4deg); opacity: .75 } 50% { transform: scale(1.04) rotate(3deg); opacity: 1 } }
@keyframes cbBar { 0% { left: -40% } 100% { left: 100% } }

/* ---------- 4. Top bar ---------- */
.cb-topbar { background: var(--cb-ink); color: #E6E8EC; font-size: 13px; }
.cb-topbar .cb-container { height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cb-lang { display: flex; gap: 2px; padding: 3px;  background: var(--cb-dark); border-radius: 999px; }
.cb-lang .btn-check + label { height: 30px; padding: 0 12px; display: inline-flex; align-items: center;  font-size: 13px; font-weight: 600; color: #E6E8EC; cursor: pointer; margin: 0; border-radius: 999px; }
.cb-lang .btn-check:checked + label { background: #fff; color: var(--cb-ink); }
.cb-lang .btn-check:focus-visible + label { outline: 2px solid var(--cb-yellow); }
.cb-lang label[lang="si"] { font-family: "Noto Sans Sinhala", sans-serif; }
.cb-lang label[lang="ta"] { font-family: "Noto Sans Tamil", sans-serif; }
.cb-a11y { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--cb-slate);  background: transparent; color: #fff; font-size: 13px; font-weight: 500; border-radius: 999px; }
.cb-a11y:hover { background: rgba(255,255,255,.08); }
.cb-divider-v { width: 1px; height: 20px; background: var(--cb-slate); }
.cb-toplinks { display: flex; align-self: stretch; margin-left: auto; }
.cb-toplinks a { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; font-weight: 600; color: #fff; }
.cb-toplinks a:hover { background: rgba(255,255,255,.08); color: #fff; }
.cb-toplinks a:nth-child(1) { box-shadow: inset 0 -3px 0 #F79A3E; }
.cb-toplinks a:nth-child(2) { box-shadow: inset 0 -3px 0 #E2581B; }
.cb-toplinks a:nth-child(3) { box-shadow: inset 0 -3px 0 var(--cb-red); }

/* ---------- 5. Main header ---------- */
.cb-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--cb-border); transition: box-shadow .25s ease; }
.cb-header.is-scrolled { box-shadow: 0 8px 24px rgba(23,27,36,.10); }
.cb-header__stripe { position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; transform: scaleX(0); transform-origin: left; transition: transform .4s ease; pointer-events: none; }
.cb-header.is-scrolled .cb-header__stripe { transform: scaleX(1); }
.cb-header__stripe.brand-stripe { height: 4px; }
.cb-header__bar { height: 88px; display: flex; align-items: center; gap: 20px; }
.cb-logo { height: 46px; width: auto; }
.cb-menu-btn { height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px 0 10px; background: #fff; border: 1px solid var(--cb-border); color: var(--cb-ink); }
.cb-menu-btn:hover { background: var(--cb-surface); }
.cb-menu-btn img { height: 28px; }
.cb-menu-btn .lines { display: flex; flex-direction: column; gap: 4px; }
.cb-menu-btn .lines span { display: block; height: 2px; background: currentColor;  border-radius: 2px; }
.cb-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--cb-ink); }
.cb-icon-btn:hover, .cb-icon-btn[aria-expanded="true"] { background: var(--cb-surface); }
.cb-icon-btn[aria-expanded="true"] { background: var(--cb-red-100); color: var(--cb-red-700); }
.cb-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cb-nav__link { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; border: 0; background: transparent; font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--cb-slate); }
.cb-nav__link:hover, .cb-nav__link[aria-expanded="true"] { background: var(--cb-red-50); color: var(--cb-red-700); }
.cb-nav__link svg { transition: transform .2s; }
.cb-nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.cb-ob-btn { margin-left: 16px; height: 48px; padding: 0 22px; font-size: 15px; flex-shrink: 0; }

/* Search row */
.cb-search { border-top: 1px solid var(--cb-border); background: var(--cb-canvas); }
.cb-search form { padding-top: 20px; padding-bottom: 20px; }
.cb-search .form-control { height: 52px;  border-color: #D9DEE5; font-size: 16px; border-radius: 6px; }
.cb-search .form-control:focus { border-color: var(--cb-red); box-shadow: none; }

/* Mega menus */
.cb-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border-top: 1px solid var(--cb-border); box-shadow: var(--shadow-lg); display: none; }
.cb-mega.is-open { display: block; }
.cb-mega__grid { display: grid; padding-top: 40px; }
.cb-mega__col { display: flex; flex-direction: column; gap: 32px; padding: 0 24px 8px; }
.cb-mega__col + .cb-mega__col { border-left: 1px solid var(--cb-border); }
.cb-mega h3 { margin: 0 0 12px; padding-bottom: 14px; border-bottom: 2px solid var(--cb-red-100); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cb-red-600); }
.cb-mega ul { list-style: none; margin: 0; padding: 0; }
.cb-mega li a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.45; color: var(--cb-slate); }
.cb-mega li a:hover { color: var(--cb-red-700); text-decoration: underline; text-underline-offset: 3px; }
.cb-mega__foot { margin-top: 32px; padding: 20px 0 24px; border-top: 1px solid var(--cb-border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.cb-mega__foot p { margin: 0; font-size: 15px; color: var(--cb-slate); }
.cb-mega__cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-heading); font-size: 15px; font-weight: 800; letter-spacing: .06em; color: var(--cb-red-600); }
.cb-dd { position: relative; }
.cb-dd__menu { position: absolute; top: 100%; left: 0; z-index: 30; margin: 8px 0 0; padding: 8px; list-style: none; min-width: 260px; background: #fff; border: 1px solid var(--cb-border); box-shadow: var(--shadow-md); display: none; }
.cb-dd__menu.is-open { display: block; }
.cb-dd__menu a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: 14px; color: var(--cb-dark); }
.cb-dd__menu a:hover { background: var(--cb-red-50); color: var(--cb-red-700); }

/* ---------- 6. Site map (Bootstrap fullscreen modal) ---------- */
.cb-sitemap .modal-content { background: linear-gradient(135deg, #B9141B 0%, #C33A14 30%, #C84F10 60%, #C84F10 100%); background-attachment: fixed; color: #fff; border: 0;  }
.cb-sitemap__top { height: 88px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.2); }
.cb-sitemap__top img { height: 46px; filter: brightness(0) invert(1); }
.cb-sitemap__ob { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; background: #fff; color: var(--cb-red-700); font-size: 15px; font-weight: 600; }
.cb-sitemap__ob:hover { background: var(--cb-red-50); color: var(--cb-red-700); }
.cb-sitemap__close { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; font-family: var(--font-heading); font-size: 14px; font-weight: 600; }
.cb-sitemap__close:hover { background: rgba(255,255,255,.12); }
.cb-sitemap h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.25); font-size: 20px; font-weight: 700; color: #fff; }
.cb-sitemap h2 .ico { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }
.cb-sitemap h3 { margin: 0 0 8px; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.cb-sitemap ul { list-style: none; margin: 0 0 20px; padding: 0; }
.cb-sitemap li a, .cb-sitemap .cb-smlink { display: block; padding: 5px 0; font-size: 14px; line-height: 1.45; color: #fff; }
.cb-sitemap a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cb-sitemap__row2 { margin-top: 32px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.2); }
.cb-sitemap__bottom { margin-top: 24px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.2); }

/* ---------- 7. Rates bar ---------- */
.cb-rates { position: relative; z-index: 10; background: linear-gradient(90deg, var(--cb-red-600) 50%, var(--cb-yellow) 50%); }
.cb-rates__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.cb-rate { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 260px; padding: 20px 28px; color: #fff; }
.cb-rate:hover, .cb-rate:focus-visible { color: #fff; z-index: 2; }
.cb-rate:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.cb-rate--1 { background: var(--cb-red-600); }
.cb-rate--2 { background: var(--cb-orange-700); }
.cb-rate--3 { background: var(--cb-orange); }
.cb-rate--4 { background: var(--cb-yellow); }
.cb-rate__clip { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.cb-rate__c1 { position: absolute; width: 180px; height: 180px; right: -48px; top: -96px;  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.28), rgba(255,255,255,.06) 70%); transition: transform .4s ease; border-radius: 50%; }
.cb-rate__c2 { position: absolute; width: 110px; height: 110px; left: -36px; bottom: -64px; border-radius: 50%; background: rgba(255,255,255,.1); transition: transform .4s ease; }
.cb-rate:hover .cb-rate__c1 { transform: scale(1.15); }
.cb-rate:hover .cb-rate__c2 { position: absolute; width: 110px; height: 110px; left: -36px; bottom: -64px; border-radius: 50%; background: rgba(255,255,255,.1); transition: transform .4s ease; }
.cb-rate__ico { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); }
.cb-rate__title { font-family: var(--font-heading); font-size: 14px; font-weight: 700; line-height: 1.25; }
.cb-rate__sub { font-size: 13px; line-height: 1.4; }
.cb-rate__val { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.cb-rate__val small { font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.cb-rate__val strong { font-family: var(--font-heading); font-size: 26px; font-weight: 800; }
.cb-rate__cta { position: absolute; left: 0; right: 0; top: 100%; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: #fff; color: var(--cb-orange-700); font-size: 14px; font-weight: 600; box-shadow: 0 14px 24px rgba(23,27,36,.18); transform-origin: top center; transform: perspective(700px) rotateX(-92deg); opacity: 0; pointer-events: none; transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .18s ease; }
.cb-rate--1 .cb-rate__cta { color: var(--cb-red-700); }
.cb-rate:hover .cb-rate__cta, .cb-rate:focus-visible .cb-rate__cta { transform: perspective(700px) rotateX(0deg); opacity: 1; }

/* ---------- 8. Hero (Bootstrap carousel) ---------- */
.cb-hero { position: relative; background: var(--cb-dark); }
.cb-hero .carousel-item { min-height: 640px; }
.cb-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cb-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,27,36,.88) 0%, rgba(23,27,36,.72) 38%, rgba(23,27,36,.15) 70%, rgba(23,27,36,0) 100%); }
.cb-hero__content { position: relative; min-height: 640px; display: flex; align-items: center; padding-top: 96px; padding-bottom: 136px; }
.cb-hero__inner { max-width: 600px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; color: #fff; }
/* Parallelogram tag */
.cb-hero__tag { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 22px; font-family: var(--font-heading); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; isolation: isolate; }
.cb-hero__tag::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); transform: skewX(-18deg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cb-hero__tag svg { flex-shrink: 0; color: var(--cb-yellow); }
.cb-hero h1, .cb-hero h2 { margin: 0; font-size: 56px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.cb-hero h1 em, .cb-hero h2 em { font-style: normal; color: var(--cb-yellow); }
.cb-hero p { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: #E6E8EC; }
.cb-hero__ctrls { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 3; }
.cb-hero__ctrls .cb-container { display: flex; align-items: center; gap: 8px; }
.cb-hero__count { min-width: 64px; font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: #fff; }
.cb-dots { display: flex; align-items: center; margin: 0; position: static; padding: 0; }
.cb-dots button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.cb-dots button span { display: block; height: 4px; width: 16px; background: rgba(255,255,255,.45); transition: width .3s, background .3s; }
.cb-dots button.active span { width: 32px; background: #fff; }
.cb-round-btn { width: 44px; height: 44px;  border: 1px solid rgba(255,255,255,.4); background: rgba(23,27,36,.35); color: #fff; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
.cb-round-btn:hover { background: rgba(255,255,255,.16); }
.cb-hero__stripe { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.cb-hero .carousel-fade .carousel-item { transition-duration: .6s; }


/* Bootstrap carousel-indicator resets for custom dots */
.cb-dots.carousel-indicators { position: static; margin: 0; padding: 0; justify-content: flex-start; z-index: auto; }
.cb-ads .cb-dots.carousel-indicators { justify-content: center; margin-top: 16px; }
.cb-dots.carousel-indicators [data-bs-target] { flex: 0 0 auto; box-sizing: border-box; width: 44px; height: 44px; margin: 0; padding: 0; text-indent: 0; background: transparent; border: 0; opacity: 1; }
.cb-sitemap .modal-content { overflow-y: auto; }
.cb-sitemap .cb-container { width: 100%; flex-shrink: 0; }

/* ---------- 9. Bank with us ---------- */
.cb-bank { position: relative; overflow: hidden; background: var(--cb-surface); padding: 112px 0; }
.cb-bank__bg { position: absolute; top: 0; bottom: 0; right: 0; left: 44%; overflow: hidden; background: linear-gradient(135deg, #D71920 0%, #E2401F 55%, #F36F21 100%); }
.cb-bank__bg img { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); height: 118%; opacity: .12; }
.cb-bank__grid { position: relative; display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 24px; align-items: center; }
.cb-intro { position: relative; overflow: hidden; isolation: isolate; padding: 44px 36px 36px; color: #fff; background: linear-gradient(135deg, #D71920 0%, #E2401F 55%, #F36F21 100%); box-shadow: 0 16px 40px rgba(23,27,36,.16); }
.cb-intro__mark { position: absolute; z-index: -1; right: -40px; top: -20px; height: 340px; opacity: .1; }
.cb-intro__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-family: var(--font-heading); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cb-intro__eyebrow::before { content: ""; width: 8px; height: 8px;  background: var(--cb-yellow); border-radius: 50%; }
.cb-intro h2 { margin: 0 0 16px; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; color: #fff; }
.cb-intro h2 span { color: var(--cb-yellow); }
.cb-intro__lead { margin: 0 0 6px; font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.cb-intro__text { margin: 0 0 24px; font-size: 15px; line-height: 1.6; }
.cb-intro__label { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.cb-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); }
.cb-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 16px 0; }
.cb-stats > div + div { padding: 16px 0 16px 20px; border-left: 1px solid rgba(255,255,255,.35); }
.cb-stats strong { font-family: var(--font-heading); font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.cb-stats span, .cb-hours small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cb-hours { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.cb-hours__ico { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.cb-hours strong { font-family: var(--font-heading); font-size: 20px; line-height: 1.1; font-weight: 800; }
.cb-hours__bar { position: relative; display: block; height: 6px; background: linear-gradient(90deg, #FCB315 0%, #FFFFFF 50%, #171B24 100%); }
.cb-hours__bar::before, .cb-hours__bar::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px;  background: #fff; border-radius: 50%; }
.cb-hours__bar::before { left: 0; border: 3px solid var(--cb-yellow); }
.cb-hours__bar::after { right: 0; border: 3px solid var(--cb-ink); }
.cb-outlets { margin: 24px -36px -36px; padding: 18px 36px; background: #fff; }
.cb-outlets p { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cb-slate); }
.cb-outlets__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.cb-outlets__grid span { height: 64px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cb-outlets__grid span img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cb-outlets__grid .fc { background: #E0001B; }
.cb-outlets__grid .fc img { height: 100%; }
.cb-outlets__grid .ex { background: #C7021E; padding: 6px; }
.cb-outlets__grid .fh { background: #fff; border: 1px solid var(--cb-border); padding: 8px; }
.cb-pcards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.cb-pcard { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; background: #fff; box-shadow: var(--shadow-md); color: var(--cb-ink); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
.cb-pcard:hover, .cb-pcard:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(23,27,36,.16); color: var(--cb-ink); }
.cb-pcard__ico { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--cb-red-100); color: var(--cb-red-600); transition: background .3s, color .3s; }
.cb-pcard:hover .cb-pcard__ico { background: var(--cb-red-600); color: #fff; }
.cb-pcard h3 { margin: 8px 0 0; font-size: 22px; line-height: 1.25; font-weight: 700; transition: color .2s; }
.cb-pcard:hover h3 { color: var(--cb-red-700); }
.cb-pcard p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--cb-slate); }
.cb-pcard__more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--cb-red-700); }
.cb-pcard__more svg { transition: transform .25s ease; }
.cb-pcard:hover .cb-pcard__more svg { transform: translateX(6px); }
.cb-pcard--dark { position: relative; overflow: hidden; isolation: isolate; background: var(--cb-ink); color: #fff; box-shadow: 0 8px 24px rgba(23,27,36,.18); }
.cb-pcard--dark:hover { transform: none; color: #fff; }
.cb-pcard--dark .stripe { position: absolute; left: 0; top: 0; right: 0; height: 4px; }
.cb-pcard--dark .glow { position: absolute; z-index: -1; width: 240px; height: 240px; right: -90px; bottom: -110px;  background: radial-gradient(circle, rgba(243,111,33,.45), rgba(237,28,36,.12) 55%, rgba(23,27,36,0) 72%); border-radius: 50%; }
.cb-pcard--dark .cb-pcard__ico { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: var(--cb-yellow); }
.cb-pcard--dark h3 { color: #fff !important; }
.cb-pcard--dark p { color: #C9CED6; }

/* ---------- 10. Ads carousel ---------- */
.cb-ads { background: #fff; padding: 80px 0; }
.cb-ads h2 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 700; }
.cb-sq-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--cb-red-600); background: #fff; color: var(--cb-red-600); }
.cb-sq-btn--fill { background: var(--cb-red-600); color: #fff; }
.cb-sq-btn:hover { filter: brightness(.92); }
.cb-ad { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); min-height: 360px; color: #fff; overflow: hidden; }
.cb-ad:hover { color: #fff; }
.cb-ad--red { background: linear-gradient(120deg, #B9141B 0%, #D71920 60%, #DE2A2F 100%); }
.cb-ad--red2 { background: linear-gradient(120deg, #B9141B 0%, #D71920 100%); }
.cb-ad--orange { background: linear-gradient(120deg, #C84F10 0%, #E2401F 100%); }
.cb-ad__text { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 48px 56px; }
.cb-ad__text > img { position: absolute; z-index: -1; left: -30px; bottom: -60px; height: 300px; opacity: .08; }
.cb-ad__tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; background: var(--cb-yellow); color: var(--cb-ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cb-ad__title { font-family: var(--font-heading); font-size: 36px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.cb-ad__desc { max-width: 440px; font-size: 16px; line-height: 1.6; }
.cb-ad__cta { margin-top: 8px; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; background: #fff; color: var(--cb-red-700); font-size: 15px; font-weight: 700; transition: background .2s, gap .2s; }
.cb-ad:hover .cb-ad__cta { background: var(--cb-yellow-100); gap: 14px; }
.cb-ad__img { position: relative; min-height: 220px; }
.cb-ad__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cb-ads .cb-dots { justify-content: center; margin-top: 16px; }
.cb-ads .cb-dots button span { background: #C9CED6; }
.cb-ads .cb-dots button.active span { background: var(--cb-red-600); }

/* ---------- 11. News ---------- */
.cb-news { background: var(--cb-surface); padding: 96px 0 216px; }
.cb-news h2 { margin: 0; font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.cb-ncard { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cb-border); transition: box-shadow .25s ease, transform .25s ease; }
.cb-ncard:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cb-ncard__img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--cb-border); }
.cb-ncard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cb-ncard:hover .cb-ncard__img img { transform: scale(1.05); }
.cb-ncard__tag { position: absolute; left: 0; top: 0; padding: 6px 12px; background: var(--cb-red-600); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cb-ncard__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px 28px 28px; }
.cb-ncard time { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--cb-slate); }
.cb-ncard h3 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; }
.cb-ncard h3 a { color: var(--cb-ink); }
.cb-ncard:hover h3 a { color: var(--cb-red-700); }
.cb-ncard p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--cb-slate); }
.cb-ncard__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--cb-red-700); }
.cb-ncard__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 12. Footer ---------- */
.cb-footer { position: relative; background: var(--cb-ink); color: #fff; }
.cb-footer__glows { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cb-footer__glows span:nth-child(1) { position: absolute; width: 640px; height: 640px; right: -220px; top: 120px;  background: radial-gradient(circle, rgba(243,111,33,.22), rgba(237,28,36,.08) 45%, rgba(23,27,36,0) 70%); border-radius: 50%; }
.cb-footer__glows span:nth-child(2) { position: absolute; width: 420px; height: 420px; left: -160px; bottom: -180px;  background: radial-gradient(circle, rgba(252,179,21,.14), rgba(23,27,36,0) 70%); border-radius: 50%; }
.cb-footer .cb-container { position: relative; z-index: 1; }
.cb-fbands { position: relative; z-index: 2; margin-top: -126px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); box-shadow: 0 20px 48px rgba(23,27,36,.22); }
.cb-fband { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: 32px; color: #fff; }
.cb-fband:hover { color: #fff; filter: brightness(1.08); }
.cb-fband::after { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -70px; top: -90px;  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.26), rgba(255,255,255,.05) 70%); border-radius: 50%; }
.cb-fband .ico { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); }
.cb-fband strong { font-family: var(--font-heading); font-size: 22px; font-weight: 800; line-height: 1.2; }
.cb-fband p { margin: 0; font-size: 15px; line-height: 1.55; max-width: 340px; }
.cb-fband .go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.cb-fband:hover .go { text-decoration: underline; text-underline-offset: 4px; }
.cb-fgrid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0,1fr)); gap: 48px 40px; padding: 72px 0 56px; }
.cb-fgrid h2 { margin: 0 0 20px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cb-yellow); }
.cb-fgrid ul { list-style: none; margin: 0; padding: 0; }
.cb-flink { display: block; padding: 6px 0; font-size: 14px; line-height: 1.45; color: #C9CED6; }
.cb-flink:hover { color: var(--cb-yellow); text-decoration: underline; text-underline-offset: 3px; }
.cb-footer__logo { height: 52px; filter: brightness(0) invert(1); }
.cb-footer__phone { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: #fff; }
.cb-footer__phone:hover { color: var(--cb-yellow); }
.cb-soc { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--cb-dark); color: #fff; }
.cb-soc:hover { background: var(--cb-red-600); border-color: var(--cb-red-600); color: #fff; }
.cb-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px 0 32px; border-top: 1px solid var(--cb-dark); font-size: 13px; color: #C9CED6; }

/* ---------- 13. Floating actions + alert ---------- */
.cb-fabs { position: fixed; right: 24px; bottom: 24px; z-index: 1040; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cb-fab { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 56px; padding: 0; border: 0; color: #fff; transition: transform .2s ease; }
.cb-fab:hover { transform: translateY(-2px); color: #fff; }
.cb-fab .ico { width: 56px; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cb-fab__label { max-width: 0; overflow: hidden; opacity: 0; padding-left: 0; white-space: nowrap; display: flex; flex-direction: column; line-height: 1.25; text-align: left; transition: max-width .35s ease, opacity .25s ease, padding .35s ease; }
.cb-fab:hover .cb-fab__label, .cb-fab:focus-visible .cb-fab__label { max-width: 320px; opacity: 1; padding-left: 18px; }
.cb-fab__label strong { font-family: var(--font-heading); font-size: 15px; font-weight: 800; }
.cb-fab__label small { font-size: 12px; font-weight: 500; }
.cb-fab--notice { background: var(--cb-yellow); color: var(--cb-ink); animation: cbPulse 2s ease-out infinite; }
.cb-fab--notice:hover { background: #FFC93C; color: var(--cb-ink); }
.cb-fab--notice .ico svg { transform-origin: 50% 10%; animation: cbRing 2.4s ease-in-out infinite; }
.cb-fab--notice .dot { position: absolute; top: 10px; right: 12px; width: 10px; height: 10px;  background: var(--cb-red-600); border: 2px solid var(--cb-yellow); display: none; border-radius: 50%; }
.cb-fab--notice.has-dot .dot { display: block; }
.cb-fab--branch { background: var(--cb-orange-700); box-shadow: 0 8px 24px rgba(200,79,16,.35); }
.cb-fab--call { background: var(--cb-red-600); box-shadow: 0 8px 24px rgba(215,25,32,.35); }
@keyframes cbPulse { 0% { box-shadow: 0 0 0 0 rgba(252,179,21,.65), 0 8px 24px rgba(252,179,21,.45) } 70% { box-shadow: 0 0 0 14px rgba(252,179,21,0), 0 8px 24px rgba(252,179,21,.45) } 100% { box-shadow: 0 0 0 0 rgba(252,179,21,0), 0 8px 24px rgba(252,179,21,.45) } }
@keyframes cbRing { 0%,60%,100% { transform: rotate(0) } 10% { transform: rotate(14deg) } 20% { transform: rotate(-12deg) } 30% { transform: rotate(8deg) } 40% { transform: rotate(-6deg) } 50% { transform: rotate(3deg) } }

.cb-alert { position: fixed; left: 24px; bottom: 24px; z-index: 1045; width: min(420px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; box-shadow: 0 16px 40px rgba(23,27,36,.24); border-top: 4px solid var(--cb-red-600); display: none; }
.cb-alert.is-open { display: block; animation: cbAlertIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cbAlertIn { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
.cb-alert__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 20px; background: var(--cb-red-50); }
.cb-alert__head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .04em; color: var(--cb-red-700); }
.cb-alert__ico { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--cb-red-600); color: #fff; }
.cb-alert__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--cb-dark); }
.cb-alert__close:hover { background: var(--cb-red-100); color: var(--cb-red-700); }
.cb-alert__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; font-size: 14px; line-height: 1.6; color: var(--cb-dark); }
.cb-alert__body p { margin: 0; }

/* ---------- 14. Scroll reveal ---------- */
.cb-reveal { opacity: 0; translate: 0 56px; transition: opacity .8s ease, translate .8s cubic-bezier(.2,.8,.2,1); }
.cb-reveal.is-in { opacity: 1; translate: 0 0; }
.cb-reveal:nth-child(3n+2) { transition-delay: .12s; }
.cb-reveal:nth-child(3n) { transition-delay: .24s; }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1180px) {
  :root { --gutter-x: 32px; }
  .cb-nav { display: none; }
  .cb-ob-btn { margin-left: auto; }
  .cb-rates__grid { grid-template-columns: repeat(4, 260px); overflow-x: auto; }
  .cb-bank__grid { grid-template-columns: minmax(0,1fr); }
  .cb-bank__bg { left: 0; top: 45%; }
  .cb-pcards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cb-fgrid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .cb-hero h1, .cb-hero h2 { font-size: 44px; }
  .cb-ad { grid-template-columns: minmax(0,1fr); }
  .cb-fbands { grid-template-columns: minmax(0,1fr); }
  .cb-fgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  :root { --gutter-x: 20px; }
  .cb-toplinks, .cb-a11y__label { display: none !important; }
  .cb-ob-btn .label { display: none; }
  .cb-ob-btn { padding: 0 14px; }
  .cb-logo { height: 36px; }
  .cb-hero h1, .cb-hero h2 { font-size: 36px; }
  .cb-pcards { grid-template-columns: minmax(0,1fr); }
  .cb-fgrid { grid-template-columns: minmax(0,1fr); }
  .cb-ad__text { padding: 40px 28px; }
  .cb-ad__title { font-size: 28px; }
}
@media (hover: none) { .cb-rate__cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cb-reveal { opacity: 1 !important; translate: none !important; }
}
