/* 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: #fff2c8;
    --color-text: #202226;
    --color-text-table-mobile: #3f3f3f;
    --color-primary: #61ebb0;
    --font-size: 16px;
    --font-size-small: 14px;
    --font-size-big: 18px;
    --font-size-button: 14px;
}

/* base */
body{
    background-color: var(--color-bg);
    line-height: 1.5;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    font-family: 'Lora', serif;
    font-size: var(--font-size);
    font-weight: 400;
}

.inner{
    max-width: 1168px;
    padding: 0 14px;
    margin: 0 auto;
}

ul,
ol{
    margin-left: 40px;
}

h1{
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: var(--color-text);
    text-align: center;
    padding: 20px;
}

h2{
    font-weight: 700;
    font-size: 35px;
    line-height: 1.3;
    color: var(--color-text);
    margin: 24px;
    text-align: center;
}

h3{
    font-weight: 700;
    font-size: 32px;
    line-height: 2;
    color: var(--color-text);
    margin-top: 24px;
}

.button{
    padding: 8px 16px;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: var(--font-size-button);
    line-height: 1.4;
    border-radius: 0px;
    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-text);
}

.button_bordered{
    background-color: var(--color-primary);
    border: 1px solid var(--color-text);
}

.button:hover, 
a:hover{
    transition: all .3s ease-in-out;
    opacity: 0.8;
}

p{
    margin-top: 16px;
    margin-bottom: 16px;
}

main{
    background-image: url('/image/decor.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center bottom -80px;
}

/* header */
.header{
    position: relative;
    border-bottom: 1px solid var(--color-text);
}

.header__inner{
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    gap:64px;
}

.header__border-mobile{
    display: none;
}

.header__parts{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 27px;
}

.header__parts-buttons{
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo{
    font-weight: 700;
    font-size: var(--font-size-big);
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--color-text);
    margin-left: 27px;
}

/* menu */
.nav{
    position: relative;
}

.nav__list{
    display: flex;
    align-items: center;
    gap: 64px;
    margin-left: 0;
}

.nav__link{
    font-size: var(--font-size);
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-header-menu);
    transition: all .3s ease-in-out;
}

a.nav__link:hover{
    color: var(--color-primary);
}

.nav__image{
    display: none;
}

.burger{
    display: none;
    
}

.close-btn{
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
}

.close-btn.active{
    display: block;
    position: absolute;
    top: 30px;
    right: 30px;
}

/* intro */
.intro{
    padding-top: 24px;
    margin-bottom: 16px;
    position: relative;
}

.intro__decor{
    position: absolute;
    width: 52px;
    height: auto;
    left: 40px;
    bottom: 80px;
}

.intro__image{
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 24px auto;
}

article{
    max-width: 1168px;
    padding: 0 14px 20px 14px;
    margin: 0 auto;
}

p a{
    color: var(--color-primary);
    transition: all .3s ease-in-out;
}

ul,
ol{
    line-height: 2.2;
}

.ul__float-left{
    max-width: 440px;
    width: 100%;
    margin-right: 16px;
    margin-bottom: 16px;
    float: left;
}

article img{
    display: block;
    width: 600px;
    height: auto;
    border-radius: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
}

article picture:nth-of-type(odd) {    
    margin-right: 0;
    margin-left: 16px;
    float: right;
}

article picture:nth-of-type(even) {
    margin-right: 16px;
    margin-left: 0px;
    float: left;
}

/* table */
.table{
    width: 100%;
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: var(--font-size-big);
}

.table tr:nth-child(odd){
    background-color: var(--color-primary);
}

.table td:first-child {
    border-top-left-radius: 10px; 
    border-bottom-left-radius: 10px;
    font-weight: 700;
}

.table td:last-child {
    border-bottom-right-radius: 10px; 
    border-top-right-radius: 10px; 
}

.table td{
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

/* footer */
.footer{
    position: relative;
    background-color: var(--color-text);
    color: var(--color-bg);
    font-size: var(--font-size-small);
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
    z-index: 1;
}

@media (max-width: 1440px){

}

@media (max-width: 1100px){
    main{
        background-image: none;
    }

    .header__inner{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        row-gap: 30px;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .header__parts{
        margin-right: 0px;
    }
    
    .logo{
        margin-left: 0px;
    }

}

@media (max-width: 800px){
    .header__parts{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        row-gap: 30px;        
    }       
    
    h2{
        width: 90%;
    }
    
    .ul__float-left{
        float: none;
    }

    article img{
        width: 100%;
    }
    
    article picture:nth-of-type(odd),
    article picture:nth-of-type(even){    
        margin: 0;
        float: none;
    }

    .table{
        margin-top: 24px;
        margin-bottom: 24px;
        font-size: var(--font-size-small);
        color: var(--color-text-table-mobile);
    }

    .table tr{
        display: flex;
        flex-wrap: wrap;
        border-radius: 10px;
    }

    .table td{
        display:inline-block;
        padding: 7px 5px 25px 5px;
    }

    .table td:first-child{
        width: 100%;
        padding: 25px 5px 7px 5px;
        font-size: var(--font-size);
        color: var(--color-text);
    }    

    .table_four-colums td{
        width: 32%;
    }

    .table_three-colums td{
        width: 50%;
    }

    .table_two-colums td{
        width: 100%;
    }
}


@media (max-width: 550px){
    main{
        background-image: url('/image/decor-mobile.png');
        background-position: center bottom 25px;
    }

    .burger{
        position: absolute;
        top: 30px;
        right: 15px;
        cursor: pointer;
        display: block;
        width: 40px;
        height: auto;
        border-radius: 3px;
        transition: all .5s ease-in-out;
        margin-left: auto;
    }

    .burger__line{
        border-radius: 3px;
        height: 3px;
        margin-bottom: 9px;
        background-color: var(--color-text);
    }

    .nav{
        background-color: var(--color-bg);
        z-index: 20;
        position: absolute;
        transform: translateX(100%);
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;        
        margin: 0 auto;
        transition: all .8s;
        width: 100%;
        height: 100vh;
    }

    .nav__image{
        display: block;
        position: absolute;
        height: auto;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav__list{
        display: flex;        
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 65px;
        margin: 120px 24px 0px 24px;
    }

    .nav__item{            
        display: inline-block;     
        width: 100%;
        padding-top: 16px;
        padding-bottom: 16px;
        border-radius: 0px;
    }

    .nav__item:nth-child(1){
        border: 1px solid var(--color-text);
    }

    nav.active{
        transition: all .5s ease-in-out;
        transform: translateX(0%);
    }

    .header{
        border-bottom: none;
    }

    .header__border-mobile{
        display: block;
        width: 100vw;
        height: 1px;
        background-color: var(--color-text);
    }

    .header__inner{
        padding-bottom: 0;
    }

    .header__parts-buttons{
        flex-direction: column;
        width: 100%;
    }

    .logo{
        margin-right: auto;
    }

    .button{
        width: 100%;
    }
}
