html {font-size: 62.5%;} /* reset font-size to 10px  */
:root {
  --klingspor: #fdf53a;
  --black: #000;
  --poppins: 'Poppins', sans-serif;
  --shadow: 0 5px 5px 3px rgba(0,0,0,.12);
}

body {font: 400 1.6rem/1.4 "Poppins", sans-serif; color: #2e2e2e;}

.h-hidden {overflow: hidden;}
.whiteColor {color: #fff;}
.klColor {color: var(--klingspor);}
.blackbg {background: var(--black)}
.maxw {width: 100%; max-width: 1360px; margin: auto;}
.w100 {width: 100%;}

/* padding containers */

.group {padding: 0 20px;}
.plite {padding-top: 50px; padding-bottom: 50px;}
.pmedium {padding-top: 80px; padding-bottom: 80px;}
.plarge {padding-top: 120px; padding-bottom: 120px;} 
.ptop {padding-top: 100px;} 
.pltop {padding-top: 50px;}


/* klingspor page */
.gray-box {
  box-shadow: 0 5px 5px 3px rgba(0,0,0,.12);
  border-radius: 35px; background: #f5f5f5;
}

.titleblock, .introblock {
  max-width: 850px; margin: 0 auto 30px;
}
.titleblock p {font-size: 1.8rem;}

.title {font: 700 3.8rem/1.2 'Poppins', sans-serif;}

.cert-content {
  padding: 20px 120px; box-shadow: var(--shadow);
  background: var(--klingspor);
  border-radius: 0 0 200px 200px;
  & .cert-description {
    padding: 20px 0;
    & h2 {
      font-family: "Montserrat";
      line-height: 1; font-weight: 800;
      font-size: 2.6rem; margin-bottom: 20px;
      & img {
        max-width: 80px; vertical-align: bottom;
      }
    }
  }
  & img {max-width: 450px;}
}

.why-klingsport {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.why-item {
  background: #2b2b2b;
  border: 3px solid var(--klingspor);
  border-radius: 10px; padding: 20px;
  img {max-width: 50px;}
  h3 {color: var(--klingspor);}
  p {color: #fff;}
}

.klingsport-categories {
  display: flex;
  a {
    display: block; width: 100%;
    border-radius: 15px; overflow: hidden;
    border: 3px solid var(--klingspor);
    background-size: cover; min-height: 17vw;
    position: relative;
    .title-link {
      color: #fff; height: 100%;
      padding: 30px 40px; position: relative;
      h3 {
        font-size: 1.6rem; line-height: 1; color: white;
        font-weight: 700;
        span {
          font-size: clamp(2.8rem, 3.2vw, 4.5rem);
          display: block;
        }
      }
    }
    p {
      display: inline-block; font-weight: 700;
      color: #000; padding: 6px 35px;
      background: #fff; border-radius: 10px;
      border: 2px solid var(--klingspor);
    }
    img {
      position: absolute;
      bottom: 0; right: 0;
      max-width: 70%;
    }
    &:before {
      content: ""; position: absolute; inset: 0;
      background: var(--bghead) center center;
      background-size: cover;
      transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
      will-change: transform;
    }
    &:hover::before {transform: scale(1.15) rotate(5deg);}
  }
  .vertical-links {
    width: 120%;  
    a {height: 100%;}
  } 
}

.klingsport-video {width: 100%; margin: auto;}

.wsp-contact {
  text-align: center; padding: 35px; 
  font-family: "Montserrat";
  h2 {
    font-family: "Montserrat"; font-weight: 900;
    padding-bottom: 10px;
  }
  a {
    padding:8px 35px; background: var(--klingspor);
    color: #000; font-weight: 700; border-radius: 25px;
    img {max-width: 34px; margin-right: 10px; vertical-align: bottom;}
  }
} 

.videoContent {
    height: 0; overflow: hidden;
    padding: 30px 0 56.25%; position: relative;
    box-shadow: 0 0 15px rgba(0,0,0,.3);
    border: 3px solid #fff; margin-bottom: 15px;
}
.videoContent iframe, .videoContent object, .videoContent embed {
    width: 100%; height: 100%;
    left: 0; top: 0; position: absolute;
}

/* klingsport pages */
.klingspor-page {
  background: var(--bghead) no-repeat center top;
  background-size: cover;
  .klingspor-head {
    height: 100dvh; padding: 140px 20px 60px;
    h1 {
      font-size: clamp(5rem, 9vw, 12rem); line-height: 1;
      span {display: block; font-size: 3rem;}
    }
  }
}

.klingspor-menu {
  width: 100%; max-width: 420px;
  border-radius: 35px; margin-bottom: 35px;
  .black-column {
    width: 100%; max-width: 70px;
    min-height: 100%; background: #000;
    border-radius: 35px;
  }
  ul {
    padding: 40px 0; flex-grow: 1;
    li {
      list-style-type: none;
      position: relative;
      &:before {
        content: ""; position: absolute;
        width: 60px; height: 60px;
        right: calc(100% + 4px); top: 0px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
      }
      &[data-ico*="fibra"]::before {background-image: url('../img/fibra-ico.webp');}
      &[data-ico*="lija"]::before {background-image: url('../img/lijas-ico.webp');}
      &[data-ico*="desbaste"]::before {background-image: url('../img/corte-desbaste-ico.webp');}
      &[data-ico*="fresas"]::before {background-image: url('../img/fresas-ico.webp');}
      a {
        width: 100%; display: flex;
        justify-content: space-between;
        align-items: center; text-transform: uppercase;
        padding: 12px 12px 12px 10px; color: #000;
        border-radius: 0 35px 35px 0;
        i {
          font-size: 3rem; color: #989898;
          margin-left: 10px;
        }
        &:hover, &.active {
          box-shadow: 0 5px 5px 3px rgba(0,0,0,.1);
        }
      }
    }
  }
}

.use-methods {
  h2 {
    text-align: center; font-family: "Montserrat";
    font-weight: 900; margin-bottom: 25px;
    font-size: 4rem; line-height: 1.2;
    span {
      display: block; font-size: 2rem;
    }

  }
}

.klingspor-products {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 1fr;
  grid-column-gap: 60px;
  grid-row-gap: 0px;
  align-items: start;
} 

.products-grid {
  display: grid; margin-top: 0;
  grid-template-columns: repeat(3, 1fr);
  text-align: center; gap: 20px;
}

.klingsporItem {
  cursor: pointer; max-width: 400px; min-height: 100%;
  background: var(--klingspor); border-radius: 30px;
  box-shadow: 0 4px 4px 4px rgba(0,0,0,.1);
  img {
    width: 100%; background: #fff; 
    border-radius: 30px; margin-bottom: 16px;
    box-shadow: 0 4px 4px 4px rgba(0,0,0,.08);
  }
  h2 {
    font-size: 1.7rem;
    padding: 0 5px 16px;
    color: #000; text-transform: 
    uppercase; font-weight: 500;
  }
}

@media screen and (max-width: 1200px) {
  .klingspor-products {grid-column-gap: 30px;}
  .klingsporItem {
    & h2 {font-size: 1.5rem;}
  }
}

@media screen and (max-width: 980px) {
  .klingspor-products {grid-template-columns: repeat(1, 1fr);}
  .products-grid {gap: 20px; grid-row: 1; margin-bottom: 35px;}
  .klingspor-menu {
    position: fixed; top: 80px; z-index: 1;
    max-width: calc(100% - 44px); right: 100%; 
    border-radius: 0; transition: all ease .3s;
    padding-right: 6px;
    &:after {
      content: "\f0c9"; position: absolute;
      font: 900 1.8rem "Font Awesome 5 Free";
      text-rendering: auto; 
      top: 0; width: 36px; height: 36px;
      right: calc(0px - 36px); background: #f5f5f5;
      cursor: pointer; display: flex;
      justify-content: center; align-items: center;
      box-shadow: 3px 1px 3px rgba(0, 0, 0, .3);
    }
    & .black-column {max-width: 60px; border-radius: 0;}
    & ul {
      padding: 0px 0;
      & li::before {
        width: 40px; height: 40px;
        right: calc(100% + 8px);
        top: 6px;
      }
    }
  }

  .klingspor-menu-stiky {
    right: calc(0% + 44px);
    &:after {content: "\f00d";}
  }
}

@media screen and (max-width: 800px) {
  .klingsport-categories {grid-template-columns: repeat(2, 1fr); gap: 20px;}
}

@media screen and (max-width: 768px) {
  .pmedium, .plarge {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .cert-content {padding: 20px;}
  .klingsport-categories {
    & a {
      & .title-link {padding: 20px;}
      & p {padding: 6px 15px;}
    }
  }

}

@media screen and (max-width: 720px) {
  .title {font-size: 2.2rem;}
   .why-klingsport {
    grid-template-columns: 1fr;
    & .why-item {
      display: flex;
      align-items: center;
      & img {margin-right: 15px;}
    }
  }
  .cert-content {padding: 0 20px 20px;}
  .wsp-contact {padding: 20px 15px;}
}

@media screen and (max-width: 568px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .titleblock p {font-size: 1.6rem;}
}

@media screen and (max-width: 640px) {
  .cert-content, .wsp-contact {flex-direction: column;}
  .cert-description h2::before {display: none;}
}


@media screen and (max-width: 600px) {
  .klingsport-categories {
    flex-direction: column;
    & a {
      & .title-link {
       & h3 {margin-bottom: 20px;}
     }
      &:hover::before {transform: scale(1.15) rotate(0deg);}
      & img {max-width: 30%;}
    }
    & .vertical-links {width: 100%;}
  }
}


@media screen and (max-width: 480px) {
   .klingsport-categories {
      & a {
        & img {max-width: 50%;}
      }
    }
}

@media screen and (max-width: 349px) {
  .klingsport-categories {grid-template-columns: 1fr;}
}