/* reset */
html{
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::after,
*::before{
    box-sizing: inherit;
}

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
}

html {
    overflow-x: hidden;
}

body {
    min-width: 360px;
    overflow-x: hidden;
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { 
    display:block;
}

nav ul {
    list-style:none;
}

blockquote, q {
    quotes:none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content:'';
    content:none;
}

a {
    margin:0;
    padding:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
    text-decoration: none;
}

ins {
    background-color:#ff9;
    color:#000;
    text-decoration:none;
}

mark {
    background-color:#ff9;
    color:#000; 
    font-style:italic;
    font-weight:bold;
}

del {
    text-decoration: line-through;
}

abbr[title], dfn[title] {
    border-bottom:1px dotted;
    cursor:help;
}

table {
    border-collapse:collapse;
    border-spacing:0;
}

hr {
    display:block;
    height:1px;
    border:0;   
    border-top:1px solid #cccccc;
    margin:1em 0;
    padding:0;
}

input, select {
    vertical-align:middle;
}

/* constants */
:root{
    --color-bg: #441718;
    --color-header: #400746;
    --color-text: #ECECEC;
    --color-text-button: #0B0121;
    --color-title: #FAFAFA;
    --color-primary: #ffad1e;
    /* --color-secondary: #EEE712; */
    --color-accent: #E7DA11;
    --color-decor: #0B0121;
    --color-footer: #400746;
    --font-size: 16px;
    --font-size-button: 16px;
}

/* base */
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
    line-height: 130%;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    font-family: 'Source Sans 3', sans-serif;
    font-size: var(--font-size);
    font-weight: 400;
    background-image: url('/image/background.jpg');
    background-size:contain;
    background-repeat: no-repeat;
    background-position: center top;
}

.wrap{
    max-width: 1090px;
    padding: 0 15px;
    margin: 0 auto;
}

main{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex:1;
}

h1{
    /* font-family: 'Montserrat Alternates', sans-serif; */
    font-weight: 700;
    font-size: 50px;
    line-height: 130%;
    color: var(--color-title);
    text-align: center;
    margin: 10px 0 5px;
}

h2{
    /* font-family: 'Montserrat Alternates', sans-serif; */
    font-weight: 600;
    font-size: 40px;
    line-height: 130%;
    color: var(--color-title);
    margin: 5px 0 20px;
    text-align: center;
}

h3{
    /* font-family: 'Montserrat Alternates', sans-serif; */
    font-weight: 400;
    font-size: 32px;
    line-height: 140%;
    color: var(--color-title);
    text-align: center;
    margin: 30px 0;
}

.align-left{
    text-align: left;
}

.button{
    padding: 12px 26px;
    font-weight: 400;
    font-size: var(--font-size-button);
    line-height: 130%;
    border-radius: 3px;
    color: var(--color-text-button);
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease-in-out;
}

.button_colored{
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.button_colored:hover{
    color: var(--color-text);
    background: rgba(231, 218, 17, 0.19);
}

.button_colored_secondary{
    color: var(--color-text);
    background-color: transparent;
    border: 2px solid var(--color-primary);
}

.button_colored_secondary:hover{
    color: var(--color-text);
    background: rgba(231, 218, 17, 0.19);
}

a:hover, 
button:hover{
    transition: all .3s ease-in-out;
}

/* header */
.header{
    position: relative;
    background-color: var(--color-header);
}

.header__wrap{
    width: 100%;
    padding: 17px 17px;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 25px;
}

.logo{
    padding: 5px 12px;
    font-weight: 700;
    font-size: 26px;
    line-height: 36px;
    text-transform: uppercase;
    color: var(--color-text-button);
    background-color: white;
    /* font-family: 'Montserrat Alternates', sans-serif; */
}

nav{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__bg{
    display: none;
}

.header__wrap-button{
    display: flex;
    align-items: center;
    gap: 5px;
}

/* entry */
.entry{
    padding-top: 30px;
}

.entry__wrap{    
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    align-items: center;    
}

.entry picture{
    display: block;
    max-width: 800px;
    width: 100%;
    height: auto;    
    margin: 0 auto 0 auto;
}

.entry picture img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

/* menu */
.nav-list{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px; 
}

.nav-list .text__decor-primary{
    display: none;
}

.nav-link{
    font-size: var(--font-size);
    line-height: 130%;
    font-weight: 400;
    color: var(--color-text);
    transition: all .3s ease-in-out;
}

a.nav-link:hover{
    color: var(--color-primary);
}

.nav-btn{
    display: none;    
}

article{
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 1090px;
    padding: 0 15px 20px 15px;
    margin: 0 auto;
}

.article__up{
    position: fixed;
    z-index: 50;
    width: 45px;
    height: 45px;
    right: 100px;
    top: 80%;
}

.article__up.scroll-item.scroll-no-hide{
    transform: scale(.5);
    opacity: 0;
}

.article__up.scroll-item.animation-class{    
    transition: all 1.8s ease;
    transform: scale(1);
    opacity: 1;
}

article ul,
article ol{
    list-style-type: none;
    margin-left: 30px;
}

article ul{
    max-width: 400px;
    margin: 0 auto 20px;
}

article ul li{
    position: relative;
    margin-bottom: 15px;
    line-height: 25px;
}

article ul li:last-child{
    margin-bottom: 0;
}

article ul li::before{
    position: absolute;
    content: '★';
    color: var(--color-primary);
    top: 50%;
    transform: translateY(-50%);
    left: -30px;
}

article ol{
    max-width: 400px;
    margin: 0 auto;
    counter-reset: num;
}

article ol li{
    position: relative;
    margin-left: 40px;
    margin-bottom: 15px;
    line-height: 25px;
}

article ol li:last-child{
    margin-bottom: 0;
}

article ol li::before{
    position: absolute;
    content: counter(num)'.'; 
    counter-increment: num;
    /* font-family: 'Montserrat Alternates', sans-serif; */
    font-weight: 400;
    font-size: 32px;
    line-height: 140%;
    color: var(--color-primary);
    top: 50%;
    transform: translateY(-50%);
    left: -40px;
}

p{
    margin-bottom: 20px;
    line-height: 34px;
}

p span{
    color: var(--color-accent);
}

/* flex-module */
.flex-module{
    display: flex;
    align-items: stretch;
    gap: 35px;
}

.flex-module__item{
    position: relative;
    flex: 1 1 0;
    /* width: 0; */
    padding: 15px;
    border-radius: 3px;
    background-color: var(--color-decor);
    display: flex;
    flex-direction: column;
    align-items: start;
    row-gap: 10px;
}

.flex-module__item picture{
    width: 100%;
    height: 200px;
    margin: 0 auto;
}

.flex-module__item picture img{
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 3px;
}

.flex-module__item h3{
    margin-bottom: 0;
}

.flex-module__item p{
    margin-top: 0;
    margin-bottom: 0;
}

.flex-module__item .button{
    margin-top: auto;
}


/*flex-box */
.flex-box{
    position: relative;
    display: flex;
    align-items: start;
    gap: 30px;
    max-width: 1090px;
    padding: 35px 15px;
    margin: 0 auto;
}

.flex-box::before{
    position: absolute;
    content: '';
    width: 100vw;
    height: auto;
    left: 50%;
    right: 50%;
    top: -5%;
    bottom: -5%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: var(--color-decor);
}

.flex-box__item{
    position: relative;
}

.flex-box__item h3{
    text-align: left;
}

.flex-box picture{
    display: block;
    min-width: 365px;
    width: 100%;
    height: 340px;
    margin: 0 auto;
}

.flex-box picture img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

/* article img*/
article picture{
    display: block;
    position: relative;
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

article picture img{
    display: block;
    max-width: 100%;
    /* height: 100%;
    object-fit: cover; */
    border-radius: 25px;
    margin: 30px auto;
}


/* table */
.table{
    width: 100%;
    margin: 0 auto;
    font-size: var(--font-size);
}

.table tr{
    background-color: transparent;
    border-top: 1px solid var(--color-text);
    border-bottom: 1px solid var(--color-text);
}

.table td{
    padding: 22px;
    text-align: center;
    box-sizing: border-box;
    border-left: 1px solid var(--color-text);
    border-right: 1px solid var(--color-text);
}

.table tr td:first-child{
    border-left: none;
}

.table tr td:last-child{
    border-right: none;
}

/* footer */
.footer{
    position: relative;
    background-color: var(--color-footer);
    color: var(--color-text);
    margin-top: auto;
}

.footer__info{
    padding-top: 30px;
    padding-bottom: 30px;  
    text-align: center;
}

.footer__info p{
    margin: 0;
}

@media (max-width: 1300px){
    .article__up{
        right: 15px;
    }
}

@media (max-width: 1100px){
    .header__wrap{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        row-gap: 30px;
    }

    .nav{
        width: 100%;
        justify-content: space-between;
        gap: 30px;
    }

    article picture{
        max-width: 100%;
    }

}

@media (max-width: 800px){
    .nav{
        flex-direction: column;
        align-items: center;
    }

    /* блок в контейнере на всю ширину экрана */
    .flex-module{
        position: relative;
        flex-direction: column;
        width: 100%;
    } 

    .flex-module__item{
        padding: 8px;
        width: 100%;
    }

    .flex-box{
        padding: 25px 0px;
        flex-direction: column;
    }

    .flex-box picture{
        min-width: 100%;
        height: 140px;
    }

    .flex-box.reverse{
        flex-direction: column-reverse;
    }   

    .flex-box__item{        
        width: 100%;
    }

    article ul{
        margin-left: 50px;
        max-width: 100%;
    }

    article ol{
        margin: 0px;
        max-width: 100%;
    }

    article ol li::before{
        font-size: 20px;
    }
}

@media (max-width: 650px){
    article{
        row-gap:10px;
    }

    h1{
        font-size: 40px;
        padding-bottom: 44px;
    }

    h2{
        font-size: 34px;
    }

    h3{
        font-size: 28px;
    }

    .header__wrap{
        align-items: start;
        box-shadow: 0px 4px 7px rgba(0, 0, 0, 0.1);
    }

    .nav-btn{
        position: absolute;
        width: 38px;
        height: 25px;
        transform: rotate(0deg);
        top: 28px;
        right: 26px;
        cursor: pointer;
        display: block;
        border-radius: 3px;
        transition: all .5s ease-in-out;
        margin-left: auto;        
    }

    .nav-btn__line{
        position: absolute;
        opacity: 1;
	    left: 0;
	    transform: rotate(0deg);
        width: 38px;
        height: 3px;
        border-radius: 3px;
        margin-bottom: 8px;
        background-color: var(--color-primary);
        transition: .25s ease-in-out;
    }

    .nav-btn__line:nth-child(1){
        top: 0px;
    }

    .nav-btn__line:nth-child(2),
    .nav-btn__line:nth-child(3){
        top: 11px;
    }

    .nav-btn__line:last-child{
        top: 21px;
        margin-bottom: 0;
    }

    .nav-btn.active .nav-btn__line:nth-child(1){
        top: 11px;
        width: 0%;
	    left: 50%;
    }

    .nav-btn.active .nav-btn__line:nth-child(2){
        transform: rotate(45deg);
    }

    .nav-btn.active .nav-btn__line:nth-child(3){
        transform: rotate(-45deg);
    }

    .nav-btn.active .nav-btn__line:last-child{
        top: 11px;
        width: 0%;
        left: 50%;
    }

    .nav{        
        z-index: 20;
        position: absolute;
        transform: translateX(100%);
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;        
        transition: all .8s;
        width: 100%;
        height: 600px;
        justify-content: space-between;
        gap: 118px;
        background-color: var(--color-bg);
        border-bottom: 4px solid rgba(0, 0, 0, 0.06);
    }

    .nav__bg{      
        display: block;
        visibility: hidden;  
        z-index: 10;
        position: absolute;
        opacity: 0;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;        
        transition: all .8s;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(11, 2, 30, 0.75);
        backdrop-filter: blur(3px);
    }

    .nav__bg.active{
        visibility: visible;
        transition: all .5s ease-in-out;
        opacity: 1;
    }

    nav.active{
            transition: all .5s ease-in-out;
            transform: translateX(0%);
    }

    .nav-list{
        display: flex;
        margin-top: 125px;
        flex-direction: column;
        align-items: center;
        justify-content: end;
    }

    .nav-list .text__decor-primary{
        display: block;
    }

    .nav-item{            
        display: inline-block;            
    }   
    
    .nav-link{
        font-size: 17px;
        font-weight: 400;
        color: var(--color-text); 
    }

    .header__wrap-button{
        flex-direction: column;
        align-items: center;
        row-gap: 10px;
        margin-bottom: 50px;
    }

    .entry{
        padding-top: 30px;
        padding-bottom: 20px;
    }

    /* изображение в контейнере на всю ширину экрана */
    .entry picture{
        max-width: 100vw;
        width: auto;
        left: 50%;
        right: 50%;
        margin: 0 -50vw 50px -50vw;
    }    

    /* изображение в контейнере на всю ширину экрана */
    article picture{
        max-width: 100vw;
        width: auto;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    /* чтобы перебить стили article picture img */
    .flex-box picture,
    .flex-module__item picture{
        right: auto;
        left: auto;
    }

    .flex-module__item picture{
        height: 140px;
    }

    .table td{
        display:inline-block;
        padding: 2px 8px 25px 8px;
    }

    .table td:first-child{
        width: 100%;
        padding: 25px 8px 2px 8px;
    }
    
    .table td{
        border-left: none;
        border-right: none;
    }

    .table_four-colums td{
        width: 32%;
    }

    .table_three-colums td{
        width: 50%;
    }

    .table_two-colums td{
        width: 100%;
    }
}
