/**
 * Powtarzalny profil lekarza.
 *
 * Wszystkie reguły są aktywowane markerem `rpc-doctor-template-v1` i klasą
 * body `rpc-doctor-template`. Arkusz nie korzysta z ID strony ani ID bloków.
 */

.rpc-doctor-profile,
.editor-styles-wrapper .rpc-doctor-template-v1 {
  --rpc-doctor-gold: #caa660;
  --rpc-doctor-gold-dark: #b59556;
  --rpc-doctor-ink: #0a0a0a;
  --rpc-doctor-text: #353535;
  --rpc-doctor-muted: #696969;
  --rpc-doctor-line: rgba(202, 166, 96, 0.34);
  --rpc-doctor-cream: #fcf9f2;
  --rpc-doctor-gray: #f6f6f6;
  --rpc-doctor-width: 1232px;
  --rpc-doctor-section-space: 80px;
  --rpc-doctor-section-space-compact: 64px;
  --rpc-doctor-video-space: 96px;
}

body.rpc-doctor-template {
  overflow-x: hidden;
  background: #fff;
}

body.rpc-doctor-template header#masthead {
  margin-bottom: 0 !important;
}

body.rpc-doctor-template .rpc-newsletter {
  display: none;
}

body.rpc-doctor-template .rpc-breadcrumbs {
  display: block !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: #0a0a0a;
  color: #fff;
}

body.rpc-doctor-template .rpc-breadcrumbs__inner {
  width: min(calc(100% - 48px), 1232px);
  margin: 0 auto;
  padding: 18px 0;
}

body.rpc-doctor-template .rpc-breadcrumbs p {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  margin: 0;
  color: #fff;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
}

body.rpc-doctor-template .rpc-breadcrumbs a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.rpc-doctor-template .rpc-breadcrumbs a:hover,
body.rpc-doctor-template .rpc-breadcrumbs a:focus-visible {
  color: #caa660;
}

body.rpc-doctor-template .rpc-breadcrumbs .separator {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.55);
}

body.rpc-doctor-template .rpc-breadcrumbs .last {
  color: #fff;
}

body.rpc-doctor-template .rpc-breadcrumbs .breadcrumb-home-icon {
  display: inline-flex;
  align-items: center;
}

.rpc-doctor-profile,
.editor-styles-wrapper .rpc-doctor-template-v1 {
  margin: 0 !important;
  color: var(--rpc-doctor-text);
  background: #fff;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rpc-doctor-profile *,
.editor-styles-wrapper .rpc-doctor-template-v1 * {
  box-sizing: border-box;
}

.rpc-doctor-profile h1,
.rpc-doctor-profile h2,
.rpc-doctor-profile h3,
.rpc-doctor-profile h4,
.rpc-doctor-profile p,
.rpc-doctor-profile a,
.rpc-doctor-profile li,
.rpc-doctor-profile summary,
.rpc-doctor-profile input,
.rpc-doctor-profile textarea,
.rpc-doctor-profile select,
.rpc-doctor-profile button {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rpc-doctor-profile a {
  color: inherit;
}

.rpc-doctor-profile > .wp-block-group,
.rpc-doctor-profile .wp-block-columns,
.rpc-doctor-profile .wp-block-image,
.rpc-doctor-profile .wp-block-embed,
.rpc-doctor-profile .wp-block-details {
  margin-top: 0;
  margin-bottom: 0;
}

.rpc-doctor-container {
  width: min(calc(100% - 48px), var(--rpc-doctor-width));
  margin-right: auto !important;
  margin-left: auto !important;
}

.rpc-doctor-section-title {
  margin: 0;
  color: var(--rpc-doctor-ink);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 300;
  line-height: 1.2;
}

.rpc-doctor-section-title::after {
  display: block;
  width: 64px;
  height: 0;
  min-height: 0;
  margin-top: 20px;
  border-top: 2px solid var(--rpc-doctor-gold);
  content: "";
  background: transparent;
}

.rpc-doctor-eyebrow {
  margin: 0 0 14px;
  color: var(--rpc-doctor-gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Hero */
.rpc-doctor-hero {
  padding: 40px 0 80px;
  background: #fff;
}

.rpc-doctor-hero__columns {
  display: grid !important;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start !important;
}

.rpc-doctor-hero__media {
  position: sticky;
  top: 118px;
}

.rpc-doctor-hero__image {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #eee;
}

.rpc-doctor-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rpc-doctor-specialty {
  display: inline-block;
  width: auto;
  margin: 0 0 28px;
  padding: 8px 19px;
  border: 1px solid var(--rpc-doctor-gold);
  border-radius: 999px;
  color: var(--rpc-doctor-gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.rpc-doctor-title {
  margin: 0 0 27px;
  color: var(--rpc-doctor-ink);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.rpc-doctor-intro {
  margin: 0 0 22px;
  color: var(--rpc-doctor-ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
}

.rpc-doctor-bio {
  color: var(--rpc-doctor-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.rpc-doctor-bio p {
  margin: 0 0 18px;
}

.rpc-doctor-bio strong {
  color: var(--rpc-doctor-text);
  font-weight: 700;
}

.rpc-doctor-more {
  border: 0;
}

.rpc-doctor-more summary {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin: 3px 0 20px;
  color: var(--rpc-doctor-gold);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  list-style: none;
  text-transform: uppercase;
}

.rpc-doctor-more summary::-webkit-details-marker {
  display: none;
}

.rpc-doctor-more summary::after {
  width: 0;
  height: 0;
  border-top: 8px solid currentColor;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  content: "";
  transition: transform 0.2s ease;
}

.rpc-doctor-more[open] summary::after {
  transform: rotate(180deg);
}

.rpc-doctor-more summary:hover,
.rpc-doctor-more summary:focus-visible {
  color: var(--rpc-doctor-gold-dark);
}

.rpc-doctor-more[open] {
  display: flex;
  flex-direction: column;
}

.rpc-doctor-more[open] summary {
  order: 2;
  margin-top: 16px;
}

.rpc-doctor-jump {
  margin-top: 34px;
  padding-top: 21px;
  border-top: 1px solid #ececec;
}

.rpc-doctor-jump__label {
  margin: 0 0 11px;
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 300;
}

.rpc-doctor-jump__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
}

.rpc-doctor-jump__links .wp-block-button {
  margin: 0;
}

.rpc-doctor-jump__links a,
.rpc-doctor-jump__links .wp-block-button__link {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #555;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: inherit;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.rpc-doctor-jump__links a:hover,
.rpc-doctor-jump__links a:focus-visible,
.rpc-doctor-jump__links .wp-block-button__link:hover,
.rpc-doctor-jump__links .wp-block-button__link:focus-visible {
  color: var(--rpc-doctor-gold);
  background: transparent;
}

.rpc-doctor-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.rpc-doctor-stats > .wp-block-group__inner-container,
.rpc-doctor-specializations__grid > .wp-block-group__inner-container,
.rpc-doctor-transformations__grid > .wp-block-group__inner-container,
.rpc-doctor-reviews__grid > .wp-block-group__inner-container {
  display: contents;
}

.rpc-doctor-stat {
  min-height: 126px;
  padding: 27px 12px 21px;
  border: 1px solid var(--rpc-doctor-line);
  background: var(--rpc-doctor-cream);
  text-align: center;
}

.rpc-doctor-stat__value {
  margin: 0 0 10px;
  color: rgba(202, 166, 96, 0.84);
  font-size: 30px;
  font-weight: 300;
  line-height: 1.1;
}

.rpc-doctor-stat__label {
  margin: 0;
  color: rgba(26, 26, 26, 0.8);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Experience */
.rpc-doctor-experience {
  padding: 92px 0 96px;
  scroll-margin-top: 110px;
  background: var(--rpc-doctor-gray);
}

.rpc-doctor-experience__columns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 92px;
  margin-top: 54px;
}

.rpc-doctor-subtitle {
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dfdfdf;
  color: var(--rpc-doctor-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rpc-doctor-timeline {
  display: grid;
  gap: 25px;
}

.rpc-doctor-timeline > .wp-block-group__inner-container {
  display: grid;
  gap: 25px;
}

.rpc-doctor-timeline__item {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 19px;
  margin: 0;
  padding: 2px 0 2px 17px;
  border-left: 2px solid var(--rpc-doctor-line);
}

.rpc-doctor-timeline__year {
  margin: 0;
  color: var(--rpc-doctor-gold-dark);
  font-size: 15px;
  font-weight: 500;
}

.rpc-doctor-timeline__role {
  margin: 0 0 3px;
  color: var(--rpc-doctor-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.rpc-doctor-timeline__place {
  margin: 0;
  color: #777;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
}

.rpc-doctor-experience__copy {
  color: #666;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

.rpc-doctor-experience__copy p {
  margin: 0 0 18px;
}

.rpc-doctor-experience__copy ul {
  margin: 0 0 28px;
  padding-left: 21px;
}

.rpc-doctor-experience__copy li {
  margin-bottom: 8px;
}

.rpc-doctor-memberships {
  padding-left: 0 !important;
  list-style: none;
}

.rpc-doctor-memberships li {
  position: relative;
  padding-left: 18px;
}

.rpc-doctor-memberships li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--rpc-doctor-gold);
}

/* Video */
.rpc-doctor-video {
  position: relative;
  padding: 74px 0;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    var(--rpc-doctor-gray) 0,
    var(--rpc-doctor-gray) 15%,
    var(--rpc-doctor-ink) 15%,
    var(--rpc-doctor-ink) 85%,
    #fff 85%,
    #fff 100%
  );
}

.rpc-doctor-video__columns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 82px;
  align-items: center !important;
}

.rpc-doctor-video__media {
  display: flex;
  justify-content: center;
}

.rpc-doctor-video__embed {
  position: relative;
  width: min(100%, 315px);
  max-height: 560px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 0 !important;
  background: #111;
  line-height: 0;
}

.rpc-doctor-video__embed .wp-block-embed__wrapper,
.rpc-doctor-video__embed iframe {
  width: 100% !important;
  height: 100% !important;
}

.rpc-doctor-video__embed .wp-block-embed__wrapper {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

body.rpc-doctor-template .rpc-doctor-video__embed.wp-block-embed-youtube iframe {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  object-fit: cover;
  vertical-align: top;
}

.rpc-doctor-video__poster {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background-color: #111;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("../img/doctor-profile/video-thumbnail.jpg");
  background-position: center;
  background-size: cover;
}

.rpc-doctor-video__poster-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rpc-doctor-video__poster::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.3);
}

.rpc-doctor-video__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 80px;
  height: 80px;
  border: 1px solid var(--rpc-doctor-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  place-items: center;
  background: rgba(10, 10, 10, 0.42);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rpc-doctor-video__play::before {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid var(--rpc-doctor-gold);
  content: "";
}

.rpc-doctor-video__poster:hover .rpc-doctor-video__play,
.rpc-doctor-video__poster:focus-visible .rpc-doctor-video__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(10, 10, 10, 0.58);
}

.rpc-doctor-video__embed.is-rpc-video-ready:not(.is-playing) iframe {
  visibility: hidden;
}

body.rpc-doctor-template .rpc-doctor-video__embed.is-playing .wp-block-embed__wrapper {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.rpc-doctor-template .rpc-doctor-video__embed.is-playing .wp-block-embed__wrapper::before {
  display: none !important;
  content: none !important;
  padding-top: 0 !important;
}

body.rpc-doctor-template .rpc-doctor-video__embed.is-playing iframe {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  object-fit: cover;
}

.rpc-doctor-video__copy {
  color: #fff;
}

.rpc-doctor-video__copy .rpc-doctor-section-title {
  margin-bottom: 22px;
  color: #fff;
}

.rpc-doctor-video__copy .rpc-doctor-section-title::after {
  display: none;
}

.rpc-doctor-video__copy p:not(.rpc-doctor-eyebrow) {
  max-width: 520px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
}

.rpc-doctor-outline-button .wp-block-button__link {
  padding: 13px 24px;
  border: 1px solid var(--rpc-doctor-gold);
  border-radius: 0;
  color: var(--rpc-doctor-gold);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rpc-doctor-outline-button .wp-block-button__link:hover,
.rpc-doctor-outline-button .wp-block-button__link:focus-visible {
  color: var(--rpc-doctor-ink);
  background: var(--rpc-doctor-gold);
}

/* Specializations */
.rpc-doctor-specializations {
  padding: 83px 0 91px;
  scroll-margin-top: 110px;
  background: #fff;
}

.rpc-doctor-specializations__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 50px;
}

.rpc-doctor-specialization-card {
  min-height: 170px;
  padding: 30px;
  border: 1px solid var(--rpc-doctor-line);
  background: #fafafa;
}

.rpc-doctor-specialization-card h3 {
  margin: 0 0 11px;
  color: var(--rpc-doctor-gold-dark);
  font-size: 19px;
  font-weight: 500;
}

.rpc-doctor-specialization-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
}

.rpc-doctor-treatments {
  padding-top: 34px;
  scroll-margin-top: 110px;
}

.rpc-doctor-treatments h3 {
  margin: 0 0 18px;
  color: var(--rpc-doctor-ink);
  font-size: 20px;
  font-weight: 500;
}

.rpc-doctor-treatment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.rpc-doctor-treatment-links a {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--rpc-doctor-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.rpc-doctor-treatment-links .wp-block-button {
  margin: 0;
}

.rpc-doctor-treatment-links a:hover,
.rpc-doctor-treatment-links a:focus-visible {
  color: #fff;
  background: var(--rpc-doctor-gold-dark);
}

/* Before/after */
.rpc-doctor-transformations {
  padding: 82px 0 92px;
  scroll-margin-top: 110px;
  background: var(--rpc-doctor-cream);
}

.rpc-doctor-transformations__heading {
  max-width: 690px;
  margin: 0 auto 47px !important;
  text-align: center;
}

.rpc-doctor-transformations__heading .rpc-doctor-section-title::after {
  margin-right: auto;
  margin-left: auto;
}

.rpc-doctor-transformations__heading p {
  margin: 23px 0 0;
  color: #666;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

.rpc-doctor-transformations__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.rpc-doctor-comparison__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  cursor: ew-resize;
  touch-action: pan-y;
  background: #e9e9e9;
  --rpc-doctor-comparison-position: 50%;
}

.rpc-doctor-comparison__media > .wp-block-image,
.rpc-doctor-comparison__media > .wp-block-group__inner-container > .wp-block-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rpc-doctor-comparison__media img {
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: cover;
  user-select: none;
}

.rpc-doctor-comparison__before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--rpc-doctor-comparison-position)) 0 0);
}

.rpc-doctor-comparison__after {
  z-index: 1;
}

.rpc-doctor-comparison__control {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
}

.rpc-doctor-comparison__line {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--rpc-doctor-comparison-position);
  width: 2px;
  pointer-events: none;
  transform: translateX(-1px);
  background: var(--rpc-doctor-gold);
}

.rpc-doctor-comparison__line::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  place-items: center;
  background-color: #fff;
  background-image: none;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  -webkit-mask: none;
}

.rpc-doctor-comparison__line::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  content: "";
  transform: translate(-50%, -50%);
  background: var(--rpc-doctor-gold-dark);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 3 4 4-4 4'/%3E%3Cpath d='M20 7H4'/%3E%3Cpath d='m8 21-4-4 4-4'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 3 4 4-4 4'/%3E%3Cpath d='M20 7H4'/%3E%3Cpath d='m8 21-4-4 4-4'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rpc-doctor-comparison__tag {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  padding: 5px 9px;
  color: var(--rpc-doctor-gold-dark);
  background: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rpc-doctor-comparison__tag--before {
  left: 14px;
}

.rpc-doctor-comparison__tag--after {
  right: 14px;
}

.rpc-doctor-comparison__title {
  margin: 19px 0 0;
  color: #666;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

/* Patient story */
.rpc-doctor-story {
  padding: 95px 0;
  background: #fff;
}

.rpc-doctor-story__columns {
  display: grid !important;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 76px;
  align-items: center !important;
}

.rpc-doctor-story__title {
  margin: 0 0 23px;
  color: var(--rpc-doctor-ink);
  font-size: clamp(31px, 3.2vw, 43px);
  font-weight: 300;
  line-height: 1.25;
}

.rpc-doctor-story__copy > p:not(.rpc-doctor-eyebrow) {
  margin: 0 0 31px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.rpc-doctor-story__link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--rpc-doctor-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.rpc-doctor-story__link::after {
  display: block;
  width: 16px;
  height: 16px;
  content: "";
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rpc-doctor-story__link:hover::after,
.rpc-doctor-story__link:focus-visible::after {
  transform: translateX(8px);
}

.rpc-doctor-story__link:hover,
.rpc-doctor-story__link:focus-visible {
  color: var(--rpc-doctor-gold);
}

.rpc-doctor-story__image {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.rpc-doctor-story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reviews */
.rpc-doctor-reviews {
  padding: 88px 0 96px;
  scroll-margin-top: 110px;
  background: #f8f8f8;
}

.rpc-doctor-reviews__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin-top: 47px;
}

.rpc-doctor-review {
  min-height: 238px;
  padding: 30px;
  border: 1px solid var(--rpc-doctor-line);
  background: #fafafa;
}

.rpc-doctor-review__stars {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 0 0 17px;
  color: var(--rpc-doctor-gold);
  font-size: 14px;
  letter-spacing: 0;
}

.rpc-doctor-review__stars svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
}

.rpc-doctor-review__quote {
  min-height: 105px;
  margin: 0 0 21px;
  color: #666;
  font-size: 14px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
}

.rpc-doctor-review__author {
  margin: 0;
  color: var(--rpc-doctor-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Booking / Contact Form 7 */
.rpc-doctor-booking {
  position: relative;
  padding: 90px 0;
  background-color: #4f4f4f;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.68), rgba(10, 10, 10, 0.68)),
    url("../img/doctor-profile/booking-operating-room.webp");
  background-position: center;
  background-size: cover;
}

.rpc-doctor-booking__card {
  width: min(calc(100% - 48px), 760px);
  margin: 0 auto !important;
  padding: 52px 62px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(246, 246, 246, 0.97);
}

.rpc-doctor-booking__card .rpc-doctor-section-title {
  text-align: center;
}

.rpc-doctor-booking__card .rpc-doctor-section-title::after {
  margin-right: auto;
  margin-left: auto;
}

.rpc-doctor-booking__lead {
  max-width: 520px;
  margin: 21px auto 32px;
  color: #777;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  text-align: center;
}

.rpc-doctor-booking .wpcf7 form {
  margin: 0;
}

.rpc-doctor-booking .wpcf7 .row {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 16px;
}

.rpc-doctor-booking .wpcf7 input:not([type="checkbox"]):not([type="submit"]),
.rpc-doctor-booking .wpcf7 textarea,
.rpc-doctor-booking .wpcf7 select {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid #dedede;
  border-radius: 0;
  outline: 0;
  color: var(--rpc-doctor-text);
  background: #fff;
  font-size: 14px;
  font-weight: 300;
  transition: border-color 0.2s ease;
}

.rpc-doctor-booking .wpcf7 textarea {
  min-height: 112px;
  resize: vertical;
}

.rpc-doctor-booking .wpcf7 input:focus,
.rpc-doctor-booking .wpcf7 textarea:focus,
.rpc-doctor-booking .wpcf7 select:focus {
  border-color: var(--rpc-doctor-gold);
}

.rpc-doctor-booking .wpcf7 .wpcf7-acceptance {
  display: block;
  color: #777;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.55;
}

.rpc-doctor-booking .wpcf7 input[type="checkbox"] {
  margin-right: 7px;
  accent-color: var(--rpc-doctor-gold);
}

.rpc-doctor-booking .wpcf7 input[type="submit"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--rpc-doctor-gold);
  border-radius: 0;
  color: #fff;
  background: var(--rpc-doctor-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.rpc-doctor-booking .wpcf7 input[type="submit"]:hover,
.rpc-doctor-booking .wpcf7 input[type="submit"]:focus-visible {
  background: var(--rpc-doctor-gold-dark);
}

.rpc-doctor-booking .wpcf7-spinner {
  display: none;
}

/* Editor: obrazy porównawcze muszą pozostać łatwe do zaznaczenia. */
.editor-styles-wrapper .rpc-doctor-comparison__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  cursor: default;
}

.editor-styles-wrapper .rpc-doctor-comparison__media > .wp-block-image,
.editor-styles-wrapper .rpc-doctor-comparison__media > .wp-block-group__inner-container > .wp-block-image {
  position: relative;
  inset: auto;
  height: auto;
  clip-path: none;
}

@media (max-width: 991px) {
  .rpc-doctor-hero__columns,
  .rpc-doctor-experience__columns,
  .rpc-doctor-video__columns,
  .rpc-doctor-story__columns {
    gap: 44px;
  }

  .rpc-doctor-hero__media {
    position: static;
  }

  .rpc-doctor-transformations__grid,
  .rpc-doctor-reviews__grid {
    gap: 17px;
  }

  .rpc-doctor-booking__card {
    padding: 46px;
  }
}

@media (max-width: 767px) {
  body.rpc-doctor-template .rpc-breadcrumbs__inner,
  .rpc-doctor-container {
    width: min(calc(100% - 36px), var(--rpc-doctor-width));
  }

  body.rpc-doctor-template .rpc-breadcrumbs__inner {
    padding: 14px 0;
  }

  body.rpc-doctor-template .rpc-breadcrumbs p {
    font-size: 12px;
    line-height: 18px;
  }

  .rpc-doctor-hero {
    padding: 30px 0 62px;
  }

  .rpc-doctor-hero__columns,
  .rpc-doctor-experience__columns,
  .rpc-doctor-video__columns,
  .rpc-doctor-specializations__grid,
  .rpc-doctor-transformations__grid,
  .rpc-doctor-story__columns,
  .rpc-doctor-reviews__grid {
    grid-template-columns: 1fr;
  }

  .rpc-doctor-hero__columns {
    gap: 34px;
  }

  .rpc-doctor-specialty {
    margin-bottom: 21px;
    padding: 7px 15px;
    font-size: 9px;
  }

  .rpc-doctor-title {
    margin-bottom: 23px;
    font-size: 35px;
  }

  .rpc-doctor-intro {
    font-size: 17px;
  }

  .rpc-doctor-bio {
    font-size: 15px;
  }

  .rpc-doctor-jump__links {
    gap: 10px 14px;
  }

  .rpc-doctor-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rpc-doctor-stat {
    min-height: 105px;
    padding: 23px 12px 17px;
  }

  .rpc-doctor-experience,
  .rpc-doctor-specializations,
  .rpc-doctor-transformations,
  .rpc-doctor-story,
  .rpc-doctor-reviews {
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .rpc-doctor-experience__columns {
    gap: 52px;
    margin-top: 43px;
  }

  .rpc-doctor-timeline__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .rpc-doctor-video {
    padding: 62px 0;
    background: var(--rpc-doctor-ink);
  }

  .rpc-doctor-video__columns {
    gap: 44px;
  }

  .rpc-doctor-video__copy {
    padding-bottom: 10px;
  }

  .rpc-doctor-specializations__grid {
    gap: 12px;
    margin-top: 41px;
  }

  .rpc-doctor-specialization-card {
    min-height: 0;
    padding: 26px;
  }

  .rpc-doctor-treatment-links {
    gap: 6px;
  }

  .rpc-doctor-transformations__grid,
  .rpc-doctor-reviews__grid {
    gap: 31px;
  }

  .rpc-doctor-story__columns {
    gap: 34px;
  }

  .rpc-doctor-story__copy {
    order: 2;
  }

  .rpc-doctor-story__media {
    order: 1;
  }

  .rpc-doctor-review {
    min-height: 0;
  }

  .rpc-doctor-review__quote {
    min-height: 0;
  }

  .rpc-doctor-booking {
    padding: 54px 0;
  }

  .rpc-doctor-booking__card {
    width: calc(100% - 36px);
    padding: 36px 22px;
  }
}

@media (max-width: 359px) {
  .rpc-doctor-title {
    font-size: 31px;
  }

  .rpc-doctor-booking__card {
    width: calc(100% - 24px);
    padding-right: 16px;
    padding-left: 16px;
  }
}

/*
 * Zgodność z makietą Vercel.
 *
 * Motyw bazowy ustawia m.in. własny rozmiar tekstu, interlinię i odstępy
 * nagłówków. Poniższe selektory celowo mają wyższą specyficzność, aby na
 * oznaczonym profilu zachować dokładne wartości projektu.
 */
body.rpc-doctor-template {
  font-family: "Lato", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

body.rpc-doctor-template .rpc-doctor-profile {
  font-family: "Lato", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

body.rpc-doctor-template .rpc-doctor-profile h1,
body.rpc-doctor-template .rpc-doctor-profile h2,
body.rpc-doctor-template .rpc-doctor-profile h3,
body.rpc-doctor-template .rpc-doctor-profile h4,
body.rpc-doctor-template .rpc-doctor-profile p,
body.rpc-doctor-template .rpc-doctor-profile li,
body.rpc-doctor-template .rpc-doctor-profile summary,
body.rpc-doctor-template .rpc-doctor-profile a,
body.rpc-doctor-template .rpc-doctor-profile input,
body.rpc-doctor-template .rpc-doctor-profile textarea,
body.rpc-doctor-template .rpc-doctor-profile select,
body.rpc-doctor-template .rpc-doctor-profile button {
  font-family: "Lato", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: normal;
}

body.rpc-doctor-template .rpc-doctor-stat > .wp-block-group__inner-container,
body.rpc-doctor-template .rpc-doctor-timeline__item > .wp-block-group__inner-container,
body.rpc-doctor-template .rpc-doctor-timeline__item > .wp-block-group__inner-container > .wp-block-group > .wp-block-group__inner-container,
body.rpc-doctor-template .rpc-doctor-experience__copy > .wp-block-group__inner-container,
body.rpc-doctor-template .rpc-doctor-specialization-card > .wp-block-group__inner-container,
body.rpc-doctor-template .rpc-doctor-treatments > .wp-block-group__inner-container,
body.rpc-doctor-template .rpc-doctor-transformations__heading > .wp-block-group__inner-container,
body.rpc-doctor-template .rpc-doctor-comparison > .wp-block-group__inner-container,
body.rpc-doctor-template .rpc-doctor-comparison__media > .wp-block-group__inner-container,
body.rpc-doctor-template .rpc-doctor-review > .wp-block-group__inner-container,
body.rpc-doctor-template .rpc-doctor-booking__card > .wp-block-group__inner-container {
  display: contents;
}

body.rpc-doctor-template .rpc-doctor-hero {
  padding-top: 32px;
  padding-bottom: 80px;
}

body.rpc-doctor-template .rpc-doctor-hero__columns {
  grid-template-columns:
    minmax(0, calc(41.666667% - 46.666667px))
    minmax(0, calc(58.333333% - 33.333333px));
  gap: 80px;
}

body.rpc-doctor-template .rpc-doctor-specialty {
  margin-bottom: 32px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px !important;
  line-height: 16px !important;
}

body.rpc-doctor-template .rpc-doctor-title {
  margin-bottom: 32px;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: normal;
  line-height: 48px;
}

body.rpc-doctor-template .rpc-doctor-intro {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px !important;
}

body.rpc-doctor-template .rpc-doctor-bio,
body.rpc-doctor-template .rpc-doctor-bio p {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px !important;
}

body.rpc-doctor-template .rpc-doctor-bio p {
  margin-bottom: 20px;
}

body.rpc-doctor-template .rpc-doctor-bio strong {
  font-weight: 700;
}

body.rpc-doctor-template .rpc-doctor-more summary {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--rpc-doctor-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px !important;
  line-height: 20px !important;
}

body.rpc-doctor-template .rpc-doctor-more summary:hover,
body.rpc-doctor-template .rpc-doctor-more summary:focus-visible {
  color: var(--rpc-doctor-gold-dark);
}

body.rpc-doctor-template .rpc-doctor-jump {
  margin-top: 39px;
  padding-top: 24px;
}

body.rpc-doctor-template .rpc-doctor-jump__label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 300;
  line-height: 16px !important;
}

body.rpc-doctor-template .rpc-doctor-jump__links {
  gap: 16px;
}

body.rpc-doctor-template .rpc-doctor-jump__links a {
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px !important;
  line-height: 16px !important;
}

body.rpc-doctor-template .rpc-doctor-jump__links a:hover,
body.rpc-doctor-template .rpc-doctor-jump__links a:focus-visible {
  color: var(--rpc-doctor-gold);
  background: transparent;
}

body.rpc-doctor-template .rpc-doctor-stats {
  gap: 16px;
  margin-top: 32px;
}

body.rpc-doctor-template .rpc-doctor-stat {
  min-height: 127px;
  padding: 32px 16px;
}

body.rpc-doctor-template .rpc-doctor-stat__value {
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: 300;
  line-height: 36px !important;
}

body.rpc-doctor-template .rpc-doctor-stat__label {
  color: rgba(26, 26, 26, 0.8);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px !important;
  line-height: 15px !important;
}

body.rpc-doctor-template .rpc-doctor-experience {
  padding-top: var(--rpc-doctor-section-space);
  padding-bottom: var(--rpc-doctor-section-space);
}

body.rpc-doctor-template .rpc-doctor-section-title {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: normal;
  line-height: 40px;
}

body.rpc-doctor-template .rpc-doctor-experience .rpc-doctor-section-title::after {
  width: 96px;
  height: 0 !important;
  min-height: 0 !important;
  margin-top: 24px;
  border-top: 2px solid #caa660;
  transform: none;
}

body.rpc-doctor-template .rpc-doctor-experience__columns {
  gap: 96px;
  margin-top: 64px !important;
}

body.rpc-doctor-template .rpc-doctor-subtitle {
  margin-bottom: 32px;
  padding-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px !important;
  line-height: 20px;
}

body.rpc-doctor-template .rpc-doctor-timeline {
  gap: 32px;
}

body.rpc-doctor-template .rpc-doctor-timeline > .wp-block-group__inner-container {
  display: grid;
  gap: 32px;
}

body.rpc-doctor-template .rpc-doctor-timeline__item {
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  padding: 4px 0 4px 16px;
}

body.rpc-doctor-template .rpc-doctor-timeline__year {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px !important;
}

body.rpc-doctor-template .rpc-doctor-timeline__role {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px !important;
}

body.rpc-doctor-template .rpc-doctor-timeline__place {
  font-size: 14px;
  font-weight: 300;
  line-height: 20px !important;
}

body.rpc-doctor-template .rpc-doctor-experience__copy,
body.rpc-doctor-template .rpc-doctor-experience__copy p,
body.rpc-doctor-template .rpc-doctor-experience__copy li {
  font-size: 16px !important;
  font-weight: 300;
  line-height: 26px !important;
}

body.rpc-doctor-template .rpc-doctor-experience__copy p {
  margin-bottom: 24px;
}

body.rpc-doctor-template .rpc-doctor-experience__copy p:nth-of-type(2) {
  margin-bottom: 16px;
}

body.rpc-doctor-template .rpc-doctor-experience__copy ul {
  margin-bottom: 32px;
}

body.rpc-doctor-template .rpc-doctor-memberships li {
  margin-bottom: 12px;
}

body.rpc-doctor-template .rpc-doctor-memberships li:last-child {
  margin-bottom: 0;
}

body.rpc-doctor-template .rpc-doctor-experience__copy .rpc-doctor-memberships {
  margin-bottom: 0;
}

body.rpc-doctor-template .rpc-doctor-video {
  padding-top: var(--rpc-doctor-video-space);
  padding-bottom: var(--rpc-doctor-video-space);
  background: linear-gradient(
    to bottom,
    var(--rpc-doctor-gray) 0,
    var(--rpc-doctor-gray) 20%,
    var(--rpc-doctor-ink) 20%,
    var(--rpc-doctor-ink) 80%,
    #fff 80%,
    #fff 100%
  );
}

body.rpc-doctor-template .rpc-doctor-video__columns {
  gap: 80px;
}

body.rpc-doctor-template .rpc-doctor-video__embed {
  width: min(100%, 315px);
}

body.rpc-doctor-template .rpc-doctor-video__copy .rpc-doctor-eyebrow,
body.rpc-doctor-template .rpc-doctor-story__copy .rpc-doctor-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

body.rpc-doctor-template .rpc-doctor-video__copy .rpc-doctor-eyebrow {
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 1.2px !important;
  line-height: 16px !important;
}

body.rpc-doctor-template .rpc-doctor-video__copy .rpc-doctor-eyebrow::before,
body.rpc-doctor-template .rpc-doctor-story__copy .rpc-doctor-eyebrow::before {
  display: block;
  height: 1px;
  content: "";
  background: var(--rpc-doctor-gold);
}

body.rpc-doctor-template .rpc-doctor-video__copy .rpc-doctor-eyebrow::before {
  width: 40px;
  height: 1px;
}

body.rpc-doctor-template .rpc-doctor-video__copy .rpc-doctor-section-title {
  margin-bottom: 24px;
  font-size: 36px;
  line-height: 45px;
}

body.rpc-doctor-template .rpc-doctor-video__copy p:not(.rpc-doctor-eyebrow) {
  margin-bottom: 32px;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px !important;
}

body.rpc-doctor-template .rpc-doctor-outline-button .wp-block-button__link {
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px !important;
  line-height: 16px !important;
}

body.rpc-doctor-template .rpc-doctor-specializations {
  padding-top: var(--rpc-doctor-section-space-compact);
  padding-bottom: var(--rpc-doctor-section-space-compact);
}

body.rpc-doctor-template .rpc-doctor-specializations .rpc-doctor-section-title::after {
  width: 64px;
  height: 0 !important;
  min-height: 0 !important;
  margin-top: 16px;
  border-top: 2px solid #caa660;
  transform: none;
}

body.rpc-doctor-template .rpc-doctor-reviews .rpc-doctor-section-title::after {
  width: 64px;
  height: 0 !important;
  min-height: 0 !important;
  margin-top: 16px;
  border-top: 2px solid #caa660;
}

body.rpc-doctor-template .rpc-doctor-specializations__grid {
  gap: 16px;
  margin-top: 64px !important;
  margin-bottom: 40px !important;
}

body.rpc-doctor-template .rpc-doctor-specialization-card {
  display: flex;
  min-height: 140px;
  padding: 32px;
  flex-direction: column;
  justify-content: center;
}

body.rpc-doctor-template .rpc-doctor-specialization-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 28px;
}

body.rpc-doctor-template .rpc-doctor-specialization-card p {
  font-size: 14px;
  font-weight: 300;
  line-height: 22.75px !important;
}

body.rpc-doctor-template .rpc-doctor-treatments {
  padding-top: 16px;
}

body.rpc-doctor-template .rpc-doctor-treatments h3 {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 28px;
}

body.rpc-doctor-template .rpc-doctor-treatment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.rpc-doctor-template .rpc-doctor-treatment-links a {
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px !important;
  line-height: 15px !important;
}

body.rpc-doctor-template .rpc-doctor-transformations {
  padding-top: var(--rpc-doctor-section-space);
  padding-bottom: var(--rpc-doctor-section-space);
}

body.rpc-doctor-template .rpc-doctor-transformations__heading {
  max-width: 672px;
  margin-bottom: 40px !important;
}

body.rpc-doctor-template .rpc-doctor-transformations__heading .rpc-doctor-section-title::after {
  width: 64px;
  height: 0 !important;
  min-height: 0 !important;
  margin-top: 24px;
  border-top: 2px solid #caa660;
}

body.rpc-doctor-template .rpc-doctor-transformations__heading p {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px !important;
}

body.rpc-doctor-template .rpc-doctor-transformations__grid {
  gap: 32px;
}

body.rpc-doctor-template .rpc-doctor-comparison__tag {
  bottom: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px !important;
  line-height: 16px !important;
}

body.rpc-doctor-template .rpc-doctor-comparison__tag--before {
  left: 16px;
}

body.rpc-doctor-template .rpc-doctor-comparison__tag--after {
  right: 16px;
}

body.rpc-doctor-template .rpc-doctor-comparison__title {
  margin-top: 24px;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1.2px !important;
  line-height: 16px !important;
}

body.rpc-doctor-template .rpc-doctor-story {
  padding-top: var(--rpc-doctor-section-space);
  padding-bottom: var(--rpc-doctor-section-space);
}

body.rpc-doctor-template .rpc-doctor-story .rpc-doctor-container {
  width: min(100%, 1152px);
  padding-right: 24px;
  padding-left: 24px;
}

body.rpc-doctor-template .rpc-doctor-story__columns {
  gap: 80px;
}

body.rpc-doctor-template .rpc-doctor-story__copy .rpc-doctor-eyebrow {
  margin-bottom: 24px;
  font-size: 14px;
  letter-spacing: 1.4px !important;
  line-height: 20px !important;
}

body.rpc-doctor-template .rpc-doctor-story__copy .rpc-doctor-eyebrow::before {
  width: 48px;
}

body.rpc-doctor-template .rpc-doctor-story__title {
  margin-bottom: 24px;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: normal;
  line-height: 49.5px;
}

body.rpc-doctor-template .rpc-doctor-story__copy > p:not(.rpc-doctor-eyebrow) {
  margin-bottom: 40px;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 300;
  line-height: 29.25px !important;
}

body.rpc-doctor-template .rpc-doctor-story__link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--rpc-doctor-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.4px !important;
  line-height: 20px !important;
}

body.rpc-doctor-template .rpc-doctor-story__link:hover,
body.rpc-doctor-template .rpc-doctor-story__link:focus-visible {
  color: var(--rpc-doctor-gold);
}

body.rpc-doctor-template .rpc-doctor-reviews {
  padding-top: var(--rpc-doctor-section-space);
  padding-bottom: var(--rpc-doctor-section-space);
}

body.rpc-doctor-template .rpc-doctor-reviews__grid {
  gap: 32px;
  margin-top: 80px !important;
}

body.rpc-doctor-template .rpc-doctor-review {
  height: auto;
  min-height: 247px;
  padding: 32px;
}

body.rpc-doctor-template .rpc-doctor-review__stars {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  letter-spacing: 0 !important;
  line-height: 16px !important;
}

body.rpc-doctor-template .rpc-doctor-review__quote {
  min-height: 0;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 300;
  line-height: 22.75px !important;
}

body.rpc-doctor-template .rpc-doctor-review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.1px !important;
  line-height: 16px !important;
}

body.rpc-doctor-template .rpc-doctor-review__initials {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  place-items: center;
  color: var(--rpc-doctor-gold);
  background: #f5f5f5;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
}

body.rpc-doctor-template .rpc-doctor-booking {
  padding-top: var(--rpc-doctor-section-space);
  padding-bottom: var(--rpc-doctor-section-space);
}

body.rpc-doctor-template .rpc-doctor-booking__card {
  width: min(calc(100% - 48px), 720px);
  padding: 64px;
}

body.rpc-doctor-template .rpc-doctor-booking__card .rpc-doctor-section-title {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  font-size: 48px;
  line-height: 48px;
}

body.rpc-doctor-template .rpc-doctor-booking__card .rpc-doctor-section-title::after {
  width: 64px;
  height: 0 !important;
  min-height: 0 !important;
  margin-top: 24px;
  border-top: 2px solid #caa660;
}

body.rpc-doctor-template .rpc-doctor-booking__lead {
  margin-top: 24px;
  margin-bottom: 56px;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px !important;
}

body.rpc-doctor-template .rpc-doctor-form__grid,
body.rpc-doctor-template .rpc-doctor-form__grid > p {
  display: grid;
  margin: 0;
}

body.rpc-doctor-template .rpc-doctor-form__grid {
  gap: 56px;
}

body.rpc-doctor-template .rpc-doctor-form__grid > p {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.rpc-doctor-template .rpc-doctor-form__grid br {
  display: none;
}

body.rpc-doctor-template .rpc-doctor-form__field {
  display: flex;
  height: 82px;
  margin: 0;
  flex-direction: column;
}

body.rpc-doctor-template .rpc-doctor-form__field--wide {
  grid-column: 1 / -1;
}

body.rpc-doctor-template .rpc-doctor-form__field > span:first-child {
  margin-bottom: 8px;
  color: rgba(26, 26, 26, 0.6);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.2px !important;
  line-height: 16px !important;
  text-transform: uppercase;
}

body.rpc-doctor-template .rpc-doctor-booking .rpc-doctor-form__field input,
body.rpc-doctor-template .rpc-doctor-booking .rpc-doctor-form__field select {
  box-sizing: border-box !important;
  height: 58px !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 16px;
  border-color: #e5e7eb;
  background: #f9fafb;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px !important;
}

body.rpc-doctor-template .rpc-doctor-form__submit,
body.rpc-doctor-template .rpc-doctor-form__submit p {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
}

body.rpc-doctor-template .rpc-doctor-form__submit p {
  width: 100%;
}

body.rpc-doctor-template .rpc-doctor-booking .wpcf7-response-output:empty {
  display: none;
}

body.rpc-doctor-template .rpc-doctor-booking .rpc-doctor-form__submit input[type="submit"] {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  height: 60px !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 20px;
  border-color: var(--rpc-doctor-gold) !important;
  color: #fff !important;
  background: var(--rpc-doctor-gold) !important;
  font-size: 14px;
  letter-spacing: 1.4px !important;
  line-height: 20px !important;
}

body.rpc-doctor-template .rpc-doctor-booking .rpc-doctor-form__submit input[type="submit"]:hover,
body.rpc-doctor-template .rpc-doctor-booking .rpc-doctor-form__submit input[type="submit"]:focus-visible {
  background: var(--rpc-doctor-gold-dark) !important;
}

@media (max-width: 767px) {
  body.rpc-doctor-template .rpc-doctor-profile {
    --rpc-doctor-section-space: 64px;
    --rpc-doctor-section-space-compact: 56px;
    --rpc-doctor-video-space: 48px;
  }

  body.rpc-doctor-template .rpc-doctor-profile > .wp-block-group,
  body.rpc-doctor-template .rpc-doctor-profile > .wp-block-group__inner-container > .wp-block-group {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
  }

  body.rpc-doctor-template .rpc-breadcrumbs__inner,
  body.rpc-doctor-template .rpc-doctor-container {
    width: calc(100% - 48px);
  }

  body.rpc-doctor-template .rpc-doctor-story .rpc-doctor-container {
    width: 100%;
    padding-right: 24px;
    padding-left: 24px;
  }

  body.rpc-doctor-template .rpc-doctor-hero {
    padding-top: 32px;
    padding-bottom: 80px;
  }

  body.rpc-doctor-template .rpc-doctor-hero__columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  body.rpc-doctor-template .rpc-doctor-specialty {
    margin-bottom: 32px;
    padding: 8px 20px;
    font-size: 12px;
  }

  body.rpc-doctor-template .rpc-doctor-title {
    margin-bottom: 32px;
    font-size: 36px;
    line-height: 40px;
  }

  body.rpc-doctor-template .rpc-doctor-intro {
    font-size: 20px;
    line-height: 28px;
  }

  body.rpc-doctor-template .rpc-doctor-jump__links a {
    font-size: 10px;
    line-height: 15px;
  }

  body.rpc-doctor-template .rpc-doctor-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.rpc-doctor-template .rpc-doctor-stat {
    min-height: 127px;
    padding: 32px 16px;
  }

  body.rpc-doctor-template .rpc-doctor-experience,
  body.rpc-doctor-template .rpc-doctor-specializations,
  body.rpc-doctor-template .rpc-doctor-transformations,
  body.rpc-doctor-template .rpc-doctor-story,
  body.rpc-doctor-template .rpc-doctor-reviews {
    padding-top: var(--rpc-doctor-section-space);
    padding-bottom: var(--rpc-doctor-section-space);
  }

  body.rpc-doctor-template .rpc-doctor-specializations {
    padding-top: var(--rpc-doctor-section-space-compact);
    padding-bottom: var(--rpc-doctor-section-space-compact);
  }

  body.rpc-doctor-template .rpc-doctor-experience__columns {
    gap: 64px;
  }

  body.rpc-doctor-template .rpc-doctor-timeline__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  body.rpc-doctor-template .rpc-doctor-video {
    padding-top: var(--rpc-doctor-video-space);
    padding-bottom: var(--rpc-doctor-video-space);
    background: var(--rpc-doctor-ink);
  }

  body.rpc-doctor-template .rpc-doctor-video__columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  body.rpc-doctor-template .rpc-doctor-video__media {
    width: 100%;
    margin: 0;
  }

  body.rpc-doctor-template .rpc-doctor-video__embed {
    width: 100%;
    max-width: 420px;
    max-height: 746.67px;
    margin: 0 auto !important;
  }

  body.rpc-doctor-template .rpc-doctor-video__embed .wp-block-embed__wrapper::before {
    display: none !important;
    padding-top: 0 !important;
  }

  body.rpc-doctor-template .rpc-doctor-video__play {
    width: 64px;
    height: 64px;
  }

  body.rpc-doctor-template .rpc-doctor-video__copy {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  body.rpc-doctor-template .rpc-doctor-specializations__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.rpc-doctor-template .rpc-doctor-specialization-card {
    min-height: 140px;
    padding: 32px;
  }

  body.rpc-doctor-template .rpc-doctor-transformations__grid,
  body.rpc-doctor-template .rpc-doctor-reviews__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  body.rpc-doctor-template .rpc-doctor-story__columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  body.rpc-doctor-template .rpc-doctor-story__title {
    font-size: 30px;
    line-height: 41.25px;
  }

  body.rpc-doctor-template .rpc-doctor-review {
    height: auto;
    min-height: 0;
  }

  body.rpc-doctor-template .rpc-doctor-booking {
    padding-top: var(--rpc-doctor-section-space);
    padding-bottom: var(--rpc-doctor-section-space);
  }

  body.rpc-doctor-template .rpc-doctor-booking__card {
    width: calc(100% - 48px);
    padding: 40px;
  }

  body.rpc-doctor-template .rpc-doctor-booking__card .rpc-doctor-section-title {
    font-size: 36px;
    line-height: 40px;
  }

  body.rpc-doctor-template .rpc-doctor-form__grid > p {
    grid-template-columns: minmax(0, 1fr);
  }
}
