/* ------- CSS RESET -------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

/* ------- FONTS -------- */

@font-face {
    font-family: 'pt_serifbold';
    src: url('../fonts/ptserifbold-webfont.woff2') format('woff2'),
         url('../fonts/ptserifbold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'pt_serifregular';
    src: url('../fonts/ptserifregular-webfont.woff2') format('woff2'),
         url('../fonts/ptserifregular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'open_sansextrabold';
    src: url('../fonts/opensans-extrabold-webfont.woff2') format('woff2'),
         url('../fonts/opensans-extrabold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'open_sansbold';
    src: url('../fonts/opensans-bold-webfont.woff2') format('woff2'),
         url('../fonts/opensans-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'open_sansregular';
    src: url('../fonts/opensans-regular-webfont.woff2') format('woff2'),
         url('../fonts/opensans-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* ------- MAIN -------- */

body{
    background: #f7f7f7;
    font-family: 'pt_serifregular';
    font-size: 18px;
    line-height: 1.5em;
    color: #2f2f2f;
}
body > header {
    background: #f7f7f7;
    width: 100%;
    height: 60px;
    display: grid;
}
body > header > h1{
    display: none;
}
.wrapper{
    width: calc(100% - 20px);
    max-width: 1200px;
    margin: 0px auto;
}
nav > h2{
    display:none;
}
header .logo{
    font-size:0;
    line-height: 1;
}
.header-wrapper{
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto;
    justify-content: space-between;
    align-items: center;
}
.logo{
    height: 44px;
}
.logo img{
    height: 100%;
}
nav > ul{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 0px 0px;
}
nav ul li a{
    text-decoration: none;
    color: #2f2f2f;
    text-transform: uppercase;
    font-family: 'open_sansregular';
    font-size: 0.9em;
    padding: 10px;
    transition: all;
    transition-duration: 0.5s;
}
nav ul li a:hover{
    background: #dbdbdb;
    color: #276946;
}
#baner{
    height: 500px;
    background: url('../img/baner.jpg');
    background-position: center center;
    background-size: cover;
}
#baner .wrapper{
    display: grid;
    grid-template-columns: 20% auto 20%;
    grid-template-rows: auto;
    height:100%;
    align-items: center;
    align-content:  center;
    
}
#baner h2{
    font-family: 'open_sansextrabold';
    font-size:  2.6em;
    line-height: 1.5em;
    color: #f7f7f7;
    grid-column: 2/2;
    text-align: center;
    text-shadow: 0px 0px 15px #2e2e2e;
}
#about .wrapper{
    margin: 30px auto 50px auto;
}
.section-h2{
    font-family: 'open_sansextrabold';
    font-size: 2.2em;
    line-height: 1em;
    width: 30%;
    padding: 25px 0px;
    margin-bottom: 25px;
    border-bottom: 1px solid #c6c6c6;
}
#about .wrapper ul{
    margin: 20px 0px;
}
#about .wrapper ul li{
    list-style-type: disc;
    list-style-position: inside;
}
#about .wrapper .sign{
    text-align: right;
    margin:40px 0px 0px 0px;
    font-family: 'pt_serifbold';
}
#about .wrapper i{
    font-style: italic;
}
#systems{
    background: #efefef;
    padding: 30px 0px 50px 0px;
}
#systems ul{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: 1fr;
    gap: 25px;
    align-items: center;
}
#systems ul li{
    background: #f7f7f7;
    box-shadow: 0px 0px 10px 0px #bfbfbf;
}
#systems ul li a img{
    width: 80%;
    margin: 10%;
    float: left;
}
#systems ul li,#systems ul li a img{
    transition: all;
    transition-duration: 0.5s;
}
#systems ul li a img:hover{
    filter: brightness(1.2);
}
#systems ul li:hover{
    box-shadow: 0px 0px 13px 0px #363636;
}
footer{
    margin-top: 40px;
}
footer .wrapper{
    border-top: 1px solid #e3e3e3;
    padding: 30px 0px;
}
footer address{
    display: inline;
    padding-top:40px;
}
footer p{
    display: inline;
    float: right;
}
.tabs{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: 1fr;
    gap: 10px;
    margin: 30px 0px;
}
.tab{
    font-family: 'open_sansextrabold';
    font-size: 1.8em;
    padding: 15px 0px;
    border-bottom: 2px solid #ebf2ee;
}
.panels{
  min-height:300px;
  width:100%;
  padding:0px;
  margin: 40px 0px;
}
.panel{
  display:none;
  animation: fadein .8s;
}
.panel a{
    text-decoration: none;
    color: #276946;
}
.panel ul{
    list-style-type: disc;
    list-style-position: inside;
    margin: 20px auto;
}
@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
.radio{
  display:none;
}
#one:checked ~ .panels #one-panel,
#two:checked ~ .panels #two-panel,
#three:checked ~ .panels #three-panel,
#four:checked ~ .panels #four-panel
{
  display:block
}
#one:checked ~ .tabs #one-tab,
#two:checked ~ .tabs #two-tab,
#three:checked ~ .tabs #three-tab,
#four:checked ~ .tabs #four-tab,
#one:hover ~ .tabs #one-tab,
#two:hover ~ .tabs #two-tab,
#three:hover ~ .tabs #three-tab,
#four:hover ~ .tabs #four-tab{
  color: #276946;
  border-bottom-width: 4px;
}
#contact .wrapper{
    margin: 40px auto;
    min-height: 300px;
}
@media all and (max-width:1260px){
    .wrapper{
        width: calc(100% - 40px);
    }
    #baner{
        height:350px;
    }
    #baner .wrapper{
        grid-template-columns: 100%;
    }
    #baner h2{
        font-size: 2em;
        grid-column: 1/1;
    }
    .tab{
        font-size: 1.4em;
    }
}
@media all and (max-width:800px){
    .section-h2{
        font-size: 1.6em;
    }
    #baner{
        height:200px;
    }
    #baner h2{
        font-size: 1.4em;
    }
    #systems ul{
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: 1fr 1fr;
        max-width: 500px;
        margin: 0px auto;
}
    .tab{
        font-size: 1em;
        padding: 10px 0px;
        text-align: center;
    }
    .logo {
        height: 30px;
    }
    nav ul li a{
        font-size: 0.8em
    }
}
@media all and (max-width:480px){
    #baner h2{
        font-size: 1.2em;
    }
    nav ul li a{
        padding: 5px;
    }
    .tab{
        font-size: 0.8em;
    }
    p,address,ul{
        font-size: 0.8em;
    }
    .section-h2{
        font-size: 1em;
    }
}