/* Arnica: a full-screen 3D film opens the site, the hall stays under the words, the price list follows.

   Type system: one family, Onest, from 400 to 800. 400 reads, 600 names things, 700 is what is pressed and what
   costs, 800 is display. Sizes 13 / 15 / 17 / 20 / 24 / 32 px and one display step. Figures stand as close as letters do
   (a «1» in a cell as wide as a «0» reads as «1 00»); only a count that changes in its place keeps cells of one width. */

@font-face { font-family: "Onest"; src: url("onest-800.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --night: #000;
  --paper: #f4f1ea;
  --ink: #15120e;
  --ink-2: #5b554b;
  --white: #f6f5f2;
  --white-2: rgba(246, 245, 242, .72);
  --hair: rgba(21, 18, 14, .13);
  --standby: #ff4d3d;
  --red: #d4120b;                 /* the shop's own red, from its sign */
  --t13: .8125rem; --t15: .9375rem; --t17: 1.0625rem; --t20: 1.25rem; --t24: 1.5rem; --t32: 2rem;
  --display: clamp(2.3rem, 10vw, 4.4rem);
  --out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t17)/1.45 "Onest", system-ui, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ───────── the shop's line over the film: its sign, where it is, the sections, the rate and the phone ───────── */
.top { position: absolute; z-index: 4; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: max(14px, env(safe-area-inset-top)) var(--pad) 0; color: var(--white); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: block; flex: none; line-height: 0; }
/* (the shop's sign as the shop has it: chrome, red gloss, raised letters; cut from its own picture) */
.brand img { display: block; height: 32px; width: auto; }
.where { margin: 0 auto 0 4px; font-size: .6875rem; font-weight: 500; line-height: 1.25; color: var(--white-2); }
.where .sep { display: none; }
.links { display: none; }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.call { display: inline-grid; grid-auto-flow: column; align-items: center; gap: 8px; height: 36px; min-width: 36px; padding: 0 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: var(--t15); font-weight: 700; text-decoration: none; white-space: nowrap; }
.call span { display: none; }

/* ───────── the film ───────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; background: var(--night); color: var(--ink); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--out); touch-action: pan-y; }
[data-film="playing"] #gl, [data-film="done"] #gl { opacity: 1; }
/* the dark upper corners of a lens: a still gradient over the picture, it costs the graphics card nothing */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .62), transparent 130px), radial-gradient(120% 90% at 50% 62%, transparent 60%, rgba(0, 0, 0, .34)); pointer-events: none; }
/* until the hall is drawn, the set's standby light is already there, exactly where the film begins */
.pilot { position: absolute; left: 50%; top: 50%; width: 9px; height: 5px; margin: -2.5px 0 0 -4.5px; border-radius: 2px; background: var(--standby); filter: blur(1.2px); animation: pilot 2.4s ease-in-out infinite; transition: opacity .5s; }
[data-film="playing"] .pilot, [data-film="done"] .pilot { opacity: 0; animation: none; }
/* a browser that cannot draw the hall shows it as one finished picture */
[data-flat] .hero { background: #1a1512 url("hall.webp") center / cover no-repeat; }
[data-flat] #gl, [data-flat] .pilot, [data-flat] .pan { display: none; }

/* the makers' keys: each walks the hall to that maker's bay; the one in view is lit */
.bays { position: absolute; z-index: 3; left: 0; right: 0; top: 60.5%; display: flex; justify-content: center; gap: 2px; padding: 0 64px; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .6s var(--out) .5s; }
/* (a key is the maker's logo in its own colours, on a white plate over the dark cabinet; the maker in view has the plate whole) */
.bays { --k: 26px; }
.bays button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .78); color: #0b0b0d; font-size: var(--t13); font-weight: 700; letter-spacing: .01em; white-space: nowrap; cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.bays button img { display: block; height: calc(var(--k) * var(--h)); width: auto; }
/* (a key to a section of other goods: a small photograph of what it sells, and its name) */
.bays button.kind { gap: 7px; padding-left: 6px; }
/* (the two keys that pass between the televisions and the other goods are for the phone's row only) */
.bays button.hop { display: none; gap: 6px; }
.bays button.kind img { width: 30px; height: 30px; border-radius: 50%; background: #fff; object-fit: contain; }
.bays button[aria-current="true"] { background: #fff; box-shadow: 0 0 0 2px #fff; }
[data-film="done"] .bays { opacity: 1; pointer-events: auto; }
/* On a wide screen the row stands over the hall between the two arrows, never over them, and shows, as a phone's row does,
   only what the hall is showing: the makers' logos and «Ещё ›» at the televisions, «← ТВ» and the sections past them (the
   whole row of twelve was wider than a laptop's window and covered the arrows). Where even that is wider than the window
   it can be pulled sideways; the lit key is kept in sight (app.js, lightBay). */
.hero > .bays { --side: calc(max(10px, var(--pad) - 20px) + 58px); left: var(--side); right: var(--side); padding: 4px 2px; justify-content: safe center; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.hero > .bays::-webkit-scrollbar { display: none; }
.hero > .bays button { flex: none; }
:root:not([data-zone]) .hero > .bays .kind, [data-zone] .hero > .bays button:not(.kind):not(.back) { display: none; }
:root:not([data-zone]) .hero > .bays .more, [data-zone] .hero > .bays .back { display: inline-flex; position: sticky; z-index: 1; background: #0b0b0d; color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }
.hero > .bays .more { right: 0; padding: 0 12px 0 6px; }
.hero > .bays .more img { width: 30px; height: 30px; border-radius: 50%; background: #fff; object-fit: contain; }
.hero > .bays .back { left: 0; padding: 0 14px 0 10px; }
[data-flat] .bays { opacity: 0; pointer-events: none; transition-delay: 0s; }
/* on a phone the keys lie with the words on the floor, over the buttons: in ink, like the words */
/* (on a phone each logo stands on its own plate with an edge, as the page's other keys do, with air between them: one
   row that runs from one edge of the screen to the other and can be pulled sideways; the maker in view has a dark ring) */
.copy .bays { --k: 28px; position: static; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin: 12px calc(var(--pad) * -1) 0; padding: 2px var(--pad); transform: none; opacity: 1; pointer-events: auto; transition: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.copy .bays::-webkit-scrollbar { display: none; }
.copy .bays button { flex: none; min-height: 44px; padding: 0 15px; border-radius: 999px; background: rgba(255, 255, 255, .82); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); }
.copy .bays button[aria-current="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
/* (the phone's row holds only what the hall is showing: the makers and a key on to the other goods, or the sections and a key back) */
:root:not([data-zone]) .copy .bays .kind, [data-zone] .copy .bays button:not(.kind):not(.back) { display: none; }
:root:not([data-zone]) .copy .bays .more, [data-zone] .copy .bays .back { display: inline-flex; position: sticky; z-index: 1; background: var(--ink); box-shadow: 0 0 0 5px #e9e2d5, 0 0 14px 12px rgba(233, 226, 213, .92); color: var(--paper); font-size: var(--t15); }
/* (they keep their place at the row's edge: the way on to the other goods at its right end, the way back at its left) */
.copy .bays .more { right: 0; margin-left: auto; gap: 5px; padding: 0 10px 0 6px; }
.copy .bays .more img { width: 30px; height: 30px; border-radius: 50%; background: #fff; object-fit: contain; }
.copy .bays .back { left: 0; gap: 4px; padding: 0 13px 0 10px; }
[data-flat] .copy .bays { display: none; }

/* the words lie on the light floor: a veil of the floor's own colour keeps the tiles quiet under them */
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(180deg, rgba(240, 232, 216, 0), rgba(240, 232, 216, .62) 62%); opacity: 0; transition: opacity 1.4s var(--out); pointer-events: none; }
[data-film="done"] .hero::after { opacity: 1; }

.copy { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: max(26px, env(safe-area-inset-bottom) + 18px); }
.copy h1 { margin: 0; font-size: var(--display); font-weight: 800; line-height: .98; letter-spacing: -.032em; text-wrap: balance; }
/* the headline in 3D letters (word3d.js): a canvas over the page's own headline, which stays as see-through text */
.copy .lead { position: relative; }
.word3d { position: absolute; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s var(--out); }
[data-word3d] .word3d { opacity: 1; }
[data-word3d] .copy h1 { color: transparent; }
.copy p { margin: .85em 0 0; font-size: var(--t17); font-weight: 500; line-height: 1.35; color: #3a342b; max-width: 30ch; }
/* the season's greeting over the headline, in the shop's red */
.copy .kicker { margin: 0 0 .55em; display: inline-flex; align-items: center; gap: 8px; font-size: var(--t15); font-weight: 700; letter-spacing: .01em; color: var(--red); }
.copy .kicker::before { content: ""; width: 12px; height: 12px; background: currentColor; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.acts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 1.1em; }
/* «Наш адрес» with the address itself under it, and «Поделиться» the shop */
#way { display: inline-grid; gap: 3px; text-decoration: none; }
#way span { text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: 2px; }
#way small { max-width: 15em; font-size: var(--t13); font-weight: 600; line-height: 1.3; color: var(--ink-2); }
#way small[hidden] { display: none; }
.acts .share-shop { background: rgba(255, 255, 255, .55); }
@media (max-width: 599px) { .acts { flex-wrap: nowrap; gap: 10px 14px; } #way small { max-width: 12.5em; font-size: .75rem; } .acts .share-shop { flex: none; width: 48px; padding: 0; } .acts .share-shop span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (min-width: 900px) { .copy .side:has(.share-shop) { max-width: 32rem; } }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: var(--t17); font-weight: 700; letter-spacing: -.01em; text-decoration: none; transition: transform .25s var(--out), background-color .25s; }
.btn:hover { background: #000; }
.btn:active { transform: scale(.97); }
.more { font-size: var(--t17); font-weight: 700; letter-spacing: -.01em; text-underline-offset: .28em; text-decoration-thickness: 2px; }
/* (the words come up and in, never out of a blur: anything soft for a moment reads as a fault, not as an effect) */
.copy .lead, .copy .side { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--out), transform 1.1s var(--out); }
[data-film="done"] .copy .lead, [data-film="done"] .copy .side { opacity: 1; transform: none; }
[data-film="done"] .copy .side { transition-delay: .16s; }

/* the hall is wider than the screen: two buttons at its ends walk it sideways (a drag does the same) */
.pan { position: absolute; z-index: 2; top: 60.5%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: rgba(12, 12, 14, .66); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .4s var(--out), transform .2s var(--out), background-color .2s; }
.pan:hover { background: rgba(12, 12, 14, .86); }
.pan:active { transform: scale(.93); }
#pan-l { left: max(10px, calc(var(--pad) - 20px)); }
#pan-r { right: max(10px, calc(var(--pad) - 20px)); }
[data-pan*="l"] #pan-l, [data-pan*="r"] #pan-r { opacity: 1; pointer-events: auto; }
@media (max-width: 899px) { .pan { display: none; } .copy .kicker { display: none; } .copy p { margin-top: .6em; } .acts { margin-top: .9em; } }

/* ───────── a set that was tapped: its measures, its notes, and the panel beside it ─────────
   The panel belongs to the frame of the page: flush with its edges, square, and exactly as tall as what it holds.
   It is not a window laid over the hall: nothing in it scrolls and nothing in it is cut off. On a wide screen it
   is the right-hand column with every figure; on a phone it is the lower part with the four figures that matter,
   and the whole table follows in the page itself, right under the hall. */
.tapes { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.tapes span { position: absolute; left: 0; top: 0; padding: 4px 8px 5px; border-radius: 3px; background: rgba(8, 8, 10, .9); color: var(--white); font-size: var(--t13); font-weight: 600; line-height: 1.2; white-space: nowrap; opacity: 0; transition: opacity .35s var(--out); will-change: transform; }
.tapes span.on { opacity: 1; }
.tapes .tip { padding: 7px 12px 8px; font-size: var(--t15); font-weight: 700; letter-spacing: -.01em; transition-duration: .18s; }

/* What is biggest is what matters: the set's name and its price. Then the choice of size and model, always in the
   same two rows at the same place, however many models a size has. The maker's switch is the smallest thing there
   and stands at the far end. Every figure is one line of a table: what on the left, how much on the right. */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--white-2); font-size: var(--t15); font-weight: 600; cursor: pointer; transition: color .2s; }
.back:hover { color: var(--white); }
.head { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; }
.price { grid-column: 1; grid-row: 2; margin: .12em 0 0; font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.035em; white-space: nowrap; }
.code { grid-column: 2; grid-row: 2; margin: 0; text-align: right; font-size: var(--t13); font-weight: 500; letter-spacing: .02em; color: var(--white-2); }
.price.ask { font-size: 1.375rem; letter-spacing: -.02em; }
.head:has(.ask:not([hidden])) .code { display: none; }
.price.ask { font-size: 1.25rem; }
/* a row of choices: words, the chosen one on white */
.seg { display: flex; gap: 2px; }
.seg button { min-height: 40px; padding: 0 11px; border: 0; border-radius: 6px; background: none; color: var(--white-2); font-size: var(--t17); font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .2s, background-color .2s; }
.seg button:hover { color: var(--white); }
.seg button[aria-current], .seg button[aria-current]:hover { background: var(--white); color: #0b0b0d; }
/* the models of the chosen size: up to four keys of one width, the model above its price */
.seg.models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.seg.models button { display: grid; align-content: center; justify-items: start; gap: 1px; min-height: 50px; padding: 0 10px; text-align: left; }
.seg.models button:not([aria-current]) { background: rgba(255, 255, 255, .08); }
.seg b { font-size: var(--t15); font-weight: 700; line-height: 1.2; }
.seg i { font-size: var(--t13); font-style: normal; font-weight: 600; line-height: 1.2; }
.seg.makers button { min-height: 32px; padding: 0 9px; font-size: var(--t13); }
.seg.makers button[aria-current], .seg.makers button[aria-current]:hover { background: rgba(255, 255, 255, .14); color: var(--white); }
.dock { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "sizes sizes" "models models" "all all"; align-items: center; gap: 6px 16px; margin-top: 8px; }
/* (on a phone the maker is chosen with the keys of the hall itself: six names do not fit beside the rest) */
.dock .makers { display: none; }
.dock .sizes { grid-area: sizes; margin-left: -11px; }
.dock .models { grid-area: models; }
.dock .makers { grid-area: makers; margin-right: -9px; }
.dock .all { grid-area: all; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); column-gap: 14px; align-items: center; min-width: 0; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.facts dt { font-size: var(--t15); line-height: 1.3; color: var(--white-2); }
.facts dd { margin: 0; font-size: var(--t15); font-weight: 600; line-height: 1.3; }
/* on a phone the three measures are drawn on the set itself; the table is one tap away, in the page */
.all { display: inline-flex; align-items: center; min-height: 36px; font-size: var(--t13); font-weight: 600; color: var(--white-2); text-underline-offset: .28em; }
/* the whole table of the set that is open, in the page itself */
.spec { padding: 36px var(--pad) 0; max-width: 1184px; margin: 0 auto; }
.spec[hidden] { display: none; }
.spec h2 { margin-bottom: .6em; font-size: var(--t24); letter-spacing: -.025em; line-height: 1.1; }
.spec .facts div { padding: 11px 0; border-top-color: var(--hair); }
.spec .facts dt { color: var(--ink-2); }
.spec .facts dd { font-size: var(--t17); }

/* ───────── the catalogue under the film ─────────
   One section at a time. A photograph always stands on a white tile, whatever the maker's file had behind the thing. */
.catalog { padding: clamp(56px, 9vw, 120px) var(--pad); max-width: 1296px; margin: 0 auto; }
h2 { margin: 0 0 .7em; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.75rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.catalog h2 { margin-bottom: .45em; }
.catalog { scroll-margin-top: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 clamp(22px, 3.4vw, 36px); }
.tabs a { display: inline-flex; align-items: baseline; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font-size: var(--t15); font-weight: 700; line-height: 44px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.tabs a i { font-style: normal; font-size: var(--t13); font-weight: 600; color: var(--ink-2); }
/* (a tab carries a small photograph of what its section sells) */
.tabs a { align-items: center; }
.tabs a img { flex: none; width: 32px; height: 32px; margin-left: -9px; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 0 0 1px var(--hair); }
.tabs a[aria-current] { background: var(--ink); box-shadow: none; color: var(--paper); }
.tabs a[aria-current] i { color: rgba(244, 241, 234, .66); }
/* televisions narrowed to one maker */
.filter { display: flex; flex-wrap: wrap; gap: 4px; margin: calc(-1 * clamp(10px, 1.6vw, 18px)) 0 clamp(20px, 3vw, 32px); }
.filter[hidden] { display: none; }
.filter button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: var(--t15); font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.filter button i { font-style: normal; font-size: var(--t13); color: rgba(91, 85, 75, .7); }
.filter button[aria-pressed="true"] { background: rgba(21, 18, 14, .08); color: var(--ink); }
.cost.ask { font-size: var(--t15); font-weight: 700; letter-spacing: 0; color: var(--ink-2); }
.ph { display: grid; place-items: center; background: #fff; border-radius: 8px; overflow: hidden; }
.ph img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ph .none { font-size: var(--t20); font-weight: 800; letter-spacing: -.02em; color: rgba(21, 18, 14, .28); }
.maker { margin: 0; font-size: var(--t13); font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.cost { font-size: var(--t20); font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
/* a family of televisions: its photograph, its name, and a line for every size */
.families { display: grid; gap: 14px; }
.family { display: grid; gap: 0 20px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .55); }
.family .ph { position: relative; aspect-ratio: 3 / 2; padding: 5% 7%; }
/* (the photograph is laid inside the box whatever its own shape: a square one in a wide box was taller than the box, and
   its foot was cut off) */
.family .ph > img { position: absolute; top: 5%; left: 7%; width: 86%; height: 90%; object-fit: contain; }
/* a refrigerator or a washing machine is tall: its card's photograph is square */
.family.tall .ph { aspect-ratio: 1; }
.family .txt { padding: 14px 4px 8px; }
.family h3 { margin: 2px 0 0; font-size: var(--t24); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.family .line { margin: 6px 0 0; font-size: var(--t15); line-height: 1.35; color: var(--ink-2); }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; border-top: 1px solid var(--hair); }
.rows .row { display: grid; grid-template-columns: 3.6rem 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 60px; margin: 0; padding: 8px 4px; border: 0; background: none; text-align: left; }
.rows .row:not(:disabled) { cursor: pointer; transition: background-color .2s; }
.rows .row:disabled { color: inherit; }
.size { font-size: 1.75rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.what { min-width: 0; font-size: var(--t13); line-height: 1.35; color: var(--ink-2); }
/* a refrigerator's or a washing machine's line is named by its litres or kilograms («6,5 кг», «367 л»): a wider column */
.rows .row.cap { grid-template-columns: 5.4rem 1fr auto; }
.rows .row.cap .size { font-size: var(--t24); white-space: nowrap; }
@media (max-width: 399px) { .rows .row.cap { grid-template-columns: 4.6rem 1fr auto; } .rows .row.cap .size { font-size: var(--t20); } }
.what span { display: block; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 399px) { .rows .row { grid-template-columns: 3.1rem 1fr auto; gap: 8px; } .rows .what { font-size: .75rem; } .rows .size { font-size: 1.5rem; } .rows .cost { font-size: var(--t17); } .rows .cost.ask { max-width: 5.8em; font-size: var(--t13); line-height: 1.2; text-align: right; white-space: normal; } }
/* everything else: a grid of things */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.item { display: grid; align-content: start; justify-items: start; gap: 10px; }
.item a { display: grid; align-content: start; width: 100%; color: inherit; text-decoration: none; }
.item .ph { aspect-ratio: 1; margin-bottom: 10px; padding: 9%; transition: box-shadow .2s; }
.item strong { margin-top: 2px; font-size: var(--t17); font-weight: 700; letter-spacing: -.015em; line-height: 1.22; }
.item small { margin-top: 3px; font-size: var(--t13); line-height: 1.3; color: var(--ink-2); }
.item .price-line { margin-top: 8px; }
/* a thing's own page */
.thing { display: grid; gap: 18px; scroll-margin-top: 14px; }
.backto { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--t15); font-weight: 700; text-decoration: none; }
.thing > .ph { aspect-ratio: 1; padding: 9%; }
.thing h3 { margin: 4px 0 0; font-size: var(--t32); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.thing .about .price-line { margin: 12px 0 18px; }
.thing .about .cost { font-size: clamp(2.5rem, 2rem + 2.4vw, 3.25rem); line-height: 1; }
.thing .facts div { padding: 11px 0; border-top-color: var(--hair); }
.thing .facts dt { color: var(--ink-2); }
.thing .facts dd { font-size: var(--t17); }
.where-to { margin: 22px 0 0; font-size: var(--t15); color: var(--ink-2); }
.where-to .more { margin-left: 6px; font-size: var(--t15); color: var(--ink); }
.thing .alt { margin: -10px 0 18px; font-size: var(--t17); font-weight: 600; color: var(--ink-2); }
/* a thing's page: a call to the shop (where the owner gave a number) and «Поделиться», under the key to the basket */
.thing .tells { display: flex; flex-wrap: wrap; gap: 10px; margin: -6px 0 22px; }
.tell { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; font-size: var(--t15); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: box-shadow .2s, background-color .2s; }
.tell[data-done] { box-shadow: inset 0 0 0 2px var(--ink); }
.tell .num { display: none; font-weight: 600; color: var(--ink-2); }
.tell.solid { background: var(--ink); color: var(--paper); box-shadow: none; }
/* the infographic on a thing's page (stage.js): the photograph on its white card, lines from points on the thing to its
   figures, measured lines with ticks; they draw themselves once the photograph has come */
.thing > .stage { position: relative; overflow: hidden; min-height: 240px; background: #fff; border-radius: 8px; }
.stage-pic { position: absolute; overflow: hidden; opacity: 0; transition: opacity .18s ease; }
.stage.play .stage-pic { opacity: 1; transform: none; }
.stage-pic img { position: absolute; max-width: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.stage-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.stage-lines path { fill: none; stroke: rgba(21, 18, 14, .5); stroke-width: 1; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.stage-lines .dimline { stroke: rgba(21, 18, 14, .4); }
.stage.play .stage-lines path { stroke-dashoffset: 0; transition: stroke-dashoffset .4s var(--out) calc(var(--d, 0s) * .45); }
.stage-lines .dot { fill: var(--red); transform-box: fill-box; transform-origin: center; transform: scale(0); }
.stage.play .stage-lines .dot { transform: none; transition: transform .3s var(--out) calc(var(--d, 0s) * .45); }
.stage-notes { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.stage-notes li { position: absolute; opacity: 0; transform: translateY(6px); }
.stage.play .stage-notes li { opacity: 1; transform: none; transition: opacity .3s ease calc(var(--d, 0s) * .45), transform .4s var(--out) calc(var(--d, 0s) * .45); }
.stage-notes .sn b { display: block; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.stage-notes .sn span { display: block; margin-top: 3px; font-size: var(--t13); font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.stage-notes .dim { transform: translate(-50%, 6px); font-size: var(--t13); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.stage.play .stage-notes .dim { transform: translate(-50%, 0); }
.stage-notes .dim.upright { transform: translate(0, 6px); }
.stage.play .stage-notes .dim.upright { transform: none; }
@media (prefers-reduced-motion: reduce) { .stage .stage-pic, .stage .stage-lines path, .stage .stage-lines .dot, .stage .stage-notes li { transition: none !important; } }
/* «Жду»: a thing the shop has run out of, the buyer's name and number for the shop to call when it comes */
.wait { display: grid; gap: 12px; max-width: 30rem; margin: 0 0 22px; }
.wait .out-line { margin: 0; font-size: var(--t17); font-weight: 800; color: var(--ink-2); }
.wait .wait-lead { margin: 0; color: var(--ink-2); }
.wait label > span:first-child { display: block; margin-bottom: 6px; font-size: var(--t13); font-weight: 600; color: var(--ink-2); }
.wait input { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 12px; outline: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: 600 var(--t17)/1 "Onest", system-ui, sans-serif; }
.wait input:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.wait .btn { justify-self: start; border: 0; cursor: pointer; }
.wait-done { margin: 0 0 22px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); font-weight: 600; }
/* more of the section under a thing */
.more-in { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--hair); }
.more-in h4 { margin: 0 0 16px; font-size: var(--t24); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
/* the bar with the price and the key to the basket: a phone's, see the narrow screens below; .bb-end marks where it goes away */
.buybar { display: none; }
.bb-end { display: block; height: 1px; grid-column: 1 / -1; }
@media (max-width: 899px) {
  .thing .tells { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .thing .tells > :only-child { justify-self: start; }
  .buybar { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px var(--pad) max(10px, env(safe-area-inset-bottom)); background: #f4f1ea; box-shadow: 0 -1px 0 var(--hair), 0 -12px 28px rgba(21, 18, 14, .07); transform: translateY(110%); transition: transform .32s var(--out); }
  .buybar[data-on] { transform: none; }
  .bb-what { display: grid; flex: 1; min-width: 0; margin: 0; }
  .bb-what b { overflow: hidden; font-size: var(--t13); font-weight: 600; line-height: 1.3; color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
  .bb-what span { font-size: var(--t20); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
  .buybar .add, .buybar .tell { flex: none; min-height: 48px; padding: 0 20px; }
}
@media (min-width: 900px) {
  .tell .num { display: inline; }
  .more-in { grid-column: 1 / -1; margin-top: 40px; }
  .more-in .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (hover: hover) { .tell:not(.solid):hover { background: rgba(21, 18, 14, .05); } }

/* ───────── the basket and the order ─────────
   A key puts a thing into the basket; in the basket already, it says how many and leads there. The basket is a page of
   the catalogue, not a window over it: the page's own scroll is the only one. */
.add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: var(--t15); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; cursor: pointer; transition: background-color .2s, transform .2s var(--out); }
.add:active { transform: scale(.97); }
.add[hidden] { display: none; }
.add[data-in] { background: none; box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.add.small { position: relative; width: 44px; padding: 0; background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.add.small[data-in] { background: var(--ink); color: var(--paper); box-shadow: none; }
.add.small i { position: absolute; right: -3px; top: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-style: normal; font-size: .6875rem; font-weight: 700; line-height: 18px; text-align: center; }
.add.wide { min-height: 54px; margin-bottom: 20px; padding: 0 30px; font-size: var(--t17); }
.out { font-size: var(--t13); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.was { margin-right: 8px; font-size: var(--t15); font-weight: 600; color: var(--ink-2); }
.lead-line { margin: 0 0 18px; color: var(--ink-2); }
.fab { position: fixed; z-index: 8; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--red); color: #fff; font-size: var(--t15); font-weight: 700; text-decoration: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .22); }
.fab[hidden] { display: none; }
.fab span { font-weight: 600; opacity: .92; }
.basket { display: grid; gap: 14px; max-width: 760px; scroll-margin-top: 14px; }
.basket h3 { margin: 0; font-size: var(--t32); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.basket .btn { justify-self: start; border: 0; cursor: pointer; }
.basket.done p { margin: 0; color: var(--ink-2); }
.lines { margin: 0; padding: 0; list-style: none; }
.lines li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "ph what what" "ph qty sum"; gap: 6px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--hair); }
.lines .ph { grid-area: ph; width: 64px; height: 64px; padding: 6px; }
.lines .what { grid-area: what; color: var(--ink); }
.lines .what strong { display: block; font-size: var(--t17); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.lines small { font-size: var(--t13); color: var(--ink-2); }
.qty { grid-area: qty; display: inline-flex; align-items: center; gap: 4px; justify-self: start; }
.qty button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(21, 18, 14, .07); font-size: 1.25rem; font-weight: 600; line-height: 1; cursor: pointer; }
.qty button:disabled { opacity: .35; cursor: default; }
.qty b { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.sum { grid-area: sum; font-size: var(--t17); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding: 16px 0 0; border-top: 2px solid var(--ink); font-size: var(--t17); font-weight: 600; }
.total b { font-size: var(--t24); font-weight: 800; letter-spacing: -.03em; }
.note, .empty { margin: 0; font-size: var(--t15); color: var(--ink-2); }
#order { display: grid; gap: 12px; margin-top: 10px; }
#order[hidden] { display: none; }
#order label > span:first-child { display: block; margin-bottom: 6px; font-size: var(--t13); font-weight: 600; color: var(--ink-2); }
#order input[type="text"], #order input[type="tel"] { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 12px; outline: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: 600 var(--t17)/1 "Onest", system-ui, sans-serif; }
#order input[type="text"]:focus-visible, #order input[type="tel"]:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.tel { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.tel i { font-style: normal; font-size: var(--t17); font-weight: 700; }
.how { display: flex; flex-wrap: wrap; gap: 8px; }
.how label { position: relative; }
.how input { position: absolute; inset: 0; opacity: 0; }
.how span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: var(--t15); font-weight: 700; cursor: pointer; }
.how input:checked + span { background: var(--ink); box-shadow: none; color: var(--paper); }
.how input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.deliver[hidden], .err[hidden], .dial[hidden], .call[hidden], .more[hidden] { display: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.err { margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(212, 18, 11, .08); color: #a30d08; font-size: var(--t15); font-weight: 600; }

/* ───────── how to reach the shop ───────── */
.contacts { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1184px; margin: 0 auto; padding: 0 var(--pad) clamp(56px, 9vw, 120px); }
.contacts img { display: block; width: 100%; height: auto; border-radius: 8px; }
.contacts h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
.contacts .addr { margin: 0 0 18px; color: var(--ink-2); max-width: 40ch; }
.contacts .addr .more { font-size: var(--t15); color: var(--ink); margin-left: 4px; }
.phones { margin: 0 0 18px; padding: 0; list-style: none; }
.phones a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--t24); font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.phones svg { color: var(--red); }
.ways { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.way { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font-size: var(--t15); font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.credit { margin: 0; font-size: var(--t15); color: var(--ink-2); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 28px var(--pad) max(28px, env(safe-area-inset-bottom) + 84px); border-top: 1px solid var(--hair); background: var(--paper); color: var(--ink-2); font-size: var(--t13); }
.foot img { height: 32px; width: auto; }
.foot p { margin: 0; }
.foot a { color: var(--ink); font-weight: 700; text-decoration: none; }

/* on a phone the ways to call stay under the thumb once the hall is scrolled away */
.dial { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2px; padding: 6px 8px max(6px, env(safe-area-inset-bottom)); background: #0c0c0e; transform: translateY(110%); transition: transform .35s var(--out); }
[data-below] .dial { transform: none; }
.dial .way { justify-content: center; gap: 6px; min-height: 48px; padding: 0 6px; box-shadow: none; color: var(--white); font-size: var(--t13); }
.dial .way span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dial .way.main { background: var(--red); }
.dial .way.main span { position: static; width: auto; height: auto; clip-path: none; }
.toast { position: fixed; z-index: 7; left: 50%; bottom: 84px; max-width: calc(100% - 32px); margin: 0; padding: 12px 18px; border-radius: 12px; background: #0c0c0e; color: var(--white); font-size: var(--t15); font-weight: 600; opacity: 0; transform: translate(-50%, 10px); transition: opacity .25s, transform .25s var(--out); pointer-events: none; }
.toast[data-on] { opacity: 1; transform: translate(-50%, 0); }

@keyframes pilot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

@media (hover: hover) {
  .rows .row:not(:disabled):hover { background: rgba(21, 18, 14, .05); }
  .tabs a:not([aria-current]):hover { background: rgba(21, 18, 14, .06); }
  .item:hover .ph { box-shadow: 0 0 0 2px var(--ink); }
  .backto:hover { text-decoration: underline; text-underline-offset: .28em; }
  .filter button:not([aria-pressed="true"]):hover { color: var(--ink); background: rgba(21, 18, 14, .05); }
  .way:hover { background: rgba(21, 18, 14, .05); }
  .dial .way:hover { background: rgba(255, 255, 255, .08); }
  .hero > .bays button:not([aria-current="true"]):hover { background: rgba(255, 255, 255, .92); }
  .hero > .bays button.hop:not([aria-current="true"]):hover { background: #2a2a2e; }
  .links a:hover { color: var(--white); }
}
@media (min-width: 900px) {
  :root { --display: clamp(2.6rem, 4.7vw, 4.4rem); }
  .top { gap: 18px; padding-top: 20px; }
  .brand img { height: 44px; }
  .where { margin-left: 6px; font-size: var(--t13); }
  .links { display: flex; gap: 22px; margin-right: 8px; }
  .links a { color: var(--white-2); font-size: var(--t15); font-weight: 600; text-decoration: none; transition: color .2s; }
  .call { padding: 0 16px 0 12px; }
  .call span { display: inline; }
  .bays { top: 65.5%; gap: 6px; --k: 28px; }
  .bays button { min-height: 42px; padding: 0 14px; font-size: var(--t15); }
  /* a set that is open has the whole right-hand column: the shop's line gives it room */
  .links, .tools { transition: opacity .3s; }
  .price.ask { font-size: 2rem; }
  .head:has(.ask:not([hidden])) .code { display: block; }
  .contacts { grid-template-columns: 1.25fr 1fr; }
  .dial { display: none; }
  .fab { right: 24px; bottom: 24px; }
  .foot { padding-bottom: 28px; }
  .toast { bottom: 28px; }
  /* on a wide screen the headline lies on the floor at the left, what to do stands at the right */
  .copy { bottom: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 48px; }
  .copy .lead h1 { max-width: 13.5em; }
  .copy .side { max-width: 21rem; }
  .copy p { margin-top: 0; }
  .pan { top: 65.5%; }
  .tabs a { font-size: var(--t17); padding: 0 20px; }
  /* a family across the page: the photograph, its name, the sizes with their prices */
  .family { grid-template-columns: 300px minmax(0, 1fr) minmax(0, 440px); align-items: center; padding: 14px 24px 14px 14px; }
  .family .txt { padding: 0 8px; }
  .family h3 { font-size: var(--t32); }
  .family .rows li:first-child { border-top: 0; }
  .rows .row { grid-template-columns: 4.4rem 1fr auto; padding: 8px 10px; border-radius: 0; }
  .size { font-size: var(--t32); }
  .what span { display: inline; }
  .what span + span::before { content: " · "; }
  .family .cost { font-size: var(--t24); }
  .family .cost.ask { font-size: var(--t17); }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
  .thing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px clamp(32px, 5vw, 64px); align-items: start; }
  .backto { grid-column: 1 / -1; }
  .thing h3 { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); }
  /* the right-hand column, top to bottom of the hall, with every figure; the sizes and models lie along the bottom */
  .where { transition: opacity .3s; }
  .back { align-self: flex-start; margin-bottom: 14px; }
  .head { display: block; }
  .code { margin-top: .45em; text-align: left; }
  .price { margin: .28em 0 0; font-size: 3rem; line-height: 1; }
  /* the choice of size and model lies along the bottom of the hall, left of the panel: two rows, always */
  .dock { position: absolute; right: 100%; bottom: 0; width: var(--stage, 60vw); margin: 0; padding: 10px var(--pad) 14px; border-top: 1px solid rgba(255, 255, 255, .12); background: #0c0c0e; grid-template-areas: "sizes makers" "models models"; gap: 8px 28px; }
  .dock .makers { display: flex; margin-right: -9px; }
  .seg.models { grid-template-columns: repeat(4, minmax(0, 148px)); }
  .seg.models button { padding: 0 14px; }
  /* the table takes what is left of the column and shares it out evenly: its lines are never cut and never scroll */
  .all, .spec { display: none; }
  .tapes span { font-size: var(--t15); }
}
/* a low window: the same panel, set closer */
@media (min-width: 900px) and (max-height: 700px) {
  .back { margin-bottom: 4px; }
  .price { font-size: 2.375rem; }
}
@media (min-width: 900px) and (max-height: 590px) {
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* ═════════ 2026-11-22: the card of an open set, the filter, the bar that follows the page ═════════ */

/* The card of an open set says five things and no more: whose it is, what it costs, the sizes of this very model, the key
   to the basket, four figures. Everything else is one tap away on the thing's own page. */
@media (max-width: 899px) {
}
@media (min-width: 900px) {
}

/* The bar that follows the page: it comes down once the hall is scrolled away. The shop's sign, the catalogue, the basket,
   the phone. Over the hall itself there is only the sign and, when something is in it, the basket. */
.bar { position: fixed; z-index: 7; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 4px; height: 58px; padding: 0 var(--pad); background: #f4f1ea; box-shadow: 0 1px 0 var(--hair); transform: translateY(-110%); transition: transform .32s var(--out); }
[data-below] .bar { transform: none; }
.bar .brand img { height: 32px; }
.bar .txt { display: inline-flex; align-items: center; min-height: 40px; margin-left: 6px; padding: 0 12px; border-radius: 999px; font-size: var(--t15); font-weight: 700; text-decoration: none; }
.bar .far { display: none; }
.bar .cartkey { margin-left: auto; background: var(--ink); color: var(--paper); }
.bar .call { height: 40px; min-width: 40px; margin-left: 6px; }
/* (a phone: the basket's key must fit with its count beside it; on a narrow one the bar is the sign, the language and
   the basket: the catalogue is the page itself there) */
@media (max-width: 429px) { .bar .brand img { height: 30px; } .bar .txt { margin-left: 0; padding: 0 6px; } .bar .langkey { min-width: 40px; padding: 0 8px; } .bar .cartkey { gap: 6px; padding: 0 12px 0 10px; } }
@media (max-width: 379px) { .bar .brand img { height: 28px; } .bar .txt { display: none; } }
.cartkey { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; font-size: var(--t15); font-weight: 700; text-decoration: none; white-space: nowrap; }
.cartkey[hidden] { display: none; }
.cartkey span { display: none; font-weight: 600; opacity: .8; }
.top .cartkey { height: 36px; background: rgba(255, 255, 255, .14); color: var(--white); }
.catalog, .contacts { scroll-margin-top: 58px; }
.thing, .basket { scroll-margin-top: 74px; }
@media (hover: hover) { .bar .txt:hover { background: rgba(21, 18, 14, .06); } }
@media (min-width: 560px) { .cartkey span { display: inline; } }
@media (min-width: 900px) {
  .bar .far { display: inline-flex; }
}

/* The filter of a section. On a wide screen it stands beside the list, every group open. On a phone it is behind the
   «Фильтры» key and opens in the page itself, above the list: the page's own scroll is the only one. */
.shelf { display: grid; gap: 16px; }
#filters[hidden] { display: none; }
.f-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--hair); font-size: var(--t15); font-weight: 700; cursor: pointer; }
.f-toggle i { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--paper); font-style: normal; font-size: .75rem; line-height: 20px; text-align: center; }
.f-toggle i:empty { display: none; }
#f-form { display: none; gap: 20px; margin-top: 14px; padding: 18px; border-radius: 14px; background: rgba(255, 255, 255, .6); }
[data-open] > #f-form { display: grid; }
#f-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
#f-form legend, .f-search > span { display: block; margin-bottom: 8px; padding: 0; font-size: var(--t13); font-weight: 700; color: var(--ink-2); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts label { position: relative; }
.opts input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opts span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: var(--t15); font-weight: 600; }
.opts span i { font-style: normal; font-size: var(--t13); color: var(--ink-2); }
.opts input:checked + span { background: var(--ink); box-shadow: none; color: var(--paper); }
.opts input:checked + span i { color: rgba(244, 241, 234, .66); }
.opts input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#f-form input[type="text"], #f-form input[type="search"] { width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: 10px; outline: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: 600 var(--t15)/1 "Onest", system-ui, sans-serif; -webkit-appearance: none; appearance: none; }
#f-form input[type="text"]:focus-visible, #f-form input[type="search"]:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.check { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--t15); font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.f-reset { justify-self: start; min-height: 40px; padding: 0; border: 0; background: none; font-size: var(--t15); font-weight: 700; text-decoration: underline; text-underline-offset: .28em; cursor: pointer; }
.f-reset[hidden] { display: none; }
.f-show { justify-content: center; border: 0; cursor: pointer; }
.found { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 0 0 12px; font-size: var(--t15); }
.found b { font-weight: 700; }
.sort { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; }
.sort span { display: none; }
.sort select { height: 40px; padding: 0 38px 0 12px; border: 0; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315120e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: 600 var(--t15)/1 "Onest", system-ui, sans-serif; cursor: pointer; appearance: none; -webkit-appearance: none; }
.empty .more { padding: 0; border: 0; background: none; font-size: inherit; cursor: pointer; text-decoration: underline; }
/* a thing's own page: the sizes of the same model, and the way back to its set in the hall */
.sizes-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.sizes-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: var(--t17); font-weight: 700; text-decoration: none; }
.sizes-row a[aria-current] { background: var(--ink); box-shadow: none; color: var(--paper); }
@media (min-width: 900px) {
  .shelf { grid-template-columns: 228px minmax(0, 1fr); gap: 40px; align-items: start; }
  .shelf:has(#filters[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .f-toggle, .f-show { display: none; }
  #f-form { display: grid; gap: 24px; margin-top: 0; padding: 0; background: none; }
  /* (the makers, the screens, the rates: a list, the count at the line's end) */
  .opts.brand, .opts.screen, .opts.hz { display: grid; gap: 6px; }
  .opts.brand span, .opts.screen span, .opts.hz span { width: 100%; min-height: 40px; justify-content: space-between; padding: 0 14px; border-radius: 10px; }
  .opts.inch span { min-height: 38px; padding: 0 11px; }
  .sort span { display: inline; }
  .family { grid-template-columns: 150px minmax(0, 1fr); padding: 12px 18px 6px 12px; }
  .family .rows { grid-column: 1 / -1; margin-top: 10px; }
  .family .rows li:first-child { border-top: 1px solid var(--hair); }
  .family h3 { font-size: var(--t24); }
  .family .size { font-size: var(--t24); }
  .rows .row { grid-template-columns: 3.4rem 1fr auto; padding: 8px 6px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (hover: hover) and (min-width: 900px) { .opts.brand input:not(:checked) + span:hover, .opts.screen input:not(:checked) + span:hover, .opts.hz input:not(:checked) + span:hover { background: rgba(21, 18, 14, .05); } }
@media (min-width: 1200px) {
  .family { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 450px); padding: 12px 18px 12px 12px; }
  .family .rows { grid-column: auto; margin-top: 0; }
  .family .rows li:first-child { border-top: 0; }
  /* (a line of a family: the model's code over where it was made, never broken in the middle) */
  .family .what span { display: block; white-space: nowrap; }
  .family .what span + span::before { content: none; }
}

/* the key that changes the language: it names the other one */
.langkey { height: 36px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: var(--white); font-size: var(--t13); font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.bar .langkey { height: 40px; margin-left: auto; background: none; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); }
.bar .langkey + .cartkey { margin-left: 6px; }
