/* general styles and variables */

:root {
    --white: #F0F0F0;
    --black: #333;
    --font-color: #666;
    --white-bg: #f6f6f6;
    --header-height: 50px;
}

* {
    margin: 0;
    padding: 0;
}

body {
    margin-top: var(--header-height);
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 100;
    color: var(--font-color);
    background: var(--white);
}

section {
  margin: 20px 0;
  font-weight: 300;
  line-height: 1.3;
}

strong {
  font-weight: bold;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

div, img {
  padding: 0;
  margin: 0;
}

/* =================== header = logo + nav =================== */
.header-main {
    background: var(--white);
    color: var(--font-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top:0;
    left:0;
    right: 0;
    box-shadow: 0 0 5px rgba(0,0,0,.3);
    z-index: 1000;
}

.hamburger-content {
    background: var(--white);
    width: 100%;
    position: absolute;
    top: var(--header-height);
    left: 0;
    padding: 10px;
    transition: all .3s linear;
    display: none;
    opacity: 0;
    z-index: 1000;
}
.hamburger-content__item {
    font-weight: 300;
    text-transform: uppercase;
    margin: 5px auto;
    padding: 10px 0;
}

.header-main__title {
    display: flex;
    align-items: center;
}
/* =================== logo =================== */
.logo {
    max-height: 50px;
    margin-left: 10px;
}
.logo-text {
    font-weight: 300;
    text-transform: uppercase;
    margin-left: 10px;
    font-size: 16px;
    letter-spacing: 3px;
    color: #5F676E;
}
.logo-secondline {
    color: #000;
    font-weight: bold;
}
/* logo end */
/* header end */


.section-header {
  font-size: 28px;
  font-weight: bold;
  color: var(--black);
  margin-bottom: 20px;
  margin-left: 10px;
  text-transform: uppercase;
}

.menu-active {
    color: #000;
    font-weight: bold;
}


/* =================== intro section =================== */

.introduction {
  height: calc(100vh - var(--header-height));
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  background: url("../images/hero.jpg");
  background-size: cover;
  background-position: 100% 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* clip-path: polygon(50% 0%, 50% 0%, 100% 0%, 100% 0%, 100% 95%, 50% 100%, 0% 95%, 0% 0%);   */
}

.introduction__container {
  background: rgba(0,0,0,.3);
  border-radius: 3px;
  width: 100%;
  max-width: 375px;
}


h1 {
  font-size: 40px;
  letter-spacing: 3px;
  color: var(--white);
  font-weight: normal;
  text-shadow: 0px 0px 5px var(--black);;
}

#wprowadzenie {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.intro {
  background: var(--white);
  display: grid;
  grid-template-columns: .5fr 8fr .5fr;
  grid-template-rows: 150px 1fr;
}

.intro__img {
  grid-area: intro-img;
  grid-column: 1/4;
  grid-row: 1/3;
  width: 100%;
}

.intro__img img {
  margin: 0;
  padding: 0;
  max-width: 100%;
  display: block;
}

.intro__text {
  grid-area: intro-text;
  grid-column: 2/3;
  grid-row: 2/3;
  color: var(--white);
  padding: 25px 3px;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
/* end of intro */

/* =================== description =================== */
.description {
  padding: 0 10px;
}

.description p {
  margin: 25px 0;
}
/* end of descriptions */

/* =================== we offer =================== */
.weoffer-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 25px auto;
}


.weofferitem {
  width: 100%;
  max-width: 420px;
 
}

.weofferitem__background {
  background: #fefefe;
}

.weoffer-item__img-container {
  position: relative;
}

.weoffer-item__img-container img {
  max-width: 100%;
  width: 100%;
}

.weoffer-item__img-container p {
  font-weight: 300;
  font-size: 16px;
  color: var(--white);
  text-transform: uppercase;
  padding: 2px;
  background: rgba(0,0,0,.7);
  width: 140px;
  text-align: center;
  position: absolute;
  left: 20px;
  bottom: 20px;
}

.weoffer-item__text-container {
  padding: 5px;
}

.weoffer-item__text-container h4 {
  margin: 5px 0;
  font-size: 14px;
}

.weoffer-item__text-container p {
  margin: 10px auto;
  font-size: 14px;
  font-weight: 300;
}
/* end of we offer */


/* =================== we did section =================== */

#realizacje {
  padding: 0 10px;
}

#realizacje .section-header {
  margin: 0;
}

.wedid-grid {
  margin: 25px auto;
}
.wedid-item-btn {
  background-color: transparent;
  color: var(--black);
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  padding: 10px 0;
  border: 1px solid var(--black);
  text-align: center;;
  outline: none;
  font-size: 20px;
  transition: 0.4s;
  margin: 10px auto;
  box-shadow: 0 1px 5px rgba(100, 100, 100, .2);
}

.wedid-item-btn:hover {
  background-color: #ccc;
}

.active-wedid-btn {
  background-color: #ccc;
  margin: 0 auto;
}

.wedid-item-panel {
  box-sizing: border-box;
  padding: 0 10px;
  background-color: #fefefe;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.wedid-item-panel__img {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.wedid-item-panel__img img {
  width: 100%;
  max-width: 500px;
  margin: 10px auto;
}

/* end of wedid */

/* =================== we work with =================== */

.weworkwith-grid {
  max-width: 315px;
  margin: 25px auto 50px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 0px;
  justify-items: center;
}

.weworkwith-tile {
  margin: 0 auto;
  width: 105px;
  height: 105px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255, 1);
  /* border: 1px solid rgba(150,150,150,.8); */
  position: relative;
}
.weworkwith-tile__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: rgba(33,33,33,.25);
}

.weworkwith-tile:nth-child(odd) .weworkwith-tile__overlay {
  background: rgba(146,129,129,.2);
}

.weworkwith-tile img {
  max-width: 100%;
}

/* end of we work with */


/* =================== contact section =================== */

.contact {
  margin: 0px auto;
}
.contact-grid {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-grid-left {
  text-align: center;
  background: #f2f1f1;
}

.contact-grid-left, .contact-grid-middle, .contact-grid-right {
  width: 375px;
  max-width: 100%;
  min-height: 320px;
  min-width: 320px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact p {
  font-weight: 300;
  font-size: 18px;
  text-align: center;
  margin: 5px auto;
  width: 100%;
}

.contact p img {
  width: 100px;
  display: block;
  margin: 0 auto 25px;
}

.contact-grid-middle {
  background: var(--white-bg);
}

.contact-grid-right {
  background: #eaeaea;
}
/* end of contact section */

/* =================== footer =================== */
.footer {
  background: var(--black);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 300;
  height: 50px;
}


@media(min-width: 500px) {
  .introduction {
    -webkit-clip-path: polygon(50% 0%, 50% 0%, 100% 0%, 100% 0%, 100% 90%, 50% 100%, 0% 90%, 0% 0%);  
    clip-path: polygon(50% 0%, 50% 0%, 100% 0%, 100% 0%, 100% 90%, 50% 100%, 0% 90%, 0% 0%);  
  }
}

/* =================== 640px =================== */
.display-640 {
  display: none;
}

@media (min-width: 640px) {

  .display-640 {
    display: block;
  }

  section {
    padding: 0 10px;
    margin: 30px 0;
  }

  .description {
    padding: 0 10px;
  }

  .main {
    max-width: 1100px;
    margin: 0 auto;
  }
  .intro {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: 
      'intro-img intro-text';
  }

  .intro__text {
    font-size: 20px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 3px;
    /* text-shadow: #000 1px 1px 0; */
  }

  .weoffer-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
  }
  .weofferitem {
    max-width: 320px;
    margin-bottom: 25px;
  }

  .weworkwith-grid {
    max-width: 450px;
    grid-template-columns: repeat(3,1fr);
  }

  .weworkwith-tile {
    width: 150px;
    height: 150px;
  }

  .contact {
    margin: 60px 0;
  }
}
/* =================== 960px =================== */
@media (min-width: 960px) {
  .contact-grid {
    flex-direction: row;
    justify-content: center;
  }

  .contact-grid-left, .contact-grid-middle, .contact-grid-right {
    width: 33%;
  }
}

/* =================== 1024px =================== */
@media (min-width: 1024px) {
  .intro__text {
    font-size: 20px;
    line-height: 1.3;
  }
}





/* ================================================================================= */
/* =================== hamburger behaviour =================== */
/* hamburger button  */
.hamburger {
    padding: 10px 15px;
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
    outline: none;
    cursor: pointer; }
    .hamburger:hover {
      opacity: 0.7; }
    .hamburger.is-active:hover {
      opacity: 0.7; }
    .hamburger.is-active .hamburger-inner,
    .hamburger.is-active .hamburger-inner::before,
    .hamburger.is-active .hamburger-inner::after {
      background-color: #000; }
  
  .hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative; }
  
  .hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px; }
    .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
      width: 30px;
      height: 2px;
      background-color: #000;
      border-radius: 4px;
      position: absolute;
      transition-property: transform;
      transition-duration: 0.15s;
      transition-timing-function: ease; }
    .hamburger-inner::before, .hamburger-inner::after {
      content: "";
      display: block; }
    .hamburger-inner::before {
      top: -10px; }
    .hamburger-inner::after {
      bottom: -10px; }

      .hamburger--collapse .hamburger-inner {
        top: auto;
        bottom: 0;
        transition-duration: 0.13s;
        transition-delay: 0.13s;
        transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }
        .hamburger--collapse .hamburger-inner::after {
          top: -20px;
          transition: top 0.2s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), opacity 0.1s linear; }
        .hamburger--collapse .hamburger-inner::before {
          transition: top 0.12s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19); }
      
      .hamburger--collapse.is-active .hamburger-inner {
        transform: translate3d(0, -10px, 0) rotate(-45deg);
        transition-delay: 0.22s;
        transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
        .hamburger--collapse.is-active .hamburger-inner::after {
          top: 0;
          opacity: 0;
          transition: top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), opacity 0.1s 0.22s linear; }
        .hamburger--collapse.is-active .hamburger-inner::before {
          top: 0;
          transform: rotate(-90deg);
          transition: top 0.1s 0.16s cubic-bezier(0.33333, 0, 0.66667, 0.33333), transform 0.13s 0.25s cubic-bezier(0.215, 0.61, 0.355, 1); }
      /* hamburger button end */


      @media (min-width: 767px) {
        .hamburger {
            display: none;
        }
        .hamburger-content {
            display: flex;
            position: static;
            opacity: 1;
            padding: 0;
        }
        .hamburger-content__item {
            margin: 0 10px;
        }
    }

    /* ============================================================================ */

/* tiny slider */

.tns-item {

  text-align: center;
}

.tns-item img {
  width: 320px;
}

[data-action="stop"], [data-action="start"] {
  display: none;
}

.navContainer {
  margin: 10px auto;
  display: flex;
  justify-content: center;
}

.navContainer>div {
  background: transparent;
  width: 15px;
  height: 5px;
  border-radius: 2px;
  border: 1px solid var(--font-color);
  margin: 10px;
  cursor: pointer;
}

.navContainer .tns-nav-active {
  background: var(--black);
}
