/* 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: green;
}

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: #d2ceff;
    --color-text: #384F66;
    --color-title: #e575e6;
    --color-button-text: white;
    --color-header: #e575e6;
    --color-primary: #0EAD2C;
    --color-secondary: #2E53FD;    
    --color-button-bordered: #A3B5C7;
    --color-accent: #fad3fd;
    --color-table: #CEE7F2;
    --color-table-header: white;
    --color-footer: #fad3fd;
    --font-size: 16px;
    --font-size-button: 14px;
}

/* base */
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
    line-height: 1.5;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size);
    font-weight: 400;
}

main{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex:1;
}

.container{
    max-width: 940px;
    padding: 0 20px;
    margin: 0 auto;
}

h1{
    font-weight: 700;
    font-size: 38px;
    line-height: 54px;
    color: var(--color-title);
    text-align: center;
}

h2{
    font-weight: 600;
    font-size: 33px;
    line-height: 44px;
    color: var(--color-title);
    text-align: center;
}

h3{
    font-weight: 600;
    font-size: 28px;
    line-height: 38px;
    color: var(--color-title);
    text-align: center;
}

.button{
    padding: 13px 32px;
    font-weight: 700;
    font-size: var(--font-size-button);
    line-height: 1;
    border-radius: 6px;
    color: var(--color-button-text);
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease-in-out;
}

.button_colored{
    background-color: #60d2da;
    border: 1px solid #001a4e;
}

.button_colored_secondary{
    background-color: #0073ce;
    border: 1px solid #000000;
}

.button_bordered{
    padding: 16px;
    color: var(--color-button-bordered);
    background-color: transparent;
    border: 1px solid var(--color-button-bordered);
}

a:hover, 
button:hover{
    transition: all .3s ease-in-out;
    opacity: 0.8;
}

/* header */
.header{
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background-color: var(--color-header);
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.25);
}

.header__inner{    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;   
    gap: 50px;
    padding: 9px 24px; 
}

.logo{
    font-weight: 700;
    font-size: 24px;
    line-height: 33px;
    text-transform: uppercase;
    color: #001a4e;
    text-align: center;
}

.header__inner-button{
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.header__inner-button_mobile{
    display: none;
}

/* menu */
.menu-icon{
    display: none;
}

.menu-head{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 28px; 
}

.menu-link{
    font-size: var(--font-size-button);
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
    color: #000000;
    transition: all .3s ease-in-out;
}

a.menu-link:hover{
    color: var(--color-primary);
}

.close-__btn-icon{
    display: none;
    position: absolute;
    width: 26px;
    height: 26px;
}

.close-__btn-icon img{
    position: relative;
    z-index: 1;
}

.close-__btn-icon::before{
    position: absolute;
    z-index: 0;
    content: '';
    width: 46px;
    height: 46px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background-color: white;
    border-radius: 6px;
    border: 1px solid var(--color-secondary);
}

.close-__btn-icon.active{
    display: block;
    top: 20px;
    right: 20px;
}

main{
    width: calc(100% - 200px);
    margin-left: 200px;
}

.promo{
    padding-top: 32px;
    padding-bottom: 32px;
}

.promo__image{
    display: block;
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
}

.promo__container-button{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    gap: 16px;
    flex-wrap: wrap;
}

.promo__error-contant{
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    color: var(--color-title);
}

.promo__error-title{
    font-weight: 700;
    font-size: 72px;
    line-height: 88px;
}

.promo__error-text{
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
}

.button_error{
    padding: 14px 76px;
    color: var(--color-button-text);
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 4px;
}

article{    
    max-width: 840px;
    padding: 0px 20px 0 20px;
    margin: 0 auto;
}

article ul,
article ol{
    margin: 19px 0 19px 50px;
    line-height: 2;
}

p{
    margin-top: 24px;
    margin-bottom: 24px;
}

article img{
    display: block;
    max-width: 560px;
    height: auto;
    margin: 24px auto;
}

/* table */
.table{
    width: 100%;
    margin-top: 80px;
    font-size: var(--font-size);
}

.table tr{
    background-color: var(--color-table);
    border-bottom: 1px solid var(--color-text);
}

.table tr:last-child{
    background-color: var(--color-table);
    border-bottom: none;
}

.table tr:nth-child(even){
    background-color: var(--color-accent);
}

.table td{
    padding: 12px;
    text-align: left;
    box-sizing: border-box;
}

table_two-colums{
    padding-right: 40px;
}

.table_two-colums td:nth-child(1){
    font-weight: 700;
    width: 20%;
}

.table_four-colums tr:nth-child(1){
    background-color: var(--color-table-header);
}

/* footer */
.footer{
    position: relative;
    background-color: var(--color-footer);
    width: calc(100% - 200px);
    margin-left: 200px;
    margin-top: auto;
}

.footer__contant{
    padding-top: 24px;
    padding-bottom: 24px;
    text-align: center;
    color: var(--color-button-bordered);
}

.footer__btn-up{
    position: absolute;
    width: 34px;
    height: 29px;
    right: 100px;
}

@media (max-width: 1440px){
    .footer__contant{
        padding-top: 25px;
    }

    .footer__btn-up{
        right: 20px;
        top: 30%;
    }
}

@media (max-width: 1100px){
    .header__image{
        margin: 40px auto;
    }
}

@media (max-width: 800px){
    article img{
        width: 100%;
    }

    .button_bordered{
        width: 100%;
        white-space:normal;
    }

    .table_four-colums{
        word-break: break-all;
    }
}

@media (max-width: 650px){
    main,
    .footer{
        width: 100%;
        margin-left: 0px;
    }

    .header{
        position: relative;
        width: 100%;
        height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .header__inner{
        flex-direction: row;
        align-items: center;
    }

    .header__inner-button{
        flex-direction: row;
        gap: 16px;
    }

    .header__inner-button_desktop{
        display: none;
    }

    .header__inner-button_mobile{
        display: flex;
    }

    .header__image{
        margin: 0px auto 40px auto;
        border-radius: 0px;
    } 

    .menu-icon{
        position: relative;
        display: block;
        transition: all .5s ease-in-out;
    }

    .menu-icon::before{
        position: absolute;
        z-index: 0;
        content: '';
        width: 46px;
        height: 46px;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        background-color: white;
        border-radius: 6px;
        border: 1px solid var(--color-secondary);
    }

    .menu-icon__line{
        position:relative;
        z-index: 1;
        width: 26px;
        height: 3px;
        border-radius: 3px;
        margin-bottom: 5px;
        background-color: var(--color-secondary);
    }

    .menu-icon__line:last-child{
        margin-bottom: 0;
    }

    .menu-head{
        width: 100%;
        display: flex;
        margin-top: 100px;
        margin-left: 0;
        gap: 0;
        flex-direction: column;
        align-items: end;
        justify-content: start;
    }
    
    .menu-link{
        font-size: var(--font-size-button);
        line-height: 1.4;
        font-weight: 400;
        text-transform: uppercase;
        color: var(--color-title);
        transition: all .3s ease-in-out;
    }
    
    a.menu-link:hover{
        color: var(--color-primary);
    }
    
    .menu-point{            
        width: 100%;
        padding: 20px 80px;  
    }
    
    .menu-point:nth-of-type(odd){
        background-color: var(--color-accent);
    }
    
    .menu-point:nth-of-type(even){
        background-color: var(--color-table);
    }
    
    .nav{
        background-color: var(--color-bg);
        z-index: 20;
        position: absolute;
        transform: translateX(100%);
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;        
        padding-top: 30px;
        transition: all .8s;
        width: 100%;
        height: 100vh;
    }
    
    nav.active{
        transition: all .5s ease-in-out;
        transform: translateX(0%);
    }

    .table_two-colums td:nth-child(1){
        width: 50%;
    }
    
    .table_three-colums,
    .table_four-colums{
        word-break: break-all;
    }
}
