/* ==== Optimized Hero (Performance + Mobile) - Updated 20251016123145 ==== */

.hero.hero--matloob{
  position: relative; 
  min-height: 100vh;
  background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Убираем fixed для производительности */
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Статичные фоновые элементы */
.hero__bg-elements{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__floating-shape{
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(34, 197, 94, 0.08));
  backdrop-filter: blur(20px);
}

.hero__floating-shape--1{
  width: 120px;
  height: 120px;
  top: 20%;
  left: 10%;
}

.hero__floating-shape--2{
  width: 80px;
  height: 80px;
  top: 60%;
  right: 15%;
}

.hero__floating-shape--3{
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 20%;
}

/* Простой градиентный оверлей */
.hero__vignette{
  position: absolute; 
  inset: 0; 
  pointer-events: none; 
  z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
}

.hero__container{
  position: relative; 
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero__content{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

/* Оптимизированная карточка */
.hero__card{
  position: relative;
  max-width: 700px;
  color: white;
  border-radius: 20px;
  padding: clamp(30px, 5vw, 40px);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Убираем сложные эффекты для производительности */

/* Badge */
.hero__badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.hero__badge-icon{
  font-size: 16px;
}

/* Enhanced Typography */
.hero__title{
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.08;
  font-weight: 900;
  margin: 0 0 24px;
  text-wrap: balance;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  letter-spacing: -0.02em;
}

.hero__subtitle{
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--ml-sub);
  margin: 0 0 36px;
  max-width: 68ch;
  line-height: 1.65;
  font-weight: 400;
}

/* Enhanced CTA Buttons */
.hero__cta{ 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn{
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  border-radius: 14px;
  font-weight: 700; 
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  font-size: 15px;
  position: relative;
  overflow: hidden;
}

.btn--hero-primary{
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
  box-shadow: 
    0 12px 28px rgba(14, 165, 233, 0.3),
    inset 0 1px 0 rgba(255,255,255,.3);
}

.btn--hero-primary:hover{ 
  transform: translateY(-2px); 
  box-shadow: 
    0 16px 35px rgba(14, 165, 233, 0.4),
    inset 0 1px 0 rgba(255,255,255,.4);
}

.btn--hero-secondary{
  color: var(--ml-text);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.btn--hero-secondary:hover{ 
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.btn__icon{
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn:hover .btn__icon{
  transform: translateX(3px);
}

/* Trust indicators */
.hero__trust{
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero__trust-item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ml-sub);
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero__trust-icon{
  font-size: 16px;
}

/* Stats sidebar */
.hero__stats{
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 
    0 20px 40px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.hero__stat{
  text-align: center;
}

.hero__stat-number{
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.hero__stat-label{
  font-size: 14px;
  font-weight: 600;
  color: var(--ml-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Scroll indicator */
.hero__scroll-indicator{
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero__scroll-indicator:hover{
  color: rgba(255,255,255,1);
  transform: translateX(-50%) translateY(-2px);
}

.hero__scroll-text{
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__scroll-arrow{
  width: 24px;
  height: 24px;
}

/* Responsive Design */
/* Mobile-first responsive design */
@media (max-width: 1024px){
  .hero__content{
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .hero__stats{
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    padding: 20px;
    gap: 20px;
    margin-top: 20px;
  }
  
  .hero__trust{
    justify-content: center;
  }
}

@media (max-width: 768px){
  .hero.hero--matloob {
    min-height: auto;
    padding: 60px 0;
  }
  
  .hero__card{ 
    border-radius: 16px; 
    padding: 24px 20px;
    margin: 0 15px;
    max-width: none;
  }
  
  .hero__title {
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .hero__subtitle {
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.4;
    margin-bottom: 24px;
  }
  
  .hero__cta{
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 10px;
  }
  
  .btn{
    width: 100%;
    max-width: 280px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    min-height: 48px;
  }
  
  .btn--hero-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
  }
  
  .btn--hero-secondary {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
  }
  
  .hero__trust{
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .hero__trust-item {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .hero__stats{
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    margin: 20px 15px 0;
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    justify-content: space-around;
  }
  
  .hero__stat {
    text-align: center;
    flex: 1;
  }
  
  .hero__stat-number {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  }
  
  .hero__stat-label {
    font-size: 11px;
    color: #ffffff;
    font-weight: 600;
    margin-top: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  }
}

@media (max-width: 480px){
  .hero.hero--matloob {
    padding: 40px 0;
  }
  
  .hero__card{ 
    padding: 16px;
    margin: 0 10px;
  }
  
  .hero__cta {
    padding: 0 5px;
  }
  
  .btn {
    max-width: 260px;
    padding: 12px 18px;
    font-size: 14px;
    min-height: 44px;
  }
  
  .hero__title {
    font-size: clamp(20px, 7vw, 28px);
  }
  
  .hero__subtitle {
    font-size: 14px;
  }
  
  .hero__stats{
    flex-direction: row;
    gap: 15px;
    padding: 16px;
    margin: 16px 10px 0;
  }
  
  .hero__stat-number {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  }
  
  .hero__stat-label {
    font-size: 10px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  }
  
  .hero__trust-item {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .hero__scroll-indicator{
    bottom: 15px;
  }
}
