/* ==========================================================================
   ikra163 v2 — base layer shared by every redesign theme.
   Structure, spacing and behaviour only. Colours, faces, corners and the
   theme's own sections live in x-theme.css, which defines the tokens below.
   ========================================================================== */

:root {
	--gutter: clamp(16px, 4vw, 40px);
	/* ONE edge for the whole site: header, hero text, every section, footer (18.11.2026). Up to 1440 px it is the old
	   1280 grid (laptops and the Mac unchanged); wider, the side margins grow with the window (120 px + 10% of the extra
	   width: 168 px at 1920) instead of the content sitting in a 1280 box between two empty fields, and past 1760 px of
	   content the margins take the rest. --max is derived from it, so every `max-width: var(--max); padding: 0 gutter`
	   container lands on exactly the same edge as the header. */
	--frame: max(var(--gutter), min((100vw - 1280px) / 2 + var(--gutter), 120px + (100vw - 1440px) * .1), (100vw - 1760px) / 2);
	--max: calc(100vw - 2 * var(--frame) + 2 * var(--gutter));
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 72px;
	--space-9: 112px;
	--header-h: 72px;
	--btn-h: 48px;

	/* ---- motion: one style guide for every animation on the site ----
	   The reference is the header wordmark: one soft ease-in-out curve, nothing snaps, nothing bounces.
	   1. Curve: always var(--ease). No `ease`, no springs, no overshoot. `linear` only for things that
	      measure time or turn forever (the countdown ring, the hero text ring).
	   2. Duration, by how much moves:
	      --dur-fast  colour, fill and border changes on small controls (buttons, checkboxes, steppers);
	      --dur       hover lines, icons, small things that appear (dialogs, chips, the cart counter);
	      --dur-slow  anything that moves a large area: the header, the menu, drawers, panels, photos, banners.
	   3. Every hover line is drawn left to right (never toggled in one frame); colour hovers fade.
	   4. What opens, also closes with the same motion in reverse (no instant hide).
	   5. Script timers that wait for an animation read these tokens (window.kanonMotion), never a hand-typed number.
	   6. prefers-reduced-motion: everything resolves instantly (see the end of this file).
	   7. The page intro (x-theme.css, end) is the one place that runs longer: two --dur-slow, because the whole
	      screen moves. It plays once per visit, never on a page reached from inside the site. */
	--ease: cubic-bezier(.4, 0, .2, 1);
	--dur-fast: .2s;
	--dur: .35s;
	--dur-slow: .5s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	caret-color: var(--action);
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button { font: inherit; color: inherit; }
p, ul, ol, dl, figure, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
::selection { background: var(--selection, var(--action)); color: var(--selection-ink, #fff); }
/* the selection follows the surface: ink on paper, paper on ink. The custom properties are inherited, so a dark block
   (and a light button inside it) only has to name itself here */
.c-hero, .c-free, .c-steps li:last-child, .c-perk--ink, .c-perk__days .is-day, .x-footer, .x-btn--action, .x-level--4, .x-level--5, .x-skip, a.basket_list, .cart-bar__button { --selection: #ededea; --selection-ink: #141414; }
.c-hero .x-btn--action { --selection: #141414; --selection-ink: #fff; }
:focus-visible { outline: 2px solid var(--focus, var(--action)); outline-offset: 3px; }
html { scrollbar-color: color-mix(in srgb, var(--ink) 35%, transparent) transparent; }
/* ---------- page scrollbar: our own, drawn over the page (mouse/trackpad screens only) ----------
   The system bar is hidden, so it takes no width: the page is exactly as wide on Windows (17 px classic bar) as on a
   Mac (overlay bar), and locking the scroll for the menu or a dialog no longer changes the width — that change was
   what made the dimmed page jump left with a white strip by the scrollbar. Phones keep their native overlay bar.
   The thumb (inc.header.tpl script) is a thin grey bar that shows while the page moves or the pointer is at the right
   edge, widens under the pointer and can be dragged; the track takes clicks (page up/down). Mid grey with a light
   hairline reads on paper, on the black blocks and over the caviar alike. */
@media (hover: hover) and (pointer: fine) {
	html.k-sb-on { scrollbar-width: none; }
	html.k-sb-on::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
.k-sb { position: fixed; z-index: 2147483000; top: 0; right: 0; bottom: 0; width: 14px; cursor: default; touch-action: none; }
.k-sb[hidden], html:is(.mobile-nav-open, .header-phone-modal-open) .k-sb { display: none !important; }
.k-sb__thumb {
	position: absolute; top: 0; right: 3px; width: 4px; min-height: 40px;
	background: rgba(120, 120, 117, .78); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
	opacity: 0; transition: opacity var(--dur) var(--ease), width var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
	will-change: transform;
}
.k-sb.is-on .k-sb__thumb { opacity: 1; }
.k-sb:hover .k-sb__thumb, .k-sb.is-drag .k-sb__thumb { opacity: 1; width: 8px; background: rgba(90, 90, 88, .92); }
html.k-sb-drag, html.k-sb-drag * { cursor: default !important; user-select: none !important; }
.clear { clear: both; }
[hidden] { display: none !important; }

.x-skip {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	padding: 10px 16px; background: var(--ink); color: var(--paper); text-decoration: none;
}
.x-skip:focus { top: 12px; }

/* ---------- type ---------- */
.x-h1 {
	font-family: var(--font-display);
	font-weight: var(--display-weight, 500);
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
	line-height: 1.06;
	letter-spacing: var(--display-tracking, -0.02em);
	text-wrap: balance;
	margin-bottom: var(--space-5);
}
.x-h2 {
	font-family: var(--font-display);
	font-weight: var(--display-weight, 500);
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	line-height: 1.1;
	letter-spacing: var(--display-tracking, -0.015em);
	text-wrap: balance;
}
.x-h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; line-height: 1.25; margin-bottom: var(--space-2); }
.x-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.5; max-width: 62ch; color: var(--ink-2); }
.x-note { color: var(--ink-2); font-size: .95rem; max-width: 75ch; margin-top: var(--space-4); }
.x-prose { max-width: 72ch; }
.x-prose p + p, .x-prose ul, .x-prose ol { margin-top: .8em; }
.x-prose ul { list-style: disc; padding-left: 1.2em; }
.x-prose h2, .x-prose h3 { font-family: var(--font-display); margin: 1.6em 0 .5em; line-height: 1.2; }
.x-link { color: var(--link, var(--ink)); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.x-link { transition: text-decoration-color var(--dur) var(--ease); }
.x-link:hover { text-decoration-color: currentColor; }
.x-num, .x-card__price, .x-product__price, .x-rates__price { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- buttons ---------- */
.x-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: var(--btn-h); padding: 0 22px;
	border: 1px solid var(--btn-line, var(--ink)); border-radius: var(--radius-btn, 0);
	background: transparent; color: var(--ink);
	font-family: var(--font-ui); font-size: 1rem; font-weight: var(--btn-weight, 500); letter-spacing: var(--btn-tracking, 0);
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.x-btn:hover { background: var(--ink); color: var(--paper); }
.x-btn:active { transform: translateY(1px); }
.x-btn--action { background: var(--action); border-color: var(--action); color: var(--action-ink, #fff); }
.x-btn--action:hover { background: var(--action-deep); border-color: var(--action-deep); color: var(--action-ink, #fff); }
.x-btn--light { border-color: currentColor; color: inherit; }
.x-btn--light:hover { background: var(--paper); color: var(--ink); }
.x-links { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* ---------- layout ---------- */
.x-main { max-width: var(--max); margin: 0 auto; padding: var(--space-6) var(--gutter) var(--space-9); }
.x-home { max-width: none; padding: 0 0 var(--space-9); }
.x-section { max-width: var(--max); margin: 0 auto; padding: var(--space-8) var(--gutter) 0; }
.x-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.x-block { margin-top: var(--space-8); }
.x-block > .x-h2 { margin-bottom: var(--space-5); }
.x-cta { margin-top: var(--space-8); }
.x-cols { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- header ---------- */
.x-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--header-bg, var(--paper));
	color: var(--header-ink, var(--ink));
	border-bottom: 1px solid var(--header-line, var(--line));
}
.x-header__bar {
	max-width: var(--max); margin: 0 auto; height: var(--header-h);
	padding: 0 var(--gutter);
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-6);
}
.x-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.x-logo__mark {
	position: relative; display: block; width: 92px; height: 35px; flex: none;
	background: var(--logo-ink, currentColor);
	-webkit-mask: url(../images/logo-mark.png) no-repeat 0 50% / contain;
	mask: url(../images/logo-mark.png) no-repeat 0 50% / contain;
}
.x-logo__name {
	font-family: var(--font-ui); font-size: 12px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
	padding-left: 12px; border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}
.x-nav { display: flex; justify-content: center; gap: clamp(14px, 2vw, 30px); }
.x-nav__link {
	position: relative; padding: 6px 0; text-decoration: none; font-size: 15px; font-weight: var(--nav-weight, 450);
	letter-spacing: var(--nav-tracking, 0); text-transform: var(--nav-case, none);
}
.x-nav__link[href="/"] { display: none; }
.x-nav__link::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.x-nav__link:hover::after, .x-nav__link.is-active::after { transform: scaleX(1); }
.x-header__tools { display: flex; align-items: center; gap: var(--space-4); }
.x-phone { background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
/* the phone gets the very same drawn line as «Каталог» next to it */
.x-phone { position: relative; }
.x-phone::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.x-phone:hover::after { transform: scaleX(1); }

/* the same line for links that run inline or over two lines: drawn under the text, line after line */
.x-footer__col a, .x-shop__addr a, .x-articles .articles_title, .x-card__title > span, .x-uline {
	text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
	transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}
.x-footer__col a:hover, .x-shop__addr a:hover, .x-articles .articles_title:hover, .x-card__title:hover > span, .x-uline:hover { text-decoration: none; background-size: 100% 1px; }

/* cart (small.basket output: #basket > a.basket-icon-link > .basket_info_summary + .basket-badge) */
.x-cart #basket { position: relative; }
.x-cart .basket-icon-link {
	position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: inherit;
}
.x-cart .basket-icon-link::before {
	content: ""; width: 24px; height: 24px; background: currentColor;
	-webkit-mask: var(--icon-bag) no-repeat center / contain; mask: var(--icon-bag) no-repeat center / contain;
}
.x-cart .basket-badge {
	position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
	border-radius: 10px; background: var(--action); color: var(--action-ink, #fff);
	font-size: 11px; font-weight: 600; line-height: 19px; text-align: center; font-variant-numeric: tabular-nums;
}
.x-cart .basket-badge:empty { display: none; }
:root {
	--icon-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12H6.2z'/%3E%3Cpath d='M9 8V6.5a3 3 0 0 1 6 0V8'/%3E%3C/svg%3E");
}

.x-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.x-burger span, .x-menu__close span, .x-phones__close span {
	position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
}
.x-burger span:first-child { top: 17px; } .x-burger span:nth-child(2) { top: 26px; }
.x-burger__label { display: none; }


/* menu (overlay on phones, a left drawer on desktop — see x-theme.css).
   Its top row takes exactly the header's place: same height, same hairline, the cross where the burger was,
   and the burger's two lines turn into that cross. The page under it fades, the content rises a step. */
.x-menu {
	position: fixed; inset: 0; z-index: 200; overflow-y: auto; overscroll-behavior: contain;
	background: var(--menu-bg, var(--paper)); color: var(--menu-ink, var(--ink));
	padding: 0 var(--gutter) var(--space-5);
	display: flex; flex-direction: column;
	opacity: 0; visibility: hidden;
	transition: opacity var(--dur-slow) var(--ease), visibility 0s linear var(--dur-slow);
}
.x-menu.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur-slow) var(--ease), visibility 0s; }
.x-menu > :not(.x-menu__top) { transform: translateY(12px); transition: transform var(--dur-slow) var(--ease); }
.x-menu.is-open > :not(.x-menu__top) { transform: none; }
.x-menu__top {
	position: sticky; top: 0; z-index: 1; flex: none;
	display: flex; align-items: center; justify-content: space-between;
	height: calc(var(--header-h) + 1px); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
	background: inherit; border-bottom: 1px solid var(--header-line, var(--line));
}
.x-menu__title { font-size: 12px; font-weight: var(--nav-weight, 500); letter-spacing: var(--nav-tracking, .14em); text-transform: uppercase; line-height: 1; }
.x-menu__close { position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: inherit; }
.x-menu__close span, .x-phones__close span { top: 21px; }
.x-menu__close span:first-child, .x-phones__close span:first-child { transform: rotate(45deg); }
.x-menu__close span:last-child, .x-phones__close span:last-child { transform: rotate(-45deg); }
/* closed: the two lines sit exactly where the burger's lines are (centres 17.75 and 26.75 px) */
.x-menu__close span { transition: transform var(--dur-slow) var(--ease); }
.x-menu:not(.is-open) .x-menu__close span:first-child { transform: translateY(-4px); }
.x-menu:not(.is-open) .x-menu__close span:last-child { transform: translateY(5px); }
.x-menu__nav { display: flex; flex-direction: column; padding-top: var(--space-2); }
.x-menu__nav a {
	padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none;
	font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; font-weight: var(--display-weight, 500);
	transition: color var(--dur) var(--ease);
}
.x-menu__nav a:hover { color: var(--ink-2); }
.x-menu__phones { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.x-menu__phones a { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.x-menu__phones span { font-size: 1.15rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.x-menu__phones small { color: var(--ink-2); font-size: .9rem; }
/* two buttons at the foot of the menu: the catalogue in white over the black cart */
.x-menu__actions { display: grid; gap: 10px; margin-top: auto; padding-top: var(--space-6); }
.x-menu__actions .x-btn { width: 100%; }
/* the floating «в корзине…» bar steps aside while the menu is open */
html.mobile-nav-open .cart-bar .cart-bar__inner { opacity: 0; transform: translateY(22px); pointer-events: none; }

/* phone dialog: fades in with the card rising a step, and leaves the same way */
.x-phones {
	position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: var(--gutter);
	background: color-mix(in srgb, var(--ink) 45%, transparent);
	opacity: 0; transition: opacity var(--dur) var(--ease);
}
.x-phones.is-open { opacity: 1; }
.x-phones__card {
	position: relative; width: min(440px, 100%); padding: var(--space-6);
	background: var(--paper); color: var(--ink); border-radius: var(--radius-lg, 0);
	box-shadow: 0 24px 60px -12px color-mix(in srgb, var(--ink) 40%, transparent);
	transform: translateY(12px); transition: transform var(--dur) var(--ease);
}
.x-phones.is-open .x-phones__card { transform: none; }
.x-phones__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.x-phones__title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: var(--space-4); }
.x-phones__row { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.x-phones__row span { font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.x-phones__row small { color: var(--ink-2); }
.x-phones__row span { transition: color var(--dur) var(--ease); }
.x-phones__row:hover span { color: var(--action); }

/* ---------- catalog ---------- */
.x-catalog__head { margin-bottom: var(--space-5); }
.x-catalog__head .x-h1 { margin-bottom: var(--space-2); }
.x-catalog__descr { color: var(--ink-2); max-width: 70ch; }
.x-catalog__descr:empty { display: none; }
.x-catalog__body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: var(--space-7); align-items: start; }
/* sticky without a scroll of its own: a rail that fits sticks under the header; a taller one rides with the page and
   sticks by its bottom edge (--rail-top is set by the script in inc.footer.tpl). 22.11.2026: the inner scroll is gone. */
.x-catalog__rail { position: sticky; top: var(--rail-top, calc(var(--header-h) + 20px)); align-self: start; }
.x-catalog__railtitle { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--space-3); }
.x-cats { display: flex; flex-direction: column; }
.x-cats__link {
	display: block; padding: 7px 0 7px 14px; margin-left: -14px; text-decoration: none; font-size: 15px; line-height: 1.3;
	color: var(--ink-2); border-left: 2px solid transparent; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.x-cats__link:hover { color: var(--ink); }
.x-cats__link.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--rail-mark, var(--action)); }

.x-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.x-sort { display: flex; align-items: center; gap: var(--space-3); font-size: 14px; }
.x-sort__label { color: var(--ink-2); }
.x-sort__options { display: flex; gap: 6px; }
.x-sort__options a {
	display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; min-height: 36px;
	border: 1px solid var(--line); border-radius: var(--radius-chip, 0); text-decoration: none; color: var(--ink-2);
}
.x-sort__options a.active, .x-sort__options a:hover { border-color: var(--ink); color: var(--ink); }
.x-sort__options .sort-arrow svg { width: 10px; height: 10px; }
.x-search { position: relative; flex: 1 1 280px; max-width: 380px; display: flex; align-items: center; }
.x-search__icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--ink-2); pointer-events: none; }
.x-search__input {
	width: 100%; height: 44px; padding: 0 14px 0 42px; font: inherit; font-size: 15px; color: var(--ink);
	background: var(--field-bg, transparent); border: 1px solid var(--line-strong, var(--line)); border-radius: var(--radius-chip, 0);
	-webkit-appearance: none; appearance: none;
}
.x-search__input::placeholder { color: var(--ink-3); }
.x-search__input:focus { outline: none; border-color: var(--ink); }
.x-search .catalog-search__idle-text { display: none; }
.x-empty { padding: var(--space-7) 0; color: var(--ink-2); }
/* sort: the arrow turns for descending order */
.x-sort__options .sort-arrow { display: inline-flex; width: 9px; height: 9px; margin-left: 2px; transition: transform var(--dur) var(--ease); }
.x-sort__options .sort-arrow svg { display: block; width: 100%; height: 100%; }
.x-sort__options .sort-arrow.is-desc { transform: rotate(180deg); }
/* section switcher: only on <1024px (see responsive), the desktop rail is always open */
.x-catalog__toggle[hidden], .x-catalog__toggle { display: none; }
/* search: nothing found */
.x-nores.catalog-search-empty {
	margin: 0; padding: var(--space-7) 0 var(--space-6); text-align: left; background: none; border: 0; border-top: 1px solid var(--line-strong);
	border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink-2); font-size: 15px;
}
.x-nores[hidden] { display: none; }
.x-nores__k { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-4); }
.x-nores__title { font-family: var(--font-display); font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.6rem); line-height: 1.1; color: var(--ink); max-width: 22ch; text-wrap: balance; }
.x-nores.catalog-search-empty .x-nores__title span { font-weight: 400; color: var(--ink); }
.x-nores__text { margin-top: var(--space-4); max-width: 46ch; }
.x-nores__hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-5); }
.x-nores__hints li[hidden] { display: none; }
.x-nores__hints button {
	font: inherit; font-size: 14px; color: var(--ink); background: none; cursor: pointer; padding: 0 16px; min-height: 40px;
	border: 1px solid var(--line-strong); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
@media (hover: hover) { .x-nores__hints button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); } }
.x-nores__hints button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* product grid + card */
.x-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--grid-gap-y, var(--space-6)) var(--grid-gap-x, var(--space-5)); }
.x-grid { transition: opacity var(--dur) var(--ease); }
.x-grid.is-searching { opacity: .5; }
.x-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.x-grid--compact { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
.x-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.x-card__media {
	display: block; aspect-ratio: 1; overflow: hidden; background: var(--tile, transparent);
	border-radius: var(--radius-media, 0); margin-bottom: var(--space-3);
}
.x-card__media img {
	width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: var(--tile-blend, normal);
	transition: transform var(--dur-slow) var(--ease);
}
.x-card:hover .x-card__media img { transform: scale(1.04); }
.x-card__title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	text-decoration: none; font-size: 15px; line-height: 1.35; min-height: calc(1.35em * 2); height: calc(1.35em * 2);
}
.x-card__buy { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: auto; padding-top: var(--space-3); }
.x-card__price { font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
.x-card__price i { font-style: normal; }
.x-card__price i, .x-product__price i { font-style: normal; }
.x-card__price i::after, .x-product__price i::after { content: "руб."; font-weight: 400; } /* the plain space before «руб.» comes from the markup; an extra .25em made the gap look torn */
.x-card__price span strike { font-size: .8em; font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.x-card__cart a.basket_list {
	display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px;
	border: 1px solid var(--action); background: var(--action); color: var(--action-ink, #fff);
	border-radius: var(--radius-btn, 0); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap;
	transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.x-card__cart a.basket_list:hover { background: var(--action-deep); border-color: var(--action-deep); }
.x-card__cart a.basket_list.in_basket { background: transparent; color: var(--ink); border-color: var(--line-strong, var(--ink)); }
.x-card__cart a.in_basket:not(.basket_list) { display: none !important; }
.x-card__status { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.x-card__status .ok::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok, #2f7d55); margin-right: 6px; vertical-align: 2px; }
.x-card__status .no { color: var(--ink-2); }
.x-card u:empty { display: none; }

/* ---------- product page ---------- */
.x-page--inner:has(.x-product) .x-inner > .x-h1 { max-width: 34ch; text-wrap: pretty; } /* the title is not tied to the photo column */
.x-product__main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: var(--space-7); align-items: start; }
.x-product__media { position: sticky; top: calc(var(--header-h) + 20px); }
.x-product__photo { background: var(--tile, transparent); border-radius: var(--radius-media, 0); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.x-product__photo a { display: block; width: 100%; height: 100%; }
.x-product__photo img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: var(--tile-blend, normal); }
.x-product__thumbs { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.x-product__thumbs:empty { display: none; }
.x-product__thumbs img { width: 84px; height: 84px; object-fit: contain; background: var(--tile, transparent); }
.x-product__status .ok::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok, #2f7d55); margin-right: 8px; vertical-align: 1px; }
.x-specs { border-top: 1px solid var(--line); }
.x-specs__row { display: grid; grid-template-columns: 140px 1fr; gap: var(--space-4); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.x-specs__row dt { color: var(--ink-2); }
.x-specs__row dd { margin: 0; }
.x-specs__row dd i { font-style: normal; }
.x-specs__row:has(dd:empty) { display: none; }
/* buy panel: one framed column — facts strip, price + button, terms. Hairlines inside, like the cashback perks. */
.x-product__buy { display: flex; flex-direction: column; border: 1px solid var(--line-strong); background: var(--paper); }
.x-product__facts.x-specs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 0; border-bottom: 1px solid var(--line); }
.x-product__facts .x-specs__row { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 17px; border-bottom: 0; font-size: 15px; }
.x-product__facts .x-specs__row + .x-specs__row { border-left: 1px solid var(--line); }
.x-product__facts dt { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.x-product__facts dd { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; overflow-wrap: anywhere; }
.x-product__facts:not(:has(.x-specs__row:not(:has(dd:empty)))) { display: none; }
.x-product__deal { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6) clamp(20px, 2.2vw, 32px) var(--space-6); }
.x-product__pricebox { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.x-product__price { font-family: var(--font-display); font-size: clamp(2.4rem, 1.7rem + 1.8vw, 3.4rem); line-height: 1; font-weight: var(--display-weight, 400); white-space: nowrap; }
.x-product__price i::after { font-family: var(--font-ui); font-size: .36em; letter-spacing: .02em; color: var(--ink-2); margin-left: .1em; }
.x-product__status { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.x-product__terms { display: grid; margin: 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.x-product__terms > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-4); padding: 15px clamp(20px, 2.2vw, 32px); }
.x-product__terms > div + div { border-top: 1px solid var(--line); }
.x-product__terms dt { padding-top: 3px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.x-product__terms dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.x-product__terms a { color: var(--ink-2); margin-left: .3em; text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: color var(--dur-fast) var(--ease); }
.x-product__terms a:hover { color: var(--ink); }
.x-product__addons { max-width: none; padding: var(--space-8) 0 0; }
.x-passport { margin-top: var(--space-8); max-width: 900px; }
.x-passport > .x-h2 { margin-bottom: var(--space-5); }

/* product cart widget (default_v2 markup, state driven by basket.js); selectors outrank the legacy widget rules */
.x-product.ItemFull.product-page .product-basket-widget { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.x-product.ItemFull.product-page .product-basket-widget .basket-controls-row { display: grid; grid-template-columns: var(--btn-h) 1fr var(--btn-h); gap: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.x-product.ItemFull.product-page .product-basket-widget .basket-side { display: none; padding: 0; margin: 0; border: 0; background: none; width: auto; }
.x-product.ItemFull.product-page .product-basket-widget.is-filled .basket-side { display: block; }
.x-product.ItemFull.product-page .product-basket-widget .basket-side--minus { grid-column: 1; grid-row: 1; }
.x-product.ItemFull.product-page .product-basket-widget .basket-side--plus { grid-column: 3; grid-row: 1; }
.x-product.ItemFull.product-page .product-basket-widget .basket-primary-cell { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 1; margin: 0; padding: 0; }
.x-product.ItemFull.product-page .product-basket-widget.is-filled .basket-primary-cell { grid-column: 2; }
.x-product.ItemFull.product-page .product-basket-widget .basket-stepper__control {
	width: 100%; height: 56px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
	font-size: 22px; line-height: 1; cursor: pointer; border-radius: 0; box-shadow: none; padding: 0;
}
.x-product.ItemFull.product-page .product-basket-widget .basket-stepper__control:hover { background: var(--ink); color: var(--paper); }
.x-product.ItemFull.product-page .product-basket-widget .basket-primary-face {
	display: flex; align-items: center; justify-content: center; gap: 6px; height: 56px; width: 100%; margin: 0;
	text-decoration: none; font-family: var(--font-ui); font-size: 1.05rem; font-weight: 500; letter-spacing: 0; text-transform: none;
	background-image: none; box-shadow: none; border-radius: var(--radius-btn, 0); transform: none; position: static; opacity: 1; visibility: visible;
}
.x-product.ItemFull.product-page .product-basket-widget .basket-primary-face::before, .x-product.ItemFull.product-page .product-basket-widget .basket-primary-face::after { content: none; }
.x-product.ItemFull.product-page .product-basket-widget .basket-primary-face--add { background: var(--action); color: var(--action-ink, #fff); border: 1px solid var(--action); }
.x-product.ItemFull.product-page .product-basket-widget .basket-primary-face--add:hover { background: var(--action-deep); border-color: var(--action-deep); }
.x-product.ItemFull.product-page .product-basket-widget .basket-primary-face--cart { display: none; background: transparent; color: var(--ink); border: 1px solid var(--ink); border-left: 0; border-right: 0; border-radius: 0; }
.x-product.ItemFull.product-page .product-basket-widget.is-filled .basket-primary-face--add { display: none; }
.x-product.ItemFull.product-page .product-basket-widget.is-filled .basket-primary-face--cart { display: flex; }

/* ---------- info pages ---------- */
.x-info > .x-lead { margin-bottom: var(--space-2); }
.x-rates { width: 100%; font-size: 16px; }
.x-rates th, .x-rates td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.x-rates thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.x-rates tbody th { font-weight: 600; }
.x-rates__price { font-weight: 600; white-space: nowrap; }
.x-rates tr.is-best .x-rates__price { color: var(--good, var(--action)); }
.x-shops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.x-shop__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-media, 0); display: block; }
.x-shop__body { padding-top: var(--space-3); display: grid; gap: 4px; }
.x-shop__addr { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; }
.x-shop__hours { color: var(--ink-2); font-size: 15px; }
.x-shop__tel { font-weight: 500; font-variant-numeric: tabular-nums; text-decoration: none; }
.x-map { min-height: 300px; }
.x-map > ymaps, .x-map iframe { display: block; }
.x-req { display: grid; border-top: 1px solid var(--line); max-width: 860px; }
.x-req > div { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.x-req dt { color: var(--ink-2); }
.x-req dd { margin: 0; }
.x-biboo { display: inline-block; margin-top: var(--space-7); opacity: .85; }
.x-biboo img { width: 64px; }
.x-cashback .x-biboo { display: none; } /* prod keeps the secret game off (.cashback-biboo{display:none}) */

/* articles */
.x-articles .articlesItem { display: grid; grid-template-columns: 180px 1fr; gap: var(--space-5); padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.x-articles .anons_img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-media, 0); }
.x-articles .articles_title { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; text-decoration: none; margin-bottom: 6px; }
.x-articles .anons_text p { color: var(--ink-2); max-width: 70ch; }
.x-articles .articles_link { display: inline-block; margin-top: 8px; color: var(--link, var(--ink)); }

/* FAQ */
.x-faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-7); margin-top: var(--space-5); align-items: start; }
.x-faq__item { border-top: 1px solid var(--line); }
.x-faq__q { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 500; font-size: 1.05rem; }
.x-faq__q::-webkit-details-marker { display: none; }
.x-faq__q::after {
	content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform var(--dur-slow) var(--ease), top var(--dur-slow) var(--ease);
}
.x-faq__item.is-open .x-faq__q::after, .x-faq__item[open]:not(.is-motion) .x-faq__q::after { transform: rotate(225deg); top: 30px; }
.x-faq__a { overflow: hidden; color: var(--ink-2); max-width: 64ch; }
/* the gap under the answer lives inside the animated box, so the height really reaches 0 */
.x-faq__a > div { padding-bottom: 20px; }
.x-faq__a p + p, .x-faq__a ul { margin-top: .6em; }
.x-faq__a ul { list-style: disc; padding-left: 1.2em; }

/* ---------- footer ---------- */
.x-footer { background: var(--footer-bg, var(--ink)); color: var(--footer-ink, var(--paper)); }
.x-footer__grid {
	max-width: var(--max); margin: 0 auto; padding: var(--space-8) var(--gutter) var(--space-7);
	display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-6);
}
.x-footer__about { margin-top: var(--space-4); max-width: 34ch; color: color-mix(in srgb, currentColor 72%, transparent); font-size: 15px; }
.x-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.x-footer__col a { align-self: flex-start; color: color-mix(in srgb, currentColor 82%, transparent); }
.x-footer__col a:hover { color: currentColor; }
.x-footer__h { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, currentColor 60%, transparent); margin-bottom: 6px; }
.x-footer__legal {
	max-width: var(--max); margin: 0 auto; padding: var(--space-4) var(--gutter) var(--space-6);
	display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: var(--space-2) var(--space-6); font-size: 13px;
	color: color-mix(in srgb, currentColor 60%, transparent); border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.x-footer__legal a { color: inherit; }
.x-footer__corp { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6); }
@media (max-width: 640px) { .x-footer__corp { flex-direction: column; align-items: center; gap: 2px; width: 100%; } }
.x-logo--footer { color: var(--footer-ink, var(--paper)); --logo-ink: var(--footer-ink, var(--paper)); }

/* ---------- checkout + legacy widgets: align with the theme ---------- */
.x-inner:has(.checkout-page) > .x-h1 { display: none; }
.x-inner .x-prose:has(.checkout-page) { max-width: none; }
.x-prose > p:has(> .checkout-page) { margin: 0; }
.checkout-page { font-family: var(--font-ui); }
.cart-bar__inner { border-radius: var(--radius-lg, 0) !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.x-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.x-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
	:root { --header-h: 60px; }
	.x-header__bar { grid-template-columns: 1fr auto; gap: var(--space-3); }
	.x-header .x-nav { display: none; }
	.x-phone { display: none; }
	.x-burger { display: block; }
	.x-catalog__body { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
	.x-catalog__rail { position: static; max-height: none; overflow: visible; margin: 0 calc(var(--gutter) * -1); }
	.x-catalog__railtitle { display: none; }
	/* sections: "current / Все разделы" button + a panel with the whole list (JS in inc.footer.tpl).
	   Without JS the button stays [hidden] and the list is simply open. */
	.x-catalog__rail { margin: 0; }
	.x-catalog__head:has(+ .x-catalog__body .x-catalog__toggle:not([hidden])) { margin: 0; }
	.x-catalog__head:has(+ .x-catalog__body .x-catalog__toggle:not([hidden])) .x-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
	.x-catalog__toggle:not([hidden]) {
		display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: end; column-gap: var(--space-4); width: 100%;
		padding: 12px 16px 13px; background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; text-align: left; font: inherit;
		transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
	}
	.x-catalog__toggle-k { grid-column: 1; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
	.x-catalog__toggle-v { grid-column: 1; grid-row: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; }
	.x-catalog__toggle-all { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
	.x-catalog__toggle-all i { position: relative; width: 9px; height: 9px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform var(--dur-slow) var(--ease), margin var(--dur-slow) var(--ease); }
	.x-catalog__rail.is-open .x-catalog__toggle { border-color: var(--ink); }
	.x-catalog__rail.is-open .x-catalog__toggle-all i { transform: rotate(225deg); margin-top: 4px; }
	.x-catalog__toggle:not([hidden]) + .x-catalog__panel { overflow: hidden; }
	.x-catalog__rail:not(.is-open) .x-catalog__toggle:not([hidden]) + .x-catalog__panel { height: 0; }
	.x-catalog__rail:not(.is-open):not(.is-motion) .x-catalog__toggle:not([hidden]) + .x-catalog__panel { visibility: hidden; }
	.x-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); padding: 6px 16px 10px; border: 1px solid var(--ink); border-top: 0; }
	.x-cats__item { border-bottom: 1px solid var(--line); }
	.x-cats__item:nth-last-child(-n+2):nth-child(odd), .x-cats__item:last-child { border-bottom: 0; }
	.x-cats__link { position: relative; margin: 0; padding: 12px 20px 12px 0; font-size: 15px; border-left: 0; }
	.x-cats__link.is-active { font-weight: 500; color: var(--ink); }
	.x-cats__link.is-active::after { content: ""; position: absolute; right: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--ink); }
	.x-product__main { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
	.x-product__media { position: static; }
	.x-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.x-shops { grid-template-columns: minmax(0, 1fr); }
	.x-shop { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4); align-items: start; }
	.x-shop__body { padding-top: 0; }
	.x-faq__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.x-main:not(.x-home) { padding-top: var(--space-4); }
	.x-logo__name { display: none; }
	.x-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-3); }
	.x-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.x-card__buy { flex-direction: row; align-items: center; gap: var(--space-2); } /* row + wrap: price, then the full-width button below */
	.x-card__cart a.basket_list { width: 100%; }
	.x-card__title { font-size: 14px; }
	.x-toolbar { flex-direction: column; align-items: stretch; gap: var(--space-3); }
	.x-search { max-width: none; flex: 0 0 auto; }
	.x-sort { justify-content: space-between; gap: var(--space-2); }
	.x-sort__label { white-space: nowrap; }
	.x-sort__options a { padding: 6px 10px; }
	.x-cats { grid-template-columns: minmax(0, 1fr); }
	.x-cats__item:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--line); }
	.x-cats__item:last-child { border-bottom: 0; }
	.x-req > div, .x-specs__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.x-rates thead { display: none; }
	.x-rates tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.x-rates th, .x-rates td { border: 0; padding: 2px 0; }
	.x-rates td:nth-child(2) { grid-column: 1; color: var(--ink-2); }
	.x-rates .x-rates__price { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
	.x-rates td:last-child { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; }
	.x-articles .articlesItem { grid-template-columns: 96px 1fr; gap: var(--space-4); }
	.x-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.x-section__head { flex-direction: column; gap: var(--space-2); }
}
/* ---------- black buttons: hover inverts to white with an ink outline (--dur-fast, colour of small controls) ---------- */
@media (hover: hover) {
	.x-btn--action:hover, .x-card__cart a.basket_list:not(.in_basket):hover, .x-card__cart.is-hot a.basket_list:not(.in_basket), .x-product.ItemFull.product-page .product-basket-widget .basket-primary-face--add:hover {
		background: var(--paper); border-color: var(--action); color: var(--action);
	}
	.checkout-page .checkout-button:hover { background: var(--paper) !important; color: var(--action) !important; box-shadow: inset 0 0 0 1px var(--action) !important; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ---------- checkout: legacy markup re-skinned through theme tokens ---------- */
.checkout-page { --checkout-radius: var(--radius-lg, 0); }
.checkout-page .checkout-eyebrow { display: none; }
.checkout-page .checkout-page__title { font-family: var(--font-display); font-weight: var(--display-weight, 500); letter-spacing: var(--display-tracking, -0.02em); }
.checkout-page .checkout-section__eyebrow {
	background: none; border: 0; padding: 0; border-radius: 0; color: var(--ink-2);
	font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
}
.checkout-page .checkout-card, .checkout-page .checkout-section { box-shadow: none; border-color: var(--line); background: var(--paper); }
.checkout-page .checkout-option label, .checkout-page .checkout-cart-summary__item, .checkout-page .checkout-agree,
.checkout-page .checkout-address-form__body, .checkout-page .checkout-pickup-map, .checkout-page .checkout-inline-message,
.checkout-page table#order_block tr.checkout-item { border-radius: var(--radius-media, 0); box-shadow: none; }
.checkout-page .checkout-field__input, .checkout-page .checkout-qty, .checkout-page .checkout-item__delete,
.checkout-page table#order_block a.delete { border-radius: var(--radius-chip, 0); }
.checkout-page .checkout-button { border-radius: var(--radius-btn, 0) !important; background: var(--action) !important; color: var(--action-ink, #fff) !important; box-shadow: none !important; }
.checkout-page .checkout-button:hover { background: var(--action-deep) !important; }
.checkout-page .checkout-option input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* cookie notice + cart bar: solid theme surfaces instead of the legacy frosted glass */
.cookie .container, .cart-bar .cart-bar__inner {
	background: var(--paper) !important; color: var(--ink) !important;
	-webkit-backdrop-filter: none !important; backdrop-filter: none !important;
	border: 1px solid var(--line-strong, var(--line)) !important; border-radius: var(--radius-lg, 0) !important;
	box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--ink) 30%, transparent) !important;
}
.cookie #cookie-agreement-button, .cart-bar .cart-bar__button {
	background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important;
	border-radius: var(--radius-btn, 0) !important; box-shadow: none !important;
}
.x-prose .x-product ul, .x-prose .x-product ol { list-style: none; padding-left: 0; margin-top: 0; }

/* search field without the legacy tinted wrapper panel */
.x-toolbar .x-search.catalog-search { background: none; border: 0; padding: 0; box-shadow: none; border-radius: 0; min-height: 0; }
.x-toolbar .x-search .catalog-search__input { background: var(--field-bg, var(--paper)); box-shadow: none; }
/* phone: price and cart button inside the first screen */
@media (max-width: 640px) {
	.x-page--inner:has(.x-product) .x-inner > .x-h1 { font-size: 1.55rem; margin-bottom: var(--space-3); }
	.x-product__photo { aspect-ratio: auto; height: 240px; }
	.x-product__price { font-size: 2.4rem; }
	.x-product__facts .x-specs__row { padding: 14px 14px 13px; }
	.x-product__facts dd { font-size: 1.05rem; }
	.x-product__facts.x-specs { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.x-product__facts .x-specs__row.proizvoditel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
	.x-product__terms > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.x-product .x-product__photo { position: relative; }
.x-product .x-product__photo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: contain; }
.x-prose:has(.x-product) { max-width: none; }
.x-toolbar .x-search .x-search__input { border: 1px solid var(--line-strong, var(--line)) !important; height: 44px !important; padding: 0 14px 0 42px !important; background: var(--paper) !important; color: var(--ink) !important; }
.x-toolbar .x-search .x-search__input::placeholder { color: var(--ink-3) !important; opacity: 1 !important; }
.x-toolbar .x-search .x-search__icon { z-index: 1; }

/* ---------- v2.1 (17.11.2026): rouble sign, home cards, contacts, cashback, passport ---------- */

/* home cards: no stock line; the add button is the same wide one as everywhere (see «card cart» below) */
:root {
	--icon-bag-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12H6.2z'/%3E%3Cpath d='M9 8V6.5a3 3 0 0 1 6 0V8'/%3E%3Cpath d='M12 11.5v5M9.5 14h5'/%3E%3C/svg%3E");
	--icon-bag-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12H6.2z'/%3E%3Cpath d='M9 8V6.5a3 3 0 0 1 6 0V8'/%3E%3Cpath d='M9.3 14.2l1.9 1.9 3.6-3.8'/%3E%3C/svg%3E");
}

/* contacts: shop cards + social cards */
.x-shop { display: flex; flex-direction: column; background: var(--card-bg, var(--paper-2)); border-radius: var(--radius-media, 0); overflow: hidden; }
.x-shop__photo { border-radius: 0; }
.x-shop__body { padding: var(--space-4) var(--space-5) var(--space-5); gap: 6px; }
.x-shop__tel { margin-top: 6px; font-size: 1.1rem; }
.x-socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.x-social {
	position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 190px; padding: var(--space-5);
	border: 1px solid var(--line-strong, var(--line)); border-radius: var(--radius-media, 0); text-decoration: none;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.x-social__name { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.x-social__handle { color: var(--ink-2); font-size: 14px; }
.x-social__text { margin-top: var(--space-3); color: var(--ink-2); font-size: 15px; max-width: 30ch; }
.x-social__go { margin-top: auto; padding-top: var(--space-4); font-size: 14px; font-weight: 500; }
.x-social__go::after { content: " →"; }
.x-social:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.x-social:hover .x-social__handle, .x-social:hover .x-social__text { color: color-mix(in srgb, var(--paper) 78%, transparent); }

/* cashback levels, drawn in markup: the card deepens with the level */
.x-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.x-level {
	--lv: 0%; display: flex; flex-direction: column; min-height: 300px; padding: var(--space-5);
	background: color-mix(in srgb, var(--level-ink, var(--ink)) var(--lv), var(--card-bg, var(--paper-2)));
	color: var(--ink); border-radius: var(--radius-media, 0);
}
.x-level--2 { --lv: 10%; } .x-level--3 { --lv: 22%; }
.x-level--4 { --lv: 72%; color: #fff; } .x-level--5 { --lv: 100%; color: #fff; }
.x-level__step { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.x-level__pips { display: inline-flex; gap: 3px; }
.x-level__pips i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }
.x-level__pips i.is-on { background: currentColor; }
.x-level__name { margin-top: var(--space-4); font-family: var(--font-display); font-weight: var(--display-weight, 500); font-size: 1.3rem; line-height: 1.15; }
.x-level__rate { margin-top: auto; padding-top: var(--space-5); font-family: var(--font-display); font-size: 3.2rem; line-height: 1; }
.x-level__rate small { display: block; margin-top: 4px; font-family: var(--font-ui); font-size: 13px; opacity: .75; }
.x-level__facts { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); display: grid; gap: 8px; font-size: 13px; }
.x-level__facts dt { opacity: .7; }
.x-level__facts dd { margin: 0; font-weight: 500; }

/* product passport, written from scratch for the pcard.* markup (legacy rules are no longer loaded) */
.x-passport .pcard-block { padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.x-passport .pcard-lead { border-top: 0; padding-top: 0; }
.x-passport .pcard-lead__rule { display: none; }
.x-passport .pcard-lead__text, .x-passport .pcard-wild__text { font-size: 1.12rem; line-height: 1.6; max-width: 66ch; }
.x-passport .pcard-lead__text p + p, .x-passport .pcard-wild__text p + p { margin-top: .6em; }
.x-passport .pcard-label, .x-passport .pcard-kbju__title, .x-passport .pcard-wild__title {
	margin: 0 0 var(--space-3); font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.x-passport .pcard-kbju__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.x-passport .pcard-kbju__per { font-size: 13px; color: var(--ink-2); }
.x-passport .pcard-kbju__grid { display: grid; grid-template-columns: repeat(3, minmax(0, .7fr)) minmax(0, 1.6fr); gap: 0; margin-top: var(--space-2); }
.x-passport .pcard-kbju__cell { display: flex; flex-direction: column; gap: 6px; padding: 4px var(--space-4); border-left: 1px solid var(--line); }
.x-passport .pcard-kbju__cell:first-child { padding-left: 0; border-left: 0; }
.x-passport .pcard-kbju__key { font-size: 13px; color: var(--ink-2); }
.x-passport .pcard-kbju__key-short { display: none; }
.x-passport .pcard-kbju__val { font-family: var(--font-ui); font-size: 1.6rem; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.x-passport .pcard-unit { margin-left: .2em; font-size: .55em; font-weight: 400; color: var(--ink-2); }
.x-passport .pcard-dash { color: var(--ink-3); }
.x-passport .pcard-note { margin-top: var(--space-3); font-size: 14px; color: var(--ink-2); max-width: 70ch; }
.x-passport .pcard-row { display: grid; gap: 0 var(--space-7); }
.x-passport .pcard-row:empty { display: none; }
.x-passport .pcard-row--pair { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.x-passport .pcard-row--org { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.x-passport .pcard-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.x-passport .pcard-chip {
	display: inline-flex; align-items: center; padding: 5px 12px; font-size: 14px; line-height: 1.3;
	border: 1px solid var(--line-strong, var(--line)); border-radius: var(--radius-chip, 0); background: none;
}
.x-passport .pcard-srok__main, .x-passport .pcard-org__main { font-size: 1.05rem; font-weight: 500; line-height: 1.35; }
.x-passport .pcard-srok__sub, .x-passport .pcard-org__sub { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 1100px) {
	.x-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
	.x-socials { grid-template-columns: minmax(0, 1fr); }
	.x-social { min-height: 0; }
	.x-shop { display: grid; grid-template-columns: 132px 1fr; }
	.x-shop__photo { height: 100%; aspect-ratio: auto; }
}
@media (max-width: 640px) {
	.x-levels { grid-template-columns: minmax(0, 1fr); }
	.x-level { min-height: 0; }
	.x-level__rate { font-size: 2.6rem; }
	.x-passport .pcard-kbju__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-4); }
	.x-passport .pcard-kbju__cell--accent { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
	.x-passport .pcard-kbju__key-full { display: none; } .x-passport .pcard-kbju__key-short { display: inline; }
	.x-passport .pcard-kbju__cell--accent .pcard-kbju__key-full { display: inline; }
	.x-passport .pcard-row--pair, .x-passport .pcard-row--org { grid-template-columns: minmax(0, 1fr); }
}
/* rows of passport blocks share one continuous rule instead of one rule per column */
.x-passport .pcard-row { border-top: 1px solid var(--line); }
.x-passport .pcard-row > .pcard-block { border-top: 0; }
.x-passport .pcard-unit { font-style: normal; }
html, body { overflow-x: clip; }

/* ---------- checkout type: the legacy 700 weights read as a foreign font next to the theme ---------- */
.checkout-page :is(strong, b, th, .checkout-undo__count) { font-weight: var(--strong-weight, 500); }
.checkout-page .checkout-card__title, .checkout-page h2, .checkout-page h3 { font-family: var(--font-display); font-weight: var(--display-weight, 500); letter-spacing: var(--display-tracking, 0); }
.checkout-page table#order_block thead th { font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.checkout-page :is(.checkout-item__value--total, .checkout-cart-summary__value, .checkout-js-subtotal, .checkout-js-total) {
	font-family: var(--price-font, var(--font-ui)); font-weight: var(--price-weight, 500); font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap;
}

/* ---------- card cart (17.11.2026): one wide «В корзину» on its own row under the price, everywhere (home, catalog,
   search). Once pressed it turns into [ − | N | + ] in the very same box, so nothing around it moves ---------- */
.x-card__buy { flex-wrap: wrap; }
.x-card__cart { flex: 1 1 100%; margin-left: 0; }
.x-card__cart a.basket_list[hidden], .x-step[hidden] { display: none !important; }
.x-card__cart a.basket_list, .x-step { width: 100%; height: 44px; }
.x-card__cart a.basket_list { min-height: 0; padding: 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
/* the product page: the very same box, one size up */
.x-product__cart.x-card__cart a.basket_list, .x-product__cart.x-card__cart .x-step { height: 56px; }
.x-product__cart.x-card__cart a.basket_list { font-size: 13px; }
.x-product__cart.x-card__cart .x-step__n { font-size: 17px; }
.x-step {
	display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px;
	border: 1px solid var(--line-strong, var(--ink)); border-radius: var(--radius-btn, 0); overflow: hidden;
}
.x-step__btn { position: relative; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; transition: background-color var(--dur-fast) var(--ease); }
.x-step__btn::before, .x-step__btn--plus::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%);
}
.x-step__btn--plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.x-step__btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.x-step__btn:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: -2px; }
.x-step__n { display: grid; place-items: center; padding: 0 4px; border-inline: 1px solid var(--line); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.x-step.is-busy { opacity: .55; cursor: progress; }
/* the black button drains into the outlined stepper, then the controls fade in. Only after a real press (.is-morph, set by
   basket.js on the click), not when the page restores steppers for items already in the cart */
.x-card__cart.is-morph .x-step:not([hidden]) { animation: x-step-morph var(--dur-slow) var(--ease); }
.x-card__cart.is-morph .x-step:not([hidden]) > * { animation: x-fade-in var(--dur) .12s var(--ease) both; }
@keyframes x-step-morph {
	from { background: var(--action); border-color: var(--action); color: var(--action-ink); }
	to { background: transparent; border-color: var(--line-strong); color: var(--ink); }
}
/* and backwards on the last «−»: the digits fade first, the box fills back to black, then «В корзину» fades in on it.
   basket.js reads this animation's length and swaps in the button when it ends. Own keyframe names on purpose:
   flipping the forward ones to reverse would not restart them if «−» comes right after the add */
.x-card__cart .x-step.is-leaving:not([hidden]) {
	background: var(--action); border-color: var(--action); color: var(--action-ink); opacity: 1; pointer-events: none;
	transition: background-color var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease), opacity var(--dur-fast) var(--ease);
}
/* the mouse is on it: the button that comes back will look hovered, so fill to that white instead (live, see .is-hot) */
@media (hover: hover) { .x-card__cart.is-hot .x-step.is-leaving:not([hidden]) { background: var(--paper); border-color: var(--action); color: var(--action); } }
.x-card__cart .x-step.is-leaving:not([hidden]) > * { animation: x-fade-out var(--dur-fast) var(--ease) both; }
.x-card__cart.is-back a.basket_list { animation: x-text-in var(--dur) var(--ease) both; }
/* .is-lit (basket.js): the press happened under the mouse, where the button shows hovered = white with an ink outline,
   so the morph to the stepper starts from that white, not from black */
.x-card__cart.is-morph.is-lit .x-step:not([hidden]) { animation-name: x-step-morph-lit; }
@keyframes x-step-morph-lit {
	from { background: var(--paper); border-color: var(--action); color: var(--action); }
	to { background: transparent; border-color: var(--line-strong); color: var(--ink); }
}
@keyframes x-fade-in { from { opacity: 0; } }
@keyframes x-fade-out { to { opacity: 0; } }
@keyframes x-text-in { from { color: transparent; } }

/* stock: «в наличии» is the normal case and says nothing; only «под заказ» is shown, centred under the button */
.x-card__status:not(:has(.no)), .x-product__status:not(:has(.no)) { display: none !important; }
/* it hangs under the button out of the flow, so the buttons of one row stay level whether a card has the line or not;
   a grid holding such a card gets enough row gap for it */
.x-card .x-card__status { position: absolute; top: 100%; left: 0; right: 0; margin: 8px 0 0; padding: 0; text-align: center; font: 13px/1.4 var(--font-ui); font-style: normal; color: var(--ink-2); }
.x-grid:has(.x-card__status .no) { row-gap: max(var(--grid-gap-y, var(--space-6)), 48px); }
.x-card .x-card__status span { display: inline; margin: 0; }
.x-card .x-card__status span::before { content: none !important; }

/* stock dot sits on the middle of the lowercase line, not on a hand-picked pixel offset */
.x-card__status .ok::before, .x-card__status .no::before { vertical-align: calc(.5ex - 3px); }

/* ---------- v2.2 (17.11.2026, «Канон» approved) ---------- */

/* own radio buttons and checkboxes, everywhere: hairline frame, ink fill; the radio stays round so the two never get confused */
input[type="radio"], input[type="checkbox"] {
	-webkit-appearance: none; appearance: none; flex: none; display: inline-grid; place-content: center;
	width: 18px; height: 18px; margin: 0; padding: 0; vertical-align: -3px; cursor: pointer;
	border: 1px solid var(--line-strong, var(--ink)); background: var(--paper); color: var(--ink);
	transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
input[type="checkbox"] { border-radius: 0; }
input[type="radio"] { border-radius: 50%; }
input[type="radio"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform var(--dur-fast) var(--ease); }
input[type="checkbox"]::before {
	content: ""; width: 12px; height: 12px; background: var(--paper); transform: scale(0); transition: transform var(--dur-fast) var(--ease);
	-webkit-mask: var(--icon-check) no-repeat center / contain; mask: var(--icon-check) no-repeat center / contain;
}
input[type="radio"]:checked { border-color: var(--ink); }
input[type="radio"]:checked::before, input[type="checkbox"]:checked::before { transform: scale(1); }
input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); }
input[type="radio"]:hover, input[type="checkbox"]:hover { border-color: var(--ink); }
input[type="radio"]:focus-visible, input[type="checkbox"]:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
input[type="radio"]:disabled, input[type="checkbox"]:disabled { opacity: .4; cursor: not-allowed; }
:root { --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4'/%3E%3C/svg%3E"); }
.checkout-option input[type="radio"] { top: 20px; left: 18px; }
.checkout-option--pickup input[type="radio"] { top: 50%; margin-top: -9px; transform: none; }
.checkout-agree input[type="checkbox"] { margin-top: 2px; }

/* checkout: square corners all the way down, the same top offset as every other page, label-close steps */
.checkout-page :where(*):not(input[type="radio"]) { border-radius: 0 !important; }
.checkout-page { padding-top: 0 !important; }
.checkout-page .checkout-hero { margin-bottom: var(--space-6); }
.checkout-page .checkout-page__title { margin-top: 0 !important; }
.checkout-page .checkout-section { padding: 28px; }
.checkout-page .checkout-section__head { margin-bottom: 16px !important; }
.checkout-page .checkout-section__eyebrow { margin-bottom: 0 !important; }
.checkout-page .checkout-card--cart { padding-top: 12px; }
.checkout-undo__bar { stroke-dasharray: 168; stroke-linecap: butt; }
.checkout-undo.is-running .checkout-undo__bar { animation-name: c-undo-countdown; }
@keyframes c-undo-countdown { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 168; } }
@media (max-width: 374px) {
	.x-sort { font-size: 13px; }
	.x-sort__options { gap: 4px; }
	.x-sort__options a { padding: 6px 8px; }
}

/* Title rows aligned per grid row (subgrid): each card spans 3 parent rows (photo / title / price+button),
   so the title track takes the height of the tallest title IN THAT ROW. All one-line titles → one-line track,
   one two-line title → neighbours get the same height and prices/buttons stay level.
   The parent row-gap would also sit between the INNER rows of every card (a subgrid can't drop it: items just
   grow into the gutter), which left a dead band under one-line titles. So the gap between card rows moves
   into the card's own padding-bottom (--rg mirrors every row-gap rule above), and the grid's trailing
   padding is pulled back with a negative margin. Without subgrid support the fixed 2-line title stays. */
@supports (grid-template-rows: subgrid) {
	.x-grid { --rg: var(--grid-gap-y, var(--space-6)); row-gap: 0 !important; margin-bottom: calc(-1 * var(--rg)); }
	.x-grid--compact { --rg: var(--space-5); }
	@media (max-width: 640px) { .x-grid { --rg: var(--space-5); } }
	.x-grid:has(.x-card__status .no) { --rg: max(var(--grid-gap-y, var(--space-6)), 48px); }
	.x-grid > .x-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding-bottom: var(--rg); }
	.x-grid > .x-card > .x-card__title { height: auto; min-height: 0; align-self: start; }
	.x-grid > .x-card > .x-card__buy { margin-top: 0; align-self: start; }
	.x-grid > .x-card > .x-card__status { top: calc(100% - var(--rg)); }
}

/* narrow phones: a long button label («Оптовый сайт ikorniydom.com» at 320 px) wraps inside the button instead of
   running off the screen; short labels stay on one line as before */
@media (max-width: 479px) {
	.x-btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; padding-block: 12px; }
}

/* ---------- «Цена от» (cena_ot, a box in «Ценовые свойства»; ported from prod 27.11.2026) ----------
   «от» hangs on ::before so it stays outside umi:field-name="price" (inline editing of the price keeps working).
   Cards: «от» only. Product page: «от» + the (i) hint from data/cena_ot_hint.tpl next to the price. */
.is-price-from:not(tr)::before { content: "от\00a0"; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.x-card__price.is-price-from::before { font-size: .78em; }
.x-product__price.is-price-from::before { font-family: var(--font-ui); font-size: .36em; letter-spacing: .02em; color: var(--ink-2); }
.x-product__priceline { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.price-hint {
	position: relative; flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; margin: 0; padding: 0;
	border: 1px solid var(--line-strong); border-radius: 0; background: var(--paper); color: var(--ink-2);
	font: inherit; line-height: 1; cursor: help; -webkit-tap-highlight-color: transparent;
	transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.price-hint:hover, .price-hint:focus-visible, .price-hint.is-open { background: var(--ink); border-color: var(--ink); color: var(--paper); outline: none; }
.price-hint__icon { font: 400 15px/1 var(--font-display); }
.price-hint__bubble {
	position: absolute; top: calc(100% + 10px); left: 50%; z-index: 50; width: 280px; max-width: calc(100vw - 32px);
	padding: 14px 16px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 0;
	box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--ink) 30%, transparent);
	color: var(--ink); font: 400 14px/1.45 var(--font-ui); letter-spacing: 0; text-align: left; text-transform: none; white-space: normal;
	opacity: 0; visibility: hidden; translate: -50% -4px; pointer-events: none;
	transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.price-hint:hover .price-hint__bubble, .price-hint:focus-visible .price-hint__bubble, .price-hint.is-open .price-hint__bubble {
	opacity: 1; visibility: visible; translate: -50% 0; transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease), visibility 0s;
}
/* phones: the button sits mid-screen, so the bubble is pinned left of it and stays on screen */
@media (max-width: 640px) {
	.price-hint__bubble { left: -120px; translate: 0 -4px; }
	.price-hint:hover .price-hint__bubble, .price-hint:focus-visible .price-hint__bubble, .price-hint.is-open .price-hint__bubble { translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .price-hint__bubble { transition: none; } }

/* ---------- shop page (contacts_inner.tpl, 27.11.2026) ----------
   The content comes from the admin as an old table: td.contact_inner (.adr_block / .clock_block / .contact_block, each an
   h4 label + text, weekdays as ul.open + strong.open hours) and a second cell with the shop photo, then a wide photo
   in a <p>. Here: facts on the left, the photo on the right, the wide photo under both. Inline font sizes, white
   spacer paragraphs and the old float clearers are neutralised. */
.x-shoppage__kicker { margin: 0 0 var(--space-3); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.x-shopdb { margin-top: var(--space-6); }
.x-shopdb :is(span, strong, p, li, a) { font-size: inherit !important; color: inherit; }
.x-shopdb .clear { display: contents; }
.x-shopdb > p:not(:has(img)), .x-shopdb td > p:not(:has(img)), .x-shopdb .clear:not(:has(*)) { display: none; }
.x-shopdb table, .x-shopdb tbody { display: block; width: 100% !important; border: 0; border-collapse: separate; }
.x-shopdb tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.x-shopdb td { display: block; width: auto !important; padding: 0; border: 0; vertical-align: top; }
.x-shopdb .contact_inner { display: grid; border-top: 1px solid var(--line-strong); }
.x-shopdb .contact_inner > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 4px var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.x-shopdb h4 { grid-row: span 9; margin: 3px 0 0; font: 500 11px/1.4 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.x-shopdb .contact_inner p { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.x-shopdb .adr_block p { font-family: var(--font-display); font-size: 1.35rem !important; line-height: 1.25; }
.x-shopdb ul.open { display: flex; flex-wrap: wrap; gap: 0 .45em; margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.x-shopdb ul.open li { margin: 0; padding: 0; background: none; }
.x-shopdb ul.open li:not(:last-child)::after { content: ","; }
.x-shopdb strong.open { display: block; margin: 0 0 6px; font-weight: 500; font-size: 1.05rem !important; font-variant-numeric: tabular-nums; }
.x-shopdb td img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.x-shopdb > p:has(img) { margin: var(--space-6) 0 0; }
.x-shopdb > p:has(img) img { display: block; width: 100% !important; height: auto !important; max-height: 520px; object-fit: cover; }
.x-shoppage .x-cta { margin-top: var(--space-7); }
@media (max-width: 767px) {
	.x-shopdb tr { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
	.x-shopdb .contact_inner > div { grid-template-columns: minmax(0, 1fr); }
	.x-shopdb h4 { grid-row: auto; margin: 0 0 2px; }
}
