

.viz-page {
  --viz-line: rgba(31, 33, 38, 0.12);
  --viz-card: #fff;
  --viz-radius: 6px;
}

.viz-page [data-reveal],
.viz-page [data-reveal]:not(.in) {
  transform: none !important;
}

.viz-hero {
  padding: clamp(40px, 5vw, 72px) 0 clamp(20px, 2.4vw, 32px);
  background: var(--bl-soft);
}
.viz-hero__h1 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.viz-hero__h1 .it {
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-mute);
  font-size: 0.72em;
}
.viz-hero__lead {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--ink-mute);
}

.viz-tool {
  padding: clamp(12px, 1.5vw, 20px) 0 clamp(48px, 5vw, 80px);
  background: var(--bl-soft);
}
.viz-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.viz-app[hidden],
.viz-poster[hidden] { display: none !important; }

.viz-stage-col { min-width: 0; }

.viz-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--viz-radius);
  background: #efece6;
  box-shadow: 0 18px 50px rgba(31, 33, 38, 0.14);
}
.viz-poster__bg { display: block; width: 100%; height: auto; }
.viz-poster__art {
  position: absolute;
  left: 41%;
  top: 12%;
  width: 18%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}
.viz-poster__cta {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(18px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0));
}
.viz-poster__t {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.15;
}
.viz-poster__ns { margin: 0; font-size: 14px; color: var(--ink-mute); }

.viz-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 22px;
}
.viz-rooms, .viz-light { display: flex; flex-wrap: wrap; gap: 8px; }

.viz-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--viz-radius);
  background: #f4f1ec;
  box-shadow: 0 16px 44px rgba(31, 33, 38, 0.15);
  touch-action: none;
  user-select: none;
  isolation: isolate;
}
.viz-stage.is-blank {
  background:
    linear-gradient(to bottom, #efece6 0%, #efece6 82%, #d8cfc0 82%, #cdc2b0 100%);
}
.viz-stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.viz-stage__wall {
  position: absolute;
  border: 1px dashed rgba(31, 142, 204, 0);
  transition: border-color 0.2s;
  pointer-events: none;
}
.viz-stage:hover .viz-stage__wall { border-color: rgba(31, 142, 204, 0.28); }

.viz-stage__overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: opacity 0.3s, background 0.3s;
}
.viz-stage__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  transition: opacity 0.3s, background 0.3s;
}
.viz-stage[data-light="evening"] .viz-stage__overlay {
  background:
    radial-gradient(58% 46% at 78% 26%, rgba(224, 190, 148, 0.55), rgba(120, 116, 138, 0.9) 72%),
    linear-gradient(to bottom, rgba(96, 96, 124, 0.92), rgba(74, 76, 104, 0.96));
}
.viz-stage[data-light="evening"] .viz-stage__overlay::before {
  background: radial-gradient(52% 40% at 78% 24%, rgba(255, 198, 118, 0.3), transparent 72%);
}
.viz-stage[data-light="lamp"] .viz-stage__overlay {
  background:
    radial-gradient(44% 32% at 50% 16%, rgba(255, 248, 232, 0.98), rgba(150, 148, 160, 0.92) 78%),
    linear-gradient(to bottom, rgba(160, 158, 172, 0.9), rgba(118, 118, 138, 0.94));
}
.viz-stage[data-light="lamp"] .viz-stage__overlay::before {
  background: radial-gradient(40% 30% at 50% 14%, rgba(255, 240, 205, 0.42), transparent 74%);
}
.viz-stage__hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  color: var(--ink-mute);
  pointer-events: none;
}

.viz-stage.has-ruler::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: repeating-linear-gradient(to right,
    rgba(31, 33, 38, 0.35) 0 1px, transparent 1px 20px);
  pointer-events: none;
}

.viz-item {
  position: absolute;
  cursor: grab;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}
.viz-item:active { cursor: grabbing; }
.viz-item.is-sel { outline: 2px solid var(--blue); outline-offset: 3px; }

.viz-item.is-round.is-sel { outline: 0; }
.viz-item.is-round.is-sel::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  pointer-events: none;
}
.viz-item__frame {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: #fff;
}
.viz-item__mat {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.viz-item__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.viz-item.is-round .viz-item__frame,
.viz-item.is-round .viz-item__mat,
.viz-item.is-round .viz-item__art { border-radius: 50%; }

.viz-item__glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg,
    rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 34%,
    rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.5) 82%,
    rgba(255, 255, 255, 0) 100%);
}
.viz-item.is-round .viz-item__glass { border-radius: 50%; }

.viz-item__tag {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(31, 33, 38, 0.82);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
.viz-item:hover .viz-item__tag,
.viz-item.is-sel .viz-item__tag { opacity: 1; }

.viz-item__del {
  position: absolute;
  right: -11px;
  top: -11px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s;
}
.viz-item:hover .viz-item__del,
.viz-item.is-sel .viz-item__del { opacity: 1; }

.viz-calib-line {
  position: absolute;
  height: 2px;
  background: var(--blue);
  transform-origin: 0 50%;
  pointer-events: none;
}
.viz-calib-pt {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  cursor: grab;
  z-index: 3;
}

.viz-stage-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.viz-scale { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-mute); }
.viz-scale__bar {
  height: 8px;
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.viz-scale__lab { font-weight: 700; color: var(--ink); white-space: nowrap; }
.viz-stage-actions { display: flex; gap: 8px; }

.viz-btn {
  padding: 9px 16px;
  border: 1px solid var(--viz-line);
  border-radius: 3px;
  background: #fff;
  font-family: var(--f-body);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}
.viz-btn:hover { border-color: var(--ink); }
.viz-btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }

.viz-chip {
  padding: 8px 14px;
  border: 1px solid var(--viz-line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--f-body);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}
.viz-chip:hover { border-color: var(--ink); }
.viz-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.viz-chip--sm { padding: 6px 12px; font-size: 12px; }

.viz-panel {
  background: var(--viz-card);
  border: 1px solid var(--viz-line);
  border-radius: var(--viz-radius);
  overflow: hidden;
}
.viz-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--viz-line);
  scrollbar-width: none;
}
.viz-tabs::-webkit-scrollbar { display: none; }
.viz-tab {
  flex: 1 0 auto;
  min-width: max(9rem, 16%);
  padding: 13px 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-mute);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}
.viz-tab.is-active { color: var(--ink); border-bottom-color: var(--pink); font-weight: 700; }

.viz-pane { display: none; padding: 16px 18px 18px; }
.viz-pane.is-active { display: block; }
.viz-pane__bar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.viz-pane__count { flex: 0 0 auto; font-size: 12px; color: var(--ink-mute); }
.viz-pane__bar .viz-input { max-width: 320px; }

.viz-note { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--ink-mute); }
.viz-note--muted { opacity: 0.75; margin-top: 12px; margin-bottom: 0; }

.viz-input, .viz-field input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--viz-line);
  border-radius: 3px;
  font-family: var(--f-body);
  font-size: 14px;
  background: #fff;
}
.viz-fields { display: grid; gap: 10px; margin-bottom: 14px; }
.viz-field { display: grid; gap: 5px; }
.viz-field span { font-size: 12px; color: var(--ink-mute); }

.viz-works {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.viz-works::-webkit-scrollbar { height: 6px; }
.viz-works::-webkit-scrollbar-thumb { background: rgba(31, 33, 38, 0.18); border-radius: 999px; }
.viz-work {
  flex: 0 0 148px;
  width: 148px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 0 8px;
  border: 1px solid var(--viz-line);
  border-radius: 4px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s, transform 0.16s;
}
.viz-work:hover { border-color: var(--ink); transform: translateY(-2px); }
.viz-work.is-used { opacity: 0.45; }
.viz-work__ph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f2efe9; }
.viz-work__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viz-work__b { display: grid; gap: 2px; padding: 0 8px; }
.viz-work__n {
  font-size: 12.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.viz-work__m { font-size: 11.5px; color: var(--ink-mute); }

.viz-work.is-raw .viz-work__ph::after {
  content: "без кропа";
  position: absolute;
  left: 5px;
  top: 5px;
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(31, 33, 38, 0.7);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.viz-group { margin-bottom: 16px; }
.viz-group__t {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.viz-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.viz-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.viz-sw {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--viz-line);
  border-radius: 3px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: var(--f-body);
}
.viz-sw:hover:not(:disabled) { border-color: var(--ink); }
.viz-sw:disabled { opacity: 0.45; cursor: not-allowed; }
.viz-sw.is-active { border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.viz-sw__bar { height: 12px; border-radius: 2px; }
.viz-sw__dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--viz-line); }
.viz-sw__n { font-size: 12.5px; }
.viz-sw__p, .viz-sw__s { font-size: 11px; color: var(--ink-mute); }
.viz-pills .viz-sw { padding: 8px 12px; }
.viz-glass-hint {
  min-height: 20px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--blue);
}

.viz-advice__box {
  padding: 12px 14px;
  border-left: 3px solid var(--pink);
  background: #faf7f2;
  border-radius: 0 3px 3px 0;
}
.viz-advice__box p { margin: 0 0 7px; font-size: 13.5px; line-height: 1.5; }
.viz-advice__box p:last-child { margin-bottom: 0; }
.viz-advice__why { color: var(--ink-mute); font-size: 12px; }
.viz-fit__t { margin: 16px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); }
.viz-fit__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}
.viz-fit__card {
  flex: 0 0 84px;
  scroll-snap-align: start;
  display: grid;
  gap: 4px;
  padding: 0 0 5px;
  border: 1px solid var(--viz-line);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  color: var(--ink-mute);
}
.viz-fit__card:hover { border-color: var(--ink); }
.viz-fit__card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

.viz-layouts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.viz-est__box {
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #f3f6f9;
  border-radius: 3px;
  font-size: 13px;
}
.viz-est { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.viz-est th, .viz-est td {
  padding: 7px 6px;
  text-align: left;
  border-bottom: 1px solid var(--viz-line);
  vertical-align: top;
}
.viz-est th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); }
.viz-est td + td, .viz-est th + th { text-align: right; white-space: nowrap; }
.viz-est tfoot td { font-weight: 700; border-bottom: 0; }
.viz-est__sub { display: block; font-size: 11px; color: var(--ink-mute); }

.viz-upload {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px dashed var(--viz-line);
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}
.viz-upload:hover { border-color: var(--ink); }
.viz-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.viz-calib { margin-top: 14px; display: grid; gap: 10px; }

.viz-pane[data-viz-pane="size"].is-active {
  display: grid;
  grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
  gap: 16px 24px;
  align-items: start;
}
.viz-pane[data-viz-pane="size"] > .viz-note,
.viz-pane[data-viz-pane="size"] > .viz-fields { grid-column: 1 / -1; }
.viz-pane[data-viz-pane="size"] .viz-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.viz-pane[data-viz-pane="size"] .viz-fit__t { margin-top: 0; }

.viz-pane[data-viz-pane="frame"].is-active {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: start;
}
.viz-pane[data-viz-pane="frame"] > .viz-note,
.viz-pane[data-viz-pane="frame"] > .viz-glass-hint { grid-column: 1 / -1; }
.viz-pane[data-viz-pane="frame"] .viz-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.viz-pane[data-viz-pane="frame"] .viz-swatches .viz-sw { flex: 1 1 108px; max-width: 160px; }
.viz-pane[data-viz-pane="frame"] .viz-pills {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.viz-pane[data-viz-pane="my"].is-active {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: flex-start;
}
.viz-pane[data-viz-pane="my"] > .viz-note:first-child,
.viz-pane[data-viz-pane="my"] > .viz-note--muted { flex: 1 1 100%; }
.viz-pane[data-viz-pane="my"] .viz-calib {
  flex: 1 1 280px;
  max-width: 380px;
  margin-top: 0;
}

@media (max-width: 860px) {
  .viz-pane[data-viz-pane="size"].is-active,
  .viz-pane[data-viz-pane="frame"].is-active { grid-template-columns: 1fr; }
  .viz-pane[data-viz-pane="size"] .viz-fields { grid-template-columns: 1fr; }
  .viz-pane[data-viz-pane="frame"] .viz-swatches .viz-sw { max-width: none; }
}

.viz-guide { padding: clamp(48px, 5vw, 84px) 0; }
.viz-guide h2, .viz-list h2 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.05;
  margin: 0 0 28px;
}
.viz-guide__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.viz-guide__item {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--viz-line);
  border-radius: var(--viz-radius);
}
.viz-guide__n {
  display: block;
  font-family: var(--f-head);
  font-size: 34px;
  font-weight: 700;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 10px;
}
.viz-guide__item h3 { margin: 0 0 8px; font-size: 17px; }
.viz-guide__item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-mute); }

.viz-list { padding: 0 0 clamp(48px, 5vw, 84px); }
.viz-list__note { margin: 0 0 22px; max-width: 62ch; font-size: 14px; line-height: 1.6; color: var(--ink-mute); }
.viz-list__grid {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.viz-list__item a { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.viz-list__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  background: #f2efe9;
}
.viz-list__name { font-size: 13.5px; line-height: 1.35; }
.viz-list__meta { font-size: 12px; color: var(--ink-mute); }
.viz-list__more { font-size: 14px; line-height: 1.7; color: var(--ink-mute); }

@media print {

  body.viz-printing .header,
  body.viz-printing .header-sticky,
  body.viz-printing .breadcrumbs,
  body.viz-printing .floating-actions,
  body.viz-printing .sb-cart-fab,
  body.viz-printing .search-overlay,
  body.viz-printing .sb-city,
  body.viz-printing .form-wrapper,
  body.viz-printing .m-backdrop,
  body.viz-printing .m-drawer,
  body.viz-printing .site-header,
  body.viz-printing .site-footer,
  body.viz-printing .footer-new,
  body.viz-printing .footer,
  body.viz-printing .viz-hero,
  body.viz-printing .viz-guide,
  body.viz-printing .viz-list,
  body.viz-printing .viz-faq,
  body.viz-printing .service-msec,
  body.viz-printing .viz-toolbar,
  body.viz-printing .viz-panel .viz-tabs,
  body.viz-printing .viz-stage-actions,
  body.viz-printing .viz-pane:not([data-viz-pane="wall"]) { display: none !important; }

  body.viz-printing .viz-app { grid-template-columns: 1fr; gap: 12px; }
  body.viz-printing .viz-stage { box-shadow: none; break-inside: avoid; }
  body.viz-printing .viz-item__del { display: none; }
  body.viz-printing .viz-panel { border: 0; }
  body.viz-printing .viz-pane[data-viz-pane="wall"] { display: block; }
  body.viz-printing .viz-layouts,
  body.viz-printing .viz-pane[data-viz-pane="wall"] > .viz-note:first-child,
  body.viz-printing .viz-stage__wall,
  body.viz-printing .viz-stage__hint { display: none; }

  body.viz-printing .viz-item__tag { opacity: 1; }
  body.viz-printing .viz-item.is-sel { outline: 0; }
  body.viz-printing .viz-item.is-round.is-sel::before { display: none; }

  body.viz-printing .viz-wrap,
  body.viz-printing .wrap { max-width: none; padding: 0; }
  body.viz-printing .viz-est { width: 100%; table-layout: fixed; font-size: 11px; }
  body.viz-printing .viz-est th:first-child,
  body.viz-printing .viz-est td:first-child { width: 56%; }
  body.viz-printing .viz-tool { padding: 0; }
  body.viz-printing .viz-note { font-size: 10.5px; }

  body.viz-printing .viz-app::before {
    content: "Галерея ПРИНТ · проект развески · stroybaget.ru · +7 (499) 348-92-98";
    display: block;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
    font-size: 11px;
    color: #555;
  }
}
