/* Shared specialization landing pages — strict-preservation presentation. */

/* The local Latin subsets do not contain Ukrainian glyphs. Load only the
   matching Cyrillic subset on UK pages so headings keep the same typeface. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/cormorantgaramond/v21/co3umX5slCNuHLi8bLeY9MK7whWMhyjypVO7abI26QOD_v86KnDOiss4.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

html[lang="uk"] body.page-template-page-specializacja {
  --rz-sans: Arial, sans-serif;
}

body.page-template-page-specializacja {
  color: var(--rz-ink);
  background: var(--rz-paper);
  font-family: var(--rz-sans);
}

.specialization-page {
  overflow: clip;
  background: var(--rz-paper);
}

.sp-hero {
  width: min(100% - 64px, 1360px);
  min-height: 660px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  border-right: 1px solid rgb(24 22 19 / 14%);
  border-left: 1px solid rgb(24 22 19 / 14%);
  background: #f8f6f1;
}

.sp-hero__copy {
  min-width: 0;
  padding: clamp(52px, 6vw, 92px) clamp(42px, 6vw, 86px) 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sp-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 58px;
  color: var(--rz-gold-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sp-breadcrumbs a {
  text-decoration: none;
}

.sp-breadcrumbs a:hover,
.sp-breadcrumbs a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sp-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--rz-serif);
  font-size: clamp(52px, 4.8vw, 70px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.sp-hero h1.sp-hero__title--long {
  font-size: clamp(48px, 4.1vw, 60px);
}

.sp-hero__lead {
  max-width: 760px;
  margin-top: 40px;
  color: var(--rz-ink-soft);
  font-size: 17px;
  line-height: 1.78;
}

.sp-hero__lead p {
  margin: 0;
}

.sp-hero__lead p + p {
  margin-top: 18px;
}

.sp-hero__lead strong {
  color: var(--rz-ink);
}

.sp-hero__actions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.sp-hero__phone {
  color: var(--rz-gold-text);
  font-family: var(--rz-serif);
  font-size: 24px;
  text-decoration: none;
}

.sp-hero__phone:hover,
.sp-hero__phone:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.sp-hero__visual {
  position: relative;
  min-height: 660px;
  margin: 0;
  overflow: hidden;
  background: #d9d3ca;
}

.sp-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(38 38 37 / 10%), transparent 42%);
  pointer-events: none;
}

.sp-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-toc {
  position: relative;
  z-index: 2;
  color: var(--rz-white);
  background: var(--rz-charcoal);
}

.sp-toc ol {
  width: min(100% - 64px, 1360px);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  border-right: 1px solid rgb(255 255 255 / 12%);
  border-left: 1px solid rgb(255 255 255 / 12%);
}

.sp-toc li {
  min-width: 0;
  border-right: 1px solid rgb(255 255 255 / 12%);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.sp-toc li:nth-child(3n) {
  border-right: 0;
}

.sp-toc a {
  min-height: 82px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 82%);
  font-family: var(--rz-serif);
  font-size: 18px;
  line-height: 1.18;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.sp-toc a span {
  align-self: start;
  padding-top: 3px;
  color: #e4b483;
  font-family: var(--rz-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.sp-toc a:hover,
.sp-toc a:focus-visible {
  color: var(--rz-white);
  background: rgb(255 255 255 / 6%);
}

.sp-article {
  padding: clamp(76px, 8vw, 130px) 32px;
  background: var(--rz-paper);
}

.sp-article__chapters {
  width: min(100%, 1120px);
  margin-inline: auto;
  counter-reset: specialization-chapter;
}

.sp-chapter {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  column-gap: clamp(34px, 5vw, 76px);
  padding: clamp(72px, 7vw, 106px) 0;
  border-top: 1px solid rgb(24 22 19 / 20%);
}

.sp-chapter:first-child {
  padding-top: 0;
  border-top: 0;
}

.sp-chapter::before {
  content: attr(data-chapter);
  grid-column: 1;
  grid-row: 1 / span 20;
  color: var(--rz-gold);
  font-family: var(--rz-serif);
  font-size: 74px;
  font-weight: 400;
  line-height: 0.8;
}

.sp-chapter > * {
  grid-column: 2;
  min-width: 0;
}

.sp-chapter h2 {
  margin: 0 0 34px;
  color: var(--rz-ink);
  font-family: var(--rz-serif);
  font-size: clamp(42px, 4.3vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  scroll-margin-top: 28px;
}

.sp-chapter h2 strong {
  font-weight: inherit;
}

.sp-chapter p,
.sp-chapter li {
  color: var(--rz-ink-soft);
  font-size: 17px;
  line-height: 1.82;
}

.sp-chapter p {
  margin: 0 0 21px;
}

.sp-chapter p:last-child {
  margin-bottom: 0;
}

.sp-chapter p > br:first-child {
  display: none;
}

.sp-chapter strong {
  color: var(--rz-ink);
}

.sp-chapter ul,
.sp-chapter ol {
  margin: 8px 0 28px;
  padding: 0;
  display: grid;
  list-style: none;
}

.sp-chapter li {
  position: relative;
  padding: 14px 16px 14px 34px;
  border-top: 1px solid rgb(24 22 19 / 13%);
}

.sp-chapter li:last-child {
  border-bottom: 1px solid rgb(24 22 19 / 13%);
}

.sp-chapter ul li::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 8px;
  width: 9px;
  height: 1px;
  background: var(--rz-gold-text);
}

.sp-chapter ol {
  counter-reset: ordered-list;
}

.sp-chapter ol li {
  counter-increment: ordered-list;
  padding-left: 48px;
}

.sp-chapter ol li::before {
  content: counter(ordered-list, decimal-leading-zero);
  position: absolute;
  top: 17px;
  left: 7px;
  color: var(--rz-gold-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sp-chapter a {
  color: var(--rz-gold-text);
  text-underline-offset: 3px;
}

.sp-inline-contact {
  margin: 28px 0 104px;
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  grid-template-rows: auto auto auto;
  color: var(--rz-white);
  background: var(--rz-charcoal);
}

.sp-inline-contact > * {
  min-width: 0;
}

.sp-inline-contact__copy {
  grid-column: 1;
  grid-row: 1;
  padding: clamp(48px, 6vw, 76px) clamp(38px, 5vw, 64px) 30px;
}

.sp-inline-contact__copy h2 {
  margin: 0;
  color: var(--rz-white);
  font-family: var(--rz-serif);
  font-size: clamp(44px, 4vw, 62px);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
}

.sp-inline-contact__copy p {
  margin: 28px 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 15px;
  line-height: 1.7;
}

.sp-inline-contact__form {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: clamp(48px, 6vw, 76px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 22px 24px;
  border-left: 1px solid rgb(255 255 255 / 13%);
}

.sp-inline-contact__details {
  grid-column: 1;
  grid-row: 2;
  padding: 0 clamp(38px, 5vw, 64px) clamp(48px, 6vw, 76px);
  display: grid;
  gap: 11px;
  align-content: end;
}

.sp-inline-contact__details h3 {
  margin: 0 0 9px;
  color: #e4b483;
  font-family: var(--rz-serif);
  font-size: 28px;
  font-weight: 400;
}

.sp-inline-contact__details address,
.sp-inline-contact__details a {
  color: rgb(255 255 255 / 72%);
  font-size: 13px;
  font-style: normal;
  line-height: 1.65;
}

.sp-inline-contact__details a {
  width: fit-content;
  text-underline-offset: 4px;
}

.sp-inline-contact__media {
  grid-column: 1 / -1;
  grid-row: 3;
  height: clamp(280px, 34vw, 430px);
  margin: 0;
  overflow: hidden;
  border-top: 1px solid rgb(255 255 255 / 13%);
}

.sp-inline-contact__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-inline-contact__form .form-field:nth-child(3),
.sp-inline-contact__form .form-consent,
.sp-inline-contact__form .form-status {
  grid-column: 1 / -1;
}

.sp-inline-contact__form .form-field {
  display: block;
}

.sp-inline-contact__form .form-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sp-inline-contact__form input[type="text"],
.sp-inline-contact__form input[type="tel"] {
  width: 100%;
  min-height: 52px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 28%);
  border-radius: 0;
  color: var(--rz-white);
  background: transparent;
  font: inherit;
}

.sp-inline-contact__form input::placeholder {
  color: rgb(255 255 255 / 56%);
}

.sp-inline-contact__form button {
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid var(--rz-gold);
  color: var(--rz-white);
  background: var(--rz-gold-text);
  font: 700 12px/1 var(--rz-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.sp-inline-contact__form button:hover,
.sp-inline-contact__form button:focus-visible {
  color: var(--rz-ink);
  background: var(--rz-white);
}

.sp-inline-contact__form .form-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: rgb(255 255 255 / 62%);
  font-size: 11px;
  line-height: 1.5;
}

.sp-inline-contact__form .form-consent input {
	position: static;
	width: 15px;
	height: 15px;
	margin-top: 2px;
	opacity: 1;
	pointer-events: auto;
	accent-color: var(--rz-gold);
}

.sp-inline-contact__form .form-consent > span {
	width: auto;
	height: auto;
	display: block;
	border: 0;
}

.sp-inline-contact__form .form-consent input:checked + span {
	background: transparent;
	box-shadow: none;
}

.sp-inline-contact__form .form-status {
  min-height: 1.5em;
  margin: 0;
  color: #e4b483;
  font-size: 12px;
}

.sp-inline-visual {
  position: relative;
  height: clamp(360px, 44vw, 560px);
  margin: 12px 0 104px;
  overflow: hidden;
}

.sp-inline-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgb(24 22 19 / 22%));
}

.sp-inline-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specialization-page--blad-stomatologa-lub-ortodonty .sp-inline-visual {
  height: auto;
  display: flex;
  justify-content: center;
  background: #ded9d0;
}

.specialization-page--blad-stomatologa-lub-ortodonty .sp-inline-visual img {
  width: min(100%, 683px);
  height: auto;
  object-fit: contain;
}

.sp-phone-cta {
  width: min(100% - 64px, 1360px);
  min-height: 330px;
  margin-inline: auto;
  padding: 60px clamp(44px, 7vw, 104px);
  display: grid;
  grid-template-columns: minmax(112px, 160px) minmax(210px, 0.7fr) minmax(0, 1.3fr);
  align-content: center;
  align-items: center;
  gap: 34px clamp(34px, 5vw, 70px);
  color: var(--rz-white);
  background: var(--rz-charcoal);
}

.sp-phone-cta__icon {
  width: 100%;
  margin: 0;
}

.sp-phone-cta__icon img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.72;
  filter: invert(79%) sepia(33%) saturate(657%) hue-rotate(342deg) brightness(92%) contrast(89%);
}

.sp-phone-cta p {
  max-width: 620px;
  margin: 0;
  color: rgb(255 255 255 / 70%);
  font-size: 14px;
  line-height: 1.7;
}

.sp-phone-cta a {
  grid-column: 3;
  color: var(--rz-white);
  font-family: var(--rz-serif);
  font-size: clamp(40px, 4.6vw, 70px);
  line-height: 1;
  text-decoration: none;
}

.sp-phone-cta a:hover,
.sp-phone-cta a:focus-visible {
  color: #e4b483;
}

.sp-publications {
  width: min(100% - 64px, 1360px);
  margin-inline: auto;
  padding: clamp(88px, 9vw, 138px) 0;
}

.sp-publications__heading {
  padding-bottom: 34px;
  border-bottom: 1px solid rgb(24 22 19 / 18%);
}

.sp-publications h2 {
  margin: 0;
  font-family: var(--rz-serif);
  font-size: clamp(54px, 6vw, 84px);
  font-weight: 400;
  line-height: 1;
}

.sp-publications__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 38px;
}

.sp-publications__grid article {
  min-width: 0;
}

.sp-publications__image,
.sp-publications__placeholder {
  width: 100%;
  aspect-ratio: 1.48 / 1;
  display: block;
  overflow: hidden;
  background: #ded9d0;
}

.sp-publications__placeholder {
  background:
    linear-gradient(135deg, transparent 49.5%, rgb(138 84 40 / 24%) 50%, transparent 50.5%),
    #ded9d0;
}

.sp-publications__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.sp-publications__image:hover img,
.sp-publications__image:focus-visible img {
  transform: scale(1.035);
}

.sp-publications h3 {
  margin: 24px 0 12px;
  font-family: var(--rz-serif);
  font-size: clamp(27px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1.08;
}

.sp-publications h3 a {
  text-decoration: none;
}

.sp-publications h3 a:hover,
.sp-publications h3 a:focus-visible {
  color: var(--rz-gold-text);
}

.sp-publications article p {
  margin: 0 0 18px;
  color: var(--rz-ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.sp-publications .read-more {
  color: var(--rz-gold-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.sp-publications .read-more:hover,
.sp-publications .read-more:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1100px) {
  .sp-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  }

  .sp-hero__copy {
    padding-inline: 48px;
  }

  .sp-hero h1 {
    font-size: clamp(46px, 5vw, 58px);
  }

  .sp-hero h1.sp-hero__title--long {
    font-size: clamp(42px, 4.7vw, 52px);
  }

  .sp-publications__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sp-hero,
  .sp-toc ol,
  .sp-phone-cta,
  .sp-publications {
    width: calc(100% - 48px);
  }

  .sp-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .sp-hero__copy {
    padding: 54px 38px 58px;
  }

  .sp-hero__visual {
    min-height: 520px;
  }

  .sp-toc ol {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .sp-toc li,
  .sp-toc li:nth-child(3n) {
    width: min(78vw, 360px);
    flex: 0 0 min(78vw, 360px);
    border-right: 1px solid rgb(255 255 255 / 12%);
    border-bottom: 0;
    scroll-snap-align: start;
  }

  .sp-inline-contact {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .sp-inline-contact__copy,
  .sp-inline-contact__form,
  .sp-inline-contact__details,
  .sp-inline-contact__media {
    grid-column: 1;
    grid-row: auto;
  }

  .sp-inline-contact__form {
    border-top: 1px solid rgb(255 255 255 / 13%);
    border-left: 0;
  }

  .sp-inline-contact__details {
    padding-top: 0;
  }

  .sp-phone-cta {
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
  }

  .sp-phone-cta a {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .sp-hero,
  .sp-toc ol,
  .sp-phone-cta,
  .sp-publications {
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

  .sp-hero__copy {
    padding: 34px 24px 46px;
  }

  .sp-breadcrumbs {
    margin-bottom: 35px;
    font-size: 9px;
  }

  .sp-hero h1 {
    font-size: clamp(36px, 8.8vw, 46px);
    line-height: 1.04;
  }

  .sp-hero h1.sp-hero__title--long {
    font-size: clamp(34px, 8vw, 42px);
  }

  .sp-hero__lead {
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.7;
  }

  .sp-hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .sp-hero__actions .button {
    width: 100%;
    justify-content: center;
  }

  .sp-hero__phone {
    font-size: 22px;
  }

  .sp-hero__visual {
    min-height: 420px;
  }

  .sp-toc a {
    min-height: 74px;
    padding-inline: 20px;
    font-size: 17px;
  }

  .sp-article {
    padding: 70px 24px;
  }

  .sp-chapter {
    grid-template-columns: 1fr;
    padding: 68px 0;
  }

  .sp-chapter::before {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 30px;
    font-size: 58px;
  }

  .sp-chapter > * {
    grid-column: 1;
  }

  .sp-chapter h2 {
    margin-bottom: 28px;
    font-size: clamp(38px, 12vw, 50px);
  }

  .sp-chapter p,
  .sp-chapter li {
    font-size: 16px;
    line-height: 1.76;
  }

  .sp-chapter li {
    padding-right: 4px;
  }

  .sp-inline-contact {
    margin-right: -24px;
    margin-left: -24px;
    margin-bottom: 82px;
  }

  .sp-inline-contact__copy,
  .sp-inline-contact__form,
  .sp-inline-contact__details {
    padding-right: 24px;
    padding-left: 24px;
  }

  .sp-inline-contact__details {
    padding-bottom: 48px;
  }

  .sp-inline-contact__media {
    height: 280px;
  }

  .sp-inline-contact__form {
    grid-template-columns: 1fr;
  }

  .sp-inline-contact__form .form-field,
  .sp-inline-contact__form .form-consent,
  .sp-inline-contact__form .form-status {
    grid-column: 1;
  }

  .sp-inline-visual {
    height: 360px;
    margin-right: -24px;
    margin-left: -24px;
    margin-bottom: 82px;
  }

  .sp-phone-cta {
    min-height: 330px;
    padding: 48px 24px;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 24px 22px;
  }

  .sp-phone-cta p {
    font-size: 13px;
  }

  .sp-phone-cta a {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
    font-size: 43px;
  }

  .sp-publications {
    padding: 82px 24px;
  }

  .sp-publications__grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

}

@media (max-width: 360px) {
  .sp-hero__copy,
  .sp-article,
  .sp-publications {
    padding-right: 20px;
    padding-left: 20px;
  }

  .sp-inline-contact,
  .sp-inline-visual {
    margin-right: -20px;
    margin-left: -20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-publications__image img {
    transition: none;
  }
}
