.vatopedi-hero {
    position: relative;
    display: grid;
    align-items: center;
    isolation: isolate;
    min-height: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: #26221e;
    color: #fff;
}

.vatopedi-hero__media,
.vatopedi-hero__poster,
.vatopedi-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.vatopedi-hero__media {
    z-index: 0;
}

.vatopedi-hero__poster,
.vatopedi-hero__video {
    object-fit: cover;
    object-position: center;
}

.vatopedi-hero--fallback .vatopedi-hero__video {
    opacity: 0;
}

.vatopedi-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 14, 12, .48), rgba(15, 14, 12, .18) 30%, rgba(15, 14, 12, .38) 70%, rgba(15, 14, 12, .48));
}

.vatopedi-hero .vatopedi-hero__content {
    position: relative;
    z-index: 2;
    padding-block: 140px 100px;
    text-align: center;
}

.vatopedi-hero .vatopedi-hero__title {
    max-width: 1000px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.vatopedi-hero__description {
    max-width: 680px;
    margin: 0 auto 34px;
    color: rgba(255, 255, 255, .80);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.6;
    text-wrap: balance;
}

.vatopedi-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 15px 32px;
    border: 1px solid #ae2c33;
    border-radius: 999px;
    background: #922027;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.vatopedi-hero__button:hover {
    border-color: #bd3b42;
    background: #aa2830;
    color: #fff;
}

.vatopedi-hero__button:focus-visible,
.vatopedi-hero__source:focus-visible,
.vatopedi-hero__scroll:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 5px;
}

@media (max-width: 767px) {
    .vatopedi-hero {
        height: 100vh;
        height: 100svh;
    }

    .vatopedi-hero .vatopedi-hero__content {
        padding: 120px 24px 140px;
    }

    .vatopedi-hero .vatopedi-hero__title {
        margin-bottom: 22px;
        font-size: clamp(28px, 7.6vw, 40px);
        line-height: 1.15;
    }

    .vatopedi-hero__description {
        margin-bottom: 28px;
        font-size: 16px;
        line-height: 1.55;
    }

    .vatopedi-hero__button {
        min-height: 52px;
        padding: 14px 28px;
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vatopedi-hero__button {
        transition: none;
    }
}

@media (max-width: 767px) and (max-height: 700px) {
    .vatopedi-hero {
        min-height: 0;
    }

    .vatopedi-hero .vatopedi-hero__content {
        padding: 108px 24px 104px;
    }

    .vatopedi-hero .vatopedi-hero__title {
        margin-bottom: 16px;
        font-size: clamp(25px, 7.2vw, 30px);
    }

    .vatopedi-hero__description {
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.5;
    }

    .vatopedi-hero__button {
        min-height: 48px;
        padding-block: 12px;
        font-size: 16px;
    }
}

.vatopedi-home-video .page-content {
    padding-top: 0;
}

.vatopedi-home-video #preloader {
    display: none;
}

.vatopedi-home-video .header__sticky.stick {
    background: transparent;
    box-shadow: none;
}

.vatopedi-home-video .header__sticky.stick.sticky {
    background: #8c2127;
    box-shadow: 0 0 7px rgba(0, 0, 0, .15);
}

.vatopedi-hero__video {
    pointer-events: none;
}

.vatopedi-hero__video::-webkit-media-controls,
.vatopedi-hero__video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

@media (min-width: 768px) and (max-height: 600px) {
    .vatopedi-hero .vatopedi-hero__content {
        padding-block: 96px 28px;
    }

    .vatopedi-hero .vatopedi-hero__title {
        margin-bottom: 14px;
        font-size: 28px;
    }

    .vatopedi-hero__description {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.45;
    }

    .vatopedi-hero__button {
        min-height: 48px;
        padding-block: 12px;
    }
}

.vatopedi-hero__scroll {
    position: absolute;
    z-index: 3;
    bottom: 24px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(0, 0, 0, .12);
    color: rgba(255, 255, 255, .82);
    transition: background-color 180ms ease;
}

.vatopedi-hero__source {
    position: absolute;
    z-index: 3;
    bottom: 82px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 48px);
    min-height: 38px;
    padding: 8px 4px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    transition: color 180ms ease;
}

.vatopedi-hero__source span:first-child {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .35);
    text-underline-offset: 4px;
}

.vatopedi-hero__source:hover {
    color: #fff;
}

.vatopedi-hero__scroll:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.vatopedi-hero__scroll-icon {
    width: 10px;
    height: 10px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: vatopedi-hero-scroll 2s ease-in-out infinite;
}

.vatopedi-home-video #home-about {
    scroll-margin-top: 96px;
}

@keyframes vatopedi-hero-scroll {
    0%, 100% { transform: translateY(-2px) rotate(45deg); }
    50% { transform: translateY(2px) rotate(45deg); }
}

@media (max-width: 991px) {
    .vatopedi-hero__source {
        bottom: calc(144px + env(safe-area-inset-bottom, 0px));
    }

    .vatopedi-hero__scroll {
        bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .vatopedi-hero__scroll-icon {
        animation: none;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .vatopedi-hero__source {
        right: auto;
        bottom: calc(90px + env(safe-area-inset-bottom, 0px));
        left: 24px;
        max-width: min(240px, calc(50% - 160px));
        transform: none;
        font-size: 13px;
        text-align: left;
    }

    .vatopedi-hero__scroll {
        right: 24px;
        left: auto;
        transform: none;
    }
}
