/* Socium landing v6 — prototype (owner 2026-11-30, round 2; desktop first). The live socium.tools look: light page,
   graphite ink, the Socium orange, Onest; every product keeps its own colour. A dark theme as on thredium.app.
   Motion: landing.js (GSAP + ScrollTrigger). */
@font-face { font-family: Onest; src: url("onest-cyrillic.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; src: url("onest-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  --bg: #f3f4f7; --paper: #fff; --ink: #1d202b; --soft: #4d5364; --hint: #666c7c; --line: #e2e4ea; --tint: #f8f9fb;
  --inv-bg: #1d202b; --inv-fg: #fff; --inv-hover: #000; --hot: #1d202b;
  --bar: #1d202b; --nav: rgb(255 255 255 / .97); --night: #15171f; --night-2: #1f222c; --night-soft: #b9bdca;
  --accent: #ea580c; --accent-deep: #c2410c; --link: #c2410c;
  --thredium: #0a6cff; --instarium: #e2336b; --telegram: #2aabee; --ok: #12a372;
  --r-xl: 32px; --r-l: 22px;
  --shadow: 0 1px 2px rgb(29 32 43 / .06), 0 14px 34px -18px rgb(29 32 43 / .28);
  --wrap: min(1180px, 100% - 40px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1016; --paper: #181b24; --ink: #f1f3f8; --soft: #a6acbd; --hint: #8a90a3; --line: #2b2f3d; --tint: #1d2130;
  --inv-bg: #f1f3f8; --inv-fg: #12141b; --inv-hover: #fff; --hot: #242836;
  --bar: #2a2e3d; --nav: rgb(24 27 36 / .96); --night: #12141b; --night-2: #1c1f29; --link: #ff8a3d;
  --shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 18px 40px -20px rgb(0 0 0 / .8);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background-color .35s ease, color .35s ease; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: var(--wrap); margin: 0 auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 7px 0 22px; border: 0; border-radius: 16px; background: var(--inv-bg); color: var(--inv-fg); font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .16s var(--ease-out), background-color .2s ease; }
.btn i { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--bc, var(--accent)); color: #fff; font-size: 17px; transition: transform .25s var(--ease-out); }
.btn--big { height: 58px; padding-left: 26px; font-size: 17px; }
.btn--big i { width: 44px; height: 44px; border-radius: 13px; }
.btn--light { padding: 0 22px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--inv-hover); } .btn:hover i { transform: translateX(3px); } .btn--light:hover { background: var(--tint); } }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--link); font-size: 16px; font-weight: 700; text-decoration: none; }
.text-link .ic { transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .text-link:hover .ic { transform: translateX(3px); } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-deep); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
:root[data-theme="dark"] .eyebrow { color: #ff8a3d; }
.section { padding: 120px 0 0; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.section-head p { margin: 0; color: var(--soft); font-size: 18px; }

/* Header — as on thredium.app: links in the middle, the section on screen in a grey pill, reading progress along
   the bottom edge (Socium orange), language and theme switches. */
.site-header { position: fixed; top: 12px; left: 50%; z-index: 40; display: flex; align-items: center; gap: 8px; width: var(--wrap); min-height: 62px; padding: 7px 8px 7px 18px; border-radius: 20px; background: var(--nav); box-shadow: var(--shadow); transform: translateX(-50%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display: flex; flex: 1 1 0; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .acct-avatar img { filter: invert(1) brightness(1.6); }
.nav { display: flex; gap: 2px; }
.nav a { padding: 9px 13px; border-radius: 11px; color: var(--ink); font-size: 15.5px; font-weight: 500; text-decoration: none; transition: background-color .15s ease; }
.nav a:hover, .nav a[aria-current] { background: var(--bg); }
.nav a[aria-current] { font-weight: 600; }
.site-header-end { display: flex; flex: 1 1 0; align-items: center; justify-content: flex-end; gap: 6px; }
.site-header .btn { height: 46px; padding: 0 7px 0 18px; font-size: 16px; font-weight: 600; border-radius: 16px; }
.site-header .btn i { width: 32px; height: 32px; border-radius: 11px; font-size: 15px; }
.lang { display: flex; padding: 4px; border-radius: 13px; background: var(--bg); }
.lang a { padding: 6px 9px; border-radius: 10px; color: var(--soft); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.lang a[aria-current] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(29 32 43 / .14); }
.theme-toggle { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 0; border-radius: 13px; background: none; color: var(--ink); font-size: 19px; cursor: pointer; transition: background-color .2s ease; }
.theme-toggle:hover { background: var(--bg); }
.theme-toggle .ic { transition: transform .5s var(--ease-out); }
.theme-toggle:active .ic { transform: rotate(40deg) scale(.9); }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
.nav-progress { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(var(--accent), var(--accent)) 0 100% / calc(var(--progress, 0) * 100%) 2px no-repeat; pointer-events: none; }

/* 1. Hero — centred like thredium.app, but its own: the Socium tile and a network sticker that changes word and colour */
.hero { padding: 150px 0 0; }
.hero-in { text-align: center; container-type: inline-size; }
.kicker { margin: 0; color: var(--accent-deep); font-size: 15px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
:root[data-theme="dark"] .kicker { color: #ff8a3d; }
.hero-title { margin: 18px 0 26px; font-size: clamp(46px, 5.8vw, 82px); font-weight: 800; letter-spacing: -.045em; line-height: 1.06; }
.hero-line { display: block; }
.hero-tile { display: inline-grid; width: 1.04em; height: 1.04em; margin-right: .2em; place-items: center; border-radius: .25em; background: var(--accent); box-shadow: 0 .14em .36em -.14em rgb(20 22 30 / .45); vertical-align: -.14em; transform: rotate(-8deg); }
.hero-tile img { width: .64em; height: .64em; filter: invert(1) brightness(2); }
.sticker { position: relative; display: inline-block; height: 1.14em; padding: 0 .2em; overflow: hidden; border-radius: .22em; background: var(--sc, var(--thredium)); color: #fff; vertical-align: -.17em; box-shadow: 0 .18em .45em -.2em var(--sc, var(--thredium)); transform: rotate(-2deg); transition: background-color .45s ease, box-shadow .45s ease, width .5s var(--ease-out); }
.sticker-word { position: absolute; left: .2em; top: .04em; white-space: nowrap; opacity: 0; transform: translateY(80%); }
.sticker-word.is-on { position: relative; left: 0; opacity: 1; transform: none; }
.hero-lead { max-width: 690px; margin: 0 auto 32px; color: var(--soft); font-size: 19px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px; }
/* The stage is as tall as the front window (cqw: the hero column, which the stage fills; 74 % wide, a 16:9 screen, a 44 px bar, 76 px lower than the back one). */
.stage { position: relative; height: calc(74cqw * 9 / 16 + 44px + 76px); margin: 64px 0 0; text-align: left; }
.win { position: absolute; left: 0; top: 0; width: 74%; overflow: hidden; border-radius: 22px; background: #0b0d14; box-shadow: 0 1px 2px rgb(29 32 43 / .1), 0 44px 90px -44px rgb(10 14 30 / .6); transform-origin: 50% 50%; transition: transform .9s var(--ease-in-out), filter .7s ease, z-index 0s .4s; cursor: pointer; }
.win.is-front { z-index: 2; transform: translate(0, 76px); cursor: default; }
.win.is-back { z-index: 1; transform: translate(35.2%, 0) scale(.94); filter: brightness(.72) saturate(.85); }
.win-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; background: #11131b; color: #fff; font-size: 14px; }
.win-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.win-name img { width: 16px; height: 16px; filter: invert(1) brightness(2); }
.win-net { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--c); font-size: 12.5px; font-weight: 700; }
.win > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c2f3b; }
.stage-switch { display: flex; justify-content: center; gap: 6px; margin: 22px auto 0; }
.stage-switch button { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px 0 14px; overflow: hidden; border: 0; border-radius: 14px; background: none; color: var(--hint); font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.stage-switch img { width: 18px; height: 18px; opacity: .55; transition: opacity .25s ease; }
:root[data-theme="dark"] .stage-switch img { filter: invert(1); }
.stage-switch button:hover { color: var(--ink); }
.stage-switch button.is-on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.stage-switch button.is-on img { opacity: 1; }
.stage-run { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); opacity: 0; }
.stage-switch button.is-on .stage-run { opacity: 1; }
.stage-run i { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(0); }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--soft); font-size: 16px; }
.hero-facts li { display: flex; align-items: center; gap: 9px; }
.hero-facts .ic { color: var(--ok); font-size: 19px; }
.hero-facts b { color: var(--ink); }

/* 2. Products */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-height: 360px; padding: 26px; overflow: hidden; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); }
.product::before { content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 16%, transparent), color-mix(in srgb, var(--c) 7%, transparent) 55%, transparent); pointer-events: none; }
.product-top { display: flex; align-items: center; gap: 14px; }
.product-icon { display: grid; flex: none; width: 56px; height: 56px; place-items: center; border-radius: 16px; background: #0d0f16; color: #fff; font-size: 26px; }
.product-icon img { width: 32px; height: 32px; filter: invert(1); }
.product-icon b { font-size: 20px; font-weight: 800; }
.product-name { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.product-net { color: var(--c); font-size: 14px; font-weight: 700; }
.product p { margin: 0 0 14px; color: var(--soft); }
.jobs-row { display: flex; flex-wrap: wrap; gap: 6px; }
.job-chip { padding: 5px 11px; border-radius: 9px; background: var(--bg); font-size: 13.5px; font-weight: 700; }
.product-foot { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 50%; }
.product-foot .btn i { background: var(--c); }
.product-price { font-size: 15px; color: var(--soft); }
.product-price b { color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.product-shot { position: absolute; right: -36px; bottom: -26px; width: 50%; border-radius: 14px; box-shadow: 0 24px 50px -24px rgb(10 14 30 / .6); transform: rotate(-4deg); opacity: .95; }
.product .product-body { max-width: 52%; }

/* 3. What the apps do */
.apps { --nc: var(--thredium); overflow: hidden; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); }
.apps-tabs { position: relative; display: flex; }
.apps-glider { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.apps-glider path { fill: var(--bar); fill-rule: evenodd; transition: fill .35s ease; }
.apps-tab { position: relative; z-index: 1; display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 10px; min-height: 70px; padding: 0 10px; border: 0; background: none; color: var(--night-soft); font-size: 16.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .3s ease; }
.apps-tab:hover { color: #fff; }
.apps-tab.is-on, .apps-tab.is-on:hover { color: var(--ink); }
.apps-tab small { padding: 2px 8px; border-radius: 999px; background: rgb(255 255 255 / .1); color: var(--night-soft); font-size: 12px; font-weight: 700; transition: background-color .3s ease, color .3s ease; }
.apps-tab.is-on small { background: var(--bg); color: var(--hint); }
.net-dot { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: rgb(255 255 255 / .1); font-size: 15px; font-weight: 800; transition: background-color .3s ease, color .3s ease; }
.apps-tab.is-on .net-dot { background: var(--tc); color: #fff; }
.apps-card { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 34px; align-items: center; min-height: 624px; padding: 30px; }
.apps-copy { display: grid; gap: 18px; }
.apps-head { display: flex; align-items: center; gap: 14px; }
.apps-icon { display: grid; flex: none; width: 58px; height: 58px; place-items: center; border-radius: 17px; background: var(--nc); color: #fff; font-size: 26px; font-weight: 800; box-shadow: 0 14px 30px -14px var(--nc); }
.apps-icon img { width: 32px; height: 32px; filter: invert(1) brightness(2); }
.apps-head h3 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.apps-head small { color: var(--nc); font-size: 14.5px; font-weight: 700; }
.apps-lead { margin: 0; color: var(--soft); }
.feats { display: grid; gap: 2px; }
.feat { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 14px; align-items: center; padding: 9px 12px 9px 9px; overflow: hidden; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; transition: background-color .25s ease; }
.feat .feat-ic { grid-row: 1 / 3; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--tint); color: var(--hint); font-size: 18px; transition: background-color .25s ease, color .25s ease; }
.feat b { font-size: 16px; font-weight: 700; color: var(--soft); transition: color .25s ease; }
.feat small { display: none; color: var(--hint); font-size: 14px; line-height: 1.4; }
.feat:hover b { color: var(--ink); }
.feat.is-on { background: var(--tint); }
.feat.is-on b { color: var(--ink); }
.feat.is-on small { display: block; }
.feat.is-on .feat-ic { background: var(--nc); color: #fff; }
.feat-run { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--nc); transform-origin: left; transform: scaleX(0); }
.apps-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 4px; }
.apps-foot .btn i { background: var(--nc); }
.apps-screen { position: relative; overflow: hidden; border-radius: 22px; background: #0b0d14; box-shadow: 0 30px 60px -34px rgb(10 14 30 / .6); }
.apps-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #11131b; color: #c9cdd8; font-size: 13px; font-weight: 700; }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c2f3b; }
.apps-view { position: relative; aspect-ratio: 16 / 10; }
.apps-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transition: opacity .4s var(--ease-in-out); }
.apps-view img.is-on { opacity: 1; }

/* The product's mark in a given colour through a mask; an initial where there is no mark (used across the page). */
.mk { display: block; width: 1em; height: 1em; background: var(--c); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.mk-letter { color: var(--c); font-size: .82em; font-weight: 800; letter-spacing: -.02em; line-height: 1; }

/* 4. One Socium account — «Карта Socium»: a 3D stage; the card in front, the app windows fanned out behind it */
.deck-pin { position: relative; }
.deck-head { margin-bottom: 8px; }
.deck-stage { position: relative; height: 470px; margin: 0 auto; perspective: 1500px; perspective-origin: 50% 40%; }
.deck-stage > * { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; will-change: transform, opacity; }
/* App windows: a real screen in a frame, centred on the stage point; GSAP moves them out of the deck. */
.dwin { width: 520px; margin: -175px 0 0 -260px; overflow: hidden; border-radius: 16px; background: #0b0d14; box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 40px 80px -40px rgb(10 14 30 / .7); }
.dwin-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: #11131b; color: #e7e9f0; font-size: 12.5px; font-weight: 700; }
.dwin-name { display: inline-flex; align-items: center; gap: 7px; }
.dwin-mark { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 5px; background: var(--c); color: #fff; font-size: 12px; }
.dwin-mark .mk { --c: #fff; }
.dwin-mark b { font-size: 10.5px; font-weight: 800; }
.dwin-net { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--c); color: #fff; font-size: 11px; }
.dwin > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
/* The card: graphite, a holographic film that turns with the pointer, a light sweep, a chip, the balance. */
.scard { width: 400px; height: 250px; margin: -125px 0 0 -200px; }
.scard-in { position: relative; width: 100%; height: 100%; overflow: hidden; padding: 24px 26px; border-radius: 26px; background: linear-gradient(140deg, #262a37 0%, #12141c 55%, #1b1e29 100%); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), 0 50px 90px -40px rgb(10 14 30 / .9), 0 18px 40px -24px rgb(234 88 12 / .35); transform-style: preserve-3d; }
/* The film: soft pastel light, the same in Safari and Chrome (color-dodge burned to acid colours in Safari). */
.scard-holo { position: absolute; inset: -40%; background: conic-gradient(from var(--ang, 20deg), #ff8a3d, #ff4d8d, #7a5cff, #2aabee, #3dffc8, #ffd23d, #ff8a3d); opacity: .16; filter: blur(26px) saturate(.8); pointer-events: none; }
.scard-shine { position: absolute; inset: 0; background: radial-gradient(60% 70% at var(--mx, 30%) var(--my, 20%), rgb(255 255 255 / .22), transparent 60%); pointer-events: none; }
.scard-top, .scard-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; }
.scard-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.scard-brand img { width: 30px; height: 30px; }
.scard-apps { display: flex; gap: 6px; }
.scard-apps i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--c); color: #fff; font-size: 16px; font-style: normal; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
.scard-apps i .mk { --c: #fff; }
.scard-apps i b { font-size: 12px; font-weight: 800; }
.scard-chip { position: relative; display: block; width: 46px; height: 34px; margin: 26px 0 22px; border-radius: 8px; background: linear-gradient(135deg, #ffd9a8, #e8a35c 45%, #ffcf91 70%, #c9853d); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); }
.scard-chip::before { content: ""; position: absolute; inset: 8px 10px; border: 1px solid rgb(0 0 0 / .22); border-radius: 4px; }
.scard-bottom { align-items: flex-end; }
.scard-bottom small { display: block; color: rgb(255 255 255 / .6); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.scard-bottom b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.scard-who { text-align: right; font-size: 14px; font-weight: 600; }
/* A payment leaves the card for the app it pays. */
.spend { padding: 8px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 800; white-space: nowrap; box-shadow: 0 0 0 1.5px var(--c) inset, 0 16px 30px -16px rgb(10 14 30 / .5); opacity: 0; }
/* Three lines under the stage, lit one by one as the scene goes. */
.deck-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 12px 0 0; padding: 0; list-style: none; }
.deck-facts li { display: grid; gap: 4px; padding-top: 14px; border-top: 2px solid var(--line); color: var(--hint); transition: border-color .4s ease, color .4s ease; }
.deck-facts li b { color: var(--soft); font-size: 17px; transition: color .4s ease; }
.deck-facts li span { font-size: 14.5px; }
.deck-facts li.is-lit { border-color: var(--accent); color: var(--soft); }
.deck-facts li.is-lit b { color: var(--ink); }

/* 5. Three steps — a pinned scene on a computer: the page holds while the line fills and the steps light up */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps-line { position: absolute; left: 34px; right: 34px; top: 34px; height: 3px; border-radius: 3px; background: var(--line); }
.steps-line i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.step { position: relative; display: grid; gap: 12px; padding: 0 10px 0 0; }
.step-num { position: relative; z-index: 1; display: grid; width: 68px; height: 68px; place-items: center; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); color: var(--hint); font-size: 22px; font-weight: 800; transition: background-color .35s ease, color .35s ease, transform .5s var(--ease-out); }
.step h3 { margin: 8px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--soft); }
.step h3, .step p { opacity: .35; transition: opacity .4s ease; }
.step.is-lit .step-num { background: var(--accent); color: #fff; transform: scale(1.06); }
.step.is-lit h3, .step.is-lit p { opacity: 1; }

/* 6. Tariffs: two plain switches beside the heading (owner: the big app tiles were too much) */
.price-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: -8px 0 22px; }
/* The year is a plain switch, not a second segmented control (owner: two of them side by side were noisy). */
.year { display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 15.5px; font-weight: 700; cursor: pointer; }
.year small { padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, var(--paper)); color: var(--ok); font-size: 12.5px; font-weight: 800; }
.year-track { display: block; width: 46px; height: 28px; padding: 3px; border-radius: 999px; background: var(--line); transition: background-color .25s ease; }
.year-track i { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .3s var(--ease-out); }
.year[aria-checked="true"] .year-track { background: var(--ok); }
.year[aria-checked="true"] .year-track i { transform: translateX(18px); }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 15px; background: var(--paper); box-shadow: var(--shadow); }
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 11px; background: none; color: var(--soft); font-size: 15.5px; font-weight: 700; cursor: pointer; transition: color .25s ease; }
.seg button img { width: 18px; height: 18px; transition: filter .25s ease; }
:root[data-theme="dark"] .seg button img { filter: invert(1); }
.seg button.is-on { color: #fff; }
.seg button.is-on img { filter: invert(1) brightness(2); }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 0; z-index: 0; border-radius: 11px; background: var(--si, var(--inv-bg)); transition: transform .35s var(--ease-out), width .35s var(--ease-out), background-color .35s ease; }
.plans-box { --c: var(--thredium); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); }
.plan--hot { background: var(--hot); color: #fff; box-shadow: 0 0 0 2px var(--c), var(--shadow); }
.plan h3 { display: flex; align-items: center; justify-content: space-between; margin: 0; font-size: 20px; font-weight: 800; }
.plan h3 small { padding: 3px 10px; border-radius: 999px; background: var(--c); color: #fff; font-size: 12px; }
.plan-price { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { color: var(--hint); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.plan--hot .plan-price small, .plan--hot .plan-note { color: var(--night-soft); }
.plan-note { margin: -6px 0 0; color: var(--hint); font-size: 14px; }
.plan ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plan li { display: flex; gap: 9px; font-size: 15px; }
.plan li .ic { margin-top: 3px; color: var(--c); }
.plan--hot li .ic { color: #fff; }
.plan .btn { justify-content: space-between; width: 100%; }
.plan .btn i { background: var(--c); }
.plan--hot .btn { background: #fff; color: #1d202b; }
.plans-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 30px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); }
.plans-empty h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.plans-empty p { margin: 0; color: var(--soft); }
.plans-empty .btn i { background: var(--c); }

/* 7. Market: the goods run in tilted rails over the whole card; the words sit on frosted glass */
.market { position: relative; height: 500px; overflow: hidden; border-radius: var(--r-xl); background: var(--night); color: #fff; isolation: isolate; }
.market::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 90% at 100% 0%, rgb(234 88 12 / .28), transparent 70%); pointer-events: none; }
.market-rails { position: absolute; inset: -70px -120px; display: grid; align-content: center; gap: 14px; transform: rotate(-7deg); }
.rail { display: flex; gap: 14px; width: max-content; will-change: transform; }
.tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 18px; background: var(--night-2); box-shadow: 0 0 0 1px rgb(255 255 255 / .07) inset; white-space: nowrap; }
.tile > i { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: var(--c); color: #fff; font-size: 21px; font-style: normal; font-weight: 800; }
.tile > i.t-threads { background: #000; box-shadow: 0 0 0 1px rgb(255 255 255 / .18) inset; font-size: 20px; }
.tile > i.t-ig { background: linear-gradient(45deg, #f9a03f, #d6249f 55%, #6b3df5); }
.tile > i.t-tg { background: var(--telegram); }
.tile span { display: grid; }
.tile b { font-size: 15.5px; font-weight: 700; }
.tile small { color: var(--night-soft); font-size: 13px; }
.tile em { margin-left: 8px; padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / .09); font-size: 13px; font-style: normal; font-weight: 800; }
.market-glass { position: relative; z-index: 2; display: grid; align-content: center; justify-items: start; gap: 16px; width: min(540px, 50%); height: calc(100% - 48px); margin: 24px; padding: 36px; border-radius: 26px; background: rgb(18 20 27 / .74); box-shadow: 0 0 0 1px rgb(255 255 255 / .12) inset, 0 30px 60px -30px rgb(0 0 0 / .7); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.market-logo { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.market-logo img { width: 28px; height: 28px; filter: invert(1) brightness(2); }
.market-tag { margin-left: 2px; padding: 4px 9px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .12em; transform: rotate(-6deg); }
.market h2 { margin: 0; font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.market p { margin: 0; color: var(--night-soft); font-size: 17px; }
.market .btn { background: #fff; color: #1d202b; }

/* 8. FAQ — thredium.app layout */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.faq-side h2 { margin: 0 0 16px; font-size: clamp(36px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.faq-side p { margin: 0 0 18px; color: var(--soft); font-size: 18px; }
.faq { padding: 6px 30px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 22px 0; border: 0; background: none; font-size: 18px; font-weight: 700; text-align: left; cursor: pointer; }
.faq-q i { flex: none; width: 12px; height: 12px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: translateY(-3px) rotate(45deg) scale(.7); transition: transform .25s var(--ease-out); }
.faq-q[aria-expanded="true"] i { transform: translateY(2px) rotate(-135deg) scale(.7); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p { margin: 0; padding: 0 0 22px; color: var(--soft); font-size: 16.5px; }

/* 9. Support — thredium.app «Остались вопросы?» */
.ask { display: grid; justify-items: center; gap: 16px; padding: 64px 30px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.pill-label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 700; }
.pill-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ask h2 { margin: 0; font-size: clamp(36px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; }
.ask p { max-width: 520px; margin: 0; color: var(--soft); font-size: 18px; }
.ask-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
footer { margin-top: 90px; padding: 40px 0 50px; background: var(--night); color: var(--night-soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

/* Support chat button (as on thredium.app, in the Socium orange) */
.chat-fab { position: fixed; right: 26px; bottom: 26px; z-index: 50; display: grid; width: 60px; height: 60px; place-items: center; border: 0; border-radius: 20px; background: var(--accent); color: #fff; font-size: 26px; box-shadow: 0 12px 28px -12px rgb(20 22 30 / .45); cursor: pointer; transition: transform .2s var(--ease-out), background-color .2s ease; }
.chat-fab:active { transform: scale(.94); }
.chat-tip { position: absolute; right: calc(100% + 10px); padding: 7px 11px; border-radius: 10px; background: var(--inv-bg); color: var(--inv-fg); font-size: 14px; font-weight: 700; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .15s ease, transform .2s var(--ease-out); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .chat-fab:hover { background: var(--accent-deep); } .chat-fab:hover .chat-tip { opacity: 1; transform: none; } }

/* Reveal on scroll (landing.js) */
[data-reveal] { opacity: 0; transform: translateY(24px); }
.no-motion [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .win, .apps-view img, .sticker, .seg-ind, .faq-a { transition: opacity .2s ease; }
  .hub .flow { animation: none; }
}
/* Dark theme: the dark blocks keep an edge against the dark page. */
:root[data-theme="dark"] .market { box-shadow: 0 0 0 1px rgb(255 255 255 / .09); }

/* Dark theme (owner 2026-11-30: variant B «на тёмной очень так себе»): on a dark page a white or graphite plate looks
   dirty, so the plate becomes the app's colour — a lit top, a deeper bottom, a fine light rim — and the mark is
   white, like app icons in a dark Dock. The colour edge is not needed there. */
:root[data-theme="dark"] .hub-tile,
:root[data-theme="dark"] .signin-apps li.is-open > i,
:root[data-theme="dark"] .wallet-rows li > i {
  --tc: var(--c);
  background: radial-gradient(120% 90% at 30% 0%, color-mix(in srgb, var(--tc) 55%, #fff) 0%, transparent 55%),
              linear-gradient(170deg, color-mix(in srgb, var(--tc) 92%, #fff), var(--tc) 45%, color-mix(in srgb, var(--tc) 62%, #000));
  color: #fff;
}
:root[data-theme="dark"] .hub-tile { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22), inset 0 -10px 18px -10px rgb(0 0 0 / .45), 0 0 0 6px var(--paper), 0 18px 34px -16px color-mix(in srgb, var(--tc) 70%, #000); }
:root[data-theme="dark"] .signin-apps li.is-open > i, :root[data-theme="dark"] .wallet-rows li > i { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
:root[data-theme="dark"] .hub-tile::after, :root[data-theme="dark"] .signin-apps li > i::after, :root[data-theme="dark"] .wallet-rows li > i::after { display: none; }
:root[data-theme="dark"] .hub-tile, :root[data-theme="dark"] .signin-apps li > i, :root[data-theme="dark"] .wallet-rows li > i { padding-bottom: 0; }
:root[data-theme="dark"] .hub-tile .mk, :root[data-theme="dark"] .signin-apps li.is-open > i .mk, :root[data-theme="dark"] .wallet-rows li > i .mk { background: #fff; }
:root[data-theme="dark"] .hub-tile .mk-letter, :root[data-theme="dark"] .signin-apps li.is-open > i .mk-letter, :root[data-theme="dark"] .wallet-rows li > i .mk-letter { color: #fff; }
/* «Скоро»: the same plate, quieter. */
:root[data-theme="dark"] .hub-node--soon .hub-tile { opacity: 1; --tc: color-mix(in srgb, var(--c) 45%, #3a3f4c); }
:root[data-theme="dark"] .hub-node--soon .hub-tile .mk-letter { color: rgb(255 255 255 / .78); }
/* Not yet opened in the sign-in list: an empty dark plate. */
:root[data-theme="dark"] .signin-apps li > i { background: #262a36; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07); }
:root[data-theme="dark"] .signin-apps li > i .mk { background: #3a3f4f; }
:root[data-theme="dark"] .signin-apps li > i .mk-letter { color: #3a3f4f; }

/* Safari draws a blurred, filtered or transformed child outside its parent's rounded corners even with
   overflow: hidden (owner 2026-11-30: «на углах вступает окантовка» — square corners of the glows showed on the
   product cards and the Socium card). An explicit rounded clip on every such box keeps the corners round. */
.product { clip-path: inset(0 round var(--r-xl)); }
.scard-in { clip-path: inset(0 round 26px); }
.market, .apps { clip-path: inset(0 round var(--r-xl)); }
.win, .apps-screen { clip-path: inset(0 round 22px); }
.dwin { clip-path: inset(0 round 16px); }
.stage-screen, .apps-view { clip-path: inset(0 round 22px); }

/* «Остались вопросы?» as on socium.tools (owner 2026-11-30): an orange band, teal and violet blobs that breathe
   slowly, the Socium mark in white. Same in both themes: the band carries its own colours. */
.band { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 30px; align-items: center; min-height: 400px; overflow: hidden; clip-path: inset(0 round var(--r-xl)); padding: 64px 60px; border-radius: var(--r-xl); background: linear-gradient(160deg, #ff9a2e 0%, #f26a10 100%); color: #fff; isolation: isolate; }
.band-blob { position: absolute; right: -8%; top: -30%; z-index: -1; width: 62%; height: 160%; pointer-events: none; }
.band-blob path { transform-box: fill-box; transform-origin: center; }
.band h2 { margin: 0; color: #fff; font-size: clamp(36px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; }
.band p { max-width: 42ch; margin: 18px 0 30px; color: #fff4ea; font-size: 18px; line-height: 1.55; }
.band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.band .btn { background: #fff; color: #1d202b; }
.band .btn i { background: #1b1d26; }
.band .btn--ghost { padding: 0 22px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .55); transition: box-shadow .2s ease, transform .16s var(--ease-out); }
.band-mark { display: grid; place-items: center; filter: drop-shadow(0 30px 40px rgb(3 26 84 / .4)); }
.band-mark img { width: min(240px, 64%); height: auto; }
@media (hover: hover) and (pointer: fine) {
  .band .btn:hover i { transform: translateX(3px); }
  .band .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
}
@media (prefers-reduced-motion: no-preference) {
  .band-blob-a { animation: band-breathe-a 14s ease-in-out infinite alternate; }
  .band-blob-b { animation: band-breathe-b 11s ease-in-out infinite alternate; }
  .band-mark img { animation: band-float 7s ease-in-out infinite alternate; }
}
@keyframes band-breathe-a { to { transform: rotate(9deg) scale(1.04); } }
@keyframes band-breathe-b { to { transform: rotate(-12deg) scale(.96) translate(-2%, 2%); } }
@keyframes band-float { to { transform: translateY(-10px) rotate(-2deg); } }
@media (max-width: 860px) {
  .band { grid-template-columns: 1fr; min-height: 0; padding: 40px 26px; }
  .band-mark { display: none; }
  .band-blob { top: auto; right: -120px; bottom: -150px; width: 340px; height: 340px; }
}

/* The site header's account button (socium.js draws it from the cabinet's note), as in socium.css. */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 400; padding: 12px 18px; border-radius: 14px; background: var(--inv-bg); color: var(--inv-fg); font-weight: 600; text-decoration: none; transform: translateY(calc(-100% - 24px)); }
.skip-link:focus { transform: none; }
.site-account { position: relative; display: flex; flex: none; align-items: center; }
.site-account-button { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 12px 0 5px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.site-account-button:hover, .site-account-button[aria-expanded="true"] { border-color: var(--ink); }
.site-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--accent, #f97316); color: #fff; font-size: 15px; }
.site-account-balance { font-size: 14.5px; white-space: nowrap; }
.site-account-menu { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; display: grid; gap: 2px; width: min(300px, calc(100vw - 24px)); padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 18px 50px rgb(16 18 27 / .14); }
.site-account-menu[hidden] { display: none; }
.site-account-head { display: grid; gap: 2px; margin-bottom: 6px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }
.site-account-head b { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.site-account-head small { overflow: hidden; color: var(--soft); text-overflow: ellipsis; white-space: nowrap; }
.site-account-balance-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--bg); font-weight: 700; }
.site-account-balance-row a { padding: 6px 12px; border-radius: 999px; background: var(--inv-bg); color: var(--inv-fg); font-size: 13px; text-decoration: none; }
.site-account-menu > a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 11px; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.site-account-menu > a:hover, .site-account-menu > a:focus-visible { background: var(--bg); outline: 0; }
.site-account-menu > a svg { flex: 0 0 17px; color: var(--soft); }
.site-account-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
.site-header-end .site-account-button { min-height: 44px; }

/* Footer: the apps, Socium's pages and documents. */
.foot { margin-top: 40px; padding: 56px 0 34px; background: var(--paper); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.foot-brand { display: grid; align-content: start; gap: 14px; }
.foot-brand p { max-width: 34ch; margin: 0; color: var(--soft); font-size: 15px; line-height: 1.55; }
.foot-title { margin-bottom: 14px; font-size: 15px; font-weight: 800; }
.foot-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.foot-links a { color: var(--soft); font-size: 15px; text-decoration: none; transition: color .2s ease; }
.foot-links a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--hint, var(--soft)); font-size: 13.5px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
/* The marks for the masks, declared here so the address is read from this file in every browser. */
.mk--thredium { --m: url(thredium-mark.svg); }
.mk--instarium { --m: url(instarium-mark.svg); }

/* The support chat's tokens (support-widget.css reads the site's socium.css names). */
.socium-support-launcher, .socium-support-panel, .socium-chat { --blue: #ea580c; --blue-deep: #c2410c; --w-blue: #ea580c; --link: #c2410c; --duo: #1b1d26; --r-m: 14px; }
:root[data-theme="dark"] :is(.socium-support-launcher, .socium-support-panel, .socium-chat) { --w-blue: #fb923c; --link: #fdba74; --duo: #20242f; }

/* The footer on the paper colour, not the prototype's night strip. */
footer.foot { margin-top: 40px; padding: 56px 0 34px; background: var(--paper); color: var(--ink); font-size: 15px; }
footer.foot .wrap { display: block; }
footer.foot .brand { color: var(--ink); }

/* A payment coming in: the top-up flies into the card. */
.spend--in { color: var(--ok); }

/* «Карта Socium», variant A (owner 2026-11-30): what the one balance pays for pops up beside the card as notifications. */
.deck-feed { width: 316px; height: 230px; margin: -178px 0 0 205px; pointer-events: none; }
.feed-item { position: absolute; left: 0; top: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: center; width: 100%; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px rgb(29 32 43 / .07), 0 22px 40px -20px rgb(10 14 30 / .55); transform-origin: 30% 50%; }
:root[data-theme="dark"] .feed-item { background: #232735; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 22px 40px -18px rgb(0 0 0 / .8); }
.feed-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--c) 14%, var(--paper)); color: var(--c); font-size: 20px; }
.feed-icon .mk-letter { font-size: 17px; }
.feed-text { min-width: 0; }
.feed-text b { display: block; overflow: hidden; font-size: 13.5px; font-weight: 800; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.feed-text small { display: block; overflow: hidden; color: var(--soft); font-size: 12.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.feed-sum { font-size: 14.5px; font-weight: 800; white-space: nowrap; }
.feed-sum.is-in { color: var(--ok); }
@media (max-width: 960px) { .deck-feed { display: none; } }

/* ── Phones and tablets (owner 2026-11-30: «сделай нормально на мобильное, без потери фишек») ──────────────────────
   The same scenes as on a computer, laid out for a narrow screen: the header gets a menu, the hero keeps the two
   windows that change places, the features become a screen with a row of chips, the card scene fans out above the
   card with the events under it, the steps run down a line, the plans scroll sideways, the market rails run above
   the glass. */
.menu-toggle, .m-menu { display: none; }
.apps-cap { display: none; }
@media (max-width: 960px) {
  .site-header { top: 10px; width: calc(100% - 20px); min-height: 58px; padding: 6px 6px 6px 14px; border-radius: 18px; }
  .brand { font-size: 19px; } .brand img { width: 27px; height: 27px; }
  .nav, .site-header-end > .lang { display: none; }
  .site-header-end { flex: none; margin-left: auto; gap: 4px; }
  .site-header .btn { height: 44px; padding: 0 6px 0 14px; font-size: 15px; }
  .site-header .btn i { width: 30px; height: 30px; }
  .theme-toggle { width: 40px; height: 40px; }
  .menu-toggle { display: grid; width: 44px; height: 44px; align-content: center; justify-items: center; gap: 4px; padding: 0; border: 0; border-radius: 13px; background: var(--bg); cursor: pointer; }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s var(--ease-out), opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .m-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; gap: 2px; padding: 10px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow), 0 30px 60px -30px rgb(0 0 0 / .35); }
  .m-menu[hidden] { display: none; }
  .m-menu > a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 17px; font-weight: 600; text-decoration: none; }
  .m-menu > a:active { background: var(--bg); }
  .m-menu-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 12px 4px 2px 14px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; font-weight: 700; }

  .section { padding-top: 84px; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: clamp(30px, 8.4vw, 44px); }
  .section-head p { font-size: 16.5px; }

  /* Hero: the two windows still swap; the back one peeks from the right. */
  .hero { padding-top: 112px; }
  .kicker { font-size: 13px; }
  .hero-title { margin: 14px 0 18px; font-size: clamp(36px, 10.6vw, 60px); }
  .hero-lead { margin-bottom: 26px; font-size: 16.5px; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .stage { height: calc(86cqw * 9 / 16 + 36px + 44px); margin-top: 40px; }
  .win { width: 86%; border-radius: 16px; clip-path: inset(0 round 16px); }
  .win.is-front { transform: translate(0, 44px); }
  .win.is-back { transform: translate(16.3%, 0) scale(.94); }
  .win-bar { gap: 10px; height: 36px; padding: 0 12px; font-size: 12.5px; }
  .win-net { padding: 2px 8px; font-size: 11px; }
  .dots i { width: 8px; height: 8px; }
  .stage-switch { margin-top: 16px; }
  .stage-switch button { height: 42px; padding: 0 14px 0 12px; font-size: 14.5px; }
  .hero-facts { display: grid; justify-content: center; gap: 10px; margin-top: 22px; font-size: 15px; text-align: left; }

  /* Products: one column; the screenshot leans out of the card's corner as on a computer. */
  .products { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .product { gap: 16px; min-height: 0; padding: 22px; }
  .product .product-body, .product-foot { max-width: none; }
  .product-foot { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .product-shot { position: relative; right: auto; bottom: auto; width: 88%; margin: 4px -40px -44px auto; transform: rotate(-4deg); }
  .product-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
  .product-icon img { width: 28px; height: 28px; }
  .product-name { font-size: 23px; }

  /* What the apps do: the chosen network's tab opens wide, the others are icons; screen, caption, chips. */
  .apps-tab { flex: 0 0 62px; min-height: 60px; padding: 0 8px; font-size: 0; gap: 0; }
  .apps-tab.is-on { flex: 1 1 auto; gap: 9px; font-size: 15.5px; }
  .apps-tab small { display: none; }
  .net-dot { width: 34px; height: 34px; font-size: 15px; }
  .apps-card { grid-template-columns: minmax(0, 1fr); gap: 16px; min-height: 0; padding: 20px 16px 22px; }
  .apps-copy { display: contents; }
  .apps-card > *, .apps-copy > * { order: 5; }
  .apps-head { order: 1; } .apps-lead { order: 2; font-size: 15.5px; }
  .apps-screen { order: 3; } .apps-cap { order: 4; } .feats { order: 5; } .apps-foot { order: 6; }
  .apps-icon { width: 50px; height: 50px; border-radius: 15px; font-size: 22px; }
  .apps-icon img { width: 28px; height: 28px; }
  .apps-head h3 { font-size: 24px; }
  .apps-screen { border-radius: 16px; clip-path: inset(0 round 16px); }
  .apps-bar { height: 34px; font-size: 12px; }
  .apps-view { clip-path: none; }
  .apps-cap { display: block; min-height: 2.9em; margin: -4px 2px 0; color: var(--soft); font-size: 14.5px; line-height: 1.45; }
  .feats { display: flex; gap: 8px; margin: 0 -16px; padding: 2px 16px 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .feats::-webkit-scrollbar { display: none; }
  .feat { flex: none; grid-template-columns: 30px auto; gap: 0 9px; padding: 7px 14px 7px 7px; background: var(--tint); scroll-snap-align: center; }
  .feat .feat-ic { grid-row: auto; width: 30px; height: 30px; border-radius: 9px; font-size: 16px; }
  .feat b { font-size: 14.5px; white-space: nowrap; }
  .feat.is-on small { display: none; }
  .feat-run { left: 10px; right: 10px; bottom: 2px; }
  .apps-foot { gap: 16px; margin-top: 2px; }
  /* Height from the content, not 4:3: on a narrow phone a two-line name pushed the mark up over the text above
     (owner 2026-12-01). */

  /* The card scene: the windows fan out above the card, the events stack under it (home.js LAYOUT.phone). */
  .deck-stage { height: 560px; perspective: 1100px; perspective-origin: 50% 30%; }
  .deck-feed { display: block; width: 316px; margin: 58px 0 0 -158px; transform-origin: 50% 0; }
  .deck-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 0; }

  /* Three steps down a line that fills as the page scrolls. */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps-line { left: 25px; right: auto; top: 26px; bottom: 26px; width: 3px; height: auto; }
  .steps-line i { width: 100%; height: 100%; transform-origin: top; transform: scaleY(0); }
  .step { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; align-items: start; padding: 0; }
  .step-num { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 17px; font-size: 18px; }
  .step h3 { margin: 4px 0 0; font-size: 19px; }
  .step p { grid-column: 2; font-size: 15.5px; }

  /* Plans: a row that scrolls sideways, the next plan peeking in. */
  .price-tools { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: -4px; }
  .plans { display: flex; gap: 12px; margin: 0 -20px; padding: 6px 20px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 min(84%, 330px); padding: 22px; scroll-snap-align: center; }
  .plan-price { font-size: 40px; }
  .plans-empty { padding: 22px; }

  /* Market: the rails run across the top of the card, the glass sits under them. */
  .market { display: grid; height: auto; padding-top: 236px; }
  .market-rails { inset: -36px -170px auto -170px; height: 340px; gap: 10px; }
  .tile { gap: 10px; padding: 9px 11px 9px 9px; border-radius: 14px; }
  .tile > i { width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
  .tile b { font-size: 14px; } .tile small { font-size: 12px; } .tile em { font-size: 12px; }
  .market-glass { width: auto; height: auto; margin: 0 10px 10px; padding: 24px 20px; border-radius: 22px; }
  .market h2 { font-size: 28px; }
  .market p { font-size: 15.5px; }

  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .faq-side h2 { font-size: clamp(32px, 9vw, 44px); }
  .faq-side p { font-size: 16.5px; }
  .faq { padding: 4px 18px; }
  .faq-q { padding: 18px 0; font-size: 16.5px; }
  .faq-a p { font-size: 15.5px; }
  .band h2 { font-size: clamp(32px, 9vw, 44px); }
  .band p { font-size: 16.5px; }
}
@media (max-width: 560px) {
  .band-actions { display: grid; width: 100%; }
  .band-actions .btn { justify-content: space-between; }
  .band .btn--ghost { justify-content: center; }
  .foot-grid { gap: 26px; }
}

/* ── Owner 2026-11-30, round of nine (phone and English) ── */
@view-transition { navigation: auto; }
.lang-jump [data-reveal] { opacity: 1; transform: none; }
.row-dots { display: none; }
@media (max-width: 960px) {
  /* 1. English heading: «Automation / system for / Threads», not a word per line. */
  html:lang(en) .hero-line { display: inline; }
  /* 2. The main button as wide as the column allows. */
  .hero-actions .btn--big { justify-content: space-between; width: min(100%, 360px); }
  /* 3. Bigger app windows on the first screen. */
  .stage { height: calc(92cqw * 9 / 16 + 36px + 40px); }
  .win { width: 92%; }
  .win.is-front { transform: translate(0, 40px); }
  .win.is-back { transform: translate(8.7%, 0) scale(.94); }
  /* 4. The apps scroll sideways, the next card peeking in. */
  .products { display: flex; gap: 12px; margin: 0 -20px; padding: 16px 20px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .products::-webkit-scrollbar { display: none; }
  .products > .product { flex: 0 0 86%; scroll-snap-align: center; }
  .row-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
  .row-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .3s var(--ease-out), background-color .3s ease; }
  .row-dots i.is-on { width: 20px; background: var(--accent); }
  /* 6. The tab bar: less dark room around the chosen tab; the features as a 2 × 3 grid, the buttons one under another. */
  .apps-tabs { min-height: 52px; }
  .apps-tab { min-height: 52px; }
  .net-dot { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
  .apps-card { padding-top: 16px; }
  .feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 2px 0 0; padding: 0; overflow: visible; }
  .feat { min-width: 0; padding: 8px 10px 8px 8px; }
  .feat b { overflow: hidden; font-size: 13.5px; line-height: 1.25; text-overflow: ellipsis; white-space: normal; }
  .apps-foot { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 6px; }
  .apps-foot .btn { justify-content: space-between; }
  .apps-foot .text-link { justify-content: center; }
  /* 7. The card scene: bigger windows, so the screens read. */
  .deck-stage { height: 660px; }
  .deck-feed { margin-top: 90px; }
  /* 9. Plans: the app switch across the whole width (two apps today). */
  .price-tools { align-items: stretch; }
  .seg--app { display: flex; width: 100%; }
  .seg--app button { flex: 1 1 0; justify-content: center; }
}
/* Headings and leads break into even lines (no lone «do» on the last line). */
.section-head h2, .hero-lead, .faq-side h2, .band h2, .market h2 { text-wrap: balance; }

/* Smooth anchor scrolling is done in home.js: a CSS smooth scroll animated ScrollTrigger's own refresh jumps and
   threw a restored page back to the top. */
html { scroll-behavior: auto; }

/* Owner 2026-11-30, round three ── */
/* The year: a row in the same paper and height as the app switch, the switch at its end. */
.year { height: 52px; padding: 0 8px 0 18px; border-radius: 15px; background: var(--paper); box-shadow: var(--shadow); gap: 14px; }
.year-text { display: inline-flex; align-items: center; gap: 10px; }
.year-track { width: 50px; height: 30px; padding: 3px; }
.year-track i { width: 24px; height: 24px; }
.year[aria-checked="true"] .year-track i { transform: translateX(20px); }
.year[aria-checked="true"] { box-shadow: 0 0 0 1.5px var(--ok), var(--shadow); }
/* Stories on the screen (phones only). */
.apps-story { display: none; }
@media (max-width: 960px) {
  .year { justify-content: space-between; width: 100%; }
  .feats { display: none; }
  .apps-view { cursor: pointer; }
  .apps-story { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; gap: 4px; pointer-events: none; }
  .apps-story i { flex: 1 1 0; height: 3px; overflow: hidden; border-radius: 2px; background: rgb(255 255 255 / .28); }
  .apps-story b { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
  .apps-cap { display: grid; gap: 2px; min-height: 0; margin: -2px 2px 0; }
  .apps-cap b { color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
  .apps-cap span { min-height: 2.9em; }
  /* The card scene: everything sits a little lower, so the market window on top shows whole. */
  .deck-stage { height: 720px; }
  .deck-stage > * { top: 57%; }
}
@media (max-width: 960px) {
  .apps-story i { height: 4px; background: rgb(255 255 255 / .35); box-shadow: 0 1px 3px rgb(0 0 0 / .35); }
  .apps-view::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 44px; background: linear-gradient(rgb(0 0 0 / .45), transparent); pointer-events: none; }
  .year { height: auto; min-height: 64px; padding: 10px 8px 10px 18px; }
  .year-text { flex-direction: column; align-items: flex-start; gap: 4px; white-space: nowrap; }
}
@media (max-width: 960px) {
  .apps-view::before { display: none; }
  .apps-bar { position: relative; height: 44px; padding-bottom: 8px; }
  .apps-story { top: auto; bottom: 8px; left: 14px; right: 14px; }
  .apps-story i { height: 3px; box-shadow: none; background: rgb(255 255 255 / .18); }
}
@media (max-width: 960px) {
  /* The card scene without white gaps: the windows stay inside the screen, no empty band under the events. */
  .deck-stage { height: 640px; }
  .deck-stage > * { top: 58%; }
}

/* Owner 2026-11-30 «нужен вау эфект»: the feature dock under the screen (phones). */
.apps-dock { display: none; }
@media (max-width: 960px) {
  .apps-story { display: none !important; }
  .apps-bar { height: 34px; padding-bottom: 0; }
  .apps-view { perspective: 900px; }
  .apps-view img { transition: none; backface-visibility: hidden; }
  .apps-dock { position: relative; order: 4; display: flex; justify-content: space-between; margin: 2px 0 0; padding: 6px; border-radius: 22px; background: var(--tint); }
  .dock-drop { position: absolute; left: 0; top: 6px; width: 46px; height: 46px; border-radius: 50%; background: var(--nc); box-shadow: 0 10px 22px -10px var(--nc); }
  .dock-btn { position: relative; z-index: 1; display: grid; width: 46px; height: 46px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--hint); cursor: pointer; transition: color .3s ease, transform .3s var(--ease-out); }
  .dock-btn > .ic { width: 20px; height: 20px; }
  .dock-btn.is-on { color: #fff; }
  .dock-btn:active { transform: scale(.9); }
  .dock-ring { position: absolute; inset: -4px; width: 54px; height: 54px; transform: rotate(-90deg); pointer-events: none; }
  .dock-ring circle { fill: none; stroke: var(--nc); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 138.23; stroke-dashoffset: 138.23; opacity: 0; transition: opacity .3s ease; }
  .dock-btn.is-on .dock-ring circle { opacity: .55; }
  .apps-cap { order: 5; }
  .apps-cap b { display: block; overflow: hidden; white-space: nowrap; }
  .apps-cap b span { display: inline-block; }
}
@media (max-width: 960px) { .apps-cap b span { min-height: 0; } }
/* Very narrow phones (owner 2026-11-30: the tab bar was squeezed): smaller icon tabs; below 360 px the chosen tab
   shows its icon only and every tab gets an equal share (the glider still marks the chosen one). */
@media (max-width: 400px) { .apps-tab { flex-basis: 52px; padding: 0 6px; } .apps-tab.is-on { gap: 8px; padding: 0 12px; font-size: 14.5px; } }
@media (max-width: 359px) { .apps-tab, .apps-tab.is-on { flex: 1 1 0; gap: 0; font-size: 0; } }
/* Owner 2026-11-30: the events under the card on a computer too (they covered the Instarium window on the right). */
@media (min-width: 961px) {
  .deck-stage { height: 600px; }
  .deck-stage > * { top: 47%; }
  .deck-feed { width: 340px; height: 200px; margin: 182px 0 0 -170px; transform-origin: 50% 0; }
}
@media (min-width: 961px) {
  /* Room for two events under the card before the three lines (owner: «наступает на нижнюю зону»). */
  .deck-stage { height: 660px; }
  .deck-stage > * { top: 44%; }
  .deck-facts { margin-top: 0; }
}
@media (min-width: 961px) {
  /* Safari draws the card (lifted in 3D) a little larger and lower: the events start further down. */
  .deck-stage { height: 700px; }
  .deck-stage > * { top: 42%; }
  .deck-feed { margin-top: 214px; }
}

@media (min-width: 961px) {
  /* The events a little closer to the card again (owner: «теперь большой отступ»). */
  .deck-feed { margin-top: 200px; }
}
