/* Карточка товара — showcase, формула, вкладки */

.page--product .product-showcase__head {
  margin-top: 60px;
}

.page--product .text-lead {
  font-family: "Manrope", "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
}

.page--product .product-showcase__buy--mobile {
  display: none;
}

.product-showcase__mobile-only,
.product-tabs__mobile {
  display: none;
}

@media (min-width: 1024px) {
  .page--product .product-showcase__mobile-only.product-showcase__benefits {
    display: none !important;
  }

  .page--product .product-tabs__desktop {
    display: block;
  }

  .product-tabs__mobile {
    display: none !important;
  }

  .product-tabs__content .tabs__panel.is-active {
    display: block;
  }

  .product-showcase__dots {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    justify-content: center;
    align-items: center;
    width: max-content;
    max-width: calc(100% - 64px);
  }

  .product-showcase__dots .slider-dot {
    width: 40px;
  }
}

.page--product [data-tabs],
.page--product .product-tabs {
  margin-top: 24px;
}

.page--product .product-tabs__content {
  margin-bottom: 32px;
}

.product-tabs__content {
  margin-top: 22px;
  padding-top: 0;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .product-tabs .tabs-bar--product .tabs__tab {
    padding: 10px 8px;
    font-family: "Manrope", "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
  }
}

/* Showcase */
.product-showcase {
  margin-top: 0;
}

.product-showcase__box {
  position: relative;
  min-height: 600px;
  margin-top: 32px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(130, 175, 205, 0.2);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.product-showcase__dots:has(.slider-dot:only-child) {
  display: none;
}

.product-showcase__dots {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
}

.product-showcase__dots .slider-dot {
  width: 40px;
}

.product-showcase__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  min-height: 600px;
  padding: 28px 32px 32px;
  box-sizing: border-box;
}

.product-showcase__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-height: 100%;
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding-top: 96px;
}

.product-showcase__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: min(480px, 55%);
  height: auto;
  margin: 0;
}

.product-showcase__benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-showcase__benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 30px 22px;
  border-radius: 12px;
  background: rgb(41 145 166 / 0.2);
  border: 1px solid rgb(41 145 166 / 0.35);
  font-family: "Manrope", "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.product-showcase__benefit-icon {
  flex-shrink: 0;
  width: 42px;
  height: auto;
  align-self: center;
}

.product-showcase__buy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  padding-bottom: 20px;
}

.product-showcase__buy-label {
  margin: 0;
  font-family: "Manrope", "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}

.product-showcase__buy-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.page--product [data-hero="cat"] .product-showcase__benefit,
.page--product-cat .product-showcase__benefit {
  background:
    linear-gradient(0deg, #2991a6, #2991a6),
    radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  border-color: rgb(41 145 166 / 0.35);
  background: rgba(41, 145, 166, 0.2);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.page--product [data-hero="dog"] .product-showcase__benefit,
.page--product-dog .product-showcase__benefit {
  background:
    linear-gradient(0deg, #4069a7, #4069a7),
    radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  border-color: rgb(64 105 167 / 0.35);
  background: rgba(64, 105, 167, 0.2);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.page--product [data-hero="cat"] .btn--purchase,
.page--product-cat .btn--purchase {
  background:
    linear-gradient(0deg, #2991a6, #2991a6),
    radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  border-color: rgb(41 145 166 / 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(41, 145, 166, 0.2);
}

.page--product [data-hero="dog"] .btn--purchase,
.page--product-dog .btn--purchase {
  background:
    linear-gradient(0deg, #4069a7, #4069a7),
    radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  border-color: rgb(64 105 167 / 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(64, 105, 167, 0.2);
}

.page--product [data-hero="cat"] .btn--purchase:hover,
.page--product-cat .btn--purchase:hover {
  filter: brightness(1.08);
  border-color: rgb(41 145 166 / 0.52);
}

.page--product [data-hero="dog"] .btn--purchase:hover,
.page--product-dog .btn--purchase:hover {
  filter: brightness(1.08);
  border-color: rgb(64 105 167 / 0.52);
}

.btn--purchase {
  flex: 1 1 0%;
  min-width: 0;
  height: 44px;
  padding: 0 24px;
  border-radius: 15px;
  border: 1px solid rgb(41 145 166 / 0.35);
  background: rgb(41 145 166 / 0.2);
  color: #fff;
  font-family: "Manrope", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn--purchase:hover {
  background: rgb(41 145 166 / 0.35);
  border-color: rgb(41 145 166 / 0.52);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.btn--purchase-wb {
  flex: 0 0 72px;
  width: 72px;
  padding: 0;
  border-radius: 12px;
}

.product-showcase__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.product-showcase__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-showcase__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
}

.product-showcase__slide.is-active {
  opacity: 1;
}

/* Formula */
.product-formula {
  margin-top: 48px;
}

.product-formula__head {
  margin-bottom: 112px;
}

.product-formula__title {
  margin: 0;
}

.product-formula__body {
  position: relative;
}

.product-formula__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.2fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  min-height: 380px;
  overflow: visible;
}

.formula-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px 22px;
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.formula-card h3 {
  margin: 0 0 12px;
  font-family: "Manrope", "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
}

.formula-card p {
  margin: 0;
  font-family: "Manrope", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.92);
}

.formula-card--tl {
  grid-column: 1;
  grid-row: 1;
  background:
    linear-gradient(0deg, #527cb6, #527cb6),
    radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.formula-card--bl {
  grid-column: 1;
  grid-row: 2;
  background:
    linear-gradient(0deg, #409db6, #409db6),
    radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.formula-card--tr {
  grid-column: 3;
  grid-row: 1;
  background:
    linear-gradient(0deg, #409db6, #409db6),
    radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.formula-card--br {
  grid-column: 3;
  grid-row: 2;
  background:
    linear-gradient(0deg, #527cb6, #527cb6),
    radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.formula-card--center {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / -1;
  justify-content: end;
  align-items: center;
  overflow: visible;
  padding: 120px 28px 32px;
  text-align: center;
  background: radial-gradient(309.84% 309.84% at 50% 50%, #57b9a2 0%, rgba(20, 51, 84, 0.5) 100%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.formula-card--center h3 {
  margin-bottom: 12px;
}

.formula-card__diagram {
  position: absolute;
  top: 24%;
  left: 50%;
  z-index: 2;
  width: min(100%, 280px);
  margin: 0;
  transform: translate(-50%, -58%);
  pointer-events: none;
}

.formula-card__diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.product-formula--flip .formula-card--tl {
  background:
    linear-gradient(0deg, #409db6, #409db6),
    radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.product-formula--flip .formula-card--bl {
  background:
    linear-gradient(0deg, #57b9a2, #57b9a2),
    radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.product-formula--flip .formula-card--tr {
  background:
    linear-gradient(0deg, #57b9a2, #57b9a2),
    radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.product-formula--flip .formula-card--br {
  background:
    linear-gradient(0deg, #409db6, #409db6),
    radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.product-formula--flip .formula-card--center {
  background:
    linear-gradient(0deg, #527cb6, #527cb6),
    radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1023px) {
  .page--product .product-showcase__head {
    order: 2;
    margin-top: 20px;
  }

  .page--product .product-showcase__head .block-title--page {
    margin: 0;
    font-family: "Manrope", "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: 32px;
    letter-spacing: 0;
  }

  .page--product .product-showcase__head .text-lead {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.35;
  }

  .page--product .product-showcase {
    display: flex;
    flex-direction: column;
  }

  .page--product .product-showcase__desktop-only,
  .page--product .product-tabs__desktop {
    display: none !important;
  }

  .page--product .product-showcase__box {
    order: 1;
    min-height: 0;
    margin-top: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .page--product .product-showcase__media {
    position: relative;
    inset: auto;
    min-height: 360px;
    aspect-ratio: 375 / 430;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(130, 175, 205, 0.2);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    touch-action: pan-y pinch-zoom;
  }

  .page--product .product-showcase__slide {
    border-radius: inherit;
  }

  .page--product .product-showcase__slide img {
    object-position: right bottom;
  }

  .page--product .product-showcase__badge {
    top: 0;
    left: 0;
    width: min(88%, 300px);
  }

  .page--product .product-showcase__dots {
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translateX(-50%);
    justify-content: center;
    align-items: center;
    width: max-content;
    max-width: calc(100% - 32px);
  }

  .page--product .product-showcase__dots .slider-dot {
    width: 40px;
  }

  .page--product .product-showcase__mobile-only.product-showcase__benefits {
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
  }

  .page--product .product-showcase__mobile-only .product-showcase__benefit {
    padding: 16px 14px;
    font-family: "Manrope", "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
  }

  .page--product .product-showcase__mobile-only .product-showcase__benefit-icon {
    width: 36px;
  }

  .page--product .product-showcase__buy--mobile.product-showcase__mobile-only {
    display: flex;
    order: 4;
    margin-top: 20px;
    padding-top: 0;
  }

  .page--product .product-tabs {
    margin-top: 0;
  }

  .page--product .product-tabs__mobile {
    display: flex;
    flex-direction: column;
  }

  .product-tabs__group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .product-tabs__group:first-child {
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .product-tabs__group:last-child {
    border-bottom: 0;
  }

  .product-tabs__tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 18px 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
  }

  .product-tabs__label {
    flex: 1;
    min-width: 0;
    font-family: "Manrope", "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-align: left;
  }

  .product-tabs__arrow {
    flex-shrink: 0;
    width: 12px;
    height: 8px;
    border: none;
    background: url("../images/icon-chevron-down.svg") center / contain no-repeat;
    transform: none;
    transition: transform 0.25s ease;
  }

  .product-tabs__group.is-open .product-tabs__arrow {
    transform: rotate(180deg);
  }

  .product-tabs__panel {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    padding-bottom: 0;
    transition: grid-template-rows 0.35s ease, padding 0.35s ease;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
  }

  .product-tabs__panel.is-open {
    grid-template-rows: 1fr;
    padding-bottom: 18px;
  }

  .product-tabs__panel > .text-body {
    min-height: 0;
    overflow: hidden;
    margin-bottom: 0;
  }

  .product-tabs__panel .text-body p {
    margin: 0 0 16px;
    font-family: "Manrope", "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .product-tabs__panel .text-body p:last-child {
    margin-bottom: 0;
  }

  .product-tabs__panel[hidden] {
    display: none !important;
  }

  .product-formula {
    margin-top: 32px;
  }

  .product-formula__head {
    margin-bottom: 40px;
  }

  .product-formula__head .block-heading--center {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .product-formula__head .block-line {
    display: none;
  }

  .product-formula__head .block-title {
    text-align: left;
    font-family: "Manrope", "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .product-formula__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    margin-top: 0;
  }

  .formula-card {
    align-items: center;
    justify-content: flex-start;
    padding: 24px 20px;
    text-align: center;
  }

  .formula-card--center {
    order: 1;
    /* overflow: hidden; */
    padding: 24px 20px 28px;
  }

  .formula-card--tl {
    order: 2;
  }

  .formula-card--bl {
    order: 3;
  }

  .formula-card--tr {
    order: 4;
    background:
      linear-gradient(0deg, #527cb6, #527cb6),
      radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  }

  .formula-card--br {
    order: 5;
    background:
      linear-gradient(0deg, #409db6, #409db6),
      radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  }

  .product-formula--flip .formula-card--tr {
    background:
      linear-gradient(0deg, #409db6, #409db6),
      radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  }

  .product-formula--flip .formula-card--br {
    background:
      linear-gradient(0deg, #57b9a2, #57b9a2),
      radial-gradient(99.88% 202.21% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(23, 52, 82, 0.4) 100%);
  }

  .formula-card--tl,
  .formula-card--bl,
  .formula-card--tr,
  .formula-card--br,
  .formula-card--center {
    grid-column: auto;
    grid-row: auto;
  }

  .formula-card--center .formula-card__diagram {
    position: static;
    z-index: auto;
    width: min(100%, 300px);
    margin: -55px 0 16px;
    transform: none;
    pointer-events: auto;
  }

  .formula-card--center .formula-card__diagram img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .formula-card--center h3 {
    margin-top: 0;
    margin-bottom: 10px;
  }

  .formula-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .formula-card p {
    font-size: 16px;
    line-height: 1.3;
  }
}
