/* Fonts */
@font-face {
    font-family: 'CASlalom';
    src: url('../fonts/CASlalom-Bold.woff') format('woff'),
    url('../fonts/CASlalom-Bold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Light.woff') format('woff'),
    url('../fonts/Gilroy-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-ExtraBold.woff') format('woff'),
    url('../fonts/Gilroy-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body, .b-longread {
    height: 100%;
}

body {
    background-image: url("https://static.sobaka.ru/uploads/posts/151417/bg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* Reset */
.b-longread * {
    margin: 0;
    padding: 0;
    font: inherit;
    box-sizing: border-box;
}

.b-longread {
    position: relative;
    font-size: 10px;
    width: 100%;

}

.b-longread-overlay {
    display: none;
    width: 100%;
    background-image: url(https://static.sobaka.ru/uploads/posts/151417/popup_overlay.jpg);
    min-height: 100%;
    opacity: .75;
}

@media (max-width: 1920px) {
    .b-longread {
        font-size: calc(10vw / 1920 * 100);
    }
}

@media (max-width: 640px) {
    .b-longread {
        font-size: calc(10vw / 800 * 100);
    }
}

.b-longread__city {
    position: absolute;
    width: 100%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
    max-width: calc(525em / 10);
    transition: all .3s ease;
    z-index: 1;
}

.b-longread__city:before {
    content: '';
    display: block;
    width: 100%;
    padding: calc(360 / 525 * 100%) 0 0;
}

.b-longread__city--spb {
    background-image: url(https://static.sobaka.ru/uploads/posts/151417/spb.jpg);
    top: calc(95em / 10);
    left: calc(180em / 10);
}

/*.b-longread__city--nn:hover {*/
/*    transform: scale(1.05);*/
/*    box-shadow: 0 0 calc(50em / 10) 0 rgba(0,229, 188, .7);*/
/*}*/

.b-longread__city--nn {
    background-image: url(https://static.sobaka.ru/uploads/posts/151417/nn.jpg);
    top: calc(95em / 10);
    right: calc(180em / 10);
    /*
    cursor: pointer;
    animation: pulse 2s infinite;
    */
}
.b-longread__city--kzn {
    background-image: url(https://static.sobaka.ru/uploads/posts/151417/kzn.jpg);
    bottom: calc(35em / 10);
    left: calc(180em / 10);
}
.b-longread__city--msk {
    background-image: url(https://static.sobaka.ru/uploads/posts/151417/msk.jpg);
    bottom: calc(35em / 10);
    right: calc(180em / 10);
}

.b-longread__city_overlay {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 18, 18, 0.55);
    width: 100%;
    height: 100%;
}

.b-longread__city_overlay-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FF65F9;
    font-family: 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: calc(23em / 10);
    line-height: calc(28em / 23);
    border-radius: calc(15em / 23);
    width: calc(300em / 23);
    height: calc(62em / 23);
    text-align: center;
    letter-spacing: 0.4px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all .3s;
}


.b-longread__city_overlay-text:hover {
    background: #00E5BC;
}

.b-longread__img {
    position: absolute;
    top: calc(80em / 10);
    left: calc(800em / 10);
    display: block;
    width: 100%;
    height: auto;
    max-width: calc(352em / 10);
    max-height: calc(265em / 10);
    cursor: pointer;
    animation: rotate 2s infinite;
}

.b-longread__icon-link:first-child {
    border: 1px solid gray;
    border-radius: 5px;
}

.b-longread__icons {
    position: absolute;
    bottom: calc(35em / 10);
    left: calc(855em / 10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.b-longread__icon-link+.b-longread__icon-link {
    margin-top: calc(20em / 10);
}

.b-longread__icon-img {
    display: block;
    width: calc(218em / 10);
}

.b-longread__truck-wrap {
    position: absolute;
    top: 50%;
    width: 100%;
    overflow: hidden;
}

.b-longread__truck {
    position: relative;
    max-width: calc(380em / 10);
    height: auto;
    left: calc(-400em / 10);
    animation: truck 10s infinite ease-in-out;
}

@keyframes truck {
    from {
        left: calc(-400em / 10);
    }
    to {
        left: calc(100% + 100em / 10);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(252, 103, 247, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(252, 103, 247, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(252, 103, 247, 0);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-2deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* popup */

.b-longread-popup {
    display: none;
    position: absolute;
    top: calc(54em / 10);
    left: calc(500em / 10);
    width: calc(900em / 10);
    height: auto;
    border: 1px solid #00E6BC;
    box-shadow: 0 0 calc(52em / 10) calc(25em / 10) rgba(0,0,0, .8);
    background-image: url(https://static.sobaka.ru/uploads/posts/151417/popup_bg.jpg);
    background-size: cover;
    background-position: center;
    z-index: 9999;
}

.b-longread-popup--truck, .b-longread-popup--city {
    display: none;
}

.b-longread-popup__close {
    position: absolute;
    top: calc(40em / 10);
    right: calc(30em / 10);
    width: calc(50em / 10);
    height: calc(50em / 10);
    cursor: pointer;
}

.b-longread-popup__close path {
    transition: all .3s ease;
}

.b-longread-popup__close:hover path {
    fill: #00e5bc;
}

.b-longread-popup__header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: calc(26em / 10) 0 0 0;
}

.b-longread-popup__img {
    width: calc(192em / 10);
    height: calc(145em / 10);
    margin-right: 37px;
}

.b-longread-popup__title {
    font-family: 'CASlalom', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: calc(22em / 10);
    text-align: center;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #fff;
}

.b-longread-popup__subtitle {
    font-family: 'CASlalom', sans-serif;
    font-style: normal;
    font-weight: 900;
    font-size: calc(62em / 10);
    text-align: center;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px #00E5BC;
    text-stroke: 1px #00E5BC;
}

.b-longread-popup__timetable {
    max-width: calc(850em / 10);
    background: rgba(46, 46, 46, 0.5);
    border-radius: 10px;
    margin: 0 auto calc(23em/ 10);
}

.b-longread-popup__timetable-text {
    position: absolute;
    transform: rotate(-90deg);
    font-family: 'CASlalom', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: calc(18em / 10);
    line-height: calc(22em / 18);
    height: calc(18em / 18);
    width: calc(5em /18);
    top: calc(240em / 18);
    left: calc(-10em / 18);
    text-align: center;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #00E6BC;
}

.b-longread-popup__lists {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    margin-left: calc(40em / 10);
    padding-top: calc(10em / 10);
    padding-bottom: calc(15em / 10);
}

.b-longread-popup__list {
    list-style: none;
}

.b-longread-popup__list+.b-longread-popup__list {
    margin: 0 calc(10em / 10);
}

.b-longread-popup__list-item {
    display: flex;
    align-items: center;
    color: #fff;
}

.b-longread-popup__list-item+.b-longread-popup__list-item {
    margin-top: calc(5em / 10);
}

.b-longread-popup__list-item_date {
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-family: 'CASlalom', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: calc(15em / 10);
    margin-right: calc(13em/ 15);
    border: 1px solid #00E6BC;
    border-radius: 5px;
    padding: calc(5em / 15) calc(10em / 15);
}

.b-longread-popup__list-item_date p+p {
    margin: 0;
}

.b-longread-popup__list-item_text {
    font-family: 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: calc(12em / 10);
    line-height: calc(14em / 12);
    letter-spacing: 0.4px;
}

.b-longread-popup__list-item_text+.b-longread-popup__list-item_text {
    margin-top: calc(5em / 10);
}

.b-longread-popup__list-item_button {
    position: absolute;
    top: calc(-20em / 15);
    left: calc(55em / 15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'CASlalom', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: calc(15em / 10);
    line-height: calc(15em / 15);
    border-radius: calc(10em / 15);
    margin-left: calc(-15em/ 10);
    width: calc(202em / 15);
    height: calc(53em / 15);
    color: #fff;
    background-color: #FF65F9;
    transition: all .3s ease;
}

.b-longread-popup__list-item_button:hover {
    background-color: #00E6BC;
}

.b-longread-popup__content {
    max-width: calc(800em / 15);
    margin: 0 auto calc(15em / 15);;
    text-align: center;
    font-family: 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: calc(15em / 10);
    line-height: calc(19em / 15);
    letter-spacing: 0.4px;
    color: #fff;
}

.b-longread-popup__content p a {
    text-decoration: underline;
    color: #07E5BB;
    font-weight: 800;
}

.b-longread-popup__content p span {
    font-weight: 800;
    color: #07E5BB;
}

.b-longread-popup__content p strong {
    font-weight: 800;
    color: #FF65F9;
}

.b-longread-popup__content p+p {
    margin-top: calc(10em / 13);
}

.b-longread-popup--truck .b-longread-popup__header {
    flex-direction: column;
    margin: calc(79em / 10) auto calc(17em / 10);
}

.b-longread-popup--truck .b-longread-popup__img {
    margin-right: 0;
    margin-bottom: calc(24em / 10);
}

.b-longread-popup__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(684em / 10);
    margin: 0 auto calc(20em / 10);
}

.b-longread-popup__footer-text {
    font-family: 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: calc(12em / 10);
    line-height: calc(14em / 10);
    letter-spacing: 0.4px;
    color: #fff;
}

.b-longread-popup--truck .b-longread-popup__title {
    font-size: calc(36em / 10);
}

.b-longread-popup--truck .b-longread-popup__subtitle {
    font-size: calc(52em / 10);
}

.b-longread-popup--truck .b-longread-popup__content {
    font-size: calc(18em / 10);
    line-height: calc(26em / 18);
    padding: calc(23em / 18) calc(31em / 18) calc(23em / 18) calc(26em / 18);
}

.stretch {
    align-items: stretch;
}

.stretch .second-color {
    color: #00E6BC;
    text-align: center;
}

@media (max-width: 1440px) {
    .b-longread-popup__header {
        margin: calc(15em / 10) 0 0 calc(10em / 10);
    }
    .b-longread-popup {
        top: 0;
    }
    .b-longread__city {
        max-width: calc(430em / 10);
    }

    .b-longread-popup__lists {
        padding-bottom: calc(10em / 10);
    }

    .b-longread-popup__timetable {
        margin: 0 auto calc(10em/ 10);
    }

    .b-longread-popup__img {
        width: calc(130em  / 10);
        height: auto;
    }

    .b-longread-popup__footer {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    body {
        background-image: url("https://static.sobaka.ru/uploads/posts/151417/bg_m.jpg");
    }

    .b-longread {
        height: calc(100% - 54px);
        top: 54px;
    }

    .b-longread__city {
        max-width: calc(281em / 10);
    }

    .b-longread__city:before {
        padding: calc(354 / 281 * 100%) 0 0;
    }

    .b-longread__city--spb {
        background-image: url(https://static.sobaka.ru/uploads/posts/151417/spb_m.jpg);
        top: calc(183em / 10);
        left: calc(57em / 10);
    }

    .b-longread__city--nn {
        background-image: url(https://static.sobaka.ru/uploads/posts/151417/nn_m.jpg);
        top: calc(182em / 10);
        right: calc(50em / 10);
    }
    .b-longread__city--kzn {
        background-image: url(https://static.sobaka.ru/uploads/posts/151417/kzn_m.jpg);
        top: calc(739em / 10);
        left: calc(60em / 10);
        bottom: auto;
    }
    .b-longread__city--msk {
        background-image: url(https://static.sobaka.ru/uploads/posts/151417/msk_m.jpg);
        top: calc(739em / 10);
        right: calc(62em / 10);
        bottom: auto;
    }

    .b-longread__img {
        top: calc(26em / 10);
        left: calc(300em / 10);
        max-width: calc(212em / 10);
        max-height: calc(159em / 10);
    }

    .b-longread__icons {
        top: calc(35em / 10);
        right: calc(87em / 10);
        bottom: auto;
        left: auto;
    }

    .b-longread__icon-link+.b-longread__icon-link {
        margin-top: calc(12em / 10);
    }

    .b-longread__icon-img {
        display: block;
        width: calc(144em / 10);
    }

    .b-longread__truck-wrap {
        top: calc(600em / 10);
    }

    .b-longread__truck {
        max-width: calc(360em / 10);
        left: calc(-360em / 10);
    }

    /* popup */

    .b-longread-popup {
        left: calc(21em / 10);
        width: calc(758em / 10);
        background-image: url(https://static.sobaka.ru/uploads/posts/151417/popup_bg_m.jpg);
    }

    .b-longread-popup__close {
        position: absolute;
        top: calc(85em / 10);
    }

    .b-longread-popup__header {
        margin: calc(40em / 10) 0 calc(17em / 10) calc(83em / 10);
    }
    .b-longread-popup--truck .b-longread-popup__header {
        flex-direction: column;
        margin: calc(79em / 10) auto calc(17em / 10);
    }

    .b-longread-popup--truck .b-longread-popup__img {
        margin-right: 0;
        margin-bottom: calc(24em / 10);
    }

    .b-longread-popup__content {
        max-width: calc(684em / 17);
        margin: 0 auto calc(15em / 17);
        font-size: calc(17em / 10);
        line-height: calc(22em / 17);
    }

    .b-longread__city_overlay-text{
        font-size: calc(18em / 10);
        width: calc(250em / 18);
        height: calc(60em / 18);
    }
}

@media (max-height: 700px) {
    .b-longread__city {
        max-height: calc(440em / 10);
    }
}

@media (max-height: 610px) {
    .b-longread__city {
        max-height: calc(350em / 10);
    }
}


