:root {
  color-scheme: light;
  --bg: #fffdf9;
  --surface: #ffffff;
  --panel: #fff7f0;
  --ink: #20242a;
  --muted: #5e5147;
  --line: #e4d8cc;
  --accent: #a32f17;
  --strong: #ff552f;
  --mono: "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-family: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
section[id] { scroll-margin-top: 24px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: white; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 5; padding: 10px 16px; background: var(--accent); color: var(--bg); transform: translateY(-180%); }
.skip:focus { transform: none; }
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 76px); }
.top { background: #ffffff; border-bottom: 1px solid var(--line); }
.bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: clamp(112px, 13vw, 164px); height: auto; }
footer .brand img { width: 118px; }
nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.5vw, 34px); color: var(--muted); font-size: 14px; }
nav a { padding-block: 8px; transition: color .2s; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; color: var(--ink); background: transparent; font-size: 14px; font-weight: 700; text-align: center; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.button span { font-size: 17px; line-height: 1; }
.outline { background: #ffffff; border-color: #c5af9c; }
.outline:hover { background: #fff0e1; border-color: #af5729; }
.primary { background: var(--strong); color: #14171b; border-color: #db4023; box-shadow: 0 6px 20px #ff552f2c; }
.primary:hover:not(:disabled) { background: #ff8064; color: #14171b; box-shadow: 0 6px 25px #ff552f42; }
.full { width: 100%; }

.hero { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(24px, 3.5vw, 58px); align-items: center; padding-block: clamp(36px, 6vw, 88px); }
.hero-copy { animation: arrive .64s ease-out both; }
.eyebrow, .art-caption, .art-label, .panel-top, .preview-foot, .service-top, .strip b {
  color: var(--muted); font: 11px/1.45 var(--mono); letter-spacing: .07em;
}
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; column-gap: 9px; row-gap: 4px; color: var(--accent); }
.eyebrow i, .art-caption i, .panel-top i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--strong); box-shadow: 0 0 12px #ff552f55; }
.tag-divider { width: 14px; height: 1px; background: #b76c43; }
.hero h1 { margin: 22px 0; font-size: clamp(54px, 7.35vw, 110px); line-height: .96; letter-spacing: -.078em; font-weight: 780; }
.hero h1 em { color: #b6331b; font-style: normal; }
.hero p, .intro { max-width: 52ch; margin: 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-art {
  position: relative; display: grid; align-items: center; margin: 0; min-width: 0;
  aspect-ratio: 1.21; border: 1px solid #dfc5af; border-radius: 14px; overflow: hidden;
  background-color: #fff5eb;
  background-image: linear-gradient(#e7864429 1px, transparent 1px), linear-gradient(90deg, #e7864429 1px, transparent 1px), radial-gradient(ellipse at 55% 56%, #ffe2c7, transparent 72%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  box-shadow: inset 0 0 80px #a4561214, 0 18px 65px #50301a22;
  animation: arrive .72s .09s ease-out both;
}
.printer { width: 100%; height: auto; display: block; }
.printer .head { animation: printer-travel 2.4s ease-in-out infinite alternate; }
.printer .layer-first { animation: printer-layer-first 9.6s linear infinite; }
.printer .layer-second { animation: printer-layer-second 9.6s linear infinite; }
.printer .extrusion { animation: printer-extrusion 9.6s linear infinite; }
@keyframes printer-travel { from { transform: translateX(-21px); } to { transform: translateX(21px); } }
@keyframes printer-layer-first { 0%, 24% { opacity: 0; } 28%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes printer-layer-second { 0%, 49% { opacity: 0; } 53%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes printer-extrusion { 0%, 20% { opacity: 1; } 52% { opacity: .45; } 94%, 100% { opacity: 0; } }
.art-caption, .art-label { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; inset-inline: 16px; }
.art-caption { top: 15px; padding-bottom: 10px; border-bottom: 1px solid #bb774d50; }
.art-caption i, .panel-top i { margin-right: 6px; }
.art-label strong { color: var(--accent); }
.art-label { bottom: 15px; padding-top: 10px; border-top: 1px solid #bb774d50; }
.strip { border-block: 1px solid var(--line); background: #fff5eb; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip .wrap > span { display: flex; align-items: center; gap: 12px; padding: 15px 12px; border-right: 1px solid var(--line); font-size: 13px; }
.strip .wrap > span:first-child { border-left: 1px solid var(--line); }
.strip b { color: var(--accent); }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.section { padding-block: clamp(52px, 7vw, 100px); }
h2 { margin: 12px 0 18px; font-size: clamp(35px, 5vw, 68px); line-height: 1.03; letter-spacing: -.068em; }
h3 { margin: 19px 0 7px; font-size: 21px; letter-spacing: -.04em; line-height: 1.2; }
.services, .products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.services { margin-top: 28px; }
.services article, .product { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color .22s, background .22s, transform .22s; }
.services article { padding: clamp(15px, 1.9vw, 26px); background: linear-gradient(145deg, #fff4e9, #ffffff 64%); }
.services article:hover, .product:hover { border-color: #d67533; transform: translateY(-3px); }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.service-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #e7c6aa; border-radius: 8px; background: #fff0e1; color: var(--accent); }
.service-icon svg, .service-icon img { width: 25px; height: 25px; }
.services p, .product p { margin: 5px 0 16px; color: var(--muted); line-height: 1.5; }
.services a { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); color: var(--accent); font-size: 14px; font-weight: 600; }
.services a:hover, .hint a:hover { text-decoration: underline; }

.workbench, .contact { background: #fff7ee; border-block: 1px solid var(--line); }
.quote-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); align-items: start; gap: 18px; }
.quote-grid { margin-top: 25px; }
.preview, .controls { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.panel-top { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel-top span:last-child { color: var(--accent); }
.viewer {
  position: relative; height: clamp(268px, 35vw, 500px); overflow: hidden;
  background-color: #fffaf5;
  background-image: linear-gradient(#e7864438 1px, transparent 1px), linear-gradient(90deg, #e7864438 1px, transparent 1px), radial-gradient(ellipse at center, #ffe8d1, transparent 78%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
}
.viewer canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.empty { position: absolute; inset: 0; display: grid; justify-items: center; align-content: center; gap: 8px; padding: 12px; text-align: center; pointer-events: none; }
.empty-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 5px; border: 1px solid #d29263; border-radius: 12px; background: #fff0e0; color: var(--accent); }
.empty small { color: var(--muted); }
.sample .empty { z-index: 1; align-content: end; }
.sample .empty-icon, .sample .empty strong { display: none; }
.sample .empty small { padding: 5px 9px; border-radius: 5px; background: var(--surface); }
.preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 47px; padding: 8px 14px; border-top: 1px solid var(--line); }
.text-button { border: 0; padding: 4px; color: var(--accent); background: transparent; }
.controls { display: grid; gap: 12px; padding: clamp(14px, 2vw, 25px); }
#order-fields { display: grid; gap: 13px; margin: 0; padding: 0; min-width: 0; border: 0; }
.form-title { color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.controls label, .filters label { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 13px; }
.drop { padding: 13px; border: 1px dashed #c46228; border-radius: 8px; background: #fff2e6; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.active, .drop:focus-within { background: #ffead7; border-color: var(--accent); }
.drop strong, .hint a { color: var(--accent); }
.drop span { overflow-wrap: anywhere; }
.drop input { border: 0; padding: 2px 0 0; background: transparent; }
input::file-selector-button { margin-right: 9px; padding: 6px 10px; border: 1px solid #c49a7b; border-radius: 5px; background: #ffe8d6; color: var(--ink); cursor: pointer; }
.status, .hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.status:empty { display: none; }
.status.error { color: #a12716; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
input, select, textarea { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #b9a99b; border-radius: 7px; padding: 9px 11px; background: #fffdfb; color: var(--ink); }
textarea { resize: vertical; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #dfbfa3; border-radius: 8px; background: #fff2e6; font-size: 14px; }
.price output { color: var(--accent); font-size: clamp(20px, 2.15vw, 27px); font-weight: 750; white-space: nowrap; }

.split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.filters label { flex: 1; min-width: min(100%, 200px); }
#catalog-status { color: var(--muted); font: 12px/1.5 var(--mono); }
.product img { width: 100%; aspect-ratio: 1.28; object-fit: contain; display: block; background: #f5eee7; border-bottom: 1px solid var(--line); }
.product .info { display: flex; flex: 1; flex-direction: column; padding: 15px; }
.product-top { align-self: flex-start; margin-bottom: 8px; padding: 3px 7px; border-radius: 5px; background: #ffe8d1; color: var(--accent); font-weight: 750; }
.product h3 { margin: 0 0 6px; font-size: 17px; overflow-wrap: anywhere; }
.product p { margin: 0 0 13px; font-size: 13px; }
.product .button { margin-top: auto; }
.contact-grid { gap: clamp(20px, 5vw, 70px); }
.contact-grid > div > a { display: inline-block; margin: 15px 14px 0 0; color: var(--accent); font-weight: 650; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: 24px; color: var(--muted); font-size: 13px; }
@media (max-width: 1020px) {
  .services, .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .bar { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding-block: 10px 5px; }
  .bar > .button { grid-column: 2; grid-row: 1; min-height: 38px; padding: 6px 10px; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; margin-top: 6px; border-top: 1px solid var(--line); }
  .hero, .quote-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(52px, 10vw, 76px); }
  .hero-art { aspect-ratio: 1.26; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .strip .wrap > span { padding: 10px 8px; font-size: 12px; }
  .strip .wrap > span:nth-child(3) { border-left: 1px solid var(--line); }
  .strip .wrap > span:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 430px) {
  .art-caption, .art-label { font-size: 8px; inset-inline: 10px; }
  .art-caption { top: 9px; padding-bottom: 5px; }
  .art-label { bottom: 9px; padding-top: 5px; }
  .services, .products { gap: 8px; }
  .services article, .product .info { padding: 11px; }
  .services h3, .product h3 { font-size: 15px; }
  .services p, .services a, .product .button { font-size: 13px; }
  .product .button { padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .printer .extrusion { display: none; }
}

.project-plates { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.project-plates select { flex: 1; width: auto; }

.tracking-dialog { width: min(480px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 16px 65px #24181036; }
.tracking-dialog::backdrop { background: #24181080; }
.tracking-panel { display: grid; gap: 14px; padding: clamp(16px, 4vw, 26px); }
.tracking-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tracking-heading h2 { margin: 0; font-size: clamp(24px, 6vw, 34px); }
.tracking-heading button { padding-inline: 13px; font-size: 20px; }
.tracking-panel form { display: grid; gap: 12px; }
.tracking-panel fieldset { display: grid; gap: 12px; }
.tracking-panel label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }

.product-actions { display: grid; gap: 8px; margin-top: auto; }

.shop-links { display: flex; flex-wrap: wrap; gap: 8px; }

.button.marketplace-button { color: #fff; gap: 9px; border-color: transparent; }
.button.marketplace-ozon { background: #005bff; }
.button.marketplace-wildberries { background: linear-gradient(115deg, #d20db5, #8d16c5); }
.button.marketplace-ozon:hover { background: #004bd6; }
.button.marketplace-wildberries:hover { background: linear-gradient(115deg, #b9089e, #7410a7); }
.button.marketplace-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.product .marketplace-button img, .marketplace-button img { display: block; width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; aspect-ratio: 1; border: 0; border-radius: 0; background: none; }

.button.marketplace-button { color: #fff; gap: 9px; border-color: transparent; }
.button.marketplace-ozon { background: #025afd url('/ozon-button-pattern.svg') center / cover; }
.button.marketplace-wildberries { background: linear-gradient(110deg, #db30d5, #c323d2); }
.button.marketplace-ozon:hover { background: #025afd url('/ozon-button-pattern.svg') center / cover; filter: brightness(.94); }
.button.marketplace-wildberries:hover { background: linear-gradient(110deg, #db30d5, #c323d2); filter: brightness(.94); }
.button.marketplace-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.product .marketplace-button img, .marketplace-button img { display: block; width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; aspect-ratio: 1; border: 0; border-radius: 0; background: none; }
.product .marketplace-button img.marketplace-wordmark, .marketplace-button img.marketplace-wordmark { width: 100px; height: 23px; flex: 0 0 100px; aspect-ratio: auto; }
.product .marketplace-wildberries img.marketplace-wordmark, .marketplace-wildberries img.marketplace-wordmark { width: 127px; flex-basis: 127px; }

.engraving-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 25px; }
.engraving-grid h3 { margin: 0; font-size: 21px; }
.engraving-grid fieldset { display: grid; gap: 12px; border: 0; min-width: 0; margin: 0; padding: 0; }
.engraving-preview { display: grid; justify-items: center; gap: 12px; padding: 22px 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f4e8db; }
.engraving-tag-shape { position: relative; display: grid; place-items: center; width: 150px; aspect-ratio: 1; border-radius: 50%; border: 2px solid #6c6861; background: linear-gradient(135deg, #e0ddd5, #aaa69f 50%, #d6d3cb); box-shadow: inset 0 1px 2px #fff, 0 5px 12px #40271633; }
.engraving-tag-shape.engraving-rectangle { width: 190px; aspect-ratio: 5 / 3; border-radius: 13px; }
.engraving-tag-shape::before { content: ''; position: absolute; top: 8%; left: 50%; width: 13px; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #f4e8db; box-shadow: inset 0 1px 3px #4d433f99; }
.engraving-tag-shape img { width: 68%; height: 63%; margin-top: 12%; object-fit: contain; filter: brightness(0) opacity(.76); }
.engraving-tag-shape span { color: #403c37; font-weight: 800; letter-spacing: .08em; margin-top: 10%; }
.engraving-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; }
.engraving-thumbnails:empty { display: none; }
.engraving-thumbnails img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
@media (max-width: 760px) { .engraving-grid { grid-template-columns: 1fr; } }

@media (max-width: 760px) { .engraving-grid { grid-template-columns: 1fr; } body:has(.engraving-grid) .bar nav { flex-wrap: wrap; gap: 0 12px; } }

.engraving-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 25px; }
.engraving-service { height: 100%; grid-template-rows: auto 1fr auto; }
.engraving-service h3 { margin: 0; font-size: 21px; }
.engraving-service p { margin: 0; color: var(--muted); }
.engraving-service .button { justify-self: start; }
.engraving-dialog { width: min(540px, calc(100% - 28px)); }
.engraving-dialog fieldset { gap: 12px; border: 0; min-width: 0; margin: 0; padding: 0; }
.engraving-preview { display: grid; justify-items: center; gap: 12px; padding: 22px 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f4e8db; }
.engraving-tag-shape { position: relative; display: grid; place-items: center; width: 150px; aspect-ratio: 1; border-radius: 50%; border: 2px solid #6c6861; background: linear-gradient(135deg, #e0ddd5, #aaa69f 50%, #d6d3cb); box-shadow: inset 0 1px 2px #fff, 0 5px 12px #40271633; }
.engraving-tag-shape.engraving-dog-tag { width: 108px; aspect-ratio: 28 / 50; border-radius: 44% / 10%; background: linear-gradient(130deg, #f4f5f6, #b0b6ba 55%, #e7e9eb); }
.engraving-tag-shape.engraving-dog-tag::before { top: 6%; width: 11px; }
.engraving-tag-shape.engraving-black { border-color: #202228; background: linear-gradient(135deg, #3f4148, #121317 62%, #373940); box-shadow: inset 0 1px 2px #83848a, 0 5px 12px #40271633; }
.engraving-tag-shape.engraving-black img { filter: brightness(0) invert(1) opacity(.84); }
.engraving-tag-shape.engraving-black span { color: #f0f0f0; }
.engraving-tag-shape::before { content: ''; position: absolute; top: 8%; left: 50%; width: 13px; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #f4e8db; box-shadow: inset 0 1px 3px #4d433f99; }
.engraving-tag-shape img { width: 68%; height: 63%; margin-top: 12%; object-fit: contain; filter: brightness(0) opacity(.76); }
.engraving-tag-shape span { color: #403c37; font-weight: 800; letter-spacing: .08em; margin-top: 10%; }
.engraving-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; }
.engraving-thumbnails:empty { display: none; }
.engraving-thumbnails img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
@media (max-width: 760px) { .engraving-grid { grid-template-columns: 1fr; } body:has(.engraving-grid) .bar nav { flex-wrap: wrap; gap: 0 12px; } }

.engraving-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 25px; }
.engraving-service { height: 100%; grid-template-rows: auto 1fr auto; }
.engraving-service h3 { margin: 0; font-size: 21px; }
.engraving-service p { margin: 0; color: var(--muted); }
.engraving-service .button { justify-self: start; }
.engraving-dialog { width: min(540px, calc(100% - 28px)); }
.engraving-dialog fieldset { gap: 12px; border: 0; min-width: 0; margin: 0; padding: 0; }
.engraving-preview { display: grid; justify-items: center; gap: 12px; padding: 22px 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f4e8db; }
.engraving-tag-shape { position: relative; display: grid; place-items: center; width: 150px; aspect-ratio: 1; border-radius: 50%; border: 2px solid #6c6861; background: linear-gradient(135deg, #e0ddd5, #aaa69f 50%, #d6d3cb); box-shadow: inset 0 1px 2px #fff, 0 5px 12px #40271633; }
.engraving-tag-shape.engraving-dog-tag { width: 108px; aspect-ratio: 28 / 50; border-radius: 44% / 10%; background: linear-gradient(130deg, #f4f5f6, #b0b6ba 55%, #e7e9eb); }
.engraving-tag-shape.engraving-dog-tag::before { top: 6%; width: 11px; }
.engraving-tag-shape.engraving-black { border-color: #202228; background: linear-gradient(135deg, #3f4148, #121317 62%, #373940); box-shadow: inset 0 1px 2px #83848a, 0 5px 12px #40271633; }
.engraving-tag-shape.engraving-black img { filter: brightness(0) invert(1) opacity(.84); }
.engraving-tag-shape.engraving-black span { color: #f0f0f0; }
.engraving-tag-shape::before { content: ''; position: absolute; top: 8%; left: 50%; width: 13px; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #f4e8db; box-shadow: inset 0 1px 3px #4d433f99; }
.engraving-layout { position: absolute; inset: 22% 17% 15%; }
.engraving-dog-tag .engraving-layout { inset: 16% 10% 9%; }
.engraving-layer { position: absolute; display: block; padding: 0; border: 0; background: transparent; transform: translate(-50%, -50%); touch-action: none; cursor: grab; }
.engraving-layer:active { cursor: grabbing; }
.engraving-layer[aria-pressed="true"], .engraving-layer:focus-visible { outline: 1px dashed #f16938; outline-offset: 2px; }
.engraving-tag-shape .engraving-layer img { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; filter: brightness(0) opacity(.76); pointer-events: none; }
.engraving-tag-shape.engraving-black .engraving-layer img { filter: brightness(0) invert(1) opacity(.84); }
.engraving-layer-controls { display: grid; gap: 8px; }
.engraving-layer-controls input[type="range"] { min-height: 28px; padding: 0; accent-color: var(--accent); }
.engraving-layer-controls .text-button { justify-self: start; }
.engraving-tag-shape span { color: #403c37; font-weight: 800; letter-spacing: .08em; margin-top: 10%; }
.engraving-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; }
.engraving-thumbnails:empty { display: none; }
.engraving-thumbnails img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
@media (max-width: 760px) { .engraving-grid { grid-template-columns: 1fr; } body:has(.engraving-grid) .bar nav { flex-wrap: wrap; gap: 0 12px; } }
