.pro-catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pro-catalog-tabs .filter-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  text-decoration: none;
}
.pro-catalog-tabs .filter-chip[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pro-bath .pro-bath-delivery {
  display: inline-block;
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid #fff7;
  border-radius: 12px;
  background: #281a12cc;
  color: #fff;
  font-size: clamp(.98rem, 1.7vw, 1.22rem);
  font-weight: 800;
}
@media (min-width: 1024px) {
  .pro-bath .pro-bath-delivery {white-space: nowrap;}
}
.pro-bath-package-copy {margin: 16px 0; font-weight: 700;}

/* The branch roots overlap the painted corner of the game card. The scene
   inside that card has its own geometry and must not anchor the ornaments. */
[data-ded-karkas-game] .dk-game__card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  --game-corner-inset: calc(var(--radius-lg) * .38);
}
[data-ded-karkas-game] .dk-game__card::before,
[data-ded-karkas-game] .dk-game__card::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: -6px;
  width: clamp(36px, 8%, 78px);
  height: auto;
  aspect-ratio: 460 / 358;
  pointer-events: none;
  background: right top / 100% 100% no-repeat;
  filter: none;
}
[data-ded-karkas-game] .dk-game__card::before {
  left: var(--game-corner-inset);
  background-image: url('./ornament-birch-corner-v3.webp');
  transform: scaleX(-1);
}
[data-ded-karkas-game] .dk-game__card::after {
  right: var(--game-corner-inset);
  background-image: url('./ornament-rowan-corner-v3.webp');
}

.comparison-table--bath :is(.comparison-table__head, .comparison-table__row) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  min-width: 0;
}

.comparison-table--bath .comparison-table__row--actions > div {
  display: flex;
  justify-content: center;
}

.comparison-table--bath.comparison-table--desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .comparison-table--bath.comparison-table--desktop-only {
    display: block;
  }

  .pro-bath-package {
    display: none;
  }
}

.pro-bath-package .comparison-column__list {
  grid-template-columns: 1fr;
}

.pro-bath-package .bath-package__footer {
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}

:is(.pro-bath-package, .comparison-columns) .comparison-column__list {
  gap: 0;
}

:is(.pro-bath-package, .comparison-columns) .comparison-column__list > div {
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:is(.pro-bath-package, .comparison-columns) .comparison-column__list > div + div {
  border-top: 1px solid var(--line-strong);
}

:is(.pro-bath-package, .comparison-columns) .comparison-column__list :is(dt, dd) {
  text-align: start;
  font-size: 1rem;
}

.pro-bath-package .comparison-column__price {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

/* Keep the embedded top-right wordmark clear on Ryabinka covers and photos. */
.project-card:has(> .project-card__media img[src*="/web-v2/"])::after,
.project-hero .project-media:has([data-gallery-main] img[src*="/web-v2/"])::after {
  content: none;
}

/* Clip the gallery contents separately so the ornaments can sit on the frame. */
.project-card__body {
  border-end-start-radius: inherit;
  border-end-end-radius: inherit;
}

.project-hero .project-media--gallery-first > .gallery-showcase {
  min-width: 0;
  border-radius: inherit;
  overflow: hidden;
}

.project-hero .project-media--gallery-first .gallery-showcase__viewer {
  border-radius: 0;
}

.project-media--gallery-first .gallery-showcase__main img[data-gallery-fit="cover"] {
  padding: 0;
  border: 0;
}

.gallery-showcase__main img[data-gallery-position="right top"] {
  object-position: right top;
}

.container[data-catalog-root] > .catalog-filter-bar {
  top: calc(var(--catalog-sticky-top, 125px) + 8px);
  padding: 6px 8px;
  border-radius: 16px;
  background: var(--surface);
}
