/* 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, navigation, 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,navigation,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: #F9F7EE;
    --color-header: #F4F2E6;
    --color-nav-bg: #1D1C1C;
    --color-text: #000000;
    --color-text-button: #000000;
    --color-title: #000000;
    --color-primary: #D41B30;
    --color-accent: #D41B30;
    --color-footer: #F9F7EE;
    --font-size: 20px;
    --font-size-button: 16px;
}

/* base */
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
    line-height: 1.15;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    font-family: 'Oswald', sans-serif;
    font-size: var(--font-size);
    font-weight: 400;
}

main{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex:1;
}

.wrapper{
    max-width: 1210px;
    padding: 0 15px;
    margin: 0 auto;
}

h1{
    font-weight: 400;
    font-size: 34px;
    line-height: 44px;
    text-transform: uppercase;
    color: var(--color-title);
    margin: 30px auto;
    text-align: center;
}

h2{
    min-width: 150px;
    width: fit-content;
    padding: 8px 10px;
    font-weight: 400;
    font-size: 32px;
    line-height: 140%;
    color: var(--color-title);    
    border: 2px solid var(--color-accent);    
    text-align: center;    
    margin: 30px auto;
}

h3{
    font-weight: 400;
    font-size: 32px;
    line-height: 140%;
    color: var(--color-title);
    text-align: left;
    margin: 30px auto;
}

h3 span{
    text-transform: none;
}

.button{
    padding: 8px 36px;
    min-width: 150px;
    font-weight: 600;
    font-size: var(--font-size-button);
    font-family: 'Oswald', sans-serif;
    line-height: 130%;
    background: var(--color-primary);
    border-radius: 0px;
    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_secondary{
    background-color: transparent;
    border: 2px solid var(--color-primary);
}

.button_colored:hover,
.button_secondary:hover{
    opacity: 0.8;
}

a{
    color: var(--color-accent);
}

a:hover, 
button:hover{
    transition: all .3s ease-in-out;
}

/* header */
.header{
    position: relative;
    background-color: var(--color-bg);
}

.header__wrapper{
    max-width: 1180px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-header);
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.15);
}

.logo{
    max-width: 100px;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-title);
    letter-spacing: 0.32px;
}

/* navigation */
nav{
    display: flex;
    align-items: center;
    gap: 100px;
}

.nav__close{
    display: none;
}

.navigation-list{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px; 
}

.navigation-link{
    font-size: var(--font-size);
    line-height: 130%;
    font-weight: 400;
    color: var(--color-text-button);
    white-space: nowrap;
    transition: all .3s ease-in-out;
}

a.navigation-link:hover{
    color: var(--color-primary);
}

.burger{
    display: none;    
}

.header__wrapper-button{
    display: flex;
    align-items: center;
    gap: 10px;
}

/* general */
.general{
    padding-top: 60px;
    padding-bottom: 30px;
}

.general__wrapper{     
    display: flex;
    flex-direction: column;
    row-gap: 30px;
    align-items: start;    
    text-align: left;
}

.general picture{
    display: block;
    width: 100%;
} 

.general picture img{
    max-width: 100%;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.15);
}

.general h3{
    margin: 0;
}

.general__info{
    max-width: 940px;
    width: 100%;
    align-self: center;
}

.general__info-link{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.general__info-link a h3{
    margin: 0;
    text-transform: none;
}

.general__info-link a h3:hover{
    color: var(--color-primary);
    transition: all .3s ease-in-out;
}

article{
    position: relative;
    max-width: 1210px;
    padding: 0px 15px 120px 15px;
    margin: 0 auto;   
    display: flex;
    flex-direction: column;
}

.article__up{
    position: fixed;
    z-index: 50;
    width: 50px;
    height: 50px;
    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 li,
article ol li{
    line-height: 1.5;
    margin-left: 40px;
    margin-bottom: 14px;
    
}

/* image 100% */
article picture{
    display: block;
    /* width: 100%; */
    height: auto;
    margin: 0 auto;
}

article picture img{
    /* object-fit: cover;
    height: 100%;
    width: 100%; */
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.15);
    display: block;
    max-width: 100%;
    margin: 30px auto;
    border-radius: 25px;
}

p{
    margin-bottom: 24px;
    line-height: 34px;
}

/* table */
.table{
    width: 100%;
    margin: 30px auto;
    font-size: var(--font-size);
}

.table tr{
    position: relative;
    border-bottom: 1.5px solid #000;
}

.table td{
    padding: 16px 20px 30px 0;
    text-align: left;
    box-sizing: border-box;
    vertical-align: middle;
}

.table_two-colums td{
    width: 50%;
}

.table_three-colums td{
    width: 33%;
}

.table_four-colums td{
    width: 25%;
}

/* footer */
.footer{
    position: relative;
    background-color: var(--color-footer);
    color: var(--color-text);
    margin-top: auto;
}

.footer__info{
    padding-top: 36px;
    padding-bottom: 36px;  
    text-align: center;
}

.footer__info p{
    color: var(--color-primary);
    margin: 0;
}

@media (max-width: 1300px){
    .article__up{
        right: 15px;
    }
}

@media (max-width: 1210px){
    .header__wrapper{
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (max-width: 1100px){
    .header__wrapper{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        row-gap: 30px;
    }

    .logo{
        max-width: fit-content;
    }
}

@media (max-width: 800px){
    article picture{
        width: 100%;
    }  
}

@media (max-width: 650px){
    h2{
        margin-top: 50px;
    }
    
    article{
        padding: 0 15px 80px 15px;
        gap: 20px;
    }

    article picture{
        max-width: 100vw;
        /* width: auto; */
        left: 50%;
        right: 50%;
        margin: 0 -50vw;
        align-self: center;
    } 

    .header__wrapper{
        padding-top: 20px;
        row-gap: 20px;
    }

    .button{
        width: 250px;
    }

    .burger{
        display: block;
        position: absolute;
        width: 30px;
        height: 30px;
        top: 20px;
        left: 30px;
        cursor: pointer;
        border-radius: 3px;
        transition: all .5s ease-in-out;
        margin-left: auto;        
    }

    .burger__line{
        width: 30px;
        height: 3px;
        border-radius: 3px;
        margin-bottom: 5px;
        background: var(--color-primary);
        transition: .25s ease-in-out;
    }

    .nav{        
        z-index: 20;
        position: absolute;
        transform: translateX(-150%);
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;        
        transition: all .8s;
        width: 80%;
        height: 100vh;
        flex-direction: column;
        align-items: start;
        justify-content: space-between;
        gap: 118px;
        background-color: var(--color-nav-bg);
    }

    nav.active{
        transition: all .5s ease-in-out;
        transform: translateX(0%);
    }

    .nav__close.active{
        display: block;
        position: absolute;
        top: 20px;
        left: 30px;
    }

    .navigation-list{
        display: flex;
        margin-top: 70px;
        margin-left: 65px;
        flex-direction: column;
        align-items: start;
        gap: 30px;
    }

    .navigation-item{            
        display: inline-block;            
    }   
    
    .navigation-link{
        font-size: 20px;
        color: white; 
    }

    .header__wrapper-button{
        flex-direction: column;
        align-items: center;
        row-gap: 10px;
    }

    .general__info{
        align-self: start;
    }

    .general__info-link{
        flex-direction: column;
        row-gap: 20px;
        align-items: start;
    }

    .general picture{
        max-width: 100vw;
        left: 50%;
        right: 50%;
        margin: 0 -50vw;
        align-self: center;
    } 

    .table{
        margin: 20px auto;
    }

    .table td{
        display:inline-block;
        width: 50%;
        font-size: 14px;
        padding: 16px 16px 16px 0;
    }

    .table tr:first-child{
        border-top: 1.5px solid #000;
    }

    .table tr:not(:last-child){
        border-bottom: none;
        position: relative;
    }

    .table tr:not(:last-child)::after{
        position: absolute;
        content: '';
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        height: 1px;
        background-color: #000000;
    }

    .table tr td:nth-child(odd){
        text-align: start;
        padding-left: 0;
    }

    .table tr td:nth-child(even){
        text-align: end;
        padding-right: 0;
    }

    .table tr td:nth-child(1),    
    .table tr td:nth-child(2){
        padding-bottom: 16px;
    }

    .table tr td:nth-child(3),    
    .table tr td:nth-child(4){
        padding-top: 16px;
    }
}
