/* Integritas v4: approved feedback overrides and new page components. */

.new-4 .site-header {
  position: sticky;
  grid-template-columns: minmax(156px, 188px) minmax(0, 1fr) auto;
  gap: clamp(10px, 1.2vw, 22px);
  padding-inline: clamp(18px, 2.2vw, 40px);
  background: rgba(247, 249, 251, 0.94);
}

.new-4 .brand img {
  width: min(188px, 100%);
  height: auto;
}

/* Keep the navigation stable even while the critical logo asset is loading. */
.new-4 .site-header > .brand {
  width: 188px;
  min-height: 59px;
  height: 59px;
  overflow: hidden;
}

.new-4 .site-header > .brand img {
  display: block;
  width: 188px;
  height: 59px;
  object-fit: contain;
}

.new-4 .main-nav {
  justify-content: center;
  gap: clamp(7px, 0.8vw, 15px);
}

.new-4 .main-nav a {
  white-space: nowrap;
  font-size: clamp(13px, 0.82vw, 14px);
}

.new-4 .main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.new-4 .header-actions {
  gap: 12px;
}

.new-4 .header-actions .phone-link {
  white-space: nowrap;
  font-size: 13px;
}

.new-4 .header-actions .button {
  min-height: 44px;
  padding-inline: clamp(14px, 1.2vw, 22px);
  white-space: nowrap;
  font-size: 13px;
}

.new-4 .hero-content h1 .hero-title-brand,
.new-4 .hero-content h1 .hero-title-result {
  display: block;
}

.new-4 .hero-content h1 .hero-title-brand {
  font-size: 0.64em;
}

.new-4 .hero-content h1 .hero-title-result {
  font-size: 1em;
}

/* Counter-clockwise principle order: 1 top-right, 2 top-left, 3 bottom-left, 4 bottom-right. */
.new-4 .puzzle-ring-base {
  background: conic-gradient(from 0deg, var(--primary) 0 25%, var(--primary-4) 25% 50%, var(--primary-3) 50% 75%, var(--primary-2) 75% 100%);
}

.new-4 .puzzle-piece-2 {
  background: conic-gradient(from 270deg, var(--primary-2) 0 90deg, transparent 90deg 360deg);
}

.new-4 .puzzle-piece-4 {
  background: conic-gradient(from 90deg, var(--primary-4) 0 90deg, transparent 90deg 360deg);
}

.new-4 .puzzle-hit-2 {
  inset: 0 auto auto 0;
  border-radius: 100% 0 0 0;
}

.new-4 .puzzle-hit-4 {
  inset: auto 0 0 auto;
  border-radius: 0 0 100% 0;
}

.new-4 .puzzle-number {
  margin: -28px 0 0 -28px;
  text-align: center;
}

.new-4 .puzzle-number-1 { top: 25%; left: 75%; right: auto; bottom: auto; }
.new-4 .puzzle-number-2 { top: 25%; left: 25%; right: auto; bottom: auto; }
.new-4 .puzzle-number-3 { top: 75%; left: 25%; right: auto; bottom: auto; }
.new-4 .puzzle-number-4 { top: 75%; left: 75%; right: auto; bottom: auto; }

.new-4 .goal-principle-1 { grid-column: 3; grid-row: 1; }
.new-4 .goal-principle-2 { grid-column: 1; grid-row: 1; }
.new-4 .goal-principle-3 { grid-column: 1; grid-row: 2; }
.new-4 .goal-principle-4 { grid-column: 3; grid-row: 2; }
.new-4 .goal-principle-1::after,
.new-4 .goal-principle-4::after { right: 100%; left: auto; transform-origin: right center; }
.new-4 .goal-principle-2::after,
.new-4 .goal-principle-3::after { left: 100%; right: auto; transform-origin: left center; }

.new-4.about-page .about-story-copy h2 {
  margin: 0 0 22px;
  color: var(--color-ink-muted);
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.86;
  letter-spacing: normal;
}

.new-4.principle-detail-page .site-footer {
  padding: 68px 0 26px;
}

.new-4.principle-detail-page .footer-bottom {
  margin-top: 44px;
}

.new-4 .about-stats-grid .about-stat-link {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.new-4 .about-stats-grid .about-stat-link::after {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  content: "";
  pointer-events: none;
}

.new-4 .about-stats-grid .about-stat-link:hover,
.new-4 .about-stats-grid .about-stat-link:focus-visible {
  background: rgba(33, 106, 169, 0.05);
  outline: none;
}

.new-4 .clinic-gallery-section {
  overflow: hidden;
  background: #f4f8fb;
}

.new-4 .clinic-gallery-shell {
  position: relative;
}

.new-4 .clinic-gallery-track {
  display: grid;
  grid-auto-columns: minmax(300px, 38%);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.new-4 .clinic-gallery-card {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: #dbe7f0;
  box-shadow: 0 18px 44px rgba(18, 57, 91, 0.12);
  scroll-snap-align: start;
}

.new-4 .clinic-gallery-card picture,
.new-4 .clinic-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
}

.new-4 .clinic-gallery-card img {
  object-fit: cover;
  object-position: var(--gallery-position, 50% 50%);
}

.new-4 .clinic-gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.new-4 .clinic-gallery-controls button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(33, 106, 169, 0.28);
  border-radius: 50%;
  background: white;
  color: var(--primary);
  cursor: pointer;
}

.new-4 .clinic-gallery-controls button:hover,
.new-4 .clinic-gallery-controls button:focus-visible {
  border-color: var(--primary);
  outline: 3px solid rgba(33, 106, 169, 0.15);
}

.new-4 .v4-page-hero h1 {
  max-width: 1060px;
}

.new-4 .v4-reading-column,
.new-4 .v4-legal-column {
  display: grid;
  width: min(100%, 980px);
  gap: 24px;
  margin-inline: auto;
}

.new-4 .v4-content-card,
.new-4 .v4-legal-copy,
.new-4 .price-notice {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(33, 106, 169, 0.14);
  border-radius: 20px;
  background: white;
  box-shadow: 0 18px 50px rgba(18, 57, 91, 0.07);
}

.new-4 .v4-content-card h2:first-child,
.new-4 .v4-legal-copy p:first-child {
  margin-top: 0;
}

.new-4 .v4-content-card h2,
.new-4 .v4-content-card h3 {
  color: var(--ink);
}

.new-4 .v4-content-card p,
.new-4 .v4-content-card li,
.new-4 .v4-legal-copy p,
.new-4 .v4-article-copy p,
.new-4 .v4-article-copy li {
  color: var(--ink-soft);
  line-height: 1.75;
}

.new-4 .v4-numbered-list {
  display: grid;
  gap: 18px;
  padding-left: 28px;
}

.new-4 .v4-appointment-section {
  background: #eef5fa;
}

.new-4 .v4-appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}

.new-4 .v4-appointment-copy {
  position: sticky;
  top: 130px;
}

.new-4 .v4-test-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.new-4 .v4-draft-banner {
  padding: 22px 26px;
  border: 1px solid #d79b2d;
  border-radius: 16px;
  background: #fff8e8;
  color: #6d4a0b;
}

.new-4 .v4-draft-banner p {
  margin: 8px 0 0;
}

.new-4 .v4-legal-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.new-4 .v4-legal-copy > section {
  padding-block: clamp(24px, 4vw, 38px);
  border-bottom: 1px solid rgba(33, 106, 169, 0.14);
}

.new-4 .v4-legal-copy > section:first-child {
  padding-top: 0;
}

.new-4 .v4-legal-copy > section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.new-4 .v4-legal-copy h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
}

.new-4 .v4-legal-copy p {
  margin: 0 0 14px;
}

.new-4 .v4-legal-copy p:last-child {
  margin-bottom: 0;
}

.new-4 .v4-legal-copy ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.35em;
}

.new-4 .v4-legal-copy li {
  color: var(--ink-soft);
  line-height: 1.7;
}

.new-4 .v4-legal-copy a {
  color: var(--primary-dark);
  text-underline-offset: 0.18em;
}

.new-4 .v4-legal-copy .v5-legal-pending {
  padding: 10px 12px;
  border-left: 3px solid #d79b2d;
  background: #fff8e8;
  color: #6d4a0b;
}

.new-4 .v5-legal-updated {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.new-4 .legal-documents-card .legal-document-grid a:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.new-4 .article-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.new-4 .v4-article-copy {
  min-width: 0;
}

.new-4 .v4-article-copy > section {
  padding-block: 26px;
  border-bottom: 1px solid rgba(33, 106, 169, 0.14);
}

.new-4 .v4-article-copy > section:first-of-type {
  padding-top: 36px;
}

.new-4 .v4-article-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 38px);
}

.new-4 .v4-article-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: 20px;
  object-fit: cover;
}

.new-4 .service-doctor-unpublished {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(33, 106, 169, 0.16);
  border-radius: 16px;
  background: white;
}

.new-4 .service-doctor-unpublished img {
  width: 112px;
  height: 138px;
  border-radius: 12px;
  object-fit: cover;
  object-position: var(--doctor-position, 50% 18%);
}

.new-4 .service-doctor-unpublished strong,
.new-4 .service-doctor-unpublished small {
  display: block;
}

.new-4 .service-doctor-unpublished small {
  margin-top: 8px;
  color: var(--ink-soft);
}

.new-4 .price-layout {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 70px);
}

.new-4 .price-sidebar {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 136px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(33, 106, 169, 0.14);
  border-radius: 18px;
  background: white;
}

.new-4 .price-sidebar label {
  display: block;
  margin-bottom: 9px;
  font-weight: 700;
}

.new-4 .price-sidebar input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(33, 106, 169, 0.28);
  border-radius: 10px;
  font: inherit;
}

.new-4 .price-sidebar [data-price-status] {
  min-height: 20px;
  margin: 10px 0 14px;
  color: var(--ink-muted);
  font-size: 12px;
}

.new-4 .price-sidebar nav {
  display: grid;
  gap: 4px;
}

.new-4 .price-sidebar nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.new-4 .price-sidebar nav a:hover,
.new-4 .price-sidebar nav a:focus-visible {
  background: #eef5fa;
  color: var(--primary);
}

.new-4 .price-content {
  min-width: 0;
}

.new-4 .price-notice {
  margin-bottom: 38px;
  padding: 22px 26px;
  background: #eef5fa;
}

.new-4 .price-notice p {
  margin: 8px 0 0;
}

.new-4 .price-section {
  scroll-margin-top: 120px;
  margin-bottom: 52px;
}

.new-4 .price-section h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 3vw, 38px);
}

.new-4 .price-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(33, 106, 169, 0.14);
  border-radius: 16px;
  background: white;
}

.new-4 .price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.new-4 .price-table th,
.new-4 .price-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(33, 106, 169, 0.11);
  text-align: left;
  vertical-align: top;
}

.new-4 .price-table thead th {
  background: #eef5fa;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.new-4 .price-table th:first-child,
.new-4 .price-table td:first-child { width: 160px; }
.new-4 .price-table th:last-child,
.new-4 .price-table td:last-child { width: 150px; text-align: right; white-space: nowrap; }
.new-4 .price-table tbody th { color: var(--ink); font-weight: 560; }
.new-4 .price-table tbody td { color: var(--ink-soft); }
.new-4 .price-table tbody tr:last-child > * { border-bottom: 0; }

.new-4 .v4-redirect-card {
  text-align: center;
}

.new-4 .v4-redirect-card .button {
  margin-top: 18px;
}

.new-4 .footer-grid {
  align-items: start;
}

.new-4 .footer-about .brand {
  display: inline-block;
  margin-bottom: 14px;
}

.new-4 .footer-about p {
  max-width: 270px;
}

@media (max-width: 1279px) {
  .new-4 .site-header {
    grid-template-columns: minmax(150px, 190px) 1fr;
  }

  .new-4 .main-nav,
  .new-4 .header-actions .phone-link,
  .new-4 .header-actions > .button {
    display: none;
  }

  .new-4 .menu-button {
    display: inline-flex;
  }

  .new-4 .header-actions {
    justify-self: end;
  }
}

@media (min-width: 1280px) {
  .new-4 .main-nav {
    display: flex;
  }

  .new-4 .menu-button {
    display: none;
  }
}

@media (max-width: 1240px) {
  .new-4 .goal-principle,
  .new-4 .goal-principle-1,
  .new-4 .goal-principle-2,
  .new-4 .goal-principle-3,
  .new-4 .goal-principle-4 {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .new-4 .clinic-gallery-track {
    grid-auto-columns: minmax(280px, 68%);
  }

  .new-4 .v4-appointment-layout,
  .new-4 .article-page-layout,
  .new-4 .price-layout {
    grid-template-columns: 1fr;
  }

  .new-4 .v4-appointment-copy,
  .new-4 .price-sidebar {
    position: static;
  }

  .new-4 .price-sidebar {
    max-height: none;
  }

  .new-4 .price-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .new-4 .puzzle-number {
    margin: -22px 0 0 -22px;
  }

  .new-4 .clinic-gallery-track {
    grid-auto-columns: calc(100% - 24px);
    gap: 12px;
  }

  .new-4 .clinic-gallery-card {
    border-radius: 14px;
  }

  .new-4 .v4-content-card,
  .new-4 .v4-legal-copy {
    padding: 22px;
    border-radius: 16px;
  }

  .new-4 .service-doctor-unpublished {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .new-4 .service-doctor-unpublished img {
    width: 86px;
    height: 110px;
  }

  .new-4 .price-sidebar nav {
    grid-template-columns: 1fr;
  }

  .new-4 .price-table {
    min-width: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .new-4 .puzzle-core {
    transform: translate(-50%, -50%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .new-4 .clinic-gallery-track {
    scroll-behavior: auto;
  }
}

@media print {
  .new-4.price-page .site-header,
  .new-4.price-page .site-footer,
  .new-4.price-page .mobile-bar,
  .new-4.price-page .price-sidebar {
    display: none !important;
  }

  .new-4.price-page .price-layout {
    display: block;
  }

  .new-4.price-page .price-section {
    break-inside: avoid;
  }
}
