/* The Socium marketplace subdomain (owner 2026-11-22): the site header, a short hero and the storefront. Colours and
   the header come from cabinet.css; the catalogue and product page from storefront.css. */
.market-page { min-height: 100vh; display: flex; flex-direction: column; }
.market-page .market-shell { flex: 1 0 auto; width: var(--wrap); margin: 0 auto; padding: 104px 0 48px; outline: 0; }
.market-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; padding: 28px 30px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); }
.market-head[hidden] { display: none; }
.market-head h1 { font-size: clamp(28px, 3.4vw, 42px); }
.market-head p { margin-top: 8px; max-width: 640px; }
.market-trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.market-trust li { padding: 7px 14px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.market-head-actions { display: flex; gap: 10px; }
.market-head-actions a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.market-head-actions .primary { background: var(--inv-bg); color: var(--inv-fg); }
.market-head-actions .secondary { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); }
.market-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 26px 20px 34px; color: var(--soft); font-size: 14px; }
.market-foot a { color: var(--soft); }
@media (max-width: 640px) {
  .market-page .market-shell { padding-top: 92px; }
  .market-head { padding: 22px 20px; }
  .market-head-actions { width: 100%; }
  .market-head-actions a { flex: 1 1 0; justify-content: center; }
}

/* «Как это работает»: three steps that rise in one after another as they scroll into view. */
.market-how { margin-top: 40px; }
.market-how[hidden] { display: none; }
.market-how h2 { margin-bottom: 16px; font-size: clamp(22px, 2.4vw, 30px); }
.market-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.market-steps li { display: grid; gap: 8px; padding: 22px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 110ms); }
.market-steps li.is-hidden { opacity: 0; transform: translateY(22px); }
.market-steps li.is-shown { opacity: 1; transform: none; }
.market-steps i { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--sky); color: var(--blue); font-style: normal; font-weight: 700; }
.market-steps b { color: var(--ink); font-size: 17px; }
.market-steps p { color: var(--soft); font-size: 14.5px; line-height: 1.5; }
.sf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.market-head { animation: sf-rise .5s cubic-bezier(.16, 1, .3, 1); }
@media (prefers-reduced-motion: reduce) { .market-head { animation: none; } .market-steps li { transition: none; } }

/* The official store's page and the rules (owner 2026-11-22). */
.market-page-view[hidden] { display: none; }
.market-page-view { display: grid; gap: 18px; animation: sf-rise .45s cubic-bezier(.16, 1, .3, 1); }
.market-store { display: flex; gap: 26px; align-items: flex-start; padding: 28px 30px; border-radius: var(--r-xl); background: radial-gradient(120% 100% at 100% 0, color-mix(in srgb, var(--blue) 12%, transparent), transparent 60%), var(--paper); box-shadow: var(--shadow); }
.market-store-mark { flex: 0 0 96px; width: 96px; height: 96px; padding: 14px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); object-fit: contain; }
:root[data-theme="dark"] .market-store-mark { background: transparent; filter: invert(1); box-shadow: none; }
.market-store-text { display: grid; gap: 10px; min-width: 0; }
.market-store-text h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: clamp(26px, 3vw, 38px); }
.market-store-text p { color: var(--ink); line-height: 1.6; }
.market-store-reviews { padding-top: 22px; }
.market-store-reviews h2 { margin-bottom: 8px; font-size: 22px; }
.market-review-item { margin-left: auto; color: var(--link); font-size: 13.5px; font-weight: 600; }
.sf-stars i { color: var(--line); font-style: normal; }
.market-doc { display: grid; gap: 14px; padding: 30px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); }
.market-doc h1 { font-size: clamp(26px, 3vw, 36px); }
.market-doc h2 { margin-top: 10px; font-size: 20px; }
.market-doc-text, .market-doc p { color: var(--ink); line-height: 1.7; }
@media (max-width: 640px) { .market-store { flex-direction: column; padding: 22px 20px; } }
.market-store-reviews .sf-stars { color: #f59e0b; letter-spacing: 1px; }
.market-store-reviews .sf-stars i { color: var(--line); }

/* A seller's page: a letter mark instead of the Socium logo, the seller tag and their items below. */
.market-seller-mark { flex: 0 0 96px; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; background: linear-gradient(135deg, var(--blue), color-mix(in srgb, var(--blue) 55%, #a855f7)); color: #fff; font-size: 42px; font-weight: 800; box-shadow: var(--shadow); }
.sf-seller-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.market-seller-note { font-size: 14px; }
.market-seller-items { margin: 28px 0 4px; font-size: 22px; }
@media (max-width: 640px) { .market-seller-mark { width: 72px; height: 72px; flex-basis: 72px; font-size: 32px; border-radius: 22px; } }
