/* ============================================================
   West Invest Logistic — Global CSS v5 ULTRA PREMIUM
   Modern · Mobile-first · Touch-optimized · Glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* ─── Premium Color Palette ─── */
  --blue:        #0066FF;
  --blue-2:      #2563EB;
  --blue-dark:   #0052CC;
  --blue-darker: #003D99;
  --blue-light:  #E6F0FF;
  --blue-glow:   rgba(0,102,255,0.25);

  --navy:        #0A1628;
  --navy-2:      #1A2C4A;
  --black:       #0A0A0A;
  --dark-text:   #0F172A;

  --grey:        #64748B;
  --grey-light:  #F1F5F9;
  --border:      #E2E8F0;
  --border-2:    #CBD5E1;

  --white:       #FFFFFF;
  --bg:          #FFFFFF;
  --bg-2:        #F8FAFC;
  --bg-3:        #F1F5F9;

  --text:        #0F172A;
  --text-muted:  #64748B;
  --text-soft:   #475569;

  --gold:        #FFB800;
  --gold-light:  #FFF4D6;
  --green:       #10B981;
  --green-light: #D1FAE5;
  --red:         #EF4444;
  --wa-green:    #25D366;
  --wa-green-d:  #1FA851;

  /* Gradients */
  --grad-blue:   linear-gradient(135deg, #0066FF 0%, #003D99 100%);
  --grad-blue-soft: linear-gradient(135deg, #E6F0FF 0%, #DBEAFE 100%);
  --grad-dark:   linear-gradient(135deg, #0A1628 0%, #1A2C4A 100%);
  --grad-gold:   linear-gradient(135deg, #FFB800 0%, #F59E0B 100%);
  --grad-mesh:   radial-gradient(ellipse 60% 80% at 30% 30%, rgba(0,102,255,0.1) 0%, transparent 60%),
                 radial-gradient(ellipse 50% 70% at 80% 70%, rgba(255,184,0,0.06) 0%, transparent 60%);

  /* Radii */
  --radius-sm:   8px;
  --radius:      12px;
  --radius-md:   16px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-2xl:  36px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(15,23,42,0.05);
  --shadow-sm:   0 2px 8px rgba(15,23,42,0.06);
  --shadow:      0 4px 20px rgba(15,23,42,0.07);
  --shadow-md:   0 8px 30px rgba(15,23,42,0.08);
  --shadow-lg:   0 16px 50px rgba(15,23,42,0.1);
  --shadow-xl:   0 24px 64px rgba(15,23,42,0.15);
  --shadow-2xl:  0 40px 80px rgba(15,23,42,0.2);
  --shadow-blue: 0 12px 40px rgba(0,102,255,0.25);
  --shadow-blue-lg: 0 20px 60px rgba(0,102,255,0.35);
  --shadow-gold: 0 12px 36px rgba(255,184,0,0.25);

  /* Transitions */
  --trans-fast:  150ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans:       280ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow:  500ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-bounce: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font-display:'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --nav-h:       70px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top:    env(safe-area-inset-top, 0px);
}

/* ─── DARK THEME ─── */
[data-theme="dark"] {
  --white:       #1A1F2E;
  --bg:          #0F1419;
  --bg-2:        #161B26;
  --bg-3:        #1F2532;

  --text:        #F1F5F9;
  --text-muted:  #94A3B8;
  --text-soft:   #CBD5E1;

  --border:      #1F2532;
  --border-2:    #2D3548;
  --navy:        #050811;
  --navy-2:      #0A0F1A;

  --blue-light:  rgba(0,102,255,0.12);
  --gold-light:  rgba(255,184,0,0.12);
  --green-light: rgba(16,185,129,0.12);

  --shadow-xs:   0 1px 3px rgba(0,0,0,0.3);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
  --shadow:      0 4px 20px rgba(0,0,0,0.4);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.5);
  --shadow-lg:   0 16px 50px rgba(0,0,0,0.5);
  --shadow-xl:   0 24px 64px rgba(0,0,0,0.6);
  --shadow-blue: 0 12px 40px rgba(0,102,255,0.4);

  --grad-blue-soft: linear-gradient(135deg, rgba(0,102,255,0.15) 0%, rgba(0,61,153,0.2) 100%);
}

@media (min-width: 901px) {
  :root { --nav-h: 84px; }
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  /* Здесь было overflow-x: hidden — оно ломало «липкие» блоки (фильтры магазина).
     Вылет за край убран в самих анимациях появления. */
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  position: relative;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: none; background: none; font-family: inherit; -webkit-tap-highlight-color: transparent; min-height: 44px; }
input, select, textarea { font-family: inherit; font-size: 16px; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.025em;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 7vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 900; }
h2 { font-size: clamp(1.65rem, 5vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { color: var(--text-soft); }

/* ─── CONTAINER ─── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 40px; } }

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
@media (min-width: 1024px) { .section { padding: 120px 0; } }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.005em; transition: var(--trans);
  white-space: nowrap; cursor: pointer; min-height: 50px;
  line-height: 1.2; position: relative; overflow: hidden;
  border: none;
}
@media (min-width: 768px) {
  .btn { padding: 15px 28px; font-size: 0.95rem; }
}

.btn--primary {
  background: var(--grad-blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn--primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.3s;
}
.btn--outline {
  border: 2px solid var(--blue); color: var(--blue); background: transparent;
}
.btn--outline-light {
  border: 2px solid rgba(255,255,255,0.5);
  color: white; background: transparent;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--wa {
  background: var(--wa-green); color: var(--white);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}
.btn--dark { background: var(--navy); color: var(--white); }
.btn--ghost { color: var(--text-muted); }
.btn--gold {
  background: var(--grad-gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue-lg); }
  .btn--primary:hover::before { opacity: 1; }
  .btn--outline:hover { background: var(--blue); color: white; transform: translateY(-2px); }
  .btn--outline-light:hover { background: rgba(255,255,255,0.15); border-color: white; transform: translateY(-2px); }
  .btn--wa:hover { background: var(--wa-green-d); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,211,102,0.45); }
  .btn--dark:hover { background: var(--navy-2); transform: translateY(-2px); }
  .btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(255,184,0,0.35); }
  .btn--ghost:hover { color: var(--blue); background: var(--blue-light); }
}
.btn:active { transform: translateY(0) scale(0.98); transition: var(--trans-fast); }

/* ─── SECTION TITLES ─── */
.section-title { text-align: center; margin-bottom: 48px; }
@media (min-width: 768px) { .section-title { margin-bottom: 64px; } }

.section-title__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  border: 1px solid rgba(0,102,255,0.15);
}
.section-title__eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: var(--blue); border-radius: 50%;
  display: inline-block;
}
.section-title h2 { color: var(--text); margin-bottom: 14px; }
.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
@media (min-width: 768px) { .section-title p { font-size: 1.15rem; } }

.section-title__line {
  width: 60px; height: 4px;
  background: var(--grad-blue);
  border-radius: var(--radius-full);
  margin: 22px auto 0;
}

/* ─── NAVIGATION ─── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: calc(var(--nav-h) + var(--safe-top));
  display: flex; align-items: center;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: all 0.3s;
  padding-top: var(--safe-top);
}
.nav--scrolled {
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
}

/* Transparent nav when hero-fs present and not scrolled */
body.has-hero-fs #main-nav:not(.nav--scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.has-hero-fs #main-nav:not(.nav--scrolled) .nav-link {
  color: rgba(255,255,255,0.9);
}
body.has-hero-fs #main-nav:not(.nav--scrolled) .nav-link:hover {
  color: white;
}
body.has-hero-fs #main-nav:not(.nav--scrolled) .nav-link--active {
  color: white;
}
body.has-hero-fs #main-nav:not(.nav--scrolled) .nav__logo img {
  filter: brightness(0) invert(1);
}
body.has-hero-fs #main-nav:not(.nav--scrolled) #burger span {
  background: white;
}
body.has-hero-fs #main-nav:not(.nav--scrolled) .theme-toggle {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.2);
}

#main-nav .container {
  width: 100%; max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 100%;
}

.nav__logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; transition: var(--trans);
}
@media (hover: hover) { .nav__logo:hover { transform: scale(1.02); } }
.nav__logo img {
  height: 42px; width: auto; max-width: 180px;
  object-fit: contain; display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.08));
}
@media (min-width: 901px) {
  .nav__logo img { height: 52px; max-width: 220px; }
}

.nav__links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-link {
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-muted);
  transition: var(--trans);
  position: relative;
  min-height: auto;
  display: inline-flex; align-items: center;
}
@media (hover: hover) {
  .nav-link:hover { color: var(--text); background: var(--bg-3); }
}
.nav-link--active {
  color: var(--blue) !important;
  background: var(--blue-light) !important;
}

.nav__right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switcher {
  display: flex; gap: 2px;
  padding: 4px;
  background: var(--bg-3);
  border-radius: var(--radius-full);
}
.lang-btn {
  padding: 6px 12px; border-radius: var(--radius-full);
  font-size: 0.74rem; font-weight: 700;
  color: var(--text-muted);
  transition: var(--trans);
  letter-spacing: 0.05em;
  min-height: 32px; min-width: 36px;
  background: transparent; border: none;
}
@media (hover: hover) { .lang-btn:hover { color: var(--blue); } }
.lang-btn.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-xs);
}

/* ─── BURGER ─── */
#burger {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px;
  justify-content: center; align-items: center;
  border-radius: var(--radius);
  transition: var(--trans);
  background: var(--bg-3);
}
#burger span {
  display: block; width: 22px; height: 2.5px;
  background: var(--text); border-radius: 2px;
  transition: var(--trans);
}
#burger.open { background: var(--blue-light); }
#burger.open span { background: var(--blue); }
#burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU ─── */
#mobile-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(10,22,40,0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0; transition: opacity 0.3s;
}
#mobile-backdrop.open { display: block; opacity: 1; }

#mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) + var(--safe-top));
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  padding: 24px 20px calc(24px + var(--safe-bottom));
  flex-direction: column; gap: 4px; z-index: 999;
  border-top: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-16px); opacity: 0;
  /* Закрытое меню не должно ловить нажатия: раньше оно было лишь прозрачным
     и лежало поверх всей страницы — касания уходили в невидимые ссылки. */
  visibility: hidden; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, visibility 0s linear 0.3s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#mobile-menu.open {
  transform: translateY(0); opacity: 1;
  visibility: visible; pointer-events: auto;
  transition: opacity 0.3s, transform 0.3s, visibility 0s;
}
#mobile-menu .nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; font-size: 1.02rem; font-weight: 600;
  border-radius: var(--radius); min-height: 54px;
}
#mobile-menu .nav-link::after { content: '→'; opacity: 0.3; font-size: 1.1rem; }
#mobile-menu .nav-link--active::after { color: var(--blue); opacity: 1; }
#mobile-menu .lang-switcher {
  align-self: center; margin-top: 16px;
}
#mobile-menu .mobile-cta {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
}

/* ─── PAGE HERO ─── */
.page-hero {
  padding: calc(var(--nav-h) + var(--safe-top) + 64px) 0 64px;
  background: var(--grad-dark);
  text-align: center;
  position: relative; overflow: hidden;
}
@media (min-width: 768px) {
  .page-hero { padding: calc(var(--nav-h) + 96px) 0 96px; }
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 30% 30%, rgba(0,102,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 90% at 80% 70%, rgba(255,184,0,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; padding: 0 16px; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}
@media (min-width: 768px) { .page-hero p { font-size: 1.2rem; } }
.page-hero__breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.95);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; margin-bottom: 18px;
  text-transform: uppercase;
}

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}
@media (hover: hover) {
  .card:hover { border-color: var(--blue); box-shadow: var(--shadow-blue); transform: translateY(-4px); }
}

/* ─── FORMS ─── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-soft);
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  transition: var(--trans);
  min-height: 52px;
}
.form-input::placeholder, .form-textarea::placeholder { color: #94A3B8; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-glow);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ─── TOAST ─── */
#toast-wrap {
  position: fixed; bottom: calc(24px + var(--safe-bottom));
  right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  max-width: calc(100vw - 40px);
  pointer-events: none;
}
.toast {
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 0.92rem; font-weight: 600;
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow-xl);
  opacity: 0; transform: translateX(20px);
  transition: var(--trans);
  max-width: 340px;
  pointer-events: auto;
  cursor: pointer;   /* по уведомлению можно кликнуть, чтобы убрать */
}
.toast--show { opacity: 1; transform: translateX(0); }
.toast--success { background: var(--green); }
.toast--error { background: var(--red); }

/* ─── SCROLL REVEAL ─── */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
/* Боковой сдвиг расширял страницу вправо. Вертикальный — нет. */
[data-reveal="left"] { transform: translateY(22px); }
[data-reveal="right"] { transform: translateY(22px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="fade"] { transform: none; }
.revealed { opacity: 1 !important; transform: none !important; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.4s; }
[data-delay="6"] { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--grad-dark);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .cta-banner { padding: 112px 0; } }
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 30% 30%, rgba(0,102,255,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 70% 90% at 80% 70%, rgba(255,184,0,0.12) 0%, transparent 60%);
  animation: ctaMeshMove 18s ease-in-out infinite;
}
@keyframes ctaMeshMove {
  0%, 100% {
    background:
      radial-gradient(ellipse 80% 100% at 30% 30%, rgba(0,102,255,0.25) 0%, transparent 60%),
      radial-gradient(ellipse 70% 90% at 80% 70%, rgba(255,184,0,0.12) 0%, transparent 60%);
  }
  50% {
    background:
      radial-gradient(ellipse 80% 100% at 70% 30%, rgba(0,102,255,0.3) 0%, transparent 60%),
      radial-gradient(ellipse 70% 90% at 20% 70%, rgba(255,184,0,0.15) 0%, transparent 60%);
  }
}
.cta-banner::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 80%);
  pointer-events: none;
}
.cta-banner__inner { position: relative; z-index: 1; padding: 0 16px; max-width: 720px; margin: 0 auto; }
.cta-banner__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: white;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 18px;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.7;
}
@media (min-width: 768px) { .cta-banner p { font-size: 1.18rem; margin-bottom: 40px; } }
.cta-banner__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 calc(32px + var(--safe-bottom));
  position: relative; overflow: hidden;
}
@media (min-width: 768px) { .footer { padding: 96px 0 calc(36px + var(--safe-bottom)); } }
.footer::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,102,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.footer .container { position: relative; z-index: 1; }

.footer__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; margin-bottom: 40px;
}
@media (min-width: 600px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }

.footer__brand { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 600px) {
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .footer__brand { grid-column: auto; }
}
.footer__brand img {
  height: 56px; width: auto; max-width: 240px;
  object-fit: contain;
  filter: brightness(1.15) drop-shadow(0 2px 8px rgba(255,255,255,0.1));
}
.footer__desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  max-width: 340px;
  line-height: 1.75;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700;
  color: white;
  margin-bottom: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col ul li a,
.footer__col ul li span {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  transition: color 0.2s;
  line-height: 1.5;
}
@media (hover: hover) {
  .footer__col ul li a:hover { color: white; }
}
.footer__contact-item {
  display: flex; gap: 10px; align-items: flex-start;
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  line-height: 1.5;
}
.footer__contact-item i {
  color: var(--blue);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.footer__copy { color: rgba(255,255,255,0.4); font-size: 0.82rem; }
.footer__social {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  transition: var(--trans);
}
@media (hover: hover) {
  .footer__social:hover { background: var(--blue); border-color: var(--blue); color: white; transform: translateY(-2px); }
}

/* ─── WHATSAPP FAB ─── */
.wa-fab {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  right: 20px;
  z-index: 800;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 12px 32px rgba(37,211,102,0.45);
  transition: var(--trans);
  animation: fabPulse 3s infinite;
}
@media (min-width: 768px) {
  .wa-fab { width: 60px; height: 60px; bottom: 28px; right: 28px; font-size: 1.75rem; }
}
@media (hover: hover) {
  .wa-fab:hover { transform: scale(1.1) rotate(8deg); }
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 12px 48px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.12); }
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.trust-bar__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; align-items: center;
}
@media (min-width: 600px) { .trust-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (min-width: 900px) { .trust-bar__grid { grid-template-columns: repeat(4, 1fr); gap: 36px; } }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.trust-item__title {
  font-family: var(--font-display);
  font-size: 0.92rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}
.trust-item__sub { font-size: 0.78rem; color: var(--text-muted); }

/* ─── RESPONSIVE NAV ─── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  #burger { display: flex; }
  #mobile-menu { display: flex; }
  .nav__right { display: none; }
}

/* ─── UTILITIES ─── */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

html { scrollbar-gutter: stable; }

@supports (-webkit-touch-callout: none) {
  .form-input, .form-select, .form-textarea { font-size: 16px; }
}

/* ─── SCROLL PROGRESS ─── */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 1100;
  background: transparent; pointer-events: none;
}
.scroll-progress__fill {
  height: 100%;
  background: var(--grad-blue);
  box-shadow: 0 0 12px var(--blue-glow);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.05s linear;
  width: 100%;
}

/* ─── BACK TO TOP ─── */
#back-to-top {
  position: fixed;
  bottom: calc(88px + var(--safe-bottom));
  right: 20px;
  z-index: 700;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: var(--trans);
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (hover: hover) {
  #back-to-top:hover { background: var(--blue); color: white; border-color: var(--blue); transform: translateY(-2px); }
}
@media (min-width: 768px) {
  #back-to-top { bottom: calc(100px + var(--safe-bottom)); right: 28px; width: 52px; height: 52px; }
}

/* ─── GLOBAL ANIMATIONS ─── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ═════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ═════════════════════════════════════════════════════════ */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-3);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text-muted);
  transition: var(--trans);
  border: 1.5px solid transparent;
  min-height: 38px;
  flex-shrink: 0;
}
@media (hover: hover) {
  .theme-toggle:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: rotate(15deg);
  }
}
[data-theme="dark"] .theme-toggle__icon-light { display: none; }
[data-theme="dark"] .theme-toggle__icon-dark { display: inline-block; }
.theme-toggle__icon-dark { display: none; }
.theme-toggle__icon-light { display: inline-block; }

/* Better dark mode hero adjustments */
[data-theme="dark"] .hero__bg {
  background: linear-gradient(180deg, #0F1419 0%, #0A0F18 100%) !important;
}
[data-theme="dark"] .nav--scrolled {
  background: rgba(15,20,25,0.95) !important;
  border-bottom-color: var(--border-2);
}
[data-theme="dark"] #main-nav {
  background: rgba(15,20,25,0.85);
  border-bottom-color: var(--border-2);
}
[data-theme="dark"] .hero__label {
  background: rgba(31,37,50,0.7) !important;
  border-color: rgba(0,102,255,0.3);
  color: #60A5FA;
}
[data-theme="dark"] .hero__title span {
  color: #60A5FA;
  -webkit-text-fill-color: #60A5FA;
}
[data-theme="dark"] .ticker { background: #050811; }
[data-theme="dark"] .ticker::before { background: linear-gradient(90deg, #050811, transparent); }
[data-theme="dark"] .ticker::after { background: linear-gradient(-90deg, #050811, transparent); }
[data-theme="dark"] img { filter: brightness(0.95); }
[data-theme="dark"] .footer { background: #050811; }
[data-theme="dark"] .trust-bar { background: var(--bg-2); }
[data-theme="dark"] .counter-item {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
}

/* ═════════════════════════════════════════════════════════
   STICKY MOBILE CTA BAR
   ═════════════════════════════════════════════════════════ */
.mobile-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 750;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 12px calc(10px + var(--safe-bottom));
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-cta-bar.visible { transform: translateY(0); }
@media (min-width: 768px) {
  .mobile-cta-bar { display: none; }
}
.mobile-cta-bar__btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 700;
  text-decoration: none;
  min-height: 48px;
}
.mobile-cta-bar__btn i { font-size: 1.15rem; }
.mobile-cta-bar__btn--call {
  background: var(--blue); color: white;
}
.mobile-cta-bar__btn--wa {
  background: var(--wa-green); color: white;
}

/* Adjust bottom for FAB on mobile when sticky bar visible */
@media (max-width: 767px) {
  body.has-sticky-cta .wa-fab,
  body.has-sticky-cta #back-to-top {
    bottom: calc(80px + var(--safe-bottom));
  }
  body.has-sticky-cta #back-to-top.visible {
    bottom: calc(150px + var(--safe-bottom));
  }
}

/* ═════════════════════════════════════════════════════════
   LIVE NOTIFICATIONS
   ═════════════════════════════════════════════════════════ */
.live-notif {
  position: fixed;
  z-index: 600;
  bottom: 100px;
  left: 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-xl);
  max-width: calc(100vw - 100px);
  max-width: 340px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.live-notif.show {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 600px) {
  .live-notif {
    bottom: 100px;
    left: 12px;
    max-width: calc(100vw - 90px);
  }
  body.has-sticky-cta .live-notif {
    bottom: 170px;
  }
}
@media (min-width: 768px) {
  .live-notif {
    bottom: 28px;
    left: 28px;
  }
}

.live-notif__icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
}
.live-notif__icon::after {
  content: '';
  position: absolute;
  top: -2px; right: -2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--white);
  animation: pulse-soft 1.5s infinite;
}
.live-notif__body { flex: 1; min-width: 0; }
.live-notif__text {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.35;
  font-weight: 500;
}
.live-notif__text strong { color: var(--text); font-weight: 700; }
.live-notif__time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ═════════════════════════════════════════════════════════
   PARTNERS TICKER
   ═════════════════════════════════════════════════════════ */
.partners-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  overflow: hidden;
  position: relative;
}
.partners-strip__title {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.partners-strip__track {
  display: flex;
  gap: 56px;
  animation: partnersScroll 35s linear infinite;
  align-items: center;
  width: max-content;
}
@media (min-width: 768px) {
  .partners-strip__track { gap: 80px; }
}
.partners-strip:hover .partners-strip__track { animation-play-state: paused; }

.partner-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  padding: 14px 22px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: var(--trans);
  min-width: 180px;
  height: 64px;
}
@media (hover: hover) {
  .partner-logo:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
  }
}
.partner-logo__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.partner-logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}
@keyframes partnersScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═════════════════════════════════════════════════════════
   CALLBACK MODAL
   ═════════════════════════════════════════════════════════ */
.callback-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,22,40,0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.callback-modal.open { opacity: 1; pointer-events: auto; }

.callback-modal__card {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 440px; width: 100%;
  padding: 28px 24px calc(28px + var(--safe-bottom));
  box-shadow: var(--shadow-2xl);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
@media (min-width: 768px) { .callback-modal__card { padding: 36px 32px; } }
.callback-modal.open .callback-modal__card { transform: scale(1) translateY(0); }

.callback-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
}
.callback-modal__close:hover { background: var(--border); color: var(--text); }

.callback-modal__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad-blue);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-blue);
}
.callback-modal h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text);
}
.callback-modal p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
  line-height: 1.6;
}
.callback-modal form { display: flex; flex-direction: column; gap: 12px; }
.callback-modal__submit {
  margin-top: 6px;
  width: 100%; justify-content: center;
}
.callback-modal__success {
  text-align: center;
  padding: 12px 16px;
  background: var(--green-light);
  color: #047857;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
  display: none;
}
.callback-modal__success.show { display: block; }

/* ═══════════════════════════════════════════════════════════
   МОБИЛЬНАЯ ВЕРСИЯ — удобство на телефоне
   Проверено на экране 390×844 (iPhone) и 360×800 (Android)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* iOS увеличивает страницу при нажатии на поле, если шрифт меньше 16px.
     16px отключает это раздражающее приближение. */
  input, select, textarea { font-size: 16px !important; }

  /* Плавающие кнопки: было пять элементов в одном углу, часть накладывалась.
     WhatsApp уже есть в нижней панели — отдельная кнопка лишняя. */
  .wa-fab { display: none !important; }
  #back-to-top { display: none !important; }

  /* Чат — над нижней панелью, не перекрывая её */
  #wil-chat-bubble { bottom: 84px !important; right: 14px !important; }
  body:not(.has-sticky-cta) #wil-chat-bubble { bottom: 18px !important; }

  /* Нижняя панель не должна закрывать конец страницы */
  body.has-sticky-cta { padding-bottom: 72px; }
  .mobile-cta-bar { padding-bottom: env(safe-area-inset-bottom, 0px); }

  /* Кнопки удобного размера для пальца */
  .btn { min-height: 46px; }
  #mobile-menu .nav-link { min-height: 48px; display: flex; align-items: center; }
}


