

/* :root {
      --text: #25252a;
      --subtle: #4b4b55;
      --subtlest: #9898a3;
      --accent: #7267e6;
      --border: #e5e2ff;
      --surface: #ffffff;
      --primary: #151517;
      --ok: #12a150;
      --radius: 24px;
      --font: var(--liga-font-family);
    } */

    /* ---------- оверлей поп-апа ---------- */
    .pv-overlay {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--blanket-popup-background);
      width: 100vw;
      height: 100vh;
    }

    .pv-overlay[hidden] {
      display: none
    }

    @keyframes pv-fade {
      from {
        opacity: 0
      }

      to {
        opacity: 1
      }
    }

    /* ---------- card ---------- */
    .pv-card {
      position: relative;
      display: flex;
      flex-direction: column;
      width: 740px;
      max-width: 95%;
      max-height: calc(100vh - 32px); /* не впирається у краї екрана */
      background: var(--surface);
      border-radius: 24px;
      box-shadow: 0 0 var(--Shadow-Z-index-Eleveation-2-Blur) var(--Shadow-Z-index-Eleveation-2-Spread) var(--Shadow-Z-index-Eleveation-2-Color);
      overflow: hidden;
    }

    .pv-close {
      position: absolute;
      top: 20px;
      right: 20px;
      z-index: 3;
      width: 40px;
      height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: none;
      border-radius: 50%;
      background: transparent;
      color: var(--text);
      cursor: pointer;
      transition: background .12s;
    }

    .pv-close:hover {
      background: rgba(37, 37, 42, .08)
    }

    /* ---------- header ---------- */
    /* Шапка тримає пропорцію макета 740×220 на будь-якій ширині попапа;
       картинка заповнює її (cover) — висота не залежить від завантаженого
       файлу і не зникає, поки картинка вантажиться. */
    .pv-header {
      position: relative;
      flex: none; /* шапка не стискається, тіло скролиться під нею */
      aspect-ratio: 740 / 220;
      overflow: hidden;
    }

    .pv-header img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.pv-header-default {
    padding: 30px 20px 20px 20px;
}

.pv-header-default__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

    .pv-header-default__content img {
        width: 100px;
        height: 100px;
    }

.pv-header-default__text {
    color: var(--text-default);
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px; /* 116.667% */
    letter-spacing: -0.02px;
}
.pv-header-default__description {
    color: var(--text-subtle);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    letter-spacing: 0.33px;
}

/* ---------- body ---------- */
.pv-body {
    flex: 1 1 auto;
    min-height: 0; /* дозволяє flex-дитині стискатись і скролитись */
    overflow-y: auto; /* довгий контент (форма + кнопка) прокручується */
    padding: 24px;
}

    .pv-titlebar {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px
    }

    .pv-titlebar img {
        width: 28px;
        height: 28px;
    }

    .pv-title {
        color: var(--text-default);
        font-size: 24px;
        font-style: normal;
        font-weight: 500;
        line-height: 28px; /* 116.667% */
        letter-spacing: -0.02px;
        margin: 0;
    }

.pv-lead {
    margin: 0;
    color: var(--text-subtle);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    letter-spacing: 0.29px;
}

.pv-features__title {
    color: var(--text-subtle);
    /* H400/Bold */
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px; /* 125% */
    letter-spacing: 0.13px;
    padding: 8px 0;
}

/* Demo block */
.pv-demo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

    .pv-demo__label {
        color: var(--text-default);
      font-size: 16px;
      line-height: 20px;
      font-weight: 700;
      letter-spacing: .13px
    }

    .pv-btn {
      height: 32px !important;
    }

    .pv-divider {
      height: 1px;
      background: var(--border);
      margin: 16px 0;
    }

    /* feature block */
    .pv-features {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 0;
      padding: 0;
      list-style: none;
      padding: 8px 0;
    }

    .pv-feature {
      display: flex;
      gap: 10px;
      font-size: 14px;
      line-height: 20px;
      color: var(--text-subtle);
    }

    .pv-feature img {
        width: 18px;
        height: 18px;
      flex: none;
      margin-top: 1px
    }

    .pv-form-intro {
        display: flex;
        flex-direction: column;
    }

    .pv-form-intro p {
        margin: 0;
    }

    .pv-form-intro__title {
        color: var(--text-default);
font-weight: 700;
font-size: 16px;
    }

    .pv-form-intro__description {
        color: var(--text-subtle);
font-size: 16px;
    }

    /* ---------- універсальна кнопка (popupActionButton) ---------- */
    .pv-action-btn {
      margin-top: 8px;
      text-decoration: none; /* коли рендериться як <a> */
    }

    /* ---------- блок «Відео» ---------- */
  .video-block{
    display:flex;
    align-items:center;
    gap:24px;
    width:692px;
    max-width:100%;
    padding: 8px 0;
  }

  .video-block__left{flex:1 1 auto;min-width:0}

  .video-block__label{
    display:inline-flex;
    align-items:center;
    gap:4px;
    margin-bottom:4px;
    color: var(--status-Filled-primary, #7267E6);
    font-size:12px;
    line-height:15px;
    font-weight:500;
    letter-spacing:.25px;
    text-transform:uppercase;
  }
  .video-block__label svg{flex:none}

.pv-body__buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 16px;
    grid-row-gap: 12px;
}

/* Остання кнопка, що стоїть на непарній позиції, займає весь рядок.
   Автоматично покриває обидва потрібні випадки:
     • 1 кнопка  → одна на всю ширину;
     • 3 кнопки  → зверху дві по 50%, знизу одна на весь ряд.
   Для 2 та 4 кнопок правило не спрацьовує → рівна сітка 2×N по 50%. */
.pv-body__buttons > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.video-block__title {
    margin: 0;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: .13px;
    color: var(--text-default);
}

  .video-block__text{
    margin:0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    letter-spacing:.29px;
    color: var(--text-subtle);
  }

  /* Превʼю відео (перший кадр) з play-кнопкою — замість колишнього iframe */
  .video-block__preview{
    position:relative;
    flex:none;
    display:block;
    padding:0;
    border:0;
    background:none;
    cursor:pointer;
    border-radius:8px;
    overflow:hidden;
    height:110.434px;
    align-self:stretch;
    aspect-ratio:163/90;
  }
  .video-block__poster{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    background:#000;
    pointer-events:none;
  }
  .video-block__play{
    position:absolute;
    inset:0;
    margin:auto;
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#fff;
    box-shadow:0 2px 8px rgba(0,0,0,.25);
    padding-left:2px; /* оптична компенсація трикутника */
    transition:transform .15s ease, box-shadow .15s ease;
  }
  .video-block__preview:hover .video-block__play{
    transform:scale(1.08);
    box-shadow:0 4px 14px rgba(0,0,0,.3);
  }
  .video-block__preview:focus-visible{
    outline:2px solid var(--status-Filled-primary, #7267E6);
    outline-offset:2px;
  }

  /* Fullscreen-оверлей з відео */
  .video-popup{
    position:fixed;
    inset:0;
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(0,0,0,.8);
  }
  .video-popup[hidden]{display:none}
  .video-popup__inner{
    position:relative;
    width:min(1120px, 92vw);
    max-height:92vh;
  }
  .video-popup__video{
    display:block;
    width:100%;
    max-height:92vh;
    border-radius:12px;
    background:#000;
    outline:none;
  }
  .video-popup__close{
    position:absolute;
    top:-40px;
    right:0;
    width:32px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    color:#fff;
    cursor:pointer;
    transition:background .15s ease;
  }
  .video-popup__close:hover{background:rgba(255,255,255,.3)}

  @media (max-width:600px){
    .video-popup__close{top:-38px}
  }

