/* =========================
   HOME — HERO (home.html)
   ========================= */

html, body{
  overflow-x: hidden;
  width: 100%;
}  
.hero{
  padding: 22px 0 10px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;

    position: relative;
    overflow: hidden;
    border-radius: 24px;

    background-image:
        linear-gradient(
            rgba(20,10,30,.45),
            rgba(20,10,30,.55)
        ),
        url("https://images.unsplash.com/photo-1519125323398-675f0ddb6308?q=80&w=1600&auto=format&fit=crop");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 28px;
}

/* HERO scene background */
.hero::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  opacity:.55;
}
.hero{
  position: relative;
}
.hero h1{
  margin: 14px 0 10px;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #ffffffcf;
}

.lead{
  font-size: 15px;
  line-height: 1.65;
  color: #a29aa6;
  max-width: 60ch;
}

.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-points{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.point{
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: #ffffffa1;
  font-weight: 750;
  font-size: 13px;
}

/* Hero right block glow */


.mini{ display:grid; gap:6px; }
.mini-k{ font-weight: 950; }
.mini-v{ color: var(--muted); font-weight: 650; }

.glow{
  position:absolute;
  filter: blur(30px);
  opacity: .45;
  pointer-events:none;
  border-radius: 999px;
}

.glow.pink{
  width: 220px;
  height: 220px;
  background: var(--cherry);
  opacity:.20;
  right: -30px;
  top: 10px;
}

.glow.blue{
  width: 240px;
  height: 240px;
  background: var(--sun);
  opacity:.22;
  left: -40px;
  bottom: -30px;
  opacity: .25;
}
.cards .card.soft{
  padding: 18px;
}
.cards .card.soft h3{
  font-size: 16px;
  font-weight: 950;
}

/* =========================
   SECTIONS (home.html)
   ========================= */
.section{ padding: 28px 0; }

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section h2{
  margin:0;
  font-size: 24px;
  color: #ff4883;
  letter-spacing: -.3px;
  font-family: "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", "Droid Serif", Times, serif;
  font-style: italic;
}

.section h3{ margin: 0 0 8px; }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.step{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffffd1;
  padding: 14px;
}

.step-num{
  width: 34px;
  height: 34px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius: 10px;
  background: #ffdcdf;
  border: 1px solid var(--line);

  font-weight: 950;
  margin-bottom: 10px;
}

/* Use cases cards */
.cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Pricing */
.pricing .pricing-box{
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(900px 220px at 20% 0%, rgba(255,177,91,.22), rgba(255,177,91,0) 60%),
    radial-gradient(900px 240px at 80% 10%, rgba(255,47,93,.16), rgba(255,47,93,0) 60%),
    rgba(255,255,255,.72);

  padding: 18px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;

  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.pricing-cta{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;

  padding: 14px;
  display:grid;
  gap: 10px;
  align-content:start;
}

/* FAQ */
.faq{
  display:grid;
  gap: 10px;
}

.faq-item{
  border: 1px solid var(--line);
  border-radius: 16px;
  background:#fff;
  padding: 12px 14px;
}

.faq-item summary{
  cursor: pointer;
  font-weight: 950;
  color: #6c5c73;
}

.faq-body{
  margin-top: 10px;
  line-height: 1.6;
  font-weight: 650;
}

/* CTA */
.cta .cta-box{
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 26px;
  padding: 18px;

  background:
    radial-gradient(700px 240px at 20% 20%, rgba(255,177,91,.30), rgba(255,177,91,0) 60%),
    radial-gradient(700px 240px at 80% 20%, rgba(255,47,93,.22), rgba(255,47,93,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.55));

  display:flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;

  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}



.hero-card {
  position: relative;
  min-height: auto; /* Пусть подстраивается под контент */
  margin-top: 10px;
  overflow: hidden; 
}

.hero-ill{
  position: relative;
  width:100%;
  aspect-ratio: 16/10;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 220px at 30% 20%, rgba(255,177,91,.35), rgba(255,177,91,0) 60%),
    radial-gradient(500px 260px at 80% 30%, rgba(255,47,93,.25), rgba(255,47,93,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.18));
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.hero-ill img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}


.video-section{
  padding: 40px 0;
}

.video-wrap{
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.video-wrap::before{
  content:"";
  position:absolute;
  inset:-60px;

  background:
    radial-gradient(
      500px 240px at 20% 20%,
      rgba(255,80,130,.35),
      transparent
    ),
    radial-gradient(
      500px 240px at 80% 30%,
      rgba(255,180,90,.35),
      transparent
    );

  filter: blur(60px);
  z-index:0;
}


.video-frame{
  position:relative;
  z-index:2;

  border-radius: 26px;
  overflow:hidden;

  border:1px solid rgba(255,255,255,.35);

  background:
    linear-gradient(
      rgba(255,255,255,.15),
      rgba(255,255,255,.05)
    );

  backdrop-filter: blur(12px);

  box-shadow:
    0 40px 90px rgba(20,10,40,.25),
    inset 0 1px 0 rgba(255,255,255,.35);

  aspect-ratio: 16 / 9;
}

.video-frame iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.video-frame:hover{
  transform: translateY(-4px) scale(1.01);
  transition:.35s ease;
}

.reveal{
  opacity:0;
}

/* =========================
   STEPS — slide-in queue
   ========================= */
/* =========================
   STEPS — Sequential Animation
   ========================= */

.steps .step {
  /* Начальное состояние: полностью прозрачный */
  opacity: 0;
  
  /* Плавность анимации */
  transition: 
    transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1.1), 
    opacity 0.5s ease-out;
  
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Направления, откуда прилетают карточки (задается через JS) */
.steps .step.from-left { 
  transform: translate3d(-50px, 20px, 0); 
}

.steps .step.from-right { 
  transform: translate3d(50px, 20px, 0); 
}

/* Финальное состояние: когда JS добавляет класс .is-in */
.steps .step.is-in {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* Если у пользователя отключена анимация в системе */
@media (prefers-reduced-motion: reduce) {
  .steps .step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* =========================
   RESPONSIVE (home)
   ========================= */
@media (min-width: 680px){
  .cta .cta-box{
    flex-direction: row;
    align-items:center;
    justify-content: space-between;
  }

  .steps{ grid-template-columns: repeat(2, 1fr); }
  .cards{ grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px){
  .hero-grid{
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
  }

  .hero h1{ font-size: 44px; }

  .pricing .pricing-box{
    grid-template-columns: 1fr 320px;
    gap: 14px;
  }
}
@media (max-width: 520px){
  .hero h1 { 
    font-size: 28px; 
    line-height: 1.1; 
  }
  .hero-grid { padding: 25px; border-radius: 0;}
  .hero-actions{ flex-direction: column; }
  .hero-actions { 
    gap: 8px; 
  }
  .section {
    padding: 28px;
  }
  .hero-actions .btn{ width:100%; }
  .hero-ill{ aspect-ratio: 16/11; }
  .section-head{ align-items:flex-start; flex-direction: column; gap: 0; margin-bottom: 0;}
  .video-wrap::before{
    inset:-30px;
    filter: blur(40px);
  }

  .video-frame{
    border-radius:18px;
  }
  .point {
    flex: 1 1 140px; /* Растягиваются аккуратно по 2 в ряд */
    text-align: center;
    padding: 8px;
  }
  .hero {
    padding: 0;
  }
  .muted{justify-content: center !important;}
}


