@font-face { font-family: Inter; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Cal; src: url('/fonts/cal-sans-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Mono; src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
:root { color-scheme: light; --bg: #f6f7f9; --dot: #d5d9e0; --surface: #fff; --soft: #f9fafb; --border: #e4e7ec; --border-strong: #d0d5dd; --text: #0b0d12; --muted: #667085; --blue: #2563eb; --accent-soft: #eef3fd; --accent-line: #c7d7fb; --pill: #0b0d12; --on-pill: #fff; --ink-hover: #25272b; --shadow: 0 1px 2px rgb(16 24 40 / .04); --primary-icon-filter: invert(1); }
:root[data-theme='dark'] { color-scheme: dark; --bg: #0b0c0f; --dot: #23262d; --surface: #131519; --soft: #171a1f; --border: #262a31; --border-strong: #353a43; --text: #eceef2; --muted: #8a91a0; --blue: #6d9cff; --accent-soft: #16203a; --accent-line: #2a3d6b; --pill: #eceef2; --on-pill: #0b0c0f; --ink-hover: #fff; --shadow: none; --primary-icon-filter: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 105px; }
body { margin: 0; min-height: 100dvh; background-color: var(--bg); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px; background-attachment: fixed; color: var(--text); font: 14px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.top-inner, .search-panel, main, footer { width: min(100%, 1080px); margin-inline: auto; }
.top-inner { padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.store-pill { border-radius: 6px; padding: 6px 17px 6px 0; display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.avatar { width: 39px; height: 39px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: contain; }
.store-pill strong { font-size: 12px; line-height: 1.3; display: block; }
.store-pill small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .025em; }
.top-actions { display: flex; gap: 16px; align-items: center; }
.icon-btn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; padding: 9px; background: transparent; border-radius: 50%; }
.icon-btn img { width: 23px; height: 23px; opacity: .72; }
.icon-btn:hover, .icon-btn[aria-pressed=true] { background: var(--soft); }
.icon-btn[aria-pressed=true] { box-shadow: inset 0 0 0 1px var(--border); }
.saved-count { position: absolute; right: -1px; top: 0; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 50%; background: var(--blue); color: white; font-size: 9px; line-height: 16px; }
.search-panel { display: flex; align-items: center; padding: 0 28px 14px; gap: 8px; }
.search-panel label { flex: 1; display: flex; align-items: center; padding: 0 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.search-panel label img { width: 20px; height: 20px; opacity: .5; }
.search-panel input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 12px; color: var(--text); outline-offset: -2px; }
main { padding: 28px 28px 0; }
.shop-banner { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); padding: 24px 30px 20px; position: relative; }
.telegram-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; background: var(--pill); color: var(--on-pill); padding: 11px 19px; font-weight: 650; font-size: 12px; }
.telegram-btn img { width: 19px; height: 19px; filter: var(--primary-icon-filter); }
.telegram-btn:hover { background: var(--ink-hover); }
.shop-banner > .telegram-btn { position: absolute; right: 26px; top: 20px; }
.banner-brand { display: flex; align-items: center; gap: 25px; padding: 40px 0 24px; }
.brand-seal { display: inline-grid; place-items: center; flex-shrink: 0; width: 112px; height: 112px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.brand-seal img { width: 100%; height: 100%; object-fit: contain; }
.banner-kicker { display: flex; align-items: center; gap: 8px; font: 500 10px/1.5 Mono, monospace; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.banner-kicker::before, .collection-title h2::before { content: ''; width: 5px; height: 5px; background: var(--blue); flex-shrink: 0; }
h1 { font: 400 clamp(32px, 4.2vw, 52px)/1.03 Cal, Inter, sans-serif; letter-spacing: -.025em; }
.banner-caption { font-size: 12px; color: var(--muted); margin-top: 12px; }
.banner-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font: 400 10px/1.5 Mono, monospace; border-top: 1px solid var(--border); padding-top: 14px; }
.banner-bottom a { color: var(--text); font-weight: 550; }
.banner-bottom a span { color: var(--blue); margin-left: 8px; }
#categories { display: flex; gap: 10px; overflow-x: auto; padding: 22px 0 26px; scrollbar-width: none; }
#categories::-webkit-scrollbar { display: none; }
#categories button { flex: none; border: 1px solid var(--border); padding: 11px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; background: var(--surface); color: var(--muted); }
#categories button[aria-pressed=true] { background: var(--pill); color: var(--on-pill); box-shadow: var(--shadow); }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 14px 16px; background: var(--soft); border: 1px solid var(--border); border-radius: 8px; }
.collection-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
h2 { font: 400 25px/1.2 Cal, Inter, sans-serif; letter-spacing: -.018em; }
.collection-title h2 { display: flex; align-items: center; gap: 8px; font: 500 11px/1.5 Mono, monospace; letter-spacing: .06em; text-transform: uppercase; }
.item-count { flex-shrink: 0; font: 500 10px/1.5 Mono, monospace; padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); background: var(--surface); }
.catalog-actions { display: flex; align-items: center; gap: 9px; }
.small-btn { height: 39px; border: 1px solid var(--border); border-radius: 6px; padding: 8px 11px; background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; box-shadow: var(--shadow); }
.small-btn img { width: 18px; height: 18px; opacity: .65; }
.small-btn .caret { width: 11px; }
.sort { position: relative; flex-shrink: 0; }
.sort summary { cursor: pointer; list-style: none; }
.sort summary::-webkit-details-marker { display: none; }
.sort-options { position: absolute; top: calc(100% + 6px); right: 0; width: 185px; padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 26px rgb(15 25 40 / .1); z-index: 10; }
.sort-options button { display: block; border: 0; width: 100%; text-align: left; padding: 10px; border-radius: 4px; background: transparent; font-size: 12px; }
.sort-options button:hover, .sort-options button[aria-pressed=true] { background: var(--soft); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product { display: flex; flex-direction: column; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 12px; box-shadow: var(--shadow); min-width: 0; }
.product-art { position: relative; flex-shrink: 0; width: 100%; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: var(--soft); display: grid; place-items: center; }
.product-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-fallback { width: 100%; height: 100%; display: grid; align-content: center; justify-items: center; gap: 9px; padding: 18px; }
.photo-fallback > img { width: 65px; height: 65px; opacity: .25; }
.photo-fallback > span { font-size: 9px; letter-spacing: .04em; color: var(--muted); }
.card-badge { position: absolute; left: 10px; top: 10px; background: var(--accent-soft); color: var(--blue); border: 1px solid var(--accent-line); border-radius: 4px; padding: 4px 7px; font: 600 9px/1.3 Mono, monospace; }
.card-badge.unavailable { background: var(--surface); color: var(--muted); border-color: var(--border); }
.favorite-btn { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; padding: 7px; border: 1px solid rgb(23 32 51 / .04); background: var(--surface); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 6px rgb(23 32 51 / .07); }
.favorite-btn img { width: 19px; height: 19px; opacity: .55; }
.favorite-btn[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent-line); }
.favorite-btn[aria-pressed=true] img { opacity: 1; }
.product-info { display: flex; flex-direction: column; flex: 1; padding: 13px 2px 4px; }
.product-title { display: flex; align-items: start; gap: 5px; }
h3 { font-size: 13px; line-height: 1.4; font-weight: 650; letter-spacing: -.015em; overflow-wrap: anywhere; }
.ori { flex-shrink: 0; background: var(--accent-soft); color: var(--blue); border: 1px solid var(--accent-line); border-radius: 4px; font: 600 8px/1.3 Mono, monospace; letter-spacing: .045em; padding: 3px 4px; margin-top: 1px; }
.category-label { color: var(--muted); font-size: 10px; margin-top: 5px; }
.price { font-size: 18px; font-weight: 700; line-height: 27px; letter-spacing: -.035em; margin: auto 0 10px; padding-top: 10px; }
.price.ask-price { font-size: 13px; letter-spacing: 0; }
.order { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: var(--pill); color: var(--on-pill); border: 1px solid var(--pill); border-radius: 6px; padding: 10px 5px; font-weight: 600; font-size: 10px; }
.order img { width: 14px; height: 14px; opacity: .8; filter: var(--primary-icon-filter); }
.order:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.catalog-note { font-size: 11px; color: var(--muted); padding: 21px 0; text-align: center; }
.state { grid-column: 1 / -1; padding: 44px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 20px; }
.state h3 { font-size: 16px; color: var(--text); }
.state p { margin: 8px 0 15px; }
.state .small-btn { margin-right: 8px; }
.help { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px 0 25px; }
.help h2 { font-size: 20px; }
.help p { font-size: 11px; color: var(--muted); margin-top: 5px; }
footer { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; letter-spacing: .04em; padding: 8px 28px 27px; color: var(--muted); }
.shop-dialog { border: 1px solid var(--border); border-radius: 10px; max-width: 400px; width: calc(100% - 36px); padding: 30px; background: var(--surface); color: var(--text); }
.shop-dialog::backdrop { background: rgb(10 18 28 / .5); }
.shop-dialog .brand-seal { width: 65px; height: 65px; margin-bottom: 18px; }
.shop-dialog .brand-seal img { width: 100%; height: 100%; }
.shop-dialog p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 13px; }
.shop-dialog .telegram-btn { margin-top: 22px; width: 100%; }
.dialog-close { position: absolute; right: 12px; top: 12px; }
.notice { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--pill); color: var(--on-pill); border-radius: 99px; padding: 11px 19px; font-size: 12px; white-space: nowrap; z-index: 40; box-shadow: 0 4px 16px rgb(10 18 28 / .1); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:root[data-theme='dark'] .icon-btn img, :root[data-theme='dark'] .search-panel label img, :root[data-theme='dark'] .small-btn img, :root[data-theme='dark'] .photo-fallback > img, :root[data-theme='dark'] .favorite-btn img { filter: invert(1); }
@media(max-width: 800px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media(max-width: 620px) {
  .top-inner { padding: 13px 18px; gap: 8px; }.store-pill { gap: 7px; padding-right: 12px; }.avatar { width: 31px; height: 31px; }.avatar img { width: 100%; height: 100%; }.store-pill strong { font-size: 10px; }.store-pill small { font-size: 9px; }.top-actions { gap: 4px; }.icon-btn { width: 34px; height: 34px; padding: 7px; }.icon-btn img { width: 21px; height: 21px; }
  main { padding: 20px 18px 0; }.search-panel { padding-inline: 18px; }.search-panel input { font-size: 16px; }
  .shop-banner { border-radius: 10px; padding: 18px 20px 15px; }.shop-banner > .telegram-btn { top: 14px; right: 17px; padding: 8px 13px; font-size: 10px; }.telegram-btn img { width: 16px; height: 16px; }.banner-brand { padding: 37px 0 22px; gap: 17px; }.brand-seal { width: 83px; height: 83px; }.brand-seal img { width: 100%; height: 100%; }.banner-kicker { font-size: 8px; margin-bottom: 5px; }h1 { font-size: 32px; }.banner-caption { font-size: 9px; margin-top: 8px; }.banner-bottom { font-size: 9px; padding-top: 12px; }
  #categories { padding: 19px 0 23px; gap: 8px; }#categories button { font-size: 12px; padding: 10px 18px; }.catalog-heading { flex-wrap: wrap; gap: 12px; margin-bottom: 16px; padding: 11px 12px; }.collection-title { gap: 7px; }h2 { font-size: 23px; }.item-count { font-size: 10px; padding: 4px 9px; }.catalog-actions { margin-left: auto; gap: 6px; }.small-btn { height: 34px; padding: 7px 9px; border-radius: 6px; font-size: 10px; }.small-btn img { width: 16px; height: 16px; }.small-btn .caret { display: none; }
  .catalog-heading h2 { font-size: 10px; }.catalog-heading .item-count { padding-inline: 7px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }.product { padding: 10px; border-radius: 10px; }.product-art { border-radius: 6px; }.product-info { padding-top: 10px; }h3 { font-size: 12px; }.card-badge { top: 8px; left: 7px; padding: 4px 6px; font-size: 8px; max-width: calc(100% - 46px); }.favorite-btn { width: 29px; height: 29px; right: 6px; top: 6px; padding: 6px; }.favorite-btn img { width: 17px; height: 17px; }.price { font-size: 17px; }.order { font-size: 10px; }.help { padding: 20px; border-radius: 10px; gap: 12px; }.help h2 { font-size: 18px; }.help .telegram-btn { padding: 10px 12px; font-size: 11px; flex-shrink: 0; }footer { padding-inline: 18px; }
}
@media(max-width: 360px) { .top-inner, main { padding-inline: 13px; }.top-actions { gap: 0; }.store-pill { padding-right: 9px; }.brand-seal { width: 71px; height: 71px; }.brand-seal img { width: 100%; height: 100%; }h1 { font-size: 29px; }.banner-brand { gap: 12px; }.product-grid { gap: 10px; }.product { padding: 8px; }.help { flex-direction: column; align-items: start; } }
@media(prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; }button, a { transition: background-color .18s, box-shadow .18s, color .18s; }.shop-banner, .product { animation: appear .3s ease-out both; }.product:nth-child(2) { animation-delay: .03s; }.product:nth-child(3) { animation-delay: .06s; }.product:nth-child(n+4) { animation-delay: .09s; }.favorite-btn:active { transform: scale(.9); }#refresh.is-loading img { animation: spin .8s linear infinite; }.shop-dialog[open] { animation: appear .18s ease-out; }@keyframes appear { from { opacity: 0; transform: translateY(6px); } }@keyframes spin { to { transform: rotate(360deg); } } }
