/* 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: white;
    --color-text: #4B4B4B;
    --color-accent: #008080;
    --color-primary: #F2FF93;
    --color-header-menu: white;
    --font-size: 18px;
    --font-size-small: 16px;
    --font-size-button: 16px;
    --font-size-logo: 24px;
}

/* 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;
}

.wrapper-big{
    max-width: 1364px;
    padding: 0 14px;
    margin: 0 auto;
}

.wrapper{
    max-width: 1268px;
    padding: 0 14px;
    margin: 0 auto;
}

ul,
ol{
    margin-left: 20px;
}

h1{
    font-weight: 500;
    font-size: 64px;
    line-height: 1.4;
    text-align: left;
    margin-bottom: 50px;
}

h1 span{
    color: var(--color-accent);
}

h2{
    font-weight: 500;
    font-size: 36px;
    line-height: 1.2;
    color: var(--color-accent);
    margin-bottom: 10px;
    text-align: center;
}

h3{
    font-weight: 500;
    font-size: 28px;
    line-height: 1.2;
    color: var(--color-accent);
    margin: 10px 0 10px 0;
    text-align: center;
}

.button{
    padding: 15px 20px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: var(--font-size-button);
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease-in-out;
}

.button_colored{
    color: var(--color-accent);
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.button_bordered{
    color: var(--color-primary);
    background-color: transparent;
    border: 1px solid var(--color-primary);
}

a:hover, 
button:hover{
    transition: all .3s ease-in-out;
    opacity: 0.8;
}

/* header */
.header{
    position: relative;
    background: linear-gradient(180deg, #008080 0%, rgba(0, 128, 128, 0.62) 29.12%, rgba(0, 128, 128, 0.31) 58.05%, rgba(0, 128, 128, 0) 100%);
}

.header__wrapper{
    padding-top: 40px;
    padding-bottom: 90px;
}

.header__content{
    display: flex; 
    align-items: center;
    justify-content: space-between;
}

.header__content-container{
    display: flex;
    align-items: center;
    gap: 50px;
}

.header__buttons{
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo{
    font-weight: 500;
    font-size: var(--font-size-logo);
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-primary);
}

main{
    background-image: url('/image/decor.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center bottom;
}

/* menu */
.header__menu{
    display: flex;
    align-items: center;
    gap: 30px; 
}

.header__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.header__menu-link:hover{
    color: var(--color-primary);
}

.header__burger{
    display: none;    
}

.close-btn{
    display: none;
    width: 30px;
    height: 30px;
    margin-left: auto;
}

.close-btn.active{
    display: block;
    position: absolute;
    top: 30px;
    left: 30px;
}

/* entry */
.entry{
    padding-top: 50px;
    padding-bottom: 50px;
}

.entry__wrapper{
    display: flex;
    align-items: start;
    gap: 70px;
}

.entry__image-inner{
    padding: 24px 25px 72px 25px;    
    border-radius: 25px;
    box-shadow: 10px 10px 74px -19px rgba(0, 0, 0, 0.25);
}

.entry__image{
    display: block;
    width: 500px;
    height: auto;
    border-radius: 25px;
}

.entry__info-subtitle{
    line-height: 1.4;
}

p a{
    color: var(--color-accent);
    text-decoration: underline;
}

article{
    max-width: 1268px;
    padding: 0 14px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    row-gap: 30px;
}

/* facts */
.facts{
    position: relative;
    padding-bottom: 100px;
}

article div{    
    width: fit-content;
    padding: 24px 25px 72px 25px;   
    margin: 0 auto;
    border-radius: 25px;
    box-shadow: 10px 10px 74px -19px rgba(0, 0, 0, 0.25);
}

article img{
    display: block;
    width: 417px;
    height: auto;
    border-radius: 25px;
}

/* table */
.table{
    max-width: 1040px;
    width: 100%;
    margin: 20px auto 0 auto;
    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__wrapper{
    padding-top: 36px;
    padding-bottom: 36px;  
    text-align: center;
}

@media (max-width: 1100px){
    main{
        background-image: none;
    }

    h1{
        font-size: 44px;
    }

    h2{
        margin-bottom: 0px;
    }

    h3{
        margin: 0px;
    }

    .header__wrapper{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        row-gap: 30px;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .header__content{
        margin-right: 0;
        margin-left: 0;
    }

    .entry{
        padding-top: 30px;
    }
    
    .entry__wrapper{
        gap: 30px;
    }

  
}

@media (max-width: 800px){
    h1{
        text-align: center;
    }

    h2{
        font-size: 30px;
    }
    
    h3{
        font-size: 28px;
    }
    
    .header{
        background: var(--color-accent);
    }

    .header__content{
        flex-direction: column;
        row-gap: 20px;
        border: none;
        padding: 0;
    }

    .header__content-container{
        flex-direction: column;
        gap: 20px;
    }

    .entry__wrapper{
        flex-direction: column;
        gap: 50px;
    }

    .entry__image-inner{
        width: fit-content;
        margin: 0 auto;
    }

    .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;
    }
}


@media (max-width: 550px){

    h1{
        font-size: 36px;
    }

    h2{
        font-size: 26px;
    }
    
    h3{
        font-size: 22px;
    }

    .header__content{
        row-gap: 30px;
    }

    .header__burger{
        position: absolute;
        top: 30px;
        left: 30px;
        cursor: pointer;
        display: block;
        width: 30px;
        height: auto;
        border-radius: 0px;
        transition: all .5s ease-in-out;
        margin-left: auto;
    }

    .header__burger-line{
        border-radius: 0px;
        height: 3px;
        margin-bottom: 6px;
        background-color: var(--color-header-menu);
    }

    .header__nav{
        background-color: var(--color-accent);
        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;
    }

    .header__menu{
        display: flex;
        margin-top: 180px;
        margin-left: 30px;
        gap:0;
        flex-direction: column;
        align-items: start;
        justify-content: start;
    }

    .header__menu-element{            
        display: inline-block;     
        padding-bottom: 50px;
    }

    .header__menu-link{
        color: white;
        font-weight: 500;
    }

    nav.active{
        transition: all .5s ease-in-out;
        transform: translateX(0%);
    }

    .header__buttons{
        flex-direction: column;
        width: 250px;
    }

    .button{
        width: 100%;
    }

    .entry__image-inner,
    article div{
        padding: 21px;  
    }

    .entry__image,
    article img{
        width: 100%;
    }

    .footer{
        background-color: var(--color-accent);
        color: var(--color-bg);
    }
}
