@import "./vars.css";

html {
    scroll-behavior: smooth;
}

body {
    font-family: Roboto, Arial, Verdana, sans-serif;
    min-width: 340px;
    background-color: var(--background-color);
    -webkit-touch-callout: none !important;
    transition: background-color .3s ease, color .3s ease;
}
body.disable {
    overflow: hidden;
}

.main {
    width: 1316px;
    margin: 0 auto;
    display: flex;
    gap: 64px;
    padding: 32px 0 0;
}

.content {
    width: 1012px;
}

.sidebar {
    width: 240px;
}
.stories {
    margin-bottom: 32px;
    position: relative;
}
.swiper-stories_button-next,
.swiper-stories_button-prev {
    position: absolute;
    width: 32px;
    height: 32px;
    top: calc(50% - 16px);
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.swiper-stories_button-next {
    right: -40px;
}
.swiper-stories_button-prev {
    left: -40px;
}
.swiper-stories_button-next.swiper-button-disabled,
.swiper-stories_button-prev.swiper-button-disabled {
    visibility: hidden;
}
.story_inner {
    width: 157px;
    height: 157px;
    background-color: #f1f1f1;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.story_cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 157px;
    height: 157px;
    overflow: hidden;
}
.story_cover-img {
    width: 100%;
    height: 100%;
}

.story_title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.60) -1.67%, rgba(0, 0, 0, 0.00) 100%);
}
.story_title-inner {
    padding: 20px;
    color: #FFF;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: -0.195px;
}

.story_round {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    background-color: transparent;
    cursor: pointer;
}

.swiper-story {
    border-radius: 24px;
}
.swiper-story .swiper-slide {
    height: auto;
    max-height: 800px;
    display: flex;
    justify-content: center;
    align-content: center;
    background-color: #000;
    position: relative;
}
.swiper-story .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
}

.swiper-story_header {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(38, 38, 38, 0.80) 0%, rgba(38, 38, 38, 0.00) 100%);
}
.swiper-story_pagination {
    padding: 20px 16px 8px;
    height: 4px;
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.swiper-story_pagination_bullet {
    width: 100%;
    flex-shrink: 10;
    height: 2px;
    background: rgba(255, 255, 255, .35);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 1px #00000059;
}

.swiper-story_pagination_bullet-viewed span {
    transform: translate(0);
    transition-duration: 0ms !important;
}

.swiper-story_pagination_bullet span {
    position: absolute;
    background: white;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    transform: translate(-100%);
    transition-timing-function: linear;
    transition: transform ease 0.1s;
}
.swiper-story_company {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    width: 50%;
}
.swiper-story_company-logo {
    width: 32px;
}
.swiper-story_company-name {
    color: #FFF;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
}
.swiper-story_controls {
    display: flex;
    width: 50%;
    justify-content: flex-end;
    align-items: center;
}
.swiper-story_cover {
    visibility: hidden;
    opacity: 0;
    transition: opacity ease 0.3s;
}
.swiper-story_cover-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -60px;
    margin-top: -60px;
}

.swiper-story_content {
    position: absolute;
    bottom: 40px;
    right: 24px;
    left: 24px;
    z-index: 1;
}
.swiper-story_title {
    color: #FFF;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 16px;
}
.swiper-story_text {
    color: #FFF;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 23px;
    margin-bottom: 16px;
}
.swiper-story_url {
    min-height: 45px;
    line-height: 45px;
    padding: 12px 28px;
    align-items: center;
    border-radius: 22px;
    background-color: #FF7624;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.swiper-story_volume {
    position: absolute;
    top: 35px;
    right: 20px;
    width: 30px;
    height: 30px;
    z-index: 10;
    display: none;
}
.swiper-story_volume.show {
    display: block;
}
.swiper-story_volume svg.volmin {
    display: none;
}
.swiper-story_volume svg.volmax {
    display: block;
}
.swiper-story_volume.muted svg.volmin {
    display: block;
}
.swiper-story_volume.muted svg.volmax {
    display: none;
}

.swiper-main {
    width: 1400px;
}
.swiper-main-item {
    transform: scale(0.6) !important;
}
.swiper-main > .swiper-wrapper > .swiper-slide {
    transition: transform ease 0.2s;
    border-radius: 24px;
}
.swiper-main > .swiper-wrapper > .swiper-slide-active {
    transform: scale(1) !important;
}
.modal-window.show .swiper-main > .swiper-wrapper > .swiper-slide-next .swiper-story_cover,
.modal-window.show .swiper-main > .swiper-wrapper > .swiper-slide-prev .swiper-story_cover {
    visibility: visible;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(56, 56, 56, 0.50);
    z-index: 1;
}

.swiper-main_button-close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3;
    cursor: pointer;
}

.swiper-main_nav-next,
.swiper-main_nav-prev {
    position: absolute;
    top: calc(50% - 36px);
    width: 72px;
    height: 72px;
    z-index: 3;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    -webkit-tap-highlight-color:  transparent;
}
.swiper-main_nav-prev {
    left: calc(50% - 503px);
}
.swiper-main_nav-next {
    right: calc(50% - 503px);
}

.swiper-main_button-next,
.swiper-main_button-prev {
    position: absolute;
    top: calc(50% - 16px);
    width: 36px;
    height: 36px;
    z-index: 3;
    cursor: pointer;
    background-color: rgba(255,255,255,.6);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
    -webkit-tap-highlight-color:  transparent;
}
.swiper-main_button-prev {
    left: calc(50% - 300px);
}
.swiper-main_button-next {
    right: calc(50% - 300px);
}
.swiper-main_button-next.swiper-button-disabled,
.swiper-main_button-prev.swiper-button-disabled {
    display: none;
}

/* MODAL */
.wrap-center-middle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: wrap column;
    text-align: center;
    height: 100vh;
}

.modal-window {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    transition: all 0.18s ease-in-out;
    visibility: hidden;
    opacity: 0;
    z-index: 5000;
}

.modal-window.show {
    opacity: 1;
    visibility: visible;
    align-content: center;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 4999;
}

.hidden {
    display: none;
}

/* Services */
.services {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ygm-footer {
    margin-top: 80px;
}

.ykt-footer {
    display: none;
}