/* Первый экран: оригинальный стеклянный стиль, ролик в правой колонке. */
body.home .htp-hero-v2.htp-video-hero {
    position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box;
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.32fr); grid-template-areas: "content video";
    align-content: center; align-items: center; gap: clamp(28px,4vw,76px);
    width: 100%; min-height: 100svh;
    padding: 122px max(clamp(24px,4vw,72px),calc((100% - 1510px)/2)) 90px;
    background: #e7f7fc; color: #1e293b;
}
.htp-hero-backdrop, .htp-hero-grain, .htp-hero-wash { position: absolute; inset: 0; pointer-events: none; }
.htp-hero-backdrop { z-index: 0; overflow: hidden; }
.htp-hero-grain { background: radial-gradient(ellipse at 89% 28%,#9ee4f9 0,transparent 59%),radial-gradient(ellipse at 18% 53%,#b6eafc 0,transparent 57%),linear-gradient(130deg,#f1fbfd,#dff6fc 57%,#c2edf8); }
.htp-hero-wash { background: linear-gradient(0deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,0) 39%,rgba(255,255,255,.46) 100%); }
.htp-v6-content { grid-area: content; position: relative; min-width: 0; z-index: 1; text-align: left; }
.htp-hero-molecule { position: absolute; width: min(85%,470px); height: auto; top: 48%; left: 43%; transform: translate(-50%,-50%); opacity: .095; pointer-events: none; z-index: -1; }
.htp-v6-content h1 { margin: 0; font-family: Montserrat,Inter,sans-serif; font-size: clamp(36px,3.65vw,67px); font-weight: 800; line-height: 1.13; letter-spacing: -.025em; color: #1e293b; }
.htp-v6-content h1 span { display: block; }
.htp-v6-content h1 .htp-v6-accent { font-size: .79em; color: #0ea5e9; background: linear-gradient(90deg,#0ea5e9,#38bdf8 48%,#06b6d4); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.htp-v6-subtitle { font-size: clamp(16px,1.3vw,21px); color: #475569; line-height: 1.6; margin: 22px 0 0; }
.htp-v6-usp { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(10px,1.2vw,20px); margin: clamp(24px,3vw,44px) 0 0; max-width: 610px; }
.htp-v6-usp>div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 128px; padding: 19px 14px; text-align: center; color: #334155; font-size: clamp(13px,1vw,16px); font-weight: 600; line-height: 1.45; background: rgba(255,255,255,.68); border: 1px solid rgba(255,255,255,.8); border-radius: 9999px; box-shadow: 0 8px 32px rgba(0,0,0,.035),inset 0 1px 0 rgba(255,255,255,.8); }
.htp-v6-icon { width: 35px; height: 35px; color: #0ea5e9; flex: none; }
.htp-v6-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: clamp(25px,3vw,45px) 0 0; }
.htp-v6-actions a { display: inline-flex; justify-content: center; align-items: center; min-height: 54px; padding: 12px clamp(17px,1.6vw,29px); border-radius: 9999px; font-size: clamp(13px,1vw,16px); font-weight: 650; line-height: 1.3; text-align: center; text-decoration: none; transition: background .2s,box-shadow .2s; }
.htp-v6-primary { color: #fff; background: linear-gradient(135deg,#0ea5e9,#0284c7); box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
.htp-v6-primary:hover { background: linear-gradient(135deg,#0284c7,#0369a1); }
.htp-v6-secondary { color: #334155; background: rgba(255,255,255,.75); border: 1px solid rgba(15,23,42,.06); }
.htp-v6-secondary:hover { background: rgba(255,255,255,.95); }
.htp-v7-frame { grid-area: video; position: relative; min-width: 0; z-index: 1; aspect-ratio: 16/9; width: 100%; box-sizing: border-box; padding: 0; background: #fff; border-radius: 24px; box-shadow: 0 14px 55px rgba(30,100,130,.11); border: 9px solid rgba(255,255,255,.76); background-clip: padding-box; overflow: hidden; }
.htp-v6-media,.htp-v6-poster,.htp-v6-video { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.htp-v6-media { overflow: hidden; background: #f3f7f8; border-radius: 15px; }
.htp-v6-poster,.htp-v6-video { object-fit: contain; object-position: center; display: block; }
.htp-v6-video { opacity: 0; visibility: hidden; }
.htp-video-hero.is-video-playing .htp-v6-video { opacity: 1; visibility: visible; }
.htp-video-hero.is-video-playing .htp-v6-poster { visibility: hidden; }
.htp-v6-play { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ffffff55; background: #16384be8; color: #fff; padding: 8px 12px; min-height: 38px; border-radius: 999px; font-size: 11px; line-height: 1.4; cursor: pointer; }
.htp-v6-play[hidden] { display: none; }
.htp-hero-scroll { position: absolute; z-index: 1; bottom: 25px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #64748b; }
.htp-hero-scroll:hover { color: #0284c7; background: rgba(255,255,255,.6); }
.htp-video-hero :focus-visible { outline: 2px solid #0284c7; outline-offset: 4px; }
@media(min-width:960px) and (max-width:1199px) {
    body.home .htp-hero-v2.htp-video-hero { gap: 26px; padding-inline: 28px; }
    .htp-v6-content h1 { font-size: clamp(35px,4.1vw,49px); }
    .htp-v6-usp>div { min-height: 105px; padding: 13px 9px; }
    .htp-v6-icon { width: 29px; height: 29px; }
    .htp-v6-actions a { min-height: 48px; }
    .htp-v7-frame { border-width: 7px; border-radius: 20px; }
}
@media(max-width:959px) {
    body.home .htp-hero-v2.htp-video-hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "content" "video"; min-height: 100svh; padding: 104px clamp(18px,5vw,45px) 72px; gap: 30px; }
    .htp-v6-content { max-width: 680px; width: 100%; margin-inline: auto; }
    .htp-v6-content h1 { font-size: clamp(36px,6.2vw,55px); }
    .htp-v7-frame { box-sizing: border-box; border-width: 7px; max-width: 760px; justify-self: center; }
    .htp-v6-usp>div { min-height: 110px; }
    .htp-hero-scroll { bottom: 12px; }
}
@media(max-width:480px) {
    body.home .htp-hero-v2.htp-video-hero { padding-top: 94px; gap: 23px; }
    .htp-v6-content h1 { font-size: clamp(30px,8.7vw,43px); }
    .htp-v6-subtitle { margin-top: 14px; font-size: 16px; }
    .htp-v6-usp { margin-top: 23px; }
    .htp-v6-usp>div { min-height: 108px; padding: 13px 8px; border-radius: 28px; font-size: 12px; gap: 7px; }
    .htp-v6-icon { width: 27px; height: 27px; }
    .htp-v6-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 22px; }
    .htp-v6-actions a { min-height: 47px; }
    .htp-v7-frame { border-radius: 18px; border-width: 6px; }
    .htp-v6-media { border-radius: 11px; }
    .htp-v6-play { right: 6px; bottom: 6px; font-size: 10px; min-height: 34px; padding: 6px 9px; }
}
@media(prefers-reduced-motion:reduce) { .htp-v6-video,.htp-v6-actions a { transition: none; } }

/* Первый экран: классическая компактная текстовая колонка. */
.htp-v6-content .htp-hero-kicker {
    margin: 0 0 clamp(14px,1.4vw,24px);
    color: #0e7490; font-weight: 750; font-size: clamp(10px,.85vw,14px);
    line-height: 1.4; letter-spacing: .075em; text-transform: uppercase;
}
.htp-v6-content h1 { line-height: 1.12; }
.htp-v6-content h1 .htp-v6-accent { font-size: 1em; }
.htp-v6-subtitle { margin-top: clamp(14px,1.7vw,25px); }
.htp-v6-usp { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; margin-top: clamp(18px,1.8vw,30px); }
.htp-v6-usp>div {
    display:flex; flex-direction:row; justify-content:flex-start; align-items:center;
    min-height:0; padding:0; gap:10px; text-align:left;
    background:none; border:0; border-radius:0; box-shadow:none;
    font-size:clamp(14px,1.1vw,18px); font-weight:650; line-height:1.4;
}
.htp-v6-usp .htp-v6-icon { width:22px; height:22px; color:#0284a8; flex:none; }
.htp-v6-actions { margin-top:clamp(20px,2.1vw,34px); }
@media (min-width:960px) and (max-width:1199px) {
    .htp-v6-content h1 { font-size: clamp(31px,3.6vw,43px); }
}
@media (max-width:480px) {
    .htp-v6-content .htp-hero-kicker { margin-bottom:13px; }
    .htp-v6-usp { gap:9px; }
    .htp-v6-usp>div { font-size:14px; }
    .htp-v6-usp .htp-v6-icon { width:20px; height:20px; }
}

/* Hero mobile: heading, video, details. Desktop layout stays unchanged. */
.htp-hero-heading, .htp-hero-details { display: contents; }
@media (max-width:959px) {
    body.home .htp-hero-v2.htp-video-hero {
        grid-template-areas: "heading" "video" "details";
        align-content: start;
        gap: 22px;
    }
    .htp-v6-content { display: contents; }
    .htp-hero-heading, .htp-hero-details {
        display: block;
        position: relative;
        z-index: 1;
        min-width: 0;
        width: 100%;
        max-width: 680px;
        margin-inline: auto;
    }
    .htp-hero-heading { grid-area: heading; }
    .htp-hero-details { grid-area: details; }
    .htp-v7-frame { max-width: 680px; }
    .htp-v6-subtitle { margin-top: 0; }
}
