* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body {
    scroll-behavior: smooth;
}

:root {
    --color1: #f18128;
    --color2: #000;
    --color3: #fff;
    --color4: #040d1f;
    --font-family: "Comfortaa", sans-serif;
    --second-family: "Montserrat", sans-serif;
    --third-family: "Roboto", sans-serif;
}

a {
    text-decoration: none;
}
ul {
    list-style: none;
}
.container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

body {
    background: var(--color4);
}

.link {
    border-radius: 4px;
    width: 166px;
    height: 45px;
    background: var(--color1);
    font-family: var(--third-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 86%;
    text-align: justify;
    color: var(--color2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 200ms;
}

.link:hover {
    color: var(--color3);
    background: var(--color4);
}

.title {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 36px;
    text-transform: capitalize;
    color: var(--color1);    
    width: max-content;
}
.title::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color1);
    margin-top: 10px;
}

/* header start */

.header {
    position: sticky;
    top: -80px;
    z-index: 999;
}

.header__top {
    background: linear-gradient(135deg, #3800af 0%, #bf7204 97.52%, #c27500 100%, #c27500 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}
.header__top-text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    color: var(--color3);    
    width: 166px;
}

.header__nav {
    backdrop-filter: blur(15px);
    background: rgba(1, 3, 5, 0.8);    
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo__span {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    color: #fff;    
}
.header__list {
    display: flex;
    gap: 30px;
    height: 100%;
}

.header__list-link {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 14px;
    color: #fff;    
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header__list-link::after {
    content: '';
    display: block;
    height: 2px;
    width: 0%;
    background: var(--color1);
    border-radius: 10px 10px 0 0;
    position: absolute;
    bottom: 0;
    transition: 200ms;
}
.header__list-link:hover::after {
    width: 100%;
}

.header__list-link:hover {
    color: var(--color1);
}

/* header end */

/* main start */

.preview {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(7, 15, 25, 0.75);
}

.preview__img {
    position: absolute;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview__box-title {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 64px;
    color: var(--color3);    
}
.preview__box-text {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: justify;
    color: #c8c8c8;    
    max-width: 570px;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 50px;
}
.preview__box-links {
    display: flex;
    gap: 30px;
}

.films {
    padding-top: 60px;
    padding-bottom: 77px;
}

.films__list {
    margin-top: 55px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(230px, auto));
    gap: 30px;
}

.films__item:hover .films__item-img {
    transform: scale(1.2);
}

.films__item {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 55px 15px 20px 15px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(241, 129, 40, 0.35) 0%, rgba(0, 0, 0, 0.71) 51.04%, rgba(7, 15, 25, 0.8) 100%);
}
.films__item-img {
    transition: 200ms;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

.films__item-time {
    border: 1px solid #fff;
    border-radius: 9px;
    width: 100px;
    height: 24px;
    background: rgba(7, 15, 25, 0.2);
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 71%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;    
}
.films__item-title {
    margin-top: 30px;
    margin-bottom: 12px;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 22px;
    text-align: center;
    color: #fff;
}
.films__item-text {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #fff;    
}

.intro {
    background: linear-gradient(90deg, #def7ff 0%, #f4fcff 45.31%, rgba(255, 255, 255, 0) 100%);
    padding-top: 42px;
    padding-bottom: 80px;
    position: relative;
}

.intro__box-text {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    text-align: justify;
    color: #000;
    margin: 50px 0;
    max-width: 558px;
    width: 100%;    
}

.intro__video {
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
    height: 100%;
}

.intro__box-img  {
    max-width: 100%;
}

.collections {
    padding-top: 60px;
    padding-bottom: 30px;
}

.collections__box {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(270px,auto));
    grid-auto-rows: 200px;
    gap: 30px;
}

.collections__item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 6px;
    background: linear-gradient(270deg, rgba(7, 15, 25, 0.56) 0%, rgba(49, 114, 9, 0.56) 100%);
}
.collections__item-img {
    z-index: -1;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 200ms;
}

.collections__item-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 100%;
}

.collections__item-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    color: #fff;   
}

.collections__item-info::before {
    content: url(../images/boxes.svg);
    position: absolute;
    top: 7px;
    left: 7px;
    transition: 200ms;
}
.collections__item-info::after {
    content: url(../images/boxes.svg);
    position: absolute;
    top: 7px;
    right: 7px;
    transition: 200ms;
}

.collections__item:hover   .collections__item-info::before {
    transform: translate(-200%) scale(1.3);
}
.collections__item:hover   .collections__item-info::after {
    transform: translate(200%) scale(1.3);
}

.collections__item:hover .collections__item-img {
    transform: scale(1.2);
}

.series {
    padding-top: 30px;
    padding-bottom: 60px;
}

.series__box {
    margin-top: 54px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
    grid-auto-rows: 190px;
}

.series__item {
    position: relative;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.8) 0%, rgba(11, 11, 11, 0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    overflow: hidden;
    cursor: url(../images/icon.svg), pointer;
}

.series__item:hover  .series__item-img {
    transform: scale(1.2);
}

.series__item:nth-of-type(1) {
    grid-column: span 4;
    grid-row: span 2;
    padding: 0 22px;
}
.series__item:nth-of-type(2) {
    grid-column: span 2;
    grid-row: span 2;
}

.series__item-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 24px;
    color: #fff;    
}

.series__item:nth-of-type(1) .series__item-title {
    font-size: 40px;
}

.series__item-text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #fff; 
    height: 100px;
    overflow: auto;   
}

.series__item-img {
    transition: 200ms;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

/* main end */
/* Footer start */

.footer {
    background: linear-gradient(90deg, #ff8c30 0%, #9f4700 100%);
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.8);
    padding: 24px 0;
}

.footer__box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer__left {
    display: flex;
    gap: 50px;
}
.footer__right-text {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    text-align: right;
    color: #fff;    
}


/* Footer end */


/* media start */




@media (max-width:800px) {
    .footer__box {
        flex-direction: column;
        gap: 20px;
    }
    .series__item {
        grid-column: span 2;
    }
    .series__item:nth-of-type(2) {
        grid-row: span 1;
    }
    
    .preview__box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .preview__box-title {
        font-size: 34px;
        text-align: center;
    }
}

@media (max-width:576px) {
    .footer__right-text {
        font-size: 14px;
    }
    .series__item {
        grid-column: span 4;
    }
    .series__item:nth-of-type(2) {
        grid-column: span 4;
    }
    .series__item:nth-of-type(1) .series__item-title {
        font-size: 22px;
    }
    .intro__video {
        display: none;
    }
    .intro {
        background: var(--color3);
    }
    .header__container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    .header__list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}


@media(max-width:400px) {
    .preview__box-links {
        flex-direction: column;
    }
}

/* media end */