/* ═══════════════════════════════════════════════════════
   БІЗНЕС ПАРТНЕР — Global Design System
   Vibe: Editorial Luxury | Layout: Asymmetrical Bento
═══════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --n950: oklch(15% 0.045 258);
  --n900: oklch(20% 0.065 258);
  --n800: oklch(27% 0.085 258);
  --n700: oklch(34% 0.095 258);
  --n600: oklch(43% 0.105 258);
  --n500: oklch(52% 0.095 258);
  --n400: oklch(60% 0.080 258);
  --n300: oklch(70% 0.060 258);
  --n200: oklch(82% 0.030 258);
  --n100: oklch(91% 0.014 258);
  --n050: oklch(96% 0.007 258);

  --w: oklch(100% 0 0);
  --ow: oklch(99% 0.003 85);
  --cr: oklch(97.5% 0.006 80);
  --cr2: oklch(95% 0.010 78);

  --a700: oklch(52% 0.200 46);
  --a600: oklch(60% 0.195 48);
  --a500: oklch(70% 0.185 50);
  --a400: oklch(78% 0.170 53);
  --a300: oklch(86% 0.140 56);
  --a200: oklch(92% 0.090 60);
  --a100: oklch(97% 0.040 65);

  --ok: oklch(57% 0.150 148);
  --ok-bg: oklch(57% 0.150 148 / 0.10);

  --bd: oklch(91% 0.005 258);
  --bd2: oklch(85% 0.008 258);
  --bd3: oklch(78% 0.012 258);

  --shadow-xs: 0 1px 3px oklch(17% 0.05 258 / 0.06);
  --shadow-sm: 0 2px 8px oklch(17% 0.05 258 / 0.08), 0 1px 3px oklch(17% 0.05 258 / 0.05);
  --shadow-md: 0 6px 24px oklch(17% 0.05 258 / 0.10), 0 2px 8px oklch(17% 0.05 258 / 0.06);
  --shadow-lg: 0 16px 48px oklch(17% 0.05 258 / 0.12), 0 4px 16px oklch(17% 0.05 258 / 0.07);
  --shadow-xl: 0 28px 72px oklch(17% 0.05 258 / 0.14), 0 8px 24px oklch(17% 0.05 258 / 0.08);
  --shadow-amber: 0 8px 28px oklch(70% 0.185 50 / 0.30);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  --ee: cubic-bezier(0.16, 1, 0.3, 1);
  --es: cubic-bezier(0.34, 1.56, 0.64, 1);
  --eo: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ep: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--ow); color: var(--n950); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

/* ── LAYOUT ── */
.W { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 2.25rem; }
.W--narrow { max-width: 920px; }
@media (max-width: 768px) { .W { padding: 0 1.25rem; } }

/* ── SCROLL REVEAL ── */
.r { opacity: 0; transform: translateY(28px); transition: opacity 0.80s var(--ee), transform 0.80s var(--ee); }
.r.on { opacity: 1; transform: none; }
.r.d1 { transition-delay: 0.08s; }
.r.d2 { transition-delay: 0.16s; }
.r.d3 { transition-delay: 0.24s; }
.r.d4 { transition-delay: 0.32s; }
.r.d5 { transition-delay: 0.40s; }

/* ── EYEBROW TAG ── */
.tag {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--a600); background: oklch(70% 0.185 50 / 0.10);
  border: 1px solid oklch(70% 0.185 50 / 0.22);
  padding: 0.275rem 0.875rem; border-radius: var(--r-pill); margin-bottom: 1.25rem;
}
.tag--l { color: var(--a300); background: oklch(78% 0.170 53 / 0.12); border-color: oklch(78% 0.170 53 / 0.22); }
.tag__dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }

/* ── HEADINGS ── */
.H1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 400; line-height: 1.08; letter-spacing: -0.035em; color: var(--w);
}
.H1 em { font-style: italic; color: var(--a400); }

.H2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400; line-height: 1.12; letter-spacing: -0.028em; color: var(--n950);
}
.H2--l { color: var(--w); }
.H2 em { font-style: italic; color: var(--a500); }

.H3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 400; line-height: 1.22; letter-spacing: -0.018em; color: var(--n950);
}

.lead { font-size: 1.075rem; color: var(--n600); line-height: 1.80; }
.lead--l { color: oklch(72% 0.033 258); }

.div-accent {
  width: 48px; height: 2.5px;
  background: linear-gradient(90deg, var(--a500), var(--a300) 60%, transparent);
  border-radius: 3px; margin: 1.375rem 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-size: 0.9375rem; font-weight: 600; border-radius: var(--r-pill);
  padding: 0.8125rem 1.875rem; cursor: pointer;
  transition: transform 0.22s var(--es), box-shadow 0.35s var(--ee), background 0.22s var(--eo);
}
.btn:active { transform: scale(0.96) !important; }
.btn-ic {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.28s var(--es);
}
.btn:hover .btn-ic { transform: translate(2px, -1px); }

.btn--amber { background: var(--a500); color: var(--n950); font-weight: 700; letter-spacing: -0.01em; }
.btn--amber .btn-ic { background: oklch(17% 0.055 258 / 0.12); }
.btn--amber:hover { background: var(--a400); box-shadow: var(--shadow-amber); transform: translateY(-2px); }

.btn--navy { background: var(--n900); color: var(--w); }
.btn--navy .btn-ic { background: oklch(100% 0 0 / 0.10); }
.btn--navy:hover { background: var(--n800); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.btn--ghost { color: oklch(76% 0.032 258); border: 1px solid oklch(100% 0 0 / 0.18); background: transparent; padding: calc(0.8125rem - 1px) 1.875rem; }
.btn--ghost:hover { border-color: oklch(100% 0 0 / 0.38); background: oklch(100% 0 0 / 0.07); transform: translateY(-1px); }

.btn--outline { color: var(--n700); border: 1.5px solid var(--bd2); background: transparent; padding: calc(0.8125rem - 1.5px) 1.875rem; }
.btn--outline:hover { border-color: var(--n500); background: var(--cr); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ── SECTION ── */
.section { padding: 3rem 0; }
.section--dark { background: var(--n950); }
.section--cream { background: var(--cr); }
.section--white { background: var(--w); }
.section__head { margin-bottom: 1.75rem; }
.section__head--center { text-align: center; }
.section__head--center .lead { margin: 1.125rem auto 0; max-width: 580px; }

/* ── CARD (Double-Bezel) ── */
.card-shell {
  background: oklch(96.5% 0.008 80 / 0.6);
  border: 1px solid var(--bd); border-radius: var(--r-2xl); padding: 5px;
  box-shadow: var(--shadow-md);
}
.card-shell--dark {
  background: oklch(100% 0 0 / 0.055);
  border-color: oklch(100% 0 0 / 0.10);
}
.card-core {
  background: var(--w); border-radius: calc(var(--r-2xl) - 4px); padding: 2rem;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.80);
}
.card-core--dark {
  background: oklch(22% 0.068 258 / 0.65);
  border: 1px solid oklch(100% 0 0 / 0.07);
  box-shadow: inset 0 1px 1px oklch(100% 0 0 / 0.09);
  backdrop-filter: blur(12px);
}

/* ── CHIP ── */
.chip { display: inline-block; padding: 3px 11px; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 700; }
.chip--amber { background: oklch(70% 0.185 50 / 0.12); color: var(--a700); }
.chip--green { background: var(--ok-bg); color: var(--ok); }

/* ═══════════════════════════
   NAV
═══════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1rem 0;
  transition: background 0.40s var(--eo), box-shadow 0.40s var(--eo), padding 0.40s var(--eo);
}
/* Default state — transparent, white text (works for both homepage hero AND docs dark hero) */
.nav .logo__name { color: var(--w); }
.nav .logo__sub { color: oklch(58% 0.040 258); }
.nav .nav__a { color: oklch(72% 0.032 258); }
.nav .nav__drop-btn { color: oklch(72% 0.032 258); }
.nav .nav__a:hover { color: var(--w) !important; background: oklch(100% 0 0 / 0.09); }
.nav .nav__drop-btn:hover { color: var(--w) !important; background: oklch(100% 0 0 / 0.09); }
.nav .bur span { background: var(--w); }

/* Stuck state — white background, dark text */
.nav.stuck {
  background: oklch(100% 0 0 / 0.95);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 var(--bd), 0 4px 20px oklch(17% 0.05 258 / 0.06);
  padding: 0.625rem 0;
}
.nav.stuck .logo__name { color: var(--n950); }
.nav.stuck .logo__sub { color: var(--n400); }
.nav.stuck .nav__a { color: var(--n700); }
.nav.stuck .nav__drop-btn { color: var(--n700); }
.nav.stuck .nav__a:hover { color: var(--n950) !important; background: var(--cr); }
.nav.stuck .nav__drop-btn:hover { color: var(--n950) !important; background: var(--cr); }
.nav.stuck .bur span { background: var(--n950); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }

/* Logo */
.logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo__mark {
  position: relative; width: 42px; height: 42px;
  background: var(--n900); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
/* .logo__mark::after {
  content: ''; position: absolute; top: -6px; right: -6px;
  width: 16px; height: 16px; background: var(--a500); border-radius: 50%;
} */
.logo__mark svg { position: relative; z-index: 1; }
.logo__name { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; transition: color 0.3s; }
.logo__sub { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.03em; transition: color 0.3s; }

/* Links */
.nav__links { display: flex; align-items: center; gap: 0; }
.nav__a { font-size: 0.875rem; font-weight: 500; padding: 0.5rem 0.75rem; border-radius: 8px; white-space: nowrap; transition: color 0.18s, background 0.18s; }

/* Dropdown */
.nav__drop { position: relative; }
.nav__drop-btn {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.875rem; font-weight: 500; padding: 0.5rem 0.75rem; border-radius: 8px;
  white-space: nowrap; cursor: pointer; border: none; background: none; font-family: inherit;
  transition: color 0.18s, background 0.18s;
}
.nav__drop-chevron { transition: transform 0.28s var(--eo); }
.nav__drop.open .nav__drop-chevron { transform: rotate(180deg); }

.nav__drop-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--w); border: 1px solid var(--bd); border-radius: var(--r-lg);
  padding: 0.5rem; min-width: 280px;
  box-shadow: var(--shadow-xl);
  opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.22s var(--eo), transform 0.28s var(--ee);
}
.nav__drop.open .nav__drop-menu { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav__drop-item {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.875rem;
  border-radius: 10px; font-size: 0.875rem; font-weight: 500; color: var(--n700);
  transition: background 0.15s, color 0.15s;
}
.nav__drop-item:hover { background: var(--cr); color: var(--n950); }
.nav__drop-item-ic {
  width: 32px; height: 32px; background: var(--n950); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--a400);
}
.nav__drop-item-ic svg { width: 15px; height: 15px; }
.nav__drop-item-title { font-weight: 600; color: var(--n900); font-size: 0.875rem; line-height: 1.2; }
.nav__drop-item-desc { font-size: 0.75rem; color: var(--n500); margin-top: 0.125rem; }

/* CTA */
.nav__cta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 700; color: var(--n950); letter-spacing: -0.01em;
  background: var(--a500); padding: 0.5625rem 1.25rem 0.5625rem 1.5rem;
  border-radius: var(--r-pill); flex-shrink: 0; white-space: nowrap;
  transition: background 0.22s, transform 0.18s var(--es), box-shadow 0.30s;
}
.nav.hm .nav__cta { background: var(--a500); }
.nav__cta:hover { background: var(--a400); transform: translateY(-1px); box-shadow: var(--shadow-amber); }
.nav__cta-ic {
  width: 22px; height: 22px; background: oklch(17% 0.055 258 / 0.14); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.26s var(--es);
}
.nav__cta:hover .nav__cta-ic { transform: translate(2px, -1px); }

/* Burger */
.bur { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.bur span { display: block; width: 22px; height: 1.5px; border-radius: 2px; transform-origin: center; transition: transform 0.36s var(--ee), opacity 0.26s, background 0.3s; }
.bur.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.bur.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bur.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer */
.drawer {
  position: fixed; inset: 0; z-index: 250;
  background: oklch(99% 0.003 85 / 0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.375rem;
  opacity: 0; pointer-events: none; transition: opacity 0.28s var(--eo);
}
.drawer.open { opacity: 1; pointer-events: all; }
.drl {
  font-family: 'Playfair Display', serif; font-size: 2.375rem; font-weight: 400;
  color: var(--n950); padding: 0.375rem 2rem; border-radius: 12px;
  transform: translateY(16px); opacity: 0;
  transition: transform 0.60s var(--ee), opacity 0.60s var(--ee), color 0.18s, background 0.18s;
}
.drawer.open .drl { transform: none; opacity: 1; }
.drawer.open .drl:nth-child(1) { transition-delay: 0.04s; }
.drawer.open .drl:nth-child(2) { transition-delay: 0.08s; }
.drawer.open .drl:nth-child(3) { transition-delay: 0.12s; }
.drawer.open .drl:nth-child(4) { transition-delay: 0.16s; }
.drawer.open .drl:nth-child(5) { transition-delay: 0.20s; }
.drawer.open .drl:nth-child(6) { transition-delay: 0.24s; }
.drawer.open .drl:nth-child(7) { transition-delay: 0.28s; }
.drl:hover { color: var(--a600); background: var(--cr); }

@media (max-width: 1024px) { .nav__links, .nav__cta, .nav__drop { display: none; } .bur { display: flex; } }
@media (max-width: 480px) { .drl { font-size: 1.875rem; padding: 0.3rem 1.25rem; } }
@media (max-width: 360px) { .drl { font-size: 1.625rem; } }

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
.foot { background: oklch(12% 0.038 255); padding: 3rem 0 1.75rem; }
.foot__top {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 2.25rem;
  padding-bottom: 2rem; border-bottom: 1px solid oklch(100% 0 0 / 0.07);
}
.foot__brand-name { font-family: 'Playfair Display', serif; font-size: 1.375rem; color: var(--w); font-weight: 400; margin: 0.875rem 0 0.5rem; }
.foot__brand-desc { font-size: 0.8125rem; color: oklch(48% 0.038 258); line-height: 1.7; max-width: 240px; }
.foot__badge {
  display: inline-block; margin-top: 1rem;
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--a400); background: oklch(70% 0.185 50 / 0.10); border: 1px solid oklch(70% 0.185 50 / 0.20);
  padding: 0.3rem 0.875rem; border-radius: var(--r-pill);
}
.foot__col-t { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--w); margin-bottom: 1.125rem; }
.foot__links { display: flex; flex-direction: column; gap: 0.5rem; }
.foot__link { font-size: 0.875rem; color: oklch(48% 0.038 258); transition: color 0.18s; }
.foot__link:hover { color: oklch(76% 0.032 258); }
.foot__contact { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.875rem; }
.foot__contact-ic {
  width: 32px; height: 32px; background: oklch(100% 0 0 / 0.06);
  border: 1px solid oklch(100% 0 0 / 0.09); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--a400);
}
.foot__contact-ic svg { width: 15px; height: 15px; }
.foot__contact-l { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: oklch(40% 0.033 258); margin-bottom: 0.125rem; }
.foot__contact-v { font-size: 0.875rem; color: oklch(70% 0.033 258); }
.foot__contact-v a { color: var(--a400); transition: color 0.18s; }
.foot__contact-v a:hover { color: var(--a300); }
.foot__nbu { margin-top: 0.875rem; padding-top: 0.875rem; border-top: 1px solid oklch(100% 0 0 / 0.07); font-size: 0.75rem; color: oklch(40% 0.033 258); line-height: 1.7; }
.foot__nbu strong { color: oklch(54% 0.038 258); }
.foot__bot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.875rem; padding-top: 2rem; }
.foot__copy, .foot__reg { font-size: 0.8rem; color: oklch(40% 0.033 258); }

@media (max-width: 900px) { .foot__top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .foot__top { grid-template-columns: 1fr; } .foot__bot { flex-direction: column; align-items: flex-start; } }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; text-shadow: 0 1px 8px oklch(15% 0.045 258 / 0.65); }
.breadcrumb__item { font-size: 0.8125rem; color: oklch(85% 0.025 258); font-weight: 500; transition: color 0.18s; }
.breadcrumb__item:hover { color: var(--w); }
.breadcrumb__sep { color: var(--a400); font-size: 0.75rem; }
.breadcrumb__item.active { color: var(--w); font-weight: 700; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .r { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════
   MOBILE — 768px
═══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Typography */
  .H1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .H2 { font-size: clamp(1.625rem, 6vw, 2.25rem); }
  .lead { font-size: 0.9375rem; }

  /* Sections */
  .section { padding: 2.75rem 0; }

  /* Hero */
  .hero__layout { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
  .hero__desc { font-size: 0.9375rem; margin-bottom: 1.75rem; }
  .hero__btns { flex-direction: column; align-items: stretch; gap: 0.75rem; margin-bottom: 2.5rem; }
  .hero__btns .btn { justify-content: center; }
  .hero__card { display: none; }
  .hero__content { padding-top: 80px; }

  /* About */
  .about__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__img-shell { aspect-ratio: 4/3; }
  .about__float { display: none; }
  .about__owners-panel { margin-top: 0.75rem; }

  /* Services bento */
  .bento { display: flex; flex-direction: column; gap: 1rem; }
  .bento-card--span8, .bento-card--span4, .bento-card--span6 { width: 100%; }

  /* Credit */
  .credit__layout { grid-template-columns: 1fr; gap: 2rem; }
  .ctbl th, .ctbl td { padding: 0.75rem 1rem; font-size: 0.8rem; }

  /* Leasing */
  .leas__layout { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
  .leas__assets { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .leas__asset { padding: 1.125rem 0.75rem; }

  /* Factoring */
  .fact__grid { grid-template-columns: 1fr; gap: 1rem; }
  .fcard__head { padding: 1.5rem 1.5rem 1.25rem; }
  .fcard__body { padding: 1.25rem 1.5rem 1.5rem; }
  .fcard__num { font-size: 2.5rem; }

  /* Protection */
  .prot__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 2.5rem; }
  .pitem { padding: 1.25rem; }
  .pitem__num { font-size: 1.75rem; }
  .prot__channels { grid-template-columns: 1fr; gap: 0.625rem; }
  .ptimes { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .ptime { padding: 1rem 0.75rem; }
  .ptime__v { font-size: 1.5rem; }
  .pnbu { padding: 1.75rem; }
  .pnbu__grid { grid-template-columns: 1fr; gap: 0.625rem; }
  .card-shell { border-radius: var(--r-lg); }
  .card-core { padding: 1.5rem; border-radius: calc(var(--r-lg) - 4px); }

  /* Contacts */
  .contacts-section { padding: 4rem 0; }
  .contacts__layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .contacts__map { height: 260px; }
  .contacts__btns { flex-direction: column; }
  .contacts__btns .btn { justify-content: center; }

  /* Footer */
  .foot { padding: 3rem 0 2rem; }
  .foot__top { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
  .foot__bot { flex-direction: column; gap: 0.5rem; }

  /* War notice */
  .war-notice__inner { padding: 0.875rem 1.25rem; gap: 0.75rem; }
  .war-notice__text { font-size: 0.75rem; }
  .war-notice__icon { display: none; }
}

/* ═══════════════════════════════════════
   SMALL MOBILE — 480px
═══════════════════════════════════════ */
@media (max-width: 480px) {
  .prot__grid { grid-template-columns: 1fr; }
  .leas__assets { grid-template-columns: repeat(2, 1fr); }
  .ptimes { grid-template-columns: 1fr; }
  .hero__btns .btn { font-size: 0.875rem; padding: 0.75rem 1.25rem; }
  .bento-ic { width: 44px; height: 44px; }
  .fcard__num { font-size: 2rem; }
  .contacts__map { height: 220px; }
}

/* ═══════════════════════════════════════
   COOKIE CONSENT BANNER
═══════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 350;
  width: min(330px, calc(100vw - 2.5rem));
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: var(--w); border: 1px solid var(--bd);
  border-radius: var(--r-lg); padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-xl);
  transform: translateY(calc(100% + 2rem)); opacity: 0;
  transition: transform 0.55s var(--ee), opacity 0.45s var(--ee);
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-banner__ic {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--a100); border: 1px solid oklch(70% 0.185 50 / 0.20);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--a600);
}
.cookie-banner__ic svg { width: 18px; height: 18px; }
.cookie-banner__body { flex: 1; min-width: 0; }
.cookie-banner__title {
  font-family: 'Playfair Display', serif; font-size: 0.975rem; font-weight: 500;
  color: var(--n950); margin-bottom: 0.275rem; line-height: 1.25;
}
.cookie-banner__text {
  font-size: 0.75rem; color: var(--n600); line-height: 1.55; margin-bottom: 0.875rem;
}
.cookie-banner__text a { color: var(--a700); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner__btns .btn { font-size: 0.75rem; padding: 0.5rem 1.125rem; }
.cookie-banner__close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--cr); border: 1px solid var(--bd);
  display: flex; align-items: center; justify-content: center;
  color: var(--n500); cursor: pointer; transition: background 0.18s, color 0.18s;
}
.cookie-banner__close:hover { background: var(--cr2); color: var(--n900); }
.cookie-banner__close svg { width: 12px; height: 12px; }
@media (max-width: 560px) {
  .cookie-banner { left: 1rem; bottom: 1rem; width: calc(100vw - 2rem); padding: 1rem 1.125rem; }
  .cookie-banner__btns .btn { flex: 1; justify-content: center; }
}

/* ═══════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════ */
.cform-wrap { margin-bottom: 2.5rem; }
.cform {
  background: oklch(18% 0.055 258 / 0.75);
  border: 1px solid oklch(100% 0 0 / 0.12);
  border-radius: var(--r-xl); padding: 2.5rem;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.cform__head { margin-bottom: 1.875rem; }
.cform__title {
  font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 400;
  color: var(--w); line-height: 1.2; margin-bottom: 0.5rem;
}
.cform__sub { font-size: 0.9rem; color: oklch(66% 0.035 258); line-height: 1.6; max-width: 520px; }
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.cfield { display: flex; flex-direction: column; gap: 0.5rem; }
.cfield--full { grid-column: 1 / -1; }
.cfield__label {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: oklch(62% 0.038 258);
}
.cfield__label em { color: var(--a400); font-style: normal; }
.cfield__input {
  width: 100%; font-family: inherit; font-size: 0.9375rem; color: var(--w);
  background: oklch(100% 0 0 / 0.06); border: 1px solid oklch(100% 0 0 / 0.14);
  border-radius: var(--r-md); padding: 0.875rem 1.125rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.cfield__input::placeholder { color: oklch(52% 0.035 258); }
.cfield__input:focus {
  outline: none; border-color: var(--a500); background: oklch(100% 0 0 / 0.09);
  box-shadow: 0 0 0 3px oklch(70% 0.185 50 / 0.15);
}
.cfield__input:user-invalid { border-color: oklch(58% 0.190 24); }
textarea.cfield__input { resize: vertical; min-height: 110px; line-height: 1.6; }
select.cfield__input {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5l4 4 4-4' stroke='%23a89' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.125rem center; padding-right: 2.5rem;
}
select.cfield__input option { color: var(--n950); }
/* honeypot — hidden from humans */
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cform__foot {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  margin-top: 1.875rem; padding-top: 1.625rem; border-top: 1px solid oklch(100% 0 0 / 0.10);
}
.cform__note { font-size: 0.75rem; color: oklch(56% 0.035 258); line-height: 1.55; flex: 1; min-width: 200px; }
.cform__submit { min-width: 190px; justify-content: center; transition: background 0.3s var(--ee), color 0.3s, transform 0.22s var(--es); }
.btn.is-sent { background: var(--ok); color: var(--w); }
.btn.is-sent:hover { background: var(--ok); box-shadow: none; transform: none; }
.btn.is-sending { opacity: 0.85; cursor: progress; }
.btn[disabled] { cursor: default; }
@media (max-width: 640px) {
  .cform { padding: 1.875rem 1.5rem; }
  .cform__grid { grid-template-columns: 1fr; gap: 1rem; }
  .cform__title { font-size: 1.5rem; }
  .cform__submit { width: 100%; }
}

/* Consent checkbox under the form */
.cform__consent { display: flex; align-items: flex-start; gap: 0.625rem; cursor: pointer; flex: 1; min-width: 220px; }
.cform__consent input {
  width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; cursor: pointer;
  accent-color: var(--a500);
}
.cform__consent-text { font-size: 0.8125rem; color: oklch(70% 0.035 258); line-height: 1.5; }
.cform__consent-text a { color: var(--a400); text-decoration: underline; text-underline-offset: 2px; }
.cform__consent-text a:hover { color: var(--a300); }
.cform__consent-text em { color: var(--a400); font-style: normal; }

/* ═══════════════════════════════════════
   DOCUMENT MODAL (legal documents)
═══════════════════════════════════════ */
.doc-modal {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ee), visibility 0.3s var(--ee);
}
.doc-modal.open { opacity: 1; visibility: visible; }
.doc-modal__overlay {
  position: absolute; inset: 0; background: oklch(15% 0.045 258 / 0.62);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.doc-modal__panel {
  position: relative; z-index: 1; width: min(720px, 100%); max-height: 85vh;
  display: flex; flex-direction: column;
  background: var(--w); border-radius: var(--r-xl); box-shadow: var(--shadow-xl);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.4s var(--ee);
}
.doc-modal.open .doc-modal__panel { transform: translateY(0) scale(1); }
.doc-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 1.75rem; border-bottom: 1px solid var(--bd); flex-shrink: 0;
}
.doc-modal__title {
  font-family: 'Playfair Display', serif; font-size: 1.375rem; font-weight: 500;
  color: var(--n950); line-height: 1.2;
}
.doc-modal__close {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--cr); border: 1px solid var(--bd); color: var(--n600);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.doc-modal__close:hover { background: var(--cr2); color: var(--n900); }
.doc-modal__close svg { width: 16px; height: 16px; }
.doc-modal__body {
  padding: 1.75rem; overflow-y: auto;
  font-size: 0.9rem; color: var(--n700); line-height: 1.7;
}
.doc-modal__body h3 {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 500;
  color: var(--n950); margin: 1.625rem 0 0.5rem;
}
.doc-modal__body h3:first-child { margin-top: 0; }
.doc-modal__body p { margin-bottom: 0.875rem; }
.doc-modal__body ul { margin: 0 0 0.875rem 1.25rem; }
.doc-modal__body li { margin-bottom: 0.375rem; }
.doc-modal__body strong { color: var(--n900); }
@media (max-width: 560px) {
  .doc-modal { padding: 0; }
  .doc-modal__panel { max-height: 100vh; height: 100%; border-radius: 0; }
  .doc-modal__head { padding: 1.25rem 1.25rem; }
  .doc-modal__title { font-size: 1.2rem; }
  .doc-modal__body { padding: 1.25rem; }
}

/* Footer legal links row */
.foot__legal {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  padding: 1.5rem 0 0.25rem; margin-top: 0.5rem;
  border-top: 1px solid oklch(100% 0 0 / 0.08);
}
.foot__legal a {
  font-size: 0.8125rem; color: oklch(62% 0.035 258);
  transition: color 0.18s; cursor: pointer;
}
.foot__legal a:hover { color: var(--a400); }

/* ═══════════════════════════════════════
   CREDIT CALCULATOR
═══════════════════════════════════════ */
.calc-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: stretch; }
.calc-controls { display: flex; flex-direction: column; gap: 1.75rem; justify-content: center; }
.calc-field-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; gap: 1rem; }
.calc-field-l { font-size: 0.8125rem; font-weight: 700; color: var(--n600); text-transform: uppercase; letter-spacing: 0.04em; }
.calc-field-v { font-family: 'Playfair Display', serif; font-size: 1.375rem; color: var(--n950); font-weight: 400; white-space: nowrap; }
.calc-field-v small { font-size: 0.8125rem; color: var(--n400); }
.calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--n100); outline: none; cursor: pointer; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--a500); border: 3px solid var(--w); box-shadow: var(--shadow-md); cursor: pointer; transition: transform 0.15s; }
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--a500); border: 3px solid var(--w); box-shadow: var(--shadow-md); cursor: pointer; }
.calc-result { background: var(--n950); border-radius: var(--r-xl); padding: 2.25rem; display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; position: relative; overflow: hidden; }
.calc-result::after { content: ''; position: absolute; top: -40%; right: -20%; width: 320px; height: 320px; background: radial-gradient(circle, oklch(70% 0.185 50 / 0.18), transparent 70%); pointer-events: none; }
.calc-res-l { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: oklch(60% 0.04 258); margin-bottom: 0.5rem; }
.calc-res-v { font-family: 'Playfair Display', serif; font-size: 2.75rem; font-weight: 400; color: var(--w); line-height: 1; margin-bottom: 1.25rem; position: relative; }
.calc-res-v em { font-style: normal; font-size: 1.25rem; color: var(--a400); }
.calc-res-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-top: 1px solid oklch(100% 0 0 / 0.08); font-size: 0.875rem; position: relative; }
.calc-res-row span:first-child { color: oklch(62% 0.04 258); }
.calc-res-row span:last-child { color: var(--w); font-weight: 700; }
.calc-note { margin-top: 1.75rem; display: flex; gap: 0.875rem; align-items: flex-start; background: var(--cr); border: 1px solid var(--bd); border-radius: var(--r-md); padding: 1rem 1.375rem; }
.calc-note svg { width: 18px; height: 18px; color: var(--a500); flex-shrink: 0; margin-top: 1px; }
.calc-note p { font-size: 0.8rem; color: var(--n600); line-height: 1.6; }
@media (max-width: 820px) { .calc-wrap { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ═══════════════════════════════════════
   REQUIRED DOCUMENTS
═══════════════════════════════════════ */
.docreq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.docreq { background: var(--w); border: 1px solid var(--bd); border-radius: var(--r-xl); padding: 2rem 1.875rem; transition: box-shadow 0.3s, transform 0.3s var(--ee); }
.docreq:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.docreq__ic { width: 48px; height: 48px; border-radius: 13px; background: var(--n950); color: var(--a400); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.docreq__ic svg { width: 22px; height: 22px; }
.docreq__t { font-family: 'Playfair Display', serif; font-size: 1.375rem; font-weight: 400; color: var(--n950); margin-bottom: 0.5rem; }
.docreq__sub { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--a600); margin: 1.125rem 0 0.5rem; }
.docreq__list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.docreq__list li { position: relative; padding-left: 1.125rem; font-size: 0.8125rem; color: var(--n600); line-height: 1.5; }
.docreq__list li::before { content: ''; position: absolute; left: 0; top: 0.5rem; width: 6px; height: 6px; border-radius: 50%; background: var(--a400); }
@media (max-width: 900px) { .docreq-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════
   MESSENGER BUTTONS (Telegram / Viber)
═══════════════════════════════════════ */
.msgrs { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.msgr { display: inline-flex; align-items: center; gap: 0.625rem; font-size: 0.9rem; font-weight: 700; padding: 0.75rem 1.25rem; border-radius: var(--r-md); color: var(--w); transition: transform 0.2s var(--es), box-shadow 0.3s var(--ee); }
.msgr svg { width: 20px; height: 20px; }
.msgr:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.msgr--tg { background: #229ED9; }
.msgr--viber { background: #7360F2; }
