/**
 * Public info pages — AboutPage, HelpPage, AppsPage, BlogPage (PublicInfoLayout.tsx)
 */

#public-info-page.public-info-foundation {
  --public-info-tabs-h: 2.75rem;
  --pi-bg: #f1f5f9;
  --pi-card: #ffffff;
  --pi-navy: #0b1f3a;
  --pi-navy-mid: #1e3a5f;
  --pi-blue: #1d4ed8;
  --pi-blue-light: #eff6ff;
  --pi-blue-mid: #dbeafe;
  --pi-green: #059669;
  --pi-green-light: #ecfdf5;
  --pi-text: #0f172a;
  --pi-text-sub: #374151;
  --pi-text-muted: #6b7280;
  --pi-text-light: #9ca3af;
  --pi-border: #e2e8f0;
  --pi-border-light: #f1f5f9;
  --pi-surface: #f8fafc;
  --pi-purple: #7c3aed;
  --pi-teal: #0891b2;
  --pi-amber: #d97706;

  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--pi-text);
  background: var(--pi-bg);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}

#public-info-page *,
#public-info-page *::before,
#public-info-page *::after {
  box-sizing: border-box;
}

/* ── Section tabs (pill nav) ── */
.public-info-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  margin-top: 1.125rem;
  background: var(--pi-card);
  border-top: 1px solid var(--pi-border);
  border-bottom: 1px solid var(--pi-border);
}

/* Help pages only: the section bar scrolls away, gets a top rule and space above, and the active tab matches the header Create button */
body:has(.public-info-help-shell) .public-info-tabs {
  position: static;
  margin-top: 1.125rem;
  border-top: 1px solid var(--pi-border);
}

/* Active section tab: same box as the header Create button, on every public info page */
.public-info-tabs__link.is-active {
  border-radius: 0.5rem;
  font-weight: 400;
  padding: 0.5rem 1rem;
}

/* Article eyebrow above the title: back link to the help hub and the section name */
.public-info-help-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
}

.public-info-help-eyebrow__back {
  color: var(--pi-blue);
  text-decoration: none;
}

.public-info-help-eyebrow__back:hover {
  text-decoration: underline;
}

/* Thin divider between the back link and the section name */
.public-info-help-eyebrow__group::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.75rem;
  margin-right: 0.75rem;
  vertical-align: middle;
  background: var(--pi-border);
}

.public-info-help-eyebrow__group {
  color: var(--pi-text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-info-tabs__link {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pi-text-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.public-info-tabs__link:hover {
  color: var(--pi-text-sub);
  background: var(--pi-border-light);
}

.public-info-tabs__link.is-active {
  background: var(--pi-blue);
  color: #fff;
}

.public-info-tabs__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.public-info-tabs__scroll::-webkit-scrollbar {
  display: none;
}

.public-info-tabs__inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  min-width: max-content;
  margin: 0 auto;
}

/* ── Containers ── */
.public-info-page__container {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.public-info-page__container--narrow {
  max-width: none;
  padding-top: 1.25rem;
}

.public-info-page__container--blog {
  max-width: none;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.public-info-page__container--help {
  max-width: none;
  padding-top: 1rem;
  padding-bottom: 0;
}

.public-info-page__container--apps {
  max-width: 56rem;
}

/* ── Footer ── */
.public-info-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem auto 0;
  width: 100%;
  max-width: 56rem;
  box-sizing: border-box;
  border-top: 1px solid var(--pi-border);
  font-size: 0.8125rem;
  color: var(--pi-text-muted);
}

.public-info-footer__link {
  color: var(--pi-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.public-info-footer__link:hover {
  color: var(--pi-blue);
}

/* Apps page: footer width matches PublicInfoLayout (max-w-4xl), outside narrow content column */
.public-info-footer--apps {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

/* ── About ── */
.public-info-about__hero {
  margin-bottom: 3rem;
  text-align: center;
}

.public-info-about__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 0 auto 1rem;
  max-width: 100%;
  font-size: clamp(1.125rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: var(--pi-text);
  line-height: 1.2;
  white-space: nowrap;
}

.public-info-about__logo {
  height: 1em;
  width: auto;
  max-width: 5.5rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  vertical-align: middle;
}

.public-info-about__title-text {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 639px) {
  .public-info-about__title {
    flex-wrap: wrap;
    white-space: normal;
    font-size: 1.25rem;
  }

  .public-info-about__title-text {
    overflow: visible;
    text-overflow: unset;
  }
}

.public-info-about__lead {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--pi-text-muted);
}

.public-info-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .public-info-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.public-info-stat-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--pi-card);
  border: 1px solid var(--pi-border);
  text-align: center;
}

.public-info-stat-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pi-blue);
  margin-bottom: 0.25rem;
}

.public-info-stat-card__label {
  font-size: 0.8125rem;
  color: var(--pi-text-muted);
}

.public-info-mission {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--pi-navy-mid);
  margin-bottom: 3.5rem;
}

.public-info-mission__title {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
}

.public-info-mission__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}

.public-info-section-title {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--pi-text);
}

.public-info-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .public-info-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.public-info-value-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--pi-card);
  border: 1px solid var(--pi-border);
}

.public-info-value-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pi-blue-light);
  color: var(--pi-blue);
  margin-bottom: 0.75rem;
}

.public-info-value-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pi-text);
  margin-bottom: 0.375rem;
}

.public-info-value-card__desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--pi-text-muted);
}

.public-info-team__head {
  margin-bottom: 1.25rem;
}

.public-info-team__title {
  margin-bottom: 0.375rem;
}

.public-info-team__subtitle {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--pi-text-muted);
}

.public-info-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .public-info-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

.public-info-team-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: var(--pi-card);
  border: 1px solid var(--pi-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.public-info-team-card--wide {
  grid-column: 1 / -1;
}

.public-info-team-card__media {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--pi-blue-light);
}

.public-info-team-card__photo,
.public-info-team-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center center;
}

.public-info-team-card__body {
  min-width: 0;
}

.public-info-team-card__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pi-text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.public-info-team-card__role {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--pi-text-sub);
}

.public-info-team-card__bullet {
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--pi-blue);
}

.public-info-contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--pi-blue-light);
  border: 1px solid var(--pi-blue-mid);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .public-info-contact {
    flex-direction: row;
    align-items: center;
  }
}

.public-info-contact__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pi-text);
  margin-bottom: 0.375rem;
}

.public-info-contact__meta {
  font-size: 0.875rem;
  color: var(--pi-text-muted);
}

.public-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.public-info-btn:hover {
  opacity: 0.92;
}

.public-info-btn--primary {
  background: var(--pi-blue);
  color: #fff;
}

/* Модалка поддержки на /page/info — как recommendation-profile-modal */
#about-support-modal[open] {
  z-index: 200;
}

#about-support-modal[open] .modal-box,
#about-support-modal[open] .modal-box > div {
  overflow: visible;
}

#about-support-modal[open] .modal-box {
  max-height: min(90dvh, 100%);
}

.public-info-legal {
  padding: 2rem;
  border-radius: 0.75rem;
  background: var(--pi-card);
  border: 1px solid var(--pi-border);
}

.public-info-legal__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pi-text);
}

.public-info-legal__body {
  font-size: 0.875rem;
  line-height: 2;
  color: var(--pi-text);
}

.public-info-legal__body p {
  margin: 0;
}

.public-info-legal__body a {
  color: var(--pi-blue);
}

/* Соцсети в блоке «Контактная информация» — дубликат лендинговых иконок */
.public-info-legal .landing-il-footer-contacts {
  width: 100%;
}

.public-info-legal .landing-il-footer-contact-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  color: var(--pi-text-muted);
  background-color: var(--pi-border-light);
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.public-info-legal .landing-il-footer-contact-icon-btn:hover {
  color: var(--pi-blue);
  background-color: var(--pi-blue-light);
  transform: translateY(-1px);
}

.public-info-legal .landing-il-footer-contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.public-info-legal .landing-il-footer-contact-icon svg {
  display: block;
}

.public-info-legal .landing-il-footer-contact-icon-img {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.public-info-legal .landing-il-footer-contact-icon-btn:has(.landing-il-footer-contact-icon-img) {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 0.75rem;
  background-color: transparent;
}

.public-info-legal .landing-il-footer-contact-icon-btn:has(.landing-il-footer-contact-icon-img):hover {
  background-color: transparent;
  color: inherit;
  opacity: 0.88;
}

.public-info-legal .landing-il-footer-contact-group-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pi-text-muted);
}

.public-info-legal__docs-title {
  margin: 1.25rem 0 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pi-text);
}

.public-info-legal__docs a {
  color: var(--pi-blue);
  text-decoration: underline;
}

/* ── Apps (/page/apps) — Figma Make AppsPage.tsx (PlatformMark + 200px grid) ── */
.public-info-apps__title {
  margin: 0 0 0.25rem;
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--pi-text);
}

.public-info-apps-hero__lead {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--pi-text-muted);
}

.public-info-apps-card {
  overflow: hidden;
  border-radius: 1rem;
  background: var(--pi-card);
  border: 1px solid var(--pi-border);
}

/* Blog post article — BlogPage.tsx card padding (p-5) */
.public-info-blog-post-card {
  overflow: hidden;
  border-radius: 1rem;
  background: var(--pi-card);
  border: 1px solid var(--pi-border);
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .public-info-blog-post-card {
    padding: 1.5rem 2rem;
  }
}

/* Article card: text on the left, article details and contents in the free space on the right, inside the card */
.public-info-blog-post-card--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 2rem;
  align-items: start;
}

.public-info-blog-post-body {
  min-width: 0;
}

@media (min-width: 1024px) {
  .public-info-blog-post-card--split {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

  .public-info-blog-post-aside {
    position: sticky;
    top: 0;
  }
}

/* Starts level with the article title, below the category/date row */
.public-info-blog-post-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.875rem;
}

.public-info-blog-post-aside__card {
  padding: 1rem 1.125rem;
  border-radius: 0.75rem;
  background: var(--pi-card);
  border: 1px solid var(--pi-border);
}

.public-info-blog-post-aside__title {
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pi-text-muted);
}

.public-info-blog-post-aside__list {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  font-size: 0.8125rem;
}

.public-info-blog-post-aside__list > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.public-info-blog-post-aside__list dt {
  color: var(--pi-text-muted);
}

.public-info-blog-post-aside__list dd {
  margin: 0;
  text-align: right;
  color: var(--pi-text-sub);
}

.public-info-blog-post-aside__toc {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--pi-border);
}

.public-info-blog-post-aside__toc a {
  display: block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--pi-text-sub);
  text-decoration: none;
  margin-left: -2px;
  border-left: 2px solid transparent;
}

.public-info-blog-post-aside__toc a:hover {
  color: var(--pi-blue);
}

.public-info-blog-post-aside__toc .is-l3 a {
  padding-left: 1.5rem;
}

.public-info-apps-row {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  background: var(--pi-card);
}

.public-info-apps-row--bordered {
  border-top: 1px solid var(--pi-border);
}

.public-info-apps-row__device {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--pi-surface);
  border-right: 1px solid var(--pi-border);
}

.public-info-apps-platform-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  padding: 2rem 1rem;
  border-radius: 1rem;
  background: var(--pi-card);
  border: 1px solid var(--pi-border);
}

.public-info-apps-platform-mark__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  font-size: 1.625rem;
  line-height: 1;
  flex-shrink: 0;
}

.public-info-apps-platform-mark__icon--android {
  background: var(--pi-green-light);
  color: var(--pi-green);
}

.public-info-apps-platform-mark__icon--ios {
  background: var(--pi-surface);
  color: var(--pi-text);
}

.public-info-apps-platform-mark__icon--macos {
  background: var(--pi-blue-light);
  color: var(--pi-blue);
}

.public-info-apps-platform-mark__text {
  text-align: center;
}

.public-info-apps-platform-mark__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pi-text);
  line-height: 1.25;
}

.public-info-apps-platform-mark__sub {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--pi-text-muted);
  line-height: 1.35;
}

.public-info-apps-row__content {
  min-width: 0;
  padding: 2rem;
}

.public-info-apps-row__heading {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--pi-text);
  line-height: 1.35;
}

.public-info-apps-row__heading-sub {
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--pi-text-muted);
}

.public-info-apps-row__body {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--pi-text-sub);
}

.public-info-apps-row__body p,
.public-info-apps-row__intro {
  margin: 0 0 0.75rem;
}

.public-info-apps-section__how-label {
  margin: 0 0 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pi-text);
}

.public-info-apps-steps {
  margin: 0 0 0.625rem;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--pi-text-sub);
}

.public-info-apps-steps li {
  margin-bottom: 0.25rem;
}

.public-info-apps-benefits-panel {
  padding: 2rem;
  border-top: 1px solid var(--pi-border);
  background: var(--pi-card);
}

.public-info-apps-benefits-panel__title {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--pi-text);
}

.public-info-apps-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-info-apps-benefits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--pi-text-sub);
}

.public-info-apps-benefits__icon {
  color: var(--pi-green);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.public-info-apps-section__support-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--pi-text-muted);
}

.public-info-apps-page .public-info-apps-link {
  color: var(--pi-blue);
  text-decoration: underline;
}

.public-info-apps-page .public-info-apps-link:hover {
  color: var(--pi-navy-mid);
}

@media (max-width: 767px) {
  .public-info-apps-row {
    grid-template-columns: 1fr;
  }

  .public-info-apps-row__device {
    border-right: none;
    border-bottom: 1px solid var(--pi-border);
    padding: 1.25rem 1rem;
  }

  .public-info-apps-platform-mark {
    max-width: 14rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
  }

  .public-info-apps-row__content {
    padding: 1.5rem 1.25rem;
  }

  .public-info-apps-benefits-panel {
    padding: 1.5rem 1.25rem;
  }
}

/* ── Help ── */
.public-info-help-shell {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  border-radius: 1rem;
  /* clip (не hidden): не создаёт scroll-контейнер, иначе ломается sticky у групп-нав и TOC */
  overflow: clip;
  background: var(--pi-card);
  border: 1px solid var(--pi-border);
}

@media (min-width: 1024px) {
  .public-info-help-shell {
    flex-direction: row;
    align-items: stretch;
  }
}

.public-info-help-sidebar {
  flex-shrink: 0;
  padding: 1.5rem 0.75rem;
  border-bottom: 1px solid var(--pi-border);
}

@media (min-width: 1024px) {
  .public-info-help-sidebar {
    width: 20rem;
    border-bottom: none;
    border-right: 1px solid var(--pi-border);
    max-height: calc(100vh - var(--ui-topbar-h, 3rem) - var(--public-info-tabs-h, 2.75rem) - 2rem);
    overflow-y: auto;
    /* overflow-y: auto включает и ось X: без hidden классические полосы прокрутки (планшет, Windows)
       сжимают колонку на ~15px, длинные подписи переполняют её и колонка уходит в горизонтальный скролл. */
    overflow-x: hidden;
    position: sticky;
    top: var(--public-info-tabs-h, 2.75rem);
    align-self: flex-start;
  }
}

.public-info-help-search {
  position: relative;
  margin: 0 0.75rem 1.25rem;
}

.public-info-help-search__icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--pi-text-muted);
  pointer-events: none;
}

.public-info-help-search__input {
  width: 100%;
  padding: 0.375rem 0.5rem 0.375rem 1.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--pi-border);
  background: var(--pi-surface);
  font-size: 0.8125rem;
  color: var(--pi-text);
  outline: none;
}

.public-info-help-search__input:focus {
  border-color: var(--pi-blue);
}

.public-info-help-nav__btn {
  display: flex;
  align-items: center;
  /* Длинные подписи переносятся, а не выходят за колонку (иначе появляется горизонтальная прокрутка) */
  white-space: normal;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.125rem;
  padding: 0.5625rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.84375rem;
  line-height: 1.35;
  color: var(--pi-text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.public-info-help-nav__btn:hover {
  color: var(--pi-blue);
}

/* Active item: blue text and a thin left marker instead of a filled box */
.public-info-help-nav__btn.is-active {
  color: var(--pi-blue);
  font-weight: 500;
  box-shadow: inset 2px 0 0 var(--pi-blue);
}

/* Подпись — flex-элемент: разрешаем сжатие, чтобы перенос текста работал внутри колонки */
.public-info-help-nav__btn span {
  min-width: 0;
}

.public-info-help-nav__btn .fa-solid,
.public-info-help-nav__btn > i {
  width: 0.75rem;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0;
}

/* Below 1024px the horizontal section ribbon replaces the sidebar menu, so the article starts right after it */
@media (max-width: 1023px) {
  .public-info-help-sidebar nav {
    display: none;
  }
}

.public-info-help-mobile {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.375rem;
  overflow-x: auto;
  padding: 0 1rem 1rem;
  scrollbar-width: none;
}

.public-info-help-mobile::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .public-info-help-mobile {
    display: none;
  }
}

.public-info-help-mobile__link {
  flex-shrink: 0;
  padding: 0.5625rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--pi-text-muted);
  background: var(--pi-surface);
  border: 1px solid var(--pi-border);
}

.public-info-help-mobile__link.is-active {
  background: var(--pi-blue);
  border-color: var(--pi-blue);
  color: #fff;
}

.public-info-help-content {
  flex: 1;
  min-width: 0;
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .public-info-help-content {
    padding: 2rem;
  }
}

.public-info-help-content__title {
  margin: 0 0 1.5rem;
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--pi-text);
}

.public-info-prose {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--pi-text-sub);
}

.public-info-help-content .public-info-prose {
  max-width: 50rem;
}

.public-info-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pi-text);
  margin: 1.75rem 0 0.75rem;
}

.public-info-prose h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pi-text);
  margin: 1.25rem 0 0.5rem;
}

.public-info-prose p {
  margin: 0 0 0.75rem;
}

.public-info-prose ul,
.public-info-prose ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.public-info-prose li {
  margin-bottom: 0.25rem;
}

.public-info-prose a {
  color: var(--pi-blue);
}

.public-info-prose__go-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-direction: row-reverse;
  gap: 0.4em;
  margin: 0 0.125rem;
  text-decoration: none;
  line-height: 1;
}

.public-info-prose__go-link i {
  font-size: 0.75rem;
}

.public-info-prose__go-link:hover {
  color: var(--pi-blue);
  opacity: 0.85;
}

/* Long paths such as /company/dashboard must wrap instead of forcing horizontal scroll on narrow screens */
.public-info-help-content .public-info-prose {
  overflow-wrap: break-word;
}

/* ── Help: nav groups, support, hub cards, TOC, prev/next, feedback, search results ── */
.public-info-help-nav__group {
  margin-bottom: 0.875rem;
}

/* 1px separator above each menu group after the first one */
.public-info-help-nav__group + .public-info-help-nav__group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pi-border);
}

.public-info-help-nav__group-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0 0.5rem;
  padding: 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pi-navy-mid);
}

/* Items sit one step to the right of their group title, so the title reads as a parent */
.public-info-help-nav__group .public-info-help-nav__btn {
  padding-left: 1.25rem;
}

.public-info-help-nav__group-title .fa-solid {
  font-size: 0.625rem;
}

.public-info-help-nav__empty {
  display: none;
  margin: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--pi-text-muted);
}

.public-info-help-nav__empty a {
  color: var(--pi-blue);
}

.public-info-help-sidebar__support {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0.75rem 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px dashed var(--pi-border);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--pi-text-sub);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.public-info-help-sidebar__support:hover {
  border-color: var(--pi-blue);
  color: var(--pi-blue);
  background: var(--pi-blue-light);
}

/* Hub topic cards */
.public-info-help-hub__subtitle {
  margin: 2rem 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pi-text);
}

/* Sticky только на десктопе: на мобильных промежуточные flex-обёртки layout с overflow:auto
   становятся scroll-контейнерами и ломают sticky (реальный скроллер — document). */
@media (min-width: 1024px) {
  .public-info-help-hub__groups-nav {
    position: sticky;
    top: calc(var(--public-info-tabs-h, 2.75rem) + 1.5rem);
    z-index: 15;
    background: var(--pi-bg);
    border-bottom: 1px solid var(--pi-border-light);
  }
}

.public-info-help-hub__groups-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0 0 1.25rem;
  padding: 0.5rem 0;
}

.public-info-help-hub__groups-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--pi-border);
  border-radius: 9999px;
  background: var(--pi-card);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pi-text-sub);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.public-info-help-hub__groups-nav-link:hover {
  border-color: var(--pi-blue);
  color: var(--pi-blue);
}

.public-info-help-hub__groups-nav-link.is-current {
  border-color: var(--pi-blue);
  background: var(--pi-blue-light);
  color: var(--pi-blue);
}

.public-info-help-hub__group {
  margin-bottom: 1.75rem;
  scroll-margin-top: calc(var(--public-info-tabs-h, 2.75rem) + 3.5rem);
}

.public-info-help-hub__group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pi-navy-mid);
}

.public-info-help-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.public-info-help-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  border: 1px solid var(--pi-border);
  border-radius: 0.75rem;
  background: var(--pi-card);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.public-info-help-card:hover {
  border-color: var(--pi-blue);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.08);
  transform: translateY(-1px);
}

.public-info-help-card.is-active {
  border-color: var(--pi-blue);
  background: var(--pi-blue-light);
}

.public-info-help-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: var(--pi-blue-light);
  color: var(--pi-blue);
  font-size: 0.875rem;
}

.public-info-help-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.public-info-help-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pi-text);
  line-height: 1.35;
}

.public-info-help-card__excerpt {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--pi-text-muted);
}

.public-info-help-card__meta {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  color: var(--pi-text-light);
}

.public-info-help-hub__support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--pi-surface);
  border: 1px solid var(--pi-border);
}

.public-info-help-hub__support p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pi-text);
}

.public-info-help-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--pi-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.public-info-help-card__cta:hover {
  background: var(--pi-navy-mid);
  color: #fff;
}

/* Updated badge */
.public-info-help-updated {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: -0.75rem 0 1.25rem;
  font-size: 0.75rem;
  color: var(--pi-text-muted);
}

/* Article + TOC layout */
.public-info-help-article {
  display: block;
}

.public-info-help-toc {
  display: none;
}

/* Desktop: text column + a static contents column that stays in view while scrolling */
@media (min-width: 1280px) {
  .public-info-help-page.has-toc {
    display: grid;
    grid-template-columns: minmax(0, 50rem) 15rem;
    column-gap: 2rem;
    align-items: start;
  }

  .public-info-help-aside {
    position: sticky;
    top: calc(var(--public-info-tabs-h, 2.75rem) + 1rem);
  }

  .public-info-help-page.has-toc .public-info-help-toc {
    display: block;
    max-height: calc(100vh - var(--public-info-tabs-h, 2.75rem) - 3rem);
    overflow-y: auto;
  }
}

.public-info-help-toc__title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pi-text-muted);
  cursor: pointer;
  list-style: none;
}

.public-info-help-toc summary.public-info-help-toc__title::-webkit-details-marker {
  display: none;
}

.public-info-help-toc summary.public-info-help-toc__title::after {
  content: '+';
  float: right;
  font-size: 0.875rem;
  letter-spacing: 0;
}

.public-info-help-toc[open] summary.public-info-help-toc__title::after {
  content: '\2013';
}

.public-info-help-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--pi-border);
}

.public-info-help-toc__item {
  margin: 0;
}

.public-info-help-toc__item.is-l3 a {
  padding-left: 1rem;
}

.public-info-help-toc__item a {
  display: block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--pi-text-sub);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.public-info-help-toc__item a:hover {
  color: var(--pi-blue);
}

.public-info-help-toc__item a.is-current {
  color: var(--pi-blue);
  border-left-color: var(--pi-blue);
  font-weight: 600;
}

@media (max-width: 767px) {
  .public-info-help-content {
    padding: 1.25rem;
  }

  .public-info-help-hub__groups-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.5rem 1.25rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }

  .public-info-help-hub__groups-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 1279px) {
  .public-info-help-page.has-toc {
    display: flex;
    flex-direction: column;
  }

  .public-info-help-page.has-toc .public-info-help-aside {
    order: -1;
    margin-bottom: 1rem;
  }

  .public-info-help-page.has-toc .public-info-help-toc {
    display: block;
    margin-bottom: 0;
    border: 1px solid var(--pi-border);
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: var(--pi-surface);
  }

  .public-info-help-page.has-toc .public-info-help-toc summary.public-info-help-toc__title {
    margin: 0;
  }

  .public-info-help-page.has-toc .public-info-help-toc__list {
    margin-top: 0.5rem;
  }
}

/* Prev / next */
.public-info-help-prevnext {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
}

.public-info-help-prevnext__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  max-width: 48%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--pi-border);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.public-info-help-prevnext__link:hover {
  border-color: var(--pi-blue);
  background: var(--pi-blue-light);
}

.public-info-help-prevnext__link.is-next {
  text-align: right;
  margin-left: auto;
}

.public-info-help-prevnext__dir {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pi-text-muted);
}

.public-info-help-prevnext__link.is-next .public-info-help-prevnext__dir {
  justify-content: flex-end;
}

.public-info-help-prevnext__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pi-blue);
}

/* Support CTA at the end of articles */
.public-info-help-article__support {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--pi-text-muted);
}

.public-info-help-article__support a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: 0.25rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--pi-border);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pi-blue);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.public-info-help-article__support a:hover {
  border-color: var(--pi-blue);
  background: var(--pi-blue-light);
}

/* Feedback */
.public-info-help-feedback {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--pi-surface);
  border: 1px solid var(--pi-border);
}

.public-info-help-feedback__q {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pi-text);
}

.public-info-help-feedback__buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.public-info-help-feedback__btn,
.public-info-help-feedback__send {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--pi-border);
  background: var(--pi-card);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--pi-text-sub);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.public-info-help-feedback__btn:hover,
.public-info-help-feedback__btn.is-active {
  border-color: var(--pi-blue);
  background: var(--pi-blue-light);
  color: var(--pi-blue);
}

.public-info-help-feedback__count {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0 0.3125rem;
  border-radius: 9999px;
  background: var(--pi-border-light);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  color: var(--pi-text-muted);
}

.public-info-help-feedback__btn.is-active .public-info-help-feedback__count,
.public-info-help-feedback__btn:hover .public-info-help-feedback__count {
  background: var(--pi-blue-mid);
  color: var(--pi-blue);
}

.public-info-help-feedback__send {
  border-color: var(--pi-blue);
  background: var(--pi-blue);
  color: #fff;
}

.public-info-help-feedback__thanks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pi-green);
}

.public-info-help-feedback__thanks a {
  color: var(--pi-blue);
  font-weight: 500;
}

/* Search results */
.public-info-help-searchresults {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--pi-card);
  border: 1px solid var(--pi-border);
}

.public-info-help-searchresults__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pi-text);
}

.public-info-help-searchresults__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  text-align: center;
}

.public-info-help-searchresults__empty i {
  font-size: 1.5rem;
  color: var(--pi-text-light);
}

.public-info-help-searchresults__empty p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--pi-text-muted);
}

.public-info-help-searchresults__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.public-info-help-searchresults__reset,
.public-info-help-searchresults__support {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.public-info-help-searchresults__reset {
  border: 1px solid var(--pi-border);
  color: var(--pi-text-sub);
}

.public-info-help-searchresults__support {
  background: var(--pi-blue);
  color: #fff;
}

.public-info-help-searchresults__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.public-info-help-searchresults__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--pi-border);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.public-info-help-searchresults__link:hover {
  border-color: var(--pi-blue);
  background: var(--pi-blue-light);
}

/* Search match highlight */
.public-info-help-searchresults mark,
.public-info-help-card mark,
.public-info-help-nav__btn mark {
  background: rgba(29, 78, 216, 0.14);
  color: var(--pi-blue);
  border-radius: 0.25rem;
  padding: 0 0.125rem;
}

/* Live sidebar filter: hide empty groups */
.public-info-help-nav__group {
  display: flex;
  flex-direction: column;
}

/* Colored icon accents per hub group */
.public-info-help-hub__group[data-group="account"] .public-info-help-card__icon {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

.public-info-help-hub__group[data-group="content"] .public-info-help-card__icon {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.public-info-help-hub__group[data-group="business"] .public-info-help-card__icon {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.public-info-help-hub__group[data-group="safety"] .public-info-help-card__icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

/* Internal links (/path) do not open a new tab, so they get no external-link icon */
.public-info-prose__go-link[href^="/"] > .fa-external-link-alt {
  display: none;
}

/* External link affordance */
.public-info-help-nav__btn[href^="http"] .public-info-help-card__excerpt::after,
.public-info-help-nav__btn[href^="http"] span::after {
  content: '\2197';
  font-size: 0.75em;
  margin-left: 0.25rem;
  color: var(--pi-text-light);
}



  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pi-blue);
}

.public-info-help-searchresults__excerpt {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--pi-text-muted);
}

/* ── Blog ── */
.public-info-blog__head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .public-info-blog__head {
    flex-direction: row;
    align-items: center;
  }
}

.public-info-blog__title {
  margin: 0 0 0.375rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pi-text);
}

.public-info-blog__subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: var(--pi-text-muted);
}

.public-info-blog__search {
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .public-info-blog__search {
    width: 16rem;
    flex-shrink: 0;
  }
}

.public-info-blog__search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: var(--pi-text-muted);
  pointer-events: none;
}

.public-info-blog__search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--pi-border);
  background: var(--pi-card);
  font-size: 0.875rem;
  color: var(--pi-text);
  outline: none;
}

.public-info-blog__search-input:focus {
  border-color: var(--pi-blue);
}

.public-info-blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.public-info-blog-cats__btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--pi-border);
  background: var(--pi-card);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--pi-text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.public-info-blog-cats__btn.is-active {
  background: var(--pi-blue);
  border-color: var(--pi-blue);
  color: #fff;
}

.public-info-blog-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.public-info-blog-main {
  flex: 1;
  min-width: 0;
}

.public-info-blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Remaining posts: 4 cards in a row, fewer as the main column narrows (container queries on the column) */
.public-info-blog-main {
  container-type: inline-size;
}

.public-info-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@container (min-width: 430px) {
  .public-info-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 640px) {
  .public-info-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container (min-width: 860px) {
  .public-info-blog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.public-info-blog-more {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--pi-border);
  background: var(--pi-card);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pi-blue);
  cursor: pointer;
}

.public-info-blog-more:hover {
  border-color: var(--pi-blue);
}

.public-info-blog-subscribe__consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--pi-text-muted);
  cursor: pointer;
}

.public-info-blog-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--pi-card);
  border: 1px solid var(--pi-border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
}

.public-info-blog-card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.public-info-blog-card__accent {
  width: 100%;
  height: 0.5rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  opacity: 0.25;
}

.public-info-blog-card__cat {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--pi-blue-light);
  color: var(--pi-blue);
  margin-bottom: 0.75rem;
}

.public-info-blog-card__title {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--pi-text);
  transition: color 0.15s ease;
}

.public-info-blog-card:hover .public-info-blog-card__title {
  color: var(--pi-blue);
}

.public-info-blog-card__excerpt {
  flex: 1;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--pi-text-muted);
}

.public-info-blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.6875rem;
  color: var(--pi-text-muted);
}

.public-info-blog-row {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--pi-card);
  border: 1px solid var(--pi-border);
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.15s ease;
}

.public-info-blog-row:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.public-info-blog-row__bar {
  width: 0.25rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.public-info-blog-row__title {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pi-text);
  transition: color 0.15s ease;
}

.public-info-blog-row:hover .public-info-blog-row__title {
  color: var(--pi-blue);
}

.public-info-blog-row__excerpt {
  display: none;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--pi-text-muted);
}

@media (min-width: 768px) {
  .public-info-blog-row__excerpt {
    display: block;
  }
}

.public-info-blog-sidebar {
  display: none;
  width: 20rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .public-info-blog-sidebar {
    display: block;
  }
}

.public-info-blog-side-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--pi-card);
  border: 1px solid var(--pi-border);
  margin-bottom: 1rem;
}

.public-info-blog-side-card--subscribe {
  background: var(--pi-blue-light);
  border-color: var(--pi-blue-mid);
}

.public-info-blog-side-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pi-text);
}

.public-info-blog-popular__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.public-info-blog-popular__num {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--pi-blue-light);
  color: var(--pi-blue);
}

.public-info-blog-popular__text {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--pi-text-muted);
  transition: color 0.15s ease;
}

.public-info-blog-popular__item:hover .public-info-blog-popular__text {
  color: var(--pi-blue);
}

.public-info-blog-subscribe__input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--pi-border);
  background: var(--pi-card);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  outline: none;
}

.public-info-blog-subscribe__btn {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--pi-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.public-info-blog-subscribe__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.public-info-blog-subscribe__input--error {
  border-color: #ef4444;
}

.public-info-blog-subscribe__error {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #ef4444;
}

.public-info-blog-subscribe__success {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #15803d;
}

.public-info-blog-subscribe__success i {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.public-info-blog-empty {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--pi-text-muted);
}

.public-info-blog-empty__icon {
  font-size: 2rem;
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

/* Full-bleed: статика/блог без левого сайдбара */
body.eidoc-public.eidoc-layout--no-sidebar #page-component:has(#public-info-page) {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.eidoc-public #public-info-page.public-info-foundation {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--pi-bg, #f1f5f9) !important;
  /* auto: контейнер является скроллером публичных страниц (sticky внутри работает на десктопе) */
  overflow-y: auto;
}

/* На мобильных контейнер не скроллит (контент помещается), но overflow:auto делает его
   ложным scroll-контейнером: ломает scrollIntoView/якоря. Отключаем. */
@media (max-width: 1023px) {
  body.eidoc-public #public-info-page.public-info-foundation {
    overflow: visible;
  }
}

