:root {
  --paper: #f8f4ee;
  --paper-strong: #efe8de;
  --surface: #fffdf9;
  --ink: #292622;
  --ink-soft: #68615b;
  --graphite: #242321;
  --rose: #bd6f64;
  --rose-deep: #934a42;
  --rose-soft: #eedbd4;
  --sage: #75876b;
  --sage-soft: #dde4d7;
  --gold: #a9824f;
  --line: rgba(42, 38, 34, 0.13);
  --shadow: 0 20px 48px rgba(48, 40, 32, 0.09);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-text: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}

.page-container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.product-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.product-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.product-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.product-logo span {
  color: var(--rose);
}

.product-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.product-nav a:hover,
.product-nav a[aria-current="page"] {
  color: var(--rose-deep);
}

.header-create,
.primary-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--graphite);
  color: white;
  font-size: 12px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.header-create:hover,
.primary-link:hover {
  background: var(--rose-deep);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
}

.page-kicker {
  margin: 0 0 16px;
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-title {
  max-width: 880px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  line-height: 0.96;
}

.page-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.page-hero {
  padding: 96px 0 74px;
}

.templates-shell {
  min-height: calc(100svh - 72px);
}

.template-catalog-page .header-create {
  border-radius: 6px;
}

.template-catalog-page .header-create svg {
  width: 15px;
  height: 15px;
}

.template-catalog-page .mobile-menu-button {
  position: relative;
  overflow: hidden;
}

.template-catalog-page .mobile-menu-button svg {
  position: absolute;
  width: 19px;
  height: 19px;
  transition-property: opacity, transform, filter;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.template-catalog-page .menu-close-icon {
  opacity: 0;
  filter: blur(4px);
  transform: scale(0.25);
}

.template-catalog-page .product-header.is-open .menu-open-icon {
  opacity: 0;
  filter: blur(4px);
  transform: scale(0.25);
}

.template-catalog-page .product-header.is-open .menu-close-icon {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.catalog-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--graphite);
  color: white;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-160%);
}

.catalog-skip-link:focus {
  transform: translateY(0);
}

.catalog-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog-intro {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 430px) auto;
  gap: 42px;
  align-items: end;
  padding-block: 32px 24px;
  border-bottom: 1px solid var(--line);
}

.catalog-intro .page-kicker {
  margin-bottom: 8px;
}

.catalog-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 500;
  line-height: 0.92;
  text-wrap: balance;
}

.catalog-intro-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
  text-wrap: pretty;
}

.catalog-count {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.catalog-count strong {
  margin-right: 5px;
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 210px) minmax(150px, 210px) auto;
  gap: 12px;
  align-items: end;
  padding-block: 20px 18px;
  border-bottom: 1px solid var(--line);
}

.catalog-search {
  position: relative;
  display: block;
}

.catalog-search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
  pointer-events: none;
  transform: translateY(-50%);
}

.catalog-search input,
.catalog-filter select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.catalog-search input {
  padding: 0 16px 0 44px;
  font-size: 13px;
}

.catalog-search input::placeholder {
  color: #8d8882;
}

.catalog-search input:focus,
.catalog-filter select:focus {
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(176, 91, 80, .12);
  background: #fff;
}

.catalog-filter {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.catalog-filter span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-filter select {
  padding: 0 36px 0 12px;
  font-size: 12px;
}

.catalog-reset {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.catalog-reset svg {
  width: 15px;
  height: 15px;
}

.catalog-reset:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, .7);
}

.catalog-results {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.catalog-empty {
  padding-block: clamp(72px, 12vw, 150px);
  text-align: center;
}

.catalog-empty h2 {
  max-width: 620px;
  margin: 12px auto;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: .95;
}

.catalog-empty > p:not(.page-kicker) {
  margin: 0 auto 24px;
  color: var(--ink-soft);
}

.catalog-empty button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.template-catalog-page [hidden] {
  display: none !important;
}

.catalog-collection {
  position: relative;
}

.catalog-entry {
  min-width: 0;
  padding: 46px 0 96px;
  border-bottom: 1px solid var(--line);
}

.catalog-entry:last-child {
  border-bottom: 0;
}

.catalog-entry-summary {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(340px, 1.25fr) minmax(300px, 0.8fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
  margin-bottom: 34px;
}

.catalog-details-topline {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-block: 4px;
}

.catalog-template-code,
.catalog-availability {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-template-code {
  color: var(--rose-deep);
  font-variant-numeric: tabular-nums;
}

.catalog-availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #52604a;
  line-height: 1.35;
}

.catalog-availability svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.catalog-details-heading .page-kicker {
  margin-bottom: 11px;
}

.catalog-details-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 5vw, 72px);
  font-weight: 500;
  line-height: 0.86;
  text-wrap: balance;
}

.catalog-details-heading > p:last-child {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.72;
  text-wrap: pretty;
}

.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.catalog-tags li {
  position: relative;
  padding-left: 10px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.catalog-tags li::before {
  position: absolute;
  top: .48em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rose-deep);
  content: "";
}

.catalog-entry-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.catalog-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.catalog-facts > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.catalog-facts dt {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-facts dd {
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
  text-wrap: pretty;
}

.catalog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catalog-action {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px var(--graphite),
    0 2px 5px rgba(40, 34, 28, 0.04);
  transition-property: background-color, color, box-shadow, scale;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.catalog-action svg {
  width: 17px;
  height: 17px;
}

.catalog-action span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.catalog-action strong {
  font-size: 10px;
  line-height: 1.25;
}

.catalog-action small {
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.3;
}

.catalog-action:active,
.catalog-preview-expand:active,
.catalog-preview-cover span:active,
.catalog-dialog-link:active,
.catalog-dialog-use:active,
.catalog-dialog-close:active {
  scale: 0.96;
}

.catalog-action-secondary:hover {
  background: var(--surface);
  color: var(--rose-deep);
  box-shadow:
    0 0 0 1px var(--rose-deep),
    0 4px 10px rgba(40, 34, 28, 0.07);
}

.catalog-action-primary {
  background: var(--graphite);
  color: white;
}

.catalog-action-primary small {
  color: #d6d0c8;
}

.catalog-action-primary:hover {
  background: var(--rose-deep);
  box-shadow:
    0 0 0 1px var(--rose-deep),
    0 5px 12px rgba(147, 74, 66, 0.18);
}

.catalog-preview {
  min-width: 0;
  height: clamp(560px, calc(100svh - 170px), 720px);
  display: grid;
  grid-template-rows: 60px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 9px;
  background: #dfe5e2;
  box-shadow:
    inset 0 0 0 1px rgba(33, 39, 36, 0.14),
    0 20px 50px rgba(48, 40, 32, 0.1);
}

.catalog-preview-sage {
  background: #d8dfd3;
}

.catalog-preview-ranch {
  background: #e8ddd1;
}

.catalog-preview-nocturne,
.catalog-preview-nocturne .catalog-preview-stage {
  background: #171713;
}

.catalog-preview-coast,
.catalog-preview-coast .catalog-preview-stage {
  background: #cbd7d4;
}

.catalog-preview-club,
.catalog-preview-club .catalog-preview-stage {
  background: #edc84b;
}

.catalog-preview-deco,
.catalog-preview-deco .catalog-preview-stage {
  background: #123b32;
}

.catalog-preview-editorial,
.catalog-preview-editorial .catalog-preview-stage {
  background: #dfff38;
}

.catalog-preview-alpine,
.catalog-preview-alpine .catalog-preview-stage {
  background: #dce7e9;
}

.catalog-preview-folk,
.catalog-preview-folk .catalog-preview-stage {
  background: #f5eedc;
}

.catalog-preview-bloom,
.catalog-preview-bloom .catalog-preview-stage {
  background: #f7e8e2;
}

.catalog-preview-toolbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 8px 7px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.catalog-preview-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-soft);
}

.catalog-preview-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.preview-device-switch {
  min-width: 238px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  border-radius: 6px;
  background: var(--paper-strong);
  box-shadow: inset 0 0 0 1px var(--line);
}

.preview-device-switch button {
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition-property: background-color, color, box-shadow, scale;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.preview-device-switch button:hover {
  color: var(--ink);
}

.preview-device-switch button:active {
  scale: 0.96;
}

.preview-device-switch button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(40, 34, 28, 0.14);
}

.preview-device-switch svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.catalog-preview-expand {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 5px;
  background: var(--graphite);
  color: white;
  font-size: 10px;
  font-weight: 700;
  transition-property: background-color, scale;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.catalog-preview-expand:hover {
  background: var(--rose-deep);
}

.catalog-preview-expand svg {
  width: 15px;
  height: 15px;
}

.catalog-preview-stage {
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #dfe5e2;
  isolation: isolate;
}

.catalog-preview-sage .catalog-preview-stage {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.5), transparent 34%),
    #d8dfd3;
}

.catalog-preview-canvas {
  position: absolute;
  inset: 22px;
  overflow: hidden;
}

.catalog-preview-frame {
  --preview-scale: 1;
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  border: 0;
  border-radius: 3px;
  background: white;
  box-shadow: 0 0 0 1px rgba(30, 34, 33, 0.12), 0 12px 28px rgba(38, 42, 40, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(var(--preview-scale));
  transform-origin: top center;
  transition-property: opacity;
  transition-duration: 220ms;
}

.catalog-preview.is-loaded .catalog-preview-frame {
  opacity: 1;
}

.catalog-preview[data-device="mobile"] .catalog-preview-frame {
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(30, 34, 33, 0.28), 0 18px 40px rgba(38, 42, 40, 0.24);
}

.catalog-preview-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #5e6964;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-preview.is-loaded .catalog-preview-loading {
  display: none;
}

.catalog-preview-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, transparent 58%, rgba(25, 28, 27, 0.34));
  transition-property: background-color;
  transition-duration: 180ms;
}

.catalog-preview-cover span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: 5px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(29, 32, 31, 0.2), 0 0 0 1px rgba(29, 32, 31, 0.08);
  backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 700;
  transition-property: transform, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.catalog-preview-cover:hover span {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(29, 32, 31, 0.26), 0 0 0 1px rgba(29, 32, 31, 0.1);
}

.catalog-preview-cover svg {
  width: 15px;
  height: 15px;
}

.catalog-preview-dialog {
  width: calc(100vw - 24px);
  max-width: none;
  height: calc(100dvh - 24px);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #1d211f;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(20, 18, 16, 0.36);
}

.catalog-preview-dialog::backdrop {
  background: rgba(31, 28, 25, 0.74);
  backdrop-filter: blur(10px);
}

.has-preview-dialog,
.has-preview-dialog body {
  overflow: hidden;
}

.catalog-dialog-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.catalog-dialog-toolbar {
  position: relative;
  z-index: 3;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 10px 9px 18px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}

.catalog-dialog-title-wrap {
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-dialog-title-wrap > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.catalog-dialog-title-wrap > div > span {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-dialog-title-wrap h2 {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-dialog-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.preview-device-switch-dialog {
  min-width: 226px;
}

.catalog-dialog-link,
.catalog-dialog-use,
.catalog-dialog-close {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  transition-property: background-color, color, box-shadow, scale;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.catalog-dialog-link,
.catalog-dialog-use {
  gap: 7px;
  padding-inline: 13px;
}

.catalog-dialog-link {
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.catalog-dialog-link:hover {
  background: var(--paper-strong);
  color: var(--ink);
}

.catalog-dialog-use {
  background: var(--graphite);
  color: white;
}

.catalog-dialog-use:hover {
  background: var(--rose-deep);
}

.catalog-dialog-close {
  width: 44px;
  flex: 0 0 44px;
  background: var(--paper-strong);
  color: var(--ink);
}

.catalog-dialog-close:hover {
  background: var(--rose-soft);
  color: var(--rose-deep);
}

.catalog-dialog-link svg,
.catalog-dialog-use svg,
.catalog-dialog-close svg {
  width: 16px;
  height: 16px;
}

.catalog-dialog-stage {
  min-height: 0;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(231, 237, 233, 0.2), transparent 38%),
    #242a27;
  overscroll-behavior: contain;
}

.catalog-dialog-device {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: white;
  opacity: 0;
  transition-property: width, height, border-radius, box-shadow, opacity;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.catalog-preview-dialog.is-loaded .catalog-dialog-device {
  opacity: 1;
}

.catalog-preview-dialog[data-device="mobile"] .catalog-dialog-device {
  width: min(390px, calc(100% - 32px));
  height: min(844px, calc(100% - 32px));
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(5, 8, 7, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.catalog-dialog-device iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: white;
}

.catalog-dialog-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #ccd5cf;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-preview-dialog.is-loaded .catalog-dialog-loading {
  display: none;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 70px;
  align-items: end;
  padding: 96px 0 78px;
}

.blog-hero-note {
  padding: 24px 0 4px 28px;
  border-left: 2px solid var(--rose);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  line-height: 1.3;
}

.article-list {
  border-top: 1px solid var(--line);
}

.article-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 180px;
  gap: 36px;
  align-items: center;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.article-card:hover .article-card-title {
  color: var(--rose-deep);
}

.article-number {
  color: var(--rose);
  font-family: var(--font-display);
  font-size: 54px;
  font-style: italic;
}

.article-card-content {
  min-width: 0;
}

.article-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--sage-soft);
  color: #4f6247;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.article-card:nth-child(2) .article-tag {
  background: var(--rose-soft);
  color: var(--rose-deep);
}

.article-card:nth-child(3) .article-tag {
  background: #e7ddcb;
  color: #745d38;
}

.article-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.05;
  transition: color 180ms ease;
}

.article-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.article-card-meta {
  display: grid;
  justify-items: end;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 11px;
}

.article-card-meta strong {
  color: var(--ink);
}

.article-card-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--rose-deep);
  font-size: 20px;
}

.blog-format-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 76px;
  margin-top: 76px;
  padding-block: 68px;
  border-block: 1px solid var(--line);
}

.blog-format-guide h2 {
  max-width: 470px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.02;
}

.blog-format-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.blog-format-copy p + p {
  margin-top: 16px;
}

.blog-format-copy a {
  display: inline-flex;
  gap: 8px;
  margin-top: 24px;
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.article-hero {
  padding: 70px 0 58px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 38px;
  color: var(--ink-soft);
  font-size: 11px;
}

.breadcrumbs span {
  color: var(--ink-soft);
}

.article-title {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 500;
  line-height: 0.98;
}

.article-deck {
  max-width: 760px;
  margin: 26px 0 28px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 11px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 260px;
  justify-content: space-between;
  gap: 80px;
  padding: 62px 0 100px;
}

.article-content {
  min-width: 0;
  font-size: 16px;
  line-height: 1.85;
}

.article-content > p:first-child {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.45;
}

.article-content h2 {
  margin: 62px 0 20px;
  scroll-margin-top: 100px;
  font-family: var(--font-display);
  font-size: 43px;
  font-weight: 500;
  line-height: 1.05;
}

.article-content h3 {
  margin: 34px 0 12px;
  font-size: 18px;
}

.article-content p,
.article-content ul,
.article-content ol {
  color: #46413d;
}

.article-content > p a {
  color: var(--rose-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-content li + li {
  margin-top: 10px;
}

.article-content strong {
  color: var(--ink);
}

.article-content blockquote {
  margin: 36px 0;
  padding: 22px 28px;
  border-left: 3px solid var(--rose);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 25px;
  font-style: italic;
  line-height: 1.45;
}

.related-reading {
  margin-top: 70px;
  border-top: 1px solid var(--line);
}

.article-content .related-reading h2 {
  margin: 0;
  padding: 28px 0 18px;
  font-size: 34px;
}

.related-reading ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-reading li + li {
  margin-top: 0;
}

.related-reading a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.related-reading a::after {
  content: "→";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--rose-deep);
  font-size: 20px;
}

.related-reading a strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.related-reading a span,
.related-reading a small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.related-reading a:hover strong {
  color: var(--rose-deep);
}

.example-box {
  margin: 30px 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.example-box p:first-child {
  margin-top: 0;
}

.example-box p:last-child {
  margin-bottom: 0;
}

.article-cta {
  margin: 56px 0;
  padding: 36px;
  border-radius: 7px;
  background: var(--graphite);
  color: white;
}

.article-cta h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 38px;
}

.article-cta p {
  margin: 0 0 22px;
  color: #c8c2ba;
}

.article-cta .primary-link {
  background: var(--rose-deep);
}

.article-toc {
  position: sticky;
  top: 104px;
  align-self: start;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.article-toc p {
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.article-toc nav {
  display: grid;
  gap: 11px;
}

.article-toc a {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.article-toc a:hover {
  color: var(--rose-deep);
}

.product-footer {
  margin-top: 90px;
  background: var(--graphite);
  color: white;
}

.product-footer-inner {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.product-footer p {
  margin: 8px 0 0;
  color: #aaa39b;
  font-size: 12px;
}

.product-footer nav {
  display: flex;
  gap: 26px;
  color: #ccc6be;
  font-size: 12px;
}

@media (max-width: 860px) {
  .product-nav,
  .header-create {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .product-header.is-open .product-header-inner {
    flex-wrap: wrap;
    padding-block: 14px;
  }

  .product-header.is-open .product-nav {
    width: 100%;
    display: grid;
    gap: 0;
  }

  .product-header.is-open .product-nav a {
    padding: 13px 0;
    border-top: 1px solid var(--line);
  }

  .catalog-intro {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 28px;
  }

  .catalog-intro-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 560px;
  }

  .catalog-entry {
    padding-bottom: 80px;
  }

  .catalog-entry-summary {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.72fr);
    gap: 32px 44px;
  }

  .catalog-details-topline {
    min-height: 0;
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .catalog-preview {
    height: clamp(540px, calc(100svh - 190px), 660px);
  }

  .catalog-actions {
    grid-template-columns: 1fr;
  }

  .catalog-dialog-toolbar {
    gap: 14px;
  }

  .catalog-dialog-title-wrap > div > span,
  .catalog-dialog-link span {
    display: none;
  }

  .catalog-dialog-title-wrap {
    min-width: 120px;
  }

  .catalog-dialog-link {
    width: 44px;
    padding: 0;
  }

  .blog-hero,
  .article-layout,
  .blog-format-guide {
    grid-template-columns: 1fr;
  }

  .blog-hero-note,
  .article-toc {
    display: none;
  }

  .article-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .article-card-meta {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

}

@media (max-width: 600px) {
  .page-container {
    width: min(100% - 32px, 1160px);
  }

  .page-hero,
  .blog-hero {
    padding: 66px 0 54px;
  }

  .page-title,
  .article-title {
    font-size: 46px;
    line-height: 1;
  }

  .blog-format-guide {
    gap: 26px;
    margin-top: 54px;
    padding-block: 48px;
  }

  .blog-format-guide h2 {
    font-size: 38px;
  }

  .page-lead,
  .article-deck {
    font-size: 15px;
  }

  .catalog-intro {
    gap: 14px 18px;
    padding-block: 24px 18px;
  }

  .catalog-intro h1 {
    font-size: 42px;
  }

  .catalog-intro-copy {
    font-size: 12px;
    line-height: 1.6;
  }

  .catalog-count {
    align-self: end;
    padding-bottom: 2px;
    font-size: 10px;
  }

  .catalog-count strong {
    font-size: 21px;
  }

  .catalog-entry {
    padding: 28px 0 72px;
  }

  .catalog-entry-summary {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 24px;
  }

  .catalog-details-topline {
    grid-column: auto;
  }

  .catalog-details-heading h2 {
    font-size: 54px;
  }

  .catalog-details-heading > p:last-child {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.65;
  }

  .catalog-entry-meta {
    gap: 18px;
  }

  .catalog-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-preview {
    height: clamp(520px, 72svh, 620px);
    grid-template-rows: 60px minmax(0, 1fr);
  }

  .catalog-preview-toolbar {
    padding-inline: 7px;
  }

  .catalog-preview-meta {
    display: none;
  }

  .catalog-preview-controls {
    width: 100%;
  }

  .preview-device-switch {
    flex: 1 1 auto;
    min-width: 0;
  }

  .catalog-preview-expand {
    width: 46px;
    flex: 0 0 46px;
    padding: 0;
  }

  .catalog-preview-expand span {
    display: none;
  }

  .catalog-preview-canvas {
    inset: 12px;
  }

  .catalog-preview-cover {
    padding: 16px;
  }

  .catalog-preview-dialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .catalog-dialog-toolbar {
    min-height: 112px;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 10px 12px;
  }

  .catalog-dialog-title-wrap {
    flex: 1 1 auto;
  }

  .catalog-dialog-controls {
    width: 100%;
  }

  .preview-device-switch-dialog {
    min-width: 0;
    flex: 1 1 auto;
  }

  .catalog-dialog-use {
    padding-inline: 11px;
  }

  .catalog-preview-dialog[data-device="mobile"] .catalog-dialog-device {
    width: min(390px, calc(100% - 20px));
    height: min(844px, calc(100% - 20px));
    border-radius: 18px;
  }

  .article-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 30px 0;
  }

  .article-number {
    font-size: 38px;
  }

  .article-card-title {
    font-size: 30px;
  }

  .article-card-meta {
    align-items: center;
  }

  .article-card-meta span:first-child {
    display: none;
  }

  .article-layout {
    padding-top: 42px;
  }

  .article-content {
    font-size: 15px;
  }

  .article-content > p:first-child {
    font-size: 24px;
  }

  .article-content h2 {
    margin-top: 48px;
    font-size: 36px;
  }

  .article-cta {
    padding: 28px 22px;
  }

  .article-cta h2 {
    font-size: 32px;
  }

  .product-footer-inner {
    min-height: 240px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .product-footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 460px) {
  .catalog-intro {
    grid-template-columns: 1fr;
  }

  .catalog-count {
    grid-row: 2;
    align-self: start;
    padding: 0;
  }

  .catalog-intro-copy {
    grid-row: 3;
  }

  .catalog-action {
    min-height: 56px;
    grid-template-columns: 17px minmax(0, 1fr);
    padding-inline: 10px;
  }

  .catalog-action small {
    display: none;
  }

  .catalog-dialog-title-wrap .catalog-status-dot {
    display: none;
  }

  .catalog-dialog-title-wrap h2 {
    font-size: 20px;
  }

  .preview-device-switch-dialog button span {
    display: none;
  }

  .catalog-dialog-use span {
    font-size: 0;
  }

  .catalog-dialog-use span::after {
    content: "Взять";
    font-size: 9px;
  }
}

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

/* Compact catalog: compare at a glance, inspect only on request. */
.template-catalog-page .catalog-collection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(36px, 5vw, 72px);
}

.template-catalog-page .catalog-entry {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 0 64px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.template-catalog-page .catalog-entry-summary {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
}

.template-catalog-page .catalog-details-topline {
  min-height: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 0;
}

.template-catalog-page .catalog-details-heading h2 {
  font-size: clamp(48px, 4.4vw, 64px);
  line-height: .88;
}

.template-catalog-page .catalog-details-heading > p:last-child {
  max-width: 520px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.65;
}

.template-catalog-page .catalog-entry-meta {
  margin-top: auto;
  padding-top: 24px;
}

.template-catalog-page .catalog-facts > div {
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding-block: 10px;
}

.template-catalog-page .catalog-actions {
  margin-top: 2px;
}

.template-catalog-page .catalog-preview {
  height: 238px;
  flex: 0 0 238px;
  grid-template-rows: minmax(0, 1fr);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(33, 39, 36, .1),
    0 12px 28px rgba(48, 40, 32, .08);
}

.template-catalog-page .catalog-preview-toolbar {
  display: none;
}

.template-catalog-page .catalog-preview-canvas {
  inset: 12px;
}

.template-catalog-page .catalog-preview-cover {
  padding: 16px;
  background: linear-gradient(180deg, transparent 42%, rgba(25, 28, 27, .34));
}

.template-catalog-page .catalog-preview-cover span {
  min-height: 42px;
  padding-inline: 14px;
}

@media (min-width: 1200px) {
  .template-catalog-page .catalog-collection {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 28px;
  }

  .template-catalog-page .catalog-entry {
    padding-bottom: 56px;
  }

  .template-catalog-page .catalog-details-heading h2 {
    font-size: 48px;
  }

  .template-catalog-page .catalog-details-heading > p:last-child {
    min-height: 60px;
  }

  .template-catalog-page .catalog-action {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 7px;
    padding-inline: 9px;
  }

  .template-catalog-page .catalog-preview {
    height: 210px;
    flex-basis: 210px;
  }
}

@media (max-width: 900px) {
  .catalog-tools {
    grid-template-columns: minmax(0, 1fr) minmax(140px, .4fr) minmax(140px, .4fr);
  }

  .catalog-reset {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .template-catalog-page .catalog-collection {
    grid-template-columns: 1fr;
  }

  .template-catalog-page .catalog-entry {
    padding: 28px 0 54px;
  }

  .template-catalog-page .catalog-preview {
    height: 220px;
    flex-basis: 220px;
  }
}

@media (max-width: 520px) {
  .catalog-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
    padding-block: 16px;
  }

  .catalog-search {
    grid-column: 1 / -1;
  }

  .catalog-search input {
    font-size: 12px;
  }

  .catalog-reset,
  .catalog-results {
    grid-column: 1 / -1;
  }

  .template-catalog-page .catalog-entry-summary {
    margin-bottom: 18px;
  }

  .template-catalog-page .catalog-details-topline {
    margin-bottom: 24px;
  }

  .template-catalog-page .catalog-details-heading h2 {
    font-size: 50px;
  }

  .template-catalog-page .catalog-details-heading > p:last-child {
    font-size: 11px;
  }

  .template-catalog-page .catalog-entry-meta {
    padding-top: 20px;
  }

  .template-catalog-page .catalog-preview {
    height: 196px;
    flex-basis: 196px;
  }
}
