.template-page { background: var(--mr-surface-soft, #f6f8fb); color: var(--mr-ink, #172033); }
.template-hero, .template-band { padding: 48px 0; }
.template-hero { background: #fff; }
.template-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas: "copy shot" "more shot";
  gap: 18px 36px;
  align-items: center;
}
.template-copy { grid-area: copy; }
.template-more { grid-area: more; }
.template-shot { grid-area: shot; }
.template-kicker { color: var(--mr-blue, #1778b5); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px; }
.template-hero h1 { font-size: 46px; margin: 8px 0; }
.template-hero p { font-size: 18px; color: var(--mr-muted, #657085); }
.template-shot {
  position: relative;
  display: block;
  justify-self: center;
  width: min(380px, 100%);
  background: #fff;
  box-shadow: 0 12px 40px rgba(16, 40, 70, 0.12);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.template-shot:focus-visible {
  outline: 3px solid var(--mr-blue, #1778b5);
  outline-offset: 3px;
}
.template-shot-hint {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 42, 86, 0.34);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.template-shot-hint span {
  max-width: 220px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #102a56;
  box-shadow: 0 12px 28px rgba(16, 42, 86, 0.35);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}
.template-shot:hover .template-shot-hint,
.template-shot:focus-visible .template-shot-hint { opacity: 1; }
.template-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: cover;
  object-position: top center;
}
.template-cta {
  display: inline-block;
  background: var(--mr-blue, #1778b5);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  border-radius: 10px;
  padding: 12px 18px;
}
.template-alt {
  display: inline-block;
  margin-left: 14px;
  color: var(--mr-blue, #1778b5);
  font-weight: 700;
}
.template-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  color: #657085;
  font-size: 13px;
  font-weight: 700;
}
.template-crumbs a { color: var(--mr-blue, #1778b5); text-decoration: none; }
.template-crumbs a:hover { text-decoration: underline; }
.template-crumbs a + a::before,
.template-crumbs a + span::before {
  content: "/";
  margin-right: 6px;
  color: #94a3b8;
  font-weight: 600;
}
.template-crumbs [aria-current="page"] { color: var(--mr-ink, #172033); }
.template-page .template-band h2 {
  margin: 0 0 16px;
  color: #102a56;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.template-page .template-band h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--mr-blue, #1778b5);
}
.feature-lead { max-width: 68ch; font-size: 18px; line-height: 1.5; }
.card-grid, .use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.template-page .card-grid .soft-card h3 {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e7f1f8;
  color: #102a56;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.soft-card p { margin: 0; line-height: 1.5; }
.template-steps { background: #fff; }
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: template-step;
}
.step-grid li {
  padding: 18px;
  border: 1px solid var(--mr-line, #dfe5ee);
  border-radius: 14px;
  background: #f7fbfe;
}
.step-grid li::before {
  content: counter(template-step);
  counter-increment: template-step;
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 999px;
  background: var(--mr-blue, #1778b5);
  color: #fff;
  font-weight: 800;
}
.step-grid strong { display: block; margin-bottom: 6px; color: #102a56; font-size: 18px; }
.step-grid span { display: block; color: var(--mr-muted, #657085); line-height: 1.45; }
.soft-card, .faq details {
  background: #fff;
  border: 1px solid var(--mr-line, #dfe5ee);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--mr-shadow-sm, 0 6px 20px rgba(23, 32, 51, 0.08));
}
.faq details { margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; }
.related { display: flex; gap: 12px; flex-wrap: wrap; }
.related a { color: var(--mr-blue, #1778b5); font-weight: 700; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.catalog-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--mr-line, #dfe5ee);
  border-radius: 14px;
  padding: 0 0 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.catalog-thumb {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  background: #f4f6f8;
  margin-bottom: 12px;
}
.catalog-card.is-category { padding: 18px; }
.catalog-card.is-category strong, .catalog-card.is-category p { padding: 0; }
.catalog-card.is-category strong { font-size: 18px; }
.directory-search { margin: 18px 0 22px; max-width: 440px; }
.directory-search input { width: 100%; padding: 12px 14px; border: 1px solid var(--mr-line, #dfe5ee); border-radius: 10px; font-size: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.catalog-card strong, .catalog-card span, .catalog-card p { padding: 0 16px; }
.catalog-card strong { display: block; }
.catalog-card span { color: var(--mr-muted, #657085); font-size: 13px; }
.catalog-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; }
.template-shot .pro-crown-badge,
.catalog-card .pro-crown-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  min-width: 46px;
  padding: 5px 7px 4px;
  place-items: center;
  border: 1px solid #f6c84c;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff9d8, #fbbf24);
  box-shadow: 0 7px 18px rgba(180, 107, 0, .24);
  color: #854d0e;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .06em;
}
.template-shot .pro-crown-badge svg,
.catalog-card .pro-crown-badge svg {
  width: 24px;
  height: 20px;
  margin-bottom: 2px;
  fill: #f59e0b;
  stroke: #92400e;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.catalog-search { width: min(520px, 100%); margin: 18px 0 12px; padding: 12px 14px; border: 1px solid var(--mr-line, #dfe5ee); border-radius: 12px; font: inherit; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.catalog-chip { border: 1px solid var(--mr-line, #dfe5ee); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.catalog-chip.on { background: var(--mr-blue, #1778b5); color: #fff; border-color: var(--mr-blue, #1778b5); }
.catalog-count { color: var(--mr-muted, #657085); }
.template-ai {
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: #f3f7fb;
}
.template-ai h2 {
  margin: 2px 4px 12px;
  color: var(--mr-ink, #172033);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.template-ai h2 a { color: var(--mr-blue, #1778b5); }
.template-ai-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 14px;
  background: #fff;
  border: 1px solid #e4ebf3;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.05);
}
.template-ai-bar:focus-within {
  border-color: var(--mr-blue, #1778b5);
  box-shadow: 0 0 0 3px rgba(23, 120, 181, 0.16);
}
.template-ai-mark { flex: 0 0 auto; width: 18px; height: 18px; color: var(--mr-blue, #1778b5); }
.template-ai-bar textarea {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 76px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  outline: none;
  resize: none;
  overflow: hidden;
  background: transparent;
  color: var(--mr-ink, #172033);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}
.template-ai-bar button,
.template-ai-pills button {
  border: 0;
  cursor: pointer;
  font: inherit;
}
.template-ai-bar button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--mr-blue, #1778b5);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}
.template-ai-bar button svg { width: 16px; height: 16px; }
.template-ai-bar button:hover,
.template-ai-bar button:focus { background: var(--mr-blue-dark, #105f91); }
.template-ai-bar button:disabled { opacity: 0.7; }
.template-ai-error { margin: 8px 4px 0; color: #b42318; font-size: 14px; }
.template-ai-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.template-ai-try {
  margin-right: 2px;
  color: #8b95a7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.template-ai-pills { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 8px; }
.template-ai-pills button {
  padding: 8px 12px;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  background: #fff;
  color: #243246;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
.template-ai-pills button:hover,
.template-ai-pills button:focus { border-color: var(--mr-blue, #1778b5); color: var(--mr-blue-dark, #105f91); }
.template-ai-tries { margin: 10px 4px 0; color: var(--mr-muted, #657085); font-size: 13px; }
@media (max-width: 900px) {
  .template-hero { padding: 12px 0 28px; }
  .template-grid-2, .card-grid, .use-grid, .catalog-grid, .step-grid { grid-template-columns: 1fr; }
  .template-grid-2 { grid-template-areas: "copy" "shot" "more"; gap: 14px; }
  .template-hero h1 { font-size: 32px; margin: 4px 0 0; }
  .template-shot img { max-height: 68vh; }
  .template-page .template-band h2 { font-size: 28px; }
  .template-ai-bar { flex-wrap: wrap; padding-left: 12px; }
  .template-ai-bar textarea { flex: 1 1 calc(100% - 32px); }
  .template-ai-bar button { width: 100%; justify-content: center; }
}
