: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;
  font-family: 'Noto Sans';
}

a {
  text-decoration: none;
}

  a:hover {
    text-decoration: underline;
  }

h1 {
  font-family: 'Kanit';
  font-size: 55px;
  font-weight: 500;
  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;
  font-weight: 600;
  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;
  font-weight: 600;
  color: #D2153D;
  text-transform: uppercase;
}

p {
  font-family: 'Noto Sans';
  font-size: 16px;
  line-height: 2em;
}

  p.bold {
    font-weight: 600;
  }

/* -------------------- */
/* GENERIC */
/* -------------------- */

.viewport-height {
  width: 100%;
  min-height: 100vh;
}

.outer-area {
  position: relative;
  width: 90%;
  width: calc(100% - 200px);
  max-width: 1920px;
  margin: 0 auto;
}

.inner-area {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* -------------------- */
/* REUSABLE */
/* -------------------- */

.contact-card {
  display: 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;
    font-family: 'Kanit';
  }

    .contact-card .title {      
      font-size: 16px;
      font-weight: 300;
      text-transform: uppercase;
    }

    .contact-card .contact {
      font-size: 22px;
      line-height: 28px;
    }

.icon-social {
  display: inline-block;
  width: 42px; height: 42px;
  margin: 1em 8px;
  line-height: 42px;
  border-radius: 21px;
}

  .icon-social svg {
    height: 24px;
    margin: 0 9px;
    vertical-align: middle;
  }

/* -------------------- */
/* 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;
}

  .upper {
    width: 100%;
    height: 55px;
    border-bottom: 1px solid #D4D7DD;
  }

    header .sites {
      float: left;
      height: 56px;
      line-height: 56px;
      font-family: 'Kanit';
      font-size: 14px;
      font-weight: 300;
      text-transform: uppercase;
    }

      .sites a {
        text-decoration: none;
        color: #41444B;
      }

      .sites a:hover {
        text-decoration: underline;
      }

    header .social {
      float: right;
      height: 56px;
      line-height: 56px;
    }

      header .social a {
        text-decoration: none;
      }

        header .social svg {
          height: 16px;
          margin-left: 12px;
          fill: var(--primary-hl-color);
        }

        header .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;
  }

    .logo {
      float: left;
      font-size: 14px;
    }

      .logo svg {
        height: 28px;
        vertical-align: middle;
      }

    nav.desktop {
      float: right;
      font-family: 'Kanit';
      font-size: 22px;
    }

    nav.desktop a {
        margin-left: 50px;
        vertical-align: middle;
        color: var(--primary-fg-color);

        /*margin-left: 30px;
        padding-left: 8px;
        border-left: 12px solid transparent;
        vertical-align: middle;
        color: var(--primary-fg-color);*/
      }

      nav.desktop a:hover {
        text-decoration: none;
        color: var(--secondary-fg-color);

        /*text-decoration: none;
        border-left: 12px solid var(--primary-fg-color);
        border-bottom: 2px solid var(--primary-fg-color);*/
      }

    .navigation-button {
      display: none;
      float: right;
      position: relative;
      right: -20px;
      width: 64px; height: 100%;
      border-right: 20px solid var(--secondary-fg-color);
      text-align: center;
    }

      .navigation-button svg {

        height: 30px;
        vertical-align: middle;
        fill: var(--primary-fg-color);
      }

    .navigation-button.open {

      /*height: 100vh;*/
      background: var(--primary-fg-color);
    }

      .navigation-button.open svg {

        fill: #fff;
      }

header.min {
  top: -80px;
}

  header.min .lower{
    top: 12px;
  }

    header .lower > div {
      transition: transform 0.5s ease-out;
    }
    
    header.min .lower > div {
      transform: scale(0.8);
    }

nav.mobile {
  display: none;
  position: fixed;
  box-sizing: border-box;
  top: 81px;
  width: 100%; height: calc(100% - 81px);
  padding-top: 1em;
  z-index: 1;
  background: #fff;
  text-align: center;
  text-transform: uppercase;
  font-family: 'Kanit';
  font-size: 20px;
  visibility: hidden;
}

nav.mobile.open {
  visibility: visible;
}

  nav.mobile > a {
    display: block;
    width: 100%;
    margin: 0.7em 0;

    font-size: 28px;
    color: #41444B;
    color: var(--primary-fg-color);
  }

  nav.mobile .icon-social {
    background: var(--primary-fg-color);
  }

    nav.mobile .icon-social svg {
      fill: #fff;
    }

  nav.mobile .sites {
    position: absolute;
    bottom: 2em;
    width: 100%;
  }

footer {
  position: relative;
  width: 100%; height: 480px;
  /*max-width: 1920px;*/
  margin: 5em auto 0 auto;
  overflow: hidden;
  color: #fff;
}
  
  footer a {
    font-family: 'Kanit';
    color: #fff
  }

  footer .icon-social {
    background: #fff;
  }

  footer .icon-social:first-of-type {
    margin-left: 80px;
  } 

    footer .icon-social svg {
      fill: var(--secondary-fg-color);
    }

  footer .copyright {
    display: inline-block;
    line-height: 28px;
    font-family: 'Kanit';
    font-size: 14px;
  }

  footer .left {
    position: absolute;
    right: 50%;
    width: 100%; height: 100%;
    margin-right: 180px;
    background: var(--secondary-fg-color);
  }

    footer .left .inner {
      position: absolute;
      right: 0;
      width: 420px; height: 100%;
      padding-top: 80px;
      text-align: left;
    }

    footer .left .copyright {
      display: none;
      margin-top: 32px;
    }

  footer .right {
    position: absolute;
    left: 50%;
    width: 100%; 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;
    }

      footer .right .inner > a {
        font-family: 'Kanit';
        font-size: 18px;
        line-height: 2em;
      }

    footer .right .copyright {
      position: absolute;
      bottom: 0;
    }

    footer .contact-card {
      margin-left: -14px;
      margin-top: 2em;
    }

      footer .contact-card .icon {
        background: none !important;
      }

/* ----- Úvod ----- */

.section-uvod {
  display: flex;
  box-sizing: border-box;
  position: relative;
  padding-top: 145px;
  justify-content: center;
  align-items: center;
}

  .slider {
    position: relative;
    width: 100%; height: 900px;
    box-shadow: 0px 10px 25px -15px #000;
  }

  .slider.vertical {
    display: none;
    position: relative;
    width: 100%; height: 100%;
    box-shadow: 0px 10px 25px -15px #000;
  }

    .slider .before {
      position: absolute;
      width: 100%; height: 100%;
      margin: 0 auto;
      background: url('media/slider-before.jpg') center 10% / cover;
      clip-path: inset(0 0 0 70%);
    }

    .slider .after {
      position: absolute;
      width: 100%; height: 100%;
      margin: 0 auto;
      background: url('media/slider-after.jpg') center 10% / cover;
    }
  
    .slider .delimiter {
      position: absolute;
      width: 70%; height: 100%;
      margin: 0 auto;
      border-right: 6px dashed white;
    }

    .slider .overlay {
      display:  inline-block;
      margin-top: 288px;
      line-height: 88px;
      vertical-align: middle;
      font-family: 'Kanit';
      font-size: 80px;
      font-weight: 500;
      color: #fff;
    }

      .slider p {
        width: 880px;
        margin-top: 2.5em;
        font-weight: 400;
        text-shadow: 0px 0px 20px #000;
      }

      .slider .button {
        display: inline-block;
        height: 64px;
        padding: 0 3em;
        line-height: 64px;
        background: #D2153D;
        font-family: 'Kanit';
        font-size: 20px;
        font-weight: 400;
        color: #fff;
      }

/* ----- O nás ----- */

  .section-o_nas p {
    width: 600px;
    text-align: justify;
  }

  .medailon {
    width: 480px;
    height: 848px;
    margin-bottom: 1em;
    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);

    position: relative;
    left: 42em;
    top: -11em;

    /*display: flex;
    justify-content: center;
    align-items: center;*/
  }

    .medailon video {
      position: absolute;
      width: 100%;
      height: 100%;
    }

    .medailon #video-control {
      display: flex;
      width: 100%;
      height: 100%;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      cursor: pointer;
    }

      .medailon svg {
        position: absolute;
        width: 120px;
        fill: #fff;
        transform: scale(1);
        transition: transform 0.3s ease-out, fill 0.3s ease-out;
      }

      .medailon .pause {
        display: none;
        position: absolute;
        width: 100%;
        height: 100%;
      }

      .medailon #video-control:hover .play {
        fill: #ffffffaa;
        transform: scale(1.2);
      }

      .medailon #video-control.playing .play {
        fill: #ffffff00;
        transform: scale(10);
        animation: zoom-out 0.3s step-end 0.3s forwards;
      }

      .medailon #video-control.playing .pause {
        display: block;
      }  

  @keyframes zoom-out {
    100% {
      transform: scale(0);
    }
  }

/* ----- Služby ----- */

  .section-sluzby p {
    text-align: justify;
  }

  .grid {
    display: grid;
    width: 100%;
    margin: 2em 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.fasada {
    background: url('media/sluzby/fasada.jpg') center / cover;
  }

  .cell.dlazba {
    background: url('media/sluzby/dlazba.jpg') center / cover;
  }

  .cell.strecha {
    background: url('media/sluzby/strecha.jpg') center / cover;
  }

/* ----- Kontakt ----- */

  .section-kontakt h2 {
    text-align: center;
  }

  .section-kontakt p {
    text-align: center;
  }

  .section-kontakt .map {
    width: 100%; height: 480px;
    border: 0;
    /*background: url('media/mapa.png');*/
    box-shadow: 0px 10px 25px -15px #000;
  }

  .note {
    float: left;
    position: relative;
    width: 420px; height: 280px;
    top: -106px;
    border-top: 6px solid #D2153D;
    background: #fff;
    box-shadow: 0px 10px 15px -15px #000;
  }

    .note .content {
      display: inline-block;
      height: 64px;
      margin: 48px;
      line-height: 32px;
      vertical-align: middle;
    }

      .note .title {
        font-family: 'Kanit';
        font-size: 16px;
        font-weight: 300;
        text-transform: uppercase;
      }

      .note .contact {
        font-family: 'Kanit';
        font-size: 32px;
        line-height: 38px;
        color: #00215B;
      }

  .section-kontakt .contact-card {
    display: inline-block;
    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;*/
}