/* Instarium's own blocks over the Socium family base (site.css, the Thredium «bold» system): a band with figures,
   the accounts panel with a row of rings, the plans and the dark final band. Colours come from assets/theme.css. */
:root {
  --ig-a: var(--violet); --ig-b: var(--accent); --ig-c: var(--coral); --ig-d: #ffb84d;
  --ig-line: linear-gradient(100deg, var(--ig-a), var(--ig-b) 42%, var(--ig-c) 78%, var(--ig-d));
  --ig-ring: conic-gradient(from 200deg, var(--ig-a), var(--ig-b), var(--ig-c), var(--ig-d), var(--ig-c), var(--ig-b), var(--ig-a));
}
.ic-scan-search { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='m16 16-1.900-1.900'/%3E%3C/svg%3E"); }
.ic-smartphone { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.500'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }


:root[data-theme-switching] *, :root[data-theme-switching] { transition: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 1; }

/* body { overflow-x: hidden } turned <body> into a scroll box and switched off every sticky block (the stacked
   feature cards, the steps). <html> already clips the page sideways. */
body { overflow-x: clip; }

/* The band with figures under the first screen */
.ig-band-wrap { padding: 44px 0 0; }
.ig-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 28px 8px; border-radius: var(--r-xl); background: linear-gradient(115deg, #24102a 0%, #5a1a46 38%, #a3245a 72%, #d12e66 100%); color: #fff; list-style: none; box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--accent) 70%, transparent); }
.ig-band li { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 4px 24px; border-left: 1.5px solid rgb(255 255 255 / .22); }
.ig-band li:first-child { border-left: 0; }
.ig-band__ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.ig-band__ic .ic { width: 22px; height: 22px; }
.ig-band__copy { display: grid; gap: 5px; }
.ig-band b { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.ig-band__copy > span { font-size: 15.5px; line-height: 1.45; color: rgb(255 255 255 / .86); }

/* Accounts: a white panel with a row of rings (a coloured ring = at work, a grey one = resting) and three tiles */
.ring { --s: 64px; --w: 3px; position: relative; display: grid; place-items: center; flex: none; width: var(--s); height: var(--s); padding: calc(var(--w) + 3px); border-radius: 50%; isolation: isolate; }
.ring::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--ig-ring); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--w) - .5px), #000 calc(100% - var(--w))); mask: radial-gradient(farthest-side, transparent calc(100% - var(--w) - .5px), #000 calc(100% - var(--w))); transition: background .4s; }
.ring__in { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: var(--bg); color: var(--soft); }
.ig-accounts { padding: 128px 0 0; scroll-margin-top: 60px; }
.acc-panel { overflow: hidden; padding: clamp(28px, 4vw, 52px) 0 clamp(22px, 3vw, 40px); border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); }
.acc-panel__head { max-width: 760px; margin: 0 auto; padding: 0 24px; text-align: center; }
.acc-panel__head h2 { margin: 0; font-size: var(--fs-title); line-height: 1.1; }
.acc-panel__head p { margin: 18px auto 0; max-width: 56ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--soft); text-wrap: pretty; }
.acc-tray { overflow: hidden; margin: clamp(26px, 3vw, 40px) 0; padding: 4px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.acc-tray__row { display: flex; gap: 20px; width: max-content; padding-left: 20px; animation: trayMove 90s linear infinite; }
.acc-tray:hover .acc-tray__row { animation-play-state: paused; }
@keyframes trayMove { to { transform: translateX(-50%); } }
.acc { display: grid; justify-items: center; gap: 7px; width: 116px; font-size: 14.500px; }
.acc b { max-width: 100%; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.acc__letters { font-size: 17px; font-weight: 700; }
.acc__status { margin-top: -4px; font-size: 13.500px; color: var(--hint); white-space: nowrap; }
.acc[data-state="rest"] > .ring::before, .acc[data-state="done"] > .ring::before { background: var(--line); }
.acc[data-state="done"] .acc__status { color: var(--deep-green); }
.acc[data-flip] .acc__status { animation: statusFlip .5s var(--ease); }
@keyframes statusFlip { from { opacity: 0; transform: translateY(4px); } }
.acc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0 clamp(16px, 3vw, 40px); list-style: none; }
.acc-tiles li { --tint: var(--sky); --deep: var(--accent); padding: 26px 26px 28px; border-radius: var(--r-l); background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.acc-tiles li:nth-child(2) { --tint: var(--lav); --deep: var(--deep-indigo); }
.acc-tiles li:nth-child(3) { --tint: var(--peach); --deep: var(--deep-orange); }
.acc-tiles .ic-box { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--deep); color: var(--white); }
.acc-tiles .ic { width: 21px; height: 21px; }
.acc-tiles h3 { margin: 18px 0 0; font-size: 22px; line-height: 1.2; }
.acc-tiles p { margin: 8px 0 0; font-size: 16.500px; line-height: 1.55; color: color-mix(in srgb, var(--ink) 78%, transparent); }

/* Plans: the Thredium pricing block (cards, free strip, terms), in Instarium's colours */
.ig-pricing { padding: 128px 0 0; scroll-margin-top: 60px; }
.ig-pricing [data-section-head] { margin-bottom: 30px; }
.th-billing { display: flex; justify-content: center; margin: 0 0 34px; }
.th-billing-switch { position: relative; display: inline-grid; grid-template-columns: 1fr auto; padding: 4px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.th-billing-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 12px; background: var(--inv-bg); transition: transform .45s var(--ease), width .45s var(--ease); }
.th-billing-switch button { position: relative; z-index: 1; min-height: 44px; padding: 0 22px; border: 0; border-radius: 12px; background: none; color: var(--ink); font-size: 15.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .3s; }
.th-billing-switch button[aria-pressed="true"] { color: var(--inv-fg); }
.th-billing-switch button:first-of-type { min-width: 120px; }
.th-paid-plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
      .th-price-card {
        position: relative;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 34px 30px 30px;
        border-radius: var(--r-xl);
        background: var(--paper);
        color: var(--ink);
        box-shadow: var(--shadow);
        font-family: var(--font);
      }
      .th-price-card--featured { background: var(--inv-bg); color: var(--inv-fg); }
      .th-price-glow { display: none; }
      .th-price-topline { display: grid; gap: 4px; padding-right: 96px; }
      .th-price-badge {
        position: absolute;
        top: 30px;
        right: 26px;
        padding: 5px 12px;
        border-radius: 10px;
        background: var(--accent);
        color: #fff;
        font-size: 13.5px;
        font-weight: 600;
      }
      .th-price-card h3 { margin: 0; color: inherit !important; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
      .th-price-eyebrow { color: var(--soft); font-size: 15.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
      .th-price-card--featured .th-price-eyebrow, .th-price-card--featured .th-price-note, .th-price-card--featured .th-price-period { color: var(--inv-soft); }
      .th-price-amount { display: flex; align-items: baseline; gap: 4px; margin-top: 22px; font-weight: 700; letter-spacing: -.03em; }
      .th-price-currency { font-size: 22px; }
      .th-price-amount strong { font-size: 58px; line-height: 1; font-variant-numeric: tabular-nums; }
      .th-price-period { color: var(--soft); font-size: 17px; font-weight: 500; letter-spacing: 0; }
      .th-price-note { margin-top: 6px; color: var(--soft); font-size: 15px; line-height: 1.45; }
      .th-price-card ul { display: grid; gap: 11px; margin: 24px 0 28px; padding: 24px 0 0; border-top: 1.5px solid var(--line); list-style: none; font-size: 16px; }
      .th-price-card--featured ul { border-color: color-mix(in srgb, var(--inv-fg) 16%, transparent); }
      .th-price-feature { display: flex; gap: 10px; line-height: 1.45; }
      .th-price-check { display: grid; place-items: center; flex: none; width: 18px; height: 18px; margin-top: .15em; color: var(--accent-text); }
      .th-price-card--featured .th-price-check { color: var(--accent); }
      .th-price-check svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
      .th-price-feature--missing { color: var(--soft); }
      .th-price-card--featured .th-price-feature--missing { color: var(--inv-soft); }
      .th-price-feature--missing .th-price-check::before { content: ""; width: 10px; height: 2px; border-radius: 2px; background: currentColor; }
      .th-price-terms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 40px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--soft); font-size: 15.5px; line-height: 1.5; }
      .th-price-terms li { position: relative; max-width: 92ch; padding-left: 20px; }
      .th-price-terms li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
      .th-price-action {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-top: auto;
        min-height: 52px;
        padding: 7px 7px 7px 20px;
        border: 0;
        border-radius: 16px;
        background: var(--inv-bg);
        color: var(--inv-fg);
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 10px 22px -14px rgb(27 29 38 / .7);
        transition: transform .25s var(--ease), background .2s;
      }
      .th-price-action::after { content: ""; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s var(--ease); }
      .th-price-action:hover { background: var(--inv-hover); }
      @media (hover: hover) and (pointer: fine) { .th-price-action:hover::after { transform: translateX(3px); } }
      .th-price-card--featured .th-price-action, .th-price-action--primary { background: var(--inv-fg); color: var(--inv-bg); }
      .th-price-card--featured .th-price-action:hover { background: var(--inv-fg); }
      /* Starter and Scale: the outlined button with a plain arrow; Pro: the light one with the blue arrow tile. */
      .th-price-action--line { padding-right: 20px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
      .th-price-action--line:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
      .th-price-action--line::after { width: 18px; height: 18px; border-radius: 0; background: currentColor; -webkit-mask: var(--ic-arrow-right) center / contain no-repeat; mask: var(--ic-arrow-right) center / contain no-repeat; }
      .th-trial-actions .th-price-action::after { background-image: none; -webkit-mask: none; mask: none; background-color: var(--accent); }
      .th-trial-actions .th-price-action::before { content: ""; position: absolute; right: 18px; width: 18px; height: 18px; background: #fff; -webkit-mask: var(--ic-key-round) center / contain no-repeat; mask: var(--ic-key-round) center / contain no-repeat; z-index: 1; }
      .th-trial-actions .th-price-action { position: relative; }
      .th-trial-strip { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 28px; margin-top: 20px; padding: 26px 30px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); color: var(--ink); }
      .th-trial-price { display: grid; place-items: center; width: 104px; height: 104px; border-radius: var(--r-l); background: var(--mint); font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
      .th-trial-copy { display: grid; gap: 6px; min-width: 0; }
      .th-trial-copy h3 { margin: 0; color: var(--ink) !important; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
      .th-trial-limits { margin: 0; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.45; }
      .th-trial-features { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 15.5px; }
      .th-trial-note { margin: 2px 0 0; color: var(--soft); font-size: 14.5px; line-height: 1.45; }
      .th-trial-actions { display: flex; }
      .th-trial-actions .th-price-action { min-width: 210px; margin: 0; white-space: nowrap; }
      @media (max-width: 1000px) {
        .th-paid-plans { grid-template-columns: minmax(0,1fr); }
        .th-trial-strip { grid-template-columns: auto minmax(0,1fr); gap: 14px 20px; }
        .th-trial-actions { grid-column: 1 / -1; justify-self: stretch; }
        .th-trial-actions .th-price-action { width: 100%; }
        .th-price-terms { grid-template-columns: minmax(0,1fr); }
      }
      @media (max-width: 620px) {
        .th-price-card { padding: 28px 22px 22px; }
        .th-trial-strip { grid-template-columns: 1fr; padding: 22px 20px; }
        .th-trial-price { width: 76px; height: 76px; font-size: 32px; }
      }
      /* Final band */
.ig-final { padding: clamp(88px, 10vw, 128px) 0 0; }
.final-band { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 30px; overflow: hidden; padding: clamp(34px, 5vw, 72px) 0 clamp(34px, 5vw, 72px) clamp(26px, 5vw, 72px); border-radius: 40px; background: var(--night); color: #fff; isolation: isolate; }
.final-band__ring { position: absolute; right: -14%; top: 50%; z-index: -1; width: min(760px, 70vw); aspect-ratio: 1; margin-top: calc(min(760px, 70vw) / -2); border-radius: 50%; background: var(--ig-ring); -webkit-mask: radial-gradient(farthest-side, transparent 78%, #000 78.500%); mask: radial-gradient(farthest-side, transparent 78%, #000 78.500%); animation: ringTurn 40s linear infinite; filter: saturate(1.1); }
.final-band h2 { margin: 0; font-size: var(--fs-title); line-height: 1.1; }
.final-band p { margin: 18px 0 0; max-width: 42ch; font-size: var(--fs-lead); line-height: 1.55; color: rgb(255 255 255 / .74); }
.final-band [data-btn="primary"] { background: #fff; color: #1d202b; }
.final-band__os { font-size: 15px; color: rgb(255 255 255 / .6); }
.final-band__shot { margin: 0 -12% 0 0; transform: rotate(-3deg) translateY(4%); }
.final-band__shot img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8), 0 0 0 8px rgb(255 255 255 / .08); }


@media (max-width: 1000px) {
  .ig-band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
  .ig-band li:nth-child(odd) { border-left: 0; }
  .acc-tiles { grid-template-columns: 1fr; }
  .final-band { grid-template-columns: 1fr; padding-right: clamp(26px, 5vw, 72px); }
  .final-band__shot { margin: 10px -30% -30% 0; }
}
@media (max-width: 640px) {
  .ig-band { grid-template-columns: 1fr; gap: 0; padding: 6px 20px; }
  .ig-band li { flex-direction: row; align-items: center; gap: 14px; padding: 16px 0; border-left: 0; border-top: 1px solid rgb(255 255 255 / .2); }
  .ig-band li:first-child { border-top: 0; }
  .ig-band__ic { width: 42px; height: 42px; border-radius: 13px; }
  .ig-band b { font-size: 17px; }
  .ig-band__copy > span { font-size: 14.5px; }
  .ig-accounts, .ig-pricing { padding-top: 96px; }
  .th-billing-switch { display: grid; width: 100%; }
  .th-billing-switch button { padding: 0 12px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .acc-tray__row, .final-band__ring { animation: none; } }
.ig-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.final-band .ig-actions { margin-top: 28px; }
.final-band h2 { color: #fff; }
.ig-final { padding: 128px 0 0; }

/* The app screen stands on the page itself, no colour backdrop (owner 01.12). */
[data-hero-stage] { padding: 0; }
@media (max-width: 340px) { [data-hero-title] { font-size: 30px; } }

/* ---------- Header as on thredium.app: «Возможности» with a menu, Тарифы, Скачать, Маркетплейс by Socium, Блог,
   Поддержка; EN · RU; theme; «Кабинет» with the arrow tile ---------- */
.nav__cta::after { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .nav__cta:hover::after { transform: translateX(3px); } }
.nav__links > a, .nav-features__btn { display: inline-flex; align-items: center; gap: 4px; padding: 9px 12px; border: 0; border-radius: 11px; background: none; color: var(--ink); font: 500 15.5px/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s; }
.nav__links > a:hover, .nav-features__btn:hover, .nav-features__btn[aria-expanded="true"] { background: var(--bg); }
.nav-features__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.nav-features__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__market { flex-direction: column; align-items: center !important; gap: 0 !important; padding-top: 4px !important; padding-bottom: 4px !important; line-height: 1.1 !important; }
/* «by Socium» is Socium's own orange, as on thredium.app (owner 2026-12-02: «почему розовый, а не как у тредиум?»). */
.nav__market small { color: #ea580c; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
:root[data-theme="dark"] .nav__market small { color: #ff8a3d; }
.nav-features { position: relative; display: flex; align-items: center; }
.features-menu { position: absolute; left: -14px; top: calc(100% + 14px); z-index: 210; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; width: 780px; padding: 10px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow), 0 30px 60px -30px color-mix(in srgb, var(--night) 45%, transparent); animation: menuIn .22s var(--ease); }
.features-menu[hidden] { display: none; }
.features-menu__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.features-menu__list a { position: relative; display: grid; min-width: 0; gap: 2px; padding: 10px 14px 10px 34px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.features-menu__list a::before { content: ""; position: absolute; left: 14px; top: 17px; width: 8px; height: 8px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 40%, transparent); }
.features-menu__list a.is-preview { background: var(--bg); }
.features-menu__list a.is-preview::before { background: var(--accent); }
.features-menu__list b { font-size: 15.5px; font-weight: 600; }
.features-menu__list span { font-size: 15px; line-height: 1.4; color: var(--soft); }
.features-menu__preview { display: grid; align-content: start; gap: 10px; padding: 10px 6px 10px 0; color: var(--ink); text-decoration: none; }
.features-menu__preview img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.features-menu__preview strong { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.features-menu__preview em { color: var(--link); font-size: 14.5px; font-style: normal; font-weight: 600; }
@media (max-width: 1240px) { .nav__links > a, .nav-features__btn { padding: 9px 9px; } }
@media (max-width: 1120px) {
  .mobile-menu__group { display: grid; gap: 2px; padding-bottom: 6px; }
  .mobile-menu__label { padding: 10px 13px 4px; color: var(--ink); font-size: 17px; font-weight: 500; }
  .mobile-menu__feature { position: relative; display: flex; align-items: center; min-height: 42px; margin-left: 8px; padding: 0 13px 0 30px; border-radius: 10px; color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; }
  .mobile-menu__feature::before { content: ""; position: absolute; left: 13px; width: 7px; height: 7px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
  .mobile-menu__feature:hover { background: var(--bg); }
  .mobile-menu > a.nav__market { flex-direction: column; align-items: flex-start !important; justify-content: center; }
}
.nav__links .features-menu a { white-space: normal; font-weight: inherit; }
.nav__links .features-menu__list a { padding: 10px 14px 10px 34px; border-radius: 12px; }
.nav__links .features-menu__preview { padding: 10px 6px 10px 0; border-radius: 0; }
.nav__links .features-menu a:hover { background: none; }
.nav__links .features-menu__list a.is-preview { background: var(--bg); }
/* Phones keep «Кабинет» in the header, as thredium.app does */
@media (max-width: 400px) { .nav__cta { display: inline-flex; padding: 0 12px; } }
@media (max-width: 340px) { .nav__cta { display: none; } }

/* ---------- Downloads page, as thredium.app/downloads/ in Instarium colours ---------- */
.dl-hero { padding-top: 150px; }
.dl-title .spark { width: .5em; height: .5em; margin-left: .05em; vertical-align: top; }
.dl-builds { padding-top: 48px; }
.dl-card { gap: 28px; padding: 34px 34px 32px; }
.dl-card-head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.dl-card-title { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; color: inherit; }
.dl-card .dl-icon { width: 52px; height: 52px; flex-basis: 52px; border-radius: 15px; }
.dl-card .dl-icon svg { width: 24px; height: 24px; }
.dl-button { margin-top: 0; }
.dl-button[aria-disabled="true"] { pointer-events: none; opacity: .55; }
.dl-status { grid-column: 1 / -1; margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--soft); text-align: center; }
.dl-status a { color: var(--link); font-weight: 600; text-decoration: none; white-space: nowrap; }
.dl-status a:hover { text-decoration: underline; }
.dl-error { grid-column: 1 / -1; padding: 24px 28px; border-radius: var(--r-l); background: var(--peach); box-shadow: inset 0 0 0 1px var(--line); }
.dl-error[hidden] { display: none; }
.dl-error-text { margin: 0; max-width: 64ch; font-size: 17px; line-height: 1.55; color: var(--ink); }
.dl-error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.dl-grid[data-state="error"] .dl-status { display: none; }
.dl-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font: 600 14.5px/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: box-shadow .2s; }
.dl-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dl-section[hidden] { display: none; }
.dl-changelog { padding: 6px 34px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); }
.dl-cl-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px 30px; padding: 26px 0; border-bottom: 1.5px solid var(--line); }
.dl-prev-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; align-items: center; gap: 10px 30px; padding: 22px 0; border-bottom: 1.5px solid var(--line); }
.dl-cl-row:last-child, .dl-prev-row:last-child, .dl-prev-row:has(+ [hidden]) { border-bottom: 0; }
.dl-prev-row[hidden], .dl-more[hidden] { display: none; }
.dl-version { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.dl-date { margin-top: 4px; font-size: 15px; color: var(--soft); }
.dl-latest { display: inline-flex; align-items: center; margin-top: 12px; padding: 4px 10px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 600; }
.dl-notes { display: flex; flex-direction: column; gap: 10px; }
.dl-note { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.dl-note-mark { position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
.dl-prev-notes { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 16.5px; line-height: 1.55; color: var(--soft); }
.dl-prev-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-more { margin-top: 18px; }
@media (max-width: 760px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-changelog { padding: 4px 22px; }
  .dl-cl-row, .dl-prev-row { grid-template-columns: 1fr; gap: 12px; }
}
.dl-card:not(.dl-card--dark) .dl-button { background: var(--inv-bg); color: var(--inv-fg); box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--night) 70%, transparent); }

/* ── Language picker (owner 2026-12-03, «вариант Б»): one button — globe, current language, chevron — and the list of
   languages under it. The same copy on thredium.app, instarium.app, socium.tools and the market; it reads each site's
   own colours (--sh-* in the shared Socium header, the bold system's --paper/--ink/--soft/--line/--bg elsewhere). */
/* Before the script turns a header group into the button, only the current language shows, in a box as wide as the
   button will be: the header does not jump when the script runs. Without scripts every language stays visible. */
@media (scripting: enabled) {
  :is([data-nav-language], [data-language-switch], .language-switch, .sh-lang, .lang):not([data-lang-pick]):not(:is(.mobile-menu, .sh-menu, .nav__menu-row, .mobile-menu-language-row, .mobile-menu__lang, [data-mobile-menu]) *) {
    min-width: 86px; justify-content: flex-end;
  }
  :is([data-nav-language], [data-language-switch], .language-switch, .sh-lang, .lang):not([data-lang-pick]):not(:is(.mobile-menu, .sh-menu, .nav__menu-row, .mobile-menu-language-row, .mobile-menu__lang, [data-mobile-menu]) *)
    > :is(a, button):not([aria-current]):not([aria-pressed="true"]):not(.active) { display: none !important; }
}
[data-lang-pick] { position: relative; }
[data-lang-pick] > .lang-pick-trigger.lang-pick-trigger {
  /* A site's own rules for a language group's links and buttons (fixed squares, muted colours, often !important and
     with several attribute selectors, as on thredium.app) must not reach the picker: hence !important and the doubled class. */
  display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; width: auto !important; min-width: 0 !important;
  height: 32px !important; margin: 0 !important; padding: 0 9px 0 8px !important; border: 0 !important; border-radius: 10px !important;
  background: var(--sh-paper, var(--paper, #fff)) !important; color: var(--sh-ink, var(--ink, #1d202b)) !important;
  font: inherit; font-size: 13.5px !important; font-weight: 700 !important; line-height: 1 !important; letter-spacing: 0 !important;
  cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgb(29 32 43 / .14) !important;
}
.lang-pick-trigger svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang-pick-globe { width: 16px; height: 16px; }
.lang-pick-chevron { width: 14px; height: 14px; opacity: .55; transition: transform .2s ease; }
[data-lang-pick].is-open .lang-pick-chevron { transform: rotate(180deg); }
.lang-pick-trigger:focus-visible, .lang-pick-item:focus-visible { outline: 2px solid var(--sh-accent, var(--accent, #0a6cff)); outline-offset: 2px; }
.lang-pick-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; display: grid; gap: 2px; min-width: 180px; padding: 6px;
  border: 1px solid var(--sh-line, var(--line, #e2e4ea)); border-radius: 14px; background: var(--sh-paper, var(--paper, #fff));
  box-shadow: 0 18px 44px -18px rgb(10 14 30 / .42);
}
.lang-pick-menu[hidden] { display: none; }
[data-lang-pick] .lang-pick-menu > .lang-pick-item.lang-pick-item {
  display: flex !important; align-items: center; justify-content: space-between; gap: 14px; width: auto !important; min-width: 0 !important;
  height: auto !important; margin: 0 !important; padding: 10px 12px !important; border: 0 !important; border-radius: 10px !important; background: none !important;
  color: var(--sh-ink, var(--ink, #1d202b)) !important; font: inherit; font-size: 14px !important; font-weight: 600 !important; line-height: 1.2 !important;
  letter-spacing: 0 !important; text-align: left; text-decoration: none !important; text-transform: none !important; box-shadow: none !important; cursor: pointer;
}
[data-lang-pick] .lang-pick-menu > .lang-pick-item.lang-pick-item:hover { background: var(--sh-bg, var(--bg, #f3f4f7)) !important; }
[data-lang-pick] .lang-pick-menu > .lang-pick-item.lang-pick-item:is([aria-current], [aria-pressed="true"], .active) { background: var(--sh-bg, var(--bg, #f3f4f7)) !important; font-weight: 700 !important; }
[data-lang-pick] .lang-pick-menu > .lang-pick-item.lang-pick-item:is([aria-current], [aria-pressed="true"], .active)::after { content: "✓"; color: var(--sh-accent, var(--accent, #0a6cff)); }
@media (prefers-reduced-motion: reduce) { .lang-pick-chevron { transition: none; } }
/* The cabinet's own language group is a pill with padding and a tinted ground: the picker brings its own. */
.language[data-lang-pick] { padding: 0; border: 0; background: none; }
