/* Vieteric Gifting — Catalogue Quà Tết 2027 */
:root {
  --red-950: #3f0609;
  --red-900: #5c0a0e;
  --red-800: #7a0c13;
  --red-700: #990f19;
  --red-600: #b3161f;
  --gold-600: #b48a35;
  --gold-500: #c9a24a;
  --gold-300: #e6cc8a;
  --gold-100: #f6ecd0;
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --ink: #2a1a14;
  --ink-2: #5d4a40;
  --ink-3: #8a776c;
  --line: #eadfca;
  --shadow: 0 1px 2px rgba(63, 6, 9, .08), 0 8px 24px -12px rgba(63, 6, 9, .28);
  --shadow-lg: 0 2px 6px rgba(63, 6, 9, .12), 0 24px 48px -20px rgba(63, 6, 9, .45);
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --topbar-h: 64px;
  --chips-h: 52px;
  --radius: 6px;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + var(--chips-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
body.no-scroll { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--red-950); box-shadow: 0 6px 18px -8px rgba(201, 162, 74, .9), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold:hover { background: linear-gradient(180deg, #efd99e, var(--gold-300)); }
.btn-ghost { border-color: rgba(246, 236, 208, .45); color: var(--gold-100); background: transparent; }
.btn-ghost:hover { border-color: var(--gold-300); color: #fff; }
.btn-red { background: var(--red-700); color: var(--gold-100); }
.btn-red:hover { background: var(--red-600); }
.btn-line { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn-line:hover { border-color: var(--gold-500); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--topbar-h); background: rgba(92, 10, 14, .97); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); color: var(--gold-100); border-bottom: 1px solid rgba(201, 162, 74, .25); }
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; margin-right: auto; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--serif); font-weight: 600; letter-spacing: .14em; font-size: 16px; color: var(--gold-300); white-space: nowrap; }
.brand-sub { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 236, 208, .7); white-space: nowrap; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(246, 236, 208, .25); background: transparent; color: var(--gold-100); }
.icon-btn:hover { border-color: var(--gold-300); }
.icon-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold-300); color: var(--red-950); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.badge[hidden] { display: none; }
.topbar .btn-gold { min-height: 44px; padding: 10px 18px; }
.topbar .label-long { display: inline; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--gold-100); background:
  radial-gradient(1200px 600px at 78% 40%, rgba(179, 22, 31, .55), transparent 60%),
  radial-gradient(900px 500px at 10% 100%, rgba(63, 6, 9, .9), transparent 70%),
  linear-gradient(160deg, var(--red-800), var(--red-900) 60%, var(--red-950)); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none; background-image: radial-gradient(circle, var(--gold-300) 1.2px, transparent 1.6px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { margin: 18px 0 6px; font-family: var(--serif); font-weight: 700; font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.01em; color: #fff7e6; }
.hero .tagline { margin: 0 0 22px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); background: linear-gradient(180deg, #f8e7b5, var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 560px; margin: 0 0 30px; font-size: 17px; font-weight: 300; color: rgba(246, 236, 208, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 0; margin: 44px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(201, 162, 74, .3); }
.stats li { flex: 1 1 0; min-width: 140px; padding: 18px 18px 0 0; }
.stats li + li { padding-left: 18px; border-left: 1px solid rgba(201, 162, 74, .2); }
.stats strong { display: block; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--gold-300); }
.stats span { font-size: 13px; color: rgba(246, 236, 208, .75); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.book { position: relative; width: min(420px, 100%); border-radius: 4px; transform: rotate(2.5deg); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(230, 204, 138, .35); }
.book img { border-radius: 4px; width: 100%; height: auto; }
.book-under { position: absolute; width: min(420px, 100%); aspect-ratio: 1800 / 2546; border-radius: 4px; transform: rotate(-4deg) translate(-26px, 10px); background: var(--paper); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6); overflow: hidden; }
.book-under img { width: 100%; height: 100%; object-fit: cover; opacity: .95; }
.hero-visual .open-hint { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); }

/* ---------- Steps ---------- */
.steps { background: var(--paper); border-bottom: 1px solid var(--line); }
.steps ol { list-style: none; margin: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: flex-start; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; color: var(--gold-500); flex: none; }
.steps h3 { margin: 2px 0 4px; font-size: 16px; font-weight: 600; }
.steps p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- Section chips ---------- */
.chips { position: sticky; top: var(--topbar-h); z-index: 30; height: var(--chips-h); background: rgba(251, 246, 236, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.chips .wrap { height: 100%; display: flex; align-items: center; gap: 10px; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding: 2px 0; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); flex: 1; min-width: 0; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--gold-500); color: var(--ink); }
.chip.active { background: var(--red-800); border-color: var(--red-800); color: var(--gold-100); }
.toc-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--cream); font-size: 13.5px; font-weight: 500; }
.toc-btn svg { width: 16px; height: 16px; }

/* ---------- Catalogue ---------- */
.catalog { padding: 24px 0 40px; }
.sec { padding: 40px 0 16px; }
.sec-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 6px 18px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.sec-no { grid-column: 1; grid-row: 1 / span 2; font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: .9; color: var(--gold-500); }
.sec-head h2 { grid-column: 2; grid-row: 1; margin: 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.15; color: var(--red-900); }
.sec-head .en { grid-column: 2; grid-row: 2; margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sec-count { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pg { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow); text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.pg:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pg img { width: 100%; height: auto; aspect-ratio: 1800 / 2546; border-radius: 3px; background: linear-gradient(135deg, #f3ead8, #fbf6ec); }
.pg-no { position: absolute; left: 10px; bottom: 10px; padding: 2px 9px; border-radius: 999px; background: rgba(42, 26, 20, .78); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.pg-saved { position: absolute; top: 10px; right: 10px; display: none; width: 30px; height: 30px; border-radius: 999px; background: var(--red-700); color: var(--gold-100); place-items: center; box-shadow: 0 4px 10px -4px rgba(0,0,0,.5); }
.pg-saved svg { width: 16px; height: 16px; }
.pg.is-saved .pg-saved { display: grid; }
.pg-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: rgba(255, 253, 248, .92); color: var(--ink); opacity: 0; transition: opacity .2s; }
.pg-zoom svg { width: 18px; height: 18px; }
.pg:hover .pg-zoom, .pg:focus-visible .pg-zoom { opacity: 1; }

/* ---------- Contact ---------- */
.contact { position: relative; color: var(--gold-100); background: linear-gradient(160deg, var(--red-800), var(--red-950)); overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: radial-gradient(circle, var(--gold-300) 1.2px, transparent 1.6px); background-size: 22px 22px; pointer-events: none; }
.contact .wrap { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; padding-top: 72px; padding-bottom: 72px; }
.contact h2 { margin: 14px 0 14px; font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; color: #fff7e6; }
.contact p { color: rgba(246, 236, 208, .85); font-weight: 300; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(201, 162, 74, .25); text-decoration: none; }
.contact-list a:hover { border-color: var(--gold-300); background: rgba(255, 255, 255, .1); }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--gold-300); }
.contact-list small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 236, 208, .6); }
.contact-list strong { font-weight: 500; font-size: 16px; color: #fff7e6; word-break: break-word; }

.quote { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.quote h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; color: var(--red-900); }
.quote > p { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201, 162, 74, .2); }
.picked { margin: 4px 0 16px; padding: 12px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--cream); }
.picked-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.picked-head button { border: 0; background: none; padding: 4px; color: var(--red-700); font-size: 13px; text-decoration: underline; }
.picked-empty { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.picked-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.picked-item { position: relative; width: 56px; }
.picked-item img { width: 56px; height: 79px; object-fit: cover; border-radius: 2px; box-shadow: var(--shadow); cursor: pointer; }
.picked-item span { display: block; text-align: center; font-size: 11px; color: var(--ink-3); }
.picked-item button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-size: 14px; line-height: 22px; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.quote-actions .btn { flex: 1 1 200px; }
.quote-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); z-index: 90; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
.footer { background: var(--red-950); color: rgba(246, 236, 208, .7); font-size: 13.5px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.footer a { color: var(--gold-300); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .fine { flex-basis: 100%; font-size: 12px; color: rgba(246, 236, 208, .5); }

/* ---------- Mobile action bar ---------- */
.actionbar { display: none; }

/* ---------- Dialogs (viewer / search / toc) ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; }
.overlay[hidden] { display: none; }

.viewer { background: #1a0d0b; color: #f5ead6; display: flex; flex-direction: column; }
.v-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.v-info { flex: 1; min-width: 0; line-height: 1.25; }
.v-info strong { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-info span { font-size: 12.5px; color: rgba(245, 234, 214, .65); }
.v-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(245, 234, 214, .2); background: rgba(255, 255, 255, .04); color: #f5ead6; font-size: 14px; font-weight: 500; text-decoration: none; }
.v-btn:hover { border-color: var(--gold-300); }
.v-btn svg { width: 19px; height: 19px; flex: none; }
.v-btn.on { background: var(--gold-300); border-color: var(--gold-300); color: var(--red-950); }
.v-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.v-stage.zoomed { cursor: grab; overflow: auto; }
.v-stage.dragging { cursor: grabbing; }
.v-img { position: absolute; top: 14px; left: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; user-select: none; -webkit-user-drag: none; cursor: zoom-in; }
.v-stage.zoomed .v-img { position: static; height: auto; max-width: none; margin: 0 auto; cursor: inherit; }
.v-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-size: 13px; color: rgba(245, 234, 214, .6); }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; border: 1px solid rgba(245, 234, 214, .25); background: rgba(24, 12, 10, .6); color: #fff; }
.v-nav:hover { border-color: var(--gold-300); }
.v-nav svg { width: 24px; height: 24px; }
.v-prev { left: 16px; }
.v-next { right: 16px; }
.v-nav:disabled { opacity: .25; cursor: default; }
.v-wrap { position: relative; flex: 1; min-height: 0; display: flex; }
.v-bottom { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); }
.v-range { flex: 1; accent-color: var(--gold-500); }
.v-count { font-size: 13px; color: rgba(245, 234, 214, .7); white-space: nowrap; font-variant-numeric: tabular-nums; }

.sheet { background: rgba(24, 12, 10, .55); display: flex; justify-content: center; align-items: flex-start; padding: 6vh 16px 16px; }
.sheet-panel { width: 100%; max-width: 720px; max-height: 88vh; display: flex; flex-direction: column; background: var(--paper); border-radius: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); overflow: hidden; }
.sheet-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; flex: 1; font-family: var(--serif); font-size: 22px; color: var(--red-900); }
.close-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.close-btn svg { width: 18px; height: 18px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 10px; }
.search-box svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.search-box input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); }
.search-box input:focus { outline: none; }
.sheet-body { overflow: auto; padding: 8px 8px 16px; }
.hint { margin: 10px 12px; font-size: 14px; color: var(--ink-3); }
.hint button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; margin: 6px 6px 0 0; font-size: 13px; color: var(--ink-2); }
.result { display: flex; gap: 14px; align-items: center; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; text-align: left; }
.result:hover, .result:focus-visible { background: var(--cream); }
.result img { width: 52px; height: 74px; object-fit: cover; border-radius: 2px; box-shadow: var(--shadow); flex: none; }
.result b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.result span { display: block; font-size: 13px; color: var(--ink-2); }
.result mark { background: var(--gold-100); color: inherit; padding: 0 2px; border-radius: 2px; }
.toc-list { list-style: none; margin: 0; padding: 4px; }
.toc-list a { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: baseline; padding: 11px 12px; border-radius: 8px; text-decoration: none; }
.toc-list a:hover { background: var(--cream); }
.toc-list .no { font-family: var(--serif); font-weight: 600; color: var(--gold-600); }
.toc-list .t { font-weight: 500; }
.toc-list .t small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: .04em; }
.toc-list .p { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .hero .wrap { gap: 36px; }
  .contact .wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; }
  .hero-visual { order: -1; }
  .book, .book-under { width: min(300px, 74vw); }
  .steps ol { grid-template-columns: 1fr; gap: 16px; padding: 22px 0; }
  .topbar .label-long { display: none; }
}
@media (max-width: 640px) {
  :root { --topbar-h: 58px; --chips-h: 50px; }
  .wrap { padding: 0 16px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 14px; letter-spacing: .1em; }
  .brand-mark { width: 32px; height: 32px; }
  .topbar .btn-gold { display: none; }
  .hero h1 { font-size: 46px; }
  .hero p.lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stats li { min-width: 0; padding-right: 10px; }
  .stats li + li { padding-left: 12px; }
  .stats strong { font-size: 26px; }
  .stats span { font-size: 12px; display: block; line-height: 1.35; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pg-no { left: 6px; bottom: 6px; font-size: 11px; padding: 1px 7px; }
  .sec { padding-top: 28px; }
  .sec-no { font-size: 34px; }
  .sec-head { grid-template-columns: auto 1fr; }
  .sec-count { grid-row: 3; grid-column: 2; align-self: start; }
  .toc-btn span { display: none; }
  .toc-btn { padding: 0 10px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .quote { padding: 20px; }
  .contact .wrap { padding-top: 52px; padding-bottom: 52px; }
  .footer { padding-bottom: 72px; }
  .actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(201, 162, 74, .3); border-top: 1px solid rgba(201, 162, 74, .4); padding-bottom: env(safe-area-inset-bottom); }
  .actionbar a, .actionbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; border: 0; background: var(--red-900); color: var(--gold-100); font-size: 12px; font-weight: 500; text-decoration: none; position: relative; }
  .actionbar svg { width: 20px; height: 20px; color: var(--gold-300); }
  .actionbar .badge { top: 6px; right: calc(50% - 22px); }
  .toast { bottom: 80px; }
  .v-label { display: none; }
  .v-nav { width: 44px; height: 44px; }
  .v-prev { left: 6px; }
  .v-next { right: 6px; }
  .v-img { top: 6px; left: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
  .sheet { padding: 0; align-items: stretch; }
  .sheet-panel { max-height: none; height: 100%; border-radius: 0; }
}
@media (max-width: 380px) {
  .grid { gap: 10px; }
  .hero h1 { font-size: 40px; }
}
@media (hover: none) {
  .pg-zoom { display: none; }
  .pg:hover { transform: none; box-shadow: var(--shadow); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- small fixes ---------- */
.v-btn .i-on { display: none; }
.v-btn.on .i-on { display: block; }
.v-btn.on .i-off { display: none; }
.book.pg { background: transparent; }
.book.pg:hover { transform: rotate(2.5deg) translateY(-4px); box-shadow: 0 50px 70px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(230, 204, 138, .5); }
@media (hover: none) { .book.pg:hover { transform: rotate(2.5deg); } }
.book.pg img { aspect-ratio: auto; background: none; }
.v-loading[hidden] { display: none; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.sec-head .en { align-self: start; }
