/* ==========================================================================
   tpl-plisse.css — Финальный модуль шаблона «Шторы плиссе» (v3)
   Работает поверх preview.css и tpl-product.css
   ========================================================================== */

.fans-grid > *, .demo-bento > *, .updown-box > *,
.pcalc-layout > *, .pcalc-sliders > *, .pcalc-bottom-row > * {
  min-width: 0;
}

.hdr__nav a.is-current-nav {
  color: var(--emerald);
}

/* ---------- 1. Жёсткая обрезка превью и чистое кадрирование без белой пелены ---------- */
.p-gal__stage > img[src*="2_210a53a4"] {
  object-position: 100% 50%;
  transform: scale(1.56);
  transform-origin: 100% 50%;
}

.p-thumb {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-width: 2px;
  border-radius: 15px;
}

.p-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px #FFFFFF;
  pointer-events: none;
  z-index: 2;
}

.p-thumb img {
  width: 100%;
  height: 82px;
  border-radius: 0;
  display: block;
}

.p-thumb img[src*="2_210a53a4"] {
  object-position: 100% 50%;
  transform: scale(2.06);
  transform-origin: 100% 50%;
}

.p-card__stage--photo img[src*="2_210a53a4"] {
  object-position: 100% 50%;
  transform: scale(2.04);
  transform-origin: 100% 50%;
}

.p-card:hover .p-card__stage--photo img[src*="2_210a53a4"] {
  transform: scale(2.1);
}

/* Калибровка шапки цены с /м² в одну ровную линию на десктопе */
.p-buybox__offer--plisse .p-buybox__price-head {
  flex-wrap: nowrap;
}

.p-buybox__offer--plisse .p-buybox__price-line {
  flex-wrap: nowrap;
  gap: 8px;
}

.p-buybox__offer--plisse .p-buybox__price-line strong {
  font-size: 28px;
  white-space: nowrap;
}

.p-buybox__offer--plisse .p-buybox__price-line s {
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- 2. Однострочная панель всех 13 подборок внутри 1280px без обрезки ---------- */
.plisse-tags-bar {
  position: relative;
  margin-top: 16px;
  padding: 9px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.plisse-tags-bar__lbl {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted-2);
  white-space: nowrap;
  flex-shrink: 0;
}

.plisse-tags-bar__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.plisse-tags-bar__list::-webkit-scrollbar {
  display: none;
}

.plisse-tags-bar__list a {
  height: 29px;
  padding: 0 9px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.16s var(--ease);
}

.plisse-tags-bar__list a:hover {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #FFFFFF;
}

.plisse-tags-bar__list a.is-promo-tag {
  background: var(--sage);
  border-color: var(--sage-border);
  color: var(--sage-ink);
  font-weight: 700;
}

.plisse-tags-bar__list a.is-promo-tag:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #FFFFFF;
}

/* ---------- 3. Карточки 6 вариантов штор плиссе ---------- */
.p-card--white {
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.p-card--white .specs {
  background: var(--surface);
}

.p-card__stage--photo {
  padding: 0;
  background: #E2E8F0;
}

.p-card__stage--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-card:hover .p-card__stage--photo img:not([src*="2_210a53a4"]) {
  transform: scale(1.05);
}

/* ---------- 4. Палитра из 12 вееров плиссированных тканей (4×3) ---------- */
.fans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.fan-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.fan-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: 0 16px 36px rgba(17, 19, 23, 0.07);
}

.fan-card__stage {
  position: relative;
  height: 196px;
  border-radius: 16px;
  background: radial-gradient(circle at 28% 24%, #FFFFFF 0%, #EFF3F8 100%);
  border: 1px solid rgba(17, 19, 23, 0.04);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fan-card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(17, 19, 23, 0.05);
}

.fan-card__tag.is-bo {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #FFFFFF;
}

.fan-swatch {
  position: relative;
  width: 160px;
  height: 160px;
  transform: translate(18px, 24px) rotate(-7deg);
  border-radius: 8px 152px 8px 14px;
  background:
    repeating-conic-gradient(
      from 0deg at 0% 100%,
      rgba(255, 255, 255, 0.24) 0deg 3.2deg,
      rgba(0, 0, 0, 0.16) 3.2deg 6.4deg,
      transparent 6.4deg 7.5deg
    ),
    repeating-radial-gradient(
      circle at 0% 100%,
      var(--fan-weave, rgba(255, 255, 255, 0.2)) 0px 1px,
      transparent 1px 4px
    ),
    linear-gradient(135deg, var(--fan-c1, #DCE2EC) 0%, var(--fan-c2, #94A3B8) 100%);
  box-shadow:
    -6px 10px 22px rgba(17, 19, 23, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.32s var(--ease);
}

.fan-swatch::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid #CBD5E1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.fan-card:hover .fan-swatch {
  transform: translate(16px, 20px) rotate(-3deg) scale(1.04);
}

.fan-card__img {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background: #FFFFFF;
}

.fan-card__body {
  padding: 12px 4px 2px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fan-card__body b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.fan-card__body b a:hover {
  color: var(--emerald);
}

.fan-card__btn {
  margin-top: auto;
  padding: 10px 0 0;
  border: 0;
  background: transparent;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 0.16s var(--ease);
}

.fan-card__btn:hover {
  color: var(--emerald-hover);
  text-decoration: underline;
}

/* ---------- 5. Видеостенд мастера + Реалистичный симулятор Up & Down ---------- */
.demo-bento {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.stand-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #1B2430;
  min-height: 480px;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.stand-card__poster,
.stand-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.stand-card:hover .stand-card__poster,
.stand-card:hover .stand-card__video {
  transform: scale(1.05);
}

.stand-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(17, 19, 23, 0.28) 0%, rgba(17, 19, 23, 0.06) 46%, rgba(17, 19, 23, 0.86) 100%);
}

.stand-card__badge {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.stand-card__caption {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
}

.stand-card__caption b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.stand-card__caption small {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.84);
}

.updown-box {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 30px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}

.updown-box__info .pill {
  margin-bottom: 10px;
}

.updown-box__info h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.updown-box__info > p {
  font-size: 14px;
  color: var(--muted-2);
  margin-top: 6px;
}

.updown-modes {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.updown-mode {
  width: 100%;
  padding: 12px 15px;
  border-radius: 15px;
  border: 1.5px solid var(--line-soft);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.updown-mode b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.updown-mode small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.updown-mode:hover {
  border-color: #B8C4D4;
  background: #FFFFFF;
}

.updown-mode.is-active {
  background: var(--sage);
  border-color: var(--emerald);
}

.updown-mode.is-active b {
  color: var(--sage-ink);
}

.updown-mode.is-active small {
  color: #145B3E;
}

.updown-box__caption {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 13px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* Макет ПВХ-створки с чистым уличным пейзажем */
.updown-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.win-mock {
  width: 100%;
  max-width: 292px;
}

.win-mock__frame {
  position: relative;
  background: linear-gradient(145deg, #FFFFFF 0%, #E9EEF5 100%);
  border: 2px solid #D3DCE8;
  border-radius: 16px 16px 6px 6px;
  padding: 20px 24px 20px 20px;
  box-shadow: 0 18px 40px rgba(17, 19, 23, 0.12), inset 0 0 0 6px #F8FAFC;
}

.win-mock__glass {
  position: relative;
  aspect-ratio: 3 / 4.3;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #CBD5E1;
  background: #CFE4F7;
}

.win-mock__outdoor,
.win-mock__glass > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.win-mock__cords {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  right: 14px;
  border-left: 1px dashed rgba(255, 255, 255, 0.78);
  border-right: 1px dashed rgba(255, 255, 255, 0.78);
  z-index: 2;
  pointer-events: none;
}

.win-mock__day {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--day-split, 0%);
  z-index: 3;
  overflow: hidden;
  backdrop-filter: blur(2px);
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.76) 0px 6px,
      rgba(226, 232, 240, 0.62) 6px 12px
    );
  transition: height 0.42s var(--ease);
}

.win-mock__pleat {
  position: absolute;
  left: 0;
  right: 0;
  top: max(var(--shade-top, 38%), var(--day-split, 0%));
  bottom: var(--shade-bottom, 0%);
  z-index: 4;
  background:
    repeating-linear-gradient(
      180deg,
      #F5EFE6 0px 7px,
      #DFD3C1 7px 14px
    );
  box-shadow: 0 -6px 16px rgba(17, 19, 23, 0.16), 0 6px 16px rgba(17, 19, 23, 0.16);
  transition: top 0.42s var(--ease), bottom 0.42s var(--ease), background 0.3s var(--ease);
}

.win-mock.is-daynight .win-mock__pleat {
  background:
    repeating-linear-gradient(
      180deg,
      #2C333F 0px 7px,
      #1A1F27 7px 14px
    );
}

.win-mock__bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  background: linear-gradient(180deg, #FFFFFF 0%, #CFD8E3 100%);
  border-top: 1px solid #B8C4D4;
  border-bottom: 1px solid #94A3B8;
  display: flex;
  justify-content: center;
}

.win-mock__bar--top {
  top: 0;
}

.win-mock__bar--bottom {
  bottom: 0;
}

.win-mock__bar i {
  width: 28px;
  height: 5px;
  border-radius: 999px;
  background: var(--emerald);
  margin-top: 1px;
}

.win-mock__handle {
  position: absolute;
  right: 5px;
  top: 46%;
  width: 8px;
  height: 48px;
  border-radius: 5px;
  background: #CBD5E1;
  box-shadow: -1px 2px 4px rgba(0, 0, 0, 0.15);
}

.win-mock__sill {
  height: 14px;
  margin: 0 -10px;
  border-radius: 6px;
  background: linear-gradient(180deg, #FFFFFF 0%, #DCE4EE 100%);
  border: 1px solid #CBD5E1;
  box-shadow: 0 8px 18px rgba(17, 19, 23, 0.08);
}

/* ---------- 6. Онлайн-калькулятор штор плиссе ---------- */
.pcalc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: 20px;
  align-items: stretch;
}

.pcalc-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.pcalc-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pcalc-range-box {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 16px 18px;
}

.pcalc-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pcalc-range-head label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.pcalc-num-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
}

.pcalc-num-wrap input {
  width: 46px;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  text-align: right;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.pcalc-range {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  accent-color: var(--emerald);
  cursor: pointer;
}

.pcalc-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.pcalc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.pcalc-options--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pcalc-opt {
  padding: 12px 14px;
  border-radius: 15px;
  border: 1.5px solid var(--line-soft);
  background: #FFFFFF;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.pcalc-opt b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.pcalc-opt small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.pcalc-opt:hover {
  border-color: var(--emerald);
}

.pcalc-opt.is-active {
  background: var(--sage);
  border-color: var(--emerald);
}

.pcalc-opt.is-active b {
  color: var(--sage-ink);
}

.pcalc-opt.is-active small {
  color: #145B3E;
}

.pcalc-bottom-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: end;
}

.pcalc-qty-block,
.pcalc-color-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pcalc-stepper {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 4px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
}

.pcalc-stepper button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.pcalc-stepper button:hover {
  background: var(--emerald);
  color: #FFFFFF;
}

.pcalc-stepper input {
  width: 44px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  outline: none;
}

.pcalc-colors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pcalc-cbtn {
  height: 44px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1.5px solid var(--line-soft);
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s var(--ease);
}

.pcalc-cbtn i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(17, 19, 23, 0.18);
  flex-shrink: 0;
}

.pcalc-cbtn.is-active {
  background: var(--sage);
  border-color: var(--emerald);
  color: var(--sage-ink);
}

.pcalc-summary {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pcalc-summary .pill {
  align-self: flex-start;
}

.pcalc-summary h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.pcalc-dl {
  margin: 0;
  display: grid;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 16px;
}

.pcalc-dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line-soft);
}

.pcalc-dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pcalc-dl dt {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.pcalc-dl dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  line-height: 1.3;
}

.pcalc-dl dd.is-free {
  color: var(--emerald);
}

.pcalc-total {
  margin-top: auto;
  background: #FFFFFF;
  border: 1px solid var(--sage-border);
  border-radius: 18px;
  padding: 16px 18px;
}

.pcalc-total > span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-2);
}

.pcalc-total__nums {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.pcalc-total__nums strong {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.pcalc-total__nums s {
  font-size: 15px;
  font-weight: 600;
}

.pcalc-total > small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

#pcalcOrderBtn {
  padding: 0 18px;
  font-size: 14.5px;
}

.pcalc-msgr > small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  margin-bottom: 8px;
}

.pcalc-msgr .calc-side__msgr {
  margin-top: 0;
}

/* ---------- 7. Контрастные белые карточки на серых секциях ---------- */
.apertures-grid--white .aperture-card {
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.price-aside--tinted {
  background: var(--surface);
  box-shadow: none;
}

.reviews-leave-bar {
  margin-top: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.reviews-leave-bar__info .verified {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.reviews-leave-bar__info .verified svg {
  width: 18px;
  height: 18px;
  color: #1D6BF3;
}

.reviews-leave-bar__info small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.geo-zones--white .geo-zone,
.contact-card--white,
.seo-cluster--white .seo-cluster__group {
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.seo-cluster--white .cluster-pills a {
  background: var(--surface);
}

.seo-cluster--white .cluster-pills a:hover {
  background: var(--emerald);
}

/* ==========================================================================
   АДАПТИВНОСТЬ ШАБЛОНА ШТОР ПЛИССЕ
   ========================================================================== */
@media (max-width: 1180px) {
  .plisse-tags-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 34px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(244, 246, 249, 0) 0%, var(--surface) 92%);
  }
}

@media (max-width: 1100px) {
  .fans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .demo-bento,
  .pcalc-layout {
    grid-template-columns: 1fr;
  }
  .stand-card {
    min-height: 320px;
  }
  .pcalc-options--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .p-gal__stage > img[src*="2_210a53a4"] {
    object-position: 100% 50%;
    transform: scale(1.86);
    transform-origin: 100% 50%;
  }

  .p-thumb {
    border-radius: 12px;
  }

  .p-thumb::after {
    box-shadow: inset 0 0 0 2px #FFFFFF;
  }

  .p-thumb img {
    height: 60px;
  }

  .p-buybox__offer--plisse .p-buybox__price-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .p-buybox__offer--plisse .p-buybox__price-line strong {
    font-size: 25px;
  }

  /* Быстрые подборки в 1 свайп-строку на смартфоне */
  .plisse-tags-bar {
    padding: 9px 12px;
    border-radius: 16px;
    gap: 8px;
  }

  .plisse-tags-bar__lbl {
    display: none;
  }

  .plisse-tags-bar__list {
    justify-content: flex-start;
    padding-right: 18px;
  }

  /* Свободная посадка ценника ₽/м² в мобильных карточках витрины */
  .plisse-variants-grid .p-card__price s {
    display: none;
  }

  .plisse-variants-grid .p-card__price .now {
    font-size: 15px;
  }

  /* Полноширинная кнопка шапки и свободные веера без касания бейджа */
  #palette .section-head__aside,
  #palette .section-head__aside .btn {
    width: 100%;
  }

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

  #palette:not(.is-expanded):not(.is-filtered) .fan-card:nth-child(n+7) {
    display: none;
  }

  .fan-card {
    padding: 9px;
    border-radius: 18px;
  }

  .fan-card__stage {
    height: 138px;
    border-radius: 13px;
  }

  .fan-card__tag {
    top: 6px;
    left: 6px;
    height: 21px;
    padding: 0 7.5px;
    font-size: 12px;
  }

  .fan-swatch {
    width: 96px;
    height: 96px;
    transform: translate(18px, 22px) rotate(-7deg);
  }

  .fan-card__body b {
    font-size: 13.5px;
    line-height: 1.24;
    min-height: 2.48em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fan-card__body .item-sub {
    font-size: 12px;
    min-height: 2.75em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fan-card__btn {
    font-size: 12px;
    padding-top: 8px;
  }

  /* Компактный видеостенд + симулятор окна на смартфоне */
  .stand-card {
    min-height: 216px;
    padding: 14px;
    border-radius: 22px;
  }

  .stand-card .reel-card__play {
    width: 48px;
    height: 48px;
  }

  .stand-card__caption b {
    font-size: 14.5px;
  }

  .updown-box {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    border-radius: 22px;
    gap: 18px;
  }

  .updown-stage {
    order: -1;
  }

  .win-mock {
    max-width: 216px;
  }

  .updown-box__info h3 {
    font-size: 19px;
  }

  /* Калькулятор на смартфоне с компактным горизонтальным степпером */
  .pcalc-card,
  .pcalc-summary {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .pcalc-sliders,
  .pcalc-options,
  .pcalc-bottom-row {
    grid-template-columns: 1fr;
  }

  .pcalc-options--4,
  .pcalc-colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pcalc-qty-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1px solid var(--line-soft);
    border-radius: 15px;
    padding: 7px 8px 7px 14px;
  }

  .pcalc-stepper {
    width: auto;
    height: 38px;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .pcalc-total__nums strong {
    font-size: 27px;
  }

  #pcalcOrderBtn {
    padding: 0 14px;
    font-size: 13.5px;
    gap: 8px;
  }

  .reviews-leave-bar {
    padding: 16px;
    border-radius: 20px;
  }

  .reviews-leave-bar .btn {
    width: 100%;
  }
}
/* ---------- Works block: фикс. высота spotlight + карусель кейсов ---------- */
.works-curtains .case-spotlight__media { min-height: 460px; }
.works-curtains .case-spotlight__body h3 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.works-curtains .case-spotlight__points > div > span {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.works-carousel { position: relative; }
.works-grid--carousel {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 4px;
}
.works-grid--carousel::-webkit-scrollbar { display: none; }
.works-grid--carousel > .case {
  flex: 0 0 calc((100% - 48px) / 4);
  scroll-snap-align: start;
  min-width: 0;
}
.works-carousel__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.works-carousel__btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-soft);
  background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .18s ease, color .18s ease;
}
.works-carousel__btn:hover:not(:disabled) { border-color: var(--emerald); color: var(--emerald); }
.works-carousel__btn:disabled { opacity: .4; cursor: default; }
@media (max-width: 1100px) { .works-grid--carousel > .case { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 820px) { .works-grid--carousel > .case { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .works-grid--carousel > .case { flex-basis: 84%; } }
