@font-face {
  font-family: "Onest";
  src: url("./assets/fonts/Onest-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap
}

@font-face {
  font-family: "Gros Ventre";
  src: url("./assets/fonts/Gros-Ventre-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap
}

:root {
  --ink: #0b0b0b;
  --paper: #f8f6f6;
  --shadow: 2px 2px 16px -4px rgb(0 0 0/.12)
}

* {
  box-sizing: border-box
}

html {
  background: var(--paper)
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Onest", Arial, Helvetica, sans-serif
}

button,
a {
  font: inherit
}

.home-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 502px minmax(0, 1fr);
  gap: 80px;
  padding: 40px
}

.profile-card {
  min-height: calc(100vh - 80px);
  padding: 40px;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 24px
}

.avatar {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  object-fit: cover
}

.profile-head h1 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.3
}

.profile-head p,
.profile-section p {
  margin: 0;
  font-size: 18px;
  line-height: 1.28
}

.profile-head p {
  color: #595959
}

.profile-section {
  margin-top: 40px
}

.profile-section h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.1
}

.experience dl {
  margin: 0
}

.experience dl>div {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 24px;
  margin-top: 8px
}

.experience dt,
.experience dd {
  margin: 0;
  font-size: 18px
}

.about p {
  max-width: 400px
}

.contact-stack {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-top: 32px
}

.contact-button {
  min-height: 61px;
  border: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer
}

.contact-button img {
  width: 24px;
  height: 24px
}

.telegram {
  background: #52ace5;
  color: #fff
}

.vk {
  background: #087bff;
  color: #fff
}

.email {
  background: #fff;
  color: #7c00ff;
  border: 2px solid #7c00ff
}

.cases {
  max-width: 1218px;
  width: 100%;
  justify-self: center
}

.cases>h2 {
  margin: -4px 0 24px;
  font-size: clamp(64px, 7vw, 96px);
  line-height: 1.1;
  text-align: center;
  letter-spacing: -.04em;
  font-weight: 700
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px
}

.case-card {
  position: relative;
  min-height: 219px;
  padding: 16px;
  border-radius: 32px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  grid-template-rows: 118px 2px 39px;
  column-gap: 8px;
  row-gap: 12px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 2px 8px 24px -6px rgb(0 0 0/.18)
}

.case-card:focus-visible {
  outline: 3px solid #2128ff;
  outline-offset: 4px
}

.pies {
  background: #fbf6e3
}

.wildberries {
  background: #f5dcfb
}

.case-copy {
  align-self: center
}

.case-copy h3 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.1
}

.case-copy p {
  margin: 0;
  max-width: 440px;
  font-size: 18px;
  line-height: 1.28
}

.case-art {
  position: relative;
  width: 118px;
  height: 118px
}

.case-art img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.pie-art {
  transform: rotate(7deg) scale(1.16)
}

.wb-art {
  transform: scale(.92)
}

.case-divider {
  grid-column: 1/-1;
  height: 2px;
  border-radius: 99px;
  background: rgb(0 0 0/.15)
}

.case-tags {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 6px
}

.tag {
  display: inline-flex;
  border: 1px dashed currentColor;
  border-radius: 999px;
  padding: 7px 12px 5px;
  font-size: 18px;
  line-height: 1
}

.tag-blue {
  color: #2128ff
}

.tag-green {
  color: #2d7b4f
}

.tag-pink {
  color: #d400fa
}

@media(max-width:1180px) {
  .home-shell {
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 40px
  }

  .case-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:760px) {
  .home-shell {
    display: block;
    padding: 16px
  }

  .profile-card {
    min-height: auto;
    padding: 24px;
    border-radius: 24px
  }

  .profile-head {
    gap: 8px
  }

  .avatar {
    width: 84px;
    height: 84px
  }

  .profile-head h1 {
    font-size: 18px
  }

  .profile-head p,
  .profile-section p,
  .experience dt,
  .experience dd {
    font-size: 16px
  }

  .profile-section {
    margin-top: 24px
  }

  .profile-section h2 {
    font-size: 22px;
    margin-bottom: 12px
  }

  .experience dl>div {
    grid-template-columns: 110px 1fr;
    gap: 18px
  }

  .contact-stack {
    padding-top: 24px
  }

  .contact-button {
    min-height: 54px
  }

  .cases {
    padding: 28px 0 24px
  }

  .cases>h2 {
    margin: 0 16px 12px;
    font-size: 40px;
    text-align: left
  }

  .case-grid {
    gap: 24px
  }

  .case-card {
    min-height: 175px;
    grid-template-columns: minmax(0, 1fr) 76px;
    grid-template-rows: 98px 2px 29px;
    padding: 16px;
    border-radius: 24px
  }

  .case-copy h3 {
    font-size: 20px
  }

  .case-copy p {
    font-size: 16px
  }

  .case-art {
    width: 76px;
    height: 76px
  }

  .tag {
    font-size: 14px;
    padding: 6px 9px 4px
  }
}

.case-body {
  min-height: 100vh
}

.pies-page {
  background: #f5f3f1
}

.wb-page {
  background: #6500b9 url("./assets/wb/imgGroup24.svg") center top/cover repeat-y;
  color: #fff
}

.case-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 125px;
  padding: 32px max(24px, calc((100vw - 1200px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #000;
  border-radius: 0 0 40px 40px
}

.case-header strong {
  font-size: 32px
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
  text-decoration: none;
  font-size: 24px;
  font-weight: 600
}

.back-link img {
  width: 24px;
  height: 24px
}

.case-main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 72px
}

.case-intro {
  width: min(724px, 100%);
  margin: 0 auto 96px;
  text-align: center
}

.case-intro h1,
.case-section>h2 {
  margin: 0 0 24px;
  font-size: 56px;
  line-height: 1.1
}

.case-intro p {
  font-size: 18px;
  line-height: 1.3
}

.case-section {
  margin-top: 96px;
  text-align: center
}

.accordion-stack {
  display: grid;
  gap: 8px;
  max-width: 1062px;
  margin: 0 auto
}

.accordion-stack details {
  background: #fff;
  color: #000;
  border: 1px solid rgb(0 0 0/.05);
  border-radius: 24px;
  padding: 24px;
  text-align: left
}

.accordion-stack summary {
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  list-style: none
}

.accordion-stack summary::after {
  content: "⌄";
  margin-left: 8px
}

.accordion-stack details p {
  font-size: 18px;
  line-height: 1.45
}

.insight {
  margin: 24px auto 0;
  max-width: 806px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px
}

.insight img {
  width: 32px;
  height: 32px
}

.features {
  display: grid;
  gap: 48px
}

.feature {
  padding-bottom: 48px;
  border-bottom: 2px solid rgb(72 52 1/.05)
}

.feature:last-child {
  border-bottom: 0
}

.feature h3 {
  font-size: 32px;
  margin: 0 0 32px
}

.feature>p {
  max-width: 752px;
  margin: 32px auto 0;
  padding: 20px 24px;
  border-radius: 24px;
  background: rgb(255 215 0/.25);
  font-size: 18px
}

.image-stage {
  width: min(1010px, 100%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center
}

.image-stage>img {
  display: block;
  max-width: 100%;
  max-height: 650px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: var(--shadow)
}

.image-stage.two-up {
  gap: 16px
}

.image-stage.two-up img {
  width: calc(50% - 8px)
}

.before-after>img:not(.down-arrow) {
  display: block;
  width: 100%;
  border-radius: 48px;
  box-shadow: var(--shadow)
}

.before-after .down-arrow {
  width: 64px;
  height: 64px;
  margin: 24px;
  transform: rotate(90deg)
}

.metrics {
  width: min(600px, 100%);
  margin: auto;
  display: grid;
  gap: 12px
}

.metrics>div {
  padding: 16px 24px;
  border-radius: 24px;
  background: #bfe8ff;
  color: #000;
  text-align: left;
  box-shadow: var(--shadow)
}

.metrics h3 {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid rgb(0 0 0/.15);
  font-size: 32px
}

.metrics small {
  font-size: 16px;
  color: rgb(0 0 0/.6);
  font-weight: 400
}

.metrics p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 0;
  font-size: 18px
}

.metrics p img {
  width: 22px
}

.scale-grid {
  width: min(900px, 100%);
  margin: auto;
  display: grid;
  gap: 48px
}

.scale figure {
  margin: 0
}

.scale figure>img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 40px
}

.scale figcaption {
  display: grid;
  gap: 8px;
  margin-top: 8px
}

.scale figcaption b {
  font-size: 32px
}

.scale figcaption span {
  font-size: 18px;
  line-height: 1.3
}

.case-footer {
  margin-top: 96px;
  display: flex;
  justify-content: center;
  gap: 16px
}

.case-footer a,
.case-footer button {
  border: 0;
  border-radius: 16px;
  padding: 18px 24px;
  text-decoration: none;
  background: #6500b9;
  color: #fff;
  cursor: pointer
}

.wb-page .case-intro,
.wb-page .case-section {
  color: #fff
}

.wb-features .feature {
  border-color: rgb(255 255 255/.18)
}

.wb-features .feature>p {
  background: rgb(255 255 255/.18);
  color: #fff
}

.cascade {
  position: relative;
  height: 607px;
  background: rgb(0 0 0/.3);
  border-radius: 38px;
  overflow: hidden
}

.cascade img {
  position: absolute;
  width: 55%;
  max-height: none
}

.cascade img:nth-child(1) {
  left: 2%;
  top: 4%
}

.cascade img:nth-child(2) {
  left: 18%;
  top: 20%
}

.cascade img:nth-child(3) {
  left: 34%;
  top: 36%
}

.cascade img:nth-child(4) {
  left: 44%;
  top: 52%
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center
}

.compare.three {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.compare figure {
  margin: 0;
  position: relative
}

.compare img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow)
}

.compare figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #b5ff2a;
  color: #000;
  font-weight: 700
}

.wb-features blockquote {
  max-width: 850px;
  margin: 32px auto 0;
  padding: 24px;
  border-radius: 24px;
  background: #b5ff2a;
  color: #000;
  font-weight: 700
}

.wb-page .metrics>div {
  background: #b5ff2a
}

.wb-scale {
  width: min(900px, 100%);
  margin-left: auto;
  margin-right: auto
}

.wb-scale details {
  border: 1px solid rgb(255 255 255/.3);
  border-radius: 16px;
  padding: 18px 24px;
  text-align: left
}

.wb-scale details+details {
  margin-top: 8px
}

.wb-scale summary {
  cursor: pointer;
  font-size: 18px
}

.wb-page .case-footer a,
.wb-page .case-footer button {
  background: #fff;
  color: #6500b9
}

@media(max-width:760px) {
  .case-header {
    min-height: 100px;
    padding: 40px 16px 16px;
    border-radius: 0
  }

  .case-header strong {
    font-size: 18px
  }

  .back-link {
    font-size: 0;
    padding: 10px
  }

  .back-link img {
    width: 24px
  }

  .case-main {
    width: calc(100% - 32px);
    padding: 64px 0 40px
  }

  .case-intro {
    margin-bottom: 64px
  }

  .case-intro h1,
  .case-section>h2 {
    font-size: 36px
  }

  .case-intro p,
  .feature>p,
  .scale figcaption span {
    font-size: 16px
  }

  .case-section {
    margin-top: 64px
  }

  .accordion-stack details {
    padding: 16px;
    border-radius: 16px
  }

  .accordion-stack summary {
    font-size: 20px
  }

  .feature {
    padding-bottom: 32px
  }

  .feature h3,
  .scale figcaption b {
    font-size: 26px
  }

  .image-stage.two-up,
  .compare,
  .compare.three {
    grid-template-columns: 1fr;
    display: grid
  }

  .image-stage.two-up img {
    width: 100%
  }

  .cascade {
    height: 420px
  }

  .cascade img {
    width: 76%
  }

  .before-after>img:not(.down-arrow) {
    border-radius: 24px
  }

  .metrics h3 {
    font-size: 26px
  }

  .scale figure>img {
    height: 270px;
    border-radius: 24px
  }

  .case-footer {
    flex-direction: column
  }

  .case-footer a,
  .case-footer button {
    text-align: center
  }

  .wb-page {
    background-size: auto 1200px
  }
}

.mobile-profile {
  display: none
}

@media(max-width:760px) {
  .desktop-profile {
    display: none
  }

  .mobile-profile {
    display: block;
    margin-top: 24px
  }

  .mobile-profile details {
    border: 0
  }

  .mobile-profile details+details {
    margin-top: 8px
  }

  .mobile-profile summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    list-style: none
  }

  .mobile-profile summary::after {
    content: "";
    width: 24px;
    height: 24px;
    margin-left: auto;
    flex: 0 0 24px;
    background: url("./assets/pirogi/imgChevronDown.svg?v=20260927-2") center/24px 24px no-repeat;
    transition: transform .2s ease
  }

  .mobile-profile details[open] summary::after {
    transform: rotate(180deg)
  }

  .mobile-profile p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.35
  }
}

/* Card content can wrap at narrower desktop widths without crossing the divider. */
.case-card {
  grid-template-rows: minmax(118px, auto) 2px 39px
}

.case-art {
  align-self: center
}

@media(max-width:760px) {
  .case-card {
    grid-template-rows: minmax(98px, auto) 2px 29px
  }
}

@media(max-width:760px) {
  .case-card {
    grid-template-columns: minmax(0, 1fr) 48px;
    column-gap: 4px
  }

  .case-copy p {
    max-width: 260px
  }

  .case-art {
    width: 48px;
    height: 48px
  }
}

/* Figma-accurate Pirogi details. */
.accordion-stack summary {
  display: flex;
  align-items: center;
  font-weight: 500
}

.accordion-stack summary::after {
  content: "";
  width: 24px;
  height: 24px;
  margin-left: auto;
  flex: 0 0 24px;
  background: url("./assets/pirogi/imgChevronDown.svg?v=20260927-2") center/24px 24px no-repeat;
  transition: transform .2s ease
}

.accordion-stack details[open] summary::after {
  transform: rotate(180deg)
}

.crop {
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow)
}

.crop img {
  position: absolute;
  display: block;
  max-width: none
}

.counter-crops {
  display: grid;
  grid-template-columns: 258fr 397fr 258fr;
  gap: 48px;
  align-items: center
}

.counter-crops .crop {
  width: 100%;
  border-radius: 16px
}

.counter-one {
  aspect-ratio: 258/266
}

.counter-three {
  aspect-ratio: 258/265
}

.counter-two {
  aspect-ratio: 397/408
}

.counter-one img,
.counter-three img {
  height: 102.37%;
  top: -.71%;
  width: 337.71%
}

.counter-one img {
  left: -1.7%
}

.counter-two img {
  height: 102.37%;
  left: -118.2%;
  top: -.71%;
  width: 336.89%
}

.counter-three img {
  left: -235.52%
}

.personalization-stage {
  width: min(850px, 100%);
  min-height: 610px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.tag-crops {
  display: grid;
  gap: 16px
}

.tag-crop-row {
  display: flex;
  justify-content: center;
  gap: 16px
}

.tag-crop-row .crop {
  height: 64px;
  border-radius: 999px
}

.tag-one {
  width: 186px
}

.tag-two {
  width: 128px
}

.tag-three {
  width: 191px
}

.tag-four {
  width: 213px
}

.tag-five {
  width: 236px
}

.tag-one img {
  height: 606.46%;
  left: -5.73%;
  top: -254.75%;
  width: 135.42%
}

.tag-two img {
  height: 606.46%;
  left: -8.33%;
  top: -12.32%;
  width: 196.97%
}

.tag-three img {
  height: 606.46%;
  left: -5.58%;
  top: -133.54%;
  width: 131.98%
}

.tag-four img {
  height: 606.46%;
  left: -5%;
  top: -497.17%;
  width: 118.18%
}

.tag-five img {
  height: 606.46%;
  left: -4.53%;
  top: -375.96%;
  width: 107%
}

.personal-screen {
  display: block;
  width: 351.732px;
  max-width: 100%;
  height: 432.76px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow)
}

.basket-crops {
  display: grid;
  grid-template-columns: 320fr 351fr 320fr;
  gap: 10px;
  align-items: center
}

.basket-crops .crop {
  width: 100%;
  border-radius: 16px
}

.basket-one,
.basket-three {
  aspect-ratio: 2/3
}

.basket-two {
  aspect-ratio: 351/528
}

.basket-one img {
  height: 102.51%;
  left: -104.87%;
  top: -1.31%;
  width: 207.51%
}

.basket-two img {
  height: 101.14%;
  left: -1.62%;
  top: -.57%;
  width: 208.38%
}

.basket-three img {
  height: 101.14%;
  left: -106.87%;
  top: -.57%;
  width: 208.03%
}

.scale-grid {
  gap: 80px
}

.scale figcaption span {
  width: min(644px, 100%);
  margin-inline: auto
}

.pies-page .case-footer a,
.pies-page .case-footer button {
  padding: 16px 24px 14px;
  font-size: 24px;
  line-height: 1.3
}

.pies-page .case-footer button {
  background: #5b00ff;
  color: #fff;
  font-weight: 700
}

.pies-page .case-footer a {
  background: transparent;
  color: #000;
  font-weight: 500
}

.case-mobile-break {
  display: none
}

@media(max-width:760px) {
  .counter-crops {
    gap: 10px
  }

  .tag-crops {
    width: 100%;
    gap: 10px
  }

  .tag-crop-row {
    gap: 10px
  }

  .tag-crop-row .crop {
    height: auto;
    aspect-ratio: 3/1
  }

  .tag-one,
  .tag-two,
  .tag-three,
  .tag-four,
  .tag-five {
    min-width: 0;
    flex: 1
  }

  .personalization-stage {
    min-height: 0
  }

  .personal-screen {
    height: auto
  }

  .basket-crops {
    gap: 5px
  }

  .scale-grid {
    gap: 64px
  }

  .pies-page .case-footer a,
  .pies-page .case-footer button {
    font-size: 18px
  }
}

/* Native counter crops already contain the complete outline. */
.counter-crops .crop::after {
  content: none !important;
  border: 0 !important
}

.counter-crops .crop img {
  border-radius: 0 !important
}

/* Mobile layouts matched to the 390 px Figma frames. Desktop styles stay untouched. */
@media(max-width:760px) {
  body {
    overflow-x: hidden
  }

  /* Home */
  .home-shell {
    padding: 40px 16px
  }

  .profile-card {
    min-height: 524px;
    padding: 24px;
    border-radius: 32px
  }

  .cases {
    padding: 32px 0 0
  }

  .cases>h2 {
    margin: 0 16px 9px;
    font-size: 40px;
    line-height: 1.1
  }

  .case-grid {
    gap: 24px
  }

  .case-card {
    min-height: 175px
  }

  /* Shared case-page geometry */
  .case-header {
    min-height: 100px;
    padding: 40px 16px 16px;
    border-radius: 0 0 32px 32px
  }

  .case-header strong {
    font-size: 20px;
    line-height: 1.1
  }

  .back-link {
    gap: 4px;
    padding: 10px 0;
    font-size: 16px;
    line-height: 1;
    font-weight: 700
  }

  .case-main {
    width: calc(100% - 32px);
    padding: 64px 0 40px
  }

  .case-intro {
    margin: 0 auto 64px
  }

  .case-intro h1,
  .case-section>h2 {
    margin: 0 0 16px;
    font-size: 32px;
    line-height: 1.28
  }

  .case-intro p {
    margin: 0;
    font-size: 16px;
    line-height: 1.3
  }

  .case-section {
    margin-top: 64px
  }

  .accordion-stack {
    gap: 4px
  }

  .accordion-stack details,
  .research .accordion-stack details {
    padding: 16px;
    border-radius: 20px
  }

  .accordion-stack summary,
  .research .accordion-stack summary {
    font-size: 20px;
    line-height: 1.3
  }

  .features {
    gap: 24px
  }

  .feature {
    padding-bottom: 24px
  }

  .feature h3 {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 1.3
  }

  /* Pirogi */
  .pies-page .feature>p {
    width: min(313px, 100%);
    margin: 16px auto 0;
    padding: 8px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.3
  }

  .pies-page .counter-crops {
    width: 326px;
    grid-template-columns: 90px 128px 90px;
    gap: 8px
  }

  .pies-page .personalization-stage {
    width: 358px;
    gap: 16px
  }

  .pies-page .tag-crops {
    gap: 8px
  }

  .pies-page .tag-crop-row {
    gap: 8px
  }

  .pies-page .tag-crop-row .crop {
    height: 42px;
    flex: none
  }

  .pies-page .tag-one {
    width: 122px
  }

  .pies-page .tag-two {
    width: 84px
  }

  .pies-page .tag-three {
    width: 125px
  }

  .pies-page .tag-four {
    width: 140px
  }

  .pies-page .tag-five {
    width: 155px
  }

  .pies-page .personal-screen {
    width: 286px;
    height: 354px;
    border-radius: 8px
  }

  .pies-page .basket-crops {
    width: max-content;
    max-width: none;
    grid-template-columns: 251px 276px 251px;
    gap: 8px;
    justify-content: center
  }

  .pies-page .before-shot {
    height: 215px;
    aspect-ratio: auto;
    border-radius: 8px
  }

  .pies-page .before-after .down-arrow {
    width: 24px;
    height: 24px;
    margin: 12px
  }

  .pies-page .metrics {
    gap: 12px
  }

  .pies-page .metrics>div {
    padding: 12px 24px;
    border-radius: 16px
  }

  .pies-page .metrics h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    font-size: 20px;
    line-height: 1.3
  }

  .pies-page .metrics small {
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap
  }

  .pies-page .metrics p {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.25
  }

  .pies-page .metrics p img {
    width: 14px;
    height: 14px
  }

  .pies-page .scale-grid {
    gap: 48px
  }

  .pies-page .scale figure>img {
    height: auto;
    aspect-ratio: 2/1;
    border-radius: 24px
  }

  .pies-page .scale figcaption {
    gap: 4px;
    margin-top: 8px
  }

  .pies-page .scale figcaption b {
    font-size: 20px;
    line-height: 1.3
  }

  .pies-page .scale figcaption span {
    font-size: 14px;
    line-height: 1.3
  }

  .pies-page .case-footer {
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-top: 64px
  }

  .pies-page .case-footer a,
  .pies-page .case-footer button {
    padding: 15px 24px 14px;
    font-size: 16px;
    white-space: nowrap
  }

  .pies-page .mindsets {
    gap: 12px
  }

  .pies-page .mindsets>div {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 16px
  }

  .pies-page .mindset-portrait {
    width: 80px;
    height: 80px;
    aspect-ratio: auto;
    border-radius: 12px
  }

  .pies-page .mindset-copy {
    gap: 8px;
    margin: 0
  }

  .pies-page .mindsets b {
    font-size: 16px
  }

  .pies-page .mindsets span {
    font-size: 14px
  }

  .problem-pill {
    padding: 16px;
    border-radius: 24px;
    font-size: 16px
  }

  .insight {
    gap: 4px;
    font-size: 12px;
    line-height: 1.3
  }

  .insight img {
    flex: 0 0 32px
  }

  /* Wildberries */
  .wb-page .case-intro p {
    text-align: left
  }

  .wb-features {
    gap: 40px
  }

  .wb-features .feature {
    padding-bottom: 0
  }

  .wb-features .feature>p,
  .wb-features .feature>.feature-note-list {
    width: 100%;
    max-width: none;
    margin: 16px auto 0;
    padding: 10px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    box-shadow: none
  }

  .wb-features .feature:nth-child(2)>p {
    padding-inline: 10px
  }

  .wb-features .feature>.feature-note-list {
    gap: 8px;
    font-size: 16px;
    text-align: left
  }

  .wb-features .cascade {
    width: 100%;
    height: auto;
    aspect-ratio: 358/186;
    border-radius: 12px
  }

  .wb-features .cascade img {
    width: 48.883%;
    height: auto;
    aspect-ratio: 175/78;
    border-radius: 8px
  }

  .wb-features .cascade img:nth-child(1) {
    left: 3.352%;
    top: 6.452%
  }

  .wb-features .cascade img:nth-child(2) {
    left: 18.156%;
    top: 21.505%
  }

  .wb-features .cascade img:nth-child(3) {
    left: 32.961%;
    top: 36.559%
  }

  .wb-features .cascade img:nth-child(4) {
    left: 47.765%;
    top: 51.613%
  }

  .wb-before-after {
    gap: 4px
  }

  .wb-before-after figure {
    width: 342px
  }

  .wb-before-after img {
    height: 192px;
    aspect-ratio: auto;
    border-radius: 8px;
    object-fit: cover
  }

  .wb-before-after figcaption {
    right: -8px;
    bottom: -4px;
    padding: 10px;
    border-width: 2px;
    border-radius: 12px;
    font-size: 20px
  }

  .wb-before-after .compare-arrow {
    width: 24px;
    height: 24px;
    font-size: 24px
  }

  .training-stage {
    gap: 16px
  }

  .training-top {
    aspect-ratio: 1335/269
  }

  .training-row {
    grid-template-columns: 145fr 197fr;
    gap: 16px
  }

  .training-row .training-panel {
    aspect-ratio: 145/164
  }

  .training-row .training-panel:last-child {
    aspect-ratio: 197/164
  }

  .training-wide {
    aspect-ratio: 1493/840
  }

  .calculator-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 1556/876;
    margin: 0;
    border-radius: 16px
  }

  .simulator-stage>h4:first-child {
    margin-bottom: 16px;
    font-size: 20px
  }

  .simulator-stage>h4:nth-of-type(2) {
    margin-bottom: 16px;
    font-size: 16px
  }

  .simulator-stage>h4:nth-of-type(3) {
    font-size: 16px
  }

  .simulator-row {
    gap: 16px;
    margin-bottom: 40px
  }

  .simulator-row img {
    width: 100%;
    height: auto;
    border-radius: 16px
  }

  .simulator-row p {
    width: 336px;
    font-size: 16px;
    line-height: 1.3;
    text-align: left
  }

  .simulator-quote {
    width: 100%;
    height: auto;
    aspect-ratio: 2695/593;
    margin-bottom: 16px;
    border-radius: 24px;
    object-fit: cover
  }

  .statistics-compare figure:first-of-type img {
    height: 176px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: bottom
  }

  .statistics-compare figure:last-of-type img {
    height: 192px;
    aspect-ratio: auto;
    object-fit: cover
  }

  .wb-page .metrics {
    gap: 12px
  }

  .wb-page .metrics>div {
    padding: 12px 16px;
    border-radius: 16px
  }

  .wb-page .metrics h3 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #510292;
    font-size: 20px;
    line-height: 1.3
  }

  .wb-page .metrics small {
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    transform: translateY(1px)
  }

  .wb-page .metrics p {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3
  }

  .wb-scale {
    width: 100%
  }

  .wb-scale>h2 {
    margin-bottom: 16px;
    font-size: 32px
  }

  .wb-scale details {
    padding: 12px 10px;
    border-width: 1px;
    border-radius: 12px
  }

  .wb-scale details+details {
    margin-top: 8px
  }

  .wb-scale summary {
    font-size: 16px;
    line-height: 1.3
  }

  .wb-page .case-footer {
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-top: 64px
  }

  .wb-page .case-footer a,
  .wb-page .case-footer button {
    padding: 15px 24px 14px;
    font-size: 16px;
    white-space: nowrap
  }
}

/* Counter cards use individual Figma crops; preserve their native corners. */
.counter-crops .crop {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none
}

.counter-crops .crop img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: fill;
  max-width: none;
  border-radius: 0
}

.counter-crops .crop::after {
  content: none !important;
  border: 0 !important
}

.counter-crops .crop img {
  border-radius: 0 !important
}

/* Final desktop alignment with the Figma layout */
@media(min-width:761px) {
  .case-header {
    min-height: 80px;
    padding-top: 0;
    padding-bottom: 0
  }
}

/* Wildberries accordions: desktop width and mobile spacing from Figma 6071:13102. */
@media(min-width:761px) {
  .wb-page .research .accordion-stack.wb-research {
    width: 100%;
    max-width: 1200px;
    margin-left: 0;
    margin-right: 0;
  }
}

@media(max-width:760px) {
  .wb-page .wb-research details[open] {
    display: block;
    padding: 16px;
    border-radius: 20px;
  }

  .wb-page .wb-research details[open] .accordion-copy,
  .wb-page .wb-research details[open] .wb-research-copy {
    display: block;
    margin-top: 8px;
  }

  .wb-page .wb-research .accordion-copy,
  .wb-page .wb-research .accordion-copy p {
    font-size: 16px;
    line-height: normal;
  }

  .wb-page .wb-research .accordion-copy p {
    margin: 0;
  }

  .wb-page .wb-research .accordion-copy p + p {
    margin-top: 8px;
  }

  .wb-page .wb-research-copy > p:first-child + h4 {
    margin: 12px 0 8px;
  }

  .wb-page .wb-research-copy ul {
    margin: 0;
    gap: 12px;
  }

  .wb-page .wb-research-copy > ul + h4 {
    margin: 12px 0 4px;
  }

  .wb-page .wb-research-copy > h4 + p {
    margin: 0;
  }

  .wb-page .wb-research-copy > h4 + p + p {
    margin-top: 8px;
  }
}

/* Wildberries research accordions — exact spacing from Figma 6071:13102. */
@media(min-width:761px) {
  .wb-page .research .accordion-stack.wb-research {
    width: 1062px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .wb-page .research .accordion-stack.wb-research details[open] {
    display: block;
  }

  .wb-page .research .accordion-stack.wb-research details[open] .accordion-copy,
  .wb-page .research .accordion-stack.wb-research details[open] .wb-research-copy {
    display: block;
    margin-top: 16px;
  }

  .wb-page .research .accordion-stack.wb-research .accordion-copy {
    font-size: 18px;
    line-height: 1.3;
  }

  .wb-page .research .accordion-stack.wb-research .accordion-copy p {
    margin: 0;
  }

  .wb-page .research .accordion-stack.wb-research .accordion-copy p + p {
    margin-top: 12px;
  }

  .wb-page .research .accordion-stack.wb-research .wb-research-copy > p:first-child + h4 {
    margin: 12px 0 8px;
  }

  .wb-page .research .accordion-stack.wb-research .wb-research-copy ul {
    gap: 12px;
  }

  .wb-page .research .accordion-stack.wb-research .wb-research-copy > ul + h4 {
    margin: 12px 0 8px;
  }

  .wb-page .research .accordion-stack.wb-research .wb-research-copy > h4 + p {
    margin: 0;
  }

  .wb-page .research .accordion-stack.wb-research .wb-research-copy > h4 + p + p {
    margin-top: 4px;
  }
}

.wb-scale {
  width: min(1200px, 100%)
}

.wb-scale>h2 {
  font-size: 32px;
  margin-bottom: 24px
}

.wb-scale details {
  border: 1px solid #b5ff2a;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: left;
  background: rgba(47, 0, 85, .3);
  box-shadow: 4px 4px 12px 2px rgb(0 0 0/.12)
}

.wb-scale details+details {
  margin-top: 16px
}

.wb-scale summary {
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  list-style: none
}

.wb-scale summary::-webkit-details-marker {
  display: none
}

.simulator-quote {
  object-position: center top
}

.wb-page .case-footer a,
.wb-page .case-footer button {
  font-weight: 700
}

.wb-page .case-footer a:first-child {
  background: #5b00ff;
  color: #fff;
  font-weight: 700
}

.wb-page .case-footer a:last-child {
  background: transparent;
  color: #fff;
  font-weight: 500
}

.pie-art {
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center
}

.pie-art img {
  width: 112px;
  height: 71px;
  object-fit: cover;
  transform: rotate(12.76deg)
}

@media(max-width:760px) {
  .pie-art img {
    width: 48px;
    height: 31px
  }
}

/* Scaling items are informational cards, not controls. */
.wb-scale-item {
  padding: 32px 24px;
  border: 2px solid #b5ff2a;
  border-radius: 24px;
  background: rgba(47, 0, 85, .3);
  box-shadow: 4px 4px 12px 2px rgb(0 0 0/.12);
  font-size: 24px;
  font-weight: 600;
  text-align: left
}

.wb-scale-item+.wb-scale-item {
  margin-top: 16px
}

@media(max-width:760px) {
  .wb-scale-item {
    padding: 12px 10px;
    border-width: 1px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap
  }

  .wb-scale-item+.wb-scale-item {
    margin-top: 8px
  }

}

.accordion-copy p {
  margin-bottom: 8px;
  font-weight: 400
}

.accordion-copy strong {
  font-weight: 600
}

.accordion-copy ul {
  margin: 0;
  padding-left: 24px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400
}

.accordion-copy li+li {
  margin-top: 4px
}

@media(max-width:760px) {
  .accordion-copy ul {
    font-size: 16px
  }
}

.problem-pill {
  width: max-content;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 20px 28px;
  border-radius: 20px;
  background: rgb(255 215 0/.5);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3
}

.research-copy>p {
  margin: 16px 0 0
}

.mindsets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px
}

.mindsets>div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: #f5f3f1
}

.mindsets b {
  font-size: 18px
}

.mindsets span {
  font-size: 16px;
  line-height: 1.35
}

.counter-crops .counter-one,
.counter-crops .counter-three {
  border-radius: 40px
}

.counter-crops .counter-two {
  border-radius: 52px
}

.counter-crops .counter-one,
.counter-crops .counter-three {
  border: 4px solid #5a4300
}

.counter-crops .counter-one::after,
.counter-crops .counter-three::after {
  border: 0
}

.counter-crops .counter-one,
.counter-crops .counter-three {
  border: 0
}

.counter-crops .crop::after {
  border: 0
}

.counter-crops .crop img {
  border-radius: 0
}

.counter-crops .counter-one,
.counter-crops .counter-three {
  border-radius: 24px
}

.counter-crops .crop {
  isolation: isolate
}

.counter-crops .crop::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #5a4300;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2
}

.counter-crops .crop img {
  border-radius: inherit
}

.features>article:nth-child(3) .image-stage>img {
  box-shadow: none
}

.features>article:nth-child(6) .clean-stage {
  background: transparent;
  box-shadow: none
}

.tag-crop-row .crop {
  background: transparent;
  box-shadow: none
}

@media(max-width:760px) {
  .problem-pill {
    width: 100%;
    font-size: 16px
  }

  .mindsets {
    grid-template-columns: 1fr
  }

  .counter-crops .counter-one,
  .counter-crops .counter-three {
    border-radius: 18px
  }

  .counter-crops .counter-two {
    border-radius: 24px
  }
}

@media(max-width:760px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0
  }

  .feature,
  .image-stage,
  .counter-crops,
  .basket-crops,
  .personalization-stage,
  .tag-crops,
  .tag-crop-row {
    min-width: 0;
    max-width: 100%
  }

  .feature {
    width: 100%
  }

  .insight {
    width: 100%;
    align-items: flex-start;
    text-align: left
  }
}

/* Final desktop alignment with the Figma case-study layouts. */
.research .accordion-stack {
  max-width: none
}

.research .accordion-stack details {
  padding: 28px;
  border-radius: 28px
}

.research .accordion-stack summary {
  font-size: 28px;
  font-weight: 600
}

.research-copy>p {
  margin: 18px 0 0;
  font-size: 22px;
  line-height: 1.25
}

.mindsets {
  gap: 14px;
  margin-top: 26px
}

.mindsets>div {
  display: block;
  padding: 18px;
  border-radius: 28px;
  background: #f4ece4;
  text-align: left
}

.mindset-copy {
  display: grid;
  gap: 8px;
  margin-top: 12px
}

.mindsets b {
  font-size: 22px;
  line-height: 1.15
}

.mindsets span {
  font-size: 18px;
  line-height: 1.3
}

.mindset-portrait {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  object-fit: contain
}

.mindsets>div:nth-child(2) .mindset-portrait,
.mindsets>div:nth-child(3) .mindset-portrait {
  background: #ffd600
}

.mindset-portrait::before,
.mindset-portrait::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%
}

.mindset-portrait::before {
  top: 10px;
  width: 28px;
  height: 28px;
  background: #ffd0ad;
  box-shadow: 0 -7px 0 4px #5a392a
}

.mindset-portrait::after {
  bottom: -17px;
  width: 62px;
  height: 52px;
  background: #6e9ace
}

.pies-page .mindsets>div:nth-child(3) .mindset-copy>span {
  font-size: 16px;
  letter-spacing: -.02em
}

.portrait-innovator {
  background: #fff4ca
}

.portrait-innovator::before {
  box-shadow: 0 -7px 0 4px #2a2020
}

.portrait-innovator::after {
  background: #8658d6
}

.portrait-impression {
  background: #e9f6e3
}

.portrait-impression::before {
  box-shadow: 0 -7px 0 4px #c56a31
}

.portrait-impression::after {
  background: #53a56d
}

.clean-stage {
  overflow: hidden;
  border-radius: 48px;
  box-shadow: var(--shadow)
}

.clean-stage>img {
  width: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none
}

.before-shot {
  position: relative;
  width: 100%;
  aspect-ratio: 1200/675;
  overflow: hidden;
  border-radius: 48px;
  box-shadow: var(--shadow)
}

.before-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.after-shot {
  aspect-ratio: 1200/619
}

.after-shot img {
  width: 100%;
  height: 100%;
  max-width: none;
  position: static;
  object-fit: cover;
  object-position: center
}

.wb-research-copy h4 {
  margin: 20px 0 8px;
  font-size: 20px
}

.wb-research-copy ul {
  display: grid;
  gap: 12px
}

.wb-research-copy li {
  padding-left: 2px
}

.wb-research-copy li b,
.wb-research-copy li span {
  display: block
}

.wb-research-copy li span {
  color: #4e4e56
}

.wb-features .feature>p,
.feature-note-list {
  position: relative;
  z-index: 2;
  margin: -32px auto 0;
  padding: 24px 48px;
  border-radius: 24px;
  background: #d0b2ea;
  color: #000;
  font-size: 24px;
  line-height: 1.3;
  box-shadow: 4px 4px 12px 2px rgb(0 0 0/.12)
}

.wb-features .feature:nth-child(1)>p {
  width: min(702px, 100%)
}

.wb-features .feature:nth-child(2)>p {
  width: min(620px, 100%)
}

.wb-features .feature:nth-child(3)>p {
  width: min(920px, 100%);
  max-width: 920px
}

.wb-features .feature:nth-child(4)>p {
  width: min(960px, 100%);
  max-width: 960px
}

.wb-features .feature:nth-child(6)>p {
  width: min(680px, 100%)
}

.cascade {
  margin-bottom: 0
}

.cascade {
  height: auto;
  aspect-ratio: 1200/607
}

.cascade img {
  width: 50.333%;
  height: auto;
  aspect-ratio: 604/269;
  object-fit: fill;
  max-height: none
}

.cascade img:nth-child(1) {
  left: 2%;
  top: 3.95%
}

.cascade img:nth-child(2) {
  left: 17.25%;
  top: 19.93%
}

.cascade img:nth-child(3) {
  left: 32.5%;
  top: 35.75%
}

.cascade img:nth-child(4) {
  left: 47.667%;
  top: 51.73%
}

.wb-before-after {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px
}

.wb-before-after figure {
  position: relative;
  width: 96%;
  margin: 0
}

.wb-before-after img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: fill;
  object-position: center;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow)
}

.compare-image-frame {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow)
}

.wb-before-after:not(.statistics-compare) figure:first-of-type .compare-image-frame {
  background: #fafafa
}

.compare-image-frame img {
  border-radius: 0;
  box-shadow: none
}

.wb-before-after figcaption {
  position: absolute;
  right: -8px;
  bottom: -10px;
  padding: 24px 32px;
  border: 8px solid #6500b9;
  border-radius: 28px;
  background: #b5ff2a;
  color: #16032e;
  font-size: 56px;
  font-weight: 700;
  line-height: 1
}

.compare-arrow {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  font-size: 64px;
  line-height: 1
}

.training-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-bottom: 0
}

.training-stage img {
  display: block;
  max-width: none;
  border: 0;
  box-shadow: none
}

.training-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(0 0 0/.3);
  box-shadow: var(--shadow);
  background: #fff
}

.training-top {
  width: 560px;
  height: 113px;
  border-radius: 16px
}

.training-top img {
  position: absolute;
  width: 101.27%;
  height: 107.43%;
  left: -.6%;
  top: -3.72%;
  border-radius: 16px
}

.training-row {
  display: grid;
  grid-template-columns: 396px 540px;
  gap: 24px;
  width: 960px;
  height: 448px
}

.training-row .training-panel {
  height: 448px;
  border-radius: 12px
}

.training-row .training-panel:first-child img {
  position: absolute;
  width: 106.71%;
  height: 103.41%;
  left: -3.3%;
  top: -1.3%;
  border-radius: 12px
}

.training-row .training-panel:last-child img {
  position: absolute;
  width: 104.35%;
  height: 105.07%;
  left: -1.97%;
  top: -1.49%;
  border-radius: 12px
}

.training-row .training-panel:last-child {
  background: transparent;
  border: 0;
  box-shadow: none
}

.training-wide {
  width: 960px;
  height: 540px;
  border-radius: 16px
}

.training-wide img {
  position: absolute;
  width: 102.28%;
  height: 103.33%;
  left: -1.21%;
  top: -1.79%;
  border-radius: 16px
}

.calculator-placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1556/876;
  object-fit: contain;
  margin: auto -32px;
  border-radius: 38px;
  background: #fff;
  box-shadow: var(--shadow)
}

.simulator-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0
}

.simulator-stage h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3
}

.simulator-stage>h4:first-child {
  margin-bottom: 40px;
  font-size: 32px
}

.simulator-stage>h4:nth-of-type(2) {
  margin-bottom: 20px
}

.simulator-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px
}

.simulator-row img {
  width: 420px;
  height: 633px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow)
}

.simulator-row p {
  width: 383px;
  margin: 0;
  text-align: left;
  font-size: 24px;
  line-height: 1.3
}

.simulator-quote-frame {
  display: block;
  width: min(816px, 100%);
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 37px;
  background: #b5ff2a
}

.simulator-quote-frame .simulator-quote {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  clip-path: none
}

.statistics-compare {
  margin-bottom: 0
}

.statistics-compare figure:first-of-type img {
  aspect-ratio: 1152/593;
  object-fit: fill;
  object-position: center
}

.statistics-compare figure:last-of-type img {
  aspect-ratio: 1152/648
}

.statistics-compare figure:first-of-type img {
  width: calc(100% + 12px);
  max-width: none;
  clip-path: inset(0 12px 0 0 round 8px)
}

.feature-note-list {
  display: grid;
  gap: 16px;
  width: min(620px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 24px 32px;
  text-align: left
}

.wb-features .feature>p,
.wb-features .feature>.feature-note-list {
  margin-top: -32px
}

.wb-features .feature {
  border-bottom: 0
}

.wb-scale details {
  border-width: 2px;
  border-color: #b5ff2a
}

@media(max-width:760px) {
  .research .accordion-stack details {
    padding: 16px;
    border-radius: 16px
  }

  .research .accordion-stack summary {
    font-size: 20px
  }

  .research-copy>p {
    font-size: 16px
  }

  .mindsets {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px
  }

  .mindsets>div {
    padding: 14px;
    border-radius: 20px
  }

  .mindset-portrait {
    width: 100%;
    height: auto;
    border-radius: 14px
  }

  .mindsets b {
    font-size: 20px
  }

  .mindsets span {
    font-size: 16px
  }

  .clean-stage,
  .before-shot {
    border-radius: 24px
  }

  .after-shot img {
    width: 100%;
    height: 100%;
    position: static;
    object-fit: cover
  }

  .wb-features .feature>p,
  .feature-note-list {
    margin: -16px auto 0;
    padding: 18px 20px;
    font-size: 16px
  }

  .cascade {
    height: 420px;
    aspect-ratio: auto
  }

  .cascade img {
    width: 76%;
    height: auto
  }

  .cascade img:nth-child(1) {
    left: 2%;
    top: 4%
  }

  .cascade img:nth-child(2) {
    left: 14%;
    top: 20%
  }

  .cascade img:nth-child(3) {
    left: 22%;
    top: 37%
  }

  .cascade img:nth-child(4) {
    left: 22%;
    top: 54%
  }

  .wb-before-after figure {
    width: 100%;
    margin: 0
  }

  .wb-before-after figcaption {
    right: -4px;
    bottom: -8px;
    padding: 10px 14px;
    border-width: 4px;
    border-radius: 14px;
    font-size: 24px
  }

  .compare-arrow {
    width: 40px;
    height: 40px;
    font-size: 40px
  }

  .training-top,
  .training-row,
  .training-wide {
    width: 100%;
    height: auto
  }

  .training-top {
    aspect-ratio: 560/113
  }

  .training-row {
    grid-template-columns: 1fr 1.36fr;
    gap: 10px;
    height: auto
  }

  .training-row .training-panel {
    height: auto;
    aspect-ratio: 396/448
  }

  .training-row .training-panel:last-child {
    aspect-ratio: 540/448
  }

  .training-wide {
    aspect-ratio: 960/540;
    height: auto
  }

  .training-row img,
  .training-wide img {
    height: auto !important;
    aspect-ratio: auto
  }

  .calculator-placeholder {
    margin-bottom: -16px
  }

  .simulator-stage h4,
  .simulator-row p {
    font-size: 18px
  }

  .simulator-row {
    flex-direction: column
  }

  .simulator-row img {
    width: min(320px, 100%);
    height: auto
  }

  .simulator-row p {
    width: 100%;
    text-align: center
  }

  .simulator-quote {
    width: 100%;
    height: auto
  }
}

/* Native counter crops already contain the complete outline. */
.counter-crops .crop::after {
  content: none !important;
  border: 0 !important
}

.counter-crops .crop img {
  border-radius: 0 !important
}

/* Keep the Figma mobile rules last so later desktop refinements cannot override them. */
@media(max-width:760px) {
  .wb-page {
    background-size: auto 5096px;
    background-repeat: no-repeat;
    background-position: center top
  }

  .wb-page .accordion-stack summary::after {
    margin-left: auto
  }

  .case-intro h1 {
    margin-bottom: 8px
  }

  .case-title-mobile {
    display: none
  }

  .pies-page .case-title-desktop {
    display: none
  }

  .pies-page .case-title-mobile {
    display: inline
  }

  .problem-pill {
    text-align: left
  }

  .wb-features .feature>p,
  .wb-features .feature>.feature-note-list {
    width: 100%;
    max-width: none;
    margin: 16px auto 0;
    padding: 10px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.3;
    box-shadow: none
  }

  .wb-features .feature:nth-child(2)>p {
    padding-inline: 10px
  }

  .wb-features .feature>.feature-note-list {
    gap: 8px;
    font-size: 16px;
    text-align: left
  }

  .wb-before-after {
    width: 100%;
    max-width: 100%;
    gap: 4px
  }

  .wb-before-after figure {
    width: min(342px, 100%);
    margin: 0
  }

  .wb-before-after img {
    height: auto;
    aspect-ratio: auto;
    border-radius: 12px;
    object-fit: contain
  }

  .wb-before-after figcaption {
    right: -8px;
    bottom: -4px;
    padding: 10px;
    border-width: 2px;
    border-radius: 12px;
    font-size: 20px
  }

  .wb-before-after .compare-arrow {
    width: 24px;
    height: 24px;
    font-size: 0;
    background: url("./assets/wb/imgArrowNarrowRight.svg") center/24px 24px no-repeat;
    transform: rotate(90deg)
  }

  .training-stage {
    gap: 16px
  }

  .training-top {
    width: 100%;
    height: auto;
    aspect-ratio: 1335/269
  }

  .training-row {
    width: 100%;
    height: auto;
    grid-template-columns: 145fr 197fr;
    gap: 16px
  }

  .training-row .training-panel {
    height: auto;
    aspect-ratio: 145/164
  }

  .training-row .training-panel:last-child {
    aspect-ratio: 197/164
  }

  .training-wide {
    width: 100%;
    height: auto;
    aspect-ratio: 1493/840
  }

  .calculator-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 1556/876;
    margin: 0;
    border-radius: 16px
  }

  .simulator-row img {
    width: 100%;
    height: auto;
    border-radius: 16px
  }

  .simulator-row p {
    width: min(336px, 100%);
    font-size: 16px;
    line-height: 1.3;
    text-align: center
  }

  .simulator-quote-frame {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 24px;
    clip-path: inset(0 round 24px);
    contain: paint
  }

  .simulator-quote-frame .simulator-quote {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    object-fit: contain;
    clip-path: none
  }

  .compare-image-frame {
    border-radius: 16px;
    clip-path: inset(0 round 16px);
    contain: paint
  }

  .wb-before-after:not(.statistics-compare) img {
    clip-path: none
  }

  .statistics-compare figure:first-of-type img {
    width: calc(100% + 4px);
    height: 176px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: bottom;
    clip-path: inset(0 4px 0 0 round 12px)
  }

  .statistics-compare figure:last-of-type img {
    height: 192px;
    aspect-ratio: auto;
    object-fit: cover
  }

  .wb-page .metrics-section {
    margin-top: 52px
  }

  .wb-scale {
    margin-top: 40px
  }

  .wb-scale>h2 {
    margin-bottom: 16px;
    font-size: 32px
  }

  .wb-scale details {
    padding: 12px 10px;
    border-width: 1px;
    border-radius: 12px
  }

  .wb-scale details+details {
    margin-top: 8px
  }

  .wb-scale summary {
    font-size: 16px;
    line-height: 1.3
  }

  .wb-page .case-footer {
    margin-top: 36px
  }

  .wb-page .case-main {
    padding-bottom: 60px
  }
}

@media(min-width:761px) {
  .wb-before-after figcaption {
    right: -32px
  }

  .wb-before-after .compare-arrow {
    width: 64px;
    height: 64px;
    font-size: 0;
    background: url("./assets/wb/imgArrowNarrowRight.svg") center/48px 48px no-repeat;
    transform: rotate(90deg)
  }
}

.case-title-mobile {
  display: none
}

.mindset-mobile-break {
  display: none
}

@media(max-width:760px) {
  .pies-page .case-title-desktop {
    display: none
  }

  .pies-page .case-title-mobile {
    display: inline
  }
}

/* Home refinements shared by desktop and mobile. */
.tag-pink {
  color: #d400fa
}

.wildberries .tag-pink {
  color: #825900
}

.contact-button {
  text-decoration: none
}

.contact-button:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgb(11 11 11/.72);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0)
}

@media(max-width:760px) {
  .copy-toast {
    bottom: 20px;
    font-size: 14px
  }

  .mobile-profile summary {
    position: relative;
    display: block;
    padding-right: 32px;
    line-height: 50px;
    list-style: none
  }

  .mobile-profile summary::-webkit-details-marker {
    display: none
  }

  .mobile-profile summary::marker {
    content: ""
  }

  .mobile-profile summary::after {
    position: absolute;
    top: 50%;
    right: 0;
    margin: 0;
    background-image: url("./assets/pirogi/imgChevronDown.svg?v=20260927-3");
    transform: translateY(-50%)
  }

  .mobile-profile details[open] summary::after {
    transform: translateY(-50%) rotate(180deg)
  }
}

@media(max-width:760px) {
  .wb-page .case-header {
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 16px
  }

  .pies-page .accordion-stack summary::after {
    margin-left: auto
  }

  .pies-page .feature>p {
    font-weight: 500
  }

  .pies-page .mindsets>div {
    grid-template-columns: 56px minmax(0, 1fr)
  }

  .pies-page .mindsets {
    margin-top: 16px
  }

  .pies-page .mindsets+p {
    margin-top: 16px
  }

  .pies-page .mindset-portrait {
    width: 56px;
    height: 56px
  }

  .pies-page .mindset-copy {
    gap: 4px
  }

  .pies-page .mindsets b {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    white-space: nowrap
  }

  .pies-page .mindsets span {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 400
  }

  .pies-page .mindset-mobile-break {
    display: block
  }

  .pies-page .insight {
    font-size: 12px
  }

  .pies-page .personal-screen {
    border-radius: 24px
  }

  .pies-page .features .feature:nth-child(3)>h3 {
    margin-bottom: 8px
  }

  .pies-page .case-header {
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 16px
  }

  .pies-page .case-main {
    padding-bottom: 64px
  }

  .pies-page .competitor-intro {
    font-size: 16px;
    line-height: 1.45
  }

  .pies-page .competitor-intro span:first-child {
    white-space: nowrap
  }

  .pies-page .competitor-intro span:last-child {
    display: block
  }

  .pies-page .problem-pill {
    padding: 16px;
    font-size: 14px;
    line-height: 1.3
  }

  .pies-page .feature>p {
    height: 52px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center
  }

  .pies-page .metrics p {
    font-size: 14px;
    font-weight: 400
  }

  .pies-page .metrics p b {
    font-size: 14px;
    font-weight: 400
  }

  .pies-page .case-footer {
    margin-top: 48px
  }

  .pies-page .basket-crops.is-carousel {
    display: flex;
    width: 100vw;
    max-width: none;
    height: 415px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: calc((100vw - 251px)/2);
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    cursor: grab;
  }

  .pies-page .basket-crops.is-carousel::-webkit-scrollbar {
    display: none
  }

  .pies-page .basket-crops.is-carousel.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto
  }

  .pies-page .basket-crops.is-carousel .crop {
    flex: 0 0 auto;
    width: 251px;
    height: 377px;
    aspect-ratio: auto;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transform: scale(1);
    transition: transform .24s ease;
    transform-origin: center
  }

  .pies-page .basket-crops.is-carousel .crop.is-active {
    z-index: 2;
    transform: scale(1.1)
  }
}

@media(max-width:340px) {
  .pies-page .mindsets>div {
    grid-template-columns: 48px minmax(0, 1fr)
  }

  .pies-page .mindset-portrait {
    width: 48px;
    height: 48px
  }

  .pies-page .mindsets>div:nth-child(3) .mindset-copy>span {
    white-space: nowrap
  }
}

/* Final visual alignment with the Figma source. */
@media(min-width:761px) {

  .contact-button,
  .case-footer a,
  .case-footer button {
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease
  }

  .contact-button:hover,
  .case-footer a:hover,
  .case-footer button:hover {
    transform: translateY(-2px);
    filter: brightness(.96);
    box-shadow: 0 8px 18px rgb(0 0 0/.14)
  }

  .contact-button:active,
  .case-footer a:active,
  .case-footer button:active {
    transform: translateY(1px) scale(.985);
    filter: brightness(.9);
    box-shadow: 0 2px 7px rgb(0 0 0/.12)
  }

  .accordion-stack summary,
  .wb-scale summary {
    transition: opacity .16s ease, transform .16s ease
  }

  .accordion-stack summary:hover,
  .wb-scale summary:hover {
    opacity: .72
  }

  .accordion-stack summary:active,
  .wb-scale summary:active {
    transform: translateY(1px)
  }

  .pies-page .before-shot {
    border-radius: 16px
  }

  .wb-page .compare-image-frame,
  .wb-page .calculator-placeholder {
    border-radius: 24px
  }
}

@media(max-width:760px) {
  .pies-page .stories-feature .image-stage>img {
    border-radius: 8px
  }
}

/* Typography and interaction refinements from the Figma layouts. */
.cases>h2,
.case-intro h1,
.case-section>h2 {
  font-family: "Gros Ventre", "Onest", Arial, Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: 0
}

.tag {
  border-width: 2px
}

.delivery-swap-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: min(720px, 100%)
}

.delivery-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 720/249;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow)
}

.delivery-card img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: 0;
  box-shadow: none
}

.delivery-card-bottom img {
  transform: translateY(-50%)
}

.delivery-card-top img {
  transform: translateY(0)
}

@media(min-width:761px) {
  .case-footer button {
    transition: filter .16s ease;
    transform: none;
    box-shadow: none
  }

  .case-footer button:hover {
    filter: brightness(1.14);
    transform: none;
    box-shadow: none
  }

  .case-footer button:active {
    filter: brightness(1.24);
    transform: none;
    box-shadow: none
  }

  .case-footer a {
    transition: color .16s ease;
    filter: none;
    transform: none;
    box-shadow: none
  }

  .case-footer a:hover,
  .case-footer a:active {
    filter: none;
    transform: none;
    box-shadow: none
  }

  .pies-page .case-footer a:hover {
    color: #777
  }

  .pies-page .case-footer a:active {
    color: #999
  }

  .wb-page .case-footer a:hover {
    color: #d8c4ec
  }

  .wb-page .case-footer a:active {
    color: #bfa0dc
  }
}

@media(max-width:760px) {
  .delivery-swap-stage {
    gap: 8px
  }

  .delivery-card {
    border-radius: 12px
  }
}

/* Final responsive corrections after device testing. */
.delivery-card {
  aspect-ratio: 2545/849;
  border-radius: 0;
  background: transparent;
  box-shadow: none
}

.delivery-card-bottom img {
  transform: translateY(-52.22%)
}

.delivery-card-top img {
  transform: translateY(-3.62%)
}

.simulator-row img {
  clip-path: inset(.55% 1.65% .75% 1.65% round 16px);
  box-shadow: none
}

.scroll-top {
  position: fixed;
  z-index: 50;
  left: max(20px, calc((100vw - 1200px)/2));
  bottom: 128px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #6b2bd9;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease, filter .16s ease
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

.scroll-top svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round
}

.scroll-top:hover {
  filter: brightness(1.14)
}

.scroll-top:active {
  filter: brightness(1.24)
}

.scroll-top:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px
}

@media(min-width:761px) {
  .contact-button {
    transition: filter .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
    transform: none;
    box-shadow: none
  }

  .contact-button:hover {
    transform: none;
    box-shadow: none
  }

  .telegram:hover,
  .vk:hover {
    filter: brightness(1.14)
  }

  .telegram:active,
  .vk:active {
    filter: brightness(1.24);
    transform: none;
    box-shadow: none
  }

  .email:hover {
    filter: none;
    background: #fbf6ff;
    color: #9840ff;
    border-color: #9840ff
  }

  .email:active {
    filter: none;
    background: #f4e5ff;
    color: #ad6aff;
    border-color: #ad6aff;
    transform: none;
    box-shadow: none
  }
}

@media(max-width:760px) {
  .case-card {
    height: 175px;
    min-height: 175px;
    grid-template-columns: minmax(0, 244px) 76px;
    grid-template-rows: 96px 2px 29px;
    column-gap: 0;
    row-gap: 0;
    justify-content: start
  }

  .case-copy {
    align-self: start;
    min-width: 0
  }

  .case-copy h3 {
    font-size: 20px;
    line-height: 22px
  }

  .case-copy p {
    max-width: 244px;
    font-size: 14px;
    line-height: 18px
  }

  .case-art {
    width: 76px;
    height: 76px;
    margin-top: 4px;
    overflow: visible;
    transform: none
  }

  .pie-art img {
    position: absolute;
    left: -6px;
    top: 1px;
    width: 98px;
    height: 74px;
    object-fit: contain;
    transform: rotate(7deg)
  }

  .wb-art img {
    position: absolute;
    left: 5px;
    top: -2px;
    width: 79px;
    height: 81px;
    object-fit: contain;
    transform: none
  }

  .case-tags {
    margin-top: 16px
  }

  .delivery-card {
    border-radius: 0
  }

  .wb-scale summary {
    font-size: 14px;
    white-space: nowrap
  }

  .scroll-top {
    left: 16px
  }
}

/* Device-level corrections matched to the 390 px Figma frames. */
.wb-page .scroll-top {
  background: #fff;
  color: #6b2bd9
}

.wb-research details[open] {
  padding: 28px
}

.wb-research details[open] .accordion-copy {
  margin-top: 8px
}

.wb-research details[open] .accordion-copy>:first-child {
  margin-top: 0
}

.wb-research-copy ul {
  padding-left: 0;
  list-style: none
}

@media(max-width:760px) {
  .case-mobile-break {
    display: block
  }

  .case-card {
    grid-template-columns: minmax(0, 1fr) 68px;
    column-gap: 8px
  }

  .case-copy p {
    max-width: none
  }

  .case-art {
    width: 68px;
    height: 68px;
    margin-top: 6px;
    overflow: hidden
  }

  .pie-art img {
    left: 0;
    top: 8px;
    width: 68px;
    height: 52px;
    transform: rotate(7deg)
  }

  .wb-art img {
    left: 0;
    top: 0;
    width: 68px;
    height: 70px
  }

  .wb-before-after {
    gap: 0
  }

  .wb-before-after .compare-arrow {
    margin: 8px 0
  }

  .pies-page .before-after .down-arrow {
    display: block;
    margin: 12px auto
  }

  .pies-page .mindsets>div {
    padding: 8px
  }

  .pies-page .mindset-copy {
    width: 100%;
    min-width: 0;
    margin: 0
  }

  .pies-page .mindsets>div:nth-child(3) .mindset-copy>span {
    font-size: 12px;
    letter-spacing: -.02em;
    white-space: normal
  }

  .wb-research details[open] {
    padding: 16px
  }

  .wb-research .accordion-copy p {
    margin: 0
  }

  .wb-research .accordion-copy p+p {
    margin-top: 8px
  }
}

@media(min-width:1181px) {
  .home-scroll-top {
    left: 622px
  }
}

@media(min-width:761px) and (max-width:1180px) {
  .home-scroll-top {
    left: 470px
  }
}

@media(max-width:380px) {
  .case-copy p {
    font-size: 13px;
    letter-spacing: -.01em
  }
}

/* Targeted color and spacing refinements. */
.case-divider {
  background: #eee9d7
}

.wildberries .case-divider {
  background: #e9d7ee
}

.scroll-top {
  background: #5b00ff
}

.wb-page .scroll-top {
  background: #fff;
  color: #5b00ff
}

.case-footer button,
.pies-page .case-footer button,
.wb-page .case-footer button {
  background: #0077ff;
  color: #fff
}

.wb-research .accordion-copy p {
  margin: 0
}

.wb-research .accordion-copy p+p {
  margin-top: 8px
}

.wb-research-copy h4 {
  margin: 6px 0
}

@media(max-width:760px) {
  .email {
    color: #5b00ff;
    border-color: #5b00ff
  }

  .wb-research-copy h4 {
    margin-top: 6px;
    margin-bottom: 4px
  }

  .pies-page .case-footer,
  .wb-page .case-footer {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center !important;
    align-items: center;
    gap: 24px
  }

  .pies-page .case-footer>*,
  .wb-page .case-footer>* {
    flex: 0 0 auto
  }

  .pies-page .case-footer a,
  .wb-page .case-footer a {
    padding-left: 0;
    padding-right: 0
  }
}

/* Exact internal spacing for the 390 px Wildberries accordions in Figma. */
@media(max-width:760px) {
  .wb-research {
    gap: 4px
  }

  .wb-research details,
  .wb-research details[open] {
    padding: 16px;
    border-radius: 20px
  }

  .wb-research details[open] .accordion-copy {
    margin-top: 8px
  }

  .wb-research summary {
    font-size: 20px;
    font-weight: 500;
    line-height: normal
  }

  .wb-research .accordion-copy,
  .wb-research .accordion-copy p {
    font-size: 16px;
    line-height: 1.25
  }

  .wb-research .accordion-copy p+p {
    margin-top: 20px
  }

  .wb-research-copy>p:first-child+h4 {
    margin: 20px 0 8px
  }

  .wb-research-copy h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: normal
  }

  .wb-research-copy ul {
    gap: 12px
  }

  .wb-research-copy li {
    padding-left: 0
  }

  .wb-research-copy li b {
    color: #6c11c9;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.1
  }

  .wb-research-copy li span {
    margin-top: 4px;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3
  }

  .wb-research-copy>ul+h4 {
    margin: 16px 0 8px
  }

  .wb-research-copy h4+p,
  .wb-research-copy h4+p+p {
    line-height: 1.3
  }
}

/* The first footer link is the filled VK action; the second stays textual. */
.pies-page .case-footer .case-contact-vk,
.wb-page .case-footer .case-contact-vk {
  padding: 16px 24px 14px;
  background: #0077ff;
  color: #fff;
  font-weight: 700;
  transition: filter .16s ease
}

@media(min-width:761px) {
  .pies-page .case-footer .case-contact-vk:hover,
  .wb-page .case-footer .case-contact-vk:hover {
    color: #fff;
    filter: brightness(1.14)
  }

  .pies-page .case-footer .case-contact-vk:active,
  .wb-page .case-footer .case-contact-vk:active {
    color: #fff;
    filter: brightness(1.24)
  }
}

@media(max-width:760px) {
  .pies-page .case-footer .case-contact-vk,
  .wb-page .case-footer .case-contact-vk {
    padding: 15px 24px 14px
  }

  .research .accordion-stack.wb-research summary {
    font-weight: 500
  }

  /* Preserve the complete second screenshots. Their native proportions differ
     from the fixed frames that were previously forcing object-fit cropping. */
  .pies-page .before-shot.after-shot,
  .pies-page .before-shot.after-shot img {
    height: auto;
    aspect-ratio: 1200/619
  }

  .pies-page .before-shot.after-shot img,
  .statistics-compare figure:last-of-type img {
    object-fit: contain
  }

  .statistics-compare figure:last-of-type img {
    height: auto;
    aspect-ratio: auto
  }
}

/* Desktop case footer and accordion geometry from Figma node 6059:12919. */
@media(min-width:761px) {
  .wb-page .case-footer .case-contact-vk {
    padding: 16px 24px 14px;
    border-radius: 16px;
    font-size: 24px;
    line-height: 1.3;
    background: #0077ff;
    color: #fff;
    font-weight: 700
  }

  .wb-page .case-footer>a:last-child {
    padding: 16px 24px 14px;
    border-radius: 16px;
    font-size: 24px;
    line-height: 1.3;
    background: transparent;
    color: #fff;
    font-weight: 500
  }

  .pies-page .research .accordion-stack,
  .wb-page .research .accordion-stack {
    width: 100%;
    max-width: none;
    gap: 8px
  }

  .wb-page .research .accordion-stack details {
    padding: 24px;
    border-radius: 24px
  }

  .wb-page .research .accordion-stack summary {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1
  }

  .wb-page .research .accordion-stack details[open] {
    display: flex;
    flex-direction: column;
    gap: 16px
  }

  .wb-page .research .accordion-stack details[open] .accordion-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0
  }

  .wb-page .wb-research-copy,
  .wb-page .wb-research-copy p {
    font-size: 18px;
    line-height: 1.3
  }

  .wb-page .wb-research-copy>p:first-child {
    margin: 0
  }

  .wb-page .wb-research-copy>p:first-child+h4 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.3
  }

  .wb-page .wb-research-copy ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none
  }

  .wb-page .wb-research-copy li {
    padding: 0
  }

  .wb-page .wb-research-copy li b {
    display: block;
    color: #6c11c9;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1
  }

  .wb-page .wb-research-copy li span {
    display: block;
    margin-top: 4px;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3
  }

  .wb-page .wb-research-copy>ul+h4 {
    margin: 16px 0 8px;
    font-size: 18px;
    line-height: 1.3
  }

  .wb-page .wb-research-copy>h4+p {
    margin: 0
  }

  .wb-page .wb-research-copy>h4+p+p {
    margin-top: 4px
  }
}

@media(max-width:760px) {
  .wb-page .case-footer .case-contact-vk {
    background: #0077ff;
    color: #fff
  }
}

/* Keep case cards readable before the two-column layout gets cramped. */
@media(min-width:761px) and (max-width:1440px) {
  .case-grid {
    grid-template-columns: 1fr
  }
}

/* Final Wildberries desktop specification — Figma 6059:12919. */
.wb-page .case-footer .case-contact-vk {
  background-color: #0077ff !important;
  color: #fff !important
}

@media(min-width:761px) {
  .wb-page .research > h2 { margin-bottom: 16px }

  .wb-page .research .accordion-stack.wb-research {
    width: 100%;
    max-width: 1200px;
    margin: 0;
    gap: 8px
  }

  .wb-page .research .accordion-stack.wb-research details {
    width: 100%;
    padding: 24px;
    border-radius: 24px
  }

  .wb-page .research .accordion-stack.wb-research summary {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1
  }

  .wb-page .research .accordion-stack.wb-research details[open] {
    display: flex;
    flex-direction: column;
    gap: 16px
  }

  .wb-page .research .accordion-stack.wb-research details[open] .wb-research-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0
  }

  .wb-page .wb-research-copy > p:first-child { margin: 0 }
  .wb-page .wb-research-copy > p:first-child + h4 { margin: 12px 0 8px }
  .wb-page .wb-research-copy > ul + h4 { margin: 16px 0 8px }
  .wb-page .wb-research-copy > h4 + p { margin: 0 }
  .wb-page .wb-research-copy > h4 + p + p { margin-top: 4px }

  .wb-page .wb-features .feature:first-child .cascade {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 607
  }

  .wb-page .wb-features .feature:first-child .cascade img {
    width: 50.333%;
    max-height: none
  }
}

/* Final source of truth: Wildberries accordion spacing, Figma 6071:13102. */
@media(min-width:761px) {
  .wb-page .research .accordion-stack.wb-research {
    width: 1062px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .wb-page .research .accordion-stack.wb-research details[open] { display: block; }
  .wb-page .research .accordion-stack.wb-research details[open] .accordion-copy,
  .wb-page .research .accordion-stack.wb-research details[open] .wb-research-copy {
    display: block;
    margin-top: 16px;
  }
  .wb-page .research .accordion-stack.wb-research .accordion-copy {
    font-size: 18px;
    line-height: 1.3;
  }
  .wb-page .research .accordion-stack.wb-research .accordion-copy p { margin: 0; }
  .wb-page .research .accordion-stack.wb-research .accordion-copy p + p { margin-top: 12px; }
  .wb-page .research .accordion-stack.wb-research .wb-research-copy > p:first-child + h4 { margin: 12px 0 8px; }
  .wb-page .research .accordion-stack.wb-research .wb-research-copy ul { gap: 12px; }
  .wb-page .research .accordion-stack.wb-research .wb-research-copy > ul + h4 { margin: 12px 0 8px; }
  .wb-page .research .accordion-stack.wb-research .wb-research-copy > h4 + p { margin: 0; }
  .wb-page .research .accordion-stack.wb-research .wb-research-copy > h4 + p + p { margin-top: 4px; }
}

/* Final override — Figma 6071:13102. */
@media(min-width:761px) {
  .wb-page .research .accordion-stack.wb-research {
    width: 100%;
    max-width: 1200px;
    margin-left: 0;
    margin-right: 0;
  }
}
@media(max-width:760px) {
  .wb-page .wb-research details[open] { display: block; padding: 16px; border-radius: 20px; }
  .wb-page .wb-research details[open] .accordion-copy,
  .wb-page .wb-research details[open] .wb-research-copy { display: block; margin-top: 8px; }
  .wb-page .wb-research .accordion-copy,
  .wb-page .wb-research .accordion-copy p { font-size: 16px; line-height: normal; }
  .wb-page .wb-research .accordion-copy p { margin: 0; }
  .wb-page .wb-research .accordion-copy p + p { margin-top: 8px; }
  .wb-page .wb-research-copy > p:first-child + h4 { margin: 12px 0 8px; }
  .wb-page .wb-research-copy ul { margin: 0; gap: 12px; }
  .wb-page .wb-research-copy > ul + h4 { margin: 12px 0 4px; }
  .wb-page .wb-research-copy > h4 + p { margin: 0; }
  .wb-page .wb-research-copy > h4 + p + p { margin-top: 8px; }
}

/* Keep the research cards and the decorative field stable while they expand. */
@media(max-width:760px) {
  .wb-page .wb-research details,
  .wb-page .wb-research details[open] {
    border-radius: 20px;
    overflow: hidden;
  }
}

@media(min-width:761px) {
  .wb-page {
    background-attachment: fixed;
    background-position: center top;
  }
}
