/* Product detail page — WB-like layout. */
.zp-product-detail-page {
  background: #f6f6f9;
}

/*
 * Контент НЕ должен заходить под fixed-шапку.
 * Не опираемся на «#navMobile + main» — между ними часто попадают лишние узлы (meta и т.п.).
 */
body.zp-product-detail-body.home-layout-ref main#main,
body.zp-product-detail-body main#main.usluga-page-shell,
body.zp-product-detail-body .zp-product-detail-page {
  padding-top: var(--zp-site-content-offset, calc(env(safe-area-inset-top, 0px) + 92px + 24px)) !important;
  box-sizing: border-box;
}

.zp-product-detail {
  padding: 16px 0 48px;
}

.zp-product-detail__shell {
  box-sizing: border-box;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.zp-product-detail__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 20px;
  color: #8b8799;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 13px;
  line-height: 1.4;
}

.zp-product-detail__breadcrumbs a {
  color: #6440bf;
  text-decoration: none;
}

.zp-product-detail__breadcrumbs a:hover,
.zp-product-detail__breadcrumbs a:focus-visible {
  color: #4c3191;
  text-decoration: underline;
}

.zp-product-detail__breadcrumbs span[aria-current="page"] {
  color: #5c5470;
}

.zp-product-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  min-width: 0;
}

.zp-product-detail__gallery {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

.zp-product-detail__buybox {
  position: sticky;
  top: calc(var(--zp-fixed-header-h, 92px) + 12px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 24px);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(36, 22, 74, 0.06);
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
}

/* Характеристики — под галереей, та же ширина колонки */
.zp-product-detail__specs-block {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.zp-product-detail__gallery-stage {
  position: relative;
  box-sizing: border-box;
  grid-column: 2;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.zp-product-detail__slides {
  display: flex;
  width: 100%;
  transition: transform 0.28s ease;
  transform: translate3d(calc(var(--gallery-index, 0) * -100%), 0, 0);
  will-change: transform;
}

.zp-product-detail__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
}

.zp-product-detail__slide-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px dashed rgba(100, 64, 191, 0.28);
  border-radius: 999px;
  color: rgba(59, 19, 92, 0.62);
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 14px;
  font-weight: 600;
}

.zp-product-detail__gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(36, 22, 74, 0.14);
  color: #3b135c;
  cursor: pointer;
  transform: translateY(-50%);
}

.zp-product-detail__gallery-arrow::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.zp-product-detail__gallery-arrow--prev {
  left: 12px;
}

.zp-product-detail__gallery-arrow--prev::before {
  transform: rotate(-135deg) translate(1px, -1px);
}

.zp-product-detail__gallery-arrow--next {
  right: 12px;
}

.zp-product-detail__gallery-arrow--next::before {
  transform: rotate(45deg) translate(-1px, 1px);
}

.zp-product-detail__gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.zp-product-detail__gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(36, 22, 74, 0.62);
  color: #fff;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.zp-product-detail__gallery-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(36, 22, 74, 0.12);
  cursor: pointer;
}

.zp-product-detail__gallery-expand::before,
.zp-product-detail__gallery-expand::after {
  content: "";
  position: absolute;
  background: #3b135c;
}

.zp-product-detail__gallery-expand::before {
  top: 10px;
  left: 10px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #3b135c;
  border-left: 2px solid #3b135c;
}

.zp-product-detail__gallery-expand::after {
  right: 10px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #3b135c;
  border-bottom: 2px solid #3b135c;
}

/* Вертикальный ряд миниатюр как на WB: высота = фото, без скроллбара, листание кнопками */
.zp-product-detail__thumbs-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 72px;
  min-height: 0;
}

.zp-product-detail__thumbs {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.zp-product-detail__thumbs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.zp-product-detail__thumbs-nav {
  position: absolute;
  left: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  color: #242429;
  cursor: pointer;
  transform: translateX(-50%);
}

.zp-product-detail__thumbs-rail.is-scrollable .zp-product-detail__thumbs-nav {
  display: inline-flex;
}

.zp-product-detail__thumbs-nav--prev {
  top: 4px;
}

.zp-product-detail__thumbs-nav--next {
  bottom: 4px;
}

.zp-product-detail__thumbs-nav::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.zp-product-detail__thumbs-nav--prev::before {
  transform: rotate(-135deg) translateY(-1px);
}

.zp-product-detail__thumbs-nav--next::before {
  transform: rotate(45deg) translateY(-1px);
}

.zp-product-detail__thumbs-nav:disabled,
.zp-product-detail__thumbs-nav[hidden],
.zp-product-detail__thumbs-rail.is-scrollable .zp-product-detail__thumbs-nav:disabled,
.zp-product-detail__thumbs-rail.is-scrollable .zp-product-detail__thumbs-nav[hidden] {
  display: none;
}

.zp-product-detail__thumb {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 96px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(243, 243, 247, 0.9), rgba(235, 233, 242, 0.95)),
    #f3f3f7;
  cursor: pointer;
}

.zp-product-detail__thumb.is-active {
  border-color: #6440bf;
}

.zp-product-detail__thumb span {
  color: rgba(59, 19, 92, 0.55);
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.zp-product-detail__main-photo {
  position: relative;
  display: block;
  box-sizing: border-box;
  /* width через min(), не width:100%+max-width — иначе % от indefinite CB раздувает grid */
  width: min(100%, calc(min(78vh, 700px) * 3 / 4));
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  height: auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(243, 243, 247, 0.9), rgba(235, 233, 242, 0.95)),
    #f3f3f7;
  touch-action: pan-y;
  cursor: zoom-in;
}

.zp-product-detail__main-photo .zp-product-detail__slides {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
}

.zp-product-detail__main-photo .zp-product-detail__slide {
  box-sizing: border-box;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
}

.zp-product-detail__main-photo:focus-visible {
  outline: 2px solid #6440bf;
  outline-offset: 2px;
}

.zp-product-detail__main-image {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  user-select: none;
  -webkit-user-drag: none;
}

.zp-product-detail__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.zp-product-detail__main-photo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px dashed rgba(100, 64, 191, 0.28);
  border-radius: 999px;
  color: rgba(59, 19, 92, 0.62);
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 14px;
  font-weight: 600;
}

.zp-product-detail__title {
  margin: 0;
  overflow-wrap: anywhere;
  color: #242424;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  hyphens: auto;
  line-height: 1.25;
  word-break: break-word;
}

.zp-product-detail__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 15px;
}

.zp-product-detail__rating-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #242424;
  font-weight: 700;
}

.zp-product-detail__rating-value::before {
  content: "★";
  color: #ffb800;
}

.zp-product-detail__rating-count {
  color: #8b8799;
}

.zp-product-detail__price {
  margin: 0;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
}

.zp-product-detail__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.zp-product-detail__price-current {
  color: #242424;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Пока идёт пересчёт (правила/бонусы/доставка) — не мигать цифрами */
.zp-product-detail__price[data-price-pending="1"] .zp-product-detail__price-row,
.zp-product-detail__price[data-price-pending="1"] .zp-product-detail__bonus-line,
.zp-product-detail__price[data-price-pending="1"] .zp-product-detail__price-note {
  visibility: hidden;
}
.zp-product-detail__price[data-price-pending="1"]::before {
  content: "Считаем цену…";
  display: block;
  color: #8b8799;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.zp-product-detail__price-old {
  color: #8b8799;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: line-through;
}

.zp-product-detail__price-note {
  margin: 8px 0 0;
  color: #8b8799;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.zp-product-detail__price-note-login {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #6440bf;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.zp-product-detail__price-note-login:hover,
.zp-product-detail__price-note-login:focus-visible {
  color: #5535a8;
  outline: none;
}

.zp-product-detail__bonus-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 0;
  color: #6b6680;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.zp-product-detail__bonus-line + .zp-product-detail__bonus-line {
  margin-top: 6px;
}

.zp-product-detail__bonus-line + .zp-product-detail__price-row {
  margin-top: 10px;
}

.zp-product-detail__bonus-label {
  flex: 0 1 auto;
  color: #5c5470;
}

.zp-product-detail__bonus-dots {
  flex: 1 1 auto;
  min-width: 12px;
  height: 0;
  margin-bottom: 4px;
  border-bottom: 1px dotted rgba(92, 84, 112, 0.45);
}

.zp-product-detail__bonus-value {
  flex: 0 0 auto;
  color: #6b6680;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.zp-product-detail__price-request {
  margin: 0;
  color: #242424;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.zp-product-detail__price-value {
  color: #242424;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Размер уже в H1/описании — в buybox скрыт, но остаётся в DOM для расчёта СДЭК */
.zp-product-detail__format {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  color: #5c5470;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 14px;
  font-weight: 600;
}

.zp-product-detail__cdek-pvz,
.zp-product-detail__cdek-pvz[hidden] {
  display: none !important;
}

.zp-product-detail__materials .zp-product-detail__size {
  cursor: pointer;
  font: inherit;
}

.zp-product-detail__materials .zp-product-detail__size.is-active {
  background: #6440bf;
  color: #fff;
}

.zp-product-detail__sizes-label {
  margin: 4px 0 0;
  color: #5c5470;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 14px;
  font-weight: 600;
}

.zp-product-detail__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zp-product-detail__size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #6440bf;
  border-radius: 12px;
  background: rgba(100, 64, 191, 0.06);
  color: #3b135c;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 14px;
  font-weight: 600;
}

.zp-product-detail__extras {
  display: grid;
  gap: 14px;
  margin: 12px 0 4px;
}

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

.zp-product-detail__extras-block {
  display: grid;
  gap: 8px;
}

.zp-product-detail__extras-label {
  margin: 0;
  color: #5c5470;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 14px;
  font-weight: 600;
}

.zp-product-detail__extras-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 40px 10px 14px;
  border: 1px solid #c8c2d8;
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c5470' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 12px 8px;
  color: #3b135c;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.zp-product-detail__extras-select:focus {
  outline: 2px solid rgba(100, 64, 191, 0.35);
  outline-offset: 1px;
  border-color: #6440bf;
}

.zp-product-detail__cov-list {
  display: grid;
  gap: 10px;
}

.zp-product-detail__cov {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 2px 0;
  cursor: pointer;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  color: #1f1630;
  user-select: none;
}

.zp-product-detail__cov-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.zp-product-detail__cov-box {
  width: 20px;
  height: 20px;
  border: 1.5px solid #8b84a0;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  position: relative;
}

.zp-product-detail__cov-input:checked + .zp-product-detail__cov-box {
  border-color: #6440bf;
  background: #6440bf;
}

.zp-product-detail__cov-input:checked + .zp-product-detail__cov-box::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.zp-product-detail__cov-input:focus-visible + .zp-product-detail__cov-box {
  outline: 2px solid rgba(100, 64, 191, 0.45);
  outline-offset: 2px;
}

.zp-product-detail__cov-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.zp-product-detail__cov-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.zp-product-detail__cov-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ebe6f4;
  color: #5c5470;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}

.zp-product-detail__cov-help:hover,
.zp-product-detail__cov-help:focus-visible {
  background: #dcd4ee;
  color: #3b135c;
  outline: none;
}

/* Мини-диалог подсказки покрытия (как Muse calc-hint) */
.zp-cov-hint-dialog {
  position: absolute;
  z-index: 12000;
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  padding: 14px 16px 12px;
  border: 1px solid #d8d0e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(40, 20, 70, 0.16);
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  color: #2a2438;
}

.zp-cov-hint-dialog[hidden] {
  display: none !important;
}

.zp-cov-hint-dialog__text {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.zp-cov-hint-dialog__actions {
  display: flex;
  justify-content: flex-end;
}

.zp-cov-hint-dialog__close {
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #3b135c;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.zp-cov-hint-dialog__close:hover {
  background: #2a0e42;
}

.zp-product-detail__cov-price {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1f1630;
  white-space: nowrap;
}

.zp-product-detail__frame-section {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c8c2d8;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  color: #3b135c;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.zp-product-detail__frame-section:hover {
  border-color: #6440bf;
  background: rgba(100, 64, 191, 0.04);
}

.zp-product-detail__frame-thumb {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd7e8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f5fb;
  color: #8a8299;
  font-size: 18px;
  line-height: 1;
}

.zp-product-detail__frame-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zp-product-detail__frame-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.zp-product-detail__frame-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.zp-product-detail__frame-action {
  font-size: 12px;
  font-weight: 600;
  color: #3b135c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zp-product-detail__frame-price {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: #5c5470;
  white-space: nowrap;
}

.zp-product-detail__extras-sum {
  margin: 0;
  color: #5c5470;
  font-size: 13px;
}

.zp-baget-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(30, 20, 45, 0.45);
}

.zp-baget-modal.is-open {
  display: flex;
}

.zp-baget-modal__dialog {
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  background: #fffdfa;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(20, 10, 40, 0.28);
  overflow: hidden;
}

.zp-baget-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 10px;
}

.zp-baget-modal__title {
  margin: 0;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: #1f1630;
}

.zp-baget-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #efeae2;
  color: #1f1630;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.zp-baget-modal__close::before {
  content: "\00D7";
}

.zp-baget-modal__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 8px 20px 16px;
}

.zp-baget-modal__cat {
  margin: 18px 0 10px;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c5470;
}

.zp-baget-modal__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.zp-baget-modal__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  color: #1f1630;
}

.zp-baget-modal__option:hover,
.zp-baget-modal__option.is-selected {
  border-color: #1f1630;
  background: rgba(31, 22, 48, 0.04);
}

.zp-baget-modal__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 22, 48, 0.12);
  display: block;
}

.zp-baget-modal__frame-render {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: block;
}

.zp-baget-modal__frame-mat {
  position: absolute;
  z-index: 1;
  background-color: #f1f5f9;
  display: block;
}

.zp-baget-modal__frame-side,
.zp-baget-modal__frame-corner {
  display: block;
  pointer-events: none;
}

.zp-baget-modal__preview-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zp-baget-modal__preview img {
  display: block;
}

.zp-baget-modal__option-price {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.zp-baget-modal__footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 14px 20px 18px;
  border-top: 1px solid #ebe4d8;
  background: #fffdfa;
}

.zp-baget-modal__btn {
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.zp-baget-modal__btn--ghost {
  border: 1px solid #1f1630;
  background: transparent;
  color: #1f1630;
}

.zp-baget-modal__btn--primary {
  border: 0;
  background: #1f1630;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 820px) {
  .zp-baget-modal__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .zp-baget-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zp-baget-modal__footer {
    flex-direction: column;
  }

  .zp-baget-modal__btn {
    width: 100%;
  }
}

.zp-product-detail__delivery {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f3f3f7;
  color: #5c5470;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 14px;
  line-height: 1.45;
}

.zp-product-detail__cdek {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f0ebff;
  border: 1px solid #e2d8ff;
  color: #3b135c;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 14px;
  line-height: 1.45;
}

.zp-product-detail__cdek.is-loading {
  opacity: 0.85;
}

.zp-product-detail__cdek.is-error {
  background: #fff4f4;
  border-color: #ffd6d6;
  color: #7a2e2e;
}

.zp-product-detail__cdek-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.zp-product-detail__cdek-line {
  margin: 0;
  font-weight: 600;
}

.zp-product-detail__cdek-note {
  margin: 8px 0 0;
  color: #5c5470;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.zp-product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zp-product-detail__cta {
  display: inline-flex;
  flex: 1 1 180px;
  align-items: center;
  justify-content: center;
  min-height: var(--zp-holst-cta-min-height, 46px);
  padding: var(--zp-holst-cta-pad-y, 12px) var(--zp-holst-cta-pad-x-primary, 24px);
  border: 1.5px solid #6440bf;
  border-radius: 16px;
  background: #fff;
  color: #6440bf;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: var(--zp-holst-cta-font-size, 16px);
  font-weight: 600;
  line-height: var(--zp-holst-cta-line-height, 22px);
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.zp-product-detail__cta:hover,
.zp-product-detail__cta:focus-visible {
  background: #f6f4fb;
  color: #4c3191;
  border-color: #4c3191;
  outline: none;
}

.zp-product-detail__cta-secondary {
  display: inline-flex;
  flex: 1 1 180px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 16px;
  background: #f6f4fb;
  color: #6440bf;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
}

.zp-product-detail__cta-secondary[data-zp-buy-now] {
  background: #6440bf;
  color: #fff;
}

.zp-product-detail__cta-secondary[data-zp-add-cart] {
  background: #6440bf;
  color: #fff;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.zp-product-detail__cta-secondary[data-zp-add-cart]:hover,
.zp-product-detail__cta-secondary[data-zp-add-cart]:focus-visible {
  background: #4c3191;
  color: #fff;
}

.zp-product-detail__cta-secondary[data-zp-buy-now]:hover,
.zp-product-detail__cta-secondary[data-zp-buy-now]:focus-visible {
  background: #4c3191;
  color: #fff;
}

.zp-product-detail__yapay {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  margin: 0 0 10px;
}

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

.zp-product-detail__yapay-badge {
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
}

.zp-product-detail__yapay-badge:empty {
  display: none;
}

/* Ultimate / BNPL preview widget заполняет контейнер по ширине */
.zp-product-detail__yapay-badge > * {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

/* Локальный Сплит (выбор месяцев) — как Ultimate на скриншоте */
.zp-split-plans {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid #e8e8ed;
  border-radius: 16px;
  font-family: "YS Text", "Yandex Sans Text", "Helvetica Neue", Arial, sans-serif;
  color: #000;
}

.zp-split-plans__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.zp-split-plans__logo {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background: url("/images/payments/yandex-split.svg") center / contain no-repeat;
}

.zp-split-plans__titles {
  flex: 1 1 auto;
  min-width: 0;
}

.zp-split-plans__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.zp-split-plans__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
}

.zp-split-plans__pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.zp-split-plans__pill--solid {
  background: #f43;
  color: #fff;
}

.zp-split-plans__pill--outline {
  background: #fff;
  color: #f43;
  border: 1px solid #f43;
}

.zp-split-plans__sub {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.3;
  color: #8b8b96;
}

.zp-split-plans__check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid #c7c7cf;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(#c7c7cf, #c7c7cf) border-box;
  position: relative;
}

.zp-split-plans__check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #c7c7cf;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.zp-split-plans__plans {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.zp-split-plans__plans::-webkit-scrollbar {
  display: none;
}

.zp-split-plans__plan {
  flex: 1 1 0;
  min-width: 88px;
  margin: 0;
  padding: 10px 10px 9px;
  border: 1.5px solid #e0e0e6;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zp-split-plans__plan:hover,
.zp-split-plans__plan:focus-visible {
  border-color: #bdbdc6;
  outline: none;
}

.zp-split-plans__plan.is-active {
  border-color: #000;
  box-shadow: inset 0 0 0 0.5px #000;
}

.zp-split-plans__plan-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.zp-split-plans__plan-months {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.zp-split-plans__plan-badge {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 5px;
  border-radius: 4px;
  background: #12b76a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.zp-split-plans__plan-sum {
  display: block;
  font-size: 12px;
  line-height: 1.25;
  color: #8b8b96;
}

.zp-split-plans__foot {
  padding-top: 2px;
}

.zp-split-plans__bar {
  height: 3px;
  border-radius: 999px;
  background: #ececf1;
  overflow: hidden;
  margin-bottom: 10px;
}

.zp-split-plans__bar-fill {
  display: block;
  width: 18%;
  height: 100%;
  background: #12b76a;
  border-radius: inherit;
}

.zp-split-plans__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.zp-split-plans__today {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.zp-split-plans__today-label {
  font-size: 12px;
  color: #8b8b96;
  line-height: 1.2;
}

.zp-split-plans__today-sum {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.zp-split-plans__schedule {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  font-size: 12px;
  line-height: 1.35;
  color: #8b8b96;
}

.zp-split-plans__schedule-sum {
  color: #000;
  font-weight: 600;
}

.zp-split-plans__schedule-sum em {
  font-style: normal;
  color: #12b76a;
  font-weight: 600;
}

/* PDP: кнопка Яндекс Пэй скрыта; оплата полной суммы — Т‑Банк под Сплитом */
.zp-product-detail__yapay-btn {
  display: none !important;
}

.zp-product-detail__yapay .zp-product-detail__tinkoff,
.zp-product-detail__yapay .zp-tinkoff-pay-buttons[data-zp-tinkoff-widgets] {
  display: block;
  width: 100%;
  margin-top: 10px;
  min-height: 48px;
}

.zp-product-detail__yapay .zp-tinkoff-pay-buttons[hidden] {
  display: none !important;
}

.zp-product-detail__tinkoff-cta {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 16px;
  border: none;
  border-radius: 16px;
  background: #ffdd2d;
  color: #1a1a1a;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 1px 0 rgba(36, 22, 74, 0.06);
}

.zp-product-detail__tinkoff-cta:hover,
.zp-product-detail__tinkoff-cta:focus-visible {
  filter: brightness(0.97);
}

.zp-product-detail__tinkoff-cta:disabled {
  opacity: 0.55;
  cursor: wait;
}

.zp-product-detail__tinkoff-cta-main {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.zp-product-detail__tinkoff-cta-sub {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.75;
}

.zp-product-detail__tinkoff-widgets {
  margin-top: 8px;
  min-height: 0;
}

.zp-product-detail__tinkoff-widgets:empty {
  display: none;
}

/* Гость: кнопка оплаты визуально неактивна, клик → вход */
.zp-product-detail__yapay.is-auth-locked .zp-product-detail__yapay-btn .ya-pay-button,
.zp-product-detail__yapay.is-auth-locked .zp-product-detail__yapay-fallback {
  pointer-events: none !important;
  opacity: 0.42;
  filter: grayscale(0.25);
  cursor: not-allowed !important;
}

.zp-product-detail__yapay-gate {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  border: 1px dashed rgba(100, 64, 191, 0.45);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(36, 22, 74, 0.08);
  color: #24164a;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.zp-product-detail__yapay-gate:hover,
.zp-product-detail__yapay-gate:focus-visible {
  border-color: rgba(100, 64, 191, 0.7);
  background: #fff;
  outline: none;
}

.zp-product-detail__yapay-gate[hidden] {
  display: none !important;
}

.zp-product-detail__yapay-gate-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.zp-product-detail__yapay-gate-sub {
  color: #6b6578;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.zp-product-detail__yapay-btn > * {
  width: 100% !important;
  min-height: 48px;
  border-radius: 16px !important;
}

/* Контур: WhiteOutline + подстраховка, чтобы кнопка не сливалась с фоном */
.zp-product-detail__yapay-btn .ya-pay-button {
  border: 1px solid #c8c4d4 !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 0 rgba(36, 22, 74, 0.04);
  background-color: #fff !important;
}

.zp-product-detail__yapay-btn .ya-pay-button:hover,
.zp-product-detail__yapay-btn .ya-pay-button:focus-visible {
  border-color: #9b95ab !important;
}

.zp-product-detail__yapay-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(36, 22, 74, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(36, 22, 74, 0.08);
  color: #1a1a1a;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  cursor: pointer;
  box-sizing: border-box;
}

.zp-product-detail__yapay-fallback:hover,
.zp-product-detail__yapay-fallback:focus-visible {
  border-color: rgba(100, 64, 191, 0.35);
  outline: none;
}

.zp-product-detail__yapay-fallback:disabled {
  opacity: 0.65;
  cursor: wait;
}

.zp-product-detail__yapay-fallback-main {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.zp-product-detail__yapay-fallback-sub {
  color: #6b6578;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.zp-product-detail__yapay-note {
  margin: 0;
  color: #8a8498;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.zp-product-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zp-product-detail__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f3f7;
  color: #1a1a1a;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 12px;
  font-weight: 600;
}

.zp-product-detail__badges--pay {
  margin: 0;
}

.zp-product-detail__badge.zp-product-detail__badge--pay {
  background: #6440bf;
  color: #fff;
}

.zp-product-detail__panels {
  margin-top: clamp(28px, 4vw, 44px);
}

.zp-product-detail__panel {
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(36, 22, 74, 0.05);
}

.zp-product-detail__panel-head {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid #ece9f3;
  color: #242424;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: clamp(17px, 1.4vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.zp-product-detail__specs-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.zp-product-detail__specs {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 14px;
}

.zp-product-detail__specs th,
.zp-product-detail__specs td {
  padding: 11px 18px;
  border-bottom: 1px solid #f0edf6;
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.zp-product-detail__specs th {
  width: 26%;
  max-width: 16.5rem;
  color: #8b8799;
  font-weight: 500;
}

.zp-product-detail__specs td {
  width: auto;
  color: #242424;
  font-weight: 600;
}

.zp-product-detail__specs tr:last-child th,
.zp-product-detail__specs tr:last-child td {
  border-bottom: 0;
}

.zp-product-detail__description {
  padding: 0 20px 20px;
  overflow-wrap: anywhere;
  color: #3f3a4d;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 15px;
  hyphens: auto;
  line-height: 1.6;
  word-break: break-word;
}

.zp-product-detail__description-body {
  position: relative;
}

/* Свёртка ~10 строк (ПК и мобилка) */
.zp-product-detail__description.is-collapsed .zp-product-detail__description-body {
  max-height: calc(1.6em * 10);
  overflow: hidden;
}

.zp-product-detail__description.is-collapsed .zp-product-detail__description-body::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3.2em;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 88%);
}

.zp-product-detail__description-toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #6440bf;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zp-product-detail__description-toggle:hover,
.zp-product-detail__description-toggle:focus-visible {
  color: #4f2fa8;
}

.zp-product-detail__description-toggle[hidden] {
  display: none !important;
}

.zp-product-detail__description > h3:first-child,
.zp-product-detail__description-body > h3:first-child {
  margin: 0 0 10px;
  color: #242424;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.zp-product-detail__description p,
.zp-product-detail__description-body p {
  margin: 0 0 0.85em;
}

.zp-product-detail__description p:last-child,
.zp-product-detail__description-body p:last-child {
  margin-bottom: 0;
}

.zp-product-detail__description h4,
.zp-product-detail__description h5,
.zp-product-detail__description-body h4,
.zp-product-detail__description-body h5 {
  margin: 1em 0 0.4em;
  color: #242424;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.zp-product-detail__description ul,
.zp-product-detail__description ol,
.zp-product-detail__description-body ul,
.zp-product-detail__description-body ol {
  margin: 0 0 0.85em;
  padding-left: 1.35em;
}

.zp-product-detail__description li,
.zp-product-detail__description-body li {
  margin: 0.25em 0;
}

.zp-product-detail__description strong,
.zp-product-detail__description b,
.zp-product-detail__description-body strong,
.zp-product-detail__description-body b {
  font-weight: 700;
  color: #2a2438;
}

.zp-product-detail__description em,
.zp-product-detail__description i,
.zp-product-detail__description-body em,
.zp-product-detail__description-body i {
  font-style: italic;
}

.zp-product-detail__description u,
.zp-product-detail__description-body u {
  text-decoration: underline;
}

.zp-product-detail__description a,
.zp-product-detail__description-body a {
  color: #6440bf;
  text-decoration: underline;
}

.zp-product-detail__description blockquote,
.zp-product-detail__description-body blockquote {
  margin: 0.5em 0 0.85em;
  padding-left: 1em;
  border-left: 3px solid #d8d6e2;
}

.zp-product-detail__description font[size="2"],
.zp-product-detail__description-body font[size="2"] { font-size: 13px; }
.zp-product-detail__description font[size="3"],
.zp-product-detail__description-body font[size="3"] { font-size: 15px; }
.zp-product-detail__description font[size="4"],
.zp-product-detail__description-body font[size="4"] { font-size: 17px; }
.zp-product-detail__description font[size="5"],
.zp-product-detail__description-body font[size="5"] { font-size: 20px; }

.zp-product-detail__description [align="center"],
.zp-product-detail__description [style*="text-align: center"],
.zp-product-detail__description [style*="text-align:center"],
.zp-product-detail__description-body [align="center"],
.zp-product-detail__description-body [style*="text-align: center"],
.zp-product-detail__description-body [style*="text-align:center"] {
  text-align: center;
}

.zp-product-detail__description [align="right"],
.zp-product-detail__description [style*="text-align: right"],
.zp-product-detail__description [style*="text-align:right"],
.zp-product-detail__description-body [align="right"],
.zp-product-detail__description-body [style*="text-align: right"],
.zp-product-detail__description-body [style*="text-align:right"] {
  text-align: right;
}

.zp-product-detail__reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 18px 20px 20px;
}

.zp-product-detail__reviews-score {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #242424;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 28px;
  font-weight: 700;
}

.zp-product-detail__reviews-score::before {
  content: "★";
  color: #ffb800;
  font-size: 24px;
}

.zp-product-detail__reviews-note {
  margin: 0;
  color: #8b8799;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 14px;
  line-height: 1.45;
  max-width: 42rem;
}

.zp-product-detail__reviews-note > p {
  margin: 0 0 0.45em;
}

.zp-product-detail__reviews-note > p:last-child {
  margin-bottom: 0;
}

.zp-product-detail__reviews-count {
  color: #6b6578;
}

.zp-product-detail__reviews-lead {
  color: #2f2a3a;
  font-weight: 600;
  font-size: 15px;
}

.zp-product-detail__similar {
  margin-top: clamp(28px, 4vw, 44px);
}

.zp-product-detail__similar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.zp-product-detail__similar-head h2 {
  margin: 0;
  color: #242424;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
}

.zp-product-detail__similar-head a {
  color: #6440bf;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.zp-product-detail__similar-head a:hover,
.zp-product-detail__similar-head a:focus-visible {
  text-decoration: underline;
}

/* WB-like product grid: растёт вниз, не карусель вбок */
.zp-product-detail__similar-wrap {
  position: relative;
  overflow: visible;
}

.zp-product-detail__similar-track {
  --zp-similar-gap: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--zp-similar-gap);
  margin: 0;
  padding: 0;
  overflow: visible;
  /* never a sideways carousel */
  flex-wrap: unset;
  white-space: normal;
}

.zp-product-detail__similar-track .zp-product-card--compact {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
}

.zp-product-detail__similar-track .zp-product-card__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
}

.zp-product-detail__similar-track .zp-product-card__link:hover,
.zp-product-detail__similar-track .zp-product-card__link:focus-visible {
  border-color: transparent;
  box-shadow: none;
}

.zp-product-detail__similar-track .zp-product-card__media {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
}

.zp-product-detail__similar-track .zp-product-card__cta {
  width: 100%;
  margin-top: auto;
}

.zp-product-detail__similar-sentinel {
  display: block;
  width: 100%;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .zp-product-detail__similar-track {
    --zp-similar-gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .zp-product-detail__similar-track {
    --zp-similar-gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.zp-product-detail__mobile-bar {
  display: none;
}

@media (max-width: 991px) {
  .zp-product-detail__layout {
    grid-template-columns: 1fr;
  }

  /* Мобилка: галерея → оплата/buybox → характеристики */
  .zp-product-detail__gallery {
    order: 1;
    grid-column: 1;
    grid-row: auto;
    /* minmax(0,1fr): голый 1fr = minmax(auto,1fr) и трек раздувается до min-content (~640px) */
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .zp-product-detail__buybox {
    order: 2;
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .zp-product-detail__specs-block {
    order: 3;
    grid-column: 1;
    grid-row: auto;
  }

  .zp-product-detail__gallery-stage {
    grid-column: 1;
    order: 1;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .zp-product-detail__thumbs-rail {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    grid-column: 1;
    grid-row: auto;
    order: 2;
    width: auto;
    height: auto;
  }

  .zp-product-detail__thumbs-nav {
    display: none !important;
  }

  .zp-product-detail__thumbs {
    flex-direction: row;
    flex: none;
    height: auto;
    max-height: none;
    margin: 0 -4px;
    padding: 0 4px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .zp-product-detail__thumbs::-webkit-scrollbar {
    display: none;
  }

  .zp-product-detail__main-photo {
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .zp-product-detail__thumb {
    scroll-snap-align: start;
    width: 64px;
    height: 84px;
  }
}

/* Планшет: меньше пустоты между шапкой и хлебными крошками */
@media (min-width: 768px) and (max-width: 1023px) {
  body.zp-product-detail-body.home-layout-ref {
    --zp-fixed-header-h: 52px;
    --zp-site-header-gap: 6px;
    --zp-site-content-offset: calc(env(safe-area-inset-top, 0px) + 52px + 6px);
  }

  body.zp-product-detail-body.home-layout-ref main#main,
  body.zp-product-detail-body main#main.usluga-page-shell,
  body.zp-product-detail-body.home-layout-ref main#main.usluga-page-shell,
  body.zp-product-detail-body .zp-product-detail-page {
    padding-top: var(--zp-site-content-offset) !important;
  }

  .zp-product-detail {
    padding-top: 6px;
  }

  .zp-product-detail__breadcrumbs {
    margin-bottom: 12px;
  }

  .zp-product-detail__shell {
    padding-inline: clamp(12px, 2.4vw, 20px);
  }
}

@media (max-width: 767px) {
  /* Меньше «воздуха» под шапкой на PDP — селекторы не слабее базового !important */
  body.zp-product-detail-body.home-layout-ref {
    --zp-fixed-header-h: 52px;
    --zp-site-header-gap: 4px;
    --zp-site-content-offset: calc(env(safe-area-inset-top, 0px) + 52px + 4px);
  }

  body.zp-product-detail-body.home-layout-ref main#main,
  body.zp-product-detail-body main#main.usluga-page-shell,
  body.zp-product-detail-body.home-layout-ref main#main.usluga-page-shell,
  body.zp-product-detail-body .zp-product-detail-page {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: var(--zp-site-content-offset) !important;
  }

  .zp-product-detail {
    padding-top: 4px;
    padding-bottom: 88px;
  }

  .zp-product-detail__shell {
    width: 100%;
    max-width: none;
    padding-inline: 0;
  }

  .zp-product-detail__breadcrumbs {
    margin: 0 8px 10px;
  }

  .zp-product-detail__layout {
    gap: 12px;
  }

  .zp-product-detail__gallery {
    width: 100%;
  }

  .zp-product-detail__gallery-stage,
  .zp-product-detail__main-photo,
  .zp-product-detail__thumbs-rail,
  .zp-product-detail__thumbs {
    width: 100%;
    max-width: none;
  }

  .zp-product-detail__thumbs {
    margin: 0;
    padding: 0 6px 4px;
  }

  .zp-product-detail__gallery-arrow {
    display: none;
  }

  .zp-product-detail__buybox {
    margin-inline: 6px;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .zp-product-detail__panels,
  .zp-product-detail__specs-block,
  .zp-product-detail__similar {
    margin-inline: 6px;
    width: auto;
  }

  .zp-product-detail__panels {
    margin-top: 12px;
  }

  .zp-product-detail__panel {
    padding-inline: 0;
  }

  /* Описание — отдельная белая карточка, как на ПК */
  .zp-product-detail__description {
    padding: 4px 14px 16px;
    box-sizing: border-box;
  }

  /*
   * CTA уезжают в fixed mobile-bar. Сплит/ЯПэй монтируется НАД .actions
   * (см. zp-yandex-pay-pdp.js), поэтому блок кнопок можно скрыть целиком —
   * виджет остаётся в buybox.
   */
  .zp-product-detail__actions {
    display: none;
  }

  .zp-product-detail__buybox > .zp-product-detail__yapay {
    display: flex;
    width: 100%;
    margin: 0 0 8px;
  }

  .zp-product-detail__specs th,
  .zp-product-detail__specs td {
    padding-inline: 12px;
  }

  .zp-product-detail__specs th {
    width: 40%;
  }

  .zp-product-detail__panel-head {
    padding: 14px 14px;
  }

  .zp-product-detail__description-toggle {
    margin-inline: 0;
  }

  .zp-product-detail__mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #ece9f3;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
  }

  .zp-product-detail__mobile-bar .zp-product-detail__cta,
  .zp-product-detail__mobile-bar .zp-product-detail__cta-secondary {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 14px;
    font-size: 15px;
    white-space: normal;
    text-align: center;
  }

  /* Яндекс Пэй в нижней панели: не ломаем 2 CTA, бейдж/кнопка — в buybox */
  .zp-product-detail__mobile-bar .zp-product-detail__yapay {
    display: none;
  }

  /* Чат-FAB на PDP мобиле не нужен: есть «Задать вопрос» в нижней панели */
  body.zp-product-detail-body .zp-site-chat-launcher {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 767px) {
  .zp-product-detail__specs,
  .zp-product-detail__specs tbody,
  .zp-product-detail__specs tr,
  .zp-product-detail__specs th,
  .zp-product-detail__specs td {
    display: block;
    width: 100%;
    max-width: none;
  }

  .zp-product-detail__specs th {
    padding: 12px 14px 2px;
    border-bottom: 0;
    color: #8b8799;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
  }

  .zp-product-detail__specs td {
    padding: 0 14px 12px;
    font-size: 14px;
  }

  .zp-product-detail__specs tr {
    border-bottom: 1px solid #f0edf6;
  }

  .zp-product-detail__specs tr:last-child {
    border-bottom: 0;
  }

  .zp-product-detail__specs-wrap {
    overflow: visible;
  }
}

/* Fullscreen photo album — WB-like light gallery */
html.zp-product-lightbox-open,
body.zp-product-lightbox-open {
  overflow: hidden;
}

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

.zp-product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.zp-product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 36, 36, 0.3);
  cursor: pointer;
}

.zp-product-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  box-sizing: border-box;
  width: min(100%, 1400px);
  height: min(100dvh, 100vh);
  margin: 0 auto;
  padding: 24px 56px 20px 24px;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.zp-product-lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.zp-product-lightbox__close:hover,
.zp-product-lightbox__close:focus-visible {
  background: transparent;
  outline: none;
  opacity: 0.7;
}

.zp-product-lightbox__close::before,
.zp-product-lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: #242429;
  transform-origin: center;
}

.zp-product-lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.zp-product-lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.zp-product-lightbox__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
  max-height: 100%;
  padding: 8px 0 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.zp-product-lightbox__thumb {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 96px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f6f6f9;
  cursor: pointer;
}

.zp-product-lightbox__thumb.is-active {
  border-color: #242429;
}

.zp-product-lightbox__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zp-product-lightbox__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.zp-product-lightbox__viewport {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.zp-product-lightbox__track {
  display: flex;
  height: 100%;
  transition: transform 0.28s ease;
  transform: translate3d(calc(var(--gallery-index, 0) * -100%), 0, 0);
}

.zp-product-lightbox__slide {
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  margin: 0;
  background: #fff;
}

.zp-product-lightbox__image,
.zp-product-lightbox__slide img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.zp-product-lightbox__placeholder {
  color: #5c5470;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 16px;
  font-weight: 600;
}

.zp-product-lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  color: #242429;
  cursor: pointer;
  transform: translateY(-50%);
}

.zp-product-lightbox__arrow:hover,
.zp-product-lightbox__arrow:focus-visible {
  background: #fff;
  outline: none;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.16);
}

.zp-product-lightbox__arrow--prev {
  left: 8px;
}

.zp-product-lightbox__arrow--next {
  right: 8px;
}

.zp-product-lightbox__arrow::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid #242429;
  border-right: 2px solid #242429;
}

.zp-product-lightbox__arrow--prev::before {
  transform: rotate(-135deg) translate(1px, -1px);
}

.zp-product-lightbox__arrow--next::before {
  transform: rotate(45deg) translate(-1px, 1px);
}

.zp-product-lightbox__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.zp-product-lightbox__counter {
  flex: 0 0 auto;
  margin: 12px 0 0;
  color: #8b8799;
  font-family: var(--zp-font-ui, Nunito, sans-serif);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* Tablet / mobile — WB: full white sheet, thumbs bottom, frosted close */
@media (max-width: 991px) {
  .zp-product-lightbox__backdrop {
    background: #fff;
  }

  .zp-product-lightbox__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .zp-product-lightbox__close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .zp-product-lightbox__close:hover,
  .zp-product-lightbox__close:focus-visible {
    background: rgba(255, 255, 255, 0.92);
    opacity: 1;
  }

  .zp-product-lightbox__thumbs {
    order: 2;
    flex-direction: row;
    gap: 8px;
    max-height: none;
    padding: 8px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .zp-product-lightbox__thumbs::-webkit-scrollbar {
    display: none;
  }

  .zp-product-lightbox__stage {
    order: 1;
    min-height: 0;
  }

  .zp-product-lightbox__thumb {
    width: 48px;
    height: 64px;
    border-radius: 6px;
  }

  .zp-product-lightbox__thumb.is-active {
    border-color: #a73afd;
  }

  .zp-product-lightbox__arrow {
    display: none;
  }

  .zp-product-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 3;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #242429;
    transform: translateX(-50%);
  }

  .zp-product-lightbox__viewport {
    touch-action: pan-y pinch-zoom;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .zp-product-lightbox__dialog {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 48px 16px 20px;
  }

  .zp-product-lightbox__thumb {
    width: 64px;
    height: 86px;
  }
}

@media (min-width: 1400px) {
  .zp-product-lightbox__dialog {
    width: min(100%, 1520px);
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .zp-product-lightbox__thumb {
    width: 80px;
    height: 106px;
  }
}

/* PDP SEO keywords: always open + full shell width */
.zp-product-detail #zp-seo-product.zp-seo-keywords--product,
.zp-product-detail .zp-seo-keywords--product {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
}

.zp-product-detail .zp-seo-keywords--product .zp-seo-keywords__inner,
.zp-product-detail .zp-seo-keywords--product .wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: 12px;
}

.zp-product-detail .zp-seo-keywords--product .zp-seo-keywords__teaser-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  width: 100%;
  max-width: 100%;
}

.zp-product-detail .zp-seo-keywords--product .zp-seo-keywords__teaser {
  flex: 1 1 100%;
  max-width: 100%;
  white-space: normal;
}

.zp-product-detail .zp-seo-keywords--product .zp-seo-keywords__collapse {
  display: none !important;
}

.zp-product-detail .zp-seo-keywords--product .zp-seo-keywords__expand,
.zp-product-detail .zp-seo-keywords--product.is-collapsed .zp-seo-keywords__expand {
  display: block !important;
}

.zp-product-detail .zp-seo-keywords--product .zp-seo-keywords__expand[hidden] {
  display: block !important;
}

.zp-product-detail .zp-seo-keywords--product .zp-seo-keywords__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 768px) {
  .zp-product-detail .zp-seo-keywords--product .zp-seo-keywords__inner,
  .zp-product-detail .zp-seo-keywords--product .wrap {
    padding-inline: 16px;
  }
}

@media (max-width: 767px) {
  .zp-product-detail .zp-seo-keywords--product {
    margin-inline: 6px;
    width: auto;
  }

  .zp-product-detail .zp-seo-keywords--product .zp-seo-keywords__inner,
  .zp-product-detail .zp-seo-keywords--product .wrap {
    padding-inline: 10px;
  }
}


/* PDP: no T‑Bank pay on product card — cart only */
.zp-product-detail .zp-product-detail__tinkoff,
.zp-product-detail .zp-tinkoff-pay-buttons,
.zp-product-detail [data-zp-tinkoff-widgets],
.zp-product-detail [data-zp-tinkoff-cta],
.zp-product-detail [data-zp-tinkoff-sdk] {
  display: none !important;
}
