:root {
  --primary-fg-color: #00215B;
  --secondary-fg-color: #D2153D;

  --primary-hl-color: #001ED3;
}

html {
  scroll-behavior: smooth;
}

html, body {
  min-width: 1280px;
  margin: 0;
  border: 0;
  padding: 0;
}

body {
  background: #fafafa;
}

a {
  text-decoration: none;
}

  a:hover {
    text-decoration: underline;
  }

h1 {
  font-family: 'Kanit';
  font-size: 55px;
  color: #00215B;
  clear: both;

  margin-top: 0;
}

.h-center {
  text-align: center;
}

.h {
  display: inline-block;
  margin-top: 64px;
  text-align: left;
}

h2 {
  margin-bottom: 0;
  font-family: 'Kanit';
  font-size: 32px;
  color: #00215B;
  clear: both;
}

h3 {
  margin-top: 0;
  font-family: 'Kanit';
  font-size: 22px;
  font-weight: normal;
}

h4 {
  margin-top: 2em;
  margin-bottom: -0.5em;

  font-family: 'Kanit';
  font-size: 18px;
  color: #D2153D;
  text-transform: uppercase;
}

p {
  font-family: 'Lato';
  font-size: 16px;
  line-height: 2em;
}

  p.bold {
    font-weight: bold;
  }

/* -------------------- */
/* GENERIC */
/* -------------------- */

.viewport-height {
  width: 100%;
  min-height: 100vh;
}

.outer-area {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
}

.inner-area {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* -------------------- */
/* REUSABLE */
/* -------------------- */

  .contact-card {
    display: inline-block;
  }

    .contact-card .icon {
      display: inline-block;
      width: 64px; height: 64px;
      line-height: 64px;
      vertical-align: middle;
    }

    .contact-card .icon svg {
      width: 42px; height: 42px;
      margin: 0 11px;
      vertical-align: middle;
      stroke: #fff;
    }

    .contact-card .text {
      display: inline-block;
      height: 64px;
      margin-left: 24px;
      margin-bottom: 22px;
      line-height: 32px;
      vertical-align: middle;
    }

      .contact-card .title {
        font-family: 'Kanit Light';
        font-size: 16px;
        text-transform: uppercase;
      }

      .contact-card .contact {
        font-family: 'Kanit';
        font-size: 22px;
        line-height: 28px;
      }

/* -------------------- */
/* SPECIFIC */
/* -------------------- */

.header {
  position: fixed;
  top: 0;
  width: 100%; height: 144px;
  border-bottom: 1px solid #D4D7DD;
  z-index: 1;
  overflow: hidden;
  background: white;
  /*box-shadow: 0px 10px 25px -15px #000;*/
  transition: top 0.5s ease-out;
}

.header.min {
  top: -80px;
}

  .upper {
    width: 100%;
    height: 55px;
    border-bottom: 1px solid #D4D7DD;
  }

    .sites {
      float: left;
      height: 56px;
      line-height: 56px;
      font-family: 'Kanit Light';
      font-size: 14px;
      text-transform: uppercase;
    }

      .sites a {
        text-decoration: none;
        color: #41444B;
      }

      .sites a:hover {
        text-decoration: underline;
      }

    .social {
      float: right;
      height: 56px;
      line-height: 56px;
    }

      .social a {
        text-decoration: none;
      }

      .social svg {
        margin-left: 12px;
        fill: var(--primary-fg-color);
        fill: #001ED3;
      }

      .social a:hover svg {
        text-decoration: none;
        fill: var(--secondary-fg-color);
      }

  .lower {
    position: relative;
    top: 0;
    width: 100%;
    height: 88px;
    line-height: 88px;
    transition: top 0.5s ease-out;
  }

  .header.min .lower{
    top: 12px;
  }

    .header .lower > div {
      transition: transform 0.5s ease-out;
    }
    
    .header.min .lower > div {
      transform: scale(0.8);
    }

    .logo {
      float: left;
      font-size: 14px;
    }

      .logo svg {
        vertical-align: middle;
      }

    .navigation {
      float: right;
      font-family: 'Kanit';
      font-size: 22px;
    }

      .navigation a {
        margin-left: 50px;
        vertical-align: middle;
        color: #41444B;
        color: var(--primary-fg-color);
      }

      .navigation a:hover {
        text-decoration: none;
        color: var(--secondary-fg-color);
      }

  .footer {
    position: relative;
    width: 100%; height: 480px;
    max-width: 1920px;
    margin: 5em auto 0 auto;
    overflow: hidden;
  }
  
    .footer .left {
      position: absolute;
      right: 50%;
      width: 780px;
      height: 100%;
      margin-right: 180px;
      background: var(--secondary-fg-color);
    }

      .footer .left .inner {
        position: absolute;
        right: 0;
        width: 420px;
        height: 100%;
        padding-top: 80px;
        color: #fff;
      }
  
    .footer .right {
      position: absolute;
      left: 50%;
      width: 1140px;
      height: 100%;
      margin-left: -180px;
      background: var(--primary-fg-color);
    }
    
      .footer .right .inner {
        position: absolute;
        left: 0;
        width: 780px;
        height: 320px;
        margin: 80px 0 80px 100px;
        color: #fff;
      }

      .footer .right a {
        font-family: 'Kanit';
        font-size: 18px;
        line-height: 2em;
        color: #fff;
      }

      .footer .copyright {
        position: absolute;
        bottom: 0;
        line-height: 28px;
        font-family: 'Kanit';
        font-size: 14px;
      }

      .footer .copyright a {
        font-family: 'Kanit';
        font-size: 14px;
        line-height: 28px;
        color: #fff;
      }

    .footer .contact-card {
      margin-left: -14px;
      margin-top: 2em;
    }

      .footer .contact-card .icon {
        background: none !important;
      }

  .footer .icon-social {
    display: inline-block;
    width: 42px; height: 42px;
    margin-top: 1em; margin-right: 16px;
    line-height: 42px;
    border-radius: 21px;
    background: #fff;
  }

  .footer .icon-social:first-of-type {
    margin-left: 80px;
  } 

    .footer .icon-social svg {
      margin: 0 9px;
      vertical-align: middle;
      fill: var(--secondary-fg-color);
    }
      
/* ----- Úvod ----- */

.section-uvod {
  display: flex;
  box-sizing: border-box;
  position: relative;
  padding-top: 145px;
  justify-content: center;
  align-items: center;
}

  .section-uvod .slider {
    position: relative;
    width: 100%;
    height: 900px;
    box-shadow: 0px 10px 25px -15px #000;
  }

    .slider .before {
      position: absolute;
      width: 100%; height: 100%;
      margin: 0 auto;
      background: url('media/slider_b.jpg') center 25% / cover;
    }
  
    .slider .after {
      position: absolute;
      width: 100%; height: 100%;
      margin: 0 auto;
      background: url('media/slider_a.jpg') center 25% / cover;
      /*border-left: 6px dashed white;*/
      clip-path: inset(0 0 0 70%);
  
      /*display: none;*/
    }
  
    .slider .delimiter {
      position: absolute;
      width: 70%; height: 100%;
      margin: 0 auto;
      border-right: 6px dashed white;
      /*clip-path: inset(0 0 0 50%);*/
  
      /*display: none;*/
    }

    .slider .overlay {
      display:  inline-block;
      margin-top: 288px;
      line-height: 88px;
      vertical-align: middle;
      font-family: 'Kanit Semibold';
      font-size: 80px;
      color: #fff;
    }

      .slider p {
        width: 880px;
        margin-top: 2.5em;
        font-weight: 500;
      }

      .slider .button {
        display: inline-block;
        height: 64px;
        padding: 0 3em;
        line-height: 64px;
        background: #D2153D;
        font-family: 'Kanit';
        font-size: 20px;
        color: #fff;
      }

/* ----- O nás ----- */

  .section-o_nas p {
    width: 600px;
    font-size: 17px;
    text-align: justify;
  }

/* ----- Služby ----- */

  .section-sluzby p {
    font-size: 17px;
    text-align: justify;
  }

  .grid {
    display: grid;
    width: 100%;
    margin: 32px 0;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 420px);
    grid-column-gap: 0;
    grid-row-gap: 64px;
  }

  .cell {
    padding: 4em;
  }

  .cell.photo {
    /*padding: 16px;*/
    border: 16px solid white;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    box-shadow: 0px 10px 25px -15px #000;
    transform: rotate(-3deg);
  }

  .cell.photo:nth-of-type(even) {
    transform: rotate(3deg);
  }
  
  .cell.dlazba {
    background: url('media/sluzby-dlazby.jpg');
  }

  .cell.strecha {
    background: url('media/sluzby-strechy.jpg');
  }

  .cell.fasada {
    background: url('media/sluzby-fasady.jpg');
  }

/* ----- Kontakt ----- */

  .section-kontakt h2 {
    text-align: center;
  }

  .section-kontakt p {
    text-align: center;
  }

  .section-kontakt .map {
    width: 100%; height: 480px;
    background: url('media/mapa.png');
  }

  .note {
    float: left;
    position: relative;
    width: 420px; height: 280px;
    top: -106px;
    border-top: 6px solid #D2153D;
    background: #fff;
    box-shadow: 0px 10px 25px -15px #000;
  }

    .note .content {
      display: inline-block;
      height: 64px;
      margin: 48px;
      line-height: 32px;
      vertical-align: middle;
    }

      .note .title {
        font-family: 'Kanit Light';
        font-size: 16px;
        text-transform: uppercase;
      }

      .note .contact {
        font-family: 'Kanit';
        font-size: 32px;
        line-height: 38px;
        color: #00215B;
      }

  .section-kontakt .contact-card {
    margin-left: 64px;
  }

    .section-kontakt .contact-card .icon.phone {
      background: #D2153D;
    }

    .section-kontakt .contact-card .icon.email {
      background: #00215B;
    }

  .phone-and-email {
    float: right;
    position: relative;
    height: 180px;
    line-height: 180px;
  }

.test {
  background: url(media/img3.jpg) 50% 45% / cover;
  height: 380px;
  filter: grayscale(1);
  /*position: absolute;
  width: 100%;
  bottom: 0;*/
}