/* 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: #ace49d;;
    --color-text: #505050;
    --color-button-text: #e5e5e5;
    --color-title: #000000;
    --color-primary: #1c34a4;
    --color-secondary: #2478b8;
    --color-accent: #103756;
    --color-accent-menu: #0e2a3f;
    --color-menu-bg: #2478b8;
    --color-table: #E8F0C1;
    --color-table-header: #2478b8;
    --color-footer: #000912;
    --font-size: 16px;
    --font-size-button: 18px;
}

/* 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: 'Jura', sans-serif;
    font-size: var(--font-size);
    font-weight: 400;
}

main{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex:1;
}

.wrapper{
    max-width: 1010px;
    padding: 0 20px;
    margin: 0 auto;
}

h1{
    font-weight: 700;
    font-size: 42px;
    line-height: 58px;
    color: var(--color-title);
    text-align: center;
    padding-bottom: 20px;
}

h2{
    font-weight: 700;
    font-size: 34px;
    line-height: 53px;
    color: var(--color-title);
    text-align: center;
    padding: 10px;
}

h3{
    font-weight: 700;
    font-size: 28px;
    line-height: 44px;
    color: var(--color-title);
    text-align: center;
    padding: 10px;
}

.button{
    padding: 12px 22px;
    font-weight: 700;
    font-size: var(--font-size-button);
    line-height: 1.33;
    color: var(--color-button-text);
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    transition: all .3s ease-in-out;
}

.button_colored{
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 0 26px 26px 0;
}

.button_colored_secondary{
    background-color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    border-radius: 26px 0 0 26px;
}

.button_colored_menu{
    background-color: var(--color-secondary);
    border: none;
    border-radius: 26px;
    padding: 0 0 0 22px;
}

a:hover, 
button:hover{
    transition: all .3s ease-in-out;
    opacity: 0.8;
}

/* header */
.header{
    background-image: url(/image/header-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    padding-bottom: 20px;
}

.header__wrapper{
    padding-top: 21px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo{
    font-weight: 700;
    font-size: 20px;
    line-height: 33px;
    color: #1c34a4;
}

.header__wrapper-button{
    display: flex;
    align-items: center;
    gap: 0px;
}

.header__image{
    display: block;
    max-width: 900px;
    width: 70%;
    height: auto;
    border-radius: 8px;
    margin: 60px auto 0px auto;
}

.header__error-contant{
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    color: var(--color-button-text);
}

.header__error-title{
    font-weight: 700;
    font-size: 72px;
    line-height: 88px;
}

.header__error-text{
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
}

.button_error{
    padding: 14px 76px;
    color: var(--color-text);
    background-color: var(--color-button-text);
    border: 1px solid var(--color-button-text);
    border-radius: 24px;
}

/* menu */
.header__menu-list{
    width: 100%;
    display: flex;
    margin-top: 100px;
    margin-left: 0;
    flex-direction: column;
    align-items: end;
    justify-content: start;
}

.header__menu-link{
    font-size: var(--font-size-button);
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-button-text);
    transition: all .3s ease-in-out;
}

a.header__menu-link:hover{
    color: var(--color-primary);
}

.header__menu-item{            
    width: 100%;
    padding: 20px 80px;  
}

.header__menu-item:nth-of-type(odd){
    background-color: var(--color-accent);
}

.header__menu-item:nth-of-type(even){
    background-color: var(--color-accent-menu);
}

.nav{
    background-color: var(--color-menu-bg);
    z-index: 20;
    position: absolute;
    transform: translateX(-100%);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;        
    padding-top: 20px;
    transition: all .8s;
    width: 100%;
    height: 100vh;
}

.nav__logo{
    margin-left: 20px;
}

nav.active{
    transition: all .5s ease-in-out;
    transform: translateX(0%);
}

.close__mobile-btn{
    display: none;
    cursor: pointer;
    position: absolute;
    width: 26px;
    height: 26px;
}

.close__mobile-btn img{
    position: relative;
    z-index: 1;
}

.close__mobile-btn::before{
    position: absolute;
    z-index: 0;
    content: '';
    width: 44px;
    height: 44px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background-color: var(--color-accent-menu);
    border: 2px solid var(--color-button-text);
    border-radius: 100%;
}

.close__mobile-btn.active{
    display: block;
    top: 20px;
    right: 20px;
}

article{
    max-width: 1010px;
    padding: 20px 20px;
    margin: 0 auto;
}

ul,
ol{
    margin: 24px 0 24px 40px;
    line-height: 2;
}

.ul__colored{
    font-weight: 700;
    color: var(--color-accent);
}

p{
    margin-top: 24px;
    margin-bottom: 24px;
}

article img{
    display: block;
    width: 70%;
    height: auto;
    margin: 24px auto 0 auto;
}

/* table */
.table{
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
    font-size: var(--font-size);
}

.table tr{
    background-color: var(--color-table);
    border-bottom: 1px solid var(--color-text);
}

.table tr:last-child{
    border-bottom: none;
}

.table tr:nth-child(even){
    background-color: var(--color-button-text);
}

.table caption{
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: var(--color-table-header);
    color: var(--color-button-text);
    font-weight: 700;
}

.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: 50%;
}

.table_two-colums_with-title td{
    text-align: center;
    border-right: none;
}

.table_two-colums_with-title td:nth-child(1){
    width: 35%;
    font-weight: 400;
}

.table_two-colums_with-title tr{
    border-bottom: none;
}

.table_four-colums tr:nth-child(1){
    background-color: var(--color-table-header);
    color: var(--color-button-text);
    font-weight: 700;
}

.table_four-colums tr:nth-child(1) td{
    border-right: 1px solid var(--color-button-text);
}

/* footer */
.footer{
    position: relative;
    background-image: url(/image/footer-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    padding-bottom: 23px;
    margin-top: auto;
}

.footer__logo{
    margin-bottom: 45px;
    text-align: center;
}

.footer__text{
    margin-top: 23px;
    margin-bottom: 23px;
    text-align: center;
    color: var(--color-button-text);
}

.footer__button-up{
    position: absolute;
    width: 46px;
    height: 46px;
    right: 20px;
    top: 40%;
}

@media (max-width: 1440px){
    article{
        padding-bottom: 30px;
    }
}

@media (max-width: 1100px){
    .header{
        /*padding-bottom: 176px;*/
    }

    .header__image{
        margin: 40px auto 0 auto;
        border-radius: 0;
    }
}

@media (max-width: 800px){
    .header__wrapper{
        flex-wrap: wrap;
        gap: 10px;
    }

    .header__wrapper-button{
        margin-top: 12px;
    }  
}

@media (max-width: 650px){
    .header__wrapper-button{
        margin: 0 auto;
    }
    
    .button_colored_menu{
        padding-left: 0;
    }

    .button_colored_menu span{
        display: none;
    }

    article{
        padding-top: 20px;
    }    

    .table_two-colums td:nth-child(1){
        width: 50%;
    }
    
    .table_three-colums,
    .table_four-colums{
        word-break: break-all;
    }
}
