/* 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: #151412;
    --color-text: white;
    --color-primary: #8A34FF;
    --color-header-menu: #FBF5E6;
    --font-size: 18px;
    --font-size-small: 16px;
    --font-size-button: 16px;
}

/* base */
body{
    background-color: var(--color-bg);
    line-height: 1.9;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size);
    font-weight: 400;
}

.container-big{
    max-width: 1440px;
    padding: 0 100px;
    margin: 0 auto;
}

.container{
    max-width: 995px;
    padding: 0 14px;
    margin: 0 auto;
}

ul,
ol{
    margin-left: 20px;
}

h1{
    font-weight: 400;
    font-size: 64px;
    line-height: 1.2;
}

h1 span{
    color: var(--color-primary);
}

h2{
    font-weight: 500;
    font-size: 36px;
    line-height: 1.2;
    color: var(--color-primary);
    text-align: center;
}

h3{
    font-weight: 500;
    font-size: 28px;
    line-height: 1.2;
    color: var(--color-primary);
    margin-top: 10px;
    margin-bottom: 10px;
}

.button{
    padding: 15px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: var(--font-size-button);
    line-height: 1;
    color: var(--color-text);
    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: 1px solid var(--color-primary);
}

.button_bordered{
    background-color: transparent;
    border: 1px solid var(--color-primary);
}

a:hover, 
button:hover{
    transition: all .3s ease-in-out;
    opacity: 0.8;
}

p a{
    color: var(--color-primary);
    text-decoration: underline;
}

main{
    background-image: url('/image/decor.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
}

/* header */
.header{
    position: relative;
    border-bottom: 3px solid var(--color-primary);
}

.header__container{
    padding-top: 25px;
    padding-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__content{
    display: flex;
    align-items: center;
    gap: 50px;
}

.header__content-button{
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo{
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* menu */
.menu-list{
    display: flex;
    align-items: center;
    gap: 28px; 
}

.menu-link{
    font-size: var(--font-size);
    line-height: 1.2;
    font-weight: 400;
    color: var(--color-header-menu);
    transition: all .3s ease-in-out;
}

a.menu-link:hover{
    color: var(--color-primary);
}

.menu-btn{
    display: none;    
}

.close-btn{
    display: none;
    width: 30px;
    height: 30px;
    margin-left: auto;
}

.close-btn.active{
    display: block;
    position: absolute;
    top: 30px;
    left: 30px;
}

/* promo */
.promo{
    padding-top: 40px;
    padding-bottom: 40px;
}

.promo__image{
    display: block;
    max-width: 800px;
    height: auto;
    border-radius: 30px;
    margin: 0 auto 50px auto;
}

.promo__title span{
    color: var(--color-primary);
}

.promo__link{
    margin-top: 100px;
}

.promo__link a{
    color: var(--color-text);
}

.promo__link-info{
    max-width: 600px;
    border-bottom: 1px solid var(--color-text);
    font-size: var(--font-size-button);
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo__link-info p{
    width: 80%;
    margin-left: 16px;
}

.promo__icon{
    width: 20px;
    height: 20px;
}

article{   
    display: flex;
    flex-direction: column;
    row-gap: 30px;
    max-width: 828px;
    padding: 50px 14px;
    margin: 0 auto;      
}

article img{
    display: block;
    max-width: 100%;
    border-radius: 12px;
    margin: 0 auto;
}

/* table */
.table{
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    border-top: 1px solid var(--color-text);
    border-bottom: 1px solid var(--color-text);
    font-size: var(--font-size);
}

.table tr{
    border-bottom: 1px solid var(--color-text);
}

.table td{
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.table td:nth-child(1){
    text-align: left;
}

.table td:last-child{
    text-align: right;
}


/* footer */
.footer__info{
    padding-top: 30px;
    padding-bottom: 70px;  
    border-top: 1px solid var(--color-text);
}

@media (max-width: 1440px){    
    main{
        background-image: none;
    }
}

@media (max-width: 1100px){
    .header__container{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        row-gap: 30px;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .promo{
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .promo__image{
        max-width: 100%;
        height: auto;
        border-radius: 30px;
        margin-bottom: 30px;
    }
    
    .promo__link{
        margin-top: 50px;
    }
    
    .promo__link-info{
        max-width: 100%;
    }
    
    .promo__link-info p{
        width: 100%;
        margin-left: 0px;
    }

    article{
       padding: 50px 14px; 
    }

    article img{
        max-width: 100%;
        height: auto;
        border-radius: 30px;
    }
}

@media (max-width: 800px){
    .header__content{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        row-gap: 30px;        
    }       

    h1{
        font-size: 44px;
        text-align: center;
    }
    
    h2{
        font-size: 26px;
    }
    
    h3{
        font-size: 22px;
    }

    .table{
        font-size: var(--font-size-small);
    }

    .table td{
        padding: 20px 5px 20px 5px;
    }
    
    .table_four-colums td{
        display:inline-block;
        width: 50%;
    }

    .table_four-colums td:nth-child(2){
        text-align: right;
    }

    .table_four-colums td:nth-child(3){
        text-align: left;
    }

    .footer{
        border-top: 3px solid var(--color-primary);
        text-transform: uppercase;
    }

    .footer__container{
        padding: 0 14px;
    }

    .footer__info{
        padding: 28px 14px;
        border-top: none
    }
}


@media (max-width: 550px){

    body{
        color: var(--color-header-menu);
    }

    h1{
        font-size: 36px;
        text-align: center;
    }

    .menu-btn{
        position: absolute;
        top: 36px;
        left: 30px;
        cursor: pointer;
        display: block;
        width: 30px;
        height: auto;
        border-radius: 0px;
        transition: all .5s ease-in-out;
        margin-left: auto;
    }

    .menu-btn__line{
        border-radius: 0px;
        height: 3px;
        margin-bottom: 6px;
        background-color: var(--color-header-menu);
    }

    .nav{
        background-color: #A19FB7;
        z-index: 20;
        position: absolute;
        transform: translateX(-100%);
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;        
        padding-top: 30px;
        padding-right: 30px;
        transition: all .8s;
        width: 300px;
        height: 100vh;
    }

    .menu-list{
        display: flex;
        margin-top: 180px;
        margin-left: 30px;
        flex-direction: column;
        align-items: start;
        justify-content: start;
    }

    .menu-item{            
        display: inline-block;     
        padding-bottom: 50px;
    }

    nav.active{
        transition: all .5s ease-in-out;
        transform: translateX(0%);
    }

    .header__content-button{
        flex-direction: column;
        width: 250px;
    }

    .button{
        width: 100%;
    }
}
