/* Desktop accreditation page. The shared shell remains in style.css. */
@media screen and (min-width: 768px) {
  body #page-accreditation {
    padding-bottom: 24px;
    background: #fff;
  }

  body #page-accreditation .accreditation-page {
    box-sizing: border-box;
    width: 845px !important;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 16px 0 0;
    color: #11183f;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
  }

  body #page-accreditation .accreditation-page__image {
    display: block;
    width: 530px;
    max-width: 100%;
    height: auto;
    margin: -5px 0 31px;
    object-fit: cover;
  }

  body #page-accreditation .accreditation-section {
    position: relative;
    margin: 0;
    padding: 0 0 36px;
  }

  body #page-accreditation .accreditation-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 500px;
    max-width: 100%;
    height: 2px;
    background: #babdca;
  }

  body #page-accreditation .accreditation-section--primary {
    padding: 27px 0 25px;
  }

  body #page-accreditation .accreditation-section__heading-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
  }

  body #page-accreditation .accreditation-section__heading-row > span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ff0d6f;
    -webkit-transform-origin: left center;
    transform-origin: left center;
    -webkit-animation: homeLineExtendFromLeft 1.2s ease-out .45s both;
    animation: homeLineExtendFromLeft 1.2s ease-out .45s both;
  }

  body #page-accreditation h1,
  body #page-accreditation h2 {
    margin: 0 0 20px;
    color: #5705fb;
    font-family: Calibri, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
  }

  body #page-accreditation .accreditation-section__heading-row h1 {
    margin: 0;
  }

  body #page-accreditation p {
    max-width: 100%;
    margin: 0 0 16px;
  }

  body #page-accreditation ol {
    margin: -9px 0 18px 38px;
    padding-left: 18px;
  }

  body #page-accreditation li {
    margin: 0 0 3px;
    padding-left: 3px;
  }

  body #page-accreditation .accreditation-page__closing {
    width: 500px;
    max-width: 100%;
    padding-top: 10px;
    text-align: center;
  }

  body #page-accreditation .accreditation-page__closing p {
    margin: 0 0 20px;
    color: #ff0d6f;
    font-size: 15px;
    line-height: 1.25;
  }

  body #page-accreditation .accreditation-page__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    color: #fff;
    background: #6f6a91;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
  }

  body #page-accreditation .accreditation-page__button:hover,
  body #page-accreditation .accreditation-page__button:focus {
    color: #fff;
    background: #5705fb;
    transform: translateY(-1px);
  }
}

@media screen and (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body .accreditation-detail-page .accreditation-section__heading-row h1::after,
  body .accreditation-detail-page .accreditation-section__heading-row h2::after {
    animation: none !important;
    transform: none !important;
  }
}

/* A direct mobile visit remains readable, but mobile service clicks stay on the current flow. */
@media screen and (max-width: 767px) {
  body #page-accreditation .accreditation-page {
    box-sizing: border-box;
    width: 100%;
    padding: 90px 14px 36px;
    color: #11183f;
    font: 16px/1.5 Arial, sans-serif;
  }

  body #page-accreditation .accreditation-page__image {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 28px;
  }

  body #page-accreditation h1,
  body #page-accreditation h2 {
    margin: 0 0 18px;
    color: #5705fb;
    font: 400 22px/1.2 Calibri, Arial, sans-serif;
  }

  body #page-accreditation .accreditation-section {
    margin-bottom: 34px;
  }

  body #page-accreditation p {
    margin: 0 0 16px;
  }

  body #page-accreditation ol {
    margin: 0 0 20px;
    padding-left: 24px;
  }

  body #page-accreditation .accreditation-page__closing {
    text-align: center;
  }

  body #page-accreditation .accreditation-page__closing p {
    color: #ff0d6f;
  }

  body #page-accreditation .accreditation-page__button {
    display: inline-flex;
    padding: 12px 20px;
    color: #fff;
    background: #6f6a91;
    text-decoration: none;
  }
}

/* Shared content patterns for licensing sections and subsections. */
body .accreditation-detail-page .service-meta {
  margin: 0 0 18px;
}

body .accreditation-detail-page .service-meta p {
  margin-bottom: 5px;
}

body .accreditation-detail-page .service-note {
  color: #5b6289;
}

body .accreditation-detail-page .medical-regulation-note {
  margin-top: 1.55em !important;
}

body .accreditation-detail-page .service-bullet-list,
body .accreditation-detail-page .service-related-list {
  margin: 0 0 18px 38px;
  padding-left: 18px;
}

body .accreditation-detail-page .service-bullet-list li {
  position: relative;
  margin-bottom: 4px;
  list-style: none;
}

body .accreditation-detail-page .service-bullet-list li::before {
  content: '-';
  position: absolute;
  left: -14px;
}

body .accreditation-detail-page .service-related-list li {
  position: relative;
  margin-bottom: 4px;
  list-style: none;
}

body .accreditation-detail-page .service-related-list li::before {
  content: '-';
  position: absolute;
  left: -14px;
}

body .accreditation-detail-page .service-related-list a,
body .accreditation-detail-page .service-doc-link {
  color: #5705fb;
  text-decoration: none;
}

body .accreditation-detail-page .service-term {
  position: relative;
  color: #5705fb;
  cursor: help;
  outline: none;
}

body .accreditation-detail-page .service-term::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 8px);
  left: 50%;
  box-sizing: border-box;
  width: 205px;
  max-width: calc(100vw - 32px);
  padding: 9px 12px;
  color: #5b6289;
  background: #f7f7f7;
  box-shadow: 2px 3px 5px rgba(0, 0, 0, .28);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
}

body .accreditation-detail-page .service-term:hover::after,
body .accreditation-detail-page .service-term:focus::after,
body .accreditation-detail-page .service-term:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

body .accreditation-detail-page .service-related-list a:hover,
body .accreditation-detail-page .service-related-list a:focus,
body .accreditation-detail-page .service-doc-link:hover,
body .accreditation-detail-page .service-doc-link:focus {
  text-decoration: underline;
}

body .accreditation-detail-page .service-subheading {
  margin: 22px 0 10px;
  color: #11183f;
  font-family: Calibri, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

body .accreditation-detail-page .service-documents-link {
  margin-top: 22px;
}

body .accreditation-detail-page .service-documents-link a {
  display: inline-block;
  color: #5705fb;
  font-size: 18px;
  text-decoration: none;
}

body .accreditation-detail-page .service-documents-link a:hover,
body .accreditation-detail-page .service-documents-link a:focus {
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  body .accreditation-detail-page .service-bullet-list,
  body .accreditation-detail-page .service-related-list {
    margin-left: 0;
    padding-left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body #page-accreditation .accreditation-section__heading-row > span,
  body .accreditation-detail-page .accreditation-section__heading-row > span,
  body .accreditation-detail-page .generated-service-page
    .pharmaceutical-warehouse-section .accreditation-section__heading-row h1::after {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transform: none !important;
    transform: none !important;
  }
}

/* The current page intentionally reuses index.html unchanged as its shell. */
.accreditation-detail-page .accreditation-page__source {
  display: none !important;
}

@media screen and (min-width: 768px) {
  body .accreditation-detail-page .accreditation-page {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 845px !important;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 16px 0 0;
    color: #11183f;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
  }

  body .accreditation-detail-page .generated-service-page--no-hero {
    padding-top: 68px;
  }

  body .accreditation-detail-page .accreditation-page__image {
    display: block;
    width: 100%;
    height: auto;
    margin: 44px 0 31px;
  }

  body .accreditation-detail-page .accreditation-section {
    position: relative;
    margin: 0;
    padding: 0;
  }

  body .accreditation-detail-page .accreditation-section + .accreditation-section {
    padding-top: 28px;
  }

  body .accreditation-detail-page .accreditation-section::after {
    content: none;
  }

  body .accreditation-detail-page .accreditation-section--primary {
    margin-top: 28px;
    padding: 28px 0 0;
  }

  body .accreditation-detail-page .accreditation-section--primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: #babdca;
    transform: scaleY(.5);
    transform-origin: left top;
  }

  body .accreditation-detail-page .accreditation-section__heading-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
  }

  body .accreditation-detail-page .accreditation-section__heading-row > span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ff0d6f;
    -webkit-transform-origin: left center;
    transform-origin: left center;
    -webkit-animation: homeLineExtendFromLeft 1.2s ease-out .45s both;
    animation: homeLineExtendFromLeft 1.2s ease-out .45s both;
  }

  body .accreditation-detail-page h1,
  body .accreditation-detail-page h2 {
    margin: 0 0 20px;
    color: #5705fb;
    font-family: Calibri, Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
  }

  body .accreditation-detail-page .accreditation-section__heading-row h1,
  body .accreditation-detail-page .accreditation-section__heading-row h2 {
    margin: 0;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section--step .accreditation-section__heading-row {
    margin-bottom: 10px;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section--step .accreditation-section__heading-row h2 {
    color: #11183f;
    font-size: 18px;
    font-weight: 700;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section--step .accreditation-section__heading-row > span {
    display: none;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section--plain-heading .accreditation-section__heading-row {
    margin-bottom: 10px;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section--plain-heading .accreditation-section__heading-row h2 {
    color: #11183f;
    font-size: 18px;
    font-weight: 700;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section--plain-heading .accreditation-section__heading-row > span {
    display: none;
  }

  body .accreditation-detail-page .generated-service-page
    .pharmaceutical-warehouse-section .accreditation-section__heading-row h1 {
    min-width: 0;
  }

  body .accreditation-detail-page .generated-service-page
    .pharmaceutical-warehouse-section .accreditation-section__heading-row > span {
    display: none;
  }

  body .accreditation-detail-page .generated-service-page
    .pharmaceutical-warehouse-section .accreditation-section__heading-row h1::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 3px;
    margin-left: 14px;
    background: #ff0d6f;
    -webkit-transform-origin: left center;
    transform-origin: left center;
    -webkit-animation: homeLineExtendFromLeft 1.2s ease-out .45s both;
    animation: homeLineExtendFromLeft 1.2s ease-out .45s both;
    vertical-align: middle;
  }

  body .accreditation-detail-page .generated-service-page .service-included::before {
    content: '100%';
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    color: rgba(255, 13, 111, .09);
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -7px;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  body .accreditation-detail-page .generated-service-page .service-included > * {
    position: relative;
    z-index: 1;
  }

  body .accreditation-detail-page p {
    margin: 0 0 16px;
  }

  body .accreditation-detail-page .accreditation-section > :last-child {
    margin-bottom: 0;
  }

  body .accreditation-detail-page ol {
    margin: -9px 0 18px 38px;
    padding-left: 18px;
  }

  body .accreditation-detail-page .generated-service-page .accreditation-section > .service-meta,
  body .accreditation-detail-page .generated-service-page .accreditation-section > ol,
  body .accreditation-detail-page .generated-service-page .accreditation-section > .service-bullet-list,
  body .accreditation-detail-page .generated-service-page .accreditation-section > .service-related-list {
    margin-left: 60px;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section > ol {
    margin-top: 0;
  }

  body .accreditation-detail-page .generated-service-page .service-meta p {
    margin-bottom: 10px;
  }

  body .accreditation-detail-page .generated-service-page .service-meta p:last-child {
    margin-bottom: 0;
  }

  body .accreditation-detail-page .generated-service-page .service-documents-group {
    position: relative;
    margin: 18px 0 0 60px;
    padding: 0 0 24px;
  }

  body .accreditation-detail-page .generated-service-page .service-documents-group::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: -60px;
    height: 2px;
    background: #babdca;
    transform: scaleY(.5);
    transform-origin: left bottom;
  }

  body .accreditation-detail-page .generated-service-page
    .service-documents-group__title {
    margin: 0 0 10px;
  }

  body .accreditation-detail-page .generated-service-page
    .service-documents-group ol {
    margin: 0;
    padding-left: 22px;
  }

  body .accreditation-detail-page .generated-service-page
    .service-documents-group li {
    margin-bottom: 6px;
    line-height: 1.55;
  }

  body .accreditation-detail-page .generated-service-page
    .service-documents-group .service-note {
    margin: 14px 0 0;
  }

  body .accreditation-detail-page .generated-service-page .service-note {
    font-size: 13px;
    line-height: 1.5;
  }

  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-section > p {
    margin-left: 0;
  }

  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-section > .service-bullet-list li {
    position: relative;
    list-style: none;
  }

  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-section > .service-bullet-list li::before {
    content: '-';
    position: absolute;
    left: -12px;
  }

  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-reference .accreditation-section__heading-row {
    margin-bottom: 6px;
  }

  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-reference .accreditation-section__heading-row h2 {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
  }

  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-reference > p {
    margin-bottom: 16px;
  }

  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-reference > .internet-pharmacy-minister {
    margin-top: 12px;
  }

  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-types {
    margin: 0 0 26px 60px;
    padding-left: 0;
  }

  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-types li {
    margin: 0 0 4px;
    padding-left: 0;
    list-style: none;
  }

  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-types ul {
    margin: 4px 0 4px;
    padding-left: 0;
  }

  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-types ul li {
    position: relative;
    padding-left: 14px;
  }

  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-types ul li::before {
    content: '-';
    position: absolute;
    left: 0;
  }

  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-reference > .internet-pharmacy-note {
    margin-top: 30px;
    color: #11183f;
    font-size: inherit;
    line-height: inherit;
  }

  body .accreditation-detail-page .generated-service-page
    .pharmacy-retail-section > p {
    margin-left: 0;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section > .service-attention {
    margin-top: 28px;
    color: #11183f;
    font-size: inherit;
    line-height: inherit;
  }

  body .accreditation-detail-page .generated-service-page .service-included {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 772px;
    max-width: 100%;
    margin: 18px 0 0;
    padding: 10px 10px 14px;
    overflow: hidden;
    background: #e4fbfb;
  }

  body .accreditation-detail-page .generated-service-page .service-included p {
    margin: 0;
  }

  body .accreditation-detail-page .generated-service-page .service-included ul {
    margin: 8px 0 0 65px;
    padding: 0;
  }

  body .accreditation-detail-page .generated-service-page .service-included li {
    display: grid;
    grid-template-columns: 22px 1fr;
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
  }

  body .accreditation-detail-page .generated-service-page
    .medical-massage-area .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .medical-massage-additional .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .permanent-makeup-area .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .permanent-makeup-additional .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .dental-laboratory-area .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .dental-laboratory-additional .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .cosmetology-area .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .cosmetology-additional .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .dentistry-area .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .dentistry-additional .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .pretrip-posttrip-area .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .pretrip-posttrip-additional .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .ophthalmology-optometry-area .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .ophthalmology-optometry-additional .accreditation-section__heading-row h2 {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
  }

  body .accreditation-detail-page .generated-service-page
    .cosmetology-intro .cosmetology-topic,
  body .accreditation-detail-page .generated-service-page
    .cosmetology-intro .cosmetology-services,
  body .accreditation-detail-page .generated-service-page
    .cosmetology-intro .cosmetology-note {
    margin-top: 28px;
  }

  body .accreditation-detail-page .generated-service-page
    .cosmetology-note {
    color: #11183f;
    font-size: inherit;
    line-height: inherit;
  }

  body .accreditation-detail-page .generated-service-page
    .medical-massage-area > .service-bullet-list {
    margin-bottom: 0;
  }

  body .accreditation-detail-page .generated-service-page
    .medical-massage-area > .service-attention {
    margin-top: 0;
  }

  body .accreditation-detail-page .generated-service-page
    .medical-massage-included {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center;
    min-height: 270px;
    padding: 24px 10px 18px;
  }

  body .accreditation-detail-page .generated-service-page
    .medical-massage-included__benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
  }

  body .accreditation-detail-page .generated-service-page
    .medical-massage-included__benefit img {
    width: 78px;
    height: 78px;
    image-rendering: auto;
  }

  body .accreditation-detail-page .generated-service-page
    .medical-massage-included__benefit p {
    margin-top: 10px;
    color: #11183f;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
  }

  body .accreditation-detail-page .generated-service-page
    .medical-massage-additional-list > li {
    margin-bottom: 4px;
  }

  body .accreditation-detail-page .generated-service-page
    .medical-massage-additional-list .service-bullet-list {
    margin: 4px 0 4px 12px;
    padding-left: 18px;
  }

  body .accreditation-detail-page .generated-service-page .service-documents-link {
    position: relative;
    margin: 28px 0 0;
    padding-bottom: 0;
    text-align: center;
  }

  body .accreditation-detail-page .generated-service-page
    .service-documents-link a {
    font-size: 14px;
  }

  body .accreditation-detail-page .generated-service-page .service-related-heading {
    margin: 24px 0 10px 60px;
    color: #11183f;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section--step > .service-related-list {
    margin: 0 0 0 60px;
    padding-left: 0;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section--step > .service-related-list li {
    position: relative;
    margin-bottom: 4px;
    padding-left: 10px;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section--step > .service-related-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #5705fb;
  }

  body .accreditation-detail-page li {
    margin: 0 0 6px;
    padding-left: 3px;
    list-style: decimal;
  }

  body .accreditation-detail-page .accreditation-page__closing {
    margin-top: 28px;
    padding-top: 28px;
    text-align: center;
  }

  body .accreditation-detail-page .accreditation-page__closing p {
    margin: 0 0 20px;
    color: #ff0d6f;
    font-size: 15px;
    line-height: 1.25;
  }

  body .accreditation-detail-page .accreditation-page__button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    height: 42px;
    min-height: 0;
    margin: 0 auto;
    padding: 0 22px;
    color: #fff;
    background: #6f6a91;
    font-size: 14px;
    line-height: normal;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
  }

  body .accreditation-detail-page .accreditation-page__button:hover,
  body .accreditation-detail-page .accreditation-page__button:focus {
    color: #fff;
    background: #5705fb;
    transform: translateY(-1px);
  }

  body #page-index.accreditation-detail-page > .footer-text {
    display: block !important;
    width: 845px;
    max-width: calc(100% - 40px);
    margin: 32px auto 0;
    padding: 0 14px 24px;
  }
}

@media screen and (max-width: 767px) {
  html,
  body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100%;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  body #page-index.mobile-service-detail header .logo-main {
    display: none !important;
  }

  body #page-index.mobile-service-detail header .page-mobile-header {
    display: flex !important;
    position: relative;
  }

  body #page-index.mobile-service-detail header .page-mobile-header > div {
    display: none !important;
  }

  body #page-index.mobile-service-detail header .page-mobile-header > .i-serv {
    display: block !important;
  }

  body #page-index.mobile-service-detail header .page-mobile-header > div.i-price,
  body #page-index.mobile-service-detail header .page-mobile-header > div.i-order,
  body #page-index.mobile-service-detail header .page-mobile-header > div.i-garant,
  body #page-index.mobile-service-detail header .page-mobile-header > div.i-office {
    display: none !important;
  }

  body #page-index.mobile-service-detail header .page-mobile-header > div.i-serv {
    display: block !important;
  }

  body .accreditation-detail-page .accreditation-page {
    box-sizing: border-box;
    width: 100%;
    padding: 20px 14px 36px;
    color: #11183f;
    font: 16px/1.6 Arial, sans-serif;
  }

  body .accreditation-detail-page .accreditation-page__image {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 28px;
  }

  body .accreditation-detail-page .accreditation-section__heading-row {
    display: block;
    margin-bottom: 18px;
  }

  body .accreditation-detail-page .accreditation-section__heading-row > span {
    display: none;
  }

  body .accreditation-detail-page .accreditation-section__heading-row h1::after,
  body .accreditation-detail-page .accreditation-section__heading-row h2::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 3px;
    margin-left: 12px;
    background: #ff0d6f;
    vertical-align: middle;
    transform-origin: left center;
    animation: homeLineExtendFromLeft 1.2s ease-out .35s both;
  }

  body .accreditation-detail-page .accreditation-section__heading-row h1,
  body .accreditation-detail-page .accreditation-section__heading-row h2 {
    min-width: 0;
    margin-bottom: 0;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section--step .accreditation-section__heading-row h2::after,
  body .accreditation-detail-page .generated-service-page
    .accreditation-section--plain-heading .accreditation-section__heading-row h2::after,
  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-reference .accreditation-section__heading-row h2::after {
    display: none;
    content: none;
  }

  body .accreditation-detail-page h1,
  body .accreditation-detail-page h2 {
    margin: 0 0 18px;
    color: #5705fb;
    font: 400 22px/1.2 Calibri, Arial, sans-serif;
  }

  body .accreditation-detail-page .accreditation-section {
    margin-bottom: 28px;
  }

  body .accreditation-detail-page p {
    margin: 0 0 16px;
  }

  body .accreditation-detail-page ol {
    margin: 0 0 20px;
    padding-left: 24px;
  }

  body .accreditation-detail-page .generated-service-page ol > li {
    display: list-item;
    margin-bottom: 8px;
    padding-left: 3px;
    list-style: decimal outside;
  }

  body .accreditation-detail-page .generated-service-page ul > li {
    position: relative;
    display: list-item;
    margin-bottom: 8px;
    list-style: none;
  }

  body .accreditation-detail-page .generated-service-page ul > li::before {
    content: '-';
    position: absolute;
    left: -16px;
  }

  body .accreditation-detail-page .generated-service-page .service-included ul > li::before {
    content: none;
  }

  body .accreditation-detail-page #accreditation-content ol {
    padding-left: 30px;
    list-style: decimal outside;
  }

  body .accreditation-detail-page #accreditation-content ol > li {
    display: list-item;
    margin: 0 0 8px;
    padding-left: 3px;
    list-style: decimal outside;
  }

  body .accreditation-detail-page .service-documents-group {
    position: relative;
    margin: 18px 0 0;
    padding: 0 0 24px;
  }

  body .accreditation-detail-page .service-documents-group::after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 2px;
    background: #babdca;
    transform: scaleY(.5);
    transform-origin: left bottom;
  }

  body .accreditation-detail-page .accreditation-page:not(.generated-service-page)
    .accreditation-section + .accreditation-section {
    position: relative;
    padding-top: 29px;
  }

  body .accreditation-detail-page .accreditation-page:not(.generated-service-page)
    .accreditation-section + .accreditation-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 12px;
    left: 12px;
    height: 1px;
    background: #babdca;
  }

  body .accreditation-detail-page .service-documents-group__title {
    margin-bottom: 10px;
  }

  body .accreditation-detail-page .service-documents-group ol {
    margin: 0;
  }

  body .accreditation-detail-page .service-documents-group li {
    margin-bottom: 8px;
  }

  body .accreditation-detail-page .service-documents-link {
    position: relative;
    margin: 28px 0 0;
    padding-bottom: 0;
  }

  body .accreditation-detail-page .accreditation-page__closing {
    text-align: center;
  }

  body .accreditation-detail-page .accreditation-page__closing p {
    color: #ff0d6f;
  }

  body .accreditation-detail-page .accreditation-page__button {
    display: inline-flex;
    padding: 12px 20px;
    color: #fff;
    background: #6f6a91;
    text-decoration: none;
  }

  body .accreditation-detail-page .medical-massage-included {
    display: grid;
    gap: 22px;
    padding: 18px 14px;
    background: #e4fbfb;
  }

  body .accreditation-detail-page .medical-massage-included ul {
    margin: 10px 0 0;
    padding: 0;
  }

  body .accreditation-detail-page .medical-massage-included li {
    display: grid;
    grid-template-columns: 26px 1fr;
    margin-bottom: 8px;
    list-style: none;
  }

  body .accreditation-detail-page .medical-massage-included__benefit {
    display: none;
  }

  body .accreditation-detail-page .medical-massage-included__benefit img {
    width: 78px;
    height: 78px;
    image-rendering: auto;
  }

  body .accreditation-detail-page .medical-massage-included__benefit p {
    color: #11183f;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.3;
  }

  body #page-index.accreditation-detail-page > .footer-text {
    display: block !important;
    margin: 34px auto 0;
    padding: 0 14px 24px;
  }
}

body #page-accreditation .accreditation-page__closing,
body .accreditation-detail-page .accreditation-page__closing {
  position: relative;
  padding-top: 28px;
}

body #page-accreditation .accreditation-page__closing::before,
body .accreditation-detail-page .accreditation-page__closing::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: #babdca;
  transform: scaleY(.5);
  transform-origin: left top;
}

body #page-accreditation .accreditation-page__closing p,
body .accreditation-detail-page .accreditation-page__closing p {
  text-transform: uppercase;
}

@media screen and (min-width: 768px) {
  body #page-accreditation .accreditation-page__closing p,
  body .accreditation-detail-page .accreditation-page__closing p {
    font-size: 16px;
  }
}

@media screen and (max-width: 767px) {
  body #page-accreditation .accreditation-page__closing p,
  body .accreditation-detail-page .accreditation-page__closing p {
    font-size: 17px;
  }
}

/* Mobile service pages: left-aligned content, vertical pink bar, unified text colour. */
@keyframes serviceHeadingBarGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media screen and (max-width: 767px) {
  body .accreditation-detail-page .accreditation-page,
  body .accreditation-detail-page .accreditation-page p,
  body .accreditation-detail-page .accreditation-page li,
  body .accreditation-detail-page .accreditation-page strong,
  body .accreditation-detail-page .accreditation-page .service-subheading,
  body .accreditation-detail-page .accreditation-page .service-documents-group__title {
    color: #323040;
  }

  body .accreditation-detail-page .accreditation-page__closing p {
    color: #ff0d6f;
  }

  body .accreditation-detail-page .accreditation-page p.service-note {
    color: #5b6289;
  }

  body .accreditation-detail-page .accreditation-page .accreditation-section,
  body .accreditation-detail-page .accreditation-page .accreditation-section p,
  body .accreditation-detail-page .accreditation-page .accreditation-section li {
    text-align: left;
  }

  body .accreditation-detail-page .accreditation-section__heading-row h1,
  body .accreditation-detail-page .accreditation-section__heading-row h2 {
    position: relative;
    padding-left: 16px;
    text-align: left;
  }

  body .accreditation-detail-page .accreditation-section__heading-row h1::after,
  body .accreditation-detail-page .accreditation-section__heading-row h2::after {
    content: '';
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    display: block;
    width: 4px;
    height: auto;
    margin: 0;
    background: #ff0d6f;
    transform-origin: center top;
    animation: serviceHeadingBarGrow 1.2s ease-out .35s both;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section--step .accreditation-section__heading-row h2::after,
  body .accreditation-detail-page .generated-service-page
    .accreditation-section--plain-heading .accreditation-section__heading-row h2::after,
  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-reference .accreditation-section__heading-row h2::after {
    display: none;
    content: none;
  }

  body .accreditation-detail-page .generated-service-page
    .accreditation-section--step .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .accreditation-section--plain-heading .accreditation-section__heading-row h2,
  body .accreditation-detail-page .generated-service-page
    .internet-pharmacy-reference .accreditation-section__heading-row h2 {
    padding-left: 0;
  }

  body .accreditation-detail-page .accreditation-page__closing {
    text-align: center;
  }

  body .accreditation-detail-page .accreditation-page__closing p {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
  }

  body .accreditation-detail-page .accreditation-page .accreditation-page__button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: max-content !important;
    min-width: 200px !important;
    max-width: calc(100% - 32px) !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 32px auto 0 !important;
    padding: 0 32px !important;
    text-align: center !important;
    border-radius: 999px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: .2px !important;
    line-height: 1 !important;
  }
}

@media screen and (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body .accreditation-detail-page .accreditation-section__heading-row h1::after,
  body .accreditation-detail-page .accreditation-section__heading-row h2::after {
    animation: none !important;
    transform: none !important;
  }
}

/* Mobile: only the top h1 keeps the purple style; every other heading follows the "Шаг 1." look. */
@media screen and (max-width: 767px) {
  body .accreditation-detail-page .accreditation-page .accreditation-section__heading-row h2,
  body .accreditation-detail-page .accreditation-page h2.service-subheading,
  body .accreditation-detail-page .accreditation-page h3.service-related-heading {
    margin: 22px 0 10px;
    padding-left: 0;
    color: #323040;
    font: 400 18px/1.6 Arial, sans-serif;
    text-align: left;
  }

  body .accreditation-detail-page .accreditation-page .accreditation-section__heading-row h2 {
    margin: 0;
  }

  body .accreditation-detail-page .accreditation-page .accreditation-section__heading-row h2::after {
    display: none;
    content: none;
  }

  body .accreditation-detail-page .accreditation-page .service-step-label {
    color: #323040;
    font-weight: 700;
  }
}

/* Mobile: the second heading on accreditation.html matches the top purple heading with the pink bar. */
@media screen and (max-width: 767px) {
  body .accreditation-detail-page .accreditation-page #primary-accreditation-title {
    position: relative;
    margin: 0;
    padding-left: 16px;
    color: #5705fb;
    font: 400 22px/1.2 Calibri, Arial, sans-serif;
    text-align: left;
  }

  body .accreditation-detail-page .accreditation-page #primary-accreditation-title::after {
    content: '';
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    display: block;
    width: 4px;
    height: auto;
    margin: 0;
    background: #ff0d6f;
    transform-origin: center top;
    animation: serviceHeadingBarGrow 1.2s ease-out .35s both;
  }
}

@media screen and (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body .accreditation-detail-page .accreditation-page #primary-accreditation-title::after {
    animation: none !important;
    transform: none !important;
  }
}

/* Mobile: the "Перечень документов и этапов" link is centred. */
@media screen and (max-width: 767px) {
  body .accreditation-detail-page .accreditation-page .accreditation-section p.service-documents-link {
    text-align: center;
  }
}

/* Mobile service pages: main text is 18px; footnotes and notes stay 16px. */
@media screen and (max-width: 767px) {
  body .accreditation-detail-page .accreditation-page {
    font-size: 18px;
  }

  body .accreditation-detail-page .accreditation-page .service-note,
  body .accreditation-detail-page .accreditation-page .cosmetology-note {
    font-size: 16px;
  }
}

/* The overview image is wrapped in <picture> so that mobile can use its own file. */
.accreditation-page > picture {
  display: block;
}

/* Mobile overview image: taller frame, the whole height of the photo is shown and the sides are cropped. */
@media screen and (max-width: 767px) {
  body .accreditation-detail-page .accreditation-page > picture > .accreditation-page__image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: 50% 50%;
  }
}

/* Mobile: the list of pharmacy types is indented like the other bullet lists, the dashes no longer sit on the screen edge. */
@media screen and (max-width: 767px) {
  body .accreditation-detail-page .generated-service-page .internet-pharmacy-types {
    margin: 0 0 26px;
    padding-left: 24px;
  }

  body .accreditation-detail-page .generated-service-page .internet-pharmacy-types ul {
    margin: 4px 0;
    padding-left: 24px;
  }
}

/* Mobile closing block: balanced vertical spacing around the button (above ~32px, below ~40px to the footer). */
@media screen and (max-width: 767px) {
  body .accreditation-detail-page .accreditation-page {
    padding-bottom: 6px;
  }
}

/* Mobile: the lead-in word of a note ("Внимание!", "Примечание.") has the same colour as the note text. */
@media screen and (max-width: 767px) {
  body .accreditation-detail-page .accreditation-page .service-note strong,
  body .accreditation-detail-page .accreditation-page .cosmetology-note strong {
    color: inherit;
  }
}

/* Mobile: a small softly pulsing purple arrow points at the "Перечень документов и этапов" link. */
@keyframes serviceLinkArrowPulse {
  0%, 100% { opacity: .45; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(5px); }
}

@media screen and (max-width: 767px) {
  body .accreditation-detail-page .accreditation-page .service-documents-link a::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 12px;
    margin-right: 10px;
    vertical-align: -1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12' fill='none' stroke='%235705fb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h15M11 1l5 5-5 5'/%3E%3C/svg%3E") no-repeat center / contain;
    animation: serviceLinkArrowPulse 1.8s ease-in-out infinite;
  }
}

@media screen and (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body .accreditation-detail-page .accreditation-page .service-documents-link a::before {
    animation: none;
    opacity: 1;
  }
}
