/* Fonts */
@font-face {
    font-family: 'YS Text';
    src: url('../fonts/YSText-Light.woff2') format('woff2'),
    url('../fonts/YSText-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YS Text';
    src: url('../fonts/YSText-LightItalic.woff2') format('woff2'),
    url('../fonts/YSText-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'YS Text';
    src: url('../fonts/YSText-Regular.woff2') format('woff2'),
    url('../fonts/YSText-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YS Text';
    src: url('../fonts/YSText-RegularItalic.woff2') format('woff2'),
    url('../fonts/YSText-RegularItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'YS Text';
    src: url('../fonts/YSText-Medium.woff2') format('woff2'),
    url('../fonts/YSText-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YS Text';
    src: url('../fonts/YSText-MediumItalic.woff2') format('woff2'),
    url('../fonts/YSText-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'YS Text';
    src: url('../fonts/YSText-Bold.woff2') format('woff2'),
    url('../fonts/YSText-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YS Text';
    src: url('../fonts/YSText-BoldItalic.woff2') format('woff2'),
    url('../fonts/YSText-BoldItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Base */
body {
    padding: 54px 0 0;
    color: #000;
    background: #efdd00;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Root */
.b-longread-root {
    font-weight: 400;
    font-size: 10px;
    line-height: 1;
    color: #000;
    background: #efdd00;
    overflow: hidden;
}

.b-longread-root *,
.b-longread-root *:before,
.b-longread-root *:after {
    max-width: none;
    margin: 0;
    padding: 0;
    font: inherit;
    box-sizing: border-box;
}

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

/* Logos */
.b-longread-logos__inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.b-longread-logos__logo + .b-longread-logos__logo {
    margin-left: 10em;
}

.b-longread-logos__logo-img,
.b-longread-logos__logo-img {
    display: block;
    height: auto;
    margin: 0 auto;
}

.b-longread-logos__logo-mobile {
    display: none;
}

@media (max-width: 640px) {
    .b-longread-logos__logo {
        display: none;
    }

    .b-longread-logos__logo-mobile {
        display: block;
    }

    .b-longread-logos__logo + .b-longread-logos__logo {
        margin: 0 auto;
    }
}

/* Head */
.b-longread-head {
    padding: 3em;
    min-height: 100vh;
}

.b-longread-head__logos {
    margin: 0 0 9.5em;
}

.b-longread-head__titles {
    position: relative;
    margin: 0 30em 5em;
    text-align: left;
    color: #000;
}

.b-longread-head__title {
    font: normal 700 4.3em/1.1 'YS Text', Helvetica, Arial, sans-serif;
    text-transform: uppercase;
}

.b-longread-head__subtitle {
    font: normal 700 4.3em/1.1 'YS Text', Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    opacity: 0;
    animation: showBlock 1s linear 5s;
    animation-fill-mode: forwards;
}

.b-longread-head__text {
    max-width: 700px;
    margin: 0 auto 2em;
    opacity: 0;
    animation: showBlock 1s linear 5.5s;
    animation-fill-mode: forwards;
}

.b-longread-head__text a {
    text-decoration: underline;
}

.b-longread-head__text a:hover {
    text-decoration: none;
}

.b-longread-head__text p {
    font: normal 400 1.8em/1.4 'YS Text', Helvetica, Arial, sans-serif;
}

.b-longread-head__text p + p {
    margin-top: calc(30 / 18 * 1em);
}

@media (max-width: 640px) {
    .b-longread-head__titles {
        margin: 0 0 5em;
    }
    .b-longread-head__title {
        opacity: 0;
        animation: showBlock 1s linear 3.5s;
        animation-fill-mode: forwards;
    }

    .b-longread-head__subtitle {
        font: normal 700 2.9em/1 'YS Text', Helvetica, Arial, sans-serif;
        animation: showBlock 1s linear 4.5s;
        animation-fill-mode: forwards;
    }

    .b-longread-head__text {
        animation: showBlock 1s linear 5s;
        animation-fill-mode: forwards;
    }

    .b-longread-head__text p{
        font: normal 400 1.5em/1.4 'YS Text', Helvetica, Arial, sans-serif;
    }
}

/* Animation food */
.b-longread-foods {
    position: relative;
}

.b-longread-food {
    position: absolute;
    opacity: 0;
}

.b-longread-food-1 {
    animation: food 2s linear 2.5s;
}

.b-longread-food-2 {
    animation: food 2s linear 2s;
}

.b-longread-food-3 {
    animation: food 2s linear 1.5s;
}

.b-longread-food-4 {
    animation: food 2s linear 1s;
}


.b-longread-food__img {
    position: absolute;
}

.b-longread-hashtag {
    position: absolute;
    opacity: 0;
}

.b-longread-hashtag img {
    display: block;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .b-longread-food {
        display: none;
    }

    .b-longread-hashtag {
        animation: hachtag 3s linear 1s;
    }
}

@keyframes food {
    0% {
        opacity: 1;
        left: -70%;
        top: 0;
    }
    10% {

        left: -19%;
        top: 100px;
    }
    20% {
        left: -3%;
        top: 0;
    }
    30% {
        left: 13%;
        top: 100px;
    }
    40% {
        left: 29%;
        top: 0;
    }
    50% {
        left: 45%;
        top: 100px;
    }
    60% {
        left: 61%;
        top: 0;
    }
    70% {
        left: 77%;
        top: 100px;
    }
    80% {
        left: 93%;
        top: 0;
    }
    90% {
        opacity: 1;
        left: 109%;
        top: 100px;
    }
    100% {
        left: 125%;
        top: 0;
        opacity: 0;
    }
}

@keyframes hachtag {
    0% {
        opacity: 1;
        left: -100%;
    }
    35% {
        opacity: 1;
        left: 20%;
    }
    55% {
        opacity: 1;
        left: 20%;
    }
    99% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        left: 200%;
    }
}
/* Body */
.b-longread-body {
    line-height: 1;
    opacity: 0;
    animation: showBlock 1s linear 6s;
    animation-fill-mode: forwards;
}

/* Comments */
.b-longread-comments {
    padding: 5em;
}

.b-longread-comments__inner {
    max-width: 680px;
    margin: 0 auto;
}

.b-longread-comments__title {
    margin-bottom: 3em;
    font: normal 500 2.4em/1 'YS Text', Helvetica, Arial, sans-serif;
    text-align: center;
    text-transform: uppercase;
}

.b-longread-comment {
    display: flex;
    margin-bottom: 8em;
}

.b-longread-comment-img-m {
    display: none;
}

.b-longread-comment-one img {
    margin:-5em 0 0 -4em;
}

.b-longread-comment-two .b-longread-comment__text {
    padding-left: .5em;
}

.b-longread-comment-two img {
    margin-top: -11em;
}

.b-longread-comment-three img {
    margin: -7em 0 0 -3.5em;
}

.b-longread-comment__text {
    display: flex;
    flex-direction: column;
    padding-left: 2.8em;
}

.b-longread-comment__name {
    font: normal 700 2em/1 'YS Text', Helvetica, Arial, sans-serif;
    position: relative;
    margin-bottom: .3em;
}

.b-longread-comment__name:before {
    content: '';
    position: absolute;
    display: block;
    height: .6em;
    width: 8em;
    bottom: -.5em;
}

.b-longread-comment-one .b-longread-comment__name:before {
    background-image: url(https://static.sobaka.ru/uploads/longread/121681/line1.png);
}

.b-longread-comment-two .b-longread-comment__name:before {
    background-image: url(https://static.sobaka.ru/uploads/longread/121681/line2.png);
}

.b-longread-comment-three .b-longread-comment__name:before {
    background-image: url(https://static.sobaka.ru/uploads/longread/121681/line3.png);
}

.b-longread-comment__proff {
    font: normal 700 2em/1 'YS Text', Helvetica, Arial, sans-serif;
}

.b-longread-comment__text p {
    font: normal 400 1.8em/1.4 'YS Text', Helvetica, Arial, sans-serif;
    margin-top: calc(30 / 18 * 1em);
}

.b-longread-comment__text strong{
    font: normal 700 1em/1.4 'YS Text', Helvetica, Arial, sans-serif;
}

@media (max-width: 640px) {
    .b-longread-body {
        animation: showBlock 1s linear 5s;
        animation-fill-mode: forwards;
    }

    .b-longread-comments {
        padding: 3em;
    }

    .b-longread-comment__img-wrap {
        margin: 0 0 3em;
    }

    .b-longread-comments__title {
        font: normal 700 2em/1.4 'YS Text', Helvetica, Arial, sans-serif;
        text-align: left;
    }

    .b-longread-comment {
        flex-direction: column;
    }

    .b-longread-comment-img {
        display: none;
        margin: 0 !important;
    }

    .b-longread-comment-img-m {
        display: block;
        max-width: 100%;
        height: auto;
    }

    .b-longread-comment__name {
        font: normal 700 1.6em/1 'YS Text', Helvetica, Arial, sans-serif;
    }

    .b-longread-comment__proff {
        font: normal 700 1.6em/1 'YS Text', Helvetica, Arial, sans-serif;
    }

    .b-longread-comment__text {
        padding: 0;
    }
}

/* Footer */
.b-longread-footer {
    position: relative;
    z-index: 2;
    background: #fff;
    opacity: 0;
    animation: showBlock 1s linear 6s;
    animation-fill-mode: forwards;
}

.b-longread-footer__wrap {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.b-longread-footer__text {
    font: normal 700 1.8em/1 'YS Text', Helvetica, Arial, sans-serif;
    text-transform: uppercase;
}

.b-lonhread-footer__img-wrap {
    position: relative;
    width: 20em;
    height: 10em;
    margin: 5em;
}

.b-longread-foot__img {
    position: absolute;
    display: block;
    max-width: 100%;
    height: auto;
    opacity: 0;
    animation: footer 4s ease-in-out infinite;
    animation-fill-mode: forwards;
}

@media (max-width: 640px) {
    .b-longread-footer {
        animation: showBlock 1s linear 5s;
        animation-fill-mode: forwards;
    }

    .b-longread-footer__wrap {
        flex-direction: column;
        padding: 2em;
    }

    .b-longread-footer__text {
        display: none;
    }

    .b-longread-footer__text-m {
        display: block;
        text-align: center;
        font: normal 700 2em/1 'YS Text', Helvetica, Arial, sans-serif;
    }
}

@keyframes footer {
    0% {
        opacity: 0;
        left: -100%;
    }
    30%{
        opacity: 1;
        left: 0;
    }
    70%{
        opacity: 1;
        left: 0;
    }
    100% {
        opacity: 0;
        left: 100%;
    }
}

/* Scroll */
.b-longread-scroll {
    position: fixed;
    z-index: 1;
    right: -10em;
    bottom: -10em;
    animation: spin 15s linear infinite;
    -webkit-animation: spin 15s linear infinite;
}

.b-longread-scroll__wrap {
    opacity: 0;
    animation: showBlock 1s linear 12s;
    animation-fill-mode: forwards;
}

@media (max-width: 640px) {
    .b-longread-scroll {
        display: none;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@-webkit-keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes showBlock {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
