/* Витрина кейса сайта (20.11.2026). Подключается только на кейсах с portfolio.showcase. */

.bt-sc {
    /* как галерея кейса: шире контейнера, с отступом 48px от краёв окна */
    margin: 40px calc(-50vw + 50% + 48px) 0;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
}
.bt-sc-h {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(26px, 2.6vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 28px;
}
.bt-sc-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

/* ---------- Прокрутка сайта в окне браузера ---------- */
.bt-sc-scrub {
    position: relative;
    height: 420vh;               /* длина прокрутки, за которую проигрывается запись сайта */
}
.bt-sc-scrub-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(260px, 30%) 1fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}
.bt-sc-marks {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: btsc;
}
.bt-sc-mark {
    counter-increment: btsc;
    position: relative;
    padding: 12px 0 12px 44px;
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.32);
    transition: color .4s ease;
}
.bt-sc-mark::before {
    content: counter(btsc, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.32);
    transition: color .4s ease;
}
.bt-sc-mark.is-active,
.bt-sc-mark.is-active::before {
    color: #fff;
}
.bt-sc-progress {
    margin-top: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}
.bt-sc-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
}

.bt-sc-browser {
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}
.bt-sc-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    background: #222;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bt-sc-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}
.bt-sc-bar span {
    margin: 0 auto;
    padding: 4px 18px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    transform: translateX(-18px);
}
.bt-sc-browser video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f4f5fa;
}

/* Без привязки к скроллу (телефоны, планшеты, prefers-reduced-motion): обычный блок, видео играет само */
.bt-sc-scrub.is-static {
    height: auto;
}
.bt-sc-scrub.is-static .bt-sc-scrub-stage {
    position: static;
    height: auto;
}

/* ---------- Ролики фишек ---------- */
.bt-sc-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 120px;
}
.bt-sc-feature {
    margin: 0;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}
.bt-sc-clip video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f4f5fa;
}
.bt-sc-feature figcaption {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px 26px;
}
.bt-sc-feature figcaption strong {
    font-weight: 500;
    font-size: clamp(18px, 1.4vw, 22px);
    color: #fff;
}
.bt-sc-feature figcaption > span:last-child {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- Мобильная версия ---------- */
.bt-sc-mobile {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
    margin-top: 120px;
}
/* Экран телефона без рамки устройства: чистый прямоугольник со скруглением */
.bt-sc-mobile-clip {
    display: flex;
    justify-content: center;
}
.bt-sc-mobile-clip video {
    display: block;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 590 / 1280;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #f4f5fa;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.bt-sc-mobile-text p {
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 520px;
}

/* ---------- Стек ---------- */
.bt-sc-stack {
    margin-top: 120px;
}
.bt-sc-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.bt-sc-stack-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 24px;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}
.bt-sc-stack-item strong {
    font-weight: 500;
    font-size: 19px;
    color: #fff;
}
.bt-sc-stack-item > span:last-child {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Ссылка на сайт ---------- */
.bt-sc-live {
    margin: 80px 0 40px;
}
.bt-sc-live-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff !important;
    font-size: 16px;
    text-decoration: none !important;
    transition: background .25s ease, color .25s ease;
}
.bt-sc-live-link span {
    color: rgba(255, 255, 255, 0.55);
    transition: color .25s ease;
}
.bt-sc-live-link:hover {
    background: #fff;
    color: #0e0e0e !important;
}
.bt-sc-live-link:hover span {
    color: rgba(14, 14, 14, 0.6);
}

/* ---------- Адаптив ---------- */
@media (max-width: 991px) {
    .bt-sc {
        margin-left: 0;
        margin-right: 0;
    }
    .bt-sc-scrub-stage {
        grid-template-columns: 1fr;
    }
    .bt-sc-browser {
        order: -1;
    }
    .bt-sc-features,
    .bt-sc-mobile {
        grid-template-columns: 1fr;
        margin-top: 72px;
    }
    .bt-sc-mobile-clip video {
        max-width: 300px;
    }
    .bt-sc-stack {
        margin-top: 72px;
    }
    .bt-sc-stack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .bt-sc-stack-grid {
        grid-template-columns: 1fr;
    }
    .bt-sc-bar span {
        display: none;
    }
}
