/* EINTELLEGENCE storefront — curved-gallery design. Fonts self-hosted (latin + cyrillic incl. Uzbek letters). */

/* ---------- fonts ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(/assets/fonts/oswald-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(/assets/fonts/oswald-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(/assets/fonts/oswald-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(/assets/fonts/oswald-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/source-serif-4-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/source-serif-4-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Noto Sans Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/noto-sans-mono-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Noto Sans Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/noto-sans-mono-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Sans Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/noto-sans-mono-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Sans Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/noto-sans-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens & units ---------- */
:root {
  --wall: #FFF9EC; --floor: #F8E7D2; --ink: #3A3550; --ink-60: rgba(58,53,80,.6); --ink-35: rgba(58,53,80,.35);
  --ink-15: rgba(58,53,80,.15); --lemon: #FBE46D; --blush: #F7D2D1; --chip-on: #FCEB93; --drawer: #F9E3DF; --page: #FFF9EF;
  --band: #FBF3E4; --mat: #F6EAD8; --danger: #A1302A; --ok: #2F6B45;
  --on-ink: #fff; --ink-hover: #2a2640; --field: #fff; --img-bg: #fff; --shade: 58,53,80;
  --info-line: #E2B93B; --info-bg: #FFF6D8; --ok-bg: #D9EEDD; --danger-bg: #F6D6D3;
  --pill-bg: #1e1b2b; --pill-ink: #fff; --glass: rgba(255,249,236,.6);
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "Noto Sans Mono", ui-monospace, monospace;
  --cond: "Oswald", "Arial Narrow", sans-serif;
  --u: min(100vw / 1440, 100vh / 900);
  --w: calc(100vw / 1440);
  --ease-out: cubic-bezier(.2,.7,.2,1);
}
@media (max-width: 819px), (orientation: portrait) and (max-width: 1100px), (orientation: landscape) and (max-height: 500px) {
  :root { --u: 1px; --w: 1px; }
}
/* Dark theme: set on <html data-theme="dark"> by the head script (saved choice, else the device setting). */
html { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --wall: #17151F; --floor: #221E2B; --page: #1B1924; --band: #211E2B; --drawer: #221F2C; --mat: #2E2A3A;
  --ink: #ECE8F4; --ink-60: rgba(236,232,244,.68); --ink-35: rgba(236,232,244,.36); --ink-15: rgba(236,232,244,.14);
  --lemon: #8C7A2A; --blush: #5A3A44; --chip-on: #4A4128; --danger: #F08A80; --ok: #7CC795;
  --on-ink: #17151F; --ink-hover: #FFFFFF; --field: #24212E; --img-bg: #fff; --shade: 0,0,0;
  --info-line: #C9A43A; --info-bg: #3A3220; --ok-bg: #1F3528; --danger-bg: #42231F;
  --pill-bg: #ECE8F4; --pill-ink: #17151F; --glass: rgba(27,25,36,.6);
}
html[data-theme="dark"] .foot__powered img[src*="wordmark"], html[data-theme="dark"] .gui__powered img[src*="wordmark"] { filter: brightness(0) invert(.9); }
html[data-theme="dark"] .foot__pay { border-radius: 6px; }
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: contents; }
.nav__theme .ico--sun { display: none; }
html[data-theme="dark"] .nav__theme .ico--sun { display: block; }
html[data-theme="dark"] .nav__theme .ico--moon { display: none; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; background: var(--wall); }
body { color: var(--ink); font-family: var(--serif); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.mode-page { background: var(--page); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-60); }
.ico { width: max(18px, calc(18 * var(--u))); height: auto; aspect-ratio: 1; flex: none; }
.ico--sm { width: max(12px, calc(12 * var(--u))); }
.ico--xs { width: 8px; }
.ico--arrow { width: max(16px, calc(20 * var(--u))); }
.ico--meta { width: max(14px, calc(17 * var(--w))); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--wall); padding: 8px 12px; }
.skip:focus { left: 8px; }
.mask { display: block; overflow: hidden; }
.rise { display: block; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; height: max(52px, calc(58 * var(--u))); padding: 0 calc(27 * var(--u));
  background: var(--page); border-bottom: 1px solid var(--ink-15); transition: background .3s, border-color .3s; }
.mode-gallery .nav { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; }
.mode-gallery.is-page .nav, .mode-gallery.is-list .nav, html:not(.gl) .mode-gallery .nav { background: var(--page); border-color: var(--ink-15); }
.nav__logo { display: inline-flex; align-items: center; flex: none; margin-right: calc(36 * var(--u)); }
.nav__logo-img { display: block; height: max(26px, calc(30 * var(--u))); width: auto; }
.nav__links { display: flex; gap: calc(22 * var(--u)); }
.nav__links a { font-size: max(12px, calc(13.5 * var(--u))); opacity: .85; min-height: 24px; display: inline-flex; align-items: center; white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current] { opacity: 1; }
.nav__links a[aria-current] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: calc(14 * var(--u)); }
.nav__search { position: relative; display: flex; align-items: center; width: max(140px, calc(170 * var(--u))); height: max(26px, calc(27 * var(--u)));
  border: 1px solid var(--ink-35); border-radius: 99px; padding: 0 calc(8 * var(--u)) 0 calc(11 * var(--u)); }
.nav__search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: max(11px, calc(12 * var(--u))); color: var(--ink); outline: none; padding: 0; }
.nav__search input::placeholder { color: var(--ink-60); }
.nav__search input::-webkit-search-cancel-button { display: none; }
.nav__lang { position: relative; }
.nav__lang summary { list-style: none; display: flex; align-items: center; gap: 6px; height: max(26px, calc(27 * var(--u))); padding: 0 10px; border: 1px solid var(--ink-35);
  border-radius: 99px; font-family: var(--mono); font-size: max(11px, calc(10.5 * var(--u))); cursor: pointer; }
.nav__lang summary::-webkit-details-marker { display: none; }
.nav__lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--page); border: 1px solid var(--ink-15);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(var(--shade),.12); min-width: 160px; z-index: 5; }
.nav__lang li a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.nav__lang li a:hover, .nav__lang li a[aria-current] { background: var(--chip-on); }
.nav__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: max(26px, calc(26 * var(--u))); height: max(26px, calc(26 * var(--u))); }
.nav__badge { position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--ink); color: var(--wall);
  font: 500 10px/16px var(--mono); text-align: center; }
.nav__menu { display: none; }

/* ---------- gallery ---------- */
.gallery, .gui, .pill { display: none; }
html.gl .mode-gallery { overflow: hidden; height: 100%; }
html.gl .gallery { display: block; position: fixed; inset: 0; touch-action: none; cursor: grab; }
html.gl .gallery.is-dragging { cursor: grabbing; }
html.gl .gallery.is-hover { cursor: pointer; }
#room { display: block; width: 100%; height: 100%; transition: opacity .3s; }
.veil { position: absolute; inset: 0; background: var(--wall); pointer-events: none; }
html.gl .gui { display: block; position: fixed; inset: 0; z-index: 20; pointer-events: none; transition: opacity .3s, visibility 0s; }
.gui > * { pointer-events: auto; }
.is-page .gui, .is-list .gui { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.gui__arrows { position: absolute; left: calc(27 * var(--u)); top: calc(262 * var(--u)); display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
.round { width: max(40px, calc(50 * var(--u))); height: max(40px, calc(50 * var(--u))); border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center;
  transition: background .25s, color .25s; }
.round:hover { background: var(--ink); color: var(--wall); }
.gui__hint { position: absolute; right: calc(27 * var(--u)); bottom: calc(229 * var(--u)); margin: 0; text-align: right; font-size: max(11px, calc(10 * var(--u)));
  letter-spacing: .12em; line-height: 1.65; text-transform: uppercase; pointer-events: none; }
.toggle { position: absolute; right: calc(29 * var(--u)); bottom: calc(174 * var(--u)); display: flex; gap: calc(2 * var(--u)); padding: calc(2 * var(--u));
  border: 1px solid var(--ink-35); border-radius: 99px; background: var(--glass); }
.toggle button { height: max(24px, calc(22 * var(--u))); padding: 0 calc(14 * var(--u)); border-radius: 99px; font-size: max(11px, calc(9.5 * var(--u))); letter-spacing: .12em;
  text-transform: uppercase; min-width: 24px; }
.toggle button.is-on { background: var(--ink); color: var(--wall); }
.caption { position: absolute; left: calc(25 * var(--u)); bottom: calc(30 * var(--u)); pointer-events: none; }
.caption > * { pointer-events: auto; }
.caption__kicker { margin: 0 0 calc(10 * var(--u)) calc(3 * var(--u)); font-size: max(11px, calc(11.5 * var(--u))); letter-spacing: .14em; width: max-content; text-transform: uppercase; }
.caption__row { position: relative; }
.caption__h { margin: 0; font-family: var(--cond); font-weight: 600; font-size: calc(170 * var(--u)); line-height: .82; letter-spacing: .005em; white-space: nowrap;
  transform: scaleX(.855); transform-origin: 0 100%; max-width: calc(100vw / .855 - 60 * var(--u)); }
.caption__h .rise { transition: opacity .25s; }
.caption__h.is-swap .rise { opacity: 0; }
.caption__link { position: absolute; left: var(--link-x, calc(946 * var(--u))); bottom: 0; margin-bottom: calc(9 * var(--u)); font-size: max(11px, calc(11 * var(--u)));
  letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: calc(2 * var(--u)); white-space: nowrap; min-height: 24px; display: flex; align-items: flex-end; }
.gui__powered { position: absolute; right: calc(29 * var(--u)); bottom: calc(30 * var(--u)); margin: 0; font-size: 11px; letter-spacing: .08em; color: var(--ink-60); }
.gui__powered a { color: var(--ink); display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.gui__powered img { height: 13px; width: auto; }
html.gl .pill { display: block; position: fixed; z-index: 25; left: 0; top: 0; padding: calc(7 * var(--u)) calc(13 * var(--u)); border-radius: 99px; background: var(--pill-bg); color: var(--pill-ink);
  font-size: max(11px, calc(10 * var(--u))); letter-spacing: .14em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .12s; white-space: nowrap;
  transform: translate(-50%, -50%); }
html.gl .pill.is-on { opacity: 1; }
.flyer { position: fixed; z-index: 50; left: 0; top: 0; transform-origin: 0 0; background: var(--img-bg) center / contain no-repeat; pointer-events: none; box-shadow: 0 0 0 calc(10 * var(--w)) var(--mat); }

/* intro */
html.gl .intro .rise { animation: rise 1s var(--ease-out) backwards; animation-delay: calc(250ms + var(--i, 0) * 60ms); }
html.gl .intro .nav > * { animation: fade 1s var(--ease-out) backwards; animation-delay: calc(250ms + var(--i, 0) * 60ms); }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- sheets (product page / list over the gallery, and static pages) ---------- */
html.gl .mode-gallery .sheet { position: fixed; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--page); padding-top: max(52px, calc(58 * var(--u))); opacity: 0;
  transition: opacity .3s; }
html.gl .mode-gallery #page { z-index: 15; }
html.gl .mode-gallery #list { z-index: 14; display: none; }
html.gl .is-list #list { display: block; }
html.gl .mode-gallery .sheet.is-in { opacity: 1; }
html:not(.gl) .mode-gallery #list { padding-top: max(52px, calc(58 * var(--u))); }
html:not(.gl) .mode-gallery #page { display: none; }
.sheet--static { min-height: 60vh; }
.narrow { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.narrow--xs { max-width: 440px; }
.page-h { font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: clamp(30px, calc(46 * var(--w)), 56px); line-height: 1.05; margin: 0 0 24px; }
.side-h { font-family: var(--cond); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: 20px; margin: 32px 0 12px; }
.crumbs { padding: 20px calc(48 * var(--w)) 0; font-size: 12px; color: var(--ink-60); }
.crumbs a:hover { color: var(--ink); }

/* ---------- product page ---------- */
.pp__wrap { display: grid; grid-template-columns: calc(712 * var(--w)) calc(638 * var(--w)); padding-top: calc(60 * var(--w)); }
.mode-gallery .pp__wrap { padding-top: calc(38 * var(--w)); }
.pp__left { position: relative; }
.pp__sticky { position: sticky; top: calc(96 * var(--w)); padding-left: calc(184 * var(--w)); width: calc(544 * var(--w)); }
.pp__img { width: calc(360 * var(--w)); aspect-ratio: 1; background: var(--img-bg); box-shadow: 0 0 0 calc(10 * var(--w)) var(--mat), 0 calc(2 * var(--w)) calc(10 * var(--w)) calc(10 * var(--w)) rgba(var(--shade),.06); }
.pp__img img { width: 100%; height: 100%; object-fit: contain; }
.pp__img.is-waiting img { visibility: hidden; }
.pp__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; width: calc(360 * var(--w)); margin-top: calc(34 * var(--w)); font-size: max(11px, calc(11 * var(--w))); color: var(--ink-60); }
.pp__meta-i { display: inline-flex; align-items: center; gap: 6px; }
.pp__right { padding-right: calc(48 * var(--w)); padding-bottom: 20px; min-width: 0; }
[data-reveal] { transition: opacity .15s; }
.is-revealing [data-reveal] { opacity: 0; }
.pp__brand { font-family: var(--mono); font-size: max(11px, calc(11 * var(--w))); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-60); }
.pp__brand:hover { color: var(--ink); }
.pp__title { font-family: var(--cond); font-weight: 600; font-size: max(26px, calc(40 * var(--w))); line-height: 1.05; text-transform: uppercase; margin: calc(8 * var(--w)) 0 0; overflow-wrap: anywhere; }
.pp__lead { font-size: max(11px, calc(11.5 * var(--w))); line-height: 1.5; letter-spacing: .02em; color: var(--ink-60); max-width: calc(560 * var(--w)); margin: calc(10 * var(--w)) 0 0; }
.list__intro { font-size: max(14px, calc(15 * var(--w))); line-height: 1.55; color: var(--ink-60); max-width: calc(760 * var(--w)); margin: calc(-8 * var(--w)) 0 calc(22 * var(--w)); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 1.4em; }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-60); padding-top: 3px; }
.facts dd { margin: 0; }
.asal-brand { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.asal-brand img { height: 44px; width: auto; }
.foot__powered img { height: 14px; width: auto; vertical-align: -2px; }
.foot__powered a { display: inline-flex; align-items: center; gap: 6px; }
.pp__desc { font-size: max(14px, calc(14.5 * var(--w))); line-height: 1.55; color: var(--ink-60); max-width: calc(560 * var(--w)); margin: calc(16 * var(--w)) 0; }
.pp__price { font-size: max(15px, calc(17 * var(--w))); margin: calc(18 * var(--w)) 0 0; }
.pp__tax { font-size: max(11px, calc(10 * var(--w))); color: var(--ink-60); margin: calc(8 * var(--w)) 0 0; }
.opt { margin-top: calc(21 * var(--w)); }
.opt__label { font-size: max(11px, calc(10 * var(--w))); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 calc(10 * var(--w)); }
.opt__chips { display: flex; flex-wrap: wrap; gap: calc(13 * var(--w)); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: max(28px, calc(32 * var(--w))); padding: 0 max(12px, calc(14 * var(--w))); border-radius: 99px;
  box-shadow: inset 0 0 0 1px var(--ink-35); font-family: var(--mono); font-size: max(11px, calc(10.5 * var(--w))); white-space: nowrap; }
.chip.is-on { background: var(--chip-on); box-shadow: inset 0 0 0 1px var(--ink); }
a.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip__n { color: var(--ink-60); }
.buy { display: flex; gap: calc(26 * var(--w)); margin-top: calc(42 * var(--w)); }
.req { margin-top: calc(42 * var(--w)); padding: calc(22 * var(--w)) calc(24 * var(--w)); background: var(--band); box-shadow: inset 0 0 0 1px var(--ink-15); }
.buy + .req { margin-top: calc(24 * var(--w)); }
.req__title { margin: 0; font-family: var(--cond); font-weight: 500; font-size: max(17px, calc(18 * var(--w))); letter-spacing: .06em; text-transform: uppercase; }
.req__note { margin: 6px 0 16px; font-size: max(14px, calc(14 * var(--w))); line-height: 1.5; color: var(--ink-60); }
.req__fields { display: grid; gap: 12px; }
.req__fields[hidden] { display: none; }
.req__fields .field > span { color: var(--ink-60); }
.req__fields textarea { resize: vertical; min-height: 64px; }
.req__result { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--ok); background: var(--field); font-size: 14px; }
.req__result.is-error { border-color: var(--danger); }
.req__fields + .req__result:not([hidden]) { margin-top: 14px; }
.qty { display: inline-flex; align-items: center; justify-content: space-between; width: max(100px, calc(100 * var(--w))); height: max(44px, calc(50 * var(--w)));
  box-shadow: inset 0 0 0 1px var(--ink-35); font-family: var(--mono); font-size: max(13px, calc(13 * var(--w))); flex: none; }
.qty button { width: max(28px, calc(30 * var(--w))); height: 100%; }
.qty input { width: 3ch; border: 0; background: none; text-align: center; font: inherit; color: inherit; -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty--sm { width: 84px; height: 30px; font-size: 12px; }
.qty--sm button { width: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: max(44px, calc(50 * var(--w))); padding: 0 24px; background: var(--ink); color: var(--on-ink);
  font-family: var(--cond); font-weight: 500; font-size: max(15px, calc(16 * var(--w))); letter-spacing: .12em; text-transform: uppercase; transition: background .2s; text-align: center; }
.btn:hover { background: var(--ink-hover); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--grow { flex: 1; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--chip-on); }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.acc { margin-top: calc(36 * var(--w)); border-top: 1px solid var(--ink-35); }
.acc__row { border-bottom: 1px solid var(--ink-35); }
.acc__row summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: max(40px, calc(44 * var(--w))); cursor: pointer;
  font-size: max(15px, calc(15 * var(--w))); }
.acc__row summary::-webkit-details-marker { display: none; }
.acc__plus { transition: transform .3s; font-size: 16px; }
.acc__row[open] .acc__plus { transform: rotate(45deg); }
.acc__body { padding: 0 0 calc(20 * var(--w)); font-size: max(14px, calc(14.5 * var(--w))); color: var(--ink-60); overflow: hidden; }
.acc__body p { margin: 0 0 10px; }
.rich { overflow-wrap: anywhere; }
.rich h2, .rich h3, .rich h4 { font-family: var(--cond); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); font-size: 18px; margin: 22px 0 8px; }
.rich ul, .rich ol { padding-left: 20px; margin: 0 0 12px; }
.rich li { margin: 2px 0; }
.rich strong, .rich b { color: var(--ink); font-weight: 600; }
.rich table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 10px 0; display: block; overflow-x: auto; }
.rich td, .rich th { border-bottom: 1px solid var(--ink-15); padding: 6px 8px; text-align: left; vertical-align: top; }
.rich a { color: var(--ink); border-bottom: 1px solid var(--ink-35); }
.prose { font-size: 16px; line-height: 1.65; }
.prose p { margin: 0 0 14px; }

.band { background: var(--band); margin-top: calc(70 * var(--w)); padding: calc(36 * var(--w)) 0 calc(80 * var(--w)) calc(48 * var(--w)); }
.band__title { font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: max(24px, calc(34 * var(--w))); margin: 0 0 calc(30 * var(--w)); }
.band__row { display: flex; gap: calc(60 * var(--w)); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px calc(48 * var(--w)) 8px 0; }
.band__row .card { width: max(150px, calc(200 * var(--w))); flex: none; scroll-snap-align: start; }

/* ---------- cards & list ---------- */
.card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card__img { display: block; aspect-ratio: 1; background: var(--img-bg); box-shadow: 0 0 0 calc(7 * var(--w)) var(--mat); margin: calc(7 * var(--w)) calc(7 * var(--w)) 14px;
  transition: transform .35s var(--ease-out); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__img { transform: translateY(calc(-4 * var(--w))); }
.card__title { font-weight: 500; font-size: max(14px, calc(14 * var(--w))); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__brand { font-style: italic; font-size: max(13px, calc(13.5 * var(--w))); color: var(--ink-60); }
.card__price { font-size: max(11px, calc(11.5 * var(--w))); }
.list__inner { padding: calc(56 * var(--w)) calc(48 * var(--w)) calc(80 * var(--w)); }
.list__title { font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: max(28px, calc(38 * var(--w))); margin: 0 0 calc(22 * var(--w)); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: calc(34 * var(--w)); }
.list__meta { font-size: 12px; color: var(--ink-60); margin: -10px 0 20px; }
.list__empty { padding: 40px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(170px, calc(200 * var(--w))), 1fr)); gap: calc(46 * var(--w)) calc(40 * var(--w)); }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(var(--shade),.18); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: max(340px, calc(387 * var(--w))); max-width: 100vw; background: var(--drawer);
  padding: calc(28 * var(--w)) calc(28 * var(--w)) calc(28 * var(--w)) calc(32 * var(--w)); display: flex; flex-direction: column; transform: translateX(101%);
  transition: transform .45s cubic-bezier(.1,.85,.2,1), visibility 0s .45s; visibility: hidden; padding-left: max(22px, calc(32 * var(--w))); padding-right: max(20px, calc(28 * var(--w))); }
.drawer.is-open { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.1,.85,.2,1); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.drawer__title { font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: max(22px, calc(26 * var(--w))); margin: 0; }
.drawer__close { width: 32px; height: 32px; display: grid; place-items: center; }
.drawer__items { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.drawer__empty { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; text-align: center; font-size: 12px; margin-top: calc(120 * var(--w)); }
.bag-item { display: grid; grid-template-columns: max(60px, calc(66 * var(--w))) 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ink-15); }
.bag-item.is-new { animation: itemIn .4s var(--ease-out) .75s backwards; }
@keyframes itemIn { from { opacity: 0; transform: translateY(calc(6 * var(--w))); } }
.bag-item__img { aspect-ratio: 1; background: var(--img-bg); }
.bag-item__img img { width: 100%; height: 100%; object-fit: contain; }
.bag-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bag-item__name { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bag-item__brand { font-style: italic; font-size: 13px; color: var(--ink-60); }
.bag-item__price { font-size: 11px; }
.bag-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.bag-item__remove { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink-60); }
.bag-item__remove:hover { color: var(--danger); }
.drawer__foot { border-top: 1px solid var(--ink); padding-top: 16px; margin-top: 12px; }
.drawer__sub { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 12px; }
.drawer__sub span:last-child { font-family: var(--mono); }
.drawer__note { font-size: 12px; color: var(--ink-60); margin: 0 0 12px; }
.drawer .btn { font-size: max(16px, calc(17 * var(--w))); }

/* ---------- forms, tables, alerts (static pages) ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 1px solid var(--ink-35); border-radius: 0; padding: 11px 12px; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.input--qty { width: 72px; }
textarea.input { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.check a { border-bottom: 1px solid var(--ink-35); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; margin: 0 0 16px; background: var(--field); border-left: 3px solid var(--ink); font-size: 14px; }
.alert p { margin: 0; }
.alert--error { border-color: var(--danger); }
.alert--success { border-color: var(--ok); }
.alert--info { border-color: var(--info-line); background: var(--info-bg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.tbl th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-align: left; font-weight: 400; color: var(--ink-60); padding: 8px 6px; border-bottom: 1px solid var(--ink-35); }
.tbl td { padding: 12px 6px; border-bottom: 1px solid var(--ink-15); vertical-align: middle; }
.tbl tfoot td { border-bottom: 0; font-size: 16px; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl__prod { display: flex; gap: 12px; align-items: center; }
.tbl__prod img { width: 56px; height: 56px; object-fit: contain; background: var(--img-bg); flex: none; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-60); }
.status { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--ink-15); }
.status--paid, .status--completed { background: var(--ok-bg); color: var(--ok); }
.status--awaiting_payment, .status--quote_requested { background: var(--chip-on); }
.status--cancelled, .status--refunded { background: var(--danger-bg); color: var(--danger); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 48px; max-width: 1120px; margin: 0 auto; padding: 40px 20px 80px; }
.split__side { background: var(--band); padding: 24px; align-self: start; position: sticky; top: 80px; }
.split__side .side-h { margin-top: 0; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.mini img { width: 48px; height: 48px; object-fit: contain; background: var(--img-bg); }
.mini__total { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); margin: 16px 0 0; padding-top: 12px; font-size: 16px; }
.contact-form { margin-top: 32px; max-width: 520px; }
.chat { margin: 8px 0 32px; }
.chat__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.chat__btn .ico { width: 20px; height: 20px; }
.chat__note { margin: 10px 0 0; font-size: 14px; }
.map { margin: 8px 0 32px; }
.map__addr { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.map__frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--ink-15); background: var(--field); overflow: hidden; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html[data-theme="dark"] .map__frame iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.map__links { margin: 10px 0 0; font-size: 12px; }
@media (max-width: 600px) { .map__frame { aspect-ratio: 4 / 3; } .chat__btn { flex: 1 1 140px; } }
.err__code { font-family: var(--mono); letter-spacing: .14em; color: var(--ink-60); margin: 40px 0 8px; }

/* ---------- footer ---------- */
.foot { background: var(--band); border-top: 1px solid var(--ink-15); padding: 48px calc(48 * var(--w)) 24px; font-size: 14px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.foot__logo { display: inline-block; }
.foot__logo-img { display: block; height: 40px; width: auto; }
.foot__brand p { color: var(--ink-60); max-width: 340px; margin: 10px 0 0; }
.foot__h { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink-60); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--ink-15);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.foot__pay { height: 26px; width: auto; }
.foot__powered a { font-weight: 600; }

/* ---------- small-screen layout ---------- */
@media (max-width: 819px), (orientation: portrait) and (max-width: 1100px), (orientation: landscape) and (max-height: 500px) {
  .nav { height: 52px; padding: 0 16px; }
  .nav__logo { margin-right: 12px; }
  .nav__logo-img { height: 24px; }
  .nav__links, .nav__search, .nav__account { display: none; }
  .nav__right { gap: 8px; }
  .nav__lang summary { height: 30px; font-size: 11px; }
  .nav__icon { width: 32px; height: 32px; }
  .nav__icon .ico { width: 20px; }
  .nav__menu { display: inline-flex; }
  .nav.is-menu .nav__links { display: flex; flex-direction: column; position: absolute; top: 52px; left: 0; right: 0; background: var(--page); padding: 8px 16px 16px;
    border-bottom: 1px solid var(--ink-15); gap: 0; }
  .nav.is-menu .nav__links a { font-size: 17px; min-height: 44px; }
  .nav.is-menu .nav__search { display: flex; position: absolute; top: calc(52px + 5 * 44px + 16px); left: 16px; right: 16px; width: auto; height: 40px; }
  .nav.is-menu { border-color: var(--ink-15); background: var(--page); }
  .nav.is-menu .nav__links { padding-bottom: 72px; }

  .gui__hint { top: 62px; left: 16px; right: 16px; bottom: auto; text-align: left; font-size: 11px; }
  .caption { left: 14px; right: 14px; bottom: 100px; }
  .caption__kicker { font-size: 11px; }
  .caption__h { font-size: min(15vw, 15vh); white-space: normal; line-height: .84; max-width: calc((100vw - 28px) / .855); overflow-wrap: anywhere; }
  .caption__link { position: static; display: inline-flex; margin-top: 12px; }
  .gui__arrows { top: auto; left: 16px; bottom: 24px; flex-direction: row; }
  .round { width: 44px; height: 44px; }
  .toggle { right: 16px; bottom: 30px; }
  .toggle button { height: 26px; }
  .gui__powered { right: 16px; bottom: 8px; font-size: 10px; }

  .pp__wrap, .mode-gallery .pp__wrap { display: block; max-width: 680px; margin: 0 auto; padding: 24px 20px 0; }
  .pp__sticky { position: static; padding: 0; width: auto; }
  .pp__img { width: 100%; max-width: 420px; margin: 8px auto 0; box-shadow: 0 0 0 8px var(--mat); }
  .pp__meta { width: auto; margin: 20px 0 24px; }
  .pp__right { padding: 0; }
  .pp__title { font-size: 30px; }
  .pp__desc { max-width: none; }
  .opt__chips { gap: 8px; }
  .chip { min-height: 36px; font-size: 11px; }
  .buy { gap: 12px; margin-top: 28px; }
  .qty, .btn { height: 50px; }
  .acc__row summary { min-height: 46px; }
  .band { padding: 30px 0 60px max(20px, (100vw - 640px) / 2); margin-top: 48px; }
  .band__row { gap: 16px; padding-right: 20px; }
  .band__row .card { width: 150px; }
  .list__inner { padding: 24px 16px 60px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .card__img { margin: 6px 6px 12px; box-shadow: 0 0 0 6px var(--mat); }
  .drawer { width: min(88vw, 380px); padding: 22px 20px; }
  .crumbs { padding: 16px 20px 0; }
  .foot { padding: 36px 20px 20px; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .foot { overflow-wrap: anywhere; }
  .foot__brand { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .split__side { position: static; order: -1; }
  .tbl__prod img { width: 44px; height: 44px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .caption { bottom: 18px; right: auto; }
  .caption__h { font-size: min(13vw, 26vh); white-space: nowrap; }
  .gui__hint { display: none; }
  .gui__arrows { left: auto; right: 16px; bottom: 18px; }
  .toggle { top: 60px; bottom: auto; }
  .gui__powered { display: none; }
}
@media (min-width: 820px) and (max-aspect-ratio: 1/1) {
  .caption__h { font-size: calc(150 * var(--u)); }
}
@media (max-width: 380px) {
  .foot__grid { grid-template-columns: 1fr; }
  .nav__lang summary { padding: 0 8px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); background: var(--ink); color: var(--wall); padding: 10px 16px; font-size: 14px;
  max-width: calc(100vw - 32px); transition: opacity .3s; }
.toast.is-out { opacity: 0; }
html.bag-open.gl body.mode-gallery, html.bag-open body.mode-page { overflow: hidden; }
/* hold intro text until the gallery is ready (the 8 s watchdog drops .gl if it never is) */
html.gl body.mode-gallery:not(.intro) .gui .rise { transform: translateY(105%); }
html.gl body.mode-gallery:not(.intro) .nav > * { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html.gl body.mode-gallery:not(.intro) .gui .rise { transform: none; }
  html.gl body.mode-gallery:not(.intro) .nav > * { opacity: 1; }
}
