/* Hit-Info system layer: loaded only on audited page IDs and pro-infobiznes archive. */

body.hit-info-system-scope {
  --hi-accent: #e95a1a;
  --hi-accent-dark: #c9470d;
  --hi-ink: #414654;
  --hi-muted: #68707c;
  --hi-border: #dddcd6;
  --hi-surface: #fff;
  --hi-soft: #f5f4f0;
  background: #f4f3ef;
  color: var(--hi-ink);
}

body.hit-info-system-scope,
body.hit-info-system-scope * {
  box-sizing: border-box;
}

body.hit-info-system-scope main .port,
body.hit-info-system-scope main .main-col {
  width: 100% !important;
  max-width: none !important;
}

body.hit-info-system-scope main .main-col {
  float: none !important;
  margin-right: 0 !important;
}

body.hit-info-system-page .sidebar,
body.hit-info-system-archive .sidebar {
  display: none !important;
}

body.hit-info-system-archive.hit-info-has-social-sidebar .sidebar {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both;
  margin: 34px 0 0 !important;
}

body.hit-info-system-archive.hit-info-has-social-sidebar .sidebar > * {
  display: none !important;
}

body.hit-info-system-archive.hit-info-has-social-sidebar .sidebar > .hit-info-system-social-widget {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

body.hit-info-system-scope .ya-share-btns,
body.hit-info-system-scope .ya-share2,
body.hit-info-system-scope .post-header .tech-info,
body.hit-info-system-scope #custom_html-6,
body.hit-info-system-scope #custom_html-10,
body.hit-info-system-scope #custom_html-14,
body.hit-info-system-scope #custom_html-16,
body.hit-info-system-scope #text-2,
body.hit-info-system-scope .gp-mob-menu img.wp-image-2020,
body.hit-info-system-scope .sidebar img.wp-image-2020 {
  display: none !important;
}

body.hit-info-system-scope .gp-mob-menu .mob-menu-cent:has(#custom_html-10),
body.hit-info-system-scope .gp-mob-menu .mob-menu-right:has(#custom_html-16) {
  display: none !important;
}

body.hit-info-system-scope .gp-mob-menu .mob-menu-left {
  flex: 1 1 100%;
  width: 100%;
}

body.hit-info-system-scope .post-content,
body.hit-info-system-scope .entry-content {
  overflow: visible;
}

body.hit-info-system-scope .post-content img,
body.hit-info-system-scope .entry-content img,
body.hit-info-system-scope .post-content video,
body.hit-info-system-scope .entry-content video,
body.hit-info-system-scope .post-content iframe,
body.hit-info-system-scope .entry-content iframe {
  max-width: 100%;
}

body.hit-info-system-scope [hidden] {
  display: none !important;
}

/* Shared cards */
body.hit-info-system-scope .hit-info-card,
body.hit-info-system-scope .hit-info-catalog-card,
body.hit-info-system-scope .hit-info-review-card,
body.hit-info-system-scope .hit-info-event-card,
body.hit-info-system-scope .hit-info-recording-card,
body.hit-info-system-archive .post-wrapper > .entry {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hi-border) !important;
  border-radius: 16px;
  background: var(--hi-surface);
  box-shadow: 0 8px 24px rgba(45, 49, 57, 0.07);
}

body.hit-info-system-scope .hit-info-event-card,
body.hit-info-system-scope .hit-info-recording-card {
  margin: 24px 0;
  padding: 22px;
}

body.hit-info-system-scope .hit-info-event-cover,
body.hit-info-system-scope .hit-info-catalog-card__media,
body.hit-info-system-scope .hit-info-review-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 16px 0;
  border-radius: 12px;
  background: #e9e8e3;
}

body.hit-info-system-scope .hit-info-event-cover img,
body.hit-info-system-scope .hit-info-catalog-card__media img,
body.hit-info-system-scope .hit-info-review-card__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
}

body.hit-info-system-scope .hit-info-event-head,
body.hit-info-system-scope .hit-info-trilogy-actions,
body.hit-info-system-scope .hit-info-card__actions,
body.hit-info-system-scope .hit-info-catalog-card__actions,
body.hit-info-system-scope .hit-info-review-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.hit-info-system-scope .hit-info-event-head {
  justify-content: space-between;
}

body.hit-info-system-scope .hit-info-event-head h3 {
  margin: 0;
  color: var(--hi-ink);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

body.hit-info-system-scope .hit-info-event-format {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf3f5;
  color: #35636f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.hit-info-system-scope .hit-info-event-format--offline {
  background: #fff0e7;
  color: #b8440d;
}

body.hit-info-system-scope .hit-info-event-date {
  margin: 8px 0 0;
  color: var(--hi-muted);
  font-size: 14px;
  font-weight: 700;
}

/* Shared buttons and filters */
body.hit-info-system-scope .hit-info-button,
body.hit-info-system-scope .hit-info-load-more,
body.hit-info-system-scope .hit-info-review-card__toggle,
body.hit-info-system-scope .wp-block-button__link,
body.hit-info-system-scope .hit-info-trilogy-actions > a,
body.hit-info-system-archive .loadmore-section {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--hi-accent) !important;
  border-radius: 999px !important;
  background: var(--hi-accent) !important;
  box-shadow: none;
  color: #fff !important;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.hit-info-system-scope .hit-info-button:hover,
body.hit-info-system-scope .hit-info-button:focus-visible,
body.hit-info-system-scope .hit-info-review-card__toggle:hover,
body.hit-info-system-scope .hit-info-review-card__toggle:focus-visible,
body.hit-info-system-scope .wp-block-button__link:hover,
body.hit-info-system-scope .wp-block-button__link:focus-visible,
body.hit-info-system-scope .hit-info-trilogy-actions > a:hover,
body.hit-info-system-scope .hit-info-trilogy-actions > a:focus-visible,
body.hit-info-system-archive .loadmore-section:hover,
body.hit-info-system-archive .loadmore-section:focus-visible {
  border-color: var(--hi-accent-dark) !important;
  background: var(--hi-accent-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

body.hit-info-system-scope .hit-info-catalog-filters,
body.hit-info-system-scope .hit-info-review-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
}

body.hit-info-system-scope .hit-info-filter {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid #c9c7c0;
  border-radius: 999px;
  background: #fff;
  color: var(--hi-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

body.hit-info-system-scope .hit-info-filter:hover,
body.hit-info-system-scope .hit-info-filter:focus-visible,
body.hit-info-system-scope .hit-info-filter.is-active,
body.hit-info-system-scope .hit-info-filter[aria-pressed="true"] {
  border-color: var(--hi-accent);
  background: #fff1e9;
  color: #b8440d;
}

body.hit-info-system-scope .hit-info-load-more {
  display: flex;
  width: min(320px, 100%);
  margin: 26px auto 0;
}

body.hit-info-system-scope .hit-info-catalog-status {
  margin: 12px 0 0;
  color: var(--hi-muted);
  font-size: 12px;
  text-align: center;
}

/* Catalog/review grids activate only when the corresponding markup exists. */
body.hit-info-system-scope .hit-info-catalog-grid,
body.hit-info-system-scope [data-hit-catalog-grid],
body.page-id-2096 .hit-info-review-grid,
body.page-id-2096 [data-hit-review-grid] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.hit-info-system-scope .hit-info-catalog-card,
body.page-id-2096 .hit-info-review-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

body.page-id-2096 .hit-info-review-card__details {
  margin: 14px 0 0;
  color: var(--hi-muted);
  line-height: 1.62;
}

body.page-id-2096 .hit-info-review-card__toggle {
  align-self: flex-start;
  min-height: 40px;
  margin-top: auto;
  padding: 8px 15px;
  border-color: #c9c7c0 !important;
  background: #fff !important;
  color: var(--hi-ink) !important;
  font-size: 12px;
}

/* Reviews page: enhance only the explicit release markup and legacy block rows. */
body.page-id-2096 .hi-reviews-intro {
  margin: 0 0 28px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--hi-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #fff7f1 100%);
  box-shadow: 0 10px 30px rgba(45, 49, 57, 0.07);
}

body.page-id-2096 .hi-reviews-intro__eyebrow {
  margin: 0 0 8px;
  color: var(--hi-accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.page-id-2096 .hi-reviews-intro h2 {
  margin: 0;
  color: var(--hi-ink);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
}

body.page-id-2096 .hi-reviews-intro > p:not(.hi-reviews-intro__eyebrow) {
  margin: 12px 0 0;
  color: var(--hi-muted);
  line-height: 1.6;
}

body.page-id-2096 .hi-reviews-index {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

body.page-id-2096 .hi-reviews-index > a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid #d3d1ca;
  border-radius: 999px;
  background: #fff;
  color: var(--hi-ink) !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

body.page-id-2096 .hi-reviews-index > a:hover,
body.page-id-2096 .hi-reviews-index > a:focus-visible {
  border-color: var(--hi-accent);
  background: #fff1e9;
  color: var(--hi-accent-dark) !important;
}

body.page-id-2096 .hi-trilogy-review-grid,
body.page-id-2096 .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.page-id-2096 .wp-block-column {
  min-width: 0;
  margin: 0 !important;
}

body.page-id-2096 .hi-trilogy-review-grid > .wp-block-video {
  min-width: 0;
  margin: 0;
}

body.page-id-2096 .post-content video,
body.page-id-2096 .entry-content video,
body.page-id-2096 .post-content audio,
body.page-id-2096 .entry-content audio,
body.page-id-2096 .post-content iframe,
body.page-id-2096 .entry-content iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
}

body.page-id-2096 .post-content video,
body.page-id-2096 .entry-content video {
  height: auto;
}

body.page-id-2096 .post-content iframe,
body.page-id-2096 .entry-content iframe {
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Compact replacement for legacy landing-page channel sidebars. */
body.hit-info-system-page .hi-channel-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 44px 0 8px;
  padding: 20px;
  border: 1px solid var(--hi-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(45, 49, 57, 0.05);
}

body.hit-info-system-page .hi-channel-strip__eyebrow {
  display: block;
  margin: 0 0 5px;
  color: var(--hi-accent-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.hit-info-system-page .hi-channel-strip h2 {
  margin: 0;
  color: var(--hi-ink);
  font-size: 21px;
  line-height: 1.2;
}

body.hit-info-system-page .hi-channel-strip__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

body.hit-info-system-page .hi-channel-strip__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #d3d1ca;
  border-radius: 999px;
  background: #fff;
  color: var(--hi-ink) !important;
  font-size: 13px;
  text-decoration: none !important;
}

body.hit-info-system-page .hi-channel-strip__link > span {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #68717a;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

body.hit-info-system-page .hi-channel-strip__link > span svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

body.hit-info-system-page .hi-channel-strip__link--telegram > span {
  background: #299bd3;
}

body.hit-info-system-page .hi-channel-strip__link--dzen > span {
  background: #171717;
}

body.hit-info-system-page .hi-channel-strip__link--youtube > span {
  background: #e7473c;
}

/* Full-width pro-infobiznes archive cards. */
body.hit-info-system-archive .post-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.hit-info-system-archive .post-wrapper > .entry {
  display: flex;
  width: 100% !important;
  max-width: none !important;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
}

body.hit-info-system-archive .post-wrapper > .entry > a:first-child {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

body.hit-info-system-archive .post-wrapper > .entry > a:first-child img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
}

body.hit-info-system-archive .post-wrapper > .entry .post-info,
body.hit-info-system-archive .post-wrapper > .entry .post-title,
body.hit-info-system-archive .post-wrapper > .entry > p,
body.hit-info-system-archive .post-wrapper > .entry > .read-more {
  margin-right: 18px;
  margin-left: 18px;
}

body.hit-info-system-archive .post-wrapper > .entry .post-info {
  margin-top: 16px;
  color: #8d9098;
  font-size: 11px;
}

body.hit-info-system-archive .post-wrapper > .entry .post-title {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.25;
}

body.hit-info-system-archive .post-wrapper > .entry > .read-more {
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 18px;
  color: var(--hi-accent-dark) !important;
  font-size: 12px;
  font-weight: 800;
}

body.hit-info-system-archive .post-wrapper > .loadmore-section {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(320px, 100%) !important;
  margin: 12px auto 0 !important;
}

/* Chaty stays reachable without covering controls/content at 390px. */
body.hit-info-system-scope .chaty-widget {
  max-width: calc(100vw - 24px) !important;
}

@media (max-width: 900px) {
  body.hit-info-system-scope .hit-info-catalog-grid,
  body.hit-info-system-scope [data-hit-catalog-grid],
  body.page-id-2096 .hit-info-review-grid,
  body.page-id-2096 [data-hit-review-grid],
  body.hit-info-system-archive .post-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.hit-info-system-scope main {
    padding-bottom: 86px;
  }

  body.hit-info-system-scope .hit-info-catalog-grid,
  body.hit-info-system-scope [data-hit-catalog-grid],
  body.page-id-2096 .hit-info-review-grid,
  body.page-id-2096 [data-hit-review-grid],
  body.page-id-2096 .hi-trilogy-review-grid,
  body.page-id-2096 .wp-block-columns,
  body.hit-info-system-archive .post-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.hit-info-system-scope .hit-info-event-card,
  body.hit-info-system-scope .hit-info-recording-card,
  body.hit-info-system-scope .hit-info-catalog-card,
  body.page-id-2096 .hit-info-review-card {
    padding: 17px;
    border-radius: 14px;
  }

  body.hit-info-system-scope .hit-info-trilogy-actions,
  body.hit-info-system-scope .hit-info-card__actions,
  body.hit-info-system-scope .hit-info-catalog-card__actions,
  body.hit-info-system-scope .hit-info-review-card__actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.hit-info-system-scope .hit-info-trilogy-actions > a,
  body.hit-info-system-scope .hit-info-card__actions > a,
  body.hit-info-system-scope .hit-info-catalog-card__actions > a,
  body.hit-info-system-scope .hit-info-review-card__actions > a {
    width: 100%;
    margin-left: 0 !important;
  }

  body.hit-info-system-page .hi-channel-strip {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
    padding: 17px;
  }

  body.hit-info-system-page .hi-channel-strip__links {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.hit-info-system-page .hi-channel-strip__link {
    width: 100%;
  }

  body.page-id-2096 .hi-reviews-index {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-id-2096 .hi-reviews-index > a {
    width: 100%;
  }

  body.hit-info-system-scope .chaty-widget .on-hover-text {
    display: none !important;
  }
}

@media (max-width: 420px) {
  body.hit-info-system-scope main .port {
    max-width: 100% !important;
  }

  body.hit-info-system-scope .hit-info-catalog-filters,
  body.hit-info-system-scope .hit-info-review-filters {
    gap: 7px;
  }

  body.hit-info-system-scope .hit-info-filter {
    min-height: 42px;
    padding: 8px 13px;
  }

  body.hit-info-system-scope .hit-info-button,
  body.hit-info-system-scope .hit-info-load-more,
  body.hit-info-system-scope .wp-block-button,
  body.hit-info-system-scope .wp-block-button__link {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hit-info-system-scope .hit-info-button,
  body.hit-info-system-scope .hit-info-review-card__toggle,
  body.hit-info-system-scope .wp-block-button__link,
  body.hit-info-system-scope .hit-info-trilogy-actions > a,
  body.hit-info-system-archive .loadmore-section {
    transition: none;
  }
}
