/* Лендинг cornery.store — клиентский каталог в виде гостевой витрины pix. Тема — по настройке устройства. */
:root {
	color-scheme: light;
	--page: #fff; --bg: #fff; --bg2: #f4f4f5; --hover: #ebebee; --line: #ebebee; --line-strong: #dcdce1;
	--fg: #09090b; --fg2: #52525b; --fg3: #71717a; --red: #c81e1e; --accent: #334cdb; --accent-hover: #2b41c4;
	--veil: rgba(0, 0, 0, .18); --dim: rgba(0, 0, 0, .45);
	--sans: 'Golos Text', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--px: 24px; --gap: 16px; --ctl: 42px; --pill: 38px;
}
@media (prefers-color-scheme: dark) {
	:root {
		color-scheme: dark;
		--page: #0a0a0a; --bg: #0a0a0a; --bg2: #161617; --hover: #1f1f21; --line: #26262b; --line-strong: #34343a;
		--fg: #ededed; --fg2: #a3a3a3; --fg3: #8f8f8f; --red: #ff6b70; --accent: #334cdb; --accent-hover: #4459e3;
		--veil: rgba(0, 0, 0, .22); --dim: rgba(0, 0, 0, .62);
	}
}
@media (max-width: 639px) { :root { --px: 12px; --gap: 10px; --ctl: 38px; } }
@media (min-width: 1024px) { :root { --pill: 36px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--fg); font: 15px/1.4 var(--sans); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nojs { padding: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- шапка: знак · разделы · поиск · язык; уже 1024 — разделы вторым рядом ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--page); display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 10px var(--px) 0; }
.bar.one { flex-wrap: nowrap; padding: 10px var(--px); }
@media (max-width: 639px) { .bar { column-gap: 8px; padding-top: 8px; } }
.logo { order: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px; border: 0; background: transparent; flex: none; text-decoration: none; }
.logo b { width: 36px; height: 36px; border-radius: 999px; background: var(--fg); color: var(--bg); display: grid; place-items: center; font: 700 16px/1 var(--sans); letter-spacing: -.02em; }
.logo span { font-weight: 700; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.nav { order: 5; flex: 0 0 100%; min-width: 0; margin: 0 calc(-1 * var(--px)); padding: 8px 0 10px; }
.bar.one .nav { order: 2; flex: 1 1 0; margin: 0; padding: 0; }
.row { display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 2px var(--px); }
.bar.one .row { padding: 2px 0; }
.row::-webkit-scrollbar { display: none; }
.menu { display: flex; align-items: center; gap: 4px; flex: none; margin: 0 auto; }
.bar.one .menu { margin: 0; }
.pill { height: var(--pill); padding: 0 16px 0 14px; display: inline-flex; align-items: center; gap: 3px; border: 0; border-radius: 999px; background: var(--bg2); color: var(--fg); font-size: 14px; font-weight: 600; white-space: nowrap; flex: none; transition: background-color .15s, color .15s; }
.pill.more { padding-right: 10px; }
.pill.more svg { width: 14px; height: 14px; opacity: .55; }
.pill[aria-current="true"] { background: var(--fg); color: var(--bg); }
.pill[aria-current="false"]:hover { background: var(--hover); }
.up { height: var(--pill); padding: 0 14px 0 8px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; flex: none; }
.up:hover { background: var(--bg2); }
.search { order: 3; position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; margin: 0; }
.bar.one .search { flex: 0 1 240px; }
.search > svg { position: absolute; left: 14px; color: var(--fg3); pointer-events: none; }
.search input { width: 100%; height: var(--ctl); padding: 0 40px; border: 0; border-radius: 999px; background: var(--bg2); font-size: 15px; outline: none; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus-visible { box-shadow: 0 0 0 2px var(--line-strong); }
.clear { position: absolute; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--fg2); }
[hidden] { display: none !important; }
.acts { order: 4; display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.ibtn { position: relative; width: var(--ctl); height: var(--ctl); display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--bg2); }
.ibtn .dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--page); }
.lang { height: var(--ctl); min-width: var(--ctl); padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: 600 12.5px var(--sans); letter-spacing: .04em; }
.lang:hover { background: var(--hover); }
.cancel { order: 4; height: var(--ctl); padding: 0 4px; border: 0; background: transparent; font-size: 15px; font-weight: 500; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 2px var(--px) 16px; }
.chip { height: 34px; padding: 0 4px 0 14px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 500; white-space: nowrap; max-width: 100%; }
.chip a { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px; color: var(--fg2); text-decoration: none; }
.chip a:hover { background: var(--bg2); color: var(--fg); }

/* ---------- сетка «пинов»: колонки разной высоты ---------- */
main { padding: 6px var(--px) 40px; }
.grid { display: flex; gap: var(--gap); align-items: flex-start; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.empty { padding: 80px 0; text-align: center; color: var(--fg2); font-size: 15px; }
.more-row { padding: 24px 0 8px; text-align: center; color: var(--fg3); font-size: 14px; min-height: 60px; }

.pin { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; cursor: zoom-in; outline: none; }
.pin:focus-visible .img { box-shadow: 0 0 0 2px var(--fg); }
.img { position: relative; container-type: inline-size; background: var(--bg2); border-radius: 16px; overflow: hidden; isolation: isolate; }
.strip { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; display: block; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.strip img:not([src]) { visibility: hidden; }
.veil { position: absolute; inset: 0; background: var(--veil); opacity: 0; transition: opacity .15s; pointer-events: none; }
.sale { position: absolute; top: 10px; left: 10px; height: 26px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
.site { position: absolute; top: 10px; right: 10px; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: #fff; color: #111; font-size: 12px; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); text-decoration: none; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.site svg { width: 10px; height: 10px; stroke-width: 2.4; }
.nav-ph { position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #111; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); opacity: 0; transition: opacity .15s; }
.nav-ph svg { width: 14px; height: 14px; stroke-width: 2.4; }
.nav-ph.prev { left: 8px; }
.nav-ph.next { right: 8px; }
.dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 999px; background: rgba(0, 0, 0, .28); pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .55); transition: width .2s, background-color .2s; }
.dots i.on { width: 14px; background: #fff; }
@media (hover: hover) and (pointer: fine) {
	.pin:hover .veil, .pin:hover .site, .pin:hover .nav-ph { opacity: 1; }
}
.meta { display: flex; flex-direction: column; gap: 3px; padding: 0 6px; min-width: 0; }
.name { font-size: 14px; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.line b { font-weight: 700; white-space: nowrap; }
.line s { color: var(--fg3); white-space: nowrap; }
.line span { color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.line.sale-on b { color: var(--red); }

/* ---------- окно товара: справа на компьютере, во весь экран на телефоне ---------- */
.shade { position: fixed; inset: 0; z-index: 40; background: var(--dim); opacity: 0; transition: opacity .2s; }
.shade.in { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(540px, 100vw); display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
.drawer.in { transform: none; }
.dhead { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dhead h2 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.x { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); flex: none; }
.x:hover { background: var(--bg2); }
.dbody { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.phs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.phs button { aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--bg2); cursor: zoom-in; }
.phs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 24px; margin: 0 0 22px; font-size: 15px; }
.facts dt { color: var(--fg2); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts .mono { font-family: var(--mono); font-size: 14px; }
.facts s { color: var(--fg3); margin-left: 8px; }
.szh { color: var(--fg2); font-size: 15px; margin: 0 0 10px; }
.szs { display: flex; flex-wrap: wrap; gap: 6px; }
.szs span { min-width: 44px; height: 34px; padding: 0 10px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; font: 600 13px/1 var(--mono); }
.szs span.no { border-style: dashed; border-color: var(--line); color: var(--fg3); font-weight: 400; text-decoration: line-through; opacity: .6; }
.dfoot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.go { height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.go:hover { background: var(--accent-hover); }
.go svg { width: 12px; height: 12px; stroke-width: 2.4; }
.dload { padding: 60px 0; text-align: center; color: var(--fg3); }

/* ---------- просмотр фото ---------- */
.lb { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: rgba(5, 5, 6, .96); color: #fff; opacity: 0; transition: opacity .18s; }
.lb.in { opacity: 1; }
.lbtop { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.lbtop span { font: 500 13px var(--mono); color: rgba(255, 255, 255, .8); }
.lbtop .x { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.lbstage { position: relative; flex: 1 1 auto; min-height: 0; touch-action: pan-y; }
.lbstage img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 128px); max-height: 100%; width: auto; height: auto; user-select: none; -webkit-user-drag: none; }
.lbnav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; }
.lbnav:hover { background: rgba(255, 255, 255, .2); }
.lbnav.prev { left: 12px; }
.lbnav.next { right: 12px; }
.lbcap { padding: 10px 18px 4px; font-size: 14px; }
.lbcap b { display: block; font-weight: 600; }
.lbcap span { color: rgba(255, 255, 255, .65); }
.lbth { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 18px calc(14px + env(safe-area-inset-bottom)); }
.lbth::-webkit-scrollbar { display: none; }
.lbth button { flex: none; width: 46px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .06); opacity: .6; }
.lbth button.on { border-color: #fff; opacity: 1; }
.lbth img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 639px) {
	.lbstage img { max-width: 100%; }
	.lbnav { display: none; }
	.dhead { padding: 14px 16px; }
	.dbody { padding: 16px; }
	.dfoot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
	.search input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.pill, .dots i, .drawer, .shade, .lb, .site, .veil, .nav-ph { transition: none; }
}
