video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stories {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    -webkit-user-select: none !important;
    user-select: none !important;
    width: 100vw;
    overflow: hidden;
    margin-top: -10px;
}

.stories_viewer_slider_slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stories_preview {
    width: 100%;
    max-width: 1180px;
    position: relative;
    padding: 0 15px;
}

.life_form_btn {
    position: absolute;
    padding: 10px 20px;
    background: #fff;
    color: #7d3ec6;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    white-space: nowrap;
    z-index: 1000;
}

@media screen and (max-width: 1200px) {
    .stories_preview {
        padding: 0;
    }
}

.stories_preview_shadow {
    height: 100%;
    width: 90px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    position: fixed;
    left: 0;
    z-index: 2;
}
.stories_preview_shadow.end {
    left: auto;
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.stories_preview_wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.stories_slider_nav {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.stories_slider_nav .nav_btn {
    width: 30px;
    height: 30px;
}

.stories_item {
    height: 70px;
    width: 70px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(113, 197, 217, 1) 0%, rgba(50, 120, 145, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 200ms;
    flex-shrink: 0;
}
.stories_item:hover {
    opacity: 0.8;
}

.stories_item_content {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid #fff;
    overflow: hidden;
}

.stories_item.viewed {
    background: rgba(128, 128, 128, 0.654);
}

.stories_viewer {
    position: fixed;
    width: 100%;
    height: 100dvh;
    top: 0;
    left: 0;
    z-index: 22000;
    background: #1a1a1aec;
    display: none;
}

.stories_viewer_close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    transition: all 200ms;
}
.stories_viewer_close:hover {
    opacity: 0.8;
}

.stories_viewer_content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.stories_viewer_slider {
    width: 100%;
}

.stories_viewer_slider_slides {
    display: flex;
}

.stories_viewer_slider_slide {
    width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.stories_viewer_slider_slide:before { 
    content: "";
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 40px;
    padding: 6px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--brand-600);
    --_m: 
      conic-gradient(#0000 10%,#000),
      linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
            mask: var(--_m);
    -webkit-mask-composite: source-out;
            mask-composite: subtract;
    animation: l3 1s infinite linear;
}

@keyframes l3 {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.stories_viewer_slider_slide video {
    pointer-events: none;
}

.stories_viewer_slider_slide_container {
    width: 310px;
    aspect-ratio: 9/16;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: all 300ms;
    transform: scale(0.8);
}
.stories_viewer_slider_slide.swiper-slide-active .stories_viewer_slider_slide_container {
    transform: scale(1);
}

.stories_viewer_slider_slide_nav {
    position: absolute;
    height: 100%;
    width: 50%;
    top: 0;
    left: 0;
}
.stories_viewer_slider_slide_nav.next {
    left: 50%;
}

.stories_view_arrow {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 200ms;
    position: absolute;
    top: 50%;
    z-index: 22;
}
.stories_view_arrow:hover {
    opacity: 0.8;
}

.stories_view_arrow.left {
    left: calc(50% - 205px);
}
.stories_view_arrow.right {
    left: calc(50% + 180px);
    transform: rotate(180deg);
}

.stories_view_arrow.swiper-button-disabled {
    display: none;
}

.stories_view_media_progress {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    gap: 5px;
    position: absolute;
    top: 10px;
}

.stories_view_media_progress_item {
    height: 3px;
    border-radius: 4px;
    background: rgba(128, 128, 128, 0.418);
    width: 100%;
    overflow: hidden;
}

.stories_view_media_progress_item_fill {
    height: 100%;
    background: #fff;
    border-radius: 4px;
    transition: all 1s;
    transition-timing-function: linear;
}

.stories_view_media_contorls {
    display: flex;
    align-items: center;
    justify-content: end;
    width: 100%;
    padding: 0 10px;
    gap: 5px;
    position: absolute;
    top: 20px;
    display: none;
}
.swiper-slide-active .stories_view_media_contorls {
    display: flex;
}

.stories_view_media_contorls_pause,
.stories_view_media_contorls_close {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 200ms;
}
.stories_view_media_contorls_pause:hover,
.stories_view_media_contorls_close:hover {
    opacity: 0.8;
}

.stories_view_media_contorls_pause .play {
    display: none;
}

.stories_view_media_contorls_close {
    display: none;
}

.videos__empty {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 28px;
    color: var(--base-white);
    line-height: normal;
  
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 16px;
    width: 100%;
  }

@media screen and (max-width: 1270px) {
    .stories_preview_shadow {
        display: none;
    }
}

@media screen and (max-width: 1270px) {
    .stories_preview {
        width: 100%;
        max-width: calc(100% - 32px);
    }
}

@media screen and (max-width: 980px) {
    .about.block {
        /* padding-top: 20px; */
    }
}

@media screen and (max-width: 640px) {
    .about.block {
        padding-top: 20px;
    }
    .stories_slider_nav {
        display: none;
    }
    .stories_item {
        height: 76px;
        width: 76px;
    }
    .stories_item_content {
        width: 70px;
        height: 70px;
    }
}

@media screen and (max-width: 500px) {
    .stories_viewer {
        /* background: #000000f6; */
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    .stories_viewer_slider_slide {
        width: 100vw;
        height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stories_viewer_slider_slide_container {
        width: 100vw;
        height: 100%;
        transform: none;
        border-radius: 0;
    }
    .stories_viewer_slider_slide.swiper-slide-active .stories_viewer_slider_slide_container {
        transform: none;
    }
    .stories_view_arrow {
        display: none;
    }

    .stories_view_media_contorls_close {
        display: flex;
    }

    .stories_viewer_close {
        display: none;
    }
}

.header__life {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    cursor: pointer;
    /* background: var(--brand-600); */
    border-radius: 6px;
    transition: all 200ms;
    padding: 8px 8px;
    padding-left: 15px;
  }
  .header__life:hover {
    opacity: 0.8;
  }
  
  .header__life_text {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    color: var(--colors-text-text-secondary-700);
    color: var(--brand-600);
    /* color: #fff; */
  }
  
  @media screen and (max-width: 640px) {
    .header__life_text {
      font-size: 14px;
    }
    header .select_main_text {
      display: none;
    }
  }
  
  .header__life_icon {
    position: relative;
    width: 10px;
    height: 10px;
    background-color: #ff0000; /* Красный цвет для эфира */
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-out;
  }
  
  .header__life_icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ff0000;
    opacity: 0;
    animation: ripple 1.5s infinite ease-out;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.1);
      opacity: 0.9;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  @keyframes ripple {
    0% {
      transform: scale(0.5);
      opacity: 0.5;
    }
    100% {
      transform: scale(1.5);
      opacity: 0;
    }
  }

.header__nav_list .header__life {
    margin-left: 0;
}

.header__nav_list .header__life_text {
    font-size: 14.5px;
}

.life_form {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    display: none;
}

.life_form_content {
    width: 100%;
    background: #fff;
    padding: 20px;
    max-width: 400px;
    border-radius: 10px;
}

.life_form_content_title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 24px;
    text-transform: uppercase;
}

.life_form_content_description {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    margin-top: 24px;
    color: #000000c2;
}

.life_form_hidden {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    height: 0;
}

.life_form_content_form_input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.life_form_content_form_input_text {
    font-weight: 400;
    font-size: 16px;
    color: #000000c2;
}

.life_form_content_form {
    margin-top: 15px;
    width: 100%;
    border: 1px solid #8080805e;
    border-radius: 8px;
    padding: 16px;
}

.life_form_content_form_result {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 180px;
    overflow-y: auto;
}

.life_form_content_form_result_item {
    width: calc(100% / 4 - (5px * 3) / 4);
    aspect-ratio: 9/16;
    border-radius: 4px;
    overflow: hidden;
}

.life_form_content_form_result_item img,
.life_form_content_form_result_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.life_form_send {
    margin-top: 24px;
    border-radius: 8px;
    height: 44px;
    background: #7d3ec6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.life_form_close {
    margin-top: 24px;
    border-radius: 8px;
    height: 44px;
    border: 1px solid #7d3ec6;
    color: #7d3ec6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    display: none;
}

.life_form_send.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.life_form_loader_wrapper {
    margin-top: 24px;
    width: 100%;
    border: 1px solid #8080805e;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    display: none;
}

.life_form_loader {
    width: 100%;
    height: 4px;
    border-radius: 8px;
    background: #8080805e;
}

.life_form_loader_text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    color: #000000c2;
}

.life_form_loader_inner {
    width: 50%;
    height: 100%;
    border-radius: 8px;
    background: #7d3ec6;
}

.life_form_loader_success {
    margin-top: 24px;
    width: 100%;
    border: 1px solid #8080805e;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    display: none;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    color: #000000c2;
    text-align: center;
}

.open_stories {
    cursor: pointer;
    align-self: center;
}

.smart-captcha {
    margin-top: 15px;
}

.life_form_content_form_name {
    display: block;
    height: 40px !important;
    width: 100%;
    border: 1px solid rgba(128, 128, 128, 0.496);
    font-family: var(--font-family);
    font-size: 16px;
    padding: 0 10px;
    visibility: visible;
    opacity: 1;
    margin-top: 24px;
    border-radius: 4px;
}

.life_form_checkbox {
    margin-top: 15px;
    display: flex;
    gap: 5px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    color: #000000c2;
    cursor: pointer;
}

.life_form_checkbox a {
    color: #7d3ec6;
    transition: all 200ms;
    text-decoration: none;
}

.life_form_checkbox a:hover {
    opacity: 0.8;
}

.life_form_checkbox_input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(128, 128, 128, 0.574);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.life_form_checkbox_input.active {
    border-color: transparent;
    background: #7d3ec6;
}

@media screen and (max-width: 640px) {
    .life_form_content_title {
        font-size: 20px;
    }
    .life_form_content_description {
        font-size: 14px;
    }
    .life_form_content {
        padding: 16px;
    }
}   

@media screen and (max-width: 550px) {
    .life_form_btn {
        bottom: 10%;
    }
}