/* service detail pages (Rinkų tyrimai, Švietimas, NTC); loaded only with page-service-detail.php */

.service-detail-content {
  text-align: left;
}

.service-detail-visual {
  margin-bottom: 2rem;
}

.service-detail-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  background-color: #f1eee7;
}

@media (min-width: 992px) {
  .service-detail-content {
    padding-right: clamp(2rem, 4vw, 4.5rem);
  }

  .service-detail-visual {
    margin-bottom: 0;
  }

  .service-detail-photo {
    aspect-ratio: 4 / 5;
  }
}

.service-detail-content h2,
.service-detail-content h3 {
  margin: 3rem 0 1.25rem;
  color: #333;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  scroll-margin-top: 160px;
}

.service-detail-content h3 {
  font-size: 1.15rem;
}

.service-detail-content h2:first-child,
.service-detail-content h3:first-child {
  margin-top: 0;
}

.service-detail-content h2::after {
  content: ".";
  color: #c7a849;
}

.service-detail-content p,
.service-detail-content li {
  color: #555;
  font-size: 1rem;
  line-height: 1.75;
}

.service-detail-content p {
  margin-bottom: 1.25rem;
}

.service-detail-content ul,
.service-detail-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.service-detail-content a {
  color: #c7a849;
  text-decoration: underline;
}

.service-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

@media (max-width: 767px) {
  .service-detail-content h2 {
    margin-top: 2.25rem;
    font-size: 1.25rem;
  }
}

.ntc-brief {
  display: grid;
  gap: 2rem;
  align-items: start;
  max-width: 78rem;
  margin-inline: auto;
}

.service-detail-content .ntc-brief__copy h2 {
  margin: 1.65rem 0 .55rem;
  font-size: 1.2rem;
  text-transform: none;
}

.service-detail-content .ntc-brief__copy h2:first-child {
  margin-top: 0;
}

.service-detail-content .ntc-brief__copy h2::after {
  content: none;
}

.service-detail-content .ntc-brief__copy p,
.service-detail-content .ntc-brief__copy ol {
  margin-bottom: .8rem;
}

.service-detail-content .ntc-brief__copy .ntc-brief__risk {
  margin-bottom: 0;
  font-size: .9rem;
}

.ntc-model {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: clamp(.75rem, 2vw, 1.4rem);
  border: 1px solid #e7dfca;
  border-radius: 1rem;
  background: #fbfaf6;
}

.ntc-model__title {
  margin: 0;
  color: #333;
  font-size: 1.125rem;
  font-weight: 700;
}

.service-detail-content .ntc-model__stage {
  margin: 0 0 .4rem;
  color: #514629;
  font-size: .83rem;
  font-weight: 700;
}

.service-detail-content .ntc-model__roles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(.3rem, 1vw, .65rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail-content .ntc-model__roles li {
  display: grid;
  place-items: center;
  min-height: 3.4rem;
  padding: .4rem .3rem;
  border: 1px solid #e1ddd0;
  border-radius: .6rem;
  background: #fff;
  color: #333;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.ntc-model__roles--before li:last-child {
  grid-column: 3;
}

.service-detail-content .ntc-model__roles .ntc-model__company {
  border-color: #c7a849;
  background: #f4e9c8;
  color: #514019;
  font-weight: 700;
}

.ntc-model figcaption {
  color: #555;
  font-size: .8rem;
  line-height: 1.5;
}

@media (min-width: 992px) {
  .service-detail-content--ntc {
    padding-right: 15px;
  }

  .ntc-brief {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
}
