.templates {
  .templates-content {
    max-width: 1230px;
    padding: 0 15px;
    margin: 0 auto 104px;

    h2 {
      font-family: var(--ff-secondary);
      font-weight: 700;
      font-size: 120px;
      color: #000000;
      margin: 0 0 32px 0;
      line-height: 1 !important;
    }

    p {
      margin: 0;
      font-family: var(--ff-primary);
      font-weight: 400;
      font-size: 18px;
      color: #000000;
      max-width: 480px;
    }

    @media (max-width: 1024px) {
      display: none;
    }
  }

  .templates-title {
    font-family: var(--ff-primary);
    font-weight: 400;
    font-size: 18px;
    color: #181818;
    text-transform: uppercase;
    padding: 12px 16px;
    border: 1px solid #181818;
    width: 194px;
    margin: 0 auto;
    margin-bottom: 64px;
  }

  .templates-slider {
    margin-bottom: 104px;
    padding: 58px 0;
    background: #181818;
  }

  .templates-slider_wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    max-width: 1380px;
    margin: 0 auto;

    @media (max-width: 1024px) {
      display: flex;
      gap: 10px;
      padding-left: 24px;
      width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      padding-right: 24px;
      scrollbar-width: none;

      &::-webkit-scrollbar {
        display: none;
      }

      figure {
        width: 234px;

        @media (max-width: 1024px) {
          max-width: 219px;
        }
      }
    }

    figure {
      width: 100%;
      border-radius: 8px;
      overflow: hidden;

      video {
        width: 100%;
      }
    }
  }
}