:root {
  --brand: #1554c0;
  --brand-dark: #0d3a8a;
  --accent: #ff8a1f;
  --ink: #16202d;
  --muted: #5b6878;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 38, 77, .08);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.lead p:last-child { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-block; padding: .65em 1.3em; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 138, 31, .35); }
.btn-lg { padding: .85em 1.7em; font-size: 1.05rem; }
.btn-light { background: #fff; color: var(--brand-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand--light { color: #fff; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.nav-list a { display: block; padding: .5em .9em; border-radius: 999px; color: var(--ink); font-weight: 500; }
.nav-list a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--brand); }
.nav-list a.nav-cta { background: var(--brand); color: #fff; margin-left: .5rem; }
.nav-list a.nav-cta:hover { background: var(--brand-dark); }
.nav-list a, .nav-group-btn { white-space: nowrap; }
.nav-group { position: relative; }
.nav-group-btn {
  display: block; padding: .5em .9em; border-radius: 999px; border: 0; background: none; font: inherit;
  font-weight: 500; color: var(--ink); cursor: pointer;
}
.nav-group-btn::after { content: ""; display: inline-block; margin-left: .45em; vertical-align: .2em; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.nav-group-btn:hover, .nav-group-btn[aria-expanded="true"] { background: var(--bg-alt); }
.nav-group-btn.is-active { color: var(--brand); }
.nav-sub {
  list-style: none; margin: 0; padding: 6px; position: absolute; top: calc(100% + 6px); right: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: none;
}
.nav-sub a { border-radius: 8px; }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub, .nav-group-btn[aria-expanded="true"] + .nav-sub { display: block; }
.nav-group:hover .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    display: none; padding: 8px 16px 16px;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a.nav-cta { margin: .5rem 0 0; text-align: center; }
  .nav-group-btn { display: none; }
  .nav-sub { display: block; position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, #3d7cf0 0%, transparent 60%),
              linear-gradient(135deg, var(--brand-dark), var(--brand));
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.hero-inner { position: relative; padding: clamp(64px, 12vw, 140px) 16px; }
.hero h1 { max-width: 780px; }
.hero .lead { color: rgba(255, 255, 255, .88); }
.hero-actions { margin-top: 1.75rem; }

.page-hero { background: var(--bg-alt); padding: clamp(40px, 7vw, 80px) 0; border-bottom: 1px solid var(--line); }
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: .75em; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.link-more { font-weight: 600; }

/* Cards */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; color: var(--ink); transition: box-shadow .2s, transform .2s;
}
.card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); flex: 1; }
.card-icon { font-size: 2rem; margin-bottom: .5rem; }
.card-more { color: var(--brand); font-weight: 600; }
.card--post { padding: 0; overflow: hidden; }
.card--post > *:not(.card-img) { padding: 0 20px; }
.card--post h3 { margin-top: .25rem; }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-date { display: block; padding-top: 18px !important; font-size: .85rem; color: var(--muted); }

/* Tin tức: mục bài viết tiêu biểu */
.featured-title { font-size: 1.35rem; margin-bottom: 1rem; }
.section--featured { padding-bottom: 8px; }
.section--featured + .section { padding-top: 32px; }
.featured-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 900px) {
  .featured-grid--2 { grid-template-columns: 1fr 1fr; }
  .featured-grid--3 { grid-template-columns: 2fr 1fr; }
  .featured-grid--3 > :first-child { grid-row: span 2; }
}
.card--featured { border-color: rgba(255, 138, 31, .45); background: linear-gradient(180deg, #fff7ef 0%, #fff 70%); }
.card--featured > .card-badge {
  align-self: flex-start; margin: 20px 20px 0; padding: 2px 12px !important; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.card--featured .card-date { padding-top: 10px !important; }
.card-title-lg { font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
.card--featured p { max-width: 75ch; padding-bottom: 8px !important; }

/* Stream blocks */
.stream > * + * { margin-top: 1.25rem; }
.block-heading { margin-top: 2rem; }
.block-image figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.block-image img { border-radius: var(--radius); }
.block-image img { width: 100%; }
/* Infographics in articles: wider than the text column so their labels stay readable; click opens full size */
.block-image--wide { width: min(1100px, calc(100vw - 32px)); margin-left: 50%; transform: translateX(-50%); }
.block-image--wide a { display: block; cursor: zoom-in; }
.block-image--wide img { border: 1px solid var(--line); }
.block-features h2 { text-align: center; margin-bottom: 1.5rem; }
.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.feature-icon { font-size: 1.8rem; display: block; margin-bottom: .4rem; }
.feature p { color: var(--muted); margin: 0; }
.block-stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; margin-top: 2.5rem !important; }
.stat-value { display: block; font-size: 2.4rem; font-weight: 700; color: var(--brand); }
.stat-label { color: var(--muted); }
.block-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff;
  border-radius: var(--radius); padding: 32px;
}
.block-cta p { margin: 0; color: rgba(255, 255, 255, .85); }
blockquote { margin: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--brand); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }

/* Contact */
.contact-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.form .field { margin-bottom: 1.1rem; }
.form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; padding: .7em .9em; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid rgba(21, 84, 192, .25); border-color: var(--brand); }
.form textarea { min-height: 140px; }
.has-error input, .has-error textarea { border-color: #d33; }
.field-error { color: #d33; font-size: .9rem; margin: .3rem 0 0; }
.contact-info { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; align-self: start; }
.contact-info h2 { font-size: 1.3rem; }

.pagination { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-top: 2rem; }

/* Footer */
.site-footer { background: #0e1a2b; color: #c9d3e0; padding-top: 56px; }
.site-footer a { color: #fff; }
.site-footer h4 { color: #fff; margin: 0 0 .75rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-bottom: 40px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .4rem; }
.site-footer .muted { color: #93a1b4; margin-top: .75rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 18px; font-size: .9rem; color: #93a1b4; }

/* Landing page (pages.LandingPage) */
.lp-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 480px at 90% 0%, #3d7cf0 0%, transparent 60%),
              linear-gradient(135deg, var(--brand-dark), var(--brand));
}
.lp-hero-grid {
  display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  padding-top: clamp(48px, 9vw, 112px); padding-bottom: clamp(48px, 9vw, 112px);
}
.lp-hero-grid--single { grid-template-columns: minmax(0, 1fr); }
.lp-hero .lead { color: rgba(255, 255, 255, .88); }
.lp-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 600; opacity: .85; margin-bottom: .9em; }
.lp-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .5rem; }
.lp-points li { position: relative; padding-left: 1.7em; }
.lp-points li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--accent); }
.lp-hero-img { border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); width: 100%; }
.lp-ring { width: 100%; max-width: 420px; margin: 0 auto; display: block; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); }
.lp-ring-text { font-size: 21px; letter-spacing: .1em; fill: #4a3108; font-style: italic; font-weight: 600; }
@media (max-width: 820px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-hero-art { order: -1; max-width: 300px; margin: 0 auto; }
}
.lp-body .stream > * + * { margin-top: clamp(48px, 7vw, 80px); }
.lp-body h2, .block-steps h2, .block-offers h2, .block-faq h2 { text-align: center; }
.block-intro { margin: -.25rem auto 1.75rem; text-align: center; }
.lp-form select { appearance: auto; }
.form input[type="radio"], .form input[type="checkbox"] { width: auto; margin: 0 .5em 0 0; accent-color: var(--accent); }
.form .field > div > div, .form .field ul > li { margin-bottom: .35rem; }
.form .field > div label, .form .field ul label { display: inline-flex; align-items: center; font-weight: 400; margin: 0; cursor: pointer; }
.form .field ul { list-style: none; margin: 0; padding: 0; }
.field-help { font-size: .88rem; margin: .3rem 0 0; }

.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 56px 22px 22px; }
.step::before {
  content: counter(step); position: absolute; top: 18px; left: 22px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem; background: var(--accent); color: #fff;
}
.step p { color: var(--muted); margin: 0; }

.offer-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 1.5rem; }
.offer { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: box-shadow .2s, transform .2s; }
.offer:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.offer-img { border-radius: 10px; margin: -8px -8px 16px; width: calc(100% + 16px); max-width: none; }
.offer-icon { font-size: 2rem; margin-bottom: .4rem; }
.offer p { color: var(--muted); }
.offer > p:not(.offer-price) { flex: 1; }
.offer-price { color: var(--ink) !important; font-weight: 700; margin-bottom: .6rem; }
.offer-link { font-weight: 600; }

.block-faq { max-width: 820px; margin-left: auto; margin-right: auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); margin: .75rem 0 0; }

/* Gold theme */
.theme-gold { --brand: #9a7426; --brand-dark: #5e4614; --accent: #c49a3c; --bg-alt: #faf6ee; --line: #ece3d1; }
.theme-gold .lp-hero {
  background: radial-gradient(700px 420px at 85% 10%, rgba(212, 164, 67, .28) 0%, transparent 65%),
              linear-gradient(160deg, #15110b 0%, #2a2116 60%, #1c160e 100%);
}
.theme-gold .lp-eyebrow { color: #e9c978; opacity: 1; }
.theme-gold h1, .theme-gold h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; letter-spacing: -.01em; }
.theme-gold .lp-hero h1 { color: #fbf3df; }
.theme-gold .btn:hover { box-shadow: 0 6px 18px rgba(196, 154, 60, .4); }
.theme-gold .form input:focus, .theme-gold .form textarea:focus, .theme-gold .form select:focus { outline-color: rgba(196, 154, 60, .3); border-color: var(--accent); }

/* Blog: tags, tables, rich text */
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tag-list a, .tag {
  display: inline-block; padding: .3em .85em; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: .9rem; font-weight: 500;
}
.tag-list a:hover, .tag:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.tag-list a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; }
.block-table { margin-left: 0; margin-right: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.block-table table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.block-table th, .block-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.block-table th { background: var(--bg-alt); font-weight: 600; white-space: nowrap; }
.block-table tbody tr:last-child td { border-bottom: 0; }
.block-table figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.stream h3 { margin-top: 1.5rem; }
.stream code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; font-size: .9em; }
.stream ul, .stream ol { padding-left: 1.4em; }
.stream li + li { margin-top: .3em; }

/* Jewellery designer (pages.JewelryDesignerBlock) */
.block-designer h2, .block-designer h3 { text-align: center; }
.designer { display: grid; gap: 28px; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; margin-top: 1.5rem; }
@media (max-width: 820px) { .designer { grid-template-columns: 1fr; } }
.designer-preview {
  position: sticky; top: 84px; border-radius: 20px; padding: 20px;
  background: radial-gradient(420px 300px at 50% 20%, #fffaf0 0%, var(--bg-alt) 70%); border: 1px solid var(--line);
}
@media (max-width: 820px) { .designer-preview { position: static; } }
.designer-svg { width: 100%; max-width: 380px; display: block; margin: 0 auto; }
.designer-note { font-size: .85rem; text-align: center; margin: .5rem 0 0; }
.designer-options fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.designer-options legend { font-weight: 700; margin-bottom: .5rem; }
.designer-options select, .designer-options input[type="text"] {
  width: 100%; font: inherit; padding: .65em .9em; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.designer-options input[type="text"] { margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45em; font: inherit; font-size: .95rem; cursor: pointer;
  padding: .45em .95em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.chips--small .chip { font-size: .85rem; padding: .35em .8em; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; font-weight: 600; }
.chip-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); flex: none; }
.designer-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.designer-summary p { margin: .35rem 0 .9rem; color: var(--muted); }
.designer-suggestions { margin-top: 2.5rem; }
.suggestion-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 1rem; }
.suggestion {
  display: flex; flex-direction: column; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.suggestion:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.suggestion-svg { width: 100%; aspect-ratio: 1; background: var(--bg-alt); padding: 14px; }
.suggestion-body { display: flex; flex-direction: column; gap: .3rem; padding: 14px 16px 16px; }
.suggestion-tag { align-self: flex-start; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.suggestion-text { color: var(--muted); font-size: .9rem; }
.suggestion-cta { color: var(--brand); font-weight: 600; font-size: .9rem; margin-top: .2rem; }
.design-chosen { background: #fff; border: 1px dashed var(--accent); border-radius: 10px; padding: .7rem .9rem; margin-bottom: 1.1rem; }
.design-chosen span:empty::before { content: "Chưa chọn - kéo lên phần thiết kế để chọn mẫu."; color: var(--muted); }
.designer-step { text-align: left !important; margin: 2rem 0 .75rem; font-size: 1.2rem; }
.design-filter { margin-bottom: 1rem; }
.design-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.design-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.design-card[hidden] { display: none; }
.design-code { font-size: .8rem; color: var(--muted); }
.design-opts { font-size: .82rem; color: var(--muted); }
.design-price { font-weight: 700; color: var(--ink); }
.design-picked { display: flex; flex-direction: column; gap: .2rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.design-picked strong { font-size: 1.15rem; }
.designer-photo { width: 100%; max-width: 380px; display: block; margin: 0 auto; border-radius: 14px; }
img.suggestion-svg { object-fit: cover; padding: 0; }

/* Gold certificate (pages.GoldCertificateBlock) */
.gold-cert { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .3)); }
.gold-cert text { fill: #4a2e05; font-weight: 700; }
.gold-cert--live .is-sample { opacity: .45; }
.lp-hero-art .gold-cert { max-width: 520px; margin: 0 auto; transform: rotate(-3deg); }
.block-cert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.block-cert h2 { text-align: left; }
.cert-price { font-weight: 600; color: #8a6116; margin: 1.2rem 0; }
.cert-live { margin-bottom: 1.5rem; }
.cert-live-title { font-weight: 600; margin: 0 0 .75rem; }
@media (min-width: 900px) {
  .contact-info--cert { position: sticky; top: 88px; align-self: start; }
}
@media (max-width: 860px) {
  .block-cert { grid-template-columns: 1fr; }
  .contact-info--cert { order: -1; }
}

/* Mug designer (pages.MugDesignerBlock, static/js/mug-designer.js) */
.mug-designer h2 { text-align: center; }
.mug-designer .block-intro { margin: 0 auto 1.5rem; text-align: center; }
.md-app { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .85fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .md-app { grid-template-columns: 1fr; } }
.md-stage {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 30% 20%, #eef2f7, #d6dee8);
}
.md-mug { display: block; width: 100%; aspect-ratio: 600 / 560; cursor: grab; touch-action: pan-y; }
.md-mug:active { cursor: grabbing; }
.md-rotate { display: flex; align-items: center; gap: 12px; padding: 12px 4px 0; }
.md-rotate label { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.md-rotate input { flex: 1; accent-color: var(--brand); }
.md-flat { margin-top: 1.5rem; }
.md-flat h3 { margin-bottom: .25rem; }
.md-hint { font-size: .9rem; margin-bottom: .6rem; }
.md-strip-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.md-strip { display: block; width: 100%; aspect-ratio: 2362 / 1004; touch-action: none; cursor: move; }
.md-strip:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.md-faces { position: relative; height: 40px; margin-top: 8px; }
.md-faces .chip { position: absolute; top: 0; transform: translateX(-50%); font-size: .82rem; padding: .3em .75em; white-space: nowrap; }
@media (max-width: 480px) { .md-faces .chip { font-size: .74rem; padding: .3em .55em; } }
.md-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
@media (min-width: 861px) { .md-panel { position: sticky; top: 84px; } }
.md-group { border: 0; border-bottom: 1px solid var(--line); margin: 0 0 14px; padding: 0 0 14px; min-width: 0; }
.md-group legend { font-weight: 700; padding: 0; margin-bottom: .25rem; }
.md-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.md-row > label, .md-label { font-size: .88rem; color: var(--muted); min-width: 72px; }
.md-row input[type="range"] { flex: 1; min-width: 120px; accent-color: var(--brand); }
.md-row select { flex: 1; }
.md-panel textarea, .md-panel select {
  width: 100%; font: inherit; padding: .55em .8em; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.md-panel textarea { resize: vertical; min-height: 64px; margin-top: .4rem; }
.md-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.md-panel .chip:disabled { opacity: .5; cursor: not-allowed; }
.md-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.md-sw { width: 30px; height: 30px; border-radius: 50%; padding: 0; border: 1px solid rgba(0, 0, 0, .18); cursor: pointer; background: #fff; }
.md-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.md-sw--none { background: linear-gradient(135deg, transparent 45%, #c8323c 45%, #c8323c 55%, transparent 55%), var(--bg-alt) !important; }
.md-sw--custom { -webkit-appearance: none; appearance: none; overflow: hidden; }
.md-sw--custom::-webkit-color-swatch-wrapper { padding: 0; }
.md-sw--custom::-webkit-color-swatch { border: 0; border-radius: 50%; }
.md-sw--custom::-moz-color-swatch { border: 0; border-radius: 50%; }
.md-sw:focus-visible, .md-panel .chip:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.md-check { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: .95rem; }
.md-warn { display: none; margin-top: 10px; font-size: .88rem; color: #8a5300; background: #fff4de; border-radius: 8px; padding: 8px 10px; }
.md-warn.is-shown { display: block; }
.md-actions { display: flex; flex-direction: column; gap: 8px; }
.md-actions .chip, .md-actions .btn { width: 100%; justify-content: center; text-align: center; }
.md-order { border: 1px solid var(--line); }
.md-note { font-size: .88rem; margin: .6rem 0 0; min-height: 1.3em; }

/* Print designer (printshop.PrintProductPage, static/js/print-designer.js) */
.print-designer > h2 { text-align: center; }
.pd-step { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.pd-step h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.pd-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .9rem; flex: none; }
.pd-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .6rem; }
.pd-label { font-weight: 600; font-size: .92rem; margin: 0; }
.pd-info { margin: .4rem 0 0; font-size: .92rem; }
.pd-inline { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; margin-top: .6rem; }
.pd-inline select, .pd-tools input[type="text"], .pd-order input, .pd-order textarea, .pd-lookup input {
  font: inherit; padding: .5em .75em; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.pd-drop {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; cursor: pointer;
  padding: 28px 16px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg-alt);
}
.pd-drop.is-over, .pd-drop:hover { border-color: var(--brand); }
.pd-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pd-drop:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.pd-drop .muted { font-size: .85rem; }
.pd-count { font-weight: 600; margin: .6rem 0 0; }
.pd-note { min-height: 1.4em; margin: 1rem 0 0; font-size: .92rem; color: var(--muted); }
.pd-note.is-bad { color: #a3402f; }
.pd-tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.pd-tool-row input[type="text"] { flex: 1; min-width: 200px; }
.pd-editor { display: grid; gap: 14px; }
.pd-stage { display: flex; justify-content: center; padding: 18px; border-radius: var(--radius); background: radial-gradient(120% 90% at 30% 20%, #eef2f7, #d6dee8); overflow: hidden; }
.pd-stage canvas { display: block; max-width: 100%; box-shadow: 0 10px 30px rgba(16, 38, 77, .22); touch-action: none; cursor: grab; background: #fff; }
.pd-tools:empty { display: none; }
.pd-tools { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 4px; }
.pd-zoom { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--muted); }
.pd-zoom input { accent-color: var(--brand); }
.pd-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }
.pd-thumb { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-size: .78rem; color: var(--muted); }
.pd-thumb.is-current { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); color: var(--ink); }
.pd-thumb canvas { display: block; }
.pd-tray-box { background: var(--bg-alt); border-radius: var(--radius); padding: 12px 14px; }
.pd-hint { font-size: .85rem; margin: .2rem 0 .6rem; }
.pd-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; }
.pd-tray-item { position: relative; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: grab; background: #fff; opacity: .55; }
.pd-tray-item.is-used { opacity: 1; }
.pd-tray-item:focus-visible { border-color: var(--brand); }
.pd-tray-item canvas { display: block; width: 100%; height: auto; }
.pd-badge { position: absolute; right: 3px; top: 3px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: .7rem; line-height: 18px; }
.pd-prints { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pd-print { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pd-print-frame { display: grid; place-items: center; height: 200px; background: var(--bg-alt); border-radius: 8px; }
.pd-print-canvas { box-shadow: 0 4px 14px rgba(16, 38, 77, .18); touch-action: none; cursor: grab; }
.pd-print-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pd-copies { min-width: 48px; text-align: center; font-weight: 600; font-size: .9rem; }
.pd-warn { margin: 0; font-size: .82rem; color: #a3402f; }
.pd-order { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 24px; align-items: start; }
@media (max-width: 820px) { .pd-order { grid-template-columns: 1fr; } .pd-summary { order: -1; } }
.pd-order .field input, .pd-order .field textarea { width: 100%; }
.pd-pay { border: 0; padding: 0; }
.pd-pay label { display: flex; gap: .5rem; align-items: center; margin-top: .3rem; font-weight: 400; }
.pd-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
@media (min-width: 821px) { .pd-summary { position: sticky; top: 84px; } }
.pd-price-row { display: flex; justify-content: space-between; gap: 12px; padding: .35rem 0; font-size: .93rem; border-bottom: 1px dashed var(--line); }
.pd-price-row span { color: var(--muted); }
.pd-price-total { border-bottom: 0; font-size: 1.05rem; padding-top: .6rem; }
.pd-price-total span { color: var(--ink); font-weight: 700; }
.pd-progress { height: 8px; border-radius: 4px; background: var(--bg-alt); overflow: hidden; margin-top: 12px; }
.pd-progress span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s; }
.pd-done { margin-top: 1rem; padding: 18px 20px; border-radius: var(--radius); background: #e9f6ee; border: 1px solid #bfe2cb; }
.pd-code { font-size: 1.2rem; letter-spacing: .04em; }
.pd-bank { background: #fff; border-radius: 8px; padding: 8px 12px; }
.pd-lookup { max-width: 460px; }
.pd-lookup .field input { width: 100%; }
.pd-result { margin-top: 1.5rem; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.pd-timeline { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-timeline li { padding: .35em .9em; border-radius: 999px; background: var(--bg-alt); color: var(--muted); font-size: .88rem; }
.pd-timeline li.is-done { background: var(--brand); color: #fff; }
