/* infinity-glass.ru — раздел «Статьи» и «Авторы». 24.09.2026.
   Токены сняты с живого сайта: фон страниц #002B37, подвал #003A47, текст белый 17/30, Montserrat,
   кнопки — серебристый градиент с чёрным текстом, при наведении фиолетовый #6E3F82 со свечением,
   бирюза #008287 — линии и маркеры. Фирменный приём раздела — «полированная кромка» (.st-edge):
   серебристая полоса по верху панели, как шлифованный торец стекла. Остальное — тихо и плоско.
   Версия файла — IG_STATI_VER в lib.php, поднимать при каждой правке. */

.ig-st {
  --st-bg: #002B37;
  --st-panel: #003A47;
  --st-ink: #001B25;
  --st-line: rgba(255, 255, 255, .12);
  --st-line-2: rgba(255, 255, 255, .26);
  --st-text: #FFFFFF;
  --st-muted: rgba(255, 255, 255, .74);
  --st-teal: #008287;          /* только линии и маркеры: как текст на фоне — 3,2:1, мало */
  --st-link: #5FB3A9;          /* ссылки и подписи на фоне #002B37 — 6,1:1 */
  --st-violet: #6E3F82;
  --st-silver: linear-gradient(48.75deg, #C5C6C6 1.64%, #FFFFFF 36.69%, #B4B4B4 69.05%, #FFFFFF 98.72%, #C5C6C6 136.47%);
  --st-r: 5px;
  --st-hdr: 0px;               /* шапка сайта не закрепляется; stati.js уточняет, если это изменится */
  background: var(--st-bg);
  color: var(--st-text);
  font-family: Montserrat, sans-serif;
  padding: 8px 0 104px;
}
.ig-st *, .ig-st *::before, .ig-st *::after { box-sizing: border-box; }
.ig-st [hidden] { display: none !important; }

/* Bootstrap сайта: синие ссылки с подчёркиванием при наведении, отступы у p, h2, ul */
.ig-st a { color: inherit; text-decoration: none; }
.ig-st a:hover { color: inherit; text-decoration: none; }
.ig-st p, .ig-st ul, .ig-st ol, .ig-st figure { margin: 0; }
.ig-st h2, .ig-st h3 { font-family: inherit; }
.ig-st :focus-visible { outline: 2px solid var(--st-link); outline-offset: 3px; }
.ig-st time { white-space: nowrap; }
.ig-st .st-nw { white-space: nowrap; }

.st-wrap > * { max-width: 1110px; margin-left: auto; margin-right: auto; }

/* H1 выводит шаблон (.title-page, 48 px, отступ снизу 85 px) — на страницах раздела сжимаем отступ */
body:has(.ig-st) .title-page h1 { margin-bottom: 36px; text-wrap: pretty; }
body:has(.st-page--article) .title-page h1 { font-size: clamp(30px, 3vw, 44px); line-height: 1.2; }

/* ---------- полированная кромка ---------- */
.st-edge { position: relative; background: var(--st-panel); border-radius: var(--st-r); overflow: hidden; }
.st-edge::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--st-silver); pointer-events: none;
}

/* ---------- тестовая плашка ---------- */
.st-testbar {
  max-width: 1110px; margin: 0 auto 28px; padding: 10px 16px; border-radius: var(--st-r);
  background: #FFD166; color: #1C1A10; font-size: 14px; line-height: 1.45; font-weight: 500;
}

/* ---------- кнопки и ссылки ---------- */
.ig-st .st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border: 0; border-radius: 2px; cursor: pointer;
  font: 600 15px/1.2 Montserrat, sans-serif; text-align: center; text-decoration: none;
  transition: background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.ig-st .st-btn--action { background: var(--st-silver); color: #000; }
.ig-st .st-btn--silver { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #C5C6C6; }
.ig-st .st-btn--action:hover, .ig-st .st-btn--silver:hover,
.ig-st .st-btn--action:focus-visible, .ig-st .st-btn--silver:focus-visible {
  background: var(--st-violet); color: #fff; box-shadow: 0 4px 14px var(--st-violet);
}
.ig-st .st-link {
  color: var(--st-link); font-size: 15px; font-weight: 600;
  text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px;
}
.ig-st .st-link:hover { color: #fff; text-decoration: underline; }

/* ---------- подпись под H1 статьи ---------- */
.st-byline { display: flex; align-items: center; justify-content: center; gap: 14px; }
.st-byline__photo-link { flex: 0 0 auto; }
.st-byline__photo { display: flex; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; }
.st-byline__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ig-st .st-byline__who { font-size: 16px; line-height: 1.4; }
.ig-st .st-byline__who a { font-weight: 600; border-bottom: 1px solid var(--st-line-2); }
.ig-st .st-byline__who a:hover { color: var(--st-link); border-color: var(--st-link); }
.ig-st .st-byline__dates { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--st-muted); }
.st-byline__dates > span { padding: 0 12px; border-left: 1px solid var(--st-line-2); }
.st-byline__dates > span:first-child { padding-left: 0; border-left: 0; }
.ig-st .st-byline__rv { margin-top: 3px; font-size: 14px; color: var(--st-muted); }
.ig-st .st-byline__rv a { color: #fff; border-bottom: 1px solid var(--st-line-2); }

/* заглушка вместо фото — инициалы на серебре */
.st-mono {
  display: flex !important; align-items: center; justify-content: center;
  background: var(--st-silver); color: #002B37; font-weight: 600; letter-spacing: .02em;
}
.st-byline__photo.st-mono { font-size: 17px; }

/* ---------- сетка статьи ---------- */
.st-layout {
  display: grid; grid-template-columns: minmax(0, 720px) 320px; gap: 70px;
  justify-content: space-between; align-items: start; margin-top: 48px;
}
.st-article { min-width: 0; }

/* ---------- текст ---------- */
.ig-st .st-lead { margin: 0 0 32px; font-size: 21px; line-height: 1.6; font-weight: 400; }

.st-short { padding: 28px 32px 24px; margin: 0 0 32px; }
.ig-st .st-short__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--st-link); }
.ig-st .st-short li { position: relative; padding-left: 22px; margin: 0 0 8px; font-size: 17px; line-height: 1.55; list-style: none; }
.ig-st .st-short ul { padding: 0; }
.ig-st .st-short li::before,
.ig-st .st-body ul > li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px;
  background: var(--st-teal); transform: rotate(45deg);
}

.st-toc { margin: 0 0 40px; padding: 22px 28px 20px; border: 1px solid var(--st-line); border-radius: var(--st-r); }
.ig-st .st-toc__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--st-muted); }
.ig-st .st-toc ol, .ig-st .st-side__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: sttoc; }
.ig-st .st-toc li { counter-increment: sttoc; position: relative; padding-left: 34px; margin: 0 0 10px; font-size: 16px; line-height: 1.45; }
.ig-st .st-toc li:last-child { margin-bottom: 0; }
.ig-st .st-toc li::before { content: counter(sttoc); position: absolute; left: 0; top: 0; width: 24px; font-weight: 700; color: var(--st-link); font-variant-numeric: tabular-nums; }
.ig-st .st-toc a { text-decoration: underline; text-decoration-color: var(--st-line-2); text-underline-offset: .22em; }
.ig-st .st-toc a:hover { color: var(--st-link); text-decoration: underline; text-decoration-color: var(--st-link); }

.st-cover { margin: 0 0 40px !important; }
.st-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--st-r); }
.ig-st figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--st-muted); }

.st-body { font-size: 18px; line-height: 1.7; font-weight: 400; color: rgba(255, 255, 255, .92); overflow-wrap: break-word; }
.ig-st .st-body p { margin: 0 0 1.05em; font-size: 18px; line-height: 1.7; text-wrap: pretty; }
.ig-st .st-body h2 {
  margin: 2.1em 0 .6em; font-size: 30px; line-height: 1.25; font-weight: 500;
  text-wrap: pretty; color: #fff; scroll-margin-top: calc(var(--st-hdr) + 16px);
}
.ig-st .st-body h3 {
  margin: 1.7em 0 .5em; font-size: 22px; line-height: 1.3; font-weight: 600;
  color: #fff; scroll-margin-top: calc(var(--st-hdr) + 16px);
}
.ig-st .st-body > :first-child { margin-top: 0; }
.ig-st .st-body a { color: var(--st-link); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.ig-st .st-body a:hover { color: #fff; text-decoration: underline; }
.ig-st .st-body strong, .ig-st .st-body b { font-weight: 700; color: #fff; }
.ig-st .st-body ul, .ig-st .st-body ol { margin: 0 0 1.1em; padding: 0; list-style: none; }
.ig-st .st-body li { position: relative; margin: 0 0 .45em; padding-left: 26px; font-size: 18px; line-height: 1.65; }
.ig-st .st-body ol { counter-reset: stol; }
.ig-st .st-body ol > li { counter-increment: stol; padding-left: 34px; }
.ig-st .st-body ol > li::before { content: counter(stol) "."; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--st-link); }
.ig-st .st-body figure { margin: 2em 0; }
.ig-st .st-body img { display: block; max-width: 100%; height: auto; border-radius: var(--st-r); }
.ig-st .st-body figure img { width: 100%; }
.ig-st .st-body blockquote,
.ig-st .st-body .st-note {
  margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--st-teal); border-radius: 0 var(--st-r) var(--st-r) 0;
  background: var(--st-panel); font-size: 17px; line-height: 1.6;
}
.ig-st .st-body blockquote p:last-child, .ig-st .st-body .st-note p:last-child { margin-bottom: 0; }

.ig-st .st-table { margin: 1.6em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--st-r); }
.ig-st .st-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.ig-st .st-table th { padding: 14px 16px; background: var(--st-teal); color: #fff; font-weight: 600; text-align: left; vertical-align: top; }
.ig-st .st-table td { padding: 14px 16px; border-bottom: 1px solid var(--st-line); background: var(--st-panel); vertical-align: top; }
.ig-st .st-table td:first-child { font-weight: 500; }

/* FAQ: пары вопрос-ответ видимым текстом */
.ig-st .st-faq { border-top: 1px solid var(--st-line); }
.ig-st .st-faq__item { padding: 22px 0 8px; border-bottom: 1px solid var(--st-line); }
.ig-st .st-body .st-faq__q { margin: 0 0 .5em; font-size: 20px; line-height: 1.35; font-weight: 600; }
.ig-st .st-faq__a p { margin-bottom: .8em; }

.ig-st .st-updnote { margin: 24px 0 0; font-size: 14px; color: var(--st-muted); }

/* ---------- поделиться: стандарт значками (info-statya, share-blok.html) ----------
   Сети — своими цветами; служебные (почта, печать, ссылка, «Отправить») — прозрачные с кромкой. */
.st-share { margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--st-line); }
.ig-st .st-share__title { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.ig-st .st-sh__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ig-st .st-sh__list > li { margin: 0 !important; padding: 0 !important; background: none !important; list-style: none !important; }
.ig-st .st-sh__list > li::before, .ig-st .st-sh__list > li::after { content: none !important; display: none !important; }
.ig-st .st-sh__list > li[hidden] { display: none !important; }
.ig-st .st-sh__i { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin: 0;
  border: 0; border-radius: 50%; color: #fff; text-decoration: none; cursor: pointer; box-shadow: none;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease, background-color .15s ease; }
.ig-st .st-sh__i svg { width: 50%; height: 50%; display: block; flex: none; }
.ig-st .st-sh__i--tg svg { width: 77%; height: 77%; margin-left: -7%; }
.ig-st .st-sh__i--vk svg { width: 68%; height: 68%; }
.ig-st .st-sh__i--max svg { width: 55%; height: 55%; }
.ig-st .st-sh__i--ok svg { width: 45%; height: 45%; }
.ig-st .st-sh__i--util svg, .ig-st .st-sh__i--util svg * { fill: none !important; }
.ig-st .st-sh__i:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ig-st .st-sh__i:focus-visible { outline: 3px solid var(--st-link); outline-offset: 2px; }
.ig-st .st-sh__i--tg { background: #26a5e4; }
.ig-st .st-sh__i--max { background: linear-gradient(135deg, #00c6ff 0%, #1591ff 35%, #3c22fe 70%, #8419ff 100%); }
.ig-st .st-sh__i--vk { background: #0077ff; }
.ig-st .st-sh__i--ok { background: #ee8208; }
.ig-st .st-sh__i--util { background: transparent; box-shadow: inset 0 0 0 1px var(--st-line-2); }
.ig-st .st-sh__i--util:hover { filter: none; box-shadow: inset 0 0 0 1px #C5C6C6; background: rgba(255, 255, 255, .06); }
.ig-st .st-sh__ico-ok { display: none !important; }
.ig-st .st-sh__i.is-done .st-sh__ico-link { display: none; }
.ig-st .st-sh__i.is-done .st-sh__ico-ok { display: block !important; }
.ig-st .st-sh__i--util.is-done { box-shadow: inset 0 0 0 1px var(--st-link); }
.ig-st .st-sh__note { display: block; margin-top: 10px; font-size: 14px; color: var(--st-muted); }
.ig-st .st-sh__note:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .ig-st .st-sh__i { transition: none; } .ig-st .st-sh__i:hover { transform: none; } }
@media (max-width: 359px) { .ig-st .st-sh__list { gap: 4px; } }

/* ---------- карточка автора ---------- */
.st-authorcard { display: flex; gap: 28px; align-items: center; margin-top: 32px; padding: 32px; }
.st-authorcard__photo-link { flex: 0 0 auto; }
.st-authorcard__photo { display: flex; width: 132px; height: 132px; border-radius: 50%; overflow: hidden; }
.st-authorcard__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-authorcard__photo.st-mono { font-size: 38px; }
.ig-st .st-authorcard__label { font-size: 14px; color: var(--st-muted); margin-bottom: 4px; }
.ig-st .st-authorcard__name { font-size: 22px; line-height: 1.3; font-weight: 600; }
.ig-st .st-authorcard__name a:hover { color: var(--st-link); }
.ig-st .st-authorcard__job { margin-top: 2px; font-size: 15px; color: var(--st-link); font-weight: 600; }
.ig-st .st-authorcard__exp { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--st-muted); }
.st-authorcard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 18px; }

/* ---------- боковая колонка ---------- */
.st-side { min-width: 0; height: 100%; }
.st-side__inner { position: sticky; top: calc(var(--st-hdr) + 24px); display: flex; flex-direction: column; gap: 28px; }
.ig-st .st-side__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--st-muted); }
.ig-st .st-promo__list { margin: 0; padding: 0; list-style: none; }
.ig-st .st-promo__list li { margin: 0; padding: 0; }
.st-promo__item { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--st-line); }
.st-promo__item img, .st-promo__ph { flex: 0 0 56px; width: 56px; height: 56px; object-fit: cover; display: block; border-radius: var(--st-r); background: var(--st-panel); }
.st-promo__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-promo__name { font-size: 15px; line-height: 1.3; font-weight: 500; }
.st-promo__price { font-size: 14px; color: var(--st-link); white-space: nowrap; }
.ig-st .st-promo__item:hover .st-promo__name { color: var(--st-link); }

.st-side__toc { border-left: 1px solid var(--st-line); }
.st-side__toc .st-toc__title { padding-left: 18px; }
.ig-st .st-side__toc ol { max-height: var(--st-toc-h, 340px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--st-line-2) transparent; }
.ig-st .st-side__toc li { margin: 0; padding: 0; }
.ig-st .st-side__toc a {
  display: block; margin-left: -1px; padding: 7px 10px 7px 17px; border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.4; font-weight: 400; color: var(--st-muted);
}
.ig-st .st-side__toc a:hover { color: #fff; }
.ig-st .st-side__toc a.is-active { border-left-color: #C5C6C6; color: #fff; font-weight: 700; }

.st-cta { padding: 28px 24px 24px; }
.ig-st .st-cta__title { font-size: 19px; line-height: 1.3; font-weight: 600; }
.ig-st .st-cta__note { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--st-muted); }
.ig-st .st-cta__phone { display: inline-block; margin: 14px 0 16px; font-size: 22px; font-weight: 600; white-space: nowrap; }
.ig-st .st-cta__phone:hover { color: var(--st-link); }
.ig-st .st-cta .st-btn { display: flex; width: 100%; }
.ig-st .st-cta__alt { display: block; margin-top: 14px; text-align: center; font-size: 15px; font-weight: 600; color: var(--st-link);
  text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.ig-st .st-cta__alt:hover { color: #fff; text-decoration: underline; }

/* колонка не влезает по высоте — ужимаем ступенями (класс на .st-side__inner ставит stati.js) */
.st-side__inner.st-side--s1 { gap: 20px; }
.st-side--s1 .st-cta__note { display: none; }
.st-side--s2 .st-promo__list li:nth-child(n+3) { display: none; }
.st-side--s3 .st-promo__item img, .st-side--s3 .st-promo__ph { display: none; }
.st-side--s3 .st-promo__item { padding: 6px 0; }
.ig-st .st-side--s3 .st-cta__phone { margin: 8px 0 10px; }
.st-side__inner.st-side--s4 { gap: 16px; }            /* и содержание от двух пунктов — в stati.js */
.st-side__inner.st-side--s5 { position: static; }

/* ---------- полоса содержания на телефоне и планшете (живёт в body, вне .ig-st) ---------- */
.st-tocbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 1040;
  background: #001B25; border-bottom: 1px solid rgba(255, 255, 255, .12);   /* сплошной: сквозь .97 просвечивал текст */
  font-family: Montserrat, sans-serif; color: #fff;
  transform: translateY(-100%); transition: transform .25s ease; visibility: hidden;
}
.st-tocbar.is-shown { transform: none; visibility: visible; }
.st-tocbar__btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 16px;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.st-tocbar__btn:focus-visible { outline: 2px solid #5FB3A9; outline-offset: -2px; }
.st-tocbar__count { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #5FB3A9; font-variant-numeric: tabular-nums; }
.st-tocbar__cur { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.3; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tocbar__chev { flex: 0 0 12px; width: 12px; height: 12px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.st-tocbar.is-open .st-tocbar__chev { transform: translateY(3px) rotate(-135deg); }
.st-tocbar__prog { height: 2px; width: 0; background: linear-gradient(90deg, #C5C6C6, #FFFFFF, #B4B4B4); }
.st-tocbar__list { display: none; max-height: 62vh; overflow-y: auto; margin: 0; padding: 4px 0 10px; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); }
.st-tocbar.is-open .st-tocbar__list { display: block; }
.st-tocbar__list li { margin: 0; padding: 0; }
.st-tocbar__list a { display: block; padding: 11px 16px 11px 18px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .78); text-decoration: none; }
.st-tocbar__list a:hover { color: #fff; text-decoration: none; }
.st-tocbar__list a.is-active { border-left-color: #C5C6C6; color: #fff; font-weight: 600; background: rgba(255, 255, 255, .05); }

/* ---------- лента и карточки ---------- */
.ig-st .st-listlead { max-width: 62ch; margin: 0 auto 48px; text-align: center; font-size: 17px; line-height: 1.75; color: var(--st-muted); }
.ig-st .st-listlead a { color: var(--st-link); text-decoration: underline; text-underline-offset: .18em; }
.ig-st .st-listlead a:hover { color: #fff; text-decoration: underline; }

.st-card { display: flex; flex-direction: column; min-width: 0; position: relative; }
.st-card__img { display: block; overflow: hidden; border-radius: var(--st-r); background: var(--st-panel); }
.st-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.23, 1, .32, 1); }
.st-card:hover .st-card__img img { transform: scale(1.03); }
.st-card__body { padding: 18px 2px 0; display: flex; flex-direction: column; gap: 10px; }
.ig-st .st-card__rubric { font-size: 13px; font-weight: 600; color: var(--st-link); }
.ig-st .st-card__title { margin: 0; font-size: 20px; line-height: 1.32; font-weight: 600; color: #fff; }
.ig-st .st-card__title a::after { content: ""; position: absolute; inset: 0; }   /* вся карточка кликабельна */
.ig-st .st-card:hover .st-card__title a { color: var(--st-link); }
.ig-st .st-card__lead { font-size: 15px; line-height: 1.55; color: var(--st-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ig-st .st-card__meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; line-height: 1.4; color: var(--st-muted); }
.st-card__meta > * { padding: 0 10px; border-left: 1px solid var(--st-line-2); }
.st-card__meta > :first-child { padding-left: 0; border-left: 0; }

/* главная карточка ленты — на панели с кромкой */
.st-featured { margin-bottom: 56px; }
.st-featured .st-card--big { position: relative; background: var(--st-panel); border-radius: var(--st-r); overflow: hidden; }
.st-featured .st-card--big::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 3px; background: var(--st-silver); }
.st-card--big { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.st-card--big .st-card__img { border-radius: 0; height: 100%; }
.st-card--big .st-card__img img { height: 100%; }
.st-card--big .st-card__body { padding: 36px 40px; gap: 14px; }
.ig-st .st-card--big .st-card__title { font-size: 30px; line-height: 1.22; font-weight: 500; }
.ig-st .st-card--big .st-card__lead { font-size: 17px; -webkit-line-clamp: 4; }

.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 30px; }
.st-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.ig-st .st-grid--4 .st-card__title { font-size: 17px; }

.st-related { margin-top: 88px; }
.ig-st .st-section-title { margin: 0 0 32px; font-size: 32px; line-height: 1.25; font-weight: 500; color: #fff; }
.ig-st .st-count { display: inline-block; margin-left: 8px; font-size: 18px; font-weight: 600; color: var(--st-link); vertical-align: middle; }

.st-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 56px; }
.st-pager a, .st-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 12px;
  border: 1px solid var(--st-line-2); border-radius: 2px; font-size: 15px; font-weight: 600; }
.ig-st .st-pager a:hover { border-color: #C5C6C6; background: rgba(255, 255, 255, .06); }
.st-pager__cur { background: var(--st-silver); color: #000; border-color: transparent !important; }

.ig-st .st-empty { text-align: center; font-size: 18px; color: var(--st-muted); }
.ig-st .st-empty a { color: var(--st-link); text-decoration: underline; }

/* ---------- авторы ---------- */
.st-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.st-person { position: relative; display: flex; gap: 26px; padding: 30px 28px 28px; align-items: flex-start;
  background: var(--st-panel); border-radius: var(--st-r); overflow: hidden; transition: box-shadow .15s ease; }
.st-person::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--st-silver); }
.st-person:hover { box-shadow: inset 0 0 0 1px var(--st-line-2); }
.st-person__photo { flex: 0 0 132px; width: 132px; height: 132px; border-radius: 50%; overflow: hidden; }
.st-person__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-person__photo.st-mono { font-size: 38px; }
.st-person__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ig-st .st-person__name { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; color: #fff; }
.ig-st .st-person__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ig-st .st-person:hover .st-person__name a { color: var(--st-link); }
.ig-st .st-person__job { font-size: 15px; font-weight: 600; color: var(--st-link); }
.ig-st .st-person__exp { font-size: 15px; line-height: 1.5; color: var(--st-muted); }
.ig-st .st-person__count { margin-top: 4px; font-size: 14px; font-weight: 600; color: #fff; }

.ig-st .st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.ig-st .st-chips li { margin: 0; padding: 5px 12px; border: 1px solid var(--st-line-2); border-radius: 2px; font-size: 14px; line-height: 1.35; }

.st-profile { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; padding: 44px 48px 40px; }
.st-profile__photo { display: flex; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.st-profile__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-profile__photo.st-mono { font-size: 72px; }
.ig-st .st-profile__job { font-size: 15px; font-weight: 700; color: var(--st-link); margin-bottom: 10px; }
.ig-st .st-profile__exp { font-size: 18px; line-height: 1.55; color: #fff; margin-bottom: 16px; }
.ig-st .st-profile__bio { max-width: 64ch; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, .86); }
.ig-st .st-profile__bio p { margin: 0 0 .9em; }
.st-profile__topics { margin-top: 20px; }
.ig-st .st-profile__label { font-size: 14px; font-weight: 700; color: var(--st-muted); margin-bottom: 8px; }
.st-profile__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.st-works { margin-top: 72px; scroll-margin-top: 24px; }
.st-authorposts { margin-top: 72px; }

/* ---------- ширины ---------- */
@media (max-width: 1199px) {
  .st-layout { grid-template-columns: minmax(0, 720px); justify-content: center; gap: 56px; }
  .st-side { height: auto; }
  .st-side__inner { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
  .st-side__toc { display: none !important; }
  .ig-st .st-body h2, .ig-st .st-body h3 { scroll-margin-top: calc(var(--st-hdr) + 70px); }
  .st-related { max-width: 720px; }
  .st-grid, .st-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-people { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .st-profile { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 36px 32px 32px; }
  .st-card--big .st-card__body { padding: 28px 30px; }
  .ig-st .st-card--big .st-card__title { font-size: 26px; }
}
@media (max-width: 767px) {
  .ig-st { padding-bottom: 64px; }
  body:has(.ig-st) .title-page h1 { margin-bottom: 24px; }
  body:has(.st-page--article) .title-page h1 { font-size: 27px; line-height: 1.22; }
  .st-byline { justify-content: flex-start; align-items: flex-start; }
  .st-byline__photo { width: 44px; height: 44px; }
  .ig-st .st-byline__who { font-size: 15px; }
  .ig-st .st-byline__dates { font-size: 13px; }
  .st-byline__dates > span { padding: 0 9px; }
  .st-layout { margin-top: 32px; gap: 48px; }
  .ig-st .st-lead { font-size: 18px; line-height: 1.55; margin-bottom: 24px; }
  .st-short { padding: 22px 20px 16px; }
  .ig-st .st-short li { font-size: 16px; }
  .st-toc { padding: 18px 18px 16px; margin-bottom: 32px; }
  .ig-st .st-toc li { font-size: 15px; padding-left: 28px; }
  .st-cover { margin-bottom: 28px !important; }
  .st-body { font-size: 17px; }
  .ig-st .st-body p, .ig-st .st-body li { font-size: 17px; line-height: 1.65; }
  .ig-st .st-body h2 { font-size: 24px; margin-top: 1.8em; }
  .ig-st .st-body h3 { font-size: 19px; }
  .ig-st .st-body .st-faq__q { font-size: 18px; }
  /* узкая таблица помещается целиком; широкая всё равно листается — таблица не уже своего содержимого */
  .ig-st .st-table table { font-size: 15px; min-width: 0; }
  .ig-st .st-table th, .ig-st .st-table td { padding: 12px 10px; hyphens: auto; }
  /* строка таблицы — карточка (класс и подписи ставит stati.js): таблица не шире экрана, вбок не листается.
     Черта слева — как у врезок .st-note; первая ячейка — заголовок карточки, остальные «подпись — значение». */
  .ig-st .st-table--stack { overflow: visible; border-radius: 0; }
  .ig-st .st-table--stack table, .ig-st .st-table--stack tbody,
  .ig-st .st-table--stack tr, .ig-st .st-table--stack td { display: block; width: auto; min-width: 0; }
  .ig-st .st-table--stack .st-table__head { display: none; }   /* подписи колонок стоят у каждого значения */
  .ig-st .st-table--stack tr:not(.st-table__head) {
    padding: 14px 16px 12px 15px; border-left: 3px solid var(--st-teal); border-radius: 0 var(--st-r) var(--st-r) 0;
    background: var(--st-panel);
  }
  .ig-st .st-table--stack tr:not(.st-table__head) + tr { margin-top: 10px; }
  .ig-st .st-table--stack td { padding: 0; border: 0; background: none; hyphens: manual; }
  .ig-st .st-table--stack td:first-child { font-size: 17px; line-height: 1.35; font-weight: 600; color: #fff; }
  .ig-st .st-table--stack td + td {
    display: grid; grid-template-columns: minmax(0, 8em) minmax(0, 1fr); gap: 12px;
    margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--st-line); font-size: 15px; line-height: 1.45;
  }
  .ig-st .st-table--stack td + td::before { content: attr(data-label); font-size: 13px; line-height: 1.55; font-weight: 500; color: var(--st-muted); }
  .st-share { margin-top: 44px; }
  /* колонки по числу видимых значков: 7, с «Отправить» — 8 */
  .ig-st .st-sh__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; justify-items: center; }
  .ig-st .st-sh__list > li { width: 100%; display: flex; justify-content: center; align-items: center; min-height: 0 !important; height: auto !important; }
  .ig-st .st-sh__i { width: 100%; max-width: 44px; height: auto; aspect-ratio: 1 / 1; min-width: 0; min-height: 0; overflow: hidden; flex: none; align-self: center; }
  .st-authorcard { flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px 20px 24px; }
  .st-authorcard__photo { width: 96px; height: 96px; }
  .st-authorcard__photo.st-mono { font-size: 28px; }
  .st-side__inner { grid-template-columns: minmax(0, 1fr); }
  .ig-st .st-listlead { font-size: 16px; margin-bottom: 36px; text-align: left; }
  .st-card--big { grid-template-columns: minmax(0, 1fr); }
  .st-card--big .st-card__img, .st-card--big .st-card__img img { height: auto; }
  .st-card--big .st-card__body { padding: 20px 20px 24px; }
  .ig-st .st-card--big .st-card__title { font-size: 23px; }
  .ig-st .st-card--big .st-card__lead { font-size: 16px; }
  .st-featured { margin-bottom: 40px; }
  .st-grid, .st-grid--4 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ig-st .st-grid--4 .st-card__title { font-size: 20px; }
  .st-works { margin-top: 56px; }
  .st-related { margin-top: 64px; }
  .ig-st .st-section-title { font-size: 25px; margin-bottom: 24px; }
  .st-person { flex-direction: column; padding: 26px 20px 22px; gap: 18px; }
  .st-person__photo { flex-basis: auto; width: 104px; height: 104px; }
  .st-person__photo.st-mono { font-size: 30px; }
  .st-profile { grid-template-columns: minmax(0, 1fr); padding: 28px 20px 24px; gap: 22px; }
  .st-profile__photo { width: 140px; }
  .st-profile__photo.st-mono { font-size: 42px; }
  .st-authorposts { margin-top: 56px; }
}
/* ---------- баннер сайта «Дизайнер вам сюда» (.left-banner — body > div, не наш): на страницах раздела закрывал
   строку автора и портрет, поэтому появляется только после прокрутки (класс st-banner-on ставит stati.js).
   transform не трогаем — им сайт сворачивает баннер во вкладку; свой переход 0.3s на остальное сохраняем. ---------- */
body:has(.ig-st) .left-banner {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all .3s, opacity .35s ease, visibility 0s linear .35s;
}
body.st-banner-on:has(.ig-st) .left-banner {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: all .3s, opacity .35s ease, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .st-card__img img, .st-tocbar, .ig-st .st-btn { transition: none; }
  .st-card:hover .st-card__img img { transform: none; }
  body:has(.ig-st) .left-banner, body.st-banner-on:has(.ig-st) .left-banner { transition: none; }
}
