:root {
  color-scheme: dark;
  --bg: #0e0c0a;
  --surface: #17130f;
  --surface-2: #1f1a15;
  --line: rgba(255, 236, 214, 0.1);
  --text: #f4ede4;
  --muted: #a99d8f;
  --accent: #ff7a1a;
  --accent-2: #ffb547;
  --radius: 14px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 12, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; height: 64px; gap: 16px; }
.site-header .nav { margin-left: auto; }
.account-link {
  text-decoration: none; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  transition: border-color .15s, color .15s;
}
.account-link:hover { border-color: rgba(255, 122, 26, 0.6); color: var(--accent-2); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 15px;
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.22), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--accent-2);
  letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 750; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 999px;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a0d03; }
.btn-primary:hover { background: #ff8c38; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 236, 214, 0.28); }

.print-stage { position: relative; aspect-ratio: 1 / 1.05; width: 100%; max-width: 420px; justify-self: center; }
.print-stage svg { width: 100%; height: 100%; }
.print-stage .layer { opacity: 0; animation: lay .5s ease-out forwards; }
@keyframes lay { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .print-stage .layer { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */
section { padding: 80px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 16px; }
.section-lead { color: var(--muted); max-width: 40em; margin: 0 0 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: rgba(255, 122, 26, 0.12); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; }
.steps .card { position: relative; }
.steps .card::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--mono); font-size: 13px; color: var(--accent-2); margin-bottom: 14px;
}

/* ---------- stores ---------- */
.store {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  text-decoration: none; min-height: 150px;
  transition: border-color .15s, transform .15s, background .15s;
}
.store:hover { border-color: rgba(255, 122, 26, 0.5); transform: translateY(-2px); background: var(--surface-2); }
.store .name { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.store .go { color: var(--muted); font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.store:hover .go { color: var(--accent-2); }
.store-dot { display: block; width: 10px; height: 10px; border-radius: 50%; margin-bottom: 14px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact dl { margin: 0; display: grid; gap: 18px; }
.contact dt { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.contact dd { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.contact dd a { text-decoration: none; border-bottom: 1px solid rgba(255, 122, 26, 0.5); }
.contact dd a:hover { color: var(--accent-2); }

/* ---------- legal pages ---------- */
.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: #d9cfc3; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.doc a { color: var(--accent-2); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 500; width: 34%; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.legal-line { margin-top: 6px; font-size: 13.5px; }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-media { aspect-ratio: 1 / 1; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.product-placeholder img { width: 64px; height: 64px; opacity: .35; object-fit: contain; }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { margin: 0; font-size: 17px; }
.product-body p { margin: 0; color: var(--muted); font-size: 15px; }
.product-price { font-weight: 700; color: var(--accent-2); }
.product-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.chip {
  font-size: 13.5px; text-decoration: none; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); transition: border-color .15s, color .15s;
}
.chip:hover { border-color: rgba(255, 122, 26, 0.6); color: var(--accent-2); }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15.5px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; width: 100%;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid rgba(255, 122, 26, 0.5); outline-offset: 1px; border-color: transparent; }
.field small { color: var(--muted); font-size: 12.5px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text); }
button.btn { font-family: inherit; cursor: pointer; border: 0; }
button.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
button.btn-ghost, a.btn-ghost { background: none; border: 1px solid var(--line); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-danger { background: none; border: 1px solid rgba(248, 113, 113, 0.45) !important; color: #fca5a5; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent-2); font: inherit; cursor: pointer; text-decoration: underline; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.alert-error { background: rgba(248, 113, 113, 0.1); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.3); }
.alert-ok { background: rgba(74, 222, 128, 0.08); color: #86efac; border: 1px solid rgba(74, 222, 128, 0.3); }
.alert-info { background: rgba(255, 181, 71, 0.08); color: #fcd9a0; border: 1px solid rgba(255, 181, 71, 0.3); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth { padding: 56px 0 88px; }
.auth .wrap { max-width: 460px; }
.auth h1 { font-size: 34px; margin-bottom: 8px; }
.auth .card { padding: 26px; }
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs button {
  flex: 1; font: inherit; font-size: 14.5px; padding: 9px 12px; border-radius: 9px;
  background: none; border: 0; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.google-slot { min-height: 44px; display: flex; justify-content: center; }

/* ---------- panel ---------- */
.panel { padding: 40px 0 88px; }
.panel .wrap { max-width: 1200px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel-head h1 { font-size: 32px; margin: 0; }
.panel .tabs { justify-content: flex-start; }
.panel .tabs button { flex: 0 1 auto; }
.panel-section { display: grid; gap: 16px; }
.panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 500; background: var(--surface); position: sticky; top: 0; }
.table tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill-ok { background: rgba(74, 222, 128, 0.12); color: #86efac; }
.pill-warn { background: rgba(255, 181, 71, 0.12); color: #fcd9a0; }
.pill-bad { background: rgba(248, 113, 113, 0.12); color: #fca5a5; }
.admin-products { display: grid; gap: 10px; }
.admin-product { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; }
.admin-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.admin-product .meta { color: var(--muted); font-size: 13.5px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-2); font-family: var(--mono); margin: 10px 0 0; }
.muted { color: var(--muted); }
.sticky-save { position: sticky; bottom: 12px; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius); background: rgba(31, 26, 21, 0.92); border: 1px solid var(--line); backdrop-filter: blur(8px); }

/* ---------- product cards: extras ---------- */
.product-media { position: relative; display: block; }
.product-body h3 a { text-decoration: none; }
.product-body h3 a:hover { color: var(--accent-2); }
.product-category { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.product-badge {
  position: absolute; top: 12px; left: 12px; font-size: 12.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #1a0d03;
}
.product-badge.static { position: static; display: inline-block; margin-bottom: 12px; }
.chip-strong { border-color: rgba(255, 122, 26, 0.55); color: var(--accent-2); }

/* ---------- product page ---------- */
.product-page { padding: 32px 0 88px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.product-detail { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--surface); cursor: pointer; aspect-ratio: 1 / 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.product-price.big { font-size: 26px; margin-bottom: 14px; }
.product-info .lead { font-size: 18px; margin-bottom: 24px; }
.buy { margin-bottom: 28px; }
.buy-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 40%; }
.product-details { max-width: 760px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.product-details h2 { font-size: 26px; }
.product-details p, .product-details li { color: #d9cfc3; }

/* ---------- modal ---------- */
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(5, 4, 3, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade .15s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 1180px; max-height: calc(100vh - 48px); display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 22px; margin: 0; }
.modal-head p { margin: 2px 0 0; font-size: 14px; }
.modal-body { flex: 1; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 24px; }
.modal-foot { border-top: 1px solid var(--line); padding: 14px 24px; display: grid; gap: 10px; background: var(--surface); }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.icon-button { background: none; border: 1px solid var(--line); color: var(--text); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.icon-button:hover { border-color: rgba(255, 122, 26, .6); }
.editor-main { display: grid; gap: 18px; align-content: start; }
.editor-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.editor-section h3 { margin: 0; font-size: 16px; }
.editor-hint { margin: -8px 0 0; font-size: 13.5px; }
.preview-sticky { position: sticky; top: 0; }
.preview-card { margin-top: 10px; }
.field select { appearance: auto; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-foot { display: flex; justify-content: space-between; gap: 10px; }
.counter { margin-left: auto; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--accent-2) !important; }
.photo-head { display: flex; justify-content: flex-end; font-size: 13px; margin-top: -6px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.photo-grid:empty { display: none; }
.photo { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.photo.cover { border: 2px solid var(--accent); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag { position: absolute; top: 6px; left: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #1a0d03; }
.photo-tag.new { left: auto; right: 6px; background: rgba(74, 222, 128, .9); }
.photo-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.photo-actions button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(23, 19, 15, .9); color: var(--text); cursor: pointer; font-size: 12px; }
.photo-actions button:hover:not(:disabled) { background: var(--accent); color: #1a0d03; }
.photo-actions button.danger:hover { background: #f87171; }
.photo-actions button:disabled { opacity: .35; cursor: default; }
.dropzone {
  display: grid; gap: 4px; justify-items: center; padding: 22px; width: 100%;
  border: 1.5px dashed rgba(255, 236, 214, 0.22); border-radius: 12px; background: none; color: var(--muted);
  font: inherit; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone strong { color: var(--accent-2); font-size: 15px; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: rgba(255, 122, 26, 0.06); }
.writer { z-index: 60; }
.writer-modal { max-width: 1000px; height: calc(100vh - 48px); }
.writer-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; padding: 20px 24px 24px; min-height: 0; }
.writer-area {
  width: 100%; height: 100%; resize: none; font: inherit; font-size: 17px; line-height: 1.7; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
}
.writer-area:focus { outline: 2px solid rgba(255, 122, 26, 0.5); border-color: transparent; }
.writer-help { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.writer-help strong { color: var(--text); }
.writer-help ul { padding-left: 1.1em; margin: 0 0 auto; }
.writer-help li { margin-bottom: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .search { font: inherit; font-size: 14.5px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-width: 220px; }
.empty-state { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 40px 20px; }
.empty-state img { width: 48px; opacity: .5; }
.empty-state p { margin: 0; color: var(--muted); max-width: 420px; }
.admin-product-name { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-product img.no-photo { object-fit: contain; padding: 14px; }

/* ---------- cookie consent ---------- */
.consent {
  position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px 24px;
  padding: 16px 20px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  font-size: 15px;
}
.consent p { margin: 0; color: #d9cfc3; }
.consent a { color: var(--accent-2); }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent .btn { padding: 10px 18px; font-size: 15px; cursor: pointer; font-family: inherit; background: none; }
.consent .btn-primary { background: var(--accent); border: 0; }
.consent .btn-ghost { border: 1px solid var(--line); color: var(--text); }

[hidden] { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .print-stage { max-width: 300px; order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .panel-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .modal-body { grid-template-columns: 1fr; }
  .preview-sticky { position: static; }
  .preview-card { max-width: 280px; }
  .writer-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .account-link { margin-left: auto; }
  .admin-product { grid-template-columns: 48px 1fr; }
  .admin-product img { width: 48px; height: 48px; }
  .admin-product .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .modal-backdrop { padding: 0; }
  .modal { max-height: 100vh; height: 100vh; border-radius: 0; }
  .writer-modal { height: 100vh; }
  .modal-body, .modal-head, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .editor-section { padding: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .store { min-height: 0; }
  .lead { font-size: 17.5px; }
  .doc th { width: auto; }
  .doc th, .doc td { display: block; padding: 4px 0; border: 0; }
  .doc tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .consent { flex-direction: column; align-items: stretch; }
  .consent-actions .btn { flex: 1; justify-content: center; }
}
