
html, body {
    box-sizing: border-box;
    margin: 0 auto;
    height: 100%;
    width: 100%;
    font-family: 'Times New Roman', sans-serif;
    font-size: 15px;
}

h1 {
    font-size: 30px;
    color: #0a5aaf;
    margin-top: 6px;
    margin-bottom: -4px;
}

h2 {
    font-size: 20px;
    color: #0a5aaf;
    margin-top: 6px;
    margin-bottom: -4px;
}



main {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "header"
        "article"
        "footer";
        padding-bottom: 80px;
}

header {
    grid-area: header;
    width: 100%;
    height: 100px;
    background-color: #0a5aaf;
    display: grid;
    grid-template-columns: 150px 1fr;
    grid-template-rows: 1fr 2fr;
    grid-template-areas:
        "logo small_nav"
        "logo main_nav";
}

.logo {
    grid-area: logo;
    border-right: 1px solid #fff;
}

.logo-img {
    display: block;
    width: 120px;
    margin: 0 auto;
    padding-top: 28px;
}

.small_nav {
    grid-area: small_nav;
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    justify-items: center;
}

.small_nav a {
    color: #cdcecf;
    position: relative;
    align-items: center;
    font-size: 1em;
    padding-top: 7px;
    padding-right: 50px;
    text-decoration: none;
    transition: all 0.5s; 
}

.small_nav a:hover{
    color: #fff;
}


.small_nav a::before{
    content: "";
    display: block;
    position: absolute;
    background-image: url('img/icon.png');
    background-repeat: no-repeat;
    background-size: contain;
    width: 9px;
    height: 16px;
    top: 8px;
    left: -15px;
}

.small_nav a:hover:before {
    background-image: url('img/icon_hover.png');
    width: 16px;
    height: 9px;
    top: 11px;
    left: -20px;
}

.links {
    display: flex;
    margin:0 auto;
    width: 100%;
    max-width: 1000px;
    justify-content: space-around;
    height: 40px;
    background-color: #0a5aaf;
}
.active3 {
    color: #0a5aaf;
    background-color: #fff;
    font-weight: 550;
}

nav {
    grid-area: main_nav;
    display: flex;
    justify-content: space-around;
}

nav a, .links a{
    color: #fff;
    font-size: 1em;
    text-decoration: none;
    text-align: center;
    width: 100%;
    padding: 12px 5px 0px;
    border: 1px solid white;
    border-left: none;
    transition: all 0.5s;
}


nav a:hover, .links a:hover {
    color: #0a5aaf;
    background-color: #fff;
    font-weight: 550;
}

nav .active, .links .active {
    color: #0a5aaf;
    background-color: #fff;
    font-weight: 550;
}
.btns{
    display: none;
}


article {
    grid-area: article;
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

/*anim*/

.slideshow-container{
    width: 100%; 
    margin: 0 auto; 
    overflow: hidden;
}

.galery_text {
    position: absolute;
    color: #fff;
    text-shadow:  5px 5px 10px black;
    font-size: 160px;
    top: 30px;
    left: 30px;
    width: 100%;
  }

.slideshow-container img { 
    width: 100%; 
    animation: none 6s linear forwards; }

.anim {
    animation-name: anim;
    animation-duration: 6s;
  }

  @keyframes anim {
    0% { filter: grayscale(100%); opacity: 0; transform: scale(1.05); }
   15% { filter: grayscale(100%); opacity: 1; transform: scale(1); }
   25% { filter: grayscale(0%);}
   70% { filter: grayscale(0%); opacity: 1; transform: scale(1); }
   80% { filter: grayscale(100%); }
  100% { filter: grayscale(100%); opacity: 0; transform: scale(1.05); }}

.description{
    padding: 20px;
}
.description h1{
    color: #0a5aaf;
}
  
footer {
    grid-area: footer;
    width: 100%;
    color: #fff;
    background-color: #0a5aaf;
    text-align: center;
    padding: 2px 0;
    position: fixed;
    bottom: 0;
    left: 0;
}

.active {
    color: #0a5aaf;
    background-color: #fff;
    font-weight: 550;
}

.main-component {
    width: 100%;
    max-width: 1000px;
    padding: 0px 10px;
    min-height: 400px;
    margin:0 auto;
    /* border: 2px solid red; */
    text-decoration: none;
    color: black;
}

@media (max-width:2000px) {
    main {
        font-size: 14px;
    }
}

@media(max-width: 1100px) {
    .main-component {
        max-width: 800px;
    }
}

@media(max-width: 950px) {
    .main-component {
        max-width: 700px;
    }
}

@media (max-width:800px) {

    .links {
        display: flex;
        margin:0 auto;
        width: 100%;
        max-width: 1000px;
        justify-content: space-around;
        background-color: #0a5aaf;
        height: 30px;
    }
    .links a{
        font-size: 12px;
    }

    main {
        font-size: 12px;
        
    }
    .galery_text {
        font-size: 120px;
        top: 60px;
        left: 60px;
      }
    header {
        height: 50px;
        grid-template-columns: 110px 1fr;
        grid-template-rows: 0fr 1fr;
        grid-template-areas:
            "logo small_nav"
            "logo main_nav";
    }

    .btns{
        display: block;
    }
    .burger-btn, .close-btn {
        box-sizing: border-box;
        border: none;
        width: 25px;
        height: 25px;
        background-image: url('img/burger.png');
        background-repeat: no-repeat;
        background-position: center;
        cursor: pointer;
        display: none;
        position: fixed;
        top: 10px;
        right: 15px;
    }
    
    .close-btn{
        background-image: url('img/close.png');
        width: 25px;
        height: 25px;
    }

    .logo-img {
        display: block;
        width: 80px;
        margin: 0 auto;
        padding-top: 12px;
    }

    nav,
    .small_nav {
        position: fixed;
        right: -150px;
        top: 152px;
        background-color: #0a5aaf;
        width: 150px;
        display: flex;
        flex-flow: column;
        justify-content: flex-end;
        justify-items: left;
        z-index: 1;
        /* transition: 0.5s; */
        border: 1px solid #fff;
    }

    .small_nav {
        top: 50px;
    }
    
    .small_nav a:hover, nav a:hover {
        font-size: 12px;
        color: #0a5aaf;
        background-color: #fff;
        font-weight: 400;
    }


    .small_nav a::before {
        content: none;
    }

 nav a,
    .small_nav a {
        color: #fff;
        font-size: 12px;
        padding-top: 8px;
        padding-left: 5px;
        text-align: left;
        border: 1px solid #fff;
    }

    .burger-btn {
        display: block;
    }

    .active, .active2{
        position: fixed;
        right: 0px;
        top: 50px;
        background-color: #0a5aaf;
        width: 150px;
        display: flex;
        flex-flow: column;
        justify-content: flex-end;
        justify-items: center;
        z-index: 1;
    }
    .active2{
        position: fixed;
        right: 0px;
        top: 152px;
        background-color: #0a5aaf;
        width: 150px;
        display: flex;
        flex-flow: column;
        justify-content: flex-end;
        justify-items: center;
        z-index: 1;
    }

    .burger-btn-active {
        background-image: url('img/close.png');
        display: block;
    }

    .main-component {
        max-width: 600px;
    }

}


section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 20px;
    grid-template-areas:
        "kip_foto kip_description"
        "kip_table kip_table";
    /* border: 2px solid green; */
}

.kip_foto {
    grid-area: kip_foto;
    position: relative;
    overflow: hidden;
    width: 100%;
    background-color: #fff;
    display: block;
}

.kip_foto img {
    padding-top: 10px;
    width: 100%;
}


.kip_foto_button {
    display: block;
    background-color: #0a5aaf;
    color: #fff;
    border: none;
    padding: 10px 30px;
    margin: 10px auto;
    overflow: hidden;
    cursor: pointer;
}

.kip_description {
    grid-area: kip_description;
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fff;
    /* padding-left: 20px; */
    /* padding-right: 20px; */
     /* margin-right: 5px; */
    /* border: 2px solid red; */
    display: block;

}

.kip_more {
    grid-area: kip_table;
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fff;
    /* border: 1px solid blue; */
}

.kip_more_hiden {
    display: none; 
}

.table {
	width: 100%;
	margin-bottom: 20px;
	border: 1px solid #dddddd;
	border-collapse: collapse; 
}

.table caption{
    padding: 5px;
    font-size: larger;
}

.table th {
	font-weight: bold;
	padding: 5px;
	background: #efefef;
	border: 1px solid #dddddd;
}
.table td {
	border: 1px solid #dddddd;
	padding: 5px;
}

@media(max-width:800px) {

    .links {
        display: flex;
        justify-content: space-around;
        height: 30px;
    }
    .links a{
        font-size: 12px;
    }
    section {
        display: flex;
        grid-template-columns: 1f;
        grid-template-rows: 1fr;
        flex-direction: column;
        justify-content: center;
    }

    .kip_foto_button {
        display: none;
    }
    .kip_more_hiden {
        display: none; 
    }
}