* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: linear-gradient(180deg, #0E1213 0%, #1A1A1A 100%);
    min-height: 100vh;
    color: #FFFFFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 24px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.logo-icon {
    width: 22px;
    height: 22px;
    display: block;
    transform: rotate(-180deg);
    opacity: 1;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0%;
    color: #E7E7E7;
    display: flex;
    align-items: center;
}

.download-btn {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-width: 1px;
    border-radius: 10px;
    width: 200px;
    height: 30px;
    position: absolute;
    top: 15px;
    right: 20px;
    transform: rotate(0deg);
    opacity: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main {
    padding: 50px 0 120px;
}

.hero-wrap {
    display: inline-block;
    inline-size: max-content;             /* ширина = по содержимому */
    max-inline-size: min(92vw, 1200px);   /* но не шире экрана/лимита */
    margin-inline: auto;                  /* по центру */
  }

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 44px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #E7E7E7;
    margin-bottom: 20px;
    white-space: nowrap;
    width:85%;
}

.hero-subtitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: clamp(18px, 2.2vw, 24px);  /* адаптивно, чтобы влазило */
    line-height: 1.4;
    color: #B0B0B0;
    white-space: nowrap;                   /* одна строка */
    text-align: center;
    margin: 0 0 24px 0; 
}

/* CTA Block */
.cta-block {
    display: flex;
    align-items: stretch;
    height: 48px;
    width: 100%;                           /* ключевое */
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(14,18,19,0.6);
    backdrop-filter: blur(6px);
    margin: 40px auto 40px;
}

.email-input {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    flex: 1 1 auto;              /* растягиваемся на всю доступную ширину */
    padding: 16px 20px;
    background: transparent;
    border: none;                 /* убираем разделитель */
    color: #FFFFFF;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 12px 0 0 12px;
}

.email-input::placeholder { color: #4A4B4B; }

.email-input:focus {
    background: rgba(255, 255, 255, 0.05);
}

/* CTA button: почти сплошной зелёный + скругление видимой стороны */
.cta-button {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0%;
    color: #D9D9D9;
  
    /* был градиент с уходом в чёрный — делаем почти полностью зелёный */
    background: linear-gradient(90deg, #45A286 0%, #3C7867 85%, #335E53 100%);
  
    border: none;
    padding: 16px 32px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex: 0 0 auto;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    /* скругляем внешние углы, остаёмся «слитыми» с инпутом слева */
    border-radius: 0 12px 12px 0;
    border-radius: 12px;
    margin-left: -12px;        /* аккуратно перекрываем инпут без «щели» */
    position: relative;        /* чтобы корректно работал z-index */
    z-index: 1; 
  }

  .cta-row {
    display: flex;
    align-items: stretch;
  }

  .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(69, 162, 134, 0.35);
  }
  

/* Video Container */
.video-container {
    position: relative;
    width: 85%;
    max-width: 1137px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(60, 120, 103, 0.3);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video Gradient Background (Fon Gradient) */
.video-gradient {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1137px;
    height: 547px;
    background: radial-gradient(ellipse at center, #3C7867 0%, #08100E 100%);
    filter: blur(100px);
    opacity: 0.6;
    z-index: -1;
    border-radius: 10px;
}

/* ---------- Second screen ---------- */
.features {
    width: 85%;
    max-width: 1137px;       /* как у видео */
    margin: 120px auto 0;    /* отступ от hero */
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 55px;
    color: #E7E7E7;
    text-align: center;
    margin-bottom: 24px;
}

.feature {
    display: grid;
    grid-template-columns: 1fr 500px; /* текст | карточка картинки */
    align-items: center;
    gap: 32px;
    margin: 28px 0;
}

.feature-title {
    font-weight: 700;
    font-size: 32px;
    line-height: 44px;
    color: #E7E7E7;
    margin-bottom: 12px;
}

.feature-desc {
    font-weight: 400;
    font-size: 20px;
    line-height: 27px;
    color: #B0B0B0;
}

.feature-media {
    background: #181919;
    border: 1px solid #3D3E3E;
    border-radius: 10px;
    height: 300px;           /* как в макете */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;    /* показываем всю картинку без обрезки */
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    padding: 12px;          /* лёгкие поля, чтобы не прилипала к рамке */
    box-sizing: border-box;
}

.qa-runs {
    width: 85%;
    max-width: 1137px;         /* как у .video-wrapper/.features */
    margin: 120px auto 0;
  }
  
  .qa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .qa-card {
    background: #181919;
    border: 1px solid #3D3E3E;
    border-radius: 10px;
    padding: 24px;
    height: 243px;             /* как в макете */
    display: flex;
    flex-direction: column;
  }
  
  .title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }
  
  .title-row .icon {
    width: 32px;
    height: 32px;
    object-fit: contain;       /* без зума */
    flex: 0 0 32px;
    image-rendering: -webkit-optimize-contrast;
  }

  .how-works{
    width:85%;
    max-width:1137px;           /* как у .video-wrapper */
    margin:120px auto 0;
    position:relative;
  }
  
  /* фон (поворот 90°) без доп. разметки */
  .how-works::before{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:1208px;
    height:1440px;
    transform:translate(-50%, -50%) rotate(90deg);
    background:linear-gradient(90deg,#0E1213 0%, #1A1A1A 100%);
    z-index:-1;
    opacity:.35;
    filter:blur(40px);
  }
  
  .how-grid{
    display:grid;
    grid-template-columns: 1fr 1fr; /* слева лид, справа шаги */
    gap:48px;
    align-items:start;
  }
  
  .hw-title{
    font-weight:700;
    font-size:40px;
    line-height:55px;
    color:#E7E7E7;
    margin-bottom:14px;
    text-align:left;
  }
  
  .hw-lead{
    font-weight:400;
    font-size:32px;
    line-height:44px;
    color:#B0B0B0;
    max-width:535px;
  }
  
  /* правая колонка с таймлайном */
  .hw-right{
    position:relative;
    display:grid;
    grid-template-columns:22px 1fr;
    column-gap:24px;
    row-gap:44px;
  }
  
  /* вертикальная зелёная линия */
  .hw-right::before{
    content:"";
    position:absolute;
    left:10px;                 /* центр дорожки 22px */
    top:6px;
    bottom:6px;
    width:3px;
    background:#518F7C;
    border-radius:2px;
  }
  
  /* зелёные точки (можно заменить на assets/images/green_dot.png) */
  .tl-dot{
    width:22px;
    height:22px;
    border-radius:50%;
    background:#518F7C;
    grid-column:1;
  }
  
  .hw-step{ grid-column:2; }
  
  .hw-step-text{
    font-weight:400;
    font-size:32px;
    line-height:44px;
    color:#B0B0B0;
  }
  .hw-step-text strong{ font-weight:700; color:#E7E7E7; }

  .cta-section{
    position: relative;
    margin: 120px 0 0;
  }

  /* Узкая форма на Page 5 — как на hero */
.cta-section .cta-block{
    width: 100%;
    max-width: 700px;   /* как на hero */
    margin: 32px auto 0;
  }
  
  
  /* фон-полоса строго 520px, как в макете */
  .cta-section::before{
    content:"";
    position:absolute;
    left:0; top:0; right:0;
    height:520px;
    background: linear-gradient(90deg, #0E1213 0%, #1A1A1A 100%);
    z-index:-1;
  }
  
  .cta-inner{
    width:85%;
    max-width:1137px;   /* как у .video-wrapper */
    margin:0 auto;
    padding: 64px 0;    /* контент красиво центрируется в полосе */
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  
  .cta-subtitle{
    font-weight:700;
    font-size:32px;
    line-height:44px;
    color:#B0B0B0;
    margin: 8px 0 24px;
    text-align:center;
  }

/* Footer */
.footer {
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  
  .footer .container {
    min-height: 257px;            /* макетная высота */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  
  /* колонки */
  .footer-left { display: flex; flex-direction: column; gap: 10px; }
  .footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
  
  /* текст */
  .tagline {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: #B0B0B0;
    margin: 0;
  }
  
  .copyright {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    color: #E7E7E7;
    margin: 0;
  }
  
  .footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  
  .footer-link {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #B0B0B0;
    text-decoration: none;
    transition: color .2s ease;
  }
  .footer-link:hover { color: #E7E7E7; }
  
  .footer .sep { color: #3D3E3E; user-select: none; }

/* Responsive Design */
@media (max-width: 1200px) {
    .download-btn {
        right: 20px;
        width: 150px;
    }
    
    .video-gradient {
        width: 90%;
        height: 400px;
    }

    .feature { grid-template-columns: 1fr 420px; }

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

@media (max-width: 768px) {
    .header .container {
        padding: 0 15px;
    }
    
    .download-btn {
        position: relative;
        top: 0;
        right: 0;
        width: 120px;
        height: 35px;
        font-size: 14px;
    }
    
    .logo-icon {
        width: 20px;
        height: 20px;
    }
    
    .hero-title {
        font-size: 36px;
        padding: 0 20px;
    }

    .hero-subtitle {
        font-size: 18px;  
        overflow: hidden;
        text-overflow: ellipsis
    }

    .cta-block {
        flex-direction: column;
        max-width: 100%;
        padding: 0 20px;
    }

    .cta-row { flex-direction: column; }
    .email-input { border-radius: 12px; }

    .cta-button {
        width: 100%;
        border-radius: 12px; margin-left: 0;
    }
    
    .video-container {
        padding: 0 20px;
    }

    .video-gradient {
        width: 100%;
        height: 300px;
    }
    
    .main {
        padding: 40px 0 80px;
    }

    .features { margin-top: 80px; }
    .feature {
        grid-template-columns: 1fr;  /* в столбик */
        gap: 20px;
    }
    .feature-media {
        height: auto;
        aspect-ratio: 5 / 3;
    }
    .section-title { font-size: 34px; line-height: 1.2; }

    .qa-runs { margin-top: 80px; }
    .qa-grid { grid-template-columns: 1fr; }
    .qa-card { height: auto; }

    .how-works{ margin-top:80px; }
    .how-grid{ grid-template-columns:1fr; gap:20px; }
    .hw-lead{ max-width:none; font-size:22px; line-height:1.4; }
    .hw-right{ row-gap:28px; }
    .hw-step-text{ font-size:20px; line-height:1.5; }

    .cta-section::before{ height: 100%; }
    .cta-inner{ padding: 40px 0; }

    .footer .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 24px 0;
        min-height: 220px;
      }
      .footer-right { align-items: center; }
}

/* ===== Motion & Hover (minimal, no extra markup needed) ===== */
html { scroll-behavior: smooth; }

/* scroll-reveal base */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
}

@media (hover:hover){
    .qa-card{
      transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }
    .qa-card:hover{
      transform: translateY(-4px);
      box-shadow: 0 10px 24px rgba(0,0,0,.35);
      border-color: #4D4F4F;
    }
  
    .feature-media{
      transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }
    .feature-media:hover{
      transform: translateY(-3px) scale(1.01);
      box-shadow: 0 10px 24px rgba(0,0,0,.35);
      border-color: rgba(60,120,103,0.5);
    }
  
    /* Кнопки — без размножения классов */
    .download-btn, .btn, button, .cta-btn{
      transition: transform .25s ease, background .25s ease, border-color .25s ease;
    }
    .download-btn:hover, .btn:hover, button:hover, .cta-btn:hover{
      transform: translateY(-2px);
    }
  
    .logo:hover .logo-icon{
      transform: rotate(-176deg) scale(1.03);
    }
  
    /* Акцент при фокусе внутри блока формы */
    .cta-block:focus-within{
      box-shadow: 0 0 0 2px rgba(60,120,103,0.45);
      border-color: rgba(60,120,103,0.6);
    }
  }
  
  /* Respect reduced motion */
  @media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
    .reveal{
      opacity: 1 !important;
      transform: none !important;
    }
  }
