/* Dev Crow Egg · Bento. One board of tiles per page: the gap and the tint carry the structure, so tiles have no
   shadows or borders. Tints say what a tile is for: shop (sand), learn (sage), sell (petrol wash), trust (rose). */
:root {
  --board: #e8dfd1; --tile: #f7f2ea; --tile-2: #efe8dc; --field: #fffdf9;
  --shop: #f1e3cd; --learn: #e3e8de; --sell: #dbe5e5; --trust: #ebdfd7; --dark: #2a2521;
  --ink: #27231f; --ink-2: #4a443d; --muted: #655c53; --line: rgba(39, 35, 31, .14); --line-2: rgba(39, 35, 31, .26);
  --accent: #1f5a63; --accent-hover: #174750; --accent-soft: #d4e2e2; --on-accent: #fff;
  --sale: #8a3f22; --sale-soft: #f4e2d6; --ok: #2f6b4f; --ok-soft: #dfe9df; --bad: #9c3a24; --bad-bg: #f6e3dc;
  --on-dark: #ece4d8; --on-dark-muted: #c9bfb2;
  --r: 22px; --r-s: 14px; --r-xs: 10px; --gap: 10px; --gut: 16px; --hdr: 60px; --bar: 0px;
  --f: "Outfit", "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* "See it in your room" (shared/room-view) */
  --rv-bg: #e8dfd1; --rv-surface: #f7f2ea; --rv-text: #27231f; --rv-muted: #655c53; --rv-line: rgba(39, 35, 31, .14);
  --rv-accent: #1f5a63; --rv-accent-text: #fff; --rv-radius: 18px; --rv-font: var(--f); --rv-font-display: var(--f);
  /* logo */
  --logo-house: #1f5a63; --logo-egg: #f7f2ea; --logo-shine: #c9a27a;
  /* drawn product art (combined/js/art.js), retinted to the oat board */
  --art-shade-dark: #1e1a16; --art-shade-light: #ffffff; --art-paper: #fbf8f3; --art-white: #fff; --art-black: #000;
  --art-wood: #c9a27a; --art-leaf: #6f8c69; --art-leaf-light: #86a37c; --art-leaf-dark: #5d7a59; --art-glow: #ffd6a0; --art-glow-2: #ffc98a;
  --art-sand: #d8bf94; --art-cream: #fbf6ee; --art-putty: #e9dfcf;
  --art-linen-wall: #eee2cf; --art-linen-light: #f8efe2; --art-linen-deep: #e2d2bb;
  --art-mist-wall: #dde4e4; --art-mist-light: #eff3f2; --art-mist-deep: #cad6d6;
  --art-blush-wall: #f0dcd1; --art-blush-light: #f9ede6; --art-blush-deep: #e5cabd;
  --art-oat-wall: #e9dfcc; --art-oat-light: #f6efe2; --art-oat-deep: #dacdb4;
  --art-oak: #d6b18a; --art-oak-edge: #bf946a; --art-oak-dark: #a77d55; --art-ink: #2e2b27; --art-blue: #7d98a5; --art-clay: #d6a28c;
  --art-pearl: #f3eee6; --art-charcoal: #3b3a3c; --art-shadow: #3a2a1a; --art-lantern-light: #ffe3b0; --art-paper-edge: #e3d8c8;
  --art-box-edge: #b48a60; --art-box: #d8b48c; --art-mustard: #e2c27a; --art-rug: #cdd8da; --art-cushion: #e6dac6; --art-blue-soft: #9fb5bd;
  --art-graphite: #55535a; --art-tile-line: #d4c3ab; --art-globe: #e1e9ec; --art-button: #1f5a63; --art-knob: #e9d29a; --art-nameplate-edge: #ddd2c0;
  --art-soil: #7a5c43; --art-water: #b9cdd4; --art-falcon-1: #d7bb93; --art-falcon-2: #c3a37a; --art-falcon-3: #ad8d64; --art-falcon-4: #e6d1b0;
  --art-falcon-5: #9a7b55; --art-falcon-beak: #5b4a36; --art-vase: #d9b48f; --art-stem: #bfa47a; --art-pod: #e9dcc3; --art-picture: #3f7a84;
  --art-picture-hill: #8fb4ba; --art-dhow-post: #ddd3c3; --art-dhow-hull: #efe9df; --art-dhow-mast: #c7bba8; --art-book-pale: #e2d6c2;
  --art-crow-tail: #2a292b; --art-crow-outline: #262528; --art-crow-wing: #5a585e; --art-crow-beak: #4a4846; --art-pencup: #cf8a6c;
  --art-stand: #e3d2b8; --art-phone-screen: #2f4a4f; --art-phone-sun: #f3d9b0; --art-honey-1: #f1ebe1; --art-honey-2: #e4dacb; --art-honey-3: #ebe3d6;
  --art-flame: #f2b061; --art-pale-blue: #d3dcde; --art-window-sky: #d4e3e6; --art-window-hill: #a9c3c8; --art-sky-top: #c3d6da; --art-sky-bottom: #f6e3cb;
  --art-skyline: #b7c8cc; --art-board: #ead9c2; --art-lamp-beam: #fff3d6; --art-balcony-wall: #f3e2cc; --art-balcony-light: #c4d6da; --art-skyline-2: #c3d0d4;
  --art-skyline-3: #b3c4c8; --art-terrace: #e4d6c2; --art-glow-soft: #ffe2b6; --art-terracotta: #c0673f; --art-nozzle: #ffb36b; --art-door: #5f8a93;
}
html[lang="ar"] { --f: "Noto Kufi Arabic", "Outfit", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--board); color: var(--ink); font: 400 16px/1.5 var(--f); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + var(--gap)); }
html.has-dlg { overflow: clip; }
body { margin: 0; min-height: 100dvh; padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px)); }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
[hidden] { display: none !important; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg.ico { width: 20px; height: 20px; flex: none; }
html[dir="rtl"] .ico--dir { transform: scaleX(-1); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.rm *, html.rm *::before, html.rm *::after { animation-duration: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; } }
html[lang="ar"] { letter-spacing: 0 !important; }
html[lang="ar"] * { letter-spacing: 0 !important; }

/* ---------- header ---------- */
.skip { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--on-dark); border-radius: 999px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.hdr { position: sticky; top: 0; z-index: 30; height: var(--hdr); display: flex; align-items: center; gap: 6px; padding-inline: var(--gut); background: rgb(232 223 209 / .92); backdrop-filter: blur(12px); }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline-end: 6px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; border-radius: 999px; }
.logo__mark { width: 30px; height: 30px; }
.hdr__nav { display: none; gap: 2px; margin-inline-start: 10px; }
.hdr__nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.hdr__nav a:hover, .hdr__nav a[aria-current="page"] { background: var(--tile); color: var(--ink); }
.hdr__sp { flex: 1; }
.hdr__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; position: relative; }
.hdr__btn:hover { background: var(--tile); }
.hdr__btn .hdr__txt { display: none; }
.hdr__lang { font-weight: 600; }
.badge { position: absolute; inset-block-start: 4px; inset-inline-end: 2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }
.badge.is-zero { display: none; }
@media (min-width: 900px) {
  .hdr__nav { display: flex; }
  .hdr__btn .hdr__txt { display: inline; }
  .hdr__btn--search { background: var(--tile); padding-inline-end: 16px; color: var(--muted); }
  .hdr__btn--search:hover { color: var(--ink); }
}

/* ---------- the board ---------- */
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding: var(--gap) var(--gut) var(--gut); }
.tile { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--tile); border-radius: var(--r); grid-column: span 2; }
.tile--shop { background: var(--shop); }
.tile--learn { background: var(--learn); }
.tile--sell { background: var(--sell); }
.tile--trust { background: var(--trust); }
.tile--dark { background: var(--dark); color: var(--on-dark); }
.tile--flat { background: var(--tile-2); }
.c1 { grid-column: span 1; }
.tile__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.tile__h h2, .tile__t { font-size: 1.05rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.tile__sub { color: var(--muted); font-size: .9375rem; }
.tile--dark .tile__sub { color: var(--on-dark-muted); }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); flex: none; }
.iconbtn:hover { background: rgb(39 35 31 / .07); }
.iconbtn:disabled { opacity: .35; cursor: default; }
.tile__h .iconbtn { margin: -6px -8px -6px 0; }
html[dir="rtl"] .tile__h .iconbtn { margin: -6px 0 -6px -8px; }
.tile__h .iconbtn .ico { width: 18px; height: 18px; }
@media (min-width: 760px) {
  .board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .c3 { grid-column: span 2; }
  .c4, .c6 { grid-column: span 4; }
  .r2 { grid-row: span 2; }
}
@media (min-width: 1100px) {
  :root { --gut: 20px; --gap: 12px; }
  .board { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); }
  .c3 { grid-column: span 3; }
  .c4 { grid-column: span 4; }
  .c6 { grid-column: span 6; }
  .tile { padding: 18px 20px; }
}

/* ---------- buttons, chips, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; transition: background .15s var(--ease), color .15s var(--ease); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: rgb(39 35 31 / .06); }
.btn--light { background: var(--tile); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.is-done { background: var(--ok); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; background: var(--tile); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; }
html[dir="rtl"] .chip { padding: 0 8px 0 14px; }
.chip:hover { background: #fff; }
.chip__dot { width: 26px; height: 26px; border-radius: 50%; background: var(--c); flex: none; }
.chip small { color: var(--muted); font-size: .8125rem; }
.mat { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: var(--tile-2); color: var(--ink-2); line-height: 1.5; }
.mat--petg { background: var(--accent-soft); color: var(--accent-hover); }
.rates { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8125rem; font-weight: 500; background: #efe1bf; color: #5e4612; }
.tile--dark .rates { background: #4a3f30; color: #f0dfb8; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld__label { font-weight: 600; font-size: .9375rem; line-height: 1.6; }
.fld__opt { color: var(--muted); font-weight: 400; }
.fld__in { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line-2); background: var(--field); font-size: 1rem; }
.fld__in:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; border-color: transparent; }
.fld__box { display: flex; align-items: stretch; border-radius: var(--r-s); border: 1.5px solid var(--line-2); background: var(--field); }
.fld__box .fld__in { border: 0; background: transparent; }
.fld__box:focus-within { outline: 3px solid var(--accent); }
.fld__box:focus-within .fld__in:focus-visible { outline: none; }
.fld__pre { display: flex; align-items: center; padding-inline: 14px 0; color: var(--muted); }
.fld__sel { position: relative; }
.fld__sel select { appearance: none; padding-inline-end: 42px; }
.fld__sel .ico { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.fld__ta { min-height: 72px; resize: vertical; }
.fld__help { color: var(--muted); font-size: .875rem; }
.fld__err { display: flex; gap: 6px; align-items: flex-start; color: var(--bad); font-size: .9375rem; font-weight: 500; }
.fld__err .ico { width: 18px; height: 18px; margin-top: 2px; }
.fld.is-err .fld__in, .fld.is-err .fld__box { border-color: var(--bad); }
.err { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-s); background: var(--bad-bg); color: var(--bad); font-weight: 500; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: inline-flex; padding: 2px; border-radius: 999px; background: rgb(39 35 31 / .08); }
.seg button { min-width: 48px; min-height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 600; color: inherit; }
.seg button[aria-pressed="true"] { background: var(--tile); color: var(--ink); }
.tile--dark .seg { background: rgb(255 255 255 / .12); }

/* radios as rows and swatches */
.opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px 4px 6px; border-radius: var(--r-s); cursor: pointer; }
html[dir="rtl"] .opt { padding: 4px 6px 4px 10px; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; background: var(--field); }
.opt:has(input:checked) { background: var(--tile); }
.tile--learn .opt:has(input:checked), .tile--sell .opt:has(input:checked), .tile--shop .opt:has(input:checked) { background: var(--tile); }
.opt:has(input:checked) .opt__dot { border-color: var(--accent); border-width: 6px; }
.opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 1px; }
.opt__art { width: 44px; height: 34px; border-radius: 8px; overflow: hidden; flex: none; }
.opt__art svg { width: 100%; height: 100%; display: block; }
.opt__t { flex: 1; min-width: 0; line-height: 1.3; }
.opt__t small { display: block; color: var(--muted); font-size: .8125rem; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { position: relative; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch__c { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(39 35 31 / .18); transition: transform .15s var(--ease); }
.swatch:has(input:checked) .swatch__c { box-shadow: 0 0 0 2px var(--tile), 0 0 0 4px var(--ink); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: -2px; border-radius: 50%; }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--tile); }
.tile .stepper { background: var(--field); box-shadow: inset 0 0 0 1.5px var(--line); }
.stepper button { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: var(--ink); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper .num { min-width: 28px; text-align: center; font-weight: 600; }

/* ---------- prices and cards ---------- */
.pr { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pr__now { font-weight: 600; }
.pr__was { color: var(--muted); font-weight: 400; }
.pr--hero .pr__now { font-size: 1.75rem; letter-spacing: -.02em; }
.pr--hero .pr__was { font-size: 1.05rem; }
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 8px; border-radius: var(--r-s); background: var(--tile); text-decoration: none; position: relative; transition: background .15s var(--ease); }
.card:hover { background: #fff; }
.card__art { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-xs); overflow: hidden; background: var(--tile-2); }
.card__art svg { width: 100%; height: 100%; display: block; }
.card__t { display: flex; flex-direction: column; gap: 1px; padding: 0 4px 4px; min-width: 0; }
.card__n { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__by { color: var(--muted); font-size: .8125rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card .pr { font-size: .9375rem; margin-top: 2px; }
.card__off { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; padding: 2px 8px; border-radius: 999px; background: var(--sale); color: #fff; font-size: .75rem; font-weight: 600; }
.card--mini { flex-direction: row; align-items: center; gap: 10px; padding: 6px; }
.card--mini .card__art { width: 64px; aspect-ratio: 1; flex: none; }
.card--mini .card__t { padding: 0; }
.card--mini .card__n { -webkit-line-clamp: 1; font-size: .9375rem; }
.card--mini .card__by { display: none; }
.card--mini .card__off { inset-block-start: 6px; inset-inline-start: 6px; }
.card--row { flex-direction: row; align-items: center; gap: 12px; }
.card--row .card__art { width: 84px; aspect-ratio: 1; flex: none; }
.card--row .card__t { padding: 0; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- home ---------- */
.tile--hero { padding: 0; overflow: hidden; min-height: 320px; background: radial-gradient(120% 90% at 50% 95%, #efe4d1 0%, var(--tile) 60%); }
.hero3d { position: absolute; inset: 0; outline: none; }
.hero3d canvas { width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; display: block; }
.hero3d canvas:active { cursor: grabbing; }
.hero3d:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.hero3d__poster { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .6s var(--ease); }
.hero3d__poster svg { width: 100%; height: 100%; }
.is-live .hero3d__poster { opacity: 0; pointer-events: none; }
.hero__link { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 16px 4px 12px; border-radius: 999px; background: rgb(247 242 234 / .9); text-decoration: none; font-weight: 600; font-size: .9375rem; backdrop-filter: blur(6px); }
html[dir="rtl"] .hero__link { padding: 4px 12px 4px 16px; }
.hero__link .pr__now { color: var(--accent); }
.hero__sw { position: absolute; inset-block-end: 10px; inset-inline-start: 10px; padding: 2px 4px; border-radius: 999px; background: rgb(247 242 234 / .85); backdrop-filter: blur(6px); }
.hero__hint { position: absolute; inset-block-end: 20px; inset-inline-end: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; }
.tile--statement { justify-content: center; gap: 14px; padding-block: 22px; }
.tile--statement h1 { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.tile--statement p { color: var(--ink-2); max-width: 36ch; }
.tile--statement .ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chipline { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: .9375rem; }
.deal { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 6px; border-radius: var(--r-s); background: var(--tile); text-decoration: none; }
.deal:hover { background: #fff; }
.deal__art { aspect-ratio: 1; border-radius: var(--r-xs); overflow: hidden; }
.deal__art svg { width: 100%; height: 100%; display: block; }
.deal__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.deal__n { font-weight: 600; line-height: 1.3; }
.deal .pr__now { color: var(--sale); }
.deal__off { justify-self: end; align-self: start; padding: 2px 9px; border-radius: 999px; background: var(--sale); color: #fff; font-size: .8125rem; font-weight: 600; }
.deals { display: flex; flex-direction: column; gap: 6px; }
.deal--big { grid-template-columns: 120px 1fr; padding: 10px; }
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px; margin: -2px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .card { flex: 0 0 148px; scroll-snap-align: start; }
.strip .card__art { aspect-ratio: 5 / 4; }
.strip .card__n { font-size: .9375rem; -webkit-line-clamp: 1; }
.ctrls { display: inline-flex; gap: 0; margin: -6px -8px -6px 0; }
html[dir="rtl"] .ctrls { margin: -6px 0 -6px -8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.steps { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; }
.step { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--r-s); background: rgb(255 255 255 / .35); transition: background .3s var(--ease); min-width: 0; }
.step__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tile); color: var(--ink-2); font-weight: 600; font-size: .8125rem; }
.step h3 { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.step p { font-size: .875rem; color: var(--ink-2); line-height: 1.4; display: none; }
.step.is-on { background: var(--tile); }
.step.is-on .step__n { background: var(--accent); color: #fff; }
.step.is-on p, html.rm .step p { display: block; }
.step--full p { display: block; font-size: 1rem; }
.step--full { padding: 14px 16px; }
.mini { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.mini .fld--price { grid-column: span 2; }
.mini .fld__in { min-height: 44px; padding-block: 8px; }
.mini__out { grid-column: span 2; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--r-s); background: var(--tile); }
.mini__out b { font-size: 1.5rem; letter-spacing: -.02em; color: var(--accent); }
.mini__out small { color: var(--muted); font-size: .875rem; }
.mini__out.is-err b { font-size: 1rem; color: var(--bad); }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }
.trust { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.trust li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-s); background: rgb(255 255 255 / .35); min-width: 0; }
.trust .ico { color: var(--accent); margin-top: 2px; }
.trust h3 { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.trust p { font-size: .9375rem; color: var(--ink-2); margin-top: 2px; }
.trust--compact p { display: none; }
.foot { justify-content: space-between; gap: 14px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; text-decoration: none; color: var(--on-dark); font-weight: 500; }
.foot__links a:hover { background: rgb(255 255 255 / .1); }
.foot__base { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; color: var(--on-dark-muted); font-size: .875rem; }
.foot__base .seg { color: var(--on-dark); }
.tile--dark :focus-visible { outline-color: var(--on-dark); }
@media (min-width: 1100px) {
  .tile--hero { min-height: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
}

/* ---------- dialogs ---------- */
.dlg { border: 0; padding: 0; margin: auto; width: min(680px, calc(100vw - 2 * var(--gut))); max-width: none; max-height: calc(100dvh - 32px); background: var(--tile); color: var(--ink); border-radius: var(--r); overflow: hidden; }
.dlg--wide { width: min(980px, calc(100vw - 2 * var(--gut))); }
.dlg::backdrop { background: rgb(39 35 31 / .45); }
.dlg__in { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.dlg__h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 20px; }
html[dir="rtl"] .dlg__h { padding: 12px 20px 10px 12px; }
.dlg__h h2 { flex: 1; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.dlg__b { overflow: auto; padding: 4px 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.dlg--tile.tile--shop { background: var(--shop); }
.dlg--tile.tile--learn { background: var(--learn); }
.dlg--tile.tile--sell { background: var(--sell); }
.dlg--tile.tile--trust { background: var(--trust); }
.sform { padding: 10px 10px 10px 16px; }
html[dir="rtl"] .sform { padding: 10px 16px 10px 10px; }
.sform .ico { color: var(--muted); }
.sform input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; font-size: 1.05rem; outline: none; }
.sres__n { color: var(--muted); font-size: .9375rem; }
.sres .card { background: var(--tile-2); }
.sres .card:hover { background: #fff; }
.toasts { position: fixed; inset-inline: var(--gut); inset-block-end: calc(var(--bar) + 12px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 440px; width: 100%; padding: 8px 10px 8px 8px; border-radius: 16px; background: var(--dark); color: var(--on-dark); pointer-events: auto; opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.is-on { opacity: 1; transform: none; }
.toast__art { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; }
.toast__art svg { width: 100%; height: 100%; display: block; }
.toast__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .9375rem; line-height: 1.35; }
.toast__txt span { color: var(--on-dark-muted); }
.toast__undo { min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--tile); color: var(--ink); font-weight: 600; }

/* ---------- product ---------- */
.pwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); padding: var(--gap) var(--gut) var(--gut); align-items: start; }
.pwrap > .board { padding: 0; }
.pwrap > .tile { grid-column: auto; }
.footmin { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 4px var(--gut) var(--gut); color: var(--muted); font-size: .875rem; }
.crumb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 4px var(--gut) 0; color: var(--muted); font-size: .9375rem; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 3px; text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb .ico { width: 16px; height: 16px; }
.tile--3d { padding: 0; overflow: hidden; aspect-ratio: 1 / 1; background: radial-gradient(120% 90% at 50% 95%, #efe4d1 0%, var(--tile) 60%); }
.tile--3d.is-drawn { aspect-ratio: 4 / 3; }
.v3d__ctrls { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgb(247 242 234 / .85); backdrop-filter: blur(6px); }
.v3d__ctrls .iconbtn[aria-pressed="true"] { background: var(--dark); color: #ffcf7a; }
.tile--3d.is-drawn .v3d__ctrls, .tile--3d.is-drawn .hero3d { display: none; }
.tile--3d .hero__hint { inset-inline-end: auto; inset-inline-start: 16px; }
.v3d__toast { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; padding: 6px 12px; border-radius: 999px; background: var(--dark); color: var(--on-dark); font-size: .875rem; opacity: 0; transition: opacity .2s; pointer-events: none; }
.v3d__toast.is-on { opacity: 1; }
.v3d__fail { position: absolute; inset-block-end: 12px; inset-inline: 12px; text-align: center; color: var(--muted); font-size: .875rem; }
.buy { gap: 14px; }
.buy__maker { color: var(--muted); font-size: .9375rem; }
.buy h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.buy__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.buy__label { font-weight: 600; font-size: .9375rem; }
.buy__label span { color: var(--muted); font-weight: 400; }
.buy__act { display: grid; gap: 8px; }
.rv-note { color: var(--muted); font-size: .875rem; text-align: center; }
.pod { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .9375rem; }
.pod .ico { color: var(--accent); }
.specs dl { display: grid; gap: 6px; }
.specs dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.specs dl div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; text-align: end; }
.tile p.body { color: var(--ink-2); }
.bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 25; display: flex; align-items: center; gap: 8px; padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom, 0px)); background: rgb(247 242 234 / .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.bar__p { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.bar__p .pr__now { font-size: 1.15rem; }
.bar__p small { color: var(--muted); font-size: .8125rem; display: inline-flex; align-items: center; gap: 6px; }
.bar__sw { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgb(39 35 31 / .2); }
.bar .btn { min-height: 48px; }
.bar .iconbtn { background: var(--tile-2); width: 48px; height: 48px; }
body.has-bar { --bar: 66px; }
@media (min-width: 1100px) {
  .pwrap { grid-template-columns: minmax(0, 1fr) 380px; }
  .pwrap > .board { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; }
  .pwrap > .board .c3 { grid-column: span 2; }
  .pwrap > .board .c4, .pwrap > .board .c6 { grid-column: span 4; }
  .pwrap--product { grid-template-rows: auto 1fr; }
  .pwrap--product > .tile--3d { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 10; min-height: 0; }
  .pwrap--product > .board { grid-column: 1; grid-row: 2; }
  .pwrap--product > .side { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .side { position: sticky; top: calc(var(--hdr) + var(--gap)); }
  .bar { display: none; }
  body.has-bar { --bar: 0px; }
}

/* ---------- sell ---------- */
.tile--pitch h1 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.nos { display: flex; flex-wrap: wrap; gap: 6px; }
.nos li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--tile); font-size: .9375rem; font-weight: 500; }
html[dir="rtl"] .nos li { padding: 6px 8px 6px 12px; }
.nos .ico { width: 18px; height: 18px; color: var(--accent); }
.calc { display: grid; gap: 14px; }
.calc__files { display: grid; gap: 4px; }
.calc__files .opt { min-width: 0; }
@media (min-width: 760px) { .calc__files { grid-template-columns: 1fr 1fr; } }
.calc__files .opt { background: rgb(255 255 255 / .35); }
.calc__files .opt:has(input:checked) { background: var(--tile); box-shadow: inset 0 0 0 2px var(--accent); }
.calc__files .opt__dot { display: none; }
.drop { padding: 10px 14px; border-radius: var(--r-s); border: 1.5px dashed var(--line-2); color: var(--muted); font-size: .9375rem; display: flex; gap: 8px; align-items: center; }
.est { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: .9375rem; }
.est .ico { color: var(--ok); margin-top: 2px; }
.mats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mats .opt { background: rgb(255 255 255 / .35); }
.price-in { display: flex; align-items: stretch; border-radius: var(--r-s); border: 1.5px solid var(--line-2); background: var(--field); max-width: 320px; }
.price-in:focus-within { outline: 3px solid var(--accent); }
.price-in .fld__in { border: 0; background: transparent; font-size: 1.25rem; font-weight: 600; }
.price-in .fld__in:focus-visible { outline: none; }
.price-in.is-err { border-color: var(--bad); }
.calc__res { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-s); background: var(--tile); }
.calc__earn { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc__earn b { font-size: 2rem; letter-spacing: -.02em; color: var(--accent); line-height: 1.1; }
.calc__earn.is-err b { font-size: 1.1rem; color: var(--bad); }
.receipt { display: grid; gap: 2px; font-size: .9375rem; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.receipt dt { color: var(--ink-2); }
.receipt dt small { display: block; color: var(--muted); font-size: .8125rem; }
.receipt dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.receipt .is-total { border-bottom: 0; padding-top: 8px; font-weight: 600; }
.receipt .is-total dd { font-weight: 700; }
.receipt .is-earn dd { color: var(--accent); font-weight: 700; }
.receipt .is-dim { color: var(--muted); }
.sstep { gap: 8px; min-height: 0; }
.sstep h3 { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.sstep p { color: var(--ink-2); font-size: .875rem; }
.mg dl { display: grid; gap: 4px; }
.mg dl div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.mg dl div:last-child { border-bottom: 0; }
.mg dt { color: var(--muted); font-size: .8125rem; }
.mg dd { line-height: 1.4; }
.mg__spool { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: .8125rem; }
.banned { display: grid; gap: 6px; }
.banned li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: var(--r-s); background: rgb(255 255 255 / .4); font-size: .9375rem; }
.banned .ico { color: var(--bad); }

/* ---------- cart and checkout ---------- */
.lines { display: flex; flex-direction: column; gap: var(--gap); }
.line { display: grid; grid-template-columns: 88px 1fr; gap: 12px 14px; align-items: start; }
.line__art { aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--tile-2); grid-row: span 2; }
.line__art svg { width: 100%; height: 100%; display: block; }
.line__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line__n { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.line__n a { text-decoration: none; display: inline-block; padding-block: 2px; }
.line__n a:hover { text-decoration: underline; }
.line__by { color: var(--muted); font-size: .9375rem; }
.line__spec { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .9375rem; }
.line__col { display: inline-flex; align-items: center; gap: 6px; }
.line__sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(39 35 31 / .2); }
.line__ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.line__price { text-align: end; }
.line__each { display: block; color: var(--muted); font-size: .8125rem; }
.line__rm { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; }
.line__rm:hover { background: rgb(39 35 31 / .07); }
.line.is-new { animation: flash .9s var(--ease); }
@keyframes flash { from { background: var(--accent-soft); } }
.sum dl { display: grid; gap: 4px; }
.sum dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sum dt small { display: block; color: var(--muted); font-size: .8125rem; }
.sum dd { font-weight: 500; text-align: end; }
.sum .is-save dd { color: var(--sale); }
.sum .is-total { border-bottom: 0; padding-top: 10px; font-size: 1.1rem; font-weight: 600; }
.sum .is-total dd { font-weight: 700; }
.sum__note { color: var(--muted); font-size: .875rem; }
.sum__trust { display: grid; gap: 8px; font-size: .9375rem; color: var(--ink-2); }
.sum__trust li { display: flex; gap: 8px; align-items: flex-start; }
.sum__trust .ico { color: var(--accent); flex: none; margin-top: 2px; }
.next { display: grid; gap: 8px; grid-template-columns: 1fr; counter-reset: s; }
.next li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-s); background: rgb(255 255 255 / .4); }
.next .ico { color: var(--accent); flex: none; margin-top: 2px; }
.next b { display: block; font-weight: 600; }
.next span span { color: var(--ink-2); font-size: .9375rem; }
.empty { align-items: flex-start; gap: 12px; padding: 28px 20px; }
.empty .ico { width: 36px; height: 36px; color: var(--muted); }
.empty h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.ck-h { display: flex; align-items: center; gap: 10px; }
.ck-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; font-size: .875rem; flex: none; }
.ck-sec { gap: 12px; }
.ck-check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.ck-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.ck-check a { color: var(--accent); }
.ck-lines { display: grid; gap: 6px; }
.ckl { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; }
.ckl__art { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--tile-2); }
.ckl__art svg { width: 100%; height: 100%; display: block; }
.ckl__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ckl__name { font-weight: 600; text-decoration: none; font-size: .9375rem; display: inline-block; min-height: 24px; }
.ckl__meta { color: var(--muted); font-size: .8125rem; display: inline-flex; align-items: center; gap: 6px; }
.ckl__price { font-weight: 600; font-size: .9375rem; }
.done__ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.done__ico .ico { width: 28px; height: 28px; }
.done h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.done__num { display: flex; flex-direction: column; gap: 2px; }
.done__num b { font-size: 1.5rem; letter-spacing: .02em; }
address { font-style: normal; line-height: 1.6; }
.done__note { color: var(--muted); }
@media (min-width: 760px) { .next { grid-template-columns: repeat(3, 1fr); } .line { grid-template-columns: 110px 1fr auto; } .line__ctrl { grid-column: 2 / span 2; } .line__price { grid-column: 3; } }
@media (min-width: 1100px) { .pwrap--cart { grid-template-columns: minmax(0, 1fr) 380px; } }
