/* ============================================================================
   PDPeptides v4 — design system. „Пептидна система“.
   Art direction: the reference image, come to life — near-black space, the
   real white box lit like a specimen, violet as light rather than as paint.
   Every device is taken from the package: the hexagon (lid print), the label
   block (pen), the line-ribbon (lid print), the chamfer (a hexagon's corner).
   ============================================================================ */

/* ── 1 · tokens ─────────────────────────────────────────────────────────── */
:root {
  /* colour — near-black dominant; violet is light, used sparingly */
  --bg: #07060b;           /* space */
  --bg-2: #0c0a12;         /* a step up: section grounds */
  --surface: #110e19;      /* raised: cards, panels, inputs */
  --surface-2: #181322;
  --text: #f4f1fa;         /* lavender-white */
  --text-2: #c8c0d8;       /* body copy on black */
  --muted: #9d94b1;        /* technical text: violet-grey, AA on --bg and --surface */
  --faint: #5f5870;        /* decoration only, never text */
  --violet: #6203a0;       /* the brand purple — the label block on every pen */
  --violet-2: #4a0279;
  --electric: #8b45ff;     /* the accent: light, lines, focus */
  --electric-2: #a16aff;
  --lav: #cdb6ff;          /* highlight text on black */
  --violet-wash: rgba(139, 69, 255, .12);
  --line: rgba(214, 200, 255, .11);
  --line-2: rgba(214, 200, 255, .22);
  --ok: #4fd08f;
  --warn: #f0b04a;
  --danger: #ff7a7a;

  /* type */
  --f-display: "Fira Sans Condensed", "Arial Narrow", sans-serif;       /* headings, names, prices: sentence case */
  --f-label: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;   /* the pen label; caps only */
  --f-text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;

  /* type scale — DISPLAY (hero, closing) › H1 (page titles, section
     statements) › H2 (sub-sections) › H3 › H4 (card titles). Each step is at
     least ~1.4× the next, so hierarchy reads at a glance. */
  --d-hero: clamp(52px, 7.6vw, 136px);
  --d-1: clamp(38px, 4.8vw, 82px);
  --d-2: clamp(30px, 3.3vw, 56px);
  --d-3: clamp(24px, 2.2vw, 36px);
  --d-4: clamp(20px, 1.6vw, 26px);
  --t-lede: clamp(17px, 1.25vw, 19.5px);
  --t-body: 16px;
  --t-sm: 14.5px;
  --t-xs: 12px;
  --t-micro: 11px;         /* the floor: nothing on the site is set smaller */
  --track: .12em;          /* the few labels that stay in capitals (the pen label's own phrases) */
  --measure: 60ch;         /* running text */
  --measure-lede: 46ch;

  /* space + grid */
  --gut: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 136px;
  --sec: clamp(96px, 12vw, 180px);

  /* shape — cut corners, not pills */
  --cut: 10px;             /* the chamfer */
  --r-cut: 2px;
  --r-label: 6px;          /* the label block on the pen */
  --r-window: 4px;

  /* motion */
  --e-out: cubic-bezier(.16, .84, .24, 1);
  --e-io: cubic-bezier(.65, 0, .25, 1);
  --e: cubic-bezier(.3, .7, .3, 1);

  --bar: 30px;
  --hd-h: calc(76px + var(--bar));
  color-scheme: dark;
}
@media (max-width: 899px) { :root { --bar: 28px; --hd-h: calc(62px + var(--bar)); } }

/* ── 2 · base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--t-body)/1.6 var(--f-text);
  font-feature-settings: "locl" 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
main { padding-top: var(--hd-h); }
body[data-page="home"] main { padding-top: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--electric-2); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--electric); color: #fff; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--text); color: var(--bg);
        padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
html.noscroll { overflow: hidden; }

/* ── 3 · type ───────────────────────────────────────────────────────────── */
.display, .d-hero, .d-1, .d-2, .d-3 {
  font-family: var(--f-display); font-weight: 600;
  line-height: .96; letter-spacing: -.012em; font-feature-settings: normal;
  /* Bulgarian runs long: balance the lines so no heading ends on one word */
  text-wrap: balance;
}
.d-hero { font-size: var(--d-hero); line-height: .93; letter-spacing: -.02em; }
.d-1 { font-size: var(--d-1); letter-spacing: -.016em; line-height: .96; }
.d-2 { font-size: var(--d-2); line-height: 1; font-weight: 500; letter-spacing: -.01em; }
.d-3 { font-size: var(--d-3); line-height: 1.04; font-weight: 500; letter-spacing: -.006em; }
/* Turkish capitals carry marks above the cap height (İ, Ğ, Ş, Ç, Ö, Ü): at the
   display line-heights they touched the line above ("Kalem. / İğneler.") */
:lang(tr) .d-hero { line-height: 1.02; }
:lang(tr) .d-1 { line-height: 1.04; }
:lang(tr) .d-2 { line-height: 1.07; }
.d-4 { font: 500 var(--d-4)/1.1 var(--f-display); font-feature-settings: normal; }
/* the second line of a headline: one solid violet — a gradient fill on type is a template tell */
.hl { color: var(--electric-2); }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--text-2); max-width: var(--measure-lede); }
/* body copy: no orphans, no ragged single-word last lines */
p, li, dd, .lede { text-wrap: pretty; }
h3, h4 { text-wrap: balance; }
.small { font-size: var(--t-sm); }
.mute { color: var(--muted); }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: .02em; }

/* the section label: small, sentence case, violet — a quiet kicker, not a shouted one */
.tl, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1.3 var(--f-text); letter-spacing: .01em;
  color: var(--lav);
}
.eyebrow::before {
  content: ""; width: 11px; height: 12px; flex: none; background: var(--electric);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 24'%3E%3Cpath d='M11 1.5 20.5 7v10L11 22.5 1.5 17V7z' fill='none' stroke='black' stroke-width='2.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 24'%3E%3Cpath d='M11 1.5 20.5 7v10L11 22.5 1.5 17V7z' fill='none' stroke='black' stroke-width='2.6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tl--mute { color: var(--muted); }
@media (max-width: 560px) { .tl, .eyebrow { font-size: 12.5px; } .sm-hide { display: none; } }

/* ── 4 · layout ─────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); position: relative; }
.row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.stack { display: grid; gap: var(--s4); align-content: start; }
.split { display: grid; gap: var(--s7); }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 112px); } }
.hair { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── 5 · package devices ────────────────────────────────────────────────── */
/* label block — the purple block printed on every pen */
.lbl {
  display: inline-grid; gap: 1px; justify-items: start;
  background: var(--violet); color: #fff; border-radius: var(--r-label);
  padding: .34em .62em .3em; font-family: var(--f-label); text-transform: uppercase;
  line-height: .9; font-weight: 800; font-feature-settings: normal;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.lbl b { font-weight: 800; font-size: 1em; letter-spacing: .01em; }
.lbl > i { font-style: normal; font-weight: 800; font-size: .38em; letter-spacing: .06em; opacity: .9; }
.lbl--sm { font-size: 22px; }
.lbl--md { font-size: 34px; }
.lbl--lg { font-size: clamp(44px, 5vw, 78px); }

.window { position: relative; overflow: hidden; border-radius: var(--r-window); background: var(--surface); isolation: isolate; }
.window > img, .window > video { width: 100%; height: 100%; object-fit: cover; }
/* site photography on black: pulled toward the palette so stock images read as
   one set, never as the product */
.duo > img { filter: grayscale(1) contrast(1.08) brightness(.8); mix-blend-mode: luminosity; }
.duo { background: linear-gradient(160deg, #3a1470, #120a1f 70%); }
.duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,6,11,.7)); pointer-events: none; }

.hex { width: 14px; height: 16px; flex: none; color: var(--electric); }

/* ── 6 · buttons ────────────────────────────────────────────────────────── */
.btn {
  --bh: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--bh); padding: 0 28px; border-radius: var(--cut); corner-shape: bevel;
  font: 500 15.5px/1 var(--f-text); letter-spacing: 0;
  background: var(--electric); color: #fff; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 12px 40px -12px rgba(139,69,255,.7);
  transition: background-color .3s var(--e), color .3s var(--e), box-shadow .3s var(--e), transform .2s var(--e);
}
@supports not (corner-shape: bevel) { .btn { border-radius: var(--r-cut); } }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--e-out); }
.btn:hover { background: #7a2df0; box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 16px 50px -10px rgba(139,69,255,.85); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--line { background: rgba(7,6,11,.35); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--line:hover { background: rgba(139,69,255,.14); box-shadow: inset 0 0 0 1.5px var(--electric-2); }
.btn--paper { background: var(--text); color: var(--bg); box-shadow: none; }
.btn--paper:hover { background: #fff; box-shadow: 0 16px 40px -18px rgba(205,182,255,.7); }
.btn--sm { --bh: 44px; padding: 0 18px; font-size: 14.5px; gap: 10px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .35s var(--e-out), color .2s;
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .35s var(--e-out); }
.arrow-link:hover { color: var(--lav); background-size: 0 1px; background-position: 100% 100%; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ── 7 · form controls ─────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; }
.field > span { font-size: var(--t-sm); font-weight: 500; color: var(--text-2); }
.field > span em { font-style: normal; color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-cut);
  background: var(--surface); color: var(--text); border: 1px solid var(--line-2); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.select option { background: var(--surface); }
.textarea { height: auto; min-height: 104px; padding: 14px 16px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--electric); box-shadow: 0 0 0 3px rgba(139,69,255,.22); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: var(--t-sm); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); line-height: 1.45; cursor: pointer; color: var(--text-2); }
.check input { width: 20px; height: 20px; accent-color: var(--electric); flex: none; margin: 0; }

/* variant chips — each size shows its own price */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: grid; gap: 3px; min-width: 110px; padding: 12px 14px 11px; border-radius: var(--r-cut);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); text-align: left;
  transition: box-shadow .2s, background-color .2s, color .2s;
}
.chip b { font: 500 19px/1 var(--f-display); }
.chip span { font: 500 12.5px/1.2 var(--f-mono); color: var(--muted); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--electric-2); }
.chip[aria-checked="true"], .chip.is-on { background: rgba(139,69,255,.16); color: #fff; box-shadow: inset 0 0 0 2px var(--electric); }
.chip[aria-checked="true"] span, .chip.is-on span { color: var(--lav); }
.chip--filter { min-width: 0; padding: 9px 14px; display: inline-flex; gap: 8px; align-items: baseline; }
.chip--filter b { font-size: 18px; }

.qty { display: inline-flex; align-items: center; height: 56px; border-radius: var(--r-cut); box-shadow: inset 0 0 0 1px var(--line-2); background: var(--surface); }
.qty button { width: 44px; height: 100%; font-size: 20px; color: var(--text-2); }
.qty button:hover { color: var(--lav); }
.qty output, .qty input { width: 36px; text-align: center; font: 600 16px var(--f-mono); border: 0; background: none; }

.stock { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--f-text); letter-spacing: 0; color: var(--ok); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.stock.is-out { color: var(--muted); }
.stock.is-out::before { box-shadow: none; }

.price { font: 600 30px/1 var(--f-display); font-feature-settings: normal; letter-spacing: -.005em; font-variant-numeric: tabular-nums; }
.price small { font: 500 12.5px/1 var(--f-mono); color: var(--muted); letter-spacing: .02em; margin-left: 6px; }
.price s { font: 500 15px/1 var(--f-mono); color: var(--muted); margin-left: 8px; }
.from { font: 400 13px var(--f-text); color: var(--muted); letter-spacing: 0; margin-right: 5px; }

/* ── 8 · header ─────────────────────────────────────────────────────────
   Fixed and transparent over the hero; compact and dark once the page moves. */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--hd-h); color: var(--text);
  transition: background-color .4s var(--e), height .4s var(--e), box-shadow .4s var(--e);
  animation: hd-in .6s var(--e-out) both;
}
/* the header is written by app.js after first paint: it arrives, it does not pop */
@keyframes hd-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hd { animation: none; } }
.hd::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(7,6,11,.72), rgba(7,6,11,0)); transition: opacity .4s var(--e); }
.hd.is-scrolled { --hd-h: calc(64px + var(--bar)); background: rgba(7,6,11,.8); box-shadow: 0 1px 0 var(--line); }
.hd.is-scrolled::before { opacity: 0; }
@media (min-width: 900px) { @supports (backdrop-filter: blur(1px)) { .hd.is-scrolled { background: rgba(7,6,11,.62); backdrop-filter: saturate(1.3) blur(16px); } } }
@media (max-width: 899px) { .hd.is-scrolled { background: rgba(7,6,11,.92); } }
@media (max-width: 899px) { .hd.is-scrolled { --hd-h: calc(58px + var(--bar)); } }
.hd { display: flex; flex-direction: column; }
.hd__bar { flex: none; height: var(--bar); margin: 0; display: grid; place-items: center; padding-inline: var(--gut); background: var(--violet); color: #fff; font: 500 13px/1 var(--f-text); letter-spacing: .01em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) { .hd__bar { font-size: 12px; } }
.hd__in { flex: 1; min-height: 0; display: flex; align-items: center; gap: var(--s5); }
.hd__logo { display: flex; align-items: center; gap: 16px; flex: none; }
.hd__logo img { height: 40px; width: auto; transition: height .4s var(--e); }
.hd.is-scrolled .hd__logo img { height: 34px; }
.hd__logo span { padding-left: 16px; border-left: 1px solid var(--line-2); font: 500 13px/1 var(--f-text); letter-spacing: .02em; }
.hd__rim { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; overflow: hidden; }
.hd__rim i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--violet), var(--electric-2)); transform-origin: left; transform: scaleX(0); }

.nav { display: none; align-items: center; gap: 2px; margin-inline: auto; }
.nav__a {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px;
  font: 500 15px/1 var(--f-text); color: var(--text-2); transition: color .25s; white-space: nowrap;
}
@media (max-width: 1379px) { .nav__a { padding: 0 10px; font-size: 14.5px; } .nav__a::after { left: 10px; right: 10px; } }
.nav__a:hover, .nav__a[aria-current="page"], .nav__a[aria-expanded="true"] { color: var(--text); }
.nav__a svg { width: 12px; height: 12px; transition: transform .3s var(--e-out); }
.nav__a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--electric);
                 transform: scaleX(0); transform-origin: right; transition: transform .35s var(--e-out); box-shadow: 0 0 12px var(--electric); }
.nav__a:hover::after, .nav__a[aria-current="page"]::after, .nav__a[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__a[aria-expanded="true"] svg { transform: rotate(180deg); }
.tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav + .tools { margin-left: 0; }
.tool {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-cut); color: var(--text);
  transition: background-color .2s;
}
.tool svg { width: 21px; height: 21px; }
.tool:hover { background: rgba(214,200,255,.08); }
.tool__n { position: absolute; right: 2px; top: 2px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
           background: var(--electric); color: #fff; font: 700 11px/1 var(--f-text); box-shadow: 0 0 12px rgba(139,69,255,.8); }
.tool__n.pop { animation: pop .5s var(--e-out); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.4); } 100% { transform: scale(1); } }
.hd__cta { margin-left: 10px; }
.tool--menu { display: inline-grid; }
@media (min-width: 1100px) { .nav { display: flex; } .tool--menu { display: none; } }
@media (max-width: 1099px) { .hd__cta { display: none; } }
@media (max-width: 1379px) and (min-width: 1100px) { .hd__logo span { display: none; } }
@media (max-width: 899px) { .hd__logo img { height: 32px; } .hd__logo span { display: none; } .tool--acct { display: none; } }

/* mega panel — the catalogue, opened from the header */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: rgba(9,7,14,.97);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .5s var(--e-io), visibility 0s linear .5s;
}
@supports (backdrop-filter: blur(1px)) { .mega { background: rgba(9,7,14,.9); backdrop-filter: blur(20px); } }
.mega.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--e-io), visibility 0s; }
.mega__in { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s8); padding-block: var(--s7) var(--s8); }
.mega__cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.mega__cat { display: grid; gap: 10px; }
.mega__cat .window { aspect-ratio: 4 / 3; }
.mega__cat .window img { transition: transform .8s var(--e-out), filter .5s; }
.mega__cat:hover .window img { transform: scale(1.06); filter: grayscale(0) brightness(.95); }
.mega__cat b { font: 500 18px/1.05 var(--f-display); }
.mega__cat span { font: 400 12.5px var(--f-text); color: var(--muted); }
.mega__list { columns: 2; column-gap: var(--s6); }
.mega__list a { display: block; padding: 6px 0; font: 500 18px/1.2 var(--f-display); break-inside: avoid; color: var(--text-2); }
.mega__list a:hover { color: var(--lav); }
.mega [data-stag] { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--e-out), transform .5s var(--e-out); }
.mega.is-open [data-stag] { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 30ms + 120ms); }
@media (max-width: 1099px) { .mega { display: none !important; } }

/* mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 90; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--e-io), visibility 0s linear .6s;
  background-image: radial-gradient(80% 50% at 100% 0%, rgba(98,3,160,.35), transparent 70%);
}
.sheet.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--e-io), visibility 0s; }
.sheet__top { position: sticky; top: 0; z-index: 2; height: calc(var(--hd-h) - var(--bar)); display: flex; align-items: center; justify-content: space-between; background: rgba(7,6,11,.9); box-shadow: inset 0 -1px 0 var(--line); }
.sheet__nav { display: grid; gap: 0; padding-block: var(--s6) var(--s5); }
.sheet__nav a { display: flex; align-items: baseline; gap: 14px; font: 500 clamp(32px, 8.6vw, 46px)/1.05 var(--f-display); padding-block: 6px; letter-spacing: -.01em; }
.sheet__nav a small { font: 500 11px var(--f-mono); color: var(--muted); letter-spacing: .02em; }
.sheet__nav a:hover { color: var(--lav); }
.sheet__cats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); padding-block: var(--s5); border-top: 1px solid var(--line); }
.sheet__cats a { display: grid; gap: 8px; }
.sheet__cats .window { aspect-ratio: 16 / 10; }
.sheet__cats b { font: 500 17px/1.05 var(--f-display); }
.sheet__foot { padding-block: var(--s5) var(--s7); border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: var(--t-sm); color: var(--text-2); }
.sheet [data-stag] { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--e-out), transform .6s var(--e-out); }
.sheet.is-open [data-stag] { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 45ms + 200ms); }

/* search overlay + cart drawer share one dialog chassis */
.dlg { position: fixed; inset: 0; z-index: 95; visibility: hidden; }
.dlg.is-open { visibility: visible; }
.dlg__scrim { position: absolute; inset: 0; background: rgba(3,2,6,.7); opacity: 0; transition: opacity .35s var(--e); }
.dlg.is-open .dlg__scrim { opacity: 1; }
.dlg__panel { position: absolute; background: var(--bg-2); overflow-y: auto; overscroll-behavior: contain; transition: transform .5s var(--e-io); }
.dlg--search .dlg__panel { left: 0; right: 0; top: 0; max-height: 86vh; transform: translateY(-100%); box-shadow: inset 0 -1px 0 var(--line-2), 0 30px 80px -20px rgba(0,0,0,.8); }
.dlg--cart .dlg__panel { top: 0; right: 0; bottom: 0; width: min(460px, 100vw); transform: translateX(100%); display: flex; flex-direction: column; box-shadow: inset 1px 0 0 var(--line-2); }
.dlg.is-open .dlg__panel { transform: none; }
.search__bar { display: flex; align-items: center; gap: var(--s4); height: 96px; border-bottom: 1px solid var(--line); }
.search__bar input { flex: 1; min-width: 0; height: 60px; border: 0; background: none; outline: none; color: var(--text);
  font: 500 clamp(26px, 3.2vw, 40px)/1.1 var(--f-display); letter-spacing: -.01em; }
.search__bar input::placeholder { color: var(--muted); }
.search__body { padding-block: var(--s5) var(--s7); display: grid; gap: var(--s5); }
.srow { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s4); align-items: center; padding: 10px 12px; border-radius: var(--r-cut); }
.srow[aria-selected="true"], .srow:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.srow__c { font: 400 13px var(--f-text); color: var(--muted); }
.srow__p { font: 600 22px/1 var(--f-display); font-feature-settings: normal; font-variant-numeric: tabular-nums; }

.cartd__hd { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s5); height: 76px; box-shadow: inset 0 -1px 0 var(--line); }
.cartd__body { flex: 1; overflow-y: auto; padding: var(--s4) var(--s5); display: grid; align-content: start; gap: var(--s3); }
.cartd__ft { padding: var(--s5); box-shadow: inset 0 1px 0 var(--line); display: grid; gap: var(--s4); background: var(--surface); }

/* ── product plate ─────────────────────────────────────────────────────────
   The packaging photograph is shot on a light studio backdrop; its margin is
   feathered into #efefef (tools/make_packaging.py), so it sits on a plate of
   exactly that colour at any size, never as a pasted rectangle. The vignette
   is drawn over plate and photo alike, so there is no seam. */
.plate { position: relative; overflow: hidden; isolation: isolate; background: #efefef; }
.plate > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.plate::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(125% 95% at 50% 42%, transparent 58%, rgba(24,12,40,.14) 100%); }

/* ── 9 · product card ───────────────────────────────────────────────────
   The product on its plate (the current packaging until a photograph of the
   product itself exists), then only what a choice needs. */
.pcard { position: relative; display: grid; grid-template-rows: auto auto auto auto 1fr; align-content: start; gap: 6px; }
.pcard__fig {
  position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; margin-bottom: 12px; overflow: hidden;
  border-radius: var(--r-cut); transition: box-shadow .4s var(--e);
}
.pcard__fig > .pcard__img { padding: 5% 7%; transition: transform .8s var(--e-out); }
.pcard__flag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.pcard__cat { font: 500 13px/1.3 var(--f-text); letter-spacing: 0; color: var(--lav); }
.pcard__name { font: 500 clamp(20px, 1.6vw, 24px)/1.08 var(--f-display); text-wrap: balance; letter-spacing: -.005em; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__sizes { font: 500 12.5px/1.4 var(--f-mono); color: var(--text-2); }
.pcard__buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; align-self: end; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line); }
.pcard__buy .price { white-space: nowrap; font-size: 22px; }
.pcard__buy .btn { position: relative; z-index: 2; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 2px;
       font: 600 11px/1 var(--f-text); letter-spacing: .06em; text-transform: uppercase;
       background: var(--text); color: var(--bg); }
.tag--v { background: var(--electric); color: #fff; }
.tag--line { background: transparent; color: var(--lav); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) {
  .pcard:hover .pcard__fig { box-shadow: 0 0 0 1px var(--electric-2), 0 26px 60px -34px rgba(139,69,255,.95); }
  .pcard:hover .pcard__img { transform: scale(1.045); }
}
@media (max-width: 560px) {
  .pcard__fig { margin-bottom: 8px; }
  .pcard__name { font-size: 18px; }
  .pcard__sizes { font-size: 11px; }
  .pcard__buy { flex-direction: column; align-items: stretch; gap: 8px; }
  .pcard__buy .price { font-size: 19px; }
  .pcard__buy .btn { width: 100%; padding-inline: 10px; }
}

/* ── 10 · pen drawing: a technical drawing, never a photo ──────────────── */
.pen { width: 100%; height: auto; overflow: visible; }
.pen text { font-family: var(--f-label); text-transform: uppercase; font-feature-settings: normal; }

/* ── 11 · footer ────────────────────────────────────────────────────────── */
.ft { background: var(--bg); color: var(--text-2); overflow: hidden; position: relative; box-shadow: inset 0 1px 0 var(--line); }
.ft__grid { display: grid; gap: var(--s7); padding-block: var(--s9) var(--s7); }
@media (min-width: 900px) { .ft__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.ft h4 { font: 500 13px/1.2 var(--f-text); color: var(--lav); letter-spacing: 0; margin-bottom: var(--s5); }
.ft li + li { margin-top: 9px; }
.ft a:hover { color: #fff; }
.ft__spine {
  font: 800 clamp(64px, 16.4vw, 280px)/.78 var(--f-label); text-transform: uppercase; letter-spacing: -.005em;
  color: transparent; -webkit-text-stroke: 1px rgba(161,106,255,.3); white-space: nowrap;
  margin-bottom: -.1em; user-select: none; font-feature-settings: normal;
}
.ft__base { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); justify-content: space-between; padding-block: var(--s5); border-top: 1px solid var(--line); font: 400 12.5px/1.5 var(--f-text); color: var(--muted); }

/* ── 12 · toasts + page transition ────────────────────────────────────────────── */
.toasts { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: grid; gap: 10px; }
.toast { display: flex; gap: 14px; align-items: center; min-width: 290px; max-width: 380px; padding: 14px 16px;
         background: var(--surface-2); color: var(--text); border-radius: var(--r-cut); box-shadow: inset 0 0 0 1px var(--line-2), inset 3px 0 0 var(--electric), 0 20px 50px -16px rgba(0,0,0,.8);
         animation: toastIn .5s var(--e-out); font-size: var(--t-sm); }
.toast b { font: 500 17px/1.1 var(--f-display); display: block; margin-bottom: 3px; }
.toast a { text-decoration: underline; text-underline-offset: 3px; color: var(--lav); }
.toast.out { animation: toastOut .3s var(--e) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
@media (max-width: 600px) { .toasts { left: 12px; right: 12px; bottom: 12px; } .toast { min-width: 0; max-width: none; } }

/* page transition: native cross-document view transition. Navigation is
   never delayed; where it is not supported, pages simply load. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .14s var(--e) both; }
::view-transition-new(root) { animation: vt-in .3s var(--e-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ── 13 · page furniture ────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 400 13px/1.4 var(--f-text); letter-spacing: 0; color: var(--muted); }
.crumbs a:hover { color: var(--lav); }
.crumbs span[aria-hidden] { color: var(--faint); }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-cut); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--t-sm); line-height: 1.5; color: var(--text-2); }
.note b { font-weight: 600; color: var(--text); }
.note--proto { box-shadow: inset 3px 0 0 var(--warn), inset 0 0 0 1px var(--line); }

/* accordion */
.acc { border-top: 1px solid var(--line); }
.acc__q { width: 100%; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; padding: 22px 0; text-align: left;
          font: 500 17px/1.35 var(--f-text); }
.acc__q i { position: relative; width: 16px; height: 16px; flex: none; }
.acc__q i::before, .acc__q i::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: var(--electric-2); transition: transform .35s var(--e-out); }
.acc__q i::after { transform: rotate(90deg); }
.acc__q[aria-expanded="true"] i::after { transform: rotate(0); }
.acc__q:hover { color: var(--lav); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--e-io); }
.acc__a > div { overflow: hidden; }
.acc__a p { padding-bottom: 22px; max-width: 64ch; color: var(--text-2); }
.acc__q[aria-expanded="true"] + .acc__a { grid-template-rows: 1fr; }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc a { text-decoration: underline; text-underline-offset: 3px; color: var(--lav); }

/* the waybill — a courier label carrying the real delivery terms */
.waybill {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: rgba(17,14,25,.82); color: var(--text);
  border-radius: var(--r-cut); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0,0,0,.8);
  font-family: var(--f-mono);
}
@media (min-width: 900px) { @supports (backdrop-filter: blur(1px)) { .waybill { backdrop-filter: blur(12px); } } }
.waybill > div { padding: 16px 18px; border-right: 1px dashed var(--line-2); display: grid; gap: 6px; align-content: start; }
.waybill > div:last-child { border-right: 0; }
.waybill small { font: 500 12px var(--f-text); letter-spacing: 0; color: var(--muted); }
.waybill b { font: 500 24px/1.05 var(--f-display); }
.waybill span { font-size: 12.5px; color: var(--text-2); }
.waybill__bar { grid-column: 1 / -1; height: 32px; border-right: 0 !important; padding: 0 18px !important; display: flex !important; align-items: center; justify-content: space-between; box-shadow: inset 0 1px 0 var(--line-2); font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.waybill__code { height: 16px; width: 44%; background: repeating-linear-gradient(90deg, var(--lav) 0 2px, transparent 2px 4px, var(--lav) 4px 5px, transparent 5px 8px, var(--lav) 8px 11px, transparent 11px 12px); opacity: .55; }
@media (max-width: 600px) {
  .waybill { grid-template-columns: 1fr; }
  .waybill > div { border-right: 0; border-bottom: 1px dashed var(--line-2); }
}

/* ── 14 · reduced motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── entry gate: 18+ and the Terms of use ───────────────────────────────── */
html.gate { overflow: hidden; }
/* before the dialog mounts, the page is already covered — no flash of the
   site. If the script never runs, the cover lifts itself after 8 s. */
html.gate:not(.gate-ready) body::before { content: ""; position: fixed; inset: 0; z-index: 400; background: rgba(7,6,11,.9);
  animation: gate-failsafe 0s linear 8s forwards; }
@keyframes gate-failsafe { to { visibility: hidden; } }
.agegate { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(60% 50% at 50% 45%, rgba(98,3,160,.28), transparent 70%), rgba(7,6,11,.9);
  transition: opacity .4s var(--e); }
@media (min-width: 900px) { @supports (backdrop-filter: blur(1px)) { .agegate { background: radial-gradient(60% 50% at 50% 45%, rgba(98,3,160,.28), transparent 70%), rgba(7,6,11,.74); backdrop-filter: blur(10px); } } }
.agegate.is-out { opacity: 0; pointer-events: none; }
.agegate__panel { position: relative; width: min(100%, 460px); max-height: calc(100svh - 32px); overflow: auto;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 3.4vw, 36px) clamp(22px, 3vw, 30px); text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-radius: var(--cut); corner-shape: bevel;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px -30px rgba(0,0,0,.9), 0 0 120px -40px rgba(139,69,255,.7);
  animation: gate-in .6s var(--e-out) both; }
.agegate__panel::before { content: ""; position: absolute; left: 50%; top: 0; width: 72px; height: 1px; margin-left: -36px;
  background: var(--electric-2); box-shadow: 0 0 10px var(--electric); }
@keyframes gate-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .agegate__panel { animation: none; } .agegate { transition: none; } }
.agegate__ask, .agegate__no { display: grid; justify-items: center; gap: 16px; }
.agegate__ask[hidden], .agegate__no[hidden] { display: none; }
.agegate__mark { width: 56px; height: 63px; color: var(--electric-2); margin-bottom: 4px; }
.agegate__mark text { font-family: var(--f-display); }
.agegate h2 { font-size: clamp(30px, 4.4vw, 40px); }
.agegate h2:focus { outline: none; }
.agegate__txt { max-width: 38ch; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.agegate__txt b { color: var(--text); font-weight: 600; }
.agegate__txt a { color: var(--lav); text-decoration: underline; text-underline-offset: 3px; }
.agegate__act { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.agegate__act .btn { width: 100%; }
.agegate__small { max-width: 40ch; font: 400 12.5px/1.55 var(--f-text); color: var(--muted); }

/* ── cookies: a quiet card, not a wall — the page stays usable behind it.
   Above the header and the sticky buy bars (70), under the menu, search and
   cart (90/95) and the toasts (120). ─────────────────────────────────────── */
.cookies { position: fixed; z-index: 80; right: 20px; bottom: 20px; width: min(420px, calc(100% - 40px)); max-height: calc(100svh - 40px); overflow: auto;
  display: grid; gap: 14px; padding: 22px 22px 18px; outline: none;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-radius: var(--cut); corner-shape: bevel;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -30px rgba(0,0,0,.9);
  animation: ck-in .5s var(--e-out) both; transition: opacity .3s var(--e), transform .3s var(--e); }
.cookies.is-out { opacity: 0; transform: translateY(10px); pointer-events: none; }
@keyframes ck-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .cookies { animation: none; transition: none; } }
@media (max-width: 560px) { .cookies { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: auto; max-height: calc(100svh - 32px); padding: 20px 18px 16px; } }
.cookies__txt { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.cookies__act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookies__act .btn { padding: 0 12px; }
.cookies__act [data-ck="save"] { grid-column: 1 / -1; order: -1; }
@media (max-width: 400px) { .cookies__act { grid-template-columns: 1fr; } }
.cookies [hidden] { display: none; }
.cookies__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.cookies__links a, .cookies__more, .ft__ck { color: var(--lav); text-decoration: underline; text-underline-offset: 3px; }
.cookies__more, .ft__ck { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.ft__ck { color: inherit; }
.cookies__set { display: grid; }
.cookies__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cookies__row b { display: block; font: 500 15px/1.3 var(--f-text); color: var(--text); }
.cookies__row small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cookies__note { padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
/* the switch: a native checkbox, drawn */
.cookies__row input { flex: none; appearance: none; position: relative; width: 40px; height: 22px; margin: 0; border-radius: 11px; background: var(--line-2); cursor: pointer; transition: background .2s var(--e); }
.cookies__row input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .2s var(--e); }
.cookies__row input:checked { background: var(--electric); }
.cookies__row input:checked::before { transform: translateX(18px); }
.cookies__row input:disabled { opacity: .5; cursor: default; }
.cookies__row input:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }
/* the footer's giant URL is decoration: it overlapped the footer's last line
   at 1440 and swallowed the clicks meant for „Настройки за бисквитки" */
.ft__spine { pointer-events: none; }

/* ── language switch: three codes, the current one outlined. Header on
   desktop; at the top of the menu, beside its close button, on phones and
   tablets. ────────────────────────────────────────────────────────────── */
.langs { display: flex; gap: 2px; }
.langs a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 4px;
  font: 500 12.5px/1 var(--f-text); letter-spacing: .04em; color: var(--muted); transition: color .2s var(--e), box-shadow .2s var(--e); }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.langs--hd { display: none; margin-right: 8px; }
@media (min-width: 1100px) { .langs--hd { display: flex; } }
.langs--sheet { margin: 0 6px 0 auto; }
.langs--sheet a { min-width: 44px; height: 40px; font-size: 13.5px; }

