@import url('https://fonts.cdnfonts.com/css/myriad-pro');

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;
}

/* HTML5 display-role reset for older browsers */
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;
}

/*end reset*/
.body {
    font-family: 'Myriad Pro', sans-serif;
}

.container {
    max-width: calc(100% - 20px);
    margin: 0 auto;
    padding: 20px 10px;
    width: calc(958px - 20px);
}

.infoline {
    background: #4D8B40;
}

.infoline p {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    font-family: 'Myriad Pro', sans-serif;
}

.navigation a.logo {
    float: left;
    margin-bottom: 20px;
}

.infoline a {
    font-size: 18px;
    font-weight: 300;
    text-decoration: none;
    color: #fff;
    font-family: 'Myriad Pro', sans-serif;
}

.navigation img {
    vertical-align: middle;
}

.navigation a {
    float: right;
    vertical-align: middle;
    font-size: 18px;
    text-transform: uppercase;
    text-decoration: none;
    color: #898B8D;
    font-family: 'Myriad Pro', sans-serif;
    font-weight: 300;
}

.navigation span {
    border-left: 1px solid #898B8D;
    padding-left: 29px;
    display: inline-block;
    width: 50px;
    float: right;
    vertical-align: middle;
    margin-top: 7px;
    font-family: 'Myriad Pro', sans-serif;
    font-weight: 300;
    font-size: 18px;
}

.first-content {
    width: 100%;
    min-height: calc(100vh - 128px);
    background-image: url('img/pvarmavision-motiv-zataljen.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    justify-content: center;
    display: flex;
}

.center-div {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    height: 100%;
}

h1 {
    text-align: center;
    font-size: 76px;
    font-weight: 700;
    color: #fff;
    font-family: 'Myriad Pro', sans-serif;
}

/*contact*/
.first-content-contact {
    width: 100%;
    padding-top: 50px;
    min-height: calc(100vh - 234px);
    background: #F6F7F8;
    display: flex;
}

h2 {
    text-align: left;
    font-size: 60px;
    font-weight: 700;
    color: #4D8B41;
    font-family: 'Myriad Pro', sans-serif;
}

.first-content-contact p {
    font-size: 30px;
    font-weight: 300;
    text-decoration: none;
    color: #898B8D;
    font-family: 'Myriad Pro', sans-serif;
    padding: 30px 0;
    line-height: 130%;
    max-width: 693px;
}

/*footer*/
.footer {
    background: #4D8B40;
}

.footer p {
    padding: 0;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Myriad Pro', sans-serif;
    font-weight: 300;
}

@media only screen and (max-width: 425px) {
    .navigation img {
        vertical-align: middle;
        max-width: 200px;
    }

    h2 {
        font-size: 40px;
    }

    .first-content-contact {
        min-height: calc(100vh - 226px);
    }
    .first-content {
        min-height: calc(100vh - 120px);
    }
    h1 {
        font-size: 60px;
    }
    .center-div img {
        max-width: 70%;
    }
}
@media only screen and (max-width: 306px) {
    .navigation img {
        max-width:150px;
    }
    .navigation span{
        margin-top:0;
    }
    h2 {
        font-size: 40px;
    }

    .first-content {
        min-height: calc(100vh - 116px);
    }
    .first-content-contact {
        min-height: calc(100vh - 223px);
    }
    h1 {
        font-size: 50px;
    }
    .first-content-contact p{
        font-size: 25px;
    }
}