.templates-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(210, 75, 58, 0.08), transparent 40%),
    linear-gradient(180deg, #f7f4f0, #ebe6e0);
}

.templates-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 18px 64px;
}

.templates-main h1 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.templates-lead {
  margin: 0 0 28px;
  color: #6b6b6b;
  max-width: 560px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.template-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.template-preview {
  height: 320px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  padding: 16px;
}

.template-preview.classic {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=800&q=80")
      center / cover;
}

.template-preview.blush {
  color: #7a4f5a;
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 180, 188, 0.45), transparent 40%),
    linear-gradient(180deg, #f8eee9, #f0ddd8);
}

.blush-mini-card {
  width: min(220px, 90%);
  background: #fffaf7;
  border-radius: 8px;
  padding: 22px 14px;
  box-shadow: 0 0 0 8px rgba(255, 250, 247, 0.5), 0 16px 30px rgba(120, 80, 90, 0.12);
  display: grid;
  gap: 6px;
  place-items: center;
}

.blush-heart {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #c98994;
  display: grid;
  place-items: center;
  color: #c98994;
  font-size: 1.1rem;
}

.template-preview.sage {
  padding: 0;
  color: #314239;
  background: #e8eee9;
}

.sage-split {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.sage-photo {
  background:
    linear-gradient(160deg, rgba(143, 168, 148, 0.2), rgba(168, 155, 184, 0.25)),
    url("https://images.unsplash.com/photo-1511285560929-80b456fe9cf4?auto=format&fit=crop&w=700&q=80")
      center / cover;
}

.sage-text {
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 12px;
  background: #f4f7f3;
  text-align: left;
}

.sage-and {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a89bb8;
  font-weight: 700;
}

.template-preview.vellum {
  position: relative;
  overflow: hidden;
  background-color: #e9e3da;
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 100, 80, 0.04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 100, 80, 0.035) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.6), transparent 50%);
}

.vellum-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78%;
  max-width: 230px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.3), transparent 60%),
    #c9bcac;
  box-shadow: 0 16px 34px rgba(111, 99, 86, 0.2);
}

.vellum-card {
  position: relative;
  width: 52%;
  max-width: 150px;
  margin-left: 12%;
  padding: 26px 8px;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: rgba(250, 247, 242, 0.95);
  background: rgba(250, 247, 242, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 12px 26px rgba(111, 99, 86, 0.16);
}

.vellum-name {
  font-family: "Cormorant Garamond", "Noto Serif Armenian", serif;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), 0 -1px 1px rgba(111, 92, 72, 0.3);
}

.vellum-amp {
  margin: -4px 0 -6px;
  font-family: "Pinyon Script", cursive;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.65);
}

.template-preview.vellum .preview-label {
  margin-top: 10px;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.9);
}

.template-preview.eucalyptus {
  background:
    radial-gradient(circle at 10% 0%, rgba(157, 187, 167, 0.35), transparent 45%),
    #eef2ee;
}

.euca-card {
  position: relative;
  width: min(190px, 70%);
  padding: 34px 10px 30px;
  display: grid;
  justify-items: center;
  color: #3f4543;
  background: #fdfdfb;
  border: 1px solid rgba(201, 169, 97, 0.5);
  box-shadow: 0 14px 28px rgba(63, 69, 67, 0.12);
  overflow: hidden;
}

.euca-leaf {
  position: absolute;
  width: 90px;
  height: 90px;
  background:
    radial-gradient(circle at 30% 30%, #9dbba7 0 9px, transparent 10px),
    radial-gradient(circle at 55% 22%, #7fa08c 0 8px, transparent 9px),
    radial-gradient(circle at 22% 58%, #b9cfc0 0 8px, transparent 9px),
    radial-gradient(circle at 50% 50%, #5f8575 0 7px, transparent 8px),
    radial-gradient(circle at 78% 18%, #c3d6c9 0 6px, transparent 7px),
    radial-gradient(circle at 18% 84%, #9dbba7 0 6px, transparent 7px);
  opacity: 0.85;
}

.euca-leaf-top {
  top: -22px;
  left: -22px;
}

.euca-leaf-bottom {
  right: -22px;
  bottom: -22px;
  transform: rotate(180deg);
}

.euca-name {
  font-family: "Great Vibes", "Alex Brush", cursive;
  font-size: 2.3rem;
  line-height: 1.05;
}

.euca-and {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: #717a76;
}

.template-preview.eucalyptus .preview-label {
  margin-top: 8px;
  font-size: 0.55rem;
  color: #5f8575;
}

.template-preview.slate {
  background: #f1f1f1;
}

.slate-card {
  width: min(180px, 66%);
  padding: 30px 16px 22px;
  display: grid;
  color: #141414;
  background: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.slate-name {
  font-family: "Bodoni Moda", "Noto Serif Armenian", serif;
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  line-height: 1;
}

.slate-and {
  margin: -2px 0 -4px 14px;
  font-family: "Herr Von Muellerhoff", cursive;
  font-size: 1.9rem;
  line-height: 1;
}

.slate-date {
  justify-self: end;
  margin-top: 26px;
  font-family: "Bodoni Moda", serif;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
}

.template-preview.rustic {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(253, 251, 247, 0.62), rgba(253, 251, 247, 0.72)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=700&q=70") center/cover;
}

.rustic-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #4a4036;
  text-align: center;
}

.rustic-eyebrow {
  font-family: "Jost", "Noto Sans Armenian", sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.rustic-names {
  font-family: "Pinyon Script", cursive;
  font-size: 2.3rem;
  line-height: 1.15;
}

.rustic-date {
  padding-bottom: 4px;
  font-family: "Jost", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  border-bottom: 1px solid rgba(74, 64, 54, 0.45);
}

.rustic-btn {
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: "Jost", sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #fff;
  background: #94a187;
}

.rustic-torn {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 16px;
  background: #fff;
  clip-path: polygon(0 55%, 6% 35%, 12% 60%, 19% 30%, 26% 55%, 33% 25%, 40% 50%, 47% 30%, 54% 58%, 61% 28%, 68% 52%, 75% 30%, 82% 56%, 89% 32%, 95% 50%, 100% 35%, 100% 100%, 0 100%);
}

.preview-names {
  font-family: "Great Vibes", cursive;
  font-size: 2.1rem;
  line-height: 1.15;
}

.preview-names.blush-font {
  font-family: "Alex Brush", cursive;
  font-size: 2.2rem;
}

.preview-names.sage-font {
  font-family: "Bodoni Moda", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.template-preview.heaven {
  color: #60544b;
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 164, 132, 0.2), transparent 50%),
    linear-gradient(180deg, #ffefed, #fffefd 60%, #f7f1ec);
}

.heaven-cross {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  position: relative;
  display: block;
}

.heaven-cross::before,
.heaven-cross::after {
  content: "";
  position: absolute;
  background: #c4a484;
  border-radius: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.heaven-cross::before {
  width: 7px;
  height: 28px;
}

.heaven-cross::after {
  width: 20px;
  height: 7px;
  top: 38%;
}

.preview-names.heaven-font {
  font-family: "Great Vibes", cursive;
  font-size: 2.4rem;
  color: #4f433c;
}

.template-preview.cross {
  color: #f7f1e6;
  background:
    linear-gradient(180deg, rgba(30, 42, 68, 0.45), rgba(30, 42, 68, 0.82)),
    url("https://images.unsplash.com/photo-1511633571757-45701492bb2c?auto=format&fit=crop&w=800&q=80")
      center / cover;
}

.preview-ornament {
  display: block;
  color: #c9a45c;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.preview-names.cross-font {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.template-preview.bloom {
  color: #3d4a5c;
  background:
    radial-gradient(circle at 15% 20%, rgba(242, 196, 192, 0.55), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(126, 184, 201, 0.45), transparent 40%),
    linear-gradient(165deg, #eef8fb, #f7f3f4);
}

.bloom-mini {
  width: min(220px, 90%);
  background: #fff;
  border-radius: 28px;
  padding: 28px 16px;
  box-shadow: 0 16px 36px rgba(61, 74, 92, 0.12);
  display: grid;
  gap: 8px;
  place-items: center;
}

.bloom-dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 18px rgba(126, 184, 201, 0.35);
  background:
    url("https://images.unsplash.com/photo-1519689680058-324335c77eba?auto=format&fit=crop&w=400&q=80")
      center / cover;
}

.preview-names.bloom-font {
  font-family: "Alex Brush", cursive;
  font-size: 2.2rem;
  background: linear-gradient(120deg, #5a8fa0, #c9898a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.baptism-templates {
  background:
    radial-gradient(circle at top right, rgba(126, 184, 201, 0.14), transparent 42%),
    radial-gradient(circle at bottom left, rgba(242, 196, 192, 0.16), transparent 40%),
    linear-gradient(180deg, #f4f8fa, #efeae6);
}

.preview-label {
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.template-meta {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.template-meta h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.template-meta p {
  margin: 0 0 14px;
  color: #6b6b6b;
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}

@media (max-width: 900px) {
  .template-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}
