:root { --atlas-header-height: 4rem; }
.atlas-scene { --atlas-offset: var(--atlas-header-height); scroll-margin-block-start: 2.8rem; }
.atlas-scene .cut-enhanced { --cut-distance: clamp(5.5rem,19svh,11.75rem); }
.atlas-scene .cut-enhanced .atlas-shutter { top: var(--atlas-offset); min-height: clamp(19rem,65svh,45rem); }
.atlas-title { min-height: 14rem; }
.atlas-title h2 { font-size: clamp(2.55rem,7.7vw,7rem); }
.atlas-title p { font-size: clamp(1rem,1.38vw,1.16rem); }
.atlas-content { padding: 0; }
.atlas-directory {
  position: sticky;
  top: var(--atlas-offset);
  z-index: 5;
  border-block: 1px solid #81618c;
  background: #322039;
  color: #fff6ff;
}
.atlas-directory-inner { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-width: 0; }
.atlas-chapter-links { display: flex; gap: clamp(.35rem,1.7vw,1.7rem); min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #ad88b7 #322039; }
.atlas-chapter-links a {
  position: relative;
  flex: none;
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  padding: .48rem .64rem;
  border-block-end: 2px solid transparent;
  color: #f4e8f7;
  font-size: .9rem;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}
.atlas-chapter-links a:is(:hover,[aria-current]) { color: #f1f6c9; background: #52375c; border-color: #dfeca0; }
.atlas-directory :focus-visible { outline: 2px solid var(--highlight); outline-offset: -4px; }
.atlas-skip { display: flex; align-items: center; min-height: 2.75rem; font-size: .86rem; color: #f4e8f7; white-space: nowrap; }
:is(.atlas-chapter,.treatment-mast) {
  --chapter-paper: #f8f3fa;
  --chapter-frame: #c8b4d9;
  --chapter-light: #f2e5f6;
  --chapter-deep: #644574;
  --chapter-angle: 13%;
}
.atlas-chapter {
  --chapter-enter: 1;
  position: relative;
  scroll-margin-block-start: 7rem;
  isolation: isolate;
  color: var(--ink);
  background: linear-gradient(114deg,var(--chapter-paper) 24%,var(--chapter-light) 100%);
  border-block-end: 1px solid #c8b4cc;
}
.atlas-zone-piersi { --chapter-paper: #f1e5ef; --chapter-frame: #c8a0c1; --chapter-light: #f6ecf3; --chapter-deep: #6c486a; --chapter-angle: 23%; }
.atlas-zone-sylwetka { --chapter-paper: #ece5f3; --chapter-frame: #a99bcf; --chapter-light: #e9e1f1; --chapter-deep: #56507a; --chapter-angle: 13%; }
.atlas-zone-skora { --chapter-paper: #f6eff4; --chapter-frame: #c2c29f; --chapter-light: #f0eddf; --chapter-deep: #574766; --chapter-angle: 25%; }
.atlas-zone-inne { --chapter-paper: #efe5f1; --chapter-frame: #c3aecb; --chapter-light: #ebe2ef; --chapter-deep: #51355f; --chapter-angle: 16%; }
.atlas-chapter-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,.91fr) minmax(0,1.09fr);
  gap: clamp(1.5rem,5vw,5.5rem);
  align-items: center;
  min-height: clamp(30rem,69svh,47rem);
  padding-block: clamp(2.3rem,5vw,4.7rem);
}
.atlas-chapter:nth-of-type(even) .atlas-chapter-layout { grid-template-columns: minmax(0,1.09fr) minmax(0,.91fr); }
.atlas-chapter:nth-of-type(even) .atlas-chapter-copy { grid-column: 2; grid-row: 1; }
.atlas-chapter:nth-of-type(even) .atlas-study { grid-column: 1; grid-row: 1; }
.atlas-chapter-copy { min-width: 0; }
.atlas-chapter-copy h3 { font-size: clamp(2.85rem,6.4vw,6.7rem); text-wrap: balance; overflow-wrap: anywhere; }
.atlas-chapter-copy p { max-width: 36ch; margin-block-start: .95rem; color: #4b3852; }
.atlas-procedures { list-style: none; margin: 1.3rem 0 1rem; padding: 0; }
.atlas-procedures li { border-block-start: 1px solid #a48cae88; }
.atlas-procedures li:last-child { border-bottom: 1px solid #a48cae88; }
.atlas-procedures a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  min-height: 2.8rem;
  padding: .4rem .34rem;
  font-weight: 620;
  text-decoration-color: transparent;
}
.atlas-procedures a::after {
  content: "";
  flex: none;
  width: .54rem;
  height: .54rem;
  margin-inline-end: .38rem;
  border: solid var(--chapter-deep);
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
  transition: translate .24s var(--ease);
}
.atlas-procedures a:is(:hover,:focus-visible)::after { translate: .2rem; }
.atlas-procedures a:is(:hover,:focus-visible) { text-decoration-color: var(--accent); background: #ffffff55; }
.atlas-study { position: relative; min-width: 0; }
.atlas-study-field {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(18rem,35vw,31.5rem);
  background: linear-gradient(145deg,var(--chapter-frame) 1%,var(--chapter-light) 47%,var(--chapter-frame) 100%);
  clip-path: polygon(var(--chapter-angle) 0,100% 0,100% 81%,84% 100%,0 100%,0 21%);
}
.atlas-study-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(142deg,transparent 16%,var(--chapter-deep) 16% 17%,transparent 17% 62%,var(--chapter-deep) 62%);
  opacity: .25;
}
.atlas-study-field::after {
  content: "";
  position: absolute;
  inset: 8% 10%;
  z-index: -1;
  border: 1px solid var(--chapter-deep);
  clip-path: polygon(25% 0,100% 0,100% 83%,83% 100%,0 100%,0 25%);
  background: linear-gradient(150deg,#faf1f981,#faf2f718);
}
.atlas-study-field .body-chart {
  position: relative;
  max-width: 79%;
  margin-inline: auto;
  min-height: inherit;
}
.atlas-summary { padding-block: 1.45rem 2rem; background: #f6f0f8; }
.atlas-summary .wrap { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.atlas-enhanced.home-motion .atlas-study-field {
  clip-path: polygon(
    calc(var(--chapter-angle) + (1 - var(--chapter-enter)) * 31%) 0,
    100% 0,100% 81%,84% 100%,calc((1 - var(--chapter-enter)) * 23%) 100%,0 21%
  );
  transform: translate3d(calc((1 - var(--chapter-enter)) * 9%),calc((1 - var(--chapter-enter)) * 7%),0)
             scale(calc(.86 + .14 * var(--chapter-enter)));
  transform-origin: 70% 48%;
}
.atlas-enhanced.home-motion .atlas-study-field::before {
  transform: translateX(calc((1 - var(--chapter-enter)) * 32%));
}
.atlas-enhanced.home-motion .atlas-study-field canvas {
  transform: translateY(calc((1 - var(--chapter-enter)) * 7%)) scale(calc(.88 + .12 * var(--chapter-enter)));
}

.treatment-mast {
  background: linear-gradient(124deg,var(--chapter-paper) 30%,var(--chapter-light) 100%);
  border-color: var(--chapter-frame);
}
.treatment-lead {
  display: grid;
  grid-template-columns: minmax(0,1.16fr) minmax(0,.84fr);
  gap: clamp(1rem,2.7vw,2.6rem) clamp(1.25rem,4.1vw,4.3rem);
  padding-block: clamp(1.4rem,4vw,3.8rem) clamp(2.25rem,5vw,5.25rem);
}
.treatment-copy h1 { font-size: clamp(2.65rem,12.2cqi,6.5rem); text-wrap: balance; overflow-wrap: anywhere; }
.treatment-copy .lede { max-width: 44ch; }
.treatment-return {
  display: inline-flex;
  align-items: baseline;
  gap: .55em;
  margin-bottom: .8rem;
  padding-block: .25rem;
  color: var(--chapter-deep);
  font-size: .88rem;
  font-weight: 700;
}
.treatment-study { grid-area: 1 / 2 / span 2; align-self: center; }
.treatment-study .atlas-study-field { min-height: clamp(16rem,31vw,29rem); }
.treatment-summary { display: flex; flex-wrap: wrap; gap: .85rem 1.1rem; align-items: center; }
.treatment-cost {
  display: grid;
  flex: 1 1 13rem;
  gap: .18rem;
  min-width: 0;
  max-width: 18rem;
  padding: .7rem .9rem;
  border: 1px solid var(--chapter-frame);
  border-inline-start: .23rem solid var(--chapter-deep);
  color: var(--ink);
  background: #fffaffc9;
  text-decoration: none;
}
.treatment-cost:hover { background: #fffaff; border-color: var(--chapter-deep); }
.treatment-cost > span { font-size: .875rem; color: var(--muted); }
.treatment-cost strong { font-size: clamp(1.13rem,1.85vw,1.5rem); line-height: 1.27; }
.treatment-cost .treatment-cost-details { color: var(--accent); text-decoration: underline; }
.treatment-contact { display: grid; justify-items: start; gap: .3rem; }
.treatment-contact .text-link { padding-block: .25rem; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  [data-atlas-snapshot] { view-transition-name: atlas-study; }
  ::view-transition-group(atlas-study) {
    z-index: 2;
    animation-duration: .65s;
    animation-timing-function: var(--ease);
  }
  :root[data-atlas-direction]::view-transition { overflow: clip; }
  ::view-transition-old(atlas-study), ::view-transition-new(atlas-study) {
    height: 100%;
    mix-blend-mode: normal;
  }
  ::view-transition-old(atlas-study) { animation: none; }
  :root[data-atlas-direction]::view-transition-old(root) {
    mix-blend-mode: normal;
    animation: atlas-page-recede .65s var(--ease) both;
  }
  :root[data-atlas-direction]::view-transition-new(root), ::view-transition-new(atlas-study) {
    mix-blend-mode: normal;
    animation: atlas-page-enter .65s var(--ease) both;
  }
  :root[data-atlas-direction="return"]::view-transition-new(root),
  :root[data-atlas-direction="return"]::view-transition-new(atlas-study) { animation-name: atlas-page-return; }
}
@keyframes atlas-page-recede {
  to { transform: scale(1.03); filter: brightness(.82); }
}
@keyframes atlas-page-enter {
  from { clip-path: polygon(92% 0,100% 0,100% 100%,67% 100%); }
  to { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
}
@keyframes atlas-page-return {
  from { clip-path: polygon(0 0,20% 0,5% 100%,0 100%); }
  to { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
}
@media (min-width: 56.01rem) {
  .atlas-enhanced .atlas-scene { margin-inline-start: calc(-1 * var(--rail-width)); }
  .atlas-top-nav { --compact-bar-height: var(--atlas-header-height); }
  .atlas-top-nav .site-header { inset: 0 0 auto; width: auto; border-inline: 0; border-bottom: 1px solid #815d8e; }
  .atlas-top-nav .rail-inner { min-height: var(--atlas-header-height); max-height: none; padding: 0; overflow: visible; }
  .atlas-top-nav .rail-head {
    min-height: var(--atlas-header-height);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .23rem var(--gutter);
  }
  .atlas-top-nav .brand-wordmark small { display: none; }
  .atlas-top-nav .atlas-bar-link { display: flex; align-items: center; min-height: 2.75rem; margin-inline-start: auto; color: #f5eaf8; text-decoration-color: #b897c3; font-weight: 620; font-size: .93rem; }
  .atlas-top-nav .atlas-bar-link:hover { color: var(--highlight); }
  .atlas-top-nav #main-nav {
    inset: 100% 0 auto auto;
    border-inline: .18rem solid #d4df99;
    transform: translateY(-1.8rem);
    clip-path: polygon(0 0,100% 0,100% 0,0 9%);
  }
  .atlas-top-nav #main-nav.has-opened {
    transition: transform .44s var(--ease),clip-path .51s var(--ease),visibility 0s .51s;
  }
  .atlas-top-nav #main-nav.is-open { transform: none; clip-path: polygon(0 0,100% 0,100% 100%,0 100%); transition-delay: 0s; }
  .home-motion.atlas-top-nav .rail-head { animation: atlas-header-cut .49s var(--ease) both; }
}
@keyframes atlas-header-cut {
  from { clip-path: polygon(0 0,100% 0,100% 0,0 36%); transform: translateY(-.52rem); }
  to { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); transform: none; }
}
@media (max-width: 56rem) { .atlas-scene { --atlas-offset: var(--nav-height); scroll-margin-block-start: 0; } .atlas-chapter { scroll-margin-block-start: 3.65rem; } }
@media (max-width: 45rem) {
  .atlas-directory-inner { width: calc(100% - 1rem); gap: .25rem; }
  .atlas-chapter-links { gap: .12rem; }
  .atlas-chapter-links a { min-height: 2.9rem; padding-inline: .55rem; }
  .atlas-skip { padding-inline: .26rem; font-size: .82rem; }
  .atlas-chapter-layout, .atlas-chapter:nth-of-type(even) .atlas-chapter-layout { grid-template-columns: 1fr; gap: 1.35rem; min-height: 0; }
  .atlas-chapter:nth-of-type(even) .atlas-chapter-copy, .atlas-chapter:nth-of-type(even) .atlas-study { grid-area: auto; }
  .atlas-study-field { min-height: clamp(12.5rem,55vw,21rem); }
  .treatment-lead { grid-template-columns: minmax(0,1fr); }
  .treatment-mast .crumbs [aria-current="page"] { display: none; }
  .treatment-mast .crumbs li:nth-last-child(2)::after { content: none; }
  .treatment-study { grid-area: auto; }
  .treatment-study .atlas-study-field { min-height: clamp(9rem,38vw,15rem); }
  .treatment-cost { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-scene .cut-enhanced .atlas-shutter { position: static; min-height: 0; }
  .atlas-procedures a::after { transition: none; }
}
