/* 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: #d9e8ed;
    --color-header: #bec0f4;
    --color-text: #1F2130;
    --color-text-button: whitesmoke;
    --color-title: #0D0F24;
    --color-primary: #eec312;
    --color-secondary: #EEE712;
    --color-accent: #12ee2c;
    --color-decor: #F5F5ED;
    --color-footer: #c7c4ef;
    --font-size: 16px;
    --font-size-button: 16px;
}

/* base */
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
    line-height: 130%;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    font-family: 'Alumni Sans', sans-serif;
    font-size: var(--font-size);
    font-weight: 400;
}

.inner{
    max-width: 1090px;
    padding: 0 15px;
    margin: 0 auto;
}

main{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex:1;
}

h1{
    /* font-family: 'Merriweather', serif; */
    font-weight: 700;
    font-size: 48px;
    line-height: 130%;
    color: var(--color-title);
    text-align: center;
    margin: 20px 0;
}

h2{
    /* font-family: 'Merriweather', serif; */
    font-weight: 600;
    font-size: 42px;
    line-height: 130%;
    color: var(--color-title);
    text-align: center;
    margin: 20px 0;
}

h3{
    /* font-family: 'Merriweather', serif; */
    font-weight: 600;
    font-size: 36px;
    line-height: 140%;
    color: var(--color-title);
    text-align: center;
    margin: 20px 0;
}

.align-left{
    text-align: left;
}

.button{
    padding: 12px 26px;
    font-weight: 400;
    font-size: var(--font-size-button);
    line-height: 130%;
    border-radius: 3px;
    color: var(--color-text-button);
    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: 2px solid var(--color-primary);
}

.button_colored:hover{
    background-color: rgba(18, 81, 238, 0.6);
}

.button_colored_secondary{
    color: var(--color-text);
    background-color: transparent;
    border: 2px solid var(--color-primary);
}

.button_colored_secondary:hover{
    color: var(--color-text-button);
    background-color: rgba(18, 81, 238, 0.6);
}

a:hover, 
button:hover{
    transition: all .3s ease-in-out;
}

/* header */
.header{
    position: relative;
    background-color: var(--color-header);
}

.header__inner{
    width: 100%;
    padding: 17px 17px;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 25px;
}

.logo{
    padding: 5px 12px;
    font-weight: 700;
    font-size: 26px;
    line-height: 28px;
    text-transform: uppercase;
    color: var(--color-title);
    background-color: white;
    text-align: center;
}

nav{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__bg{
    display: none;
}

.header__inner-button{
    display: flex;
    align-items: center;
    gap: 5px;
}

/* intro */
.intro{
    padding-top: 20px;
}

.intro__inner{    
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    align-items: center;    
}

.intro picture{
    display: block;
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 0 auto 0 auto;
}

.intro picture img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

/* menu */
.head-menu{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px; 
}

.head-menu .text__decor-primary{
    display: none;
}

.head-menu__link{
    font-size: var(--font-size);
    line-height: 130%;
    font-weight: 400;
    color: var(--color-text);
    transition: all .3s ease-in-out;
}

a.head-menu__link:hover{
    color: var(--color-primary);
}

.mobile-menu{
    display: none;    
}

article{
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 1090px;
    padding: 0 15px 20px 15px;
    margin: 0 auto;
}

.article__up{
    position: fixed;
    z-index: 50;
    width: 45px;
    height: 45px;
    right: 100px;
    top: 80%;
}

.article__up.scroll-item.scroll-no-hide{
    transform: scale(.5);
    opacity: 0;
}

.article__up.scroll-item.animation-class{    
    transition: all 1.8s ease;
    transform: scale(1);
    opacity: 1;
}

article ul,
article ol{
    list-style-type: none;
    margin-left: 40px;
}

article ul li{
    position: relative;
    margin-bottom: 15px;
    line-height: 1;
}

article ul li:last-child{
    margin-bottom: 0;
}

article ul li::before{
    position: absolute;
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--color-secondary);
    border: 1px solid var(--color-text);
    border-radius: 100%;
    top: 50%;
    transform: translateY(-50%);
    left: -30px;
}

article ol{
    max-width: 400px;
    margin: 0 auto;
    counter-reset: num;
}

article ol li{
    position: relative;
    margin-left: 40px;
    margin-bottom: 15px;
    line-height: 25px;
}

article ol li:last-child{
    margin-bottom: 0;
}

article ol li::before{
    position: absolute;
    content: counter(num)'.'; 
    counter-increment: num;
    /* font-family: 'Merriweather', serif; */
    font-weight: 400;
    font-size: 32px;
    line-height: 140%;
    color: var(--color-secondary);
    -webkit-text-stroke: 1px var(--color-text);
    top: 50%;
    transform: translateY(-50%);
    left: -40px;
}

p{
    margin-top: 5px;
    margin-bottom: 20px;
    line-height: 34px;
}

p span{
    color: var(--color-accent);
}

/*flex-container */
.flex-container{
    position: relative;
    display: flex;
    align-items: start;
    gap: 30px;
    max-width: 1090px;
    padding: 0 15px;
    margin: 0 auto;
    padding-top: -35px;
}

.flex-container::before{
    position: absolute;
    content: '';
    width: 100vw;
    height: auto;
    left: 50%;
    right: 50%;
    top: -10%;
    bottom: -10%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: var(--color-decor);
}

.flex-container.reverse::before{
    top: -10%;
    bottom: -10%;
}

.flex-container.reverse{
    align-items: end;
}

.flex-container__item{
    position: relative;
}

.flex-container__item::before{
    display: none;  
}

.flex-container__item h3{
    text-align: left;
}

.flex-container picture{
    display: block;
    min-width: 365px;
    width: 100%;
    height: 430px;
    margin: 0 auto;
}

.flex-container picture img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0px 13px 8px -5px rgba(0, 0, 0, 0.17);
}

.flex-container .button_colored_secondary{
    background-color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    box-shadow: 2px 2px 3px rgba(238, 160, 18, 0.58);
}

.flex-container .button_colored_secondary:hover{
    background-color: rgba(238, 231, 18, 0.6);
}

/* image 100% */
article picture{
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    margin-right: auto;
}

article picture img{
    position: relative;
    z-index: 1;
    display: block;
    max-width: 70%;
    height: 100%;
    /*height: 100%;
    object-fit: cover; */
    border-radius: 25px;
    margin: auto;
    /* box-shadow: 0px 13px 8px -5px rgba(0, 0, 0, 0.17); */
}

/*article picture::before{
    position: absolute;
    content: '';
    z-index: 0;
    max-width: 800px;
    width: 70%;
    height: 100%;
    background-color: var(--color-decor);
    top: 35px;
    bottom: 0;
    right: 0;
    border-radius: 25px;
}*/

/* table */
.table{
    width: 100%;
    margin: 0 auto;
    font-size: var(--font-size);
}

.table tr{
    background-color: var(--color-decor);
    border-top: 1px solid var(--color-text);
    border-bottom: 1px solid var(--color-text);
}

.table td{
    padding: 22px;
    text-align: center;
    box-sizing: border-box;
    border-left: 1px solid var(--color-text);
    border-right: 1px solid var(--color-text);
}

.table tr td:first-child{
    border-left: none;
}

.table tr td:last-child{
    border-right: none;
}

/* footer */
.footer{
    position: relative;
    background-color: var(--color-footer);
    color: var(--color-text);
    margin-top: auto;
}

.footer__info{
    padding-top: 30px;
    padding-bottom: 30px;  
    text-align: center;
}

.footer__info p{
    margin: 0;
}

@media (max-width: 1300px){
    .article__up{
        right: 15px;
    }
}

@media (max-width: 1100px){
    .header__inner{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        row-gap: 30px;
    }

    .nav{
        width: 100%;
        justify-content: space-between;
        gap: 30px;
    }

    .flex-container{
        padding: 0;
        flex-direction: column;
        padding-bottom: 35px;
    }
    
    .flex-container::before{
        top: -5%;
        bottom: -5%;
    }

    .flex-container.reverse{
        flex-direction: column-reverse;
    }

    .flex-container.reverse::before{
        top: -5%;
        bottom: -5%;
        flex-direction: column-reverse;
    }

    .flex-container__item{
        width: 100%;
    }

    .flex-container picture{
        min-width: 100%;
        height: 420px;
    }

    article picture::before{
        top: 16px;
    }
}

@media (max-width: 800px){
    .nav{
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 650px){
    article{
        row-gap:10px;
    }

    h1{
        font-size: 40px;
        line-height: 50px;
        margin: 0;

    }

    h2{
        font-size: 30px;
    }

    h3{
        font-size: 26px;
    }

    .header__inner{
        align-items: start;
        box-shadow: 0px 4px 7px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu{
        position: absolute;
        width: 38px;
        height: 25px;
        transform: rotate(0deg);
        top: 28px;
        right: 26px;
        cursor: pointer;
        display: block;
        border-radius: 3px;
        transition: all .5s ease-in-out;
        margin-left: auto;        
    }

    .mobile-menu__line{
        position: absolute;
        opacity: 1;
	    left: 0;
	    transform: rotate(0deg);
        width: 38px;
        height: 3px;
        border-radius: 3px;
        margin-bottom: 8px;
        background-color: var(--color-primary);
        transition: .25s ease-in-out;
    }

    .mobile-menu__line:nth-child(1){
        top: 0px;
    }

    .mobile-menu__line:nth-child(2),
    .mobile-menu__line:nth-child(3){
        top: 11px;
    }

    .mobile-menu__line:last-child{
        top: 21px;
        margin-bottom: 0;
    }

    .mobile-menu.active .mobile-menu__line:nth-child(1){
        top: 11px;
        width: 0%;
	    left: 50%;
    }

    .mobile-menu.active .mobile-menu__line:nth-child(2){
        transform: rotate(45deg);
    }

    .mobile-menu.active .mobile-menu__line:nth-child(3){
        transform: rotate(-45deg);
    }

    .mobile-menu.active .mobile-menu__line:last-child{
        top: 11px;
        width: 0%;
        left: 50%;
    }

    .nav{        
        z-index: 20;
        position: absolute;
        transform: translateX(100%);
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;        
        transition: all .8s;
        width: 100%;
        height: 600px;
        justify-content: space-between;
        gap: 118px;
        background-color: var(--color-header);
        border-bottom: 4px solid rgba(0, 0, 0, 0.06);
    }

    .nav__bg{      
        display: block;
        visibility: hidden;  
        z-index: 10;
        position: absolute;
        opacity: 0;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;        
        transition: all .8s;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(237, 237, 217, 0.68);
        backdrop-filter: blur(3px);
    }

    .nav__bg.active{
        visibility: visible;
        transition: all .5s ease-in-out;
        opacity: 1;
    }

    nav.active{
            transition: all .5s ease-in-out;
            transform: translateX(0%);
    }

    .head-menu{
        display: flex;
        margin-top: 125px;
        flex-direction: column;
        align-items: center;
        justify-content: end;
    }

    .head-menu .text__decor-primary{
        display: block;
    }

    .head-menu__item{            
        display: inline-block;            
    }   
    
    .head-menu__link{
        font-size: 17px;
        font-weight: 700;
        color: var(--color-text); 
    }

    .header__inner-button{
        flex-direction: column;
        align-items: center;
        row-gap: 10px;
        margin-bottom: 50px;
    }

    .intro{
        /*padding-bottom: 10px;*/
    }

    .intro picture{
        margin: 0 auto 20px auto;
    }

    article ol{
        margin: 0;
        max-width: auto;
    }

    .table td{
        display:inline-block;
        padding: 2px 8px 25px 8px;
    }

    .table td:first-child{
        width: 100%;
        padding: 25px 8px 2px 8px;
    }
    
    .table td{
        border-left: none;
        border-right: none;
    }

    .table_four-colums td{
        width: 32%;
    }

    .table_three-colums td{
        width: 50%;
    }

    .table_two-colums td{
        width: 100%;
    }
}
