/* ==========================================================================
   Imkon Finans — design system (cash2u-inspired: indigo + Montserrat)
   Owner: foundation. Other stylesheets (home.css, pages.css) build on the
   tokens and classes defined here — see "Class API" in SPEC.md.
   Order: tokens → Bootstrap bridge → base → a11y → layout → buttons →
   utilities → blocks → cards → forms → tabs/FAQ → header → offcanvas →
   shared bottom → footer → legacy class restyles → motion.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --brand: #3530FA;
  --brand-hover: #2A25E0;
  --brand-deep: #302CBB;
  --brand-soft: #EEEEFF;
  --brand-ring: rgba(53, 48, 250, .28);
  --brand-on-dark: #A5A3FF;          /* indigo tint readable on dark gradients */
  --range-track: #DEDDFF;            /* brand-soft, one step stronger so it reads on --surface-2 */

  --ink: #030303;
  --text: #212529;
  --muted: #6B6B76;
  --line: #ECECF0;
  --line-strong: #DCDCE3;
  --line-field: #8E8E99;             /* input borders: 3.2:1 on white (WCAG 1.4.11) */

  --surface: #FAFAFA;
  --surface-2: #F3F3F5;
  --white: #FFFFFF;

  --hero-grad: linear-gradient(90deg, #F6F6F6 0%, #F7F7F6 70%, #E3E8EB 100%);
  --dark-grad: linear-gradient(90deg, #2E2E2E 0%, #010101 100%);
  --dark-grad-rev: linear-gradient(270deg, #000 0%, #2E2E2E 100%);

  --tile-1: #3530FA;
  --tile-2: #6616AF;
  --tile-3: #0B8A09; /* cash2u green darkened for WCAG AA with white text */
  --tile-4: #0A305D;
  --tile-5: #171717;
  --tile-6: #302CBB;

  --shadow: 0 4px 30px rgba(166, 166, 166, .25);
  --shadow-hover: 0 14px 40px rgba(53, 48, 250, .18);

  --r-sm: 10px;
  --r: 15px;
  --r-lg: 20px;
  --r-xl: 30px;

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

  --header-h: 68px;
  --section-y: 56px;
  --focus-color: var(--brand);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Legacy aliases — old templates/inline styles still reference these. */
  --if-red: var(--brand);
  --if-red-dark: var(--brand-hover);
  --if-red-soft: var(--brand-soft);
  --if-ink: var(--ink);
  --if-soft: var(--surface-2);

  /* ---------- 2. Bootstrap bridge ---------- */
  --bs-body-font-family: var(--font);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--text);
  --bs-body-color-rgb: 33, 37, 41;
  --bs-heading-color: var(--ink);
  --bs-primary: #3530FA;
  --bs-primary-rgb: 53, 48, 250;
  --bs-primary-text-emphasis: #1E1A99;
  --bs-primary-bg-subtle: #EEEEFF;
  --bs-primary-border-subtle: #D6D5FE;
  --bs-secondary-rgb: 107, 107, 118;
  --bs-secondary-color: rgba(33, 37, 41, .78);
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 53, 48, 250;
  --bs-link-hover-color: var(--brand-hover);
  --bs-link-hover-color-rgb: 42, 37, 224;
  --bs-border-color: var(--line);
  --bs-border-radius: 10px;
  --bs-border-radius-sm: 8px;
  --bs-border-radius-lg: 15px;
  --bs-border-radius-xl: 20px;
  --bs-border-radius-xxl: 30px;
  --bs-focus-ring-color: var(--brand-ring);
  --bs-emphasis-color: var(--ink);
}

@media (min-width: 768px) {
  :root { --section-y: 72px; }
}
@media (min-width: 1200px) {
  :root { --header-h: 88px; --section-y: 88px; }
}

/* ---------- 3. Base ---------- */
/* Anchor offset for the sticky header lives on the targets, NOT on
   html{scroll-padding-top}: a root scroll-padding also applies to focus
   scrolling, so focusing any header control (a11y toggle, dropdown items,
   the burger after the offcanvas closes) made the page jump up. */
main [id], #main { scroll-margin-top: calc(var(--header-h) + 16px); }
/* Same offset for focusable controls in content areas, so keyboard focus
   (e.g. Shift+Tab from the footer) never lands hidden under the sticky
   header (WCAG 2.4.11). Header controls are excluded on purpose. */
:where(main, footer) :is(a[href], button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])) {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
/* Long single words (e.g. ru «сельскохозяйственному») must wrap instead of
   overflowing narrow cards at 320px (WCAG 1.4.10). */
:is(h1, h2, h3, h4, h5, h6) { overflow-wrap: break-word; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}
h1, .h1 { font-size: clamp(2rem, 1.3rem + 2vw, 2.75rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
h2, .h2 { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 1.875rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.375rem); }
h4, .h4 { font-size: 1.25rem; }
h5, .h5 { font-size: 1.125rem; }
h6, .h6 { font-size: 1rem; }

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
}
.lead { font-size: 1.125rem; font-weight: 500; }
.fw-800 { font-weight: 800 !important; }

a { text-underline-offset: .18em; }

::selection { background: var(--brand); color: #fff; }

img, svg { max-width: 100%; }

/* ---------- 4. Accessibility ---------- */

/* One visible focus ring everywhere; white inside dark / indigo areas. */
:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 3px;
}
.btn:focus-visible,
.page-link:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.accordion-button:focus-visible,
.form-check-input:focus-visible,
.carousel-indicators [data-bs-target]:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 3px;
  box-shadow: none;
}
.dropdown-item:focus-visible { outline-offset: -2px; }

.brand-band, .dark-block, .bg-brand, .bg-dark-grad, .site-footer, .tile, .hero-card {
  --focus-color: #fff;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

#main:focus { outline: none; }

/* Special (low-vision) mode — toggled by #a11yToggle, persisted in localStorage */
html.a11y-mode { filter: grayscale(1); }
html.a11y-mode body { font-size: 1.12rem; }
html.a11y-mode a { text-decoration: underline; }
html.a11y-mode .header-icon-btn#a11yToggle { background: var(--ink); color: #fff; }

/* ---------- 5. Layout ---------- */
@media (max-width: 575.98px) {
  .container, .container-fluid, .container-sm { --bs-gutter-x: 2rem; }   /* 16px side gutter */
  .g-5, .gx-5 { --bs-gutter-x: 2rem; }                                  /* no horizontal scroll */
}
.section { padding-block: var(--section-y); }
.section-sm { padding-block: calc(var(--section-y) * .6); }

.section-title {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 1.875rem);
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: clamp(1.5rem, 1rem + 1.4vw, 2.5rem);
}
.section-title:has(+ .section-lead) { margin-bottom: .75rem; }
.section-title--start { text-align: left; }
@media (min-width: 992px) {
  .section-title--start-lg { text-align: left; }
}

.section-lead {
  max-width: 720px;
  margin: 0 auto clamp(1.75rem, 1.2rem + 1.4vw, 2.75rem);
  text-align: center;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ---------- 6. Buttons ---------- */
.btn-brand, .btn-red, .btn-hero,
.btn-brand-sm, .btn-ink, .btn-light-brand, .btn-outline-brand, .btn-soft {
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: .95rem;
  --bs-btn-font-family: var(--font);
  --bs-btn-font-size: 1rem;
  --bs-btn-font-weight: 600;
  --bs-btn-line-height: 1.2;
  --bs-btn-border-width: 1.5px;
  --bs-btn-border-radius: var(--r);
  --bs-btn-box-shadow: none;
  --bs-btn-focus-box-shadow: none;
  --bs-btn-disabled-opacity: .55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 56px;
  padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
  font-family: var(--font);
  font-size: var(--bs-btn-font-size);
  font-weight: var(--bs-btn-font-weight);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  white-space: normal;
  color: var(--bs-btn-color);
  background-color: var(--bs-btn-bg);
  border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
  border-radius: var(--bs-btn-border-radius);
  cursor: pointer;
  user-select: none;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
:is(.btn-brand, .btn-red, .btn-hero, .btn-brand-sm, .btn-ink, .btn-light-brand, .btn-outline-brand, .btn-soft):hover {
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
  text-decoration: none;
}
:is(.btn-brand, .btn-red, .btn-hero, .btn-brand-sm, .btn-ink, .btn-light-brand, .btn-outline-brand, .btn-soft):active {
  color: var(--bs-btn-active-color);
  background-color: var(--bs-btn-active-bg);
  border-color: var(--bs-btn-active-border-color);
  transform: translateY(1px);
}
:is(.btn-brand, .btn-red, .btn-hero, .btn-brand-sm, .btn-ink, .btn-light-brand, .btn-outline-brand, .btn-soft):focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 3px;
  box-shadow: none;
}
:is(.btn-brand, .btn-red, .btn-hero, .btn-brand-sm, .btn-ink, .btn-light-brand, .btn-outline-brand, .btn-soft):is(:disabled, .disabled) {
  opacity: .55;
  pointer-events: none;
}
:is(.btn-brand, .btn-red, .btn-hero, .btn-brand-sm, .btn-ink, .btn-light-brand, .btn-outline-brand, .btn-soft) .bi-arrow-right {
  transition: transform .18s var(--ease);
}
:is(.btn-brand, .btn-red, .btn-hero, .btn-brand-sm, .btn-ink, .btn-light-brand, .btn-outline-brand, .btn-soft):hover .bi-arrow-right {
  transform: translateX(3px);
}

/* Indigo primary (+ legacy .btn-red / .btn-hero aliases) */
.btn-brand, .btn-red, .btn-hero, .btn-brand-sm {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-hover);
  --bs-btn-hover-border-color: var(--brand-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-deep);
  --bs-btn-active-border-color: var(--brand-deep);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
}
.btn-brand-sm,
:is(.btn-brand, .btn-red, .btn-hero, .btn-light-brand, .btn-outline-brand, .btn-soft).btn-sm {
  --bs-btn-padding-x: 1.1rem;
  --bs-btn-padding-y: .6rem;
  --bs-btn-font-size: .9375rem;
  min-height: 44px;
  border-radius: var(--r-sm);
}

/* Black header pill */
.btn-ink {
  --bs-btn-padding-x: 1.15rem;
  --bs-btn-padding-y: .6rem;
  --bs-btn-font-size: 1.0625rem;
  --bs-btn-border-radius: var(--r-sm);
  --bs-btn-color: #fff;
  --bs-btn-bg: #171717;
  --bs-btn-border-color: #171717;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-deep);
  --bs-btn-active-border-color: var(--brand-deep);
  min-height: 44px;
  white-space: nowrap;
}
@media (min-width: 1200px) {
  .header-actions .btn-ink { --bs-btn-font-size: 1rem; }
}
/* ≥1440 the full row has room for cash2u's larger type in uz/ru (measured
   slack afterwards: uz 63px, ru 54px). English labels are ~15% longer and
   would wrap "Corporate governance", so en keeps the 1400 sizes. */
@media (min-width: 1440px) {
  html:not([lang="en"]) .header-actions .btn-ink { --bs-btn-font-size: 1.0625rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .header-actions .btn-ink { --bs-btn-font-size: .9375rem; --bs-btn-padding-x: .9rem; }
  .header-actions .header-icon-btn { width: 40px; height: 40px; flex-basis: 40px; }
}

/* White button with indigo text — on coloured tiles / bands / dark blocks */
.btn-light-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--brand-deep);
  --bs-btn-hover-bg: var(--brand-soft);
  --bs-btn-hover-border-color: var(--brand-soft);
  --bs-btn-active-color: var(--brand-deep);
  --bs-btn-active-bg: #E0DFFF;
  --bs-btn-active-border-color: #E0DFFF;
}

.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-deep);
  --bs-btn-active-border-color: var(--brand-deep);
}
.dark-block .btn-outline-brand,
.bg-dark-grad .btn-outline-brand {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .55);
}

/* Soft grey "see all →" button */
.btn-soft {
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: .8rem;
  --bs-btn-font-size: 1.0625rem;
  --bs-btn-font-weight: 500;
  --bs-btn-border-radius: var(--r-sm);
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--surface-2);
  --bs-btn-border-color: var(--surface-2);
  --bs-btn-hover-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-soft);
  --bs-btn-hover-border-color: var(--brand-soft);
  --bs-btn-active-color: var(--brand-deep);
  --bs-btn-active-bg: #E0DFFF;
  --bs-btn-active-border-color: #E0DFFF;
  min-height: 50px;
}

/* Bootstrap primary → indigo */
.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-hover);
  --bs-btn-hover-border-color: var(--brand-hover);
  --bs-btn-active-bg: var(--brand-deep);
  --bs-btn-active-border-color: var(--brand-deep);
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-deep);
  --bs-btn-active-border-color: var(--brand-deep);
}

/* Safety net: decorative red utilities left in markup render indigo.
   (.text-danger on text stays red — it is reserved for form errors.) */
.btn-danger {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-hover);
  --bs-btn-hover-border-color: var(--brand-hover);
  --bs-btn-active-bg: var(--brand-deep);
  --bs-btn-active-border-color: var(--brand-deep);
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
}
.btn-outline-danger {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-deep);
  --bs-btn-active-border-color: var(--brand-deep);
}
.link-danger { color: var(--brand) !important; text-decoration-color: currentColor !important; }
.link-danger:hover { color: var(--brand-hover) !important; }
.bi.text-danger,
:is(h1, h2, h3, h4, .section-title) .text-danger { color: var(--brand) !important; }

/* ---------- 7. Utilities ---------- */
.text-brand { color: var(--brand) !important; }
.text-ink { color: var(--ink) !important; }
.text-muted-2 { color: var(--muted) !important; }
.link-brand {
  color: var(--brand) !important;
  text-decoration: none;
  font-weight: 500;
}
.link-brand:hover { color: var(--brand-hover) !important; text-decoration: underline; }
.bg-brand { background-color: var(--brand) !important; color: #fff; }
.bg-brand-soft { background-color: var(--brand-soft) !important; }
.bg-surface { background-color: var(--surface) !important; }
.bg-surface-2 { background-color: var(--surface-2) !important; }
.bg-soft { background-color: var(--surface-2) !important; } /* legacy */
.bg-hero-grad { background: var(--hero-grad) !important; }
.bg-dark-grad { background: var(--dark-grad) !important; color: #fff; }
.bg-dark-grad :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
.rounded-brand { border-radius: var(--r) !important; }
.rounded-brand-lg { border-radius: var(--r-lg) !important; }
.rounded-brand-xl { border-radius: var(--r-xl) !important; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .5rem;
}
.dark-block .eyebrow, .bg-dark-grad .eyebrow { color: var(--brand-on-dark); }

/* Checklist with indigo round check marks */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.check-list > li { position: relative; padding-left: 2.25rem; line-height: 1.5; }
.check-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .05em;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand);
}
.check-list > li::after {
  content: "";
  position: absolute;
  left: .53rem;
  top: .36em;
  width: .45rem;
  height: .75rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- 8. Blocks ---------- */
.brand-band {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding-block: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  font-size: clamp(1.0625rem, .85rem + .9vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
}
.brand-band :is(b, strong) { font-weight: 800; }
.brand-band :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
.brand-band p:last-child { margin-bottom: 0; }
.brand-band a:not([class*="btn"]) { color: #fff; text-decoration: underline; }

.dark-block {
  background: var(--dark-grad-rev);
  color: rgba(255, 255, 255, .86);
  padding-block: var(--section-y);
  overflow: hidden;
}
.dark-block :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .section-title) { color: #fff; }
.dark-block :is(.text-secondary, .text-muted, .text-body-secondary) { color: rgba(255, 255, 255, .72) !important; }
.dark-block a:not([class*="btn"]) { color: #fff; }
.dark-block-title {
  font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.125rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
}

/* Page head band for subpages */
.page-head {
  background: var(--hero-grad);
  padding: 40px 0 32px;
}
@media (min-width: 768px) {
  .page-head { padding: 56px 0 44px; }
}
.page-head .breadcrumb {
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: .9rem;
}
.page-head :is(h1, .page-title) {
  font-size: clamp(2rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0;
  /* Long Russian compounds ("сельскохозяйственному") are wider than a
     phone screen at 800 weight: hyphenate them, and break as a last resort. */
  overflow-wrap: anywhere;
}
@media (max-width: 767.98px) {
  .page-head :is(h1, .page-title) {
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 10 4 4;     /* only long words, keep 4+ letters per side */
  }
}
@media (max-width: 575.98px) {
  .page-head :is(h1, .page-title) { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2rem); }
}
/* Grey text on the light hero gradient: the gradient's darkest stop
   (#E3E8EB) needs a deeper grey than --muted for 4.5:1 (5.2:1 here). */
.page-head, .bg-hero-grad, .home-hero { --muted: #5E5E68; }
.page-head .page-lead {
  max-width: 720px;
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  font-weight: 500;
}

.breadcrumb {
  --bs-breadcrumb-divider: "›";
  --bs-breadcrumb-divider-color: var(--muted);
  --bs-breadcrumb-item-active-color: var(--muted);
  --bs-breadcrumb-item-padding-x: .6rem;
}
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- 9. Cards ---------- */
.c-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, .9rem + 1.2vw, 2rem);
}
.c-card--flat {
  background: var(--surface-2);
  box-shadow: none;
  border-radius: var(--r);
}
.c-card--xl { border-radius: var(--r-xl); padding: clamp(1.25rem, .6rem + 2.4vw, 3rem); }
.c-card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.c-card--media > img,
.c-card--media .c-card__img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.c-card__body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.c-card__title { font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin: 0; }
.c-card__meta { font-size: .875rem; color: var(--muted); font-weight: 500; }
.c-card--hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.c-card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.c-card--hover .stretched-link::after { border-radius: inherit; }

.icon-tile {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 2px 16px rgba(166, 166, 166, .12);
  padding: 2rem 1.25rem 1.75rem;
  min-height: 150px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;          /* icons stay on one line even when a label wraps */
  gap: .9rem;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.icon-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.icon-tile > i,
.icon-tile__icon {
  font-size: 40px;
  line-height: 1;
  color: var(--brand);
  display: inline-flex;
}
.icon-tile > svg,
.icon-tile__icon svg { width: 40px; height: 40px; color: var(--brand); }
.icon-tile > span:not(.icon-tile__icon),
.icon-tile__label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* Full-bleed coloured product tiles (shared by home + product list) */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
}
.tile {
  --tile-bg: var(--tile-1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  min-height: 270px;
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  background: var(--tile-bg);
  color: #fff;
}
@media (min-width: 768px) {
  .tile { min-height: 340px; }
}
.tile-grid > .tile:nth-child(6n+1) { --tile-bg: var(--tile-1); }
.tile-grid > .tile:nth-child(6n+2) { --tile-bg: var(--tile-2); }
.tile-grid > .tile:nth-child(6n+3) { --tile-bg: var(--tile-3); }
.tile-grid > .tile:nth-child(6n+4) { --tile-bg: var(--tile-4); }
.tile-grid > .tile:nth-child(6n+5) { --tile-bg: var(--tile-5); }
.tile-grid > .tile:nth-child(6n+6) { --tile-bg: var(--tile-6); }
/* .tile--N pins a colour (e.g. the product's position in the full product
   list, so a product keeps its colour on every page). The doubled class
   outranks the :nth-child() cycle above. */
.tile.tile--1.tile--1 { --tile-bg: var(--tile-1); }
.tile.tile--2.tile--2 { --tile-bg: var(--tile-2); }
.tile.tile--3.tile--3 { --tile-bg: var(--tile-3); }
.tile.tile--4.tile--4 { --tile-bg: var(--tile-4); }
.tile.tile--5.tile--5 { --tile-bg: var(--tile-5); }
.tile.tile--6.tile--6 { --tile-bg: var(--tile-6); }
.tile :is(h2, h3, h4) { color: #fff; }
.tile__title {
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  max-width: 14ch;
}
/* Every fact carries its own leading "•"; the list is shifted left by one
   bullet width and clipped there, so the first bullet of each line —
   including a line that starts after a wrap — is hidden, never dangling. */
.tile__facts {
  --bullet-w: 1.3rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0 calc(var(--bullet-w) * -1);
  clip-path: inset(0 0 0 var(--bullet-w));
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 0;
  font-size: .8125rem;
  font-weight: 600;
  color: #fff;
}
.tile__facts > li { white-space: nowrap; }
.tile__facts > li::before {
  content: "•";
  display: inline-block;
  width: var(--bullet-w);
  text-align: center;
}
.tile__text { font-size: .9375rem; color: #fff; max-width: 36ch; margin: 0; }
.tile__ghost {
  position: absolute;
  right: -.04em;
  bottom: -.2em;
  z-index: -1;
  font-size: clamp(120px, 12vw, 180px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .12);
  pointer-events: none;
  user-select: none;
  transition: transform .4s var(--ease);
}
.tile:hover .tile__ghost { transform: translateY(-6px) scale(1.03); }
.tile__cta { margin-top: auto; }

/* ---------- 10. Forms ---------- */
.form-label { font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }

.form-control,
.form-select {
  min-height: 56px;
  padding: .9rem 1.1rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background-color: #fff;
  border: 1px solid var(--line-field);
  border-radius: var(--r);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-select { padding-right: 2.75rem; background-position: right 1.1rem center; }
.form-control::placeholder { color: var(--muted); opacity: 1; }
.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
  outline: none;
}
textarea.form-control { min-height: auto; height: auto; }
.form-control-lg, .form-select-lg { border-radius: var(--r); font-size: 1rem; }
.form-control-sm, .form-select-sm { min-height: 40px; padding: .4rem .8rem; border-radius: var(--r-sm); }
.form-control.is-invalid, .form-select.is-invalid { border-color: #dc3545; }

.form-check-input { border-color: var(--line-field); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }

/* Range sliders. Optional filled part: set style="--range-pct: 42%" from JS. */
.form-range { height: 1.75rem; }
.form-range::-webkit-slider-runnable-track {
  height: .5rem;
  background: linear-gradient(to right, var(--brand) 0 var(--range-pct, 0%), var(--range-track) var(--range-pct, 0%) 100%);
  border-radius: 999px;
}
.form-range::-moz-range-track {
  height: .5rem;
  background-color: var(--range-track);
  border-radius: 999px;
}
.form-range::-moz-range-progress {
  height: .5rem;
  background-color: var(--brand);
  border-radius: 999px;
}
.form-range::-webkit-slider-thumb {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: -.45rem;
  background: var(--brand);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(53, 48, 250, .35);
}
.form-range::-moz-range-thumb {
  width: 1.1rem;
  height: 1.1rem;
  background: var(--brand);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(53, 48, 250, .35);
}
.form-range::-webkit-slider-thumb:active { background: var(--brand-deep); }
.form-range::-moz-range-thumb:active { background: var(--brand-deep); }
/* Solid ring (white gap + indigo) — the translucent halo was only 1.6:1 */
.form-range:focus-visible { outline: none; }
.form-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.form-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }

/* Labelled input cards (application form) */
.field-card {
  background: #fff;
  border: 1px solid var(--line-field);
  border-radius: var(--r);
  padding: .65rem 1.1rem .7rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field-card:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.field-label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 2px;
}
.field-card .form-control,
.field-card .form-select {
  min-height: 0;
  border: none;
  background-color: transparent;
  padding: 0;
  box-shadow: none;
  font-weight: 600;
  border-radius: 0;
}
.field-card .form-select { padding-right: 2rem; background-position: right 0 center; }
.field-card .form-control::placeholder { font-weight: 400; }   /* an example, not a value */
.field-card .form-control:focus,
.field-card .form-select:focus { box-shadow: none; }

.slider-card {
  background: var(--surface-2);
  border-radius: var(--r);
  padding: 1rem 1.2rem .75rem;
}
.range-value {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ---------- 11. Tabs / FAQ ---------- */
.seg-tabs, .app-tabs {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--surface-2);
  border-radius: var(--r);
  overflow-x: auto;
  scrollbar-width: none;
}
.seg-tabs::-webkit-scrollbar, .app-tabs::-webkit-scrollbar { display: none; }
.seg-tabs > li, .app-tabs > li { flex: 1 0 auto; display: flex; }
.seg-tabs :is(.nav-link, button, a),
.app-tabs .nav-link {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .6rem 1.4rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.seg-tabs :is(.nav-link, button, a):hover,
.app-tabs .nav-link:hover { color: var(--brand); background: rgba(53, 48, 250, .06); }
.seg-tabs :is(.nav-link, button, a).active,
.seg-tabs [aria-selected="true"],
.app-tabs .nav-link.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(53, 48, 250, .25);
}
@media (max-width: 575.98px) {
  .seg-tabs, .app-tabs { display: flex; width: 100%; }
}

.faq-flat { border-top: 1px solid var(--line-strong); }
.faq-flat .faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-flat :is(h2, h3, h4, .faq-q-heading) { margin: 0; font-size: inherit; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 1.35rem 0;
  font-family: var(--font);
  font-size: clamp(1.0625rem, .9rem + .6vw, 1.375rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .15s var(--ease);
}
.faq-q:hover { color: var(--brand); }
.faq-q .faq-chevron,
.faq-q::after {
  flex: 0 0 auto;
  transition: transform .25s var(--ease);
}
.faq-q .faq-chevron { font-size: 1.1rem; color: var(--ink); }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(90deg); color: var(--brand); }
.faq-a {
  padding: 0 2.5rem 1.4rem 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}
.faq-a > :last-child { margin-bottom: 0; }

/* ---------- 12. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(250, 250, 250, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(3, 3, 3, .07); }

.header-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
  max-width: 1440px;
  padding-inline: 16px;
}
@media (min-width: 768px) {
  .header-bar { padding-inline: 24px; }
}
@media (min-width: 1200px) {
  .header-bar { gap: 10px; }
}
@media (min-width: 1400px) {
  .header-bar { gap: 16px; padding-inline: 28px; }
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
}
.header-brand img { width: 36px; height: 36px; }
@media (min-width: 1400px) {
  .header-brand img { width: 42px; height: 42px; }
}
.brand-text {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  text-transform: lowercase;
  white-space: nowrap;
}
@media (min-width: 1400px) {
  .brand-text { font-size: 1.25rem; }
}
/* 1200–1399: five long nav labels + actions do not fit next to the
   wordmark in Montserrat, so only the mark shows (name stays for AT). */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .header-bar .brand-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
  }
  .header-bar .header-brand img { width: 42px; height: 42px; }
}

.header-nav {
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.header-nav > .dropdown { flex: 0 0 auto; }
/* Graceful fallback: the longest label ("Korporativ Boshqaruv" in every
   language) may wrap to two lines instead of pushing into the actions. */
.header-nav > .dropdown:nth-child(4) { flex-shrink: 1; min-width: 0; }
.header-nav > .dropdown:nth-child(4) .menu-pill { white-space: normal; }
@media (min-width: 1400px) {
  .header-nav { gap: 2px; }
}

.menu-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  gap: .35rem;
  padding: .6rem .35rem;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  color: var(--ink);
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  text-decoration: underline 2px transparent;
  text-underline-offset: 12px;
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}
@media (min-width: 1400px) {
  .menu-pill { padding: .6rem .4rem; }
}
@media (min-width: 1440px) {
  html:not([lang="en"]) .menu-pill { font-size: .9375rem; }
}

.menu-pill:hover { color: var(--ink); text-decoration-color: rgba(3, 3, 3, .22); }
.menu-pill.active { text-decoration-color: var(--ink); }
.menu-pill[aria-expanded="true"] { color: var(--brand); }
.menu-pill.dropdown-toggle::after,
.header-lang.dropdown-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: -3px 0 0 .15rem;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
  opacity: .7;
  transition: transform .2s var(--ease), margin .2s var(--ease);
}
.menu-pill[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
.menu-row { background: var(--surface); } /* legacy, unused */

.dropdown-menu {
  --bs-dropdown-min-width: 17rem;
  --bs-dropdown-font-size: .9375rem;
  --bs-dropdown-color: var(--text);
  --bs-dropdown-link-color: var(--ink);
  --bs-dropdown-link-hover-color: var(--brand);
  --bs-dropdown-link-hover-bg: var(--brand-soft);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: var(--brand);
  --bs-dropdown-divider-bg: var(--line);
  --bs-dropdown-item-padding-x: .95rem;
  --bs-dropdown-item-padding-y: .6rem;
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: 0 18px 50px rgba(3, 3, 3, .12), 0 2px 6px rgba(3, 3, 3, .04);
  padding: .55rem;
  margin-top: .6rem !important;
}
.dropdown-item { border-radius: var(--r-sm); font-weight: 500; white-space: normal; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
@media (min-width: 1200px) {
  .header-actions { gap: 4px; margin-left: 0; }
}
/* Header CTA: only from 640px — below that "Submit an application" (en)
   pushed the burger off-screen. The offcanvas carries the CTA on phones. */
.header-actions .header-cta { display: none; }
@media (min-width: 640px) {
  .header-actions .header-cta { display: inline-flex; }
}
/* 320–374px: logo, wordmark and three 44px buttons were 24px wider than
   the screen (WCAG 1.4.10 reflow). Tighten everything a notch. */
@media (max-width: 374.98px) {
  .header-bar { gap: 6px; }
  .header-bar .header-brand { gap: 7px; }
  .header-bar .header-brand img { width: 32px; height: 32px; }
  .header-bar .brand-text { font-size: 1.0625rem; }
  .header-actions { gap: 0; }
  .header-actions :is(.header-icon-btn, .burger-btn) { width: 40px; height: 40px; flex-basis: 40px; }
}

.header-icon-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.header-icon-btn:hover { background: var(--surface-2); color: var(--brand); }
.header-icon-btn[aria-expanded="true"],
.header-icon-btn[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }

/* Plain-text language switcher: O'Z · РУ · EN */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 4px;
}
.lang-switch form { display: inline-flex; align-items: center; margin: 0; }
.lang-switch form + form::before {
  content: "·";
  color: var(--muted);
  padding: 0 1px;
  font-weight: 700;
}
.lang-btn,
.header-lang {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  padding: .55rem .28rem;
  min-height: 44px;
  line-height: 1;
  border-radius: 6px;
  text-decoration: underline 2px transparent;
  text-underline-offset: 10px;
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}
.lang-btn:hover, .header-lang:hover { color: var(--brand); }
.lang-btn.active { text-decoration-color: var(--ink); }

.phone-circle {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.burger-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
}
.burger-btn:hover { background: var(--surface-2); color: var(--brand); }

/* Slim search bar under the header */
.header-search { border-top: 1px solid var(--line); background: var(--surface); }
.header-search .container { padding-block: 14px; }
.search-pill {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--line-field);
  border-radius: var(--r);
  padding: 5px 5px 5px 1.1rem;
  min-height: 56px;
  max-width: 760px;
  margin-inline: auto;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.search-pill:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.search-pill > .bi { color: var(--muted); font-size: 1.1rem; }
.search-pill .form-control {
  min-height: 44px;
  border: 0;
  padding: 0 .25rem;
  background: transparent;
  box-shadow: none;
}
.search-pill .form-control:focus { box-shadow: none; }
.search-pill .btn-brand-sm { flex: 0 0 auto; }

/* ---------- 13. Offcanvas menu (< xl) ---------- */
.menu-canvas {
  --bs-offcanvas-width: 400px;
  max-width: 92vw;
  background: var(--surface);
  font-family: var(--font);
}
.menu-canvas .offcanvas-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); min-height: var(--header-h); }
.menu-canvas .offcanvas-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.menu-canvas .lang-switch { margin: 0 0 0 -.45rem; }

.menu-group { border-bottom: 1px solid var(--line); }
.menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: .95rem 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.menu-heading::-webkit-details-marker { display: none; }
.menu-heading::after {
  content: "";
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(-45deg);
  transition: transform .2s var(--ease);
  flex: 0 0 auto;
}
.menu-group[open] > .menu-heading { color: var(--brand); }
.menu-group[open] > .menu-heading::after { transform: rotate(45deg); }
.menu-list { list-style: none; padding: 0 0 1rem; margin: 0; }
.menu-list li { margin: 0; }
.menu-list a {
  display: block;
  padding: .5rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
}
.menu-list a:hover { color: var(--brand); }
@media (min-width: 400px) {
  .menu-list.two-col { columns: 2; column-gap: 1.25rem; }
  .menu-list.two-col li { break-inside: avoid; }
}
.menu-cta { display: grid; gap: .6rem; margin-top: auto; }
.menu-contact {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--ink);
}
.menu-contact small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.2; }
.menu-contact strong { display: block; font-weight: 700; }

/* ---------- 14. Shared bottom: partners, FAQ + currency, subscribe ---------- */
/* Section rhythm: backgrounds alternate, as on cash2u. After white page
   content the partners band turns grey (two white sections in a row read as
   a ~190px hole); after an already tinted/dark section it stays white, and
   the FAQ band takes whichever tone the partners band did not. */
.shared-partners { background: var(--surface-2); }
:is(.bg-surface, .bg-surface-2, .bg-hero-grad, .bg-brand, .dark-block, .brand-band) + .shared-partners { background: #fff; }
.shared-faq { background: var(--surface); }
/* The grey "see all" button needs a white fill on a grey band */
.shared-partners:not(:is(.bg-surface, .bg-surface-2, .bg-hero-grad, .bg-brand, .dark-block, .brand-band) + .shared-partners) .btn-soft,
.bg-surface-2 .btn-soft {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
}
.shared-partners:not(:is(.bg-surface, .bg-surface-2, .bg-hero-grad, .bg-brand, .dark-block, .brand-band) + .shared-partners) + .shared-faq { background: #fff; }
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.partners-grid > .partner-card { flex: 0 1 calc(50% - 7px); }
@media (min-width: 768px) {
  .partners-grid { gap: 20px; }
  .partners-grid > .partner-card { flex-basis: calc(33.333% - 14px); }
}
@media (min-width: 1200px) {
  .partners-grid > .partner-card { flex-basis: calc(20% - 16px); }
}

.partner-card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  height: 110px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
@media (min-width: 768px) {
  .partner-card { height: 130px; }
}
a.partner-card:hover, .partner-card:has(a:hover) { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.partner-card > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.partner-logo {
  max-height: 72px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.partners-strip { scrollbar-width: thin; } /* legacy */
.scroll-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.currency-card { height: 100%; }
.currency-card .currency-title { font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); font-weight: 700; margin: .75rem 0 1.25rem; }
.currency-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--surface-2);
  border-radius: var(--r);
  padding: .9rem 1.2rem;
  margin-bottom: .75rem;
  font-variant-numeric: tabular-nums;
}
.currency-row .currency-flag { font-size: 1.5rem; line-height: 1; }
.currency-row .currency-code { font-weight: 600; color: var(--muted); white-space: nowrap; }
.currency-row .currency-value { font-weight: 800; font-size: 1.1875rem; color: var(--ink); white-space: nowrap; }
.currency-row .currency-trend { margin-left: auto; font-size: 1.1rem; }
.trend-up { color: #0B8A09; }
.trend-down { color: var(--brand); }
.trend-flat { color: var(--muted); }
.currency-source { font-size: .875rem; color: var(--muted); margin: 1rem 0 .25rem; }
.currency-source a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.subscribe-band { text-align: left; }
.subscribe-inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
@media (min-width: 992px) {
  .subscribe-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
}
.subscribe-title {
  font-size: clamp(1.25rem, 1rem + .9vw, 1.625rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0;
  max-width: 30ch;
}
.subscribe-form {
  display: flex;
  gap: .6rem;
  width: 100%;
  max-width: 560px;
}
.subscribe-form .form-control { border-color: #fff; flex: 1 1 auto; min-width: 0; }
.subscribe-form .form-control:focus { box-shadow: none; border-color: #fff; outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 419.98px) {
  .subscribe-form { flex-direction: column; }
}

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--dark-grad);
  color: rgba(255, 255, 255, .8);
  padding: 56px 0 28px;
  font-size: .9375rem;
}
@media (min-width: 992px) {
  .site-footer { padding-top: 72px; }
}
.site-footer .brand-text { color: #fff; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-social { display: flex; gap: .6rem; }
.footer-info { padding: 2.25rem 0 1.75rem; }
.footer-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.3;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .6rem; }
/* 320px, ru: "Микрофинансовые" is wider than a half-width sitemap column */
.footer-map .footer-list { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.footer-list a,
.footer-text {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-size: .9375rem;
  transition: color .15s var(--ease);
}
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-icon { color: var(--brand-on-dark); margin-right: .55rem; }
.footer-map {
  padding: 2rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-map-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.5rem;
}
.footer-map .footer-heading { font-size: 1rem; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .64);
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.social-btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- 16. Pagination ---------- */
.pagination {
  --bs-pagination-color: var(--ink);
  --bs-pagination-bg: #fff;
  --bs-pagination-border-color: var(--line-strong);
  --bs-pagination-border-radius: var(--r-sm);
  --bs-pagination-hover-color: var(--brand);
  --bs-pagination-hover-bg: var(--brand-soft);
  --bs-pagination-hover-border-color: var(--brand-soft);
  --bs-pagination-focus-color: var(--brand);
  --bs-pagination-focus-bg: var(--brand-soft);
  --bs-pagination-focus-box-shadow: none;
  --bs-pagination-active-color: #fff;
  --bs-pagination-active-bg: var(--brand);
  --bs-pagination-active-border-color: var(--brand);
  --bs-pagination-disabled-color: #9A9AA4;
  --bs-pagination-disabled-bg: var(--surface);
  --bs-pagination-disabled-border-color: var(--line);
  gap: 8px;
  flex-wrap: wrap;
}
.pagination .page-link {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .8rem;
  font-weight: 600;
  border-radius: var(--r-sm) !important;
  margin-left: 0 !important;
}
.pagination .page-item.active .page-link { box-shadow: 0 6px 16px rgba(53, 48, 250, .25); }

/* ---------- 17. Bootstrap component touch-ups ---------- */
.alert { border-radius: var(--r); border-width: 1px; font-weight: 500; }
.alert-info {
  --bs-alert-color: #1E1A99;
  --bs-alert-bg: var(--brand-soft);
  --bs-alert-border-color: #DCDBFE;
  --bs-alert-link-color: #1E1A99;
}
.card {
  --bs-card-border-color: var(--line);
  --bs-card-border-radius: var(--r-lg);
  --bs-card-inner-border-radius: calc(var(--r-lg) - 1px);
}
.table {
  --bs-table-border-color: var(--line);
  --bs-table-striped-bg: transparent;
}
.nav-pills {
  --bs-nav-pills-border-radius: var(--r-sm);
  --bs-nav-pills-link-active-bg: var(--brand);
}
.nav-link { --bs-nav-link-color: var(--ink); --bs-nav-link-hover-color: var(--brand); }
.badge { font-weight: 600; }
.btn-close { --bs-btn-close-focus-shadow: 0 0 0 4px var(--brand-ring); }
.offcanvas-backdrop.show { opacity: .4; }
.ratio iframe { border-radius: var(--r-lg); }

/* Carousel dots helper: add .carousel-dots to .carousel-indicators */
.carousel-dots { position: static; margin: 1.5rem 0 0; justify-content: flex-start; gap: 8px; }
.carousel-dots [data-bs-target] {
  width: 10px;
  height: 10px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background-color: rgba(3, 3, 3, .2);
  opacity: 1;
  transition: width .25s var(--ease), background-color .25s var(--ease);
}
.carousel-dots .active { width: 28px; background-color: var(--brand); }

/* ---------- 18. Legacy classes restyled (used across pages) ---------- */

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: .75rem;
  padding: 6px 14px;
  border-radius: var(--r-xl);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
}

/* Hero (old home markup; the new home defines its own hero) */
.hero-card {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.hero-card :is(h1, h2, h3) { color: #fff; }
.hero-card .carousel-inner { position: relative; z-index: 1; }
.hero-card .btn-hero {
  --bs-btn-color: var(--brand);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--brand-deep);
  --bs-btn-hover-bg: var(--brand-soft);
  --bs-btn-hover-border-color: var(--brand-soft);
}
.hero-media { align-self: stretch; align-items: flex-end; }
.hero-photo {
  max-height: 440px;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
}
.hero-feature-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-card .hero-feature-icon { background: rgba(255, 255, 255, .18); color: #fff; }
.hero-arrows { z-index: 2; }
.hero-arrows .btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: 0;
}

.app-card {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}

.fact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  height: 100%;
  font-weight: 500;
}
.fact-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.dark-block .fact-card {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
}
.dark-block .fact-icon { background: var(--brand); color: #fff; }

.product-card {
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--r);
  flex: 0 0 auto;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--brand);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
}
.product-link:hover { color: var(--brand-hover); text-decoration: underline; }

.stat-diamond {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  border-radius: var(--r);
  transform: rotate(45deg);
}
.stat-diamond i {
  transform: rotate(-45deg);
  color: var(--brand);
  font-size: 1.5rem;
}
.stat-value {
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--brand);
  margin-top: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.post-card {
  border: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card img.card-img-top { height: 200px; object-fit: cover; }
.post-card .card-body { padding: 1.25rem 1.5rem 1.5rem; }

.faq-accordion .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0 !important;
  background: transparent;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  padding-inline: 0;
  border-radius: 0 !important;
}
.faq-accordion .accordion-button:not(.collapsed) { color: var(--brand); }
.faq-accordion .accordion-body { padding-inline: 0; color: var(--muted); }
.faq-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rich-text { font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.rich-text :is(h2, h3, h4) { margin-top: 2rem; margin-bottom: .9rem; font-weight: 700; color: var(--ink); }
.rich-text a { color: var(--brand); text-decoration: underline; }
.rich-text a:hover { color: var(--brand-hover); }
.rich-text img { max-width: 100%; height: auto; border-radius: var(--r); }
.rich-text ul li::marker, .rich-text ol li::marker { color: var(--brand); font-weight: 700; }
.rich-text blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--ink);
}
.rich-text table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9375rem; }
.rich-text :is(th, td) { border: 1px solid var(--line-strong); padding: .6rem .8rem; }
.rich-text th { background: var(--surface-2); font-weight: 700; color: var(--ink); }

.team-card {
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.team-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--brand-soft);
}
.team-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

.year-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: .9375rem;
  padding: .45rem 1rem;
  text-decoration: none;
  transition: border-color .15s var(--ease), color .15s var(--ease), background-color .15s var(--ease);
}
.year-pill:hover { border-color: var(--brand); color: var(--brand); }
.year-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.year-count {
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
}
.year-pill.active .year-count { background: rgba(255, 255, 255, .22); color: #fff; }

.dividends-table { font-size: 1rem; margin-bottom: 0; }
.dividends-table thead,
.dividends-table thead th { background: var(--surface-2); }
.dividends-table th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.dividends-table :is(th, td) { padding: 1rem 1.1rem; border-color: var(--line); }
.dividends-table > :not(caption) > * > * { --bs-table-bg-type: transparent; }
.dividends-table tbody tr:hover > * { background: var(--surface); }

.reception-header-card { background: var(--brand-soft); border-color: transparent; border-radius: var(--r-lg); }

.doc-row {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.doc-row:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); }
.doc-ext {
  flex: 0 0 auto;
  min-width: 48px;
  text-align: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .04em;
  border-radius: var(--r-sm);
  padding: 10px 8px;
}

/* ---------- 19. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .c-card--hover:hover, .icon-tile:hover, .product-card:hover, .post-card:hover,
  .team-card:hover, a.partner-card:hover, .partner-card:has(a:hover),
  .tile:hover .tile__ghost,
  :is(.btn-brand, .btn-red, .btn-hero, .btn-brand-sm, .btn-ink, .btn-light-brand, .btn-outline-brand, .btn-soft):hover .bi-arrow-right {
    transform: none;
  }
}
