.ap-single {
  min-inline-size: 0;
  color: var(--ap-ink);
}

.ap-single .ap-single__head--breadcrumb {
  margin-block-end: 16px;
}

.ap-single .ap-single__crumbs {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 28px;
}

.ap-single .ap-single__crumbs > li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.ap-single .ap-single__crumbs > li + li::before {
  content: "/";
  color: var(--ap-muted);
}

.ap-single .ap-single__crumbs > li:last-child {
  min-inline-size: 0;
}

.ap-single .ap-single__crumbs > li > :is(a, span) {
  display: block;
  padding-block: 8px;
  color: var(--ap-muted);
}

.ap-single .ap-single__crumbs [aria-current="page"] {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ap-ink);
}

.ap-single .contacts-hero__main p.contacts-hero__title {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

@media (min-width: 1101px) {
  .ap-single--company .gx .gx-body {
    grid-template-columns: minmax(220px, 28%) minmax(0, 1fr);
  }
}

.ap-single .ap-single__tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
}

.ap-single .ap-single__tabs a {
  flex: 0 0 auto;
  padding: 8px;
  white-space: nowrap;
  border-radius: 14px;
}

.ap-single .ap-single__tabs a[aria-current="page"],
.ap-single .ap-single__tabs a.--active {
  background: var(--ap-lilac-bg);
  color: var(--ap-navy);
}

html[data-ap-v3-company-family] .ap-single .ap-single__hero-body:not(.ds-hero) {
  margin-block-end: 48px;
  padding: 48px;
  /* The legacy section layout sets inline padding with !important. */
  padding-inline: 48px !important;
  border: 1px solid var(--ap-line);
  border-radius: 20px;
  background: var(--ap-lilac-bg);
}

html[data-ap-v3-company-family] .ap-single .ap-single__hero-body--solo {
  grid-template-columns: minmax(0, 1fr);
}

html[data-ap-v3-company-family] .ap-single .ap-single__hero-body
  > :is(.ap-company-hero__main, .ap-deploy-hero__main, .ap-delivery-hero__main, .ap-news-hero__main, .ap-staff-hero__main) {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

html[data-ap-v3-company-family] .ap-single .ap-single__title-slot#h1_block {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.ap-single .ap-single__hero-body #pagetitle:not(.ds-h1) {
  margin: 0 0 16px;
  color: var(--ap-ink);
  font-family: Onest, Inter, sans-serif;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.ap-single :is(.andpro-trust-v2-row, .ap-single__facts, .ap-single__faq, .ap-single__contact) {
  min-inline-size: 0;
}

.ap-single .andpro-trust-v2-row:not(:has(> .content-block__page-side)) {
  display: block;
}

.ap-single .andpro-trust-v2-row:not(:has(> .content-block__page-side)) > .content-block__page-content {
  width: 100%;
  max-width: 100%;
  padding-inline: 0;
}

.ap-single .gx {
  margin-block: 48px;
  overflow-wrap: anywhere;
}

.ap-single .gx:is([aria-labelledby="company-family-guide-title"], [aria-labelledby="company-family-extras-title"]):not([data-gx-variant]) > .gx-body > .gx-toc > .gx-kicker {
  display: none;
}

.ap-single .gx:is([aria-labelledby="company-family-guide-title"], [aria-labelledby="company-family-extras-title"]):not([data-gx-variant]) > .gx-body > .gx-toc > ol {
  margin-block-start: 0;
  padding-inline-start: 0;
  list-style: none;
}

.ap-single .gx:is([aria-labelledby="company-family-guide-title"], [aria-labelledby="company-family-extras-title"]):not([data-gx-variant]) .gx-toc > ol > li {
  list-style: none;
  padding: 0;
}

.ap-single .gx:is([aria-labelledby="company-family-guide-title"], [aria-labelledby="company-family-extras-title"]):not([data-gx-variant]) .gx-toc > ol > li::before {
  content: none;
}

@media (max-width: 1100px) {
  .ap-single .gx:is([aria-labelledby="company-family-guide-title"], [aria-labelledby="company-family-extras-title"]):not([data-gx-variant]) > .gx-body {
    margin-block-start: 16px;
  }

  .ap-single .gx:is([aria-labelledby="company-family-guide-title"], [aria-labelledby="company-family-extras-title"]):not([data-gx-variant]) > .gx-body > .gx-toc > ol {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    overflow: visible;
  }

  .ap-single .gx:is([aria-labelledby="company-family-guide-title"], [aria-labelledby="company-family-extras-title"]):not([data-gx-variant]) .gx-toc > ol > li {
    min-inline-size: 0;
    margin: 0;
  }

  .ap-single .gx:is([aria-labelledby="company-family-guide-title"], [aria-labelledby="company-family-extras-title"]):not([data-gx-variant]) .gx-toc > ol > li > a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    box-sizing: border-box;
    inline-size: 100%;
    min-block-size: 44px;
    padding: 10px 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 700px) {
  .ap-single .gx:is([aria-labelledby="company-family-guide-title"], [aria-labelledby="company-family-extras-title"]):not([data-gx-variant]) {
    margin-block-start: 0;
    padding-block-start: 24px;
  }

  .ap-single .gx:is([aria-labelledby="company-family-guide-title"], [aria-labelledby="company-family-extras-title"]):not([data-gx-variant]) > .gx-head > .gx-title {
    margin-block-start: 0;
  }
}

.ap-single .gx .ap-single__chapter-heading {
  margin: 0;
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.ap-single :is(.ap-single__facts, .ap-single__faq, .ap-single__contact) {
  margin-block-start: 48px;
}

.ap-single .ap-single__facts {
  padding: 24px;
  border: 1px solid var(--ap-line);
  border-radius: 20px;
  background: var(--ap-lilac-bg);
  overflow-wrap: anywhere;
}

.ap-single .ap-single__facts > :last-child {
  margin-block-end: 0;
}

.ap-single :is(.ap-table-wrap, [class$="-table-wrap"]) {
  max-inline-size: 100%;
  overflow-x: auto;
}

@media (max-width: 767px) {
  .ap-single--equipment-selection .ap-itselect-table {
    min-inline-size: 544px;
    table-layout: auto;
  }

  .ap-single--equipment-selection .ap-itselect-table :is(th, td) {
    overflow-wrap: normal;
    word-break: normal;
  }
}

html[data-ap-v3-company-family] .nwheader-form .form-main:is([fid="2"], [fid="3"]:not(.andpro-invoice-form), [fid="6"]) {
  border-radius: 20px;
  color: var(--ap-ink);
}

html[data-ap-v3-company-family] .nwheader-form .form-main:is([fid="2"], [fid="3"]:not(.andpro-invoice-form), [fid="6"]) .form-dialog__container {
  box-sizing: border-box;
  min-inline-size: 0;
  padding: 24px;
}

html[data-ap-v3-company-family] .nwheader-form .form-main:is([fid="2"], [fid="3"]:not(.andpro-invoice-form), [fid="6"]) .nwheader-form__body {
  text-align: start;
  overflow-wrap: anywhere;
}

html[data-ap-v3-company-family] .nwheader-form .form-main:is([fid="2"], [fid="3"]:not(.andpro-invoice-form), [fid="6"]) .form-box .form-control {
  box-sizing: border-box;
  inline-size: 100%;
}

html[data-ap-v3-company-family] .nwheader-form .form-main:is([fid="2"], [fid="3"]:not(.andpro-invoice-form), [fid="6"]) .nwheader-form__head {
  background: var(--ap-lilac-bg);
  color: var(--ap-navy);
}

html[data-ap-v3-company-family] .nwheader-form .form-main:is([fid="2"], [fid="3"]:not(.andpro-invoice-form), [fid="6"]) .nwheader-form__title {
  color: var(--ap-navy);
}

html[data-ap-v3-company-family] .ap-single--services .andpro-deploy-service-root .news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 16px;
}

html[data-ap-v3-company-family] .ap-single--services .andpro-deploy-service-root .news-container > .blog-page__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--ap-line);
  border-radius: 20px;
  background: var(--ap-white);
  overflow-wrap: anywhere;
}

.ap-single--services .andpro-deploy-service-root .ap-service-card-picture {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 5 / 3;
}

.ap-single--services .andpro-deploy-service-root .ap-service-card-picture img {
  display: block;
  max-inline-size: 100%;
  max-block-size: 100%;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  html[data-ap-v3-company-family] .ap-single .ap-single__hero-body:not(.ds-hero) {
    padding: 16px;
    padding-inline: 16px !important;
  }

  .ap-single .ap-single__hero-body #pagetitle:not(.ds-h1) {
    font-size: 36px;
  }
}

@media (max-width: 1100px) {
  .ap-single .gx:is([aria-labelledby="company-family-guide-title"], [aria-labelledby="company-family-extras-title"]):not([data-gx-variant]) .gx-toc > ol[data-ap-toc-source-numbering] > li > a {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }
}

.ap-single .gx-toc > ol[data-ap-toc-source-numbering] > li > a > span:first-child {
  display: none;
}

@media (max-width: 599px) {
  .ap-single .ap-table-wrap:has(> .ap-requisites-table) {
    margin-inline: 16px;
    min-inline-size: 0;
  }

  .ap-single table.ap-requisites-table {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-collapse: separate;
    border-spacing: 0;
    padding: 14px;
  }

  .ap-single .ap-requisites-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }

  .ap-single .ap-requisites-table tr + tr {
    margin-block-start: 8px;
  }

  .ap-single .ap-requisites-table tr > :is(th, td) {
    width: auto;
    min-width: 0;
    max-width: none;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .ap-single .ap-requisites-table tr > th {
    padding-block-end: 0;
    border-bottom: 0;
  }
}

.ap-section-layout--services .andpro-article-modern .article-page__side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 16px;
}

.ap-section-layout--services .article-page__side > .article-side__card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-inline-size: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--ap-line, #e3e2ef);
  border-radius: 14px;
  background: var(--ap-white, #fff);
}

.ap-section-layout--services .article-side__card > :is(.article-side__link, .article-side__button) {
  display: flex;
  align-items: center;
  min-block-size: 44px;
  padding: 8px 12px;
  border-radius: 8px;
}

.ap-section-layout--services .article-side__card > .article-side__link {
  color: var(--ap-ink, #14121f);
  background: var(--ap-lilac-bg, #efeef7);
}


.ap-section-layout--services .ap-service-route__eyebrow {
  margin: 0;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ap-section-layout--services .ap-service-route__eyebrow::before {
  content: "— ";
}

.ap-section-layout--services .article-side__card > h2.ap-service-route__heading {
  margin: 0;
  color: var(--ap-ink, #14121f);
  font-size: 1.25rem;
  line-height: 1.2;
}


@media (max-width: 767px) {
  .ap-section-layout--services .andpro-deploy-service-root :is(.ap-service-table, .ap-deploy-table, .ap-itselect-table, .ap-jbod-table, .ap-pcbuild-table, .ap-minipc-table, .ap-aio-table, .ap-nas-table, .ap-services-table) {
    min-inline-size: 0;
    table-layout: fixed;
  }

  .ap-section-layout--services .andpro-deploy-service-root :is(.ap-service-table, .ap-deploy-table, .ap-itselect-table, .ap-jbod-table, .ap-pcbuild-table, .ap-minipc-table, .ap-aio-table, .ap-nas-table, .ap-services-table) :is(th, td) {
    padding-inline: 4px;
    hyphens: auto;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .ap-section-layout--services .andpro-deploy-service-root :is(.ap-service-table, .ap-deploy-table, .ap-itselect-table, .ap-jbod-table, .ap-pcbuild-table, .ap-minipc-table, .ap-aio-table, .ap-nas-table, .ap-services-table) :is(th, td):first-child {
    width: 44%;
    font-size: 14px;
    padding-inline: 4px;
    overflow-wrap: normal;
    hyphens: manual;
  }
}

@media (min-width: 768px) {
  .ap-section-layout--services .andpro-deploy-service-root :is(.ap-service-table, .ap-deploy-table, .ap-itselect-table, .ap-jbod-table, .ap-pcbuild-table, .ap-minipc-table, .ap-aio-table, .ap-nas-table, .ap-services-table) :is(th, td):first-child {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
  }
}

@media (max-width: 359px) {
  .ap-section-layout--services .andpro-deploy-service-root :is(.ap-service-table, .ap-deploy-table, .ap-itselect-table, .ap-jbod-table, .ap-pcbuild-table, .ap-minipc-table, .ap-aio-table, .ap-nas-table, .ap-services-table) :is(th, td) {
    font-size: 14px;
    padding-inline: 4px;
  }
  .ap-section-layout--services .andpro-deploy-service-root .ap-service-table :is(th, td):first-child {
    width: 47%;
  }
}

.ap-section-layout--services .andpro-deploy-service-root :is(.ap-service-actions, .ap-deploy-actions, .ap-itselect-actions, .ap-jbod-actions, .ap-pcbuild-actions, .ap-minipc-actions, .ap-aio-actions, .ap-nas-actions, .ap-services-actions) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px var(--ap-h-space-3);
}

.ap-section-layout--services .andpro-deploy-service-root :is(.ap-service-actions, .ap-deploy-actions, .ap-itselect-actions, .ap-jbod-actions, .ap-pcbuild-actions, .ap-minipc-actions, .ap-aio-actions, .ap-nas-actions, .ap-services-actions) > a {
  display: inline-flex;
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

/* Keep service headings readable on phones without internal word breaks. */
@media (max-width: 767px) {
  html[data-ap-v3-company-family] #main-content .ap-single:has(.ap-section-layout--services) h1#pagetitle {
    -webkit-hyphens: none !important;
    hyphens: none !important;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-width: 767px) {
  .ap-section-layout--services .andpro-deploy-service-root :is(.ap-service-table-wrap, .ap-services-table-wrap) > :is(.ap-service-table, .ap-services-table) {
    table-layout: auto;
  }

  .ap-section-layout--services .andpro-deploy-service-root :is(.ap-service-table-wrap, .ap-services-table-wrap) > :is(.ap-service-table, .ap-services-table) :is(th, td) {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }

  .ap-section-layout--services .andpro-deploy-service-root :is(.ap-service-table-wrap, .ap-services-table-wrap) > :is(.ap-service-table, .ap-services-table) :is(th, td):first-child {
    width: auto;
  }
}

.ap-single--requisites .gx-toc > ol > li > a > span:first-child,
.ap-single--requisites .gx-ch__n {
  flex: none;
  min-inline-size: 2ch;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 600px) {
  .ap-single--requisites .ap-requisites-table tr > th {
    padding-inline-end: 16px;
  }
}

@media (min-width: 1200px) {
  html[data-ap-v3-company-family] #main-content > .container:has(> .ap-single--requisites) {
    max-inline-size: 1200px;
  }

  .ap-single--requisites .ap-single__tabs {
    padding-inline-end: 24px;
    scroll-padding-inline-end: 24px;
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  }

  .ap-single--requisites .ap-single__tabs:has(:focus-visible) {
    mask-image: none;
  }
}

.ap-single[data-ap-v3-company-rollout].ds-container {
  padding-inline: 0;
}

.ap-single[data-ap-v3-company-rollout] .ds-hero {
  margin-block-end: var(--ds-s-24);
}

.ap-single [data-ap-v3-company-navigation] {
  min-inline-size: 0;
  margin-block-end: var(--ds-s-24);
}

.ap-single [data-ap-v3-company-navigation] .ds-snav > a {
  min-inline-size: 0;
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ap-single .ap-single__adjacent {
  flex-wrap: wrap;
  margin-block-start: var(--ds-s-24);
}

.ap-single .ap-single__copy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--ds-s-8);
  margin-block-end: var(--ds-s-8);
}

.ap-single[data-ap-v3-company-rollout]:has(.ap-section-layout--services) .mainpage-blog__slider-container {
  overflow: clip;
}
.ap-single[data-ap-v3-company-rollout]:has(.ap-section-layout--services) .mainpage-blog__slider-container > .slider_next {
  right: 0;
}
.ap-single[data-ap-v3-company-rollout]:has(.ap-section-layout--services) .mainpage-blog__slider-container > .slider_prev {
  left: 0;
}
.ap-single[data-ap-v3-company-rollout]:has(.ap-section-layout--services) .mainpage-blog__slider-container > button:is(.slider_next,.slider_prev) {
  border: 0;
  padding: 0;
}
.ap-single[data-ap-v3-company-rollout]:has(.ap-section-layout--services) .mainpage-blog__slider-container > button:is(.slider_next,.slider_prev):focus-visible {
  outline: 3px solid var(--ds-violet);
  outline-offset: -3px;
}

/* Contact links with explanatory text can be wider than a facts or guide card. */
.ap-single[data-ap-v3-company-rollout] :is(.gx,.ap-public-facts) a:is([href^="mailto:"], [href^="tel:"]) {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Keep primary-button text legible where legacy link styles are more specific. */
.ap-single[data-ap-v3-company-rollout] .ap-company-hero__main > .ap-company-actions > a.ds-btn--primary[href^="mailto:"] {
  color: var(--ds-white);
}
