/* ==========================================================================
   Theme C — «Канон»: the premium caviar-shop standard, played straight.
   White, ink black, quiet neutral tiles, a book serif with Cyrillic
   (Forum, approved 17.11.2026; was Brygada 1918) over Onest. Centered wordmark, small tracked capitals,
   square corners, black actions. The bar: petrossian / caviarhouse / fjord.
   ========================================================================== */

:root {
	--paper: #ffffff;
	--paper-2: #f5f5f3;
	--ink: #141414;
	--ink-2: #5b5b58;
	--ink-3: #7a7a76;
	--line: rgba(20, 20, 20, .12);
	--line-strong: rgba(20, 20, 20, .3);
	--action: #141414;
	--action-deep: #000;
	--action-ink: #fff;
	--ok: #2f6b4f;
	--good: #2f6b4f;
	--link: #141414;
	--tile: #f3f3f1;
	--tile-blend: multiply;
	--selection: #141414;
	--selection-ink: #fff;
	--focus: #141414;
	--rail-mark: #141414;

	--font-ui: "Onest", system-ui, sans-serif;
	--font-display: "Forum", Georgia, serif;
	--display-weight: 400;
	--display-tracking: 0;

	--radius-btn: 0;
	--radius-chip: 0;
	--radius-media: 0;
	--radius-lg: 0;

	--header-bg: #fff;
	--footer-bg: #141414;
	--footer-ink: #f1f1ee;
	--card-bg: #f3f3f1;
	--level-ink: #141414;
	--radius-icon: 0;
	--nav-case: uppercase;
	--nav-tracking: .14em;
	--nav-weight: 500;
	--btn-tracking: .12em;
}

.x-nav__link { font-size: 12px; }
.x-btn { text-transform: uppercase; font-size: 13px; letter-spacing: .12em; min-height: 50px; padding: 0 28px; }
.x-h2 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.4rem); }
.x-section__head .x-link, .x-section__more .x-link { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
/* phone: the «all of it» link leaves the heading and closes the list instead, centred under the last cards */
.x-section__more { display: none; }
@media (max-width: 640px) {
	.x-section:has(> .x-section__more) > .x-section__head .x-link { display: none; }
	.x-section__more { display: flex; justify-content: center; margin: var(--space-6) 0 0; }
	.x-section__more .x-link { position: relative; }
	.x-section__more .x-link::before { content: ""; position: absolute; inset: -14px -20px; } /* 44px+ tap area, underline stays tight */
}
.x-card__title { font-size: 15px; }
.x-card__price { font-weight: 500; }

/* ---------- home: catalog — an index in two columns, like a menu card, drawn with the house icons (tools/kanon_icons.py).
   Between the columns a round stage with the hero's ring links to the section under the cursor: its icon rises in, its
   item count rolls over, the ring turns one step. The row on stage keeps its rule drawn ---------- */
:root { --icon-ink: #2a2a28; }
.c-ix { display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 17vw, 228px) minmax(0, 1fr); gap: clamp(28px, 3vw, 40px); align-items: start; }
.c-ix__list { border-top: 1px solid var(--line-strong); }
.c-ix__list li { border-bottom: 1px solid var(--line); }
.c-ix__row { display: flex; align-items: baseline; gap: 14px; padding: 17px 0 16px; color: var(--ink); text-decoration: none; }
.c-ix__num { flex: none; width: 20px; font-size: 11px; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--ink-3); transition: color var(--dur) var(--ease); }
.c-ix__name { min-width: 0; white-space: nowrap; font-family: var(--font-display); font-size: 1.16rem; line-height: 1.2; transition: transform var(--dur-slow) var(--ease); }
.c-ix__name sup { margin-left: 5px; font-family: var(--font-ui); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-3); vertical-align: .7em; line-height: 0; }
.c-ix__lead { position: relative; flex: 1 1 16px; min-width: 16px; height: 1px; align-self: center; margin-top: 6px; background: var(--line); }
.c-ix__lead::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease); }
.c-ix__price { flex: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; } /* 22.11: 13 px read smaller than the names next to it */
.c-ix__row.is-on .c-ix__num, .c-ix__row:focus-visible .c-ix__num { color: var(--ink); }
.c-ix__row.is-on .c-ix__lead::after { transform: scaleX(1); }
.c-ix__row.is-on .c-ix__name { transform: translateX(4px); }
@media (max-width: 1279px) { .c-ix__name { white-space: normal; } }

/* the stage: --dir is +1 when the cursor moves down the index, −1 when it moves up; everything moves along it */
.c-ix__stage { --dir: 1; --turn: 0deg; container-type: inline-size; position: relative; display: block; align-self: center; aspect-ratio: 1; color: var(--ink); text-decoration: none; }
.c-ix__stage::before { content: ""; position: absolute; inset: 13%; border: 1px solid var(--line); border-radius: 50%; transition: border-color var(--dur) var(--ease), inset var(--dur-slow) var(--ease); }
/* the ring only drifts a little on hover (12° per section, see index.tpl) and takes its time: a slow ease-in-out, no snap */
.c-ix__turn { position: absolute; inset: 0; transform: rotate(var(--turn)); transition: transform 1.8s cubic-bezier(.45,.05,.25,1); }
.c-ix__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: c-ring-turn 140s linear infinite; }
.c-ix__ring text { font-family: var(--font-display); font-size: 10.5px; letter-spacing: 2px; fill: var(--ink-3); }
/* icons: the incoming one rises from the side the cursor came from, the outgoing one leaves the other way, both soften */
.c-ix__pic { position: absolute; inset: 0 0 11%; display: grid; place-items: center; pointer-events: none;
	opacity: 0; filter: blur(3px); transform: translateY(calc(var(--dir) * 16px)) scale(.86);
	transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease); }
.c-ix__pic.is-out { transform: translateY(calc(var(--dir) * -16px)) scale(.86); }
.c-ix__pic.is-on { opacity: 1; filter: none; transform: none; }
/* typographic stage: a two-letter monogram of the section in the display face, no pictures */
.c-ix__big { font-family: var(--font-display); font-weight: 400; font-size: 27cqi; line-height: 1; letter-spacing: .04em; margin-right: -.04em; transition: transform var(--dur-slow) var(--ease); }
/* four icon sets share the stage (PRESENTATION ONLY switch, see index.tpl): a engraving (raster mask), b monogram,
   c abstraction and d pictograms (inline SVG sprite from tools/ix_icons.py, hairline stroke at any size) */
.c-ix__v { display: none; transition: transform var(--dur-slow) var(--ease); }
.c-ix[data-v="a"] .c-ix__v--a, .c-ix[data-v="b"] .c-ix__v--b, .c-ix[data-v="c"] .c-ix__v--c, .c-ix[data-v="d"] .c-ix__v--d { display: block; }
.c-ix__v--a { aspect-ratio: 1; background: currentColor; -webkit-mask: var(--icon) no-repeat center / contain; mask: var(--icon) no-repeat center / contain; }
svg.c-ix__v { overflow: visible; stroke-width: 1.25px; }
.c-ix__pic .c-ix__v--a { width: 54%; }
.c-ix__pic svg.c-ix__v { width: 50%; height: auto; aspect-ratio: 1; }
.c-ix:not([data-v="b"]) .c-ix__count { bottom: 20%; }
.c-ix[data-v="a"] .c-ix__pic { inset: 0 0 13%; }
.c-ix[data-v="a"] .c-ix__pic .c-ix__v--a { width: 58%; } /* tools/balance_icons.py sets weight and optical centre inside the square */
/* a / c / d change like a print being pulled: a soft edge sweeps over the incoming picture from the side the cursor
   came from (top when moving down the index, bottom when moving up) while it settles from a hair larger; the outgoing
   one stays in place and only fades. No travel, no blur: the engraving's line work is never smeared.
   Mask = 3.7× box-tall gradient (1 clear, .35 soft edge, 1 ink, .35 edge, 1 clear): 0 100% hidden (edge enters from
   the top), 0 0 hidden (edge enters from the bottom), 0 50% fully shown. Incoming opacity is quick (--dur-fast), so the
   edge, not a fade, does the reveal. */
.c-ix:not([data-v="b"]) .c-ix__pic { filter: none; transform: scale(1.025);
	-webkit-mask: linear-gradient(to bottom, transparent 27.03%, #000 36.49%, #000 63.51%, transparent 72.97%) 0 100% / 100% 370% no-repeat;
	mask: linear-gradient(to bottom, transparent 27.03%, #000 36.49%, #000 63.51%, transparent 72.97%) 0 100% / 100% 370% no-repeat;
	transition: opacity var(--dur) var(--ease), transform var(--dur-slow) var(--ease), -webkit-mask-position var(--dur-slow) var(--ease), mask-position var(--dur-slow) var(--ease); }
.c-ix:not([data-v="b"]) .c-ix__pic.is-from-below { -webkit-mask-position: 0 0; mask-position: 0 0; }
.c-ix:not([data-v="b"]) .c-ix__pic.is-on, .c-ix:not([data-v="b"]) .c-ix__pic.is-out { transform: none; -webkit-mask-position: 0 50%; mask-position: 0 50%; }
.c-ix:not([data-v="b"]) .c-ix__pic.is-on { opacity: 1; transition-duration: var(--dur-fast), var(--dur-slow), var(--dur-slow), var(--dur-slow); }
.c-ix:not([data-v="b"]) .c-ix__pic.is-out { opacity: 0; }
.c-ix[data-v="a"] .c-ix__count { bottom: 19.5%; }
.c-ix__mini { display: none; }
/* switching sets: stage picture and row icons fade out, the set swaps, they fade back */
.c-ix__mini { transition: opacity var(--dur) var(--ease); }
.c-ix.is-swap .c-ix__pic.is-on { opacity: 0; filter: blur(3px); transition-duration: var(--dur); }
.c-ix.is-swap .c-ix__mini { opacity: 0; }
/* the count: secondary — small UI type, pale; a window one line tall, the numbers roll through it along --dir */
.c-ix__count { position: absolute; left: 20%; right: 20%; bottom: 25%; height: 18px; overflow: hidden; font-family: var(--font-ui); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.c-ix__n { position: absolute; inset: 0; transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease); }
.c-ix__n.is-entering { transform: translateY(calc(var(--dir) * 100%)); opacity: 0; transition: none; }
.c-ix__n.is-leaving { transform: translateY(calc(var(--dir) * -100%)); opacity: 0; }
@media (hover: hover) {
	.c-ix__stage:hover::before { border-color: var(--ink); inset: 12%; }
	.c-ix__stage:hover .c-ix__v { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
	.c-ix__ring { animation: none; }
	.c-ix__turn, .c-ix__pic, .c-ix__n { transition: opacity var(--dur) var(--ease) !important; transform: none !important; filter: none !important; }
	.c-ix__pic { -webkit-mask: none !important; mask: none !important; }
}

/* small tracked caption above a section title */
.c-eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-3); }

/* ---------- home: house (workshop) ---------- */
.c-house { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-top: var(--space-9); background: var(--paper-2); }
.c-house__photo { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 420px; }
.c-house__text { padding: var(--space-8) clamp(24px, 5vw, 80px); align-self: center; max-width: 620px; }
.c-house__text > p { margin-top: var(--space-4); color: var(--ink-2); }
.c-house__marks { margin-top: var(--space-6); display: grid; gap: 0; border-top: 1px solid var(--line); }
.c-house__marks li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
/* desktop: the band is full width, but its text column ends on the site edge (--frame) like every other section, and
   the photo takes the rest. The text keeps a reading width (28vw, 380–560 px) instead of a fixed 620 px box floating
   in the middle of a wide grey field; the band's height follows the width so the photo is never a thin letterbox. */
@media (min-width: 1024px) {
	.c-house { grid-template-columns: minmax(0, 1fr) calc(var(--frame) + clamp(40px, 5vw, 96px) + clamp(380px, 28vw, 560px)); }
	/* contain: size drops the photo's own 4:3 height, so the band is as tall as this clamp (or the text, if taller) */
	.c-house { grid-auto-rows: minmax(clamp(420px, 30vw, 720px), auto); }
	.c-house__photo { min-height: 0; contain: size; aspect-ratio: auto; }
	.c-house__text { max-width: none; padding: var(--space-8) var(--frame) var(--space-8) clamp(40px, 5vw, 96px); }
}

/* ---------- home: free delivery — black full-bleed band between the two product grids ----------
   The page's one dark interlude between hero and footer: it carries the main buying condition. Full-bleed blocks
   never touch each other (delivery · addons · cashback · house), so the page keeps a contained/wide rhythm */
.c-free { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); max-width: none; margin-top: var(--space-9); background: #141414; color: #ededea;
	padding: var(--space-8) max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter)); }
.c-free .c-eyebrow { color: rgba(237, 237, 234, .55); }
.c-free__lead { padding-right: clamp(24px, 3vw, 48px); }
.c-free__lead .x-h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); line-height: 1.08; margin-bottom: var(--space-4); }
.c-free__lead .x-link { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.c-free__facts { display: contents; }
.c-free__facts > div { padding: 0 clamp(24px, 3vw, 48px); border-left: 1px solid rgba(255, 255, 255, .18); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.c-free__facts > div:last-child { padding-right: 0; }
.c-free__facts dt { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.15; color: #fff; }
.c-free__facts dd { margin: 0; color: rgba(237, 237, 234, .72); font-size: 15px; line-height: 1.5; }
.c-free__facts a { color: #fff; white-space: nowrap; }

/* ---------- home: cashback — quiet light card inside the content width, levels as a staircase ---------- */
.c-bonus { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-7); align-items: end; background: var(--paper-2);
	width: calc(min(100%, var(--max)) - 2 * var(--gutter)); margin-top: var(--space-8); padding: var(--space-7) clamp(24px, 4vw, 64px); }
.c-bonus .x-h2 { max-width: 17ch; line-height: 1.08; }
.c-bonus__sub { margin-top: var(--space-4); color: var(--ink-2); max-width: 46ch; }
.c-bonus__sub a { color: var(--ink); }
.c-bonus__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.c-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; height: 240px; border-bottom: 1px solid rgba(20, 20, 20, .28); }
.c-steps li { height: var(--h); display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 14px 12px; border-left: 1px solid var(--line); border-top: 1px solid rgba(20, 20, 20, .28);
	background: linear-gradient(rgba(20, 20, 20, .015), rgba(20, 20, 20, .06)); }
.c-steps li:last-child { background: #141414; color: #ededea; border-color: #141414; }
.c-steps b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 1rem + 1vw, 2rem); line-height: 1; }
.c-steps span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.c-bonus + .c-house { margin-top: var(--space-8); }

.x-home .x-faq { margin-top: 0; }
.x-faq .x-h2, .c-cats .x-h2, .c-hits .x-h2, .c-addons .x-h2, .c-bonus .x-h2 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.4rem); }

@media (max-width: 1023px) {
	/* A: one list, the stage gives way to a small icon in each row */
	.c-ix { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.c-ix__stage { display: none; }
	.c-ix__list--2 { border-top: 0; }
	.c-ix__row { align-items: center; padding: 10px 0; }
	.c-ix:not([data-v="b"]) .c-ix__mini { display: block; flex: none; width: 34px; height: 34px; color: var(--icon-ink); }
	.c-ix__mini .c-ix__v { width: 100%; height: 100%; }
	.c-ix__mini svg.c-ix__v { stroke-width: 1px; }
	.c-cats .x-section__head { flex-wrap: wrap; }
	.c-ix__row.is-on .c-ix__lead::after { transform: scaleX(0); }
	.c-ix__row.is-on .c-ix__name { transform: none; }
	/* «Название · 23» on one line instead of a superscript */
	.c-ix__name sup { margin-left: 0; font-size: .82em; letter-spacing: 0; vertical-align: baseline; line-height: inherit; }
	.c-ix__name sup::before { content: "\00a0·\00a0"; }
	.c-house { grid-template-columns: minmax(0, 1fr); }
	.c-house__photo { min-height: 260px; }
	.c-free { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-7); margin-top: var(--space-8); }
	.c-free__facts > div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); padding: var(--space-5) 0; }
	.c-free__lead { padding: 0 0 var(--space-5); }
	.c-bonus { grid-template-columns: minmax(0, 1fr); align-items: start; padding-block: var(--space-7); }
	.c-steps { height: 200px; }
}
@media (max-width: 640px) {
	.c-ix__num, .c-ix__lead { display: none; }
	.c-ix__row { gap: 12px; }
	.c-ix__name { flex: 1; font-size: 1.08rem; }
	.c-steps li { padding: 10px 6px; }
	.c-steps span { font-size: 9.5px; letter-spacing: .06em; }
	.c-house__text { padding: var(--space-6) var(--gutter); }
	.c-bonus { width: 100%; padding-inline: var(--gutter); row-gap: var(--space-5); }
}

/* ---------- header: «☰ Меню» | «Каталог» on the left, wordmark dead centre, phone + bag on the right ----------
   Desktop: the bar is fixed, and body keeps the room of the tall bar, so the shrink never re-lays-out the page under it
   (a sticky bar handing its height back as margin reflowed the whole page on every frame). At the very top the bar is
   100 px with the wordmark and its caption; once the page scrolls it settles to 72 px: the caption fades out and the mark
   glides into the centre of the shorter bar. One slow ease-in-out curve for all of it, so it reads as one movement. */
@media (min-width: 1024px) {
	/* the header, like everything else, stands on --frame (x-base :root) */
	:root { --header-h: 72px; --header-h-top: 100px; }
	.x-header__bar { max-width: none; padding-inline: var(--frame); }
	body { padding-top: var(--header-h-top); }
	.x-header { position: fixed; top: 0; left: 0; right: 0; }
	.x-header__bar { position: relative; display: flex; align-items: center; gap: 24px; height: var(--header-h-top); }
	.x-header.is-compact .x-header__bar { height: var(--header-h); }
	.x-header__tools { display: contents; }
	.x-header .x-burger { display: flex; align-items: center; order: -2; width: auto; height: 44px; padding: 0 0 0 42px; margin-left: -11px; color: inherit; }
	.x-header .x-burger span { right: auto; width: 22px; }
	.x-header .x-burger__label { display: block; font-size: 12px; font-weight: var(--nav-weight); letter-spacing: var(--nav-tracking); text-transform: uppercase; line-height: 1; }
	/* a hairline between «Меню» и «Каталог» */
	.x-header .x-nav { order: -1; justify-content: flex-start; position: relative; padding-left: 25px; }
	.x-header .x-nav::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 18px; margin-top: -9px; background: var(--line-strong); }
	.x-header .x-nav__link { display: none; }
	.x-header .x-nav__link[href="/market/"] { display: inline-block; }
	/* centred on the bar, not on a grid track: the side groups have different widths.
	   --logo-drop = (caption line + gap) / 2: how far the mark sits above the logo's centre */
	.x-header .x-logo { --logo-drop: 13px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); flex-direction: column; gap: 8px; }
	/* optical centre: the airy tail of «икра» pulls the eye left, so the dense body is nudged back over the caption */
	.x-header .x-logo__mark { width: 120px; height: 46px; -webkit-mask-position: center; mask-position: center; transform: translateX(-7px); transform-origin: 50% 50%; }
	.x-header .x-logo__name { border: 0; padding: 0; text-align: center; font-size: 11.5px; line-height: 18px; letter-spacing: .26em; margin-right: -.26em; white-space: nowrap; }
	.x-header .x-logo__name br { display: none; }
	.x-header.is-compact .x-logo { transform: translate(-50%, calc(-50% + var(--logo-drop))); }
	.x-header.is-compact .x-logo__mark { transform: translateX(-6px) scale(.84); }
	.x-header.is-compact .x-logo__name { opacity: 0; transform: translateY(-6px); visibility: hidden; }
	.x-header.is-ready .x-header__bar { transition: height var(--dur-slow) var(--ease); }
	.x-header.is-ready .x-logo, .x-header.is-ready .x-logo__mark { transition: transform var(--dur-slow) var(--ease); }
	/* the caption leaves quickly and comes back late, so it never overlaps the moving mark */
	.x-header.is-ready .x-logo__name { transition: opacity var(--dur) var(--ease) var(--dur-fast), transform var(--dur-slow) var(--ease), visibility 0s linear 0s; }
	.x-header.is-ready.is-compact .x-logo__name { transition: opacity var(--dur-fast) var(--ease), transform var(--dur-slow) var(--ease), visibility 0s linear var(--dur-fast); }
	.x-header .x-phone { display: block; order: 1; margin-left: auto; }
	.x-header .x-cart { order: 2; margin-right: -10px; }
	/* the menu opens as a left drawer over a dimmed page (the drawer is moved to <body> by the header script);
	   it slides in and back out on the header's own curve, and its top row is exactly as tall as the header at that moment */
	.x-menu { inset: 0 auto 0 0; width: min(440px, 100%); box-shadow: 24px 0 60px -30px rgba(0, 0, 0, .35); border-right: 1px solid var(--line);
		opacity: 1; transform: translateX(-100%); transition: transform var(--dur-slow) var(--ease), visibility 0s linear var(--dur-slow); }
	.x-menu.is-open { transform: none; transition: transform var(--dur-slow) var(--ease), visibility 0s; }
	.x-menu > :not(.x-menu__top), .x-menu.is-open > :not(.x-menu__top) { transform: none; }
	.x-menu__top { height: calc(var(--header-h-top) + 1px); transition: height var(--dur-slow) var(--ease); }
	html:has(.x-header.is-compact) .x-menu__top { height: calc(var(--header-h) + 1px); }
	body::after { content: ""; position: fixed; inset: 0; z-index: 190; background: rgba(20, 20, 20, .35); cursor: pointer;
		opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur-slow) var(--ease), visibility 0s linear var(--dur-slow); }
	html.mobile-nav-open body::after { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--dur-slow) var(--ease), visibility 0s; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
	.x-header.is-ready .x-header__bar, .x-header.is-ready .x-logo, .x-header.is-ready .x-logo__mark, .x-header.is-ready .x-logo__name { transition: none; }
}

/* ---------- header cart: the count sits inside the bag ---------- */
:root {
	--icon-bag-num: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 30' fill='none' stroke='black' stroke-width='1.3'%3E%3Cpath d='M3.65 9.65h18.7v18.7H3.65z'/%3E%3Cpath d='M8.6 9.65V7.2a4.4 4.4 0 0 1 8.8 0v2.45'/%3E%3C/svg%3E");
}
.x-cart .basket-icon-link::before { width: 26px; height: 30px; -webkit-mask-image: var(--icon-bag-num); mask-image: var(--icon-bag-num); }
.x-cart .basket-badge, .x-cart .basket-badge:empty {
	display: block; position: absolute; left: 0; right: 0; top: calc(50% + 4px); transform: translateY(-50%);
	min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; color: currentColor;
	font-family: var(--font-ui); font-size: 11.5px; font-weight: 500; line-height: 1; letter-spacing: 0; text-align: center;
}
.x-cart .basket-badge:empty::before { content: "0"; }
@keyframes c-fade-in { from { opacity: 0; } to { opacity: 1; } }
.x-burger::after { content: none; }

/* ---------- home: hero — the expanded header and the hero fill exactly one screen, one black canvas. The text and,
   under it, a line of short facts sit on the left; an open tin of caviar from above sits on the right, slightly dimmed,
   bigger than the hero, so it is cut off by the header above, the screen edge below and the right edge of the screen
   (its right rim is never in view). «SAMARA CAVIAR HOUSE» runs slowly round it. ---------- */
.c-hero {
	--hero-h: calc(100svh - var(--header-h-top, var(--header-h)));
	--tin-left: 58%;
	/* taller than the hero (cut top and bottom) and always wider than what is left of the screen to its right
	   (left 58% + 50vw ends 8vw past the right edge, so the right rim stays out of view) */
	--tin: max(calc(var(--hero-h) * 1.12), 50vw);
	position: relative; display: flex; flex-direction: column; min-height: var(--hero-h);
	background: #141414; color: #ededea; overflow: hidden; isolation: isolate;
}
/* the stage is not positioned: the tin is placed against the whole hero, not just the part above the facts */
.c-hero__stage { flex: 1 0 auto; display: flex; }
/* desktop type scales with the smaller of the width and the height of the screen, so a 1280×720 laptop, a 1440×900 Mac,
   a Full HD and a 2K monitor all get the same proportions of text to tin; capped both ways */
.c-hero__inner { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; width: 100%; max-width: var(--max); margin: 0 auto; padding: var(--space-7) var(--gutter); }
.c-hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.015em; color: #fff; max-width: 14ch; text-wrap: balance; }
.c-hero__lead { margin-top: var(--space-5); max-width: 42ch; color: rgba(237, 237, 234, .78); font-size: 1.12rem; }
@media (min-width: 1024px) {
	.c-hero__inner { max-width: none; padding: clamp(32px, 6svh, 80px) var(--frame); }
	/* the text stops 5vw short of the tin's left edge */
	.c-hero__text { max-width: calc(58vw - var(--frame) - 5vw); }
	.c-hero__title { font-size: clamp(3rem, min(5.2vw, 8.8svh), 7rem); }
	.c-hero__lead { margin-top: clamp(20px, 3.2svh, 40px); font-size: clamp(1.05rem, min(1.2vw, 2.15svh), 1.45rem); line-height: 1.6; }
	.c-hero__actions { margin-top: clamp(28px, 4.6svh, 60px); gap: clamp(12px, 1.3svh, 16px); }
	.c-hero .x-btn { min-height: clamp(50px, 5.8svh, 64px); padding-inline: clamp(28px, 3.2svh, 40px); font-size: clamp(13px, 1.4svh, 15px); }
}
.c-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.c-hero .x-btn--action { --action: #fff; background: #fff; border-color: #fff; color: #141414; }
/* the white button on black inverts the other way: black with a white outline */
@media (hover: hover) { .c-hero .x-btn--action:hover { background: #141414; border-color: #fff; color: #fff; } }
.c-hero .x-btn--light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.c-hero .x-btn--light:hover { background: #fff; color: #141414; }

/* the tin: starts at --tin-left, centred on the hero's height; the hero clips it on three sides */
.c-hero__tin {
	position: absolute; z-index: 0; top: 50%; width: var(--tin); aspect-ratio: 1;
	left: var(--tin-left);
	transform: translateY(-50%); opacity: .86;
}
.c-hero__tin img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9); }
/* the tin turns a few degrees round its own centre as the page scrolls (--tin-rot, set by index.tpl) */
/* 18.11.2026: the scroll turn is off (index.tpl script commented out); kept to bring back:
.c-hero__tin img { rotate: var(--tin-rot, 0deg); will-change: rotate; } */
/* 22.11.2026: the red/black switch and the black layer are gone (index.tpl keeps the black markup commented out) */
.c-hero__ringbox { position: absolute; inset: 0; }
.c-hero__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 50%; animation: c-ring-turn 140s linear infinite; }
.c-hero__ring text { font-family: var(--font-display); font-size: 16px; letter-spacing: 6px; fill: rgba(237, 237, 234, .5); }
.c-hero__ring-ccw { display: none; }
@keyframes c-ring-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .c-hero__ring { animation: none; } }


/* below 1024: the stage becomes a column — the tin hangs centred above the text, cut through its middle by the header,
   so the bottom half reads as an arc; it is nearly as wide as the screen. Width and height
   are set together (and max-width lifted — the base img rule would squash it into an ellipse). The tin box takes
   whatever height the screen has left after the text; the tin sits on the bottom of that box, leaving room for the
   ring, so a tall phone shows more of it and a short one less. The ring runs counter-clockwise here, so the letters
   along the visible bottom arc stand upright. */
@media (max-width: 1023px) {
	/* nearly the full width; the ring (baseline r = .54 of the tin) runs past the screen edges right under the header,
	   so it fades out there instead of being cut */
	.c-hero { --mtin: min(calc(100vw - 16px), 700px); --tin-b: calc(var(--mtin) * .04 + 8px); }
	.c-hero__stage { position: relative; flex-direction: column; }
	.c-hero__tin { position: relative; z-index: 0; top: auto; left: 0; right: auto; width: auto; aspect-ratio: auto; transform: none; opacity: .8; flex: 0 1 auto; height: calc(var(--mtin) * .54 + 8px); min-height: 120px; }
	.c-hero__tin img {
		inset: auto; left: calc(50% - var(--mtin) / 2); bottom: var(--tin-b);
		width: var(--mtin); height: var(--mtin); max-width: none; aspect-ratio: 1;
	}
	/* the ring's box is 1.2× the tin (the letters stand outside the tin and the mask clips to the box); the mask fades
	   the letters out over the first 64 px under the header, where the ring meets the screen edges */
	.c-hero__ringbox {
		inset: auto; left: calc(50% - var(--mtin) * .6); bottom: calc(var(--tin-b) - var(--mtin) * .1);
		width: calc(var(--mtin) * 1.2); height: calc(var(--mtin) * 1.2);
		-webkit-mask-image: linear-gradient(to bottom, transparent 50%, #000 calc(50% + 64px)); mask-image: linear-gradient(to bottom, transparent 50%, #000 calc(50% + 64px));
	}
	.c-hero__ring { inset: auto; left: calc(100% / 12); top: calc(100% / 12); width: var(--mtin); height: var(--mtin); }
	.c-hero__ring text { font-size: 25px; letter-spacing: 0; }
	.c-hero__ring-cw { display: none; }
	.c-hero__ring-ccw { display: inline; }
	.c-hero__inner { flex: 0 0 auto; margin-block: auto; padding-top: var(--space-5); padding-bottom: var(--space-6); }
	.c-hero__text { max-width: none; }
}
/* phones: the tin on top, the title hangs right under the ring (image + headline read as one unit), the buttons sit
   24 px off the bottom edge in the thumb zone; whatever height is left goes between the lead and the buttons.
   No facts line; the two buttons stack full width. */
@media (max-width: 767px) {
	/* exactly one screen: if the text needs more room, the tin box gives it up (down to 120 px) instead of the hero growing */
	.c-hero { height: var(--hero-h); }
	.c-hero__stage { flex: 1 1 auto; min-height: 0; }
	.c-hero__inner { flex: 1 0 auto; flex-direction: column; align-items: stretch; margin: 0; padding-top: clamp(12px, 3.6svh, 40px); padding-bottom: var(--space-5); }
	.c-hero__text { flex: 1 0 auto; display: flex; flex-direction: column; }
	.c-hero__title { font-size: clamp(2.5rem, 5.7svh, 3.3rem); }
	.c-hero__lead { margin-top: clamp(20px, 3.4svh, 32px); }
	.c-hero__actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: auto; padding-top: clamp(32px, 5.4svh, 48px); }
	.c-hero__actions .x-btn { width: 100%; }
}
/* short phones (SE and the like): tighter type; the tin box gives up height first */
@media (max-width: 640px) and (max-height: 720px) {
	.c-hero__inner { padding-top: var(--space-4); padding-bottom: 20px; }
	.c-hero__title { font-size: 2.15rem; }
	.c-hero__lead { font-size: 1rem; }
}
/* very short screens (landscape-ish): let the hero grow rather than clip the buttons */
@media (max-width: 767px) and (max-height: 560px) { .c-hero { height: auto; } }



/* ---------- cashback page: three perks, each with its own small picture of how it works ---------- */
.c-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.c-perk { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6) clamp(20px, 2.4vw, 36px) var(--space-6); }
.c-perk + .c-perk { border-left: 1px solid var(--line); }
.c-perk__label { font-family: var(--font-ui); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.c-perk__text { margin-top: auto; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 34ch; }
/* birthday: a week of cells, the day itself in ink */
.c-perk__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); height: 96px; align-items: end; }
.c-perk__days li { display: grid; place-items: center; height: 48px; background: var(--paper-2); border: 1px solid var(--line); margin-left: -1px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.c-perk__days li.is-day { position: relative; z-index: 1; height: 96px; background: var(--ink); border-color: var(--ink); color: #fff; font-family: var(--font-display); font-size: 1.15rem; place-items: end center; padding-bottom: 12px; }
/* friends: 100 → +50 */
/* two rows shared by both sides: the numbers on one baseline, the captions start on one line however many lines they wrap to */
.c-perk__flow { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: start; row-gap: 8px; height: 96px; }
.c-perk__flow p { display: contents; }
.c-perk__flow p:first-child > * { grid-column: 1; }
.c-perk__flow p:last-child > * { grid-column: 3; }
.c-perk__flow b { grid-row: 1; align-self: end; }
.c-perk__flow span { grid-row: 2; }
.c-perk__flow i { grid-column: 2; grid-row: 1; align-self: center; }
.c-perk__flow b { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 1.6rem + 1.4vw, 3rem); line-height: .9; }
.c-perk__flow span { font-size: 12px; line-height: 1.3; color: var(--ink-3); }
.c-perk__flow i { position: relative; height: 1px; background: var(--ink); margin: 0 16px 0 2px; }
.c-perk__flow i::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }
/* channel: the one card that sends you somewhere, set in ink */
.c-perk--ink { background: var(--ink); color: #ededea; }
.c-perk--ink .c-perk__label, .c-perk--ink .c-perk__text { color: rgba(237, 237, 234, .65); }
.c-perk__links { height: 96px; display: flex; flex-direction: column; justify-content: flex-end; }
.c-perk__links li + li { border-top: 1px solid rgba(255, 255, 255, .18); }
.c-perk__links a { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: #fff; text-decoration: none; }
.c-perk__links a span { width: 22px; height: 1px; background: currentColor; position: relative; transition: width var(--dur) var(--ease); }
.c-perk__links a span::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.c-perk__links a:hover span { width: 34px; }
@media (max-width: 900px) {
	.c-perks { grid-template-columns: minmax(0, 1fr); }
	.c-perk + .c-perk { border-left: 0; border-top: 1px solid var(--line); }
	.c-perk__text { margin-top: 0; }
}

/* ---------- info pages: the closing button sits one step under the last block, not two ---------- */
.x-info .x-block + .x-cta, .x-info .x-block + p.x-cta { margin-top: var(--space-6); }

