/* ===================================================================
   FIX.CSS — единый файл правок для avexpert.by
   Подключается ПОСЛЕ style.css, перебивает старые правила
   =================================================================== */

/* ====== 1. ШАПКА ====== */
nav { height: 92px !important; padding: 0 32px; }
nav .logo img { max-height: 76px !important; width: auto !important; height: auto !important; }
.nphone svg { width: 18px; height: 18px; display: block; }
.nphone[title] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 12px !important;
}

/* ====== 2. HERO (старая разметка <section class="hero">) ====== */
.hero {
  position: relative !important;
  min-height: 600px !important;
  display: flex !important;
  overflow: visible !important;
  height: auto !important;
}
.hero-inner {
  padding: 130px 40px 70px !important;
  justify-content: center !important;
  overflow: visible !important;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 110px) !important;
  line-height: 1.05 !important;
  padding-top: 0.1em !important;
  margin-bottom: 28px !important;
  overflow: visible !important;
}
.hero-sub { font-size: 16px !important; line-height: 1.7 !important; max-width: 560px !important; }
.hero-cta { gap: 0 !important; }
.hero-stats { margin-top: 48px !important; }

/* ====== 3. HERO-LP (новая разметка <section class="hero-lp">) ====== */
.hero-lp {
  position: relative !important;
  display: flex !important;
  background: #0A0A0A !important;
  overflow: visible !important;
  min-height: auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
}
.hero-lp-bg { position: absolute !important; inset: 0 !important; z-index: 1 !important; }
.hero-lp-img {
  position: absolute !important; inset: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  opacity: 0.35 !important;
  filter: contrast(1.1) saturate(0.7) !important;
}
.hero-lp-grad {
  position: absolute !important; inset: 0 !important;
  background:
    linear-gradient(to right, rgba(10,10,10,.95) 0%, rgba(10,10,10,.7) 50%, rgba(10,10,10,.3) 100%),
    linear-gradient(to top, rgba(10,10,10,.7) 0%, transparent 50%) !important;
}
.hero-lp-line {
  position: absolute !important; top: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 4px !important; background: #D41C21 !important; z-index: 3 !important;
}
.hero-lp-inner {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 110px 60px 60px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.hero-lp-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: #D41C21 !important;
  margin-bottom: 20px !important;
}
.hero-lp-tag::before {
  content: '' !important;
  width: 32px !important; height: 2px !important;
  background: #D41C21 !important;
}
.hero-lp-title {
  font-family: 'Oswald', Impact, sans-serif !important;
  font-size: clamp(40px, 6vw, 84px) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  line-height: 1.05 !important;
  color: #fff !important;
  margin-bottom: 24px !important;
  padding-top: 0.05em !important;
}
.hero-lp-desc {
  font-size: 16px !important;
  color: rgba(255,255,255,.7) !important;
  max-width: 580px !important;
  line-height: 1.7 !important;
  margin-bottom: 36px !important;
  font-weight: 300 !important;
}
.hero-lp-acts {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

/* ====== 4. СПЕЦПРЕДЛОЖЕНИЕ ====== */
.spec-offer-row { flex-direction: row; }
.spec-offer-badge { padding: 20px 36px; }
.spec-offer-body { padding: 20px 36px; gap: 32px; }

/* ====== 5. STEP-ITEM (страницы марок) ====== */
.step-item .step-title {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 12px;
  display: block;
}

/* ====== 6. ПЛАВАЮЩИЕ ИКОНКИ ====== */
@media (max-width: 1200px) {
  #social-float { display: none !important; }
}
@media (min-width: 1201px) {
  #social-float { left: 8px !important; }
  #social-float a {
    width: 42px !important; height: 42px !important;
    border-radius: 8px !important;
  }
  #social-float a svg { width: 18px !important; height: 18px !important; }
}

/* ====== 7. МОБИЛЬНАЯ ВЕРСТКА ====== */
@media (max-width: 768px) {
  /* шапка */
  nav { height: 64px !important; padding: 0 12px !important; }
  nav .logo img { max-height: 44px !important; }
  /* скрыть в шапке мелкие иконки соцсетей */
  nav .nphone[title="TikTok"],
  nav .nphone[title="Instagram"],
  nav .nphone[title="Telegram"],
  nav .nphone[title="Viber"],
  nav .nphone[title="WhatsApp"] { display: none !important; }
  nav .nphone:not([title]) {
    font-size: 11px !important;
    padding: 0 8px !important;
    height: 40px !important;
    line-height: 40px !important;
  }
  nav .nbtn,
  nav .nright a.btn-main,
  nav a[onclick*="openPopup"] {
    padding: 0 14px !important;
    height: 40px !important;
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
  }
  .mmenu { top: 64px !important; }

  /* hero (старая разметка) */
  .hero {
    height: auto !important;
    min-height: auto !important;
    padding: 0 !important;
  }
  .hero-inner {
    padding: 90px 16px 48px !important;
    justify-content: flex-start !important;
  }
  .hero h1 {
    font-size: clamp(34px, 9vw, 54px) !important;
    line-height: 1.05 !important;
    margin-bottom: 18px !important;
  }
  .hero-sub {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
  }
  .hero-cta {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  .hero-cta a, .hero-cta .btn-main, .hero-cta .btn-ghost {
    width: 100% !important;
    justify-content: center !important;
    height: 48px !important;
    padding: 0 16px !important;
    font-size: 12px !important;
  }
  .hero-stats {
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin-top: 28px !important;
  }
  .hero-stats .hst {
    flex: 1 1 45% !important;
    min-width: 0 !important;
    border-right: none !important;
    padding: 12px 12px 0 0 !important;
  }
  .hst-n { font-size: 28px !important; }
  .hst-l { font-size: 10px !important; }

  /* hero-lp (новая разметка) */
  .hero-lp { min-height: auto !important; }
  .hero-lp-inner { padding: 90px 16px 48px !important; }
  .hero-lp-title { font-size: clamp(32px, 9vw, 48px) !important; }
  .hero-lp-desc { font-size: 14px !important; }
  .hero-lp-acts {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .hero-lp-acts a {
    width: 100% !important;
    justify-content: center !important;
    height: 48px !important;
  }

  /* спецпредложение */
  .spec-offer-row { flex-direction: column !important; align-items: stretch !important; }
  .spec-offer-badge {
    padding: 14px 16px !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
  }
  .spec-offer-body {
    padding: 18px 16px !important;
    flex-direction: column !important;
    gap: 14px !important;
    text-align: center !important;
    align-items: center !important;
  }
  .spec-offer-body > a {
    margin-left: 0 !important;
    width: 100% !important;
    justify-content: center !important;
  }

  /* шаги (страницы марок) */
  .step-item { grid-template-columns: 48px 1fr !important; gap: 12px !important; }
  .step-item .step-title { font-size: 18px !important; }

  /* двухколоночные секции в 1 колонку */
  [style*="grid-template-columns:1fr 1fr"]:not(.hero-stats):not(.spec-offer-row) {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ====== 8. SAFE OVERFLOW ====== */
html, body { overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; height: auto; }


/* ====== 9. СКРЫТЬ СТАТ-БЛОКИ В HERO ====== */
.hero-stats,
.hero-lp-stats { display: none !important; }


/* ====== 10. ОТКЛЮЧИТЬ REVEAL АНИМАЦИЮ (JS падает) ====== */
.reveal { opacity: 1 !important; transform: none !important; }
