/* Андрей Тарасов — Cyber-Luxury V3 (Final Optimized) */
:root {
  --bg: #050505;
  --accent: #ffffff;
  --accent-dim: #888888;
  --glow: #7C3AED;
  --radius: 28px;
  --mediaH: 431px; /* Ваша фиксированная высота для карточек */
}

/* Общие сбросы */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
  background: var(--bg); color: #fff; font-family: 'Manrope', sans-serif; 
  overflow-x: hidden; scroll-behavior: smooth; line-height: 1.6;
}

.container { width: min(1200px, 92%); margin: 0 auto; }

/* Анимации прогресса и курсора */
#progress { position: fixed; top: 0; left: 0; height: 3px; background: #fff; width: 0; z-index: 1000; transition: width 0.1s; }
#cursor { 
  position: fixed; left: 0; top: 0; width: 400px; height: 400px; margin: -200px 0 0 -200px; 
  border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 58, 237, 0.12), transparent 70%); 
  pointer-events: none; z-index: 0; transition: transform 0.08s linear; 
}

/* Фоновое оформление */
.mesh-gradient { 
  position: fixed; inset: 0; z-index: -1; 
  background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08), transparent 40%), 
              radial-gradient(circle at 90% 80%, rgba(0, 245, 212, 0.05), transparent 40%); 
  opacity: 0.8; 
}
.with-noise::before { 
  content: ""; position: fixed; inset: 0; opacity: 0.03; 
  background-image: url('assets/noise.png'); pointer-events: none; z-index: 1; 
}

/* Header */
.header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.header__inner { height: 90px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: 3px; }
.logo span { color: var(--accent-dim); }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a { color: var(--accent-dim); text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; transition: 0.4s; }
.nav a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* Hero */
.hero { padding: 160px 0 100px; text-align: center; }
.hero__badge { 
  display: inline-block; padding: 8px 20px; border: 1px solid rgba(255,255,255,0.1); 
  border-radius: 100px; font-size: 11px; margin-bottom: 30px; text-transform: uppercase; 
  letter-spacing: 2px; color: var(--accent-dim); 
}
.hero__title { font-size: clamp(38px, 7vw, 84px); font-weight: 800; line-height: 1.05; margin-bottom: 30px; }
.hero__title span { color: transparent; -webkit-text-stroke: 1px #fff; }
.hero__lead { max-width: 650px; margin: 0 auto 50px; color: var(--accent-dim); font-size: 19px; }

/* Bento Grid */
.section-head { text-align: left; margin-bottom: 50px; max-width: 800px; }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.glass { 
  position: relative; background: rgba(255, 255, 255, 0.015); border: 1px solid rgba(255, 255, 255, 0.08); 
  backdrop-filter: blur(15px); padding: 32px; border-radius: var(--radius); 
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.glass::before { 
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; 
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); 
}
.bento-item--main, .bento-item--full { grid-column: span 2; }
.bento-val { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -2px; margin-bottom: 12px; color: #fff; }

/* Showcase Grid */
.grid-showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.p-card { background: rgba(255,255,255,0.02); border-radius: var(--radius); overflow: hidden; transition: 0.4s; border: 1px solid rgba(255,255,255,0.06); }
.p-card:hover { border-color: rgba(255,255,255,0.1); transform: translateY(-5px); }

.p-card__media { height: var(--mediaH); background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.p-card__media img { width: 100%; height: 100%; object-fit: contain; }
.p-card__content { padding: 25px; }
.p-card__content h3 { font-size: 16px; margin-bottom: 5px; }
.p-card__content p { font-size: 13px; color: var(--accent-dim); }

/* Buttons */
.btn { 
  display: inline-flex; align-items: center; justify-content: center; padding: 18px 36px; 
  border-radius: 100px; font-weight: 800; cursor: pointer; transition: 0.5s; 
  text-decoration: none; font-size: 14px; text-transform: uppercase; 
}
.btn--primary { background: #fff; color: #000; }
.btn--secondary { border: 1px solid rgba(255,255,255,0.15); color: #fff; }
.btn--sm { padding: 12px 24px; font-size: 12px; }

/* Footer */
.footer { padding: 80px 0 40px; background: rgba(0,0,0,0.5); border-top: 1px solid rgba(255,255,255,0.05); margin-top: 100px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { color: var(--accent-dim); text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer__nav a:hover { color: #fff; }

/* Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* Адаптивность */
@media (max-width: 1100px) { .grid-showcase { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { 
  .bento-grid, .grid-showcase, .footer__grid { display: flex; flex-direction: column; gap: 20px; } 
  .nav { display: none; }
}
/* Исправление растянутых блоков */

/* Сетка для алгоритма: 2 колонки на десктопе */
.structure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

/* Настраиваем высоту карточек шагов, чтобы они не были слишком длинными */
.s-step {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px !important;
}

.s-num {
  font-size: 14px;
  color: var(--glow);
  font-weight: 800;
  margin-bottom: 20px;
  display: block;
}

/* Компактный блок команды */
.cta-box--team {
  max-width: 900px;
  margin: 0 auto;
  flex-direction: column;
  text-align: center;
  gap: 30px;
  padding: 60px 40px !important;
}

.cta-box--team .cta-text p {
  max-width: 500px;
  margin: 0 auto;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .structure-grid {
    grid-template-columns: 1fr;
  }
  .cta-box--team {
    padding: 40px 20px !important;
  }
}