.test-hero-wrap {
    position: relative;
    height: calc(100vh - var(--test-header-height, 0px));
    min-height: 420px;
    overflow: hidden;
    background: #111;
}

.test-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.test-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.72) 84%),
        radial-gradient(circle at 76% 22%, rgba(128, 143, 90, 0.34) 0%, rgba(0, 0, 0, 0) 45%);
}

.test-hero-content {
    position: relative;
    z-index: 2;
    min-height: 100%;
    display: flex;
    align-items: flex-end;
    padding: clamp(60px, 8vw, 110px) 0 72px 0;
}

.test-hero-card {
    max-width: 720px;
    margin-left: -14px;
    background: rgba(96, 112, 62, 0.36);
    border: 1px solid rgba(228, 235, 206, 0.45);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: clamp(20px, 3vw, 36px);
    box-shadow: 0 18px 40px rgba(31, 44, 14, 0.35);
}

.test-hero-kicker {
    display: inline-block;
    background: rgba(233, 240, 210, 0.2);
    border: 1px solid rgba(233, 240, 210, 0.45);
    color: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.test-hero-title {
    color: #fff;
    line-height: 1.08;
    margin-bottom: 12px;
}

.test-hero-desc {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 22px;
}

.test-hero-cta {
    display: inline-flex;
    align-items: center;
    background: #6e7f45;
    border-color: #6e7f45;
    color: #6e7f45 !important;
}

.test-hero-cta:hover,
.test-hero-cta:focus {
    background: #5e6d3b;
    border-color: #5e6d3b;
    color: #fff !important;
}

.test-guide-card {
    border-radius: 16px;
    border: 1px solid #ead8cf;
    background: #fffaf7;
    padding: 24px;
    height: 100%;
}

.test-guide-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #43251a;
}

.test-guide-text {
    color: #6a4a3d;
    margin-bottom: 0;
}

.apple-scroll-section {
    position: relative;
    background: #22130d;
    color: #fff;
}

.apple-scroll-track {
    position: relative;
    height: 360vh;
}

.apple-scroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apple-scroll-bg-title {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: clamp(34px, 5vw, 64px) 0 clamp(94px, 11vw, 136px);
    font-size: clamp(48px, 12vw, 190px);
    line-height: 0.86;
    letter-spacing: 0.1em;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(243, 217, 201, 0.72);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    text-align: center;
    transform: translateY(10px);
}

.apple-scroll-bg-title span {
    display: block;
    text-shadow: 0 10px 28px rgba(36, 18, 10, 0.62);
    -webkit-text-stroke: 1px rgba(255, 224, 206, 0.24);
}

.apple-scroll-media {
    position: relative;
    z-index: 1;
    height: min(84vh, 920px);
    aspect-ratio: 9 / 16;
    width: auto;
    border-radius: 24px;
    overflow: hidden;
    background: #140b08;
    box-shadow: 0 24px 60px rgba(24, 11, 8, 0.56);
}

.apple-scroll-video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apple-scroll-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(28, 15, 10, 0.1) 0%, rgba(28, 15, 10, 0.44) 88%),
        radial-gradient(circle at center, rgba(0, 0, 0, 0) 40%, rgba(29, 13, 8, 0.5) 100%);
    pointer-events: none;
}

.apple-scroll-cta-wrap {
    position: absolute;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    z-index: 3;
}

.apple-scroll-cta {
    background: #a0522d;
    border: 1px solid #a0522d;
    color: #fff !important;
    min-height: 46px;
    padding: 10px 24px;
    letter-spacing: 0.02em;
}

.apple-scroll-cta:hover,
.apple-scroll-cta:focus {
    background: #8f4524;
    border-color: #8f4524;
    color: #fff !important;
}

@media (max-width: 767px) {
    .test-hero-wrap {
        min-height: 360px;
    }

    .test-hero-content {
        padding: 0 12px 30px 12px;
    }

    .test-hero-card {
        max-width: 290px;
        margin-left: -6px;
        border-radius: 12px;
        padding: 12px 12px 10px 12px;
    }

    .test-hero-kicker {
        margin-bottom: 8px;
        padding: 4px 9px;
        font-size: 9px;
    }

    .test-hero-title {
        font-size: 21px;
        margin-bottom: 7px;
    }

    .test-hero-desc {
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .test-hero-cta {
        min-height: 34px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .apple-scroll-track {
        height: 280vh;
    }

    .apple-scroll-media {
        height: min(70vh, 640px);
        border-radius: 16px;
    }

    .apple-scroll-bg-title {
        font-size: clamp(30px, 12.4vw, 62px);
        letter-spacing: 0.07em;
        padding: 26px 0 84px;
        transform: translateY(6px);
    }

    .apple-scroll-bg-title span {
        -webkit-text-stroke: 0.6px rgba(255, 224, 206, 0.24);
    }

    .apple-scroll-cta-wrap {
        bottom: 20px;
    }

    .apple-scroll-cta {
        min-height: 38px;
        padding: 8px 16px;
        font-size: 12px;
    }
}
