.sticky-block {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 300px;
    min-height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    overflow: hidden;
    z-index: 80;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sticky-block.show {
    opacity: 1;
    transform: translateY(0);
}

.sticky-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.sticky-block__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3;
    display: flex;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.sticky-block__close svg {
    width: 20px;
    height: 20px;
}

.sticky-block__content {
    position: relative;
    z-index: 2;
    padding: 20px;
    gap: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sticky-block__title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    line-height: 23px;
    margin: 0;
    text-align: left;
}

.sticky-block__content button {
    color: #f9f9f9 !important;
    gap: 10px;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    width: max-content;
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99909;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.video-modal__content {
    position: relative;
    background: white;
    max-width: 1260px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.video-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-wrapper.playing::before {
    opacity: 0;
}

.video-modal__close span {
    display: block;
    position: absolute;
    width: 20px;
    height: 2px;
    background: #858687;
    left: 50%;
    top: 50%;
    border-radius: 20px;
    transform-origin: center;
}

.video-modal__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.video-modal__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.video-modal__container {
    display: flex;
    height: 100%;
}

.video-modal__video {
    flex: 1;
    min-width: 765px;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

.video-modal__title {
    font-size: 21px;
    font-weight: 600;
    color: #fff;
    padding: 20px 36px;
    margin: 0;
    text-align: left;
}

.video-wrapper {
    position: relative;
    width: 100%;
    display: block;
    height: 100%;
}

.video-player {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: cover;
    display: block;
    margin: 0;
    background: #000;
}

.video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: 0.2s ease;
}

.video-play-btn {
    background: transparent;
    border: 2px solid #00B7F4;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #00B7F4;
    outline: none;
}

.video-play-btn:hover {
    background: #00B7F4;
    transform: scale(1.1);
    color: #fff;
}

.video-modal__form {
    flex: 1;
    padding: 40px 60px;
    background: white;
}

.video-modal__form-title {
    font-size: 21px;
    font-weight: 600;
    color: #000;
    margin: 0 0 10px 0;
}

.video-modal__form-subtitle {
    color: #000;
    margin: 0 0 40px 0;
    font-size: 15px;
    font-weight: 600;
    opacity: 0.5;
}

.video-modal .field__input {
    text-align: right;
}

button.is--main.mobile {
    display: none;
}

@media (max-width: 480px) {
    button.is--main.mobile {
        display: block;
    }

    .sticky-block__content {
        display: none;
    }

    .sticky-block::before {
        content: none
    }

    .sticky-block__close {
        display: none;
    }

    .sticky-block {
        background-image: none !important;
        width: auto;
        height: auto;
        min-height: auto;
        bottom: 55px;
        right: 160px;
        padding: 0;
        overflow: visible;
        box-shadow: none;
    }

    button.is--main.mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px 30px;
        height: 50px;
        animation: pulseBlack 2s ease-in-out infinite;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        font-size: 12px;
    }

    button.is--main.mobile svg {
        width: 12px;
        height: 12px;
    }

    @keyframes pulseBlack {
        0% {
            box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        }25%{
            box-shadow: 0 0 0 7px rgba(0, 0, 0, 0);
        } 50% {
            box-shadow: 0 0 0 7px rgba(0, 0, 0, .3);
        }75% {
            box-shadow: 0 0 0 7px rgba(0, 0, 0, 0);
        } 100% {
            box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        }
    }
}

@media (min-width: 991px) and (max-width: 1280px) {
    .video-modal__video {
        min-width: 500px;
        flex: 1;
    }

    .video-modal__form {
        flex: 0 0 441px;
        min-width: 441px;
    }

    .video-modal__title {
        font-size: 18px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    .video-modal__video {
        min-width: 400px;
        flex: 1;
    }

    .video-modal__form {
        flex: 0 0 368px;
        min-width: 368px;
    }

    .video-modal__title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .video-modal__container {
        flex-direction: column;
        max-height: none;
    }

    .video-modal__video {
        min-width: 100%;
        flex: none;
        max-height: none;
    }

    .video-modal__form {
        flex: none;
        min-width: 100%;
    }

    .video-modal__title {
        font-size: 16px;
        padding: 15px 20px;
        padding-right: 100px;
    }

    .video-modal__close {
        top: 10px;
    }

    .video-wrapper {
        width: 100%;
        height: 250px;
        overflow: hidden;
    }

    .video-player {
        width: 100%;
        height: 250px;
        max-height: 250px;
        object-fit: cover;
    }

    .video-modal__form {
        padding: 30px 20px;
        overflow-y: auto;
    }

    .form-title {
        font-size: 18px;
    }

    .form-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    .video-modal__content {
        max-height: 100%;
        max-width: 100%;
    }

    .video-modal .field__input {
        text-align: left;
    }

    .video-wrapper.playing .video-play-btn {
        opacity: 0 !important;
    }
}

@media (max-width: 480px) {

    .video-modal__container {
        max-height: calc(100vh - 20px);
    }

    .video-modal__title {
        font-size: 14px;
        padding-right: 60px;
    }

    .video-wrapper {
        width: 100%;
        height: 200px;
        overflow: hidden;
    }

    .video-player {
        width: 100%;
        height: 200px;
        max-height: 200px;
        object-fit: cover;
    }

    .form-title {
        font-size: 16px;
    }

    .form-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .video-modal__form {
        padding: 25px 15px;
        overflow-y: auto;
        max-height: calc(100vh - 290px);
    }

    .video-modal__form .fields__item {
        margin-top: 2rem;
    }

    .video-modal .field__input {
        text-align: left;
    }

    .video-modal__close {
        width: 32px;
        height: 32px;
    }
}
