:root {
  --catalog-bg: #0c0a09;
  --catalog-panel: #171412;
  --catalog-panel-2: #211d1a;
  --catalog-border: #3b332d;
  --catalog-text: #fafaf9;
  --catalog-muted: #d6d3d1;
  --catalog-accent: #f2c94c;
  --catalog-accent-dark: #7a5500;
  --catalog-danger: #fca5a5;
}

html { overflow-x: clip; scroll-behavior: smooth; }
body.catalog-maker-page { margin: 0; overflow-x: clip; background: var(--catalog-bg); color: var(--catalog-text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.catalog-maker-page *, .catalog-maker-page *::before, .catalog-maker-page *::after { box-sizing: border-box; }
.catalog-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.catalog-hero { padding: 112px 0 68px; background: radial-gradient(circle at 85% 15%, rgba(242, 201, 76, .13), transparent 32%), #0c0a09; border-bottom: 1px solid #29231f; }
.catalog-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); gap: 56px; align-items: center; }
.catalog-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: #d6d3d1; font-size: .86rem; margin-bottom: 26px; }
.catalog-breadcrumb a { color: #f2c94c; text-decoration: underline; text-underline-offset: 3px; }
.catalog-eyebrow, .catalog-kicker { color: #f2c94c; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.catalog-hero h1 { margin: 12px 0 20px; max-width: 760px; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(2.55rem, 5.2vw, 5.15rem); line-height: .98; letter-spacing: -.055em; color: #fff; }
.catalog-hero h1 span { color: #f2c94c; }
.catalog-lead { max-width: 680px; margin: 0 0 24px; color: #e7e5e4; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.7; }
.catalog-hero__proof { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.catalog-hero__proof span { padding: 8px 11px; border: 1px solid #51463d; border-radius: 999px; background: #171412; color: #f5f5f4; font-size: .82rem; font-weight: 700; }
.catalog-hero__image { margin: 0; border: 1px solid #4a4038; border-radius: 24px; overflow: hidden; background: #171412; box-shadow: 0 28px 70px rgba(0,0,0,.38); }
.catalog-hero__image img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.catalog-hero__image figcaption { padding: 11px 16px; color: #d6d3d1; font-size: .8rem; }

.catalog-answer { background: #fff7e8; color: #592c18; border-block: 1px solid #efcda5; }
.catalog-answer p { margin: 0; padding: 18px 0; line-height: 1.65; }
.catalog-tool-section, .catalog-content-section { padding: 78px 0; }
.catalog-content-section--soft { background: #151210; border-block: 1px solid #2f2925; }
.catalog-section-heading { max-width: 780px; margin: 0 auto 34px; text-align: center; }
.catalog-section-heading h2, .catalog-copy-grid h2, .catalog-final-cta h2 { margin: 8px 0 12px; color: #fff; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(1.85rem, 3.5vw, 3rem); line-height: 1.1; letter-spacing: -.035em; }
.catalog-section-heading p:last-child, .catalog-copy-grid p, .catalog-final-cta p { color: #d6d3d1; line-height: 1.75; }
.catalog-copy-grid a { color: #f2c94c; text-decoration: underline; text-underline-offset: 3px; }

.catalog-workspace { display: grid; grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr); gap: 28px; align-items: start; }
.catalog-editor, .catalog-preview-panel { border: 1px solid var(--catalog-border); border-radius: 22px; background: var(--catalog-panel); }
.catalog-editor { padding: 24px; }
.catalog-editor fieldset { min-width: 0; margin: 0; padding: 0 0 26px; border: 0; }
.catalog-editor fieldset + fieldset { padding-top: 24px; border-top: 1px solid var(--catalog-border); }
.catalog-editor legend { padding: 0; color: #fff; font-size: 1.15rem; font-weight: 800; }
.catalog-fields { display: grid; gap: 16px; margin-top: 18px; }
.catalog-fields--two { grid-template-columns: 1fr 1fr; }
.catalog-editor label { display: grid; gap: 7px; color: #f5f5f4; font-size: .85rem; font-weight: 700; }
.catalog-editor input:not([type="color"]):not([type="file"]), .catalog-editor textarea, .catalog-editor select { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #62564d; border-radius: 10px; background: #fff; color: #1c1917; font: inherit; font-weight: 500; }
.catalog-editor textarea { min-height: 76px; resize: vertical; }
.catalog-editor input:focus-visible, .catalog-editor textarea:focus-visible, .catalog-editor select:focus-visible, .catalog-btn:focus-visible { outline: 3px solid #f2c94c; outline-offset: 2px; }
.catalog-file-label { margin-top: 16px; padding: 14px; border: 1px dashed #74675d; border-radius: 12px; background: #211d1a; }
.catalog-file-label input { color: #f5f5f4; font-weight: 500; }
.catalog-file-label small { color: #d6d3d1; font-weight: 500; }
.catalog-color-field { display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 6px 10px; border: 1px solid #62564d; border-radius: 10px; background: #fff; color: #292524; }
.catalog-color-field input { width: 52px; height: 32px; padding: 0; border: 0; background: transparent; }
.catalog-legend-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }

.catalog-product-list { display: grid; gap: 14px; }
.catalog-product-editor { position: relative; padding: 15px; border: 1px solid #4b423b; border-radius: 14px; background: #211d1a; }
.catalog-product-editor__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.catalog-product-editor__top strong { color: #fff; }
.catalog-product-remove { border: 0; background: transparent; color: #fca5a5; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.catalog-product-editor__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.catalog-product-editor__grid .catalog-product-wide { grid-column: 1 / -1; }

.catalog-btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid transparent; border-radius: 11px; font: inherit; font-size: .9rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.catalog-btn:hover { transform: translateY(-1px); }
.catalog-btn--primary { background: #f2c94c; color: #241900; border-color: #f2c94c; }
.catalog-btn--secondary { background: #292524; color: #fff; border-color: #786b61; }
.catalog-btn--quiet { background: transparent; color: #e7e5e4; border-color: #51463d; }
.catalog-btn--small { min-height: 36px; padding: 7px 10px; background: #332d28; color: #fff; border-color: #74675d; font-size: .78rem; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.catalog-privacy { color: #d6d3d1; font-size: .78rem; line-height: 1.6; }
.catalog-status { min-height: 1.4em; color: #f2c94c; font-size: .84rem; font-weight: 700; }

.catalog-preview-panel { position: sticky; top: 88px; padding: 14px; overflow: hidden; }
.catalog-preview-bar { display: flex; justify-content: space-between; padding: 4px 2px 13px; color: #e7e5e4; font-size: .78rem; font-weight: 800; }
.catalog-output { max-height: 820px; overflow: auto; border-radius: 12px; background: #e7e5e4; padding: 14px; }
.catalog-sheet { position: relative; width: 100%; aspect-ratio: 210 / 297; overflow: hidden; background: #fff; color: #1c1917; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.catalog-sheet + .catalog-sheet { margin-top: 14px; }
.catalog-sheet--cover { display: flex; flex-direction: column; min-height: 620px; padding: clamp(28px, 7%, 58px); }
.catalog-cover__accent { position: absolute; inset: 0 0 auto; height: 18px; background: #d4a017; }
.catalog-cover__logo { width: 110px; height: 70px; margin-top: 10px; }
.catalog-cover__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.catalog-cover__content { margin: auto 0; }
.catalog-cover__label { display: inline-block; margin: 0 0 14px; padding: 7px 10px; border-radius: 999px; background: var(--catalog-user-accent, #d4a017); color: var(--catalog-user-accent-text, #1c1917); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.catalog-cover__content h2 { max-width: 92%; margin: 0; color: #1c1917; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1; letter-spacing: -.06em; overflow-wrap: anywhere; }
.catalog-cover__content p:last-child { max-width: 80%; color: #57534e; font-size: 1rem; line-height: 1.55; }
.catalog-cover__contact { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 18px; border-top: 1px solid #d6d3d1; color: #292524; font-size: .78rem; font-weight: 700; }
.catalog-sheet--products { min-height: 620px; padding: 26px; }
.catalog-sheet__header, .catalog-sheet__footer { display: flex; justify-content: space-between; gap: 12px; color: #57534e; font-size: .66rem; }
.catalog-sheet__header { align-items: center; padding-bottom: 10px; border-bottom: 2px solid #d4a017; }
.catalog-sheet__header strong { color: #1c1917; font-size: .86rem; }
.catalog-sheet__footer { margin-top: 15px; padding-top: 10px; border-top: 1px solid #d6d3d1; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 16px; }
.catalog-card { break-inside: avoid; overflow: hidden; border: 1px solid #d6d3d1; border-radius: 7px; background: #fff; }
.catalog-card__image { display: grid; aspect-ratio: 4/3; place-items: center; overflow: hidden; background: #f5f5f4; color: #57534e; font-size: .66rem; text-align: center; }
.catalog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card__body { padding: 10px; }
.catalog-card__meta { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.catalog-card h3 { margin: 0; color: #1c1917; font-size: .82rem; line-height: 1.2; overflow-wrap: anywhere; }
.catalog-card__price { color: #1c1917; font-size: .8rem; font-weight: 900; white-space: nowrap; }
.catalog-card__code { margin: 5px 0 0; color: #57534e; font-size: .58rem; font-weight: 700; }
.catalog-card__desc { margin: 7px 0 0; color: #57534e; font-size: .62rem; line-height: 1.45; overflow-wrap: anywhere; }
.catalog-card--empty { grid-column: 1 / -1; padding: 45px 20px; border: 1px dashed #a8a29e; color: #57534e; text-align: center; }

.catalog-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.catalog-steps article { padding: 22px; border: 1px solid #403832; border-radius: 16px; background: #1d1917; }
.catalog-steps span { color: #f2c94c; font-size: .75rem; font-weight: 900; }
.catalog-steps h3 { margin: 12px 0 7px; color: #fff; font-size: 1.03rem; }
.catalog-steps p { margin: 0; color: #d6d3d1; font-size: .88rem; line-height: 1.65; }
.catalog-copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.catalog-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.catalog-comparison > div { display: grid; gap: 12px; padding: 22px; border: 1px solid #4b423b; border-radius: 16px; background: #171412; }
.catalog-comparison strong { color: #fff; font-size: 1.05rem; }
.catalog-comparison span { position: relative; padding-left: 18px; color: #d6d3d1; font-size: .86rem; line-height: 1.5; }
.catalog-comparison span::before { content: "✓"; position: absolute; left: 0; color: #f2c94c; font-weight: 900; }
.catalog-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.catalog-faq details { padding: 16px 18px; border: 1px solid #4b423b; border-radius: 12px; background: #211d1a; }
.catalog-faq summary { color: #fff; font-weight: 800; cursor: pointer; }
.catalog-faq p { color: #d6d3d1; line-height: 1.65; }
.catalog-final-cta { padding: 44px; border: 1px solid #665a50; border-radius: 24px; background: linear-gradient(135deg, #211d1a, #151210); text-align: center; }
.catalog-final-cta > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.catalog-maker-page .footer { background: #0a0a0a; color: #f5f5f4; }
.catalog-maker-page .footer h3 { color: #fff; }
.catalog-maker-page .footer a, .catalog-maker-page .footer p { color: #a8a29e; }

@media (max-width: 980px) {
  .catalog-hero__grid, .catalog-workspace, .catalog-copy-grid { grid-template-columns: 1fr; }
  .catalog-hero__image { max-width: 760px; }
  .catalog-preview-panel { position: static; }
  .catalog-output { max-height: none; }
  .catalog-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .catalog-container { width: min(100% - 24px, 1180px); }
  .catalog-hero { padding: 92px 0 48px; }
  .catalog-hero h1 { font-size: clamp(2.35rem, 13vw, 3.7rem); }
  .catalog-tool-section, .catalog-content-section { padding: 54px 0; }
  .catalog-editor { padding: 16px; }
  .catalog-fields--two, .catalog-product-editor__grid, .catalog-faq, .catalog-comparison, .catalog-steps { grid-template-columns: 1fr; }
  .catalog-product-editor__grid .catalog-product-wide { grid-column: auto; }
  .catalog-legend-row { align-items: flex-start; }
  .catalog-actions .catalog-btn { width: 100%; }
  .catalog-output { margin-inline: -5px; padding: 7px; }
  .catalog-sheet--cover, .catalog-sheet--products { min-height: 470px; }
  .catalog-sheet--products { padding: 16px; }
  .catalog-grid { gap: 8px; }
  .catalog-card__body { padding: 7px; }
  .catalog-card h3, .catalog-card__price { font-size: .67rem; }
  .catalog-card__desc { font-size: .52rem; }
  .catalog-final-cta { padding: 28px 18px; }
}

@page { size: A4; margin: 0; }
@media print {
  html, body.catalog-maker-page { background: #fff !important; }
  .catalog-maker-page > :not(main), .catalog-maker-page main > :not(.catalog-tool-section), .catalog-tool-section .catalog-section-heading, .catalog-editor, .catalog-preview-bar { display: none !important; }
  .catalog-tool-section, .catalog-tool-section .catalog-container, .catalog-workspace, .catalog-preview-panel, .catalog-output { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; overflow: visible !important; }
  .catalog-sheet { width: 210mm !important; height: 297mm !important; min-height: 297mm !important; margin: 0 !important; box-shadow: none !important; page-break-after: always; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .catalog-sheet:last-child { page-break-after: auto; }
  .catalog-sheet--cover { padding: 22mm; }
  .catalog-sheet--products { padding: 12mm; height: auto !important; min-height: 297mm !important; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 6mm; }
  .catalog-card h3 { font-size: 11pt; }
  .catalog-card__price { font-size: 10pt; }
  .catalog-card__code, .catalog-card__desc { font-size: 8pt; }
}
