/* Al Ghazala — "Grade → Bag → Slip".
   The strength class is the first decision, the supplied bag photos are the catalogue,
   and the enquiry is a receipt that writes itself. Square tiles with narrow grout lines
   echo the gazelle-tile logo. Brand: petrol teal #123F43, limestone #C7BBA5, off-white #F1F3EE.
   Arabic rules: letter-spacing stays normal on anything Arabic; display line-height >= 1.3. */

@font-face { font-family: Alexandria; src: url('assets/fonts/alexandria-ar.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+202A-202E, U+0640; }
@font-face { font-family: Alexandria; src: url('assets/fonts/alexandria-lat.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --teal: #123f43;
  --teal-deep: #0c2d30;
  --teal-soft: #1d5054;
  --lime: #c7bba5;
  --lime-soft: #e3dccf;
  --lime-wash: #e9e4da;
  --off: #f1f3ee;
  --paper: #fcfbf8;
  --ink: #0f2d30;
  --muted: #4f5b57;
  --accent-em: #66705f;
  --on-teal: #dbe4df;
  --on-teal-2: #b9c8c3;
  --line: #123f4326;
  --rule-on-teal: #c7bba566;
  --font: Alexandria, Tahoma, Arial, sans-serif;
  --pad: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--off); color: var(--ink); font: 400 16px/1.8 var(--font); }
img { display: block; max-width: 100%; height: auto; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: normal; }
button { cursor: pointer; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: normal; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
em { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b08d4a; outline-offset: 4px; }
.wrap { width: min(1328px, 100% - 2 * var(--pad)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -80px; inset-inline-start: 16px; z-index: 60; background: var(--teal); color: #fff; padding: 12px 20px; }
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mark { display: inline-block; width: 9px; height: 9px; background: currentColor; flex-shrink: 0; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; margin-bottom: 22px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 54px; padding: 14px 24px; border: 0; font-size: 15px; font-weight: 500; transition: background .2s; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-soft); }
.btn-wide { width: 100%; }
.link-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 500; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 6px; }
.link-btn svg { width: 18px; height: 18px; }

/* --- Top bar and header ---------------------------------------------------- */
.topbar { background: var(--teal-deep); color: #e6ece8; font-size: 12px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar > .wrap > span:first-child { text-wrap: balance; }
.topbar-phones { display: flex; gap: 22px; }
.topbar-phones a { display: inline-flex; align-items: center; min-height: 28px; }
.topbar-phones a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header { position: sticky; top: 0; z-index: 30; background: var(--off); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 32px; min-height: 86px; }
.logo { width: 280px; flex-shrink: 0; }
.logo img { width: 100%; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; font-size: 14px; font-weight: 500; }
.nav a { padding-block: 8px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { border-color: var(--teal); }
.header-cta { display: inline-flex; align-items: center; gap: 14px; min-height: 46px; padding: 10px 18px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.header-cta:hover { background: var(--teal-soft); }
.menu-btn { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 46px; height: 46px; border: 1px solid var(--line); background: none; flex-shrink: 0; }
.menu-btn span { width: 20px; height: 1.5px; background: var(--teal); transition: transform .2s; }
.menu-btn[aria-expanded=true] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded=true] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px var(--pad) 20px; }
.mobile-nav a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }

/* --- Hero: grade first, then the wall of bags -------------------------------- */
.hero { background: var(--teal); color: var(--off); padding-block: 64px 44px; }
.hero-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 64px; align-items: end; }
.hero .kicker { color: var(--lime); }
.hero h1 { font-size: clamp(52px, 6.8vw, 112px); line-height: 1.3; }
.hero h1 em { color: var(--lime); }
.hero-lede { font-size: 17px; line-height: 1.95; color: var(--on-teal); padding-bottom: 14px; }
.grades { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.grade { flex: 0 1 260px; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 100px; padding: 14px 22px; border: 1px solid var(--rule-on-teal); background: transparent; color: var(--off); text-align: start; transition: background .2s, border-color .2s, color .2s; }
.grade:hover { border-color: var(--lime); }
.grade[aria-pressed=true] { background: var(--lime); border-color: var(--lime); color: var(--teal-deep); }
.grade-num { font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.grade-num small { font-size: .42em; font-weight: 600; letter-spacing: 0; margin-inline-start: 4px; }
.grade-cap { display: flex; flex-direction: column; font-size: 15px; font-weight: 500; line-height: 1.5; }
.grade-cap span { font-size: 13px; font-weight: 400; color: var(--on-teal-2); }
.grade[aria-pressed=true] .grade-cap span { color: #2f4b4d; }
.grade-all .grade-num { font-size: 40px; }

.wall { --h: min(20vw, 300px); display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tile { position: relative; display: block; flex: var(--a) 1 calc(var(--a) * var(--h)); align-self: flex-start; aspect-ratio: var(--a); background: var(--teal-deep); overflow: hidden; transition: opacity .3s, filter .3s; }
.tile img { width: 100%; height: 100%; object-fit: contain; }
.tile::after { content: ""; position: absolute; inset: 0; border: 0 solid var(--lime); transition: border-width .15s; pointer-events: none; }
.tile:hover::after { border-width: 3px; }
.tile.is-current::after { border-width: 4px; }
.tile.is-dim { opacity: .22; filter: grayscale(1); }
.tile-tag { position: absolute; inset-inline-start: 12px; bottom: 12px; display: flex; font-size: 13px; font-weight: 500; line-height: 1.5; box-shadow: 0 2px 12px #0c2d3040; }
.tile-tag > span { background: var(--paper); color: var(--ink); padding: 5px 10px; }
.tile-tag bdi { background: var(--teal); color: var(--lime-soft); padding: 5px 10px; }
.wall-hint { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: var(--lime-soft); }
.wall-hint svg { width: 16px; height: 16px; }

/* --- Stage: one product, its label decoded -------------------------------- */
.stage { padding-block: 104px 88px; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 40px; }
.stage h2, .slip h2 { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.35; }
.stage h2 em, .place h1 em, .place h2 em { color: var(--accent-em); }
.stage-lede { max-width: 440px; font-size: 15px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 28px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.tabs [role=tab] { min-height: 46px; padding: 9px 18px; border: 1px solid var(--line); background: transparent; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .2s, border-color .2s; }
.tabs [role=tab]:hover { border-color: var(--teal); }
.tabs [role=tab][aria-selected=true] { background: var(--teal); border-color: var(--teal); color: #fff; }
.panel { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.panel + .panel { margin-top: 72px; }
.js .panel + .panel { margin-top: 0; }
.panel-index { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.panel-index .mark { background: var(--teal); }
.panel h3 { font-size: clamp(36px, 4.2vw, 62px); line-height: 1.3; margin-top: 14px; }
.panel-brand { margin-top: 16px; font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--muted); text-align: end; }
.decode { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.decode-title { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.decode-title bdi { font-weight: 600; color: var(--ink); }
.tokens { display: flex; }
.token { flex: 1 1 0; }  /* min-width stays auto: a column is never narrower than its code */
.token + .token { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; margin-inline-start: 20px; }
.token dt { font-size: clamp(28px, 2.6vw, 40px); font-weight: 700; line-height: 1.25; color: var(--teal); white-space: nowrap; }
.token dd { display: flex; flex-direction: column; margin-top: 8px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.token dd strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.decode-gap { margin-top: 14px; font-size: 13px; color: var(--muted); }
.panel-weight { margin-top: 26px; font-size: 15px; color: var(--muted); }
.panel-weight strong { margin-inline-start: 8px; font-size: 20px; font-weight: 600; color: var(--ink); }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 30px; }
.panel-photo { height: clamp(320px, 38vw, 560px); padding: clamp(14px, 2.4vw, 36px); background: var(--lime-wash); }
.photo-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-btn img { width: 100%; height: 100%; object-fit: contain; }
.stage-foot { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.decode-note { max-width: 680px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.stage-nav { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; }
.stage-nav button { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); background: transparent; }
.stage-nav button:hover { border-color: var(--teal); }
#prev-product svg { transform: scaleX(-1); }

/* --- Slip: the enquiry writes itself as a receipt -------------------------- */
.slip { background: var(--teal); color: var(--off); padding-block: 104px; }
.slip .kicker { color: var(--lime); }
.slip h2 em { color: var(--lime); }
.slip-head { max-width: 760px; margin-bottom: 52px; }
.slip-head > p:not(.kicker) { max-width: 620px; margin-top: 18px; font-size: 16px; color: var(--on-teal); }
.slip-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: start; }
.slip-form { display: grid; gap: 30px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.slip-form label, .slip-form legend { display: block; font-size: 14px; font-weight: 500; color: var(--lime-soft); }
.slip-form label > span, .slip-form legend > span { font-size: 13px; font-weight: 400; color: var(--on-teal-2); }
.slip-form input:not([type=radio]), .slip-form select, .slip-form textarea { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 12px 0; border: 0; border-bottom: 1px solid #c7bba599; border-radius: 0; background: transparent; color: #fff; font-size: 16px; line-height: 1.7; }
.slip-form select { appearance: none; padding-inline-end: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7bba5' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 2px center / 18px; }
.slip-form select option { background: #fff; color: var(--ink); }
.slip-form ::placeholder { color: #a9bbb6; opacity: 1; }
.slip-form textarea { resize: vertical; min-height: 96px; }
.slip-form [aria-invalid=true] { border-bottom-color: #f2b880; }
.quantity-row { display: flex; align-items: flex-end; gap: 20px; margin-top: 10px; }
.unit-switch { display: inline-flex; border: 1px solid #c7bba599; flex-shrink: 0; }
.unit-switch label, .recipient-options label { position: relative; display: block; margin: 0; }
.unit-switch input, .recipient-options input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.unit-switch label > span { display: flex; align-items: center; min-height: 44px; padding: 8px 16px; font-size: 14px; color: var(--off); }
.unit-switch input:checked + span { background: var(--lime); color: var(--teal-deep); }
.unit-switch input:focus-visible + span, .recipient-options input:focus-visible + span { outline: 3px solid #e2b866; outline-offset: 2px; }
.stepper { display: flex; align-items: center; flex: 1; min-width: 0; border-bottom: 1px solid #c7bba599; }
.slip-form .stepper input { margin: 0; border: 0; padding: 6px 0; text-align: center; font-size: 24px; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--lime); flex-shrink: 0; }
.stepper-unit { padding-inline: 4px 8px; font-size: 14px; color: var(--lime-soft); white-space: nowrap; }
.hint { margin-top: 10px; font-size: 13px; color: var(--on-teal-2); }
.recipient-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.recipient-options label > span { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--rule-on-teal); font-size: 20px; font-weight: 600; color: #fff; }
.recipient-options small { font-size: 13px; font-weight: 400; color: var(--on-teal-2); }
.recipient-options input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--teal-deep); }
.recipient-options input:checked + span small { color: #2f4b4d; }

.ticket { position: sticky; top: 112px; padding: 40px 36px 34px; background: var(--paper); color: var(--ink);
  -webkit-mask: radial-gradient(circle 7px at 50% 0, #0000 97%, #000) 50% 0 / 20px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, #0000 97%, #000) 50% 100% / 20px 51% repeat-x;
          mask: radial-gradient(circle 7px at 50% 0, #0000 97%, #000) 50% 0 / 20px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, #0000 97%, #000) 50% 100% / 20px 51% repeat-x; }
.ticket-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.ticket-head img { width: 44px; height: 44px; }
#ticket-title { font-size: 18px; font-weight: 600; line-height: 1.5; }
.ticket-date { font-size: 13px; color: var(--muted); }
.ticket-body { padding-block: 16px 18px; min-height: 230px; }
.t-line { display: flex; align-items: baseline; gap: 10px; padding-block: 5px; font-size: 14px; }
.t-label { color: var(--muted); white-space: nowrap; }
.t-dots { flex: 1; min-width: 16px; border-bottom: 1px dotted #8c9893; transform: translateY(-5px); }
.t-value { max-width: 64%; font-weight: 600; text-align: end; }
.t-text { padding-block: 5px; font-size: 14px; color: var(--muted); }
.t-note { margin-block: 8px; padding: 10px 12px; background: var(--lime-wash); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-empty .t-value { font-weight: 400; color: var(--muted); }
.ticket-to { padding-top: 16px; border-top: 2px dashed #123f4366; font-size: 13px; color: var(--muted); }
.ticket-to bdi { font-weight: 600; color: var(--ink); }
.ticket-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 14px; }
.slip-status { min-height: 22px; margin-top: 4px; font-size: 13px; text-align: center; color: #8a3b12; }
.slip-status.ok { color: var(--teal); }

/* --- Place ------------------------------------------------------------------ */
.place { padding-block: 104px; }
.place-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.place h1, .place h2 { font-size: clamp(40px, 5vw, 76px); line-height: 1.3; }
.map-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 28px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--teal); }
.line { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.line:first-child { border-top: 1px solid var(--line); }
.line-number { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; white-space: nowrap; }
.line-number.line-email { font-size: clamp(20px, 2.1vw, 28px); }
.line-actions { display: flex; gap: 20px; }
.line-actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 500; }
.line-actions a:hover, .line-number:hover { text-decoration: underline; text-underline-offset: 6px; }
.other { margin-top: 36px; }
.other p { font-size: 15px; color: var(--muted); }
.other-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 9px 18px; border: 1px solid var(--teal); background: transparent; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.chip:hover { background: var(--teal); color: #fff; }
.chip svg { width: 18px; height: 18px; }

/* --- Footer ----------------------------------------------------------------- */
.footer { background: var(--teal-deep); color: var(--off); }
.footer-main { display: flex; align-items: center; gap: 48px; padding-block: 52px; }
.footer-brand { width: 360px; flex-shrink: 0; }
.footer-brand img { width: 100%; }
.footer-main > p { font-size: 14px; line-height: 2; color: #d6e0d8; border-inline-start: 1px solid #ffffff2a; padding-inline-start: 40px; }
.footer-descriptor { display: none; }
.footer-phones { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-phones a { display: inline-flex; align-items: center; min-height: 32px; color: #fff; }
.footer-phones a:hover, .back-top:hover { text-decoration: underline; text-underline-offset: 5px; }
.back-top { display: flex; align-items: center; gap: 14px; min-height: 44px; margin-inline-start: auto; font-size: 13px; white-space: nowrap; }
.back-top svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; border-top: 1px solid #ffffff26; font-size: 12px; color: #d6e0d8; }
.nivo-signature { display: inline-flex; align-items: center; gap: 10px; direction: ltr; min-height: 40px; font-size: 12px; color: #fff; }
.nivo-signature span { direction: rtl; }
.nivo-signature img { width: 27px; height: 27px; object-fit: contain; }
.mobile-bar { display: none; }

/* --- Photo viewer ------------------------------------------------------------ */
dialog { width: min(1050px, 100% - 32px); max-height: 94dvh; padding: 24px; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 24px 100px #081f2255; overscroll-behavior: contain; }
dialog::backdrop { background: #081f22cc; backdrop-filter: blur(4px); }
body.dialog-open { overflow: hidden; }
.dialog-close { position: absolute; top: 12px; left: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--paper); }
.viewer-head { padding: 0 8px 16px; }
.viewer-head .kicker { margin-bottom: 4px; color: var(--muted); }
.viewer-head h2 { font-size: 24px; line-height: 1.4; }
#full-product-image { width: 100%; height: auto; max-height: 66dvh; object-fit: contain; background: var(--lime-wash); }
.viewer-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 14px; }
.viewer-foot p { font-size: 13px; color: var(--muted); }
.viewer-actions { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.viewer-actions .btn { min-height: 48px; padding: 12px 18px; font-size: 14px; }

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 1150px) {
  :root { --pad: 32px; }
  .nav { display: none; }
  .header-cta { margin-inline-start: auto; }
  .menu-btn { display: flex; }
  .hero-head { grid-template-columns: 1fr; gap: 20px; }
  .hero-lede { max-width: 620px; padding-bottom: 0; }
  .grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grade { padding: 14px 16px; gap: 12px; }
  .grade-num { font-size: 44px; }
  .grade-all .grade-num { font-size: 36px; }
  .tile--tall .tile-tag bdi { display: none; }
  .tile-tag { max-width: calc(100% - 24px); }
  .panel, .slip-grid, .place-grid { gap: 44px; }
  .footer-main { gap: 32px; }
  .footer-main > p { padding-inline-start: 28px; }
}
@media (max-width: 900px) {
  .stage-head { display: block; }
  .grade { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; }
  .stage-lede { margin-top: 16px; }
  .panel { grid-template-columns: 1fr; gap: 28px; }
  .panel-photo { order: -1; height: clamp(260px, 62vw, 460px); }
  .slip-grid, .place-grid { grid-template-columns: 1fr; }
  .ticket { position: static; }
  .stage-foot { flex-direction: column-reverse; align-items: stretch; }
  .stage-nav { justify-content: space-between; }
}
@media (max-width: 700px) {
  :root { --pad: 20px; }
  html { scroll-padding-top: 88px; }
  body { padding-bottom: 74px; }
  .topbar .wrap { justify-content: center; text-align: center; padding-block: 6px; line-height: 1.6; }
  .topbar-phones { display: none; }
  .header-row { min-height: 76px; gap: 12px; }
  .logo { width: 240px; max-width: calc(100% - 58px); }
  .header-cta { display: none; }
  .menu-btn { margin-inline-start: auto; }
  .hero { padding-block: 40px 28px; }
  .hero h1 { font-size: clamp(40px, 12.5vw, 64px); }
  .hero-lede { font-size: 16px; }
  .grades { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 30px; }
  .grade { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 0; padding: 14px 16px; }
  .grade-num { font-size: 42px; }
  .grade-all { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .grade-all .grade-num { font-size: 30px; }
  .grade-cap { font-size: 14px; }
  .wall { --h: 26vw; gap: 6px; margin-top: 6px; }
  .tile[data-product="sotacib"] { order: 1; }
  .tile[data-product="safsaf"] { order: 2; }
  .tile[data-product="carthage"] { order: 3; }
  .tile[data-product="sotacib-white"] { order: 4; }
  .tile[data-product="manacem"] { order: 5; }
  .tile[data-product="al-burj"] { order: 6; }
  .tile-tag { inset-inline-start: 6px; bottom: 6px; max-width: calc(100% - 12px); font-size: 12px; line-height: 1.4; }
  .tile-tag > span { padding: 3px 7px; }
  .tile-tag bdi { display: none; }
  .stage, .slip, .place { padding-block: 68px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scrollbar-width: none; margin-bottom: 32px; padding-bottom: 20px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs [role=tab] { scroll-snap-align: start; font-size: 14px; padding-inline: 14px; }
  .tokens { flex-direction: column; }
  .token { display: grid; grid-template-columns: minmax(64px, max-content) 1fr; align-items: baseline; gap: 16px; padding-block: 12px; }
  .token + .token { border-inline-start: 0; padding-inline-start: 0; margin-inline-start: 0; border-top: 1px solid var(--line); }
  .token dt { font-size: 22px; }
  .token dd { margin-top: 0; }
  .panel-actions .btn { width: 100%; justify-content: space-between; }
  .field-row { grid-template-columns: 1fr; gap: 30px; }
  .quantity-row { flex-wrap: wrap; }
  .stepper { flex-basis: 100%; }
  .ticket { padding: 36px 20px 30px; }
  .t-value { max-width: 70%; }
  .place h1, .place h2 { font-size: clamp(36px, 10vw, 52px); }
  .line { flex-wrap: wrap; gap: 0 16px; }
  .line-number { font-size: 26px; }
  .line-number.line-email { font-size: 20px; }
  .footer-main { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding-block: 38px; }
  .footer-brand { width: 280px; max-width: 100%; grid-column: 1 / -1; }
  .footer-main > p { grid-row: 2; padding: 0; border: 0; font-size: 13px; }
  .footer-descriptor { display: block; text-wrap: balance; }
  .back-top { grid-column: 2; grid-row: 2; }
  .footer-bottom > span { flex: 1; min-width: 0; }
  .mobile-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--off); border-top: 1px solid var(--line); box-shadow: 0 -4px 22px #123f4310; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; border: 1px solid var(--teal); font-size: 14px; font-weight: 500; }
  .mobile-bar a:first-child { background: var(--teal); color: #fff; }
  .mobile-bar svg { width: 18px; height: 18px; }
  dialog { padding: 16px; }
  .viewer-head { padding: 22px 0 12px; }
  .viewer-head h2 { font-size: 20px; }
  #full-product-image { max-height: 56dvh; }
  .viewer-foot { display: block; }
  .viewer-actions { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 6px; }
  .viewer-actions .btn { justify-content: space-between; }
  .dialog-close { top: 4px; left: 4px; }
}
@media (max-width: 360px) {
  :root { --pad: 16px; }
  .header-row { width: calc(100% - 24px); }
  .header-row { gap: 10px; }
  .menu-btn { width: 44px; height: 44px; }
  .logo { width: 240px; max-width: calc(100% - 54px); }
  .grade-num { font-size: 36px; }
  .recipient-options { grid-template-columns: 1fr; }
  .footer-main > p { grid-column: 1 / -1; }
  .back-top { grid-column: 1; grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
