/* centrvann.ru/mix/ only — local file. Shared mix.constructor / 1marka untouched. */

/* Full-bleed work area via explicit DOM class (beats psk_v2 .container{width:1170px}). */
body.mix-page .container.mix-shell-wide {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

body.mix-page .container:not(.psk_fixed_header) {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.mix-page .mix-shell-wide .mix-constructor-page,
body.mix-page .mix-shell-wide #mixc,
body.mix-page .mix-constructor-page,
body.mix-page #mixc {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.mix-page ul.psk055 {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.mix-page #pagetitle,
body.mix-page #psk158,
body.mix-page #psk163_01,
body.mix-page #panel-disclaimer,
body.mix-page [class*="marquiz" i],
body.mix-page [id*="marquiz" i],
body.mix-page [data-marquiz-id],
body.mix-page iframe[src*="marquiz" i],
body.mix-page [id*="lp9" i],
body.mix-page [class*="lp9" i],
body.mix-page iframe[src*="lp9.ru" i],
body.mix-page [class*="jivo" i],
body.mix-page [id*="jivo" i],
body.mix-page [class*="b24-widget" i],
body.mix-page .get-discount {
  display: none !important;
}

body.mix-page .psk011_01 {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

body.mix-page #mixc.mixc--flow > .mixc__head .mixc__tabs,
body.mix-page #mixc.mixc--flow > .mixc__head .mixc__title,
body.mix-page #mixc.mixc--flow > .mixc__head h1.mixc__title {
  justify-self: start !important;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

@media (min-width: 768px) {
  body.mix-page #mixc:is([data-mix-product="pencil"], [data-mix-product="mirror"]) {
    --mixc-stage-height: max(640px, var(--mixc-fit-height, 500px));
  }

  body.mix-page #mixc:is([data-mix-product="pencil"], [data-mix-product="mirror"]) > .mixc__body:not(.mixc__sheet-outgoing) {
    height: var(--mixc-stage-height) !important;
    min-height: 0 !important;
  }

  body.mix-page #mixc[data-mix-product="tumba"]:has(> .mixc__body--wide .mixc__list--hero, > .mixc__body--panel .mixc__matrix) {
    --mixc-stage-height: max(640px, var(--mixc-fit-height, 500px));
    --mixc-step-height: var(--mixc-stage-height);
  }

  body.mix-page #mixc[data-mix-product="tumba"]:has(> .mixc__body--wide .mixc__list--hero) > .mixc__body--wide {
    height: var(--mixc-stage-height) !important;
    min-height: 0 !important;
  }

  body.mix-page #mixc[data-mix-product="pencil"] :where(.mixc__list--pencil-colors) {
    --mixc-pencil-color-height: min(560px, calc(var(--mixc-stage-height) * .88), 46vw);
    --mixc-pencil-color-gap: clamp(10px, 2.4vw, 56px);
    width: min(92vw, 1500px);
    translate: 0 calc(var(--mixc-stage-height) * .01);
  }

  body.mix-page #mixc[data-mix-product="pencil"] :where(.mixc__opt--hero) {
    --mixc-hero-height: min(627px, calc(var(--mixc-stage-height) - 16px), 52vw);
  }

  body.mix-page #mixc[data-mix-product="pencil"] :where(.mixc__list--hero) {
    width: min(100%, 1400px);
  }

  /* Safari: pencil corpus prices — force grid body-price, sync media to color-height */
  body.mix-page #mixc[data-mix-product="pencil"] .mixc__list--pencil-colors .mixc__opt--body-price {
    display: grid !important;
    grid-template-columns: max-content max-content;
    grid-template-areas: "label media" ". price";
    grid-template-rows: auto auto;
    justify-content: center;
    column-gap: var(--mixc-pencil-color-gap);
    row-gap: 10px;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
  }

  body.mix-page #mixc[data-mix-product="pencil"] .mixc__list--pencil-colors .mixc__opt--body-price > .mixc__opt-label {
    position: static !important;
    top: auto !important;
    right: auto !important;
    translate: none !important;
    grid-area: label;
    height: var(--mixc-pencil-color-height);
    align-self: center;
    justify-self: end;
    writing-mode: vertical-rl;
  }

  body.mix-page #mixc[data-mix-product="pencil"] .mixc__list--pencil-colors .mixc__opt--body-price > .mixc__opt-media {
    grid-area: media;
    width: calc(var(--mixc-pencil-color-height) * 0.5303) !important;
    height: var(--mixc-pencil-color-height) !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
  }

  body.mix-page #mixc[data-mix-product="pencil"] .mixc__list--pencil-colors .mixc__opt--body-price > .mixc__price {
    grid-area: price;
    justify-self: center;
    margin-top: 0;
  }
}

@media (min-width: 1440px) {
  body.mix-page #mixc:is([data-mix-product="pencil"], [data-mix-product="mirror"]),
  body.mix-page #mixc[data-mix-product="tumba"]:has(> .mixc__body--wide .mixc__list--hero, > .mixc__body--panel .mixc__matrix) {
    --mixc-stage-height: max(680px, var(--mixc-fit-height, 500px));
  }

  body.mix-page #mixc[data-mix-product="pencil"] :where(.mixc__list--pencil-colors) {
    --mixc-pencil-color-height: min(600px, calc(var(--mixc-stage-height) * .9), 48vw);
  }
}

@media (max-width: 1439px) and (min-width: 768px) {
  body.mix-page #mixc:is([data-mix-product="pencil"], [data-mix-product="mirror"]) > .mixc__body--panel:not(.mixc__sheet-outgoing) {
    height: var(--mixc-stage-height) !important;
    min-height: 0 !important;
  }
}