@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #231b22;
  --muted: #766d73;
  --paper: #f7f2e9;
  --paper-2: #eee6da;
  --white: #fffdf9;
  --line: rgba(35, 27, 34, 0.12);
  --plum: #4b263d;
  --plum-2: #6c3b58;
  --coral: #ef624e;
  --coral-dark: #d84a38;
  --sage: #b9c4ad;
  --blue: #1657a8;
  --yellow: #f4c85d;
  --green: #3b7651;
  --shadow: 0 24px 70px rgba(54, 35, 45, 0.12);
  --shadow-sm: 0 12px 32px rgba(54, 35, 45, 0.09);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius: 18px;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.editor-body { background: #eee9e2; overflow-x: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.surface-paper { background: var(--paper); }
.surface-plum { color: white; background: var(--plum); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { width: 20px; height: 2px; background: currentColor; content: ''; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-title { margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(32px, 4vw, 54px); line-height: 1.04; letter-spacing: -.045em; }
.section-copy { max-width: 540px; margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(4px); }

.announcement {
  padding: 9px 20px;
  color: white;
  background: var(--plum);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}
.announcement strong { color: #ffd4cb; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(18px);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 7px 24px rgba(35, 27, 34, .06); }
.header-inner { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.045em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; border-radius: 50% 50% 50% 12px; background: var(--coral); font-size: 17px; transform: rotate(-5deg); }
.nav { display: flex; align-items: center; justify-content: center; gap: 6px; }
.nav a { padding: 10px 13px; border-radius: 99px; color: #5d545a; font-size: 14px; font-weight: 600; transition: .2s ease; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--paper); }
.nav a.personal-link { color: var(--coral-dark); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: .2s ease; }
.icon-button:hover { border-color: rgba(35,27,34,.3); background: var(--paper); transform: translateY(-1px); }
.cart-count { position: absolute; top: -3px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; color: white; border: 2px solid var(--white); border-radius: 99px; background: var(--coral); font-size: 9px; font-weight: 800; }
.mobile-menu-button { display: none; }

.button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(35,27,34,.14); }
.button.coral { background: var(--coral); }
.button.coral:hover { background: var(--coral-dark); }
.button.plum { background: var(--plum); }
.button.light { color: var(--ink); background: var(--white); border-color: var(--line); }
.button.ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.button.small { min-height: 42px; padding-inline: 17px; font-size: 14px; }
.button.block { width: 100%; }

/* Home */
.hero { overflow: hidden; background: var(--paper); }
.hero-grid { min-height: 650px; display: grid; grid-template-columns: .86fr 1.14fr; }
.hero-copy { position: relative; z-index: 2; padding: 84px 44px 70px max(20px, calc((100vw - var(--container)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { max-width: 650px; margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(51px, 6.3vw, 91px); line-height: .94; letter-spacing: -.065em; }
.hero-copy h1 em { color: var(--coral); font-family: Georgia, serif; font-weight: 400; }
.hero-copy > p { max-width: 560px; margin: 24px 0 28px; color: #665d63; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; color: #625961; font-size: 13px; font-weight: 600; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 31px; height: 31px; display: grid; place-items: center; margin-left: -8px; border: 2px solid var(--paper); border-radius: 50%; color: white; background: var(--plum); font-size: 10px; }
.avatar-stack span:first-child { margin-left: 0; background: var(--coral); }
.avatar-stack span:last-child { background: var(--blue); }
.hero-visual { position: relative; min-height: 650px; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-sticker { position: absolute; right: 8%; bottom: 8%; width: 138px; height: 138px; padding: 18px; display: grid; place-items: center; color: var(--plum); border-radius: 50%; background: var(--yellow); box-shadow: var(--shadow-sm); text-align: center; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; line-height: 1.2; transform: rotate(7deg); }
.hero-sticker::after { position: absolute; inset: 8px; border: 1px dashed rgba(75,38,61,.35); border-radius: inherit; content: ''; }

.trust-strip { border-block: 1px solid var(--line); background: var(--white); }
.trust-grid { min-height: 96px; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; }
.trust-item { padding: 15px 22px; display: flex; align-items: center; gap: 13px; border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; background: var(--paper); font-size: 19px; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item span { color: var(--muted); font-size: 12px; }

.category-row { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.category-card { position: relative; min-height: 172px; padding: 19px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .25s ease, box-shadow .25s ease; }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.category-card strong { position: relative; z-index: 2; display: block; font-family: 'Manrope', sans-serif; font-size: 16px; }
.category-card span { position: relative; z-index: 2; color: var(--muted); font-size: 12px; }
.category-art { position: absolute; right: -12px; bottom: -22px; width: 115px; height: 105px; border-radius: 16px; background: var(--paper-2); transform: rotate(-8deg); }
.category-art::before, .category-art::after { position: absolute; border-radius: 10px; content: ''; }
.category-art::before { inset: -9px 12px 15px -12px; background: var(--coral); opacity: .75; }
.category-art::after { inset: 12px -8px -10px 20px; background: var(--sage); opacity: .86; }
.category-card:nth-child(2) .category-art::before { background: var(--blue); }
.category-card:nth-child(3) .category-art::before { background: var(--plum-2); }
.category-card:nth-child(4) .category-art::before { background: var(--yellow); }
.category-card:nth-child(5) .category-art::before { background: #84b7aa; }
.category-card:nth-child(6) .category-art::before { background: #b8869b; }

.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.product-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.product-art { position: relative; height: 330px; overflow: hidden; background: #eadfd3; }
.product-art.business { background: #e7e0d7; }
.business-card-stack { position: absolute; inset: 50% auto auto 50%; width: 230px; height: 138px; border-radius: 8px; background: #fff9ef; box-shadow: -9px 10px 0 #d9c8b8, -18px 20px 34px rgba(62,36,48,.18); transform: translate(-50%,-50%) rotate(-8deg); }
.business-card-stack::before { position: absolute; top: 22px; left: 22px; width: 36px; height: 36px; border-radius: 50% 50% 50% 9px; background: var(--coral); content: ''; }
.business-card-stack::after { position: absolute; right: 22px; bottom: 25px; width: 82px; height: 9px; border-block: 3px solid var(--plum); content: ''; }
.brochure-art { position: absolute; top: 46px; left: 50%; width: 260px; height: 230px; display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; box-shadow: 0 26px 34px rgba(42,33,38,.18); transform: translateX(-50%) rotate(3deg); }
.brochure-art span:nth-child(1) { background: #e86854; }
.brochure-art span:nth-child(2) { background: #fff6e9; }
.brochure-art span:nth-child(3) { background: var(--plum); }
.brochure-art::before { position: absolute; top: 36px; left: 22px; width: 165px; height: 80px; border-radius: 50%; background: var(--yellow); content: ''; opacity: .8; transform: rotate(-15deg); }
.invitation-art { position: absolute; top: 50%; left: 50%; width: 220px; height: 280px; padding: 65px 25px 20px; border: 1px solid #d7c8b7; border-radius: 3px; color: var(--plum); background: #fffaf1; box-shadow: 14px 16px 0 #b9c4ad, 0 30px 42px rgba(60,38,47,.2); text-align: center; transform: translate(-50%,-50%) rotate(-4deg); }
.invitation-art::before { position: absolute; top: 24px; left: 50%; width: 50px; height: 35px; border: 2px solid var(--coral); border-radius: 50%; content: ''; transform: translateX(-50%); }
.invitation-art strong { display: block; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.invitation-art small { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.card-badge { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 7px 11px; border-radius: 999px; color: var(--plum); background: rgba(255,253,249,.88); backdrop-filter: blur(8px); font-size: 11px; font-weight: 800; }
.heart-button { position: absolute; top: 15px; right: 15px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,253,249,.88); cursor: pointer; }
.heart-button.is-liked { color: var(--coral); }
.product-info { padding: 22px; }
.product-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 12px; }
.product-info h3 { margin: 7px 0 4px; font-family: 'Manrope', sans-serif; font-size: 20px; letter-spacing: -.02em; }
.price { display: flex; align-items: baseline; gap: 5px; margin-top: 16px; }
.price strong { font-family: 'Manrope', sans-serif; font-size: 22px; }
.price span { color: var(--muted); font-size: 12px; }

.personal-showcase { position: relative; overflow: hidden; }
.personal-showcase::before { position: absolute; top: -140px; right: -140px; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ''; }
.personal-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 80px; }
.personal-copy .eyebrow { color: #ffb4a8; }
.personal-copy h2 { margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(40px,5vw,66px); line-height: 1; letter-spacing: -.055em; }
.personal-copy p { max-width: 540px; margin: 22px 0 30px; color: rgba(255,255,255,.72); font-size: 17px; }
.mini-list { margin: 0 0 32px; padding: 0; list-style: none; display: grid; gap: 12px; }
.mini-list li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.86); }
.mini-list li::before { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--plum); background: var(--yellow); content: '✓'; font-size: 12px; font-weight: 900; }
.editor-preview { position: relative; min-height: 495px; padding: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 26px; background: #ede8e1; box-shadow: 0 40px 90px rgba(20,10,16,.3); transform: rotate(1deg); }
.preview-toolbar { height: 43px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(35,27,34,.1); }
.preview-toolbar span { width: 9px; height: 9px; border-radius: 50%; background: #cbbfc3; }
.preview-toolbar span:first-child { background: var(--coral); }
.preview-workspace { height: 405px; display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding-top: 18px; }
.preview-sidebar { padding: 12px; display: grid; align-content: start; gap: 11px; border-radius: 13px; background: #fffaf5; }
.preview-sidebar i { height: 37px; border-radius: 8px; background: #e9dfd5; }
.preview-sidebar i:first-child { background: var(--coral); }
.preview-canvas-wrap { display: grid; place-items: center; border-radius: 13px; background: #dbd5d0; }
.preview-canvas { position: relative; width: 76%; aspect-ratio: 1.65; overflow: hidden; border-radius: 5px; background: #fff9ef; box-shadow: 0 15px 32px rgba(44,31,37,.18); }
.preview-canvas::before { position: absolute; top: -18%; right: -7%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: var(--coral); content: ''; }
.preview-canvas::after { position: absolute; right: 8%; bottom: -25%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--sage); content: ''; }
.preview-name { position: absolute; top: 32%; left: 10%; z-index: 1; color: var(--plum); font-family: Georgia, serif; font-size: clamp(18px,2.4vw,34px); }

.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: step; }
.process-card { position: relative; padding: 28px; border-top: 1px solid var(--line); counter-increment: step; }
.process-card::before { display: block; margin-bottom: 40px; color: var(--coral); content: '0' counter(step); font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 800; }
.process-card h3 { margin: 0 0 10px; font-family: 'Manrope', sans-serif; font-size: 19px; }
.process-card p { margin: 0; color: var(--muted); font-size: 14px; }

.cta-box { padding: 58px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; border-radius: var(--radius-xl); color: white; background: var(--coral); }
.cta-box h2 { max-width: 700px; margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(34px,4vw,54px); line-height: 1.05; letter-spacing: -.045em; }
.cta-box p { margin: 13px 0 0; color: rgba(255,255,255,.8); }

/* Shared form styles */
.field { display: grid; gap: 8px; }
.field > label, .field-label { color: #564c52; font-size: 12px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; outline: none; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 100px; padding-top: 13px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(239,98,78,.12); }
.field-note { color: var(--muted); font-size: 11px; }
.segmented { padding: 4px; display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.segmented.three { grid-template-columns: repeat(3,1fr); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { min-height: 42px; padding: 9px 10px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); text-align: center; font-size: 13px; font-weight: 700; cursor: pointer; }
.segmented input:checked + label { color: var(--ink); background: white; box-shadow: 0 4px 13px rgba(35,27,34,.08); }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card label { min-height: 65px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; transition: .2s; }
.choice-card label strong { font-size: 13px; }
.choice-card label span { color: var(--muted); font-size: 11px; }
.choice-card input:checked + label { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(239,98,78,.1); }
.upload-zone { min-height: 108px; padding: 20px; display: grid; place-items: center; border: 1px dashed rgba(75,38,61,.3); border-radius: 16px; background: rgba(247,242,233,.65); text-align: center; cursor: pointer; transition: .2s; }
.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--coral); background: rgba(239,98,78,.06); }
.upload-zone input { display: none; }
.upload-zone strong { display: block; font-size: 13px; }
.upload-zone span { color: var(--muted); font-size: 11px; }
.upload-file { margin-top: 8px; color: var(--green); font-size: 12px; font-weight: 700; }

/* Product detail */
.breadcrumb { padding: 24px 0; color: var(--muted); font-size: 12px; }
.breadcrumb a:hover { color: var(--coral-dark); }
.detail-layout { padding-bottom: 94px; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(380px,.88fr); gap: 58px; }
.gallery { display: grid; grid-template-columns: 78px 1fr; gap: 14px; }
.thumbs { display: grid; align-content: start; gap: 11px; }
.thumb { aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); cursor: pointer; }
.thumb.active { border: 2px solid var(--coral); }
.thumb span { width: 100%; height: 100%; display: block; background: linear-gradient(145deg,#eadfd3,#fff8ee 55%,#b9c4ad); }
.thumb:nth-child(2) span { background: linear-gradient(32deg,var(--plum),#ef9a8e); }
.thumb:nth-child(3) span { background: linear-gradient(145deg,#fff8ee 40%,var(--coral) 41% 60%,#b9c4ad 61%); }
.thumb:nth-child(4) span { background: url('../images/matbaa-hero.png') center/cover; }
.gallery-main { position: relative; min-height: 650px; overflow: hidden; border-radius: var(--radius-lg); background: #ece4da; }
.gallery-main.photo-mode { background: url('../images/matbaa-hero.png') center/cover; }
.gallery-main.photo-mode .detail-business-stack { display: none; }
.detail-business-stack { position: absolute; top: 50%; left: 50%; width: min(72%,500px); aspect-ratio: 1.68; border-radius: 14px; background: #fffaf0; box-shadow: -15px 18px 0 #cfbeb1, -28px 34px 55px rgba(53,35,43,.2); transform: translate(-50%,-50%) rotate(-7deg); }
.detail-business-stack::before { position: absolute; top: 12%; left: 9%; width: 17%; aspect-ratio: 1; border-radius: 50% 50% 50% 12px; background: var(--coral); content: ''; }
.detail-business-stack::after { position: absolute; right: 9%; bottom: 14%; width: 32%; height: 14%; border-block: 5px solid var(--plum); content: ''; }
.detail-float-label { position: absolute; right: 22px; top: 22px; padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); font-size: 11px; font-weight: 800; }
.detail-panel { position: sticky; top: 112px; align-self: start; }
.rating-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.stars { color: #d89d20; letter-spacing: 2px; }
.detail-panel h1 { margin: 13px 0 8px; font-family: 'Manrope', sans-serif; font-size: clamp(38px,4vw,56px); line-height: 1; letter-spacing: -.055em; }
.detail-sub { margin: 0 0 21px; color: var(--muted); }
.detail-price { margin-bottom: 26px; display: flex; align-items: baseline; gap: 9px; }
.detail-price strong { font-family: 'Manrope', sans-serif; font-size: 30px; }
.detail-price span { color: var(--muted); font-size: 12px; }
.option-group { margin-top: 20px; }
.option-title { margin-bottom: 10px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.option-title span { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.detail-total { margin: 24px 0 14px; padding: 18px; display: flex; align-items: center; justify-content: space-between; border-radius: 16px; background: var(--paper); }
.detail-total span { color: var(--muted); font-size: 12px; }
.detail-total strong { font-family: 'Manrope',sans-serif; font-size: 26px; }
.secure-line { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 11px; }
.accordions { margin-top: 30px; border-top: 1px solid var(--line); }
.accordion { border-bottom: 1px solid var(--line); }
.accordion-button { width: 100%; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; border: 0; background: transparent; font-weight: 700; cursor: pointer; }
.accordion-button span { transition: transform .2s; }
.accordion.open .accordion-button span { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; color: var(--muted); font-size: 13px; transition: max-height .25s ease; }
.accordion.open .accordion-content { max-height: 240px; padding-bottom: 18px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.spec-table td:last-child { color: var(--ink); text-align: right; font-weight: 600; }

/* Calculator */
.page-hero { padding: 62px 0 52px; background: var(--paper); }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.page-hero h1 { max-width: 780px; margin: 0; font-family: 'Manrope',sans-serif; font-size: clamp(45px,6vw,74px); line-height: .98; letter-spacing: -.06em; }
.page-hero p { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.step-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.step-chip { padding: 9px 13px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.6); color: var(--muted); font-size: 11px; font-weight: 700; }
.step-chip.active { color: white; border-color: var(--coral); background: var(--coral); }
.calculator-layout { padding: 54px 0 100px; display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 34px; align-items: start; }
.calculator-form { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.calc-section { padding: 30px; border-bottom: 1px solid var(--line); }
.calc-section:last-child { border-bottom: 0; }
.calc-title-row { margin-bottom: 22px; display: flex; align-items: center; gap: 13px; }
.calc-number { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--plum); font-size: 12px; font-weight: 800; }
.calc-title-row h2 { margin: 0; font-family: 'Manrope',sans-serif; font-size: 20px; }
.calc-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.calc-summary { position: sticky; top: 108px; overflow: hidden; border-radius: var(--radius-lg); color: white; background: var(--plum); box-shadow: var(--shadow); }
.summary-top { padding: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.summary-kicker { color: rgba(255,255,255,.62); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.summary-price { margin: 8px 0 2px; font-family: 'Manrope',sans-serif; font-size: 46px; line-height: 1; letter-spacing: -.05em; }
.summary-vat { color: rgba(255,255,255,.6); font-size: 11px; }
.summary-lines { padding: 22px 28px; display: grid; gap: 13px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.72); font-size: 12px; }
.summary-line strong { color: white; text-align: right; }
.summary-total { padding-top: 15px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.summary-actions { padding: 0 28px 28px; }
.summary-actions .button { color: var(--plum); background: var(--yellow); }
.summary-note { margin: 13px 0 0; color: rgba(255,255,255,.55); text-align: center; font-size: 10px; }

/* Design editor */
.editor-header { height: 70px; padding: 0 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); background: var(--white); }
.editor-header .brand { font-size: 18px; }
.editor-title { text-align: center; }
.editor-title strong { display: block; font-size: 14px; }
.editor-title span { color: var(--muted); font-size: 11px; }
.editor-actions { display: flex; align-items: center; gap: 8px; }
.editor-shell { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 78px 270px minmax(430px,1fr) 280px; }
.editor-rail { padding: 13px 9px; display: grid; align-content: start; gap: 7px; border-right: 1px solid var(--line); background: #fffdfa; }
.rail-button { min-height: 61px; padding: 8px 4px; display: grid; place-items: center; gap: 2px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 700; cursor: pointer; }
.rail-button i { font-style: normal; font-size: 20px; line-height: 1; }
.rail-button.active, .rail-button:hover { color: var(--coral-dark); background: #f7eae6; }
.asset-panel { padding: 20px; overflow-y: auto; border-right: 1px solid var(--line); background: white; }
.asset-panel-head { margin-bottom: 18px; }
.asset-panel-head h2 { margin: 0; font-family: 'Manrope',sans-serif; font-size: 20px; }
.asset-panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.asset-section { display: none; }
.asset-section.active { display: block; }
.template-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px 10px; }
.template-card { padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 13px; background: transparent; text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.template-card[hidden] { display: none; }
.template-card:hover { transform: translateY(-2px); }
.template-card:hover, .template-card.active { border-color: var(--coral); box-shadow: 0 9px 20px rgba(48,31,39,.1); }
.template-thumb { position: relative; aspect-ratio: 1.55; display: block; overflow: hidden; background: var(--paper); }
.template-thumb::before, .template-thumb::after, .template-thumb b { position: absolute; display: block; content: ''; }
.template-thumb i { position: absolute; z-index: 2; font-family: 'Manrope',sans-serif; font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: -.03em; }
.template-label { padding: 8px 8px 9px; display: grid; background: white; }
.template-label strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.template-label small { color: var(--muted); font-size: 8px; }
.look-coral { background: #fff8ed; }.look-coral::before { inset: 8% 69% 8% 4%; border-radius: 20px; background: var(--coral); }.look-coral::after { right: -4%; bottom: -34%; width: 43%; aspect-ratio: 1; border-radius: 50%; background: var(--sage); }.look-coral i { left: 39%; top: 32%; color: var(--plum); }
.look-midnight { background: var(--plum); }.look-midnight::before { left: 8%; top: 16%; width: 28%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); }.look-midnight::after { right: 8%; bottom: 18%; width: 33%; height: 2px; background: #fff3dc; }.look-midnight i { right: 9%; top: 22%; color: white; font-size: 11px; }
.look-cobalt { background: #f5f1e9; }.look-cobalt::before { inset: 0 55% 0 0; background: var(--blue); }.look-cobalt::after { right: 8%; top: 22%; width: 31%; height: 42%; border-block: 3px solid var(--coral); }.look-cobalt i { right: 8%; bottom: 17%; color: var(--ink); }
.look-sage { background: var(--sage); }.look-sage::before { left: 7%; top: 12%; width: 45%; height: 75%; border-radius: 2px; background: #fffaf0; transform: rotate(-4deg); }.look-sage::after { right: -8%; top: -12%; width: 43%; aspect-ratio: 1; border: 1px solid var(--plum); border-radius: 50%; }.look-sage i { left: 15%; top: 42%; color: var(--plum); }
.look-monogram { background: var(--coral); }.look-monogram::before { left: 7%; bottom: 9%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: #ffe6ce; }.look-monogram::after { right: 6%; top: 10%; width: 2px; height: 80%; background: rgba(255,255,255,.7); }.look-monogram i { left: 38%; top: 26%; color: white; font-size: 22px; }
.look-minimal { background: white; }.look-minimal::before { left: 9%; top: 16%; width: 3px; height: 68%; background: var(--ink); }.look-minimal::after { right: 8%; top: 15%; width: 21%; aspect-ratio: 1; border: 1px solid var(--coral); border-radius: 50%; }.look-minimal i { left: 19%; top: 38%; color: var(--ink); }
.look-coffee { background: #f0d7c1; }.look-coffee::before { right: -13%; top: -40%; width: 65%; aspect-ratio: 1; border-radius: 50%; background: #9d3f2f; }.look-coffee::after { left: 7%; bottom: 8%; width: 38%; height: 20%; background: #fff4e4; }.look-coffee i { left: 7%; top: 20%; width: 48%; color: #5c2a21; font-size: 9px; line-height: 1; }
.look-architecture { background: #ddd8d0; }.look-architecture::before { inset: 12% 54% 12% 7%; background: var(--plum); }.look-architecture::after { right: 8%; bottom: 13%; width: 33%; aspect-ratio: 1; border: 8px solid #ef624e; }.look-architecture i { left: 11%; top: 25%; width: 30%; color: white; font-size: 8px; line-height: 1.1; }
.look-menu { background: var(--yellow); }.look-menu::before { right: 4%; top: 9%; width: 42%; height: 82%; border-radius: 40% 0 0 40%; background: #e74e3a; }.look-menu::after { left: 8%; bottom: 13%; width: 28%; height: 2px; background: var(--ink); }.look-menu i { left: 8%; top: 22%; width: 35%; color: var(--ink); font-size: 9px; line-height: 1.1; }
.look-tech { background: #092b61; }.look-tech::before { left: -9%; top: -28%; width: 55%; aspect-ratio: 1; border: 1px solid #72e5df; border-radius: 50%; }.look-tech::after { right: 7%; bottom: 12%; width: 34%; height: 26%; background: #56cfca; }.look-tech i { left: 9%; top: 40%; color: white; font-size: 9px; }
.look-wellness { background: #e6d8df; }.look-wellness::before { right: 8%; top: 13%; width: 38%; aspect-ratio: 1; border-radius: 50% 50% 4px 50%; background: #9eafa0; }.look-wellness::after { left: 8%; bottom: 15%; width: 40%; height: 2px; background: var(--plum); }.look-wellness i { left: 8%; top: 26%; color: var(--plum); }
.look-gallery { background: #eeece6; }.look-gallery::before { left: 7%; top: 9%; width: 47%; height: 82%; background: #181818; }.look-gallery::after { right: 8%; top: 12%; width: 28%; height: 42%; background: #ef624e; }.look-gallery i { left: 11%; bottom: 19%; width: 38%; color: white; font-size: 8px; line-height: 1.1; }
.look-botanical { background: #fff9ef; }.look-botanical::before { left: 5%; top: -18%; width: 48%; aspect-ratio: 1; border: 1px solid #86957f; border-radius: 50%; }.look-botanical::after { right: 7%; bottom: -25%; width: 45%; aspect-ratio: 1; border-radius: 50%; background: #d5ded0; }.look-botanical i { left: 28%; top: 39%; color: var(--plum); font-family: Georgia,serif; font-size: 10px; }
.look-plum { background: var(--plum); }.look-plum::before { inset: 9%; border: 1px solid #d7ad58; }.look-plum::after { left: 50%; top: 14%; width: 1px; height: 20%; background: #d7ad58; }.look-plum i { left: 27%; top: 44%; color: #fbead0; font-family: Georgia,serif; font-size: 10px; }
.look-union { background: #f56851; }.look-union::before { left: -16%; bottom: -40%; width: 68%; aspect-ratio: 1; border-radius: 50%; background: #f8e8d8; }.look-union::after { right: 7%; top: 10%; width: 24%; height: 78%; background: var(--ink); }.look-union i { left: 12%; top: 35%; color: white; font-size: 10px; }
.look-classic { background: #fffdf6; }.look-classic::before { inset: 8%; border: 2px double #c59b47; }.look-classic::after { left: 50%; top: 15%; width: 24%; height: 1px; background: #c59b47; transform: translateX(-50%); }.look-classic i { left: 31%; top: 42%; color: #6d5437; font-family: Georgia,serif; font-size: 10px; }
.look-promise { background: #aebcab; }.look-promise::before { right: 6%; top: 8%; width: 41%; height: 84%; border-radius: 90px 90px 0 0; background: #fff8eb; }.look-promise::after { left: 8%; bottom: 12%; width: 28%; aspect-ratio: 1; border: 1px solid white; border-radius: 50%; }.look-promise i { right: 10%; top: 40%; color: var(--plum); font-family: Georgia,serif; font-size: 9px; }
.look-joy { background: #ff795f; }.look-joy::before { right: -5%; bottom: -30%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); }.look-joy::after { left: 7%; top: 10%; width: 25%; aspect-ratio: 1; border-radius: 50%; background: var(--blue); }.look-joy i { left: 17%; top: 46%; color: white; font-size: 8px; }
.asset-list { display: grid; gap: 9px; }
.asset-button { min-height: 50px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: grab; }
.asset-button:hover { border-color: var(--coral); }
.asset-button .asset-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--paper); font-weight: 800; }
.editor-stage { min-width: 0; padding: 18px; display: grid; grid-template-rows: auto 1fr auto; background: #ece8e3; }
.stage-toolbar { padding: 0 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.stage-product-tabs { display: flex; gap: 6px; }
.stage-product-tabs button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.75); color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.stage-product-tabs button.active { color: white; border-color: var(--plum); background: var(--plum); }
.history-buttons { display: flex; gap: 6px; }
.history-buttons button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.canvas-area { min-height: 570px; display: grid; place-items: center; overflow: auto; }
.design-canvas { position: relative; width: min(78%,760px); aspect-ratio: 1.75; overflow: hidden; border-radius: 4px; background: #fffaf1; box-shadow: 0 22px 56px rgba(51,37,43,.2); isolation: isolate; }
.design-canvas::before, .design-canvas::after { display: none; }
.canvas-item { position: absolute; z-index: 2; min-width: 40px; padding: 5px; cursor: move; user-select: none; touch-action: none; }
.canvas-item.selected { outline: 2px solid var(--blue); outline-offset: 3px; }
.canvas-item.selected::after { position: absolute; right: -7px; bottom: -7px; width: 11px; height: 11px; border: 2px solid white; border-radius: 50%; background: var(--blue); content: ''; }
.canvas-text-primary { left: 9%; top: 30%; color: var(--plum); font-family: Georgia,serif; font-size: clamp(24px,4vw,50px); line-height: 1; }
.canvas-text-secondary { left: 10%; top: 53%; color: var(--ink); font-size: clamp(8px,1.1vw,14px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.canvas-text-detail { color: var(--ink); font-size: clamp(7px,.9vw,11px); line-height: 1.5; }
.canvas-shape { min-width: 12px; padding: 0; }
.shape-circle { border-radius: 50%; }
.shape-pill { border-radius: 999px; }
.shape-frame { border: 2px solid currentColor; background: transparent !important; }
.shape-line { min-width: 40px; height: 3px; }
.canvas-image { width: 120px; height: 95px; padding: 0; overflow: hidden; border-radius: 8px; }
.canvas-image img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.canvas-drop-hint { position: absolute; inset: 14px; z-index: 5; display: none; place-items: center; border: 2px dashed rgba(22,87,168,.5); border-radius: 7px; color: var(--blue); background: rgba(235,244,255,.85); font-weight: 800; pointer-events: none; }
.design-canvas.is-dragging .canvas-drop-hint { display: grid; }
.stage-bottom { padding-top: 12px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.side-controls { padding: 20px; overflow-y: auto; border-left: 1px solid var(--line); background: white; }
.side-controls h2 { margin: 0 0 4px; font-family: 'Manrope',sans-serif; font-size: 18px; }
.side-controls > p { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.control-stack { display: grid; gap: 16px; }
.color-row { display: flex; gap: 8px; }
.swatch { width: 30px; height: 30px; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2px var(--blue); }
.layer-list { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.layer-list h3 { margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.layer-count { min-width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--plum); font-size: 9px; }
.layer { margin-bottom: 7px; padding: 10px; display: flex; align-items: center; justify-content: space-between; border-radius: 9px; background: var(--paper); color: var(--muted); font-size: 11px; cursor: pointer; }
.layer.active { color: var(--ink); box-shadow: inset 3px 0 var(--coral); }
.editor-mobile-note { display: none; }

/* Print proof modal */
.print-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 28px; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s ease; }
.print-modal.open { visibility: visible; opacity: 1; }
.print-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(24,16,22,.72); backdrop-filter: blur(12px); cursor: default; }
.print-dialog { position: relative; width: min(1220px,100%); max-height: calc(100vh - 56px); overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 28px; background: #f4f0ea; box-shadow: 0 36px 100px rgba(11,5,9,.42); transform: translateY(18px) scale(.985); transition: transform .25s ease; }
.print-modal.open .print-dialog { transform: none; }
.proof-header { min-height: 84px; padding: 18px 24px 18px 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: white; }
.proof-kicker { color: var(--coral-dark); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.proof-header h2 { margin: 2px 0 0; font-family: 'Manrope',sans-serif; font-size: 25px; letter-spacing: -.04em; }
.proof-close { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 25px; line-height: 1; cursor: pointer; }
.proof-layout { display: grid; grid-template-columns: minmax(0,1.25fr) 420px; max-height: calc(100vh - 140px); }
.proof-visual-column { min-width: 0; padding: 25px 32px 30px; display: grid; grid-template-rows: auto 1fr auto; background: #e7e2dc; }
.proof-status { margin-bottom: 15px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.proof-status strong { color: var(--ink); }
.proof-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #45a267; box-shadow: 0 0 0 5px rgba(69,162,103,.12); }
.proof-sheet { position: relative; min-height: 390px; overflow: hidden; border-radius: 12px; background: #d9d2ca; }
.proof-design { position: absolute !important; top: 50%; left: 50%; margin: 0 !important; box-shadow: 0 20px 50px rgba(35,27,34,.22) !important; transform-origin: center; pointer-events: none; }
.proof-design .selected { outline: 0; }
.proof-design .selected::after, .proof-design .canvas-drop-hint { display: none !important; }
.crop { position: absolute; z-index: 10; width: 24px; height: 24px; pointer-events: none; }
.crop-tl { top: 18px; left: 18px; border-top: 1px solid #8f858a; border-left: 1px solid #8f858a; }.crop-tr { top: 18px; right: 18px; border-top: 1px solid #8f858a; border-right: 1px solid #8f858a; }.crop-bl { bottom: 18px; left: 18px; border-bottom: 1px solid #8f858a; border-left: 1px solid #8f858a; }.crop-br { right: 18px; bottom: 18px; border-right: 1px solid #8f858a; border-bottom: 1px solid #8f858a; }
.preflight-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.preflight-item { padding: 12px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(35,27,34,.08); border-radius: 12px; background: rgba(255,255,255,.55); }
.preflight-item > span { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #2c6b43; background: #dcecdf; font-size: 10px; font-weight: 900; }
.preflight-item strong, .preflight-item small { display: block; }.preflight-item strong { font-size: 10px; }.preflight-item small { color: var(--muted); font-size: 8px; }
.proof-options { padding: 27px 28px; overflow-y: auto; border-left: 1px solid var(--line); background: white; }
.proof-options-head h3 { margin: 3px 0 5px; font-family: 'Manrope',sans-serif; font-size: 25px; letter-spacing: -.04em; }.proof-options-head p { margin: 0; color: var(--muted); font-size: 11px; }
.proof-fields { margin-top: 22px; display: grid; gap: 15px; }
.proof-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proof-options .input, .proof-options .select { min-height: 44px; font-size: 12px; }
.proof-options .segmented label { min-height: 38px; font-size: 11px; }
.proof-total { margin: 21px 0 14px; padding: 17px; display: flex; align-items: center; justify-content: space-between; border-radius: 15px; color: white; background: var(--plum); }
.proof-total span, .proof-total small { display: block; color: rgba(255,255,255,.62); font-size: 9px; }.proof-total strong { display: block; margin: 2px 0; font-family: 'Manrope',sans-serif; font-size: 27px; line-height: 1; }.proof-total .proof-unit { color: var(--yellow); font-size: 11px; font-weight: 800; }
.proof-approval { margin-bottom: 13px; display: flex; align-items: start; gap: 10px; color: var(--muted); font-size: 10px; cursor: pointer; }.proof-approval input { margin-top: 2px; accent-color: var(--coral); }
.proof-options .button:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }
.proof-back-button { width: 100%; margin-top: 10px; padding: 7px; border: 0; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
body.modal-open { overflow: hidden; }

/* Footer and utility */
.site-footer { padding: 68px 0 28px; color: white; background: #1d171c; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3,1fr); gap: 56px; }
.footer-brand p { max-width: 360px; color: rgba(255,255,255,.55); font-size: 13px; }
.footer-col h3 { margin: 4px 0 17px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; color: rgba(255,255,255,.62); font-size: 13px; }
.footer-links a:hover { color: white; }
.footer-bottom { margin-top: 54px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); font-size: 11px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: 330px; padding: 14px 18px; display: flex; align-items: center; gap: 11px; border-radius: 14px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(18px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast::before { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--ink); background: var(--yellow); content: '✓'; font-size: 11px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .nav { display: none; }
  .nav.open { position: absolute; top: 78px; left: 20px; right: 20px; padding: 12px; display: grid; justify-content: stretch; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
  .nav.open a { padding: 13px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .mobile-menu-button { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 70px max(24px,calc((100vw - var(--container))/2)); }
  .hero-visual { min-height: 510px; }
  .category-row { grid-template-columns: repeat(3,1fr); }
  .personal-grid { grid-template-columns: 1fr; gap: 50px; }
  .calculator-layout { grid-template-columns: 1fr 340px; gap: 22px; }
  .editor-shell { grid-template-columns: 70px 230px minmax(400px,1fr); }
  .side-controls { display: none; }
}

@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .header-actions .button { display: none; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .product-grid { grid-template-columns: 1fr; }
  .product-art { height: 360px; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .cta-box { padding: 40px; grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
  .gallery-main { min-height: 520px; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .calculator-layout { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .editor-header { grid-template-columns: 1fr auto; }
  .editor-title { display: none; }
  .editor-shell { grid-template-columns: 66px 210px minmax(390px,1fr); overflow-x: auto; }
  .editor-mobile-note { padding: 10px 14px; display: block; color: #70491c; background: #fff3d0; font-size: 11px; text-align: center; }
  .print-modal { padding: 10px; }
  .print-dialog { max-height: calc(100vh - 20px); overflow-y: auto; border-radius: 20px; }
  .proof-layout { grid-template-columns: 1fr; max-height: none; }
  .proof-visual-column { min-height: 560px; }
  .proof-options { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 580px) {
  .container { width: min(calc(100% - 28px),var(--container)); }
  .announcement { font-size: 10px; }
  .header-inner { min-height: 68px; gap: 10px; }
  .nav.open { top: 68px; left: 14px; right: 14px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 31px; height: 31px; }
  .icon-button.user-button { display: none; }
  .hero-copy { padding: 54px 18px; }
  .hero-copy h1 { font-size: 49px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 390px; }
  .hero-visual img { object-position: 62% center; }
  .hero-sticker { width: 105px; height: 105px; font-size: 11px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(3) { border-bottom: 1px solid var(--line); }
  .category-row { grid-template-columns: repeat(2,1fr); }
  .category-card { min-height: 145px; }
  .section-head { align-items: start; flex-direction: column; }
  .product-art { height: 310px; }
  .personal-showcase { padding: 65px 0; }
  .editor-preview { min-height: 350px; padding: 13px; }
  .preview-workspace { height: 284px; grid-template-columns: 58px 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { padding-inline: 0; }
  .cta-box { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4,1fr); grid-row: 2; }
  .gallery-main { min-height: 420px; }
  .choice-grid, .calc-grid { grid-template-columns: 1fr; }
  .calc-section { padding: 22px; }
  .page-hero { padding-top: 46px; }
  .page-hero h1 { font-size: 44px; }
  .editor-actions .button.light { display: none; }
  .editor-actions .button { min-height: 39px; padding-inline: 12px; font-size: 10px; }
  .proof-header { min-height: 72px; padding: 15px 18px; }
  .proof-header h2 { font-size: 20px; }
  .proof-visual-column { min-height: 450px; padding: 18px; }
  .proof-sheet { min-height: 310px; }
  .preflight-grid { grid-template-columns: 1fr; }
  .proof-field-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
