* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body {
    background:#000;
    color:white;
    font-family: "Montserrat", sans-serif;
}

/* =====================
   HERO
===================== */

.hero {
    position:relative;
    height:520px;
    overflow:hidden;
    perspective:1000px;
}

.hero img {
    width:100%;
    height:100%;
    object-fit:cover;
    transform: translateZ(-80px) scale(1.1);
    transition: transform 1s ease;
}

/*
эффект глубины при движении
*/

.hero:hover img {
    transform: translateZ(-150px) scale(1.15);
}

.hero::after {
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.75));
}

/* =====================
   OVERLAY
===================== */

.hero-overlay {
    position:absolute;
    inset:0;
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:white;
    text-align:center;
}

.hero-overlay h1 {
    max-width:1000px;
    padding:0 30px;
    font-size:60px;
    font-weight:300;
    line-height:1.1;
    text-transform:uppercase;
}

.date {
    margin-top:25px;
    font-size:22px;
    color:#ddd;
}

/* =====================
   CLOSE CROSS
===================== */

.close-icon {
    position:absolute;
    top:35px;
    left:50%;
    transform:translateX(-50%);
    width:45px;
    height:45px;
}

.close-icon span {
    position:absolute;
    width:35px;
    height:2px;
    background:white;
    top:22px;
    left:5px;
    transition:.4s;
}

.close-icon span:first-child {
    transform:rotate(45deg);
}

.close-icon span:last-child {
    transform:rotate(-45deg);
}

.close-icon:hover span:first-child {
    transform: rotate(0) translateY(-7px);
    width:22px;
}

.close-icon:hover span:last-child {
    transform: rotate(0) translateY(7px);
    width:22px;
}

/* =====================
   BACK ARROW
===================== */

.back-arrow {
    position:absolute;
    top:38px;
    left:45px;
    width:35px;
    height:35px;
}

.back-arrow span {
    position:absolute;
    width:18px;
    height:18px;
    border-left:2px solid white;
    border-bottom:2px solid white;
    transform:rotate(45deg);
    transition:.4s;
}

.back-arrow:hover span {
    transform: rotate(45deg) translate(-8px,8px);
}

/* =====================
   BODY
===================== */

.article-body {
    max-width:900px;
    margin:90px auto;
    padding:0 30px;
    color:#d7d7d7;
    font-size:21px;
    line-height:2;
}

.article-body p {
    margin-bottom:40px;
}

/* =====================
   TABLET
===================== */

@media (max-width:900px) {
    .hero {
        height:420px;
    }

    .hero-overlay h1 {
        font-size:42px;
        max-width:700px;
    }

    .date {
        font-size:18px;
        margin-top:20px;
    }

    .close-icon {
        top:25px;
    }

    .back-arrow {
        top:28px;
        left:25px;
    }

    .article-body {
        margin:60px auto;
        font-size:19px;
        line-height:1.8;
        padding:0 25px;
    }
}

/* =====================
   MOBILE
===================== */

@media (max-width:600px) {
    .hero {
        height:330px;
    }

    .hero img {
        transform: translateZ(-40px) scale(1.1);
    }

    .hero-overlay h1 {
        font-size:30px;
        line-height:1.2;
        max-width:90%;
        padding:0 10px;
    }

    .date {
        font-size:16px;
        margin-top:15px;
    }

    /* крестик */

    .close-icon {
        top:20px;
        width:38px;
        height:38px;
    }

    .close-icon span {
        width:30px;
    }

    /* стрелка */

    .back-arrow {
        top:23px;
        left:20px;
        width:30px;
        height:30px;
    }

    /* статья */

    .article-body {
        margin:45px auto;
        padding:0 20px;
        font-size:17px;
        line-height:1.75;
    }

    .article-body p {
        margin-bottom:30px;
    }
}