:root{
  --bg:#f4f7f5;
  --surface:#ffffff;
  --text:#111614;
  --muted:#56625b;
  --line:rgba(0,0,0,.08);
  --brand:#1B7544;
  --brandDark:#155B35;
  --radius:18px;
  --max:1200px;
  --shadow:0 14px 34px rgba(0,0,0,.10);
  --transition-smooth:all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce:all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --will-change-transform:will-change, transform;
  --backdrop-filter:backdrop-filter;
  
  /* Responsive font sizes using clamp() */
  --clamp-xs: clamp(0.75rem, 2vw, 0.875rem);     /* 12px - 14px */
  --clamp-sm: clamp(0.875rem, 2.5vw, 1rem);      /* 14px - 16px */
  --clamp-base: clamp(1rem, 3vw, 1.125rem);      /* 16px - 18px */
  --clamp-lg: clamp(1.125rem, 3.5vw, 1.25rem);   /* 18px - 20px */
  --clamp-xl: clamp(1.25rem, 4vw, 1.5rem);       /* 20px - 24px */
  --clamp-2xl: clamp(1.5rem, 5vw, 2rem);         /* 24px - 32px */
  --clamp-3xl: clamp(2rem, 6vw, 2.5rem);         /* 32px - 40px */
  --clamp-4xl: clamp(2.5rem, 7vw, 3.5rem);       /* 40px - 56px */
  --clamp-5xl: clamp(3rem, 8vw, 4rem);           /* 48px - 64px */
  
  /* Specialized clamp values for LFB elements */
  --clamp-nav-lfb: clamp(0.9rem, 2.2vw, 1.1rem);  /* Navigation */
  --clamp-hero-lfb: clamp(2.5rem, 6vw, 4rem);       /* Hero titles */
  --clamp-card-lfb: clamp(1.1rem, 2.8vw, 1.4rem);  /* Card titles */
  --clamp-btn-lfb: clamp(0.8rem, 2vw, 0.95rem);     /* Buttons */
  
  /* Variable Fonts Settings */
  --font-weight-min: 200;
  --font-weight-max: 900;
  --font-slant-min: -10;
  --font-slant-max: 0;
  --font-weight-default: 400;
  --font-weight-hover: 600;
  --font-weight-scroll: 700;
  
  /* Animation timing for variable fonts */
  --transition-variable: font-variation-settings 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 1200px){
  .footer-hero{
    grid-template-columns: 1fr;
  }
  .footer-hero-actions{
    justify-content:flex-start;
  }
}
/* ===== PERFORMANCE OPTIMIZATIONS ===== */
*{box-sizing:border-box}

/* GPU acceleration for animated elements */
.hero, .brand-card, .process-item, .parts-card, .contact-cta, .btn, .feature-split {
  backface-visibility: hidden;
  perspective: 1000px;
  transform: translateZ(0);
}

/* Reduce paint on scroll */
body {
  margin:0;
  font-family: 'Inter Variable', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-variation-settings: 'wght' var(--font-weight-default), 'slnt' 0;
  font-feature-settings: 'ss01', 'ss02';
  transition: var(--transition-variable);
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(27,117,68,.14), transparent 60%),
    radial-gradient(860px 520px at 95% 0%, rgba(27,117,68,.10), transparent 55%),
    var(--bg);
  color:var(--text);
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Variable font classes for LFB */
.variable-font {
  font-variation-settings: 'wght' var(--font-weight-default), 'slnt' 0;
  transition: var(--transition-variable);
}

.variable-font-hover:hover {
  font-variation-settings: 'wght' var(--font-weight-hover), 'slnt' -5;
}

.scroll-variable {
  font-variation-settings: 'wght' var(--font-weight-default), 'slnt' 0;
  transition: var(--transition-variable);
}

/* Variable font navigation for LFB */
nav a {
  font-variation-settings: 'wght' 500, 'slnt' 0;
  transition: var(--transition-variable);
}

nav a:hover {
  font-variation-settings: 'wght' 700, 'slnt' -8;
}

nav a.active {
  font-variation-settings: 'wght' 600, 'slnt' 0;
}

/* Variable font buttons for LFB */
.btn {
  font-variation-settings: 'wght' 500, 'slnt' 0;
  transition: var(--transition-variable);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(27,117,68,.18), rgba(27,117,68,.04));
  border: 1px solid rgba(27,117,68,.28);
  transform: translateZ(0); /* Hardware acceleration */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Advanced hover effects for buttons */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.4) 0%, 
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: 1;
}

.btn:hover {
  font-variation-settings: 'wght' 700, 'slnt' -5;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(27,117,68,.25);
  background: linear-gradient(135deg, rgba(27,117,68,.35), rgba(27,117,68,.15));
  border-color: rgba(27,117,68,.4);
}

.btn:hover::before {
  left: 100%;
}

.btn:hover::after {
  width: 150%;
  height: 150%;
  opacity: 0.8;
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(27,117,68,.2);
}

/* Shimmer effect for buttons */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Liquid fill effect */
.btn-liquid {
  position: relative;
  overflow: hidden;
}

.btn-liquid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(27,117,68,0) 0%, 
    rgba(27,117,68,0.3) 50%, 
    rgba(27,117,68,0) 100%
  );
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.btn-liquid:hover::before {
  transform: translateY(0);
}

/* Morphing button effect */
.btn-morph {
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-morph:hover {
  border-radius: 12px;
  transform: translateY(-3px) rotateX(5deg);
  box-shadow: 0 15px 35px rgba(27,117,68,.3);
}

/* Glow effect */
.btn-glow {
  position: relative;
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  border-radius: inherit;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-glow:hover::before {
  opacity: 0.6;
}

.btn-glow:hover {
  box-shadow: 0 0 20px rgba(27,117,68,0.4);
}

.btn:hover {
  font-variation-settings: 'wght' 700, 'slnt' -5;
}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}

header{
  position:sticky; 
  top:0; 
  z-index:50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(27, 117, 68, 0.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              background 0.3s ease,
              backdrop-filter 0.3s ease;
  /* Fix sticky positioning issues */
  will-change: transform;
  transform: translateZ(0); /* Hardware acceleration */
}

/* Ensure search-pop is above everything */
header .search-pop {
  z-index: 1001 !important;
}

.header{
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px 0;
  flex-wrap: nowrap;
}

.header .brand {
  flex-shrink: 0;
}

.header .navwrap {
  flex: 0 0 auto;
  min-width: 0;
}

.header .header-search {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
  position: relative;
}

.header .actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img{height:110px; width:auto; display:block}

nav{
  display:flex;
  justify-content:center;
  gap:18px;
  font-weight:900;
  font-size: var(--clamp-nav-lfb);
  color:var(--brandDark);
  white-space:nowrap;
}
nav a{padding:8px 10px; border-radius:12px; transition: var(--transition-smooth); position: relative; overflow: hidden}
nav a:hover{color:var(--brand);background:rgba(27,117,68,.05); transform: translateY(-1px)}
nav a.active{color:var(--brand);background:rgba(27,117,68,.08)}

.actions{display:flex; justify-content:flex-end}
.btn{
  display:inline-flex; align-items:center;
  padding:12px 20px;
  border-radius:999px;
  border:1px solid rgba(27,117,68,.28);
  background:linear-gradient(135deg, rgba(27,117,68,.18), rgba(27,117,68,.04));
  color:var(--brandDark);
  font-weight:900;
  font-size: var(--clamp-btn-lfb);
  transition: var(--transition-bounce);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27,117,68,.20);
  background:linear-gradient(135deg, rgba(27,117,68,.25), rgba(27,117,68,.1));
}
.btn:active{
  transform: translateY(-1px) scale(0.98);
}

.hero{padding:42px 0 18px; opacity: 1; animation: none}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:26px;
  align-items:center;
}
h1{
  margin:0 0 10px;
  font-size:clamp(34px,4.4vw,56px);
  line-height:1.12;
  letter-spacing:-.6px;
  max-width:20ch;
}
.lead{margin:0; color:var(--muted); font-size:16px; line-height:1.6; max-width:70ch}

.hero-media{
  height:360px;
  border-radius:28px;
  border:1px solid var(--line);
  overflow:hidden;
  background-image: url("../../img/lfb/brands/hero-main-3.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size: cover;
  transition: var(--transition-smooth);
  position: relative;
  transform: translateZ(0); /* Hardware acceleration */
}
.hero-media:hover{
  transform: translateZ(0);
  box-shadow: 0 20px 40px rgba(27,117,68,.15);
  opacity: 0.95;
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(520px 260px at 25% 20%, rgba(27,117,68,.20), transparent 60%),
    radial-gradient(520px 260px at 85% 90%, rgba(27,117,68,.10), transparent 60%);
  pointer-events:none;
}

.section{padding:18px 0 26px}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:14px}
.section-head h2{margin:0; font-size:18px; letter-spacing:-.2px}
.section-head p{margin:0; color:var(--muted); font-weight:700; font-size:13px; max-width:80ch}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 10px 24px rgba(0,0,0,.07);
  padding:16px;
  transition: all 0.3s ease;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow:0 16px 32px rgba(0,0,0,.12);
}


.footer{border-top:1px solid var(--line); padding:18px 0 30px; color:var(--muted); font-size:13px}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .hero-media{height:260px}
  .desktop-nav{display:none}
  .header .navwrap{display:none}
  .mobile-menu-toggle{display:flex}
  .header-search{display:none !important} /* Скрываем строку поиска на узких экранах */
  .brand img{height:70px !important}
}
@media (max-width: 780px){
  .brand-list{columns:2}
}
@media (max-width: 480px){
  .brand img{height:88px}
  .brand-list{columns:1}
}


/* ===== Header: stable + search ===== */
.header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  min-height: 80px;
}

.header .brand {
  flex-shrink: 0;
  order: 1;
}

.header .navwrap {
  flex: 0 0 auto;
  min-width: 0;
  order: 2;
}

.header .header-search {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
  order: 3;
}

.header .actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  order: 4;
}

.navwrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-width:0;
  position:relative;
  z-index: 100;
}
.header-search{
  display:flex;
  align-items:center;
  min-width:0;
  /* Ensure proper z-index and overflow for autocomplete */
  position: relative;
  z-index: 1001;
  isolation: isolate;
  overflow: visible !important;
}
.header-search form{
  transition: var(--transition-smooth);
}
.header-search form:hover{
  border-color: rgba(27,117,68,.3);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.header-search input::placeholder{
  color: var(--muted);
  opacity: 0.7;
}

/* Language switcher specific styles */
.language-switcher {
  display: inline-block;
  flex-shrink: 0;
}

.language-switcher .form-select {
  padding: 8px 10px;
  border: 1px solid var(--line, #ddd);
  border-radius: var(--radius, 8px);
  background: var(--surface, white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-width: 70px;
  max-width: 70px;
  color: var(--brandDark, #155B35);
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
}

.language-switcher .form-select:hover {
  border-color: var(--brand, #1B7544);
  background: rgba(27, 117, 68, 0.05);
}

.language-switcher .form-select:focus {
  outline: none;
  border-color: var(--brand, #1B7544);
  box-shadow: 0 0 0 2px rgba(27, 117, 68, 0.15);
}

/* Header search autocomplete */
#header-search-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 8px;
  width: 100%;
  max-height: min(350px, 60vh);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 9999 !important;
  box-shadow: var(--shadow);
  /* Ensure scroll works on all devices */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  /* Create isolated stacking context */
  isolation: isolate;
  /* Hardware acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

#header-search-results .autocomplete-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.2s ease;
  background: white;
  position: relative;
}

#header-search-results .autocomplete-item:hover {
  background: rgba(27,117,68,.05);
}

#header-search-results .autocomplete-item:last-child {
  border-bottom: none;
}

#header-search-results .autocomplete-item-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

#header-search-results .autocomplete-item-info {
  flex: 1;
  min-width: 0;
}

#header-search-results .autocomplete-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

#header-search-results .autocomplete-item-number {
  font-weight: 900;
  color: var(--text);
  font-size: 14px;
}

#header-search-results .autocomplete-item-brand {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(27,117,68,.12);
  color: var(--brandDark);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

#header-search-results .autocomplete-item-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#header-search-results .autocomplete-item-price {
  text-align: right;
  margin-left: auto;
  flex-shrink: 0;
}

#header-search-results .autocomplete-item-price-value {
  font-weight: 900;
  color: var(--brandDark);
  font-size: 16px;
  white-space: nowrap;
}
.search{
  display:flex;
  align-items:center;
  gap:6px;
  width:260px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 10px;
}
.search input{
  border:none;
  outline:none;
  background:transparent;
  width:100%;
  font-size:12.5px;
  color:var(--text);
}
.icon{width:18px; height:18px; opacity:.6; flex:0 0 auto}

.search-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface);
  cursor:pointer;
  font-size:16px;
}
.search-pop{
  display:none;
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:80px;
  width:min(640px, calc(100vw - 36px));
  background:rgba(255,255,255,.96);
  border:1px solid var(--line);
  border-radius:18px;
  padding:10px;
  box-shadow:var(--shadow);
  z-index: 9999 !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.search-pop .search{width:100%}
.search-pop .search input{font-size:14px}
.pop-note{margin:10px 6px 2px; color:var(--muted); font-weight:700; font-size:12px}

/* ===== Brands grid (like screenshot) ===== */
.brands-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}
.brand-card{
  background:var(--surface);
  border:1px solid rgba(0,0,0,.06);
  border-radius:26px;
  padding:18px 20px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}
.brand-card:hover{
  transform: translateY(-4px);
  box-shadow:0 20px 40px rgba(27,117,68,.18);
  border-color: rgba(27,117,68,.25);
}
.brand-card h3{
  margin:0 0 10px;
  font-size:18px;
  letter-spacing:-.2px;
  color:var(--text);
}
.brand-card p{
  margin:0;
  color:var(--muted);
  font-weight:650;
  line-height:1.45;
}

/* responsive */
@media (max-width: 1200px){
  .search{display:none}
  .search-toggle{display:inline-flex}
  .header-search{display:none !important} /* Скрываем строку поиска на экранах меньше 1200px */
}
@media (max-width: 980px){
  .brands-grid{grid-template-columns:repeat(2, 1fr)}
  nav{display:none}
  .header{grid-template-columns:auto auto}
  .navwrap{justify-content:flex-end}
}
@media (max-width: 520px){
  .brands-grid{grid-template-columns:1fr}
}

.brands-note{
  margin: 6px 0 22px;
  max-width: 820px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 600;
}


/* --- Clean buttons & remove shadows --- */
.btn{
  background: none !important;
  box-shadow: none !important;
  border: 1px solid var(--line) !important;
}

.brand-card,
.hero-media,
header{
  box-shadow: none !important;
}


/* --- Remove button borders --- */
.btn{
  border: none !important;
}


/* ===== After Brands: Spare Parts + Process ===== */
.parts-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:26px;
  padding:18px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.parts-card:hover{
  transform: translateY(-4px);
  box-shadow:0 16px 32px rgba(27,117,68,.12);
  border-color: rgba(27,117,68,.2);
}
.parts-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.parts-title{margin:0 0 8px; font-size:18px; letter-spacing:-.2px}
.parts-text{margin:0 0 12px; color:var(--muted); font-weight:650; line-height:1.55}
.parts-search{
  display:flex;
  gap:10px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 12px;
  background:transparent;
  transition: var(--transition-smooth);
}
.parts-search:focus-within{
  border-color: var(--brand);
  box-shadow:0 0 0 4px rgba(27,117,68,.1);
}
.parts-search input{
  border:none; outline:none; background:transparent; width:100%;
  font-size:14px; color:var(--text);
}
.parts-hint{margin:10px 0 0; color:var(--muted); font-size:12.5px; font-weight:650}

.steps{margin:0; padding-left:18px; color:var(--text); font-weight:800}
.steps li{margin:10px 0; color:var(--muted); font-weight:650; line-height:1.45}
.step-n{
  display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:999px;
  border:1px solid var(--line);
  margin-right:8px; color:var(--brandDark); font-weight:900;
}

/* Buttons variants (clean) */
.btn--primary{
  background:var(--brand) !important;
  color:white !important;
  border:none !important;
}
.btn--primary:hover{
  background:var(--brandDark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27,117,68,.3);
}

/* Login button specific styling - green background with white text */
.btn--login-green,
.btn.btn--primary[data-translate="login-btn"],
button.btn.btn--primary[data-translate="login-btn"] {
  background: #28a745 !important;
  color: white !important;
  border: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.btn--login-green:hover,
.btn.btn--primary[data-translate="login-btn"]:hover,
button.btn.btn--primary[data-translate="login-btn"]:hover {
  background: #218838 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3) !important;
}

.btn--login-green:active,
.btn.btn--primary[data-translate="login-btn"]:active,
button.btn.btn--primary[data-translate="login-btn"]:active {
  background: #1e7e34 !important;
  color: white !important;
  transform: translateY(-1px) scale(0.98);
}

/* Navigation login button styling */
.actions a[href*="login"] {
  background: #28a745 !important;
  color: white !important;
  border: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 9px 12px !important;
  border-radius: 14px !important;
}

.actions a[href*="login"]:hover {
  background: #218838 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3) !important;
}

/* Mobile navigation login button */
.mobile-nav a[href*="login"] {
  background: #28a745 !important;
  color: white !important;
  border: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  margin: 8px 0 !important;
}

.mobile-nav a[href*="login"]:hover {
  background: #218838 !important;
  color: white !important;
}

/* General green button visibility fixes */
.btn-success,
.btn.btn-success,
button.btn-success,
.btn[style*="#28a745"],
.btn[style*="rgb(40, 167, 69)"],
.btn-primary[style*="#28a745"] {
  background: #28a745 !important;
  color: white !important;
  border: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  /* Ensure minimum contrast ratio of 4.5:1 */
  text-shadow: none !important;
}

.btn-success:hover,
.btn.btn-success:hover,
button.btn-success:hover,
.btn[style*="#28a745"]:hover,
.btn[style*="rgb(40, 167, 69)"]:hover,
.btn-primary[style*="#28a745"]:hover {
  background: #218838 !important;
  color: white !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Remove any hover-only visibility restrictions */
.btn:not(:hover) {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure proper contrast for all green buttons */
.btn[style*="background-color: #28a745"],
.btn[style*="background: #28a745"],
.btn-green,
.btn--green {
  background: #28a745 !important;
  color: white !important;
  border: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  /* WCAG AA compliant contrast ratio */
  font-weight: 500 !important;
}

.btn[style*="background-color: #28a745"]:hover,
.btn[style*="background: #28a745"]:hover,
.btn-green:hover,
.btn--green:hover {
  background: #218838 !important;
  color: white !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Theme consistency for buttons - Light and Dark theme support */
/* Light theme (default) */
:root {
  --login-btn-bg: #28a745;
  --login-btn-hover: #218838;
  --login-btn-active: #1e7e34;
  --login-btn-text: #ffffff;
  --btn-shadow: rgba(40, 167, 69, 0.3);
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  :root {
    --login-btn-bg: #28a745;
    --login-btn-hover: #218838;
    --login-btn-active: #1e7e34;
    --login-btn-text: #ffffff;
    --btn-shadow: rgba(40, 167, 69, 0.4);
  }
  
  /* Ensure login buttons maintain green color in dark theme */
  .btn--login-green,
  .btn.btn--primary[data-translate="login-btn"],
  button.btn.btn--primary[data-translate="login-btn"],
  .actions a[href*="login"],
  .mobile-nav a[href*="login"] {
    background: var(--login-btn-bg) !important;
    color: var(--login-btn-text) !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .btn--login-green:hover,
  .btn.btn--primary[data-translate="login-btn"]:hover,
  button.btn.btn--primary[data-translate="login-btn"]:hover,
  .actions a[href*="login"]:hover,
  .mobile-nav a[href*="login"]:hover {
    background: var(--login-btn-hover) !important;
    color: var(--login-btn-text) !important;
    box-shadow: 0 8px 20px var(--btn-shadow) !important;
  }
  
  /* All green buttons in dark theme */
  .btn-success,
  .btn.btn-success,
  button.btn-success,
  .btn[style*="#28a745"],
  .btn-green,
  .btn--green {
    background: var(--login-btn-bg) !important;
    color: var(--login-btn-text) !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .btn-success:hover,
  .btn.btn-success:hover,
  button.btn-success:hover,
  .btn[style*="#28a745"]:hover,
  .btn-green:hover,
  .btn--green:hover {
    background: var(--login-btn-hover) !important;
    color: var(--login-btn-text) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Explicit dark theme class support */
[data-theme="dark"] .btn--login-green,
[data-theme="dark"] .btn.btn--primary[data-translate="login-btn"],
[data-theme="dark"] button.btn.btn--primary[data-translate="login-btn"],
[data-theme="dark"] .actions a[href*="login"],
[data-theme="dark"] .mobile-nav a[href*="login"],
[data-theme="dark"] .btn-success,
[data-theme="dark"] .btn.btn-success,
[data-theme="dark"] button.btn-success,
[data-theme="dark"] .btn[style*="#28a745"],
[data-theme="dark"] .btn-green,
[data-theme="dark"] .btn--green {
  background: #28a745 !important;
  color: #ffffff !important;
  border: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

[data-theme="dark"] .btn--login-green:hover,
[data-theme="dark"] .btn.btn--primary[data-translate="login-btn"]:hover,
[data-theme="dark"] button.btn.btn--primary[data-translate="login-btn"]:hover,
[data-theme="dark"] .actions a[href*="login"]:hover,
[data-theme="dark"] .mobile-nav a[href*="login"]:hover,
[data-theme="dark"] .btn-success:hover,
[data-theme="dark"] .btn.btn-success:hover,
[data-theme="dark"] button.btn-success:hover,
[data-theme="dark"] .btn[style*="#28a745"]:hover,
[data-theme="dark"] .btn-green:hover,
[data-theme="dark"] .btn--green:hover {
  background: #218838 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4) !important;
}

/* Ensure consistent styling across theme switches */
.btn--login-green,
.btn.btn--primary[data-translate="login-btn"],
button.btn.btn--primary[data-translate="login-btn"],
.actions a[href*="login"],
.mobile-nav a[href*="login"],
.btn-success,
.btn.btn-success,
button.btn-success,
.btn[style*="#28a745"],
.btn-green,
.btn--green {
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
  /* Maintain layout consistency */
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.btn--ghost{
  background:transparent !important;
  border:1px solid var(--line) !important;
  color:var(--brandDark) !important;
}
.btn--ghost:hover{
  background:rgba(27,117,68,.05) !important;
  border-color: var(--brand) !important;
}
.btn--link{
  background:transparent !important;
  border:none !important;
  padding:10px 6px !important;
  color:var(--brandDark) !important;
}
.btn--link:hover{
  color:var(--brand) !important;
}
.btn--danger{
  background:#dc2626 !important;
  color:white !important;
  border:1px solid #dc2626 !important;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}
.btn--danger:hover{
  background:#b91c1c !important;
  border-color:#b91c1c !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}

.cta-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}

.process-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}
.process-item{
  border:1px solid var(--line);
  border-radius:22px;
  padding:16px;
  background:transparent;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.process-item:hover{
  transform: translateY(-4px);
  box-shadow:0 12px 24px rgba(27,117,68,.1);
  border-color: rgba(27,117,68,.15);
  background: rgba(27,117,68,.02);
}
.process-item h3{margin:6px 0 8px; font-size:16px}
.process-item p{margin:0; color:var(--muted); font-weight:650; line-height:1.5}
.kicker{color:var(--brandDark); font-weight:900; font-size:12px; letter-spacing:.06em}

.contact-cta{
  border:1px solid var(--line);
  border-radius:26px;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:rgba(255,255,255,.65);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.contact-cta:hover{
  transform: translateY(-2px);
  box-shadow:0 16px 32px rgba(27,117,68,.1);
  background: rgba(255,255,255,.85);
}
.contact-title{margin:0 0 6px; font-size:20px; letter-spacing:-.2px}
.contact-text{margin:0; color:var(--muted); font-weight:650; line-height:1.55}
.contact-actions{display:flex; gap:10px; flex-wrap:wrap}

@media (max-width: 980px){
  .parts-grid{grid-template-columns:1fr}
  .process-grid{grid-template-columns:repeat(2, 1fr)}
  .contact-cta{flex-direction:column; align-items:flex-start}
}
@media (max-width: 520px){
  .process-grid{grid-template-columns:1fr}
}


/* ===== Featured split block (LFB style) ===== */
.feature-split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  border:1px solid var(--line);
  border-radius:26px;
  overflow:hidden;
}
.feature-image{
  min-height:360px;
  background-size:cover;
  background-position:center;
}
.feature-content{
  padding:26px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:rgba(255,255,255,.85);
}
.feature-kicker{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--brandDark);
  margin-bottom:10px;
}
.feature-title{
  margin:0 0 12px;
  font-size:28px;
  letter-spacing:-.3px;
}
.feature-text{
  margin:0 0 18px;
  color:var(--muted);
  font-weight:650;
  line-height:1.6;
  max-width:46ch;
}
.feature-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

@media (max-width: 980px){
  .feature-split{
    grid-template-columns:1fr;
  }
  .feature-image{
    min-height:260px;
  }
}


/* ===== Featured split block (LFB style) ===== */
.feature-split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  border:1px solid var(--line);
  border-radius:26px;
  overflow:hidden;
}
.feature-image{
  min-height:360px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.feature-content{
  padding:26px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:rgba(255,255,255,.85);
}
.feature-kicker{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--brandDark);
  margin-bottom:10px;
}
.feature-title{
  margin:0 0 12px;
  font-size:28px;
  letter-spacing:-.3px;
}
.feature-text{
  margin:0 0 18px;
  color:var(--muted);
  font-weight:650;
  line-height:1.6;
  max-width:46ch;
}
.feature-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
@media (max-width: 980px){
  .feature-split{grid-template-columns:1fr}
  .feature-image{min-height:260px}
}

/* Export page styles */
:root{
  --bg:#f4f7f5;
  --surface:#ffffff;
  --surface2:#fbfcfb;
  --text:#161a18;
  --muted:#55605a;
  --line:rgba(0,0,0,.08);
  --brand:#1B7544;
  --brandDark:#155B35;
  --brandSoft:rgba(27,117,68,.12);
  --brandSoft2:rgba(27,117,68,.18);
  --radius:18px;
  --max:1200px;
  --shadow:0 14px 34px rgba(0,0,0,.10);
  --shadow2:0 10px 24px rgba(0,0,0,.07);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:
    radial-gradient(1000px 600px at 10% -10%, rgba(27,117,68,.14), transparent 60%),
    radial-gradient(900px 560px at 95% 0%, rgba(27,117,68,.10), transparent 55%),
    var(--bg);
  color:var(--text);
}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}

header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  /* Allow autocomplete dropdowns to overflow */
  overflow: visible !important;
}
.header{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:14px 0;
  /* Allow autocomplete dropdowns to overflow */
  overflow: visible !important;
}

/* Specific override for header container */
header .container {
  overflow: visible !important;
}
.brand{display:flex; align-items:center; gap:12px; flex:0 0 auto}
.brand img{height:96px; width:auto; display:block}

.navwrap{display:flex; align-items:center; gap:10px; flex:1; justify-content:center; min-width:0; position:relative}
nav{display:flex; gap:16px; flex-wrap:nowrap; color:var(--muted); font-weight:900; font-size:14.5px; white-space:nowrap}
nav a{padding:9px 12px; border-radius:14px}
nav a:hover{background:var(--brandSoft2); color:var(--brandDark)}
nav a.active{background:var(--brandSoft2); color:var(--brandDark)}

.search{
  display:flex; align-items:center; gap:6px;
  width:260px;
  background:var(--surface2);
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 10px;
  flex:0 0 auto;
}
.search input{border:none; outline:none; background:transparent; width:100%; font-size:12.5px; color:var(--text)}
.icon{width:18px; height:18px; opacity:.65; flex:0 0 auto}

.actions{display:flex; gap:8px; align-items:center; flex:0 0 auto; white-space:nowrap}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface);
  font-weight:900;
  font-size:12.5px;
}
.btn:hover{border-color:rgba(27,117,68,.28); box-shadow:0 10px 18px rgba(0,0,0,.06)}
.btn--primary{
  border-color:rgba(27,117,68,.35);
  background:linear-gradient(135deg, var(--brandSoft2), rgba(27,117,68,.04));
  color:var(--brandDark);
}

.search-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface);
  font-size:16px;
  cursor:pointer;
  box-shadow:0 10px 18px rgba(0,0,0,.04);
}
.search-toggle:hover{border-color:rgba(27,117,68,.28); background:var(--surface2)}

.search-pop{
  display:none;
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:100%;
  margin-top:10px;
  width:min(640px, calc(100vw - 36px));
  background:rgba(255,255,255,.96);
  border:1px solid var(--line);
  border-radius:18px;
  padding:10px;
  box-shadow:var(--shadow);
}
.search-pop .search{display:flex; width:100%; padding:10px 12px}
.search-pop .search input{font-size:14px}
.search-pop .pop-note{margin:10px 6px 2px; color:var(--muted); font-weight:700; font-size:12px}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:var(--brandSoft);
  color:var(--brandDark);
  font-weight:900;
  font-size:12px;
}

.hero{padding:46px 0 18px}
.hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:26px; align-items:center}
h1{margin:12px 0 10px; font-size:clamp(32px,4.2vw,52px); line-height:1.12; letter-spacing:-.6px; max-width:18ch}
.lead{margin:0; max-width:70ch; color:var(--muted); font-size:16px; line-height:1.6}
.hero-media{
  height:340px;
  border-radius:28px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  background:
    linear-gradient(0deg, rgba(0,0,0,.18), rgba(0,0,0,0)),
    url("../../img/lfb/brands/hero-main-3.png") center/cover no-repeat;
  position:relative;
  overflow:hidden;
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(520px 260px at 25% 20%, rgba(27,117,68,.20), transparent 60%),
    radial-gradient(520px 260px at 85% 90%, rgba(27,117,68,.10), transparent 60%);
  pointer-events:none;
}

.section{padding:22px 0}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:14px}
.section-head h2{margin:0; font-size:18px; letter-spacing:-.2px}
.section-head p{margin:0; color:var(--muted); font-weight:700; font-size:13px; max-width:80ch}

.grid{display:grid; gap:16px}
.grid-3{grid-template-columns:repeat(3, 1fr)}
.grid-2{grid-template-columns:repeat(2, 1fr)}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow2);
  overflow:hidden;
}
.card-pad{padding:16px}
.card-title{margin:0 0 6px; font-weight:1000; font-size:15px}
.card-text{margin:0; color:var(--muted); font-weight:650; font-size:13px; line-height:1.45}

.step{
  display:flex; gap:12px; align-items:flex-start;
}
.step .n{
  width:34px; height:34px; border-radius:14px;
  display:grid; place-items:center;
  background:var(--brandSoft2);
  color:var(--brandDark);
  font-weight:1000;
  flex:0 0 auto;
}

.list{margin:10px 0 0; padding-left:18px; color:var(--muted); font-weight:650; font-size:13px; line-height:1.55}
.list li{margin:6px 0}

.pillrow{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.pill{
  display:inline-flex; align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:var(--brandSoft);
  color:var(--brandDark);
  font-weight:900;
  font-size:12px;
}

.band{
  margin-top:10px;
  border:1px solid rgba(27,117,68,.18);
  background:linear-gradient(135deg, rgba(27,117,68,.16), rgba(27,117,68,.04));
  border-radius:24px;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.band strong{font-size:16px}
.band span{display:block; color:var(--muted); font-weight:700; margin-top:4px; font-size:13px}

.form{display:grid; gap:12px}
.field{display:grid; gap:6px}
label{font-weight:900; font-size:13px}
input, textarea, select{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 12px;
  font-size:14px;
  background:#fff;
  outline:none;
}
textarea{min-height:110px; resize:vertical}
input:focus, textarea:focus, select:focus{border-color:rgba(27,117,68,.45); box-shadow:0 0 0 4px rgba(27,117,68,.10)}
.form .row{display:grid; grid-template-columns:1fr 1fr; gap:12px}

.footer{
  margin-top:18px;
  border-top:1px solid var(--line);
  padding:22px 0 34px;
  color:var(--muted);
  font-size:13px;
}
.footer-grid{display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:16px}
.small{font-size:12px; color:var(--muted); font-weight:700}

@media (max-width: 1200px){
  .search{display:none}
  .search-toggle{display:inline-flex}
  .header-search{display:none !important} /* Скрываем строку поиска на экранах меньше 1200px */
}
@media (max-width: 980px){
  nav{display:none}
  .hero-grid{grid-template-columns:1fr}
  .hero-media{height:260px}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .form .row{grid-template-columns:1fr}
  
  /* Improve mobile card spacing */
  .card {
    margin-bottom: 16px;
  }
  
  /* Better mobile typography */
  h1 { font-size: 28px !important; }
  h2 { font-size: 22px !important; }
  h3 { font-size: 18px !important; }
  
  /* Improve table scrolling on mobile */
  .card-pad > div[style*="overflow"] {
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 768px){
  /* Better mobile padding */
  .section {
    padding: 24px 0;
  }
  
  .container {
    padding: 0 16px;
  }
  
  /* Improve mobile cards */
  .card-pad {
    padding: 16px !important;
  }
  
  /* Better mobile buttons */
  .btn {
    padding: 10px 18px !important;
    font-size: 14px !important;
    width: 100%;
    justify-content: center;
  }
  
  .contact-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .contact-actions .btn {
    width: 100%;
  }
  
  /* Improve process grid on mobile */
  .process-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  
  .process-item {
    padding: 16px !important;
  }
  
  .process-item h3 {
    font-size: 24px !important;
  }
  
  /* Improve table on mobile */
  table {
    font-size: 13px !important;
  }
  
  table th, table td {
    padding: 8px !important;
  }
  
  /* Better form inputs on mobile */
  input[type="text"], input[type="number"], select, textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 12px !important;
  }
}
@media (max-width: 520px){
  .actions .btn:not([href*="logout"]){display:none}
  
  .process-grid {
    grid-template-columns: 1fr !important;
  }
  
  h1 { font-size: 24px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 16px !important; }
}
/* ===== Legal pages ===== */
.legal-card{
  border:1px solid var(--line);
  border-radius:26px;
  padding:18px;
  background:transparent;
  max-width: 920px;
}
.legal-card p{color:var(--muted); font-weight:650; line-height:1.65; margin:0 0 12px}
.legal-card h2{margin:18px 0 10px; font-size:16px}
.legal-card ul{margin:0 0 12px 18px; color:var(--muted); font-weight:650; line-height:1.6}

/* ===== Contact page ===== */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card{
  border:1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: transparent;
}
.contact-muted{margin:0 0 12px; color:var(--muted); font-weight:650; line-height:1.6}
.contact-list{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; color:var(--muted); font-weight:650}
.contact-form{display:flex; flex-direction:column; gap:10px}
.contact-form label span{display:block; font-weight:900; font-size:12.5px; color:var(--text); margin-bottom:6px}
.contact-form input, .contact-form textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  font: inherit;
  background: transparent;
  outline: none;
}
.contact-hint{margin:10px 0 0; color:var(--muted); font-size:12.5px; font-weight:650; line-height:1.55}
@media (max-width: 980px){
  .contact-grid{grid-template-columns:1fr}
}

/* ===== Footer (include) ===== */
.footer-b2b{
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 10% -20%, rgba(27,117,68,.16), transparent 60%),
    linear-gradient(135deg, rgba(27,117,68,.08), rgba(255,255,255,0) 60%),
    rgba(255,255,255,.82);
  padding: 18px 0 6px;
  height: auto; /* Ensure natural height */
  overflow: visible; /* Allow content to flow naturally */
}
.footer-hero{
  display:grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 18px;
  border:1px solid rgba(27,117,68,.15);
  border-radius:24px;
  padding:28px 30px;
  background:rgba(255,255,255,.75);
  box-shadow:0 16px 32px rgba(0,0,0,.06);
  transform: none;
  align-items:center;
}
.footer-hero-text{
  min-width: 0;
}
.footer-hero-text p{
  margin:10px 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.6;
}
.footer-eyebrow{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--brandDark);
  font-weight: 900;
}
.footer-headline{
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 1000;
  letter-spacing: -0.4px;
  margin-top:6px;
  line-height: 1.15;
  word-break: break-word;
  white-space: normal;
}
.footer-hero-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 18px 0 26px;
}
.footer-col{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.footer-brand-col{
  gap: 8px;
}
.footer-brand{
  font-weight: 1000;
  letter-spacing: -0.3px;
  font-size: 16px;
  color: var(--text);
}
.footer-sub{
  color: var(--muted);
  font-weight: 650;
  font-size: 12.5px;
  line-height: 1.55;
  max-width: 52ch;
}
.footer-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  background: rgba(27,117,68,.12);
  color: var(--brandDark);
  font-weight: 900;
  font-size: 11px;
  width: fit-content;
}
.footer-title{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  color: var(--brandDark);
}
.footer-links{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.footer-links a{
  color: var(--brandDark);
  font-weight: 800;
  font-size: 12.5px;
  text-decoration: none;
  width: fit-content;
  transition: var(--transition-smooth);
}
.footer-links a:hover{
  color: var(--brand);
}
.footer-contact{
  display:flex;
  flex-direction:column;
  gap:8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
}
.footer-bottom{
  padding: 16px 0 28px;
  color: var(--muted);
  font-weight: 650;
  font-size: 12.5px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  border-top: 1px solid rgba(0,0,0,.05);
}
.footer-note{
  font-weight: 700;
  color: rgba(21,91,53,.75);
}
@media (max-width: 980px){
  .footer-hero{
    grid-template-columns: 1fr;
  }
  .footer-hero-actions{
    justify-content:flex-start;
  }
  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px){
  .footer-hero{
    padding:20px;
  }
  .footer-hero-actions{
    flex-direction:column;
    width:100%;
  }
  .footer-hero-actions .btn{
    width:100%;
    justify-content:center;
  }
  .footer-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* ===== Modern Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Staggered Animations ===== */
.brand-card:nth-child(1) { animation-delay: 0.1s; }
.brand-card:nth-child(2) { animation-delay: 0.2s; }
.brand-card:nth-child(3) { animation-delay: 0.3s; }
.brand-card:nth-child(4) { animation-delay: 0.4s; }
.brand-card:nth-child(5) { animation-delay: 0.5s; }
.brand-card:nth-child(6) { animation-delay: 0.6s; }
.brand-card:nth-child(7) { animation-delay: 0.7s; }
.brand-card:nth-child(8) { animation-delay: 0.8s; }

.brand-card.animated {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== Enhanced Loading States ===== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -200px;
  width: 200px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(27, 117, 68, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

/* Modern loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(27, 117, 68, 0.1);
  border-top: 3px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pulse loading animation */
.pulse-loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.05) 25%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Enhanced Button Effects ===== */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ===== Modern Gradient Effects & Glassmorphism ===== */
.glassmorphism {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--brandDark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, var(--brand), var(--brandDark)) border-box;
  border: 2px solid transparent;
}

.hero-media {
  background: 
    linear-gradient(0deg, rgba(0,0,0,.18), rgba(0,0,0,0)),
    url("../../img/lfb/hero/hero-tractors-john-deere.png") center/cover no-repeat;
}

/* Enhanced gradients for buttons */
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brandDark)) !important;
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn--primary:hover::before {
  left: 100%;
}

/* Modern card backgrounds */
.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brandDark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand-card:hover::before {
  opacity: 1;
}

/* Animated background gradients */
.animated-bg {
  background: linear-gradient(-45deg, #1B7544, #155B35, #2a9d5f, #1a6b38);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Enhanced header with glassmorphism */
header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 117, 68, 0.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              background 0.3s ease,
              backdrop-filter 0.3s ease;
}

/* Modern search with glassmorphism */
.search {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-pop {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(27, 117, 68, 0.1);
  z-index: 1000;
}

/* ===== Mobile Footer Menu ===== */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

/* Mobile menu - ensure it works on all screen sizes when active */
.footer-mobile-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.footer-mobile-menu.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 80vw;
  height: 100%;
  background: var(--surface);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 20px;
}

.footer-mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.mobile-menu-close:hover {
  background: rgba(27,117,68,.1);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 40px;
}

.mobile-menu-link {
  display: block;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.mobile-menu-link:hover {
  background: rgba(27,117,68,.08);
  color: var(--brandDark);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  
  /* Reduce footer size on mobile */
  .footer-b2b {
    padding: 12px 0 18px !important;
  }
  .footer-row {
    padding: 12px 0 8px !important;
  }
  .footer-sub {
    font-size: 11px !important;
    margin-top: 4px !important;
  }
  .footer-bottom {
    padding: 6px 0 12px !important;
    font-size: 11px !important;
  }
  
  /* Mobile menu button */
  .footer-mobile-menu-toggle {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition-smooth);
  }
  .footer-mobile-menu-toggle:hover {
    background: rgba(27,117,68,.05);
    border-color: var(--brand);
  }
  
  /* Mobile side menu */
  .footer-mobile-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .footer-mobile-menu.active {
    visibility: visible;
    opacity: 1;
  }
  
  .mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
  }
  
  .mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100%;
    background: var(--surface);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 20px;
  }
  
  .footer-mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
  }
  
  .mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
  }
  
  .mobile-menu-close:hover {
    background: rgba(27,117,68,.1);
  }
  
  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 40px;
  }
  
  .mobile-menu-link {
    display: block;
    padding: 14px 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px;
    transition: var(--transition-smooth);
  }
  
  .mobile-menu-link:hover {
    background: rgba(27,117,68,.08);
    color: var(--brandDark);
    transform: translateX(4px);
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--brandDark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 980px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9998;
  display: none;
  pointer-events: none;
}

.mobile-sidebar.active {
  display: block;
  pointer-events: all;
}

.mobile-sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.mobile-sidebar-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: var(--surface);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-sidebar.active .mobile-sidebar-content {
  transform: translateX(0);
}

.mobile-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.mobile-sidebar-header .brand img {
  height: 60px !important;
}

.mobile-sidebar-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s ease;
}

.mobile-sidebar-close:hover {
  color: var(--brand);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 8px;
}

.mobile-nav a {
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(27,117,68,.08);
  color: var(--brandDark);
}

/* Special styling for logout link in mobile nav */
.mobile-nav a[href*="logout"] {
  background: rgba(220, 53, 69, 0.08);
  color: #dc3545;
  font-weight: 700;
}

.mobile-nav a[href*="logout"]:hover {
  background: rgba(220, 53, 69, 0.15);
  color: #c82333;
}

@media (min-width: 981px) {
  .mobile-sidebar {
    display: none !important;
  }
}
