/* C8 v1.2 (Trello #157): «Про нас», «Умови користування», «Політика
   конфіденційності» and 404. Loaded only by those pages, after styles.css.
   Every rule is scoped to a c8- class; the shared header, footer, catalog
   cards and buttons are not redefined. Colours come from the SPEC 3 tokens
   in styles.css, so the dark theme follows [data-theme="dark"]. */

/* ---------------------------------------------------------------- shared */

.c8-page {
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px);
}

/* C8 v1.5 (V3, V5, V7, V8): one section gap per page, --c8-section-gap.
   The last block also ends one section gap above the footer. The shared
   footer keeps its own margin-top (36px, 72px from 720px: styles.css
   .shell-footer); a negative bottom margin of the same size collapses with
   it, so main's bottom padding alone sets the distance. */
.c8-about,
.c8-bp {
  --c8-section-gap: 48px;
}

.c8-doc {
  --c8-section-gap: 32px;
}

.c8-about,
.c8-bp,
.c8-doc {
  --c8-footer-gap: 36px;
  padding-bottom: var(--c8-section-gap);
  margin-bottom: calc(-1 * var(--c8-footer-gap));
}

@media (min-width: 720px) {
  .c8-about,
  .c8-bp {
    --c8-section-gap: 64px;
  }

  .c8-doc {
    --c8-section-gap: 40px;
  }

  .c8-about,
  .c8-bp,
  .c8-doc {
    --c8-footer-gap: 72px;
  }
}

.c8-about .container > section,
.c8-bp .container > section {
  display: flow-root;
  margin: 0;
}

.c8-about .container > section + section,
.c8-bp .container > section + section {
  margin-top: var(--c8-section-gap);
}

/* Links inside C8 content use the theme-aware link colour (the shared
   `a` colour is a fixed blue that is too dark on the dark background). */
.c8-page a:not(.shell-btn):not(.c8-button) {
  color: var(--link);
}

/* A link inside running text is underlined, not told apart by colour only
   (WCAG 1.4.1). Navigation lists keep their own look below. */
.c8-page :is(p, li) a:not(.shell-btn):not(.c8-button) {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* One focus ring for C8 content: the redesign's 3px ring (ADDENDUM 9). */
.c8-page a:focus-visible,
.c8-page button:focus-visible,
.c8-page summary:focus-visible,
.c8-page input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: none;
}

.c8-page h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.c8-page h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.2;
}

.c8-page h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.3;
}

/* Secondary action: outline pill, 44px tall, readable in both themes. */
.c8-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.c8-button:hover {
  background: var(--card);
  color: var(--text);
}

.c8-email {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- About */

.c8-about-hero {
  margin-bottom: clamp(28px, 5vw, 48px);
}

.c8-about-hero__eyebrow,
.c8-doc-header__eyebrow,
.c8-404__eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.c8-about-hero .section-summary {
  max-width: 62ch;
  margin-top: 10px;
  font-size: 17px;
}

.c8-about-hero__count {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.c8-about-hero__count b {
  color: var(--text);
  font-size: 24px;
}

.c8-about-why__list,
.c8-about-steps__list,
.c8-about-socials,
.c8-partners__track,
.c8-doc-breadcrumbs__list,
.c8-doc-toc ol,
.c8-404__quick {
  margin: 0;
  padding: 0;
  list-style: none;
}

.c8-about-why__list {
  display: grid;
  gap: 12px;
}

.c8-about-why__item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.c8-about-why__item p,
.c8-about-steps__item p {
  margin: 0;
  color: var(--muted);
}

/* V4: the same surface and text as the other cards; only the brand accent
   (border and heading) marks it. */
.c8-about-why__item--accent {
  border: 1.5px solid var(--accent-text);
}

.c8-about-why__item--accent h3 {
  color: var(--accent-text);
}

.c8-about-steps__list {
  display: grid;
  gap: 12px;
  counter-reset: c8-step;
}

.c8-about-steps__item {
  position: relative;
  padding: 18px 20px 18px 64px;
  border: 1px solid var(--line);
  border-radius: 20px;
  counter-increment: c8-step;
}

.c8-about-steps__item::before {
  content: counter(c8-step);
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.c8-about-steps__actions,
.c8-about-contact-card__actions,
.c8-404__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
}

.c8-about-steps__actions .shell-btn,
.c8-about-contact-card__actions .shell-btn,
.c8-404__actions .shell-btn,
.c8-doc-contact .shell-btn,
.c8-doc-hint .shell-btn {
  margin-top: 0;
}

.c8-about-contact-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.c8-about-contact-card p {
  margin: 0 0 8px;
}

.c8-about-socials {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

/* V6: every tile shows the platform on the first line and the account on
   the second; tiles in one row share its height. */
.c8-about-socials__item {
  display: flex;
}

.c8-about-socials__link {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 20px minmax(0, 1fr);
  align-content: center;
  gap: 2px 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
}

.c8-page a.c8-about-socials__link {
  color: var(--text);
}

.c8-about-socials__link:hover {
  background: var(--card);
}

.c8-about-socials__link > svg {
  grid-row: 1 / span 2;
  align-self: center;
}

.c8-about-socials__name {
  grid-column: 2;
  font-weight: 700;
}

.c8-about-socials__handle {
  grid-column: 2;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.c8-about-faq__item {
  border-top: 1px solid var(--line);
}

.c8-about-faq__item:last-of-type {
  border-bottom: 1px solid var(--line);
}

.c8-about-faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.c8-about-faq__item > summary::-webkit-details-marker {
  display: none;
}

.c8-about-faq__item > summary::after {
  content: '+';
  flex: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.c8-about-faq__item[open] > summary::after {
  content: '−';
}

.c8-about-faq__answer {
  padding: 0 0 16px;
  color: var(--muted);
}

.c8-about-faq__answer p {
  margin: 0;
}

/* Partner strip (a C8 copy of the catalog block until R1.1 #305). */
.c8-partners__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 14px;
}

/* V7: without its h2 bottom margin the heading centres on the same line
   as «Стати партнером». */
.c8-page .c8-partners__title {
  margin: 0;
}

.c8-page a.c8-partners__become {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.c8-partners__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.c8-partners__viewport::-webkit-scrollbar {
  display: none;
}

.c8-partners__track {
  display: flex;
  gap: 12px;
  width: max-content;
}

.c8-partners__item {
  flex: 0 0 auto;
}

/* V11: one row and column of the card's own (aspect-ratio) size, so the
   logo's 100% resolves to it and object-fit keeps every proportion whole
   and centred inside the padding. */
.c8-partners__link {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: clamp(140px, 30vw, 220px);
  min-height: 44px;
  aspect-ratio: 16 / 9;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.c8-partners__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.c8-partners__name {
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.c8-partners__viewport--moving {
  overflow: hidden;
}

.c8-partners__viewport--moving .c8-partners__track {
  animation: c8-partners-move 40s linear infinite;
}

.c8-partners__viewport--moving:hover .c8-partners__track,
.c8-partners__viewport--moving:focus-within .c8-partners__track {
  animation-play-state: paused;
}

@keyframes c8-partners-move {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--c8-partners-distance, 50%)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .c8-partners__viewport--moving .c8-partners__track {
    animation: none;
  }

  .c8-partners__viewport--moving {
    overflow-x: auto;
  }
}

@media (min-width: 768px) {
  .c8-about-why__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c8-about-socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .c8-about-why__list,
  .c8-about-steps__list,
  .c8-about-socials {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .c8-about-steps__item {
    padding: 64px 20px 20px;
  }

  .c8-about-steps__item::before {
    top: 18px;
    left: 20px;
  }
}

/* ------------------------------------------------------------ Documents */

.c8-doc-breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.c8-doc-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.c8-page .c8-doc-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--link);
}

.c8-doc-breadcrumbs__sep {
  margin-right: 4px;
}

.c8-doc-header {
  margin-bottom: 24px;
}

.c8-doc-header__lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.c8-doc-header__meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.c8-doc-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.c8-page a.c8-doc-switch__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.c8-page a.c8-doc-switch__link[aria-current='page'] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.c8-doc-layout {
  display: grid;
  gap: 24px;
}

.c8-doc-toc {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.c8-doc-toc > summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

.c8-doc-toc nav {
  padding: 0 8px 8px;
}

.c8-page .c8-doc-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px 6px 14px;
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  color: var(--text);
  text-decoration: none;
}

.c8-page .c8-doc-toc a.c8-doc-toc__link--active {
  border-left-color: var(--accent-text);
  font-weight: 700;
}

.c8-doc-hint {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.c8-doc-hint p {
  margin: 0 0 6px;
  color: var(--muted);
}

.c8-doc-hint .c8-doc-hint__title {
  color: var(--text);
  font-weight: 700;
}

.c8-doc-summary {
  margin-bottom: 28px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--text);
  color: var(--bg);
}

.c8-doc-summary h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.c8-doc-summary ul {
  margin: 0;
  padding-left: 1.2em;
}

.c8-doc-summary li + li {
  margin-top: 6px;
}

.c8-page .c8-doc-summary a:not(.shell-btn):not(.c8-button) {
  color: inherit;
}

.c8-doc-section,
.c8-doc-section [id] {
  scroll-margin-top: 88px;
}

.c8-doc-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.c8-doc-section__num {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.c8-doc-cards {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.c8-doc-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.c8-doc-card ul {
  margin: 6px 0 0;
}

.c8-doc-card__mark {
  font-weight: 800;
}

.c8-doc-card--yes .c8-doc-card__mark {
  color: var(--link);
}

.c8-doc-card--no .c8-doc-card__mark {
  color: var(--accent-text);
}

.c8-doc-contact {
  margin-top: 32px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.c8-doc-contact p {
  margin: 0 0 10px;
}

/* C8 v1.5: one document template for Terms and Privacy (V1-V3, V9). */

/* V1: the crumbs share one baseline; the link keeps a 24px target. The
   gap above them equals the gap below them. */
.c8-doc {
  padding-top: 16px;
}

.c8-doc .c8-doc-breadcrumbs {
  margin-bottom: 16px;
}

.c8-doc .c8-doc-breadcrumbs__list {
  align-items: baseline;
}

.c8-doc .c8-doc-breadcrumbs a {
  min-width: 24px;
  min-height: 24px;
}

/* Keep Become Partner's breadcrumb baseline and spacing in step with the
   accepted legal documents, without changing the global breadcrumb style. */
.c8-bp {
  padding-top: 16px;
}

.c8-bp .c8-doc-breadcrumbs {
  margin-bottom: 16px;
}

.c8-bp .c8-doc-breadcrumbs__list {
  align-items: baseline;
}

.c8-bp .c8-doc-breadcrumbs a {
  min-width: 24px;
  min-height: 24px;
}

/* V2: one column; sections and blocks one section gap apart; a ✓/× block
   takes the whole reading column. */
.c8-doc .c8-doc-header {
  margin-bottom: var(--c8-section-gap);
}

.c8-doc .c8-doc-layout {
  row-gap: var(--c8-section-gap);
}

.c8-doc .c8-doc-body > * {
  margin: 0;
}

.c8-doc .c8-doc-body > * + * {
  margin-top: var(--c8-section-gap);
}

.c8-doc .c8-doc-section {
  display: flow-root;
}

.c8-doc .c8-doc-section .terms-content > :last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .c8-doc .container {
    width: min(100% - 48px, 1120px);
  }

  .c8-doc-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 40px;
  }

  .c8-doc-aside {
    position: sticky;
    top: 88px;
  }

  .c8-doc-body {
    max-width: 72ch;
  }
}

/* ------------------------------------------------------------------ 404 */

.c8-404__layout {
  display: grid;
  gap: 28px;
}

.c8-404__ticket {
  order: -1;
  justify-self: start;
  width: min(100%, 320px);
  padding: 20px 22px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 24px;
  background: var(--card);
  transform: rotate(-2deg);
}

.c8-404__ticket p {
  margin: 0;
}

.c8-404__ticket-brand,
.c8-404__ticket-stub {
  color: var(--muted);
  font-size: 13px;
}

.c8-404__ticket-code {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}

.c8-404__ticket-title {
  margin-bottom: 14px;
  font-weight: 700;
}

.c8-404__ticket-stub {
  padding-top: 12px;
  border-top: 1.5px dashed var(--line-strong);
}

.c8-404__ticket-stamp {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border: 2px solid var(--accent-text);
  border-radius: 8px;
  color: var(--accent-text);
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.c8-404 .not-found__search .shell-btn {
  margin-top: 0;
}

.c8-404 .not-found__search input {
  min-height: 48px;
  font-size: 16px;
}

.c8-404__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c8-page .c8-404__quick a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.c8-page .c8-404__quick a:hover {
  background: var(--card);
}

@media (min-width: 768px) {
  .c8-404__layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
  }

  .c8-404__ticket {
    order: 0;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c8-404__ticket,
  .c8-404__ticket-stamp {
    transform: none;
  }
}

/* -------------------------------------------------------------- C8-B */

/* Partner page (PAGES-SPEC 5.5): hero card, bonus or contacts beside it,
   two columns below, other partners. */
.c8-partner__hero,
.c8-partner__columns {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.c8-partner__card,
.c8-partner__bonus,
.c8-partner__contacts,
.c8-partner__about,
.c8-partner__section {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.c8-partner__card h1 {
  margin-bottom: 8px;
}

.c8-partner__logo {
  display: block;
  width: 132px;
  height: 132px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: var(--surface);
  object-fit: contain;
}

.c8-partner__eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.c8-partner__description {
  max-width: 60ch;
  margin: 0 0 14px;
  color: var(--muted);
}

.c8-partner__site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
}

.c8-partner__site .shell-btn,
.c8-partner__about .shell-btn {
  margin-top: 0;
}

.c8-partner__domain {
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* The bonus card is the dark accent of the hero, in both themes. */
.c8-partner__bonus {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.c8-partner__bonus h2 {
  font-size: 20px;
}

.c8-partner__bonus p {
  margin: 0;
}

.c8-partner__contacts h2,
.c8-partner__contacts-title {
  margin: 0 0 10px;
  font-size: 20px;
}

.c8-partner__contacts-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  margin: 0;
}

.c8-partner__contacts-list dt {
  color: var(--muted);
}

.c8-partner__contacts-list dd {
  margin: 0;
}

.c8-page .c8-partner__contacts-site {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.c8-partner__section ul {
  margin: 0;
  padding-left: 1.2em;
}

.c8-partner__section li + li {
  margin-top: 6px;
}

/* Д1 / audit N8: the FAQ reads in the dark theme too (theme tokens, not a
   fixed white). */
.c8-partner .c8-partner__faq-item {
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.c8-partner .c8-partner__faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.c8-partner .c8-partner__faq-item > summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 0;
  font-weight: 700;
  cursor: pointer;
}

.c8-partner .c8-partner__faq-item > p {
  margin: 0 0 14px;
  color: var(--muted);
}

.c8-partner__about p {
  margin: 0 0 12px;
  color: var(--muted);
}

.c8-partner__others-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.c8-partner__others-item .c8-partners__link {
  grid-template-rows: none;
  width: 100%;
  aspect-ratio: auto;
  min-height: 120px;
  gap: 8px;
  text-decoration: none;
}

.c8-partner__others-item .c8-partners__logo {
  height: 72px;
}

.c8-partner__others-name {
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.c8-page a.c8-partner__become-tile {
  display: grid;
  place-content: center;
  gap: 4px;
  min-height: 120px;
  padding: 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--text);
  text-align: center;
  text-decoration: none;
}

.c8-partner__become-tile span {
  color: var(--muted);
}

.c8-partner__missing {
  padding: 24px 0;
}

@media (min-width: 900px) {
  .c8-partner__hero {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

  .c8-partner__columns {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

  .c8-partner__main,
  .c8-partner__side {
    display: grid;
    gap: 16px;
  }
}

/* «Стати партнером» (PAGES-SPEC 5.6). */
.c8-bp__groups,
.c8-bp__formats-list,
.c8-bp__who-grid {
  display: grid;
  gap: 16px;
}

.c8-bp__formats-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.c8-bp__group h3 {
  margin-top: 18px;
}

.c8-bp__format {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

/* V10: the footer's «Просування події» (#recommended) and the hero's
   «Формати партнерства» (#formats) land below the sticky header. */
.c8-bp [id] {
  scroll-margin-top: 88px;
}

.c8-bp__format h4 {
  margin: 0 0 6px;
  font-size: 17px;
}

.c8-bp__format p {
  margin: 0;
  color: var(--muted);
}

.c8-bp__who-grid .c8-doc-card ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
}

.c8-bp__next .c8-about-steps__item p {
  color: var(--text);
}

@media (min-width: 768px) {
  .c8-bp__formats-list,
  .c8-bp__who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
