/* basic reset */
body,* { margin: 0; padding: 0; }
button::-moz-focus-inner { border: 0; padding: 0; }
p, h1, h2, h3, h4, h5, h6, ul, ol { margin: 1em auto 1em auto; line-height: 1.3em; }
input, textarea, select { font-family: inherit; }
ul,ol { padding-left: 20px; }
li { margin: 0 auto; }
a img { border: none; }

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  color: #000;
  background: #dcdcdc;
  min-width: 440px;
}

a {
  color: #333;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;    
}

h2,h3 {
  text-transform: uppercase;
  margin: 0;
}
h1 {
  font-size: 1.75em;
  margin: 0;
}
h2 {
  font-size: 1.75em;
  text-align: center;
  margin: 40px auto;
  padding: 0 10px;
}
h3,h4 {
  font-size: 1.4em;
  margin: 0;
}

.text-center {
  text-align: center;
}

.content {
  min-width: 420px;
  max-width: 1360px;
  padding: 0 10px;
  margin: 0 auto;
}
.content.thin {
  max-width: 1140px;
  padding: 0;
}

#header {
  color: #000;
  background: #fff;
  padding: 15px 0;
}
#nav {
  display: inline-block;
  float: right;
  vertical-align: top;
  list-style: none;
}
#nav ul {
  padding: 0;
}
#nav li {
  display: inline-block;
  margin-left: 35px;
}
#nav li:first-of-type {
  margin-left: 0;
}
#bar,
#footer {
  color: #fff;
  background: #009ee3;
  padding: 40px 0; 
}
.footer-box {
  display: inline-block;
  vertical-align: top;
  margin: 0 0 0 70px;
}
#footer strong,
#footer span {
  color: #000;
}

#sluzby {
  text-align: center;
  padding: 5px 0 80px 0;
}
#sluzby .table {
  padding: 80px 0 0 0;
}
#sluzby .cell {
  font-size: 1.4em;;
  text-transform: uppercase;
  padding: 20px;
  width: 25%;
}
#reference {
  padding-top: 1px;
}
#reference-rizeni {
  padding: 0 0 40px 0;
}

#projects,
#scanner {
  padding: 1px 0 60px 0;
}
#scanner h2,
#scanner h3 {
  text-align: left;
  color: #fff;
  font-size: 1.4em;
  margin: 0;
}
#scanner h2 {
  padding: 0 50% 0 0;
}

#bar .cell {
  font-size: 1.4em;;
  text-transform: uppercase;
  text-align: center;
  width: 33%;
}
#bar img {
  display: block;
  margin: 0 auto 30px auto;
}

.img-max {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
.img-full {
  display: block;
  width: 100%;
  height: auto;
}
.img-scale {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.img-scale img {
  width: auto;
  min-height: 100%;
  min-width: 100%;
}

.table {
  display: table;
  vertical-align: top;
  width: 100%;
}
.table-onefive,
.table-twotree,
.table-twofive {
  display: table-cell;
  vertical-align: top;
  width: 40%;
}
.table-twotree {
  width: 67%;
}
.table-onefive {
  width: 20%;
}
.table-split .cell:first-of-type {
  border-right: 5px solid #dcdcdc;
}
.table-split .cell:last-of-type {
  border-left: 5px solid #dcdcdc;
}
.cell {
  position: relative;
  display: table-cell;
  vertical-align: top;
  width: 50%;
}
.box {
  padding: 50px;
}

.block.table-third {
  margin-left: -10px;
  width: calc(100% + 10px);
}
.table-third .cell {
  width: 33.3%;
  padding-left: 10px;
}

.icon {
  display: block;
  height: 130px;
  width: 130px;
  background: url('./img/icon.png') top center no-repeat;
  margin: 0 auto 40px auto;
}
.icon.rotate-1 {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}
.icon.rotate-2 {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}
.icon.rotate-3 {
  -webkit-transform: rotate(270deg);
  transform: rotate(270deg);
}
.icon.scanner {
  width: 184px;
  height: 165px;
  background: url('./img/icon_3d.jpg') top center no-repeat;
  margin: 0 auto 5px auto;
}

.block {
  margin: 10px 0;
}
.bg-white {
  background: #fff;
}
.bg-blue {
    background: #009ee3;
}
.blue {
  color: #009ee3;
}

.slide-text {
  width: 40%;
  padding: 150px 0 150px 150px;
}
#slide-1 {
  background: url('./slide.jpg') center center no-repeat;
  background-size: cover;
}

@media screen and (max-width: 800px) {
  body {
    font-size: 16px;
  }
  #header {
    text-align: center;
  }
  #nav {
    float: none;
    display: block;
  }
  .box {
    padding: 20px;
  }
  .table {
    display: block;
  }
  .cell {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .table-onefive,
  .table-twotree,
  .table-twofive {
    display: table;
    width: 100%;
  }
  .block.table-third { 
    width: 100%;
    margin-left: 0;
  }
  .table-third .cell {
    width: auto;
    padding: 10px 20px 10px 20px;
  }

  #scanner h2 {
    padding: 0;
  }
  #sluzby .table {
    padding-top: 20px;
  }
  #sluzby .cell {
    display: table-cell;
    width: 50%;
  }
  #bar .table {
    display: table;
  }
  #bar .cell {
    display: table-cell;
  }

  .table-split .cell {
      margin: 10px 0;
  }
  .table-split .cell:last-of-type,
  .table-split .cell:first-of-type {
    border-right: none;
    border-left: none;
  }
  .img-scale {
      position: relative;
  }
  
  .slide-text {
    width: auto;
    padding: 100px;
    background: rgba(255,255,255,0.6);
  }
  .footer-box {
    margin: 0 0 0 35px;
  }
}
@media screen and (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .slide-text {
    padding: 100px 50px;
  }
  #bar img {
    margin: auto;
  }
  #bar strong {
    display: none;
  }
  #footer {
    padding: 30px 0 10px 0;
    text-align: center;
  }
  .footer-box {
    display: block;
    margin: 20px;
  }
}
