.template-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: transform 0.2s, border-color 0.2s;
}
.template-card:hover {
  transform: translateY(-4px);
  border-color: #49cd8a77;
}
.template-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.45;
  background: #191c19;
}
.template-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.template-card:hover .template-card-image img {
  transform: scale(1.025);
}
.template-card-type {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid #ffffff24;
  border-radius: 20px;
  background: #111412e8;
  color: #d8e0d8;
  font-size: 10px;
  font-weight: 750;
}
.template-card-no-image {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}
.template-card-copy {
  padding: 20px;
}
.template-card-copy h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
}
.template-card-copy p {
  min-height: 52px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.template-card-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.template-card-buy strong {
  font-size: 15px;
}
.template-card-buy a {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.template-catalog-hero {
      padding: 100px 0 75px;
    }
    .template-catalog-hero h1 {
      max-width: 920px;
    }
    .template-catalog-hero .lead {
      max-width: 760px;
    }
    .template-catalog-hero .button {
      margin-top: 17px;
    }
    .template-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      margin: -10px 0 25px;
    }
    .template-filters button {
      padding: 9px 13px;
      border: 1px solid var(--line);
      border-radius: 25px;
      background: transparent;
      color: var(--muted);
      font-size: 11px;
      font-weight: 750;
    }
    .template-filters button:hover,
    .template-filters button.active {
      border-color: #49cd8a70;
      background: #49cd8a12;
      color: var(--green);
    }
    .template-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }
    .template-catalog-note {
      margin: 18px 0 0;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.7;
    }
    .template-how {
      background: #101110;
    }
    @media (max-width: 800px) {
      .template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .template-catalog-hero {
        padding-top: 75px;
      }
    }
    @media (max-width: 560px) {
      .template-grid {
        grid-template-columns: 1fr;
      }
      .template-catalog-hero {
        padding-top: 60px;
      }
      .template-filters {
        gap: 7px;
      }
      .template-filters button {
        padding: 8px 10px;
      }
    }
