/* ==========================================================================
   купитьаккаунттелеграм.com — minimal design system
   --------------------------------------------------------------------------
   Rewritten 2026-08-12. Principle: nothing decorative. No gradients, no
   glows, no coloured shadows, no pulsing. Hierarchy comes from type size,
   weight and hairlines only. One accent colour, used sparingly.
   Mobile-first: every interactive target is >=44px, nothing overflows 320px.
   Class names are unchanged from the previous system on purpose — the 10
   HTML pages were not touched for this rewrite.
   ========================================================================== */

:root {
  /* Surfaces — three steps, nothing more */
  --canvas: #0b0c0e;
  --surface-1: #131517;
  --surface-2: #191c1f;
  --surface-3: #22262a;
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  /* Accent — Telegram blue, flat */
  --primary: #2b9fdd;
  --primary-bright: #7cc6ee;
  --primary-deep: #1d84bd;
  --on-primary: #ffffff;
  --grad-primary: #2b9fdd; /* kept as a token: no gradients anywhere now */

  /* Text */
  --text: #e9ebed;
  --text-muted: #a2abb3;
  --text-dim: #737c84;

  /* Status — desaturated so they read as data, not decoration */
  --ok: #5fbf8b;
  --warn: #d9b26a;
  --error: #d98b83;

  /* Shape — two radii only */
  --r-sm: 4px;
  --r: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 12px;
  --r-full: 9999px;

  /* Layout */
  --gutter: 16px;
  --margin: 18px;
  --container: 1120px;
  --header-h: 58px;

  /* Type */
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
    'Liberation Mono', monospace;

  /* Depth — one shadow, neutral, used only on overlays */
  --shadow-2: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  --glow: none;

  /* Height of the mobile action bar, so content can clear it */
  --bar-h: 60px;
}

@media (min-width: 700px) { :root { --margin: 28px; } }
@media (min-width: 1000px) { :root { --margin: 40px; --header-h: 64px; --bar-h: 0px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--primary-bright); text-decoration: none; }
a:hover { color: #a9dcf6; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.015em; }
h1 {
  font-size: clamp(27px, 6.2vw, 42px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.025em;
}
h2 { font-size: clamp(21px, 3.6vw, 27px); line-height: 1.22; }
h3 { font-size: 17px; line-height: 1.32; }
@media (min-width: 900px) { h3 { font-size: 18px; } }
p { margin: 0 0 1em; }

/* --------------------------------------------------------- layout helpers */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.section { padding: 44px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }

.section-head { margin-bottom: 24px; max-width: 680px; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 12px;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

.grid { display: grid; gap: var(--gutter); }
.cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }

/* Grid and flex children default to min-width:auto, so anything with an
   intrinsic minimum (a wide table, a long mono string) pushes its track
   wider than the screen and the whole page scrolls sideways. Every layout
   container opts out of that once, here. */
.grid > *,
.split > *,
.article-layout > *,
.footer-grid > *,
.prose,
.legal { min-width: 0; }

@media (min-width: 640px) {
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: #3aabe7; color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--text); }

.btn-sm { min-height: 42px; padding: 9px 15px; font-size: 14px; }
.btn-block { width: 100%; }

/* Below ~380px a long label (e.g. «Смотреть бюджетные аккаунты», 267px) cannot
   fit on one line, and `nowrap` made it push the whole document wider than the
   screen. Let buttons wrap at the very narrow end instead — this is a general
   guard, so a new long label can never reintroduce the overflow. */
@media (max-width: 379px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
}

/* Duplicate CTAs: the mobile bottom bar already offers these, so the
   in-page copy is desktop-only rather than a third button in the stack. */
.hide-mobile { display: none; }
@media (min-width: 1000px) { .hide-mobile { display: inline-flex; } }

/* ----------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(11, 12, 14, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand:hover { color: var(--text); }

/* The wordmark is the domain, which is 25 characters — it has to survive a
   360px header next to a 44px burger, so it steps down rather than wrapping.
   The TLD is dimmed so the keyword part reads first. */
.brand-name {
  font-size: 13.5px;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
@media (min-width: 420px) { .brand-name { font-size: 15px; } }
@media (min-width: 900px) { .brand-name { font-size: 16px; } }
.brand-name i { font-style: normal; color: var(--text-dim); }

.brand-mark {
  width: 24px; height: 24px;
  border-radius: var(--r-full);
  background: var(--primary);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.brand-mark svg { width: 13px; height: 13px; fill: #fff; }

/* desktop nav appears earlier now (tablets get real links, not a burger) */
.nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 900px) { .nav { display: flex; } }

.nav a {
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 400;
  padding: 8px 11px;
  border-radius: var(--r);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current='page'] { color: var(--text); font-weight: 500; }

.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }

.burger {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  border-radius: var(--r);
  border: 0;
  background: transparent;
  cursor: pointer;
}
@media (min-width: 900px) { .burger { display: none; } }
.burger span {
  display: block; width: 19px; height: 1.5px; background: var(--text);
  box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.burger[aria-expanded='true'] span {
  box-shadow: none;
  transform: rotate(45deg);
}
.burger[aria-expanded='true'] span::after {
  content: ''; display: block; width: 19px; height: 1.5px;
  background: var(--text); transform: rotate(-90deg);
}

/* mobile nav: full sheet, large rows, scrolls if it needs to */
.mobile-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  /* fills the screen so no half-scrolled page shows through underneath,
     and sits above the bottom action bar (z 58), below the header (z 60) */
  min-height: calc(100dvh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 59;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 6px var(--margin) 22px;
  display: none;
}
.mobile-nav.open { display: block; }
body.nav-open { overflow: hidden; }

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 2px;
  color: var(--text);
  border-bottom: 1px solid var(--hairline);
  font-size: 16px;
  font-weight: 400;
}
.mobile-nav a[aria-current='page'] { color: var(--primary-bright); }
.mobile-nav .btn { margin-top: 18px; border-bottom: 0; }

main { padding-top: var(--header-h); }
/* clear the mobile action bar so nothing hides behind it */
body { padding-bottom: var(--bar-h); }

/* --------------------------------------------- mobile bottom action bar */

.mobilebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 58;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px var(--margin) calc(8px + env(safe-area-inset-bottom));
  background: rgba(11, 12, 14, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
}
.mobilebar .btn { min-height: 44px; font-size: 14.5px; }
@media (min-width: 1000px) { .mobilebar { display: none; } }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 900px) { .hero { padding: 72px 0 60px; } }

.hero-inner { max-width: 720px; }
.hero h1 { margin-bottom: 14px; }
.hero .lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 580px;
}
@media (min-width: 900px) { .hero .lead { font-size: 17.5px; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions .btn { flex: 1 1 190px; }
@media (min-width: 560px) { .hero-actions .btn { flex: 0 0 auto; } }

.searchbar {
  display: flex;
  gap: 6px;
  margin-top: 24px;
  max-width: 520px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 5px;
}
.searchbar input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* 16px stops iOS zooming on focus */
  padding: 10px 12px;
}
.searchbar input::placeholder { color: var(--text-dim); }
.searchbar .btn { min-height: 40px; }
.searchbar:focus-within { border-color: var(--hairline-strong); }

/* ------------------------------------------------------------------ cards */

.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--hairline-strong); }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; margin-bottom: 0; }

.icon-badge {
  width: 34px; height: 34px;
  border-radius: var(--r);
  background: transparent;
  border: 1px solid var(--hairline-strong);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.icon-badge svg { width: 17px; height: 17px; stroke: var(--text-muted); fill: none; stroke-width: 1.6; }

/* --------------------------------------------------------- product cards */

.product {
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 18px;
  position: relative;
  transition: border-color 0.15s ease;
}
.product:hover { border-color: var(--hairline-strong); }

.product-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.product-avatar {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: var(--r-full);
  background: var(--surface-3);
  display: grid; place-items: center;
}
.product-avatar svg { width: 17px; height: 17px; fill: var(--text-muted); }
.product-title { flex: 1 1 auto; min-width: 0; }
.product-title b { display: block; font-size: 16px; font-weight: 600; }
.product-title span { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

.verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-full);
  padding: 3px 8px;
  flex: 0 0 auto;
}
.verified svg { width: 10px; height: 10px; fill: var(--text-muted); }

.specs { list-style: none; margin: 0 0 14px; padding: 0; }
.specs li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13.5px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
}
.specs li:last-child { border-bottom: 0; }
.specs dt, .specs .k { color: var(--text-dim); }
.specs .v { font-family: var(--font-mono); color: var(--text); text-align: right; }

.product-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.stock { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.stock.low { color: var(--warn); }

/* ---------------------------------------------------------------- filters */

/* On phones the chips scroll sideways instead of stacking into four rows */
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .filters { flex-wrap: wrap; overflow: visible; } }

.chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed='true'] {
  background: var(--text);
  border-color: var(--text);
  color: var(--canvas);
}

.filter-group { margin-bottom: 16px; }
.filter-group > .label {
  display: block;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 9px;
}

.empty-note {
  display: none;
  padding: 36px 20px;
  text-align: center;
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--hairline); font-size: 14px; }
th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim); background: var(--surface-1);
  font-weight: 400;
}
td.num { font-family: var(--font-mono); color: var(--text); }
tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------- faq */

.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: 0;
  min-height: 56px;
  padding: 16px 0;
  color: var(--text);
  font-family: inherit; font-size: 16px; font-weight: 500; text-align: left;
  line-height: 1.4;
  cursor: pointer;
}
.faq-q::after {
  content: '+';
  font-family: var(--font-mono); font-size: 18px; color: var(--text-dim);
  flex: 0 0 auto;
}
.faq-q[aria-expanded='true']::after { content: '−'; }
.faq-a { display: none; padding: 0 0 18px; color: var(--text-muted); max-width: 760px; }
.faq-a.open { display: block; }
.faq-a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------- CTA */

.cta-band {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  text-align: left;
}
@media (min-width: 700px) { .cta-band { padding: 36px 32px; } }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--text-muted); max-width: 540px; }
.cta-band .hero-actions { margin-top: 20px; }

/* ------------------------------------------------------------------ prose */

.prose { max-width: 680px; }
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: var(--text-muted); font-size: 16.5px; line-height: 1.7; }
@media (min-width: 900px) { .prose p, .prose li { font-size: 17px; } }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  margin: 24px 0; padding: 2px 0 2px 18px;
  border-left: 2px solid var(--hairline-strong);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 26px 0; }
.prose figcaption { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.prose img { border-radius: var(--r); border: 1px solid var(--hairline); }

.article-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 1040px) { .article-layout { grid-template-columns: 220px 1fr; gap: 48px; } }

.toc { align-self: start; }
@media (min-width: 1040px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
/* on phones the TOC is a collapsed-feeling block, not a wall of links */
.toc {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}
@media (min-width: 1040px) { .toc { border: 0; border-left: 1px solid var(--hairline); border-radius: 0; padding: 2px 0 2px 18px; } }
.toc b {
  display: block;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px;
  font-weight: 400;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin-bottom: 10px; }
.toc a { color: var(--text-muted); font-size: 14px; }
.toc a:hover { color: var(--text); }

.meta-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
  margin-bottom: 22px;
}

/* post cards */
.post-card { display: flex; flex-direction: column; }
.post-card .tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-dim); text-transform: uppercase; margin-bottom: 10px; display: block;
}
.post-card h3,
.post-card h2 { font-size: 17px; line-height: 1.32; margin: 0 0 0.5em; }
@media (min-width: 900px) { .post-card h3, .post-card h2 { font-size: 18px; } }
.post-card h3 a,
.post-card h2 a { color: var(--text); }
.post-card h3 a:hover,
.post-card h2 a:hover { color: var(--primary-bright); }
/* card CTA, not an inline prose link — needs a real tap target */
.post-card .more {
  margin-top: 10px; font-size: 14.5px; font-weight: 500;
  display: inline-flex; align-items: center; min-height: 40px;
}

/* pagination ---------------------------------------------------------------
   Three slots so the number strip stays optically centred even when only one
   of the prev/next buttons exists (the generator emits an empty <span>). */
.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.pager > a[rel='prev'] { justify-self: start; }
.pager > a[rel='next'] { justify-self: end; }

.pager-nums {
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
}
.pager-nums a,
.pager-nums span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: var(--r-md);
  color: var(--text-muted);
  border: 1px solid transparent;
}
.pager-nums a:hover { color: var(--text); border-color: var(--hairline-strong); }
.pager-nums [aria-current='page'] {
  color: var(--canvas);
  background: var(--text);
  font-weight: 500;
}
/* on a narrow screen the word buttons shrink so the numbers keep their room */
@media (max-width: 479px) {
  .pager { gap: 6px; }
  .pager .btn { padding: 9px 11px; font-size: 13px; }
}
/* Below ~380px a middle page carries BOTH «Назад» and «Дальше» plus the number
   strip, which cannot fit and pushed the document to 291px on a 280px screen.
   Drop to numbers only: they are 40px targets and wrap, so this holds at any
   page count. */
@media (max-width: 379px) {
  .pager { grid-template-columns: 1fr; justify-items: center; }
  .pager .btn { display: none; }
  .pager-nums { flex-wrap: wrap; justify-content: center; }
}

/* the article answer block — first thing under the H1, lifted for snippets */
.prose .lead-answer {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--text);
  padding-left: 16px;
  border-left: 2px solid var(--primary);
  margin-bottom: 30px;
}
@media (min-width: 900px) { .prose .lead-answer { font-size: 18.5px; } }

/* ------------------------------------------------------------ breadcrumbs */

.crumbs {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
  padding: 16px 0 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.crumbs::-webkit-scrollbar { display: none; }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 6px; opacity: 0.5; }

/* ------------------------------------------------------------------ forms */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 13px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* 16px stops iOS zooming on focus */
  outline: none;
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); }
.form-note { font-size: 13px; color: var(--text-dim); }

.contact-card {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px;
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 16px 18px; color: var(--text);
  transition: border-color 0.15s ease;
}
.contact-card:hover { color: var(--text); border-color: var(--hairline-strong); }
.contact-card b { display: block; font-size: 15px; font-weight: 500; }
.contact-card span { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }

/* ----------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
  padding: 40px 0 24px;
  margin-top: 32px;
}
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; } }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-about { grid-column: auto; } }

/* Footer group labels are h2 for a valid outline (they used to be h4, which
   made every page jump h2 -> h4). Level is semantic; size stays label-sized. */
.footer-grid h4,
.footer-grid .ftitle {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim); margin: 0 0 12px;
  font-weight: 400; line-height: 1.3;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 4px; }
.footer-grid a {
  color: var(--text-muted); font-size: 14.5px;
  display: inline-flex; align-items: center; min-height: 40px;
}
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--text-muted); font-size: 14px; max-width: 340px; }

.footer-bottom {
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 12.5px; color: var(--text-dim);
}

/* --------------------------------------------------------- floating stuff */

/* The chat FAB is desktop-only: on phones the bottom action bar does the
   same job without covering content. */
/* Labelled pill, not a bare icon: the word plus the caret are what tell a
   first-time visitor this expands something on the page rather than firing
   off to Telegram. Desktop-only — on phones the bottom bar does this job. */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  height: 46px;
  padding: 0 16px 0 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--hairline-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 9px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
@media (min-width: 1000px) { .chat-fab { display: inline-flex; } }
.chat-fab:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.28); }

.chat-fab .fab-icon {
  width: 18px; height: 18px; flex: 0 0 auto;
  fill: none; stroke: var(--primary-bright); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.chat-fab .fab-label { white-space: nowrap; }
.chat-fab .fab-caret {
  width: 14px; height: 14px; flex: 0 0 auto;
  fill: none; stroke: var(--text-dim); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.18s ease;
}
/* caret points up when collapsed, down when the panel is showing */
.chat-fab[aria-expanded='true'] .fab-caret { transform: rotate(180deg); }
.chat-fab[aria-expanded='true'] { border-color: rgba(255, 255, 255, 0.28); }

.chat-panel {
  position: fixed; right: 24px; bottom: 82px; z-index: 70;
  width: min(320px, calc(100vw - 48px));
  background: var(--surface-2);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  display: none;
}
.chat-panel.open { display: block; }
@media (max-width: 999px) { .chat-panel, .chat-panel.open { display: none; } }
.chat-head {
  background: var(--surface-3);
  padding: 13px 16px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
  border-bottom: 1px solid var(--hairline);
}
.chat-head b { font-size: 14.5px; font-weight: 600; }
.chat-head small { display: block; font-size: 12px; color: var(--text-muted); }
.chat-head button {
  margin-left: auto; background: transparent; border: 0; color: var(--text-muted);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px;
}
.chat-body { padding: 16px; }
.chat-bubble {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.chat-body .btn { width: 100%; }
.chat-body .btn + .btn { margin-top: 8px; }

.to-top {
  position: fixed; right: 20px; z-index: 57;
  bottom: calc(var(--bar-h) + 14px);
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--hairline-strong);
  color: var(--text);
  cursor: pointer;
  display: none;
  place-items: center;
}
@media (min-width: 1000px) { .to-top { right: 24px; bottom: 88px; } }
.to-top.show { display: grid; }
.chat-panel.open ~ .to-top { display: none; }
.to-top svg { width: 15px; height: 15px; stroke: var(--text); fill: none; stroke-width: 2; }

/* ==========================================================================
   Shop-floor components — inventory board, rule lists, review feed.
   Same structure as before, restyled flat.
   ========================================================================== */

/* The `.notice` strip that used to sit under the header was removed
   sitewide on the owner's instruction (2026-08-12) and its CSS deleted with
   it. The replacement policy itself is unchanged — see usloviya.html, the
   `.callout` blocks and the order sheet's checklist. */

/* numbered section label -------------------------------------------------- */
.sec-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.sec-label i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.sec-label h2 { margin: 0; }
.sec-label .aside {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
}
/* the aside is a nicety — it drops out on phones rather than wrapping badly */
@media (max-width: 599px) { .sec-label .aside { display: none; } }

/* asymmetric split -------------------------------------------------------- */
.split { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) {
  .split { grid-template-columns: 1.3fr 1fr; gap: 48px; }
  .split.narrow-first { grid-template-columns: 1fr 1.3fr; }
}

/* live status dot --------------------------------------------------------- */
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--ok);
  margin-right: 7px;
  vertical-align: middle;
}
.dot.warn { background: var(--warn); }

/* inventory board --------------------------------------------------------- */
.board {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.board-head,
.board-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 12px 16px;
  align-items: center;
}
.board-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--hairline);
}
/* phone: name + status on row one, format underneath — no cramped 3 columns */
.board-head .fmt-col { display: none; }
.board-head .st-col { text-align: right; }
.board-row {
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  font-size: 15px;
  min-height: 56px;
  transition: background 0.15s ease;
}
.board-row:last-child { border-bottom: 0; }
a.board-row:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.board-row b { font-weight: 500; }
.board-row .fmt {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}
.board-row .st {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
  white-space: nowrap;
  grid-row: 1;
  grid-column: 2;
}
.board-row .st.ok { color: var(--ok); }
.board-row .st.low { color: var(--warn); }

@media (min-width: 560px) {
  /* the format string is 22 characters of mono — it gets the widest track
     and never wraps, otherwise every row grows to two lines */
  .board-head, .board-row { grid-template-columns: 0.9fr 1.4fr 0.6fr; gap: 12px; }
  .board-head .fmt-col { display: block; }
  .board-row .fmt { grid-column: 2; grid-row: 1; font-size: 11px; white-space: nowrap; }
  .board-row .st { grid-column: 3; }
}

.board-foot {
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--hairline);
}

/* rule list --------------------------------------------------------------- */
.rules { border-top: 1px solid var(--hairline); }
.rules > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 4px 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 800px) {
  .rules > div { grid-template-columns: 44px 1fr 1.2fr; gap: 20px; align-items: start; padding: 22px 0; }
}
.rules .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 4px;
  letter-spacing: 0.08em;
}
.rules h3,
.rules .rtitle { margin: 0 0 4px; font-size: 16.5px; line-height: 1.32; font-weight: 600; letter-spacing: -0.015em; }
.rules p { margin: 0; color: var(--text-muted); font-size: 15px; }
@media (min-width: 800px) { .rules h3, .rules .rtitle { margin-bottom: 0; } }
/* phone: the body text lines up under the heading, not under the number */
@media (max-width: 799px) { .rules p { grid-column: 2; } }

/* terms / legal document -------------------------------------------------- */
.legal { max-width: 740px; counter-reset: clause; }
.legal h2 {
  font-size: 19px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.legal h2:first-of-type { margin-top: 24px; }
.legal h3 { font-size: 16px; margin-top: 22px; }
.legal p, .legal li { color: var(--text-muted); font-size: 15.5px; line-height: 1.68; }
.legal ul, .legal ol { padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal strong { color: var(--text); }
.legal .clause {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

/* callouts: a hairline and a left rule, not a coloured box ---------------- */
.callout {
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--error);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 16px;
  margin: 20px 0;
}
.callout p { margin: 0; color: var(--text-muted); font-size: 15px; }
.callout p + p { margin-top: 8px; }
.callout b { color: var(--text); font-weight: 600; }

.callout.ok { border-left-color: var(--ok); }

/* ==========================================================================
   Engagement layer — the picker and the order sheet.
   Both exist so a buyer does the thinking ON the site and arrives in
   Telegram with a complete first message, instead of opening a chat and
   typing "здравствуйте". Same minimal rules: hairlines, no decoration.
   ========================================================================== */

/* account picker ---------------------------------------------------------- */
.picker { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .picker { grid-template-columns: 1.15fr 1fr; gap: 44px; } }
.picker > * { min-width: 0; }

.picker-q { margin-bottom: 22px; }
.picker-q:last-child { margin-bottom: 0; }
.picker-q > .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.picker-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.picker-opts button {
  font-family: inherit;
  font-size: 14.5px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.picker-opts button:hover { color: var(--text); }
.picker-opts button[aria-pressed='true'] {
  background: var(--text);
  border-color: var(--text);
  color: var(--canvas);
  font-weight: 500;
}

/* the result panel. Sticky on desktop so it stays visible while answering. */
.picker-out {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px;
}
@media (min-width: 980px) {
  .picker-out { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; }
}
.picker-out .out-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 12px;
}
.picker-out .out-pick {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.picker-out .out-fmt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.picker-out ul { list-style: none; margin: 0 0 18px; padding: 0; }
.picker-out li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.picker-out li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 7px; height: 1px; background: var(--text-dim);
}
.picker-out .out-actions { display: grid; gap: 8px; }
/* the "answer more questions" state */
.picker-out[data-state='empty'] .out-actions,
.picker-out[data-state='empty'] ul { display: none; }
.picker-out[data-state='empty'] .out-pick { color: var(--text-dim); font-weight: 400; font-size: 17px; }

/* order sheet ------------------------------------------------------------- */
.sheet {
  position: fixed; inset: 0; z-index: 80;
  display: none;
  background: rgba(0, 0, 0, 0.6);
}
.sheet.open { display: block; }
body.sheet-open { overflow: hidden; }

.sheet-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface-1);
  border-top: 1px solid var(--hairline-strong);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 20px var(--margin) calc(20px + env(safe-area-inset-bottom));
}
/* on desktop it is a centred dialog, not a bottom sheet */
@media (min-width: 760px) {
  .sheet-panel {
    position: relative;
    margin: 6vh auto;
    max-width: 460px;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-2);
  }
}

.sheet-head {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 18px;
}
.sheet-head h3 { margin: 0; font-size: 18px; }
.sheet-head p { margin: 4px 0 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); }
.sheet-head button {
  margin-left: auto;
  width: 36px; height: 36px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  background: transparent; border: 0;
  color: var(--text-muted);
  font-size: 22px; line-height: 1;
  cursor: pointer;
}

/* quantity stepper */
.qty { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.qty > .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim); margin-right: auto;
}
.qty button {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--text);
  font-size: 19px; line-height: 1;
  cursor: pointer;
}
.qty button:hover { border-color: rgba(255, 255, 255, 0.3); }
.qty input {
  width: 68px; height: 44px;
  text-align: center;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-mono); font-size: 16px;
  outline: none;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Bulk note under the quantity stepper. Quiet by default; when the typed
   amount reaches the 5000 ceiling it lights up, so someone who wants 8000 is
   told what to do instead of being silently capped. */
.sheet-bulk {
  margin: -6px 0 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.sheet-bulk a {
  color: var(--primary-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hairline-strong);
}
.sheet-bulk a:hover { text-decoration-color: var(--primary-bright); }
.sheet-bulk.is-max {
  color: var(--text);
  border-color: rgba(43, 159, 221, 0.45);
  background: rgba(43, 159, 221, 0.07);
}

/* the Rule-4 checklist the buyer confirms before the chat opens */
.checklist { margin: 0 0 18px; padding: 16px; border: 1px solid var(--hairline); border-radius: var(--r-md); }
.checklist b {
  display: block; font-size: 13px; color: var(--text); margin-bottom: 10px; font-weight: 600;
}
.checklist ol { margin: 0; padding-left: 18px; }
.checklist li { font-size: 13.5px; color: var(--text-muted); margin-bottom: 6px; }
.checklist li:last-child { margin-bottom: 0; }

.sheet-note { font-size: 12.5px; color: var(--text-dim); margin: 12px 0 0; text-align: center; }

/* ------------------------------------------------------------------ utils */

.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Mono labels are 11px by design — fine on a desktop monitor, too small on a
   phone held at arm's length. They step up below 700px, which is where the
   screen is closest to the eye and the type is hardest to read. */
@media (max-width: 699px) {
  .eyebrow,
  .picker-q > .label,
  .filter-group > .label,
  .qty > .label,
  .field label,
  .footer-grid h4,
  .legal .clause,
  .board-head,
  .toc b { font-size: 12px; }
  .meta-row { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
