/* ===========================================
   INDEX PAGE STYLES
   =========================================== */

/* ── Page base ── */
/* html, body { height: 100%; }
body { background: var(--bg-primary); color: var(--text-primary); }
html { scroll-snap-type: y mandatory; } */

.index .slide {
  width: 100vw; height: 100vh; height: 100dvh;
  overflow: hidden; scroll-snap-align: start;
  display: flex; flex-direction: column;
  position: relative;
  background: var(--bg-gradient);
  font-family: var(--font-body);
  color: var(--text-primary);
}

.index .slide-content {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center;
  max-height: 100%; overflow: hidden;
  padding: var(--slide-padding);
}

.index img, .index .image-container {
  max-width: 100%;
  max-height: min(50vh, 400px);
  object-fit: contain;
}

/* Responsive breakpoints */
@media (max-height: 600px) {
  .nav-dots, .index .decorative, .index .slide-number { display: none; }
}
@media (max-width: 600px) {
  .index .grid-2, .index .grid-3 { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.2s !important;
  }
  html { scroll-behavior: auto; }
}

/* ===========================================
   BOLD SIGNAL THEME STYLES
   =========================================== */

/* Grid background pattern */
.index .slide::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(74,26,120,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,26,120,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  background-attachment: fixed;
  background-position: 0 0;
  pointer-events: none;
}

/* Section numbers — hidden globally */
.index .slide-number { display: none; }

/* ===========================================
   ANIMATIONS
   =========================================== */
.index .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-normal) var(--ease-out-expo);
}
.index .slide.visible .reveal { opacity: 1; transform: translateY(0); }
.index .slide.visible .reveal:nth-child(1) { transition-delay: 0.1s; }
.index .slide.visible .reveal:nth-child(2) { transition-delay: 0.2s; }
.index .slide.visible .reveal:nth-child(3) { transition-delay: 0.3s; }
.index .slide.visible .reveal:nth-child(4) { transition-delay: 0.4s; }
.index .slide.visible .reveal:nth-child(5) { transition-delay: 0.5s; }
.index .slide.visible .reveal:nth-child(6) { transition-delay: 0.6s; }

.index .reveal-card {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}
.index .slide.visible .reveal-card { opacity: 1; transform: translateY(0) scale(1); }

/* ===========================================
   COMPONENT STYLES
   =========================================== */

/* Main accent card */
.index .accent-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  color: var(--text-on-card);
  position: relative; z-index: 1;
}
.index .accent-card h2, .index .accent-card h1 {
  font-family: var(--font-display);
  line-height: 1.1;
}

/* Dark card variant */
.index .dark-card {
  background: rgba(74,26,120,0.04);
  border: 1px solid rgba(74,26,120,0.12);
  border-radius: 12px;
  padding: clamp(1rem, 2.5vw, 2rem);
  box-shadow: 0 2px 12px rgba(74,26,120,0.04);
}

/* Feature cards in grids */
.index .feature-card {
  background: rgba(74,26,120,0.03);
  border: 1px solid rgba(74,26,120,0.1);
  border-radius: 12px;
  padding: clamp(0.8rem, 2vw, 1.5rem);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.index .feature-card:hover {
  border-color: rgba(74,26,120,0.35);
}
.index .more-btn {
  display: inline-block;
  margin-top: var(--element-gap);
  padding: 0.35em 1em;
  font-size: var(--small-size);
  font-weight: 600;
  color: #1a1a1a;
  background: var(--brand-gold);
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
}
.index .more-btn:hover {
  background: var(--accent);
  color: #ffffff;
}
.index .feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--h3-size);
  margin-bottom: var(--element-gap);
  color: var(--text-primary);
}
.index .feature-card p {
  font-size: var(--body-size);
  color: var(--text-secondary);
  line-height: 1.5;
}
.index .feature-card .icon {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  margin-bottom: var(--element-gap);
  display: block;
}

/* Grid layouts */
.index .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1.2rem);
}
.index .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1.2rem);
}

/* Tag / badge */
.index .tag {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: var(--small-size);
  font-weight: 600;
  padding: clamp(0.2rem, 0.5vw, 0.35rem) clamp(0.5rem, 1vw, 0.8rem);
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* Logo wall */
.index .logo-wall {
  display: flex; flex-wrap: wrap;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  justify-content: center; align-items: center;
}
.index .logo-item {
  background: rgba(74,26,120,0.05);
  border: 1px solid rgba(74,26,120,0.12);
  border-radius: 10px;
  padding: clamp(0.6rem, 1.5vw, 1.2rem) clamp(1rem, 2.5vw, 2rem);
  font-size: var(--body-size);
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.3s, color 0.3s;
}
.index .logo-item:hover {
  border-color: rgba(74,26,120,0.35);
  color: var(--text-primary);
}

/* Bullet list */
.index .bullet-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: var(--element-gap);
}
.index .bullet-list li {
  font-size: var(--body-size);
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  position: relative;
}
.index .bullet-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: clamp(0.35rem, 0.6vw, 0.5rem);
  height: clamp(0.35rem, 0.6vw, 0.5rem);
  background: var(--accent);
  border-radius: 50%;
}
.index .cta-card .bullet-list li::before {
  background: var(--brand-gold);
}

/* Flow diagram */
.index .flow {
  display: flex; align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.2rem);
  flex-wrap: wrap; justify-content: center;
}
.index .flow-step {
  background: rgba(74,26,120,0.05);
  border: 1px solid rgba(74,26,120,0.14);
  border-radius: 14px;
  padding: clamp(1rem, 2.5vw, 2rem) clamp(1.2rem, 3vw, 2.5rem);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}
.index a.flow-step {
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  color: var(--text-primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.index a.flow-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(74, 26, 120, 0.22);
}
.index .flow .flow-step.active,
.index .flow a.flow-step.active,
.index .flow a.flow-step.active:hover,
.index .flow a.flow-step.active:visited {
  background: var(--card-bg) !important;
  color: #ffffff !important;
  border-color: var(--card-bg) !important;
}
.index .flow .flow-step.active span,
.index .flow a.flow-step.active span {
  color: #ffffff !important;
}
.index .flow-arrow {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: var(--text-secondary);
}

/* ===========================================
   PORTFOLIO CAROUSEL
   =========================================== */
.index .portfolio-carousel {
  position: relative;
  width: 100%;
  margin-top: var(--content-gap);
  --carousel-gap: 1rem;
  --cards-per-view: 3;
  padding: 0 56px;
}
.index .carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0.25rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.index .carousel-track::-webkit-scrollbar { display: none; }
.index .portfolio-card {
  flex: 0 0 calc((100% - (var(--cards-per-view) - 1) * var(--carousel-gap)) / var(--cards-per-view));
  scroll-snap-align: start;
  background: rgba(74, 26, 120, 0.04);
  border: 1px solid rgba(74, 26, 120, 0.12);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.index .portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: rgba(74, 26, 120, 0.25);
}
.index .portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  max-height: none;
}
.index .portfolio-card-body {
  padding: clamp(0.7rem, 1.4vw, 1rem) clamp(0.85rem, 1.6vw, 1.2rem);
}
.index .portfolio-title {
  font-size: var(--body-size);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.index .portfolio-subtitle {
  font-size: var(--small-size);
  color: var(--text-secondary);
  line-height: 1.3;
}
.index .carousel-arrow {
  position: absolute;
  top: calc(50% - 1rem);
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(74, 26, 120, 0.22);
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(74, 26, 120, 0.15);
  transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  font-family: var(--font-body);
}
.index .carousel-arrow:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.index .carousel-prev { left: 4px; }
.index .carousel-next { right: 4px; }
.index .carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.index .carousel-arrow:disabled:hover {
  background: #fff;
  color: var(--accent);
  transform: translateY(-50%);
}
.index .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.index .carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(74, 26, 120, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s, border-radius 0.25s;
}
.index .carousel-dots button.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* Table style */
.index .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--body-size);
}
.index .data-table th {
  text-align: left;
  font-weight: 600;
  color: var(--accent);
  padding: clamp(0.4rem, 1vw, 0.7rem) clamp(0.5rem, 1vw, 0.8rem);
  border-bottom: 1px solid rgba(74,26,120,0.18);
  font-size: var(--small-size);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.index .data-table td {
  padding: clamp(0.4rem, 1vw, 0.7rem) clamp(0.5rem, 1vw, 0.8rem);
  border-bottom: 1px solid rgba(74,26,120,0.08);
  color: var(--text-secondary);
  line-height: 1.4;
}
.index .data-table td:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* Steps */
.index .step-row {
  display: flex; align-items: flex-start; gap: clamp(0.6rem, 1.5vw, 1.2rem);
}
.index .step-num {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: clamp(1.5rem, 3vw, 2.5rem);
}
.index .step-text h3 {
  font-family: var(--font-display);
  font-size: var(--h3-size);
  margin-bottom: clamp(0.15rem, 0.4vw, 0.3rem);
}
.index .step-text p {
  font-size: var(--body-size);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Stat blocks */
.index .stat { text-align: center; }
.index .stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--accent);
  line-height: 1;
}
.index .stat-label {
  font-size: var(--small-size);
  color: var(--text-secondary);
  margin-top: clamp(0.2rem, 0.5vw, 0.4rem);
}

/* Section heading */
.index .section-label {
  font-size: var(--small-size);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: var(--element-gap);
}

.index h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  line-height: 1.15;
  margin-bottom: var(--content-gap);
}

/* ===========================================
   FIXED ELEMENTS (outside .wrapper.index)
   =========================================== */

/* Progress bar */
.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; background: var(--accent);
  z-index: 9999;
  transition: width 0.3s ease;
  width: 0%;
}

/* Navigation dots */
.nav-dots {
  position: fixed; right: clamp(0.8rem, 2vw, 1.5rem);
  top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column;
  gap: clamp(0.3rem, 0.6vw, 0.5rem);
  z-index: 9998;
}
.nav-dot {
  width: clamp(6px, 0.6vw, 8px);
  height: clamp(6px, 0.6vw, 8px);
  border-radius: 50%;
  background: rgba(74,26,120,0.2);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none; padding: 0;
}
.nav-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

/* ===========================================
   INLINE EDITING (Opt-in)
   =========================================== */
.edit-hotzone {
  position: fixed; top: 0; left: 0;
  width: 80px; height: 80px;
  z-index: 10000; cursor: pointer;
}
.edit-toggle {
  position: fixed; top: 16px; left: 16px;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--card-bg);
  border: none; cursor: pointer;
  font-size: 18px; line-height: 40px;
  text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10001;
}
.edit-toggle.show, .edit-toggle.active {
  opacity: 1; pointer-events: auto;
}
.edit-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 48px; background: var(--card-bg);
  display: none; align-items: center;
  justify-content: space-between;
  padding: 0 20px; z-index: 10002;
  font-family: var(--font-body);
}
.edit-bar.active { display: flex; }
.edit-bar span { color: var(--text-on-card); font-weight: 600; font-size: 14px; }
.edit-bar button {
  background: rgba(0,0,0,0.2); border: none;
  color: var(--text-on-card); padding: 6px 14px;
  border-radius: 6px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
}
.edit-bar button:hover { background: rgba(0,0,0,0.3); }

[contenteditable="true"] {
  outline: 2px dashed rgba(245,184,0,0.7);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ===========================================
   TITLE SLIDE SPECIAL LAYOUT
   =========================================== */
.index .title-slide .slide-content {
  align-items: center; text-align: center;
}
.index .title-slide h1 {
  font-family: var(--font-display);
  font-size: var(--title-size);
  line-height: 1.1;
}
.index .title-slide .subtitle {
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  margin-top: var(--element-gap);
}

/* CTA slide */
.index .cta-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3.5rem);
  color: var(--text-on-card);
  text-align: center;
  max-width: min(85vw, 600px);
  margin: 0 auto;
}
.index .cta-card h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  margin-bottom: var(--content-gap);
  color: var(--text-on-card);
}
.index .cta-card p {
  font-size: var(--body-size);
  line-height: 1.6;
  opacity: 0.8;
}
.index .cta-card .contact-btn {
  display: inline-block;
  margin-top: clamp(1rem, 2.2vw, 1.6rem);
  padding: 0.85em 2.4em;
  background: #F5B800;
  color: #1a1a1a;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--body-size);
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(245, 184, 0, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.index .cta-card .contact-btn:hover {
  background: #FFC721;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 184, 0, 0.45);
}
.index .cta-detail {
  font-size: var(--body-size);
  margin-top: var(--element-gap);
  opacity: 0.7;
}

/* ===========================================
   SLIDE IMAGES
   =========================================== */
.index .slide-img {
  width: 100%;
  max-height: min(35vh, 280px);
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(74,26,120,0.15);
  box-shadow: 0 4px 20px rgba(74,26,120,0.08);
}
.index .img-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.6rem, 1.5vw, 1.2rem);
  align-items: start;
}
@media (max-width: 600px) {
  .index .img-split { grid-template-columns: 1fr; }
  .index .slide-img { max-height: min(25vh, 180px); }
}
.index .img-col {
  display: flex;
  flex-direction: column;
  gap: var(--element-gap);
  justify-content: center;
}

/* index footer override: position inside slide */
.index .site-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
}

/* ===========================================
   MOBILE + TABLET RWD (≤1024px)
   =========================================== */
@media (max-width: 1024px) {
  html {
    scroll-snap-type: none;
  }
  .index .slide {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    scroll-snap-align: none;
  }
  .index .slide-content {
    padding: 5rem 1.25rem 3rem;
    justify-content: flex-start;
    max-height: none;
    overflow: visible;
    gap: 0.25rem;
  }

  .index h2 { margin-bottom: 0.9rem; }

  .nav-dots { display: none !important; }
  .index .slide-number { display: none; }

  .index .grid-2, .index .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .index .img-split {
    grid-template-columns: 1fr !important;
    gap: 0.9rem !important;
  }

  .index .slide-content [style*="grid-template-columns: 1fr 1.2fr"],
  .index .slide-content [style*="grid-template-columns: 1.2fr 1fr"],
  .index .slide-content [style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .index .flow {
    flex-direction: column;
    gap: 0.55rem !important;
    width: 100%;
  }
  .index .flow-step {
    width: 100%;
    padding: 0.95rem 1.1rem !important;
    font-size: 1.2rem !important;
    border-radius: 10px;
  }
  .index .flow-arrow {
    transform: rotate(90deg);
    font-size: 1.3rem !important;
  }

  .index .accent-card { padding: 1.5rem 1.25rem !important; max-width: 100% !important; }
  .index .dark-card { padding: 1rem !important; }
  .index .feature-card { padding: 1rem !important; }
  .index .cta-card { padding: 1.75rem 1.25rem !important; max-width: 100% !important; }

  .index .slide-img {
    max-height: 32vh !important;
  }
  .index img, .index .image-container {
    max-height: 40vh;
  }

  .index .portfolio-carousel {
    --cards-per-view: 1;
    --carousel-gap: 0.8rem;
    padding: 0;
  }
  .index .portfolio-carousel .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
  }
  .index .carousel-prev { left: 6px; }
  .index .carousel-next { right: 6px; }

  .index [data-slide="7.5"] .reveal-card {
    width: 100% !important;
    margin-left: 0 !important;
    overflow: visible !important;
    text-align: center;
  }
  .index [data-slide="7.5"] .reveal-card img {
    border-radius: 16px;
  }
  .index [data-slide="7.5"] .reveal-card > div {
    position: static !important;
    display: inline-block;
    margin-top: 0.9rem;
  }

  .index .data-table { font-size: 0.98rem; }
  .index .data-table th, .index .data-table td { padding: 0.65rem 0.5rem; }

  .index .site-footer {
    position: static;
    padding: 1rem 1.25rem !important;
    background: transparent;
    border-top: 1px solid rgba(74, 26, 120, 0.1);
    margin-top: 1.5rem;
  }

  .index .title-slide .slide-content,
  .index .slide-content[style*="align-items: center"],
  .index #portfolio .slide-content {
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .index .title-slide .slide-content img[alt*="JCA"] {
    max-height: 72px !important;
  }

  .index .step-row { gap: 0.8rem; }

  .index .img-col {
    gap: 0.6rem !important;
  }

  .index .reveal { transform: translateY(20px); }
  .index .reveal-card { transform: translateY(24px) scale(0.98); }
}

@media (max-width: 480px) {
  .index .slide-content { padding: 4.5rem 1rem 2.5rem; }
  .index .flow-step { font-size: 1.08rem !important; padding: 0.8rem 1rem !important; }
}

/* ===========================================
   PORTRAIT TABLET (768-1024px)
   =========================================== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .index h2 { margin-bottom: 1.2rem; }
  .index .flow-step {
    font-size: 1.55rem !important;
    padding: 1.1rem 1.4rem !important;
  }
  .index .data-table { font-size: 1.1rem; }
  .index .data-table th, .index .data-table td { padding: 0.8rem 0.6rem; }
  .mobile-menu a { font-size: 1.15rem; padding: 18px 28px; }
  .mobile-menu .menu-section-label { font-size: 0.82rem; padding: 14px 28px 6px; }
  .mobile-menu .sub-item { font-size: 1.05rem; padding-left: 48px; }
}

/* Template catalog */
.index .template-catalog-link {
  margin-top: var(--content-gap);
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100vw - 60px);
  margin-left: calc(-1 * var(--slide-padding));
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  background: #f4f2ee;
}
.index .template-catalog-link img {
  max-height: calc(100vh - 260px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.index .template-catalog-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* BACK-TO-TOP → common.css */
