@import url('/tpl/fnt/montserrat/stylesheet.css');
@import url('/tpl/css/set.css');


*, *:after, *:before {
    padding: 0;
    margin: 0;
    outline: 0;
    border: 0;
    box-sizing: border-box;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
}


html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background: var(--body);
    color: var(--text);
    font-size: 16px;
}


a {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    color: var(--text);
    text-decoration: none;
}

tpl {
    display: none;
}

p {
    margin-bottom: 8px;
}

#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    background: url("/tpl/img/loader.svg") no-repeat center;
    background-size: 32px;
    z-index: -1;
    opacity: 0;
    transition: opacity .5s, z-index .1s 1s;
}

._init #loader {
    opacity: 1;
    z-index: 50;
}

#wrapper {
    transition: opacity .5s;
    opacity: 1;

}

._init #wrapper {
    opacity: 0;
}

header {
    height: 48px;
    padding: 0 16px;
    background: var(--panel);
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header .logo {
    display: block;
    height: 48px;
    width: 100%;
    background: url("/tpl/img/ontelecom.png") no-repeat center;
    background-size: auto 18px;

}

.footer {
    padding-top: 48px;
    font-size: 14px;
    color: var(--text-mute);
}

h1 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 500;
}

h2 {
    font-size: 18px;
    margin-bottom: 16px;
    padding: 16px;
}

/*
----------------------------------------------------------------------- */
section {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
    opacity: 0;
    z-index: -1;
    transition: .3s;
}

section._active {
    opacity: 1;
    z-index: 1;
}

.page {
    padding: 64px 16px 80px 16px;
}

.text {
    margin-bottom: 32px;
    white-space: pre-wrap;
}

/*
----------------------------------------------------------------------- */


#list .top_image {
    width: 100%;
    /*height: 100px;*/
    margin-bottom: 16px;
}

#list .top_image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

#list .top_image .phone {
    display: none;
}

@media screen  and (max-width: 700px) {

    #list .top_image .pc {
        display: none;
    }

    #list .top_image .phone {
        display: block;
    }
}

#page {
    padding: 16px;
}

#fav .items,
#list .items {
    display: grid;
    gap: 32px 16px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.item {
    cursor: pointer;
    position: relative;
    /*opacity: .5;*/
    /*transition: opacity .5s;*/
}

.item._loaded {
    /*opacity: 1;*/
}

.item.v_0 {
    opacity: .3;
    cursor: default;
    /*display: none;*/
}

._online .item.v_0 {
    display: none;
}


.item .image {
    display: block;
    background: var(--item);
    opacity: .5;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: opacity .5s;
}

.item._loaded .image {
    opacity: 1;
}

.item._visible .image {
    background: var(--item) url("/tpl/img/loader.svg") no-repeat center;
    background-size: 24px;
}

.item .img {
    display: block;
    padding-top: 56.25%;
    background: no-repeat center;
    background-size: cover;
    opacity: 0;
    transition: opacity .5s;
}

.item._loaded .img {
    opacity: 1;
}

.item.v_0 .image {
    background: var(--item) url("/tpl/img/unavailable.svg") no-repeat center !important;
    background-size: 64px !important;
}

.item .title {
    display: block;
    line-height: 20px;
    height: 40px;
    overflow: hidden;
    font-weight: 500;
    transition: color .5s;
}

.item._loaded:hover .title {
    color: var(--text-hover);
}

.item._hidden {
    display: none;
}

/*
----------------------------------------------------------------------- */

#view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #000;
    transform: translateY(100%);

}

._view #view {
    transform: translateY(0);
}


._ready #view {
    transition: transform .5s;
}

#view .poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #000 no-repeat center;
    background-size: cover;
    transition: opacity .5s, z-index 1s;
}

._playing #view .poster {
    opacity: 0;
    z-index: -1;
}


#view .info {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 15;

}

._iframe #view .info {
    display: none;
}


#view .page_title {
    line-height: 24px;
    background: rgba(0, 0, 0, 0.6);
    transition: background-color .5s;
    padding: 12px 0 12px 56px;
    font-weight: 500;
}


._play #view .page_title {
    /*background: rgba(0, 0, 0, 0.3);*/
    /*text-shadow: 1px 1px #000;*/

}

#view .functions {
    float: right;
    height: 48px;
}

#view .functions a,
#view .close {
    display: block;
    width: 48px;
    height: 48px;
    cursor: pointer;
    float: left;
}


._apple #view .fullscreen {
    display: none;
}


#video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 5;

}

#play {
    position: fixed;
    bottom: 16px;
    left: 50%;
    width: 64px;
    height: 64px;
    background: var(--button) url("/tpl/img/play.svg") no-repeat center;
    background-size: 32px;
    z-index: 20;
    margin-left: -32px;
    border-radius: 64px;
    cursor: pointer;
    transition: opacity .5s;
    opacity: .8;
}


._play #play {
    background-image: url("/tpl/img/loader.svg");
}

#play:hover {
    opacity: 1;
}


._playing #play {

    opacity: 0 !important;
    z-index: -1;
}


._iframe._playing #play {
    background-image: url("/tpl/img/stop.svg");
    z-index: 20;
    opacity: .5 !important;
}

#view .ontelecom {
    display: block;
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 400px;
    max-width: calc(50% - 64px);
    height: 64px;
    background: url("/tpl/img/ontelecom.png") no-repeat right center;
    background-size: contain;
    cursor: pointer;
    z-index: 10;
    opacity: .5;
    transition: opacity .5s;
}

._iframe #view .ontelecom {
    display: none;
}

._playing #view .ontelecom {
    opacity: .2;
}

#view .ontelecom:hover {
    opacity: 1;
}


#view .resolution {
    display: none;
    position: absolute;
    left: 8px;
    bottom: 8px;
    color: var(--text);
    z-index: 10;
    /*text-shadow: 1px 1px 1px #000;*/
    opacity: .5;
    font-size: 10px;
    font-weight: 500;
}

._playing #view .resolution {
    display: block;
}

/*
----------------------------------------------------------------------- */

#about .text {
    float: left;
    width: calc(100% - 340px);
}

#about .images {
    float: right;
    width: 320px;
}

#about .images img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 16px;
}


#about h2 {
    padding: 0;
    margin: 0 0 16px 0;
    font-weight: 500;
}


@media screen  and (max-width: 700px) {
    #about .text {
        float: none;
        width: 100%;
        margin-bottom: 32px;
    }

    #about .images {
        float: none;
        width: 100%;
    }
}

/*
----------------------------------------------------------------------- */


#search {
    display: block;
    position: fixed;
    left: 8px;
    z-index: 5;
    bottom: 72px;
    background-color: var(--panel);
    padding: 16px;
    border-radius: 8px;
    width: 340px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(calc(100% + 72px));

}


._ready #search {
    transition: transform .5s;
}

._search #search {
    transform: translateY(0);
}


.tags {
    white-space: nowrap;
    height: 56px;
    margin-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;

}

#list .tags {
    margin-bottom: 32px;
}


.tags i {
    display: inline-block;
    margin-right: 8px;
    background-color: var(--input);
    border-radius: 8px;
    height: 40px;
    line-height: 40px;
    padding: 0 16px;
    font-style: normal;
    cursor: pointer;
    transition: background-color .3s;

}

.tags i:last-child {
    margin-right: 0;
}

.tags i:hover {
    background-color: var(--button-hover);
}

.tags i._active {
    background-color: var(--button-active);
}


label,
input {
    display: block;
    border: 0;
    appearance: none;
    border-radius: 4px;
    width: 100%;
}

input[type=text] {

    background-color: var(--input);
    color: var(--text);
    font-size: 18px;
    border: 2px solid transparent;
    height: 48px;
    line-height: 44;
    font-weight: 500;
    transition: border-color .3s;

}

input[type=text]:focus {
    border-color: var(--border);
}

label {
    height: 40px;
    line-height: 40px;
    margin-bottom: 16px;
    cursor: pointer;
}

input[type=checkbox] {
    appearance: none;
    height: 24px;
    width: 24px;
    float: left;
    margin: 8px 16px 0 0;
    position: relative;
    cursor: pointer;
    border: 2px solid var(--text-mute);
    transition: border-color .3s;
}


input[type=checkbox]:after {
    content: "";
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    bottom: 2px;
    left: 2px;
    background-color: transparent;
    transition: background-color .3s;
    border-radius: 2px;
}


input[type=checkbox]:checked {
    border-color: var(--text);
}

input[type=checkbox]:checked:after {
    background-color: var(--text);
}


/*
----------------------------------------------------------------------- */


#up {
    display: block;
    position: fixed;
    bottom: 8px;
    right: 8px;
    width: 56px;
    height: 56px;
    border-radius: 100%;
    background-color: var(--panel);
    z-index: 2;
    transform: translateY(200px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    transition: transform .5s, bottom .5s;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


#up:hover {
    background-color: var(--item-hover);
}

._ready._scroll #up {
    transform: translateY(0);
}

/*
----------------------------------------------------------------------- */
nav {
    position: fixed;
    background: var(--panel);
    border-radius: 8px;
    bottom: 8px;
    left: 8px;
    height: 56px;
    z-index: 5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 340px;
}


nav a {
    height: 56px;
    display: block;
    float: left;
    font-size: 10px;
    width: 20%;
    text-align: center;
    padding-top: 36px;
    background-position: top 8px right 50% !important;
    opacity: .6;
    transition: opacity .5s;
    color: var(--text-hover);
}

nav a:hover {
    opacity: .9;
}

._search a.search,
nav a._active {
    opacity: 1;
    color: var(--text-hover);
}


/*
----------------------------------------------------------------------- */


#yamap {
    height: 100%;
}

.ymaps-2-1-79-ground-pane {
    /*filter: grayscale(1) invert();*/
}

ymaps[style="z-index: 201; position: absolute;"] {
    /*opacity: .5;*/
}

#map {
    top: 48px;
    bottom: 0;
    height: auto;
}

/*
----------------------------------------------------------------------- */
#error {
    position: fixed;
    bottom: 96px;
    max-width: calc(100% - 32px);
    right: 16px;
    padding: 16px 16px 16px 56px;
    background-color: #c41616;
    background-position: left 16px top 50%;
    color: #fff;
    z-index: 20;
    border-radius: 8px 8px 0 8px;
    display: none;
}

#error._show {
    display: block;
}


/*
----------------------------------------------------------------------- */


._mouse ::-webkit-scrollbar {
    height: 8px;
    width: 8px;
    background-color: var(--body);
    transition: .3s;
    border-radius: 8px;
}

._mouse ::-webkit-scrollbar-thumb {
    background-color: var(--button);
    border-radius: 8px;
    transition: .3s;
}

._mouse ::-webkit-scrollbar-thumb:hover {
    background-color: var(--button-active);
    transition: .3s;
}

._mouse ::-webkit-scrollbar-corner {
    display: none;
    transition: .3s;
}


/*
----------------------------------------------------------------------- */
@media screen  and (max-width: 500px) {

    nav {
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        height: calc(56px + env(safe-area-inset-bottom) / 1.8);
    }


    #up {
        bottom: calc(64px + env(safe-area-inset-bottom) / 1.8);
    }


    #search {
        bottom: calc(64px + env(safe-area-inset-bottom) / 1.8);
        width: calc(100% - 16px);
    }

    ._search #up {
        bottom: calc(270px + env(safe-area-inset-bottom) / 1.8);
    }


}


.cam_placemark {
    background: no-repeat center url('/tpl/img/cam.svg');
    width: 64px;
    height: 64px;
}




/*
----------------------------------------------------------------------- */
#list .tags,
#list .items,
nav,
#up
{
    display: none !important;
}

#list .text{
    border: 4px solid orangered;
    border-radius: 8px;
    padding: 16px;
}