@import "fonts.css";

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "Comfortaa";
    font-weight: 400;
}

:root {
    --font-family: "Comfortaa";
    --second-family: "Montserrat";
    --third-family: "Roboto";
    --mainColor: #f18128;
    --textColor: #fff;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}
body {
    background: #040d1f;
}
.title {
    font-size: 36px;
    text-transform: capitalize;
    color: var(--mainColor);
    width: max-content;
}
.title::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: var(--mainColor);
    margin-top: 10px;
}

.btn {
    padding: 17px 46px;
    border-radius: 4px;
    background: var(--mainColor);
    font-family: var(--third-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 86%;
    text-align: justify;
    color: #000;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    display: inline-block;
}

.btn:hover span {
    position: relative;
    z-index: 3;
    color: var(--textColor);
}

.btn span {
    transition: 0.3s ease;
    color: #000;
}

.btn::after {
    content: "";
    display: block;
    width: 0;
    height: 100%;
    background: #040d1f;
    transition: 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 4px;
}

.btn:hover::after {
    width: 100%;
}

.burger-menu {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    display: none;
    justify-content: center;
}
.line {
    width: 100%;
    height: 2px;
    background: var(--textColor);
}

/*                                                                                        */

.subnav {
    background: linear-gradient(135deg, #3800af 0%, #bf7204 97.52%, #c27500 100%, #c27500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    gap: 24px;
}
.subnav__text {
    max-width: 166px;
    font-size: 16px;
    color: #fff;
}

.nav {
    backdrop-filter: blur(15px);
    background: rgba(1, 3, 5, 0.8);
    /* red  green  blue  alfa(прозрачность) */
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo span {
    margin-left: 5px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}
.nav__list {
    display: flex;
    gap: 18px;
    align-items: center;
}
.nav__list_link {
    font-family: var(--second-family);
    font-size: 14px;
    color: #fff;
    padding: 40px 6px;
    display: inline-block;
    transition: 0.3s ease;
    position: relative;
}
.nav__list_link::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 23px 10px 0 0;
    background: var(--mainColor);
    position: absolute;
    bottom: 0;
    left: 0;
    transform: scale(0);
    transition: 0.3s ease;
}
.nav__list_link:hover::after {
    transform: scale(1);
}
.nav__list_link:hover {
    color: var(--mainColor);
}
.hero {
    position: relative;
    height: 840px;
}
.hero_bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero__content::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: rgba(7, 15, 25, 0.75);
}
.hero__title {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 64px;
    color: #fff;
}
.hero__text {
    max-width: 570px;
    margin-top: 30px;
    margin-bottom: 50px;
    font-family: var(--second-family);
    font-size: 16px;
    line-height: 150%;
    text-align: justify;
    color: #c8c8c8;
}
.hero_btns {
    display: flex;
    gap: 30px;
}

.films {
    padding: 61px 15px 77px;
}

.films__cards {
    margin-top: 54px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 368px;
    gap: 30px;
}
.films__card {
    position: relative;
    max-width: 255px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    height: 100%;
    padding: 15px;
}
.films__card::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    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%);
    transition: 0.3s ease;
}
.films__card:hover:after{
    opacity: 0.7;
}

.films__card:hover .play{
    transform: rotateX(360deg) scale(1.15);
}

.films__card_img {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: -1;
}
.play{
    transition: 0.3s ease;
}
.time {
    font-family: var(--second-family);
    font-size: 22px;
    color: var(--textColor);
    border: 1px solid #fff;
    border-radius: 9px;
    background: rgba(7, 15, 25, 0.2);
    padding: 7px 28px;
    display: inline-block;
    margin-top: 12px;
}
.films__card_title {
    font-family: var(--second-family);
    font-size: 22px;
    color: var(--textColor);
    margin-top: 31px;
    margin-bottom: 12px;
}
.films__card_text {
    font-family: var(--third-family);
    font-size: 14px;
    line-height: 150%;
    color: var(--textColor);
}

.widow {
    position: relative;
    height: 500px;
}

.widow::after{
    content: '';
    display: block;
    background: linear-gradient(90deg, #def7ff 0%, #f4fcff 45.31%, rgba(255, 255, 255, 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.widow__video {
    position: absolute;
    top: 0;
    right: 0;
    object-fit: cover;
    z-index: -1;
    width: 100%;
    height: 100%;
}
.widow__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}

.widow__text {
    font-family: var(--third-family);
    font-size: 18px;
    line-height: 150%;
    text-align: justify;
    color: #000;
    max-width: 558px;
    margin-top: 51px;
    margin-bottom: 55px;
}

.collection {
    padding: 61px 15px;
}
.collection__cards {
    margin-top: 51px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 194px;
    gap: 30px;
}
.collection__card {
    position: relative;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

.collection__card::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, rgba(7, 15, 25, 0.56) 0%, rgba(49, 114, 9, 0.56) 100%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 6px;

}

.collection__bg {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: -1;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.collection__card_title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    color: var(--textColor);
}
.squares {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.square{
    display: flex;
    justify-content: space-between;
}


.square::after,
.square::before {
    content: '';
    display: block;
    border-radius: 2px;
    width: 21px;
    height: 24px;
    background: #040d1f;
    transition: 0.3s ease;
}

.collection__card:hover::after{
    opacity: 0;
}

.collection__card:hover .play{
    transform: rotateX(360deg) scale(1.15);
}

.collection__card:hover .square::after{
    transform: translateY(300px);
}

.collection__card:hover .square::before{
    transform: translateY(-300px);
}

.series {
    margin-top: 63px;
    margin-bottom: 63px;
}
.series__cards {
    margin-top: 54px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    grid-auto-rows: minmax(194px, max-content);
}
.series__card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;   
    flex-direction: column; 
}

.series__card:nth-child(1){
    grid-column: span 4;
    padding: 96px 22px;
}
.series__card:nth-child(2){
    grid-column: 1 / 3;
    grid-row: 2 / 4 ;
}

.series__card:not(:first-child){
    gap: 15px;
}

.series__card:not(:first-child) .series__card_title{
    font-size: 24px;
}

.series__card::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.8) 0%, rgba(11, 11, 11, 0.6) 100%);
    border-radius: 6px;
    transition: 0.3s ease;
}
.series__card_bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    z-index: -1;

}
.series__card_title {
    font-weight: 700;
    font-size: 40px;
    color: var(--textColor);
}
.series__card_text {
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--textColor);
    margin-top: 27px;
    margin-bottom: 30px;
}

.series__card:hover::after{
    opacity: 0;
}

.series__card:hover .play{
    transform: rotateX(360deg) scale(1.15);
}

.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__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer__icons {
    display: flex;
    align-items: center;
    gap: 50px;
}
.footer__text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.01em;
    text-align: right;
    color: var(--textColor);
}