@charset "UTF-8";
/* ─── Loader ──────────────────────────────────────────── */
.zn-calc {
  position: relative;
}
.zn-calc__loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.zn-calc__loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.zn-calc__loader--box {
  min-width: 180px;
  padding: 18px 20px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.zn-calc__loader--spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px auto;
  border: 3px solid #e5e5e5;
  border-top-color: #222;
  border-radius: 50%;
  animation: znCalcSpin 0.8s linear infinite;
}
.zn-calc__loader--text {
  font-size: 14px;
  line-height: 1.3;
  color: #222;
}

/* ─── Фокус кнопок ────────────────────────────────────── */
/* Гасим дефолтную браузерную рамку (outline) на кнопках компонента,
   которая появляется при клике. Видимую обводку оставляем только
   для навигации с клавиатуры через :focus-visible. */
.zn-calc button:focus {
  outline: none;
}

.zn-calc button:focus-visible {
  outline: 2px solid #1b1f24;
  outline-offset: 2px;
}

/* ─── Product layout ──────────────────────────────────── */
.zn-product {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  /* Стрелки переключения типов открывания на основном фото */
}
.zn-product__main {
  flex: 0 0 auto;
  width: min(400px, 42vw);
  min-width: 0;
}
.zn-product__aside {
  flex: 1;
  min-width: 0;
  position: relative;
}
.zn-product__photo-area {
  margin-bottom: 16px;
}
.zn-product__photo {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f7f7f7;
}
.zn-product__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.zn-product__img-empty {
  font-size: 14px;
  color: #aaa;
}
.zn-product__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e7eaee;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1b1f24;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.zn-product__nav--prev {
  left: 8px;
}
.zn-product__nav--next {
  right: 8px;
}
.zn-product__nav:hover {
  background: #fff;
}
.zn-product__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 50%;
  background: #c00;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  z-index: 2;
}
.zn-product__offer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.zn-product__status {
  font-size: 13px;
  color: #666;
}
.zn-product__no-offers {
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 12px;
  color: #888;
}

/* ─── Buttons ─────────────────────────────────────────── */
.zn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 16px;
  transition: opacity 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}
.zn-btn:hover {
  opacity: 0.85;
}
.zn-btn--primary {
  background: #111;
  color: #fff;
  border-color: #111;
}
.zn-btn--outline {
  background: #fff;
  color: #111;
  border-color: #ccc;
}
.zn-btn--outline:hover {
  border-color: #999;
}
.zn-btn--danger {
  background: #fff;
  color: #c33;
  border-color: #c33;
}
.zn-btn--success {
  background: #fff;
  color: #080;
  border-color: #080;
}
.zn-btn--sm {
  font-size: 12px;
  padding: 6px 10px;
}
.zn-btn--lg {
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
}

/* ─── Size block ──────────────────────────────────────── */
.zn-size-block {
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fafafa;
  /* подпись «от … до …» под полем ввода размера */
}
.zn-size-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.zn-size-block__title {
  font-weight: 700;
  font-size: 15px;
}
.zn-size-block__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.zn-size-block__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.zn-size-block__field--qty {
  margin-top: 4px;
}
.zn-size-block__label {
  font-size: 12px;
  color: #666;
}
.zn-size-block__select, .zn-size-block__input {
  min-width: 130px;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #111;
}
.zn-size-block__select:focus, .zn-size-block__input:focus {
  outline: none;
  border-color: #999;
}
.zn-size-block__custom {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}
.zn-size-block__range {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}
.zn-size-block__hint {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}
.zn-size-block__field-hint {
  font-size: 12px;
  color: #888;
  line-height: 1.3;
}
.zn-size-block__field-hint:empty {
  display: none;
}
.zn-size-block__switch {
  flex: 0 0 auto;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  color: #111;
  border-bottom: 1px dashed #9aa3ad;
  cursor: pointer;
}
.zn-size-block__switch:hover {
  border-bottom-color: #111;
}

/* ─── Order / price block ─────────────────────────────── */
.zn-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
}
.zn-order__details {
  flex: 1 1 auto;
}
.zn-order__detail {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
}
.zn-order__detail:first-child {
  margin-top: 0;
}
.zn-order__detail--discount {
  color: #c00;
}
.zn-order__summary {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.zn-order__price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}
.zn-order__price-label {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}
.zn-order__price {
  font-size: 26px;
  font-weight: 800;
  color: #111;
  line-height: 1.1;
}
.zn-order__currency {
  font-size: 16px;
  font-weight: 600;
}
.zn-order__cta {
  flex: 0 0 auto;
  min-width: 200px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ─── Количество изделий (счётчик, в правом столбце вровень с заголовком) ── */
.zn-qty {
  position: absolute;
  top: -22px;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.zn-qty__label {
  font-size: 13px;
  color: #555;
}
.zn-qty__control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.zn-qty__value {
  min-width: 40px;
  padding: 4px 10px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zn-qty__arrows {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #ddd;
}
.zn-qty__arrow {
  flex: 1 1 0;
  min-height: 0;
  padding: 0 8px;
  border: 0;
  background: #f7f7f7;
  color: #555;
  font-size: 8px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zn-qty__arrow + .zn-qty__arrow {
  border-top: 1px solid #ddd;
}
.zn-qty__arrow:hover {
  background: #ececec;
  color: #111;
}

/* ─── Extras (right panel) ────────────────────────────── */
.zn-extras {
  /* Each item card */
  /* админская «?» — переход на страницу товара (в правом верхнем углу карточки) */
  /* Hidden per-window qty/price used by JS */
}
.zn-extras__section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  padding: 0 0 4px;
}
.zn-extras__block {
  padding: 0 0 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.zn-extras__note {
  font-size: 11px;
  color: #999;
  line-height: 1.4;
  padding: 8px 14px 12px;
  border-top: 1px solid #f0f0f0;
}
.zn-extras__item {
  position: relative;
  padding: 10px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zn-extras__item-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.zn-extras__item-thumb {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zn-extras__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.zn-extras__item-info {
  flex: 1;
  min-width: 0;
}
.zn-extras__item-titlewrap {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.zn-extras__item-name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  min-width: 0;
}
.zn-extras__item-offer {
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  line-height: 1.3;
  min-width: 0;
}
.zn-extras__item-help {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #cfd6dd;
  color: #5a636d;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.zn-extras__item-help:hover {
  border-color: #111;
  color: #111;
}
.zn-extras__item-preview {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin-top: 4px;
  display: none;
}
.zn-extras__item-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: #555;
}
.zn-extras__item-price {
  font-weight: 800;
  color: #111;
  white-space: nowrap;
}
.zn-extras__item-actions {
  display: flex;
  flex-direction: row;
  gap: 6px;
  flex-wrap: wrap;
}
.zn-extras__item-meta {
  display: none;
}

/* ─── Tabs ────────────────────────────────────────────── */
.zn-tabs {
  margin-top: 24px;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
}

.zn-tabs__nav {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  flex-wrap: wrap;
}

.zn-tabs__btn {
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  line-height: 1.2;
}

.zn-tabs__btn.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.zn-tabs__pane {
  display: none;
  padding: 16px;
}

.zn-tabs__pane.is-active {
  display: block;
}

/* ─── Characteristics ─────────────────────────────────── */
.zn-chars {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 10px 16px;
}

.zn-chars__name {
  font-weight: 700;
}

.zn-chars__value {
  min-width: 0;
}

/* ─── FAQ ─────────────────────────────────────────────── */
.zn-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zn-faq__item {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px;
}

.zn-faq__question {
  font-weight: 700;
  margin-bottom: 8px;
}

.zn-faq__answer {
  line-height: 1.55;
}

/* ─── Files gallery / list ────────────────────────────── */
.zn-files-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.zn-files-gallery__item {
  display: block;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zn-files-gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.zn-files-gallery__thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background: #f7f7f7;
}

.zn-files-gallery__name {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.zn-files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zn-files-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #eee;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.zn-files-list__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f44336;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex: 0 0 auto;
}

.zn-files-list__text {
  min-width: 0;
  line-height: 1.35;
  word-break: break-word;
}

.zn-files-title {
  font-weight: 700;
  margin-bottom: 12px;
}

/* ─── Lightbox ────────────────────────────────────────── */
.zn-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
}

.zn-lightbox.is-open {
  display: block;
}

.zn-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.zn-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1200px, 96vw);
  height: min(90vh, 900px);
  margin: 5vh auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 70px;
  box-sizing: border-box;
}

.zn-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  background: #fff;
}

.zn-lightbox__close,
.zn-lightbox__prev,
.zn-lightbox__next {
  position: absolute;
  z-index: 2;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(4px);
}

.zn-lightbox__close {
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  font-size: 24px;
  line-height: 1;
}

.zn-lightbox__prev,
.zn-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 28px;
  line-height: 1;
}

.zn-lightbox__prev {
  left: 10px;
}

.zn-lightbox__next {
  right: 10px;
}

.zn-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  opacity: 0.9;
}

/* ─── Related carousels ───────────────────────────────── */
.zn-related-sections {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.zn-related {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 14px;
  overflow: hidden;
}

.zn-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.zn-related__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.zn-related__nav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.zn-related__btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.zn-related__viewport {
  overflow: hidden;
}

.zn-related__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.zn-related__track::-webkit-scrollbar {
  display: none;
}

.zn-related__card {
  flex: 0 0 220px;
  min-width: 220px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zn-related__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.zn-related__image-wrap {
  aspect-ratio: 1/1;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.zn-related__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.zn-related__body {
  padding: 12px;
}

.zn-related__name {
  font-weight: 700;
  line-height: 1.35;
  min-height: 38px;
}

.zn-related__price {
  margin-top: 8px;
  font-weight: 800;
  font-size: 16px;
}

/* ─── Modal shared ────────────────────────────────────── */
.zn-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.zn-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.zn-modal__box {
  position: relative;
  background: #fff;
  width: min(1040px, 95vw);
  max-height: 90vh;
  margin: 5vh auto;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.zn-modal__box--narrow {
  width: min(1200px, 95vw);
}
.zn-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  flex: 0 0 auto;
}
.zn-modal__title {
  font-weight: 700;
  font-size: 16px;
}
.zn-modal__body {
  display: flex;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
  flex: 1;
}
.zn-modal__list {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.zn-modal__preview {
  width: min(280px, 30vw);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.zn-modal__preview-photo {
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 160px;
  overflow: hidden;
}
.zn-modal__preview-photo img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.zn-modal__preview-title {
  font-weight: 700;
  font-size: 14px;
}
.zn-modal__preview-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.zn-modal__preview-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.zn-modal__preview-name {
  font-weight: 800;
  line-height: 1.25;
}
.zn-modal__preview-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.35;
}
.zn-modal__preview-price {
  font-size: 13px;
  color: #555;
}
.zn-modal__preview-price span {
  font-weight: 800;
}
.zn-modal__preview-hint {
  font-size: 12px;
  color: #888;
  line-height: 1.3;
}
.zn-modal__footer {
  padding: 12px 14px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

/* ─── Offer modal system cards ────────────────────────── */
.zn-offer-system {
  flex: 0 0 240px;
  width: 240px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zn-offer-system__photo {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border-radius: 8px;
  overflow: hidden;
}
.zn-offer-system__photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.zn-offer-system__title {
  font-weight: 700;
  font-size: 14px;
  color: #333;
}
.zn-offer-system__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.zn-offer-system__grid .zn-offer-pick-btn {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.zn-offer-pick-btn {
  cursor: pointer;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 12px;
  width: 88px;
  height: 88px;
  padding: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}
.zn-offer-pick-btn.is-active {
  border: 2px solid #000;
}
.zn-offer-pick-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.zn-offer-pick-btn span {
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
}

/* ─── Config modal (redesign) ─────────────────────────── */
.zn-modal--config {
  overflow-y: auto;
}
.zn-modal--config .zn-modal__backdrop {
  background: radial-gradient(120% 80% at 20% 0%, rgba(58, 62, 68, 0.92) 0%, rgba(37, 40, 44, 0.92) 60%, rgba(29, 31, 34, 0.94) 100%);
}
.zn-modal--config .zn-cfg {
  position: relative;
  z-index: 1;
  width: min(1080px, 100% - 32px);
  max-height: calc(100vh - 56px);
  margin: 28px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 40px 120px -24px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #1b1f24;
  /* контролы мобильного нижнего листа — на десктопе скрыты */
  /* ── размер окна внутри попапа ── */
  /* подпись «от … до …» под полем ввода размера */
}
.zn-modal--config .zn-cfg__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 18px;
  border-bottom: 1px solid #e7eaee;
  flex: 0 0 auto;
}
.zn-modal--config .zn-cfg__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.zn-modal--config .zn-cfg__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e7eaee;
  background: #fff;
  color: #5a636d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.zn-modal--config .zn-cfg__close:hover {
  background: #f6f8fa;
  color: #1b1f24;
}
.zn-modal--config .zn-cfg__body {
  display: flex;
  min-height: 0;
  flex: 1;
}
.zn-modal--config .zn-cfg__main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.zn-modal--config .zn-cfg__sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.zn-modal--config .zn-cfg__sec-num {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #1b1f24;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.zn-modal--config .zn-cfg__sec-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #5a636d;
}
.zn-modal--config .zn-cfg__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.zn-modal--config .zn-cfg__card {
  position: relative;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid #e7eaee;
  border-radius: 14px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.zn-modal--config .zn-cfg__card:hover {
  border-color: #cfd6dd;
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.22);
}
.zn-modal--config .zn-cfg__card.is-active {
  border-color: #e11b22;
  background: rgba(225, 27, 34, 0.04);
  box-shadow: 0 0 0 3px rgba(225, 27, 34, 0.15);
}
.zn-modal--config .zn-cfg__card.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  border-color: #e7eaee;
}
.zn-modal--config .zn-cfg__tick {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e11b22;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.zn-modal--config .zn-cfg__card.is-active .zn-cfg__tick {
  display: inline-flex;
}
.zn-modal--config .zn-cfg__fig {
  width: 100%;
}
.zn-modal--config .zn-cfg__fig img {
  width: 100%;
  max-width: 145px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.zn-modal--config .zn-cfg__card-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
  color: #1b1f24;
}
.zn-modal--config .zn-cfg__side {
  width: 312px;
  flex: 0 0 auto;
  border-left: 1px solid #e7eaee;
  background: #f6f8fa;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.zn-modal--config .zn-cfg__side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.zn-modal--config .zn-cfg__side-h {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a636d;
}
.zn-modal--config .zn-cfg__sheet-close, .zn-modal--config .zn-cfg__sheet-toggle {
  display: none;
}
.zn-modal--config .zn-cfg__prev {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 14px;
  padding: 12px;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zn-modal--config .zn-cfg__prev img {
  width: 245px;
  max-width: 100%;
  height: auto;
  max-height: none;
  display: block;
}
.zn-modal--config .zn-cfg__prev span {
  color: #8b94a0;
  font-size: 13px;
}
.zn-modal--config .zn-cfg__sel-name {
  margin-top: 13px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.zn-modal--config .zn-cfg__sel-sub {
  margin-top: 3px;
  font-size: 13px;
  color: #5a636d;
  line-height: 1.3;
}
.zn-modal--config .zn-cfg__size {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.zn-modal--config .zn-cfg__size-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.zn-modal--config .zn-cfg__size-h {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.zn-modal--config .zn-cfg__size-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.zn-modal--config .zn-cfg__fld {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.zn-modal--config .zn-cfg__fld > span {
  font-size: 12px;
  font-weight: 500;
  color: #5a636d;
}
.zn-modal--config .zn-cfg__select, .zn-modal--config .zn-cfg__input {
  font-family: inherit;
  font-size: 14px;
  color: #1b1f24;
  height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 1.5px solid #e7eaee;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.zn-modal--config .zn-cfg__select:hover, .zn-modal--config .zn-cfg__input:hover {
  border-color: #cfd6dd;
}
.zn-modal--config .zn-cfg__select:focus, .zn-modal--config .zn-cfg__input:focus {
  outline: none;
  border-color: #e11b22;
  box-shadow: 0 0 0 3px rgba(225, 27, 34, 0.14);
}
.zn-modal--config .zn-cfg__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a636d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.zn-modal--config .zn-cfg__input {
  -moz-appearance: textfield;
}
.zn-modal--config .zn-cfg__input::-webkit-outer-spin-button, .zn-modal--config .zn-cfg__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.zn-modal--config .zn-cfg__input::placeholder {
  color: #8b94a0;
}
.zn-modal--config .zn-cfg__size-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}
.zn-modal--config .zn-cfg__size-or {
  font-size: 13px;
  font-weight: 500;
  color: #5a636d;
}
.zn-modal--config .zn-cfg__size-range {
  font-size: 11.5px;
  line-height: 1.4;
  color: #8b94a0;
}
.zn-modal--config .zn-cfg__size-hint {
  font-size: 11.5px;
  line-height: 1.4;
  color: #e11b22;
}
.zn-modal--config .zn-cfg__size-hint:empty {
  display: none;
}
.zn-modal--config .zn-cfg__fld-hint {
  font-size: 11.5px;
  line-height: 1.3;
  color: #8b94a0;
}
.zn-modal--config .zn-cfg__fld-hint:empty {
  display: none;
}
.zn-modal--config .zn-cfg__size-mode {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.zn-modal--config .zn-cfg__size-switch {
  flex: 0 0 auto;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  color: #e11b22;
  border-bottom: 1px dashed currentColor;
  cursor: pointer;
}
.zn-modal--config .zn-cfg__size-switch:hover {
  color: #b3151b;
}
.zn-modal--config .zn-cfg__price {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e7eaee;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zn-modal--config .zn-cfg__price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #5a636d;
}
.zn-modal--config .zn-cfg__price-row span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.zn-modal--config .zn-cfg__price-row--disc {
  color: #e11b22;
  font-weight: 500;
}
.zn-modal--config .zn-cfg__price-row--total {
  margin-top: 3px;
  padding-top: 10px;
  border-top: 1px solid #e7eaee;
  font-size: 18px;
  font-weight: 700;
  color: #1b1f24;
}
.zn-modal--config .zn-cfg__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 24px;
  border-top: 1px solid #e7eaee;
  background: #fff;
  flex: 0 0 auto;
}
.zn-modal--config .zn-cfg__foot-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.zn-modal--config .zn-cfg__foot-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.zn-modal--config .zn-cfg__foot-label {
  font-size: 12px;
  color: #8b94a0;
}
.zn-modal--config .zn-cfg__foot-val {
  font-size: 20px;
  font-weight: 700;
  color: #1b1f24;
  font-variant-numeric: tabular-nums;
}
.zn-modal--config .zn-cfg__foot-btns {
  display: flex;
  gap: 10px;
}
.zn-modal--config .zn-cfg__btn-ghost {
  min-width: 110px;
}
.zn-modal--config .zn-cfg__btn-apply {
  min-width: 168px;
  background: #e11b22;
  color: #fff;
  border-color: #e11b22;
  box-shadow: 0 8px 18px -8px rgba(225, 27, 34, 0.65);
}
.zn-modal--config .zn-cfg__btn-apply:hover {
  opacity: 1;
  filter: brightness(0.95);
}

@media (max-width: 768px) {
  .zn-modal--config {
    /* основной поток — только шаги выбора, один общий скролл */
    /* «Выбрано» -> нижний выезжающий лист поверх зафиксированной цены */
    /* нижняя панель: «Выбрано / Посмотреть» + цена + кнопки */
    /* цена и кнопки — друг под другом, цена в одну строку */
  }
  .zn-modal--config .zn-cfg {
    width: calc(100% - 24px);
    margin: 12px auto;
    max-height: calc(100vh - 24px);
  }
  .zn-modal--config .zn-cfg__body {
    flex-direction: column;
    overflow-y: auto;
    min-height: 0;
  }
  .zn-modal--config .zn-cfg__main {
    flex: 0 0 auto;
    overflow: visible;
  }
  .zn-modal--config .zn-cfg__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .zn-modal--config .zn-cfg__side {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    max-height: 78vh;
    overflow-y: auto;
    border-left: none;
    border-top: 1px solid #e7eaee;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -16px 32px -18px rgba(0, 0, 0, 0.45);
    padding-top: 0;
    padding-bottom: calc(18px + var(--zn-foot-h, 96px));
    transform: translateY(100%);
    transition: transform 0.26s ease;
  }
  .zn-modal--config .zn-cfg.is-sheet-open .zn-cfg__side {
    transform: translateY(0);
  }
  .zn-modal--config .zn-cfg__side-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f6f8fa;
    padding-top: 14px;
    padding-bottom: 10px;
  }
  .zn-modal--config .zn-cfg__prev {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .zn-modal--config .zn-cfg__prev img {
    width: 245px;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin-left: auto;
    margin-right: auto;
  }
  .zn-modal--config .zn-cfg__sheet-close {
    display: inline-flex;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.1;
    color: #e11b22;
    border-bottom: 1px dashed currentColor;
    cursor: pointer;
  }
  .zn-modal--config .zn-cfg__foot {
    position: relative;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }
  .zn-modal--config .zn-cfg__foot-main {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .zn-modal--config .zn-cfg__foot-total {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }
  .zn-modal--config .zn-cfg__foot-val {
    white-space: nowrap;
  }
  .zn-modal--config .zn-cfg__foot-btns {
    width: 100%;
  }
  .zn-modal--config .zn-cfg__foot-btns .zn-btn {
    flex: 1 1 0;
    min-width: 0;
  }
  .zn-modal--config .zn-cfg__sheet-toggle {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
  }
  .zn-modal--config .zn-cfg__sheet-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a636d;
  }
  .zn-modal--config .zn-cfg__sheet-link {
    font-size: 13px;
    line-height: 1.1;
    color: #e11b22;
    border-bottom: 1px dashed currentColor;
  }
  .zn-modal--config .zn-cfg__foot-main {
    width: 100%;
  }
}
/* ─── Keyframes ───────────────────────────────────────── */
@keyframes znCalcSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .zn-extras__block {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .zn-qty {
    position: static;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .zn-product {
    flex-direction: column;
    gap: 16px;
  }
  .zn-product__main {
    width: 100%;
  }
  /* попап доптоваров: список прокручивается, сводка закреплена над кнопками */
  .zn-modal__body {
    flex-direction: column;
    overflow: hidden;
    gap: 10px;
  }
  .zn-modal__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
  .zn-modal__preview {
    flex: 0 0 auto;
    width: 100%;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #eee;
  }
  /* компактная сводка: фото слева, инфо справа */
  .zn-modal__preview-title,
  .zn-modal__preview-hint {
    display: none;
  }
  .zn-modal__preview-body {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .zn-modal__preview-photo {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    min-height: 0;
    padding: 6px;
  }
  .zn-modal__preview-info {
    flex: 1 1 auto;
    min-width: 0;
  }
  .zn-modal__preview-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Мобильный вид: меньше вложенных рамок — блоки размера и цены
     делаем плоскими (без рамки/фона/паддинга), разделяем тонкой линией,
     чтобы контент не зажимался внутри множества рамок. */
  .zn-size-block,
  .zn-order {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin-bottom: 0;
  }
  .zn-size-block {
    margin-bottom: 16px;
  }
  .zn-order {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef1f4;
  }
}
@media (max-width: 480px) {
  .zn-extras__block {
    grid-template-columns: 1fr;
  }
  .zn-chars {
    grid-template-columns: 1fr;
  }
  .zn-lightbox__dialog {
    padding: 40px 16px;
  }
  .zn-offer-system {
    flex: 0 0 180px;
    width: 180px;
  }
  .zn-offer-system__photo {
    height: 90px;
  }
}
/* ─── Комплектация/доптовары: кнопка-попап (мобайл) ───────────────────
   На десктопе кнопка и шапка попапа скрыты, оверлей прозрачен для лейаута
   (список показывается в правой колонке как обычно). */
.zn-extras-open {
  display: none;
}

.zn-extras-overlay {
  display: contents;
}

.zn-extras__modal-head {
  display: none;
}

/* ─── Липкая панель заказа (мобайл) ───────────────────────────────── */
.zn-stickybar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid #e7eaee;
  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.25);
}
.zn-stickybar__total {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.zn-stickybar__label {
  font-size: 11px;
  color: #8b94a0;
}
.zn-stickybar__sum {
  font-size: 18px;
  font-weight: 800;
  color: #1b1f24;
  white-space: nowrap;
}
.zn-stickybar__cta {
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 150px;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ─── Мобайл: липкая панель + компактный верх ─────────────────────── */
@media (max-width: 767.98px) {
  .zn-stickybar {
    display: flex;
  }
  body {
    padding-bottom: 76px;
  }
  .zn-order__price-row,
  .zn-order__cta {
    display: none;
  }
  .zn-extras-open {
    display: block;
    width: 100%;
  }
  .zn-extras-overlay {
    display: none;
  }
  .zn-extras-overlay.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9990;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.45);
  }
  .zn-extras {
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 0 16px 16px;
  }
  .zn-extras__modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
    padding-top: 14px;
    padding-bottom: 10px;
    margin-bottom: 0;
    border-bottom: 1px solid #eef1f4;
  }
  .zn-extras__section-title {
    position: sticky;
    top: var(--zn-extras-head-h, 50px);
    z-index: 1;
    background: #fff;
    margin: 0;
    padding: 10px 0 6px;
  }
  .zn-extras__modal-title {
    font-size: 15px;
    font-weight: 700;
  }
  .zn-extras__close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 1px solid #e7eaee;
    border-radius: 8px;
    background: #fff;
    color: #5a636d;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
  }
}
