/* Fonts */
@import url('https://fonts.googleapis.com/css?family=Noto+Serif:400,400i,700,700i&subset=cyrillic');

/* Base */
body {
    background: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p > a {
    text-decoration: underline;
}

p > a:hover {
    text-decoration: none;
}

/* Sections */
.b-post-section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.b-post-section--color-1 {
    color: #fbe3e9;
    background: #0f0416;
}

.b-post-section--color-2 {
    color: #fbe3e9;
    background: #25142a;
}

/* Intro */
.b-post-intro {
    margin: 0 0 230px;
}

.b-post-intro-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.b-post-intro-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-width: 100%;
    width: 1000px;
    margin: 0 auto;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-animation-name: fadeInUp;
    animation-name: fadeInUp;
    -webkit-animation-duration: 1.6s;
    animation-duration: 1.6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.b-post-intro-content__img {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    display: block;
    max-width: 100%;
    height: auto;
}

.b-post-intro-content__txt {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    position: relative;
    top: 90px;
    left: -140px;
    max-width: 100%;
    width: 675px;
    font-style: italic;
    font-size: 24px;
    line-height: 44px;
    font-family: 'Noto Serif', serif;
}

@media (max-width: 1000px) {
    .b-post-intro {
        margin: 0 0 50px;
    }

    .b-post-intro-content {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 0 10px;
    }

    .b-post-intro-content__img {
        margin: 0 auto 30px;
    }

    .b-post-intro-content__txt {
        top: 0;
        left: 0;
        font-size: 20px;
        line-height: 40px;
    }
}

/* Video */
.b-post-video {
    position: relative;
    max-width: 100%;
    width: 1000px;
    height: auto;
    margin: -105px auto 170px;
    background: url(https://static.sobaka.ru/uploads/longread/69253/video-preview.jpg) no-repeat 50% 50%;
    background-size: cover;
    border: 1px solid #c592c1;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
}

.b-post-video:before {
    content: '';
    display: block;
    width: 100%;
    padding: calc(550 / 1000 * 100%) 0 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.b-post-video__iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

.b-post-video__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 142px;
    height: 142px;
    background: rgba(0, 0, 0, 0.17);
    outline: none;
    border: 1px solid #c592c1;
    border-radius: 50%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
}

.b-post-video__play-btn:hover,
.b-post-video__play-btn:focus {
    background: rgba(0, 0, 0, 0.40);
}

.b-post-video__play-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    margin: 0 0 0 6px;
    border-style: solid;
    border-width: 22px 0 22px 44px;
    border-color: transparent transparent transparent #c592c1;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

@media (max-width: 640px) {
    .b-post-video {
        margin: 0 auto 50px;
    }
}

/* Cards */
.b-post-card {
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.b-post-card__title-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.b-post-card__title-txt {
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

.b-post-card__txt {
    font-style: italic;
    font-size: 22px;
    line-height: 32px;
    font-family: 'Noto Serif', serif;
}

.b-post-card__txt p {
    margin: 0;
    font: inherit;
}

.b-post-card__txt p + p {
    margin-top: 10px;
}

.b-post-card__img {
    display: block;
    max-width: 100%;
    height: auto;
}

@media (max-width: 640px) {
    .b-post-card {
        margin: 0 auto 50px;
        padding: 0 10px;
    }

    .b-post-card__img {
        margin: 0 auto 15px;
    }

    .b-post-card__txt {
        font-size: 18px;
        line-height: 28px;
    }
}

/* Card 1 */
@media (min-width: 1200px) {
    .b-post-card--1 {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 1000px;
        margin: 0 auto 215px;
    }

    .b-post-card--1 .b-post-card__title {
        position: absolute;
        top: -10px;
        left: 10px;
    }

    .b-post-card--1 .b-post-card__txt {
        position: absolute;
        top: 190px;
        left: 0;
        max-width: 390px;
    }

    .b-post-card--1 .b-post-card__img {
        margin: 0 -100px 0 auto;
    }
}

/* Card 2 */
@media (min-width: 1200px) {
    .b-post-card--2 {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 1000px;
        margin: 0 auto 120px;
    }

    .b-post-card--2 .b-post-card__title {
        position: absolute;
        top: 160px;
        left: -20px;
    }

    .b-post-card--2 .b-post-card__img {
        max-width: 740px;
        margin: 0 -70px 110px auto;
    }

    .b-post-card--2 .b-post-card__txt {
        max-width: 845px;
        margin: 0 auto;
    }
}

/* Card 3 */
@media (min-width: 1200px) {
    .b-post-card--3 {
        margin: 0 0 110px;
    }

    .b-post-card--3 .b-post-card__img {
        margin: 0 auto 60px;
        z-index: 1;
    }

    .b-post-card--3 .b-post-card__txt {
        max-width: 840px;
        margin: 0 auto;
    }
}

/* Banner */
.b-post-banner {
    margin: 60px 0;
}

.b-post-banner__img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .b-post-banner {
        margin: 90px 0 130px;
    }
}

/* Related */
.b-post-related__title {
    max-width: 180px;
    margin: -15px auto 30px;
}

.b-post-related__title-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.b-post-related__title-txt {
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

.b-post-related__posts {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.b-post-related__post {
    display: block;
    width: 100%;
    max-width: 235px;
    margin: 0 0 30px;
}

.b-post-related__post:focus {
    outline: none;
}

.b-post-related__post-img-holder {
    position: relative;
    max-width: 100%;
    width: 220px;
    height: auto;
    margin: 0 auto 30px;
}

.b-post-related__post-img-holder:before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 100%; /* calc(220 / 220 * 100%) */
}

.b-post-related__post-img-holder:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-transform: rotate(-5deg);
    transform: rotate(-5deg);
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
}

.b-post-related__post-img-holder--color-1:after {
    background: #816bee;
}

.b-post-related__post-img-holder--color-2:after {
    background: #efe359;
}

.b-post-related__post-img-holder--color-3:after {
    background: #be74e9;
}

.b-post-related__post:hover .b-post-related__post-img-holder:after,
.b-post-related__post:focus .b-post-related__post-img-holder:after {
    -webkit-transform: rotate(5deg);
    transform: rotate(5deg);
}

.b-post-related__post-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    z-index: 1;
}

.b-post-related__post-title {
    margin: 0 0 15px;
    font-style: italic;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    font-family: 'Noto Serif', serif;
    text-align: center;
}

.b-post-related__post-txt {
    font-style: italic;
    font-size: 16px;
    line-height: 1;
    font-family: 'Noto Serif', serif;
    text-align: center;
    color: #e0bfe3;
}

@media (min-width: 1060px) {
    .b-post-related {
        margin: 0 0 260px;
    }

    .b-post-related__title {
        max-width: none;
        margin: -35px 0 80px;
    }

    .b-post-related__posts {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        width: 880px;
        margin: 0 auto;
    }
}

/* Animations */
@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }

    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }

    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}