@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ecebf1;
  --surface: #fbfafc;
  --sunken: #e6e3ec;
  --text: #1d1a2e;
  --text-2: #48445a;
  --muted: #6b677c;
  --line: rgb(29 26 46 / .09);
  --accent: #1d1a2e;
  --accent-hover: #000;
  --accent-soft: rgb(29 26 46 / .07);
  --gold-text: #8a8f9c;
  --warn: #a8661a;
  --on-accent: #fff;
  --error: #b42318;
  --glass-bg: rgb(251 250 252 / .92);
  --cap-bg: rgb(251 250 252 / .9);
  --img-from: #f6f5f8;
  --pill-bg: rgb(255 255 255 / .65);
  --draft-bg: #fff3dc;
  --draft-line: #ecd3a3;
  --zoom-bg: rgb(236 235 241 / .98);
  --shade: rgb(29 26 46 / .45);
  --coin-shadow: rgb(29 26 46 / .22);
  --aurora-1: #d6e2f3;
  --aurora-2: #ddd3ff;
  --aurora-3: #cdeee2;
  --aurora-op: .45;
  --sub-bg: linear-gradient(135deg, #e4e8f0 0%, #ebe6f4 55%, #e1eee7 100%);
  --guilloche: rgb(29 26 46 / .12);
  --tiktok: #000;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-display: clamp(38px, 5.2vw, 66px);
  --fs-h1: clamp(30px, 3.8vw, 46px);
  --fs-h2: clamp(26px, 2.8vw, 34px);
  --fs-h3: 17px;
  --fs-body: 16px;
  --fs-small: 15px;
  --fs-meta: 13px;
  --radius: 24px;
  --radius-sm: 16px;
  --hd-h: 72px;
  --shadow: 0 1px 2px rgb(29 26 46 / .04), 0 10px 30px rgb(29 26 46 / .06);
  --shadow-hover: 0 2px 4px rgb(29 26 46 / .05), 0 18px 44px rgb(29 26 46 / .1);
  color-scheme: light dark;
}
/* темна тема: за системою, якщо відвідувач не вибрав світлу вручну, або вибрана вручну (theme.js) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #13111b;
    --surface: #1c1926;
    --sunken: #262232;
    --text: #ece9f3;
    --text-2: #c4c0d2;
    --muted: #9a95ab;
    --line: rgb(255 255 255 / .09);
    --accent: #ece9f3;
    --accent-hover: #fff;
    --accent-soft: rgb(236 233 243 / .1);
    --gold-text: #9aa0ad;
    --warn: #e0a04a;
    --on-accent: #13111b;
    --error: #ff8a7a;
    --glass-bg: rgb(28 25 38 / .9);
    --cap-bg: rgb(28 25 38 / .92);
    --img-from: #2b2738;
    --pill-bg: rgb(255 255 255 / .06);
    --draft-bg: #3a2c12;
    --draft-line: #6b5124;
    --zoom-bg: rgb(19 17 27 / .97);
    --shade: rgb(0 0 0 / .6);
    --coin-shadow: rgb(0 0 0 / .55);
    --aurora-1: #2a3854;
    --aurora-2: #3d3170;
    --aurora-3: #1e4c3e;
    --aurora-op: .5;
    --sub-bg: linear-gradient(135deg, #1f2638 0%, #241f35 55%, #1a2b25 100%);
    --guilloche: rgb(236 233 243 / .1);
    --tiktok: #fff;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .35);
    --shadow-hover: 0 2px 4px rgb(0 0 0 / .35), 0 18px 44px rgb(0 0 0 / .45);
  }
}
:root[data-theme='dark'] {
  --bg: #13111b;
  --surface: #1c1926;
  --sunken: #262232;
  --text: #ece9f3;
  --text-2: #c4c0d2;
  --muted: #9a95ab;
  --line: rgb(255 255 255 / .09);
  --accent: #ece9f3;
  --accent-hover: #fff;
  --accent-soft: rgb(236 233 243 / .1);
  --gold-text: #9aa0ad;
  --warn: #e0a04a;
  --on-accent: #13111b;
  --error: #ff8a7a;
  --glass-bg: rgb(28 25 38 / .9);
  --cap-bg: rgb(28 25 38 / .92);
  --img-from: #2b2738;
  --pill-bg: rgb(255 255 255 / .06);
  --draft-bg: #3a2c12;
  --draft-line: #6b5124;
  --zoom-bg: rgb(19 17 27 / .97);
  --shade: rgb(0 0 0 / .6);
  --coin-shadow: rgb(0 0 0 / .55);
  --aurora-1: #2a3854;
  --aurora-2: #3d3170;
  --aurora-3: #1e4c3e;
  --aurora-op: .5;
  --sub-bg: linear-gradient(135deg, #1f2638 0%, #241f35 55%, #1a2b25 100%);
  --guilloche: rgb(236 233 243 / .1);
  --tiktok: #fff;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .35);
  --shadow-hover: 0 2px 4px rgb(0 0 0 / .35), 0 18px 44px rgb(0 0 0 / .45);
}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.lm-lock, html.lm-lock body, html.zoom-lock, html.zoom-lock body { overflow: hidden; }
body { position: relative; margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-body)/1.65 var(--sans); font-variant-numeric: normal; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); margin: 0; }
h1 { font-size: var(--fs-h1); }
/* виділене слово – сріблястий градієнт, як метал монети (акцент графітовий, тож кольором не виділиш) */
h1 em, h2 em { font-style: normal; color: var(--text-2); background: linear-gradient(100deg, var(--text-2), var(--gold-text) 45%, var(--text-2) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .08em; margin-right: -.08em; }
ul { list-style: none; margin: 0; padding: 0; }
img, video, svg { max-width: 100%; display: block; }
.wrap { position: relative; z-index: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
.muted { color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; }

.aurora { position: absolute; inset: 0 0 auto; height: 760px; overflow: hidden; z-index: 0; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(110px); opacity: var(--aurora-op); animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 640px; height: 520px; left: -140px; top: -120px; background: var(--aurora-1); animation-duration: 19s; }
.aurora i:nth-child(2) { width: 560px; height: 520px; right: -100px; top: -40px; background: var(--aurora-2); animation-duration: 24s; }
.aurora i:nth-child(3) { width: 560px; height: 420px; left: 36%; top: 300px; background: var(--aurora-3); animation-duration: 27s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }
@media (max-width: 760px) { .aurora i { filter: blur(70px); } .aurora i:nth-child(1) { width: 380px; height: 360px; } .aurora i:nth-child(2) { width: 340px; height: 360px; } .aurora i:nth-child(3) { width: 320px; height: 300px; left: 20%; } }

.glass { background: var(--glass-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; white-space: nowrap; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-lg { width: 100%; min-height: 54px; font-size: var(--fs-body); }
@media (hover: hover) {
  .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
  .btn-ghost:hover { background: var(--sunken); border-color: var(--line); }
}

.hd { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.hd::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--gold-text) 50%, var(--accent) 70%, transparent); opacity: .55; }
.hd-row { display: flex; align-items: center; gap: 12px; height: var(--hd-h); }
.hd-logo { order: -1; display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--sans); letter-spacing: -.02em; color: var(--text); text-decoration: none; white-space: nowrap; }
.hd-logo img { width: 36px; height: 36px; border-radius: 9px; }
.ft-logo img { width: 32px; height: 32px; }
.hd-cta { margin-left: auto; }
@media (max-width: 900px) {
  :root { --hd-h: 64px; }
  .hd-logo { font-size: 21px; }
}

.hero { padding-top: 32px; }
.hero-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 32px; min-height: min(620px, calc(100vh - var(--hd-h) - 64px)); padding: 56px 64px; }
.hero-card::before { content: ''; position: absolute; z-index: 0; top: 50%; right: -6%; width: min(1000px, 90%); aspect-ratio: 1; transform: translateY(-50%); background: var(--guilloche); -webkit-mask: url(/img/guilloche.svg) center / contain no-repeat; mask: url(/img/guilloche.svg) center / contain no-repeat; pointer-events: none; }
.hero-card::after { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 80% at 78% 50%, var(--accent-soft), transparent 70%); pointer-events: none; }
.hero-text, .hero-coins { position: relative; z-index: 1; }
.hero-text { min-width: 0; }
.hero-text h1 { font-size: var(--fs-display); line-height: 1.08; letter-spacing: -.03em; }
.hero-lead { font-size: 18px; color: var(--text-2); max-width: 46ch; margin: 24px 0 32px; }

.hero-coins { position: relative; height: 440px; min-width: 0; }
.hc-bg { position: absolute; width: 34%; height: auto; aspect-ratio: 1; object-fit: contain; opacity: .9; filter: drop-shadow(0 14px 22px var(--coin-shadow)); }
.hc-bg1 { left: 2%; top: 8%; animation: hc-bob 7s ease-in-out infinite; }
.hc-bg2 { right: 0; bottom: 14%; animation: hc-bob 8s ease-in-out -3s infinite; }
@keyframes hc-bob { 50% { transform: translateY(-14px) rotate(6deg); } }
.hc-main { position: absolute; left: 50%; top: 46%; width: min(62%, 300px); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 18px; text-decoration: none; z-index: 2; transition: opacity .25s; perspective: 1200px; }
.hc-main.swap { opacity: 0; }
.hc-flip { position: relative; display: block; width: 100%; aspect-ratio: 1; transform-style: preserve-3d; animation: hc-flip 8s ease-in-out infinite; }
.hc-flip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 24px 30px var(--coin-shadow)); }
.hc-rev { transform: rotateY(180deg); }
@keyframes hc-flip { 0%, 35% { transform: rotateY(0); } 50%, 85% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.hc-cap { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 18px; border-radius: 14px; background: var(--cap-bg); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; max-width: 100%; }
.hc-cap b { font-size: var(--fs-small); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.hc-cap span { font-size: var(--fs-meta); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .hc-flip, .hc-bg { animation: none; } }
@media (max-width: 900px) {
  .hero { padding-top: 16px; }
  .hero-card::before { top: auto; bottom: -12%; right: 50%; width: 140%; transform: translateX(50%); }
  .hero-card::after { background: radial-gradient(80% 50% at 50% 80%, var(--accent-soft), transparent 70%); }
  .hero-card { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 32px 22px; gap: 8px; }
  .hero-lead { font-size: var(--fs-body); margin-bottom: 24px; }
  .hero-coins { height: 320px; }
  .hc-main { width: min(58%, 220px); }
}
@media (max-width: 480px) { .hero-text .btn { width: 100%; } }

.page-head { padding-top: 48px; }
.page-head p { margin: 12px 0 0; max-width: 60ch; color: var(--text-2); }

main.wrap { padding-top: 28px; padding-bottom: 32px; min-height: 40vh; }
.sec-title { font-size: var(--fs-h2); margin: 32px 0 20px; scroll-margin-top: calc(var(--hd-h) + 16px); }
#catalog { scroll-margin-top: calc(var(--hd-h) + 16px); }

.filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; padding: 18px; margin-bottom: 24px; border-radius: var(--radius-sm); }
.filter-fields, .filter-side { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; min-width: 0; }
.filter-fields { flex: 1 1 480px; }
.select { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; max-width: 260px; min-width: 0; }
.select span { font-size: var(--fs-meta); font-weight: 500; color: var(--muted); }
.select select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 46px; padding: 0 36px 0 14px; font: 400 var(--fs-small)/1.3 var(--sans); color: var(--text); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b677c' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-overflow: ellipsis; }
.select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.select-wide { flex-basis: 260px; max-width: 320px; }
.reset { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: var(--fs-small); font-weight: 500; text-decoration: none; white-space: nowrap; }
.reset::before { content: '×'; font-size: 20px; line-height: 1; color: var(--muted); }
@media (hover: hover) { .reset:hover { border-color: var(--accent); color: var(--accent); } }
@media (max-width: 600px) {
  .filters { padding: 14px; gap: 12px; }
  .filter-fields, .filter-side { flex: 1 1 100%; }
  .select { max-width: none; flex-basis: calc(50% - 6px); }
  .select-wide { flex-basis: 100%; }
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.card { min-width: 0; }
.card a { display: flex; flex-direction: column; height: 100%; padding: 10px; border-radius: 24px; text-decoration: none; }
@media (hover: hover) {
  .card a { transition: transform .25s, box-shadow .25s; }
  .card a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
}
.card-img { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); background: linear-gradient(160deg, var(--img-from), var(--sunken)); overflow: hidden; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 11%; filter: drop-shadow(0 12px 16px var(--coin-shadow)); }
.status-sold .card-img img { filter: grayscale(.7) drop-shadow(0 12px 16px var(--coin-shadow)); opacity: .8; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 8px 6px; flex: 1; min-width: 0; }
.card-meta { margin: 0; font-size: var(--fs-meta); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body h3 { font: 600 var(--fs-h3)/1.3 var(--sans); letter-spacing: -.01em; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.price { font: 600 17px/1.2 var(--sans); color: var(--text); white-space: nowrap; }
.status-sold .price { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
/* знижка: стара ціна закреслена, нова, «−N%» */
.price-wrap { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.price-old { color: var(--muted); font-size: .82em; text-decoration-thickness: 1px; white-space: nowrap; }
.sale { align-self: center; padding: 2px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font: 600 12px/1.3 var(--sans); white-space: nowrap; }
.buy-price .price-old { font-size: 18px; }
.buy-price .sale { font-size: 14px; padding: 3px 9px; }
/* у картці: стара ціна й «−N%» рядком над новою, щоб поруч уміщався метал */
.card-foot { align-items: flex-end; }
.card-foot .price-wrap { gap: 2px 6px; }
.card-foot .price-old { order: 1; font-size: var(--fs-meta); }
.card-foot .sale { order: 2; font-size: 11px; padding: 1px 6px; }
.card-foot .price { order: 3; flex-basis: 100%; }
.card-foot .chip { flex-shrink: 0; }
.hc-cap s { color: var(--muted); font-weight: 400; margin-right: 2px; }
.hc-cap i { font-style: normal; }
.chip { font-size: var(--fs-meta); color: var(--text-2); padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 560px) {
  .card a { padding: 6px; border-radius: 18px; }
  .chip { display: none; }
  .card-body h3 { font-size: var(--fs-small); }
  .price { font-size: var(--fs-small); }
}

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font: 600 var(--fs-meta)/1.3 var(--sans); background: var(--surface); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.card-img .badge { position: absolute; top: 10px; left: 10px; }
.badge-new { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.badge-reserved { color: var(--warn); }
.badge-sold { color: var(--muted); }
@media (max-width: 560px) { .card-img .badge { top: 6px; left: 6px; padding: 3px 9px; } }

.no-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 1; color: var(--muted); }
.empty { padding: 64px 0; text-align: center; color: var(--muted); }


.crumbs { font-size: var(--fs-meta); letter-spacing: .04em; color: var(--muted); margin: 12px 0 20px; }
.crumbs a { color: var(--muted); }
.draft-note { margin: 12px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--draft-bg); border: 1px solid var(--draft-line); }
.lot { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .lot { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.lot-info { min-width: 0; }
.lot-info h1 { font-size: var(--fs-h1); }
.lot-meta { margin: 12px 0 24px; font-size: var(--fs-meta); font-weight: 500; color: var(--muted); }
.buy-panel { padding: 26px; }
.buy-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.buy-price .price { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; }
.buy-note { margin: 14px 0 0; font-size: var(--fs-meta); color: var(--muted); }
.lot-section { margin-top: 36px; }
.lot-section h2 { font: 700 20px/1.2 var(--sans); margin-bottom: 12px; }
.specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; overflow-wrap: anywhere; }
.description p { margin: 0 0 1em; color: var(--text-2); white-space: pre-line; max-width: 65ch; }

.gallery { position: sticky; top: calc(var(--hd-h) + 24px); min-width: 0; }
@media (max-width: 900px) { .gallery { position: static; } }
.stage { overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(160deg, var(--img-from), var(--sunken)); }
.stage img, .stage video { width: 100%; height: 100%; object-fit: contain; }
.stage img { padding: 6%; cursor: zoom-in; filter: drop-shadow(0 22px 30px var(--coin-shadow)); }
.thumbs { margin: 12px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs button { position: relative; padding: 0; width: 76px; height: 76px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); cursor: pointer; }
.thumbs button[aria-current='true'] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / .5); font-size: 18px; }
.thumb-video { display: block; width: 100%; height: 100%; background: #2a261f; }

.zoom { position: fixed; inset: 0; z-index: 100; background: var(--zoom-bg); display: grid; place-items: center; overflow: hidden; cursor: zoom-in; touch-action: none; }
.zoom img { max-width: 100%; max-height: 100vh; object-fit: contain; transition: transform .2s; user-select: none; -webkit-user-drag: none; }
.zoom.zoomed { cursor: zoom-out; }
.zoom.zoomed img { transition: none; }
.zoom .close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }

.prose { max-width: 760px; padding: 40px; margin-top: 12px; }
.prose h2 { font: 700 20px/1.2 var(--sans); margin: 32px 0 8px; }
.prose p { color: var(--text-2); }
@media (max-width: 600px) { .prose { padding: 26px 20px; } }

.outro { padding-top: 40px; padding-bottom: 72px; }
.sub { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 32px; padding: 52px 56px; border-radius: var(--radius); overflow: hidden; background: var(--sub-bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sub h2 { font-size: var(--fs-h2); }
.sub-lead { margin: 10px 0 0; font-size: 17px; color: var(--text-2); }
.sub-form { display: flex; gap: 8px; margin-top: 24px; max-width: 520px; }
.sub-form input, .notice-form input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: var(--fs-body) var(--sans); }
.sub-form input:focus-visible, .notice-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sub-form .btn { min-height: 50px; }
.sub-soc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sub-soc a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--pill-bg); border: 1px solid var(--line); font-size: var(--fs-small); font-weight: 500; text-decoration: none; }
@media (hover: hover) { .sub-soc a:hover { background: var(--surface); } }
.sub-coins { position: relative; height: 320px; }
.sub-coins img { position: absolute; top: 50%; left: 50%; width: 58%; max-width: 230px; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 26px var(--coin-shadow)); }
.sub-coins img:nth-child(1) { transform: translate(-50%, -50%); z-index: 3; }
.sub-coins.n2 img:nth-child(1), .sub-coins.n3 img:nth-child(1) { transform: translate(-50%, -50%) scale(1.05); }
.sub-coins img:nth-child(2) { transform: translate(-108%, -42%) rotate(-12deg) scale(.82); z-index: 2; }
.sub-coins img:nth-child(3) { transform: translate(8%, -58%) rotate(10deg) scale(.82); z-index: 1; }
@media (max-width: 900px) {
  .sub { grid-template-columns: minmax(0, 1fr); padding: 30px 22px; gap: 8px; }
  .sub-coins { order: -1; height: 170px; }
  .sub-coins img { width: 40%; max-width: 150px; }
}
@media (max-width: 480px) { .sub-form { flex-direction: column; } }
.notice { max-width: 580px; margin: 24px auto; padding: 40px 32px; text-align: center; }
.notice h1 { font-size: clamp(26px, 3vw, 34px); }
.notice p { color: var(--text-2); margin: 14px 0 0; }
.notice > .btn, .notice form:not(.notice-form) .btn { margin-top: 26px; }
.notice-form { display: flex; gap: 8px; margin-top: 26px; }
@media (max-width: 480px) { .notice { padding: 28px 20px; } .notice-form { flex-direction: column; } }

.ft { position: relative; z-index: 1; background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 28px; }
.ft-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.ft-logo { text-align: left; }
.ft p { max-width: 44ch; margin: 16px 0 0; font-size: var(--fs-small); color: var(--text-2); }
.ft-soc { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ft-soc a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--fs-small); color: var(--text-2); text-decoration: none; }

.ft-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-meta); color: var(--muted); }
.ft-copy a { color: var(--muted); }

.lm { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 24px 16px; border: 0; background: transparent; overflow: hidden; }
.lm[open] { display: grid; place-items: start center; }
.lm::backdrop { background: var(--shade); }
.lm-panel { display: flex; flex-direction: column; width: min(1180px, 100%); max-height: calc(100dvh - 48px); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px rgb(29 26 46 / .3); overflow: hidden; }
.lm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.lm-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: 600 var(--fs-small)/1 var(--sans); cursor: pointer; }
.lm-x { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
@media (hover: hover) { .lm-back:hover, .lm-x:hover { background: var(--sunken); } }
.lm-body { overflow-y: auto; overscroll-behavior: contain; padding: 28px 32px 36px; }
.lm-body .gallery { position: static; }
.lm-body .lm-loading { margin: 80px 0; text-align: center; color: var(--muted); }
@media (max-width: 760px) {
  .lm { padding: 0; }
  .lm-panel { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .lm-body { padding: 16px 16px 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .lm[open] .lm-panel { animation: lm-in .22s ease-out; }
  @keyframes lm-in { from { opacity: 0; transform: translateY(12px); } }
}

.ic-telegram { color: #26a5e4; }
.ic-tiktok { color: var(--tiktok); filter: drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55); }

.order summary { list-style: none; }
.order summary::-webkit-details-marker { display: none; }
.order[open] summary { display: none; }
.order-form { display: grid; gap: 14px; }
.of-field { display: grid; gap: 6px; }
.of-field span, .of-contact legend { font-size: var(--fs-meta); font-weight: 600; color: var(--text-2); }
.of-field input { min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); font: var(--fs-body) var(--sans); }
.of-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.of-contact { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.of-contact legend { margin-bottom: 6px; padding: 0; }
.of-contact label { position: relative; }
.of-contact input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.of-contact span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: var(--fs-small); font-weight: 500; cursor: pointer; }
.of-contact input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.of-contact input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.of-error { margin: 0; color: var(--error); font-size: var(--fs-small); }
.btn[disabled] { opacity: .6; cursor: wait; }
.ask { margin-top: 10px; }
.order-done { padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgb(124 92 42 / .25); }
.order-done b { font-size: 17px; }
.order-done p { margin: 4px 0 0; color: var(--text-2); }

.card-img[data-photos] { touch-action: pan-y; }
.card-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.card-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text); opacity: .22; transition: opacity .2s, transform .2s; }
.card-dots i.on { opacity: .75; transform: scale(1.15); }
.card-img .card-fade { position: absolute; inset: 0; opacity: 0; pointer-events: none; }

.more[aria-busy='true'] { opacity: .6; cursor: wait; }
[data-catalog][aria-busy='true'] .grid { opacity: .5; transition: opacity .15s; }

.theme-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text-2); cursor: pointer; }
.theme-btn svg { display: none; width: 20px; height: 20px; }
:root:not([data-theme]) .theme-btn .ti-auto, :root[data-theme='light'] .theme-btn .ti-light, :root[data-theme='dark'] .theme-btn .ti-dark { display: block; }
@media (hover: hover) { .theme-btn:hover { color: var(--accent); border-color: var(--accent); } }
.theme-btn + .hd-cta { margin-left: 0; }
/* соцмережі в шапці: лише іконки; на вузьких екранах їх немає – вони є в блоці перед підвалом і в підвалі */
.hd-soc { display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.hd-soc a { display: grid; place-items: center; width: 40px; height: 44px; border-radius: 12px; }
.hd-soc .icon { width: 20px; height: 20px; }
@media (hover: hover) { .hd-soc a:hover { background: var(--pill-bg); } }
.hd-soc + .theme-btn { margin-left: 0; }
@media (max-width: 640px) { .hd-soc { display: none; } .hd-soc + .theme-btn { margin-left: auto; } }
@media (max-width: 420px) { .hd-logo { font-size: 19px; gap: 8px; } .hd-logo img { width: 32px; height: 32px; } .hd-cta { padding: 0 14px; } }
@media (max-width: 380px) { .hd-row { gap: 8px; } .hd-logo { font-size: 17px; gap: 7px; } .hd-logo img { width: 30px; height: 30px; } .hd-cta { padding: 0 12px; gap: 7px; font-size: 14px; } .theme-btn { width: 42px; } }
.paging { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 40px auto 0; max-width: 360px; }
.paging-info { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.paging-bar { width: 100%; max-width: 240px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.paging-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .3s ease; }
.more { margin-top: 8px; width: 100%; min-height: 52px; }
.more .icon { width: 18px; height: 18px; }
