:root { --navy: #121214; --navy-2: #1d1d21; --orange: #e5252f; --orange-dark: #c11d26; --brand: #c51d26; --ink: #17181b; --muted: #5d6878; --line: #e2e6ed; --bg: #f5f6f9; }
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.preview-banner { background: #ffd84d; color: #1b1600; text-align: center; font-size: 13px; line-height: 1.4; padding: 8px 14px; }
.sample-note { background: #fff; margin-bottom: 16px; }
.site-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 0 28px; height: 74px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--brand); }
.logo { display: flex; flex: none; }
.logo img { height: 38px; width: auto; }
.site-head nav { display: flex; gap: 22px; margin-left: auto; }
.site-head nav a { text-decoration: none; font-weight: 500; font-size: 15px; opacity: .82; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-head nav a:hover, .site-head nav a.on { opacity: 1; border-color: var(--orange); }
.cart-link { text-decoration: none; font-weight: 700; background: #fff; color: var(--navy); border-radius: 999px; padding: 7px 8px 7px 16px; display: flex; gap: 8px; align-items: center; }
.cart-link span { background: var(--orange); color: #fff; border-radius: 999px; min-width: 24px; text-align: center; font-size: 13px; padding: 1px 6px; }

.btn { font: 600 14px Inter, sans-serif; border: 1px solid #c9d0da; background: #fff; color: var(--ink); border-radius: 9px; padding: 9px 14px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.btn:hover { border-color: #8b96a8; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn.primary:hover { background: #971219; }
.btn.danger { color: #b42318; }
.btn.big { padding: 14px 26px; font-size: 16px; border-radius: 11px; }
.btn.wide { width: 100%; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.link { background: none; border: 0; padding: 4px 0; margin-right: 16px; font: 600 14px Inter, sans-serif; color: #1d57b5; cursor: pointer; text-decoration: underline; }
.link.danger { color: #b42318; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px; padding: 64px max(28px, calc((100% - 1160px) / 2)); background: radial-gradient(circle at 80% 42%, #8d151d 0, transparent 55%), var(--navy); color: #fff; overflow: hidden; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 700; color: #ff7a80; margin: 0 0 12px; }
.hero h1 { font: 400 clamp(46px, 7vw, 84px)/1 Anton, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: #ff4b55; }
.lead { font-size: 18px; max-width: 500px; color: #d5dbe8; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; min-height: 440px; }
.hero-art img { position: absolute; width: 64%; }
.hero-art .a { left: 0; top: 0; transform: rotate(-6deg); }
.hero-art .b { right: 0; top: 70px; width: 58%; transform: rotate(7deg); }

.section { max-width: 1160px; margin: 0 auto; padding: 56px 24px; }
.section > h2 { font-size: 30px; text-align: center; margin-bottom: 30px; }
.section h1 { font-size: 34px; }
.section.alt { max-width: none; background: #fff; }
.section.alt .steps { max-width: 1110px; margin: 0 auto; }
.section.narrow { max-width: 760px; }
.sub { color: var(--muted); margin-top: -6px; }
.center { text-align: center; margin-top: 28px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; }
.card img { width: 82%; margin: 0 auto 8px; }
.card h3 { margin-bottom: 4px; font-size: 20px; }
.card p { margin: 0 0 14px; color: var(--muted); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-2); color: #fff; font: 400 22px Anton, sans-serif; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
.band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--navy-2); color: #fff; padding: 40px max(28px, calc((100% - 1110px) / 2)); }
.band p { margin: 0; color: #d5dbe8; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.info-grid div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.contact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
.contact dd { overflow-wrap: anywhere; }
.visit { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.contact a { color: var(--ink); }
.contact dt { font-weight: 700; } .contact dd { margin: 0; color: var(--muted); }

/* studio */
.studio { display: grid; grid-template-columns: 310px minmax(0, 1fr) 280px; gap: 16px; padding: 16px; align-items: start; max-width: 1480px; margin: 0 auto; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.panel h2 { font-size: 19px; }
.group { margin-top: 16px; }
.group > label:not(.drop), .editor-card > label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; }
.group > label span { text-transform: none; letter-spacing: 0; color: var(--ink); }
.segmented { display: flex; flex-wrap: wrap; gap: 4px; background: #eef0f4; padding: 4px; border-radius: 11px; }
.segmented button { flex: 1; border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; font: 600 13px Inter, sans-serif; cursor: pointer; color: var(--muted); }
.segmented button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 5px rgba(15,23,42,.16); }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange); }
.swatches.small { gap: 7px; margin-bottom: 10px; }
.swatches.small .swatch { width: 24px; height: 24px; }
.swatch.none { background: linear-gradient(135deg, #fff 45%, #d92d20 47%, #d92d20 53%, #fff 55%); }
.swatches input[type="color"] { width: 30px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.drop { display: block; margin-top: 10px; border: 2px dashed #bcc5d3; border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; background: #fafbfc; }
.drop:hover, .drop.over { border-color: var(--orange); background: #fff3f3; }
.drop input { display: none; }
.drop strong { display: block; } .drop span { font-size: 12px; color: var(--muted); display: block; }
.editor-card { border: 1px solid #f2b8bb; background: #fff8f8; border-radius: 12px; padding: 14px; }
.editor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.editor-head .link { margin: 0; }
.editor-card textarea, .editor-card select { width: 100%; font: 500 15px Inter, sans-serif; border: 1px solid #c9d0da; border-radius: 8px; padding: 9px; margin-bottom: 10px; background: #fff; resize: vertical; }
.file-name { margin: 0 0 4px; font-weight: 600; overflow-wrap: anywhere; }
.quality { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.quality.good { color: #146c43; } .quality.ok { color: #8a5a00; } .quality.bad { color: #b42318; }
.dims { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.actions .btn { padding: 7px 6px; font-size: 13px; }
.editor-card input[type="range"] { width: 100%; margin: 0 0 12px; accent-color: var(--orange-dark); }
.editor-card > label span { text-transform: none; letter-spacing: 0; }
.tools #add-text { margin-top: 8px; }
.designs { width: min(920px, calc(100vw - 20px)); max-height: 90vh; border: 0; border-radius: 16px; padding: 20px; color: var(--ink); }
.designs::backdrop { background: rgba(10,10,12,.62); }
.designs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.designs-head h2 { margin: 0; font-size: 22px; }
.designs .team { display: block; font-weight: 700; font-size: 13px; margin-top: 14px; }
.designs .team input { display: block; width: 100%; margin-top: 5px; font: 500 17px Inter, sans-serif; border: 1px solid #c9d0da; border-radius: 9px; padding: 11px; }
.design-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.design-grid button { border: 1px solid var(--line); border-radius: 12px; background: #f1f2f5; padding: 8px; cursor: pointer; font: 700 14px Inter, sans-serif; }
.design-grid button:hover { border-color: var(--orange); }
.design-grid img { display: block; width: 100%; aspect-ratio: 600 / 680; }
.layer-list { display: grid; gap: 6px; }
.layer-list button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 9px 11px; font: 500 13px Inter, sans-serif; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.stage-wrap { background: radial-gradient(circle at 50% 38%, #fff, #e6e9f0); border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; }
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stage-bar .segmented { min-width: 200px; }
.history { display: flex; gap: 6px; }
#stage { display: block; width: 100%; max-width: max(360px, min(620px, calc((100vh - 236px) * .882))); aspect-ratio: 600 / 680; margin: 4px auto; touch-action: none; cursor: grab; }
.hint { font-size: 12px; color: var(--muted); margin: 4px 0; }

.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.size span { display: flex; justify-content: center; gap: 4px; align-items: baseline; font-weight: 700; font-size: 13px; }
.size small { color: var(--muted); font-weight: 500; font-size: 11px; }
.size input { width: 100%; text-align: center; font: 600 16px Inter, sans-serif; border: 1px solid #c9d0da; border-radius: 9px; padding: 8px 2px; }
.price-box { margin: 16px 0 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 14px; }
.row.muted, .muted { color: var(--muted); font-size: 13px; }
.row.save, .save { color: #146c43; font-weight: 600; }
.row.total { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; align-items: baseline; }
.nudge { font-size: 13px; background: #eaf6ee; color: #146c43; border-radius: 8px; padding: 7px 10px; margin: 8px 0 0; }
.warnings { list-style: none; margin: 0 0 12px; padding: 10px 12px; background: #fff6dd; border: 1px solid #f0cd6a; border-radius: 10px; font-size: 13px; }
.warnings b { text-transform: capitalize; }
.order .link { display: block; margin: 12px auto 0; color: var(--muted); }

/* cart and checkout */
.section.cart { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.line { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.thumbs { display: flex; gap: 8px; }
.thumbs figure { margin: 0; text-align: center; }
.thumbs img { width: 118px; background: #eef0f4; border-radius: 10px; }
.thumbs figcaption { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.line-info { flex: 1; } .line-info p { margin: 0 0 3px; font-size: 14px; } .line-info h3 { margin-bottom: 6px; }
.line-price { font-size: 19px; }
.line-info .link { white-space: nowrap; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; position: sticky; top: 88px; }
fieldset { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; }
fieldset label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
fieldset input:not([type="radio"]), fieldset textarea { display: block; width: 100%; margin-top: 4px; font: 400 15px Inter, sans-serif; border: 1px solid #c9d0da; border-radius: 9px; padding: 10px; }
.invalid { border-color: #d92d20 !important; background: #fff5f4; outline: 2px solid #d92d20; }
.radio { display: flex !important; gap: 9px; align-items: center; font-size: 14px; margin-bottom: 10px; }
.split { display: grid; grid-template-columns: 2fr .7fr 1fr; gap: 10px; }
.pay-off { border: 2px dashed #bcc5d3; border-radius: 10px; padding: 14px; }
.pay-off p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.error { color: #b42318; font-weight: 600; min-height: 1.4em; margin: 4px 0; }
.done { text-align: center; }
.done span { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: #e2f4e9; color: #146c43; font-size: 34px; margin: 0 auto 16px; }
.total-line { font-size: 18px; }
.shop-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 24px; }
.file-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 12px 0; }
.file-row .btn { margin-left: 8px; }

.site-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; background: var(--navy); color: #c7cfdf; padding: 34px 28px 22px; margin-top: 40px; }
.site-foot strong { color: #fff; font-family: Oswald, sans-serif; text-transform: uppercase; font-size: 18px; }
.site-foot p { margin: 4px 0; }
.site-foot a { margin-left: 20px; text-decoration: none; }
.preview-note { width: 100%; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; font-size: 12px; }
main[data-page="home"] + .site-foot { margin-top: 0; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; max-width: 92vw; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .studio { grid-template-columns: 290px minmax(0, 1fr); }
  .studio .order { grid-column: 1 / -1; }
  .order .sizes { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 860px) {
  .site-head { flex-wrap: wrap; height: auto; padding: 10px 16px 0; gap: 8px 12px; }
  .site-head nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 18px; padding-bottom: 6px; }
  .cart-link { margin-left: auto; }
  .site-head { position: static; }
  .logo img { height: 32px; }
  .hero { grid-template-columns: 1fr; padding: 40px 20px; }
  .hero-art { min-height: 0; height: 78vw; max-height: 430px; }
  .cards, .info-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .section.cart { grid-template-columns: 1fr; }
  .summary { position: static; }
  .studio { display: flex; flex-direction: column; align-items: stretch; padding: 10px; }
  .studio .stage-wrap { order: -1; position: sticky; top: 0; z-index: 10; padding: 8px; box-shadow: 0 8px 18px rgba(15,23,42,.14); }
  #stage { max-width: max(230px, calc(42vh * .882)); }
  .hint { display: none; }
  .stage-bar { flex-wrap: nowrap; }
  .stage-bar .segmented { min-width: 0; flex: 1; }
  .design-grid { grid-template-columns: 1fr 1fr; }
  .designs { padding: 14px; }
  .history .btn { padding: 8px 9px; font-size: 13px; white-space: nowrap; }
  .order .sizes { grid-template-columns: repeat(3, 1fr); }
  .line { flex-wrap: wrap; }
  .thumbs img { width: 104px; }
  .site-foot a { margin: 0 18px 0 0; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; } .split { grid-template-columns: 1fr; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 18px; }
  .contact dd { margin-bottom: 14px; }
  .contact dd:last-child { margin-bottom: 0; }
}
