/* Stervoza UI — компоненты по макету Figma */

body.ds-library {
  margin: 0;
  background: var(--color-neutral-070);
  color: var(--color-neutral-010);
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--font-body);
  line-height: var(--line-body);
}

.ds-library h1,
.ds-library h2 {
  font-weight: 600;
}

.ds-slab {
  background: var(--color-neutral-080);
  border-radius: var(--radius-16);
  padding: var(--indent-20);
  margin-bottom: var(--indent-20);
  border: 1px solid var(--color-neutral-060);
}

.ds-slab h2 {
  margin: 0 0 var(--indent-16);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-neutral-040);
}

.ds-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--indent-12);
  align-items: center;
}

/* Ряд: иконки 40×40, таб, разделитель — одна вертикальная ось */
.ds-row--controls {
  align-items: center;
}

.ds-row--controls > .icon-btn,
.ds-row--controls > .notifications {
  flex-shrink: 0;
}

.ds-row--controls > .tab {
  align-self: center;
}

.ds-row--controls > .divider {
  flex: 1 1 120px;
  min-width: 80px;
  max-width: none;
  align-self: center;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--indent-8);
  padding: var(--indent-8) var(--indent-20);
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: var(--font-body);
  line-height: var(--line-body);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-interactive, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease);
}

.btn--lg {
  min-height: 40px;
}

.btn--sm {
  min-height: 28px;
  padding: var(--indent-4) var(--indent-8);
  font-size: var(--font-caption);
  line-height: var(--line-caption);
  gap: var(--indent-4);
}

.btn--primary-dark {
  background: var(--color-primary-010);
  color: var(--color-neutral-080);
}

.btn--primary-dark:hover {
  background: var(--color-primary-020);
  color: var(--color-neutral-080);
}

.btn--primary-dark:active {
  background: #8a1b2d;
  box-shadow: var(--state-press-shadow, 0 3px 10px rgba(20, 19, 19, 0.18));
}

.btn--primary-dark:focus-visible {
  outline: 2px solid var(--color-primary-050);
  outline-offset: 2px;
}

.btn--primary-dark:disabled {
  background: var(--color-neutral-050);
  color: var(--color-neutral-080);
  cursor: not-allowed;
  opacity: 0.85;
  box-shadow: none;
}

.btn--secondary-dark {
  background: var(--color-neutral-030);
  color: var(--color-neutral-080);
}

.btn--secondary-dark:hover {
  background: var(--color-neutral-020);
}

.btn--secondary-dark:active {
  background: #3d3a3b;
  box-shadow: var(--state-press-shadow, 0 3px 10px rgba(20, 19, 19, 0.18));
}

.btn--secondary-dark:focus-visible {
  outline: 2px solid var(--color-neutral-050);
  outline-offset: 2px;
}

.btn--primary-light {
  background: var(--color-primary-020);
  color: var(--color-neutral-080);
}

.btn--primary-light:hover {
  background: var(--color-primary-030);
  color: var(--color-neutral-080);
}

.btn--primary-light:active {
  background: var(--color-primary-010);
  box-shadow: var(--state-press-shadow, 0 3px 10px rgba(20, 19, 19, 0.18));
}

.btn--primary-light:focus-visible {
  outline: 2px solid var(--color-primary-050);
  outline-offset: 2px;
}

.btn--primary-light:disabled {
  background: var(--color-neutral-050);
  cursor: not-allowed;
}

.btn--secondary-light {
  background: var(--color-neutral-080);
  color: var(--color-neutral-010);
}

.btn--secondary-light:hover {
  background: var(--color-primary-070);
}

.btn--secondary-light:active {
  background: var(--color-primary-060);
}

.btn--secondary-light:focus-visible {
  outline: 2px solid var(--color-primary-020);
  outline-offset: 2px;
}

.btn--outline-light {
  background: transparent;
  color: var(--color-primary-020);
  border: 1px solid var(--color-primary-020);
}

.btn--outline-light:hover {
  background: var(--color-primary-020);
  color: var(--color-neutral-080);
  border-color: var(--color-primary-020);
}

.btn--outline-light:active {
  background: var(--color-primary-010);
  color: var(--color-neutral-080);
  border-color: var(--color-primary-010);
  box-shadow: var(--state-press-shadow, 0 3px 10px rgba(20, 19, 19, 0.18));
}

.btn--outline-light:focus-visible {
  outline: 2px solid var(--color-primary-030);
  outline-offset: 2px;
}

.btn--outline-light:disabled {
  border-color: var(--color-neutral-050);
  color: var(--color-neutral-050);
  cursor: not-allowed;
}

.btn--outline-light.following,
.btn--outline-light.on {
  background: var(--color-primary-020);
  color: var(--color-neutral-080);
  border-color: var(--color-primary-020);
}

.btn--ghost-sm {
  background: transparent;
  color: var(--color-neutral-020);
  border: 1px solid var(--color-neutral-050);
}

.btn--ghost-sm:hover {
  background: var(--color-neutral-070);
  border-color: var(--color-neutral-040);
}

.btn--ghost-sm:active {
  background: var(--color-neutral-060);
}

.btn--text {
  background: transparent;
  color: var(--color-neutral-030);
  padding: var(--indent-8) var(--indent-20);
  border-radius: 999px;
}

.btn--text:hover {
  color: var(--color-primary-020);
}

.btn--text:active {
  color: var(--color-primary-010);
}

.btn--text:focus-visible {
  outline: 2px solid var(--color-primary-060);
  outline-offset: 2px;
}

.btn__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.btn--sm .btn__icon {
  width: 16px;
  height: 16px;
}

/* —— Link —— */
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--indent-4);
  padding: var(--indent-4) var(--indent-8);
  border-radius: var(--radius-16);
  font-size: var(--font-caption);
  line-height: var(--line-caption);
  color: var(--color-neutral-040);
  text-decoration: none;
  transition: var(--transition-interactive, color 0.2s ease, background-color 0.2s ease);
}

.link:hover {
  color: var(--color-primary-020);
}

.link:active {
  color: var(--color-primary-010);
}

.link__sep {
  opacity: 0.8;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: var(--font-caption);
  line-height: var(--line-caption);
  color: var(--color-neutral-040);
}

.breadcrumbs .link {
  padding-left: var(--indent-8);
  padding-right: 0;
}

/* —— Icon button —— */
.icon-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-20);
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-interactive, background-color 0.2s ease, opacity 0.2s ease);
}

.icon-btn:hover {
  background: var(--color-neutral-070);
}

.icon-btn:active {
  background: var(--color-neutral-060);
  transform: scale(0.96);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--color-primary-060);
  outline-offset: 2px;
}

.icon-btn--dark {
  background: var(--color-neutral-010);
  border-radius: 50%;
}

.icon-btn--dark:hover {
  background: var(--color-neutral-020);
}

.icon-btn--dark:active {
  background: #0f0e0e;
  transform: scale(0.96);
}

.icon-btn--dark .icon-btn__img {
  filter: brightness(0) invert(1);
}

.icon-btn__img {
  width: 24px;
  height: 24px;
  display: block;
}

/* —— Notifications —— */
.notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.notifications .icon-btn {
  width: 100%;
  height: 100%;
}

.notifications__dot {
  position: absolute;
  right: 2px;
  top: 2px;
  left: auto;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.notifications__dot img {
  width: 100%;
  height: 100%;
  display: block;
}

/* —— Counter —— */
.counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--color-neutral-050);
  color: var(--color-neutral-080);
  font-size: var(--font-caption);
  font-weight: 500;
}

.counter--active {
  background: var(--color-primary-050);
  color: var(--color-primary-010);
  font-weight: 600;
}

/* —— Tag —— */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--indent-4);
  padding: var(--indent-4) var(--indent-12);
  border-radius: 999px;
  font-size: var(--font-caption);
  font-weight: 500;
  line-height: var(--line-caption);
  background: var(--tag-pink-bg, var(--color-primary-060));
  color: var(--tag-pink-fg, var(--color-primary-020));
  border: 1px solid transparent;
  text-decoration: none;
  transition: var(--transition-interactive, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease);
}

a.tag:hover {
  filter: brightness(0.97);
  border-color: rgba(167, 32, 56, 0.25);
}

/* Рубрика в шапке карточки ленты — заметный hover на розовом фоне */
a.tag:hover {
  filter: none;
  background: var(--color-primary-050);
  color: var(--color-primary-010);
  border-color: var(--color-primary-030);
}

a.tag:active {
  background: var(--color-primary-060);
  color: var(--color-primary-010);
  border-color: var(--color-primary-020);
}

a.tag:active {
  transform: scale(0.98);
  color: var(--color-primary-010);
}

/* хэштеги в статье */
a.tag[href*="tag="] {
  background: var(--color-neutral-070);
  color: var(--color-neutral-030);
  border-color: var(--color-neutral-060);
}

a.tag[href*="tag="]:hover {
  background: var(--color-primary-070);
  color: var(--color-primary-020);
  border-color: var(--color-primary-030);
}

a.tag[href*="tag="]:active {
  color: var(--color-primary-010);
  border-color: var(--color-primary-020);
}

.tag--c2 {
  background: var(--tag-green-bg, #e8f5e9);
  color: var(--tag-green-fg, #2e7d32);
}
.tag--c3 {
  background: var(--tag-blue-bg, #e3f2fd);
  color: var(--tag-blue-fg, #1565c0);
}
.tag--c4 {
  background: var(--tag-lilac-bg, #ede7f6);
  color: var(--tag-lilac-fg, #5e35b1);
}
.tag--c5 {
  background: var(--tag-cyan-bg, #e0f7fa);
  color: var(--tag-cyan-fg, #006064);
}
.tag--c6 {
  background: var(--tag-orange-bg, #fff3e0);
  color: var(--tag-orange-fg, #e65100);
}
.tag--add {
  background: var(--color-additionally-050);
  color: var(--color-additionally-060);
}

/* —— Tab —— */
.tab {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  min-width: 57px;
  justify-content: center;
}

.tab__row {
  display: flex;
  align-items: center;
  gap: var(--indent-8);
  width: 100%;
}

.tab__label {
  font-weight: 500;
  font-size: var(--font-body);
  line-height: 1.25;
  color: var(--color-neutral-040);
  transition: color 0.2s ease;
}

.tab:hover .tab__label {
  color: var(--color-neutral-020);
}

.tab--active .tab__label,
.tab.is-on .tab__label {
  color: var(--color-neutral-010);
  font-weight: 600;
}

.tab--active .tab__line,
.tab.is-on .tab__line {
  height: 2px;
  background: var(--color-primary-010);
}

.tab--disabled .tab__label {
  color: var(--color-neutral-050);
  cursor: not-allowed;
}

.tab__line {
  height: 1px;
  width: 100%;
  background: var(--color-neutral-050);
  border-radius: 1px;
  flex-shrink: 0;
  transition: background-color 0.2s ease, height 0.15s ease;
}

/* —— Divider —— */
.divider {
  height: 1px;
  width: 100%;
  max-width: 295px;
  background: var(--color-neutral-060);
  border-radius: 1px;
  border: none;
  margin: 0;
}

/* —— Dropdown (Figma: dropdown / title menu item) —— */
.dropdown {
  box-sizing: border-box;
  width: 100%;
  max-width: 360px;
  min-width: 260px;
  background: var(--color-neutral-080);
  border: 1px solid var(--color-neutral-060);
  border-radius: var(--radius-20);
  padding: var(--indent-20) var(--indent-24);
  display: flex;
  flex-direction: column;
}

.dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--indent-20);
  width: 100%;
  margin: 0;
  padding: 14px 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: var(--font-body);
  font-weight: 500;
  line-height: var(--line-body);
  text-align: left;
  color: var(--color-neutral-010);
  cursor: pointer;
  border-radius: var(--radius-12);
}

.dropdown__item:first-child {
  padding-top: 0;
}

.dropdown__item:last-child {
  padding-bottom: 0;
}

.dropdown__item-label {
  flex: 1;
  min-width: 0;
}

.dropdown__item:hover:not(:disabled):not(.dropdown__item--disabled) {
  color: var(--color-primary-020);
}

.dropdown__item:hover:not(:disabled):not(.dropdown__item--disabled) .figma-icon > img {
  filter: brightness(0) saturate(100%) invert(26%) sepia(42%) saturate(2598%) hue-rotate(307deg) brightness(92%) contrast(92%);
}

.dropdown__item--accent {
  color: var(--color-primary-020);
}

.dropdown__item--accent .figma-icon > img {
  filter: brightness(0) saturate(100%) invert(26%) sepia(42%) saturate(2598%) hue-rotate(307deg) brightness(92%) contrast(92%);
}

.dropdown__item:disabled,
.dropdown__item--disabled {
  color: var(--color-neutral-050);
  cursor: default;
  pointer-events: none;
}

.dropdown__item:disabled .figma-icon > img,
.dropdown__item--disabled .figma-icon > img {
  filter: brightness(0) saturate(100%) invert(72%) sepia(5%) saturate(200%) hue-rotate(300deg) brightness(92%) contrast(88%);
  opacity: 0.95;
}

.dropdown__chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.dropdown__item:focus-visible {
  outline: 2px solid var(--color-primary-050);
  outline-offset: 2px;
}

/* —— Text item —— */
.text-item {
  display: flex;
  align-items: flex-start;
  min-height: 60px;
  padding: var(--indent-12) var(--indent-16);
  border-radius: var(--radius-16);
  background: var(--color-neutral-070);
  color: var(--color-neutral-030);
  font-size: var(--font-caption);
  font-weight: 500;
  line-height: var(--line-caption);
  max-width: 637px;
}

.text-item--filled {
  background: var(--color-neutral-060);
  color: var(--color-neutral-020);
}

/* —— Graph —— */
.graph {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  max-width: 597px;
}

.graph__col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.graph__bar {
  width: 100%;
  border-radius: 2px 2px 0 0;
}

.graph__label {
  font-weight: 500;
  font-size: var(--font-body);
  text-align: center;
  color: #000;
}

/* —— Modals —— */
.modal {
  background: var(--color-neutral-080);
  border-radius: var(--radius-20);
  padding: var(--indent-40) var(--indent-32);
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.modal--auth {
  max-width: 344px;
  padding: 28px 28px 22px;
}

.modal--auth #auth-view-login,
.modal--auth #auth-view-reg,
.modal--auth #auth-view-ok {
  width: 100%;
}

.modal--auth .modal__title,
.modal--auth .modal__subtitle {
  max-width: 238px;
  margin-left: auto;
  margin-right: auto;
}

.modal--auth .modal__fields,
.modal--auth .modal__secondary,
.modal--auth .auth-err {
  width: 100%;
  max-width: 238px;
  margin-left: auto;
  margin-right: auto;
}

.modal--auth .field {
  gap: 6px;
}

.modal--auth .field input {
  height: 36px;
  border-radius: 14px;
}

.modal--auth .btn--lg {
  min-height: 40px;
  border-radius: 14px;
}

.modal__logo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  gap: 1px;
}

.modal__logo-text {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.1px;
  color: var(--color-neutral-010);
  margin: 0;
}

.modal__logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-020);
  flex-shrink: 0;
  margin-bottom: 3px;
}

.modal__title {
  margin: 0;
  font-weight: 500;
  font-size: 20px;
  text-align: center;
  color: var(--color-neutral-010);
}

.modal__subtitle {
  margin: 0;
  font-size: var(--font-caption);
  line-height: var(--line-caption);
  color: var(--color-neutral-030);
  text-align: center;
}

.modal__fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--indent-12);
}

.modal__secondary {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--indent-8);
  margin-top: var(--indent-16);
}

.modal__social {
  width: 100%;
  max-width: 238px;
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__social-btn {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  text-decoration: none;
}

.modal__social-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal__social-icon--yandex {
  background: #fc3f1d;
}

.modal__social-icon--vk {
  background: #0077ff;
}

.modal__vkid-wrap {
  width: 100%;
  max-width: 238px;
  margin: 8px auto 0;
}

.modal__vkid-host {
  width: 100%;
  min-height: 48px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--indent-4);
  width: 100%;
}

.field label {
  font-size: var(--font-caption);
  color: var(--color-neutral-020);
}

.field input {
  height: 40px;
  padding: 0 var(--indent-12);
  border: none;
  border-radius: var(--radius-16);
  background: var(--color-neutral-070);
  font: inherit;
  font-size: var(--font-caption);
  color: var(--color-neutral-010);
}

.field input::placeholder {
  color: var(--color-neutral-040);
}

.modal__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--indent-8);
}

.modal__hint {
  margin: 0;
  font-size: var(--font-caption);
  color: var(--color-neutral-030);
  text-align: center;
}

/* —— Link article (правый сайдбар, топ статей) —— */
.link-article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--indent-8, 8px);
  box-sizing: border-box;
  width: 290px;
  max-width: 100%;
  padding: var(--indent-8, 8px) var(--indent-12, 12px);
  background: var(--color-primary-070);
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-12);
  transition: var(--transition-interactive, background-color 0.2s ease);
}

.link-article:hover {
  background: var(--state-hover-row-pink, #fdecef);
}

.link-article:active .link-article__title {
  color: var(--color-primary-010);
}

.link-article__title {
  margin: 0;
  font-weight: 400;
  font-size: var(--font-caption);
  line-height: var(--line-caption);
  color: var(--color-neutral-020);
  transition: color 0.2s ease;
}

.link-article__meta {
  display: block;
  min-width: 0;
  font-size: var(--font-caption);
  font-weight: 400;
  line-height: var(--line-caption);
  color: var(--color-neutral-040);
}

.link-article__meta-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-article__meta--with-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}

.link-article__meta--with-icons .link-article__meta-line {
  display: inline;
  margin: 0;
  white-space: normal;
}

.link-article__meta--with-icons .link-article__meta-sep {
  display: inline;
  align-self: center;
  opacity: 0.55;
  user-select: none;
}

.link-article__meta span:not(.link-article__meta-line) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: var(--line-caption);
}

.link-article__icon.figma-icon--16,
.link-article__meta .figma-icon--16 {
  overflow: visible;
  opacity: 0.92;
  flex-shrink: 0;
  align-self: center;
}

/* Часы: viewBox квадрат 13×13 */
.link-article__meta .figma-icon--fg-clock.figma-icon--16 {
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  max-width: 15px;
  max-height: 15px;
  aspect-ratio: 1;
}

.link-article__icon {
  flex-shrink: 0;
}

/* Мета в сайдбаре: круги часов/глаза не сплющивать (симметричный инсет fg) */
.aside .figma-icon,
.card-side .figma-icon {
  overflow: visible;
}

.link-article__meta .figma-icon--fg-clock .figma-icon__fg {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.link-article__meta .figma-icon--fg-eye .figma-icon__fg {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.card-side__head .figma-icon--fg-flame .figma-icon__fg {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.card-side__head .figma-icon--fg-flame > img:first-child {
  object-fit: contain;
  object-position: center;
}

.card-side__head .figma-icon--fg-crown .figma-icon__fg {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.card-side__head .figma-icon--fg-crown > img:first-child {
  object-fit: contain;
  object-position: center;
}

/* —— Card article / creator —— */
.card-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  background: var(--color-primary-070);
  border-radius: var(--radius-20);
  width: 100%;
  overflow: hidden;
  padding-bottom: var(--indent-12);
  padding-top: 10px;
}

.card-side__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: stretch;
  gap: var(--indent-8, 8px);
  padding: var(--indent-8, 8px) var(--indent-16, 16px) var(--indent-16, 16px);
  box-sizing: border-box;
  min-height: 0;
}

.card-side__head h3 {
  margin: 0;
  font-weight: 500;
  font-size: var(--font-size-16, 16px);
  line-height: var(--line-body, 20px);
  letter-spacing: 0.01em;
  color: var(--color-neutral-010, #141313);
}

.card-side__icon {
  display: block;
  flex-shrink: 0;
}

/* Иконки в заголовке: не кромсать антиалиасинг и края SVG (как у карандаша) */
.card-side__head .card-side__icon.figma-icon {
  overflow: visible;
}

.card-side__head .card-side__icon.figma-icon--24:not(.figma-icon--fg-flame):not(.figma-icon--fg-crown) {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  aspect-ratio: 1;
  flex-shrink: 0;
}

/* Пламя: viewBox 15.5×20.5 — вертикальная иконка, не квадрат */
.card-side__head .card-side__icon.figma-icon--24.figma-icon--fg-flame {
  width: 18px;
  height: 24px;
  min-width: 18px;
  min-height: 24px;
  max-width: 18px;
  max-height: 24px;
  aspect-ratio: 15.5 / 20.5;
  flex-shrink: 0;
}

/* Корона: viewBox 19.5×13.5 */
.card-side__head .card-side__icon.figma-icon--24.figma-icon--fg-crown {
  width: 19.5px;
  height: 13.5px;
  min-width: 19.5px;
  min-height: 13.5px;
  max-width: 19.5px;
  max-height: 13.5px;
  aspect-ratio: 19.5 / 13.5;
  flex-shrink: 0;
}

.card-side__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.card-side__footer {
  padding: var(--indent-8) var(--indent-16) var(--indent-16);
}

.card-side__footer .btn--text {
  font-weight: 400;
  font-size: var(--font-caption);
  color: var(--color-neutral-040);
}

.card-side__footer .btn--text:hover {
  color: var(--color-neutral-030);
}

.link-creator {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--indent-12, 12px);
  box-sizing: border-box;
  width: 291px;
  max-width: 100%;
  padding: var(--indent-8, 8px) var(--indent-16, 16px);
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-12);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.15s ease;
}

.link-creator > div:not(.link-creator__avatar) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--indent-4, 4px);
  flex: 1;
  min-width: 0;
}

.link-creator:hover,
.link-creator:focus-visible {
  background: var(--state-hover-row-pink, #fdecef);
}

.link-creator:active {
  background: var(--state-hover-row-pink, #fdecef);
}

.link-creator:active .link-creator__name {
  color: var(--color-primary-010);
}

.link-creator__avatar {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.link-creator__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.link-creator__name {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-neutral-010, #141313);
  transition: color 0.15s ease;
}

.link-creator__role {
  margin: 0;
  font-size: var(--font-caption);
  font-weight: 400;
  line-height: var(--line-caption);
  color: var(--color-neutral-040);
  transition: color 0.15s ease;
}

.link-creator:hover .link-creator__name,
.link-creator:focus-visible .link-creator__name {
  color: var(--color-neutral-010, #141313);
}

.link-creator:hover .link-creator__role,
.link-creator:focus-visible .link-creator__role {
  color: var(--color-neutral-030, #4E4A4C);
}

.link-creator.is-current {
  background: var(--color-primary-070, #ffecee);
}

.link-creator.is-current .link-creator__name {
  color: var(--color-primary-010);
  font-weight: 600;
}

.link-creator.is-current .link-creator__role {
  color: var(--color-neutral-040);
}

/* Единый интерактивный блок «аватар + имя» (лента, статья, карточки) */
.s2-author-hit {
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  gap: var(--indent-12, 12px);
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  padding: 6px 10px;
  margin: -6px -10px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-12, 12px);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.15s ease;
}

.s2-author-hit:hover,
.s2-author-hit:focus-visible {
  background: var(--state-hover-row-pink, #fdecef);
}

.s2-author-hit:focus-visible {
  outline: 2px solid var(--color-primary-050);
  outline-offset: 2px;
}

.s2-author-hit:hover .card-feed__name,
.s2-author-hit:focus-visible .card-feed__name {
  color: var(--color-neutral-010, #141313);
}

.s2-author-hit:active .card-feed__name {
  color: var(--color-primary-010);
}

.s2-author-hit.is-current {
  background: var(--color-primary-070, #ffecee);
}

.s2-author-hit.is-current .card-feed__name {
  color: var(--color-primary-010);
  font-weight: 500;
}

.s2-author-hit:active .card-feed__name.card-feed__name--article-head,
.s2-author-hit.is-current .card-feed__name.card-feed__name--article-head {
  color: var(--color-primary-010);
}

.s2-author-hit .card-feed__name {
  min-width: 0;
}

/* Лента/шапка статьи: имя в одну строку, блок автора не сжимать ради рубрики справа */
.card-feed__author .s2-author-hit.card-feed__author-hit {
  min-width: auto;
  margin: 0;
  padding: 4px 8px;
}

.card-feed__author .card-feed__name {
  min-width: auto;
  white-space: nowrap;
}

/* —— Card preview (Figma card_preview) —— */
.card-preview-showcase {
  max-width: 656px;
  padding: var(--indent-24);
  border-radius: var(--radius-12);
  background: var(--color-neutral-030);
  display: flex;
  flex-direction: column;
  gap: var(--indent-16);
}

.card-preview {
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: var(--indent-20);
  padding: var(--indent-16) var(--indent-20);
  background: var(--color-neutral-080);
  border: 1px solid var(--color-neutral-060);
  border-radius: var(--radius-16);
  box-shadow: 0 4px 20px rgba(20, 19, 19, 0.08), 0 1px 4px rgba(20, 19, 19, 0.06);
  max-width: 610px;
  width: 100%;
}

.card-preview__thumb {
  flex: 0 0 38%;
  max-width: 236px;
  min-width: 160px;
  min-height: 134px;
  border-radius: var(--radius-12);
  background: #d9d9d9;
}

.card-preview__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--indent-12);
  min-height: 134px;
}

.card-preview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--indent-12);
}

.card-preview__tag {
  display: inline-flex;
  align-items: center;
  padding: var(--indent-4) var(--indent-12);
  border-radius: 999px;
  font-size: var(--font-caption);
  font-weight: 500;
  line-height: var(--line-caption);
  background: #e3f2fd;
  color: #1565c0;
}

.card-preview__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--color-neutral-010);
}

.card-preview__actions {
  display: flex;
  align-items: center;
  gap: var(--indent-4);
  flex-shrink: 0;
}

.card-preview__action-btn {
  border-radius: var(--radius-20);
}

.card-preview__action-btn .figma-icon > img {
  filter: none;
  opacity: 1;
}

.card-preview__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--indent-16);
  margin-top: auto;
  font-size: var(--font-caption);
  font-weight: 400;
  line-height: var(--line-caption);
  color: var(--color-neutral-040);
}

.card-preview__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-preview__meta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.card-preview__meta .figma-icon > img {
  opacity: 0.85;
}

@media (max-width: 540px) {
  .card-preview {
    flex-direction: column;
  }

  .card-preview__thumb {
    flex: none;
    width: 100%;
    max-width: none;
    min-height: 180px;
  }

  .card-preview__body {
    min-height: 0;
  }
}

/* —— Comment —— */
.comment {
  display: flex;
  gap: 12px;
  max-width: 747px;
}

.comment__avatar {
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.comment__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--indent-4);
}

.comment__head {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  font-size: var(--font-caption);
}

.comment__author {
  font-weight: 600;
  color: var(--color-neutral-010);
}

.comment__time {
  font-size: 11px;
  color: var(--color-neutral-050);
}

.comment__text {
  margin: 0;
  font-size: var(--font-caption);
  line-height: var(--line-caption);
  color: var(--color-neutral-020);
}

.comment__toolbar {
  display: flex;
  gap: var(--indent-12);
  align-items: center;
  margin-top: 2px;
}

.comment--feed-preview .comment__text {
  font-size: 15px;
  line-height: 20px;
  color: var(--color-neutral-010);
}

.comment--feed-preview .comment__toolbar--feed-preview {
  pointer-events: none;
}

.comment-preview__stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-neutral-040);
}

.comment-preview__stat svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
}

.comment-preview__stat > span {
  font-variant-numeric: tabular-nums;
  min-width: 8px;
}

.comments-block {
  display: flex;
  flex-direction: column;
  gap: var(--indent-8);
  max-width: 578px;
}

/* Article page full comment list */
.comments-section #comments-list .comment__text {
  display: block;
  overflow: visible;
}

/* Заголовок блока комментариев: число под «Комментарии:» */
.comments-section .cmts-head--article .cmts-head-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.comments-section .cmts-head--article .cmts-count {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-neutral-040, #71686a);
}

.comments-section .cmts-head--article .cmts-title {
  white-space: normal;
}

/* Композер и ответ: аватар+имя над полем; серый блок — только поле и счётчик; кнопки снаружи */
.comments-section .cmt-composer.cmt-input-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: var(--indent-24, 24px);
  padding: 0;
  background: transparent;
  border: none;
}

.comments-section .cmt-composer__head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.comments-section .cmt-composer__head--reply {
  margin-bottom: 0;
}

.comments-section .cmt-composer__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.comments-section .cmt-composer__avatar--sm {
  width: 32px;
  height: 32px;
}

.comments-section .cmt-composer__name {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: var(--color-neutral-010, #141313);
}

.comments-section .cmt-composer__box,
.comments-section .cmt-composer__box--reply {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  gap: 12px;
}

.comments-section .cmt-composer__box--root {
  max-width: 610px;
}

.comments-section .cmt-composer__surface {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px 8px;
  background: var(--color-neutral-080, #fff);
  border: 1px solid var(--color-neutral-060, #e8e4e6);
  border-radius: 12px;
}

.comments-section .cmt-composer__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.comments-section .cmt-composer__tools-left {
  position: relative;
}

.comments-section .cmt-composer__grip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-neutral-040, #71686a);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.comments-section .cmt-composer__grip:hover,
.comments-section .cmt-composer__grip:focus-visible {
  background: var(--color-neutral-070, #f5f3f4);
  color: var(--color-neutral-020, #2a2628);
}

.comments-section .cmt-composer__menu {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 60;
  min-width: 240px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--color-neutral-060, #e8e4e6);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

.comments-section .cmt-composer__menu-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-neutral-020, #2a2628);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.comments-section .cmt-composer__menu-item:hover,
.comments-section .cmt-composer__menu-item:focus-visible {
  background: var(--color-primary-070, #fdecef);
}

.comments-section .cmt-composer__pic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-neutral-040, #71686a);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.comments-section .cmt-composer__pic:hover,
.comments-section .cmt-composer__pic:focus-visible {
  background: var(--color-neutral-070, #f5f3f4);
  color: var(--color-primary-020, #a31d33);
}

.comments-section .reply-input {
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding-bottom: 8px;
}

.comments-section .reply-input.on {
  display: flex;
}

.comments-section .cmt-composer__inner {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comments-section .cmt-composer__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding-top: 0;
  gap: 12px;
  flex-wrap: wrap;
}

.comments-section .cmt-composer__footer--root {
  justify-content: space-between;
}

.comments-section .cmt-inp,
.comments-section .reply-inp {
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-16, 16px);
  outline: none;
  resize: vertical;
  background: #efe9ea;
  font-family: var(--sans);
  font-size: var(--font-size-12, 12px);
  font-weight: 500;
  line-height: 16px;
  color: var(--color-neutral-010, #141313);
}

.comments-section .cmt-inp::placeholder,
.comments-section .reply-inp::placeholder {
  color: var(--color-neutral-050, #9a9296);
}

.comments-section .cmt-composer__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--indent-12, 12px);
  flex-wrap: wrap;
}

.comments-section .cmt-composer__actions--counter {
  justify-content: flex-start;
}

.comments-section .cmt-composer__actions--edit {
  justify-content: space-between;
  width: 100%;
}

.comments-section .cmt-composer__btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.comments-section .cmt-char-counter {
  font-size: 12px;
  color: var(--color-neutral-050, #9a9296);
}

.comments-section .cmt-char-counter.cmt-char-warn {
  color: var(--color-primary-020, #a31d33);
}

.comments-section .cmt-char-counter.cmt-char-over {
  color: #b42318;
  font-weight: 600;
}

.comments-section .cmt-composer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 4px 8px;
  border-radius: var(--radius-16, 16px);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.comments-section .cmt-composer__btn--primary {
  background: var(--color-primary-020, #e07073);
  color: var(--color-neutral-080, #fff);
  border-color: var(--color-primary-020, #e07073);
}

.comments-section .cmt-composer__btn--primary:hover {
  background: #d76164;
  border-color: #d76164;
}

.comments-section .cmt-composer__btn--primary:active {
  transform: scale(0.98);
}

.comments-section .cmt-composer__btn--ghost {
  background: transparent;
  color: var(--color-primary-020, #e07073);
  border-color: var(--color-primary-020, #e07073);
}

.comments-section .cmt-composer__btn--ghost:hover {
  background: var(--color-primary-070, #fdf5f5);
}

.comments-section .cmt-edit-form {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 6px;
  width: 100%;
}

.comments-section .cmt-composer__box--edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.comments-section .cmt-edit-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 18px;
}

.comments-section .cmt-edit-inp {
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: var(--radius-16, 16px);
  border: none;
  background: #efe9ea;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  resize: vertical;
}

/* Лайк / ответ под комментом — Figma 16 */
.comments-section .comment__toolbar {
  gap: 6px;
  flex-wrap: wrap;
  overflow: visible;
  margin-top: 0;
}

.comments-section .comment-stat-btn {
  --cstat-f: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 4px 8px;
  margin: 0;
  overflow: visible;
  border: none;
  border-radius: var(--radius-16, 16px);
  background: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-neutral-030, #6a6a6a);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.comments-section .comment-stat-btn:hover,
.comments-section .comment-stat-btn:focus-visible {
  color: var(--color-neutral-010, #141313);
  background: rgba(0, 0, 0, 0.03);
  --cstat-f: brightness(0) saturate(100%) invert(29%) sepia(72%) saturate(2200%) hue-rotate(318deg) brightness(0.92) contrast(92%);
}

.comments-section .comment-stat-btn:active {
  color: var(--color-primary-010, #8b1529);
  --cstat-f: brightness(0) saturate(100%) invert(22%) sepia(82%) saturate(2000%) hue-rotate(318deg) brightness(0.88) contrast(92%);
}

.comments-section .comment-stat-btn--like {
  padding-left: 0;
  padding-right: 0;
}

.comments-section .comment-stat-btn:disabled {
  cursor: default;
  pointer-events: none;
  opacity: 1;
}

.comments-section .comment-stat-btn.liked {
  color: var(--color-primary-020, #a31d33);
  --cstat-f: brightness(0) saturate(100%) invert(29%) sepia(72%) saturate(2200%) hue-rotate(318deg) brightness(0.92) contrast(92%);
}

.comments-section .comment-stat-btn .figma-icon > img,
.comments-section .comment-stat-btn .figma-icon__fg {
  filter: var(--cstat-f);
  transition: filter 0.2s ease;
}

.comments-section .comment-stat-btn__n {
  font-variant-numeric: tabular-nums;
  min-width: 10px;
}

.comments-section .comment-stat-btn .figma-icon--16 {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  overflow: visible !important;
}

.comments-section .comment-stat-btn .figma-icon--fg-heart.figma-icon--16 {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: -1px;
}

.comments-section .cmt-owner-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.comments-section .cmt-owner-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--color-neutral-040, #71686a);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.comments-section .cmt-owner-icon-btn:hover,
.comments-section .cmt-owner-icon-btn:focus-visible {
  background: var(--color-primary-070, #fdecef);
  color: var(--color-primary-020, #a31d33);
}

.comments-section .cmt-owner-icon-btn .figma-icon__fg,
.comments-section .cmt-owner-icon-btn .figma-icon > img:first-child {
  filter: var(--cstat-f, none);
}

.comments-section .cmt-owner-icon-btn:hover .figma-icon__fg,
.comments-section .cmt-owner-icon-btn:hover .figma-icon > img:first-child,
.comments-section .cmt-owner-icon-btn:focus-visible .figma-icon__fg,
.comments-section .cmt-owner-icon-btn:focus-visible .figma-icon > img:first-child {
  filter: brightness(0) saturate(100%) invert(29%) sepia(72%) saturate(2200%) hue-rotate(318deg) brightness(0.92) contrast(92%);
}

.comments-section #comments-list .comment {
  position: relative;
  max-width: 610px;
  padding: 0 0 8px;
  border-bottom: none;
  align-items: flex-start;
  gap: 12px;
}

.comments-section #comments-list .comment.cmt-reply {
  margin-left: 0 !important; /* поверх legacy .cmt-reply в main.css */
  padding: 0 0 8px 16px !important;
  gap: 0 !important;
  align-items: flex-start;
}

.comments-section #comments-list .comment.cmt-reply .comment__avatar {
  margin-right: 12px;
}

/* reply-rail — как frame-65__reply-rail */
.comments-section #comments-list .cmt-reply-rail {
  width: 16px;
  height: 33px;
  flex-shrink: 0;
  position: relative;
  pointer-events: none;
}

.comments-section #comments-list .cmt-reply-rail::before {
  content: "";
  position: absolute;
  left: 0;
  top: -12px;
  width: 1px;
  height: 12px;
  background: var(--color-neutral-060, #dcd6d9);
  z-index: 1;
}

.comments-section #comments-list .cmt-reply-rail::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-left: 1px solid var(--color-neutral-060, #dcd6d9);
  border-bottom: 1px solid var(--color-neutral-060, #dcd6d9);
  border-bottom-left-radius: 12px;
  z-index: 1;
}

.comments-section #comments-list .cmt-thread {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 12px 0;
  z-index: 0;
}

.comments-section #comments-list .cmt-thread .comment,
.comments-section #comments-list .cmt-thread .cmt-replies {
  position: relative;
  z-index: 1;
}

.comments-section #comments-list .cmt-replies {
  --cmt-thread-pad: 24px;
  margin: 0;
  padding: 0 0 0 var(--cmt-thread-pad);
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comments-section #comments-list .cmt-replies > .comment.cmt-reply {
  position: relative;
}

.comments-section #comments-list .cmt-replies > .comment.cmt-reply:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-neutral-060, #dcd6d9);
  pointer-events: none;
  z-index: 1;
}

.comments-section #comments-list .cmt-thread > .comment.has-replies::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 33px;
  bottom: 0;
  width: 1px;
  background: var(--color-neutral-060, #dcd6d9);
  pointer-events: none;
  z-index: 1;
}

.comments-section #comments-list .comment.has-replies {
  padding-bottom: 0;
}

.comments-section #comments-list .comment__avatar {
  width: 33px;
  height: 33px;
  min-width: 33px;
  min-height: 33px;
  position: relative;
  z-index: 2;
}

.comments-section #comments-list .comment__main {
  gap: 4px;
  padding-bottom: 8px;
}

.comments-section #comments-list .comment__author {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.comments-section #comments-list .comment__time {
  font-size: 12px;
  line-height: 16px;
}

.comments-section #comments-list .comment__text {
  font-size: 16px;
  line-height: 20px;
  color: var(--color-neutral-020, #4a4a4a);
}

.comments-section .comment-reply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 4px 8px;
  border: none;
  border-radius: var(--radius-16, 16px);
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-neutral-030, #6a6a6a);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.comments-section .comment-reply-link:hover,
.comments-section .comment-reply-link:focus-visible {
  color: var(--color-neutral-010, #141313);
  background: rgba(0, 0, 0, 0.03);
}

.comments-section #comments-list > .cmt-thread:last-of-type {
  margin-bottom: 0;
}

.comments-block__title {
  margin: 0;
  font-weight: 500;
  font-size: var(--font-caption);
}

.comments-block__footer {
  display: inline-flex;
  align-items: center;
  gap: var(--indent-4);
  padding: var(--indent-4) var(--indent-8);
  font-size: var(--font-caption);
  font-weight: 500;
  color: var(--color-neutral-030);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-16);
  text-decoration: none;
  align-self: flex-start;
}

.comments-block__footer:hover {
  color: var(--color-neutral-020);
}

.comments-block__footer-arrow {
  flex-shrink: 0;
  opacity: 0.75;
}

.comments-block__footer:hover .comments-block__footer-arrow {
  opacity: 1;
}

/* —— Cover —— */
.cover {
  position: relative;
  width: 100%;
  max-width: 578px;
  min-height: 270px;
  border-radius: var(--radius-12);
  overflow: hidden;
}

.cover__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover__inner {
  position: relative;
  padding: var(--indent-36);
  min-height: 270px;
  display: flex;
  align-items: flex-start;
}

.cover__title {
  margin: 0;
  max-width: 486px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: var(--font-h3);
  line-height: 1.2;
  letter-spacing: 0.1px;
  color: #000;
}

/* —— Header desktop (Figma Header_desktop) —— */
.header-desktop {
  box-sizing: border-box;
  width: 100%;
  background: #000;
  color: #fff;
  padding: 8px 0;
}

.header-desktop__inner {
  display: grid;
  grid-template-columns: var(--layout-3-cols);
  align-items: center;
  gap: var(--layout-grid-gap);
  min-height: 34px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.header-desktop__left {
  display: contents;
}

.header-desktop__logo {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
  grid-column: 1;
  justify-self: start;
}

.header-desktop__logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-020);
  flex-shrink: 0;
  margin-bottom: 4px;
}

.header-desktop__logo p {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #fff;
}

.header-desktop__search {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 34px;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0 14px 0 12px;
  background: #2b2929;
  border-radius: 999px;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  grid-column: 2;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.header-desktop__search:focus-within {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: #323030;
}

.header-desktop__search-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.header-desktop__search-ico svg {
  display: block;
}

.header-desktop__search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.header-desktop__search-input:-webkit-autofill,
.header-desktop__search-input:-webkit-autofill:hover,
.header-desktop__search-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #2b2929 inset;
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  transition: background-color 99999s ease-out;
}

.header-desktop__search-input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.header-desktop__search-input::-webkit-search-decoration,
.header-desktop__search-input::-webkit-search-cancel-button {
  appearance: none;
}

.header-desktop__right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  grid-column: 3;
  justify-self: end;
  justify-content: flex-end;
}

/* Колокол */
.header-desktop__notif-btn {
  width: 34px;
  height: 34px;
  background: #2a2a2a;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.header-desktop__notif-btn:hover {
  background: #3d3a3b;
}

.header-desktop__notif-btn:active {
  background: #1f1d1e;
  transform: scale(0.94);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.header-desktop__notif-btn:focus-visible {
  outline: 2px solid var(--color-primary-050);
  outline-offset: 2px;
}

.header-desktop__notif-btn .figma-icon {
  width: 18px;
  height: 18px;
}

.header-desktop__notif-btn .figma-icon > img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* Кнопка «Написать» — серая капсула */
.btn--header-write {
  background: #2a2a2a;
  color: #fff;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 14px 0 11px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.25;
  border: none;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-interactive, background-color 0.2s ease, box-shadow 0.2s ease);
}

.btn--header-write:hover {
  background: #3d3a3b;
}

.btn--header-write:active {
  background: #242223;
  box-shadow: var(--state-press-shadow, 0 3px 10px rgba(0, 0, 0, 0.35));
}

.btn--header-write:focus-visible {
  outline: 2px solid var(--color-primary-050);
  outline-offset: 2px;
}

.btn--header-write .figma-icon.figma-icon--24 {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn--header-write .figma-icon > img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* «Войти» — красная капсула */
.btn--header-login {
  background: var(--color-primary-010);
  color: #fff;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 16px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.25;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-interactive, background-color 0.2s ease, box-shadow 0.2s ease);
}

.btn--header-login:hover {
  background: var(--color-primary-020);
}

.btn--header-login:active {
  background: #8a1b2d;
  box-shadow: var(--state-press-shadow, 0 3px 10px rgba(20, 19, 19, 0.25));
}

.btn--header-login:focus-visible {
  outline: 2px solid var(--color-primary-050);
  outline-offset: 2px;
}

.header-desktop__avatar-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8e4e5;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.header-desktop__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .header-desktop__inner {
    display: flex;
    flex-wrap: wrap;
    padding: 0 12px;
  }

  .header-desktop__left {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .header-desktop__search {
    max-width: none;
    width: 100%;
  }

  .header-desktop__right {
    width: 100%;
    justify-content: flex-end;
  }
}

/* —— Edit text —— */
.edit-text {
  max-width: 677px;
  border-radius: var(--radius-20);
  overflow: hidden;
  border: 1px solid #b5b5cf;
  background: #f9f9ff;
}

.edit-text__toolbar {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  min-height: 40px;
  padding: 0;
  background: var(--color-neutral-070);
  border-bottom: 1px solid var(--color-neutral-060);
  border-radius: 8px 8px 0 0;
}

.edit-text__toolbar-group {
  display: flex;
  align-items: center;
}

.edit-text__area {
  min-height: 283px;
  padding: 20px var(--indent-36);
  background: var(--color-neutral-080);
  border-left: 1px solid var(--color-neutral-060);
  border-right: 1px solid var(--color-neutral-060);
  color: var(--color-neutral-060);
}

.edit-text__area h3 {
  margin: 0 0 10px;
  font-size: var(--font-h1-editor);
  line-height: var(--line-body);
  font-weight: 700;
  color: var(--color-neutral-010);
}

.edit-text__area p {
  margin: 0;
  font-size: var(--font-body);
  color: var(--color-neutral-010);
}

/* —— Card feed (Default) —— */
.card-feed {
  box-sizing: border-box;
  max-width: var(--feed-card-max-width, 610px);
  background: var(--color-neutral-080);
  border: 1px solid var(--color-neutral-060);
  border-radius: var(--radius-20);
  padding: var(--indent-20);
  display: flex;
  flex-direction: column;
  gap: var(--indent-16);
}

.card-feed__stat-ico.figma-icon--16:not(.figma-icon--fg-eye),
.card-feed__stat-meta .figma-icon--16:not(.figma-icon--fg-eye),
.card-feed__stat-btn .figma-icon--16:not(.figma-icon--fg-bookmark):not(.figma-icon--fg-eye) {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  aspect-ratio: 1;
  overflow: visible;
}

/* закладка 13.5×19.5 — не в квадрат 16×16 */
.card-feed__stat-btn .figma-icon--fg-bookmark.figma-icon--16 {
  width: 11px;
  height: 16px;
  min-width: 11px;
  min-height: 16px;
  aspect-ratio: 13.5 / 19.5;
  overflow: visible;
}

.card-feed__stat-svg {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: inherit;
  transition: color 0.22s ease, transform 0.18s ease;
}

.card-feed__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--indent-12);
  min-width: 0;
}

.card-feed__author {
  display: flex;
  align-items: center;
  gap: var(--indent-12);
  flex-shrink: 0;
  min-width: auto;
}

.card-feed__top > .tag {
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Страница статьи: рубрика под именем; «Подписаться» справа от блока автора */
.card-feed__top--article {
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: var(--indent-12, 12px);
}

.card-feed__author--article {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--indent-12, 12px);
  row-gap: 6px;
  min-width: 0;
  flex: 1 1 0;
}

.card-feed__author--article .card-feed__author-meta {
  flex-basis: 100%;
  padding-left: calc(32px + var(--indent-12, 12px));
}

.card-feed__author--article .card-feed__author-nolink {
  display: flex;
  align-items: center;
  gap: var(--indent-12, 12px);
  min-width: 0;
}

.card-feed__top--article .art-head-follow {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  white-space: nowrap;
}

/* Hover автора: без отрицательных margin — фон не обрезает article-col overflow */
.article-col .s2-author-hit.card-feed__author-hit--article {
  margin: 0;
  padding: 4px 8px;
}

.card-feed__avatar {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.card-feed__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-feed__name {
  margin: 0;
  font-weight: 400;
  font-size: var(--font-body);
  line-height: 1;
  transition: color 0.2s ease;
}

.card-feed__headline-link,
.card-feed__cover-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.card-feed__headline-link:hover {
  color: var(--color-primary-020);
}

.card-feed__headline-link:active {
  color: var(--color-primary-010);
}

.card-feed__headline {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: normal;
  font-weight: 700;
  font-size: var(--font-size-28, var(--font-h3, 28px));
  line-height: 130%;
  letter-spacing: 0.1px;
  color: var(--color-neutral-010);
  transition: color 0.2s ease;
}

.card-feed__text-block {
  display: flex;
  flex-direction: column;
  gap: var(--indent-8);
}

.card-feed__excerpt {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--font-size-16, var(--font-body, 16px));
  font-style: normal;
  font-weight: 400;
  line-height: var(--line-body, 20px);
  color: #000;
}

.card-feed__read-more {
  align-self: flex-start;
  margin-top: 7px;
  padding: 0;
  color: var(--color-neutral-030, #4E4A4C);
  font-family: Inter, var(--sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  transition: color 0.22s ease;
}

/* Строка без бордеров: чат, шэр, закладка | время, просмотры */
.card-feed__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--indent-8);
}

.card-feed__stats-left,
.card-feed__stats-right {
  display: flex;
  align-items: center;
}

.card-feed__stats-left {
  gap: 28px;
}

.card-feed__stats-right {
  gap: var(--indent-8);
}

.card-feed__stat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  line-height: 1.25;
  font-family: inherit;
  color: var(--color-neutral-040);
  background: none;
  border: none;
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    transform 0.18s ease,
    box-shadow 0.22s ease;
}

.card-feed__stat-btn:focus {
  outline: none;
}

/* Лайк: SVG через currentColor — те же hover/active/focus, что у соседних stat-кнопок */
.card-feed__stat-btn.main-like:hover,
.card-feed__stat-btn.main-like:focus-visible {
  color: var(--color-primary-020);
  background-color: var(--color-primary-070);
}

.card-feed__stat-btn.main-like:active {
  color: var(--color-primary-010);
  background-color: var(--color-primary-060);
  transform: scale(0.97);
}

.card-feed__stat-btn.main-like:focus-visible {
  box-shadow: 0 0 0 2px var(--color-primary-060);
}

.card-feed__stat-btn.main-like.liked {
  color: var(--color-neutral-080);
  background-color: var(--color-primary-020);
}

.card-feed__stat-btn.main-like.liked:hover,
.card-feed__stat-btn.main-like.liked:focus-visible {
  color: var(--color-neutral-080);
  background-color: var(--color-primary-010);
}

.card-feed__stat-btn.main-like.liked:active {
  background-color: var(--color-primary-010);
  transform: scale(0.97);
}

.card-feed__stat-btn:not(.main-like):hover,
.card-feed__stat-btn:not(.main-like):focus-visible {
  color: var(--color-primary-020);
  background-color: var(--color-primary-070);
}

.card-feed__stat-btn:not(.main-like):active {
  color: var(--color-primary-010);
  background-color: var(--color-primary-060);
  transform: scale(0.97);
}

.card-feed__stat-btn:not(.main-like):focus-visible {
  box-shadow: 0 0 0 2px var(--color-primary-060);
}

/* Figma-иконки в кнопках — перекраска через filter (fill в SVG не currentColor) */
.card-feed__stat-btn:not(.main-like) {
  --stat-ico-f: none;
}

.card-feed__stat-btn:not(.main-like):hover,
.card-feed__stat-btn:not(.main-like):focus-visible {
  --stat-ico-f: brightness(0) saturate(100%) invert(29%) sepia(72%) saturate(2200%) hue-rotate(318deg) brightness(0.92) contrast(92%);
}

.card-feed__stat-btn:not(.main-like):active {
  --stat-ico-f: brightness(0) saturate(100%) invert(22%) sepia(82%) saturate(2000%) hue-rotate(318deg) brightness(0.88) contrast(92%);
}

.card-feed__stat-btn:not(.main-like) .figma-icon > img,
.card-feed__stat-btn:not(.main-like) .figma-icon__fg {
  filter: var(--stat-ico-f);
  transition: filter 0.22s ease;
}

.card-feed__stat-btn.ast-btn-save.on .figma-icon > img,
.card-feed__stat-btn.ast-btn-save.on .figma-icon__fg {
  filter: brightness(0) saturate(100%) invert(29%) sepia(72%) saturate(2200%) hue-rotate(318deg) brightness(0.92) contrast(92%);
}

.card-feed__stat-btn.ast-btn-save.on:hover .figma-icon > img,
.card-feed__stat-btn.ast-btn-save.on:hover .figma-icon__fg,
.card-feed__stat-btn.ast-btn-save.on:focus-visible .figma-icon > img,
.card-feed__stat-btn.ast-btn-save.on:focus-visible .figma-icon__fg {
  filter: brightness(0) saturate(100%) invert(22%) sepia(82%) saturate(2000%) hue-rotate(318deg) brightness(0.88) contrast(92%);
}

.card-feed__stat-btn.liked {
  color: var(--color-primary-020);
}

@media (prefers-reduced-motion: reduce) {
  .card-feed__stat-btn,
  .card-feed__stat-btn:not(.main-like) .figma-icon > img,
  .card-feed__stat-btn:not(.main-like) .figma-icon__fg,
  .card-feed__stat-svg,
  .card-feed__read-more {
    transition: none;
  }

  .card-feed__stat-btn:not(.main-like):active,
  .card-feed__stat-btn.main-like:active,
  .card-feed__stat-btn.main-like.liked:active {
    transform: none;
  }
}

.card-feed__stat-meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--color-neutral-040);
}

.card-feed__reactions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--indent-12);
  align-items: center;
  justify-content: space-between;
}

.card-feed__reactions.article-reactions {
  justify-content: flex-start;
}

/* ── Статья: теги + панель «комментарии / поделиться / сохранить» + просмотры (не как в ленте) ── */
.article-col .article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 24px 0 20px;
}

.article-col .article-tags .tag {
  padding: 0 var(--indent-8);
  border: none;
  border-radius: 999px;
  background: var(--color-neutral-070);
  color: var(--color-neutral-030);
  font-size: 13px;
  font-weight: 400;
}

.article-col .article-tags a.tag[href*="tag="]:hover {
  background: var(--color-primary-070);
  color: var(--color-primary-020);
}

.article-col .article-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--indent-16);
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.article-col .article-footer-bar__left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px 32px;
  min-width: 0;
}

.article-col .article-footer-bar__right {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.article-col .article-footer-act,
.article-col a.article-footer-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 0;
  border: none;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-neutral-030);
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    transform 0.18s ease;
}

.article-col .article-footer-act:hover,
.article-col .article-footer-act:focus-visible,
.article-col a.article-footer-act:hover,
.article-col a.article-footer-act:focus-visible {
  color: var(--color-primary-020);
  background-color: var(--color-primary-070);
  outline: none;
}

.article-col .article-footer-act:active,
.article-col a.article-footer-act:active {
  color: var(--color-primary-010);
  background-color: var(--color-primary-060);
  transform: scale(0.98);
}

.article-col .article-footer-act--icononly {
  padding: 4px 6px;
  color: var(--color-neutral-030);
}

.article-col .article-footer-act__ico.figma-icon--fg-chat,
.article-col .article-footer-act__ico.figma-icon--fg-share,
.article-col .article-footer-act__ico.figma-icon--fg-bookmark,
.article-col .article-footer-act__ico.figma-icon--fg-eye {
  --stat-ico-f: none;
}

.article-col .article-footer-act:hover .article-footer-act__ico.figma-icon--fg-chat,
.article-col .article-footer-act:focus-visible .article-footer-act__ico.figma-icon--fg-chat,
.article-col .article-footer-act:hover .article-footer-act__ico.figma-icon--fg-share,
.article-col .article-footer-act:focus-visible .article-footer-act__ico.figma-icon--fg-share,
.article-col .article-footer-act:hover .article-footer-act__ico.figma-icon--fg-bookmark,
.article-col .article-footer-act:focus-visible .article-footer-act__ico.figma-icon--fg-bookmark,
.article-col a.article-footer-act:hover .article-footer-act__ico.figma-icon--fg-chat,
.article-col a.article-footer-act:focus-visible .article-footer-act__ico.figma-icon--fg-chat,
.article-col .article-footer-views:hover .article-footer-act__ico.figma-icon--fg-eye {
  filter: brightness(0) saturate(100%) invert(29%) sepia(72%) saturate(2200%) hue-rotate(318deg) brightness(0.92) contrast(92%);
}

.article-col .article-footer-act:active .article-footer-act__ico.figma-icon--fg-chat,
.article-col .article-footer-act:active .article-footer-act__ico.figma-icon--fg-share,
.article-col .article-footer-act:active .article-footer-act__ico.figma-icon--fg-bookmark,
.article-col a.article-footer-act:active .article-footer-act__ico.figma-icon--fg-chat {
  filter: brightness(0) saturate(100%) invert(22%) sepia(82%) saturate(2000%) hue-rotate(318deg) brightness(0.88) contrast(92%);
}

.article-col .article-footer-act.ast-btn-save.on .article-footer-act__ico.figma-icon > img,
.article-col .article-footer-act.ast-btn-save.on .article-footer-act__ico.figma-icon__fg {
  filter: brightness(0) saturate(100%) invert(29%) sepia(72%) saturate(2200%) hue-rotate(318deg) brightness(0.92) contrast(92%);
}

.article-col .article-footer-act.ast-btn-save.on:hover .article-footer-act__ico.figma-icon > img,
.article-col .article-footer-act.ast-btn-save.on:hover .article-footer-act__ico.figma-icon__fg,
.article-col .article-footer-act.ast-btn-save.on:focus-visible .article-footer-act__ico.figma-icon > img,
.article-col .article-footer-act.ast-btn-save.on:focus-visible .article-footer-act__ico.figma-icon__fg {
  filter: brightness(0) saturate(100%) invert(22%) sepia(82%) saturate(2000%) hue-rotate(318deg) brightness(0.88) contrast(92%);
}

.article-col .article-footer-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-neutral-030);
}

.article-col .reaction-chips .react.react--post-like {
  gap: 6px;
}

.article-col .reaction-chips .react.react--post-like.liked {
  border-color: var(--r, #a72038);
  color: var(--r, #a72038);
  background: var(--color-primary-070);
}

.article-col .reaction-chips .react.react--post-like.liked:hover,
.article-col .reaction-chips .react.react--post-like.liked:focus-visible {
  border-color: var(--color-primary-010);
  color: var(--color-primary-010);
  background: var(--color-primary-060);
}

@media (max-width: 640px) {
  .article-col .article-footer-bar__right {
    margin-left: 0;
    width: 100%;
  }

  .article-col .article-footer-bar__left {
    gap: 18px 22px;
  }
}

.card-feed .comments-block {
  margin-top: var(--indent-12);
}

.card-feed__reactions .reaction-chips {
  gap: var(--indent-8);
  align-items: center;
}

.card-feed__reactions .btn--outline-light {
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}

.card-feed__reactions .btn--outline-light:hover {
  background: var(--color-primary-020);
  color: var(--color-neutral-080);
  border-color: var(--color-primary-020);
}

.card-feed__reactions .btn--outline-light:active {
  transform: scale(0.97);
}

.card-feed__reactions .btn--outline-light.following,
.card-feed__reactions .btn--outline-light.on {
  background: var(--color-primary-020);
  color: var(--color-neutral-080);
}

.reaction-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--indent-12);
}

.card-feed__expanded {
  display: flex;
  flex-direction: column;
  gap: var(--indent-16);
  overflow: hidden;
  height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    height 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height, opacity, transform;
}

.card-feed__expanded.is-open {
  opacity: 1;
  transform: translateY(0);
}

.card-feed [hidden] {
  display: none !important;
}

.card-feed__expanded-body {
  font-family: var(--sans);
  font-size: var(--font-size-16, var(--font-body, 16px));
  font-weight: 400;
  line-height: var(--line-body, 20px);
  color: #000;
}

.card-feed__expanded-body p:last-child {
  margin-bottom: 0;
}

.card-feed__read-more--collapse {
  align-self: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  .card-feed__expanded {
    transition: none;
    transform: none;
  }
}

.ds-on-dark {
  background: var(--color-neutral-030);
  padding: var(--indent-20);
  border-radius: var(--radius-16);
}

.ds-on-dark .header-desktop {
  padding: 16px clamp(16px, 4vw, 32px);
  border-radius: var(--radius-12);
}

/* Слоистая иконка 24×24 как в Figma (фон + union) */
.figma-icon {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  overflow: hidden;
}

.figma-icon--24 {
  width: 24px;
  height: 24px;
}

.figma-icon--16 {
  width: 16px;
  height: 16px;
}

/* Глаз viewBox 13×9 — явные 13×9: в flex только abs-дети, height:auto даёт сбой в сайдбаре */
.figma-icon.figma-icon--fg-eye.figma-icon--16 {
  width: 13px;
  height: 9px;
  min-width: 13px;
  min-height: 9px;
  max-width: 13px;
  max-height: 9px;
  aspect-ratio: 13 / 9;
  overflow: visible;
  flex-shrink: 0;
}

.figma-icon > img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.figma-icon__fg {
  position: absolute;
  display: block;
  object-fit: contain;
}

.figma-icon--24 .figma-icon__fg {
  inset: 9.38%;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}

.figma-icon--16 .figma-icon__fg {
  inset: 9.38%;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  object-position: center;
}

.figma-icon--fg-heart .figma-icon__fg {
  inset: 13.49% 9.39% 13.54% 9.32%;
}

/* Сердце в 16px-контейнере — не обрезать левый край */
.figma-icon--fg-heart.figma-icon--16 {
  overflow: visible;
}

.figma-icon--fg-chat .figma-icon__fg {
  inset: 13.45% 9.32% 13.54% 9.37%;
}

.figma-icon--fg-bell .figma-icon__fg {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.figma-icon--fg-eye .figma-icon__fg {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.figma-icon--fg-clock .figma-icon__fg {
  inset: 9.38%;
}

.figma-icon--fg-arrow .figma-icon__fg {
  inset: 30.21% 17.71%;
}

.figma-icon--fg-flame .figma-icon__fg {
  inset: 5.21% 17.71% 9.37% 17.71%;
}

.figma-icon--fg-pencil .figma-icon__fg {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

/* Диагональный карандаш — не кромсать углы контейнером */
.figma-icon--fg-pencil {
  overflow: visible;
}

.figma-icon--fg-trash .figma-icon__fg {
  inset: 9.38% 13.54%;
}

.figma-icon--fg-chevron .figma-icon__fg {
  inset: 34.38% 21.88%;
}

.figma-icon--fg-plus .figma-icon__fg {
  inset: 17.71%;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.figma-icon--fg-star .figma-icon__fg {
  inset: 8% 7% 11% 7%;
}

/* crown: viewBox 19.5×13.5 → wide icon, adjusted vertical inset */
.figma-icon--fg-crown .figma-icon__fg {
  inset: 21.88% 9.38%;
}

.figma-icon--fg-share .figma-icon__fg,
.figma-icon--fg-bookmark .figma-icon__fg {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
}
