@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab&family=Vollkorn&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Rochester&display=swap');

@font-face {
    font-family: 'ALSRubl';
    src: url('/fonts/ruble.ttf');
}

:root{
    --black-color: #1B1B1B;
    --main-text-color: #F4F4F4;
    --second-text-color: #D9DAFF;
    --default-width: 1240px;
    --default-inline-padding: 15px;
}
html{
    scroll-behavior: smooth;
}
*{
    box-sizing: border-box;
    font-family: 'Roboto Slab', serif;
    margin: 0;
}
body{
    padding:0;
    background-color: var(--black-color);
}

h1, h2{
    background: linear-gradient(93deg, #FFF -53.76%, #D9DAFF 59.49%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.battle-tactics_body h1, .battle-tactics_body h2, .home-page h1, .home-page h2{
    color: #F4F4F4;
    background: unset;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

h1{
    font-family: 'Vollkorn', serif;
    font-size: 60px;
}

.home-page h1{
    font-size: 46px;
}
.mg-bot-24{
    margin-bottom: 24px;
}
.roubleSign{
    font-family: 'ALSRubl';
    font-size: 24px;
    color: var(--second-text-color);
}

p,a,span, h3, span, ul, li, ol{
    color: var(--main-text-color);
    font-size: 16px;
}
h2{
    font-size: 36px;
    font-weight: 400;
}
h3{
    font-size: 24px;
    font-weight: 400;
}
/*
Элементы управления
 */

.lightButton{
    text-decoration: none;
    display: inline-flex;
    padding: 16px 24px;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background: linear-gradient(93deg, #FFF -53.76%, #D9DAFF 59.49%);
    backdrop-filter: blur(6px);
    color: var(--black-color);
    font-size: 24px;
    line-height: normal;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    cursor: pointer;
    user-select: none;
}
.battle-tactics_body .lightButton{
    background: linear-gradient(63deg, rgba(158, 34, 46, 0.30) -4.62%, #331F42 124.22%);
    color: #F4F4F4;
}
.home-page .lightButton{
    background: linear-gradient(264deg, #5E0814 -37.41%, rgba(196, 17, 42, 0.60) 150.59%);
    color: #F4F4F4;
}
.lightButton:hover{
    background: linear-gradient(93deg, #FFF 100%, #D9DAFF 159.49%);
}
.battle-tactics_body .lightButton:hover{
    background: linear-gradient(63deg, rgba(158, 34, 46, 0.30) 25%, #331F42 100%);
}
.home-page .lightButton:hover{
    background: linear-gradient(264deg, #5E0814 -12%, rgba(196, 17, 42, 0.60) 175%);
}
.secondButton{
    text-decoration: none;
    display: inline-flex;
    padding: 16px 24px;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border: 1px solid #D9DAFF;
    backdrop-filter: blur(6px);
    font-size: 24px;
    line-height: normal;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    cursor: pointer;
    user-select: none;
    background: transparent;
    color: #F4F4F4;
}
.secondButton:hover{
    box-shadow: inset 0 0 0 3px var(--second-text-color);
}

.openCabinet{
    background: linear-gradient(201deg, rgba(217, 218, 255, 0.10) -21.86%, rgba(255, 254, 254, 0.00) 67.21%);
    padding: 12px 24px;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    cursor: pointer;
}
.openCabinet:hover{
    background: linear-gradient(98deg, rgba(217, 218, 255, 0.10) 88.18%, rgba(255, 254, 254, 0.00) 101.98%);
}

/*
Конец стилей элементов управления
 */

section{
    padding: 0 var(--default-inline-padding);
}
section > div{
    max-width: var(--default-width);
    margin-inline: auto;
    width: 100%;
}
section > h2{
    text-align: center;
    margin-bottom: 48px;
}
img{
    max-width: 100%;
}
body > section:not(#heroSection){
    margin-top: 96px;
}
/*
HeroSec Styles
 */

#heroSection{
    background: url('../img/HeroBG.png');
    background-position: top right;
    background-size: cover;
    min-height: 120vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: calc(20vh + 24px);
}

.battle-tactics_body #heroSection{
    justify-content: start;
    align-items: start;
    min-height: 100vh;
}
.home-page #heroSection{
    justify-content: start;
    align-items: center;
    min-height: 100vh;
}
.battle-tactics_hero#heroSection{
    background-image: url('../img/battle_hero.webp');
    background-position: center;
}
.home-page #heroSection{
    background-image: url('../img/home/main_hero_bg.webp');
    background-position: center;
}
#heroSection > div{
    max-width: 640px;
    width: 100%;
    margin-inline: unset;
}
.battle-tactics_body #heroSection > div#course-description{
    padding-top: 200px;
}
#heroButton{
    position: absolute;
    bottom: 24px;
    right: 24px;
}
.battle-tactics_body #heroButton, .home-page #heroButton{
    right: auto;
    left: 24px;
}
#heroAuthor{
    position: absolute;
    left: 24px;
    bottom: 24px;
    background: linear-gradient(93deg, #FFF -53.76%, #D9DAFF 59.49%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.battle-tactics_body #heroAuthor{
    right: 24px;
    left: auto;
}
#courseDates{
    position: absolute;
    left: 24px;
    top: 32px;
    display: flex;
    gap: 24px;
}
#courseDates > p{
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    color: var(--second-text-color);
}
#courseDates, #menuContainer{
    max-width: unset !important;
    width: unset !important;
}
#menuContainer{
    display: flex;
    gap:24px;
    position: absolute;
    top:24px;
    right: 24px;
    justify-content: flex-end;
    align-items: center;
}

@media screen and (max-width: 1100px){

}

/*
Блок 2 с фотографиями
 */

#block2 > div{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 1em;
    grid-template-areas:
            "IM1 IM2 IM3"
            "TXT1 IM2 IM3"
            "TXT2 TXT2 IM3";
}
#block2 > div > div > p{
    line-height: 26px;
    margin-bottom: 12px;
    font-size: 16px;
}
#block2 > div > div{
    display: flex;
    flex-direction: column;
}

#image2_1{
    grid-area: IM1;
}
#image2_2{
    grid-area: IM2;
}
#image2_3{
    grid-area: IM3;
}
#text2_1{
    grid-area: TXT1;
    justify-content: flex-end;
}
#text2_2{
    grid-area: TXT2;
    justify-content: flex-start;
}

/*
Блок 3
*/

#block3 > div{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-gap: 48px;
    align-items: start;
}

#block3_txt{
    display: flex;
    flex-direction: column;
    gap: 48px;
}
#block3_txt > p{
    padding-left: 24px;
    margin:0;
    border-left: 1px solid #F4F4F4;
}

/*
Блок "Структура курса"
 */

#courseStructure{
    display: flex;
    flex-direction: column;
    gap:0;
}
#courseStructure > div{
    display: grid;
    grid-template-columns: 30px 550px auto;
    grid-column-gap: 90px;
    border-top: 1px solid #F4F4F4;
    padding: 24px 0;
}
#courseStructure > div:last-child{
    border-bottom: 1px solid #F4F4F4;
}
#courseStructure > div > span{
    font-size: 24px;
}
#courseStructure > div > img{
    display: none;
}

/*
Блок "что вы получите"
 */

#resultsContainer{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0;
}
#resultsContainer > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#resultsContainer > div{
    display: flex;
    flex-direction: column;
    gap:48px;
    padding-left: 48px;
}
#resultsContainer > div > div > h3, .targetItem > h3{
    color: var(--second-text-color);
}

/*
Блок "Кому будет полезен?"
 */
#targetSec{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0;
}

#targetSec > div{
    padding-right: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    justify-content: center;
}
.targetItem{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

/*
Блок "Тарифы"
 */

#coursesTable{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 24px;
}
.courseDescription{
    display: flex;
    flex-direction: column;
    gap:0;
    padding: 24px 0;
    border: 1px solid var(--second-text-color);
}
.courseDescription > h3{
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    text-align: center;
    color: var(--second-text-color);
    margin-bottom: 24px;
}
.courseDescription > p{
    border-bottom: 1px solid var(--second-text-color);
    padding: 25px 0;
    text-align: center;
    color: var(--second-text-color);
    font-size: 24px;

}
.courseDescription > p:first-child{
    border-top: 1px solid var(--second-text-color);
}

.courseDescription > ul{
    margin: 32px 24px;
    list-style-position: inside;
    padding-inline-start: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.courseDescription > ul > li{
    color: var(--second-text-color);
    display: grid;
    grid-template-columns: 30px auto;
    align-items: center;
    grid-gap: 12px;
}
.courseDescription > ul > li::marker{
    display: none;
}
.courseDescription > ul > li:before{
    background: url('../img/icons/plus.svg');
    width: 30px;
    height: 30px;
    background-size: cover;
    display: block;
    content: '';
}
.inactiveListItem{
    opacity: .7;
    text-decoration-line: line-through;
}

.courseDescription > div{
    width: 100%;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}
.courseDescription > div > *{
    display: block;
    text-align: center;
}

.activeCourPoint > ul{
    display: block !important;
}
.activeCourPoint > img{
    transform: rotate(180deg) !important;
}
.no-grid{
    display: block !important;
}
.grid2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.courses_list{
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.course_item{
    display: flex;
    justify-content: space-between;
    border: 1px solid #F4F4F4;
    padding: 32px;
    align-items: center;
}

.achievements-list{
    display: flex;
    flex-direction: column;
    gap: 0;
}
.achievement-item:first-child{
    border-top: 1px solid #F4F4F4;
}
.achievement-item{
    border-bottom: 1px solid #F4F4F4;
    padding-top: 36px;
    padding-bottom: 36px;
}
.cases-wrapper{
    height: fit-content !important;
}
.cases-wrapper .swiper-slide{
    aspect-ratio: 1/1;
    width: 100%;
}
.cases-wrapper .swiper-slide video{
    aspect-ratio: 1/1;
    width: 100%;
    object-fit: cover;
}

/*
Блок "Вопросы"
 */

#questionsList{
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.questionItem{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.questionItem > *{
    padding: 24px 32px;
    border: 1px solid #F4F4F4;
}

.questionItem > h3{
    display: grid;
    grid-template-columns: auto 30px;
    align-items: center;
    grid-gap: 12px;
    cursor: pointer;
}

.questionItem > h3:after{
    background: var(--icon-plus, url("../img/icons/plus.svg"));
    width: 30px;
    height: 30px;
    background-size: cover;
    display: block;
    content: '';
}

.questionItem > p{
    display: none;
    opacity: 0;
    height:0;
    padding: 0 32px;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    line-height: 1.4em;
}

.activeQI > h3{
    background: rgba(255,255,255,.1);
}
.activeQI > p{
    padding: 24px 32px;
    opacity: 1;
    height: fit-content;
    display: block;
}

#reviewsBlock{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    align-items: start;
}
.reviewItem{
    padding: 24px 24px 24px 12px;
    border: 1px solid #F4F4F4;
}

.reviewItem > p, .quote{
    display: flex;
    gap: 12px;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.reviewItem > p:before, .quote:before{
    content: '“';
    color: var(--main-text-color);
    display: block;
    font-size: 64px;
    font-family: 'Rochester', cursive;
    font-style: normal;
    font-weight: 400;
    line-height: 62px; /* 96.875% */
}

.reviewItem > span{
    display: block;
    text-align: right;
    margin-top: 24px;
}

footer{
    display: flex;
    flex-direction: column;
    gap:20px;
    margin-top: 96px;
    padding: 0 var(--default-inline-padding);
}
footer > div{
    width: 100%;
    max-width: var(--default-width);
    margin-inline: auto;
}
footer > div > div > h2{
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    margin-bottom: 12px;
}
#footerOne{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid var(--main-text-color);
    padding-top: 24px;
}
#footerOne > div:last-child{
    display: flex;
    flex-direction: column;
    align-content: flex-end;
    align-items: flex-end;
}

#footerTwo{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    border-top: 1px solid rgba(244, 244, 244, .2);
    padding: 24px 0;
}

#footerTwo > a{
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
}
#footerTwo > a:hover{
    opacity: .7;
}

#qarumLink{
    justify-self: center;
    text-align: center;
    color: #7B8090;
}

#footerTwo > a:last-child{
    justify-self: end;
    text-align: right;
}

.socialLinks > a > img{
    width: 24px;
}
#closeForm{
    position: absolute;
    right: 10px;
    top: 10px;
    width: 40px;
    opacity: 0.5;
    cursor: pointer;
}
#closeForm:hover{
    opacity: 1;
}
#formPopup{
    display: none;
    position: fixed;
    top:0;
    left:0;
    bottom:0;
    right:0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
    background-color: #1B1B1B;
    margin-top:0;
}
#formPopup > div{
    width: 100%;
    max-width: var(--default-width);
    margin-inline: auto;
    padding: 12px 8px;
}
#formPopup > div > h2{
    width: 100%;
    text-align: center;
}
#formPopup > div > div{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    margin-top: 32px;
}
#formPopup > div > div > img{
    max-height: 80vh;
}

#orderForm{
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 560px;
}
label{
    display: flex;
    flex-direction: column;
    color: #FFF;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    gap:12px;
}

label > input{
    background-color: rgba(27, 27, 27, 0);
    padding: 24px;
    color: #FFF;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border: 1px solid #F4F4F4;
}
label > input:focus{
    outline: none;
}

input[type="submit"]{
    display: flex;
    max-width: 556px;
    padding: 16px 24px;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background: linear-gradient(93deg, #FFF -53.76%, #D9DAFF 59.49%);
    color: #1B1B1B;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border:0;
}
input[type="submit"]:hover{
    background: white;
    cursor: pointer;
}

.logout-btn, .icon-btn{
    background: transparent;
    padding: .5rem .65rem;
    border: none;
    transition: .15s ease-in;
}
.logout-btn i, .icon-btn i {
    font-size: 1.5rem;
}
.logout-btn:hover, .icon-btn:hover{
    opacity: .6;
}

@media screen and (max-width: 1100px){
    .roubleSign{
        font-size: 21px;
    }
    #formPopup > div > div > img{
        display: none;
    }
    #formPopup > div > div{
        grid-template-columns: 1fr;
    }
    #formPopup > div > h2{
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        text-align: center;
        background: linear-gradient(93deg, #FFF -53.76%, #D9DAFF 59.49%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    #heroSection{
        background-position: top center;
    }
    #courseStructure > div{
        grid-template-columns: 30px auto 460px;
        gap: 60px;
    }
    .courseDescription > h3{
        font-size: 24px;
    }
    .courseDescription > p{
        font-size: 20px;
    }
}
@media screen and (max-width: 900px){
    #courseStructure > div{
        grid-template-columns: 20px auto 30px;
        gap: 18px;
        align-items: center;
        grid-template-areas:
                "NUM NAME ARROW"
                "NUM DESC DESC";
    }
    #courseStructure > div > h3{
        font-size: 16px;
        grid-area: NAME;
        cursor: pointer;
    }
    #courseStructure > div > ul{
        display: none;
        grid-area: DESC;
        list-style-position: inside;
        padding-inline-start: 0;
    }
    #courseStructure > div > li:not(:first-child){
        margin-top: 4px;
    }
    #courseStructure > div > span{
        grid-area: NUM;
        align-self: start;
    }
    #courseStructure > div > img{
        display: block;
        grid-area: ARROW;
        cursor: pointer;
        opacity: .7;
    }
    #courseStructure > div > img:hover{
        opacity: 1;
    }
    #courseDates{
        flex-direction: column;
        gap: 8px;
    }
    #courseDates > p{
        font-size: 14px;
        line-height: 18px;
    }
    .lightButton, .secondButton{
        font-size: 18px;
        padding: 18px;
    }
    #footerTwo > *{
        text-align: center !important;
        justify-self: center !important;
    }
}

@media screen and (max-width: 768px){
    #closeForm{
        width: 24px;
    }
    h1{
        font-size: 48px;
        text-align: right;
    }
    #heroAuthor{
        position: static;
        text-align: right;
        font-size: 14px;
    }
    #heroLongText{
        display: none;
    }
    .lightButton, .secondButton{
        font-size: 14px;
        padding: 15px;
    }

    #coursesTable, #reviewsBlock, #block3 > div, #block2 > div, #targetSec, #footerOne, #footerTwo{
        grid-template-columns: 1fr;
    }
    #block2 > div{
        grid-template-areas:
                "IM1"
                "TXT1"
                "TXT2"
                "IM2";
        gap: 30px;
    }
    #image2_3, #image3_1{
        display: none;
    }
    #image3_2{
        width: 100%;
    }
    #text2_2{
        margin-top: -30px;
    }
    #resultsContainer{
        display: flex;
        flex-direction: column-reverse;
    }
    #resultsContainer > div {
        padding-left: 0;
    }
    #targetSec > div{
        padding-right: 0;
    }
    #targetSec > img, #resultsContainer > img{
        margin-top: 30px;
    }

    footer > div > div > h2{
        text-align: center;
    }
    #footerOne > div:last-child{
        align-items: center;
    }
    .activeQI > p{
        padding: 15px;
    }
    .questionItem > *{
        padding: 15px;
    }
    .questionItem > h3{
        font-size: 16px;
    }
    .questionItem > p{
        font-size: 14px;
    }
}

@media screen and (max-width: 600px){
    .openCabinet{
        display: none;
    }
}