/* ==========================================================
   Urban AI — нижняя панель и раскрывающийся чат.

   Отступы плашки и кружка контактов задаются ОДНИМИ
   переменными. Раньше у каждого были свои значения на разных
   ширинах экрана, и они разъезжались на несколько пикселей.
   ========================================================== */

:root {
  --uh-dock-b: 24px;    /* от низа экрана */
  --uh-dock-r: 24px;    /* от правого края */
  --uh-dock-size: 56px; /* кружок контактов */
  --uh-dock-gap: 10px;  /* между плашкой и кружком на телефоне */
  --uh-online: #d7aa45;   /* «онлайн» — золотом: зелёного на сайте нет */
}

/* Кружок подчиняется тем же переменным: на сайте у него были
   свои 24 / 16 / 14 на разных ширинах — отсюда и расхождение. */
.messenger {
  right: var(--uh-dock-r) !important;
  bottom: var(--uh-dock-b) !important;
  transition: opacity .25s var(--ease);
}
.messenger-link,
.messenger-toggle {
  width: var(--uh-dock-size) !important;
  height: var(--uh-dock-size) !important;
}

/* Запас под панель даёт сам подвал: его тёмный фон тянется до
   низа страницы, и светлой полосы под ним больше нет. */
.site-footer { padding-bottom: calc(var(--uh-dock-b) + var(--uh-dock-size) + 24px); }

/* Уведомление о заявке поднимаем над плашкой, чтобы не закрывало её */
.toast { bottom: calc(var(--uh-dock-b) + var(--uh-dock-size) + 14px); }

.uh-ai { position: static; }
.uh-ai [hidden],
.uh-ai-panel[hidden],
.uh-ai-scrim[hidden] { display: none !important; }

/* ==========================================================
   Плашка: на компьютере — по центру экрана
   ========================================================== */
.uh-ai-pill {
  position: fixed;
  z-index: 24;
  left: 50%;
  bottom: var(--uh-dock-b);
  transform: translateX(-50%);
  height: var(--uh-dock-size);
  width: 320px;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(16, 17, 17, .22);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .25s var(--ease);
}

/* Подсветка при наведении: мягкий золотой перелив слева направо */
.uh-ai-pill::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(215, 170, 69, 0) 0%, rgba(215, 170, 69, .32) 45%, rgba(240, 210, 138, .5) 100%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.uh-ai-pill:hover::before { opacity: 1; }
.uh-ai-pill:hover { box-shadow: 0 14px 32px rgba(16, 17, 17, .3); }
.uh-ai-pill > * { position: relative; }

/* рамка фокуса — только с клавиатуры; после клика мышью её не видно */
.uh-ai-pill:focus:not(:focus-visible),
.uh-ai-close:focus:not(:focus-visible) { outline: none; }

.uh-ai.is-open .uh-ai-pill {
  transform: translate(-50%, 160%);
  opacity: 0;
  pointer-events: none;
}

.uh-ai-spark {
  width: 22px; height: 22px;
  background: var(--yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.2L20.5 10l-6.3 1.8L12 18l-2.2-6.2L3.5 10l6.3-1.8z'/%3E%3Cpath d='M19 15l.9 2.4 2.4.9-2.4.9-.9 2.4-.9-2.4-2.4-.9 2.4-.9z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.2L20.5 10l-6.3 1.8L12 18l-2.2-6.2L3.5 10l6.3-1.8z'/%3E%3Cpath d='M19 15l.9 2.4 2.4.9-2.4.9-.9 2.4-.9-2.4-2.4-.9 2.4-.9z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.uh-ai-pill:hover .uh-ai-spark { background: #fff; }

.uh-ai-text { display: grid; gap: 1px; min-width: 0; }
.uh-ai-title { font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.uh-ai-sub {
  font-size: 10.5px; color: rgba(255, 255, 255, .62);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uh-ai-pill:hover .uh-ai-sub { color: rgba(255, 255, 255, .82); }
.uh-ai-sub-s { display: none; }

/* золотое кольцо-пульс, пока ассистентом ни разу не пользовались */
.uh-ai-pill.is-fresh { animation: uh-ai-ring 3.4s var(--ease) 2s infinite; }
@keyframes uh-ai-ring {
  0% { box-shadow: 0 10px 26px rgba(16, 17, 17, .22), 0 0 0 0 rgba(215, 170, 69, .6); }
  60% { box-shadow: 0 10px 26px rgba(16, 17, 17, .22), 0 0 0 13px rgba(215, 170, 69, 0); }
  100% { box-shadow: 0 10px 26px rgba(16, 17, 17, .22), 0 0 0 0 rgba(215, 170, 69, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .uh-ai-pill.is-fresh { animation: none; }
}

.uh-ai-arrow {
  width: 14px; height: 14px; background: rgba(255, 255, 255, .62);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' d='m6 15 6-6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' d='m6 15 6-6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ==========================================================
   Раскрытый чат: по центру экрана, на большую часть ширины
   ========================================================== */
.uh-ai-scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(16, 17, 17, .42);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  animation: uh-ai-fade .25s var(--ease);
}
@keyframes uh-ai-fade { from { opacity: 0; } to { opacity: 1; } }

.uh-ai-panel {
  position: fixed; z-index: 41;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(1240px, calc(100vw - 64px));
  height: min(900px, calc(100dvh - 64px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(16, 17, 17, .28);
  animation: uh-ai-rise .32s var(--ease);
}
@keyframes uh-ai-rise {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ——— шапка: аватар, имя, «онлайн», крестик ——— */
/* без линии-разделителя: шапку отделяет мягкая тень снизу */
.uh-ai-head {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 14px;
  padding: 14px 20px 14px 22px;
  background: #fff;
  box-shadow: 0 12px 24px -20px rgba(16, 17, 17, .45);
}
.uh-ai-ava {
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink);
}
.uh-ai-ava .uh-ai-spark { width: 20px; height: 20px; }
.uh-ai-ava::after {
  content: '';
  position: absolute; right: -1px; bottom: 1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--uh-online);
  border: 2px solid #fff;
}
.uh-ai-who { display: grid; gap: 2px; min-width: 0; }
.uh-ai-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.uh-ai-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

.uh-ai-close {
  display: grid; place-items: center;
  width: 38px; height: 38px; min-width: 38px; padding: 0;
  aspect-ratio: 1 / 1; border: 0; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  cursor: pointer; font-size: 0;
  transition: background .25s var(--ease);
}
/* при наведении — лёгкое затемнение и поворот крестика, без яркого жёлтого */
.uh-ai-close:hover { background: #e9e8e0; }
.uh-ai-close::before { transition: transform .25s var(--ease); }
.uh-ai-close:hover::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .uh-ai-close:hover::before { transform: none; }
}
.uh-ai-close::before {
  content: '';
  width: 13px; height: 13px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ——— тело: чат, форма входа, загрузка ——— */
.uh-ai-body { position: relative; min-height: 0; display: grid; }
.uh-ai-body deep-chat {
  width: 100%; height: 100%;
  border: none; background: #fff;
  font-family: 'Noto Sans Georgian', Inter, Arial, sans-serif;
}

/* слой поверх чата: форма входа или загрузка */
.uh-ai-layer {
  position: absolute; inset: 0; z-index: 2;
  display: grid;
  background: #fff;
  overflow-y: auto;
}

.uh-ai-loading {
  display: grid; gap: 12px; justify-items: center; align-content: center;
  height: 100%; padding: 24px; text-align: center;
  font-size: 13px; color: var(--muted);
}
.uh-ai-spin {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--yellow);
  animation: uh-ai-turn .8s linear infinite;
}
@keyframes uh-ai-turn { to { transform: rotate(360deg); } }

.uh-ai-retry {
  padding: 10px 18px; border: 0; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700;
}
.uh-ai-retry:hover { background: #303534; }

/* Кружок прячем и классом на нём самом — не зависим от каскада */
body.uh-ai-open .messenger,
.messenger.is-hidden-by-ai { opacity: 0 !important; pointer-events: none !important; }

/* Открыто меню сайта — плашка и кружок уходят, чтобы не лежать
   поверх пунктов меню. Класс nav-open ставит script.js. */
body.nav-open .uh-ai-pill,
body.nav-open .messenger,
body.uh-intro-open .uh-ai-pill,
body.uh-intro-open .messenger { opacity: 0 !important; pointer-events: none !important; }

/* ==========================================================
   Вход: сначала номер, потом чат
   ========================================================== */
.uh-gate {
  display: grid; place-items: center;
  min-height: 100%;
  padding: 40px 20px;
}
.uh-gate-card {
  display: grid; gap: 16px;
  width: min(440px, 100%);
  margin: 0;
}
.uh-gate-ava {
  position: relative;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--ink);
  margin-bottom: 4px;
}
.uh-gate-ava .uh-ai-spark { width: 26px; height: 26px; }
.uh-gate-title {
  margin: 0;
  font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--ink);
}
.uh-gate-lead {
  margin: -6px 0 6px;
  font-size: 14px; line-height: 1.6; color: var(--muted);
}

.uh-gate-field { display: grid; gap: 8px; }
.uh-gate-label { font-size: 13px; font-weight: 600; color: var(--ink); }
/* Поля без обводок: светлая заливка, в фокусе — белый фон и тень,
   ошибка — розоватая заливка вместо красной рамки. */
.uh-gate-input {
  width: 100%; height: 54px;
  padding: 0 16px;
  border: 0; border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 15px;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.uh-gate-input::placeholder { color: #9aa09e; }
.uh-gate-input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 17, 17, .12);
}
.uh-gate-input.is-bad { background: #f6e3e1; }

.uh-gate-phone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.uh-gate-code {
  display: grid; place-items: center;
  padding: 0 16px;
  border: 0; border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap;
}

.uh-gate-consent {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px;
  align-items: start;
  font-size: 12.5px; line-height: 1.5; color: var(--muted);
  cursor: pointer;
}
/* своя галочка: у стандартной всегда есть рамка */
.uh-gate-consent input {
  appearance: none; -webkit-appearance: none;
  display: grid; place-items: center;
  width: 20px; height: 20px; margin: 0;
  border: 0; border-radius: 6px;
  background: #e6e5de;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.uh-gate-consent input::after {
  content: '';
  width: 11px; height: 11px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0;
  transition: opacity .15s var(--ease);
}
.uh-gate-consent input:hover { background: #dcdbd3; }
.uh-gate-consent input:checked { background: var(--ink); }
.uh-gate-consent input:checked::after { opacity: 1; }
.uh-gate-consent.is-bad input { background: #f0cfcb; }
.uh-gate-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.uh-gate-consent.is-bad { color: #a33028; }

.uh-gate-error {
  margin: 0; min-height: 0;
  font-size: 12.5px; color: #a33028;
}
.uh-gate-error:empty { display: none; }

.uh-gate-submit {
  height: 54px;
  border: 0; border-radius: var(--r-sm);
  background: var(--yellow); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.uh-gate-submit:hover { background: var(--yellow-soft); }
.uh-gate-submit:disabled { opacity: .6; cursor: progress; }

/* ==========================================================
   Страница /chat.html: тот же чат, всегда открыт
   ========================================================== */
.uh-ai-page { display: grid; min-height: 0; }
.uh-ai-page .uh-ai-panel {
  position: relative; left: auto; top: auto;
  transform: none;
  width: 100%; height: 100%;
  box-shadow: 0 18px 50px rgba(16, 17, 17, .08);
  animation: none;
}

/* ==========================================================
   Телефон
   ========================================================== */
@media (max-width: 680px) {
  :root { --uh-dock-b: 16px; --uh-dock-r: 16px; --uh-dock-size: 52px; }

  /* на узком экране плашка занимает всё место слева от кружка */
  .uh-ai-pill {
    left: var(--uh-dock-r);
    right: calc(var(--uh-dock-r) + var(--uh-dock-size) + var(--uh-dock-gap));
    width: auto;
    transform: none;
    padding: 0 16px; gap: 10px;
  }
  .uh-ai.is-open .uh-ai-pill { transform: translateY(160%); }
  /* на телефоне под «Urban AI» — короткая польза, а не одно название */
  .uh-ai-sub-l { display: none; }
  .uh-ai-sub-s { display: inline; }

  .uh-ai-panel {
    left: 0; top: auto; bottom: 0;
    transform: none;
    width: 100%;
    height: 92dvh;
    border-radius: var(--r) var(--r) 0 0;
  }
  @keyframes uh-ai-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
  .uh-ai-head { padding: 12px 14px 12px 16px; gap: 12px; }
  .uh-ai-ava { width: 40px; height: 40px; }

  .uh-gate { padding: 28px 18px; align-items: start; }
  .uh-gate-title { font-size: 22px; }

  .uh-ai-page .uh-ai-panel { border-radius: 0; height: 100%; }
}

/* iPhone приближает экран, если шрифт поля ввода меньше 16px, — на телефонах держим 16px */
@media (max-width: 900px), (pointer: coarse) {
  .uh-ai input, .uh-ai select, .uh-ai textarea,
  .vz input, .vz select, .vz textarea { font-size: 16px !important; }
}

/* ==========================================================
   Окно-знакомство с ассистентом (<dialog class="uh-intro">)
   «До / после», заголовок, одна фраза, четыре шага, одна кнопка и «позже».
   На компьютере — карточка по центру экрана, на телефоне — шторка снизу.
   ========================================================== */
.uh-intro {
  position: fixed; inset: 0;
  width: min(520px, calc(100% - 48px));
  max-width: none; max-height: calc(100dvh - 48px);
  margin: auto; padding: 0;
  border: 0; border-radius: var(--r);
  background: #fff; color: var(--ink);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(16, 17, 17, .24);
}
.uh-intro[open] { display: flex; flex-direction: column; animation: uh-intro-rise .32s var(--ease); }
.uh-intro::backdrop { background: rgba(16, 17, 17, .36); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.uh-intro[open]::backdrop { animation: uh-ai-fade .25s var(--ease); }
@keyframes uh-intro-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.uh-intro-card { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.uh-intro-card:focus { outline: none; }

/* «до» слева, «после» справа; шторка въезжает при открытии */
.uh-intro-media { position: relative; height: 236px; margin: 0; overflow: hidden; background: #e9ebe5; }
.uh-intro-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 58%;
}
.uh-intro-before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); animation: uh-intro-wipe 1.3s var(--ease) .4s both; }
.uh-intro-split {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px; background: #fff;
  animation: uh-intro-line 1.3s var(--ease) .4s both;
}
@keyframes uh-intro-wipe { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 50% 0 0); } }
@keyframes uh-intro-line { from { left: 100%; } to { left: 50%; } }
.uh-intro-media.is-single .uh-intro-before,
.uh-intro-media.is-single .uh-intro-split,
.uh-intro-media.is-single .uh-intro-tag { display: none; }
.uh-intro-tag {
  position: absolute; bottom: 14px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(16, 17, 17, .62); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 1.2;
}
.uh-intro-tag.is-before { left: 14px; }
.uh-intro-tag.is-after { right: 14px; }
.uh-intro-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px 0 9px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700;
}
.uh-intro-badge .uh-ai-spark { width: 14px; height: 14px; }
.uh-intro-x { position: absolute; z-index: 2; top: 12px; right: 12px; background: rgba(255, 255, 255, .94); }
.uh-intro-x:hover { background: #fff; }

.uh-intro-body { display: grid; gap: 8px; padding: 28px 32px 26px; }
.uh-intro-title {
  margin: 0;
  font-family: var(--display); font-size: 25px; line-height: 1.22;
  font-weight: 700; letter-spacing: -.01em; color: var(--ink);
}
.uh-intro-sub { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
/* четыре шага, как в визуализаторе: 1 фото → 2 декор → 3 акцент → 4 результат.
   Размеры — чтобы все четыре стояли в одну строку (456 px) на всех 5 языках: армянский ~438 px,
   грузинский ~409 px; иначе четвёртый шаг переносился с висящей чёрточкой в начале строки */
.uh-intro-steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px;
  margin: 10px 0 0; padding: 0; list-style: none;
}
.uh-intro-steps li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.uh-intro-steps li + li::before {
  content: ''; width: 12px; height: 2px; margin-right: 2px; border-radius: 2px; background: #dedcd2;
}
.uh-intro-steps span {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); color: var(--gold-ink);
  font-size: 12px; font-weight: 800;
}
.uh-intro-steps li:first-child span { background: var(--ink); color: var(--yellow-soft); }
.uh-intro-cta { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.uh-intro-go {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 56px; padding: 8px 20px;
  border: 0; border-radius: var(--r-sm);
  background: var(--yellow); color: var(--ink);
  font: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.25;
  cursor: pointer; transition: background .2s var(--ease);
}
.uh-intro-go:hover { background: var(--yellow-soft); }
.uh-intro-go-ico {
  flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13.5V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h7'/%3E%3Cpath d='m4 16 4.2-4.2a1.5 1.5 0 0 1 2.1 0L16 17.5'/%3E%3Cpath d='M18 10V3M15.3 5.7 18 3l2.7 2.7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13.5V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h7'/%3E%3Cpath d='m4 16 4.2-4.2a1.5 1.5 0 0 1 2.1 0L16 17.5'/%3E%3Cpath d='M18 10V3M15.3 5.7 18 3l2.7 2.7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.uh-intro-later {
  flex: none;
  padding: 8px 2px; border: 0; background: none;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: color .2s var(--ease);
}
.uh-intro-later:hover { color: var(--ink); }
.uh-intro button:focus:not(:focus-visible) { outline: none; }
.uh-intro button:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }

@media (max-width: 680px) {
  .uh-intro {
    inset: auto 0 0 0;
    width: 100%; max-width: 100%; max-height: 70dvh;
    border-radius: var(--r) var(--r) 0 0;
  }
  .uh-intro[open] { animation: uh-intro-sheet .3s var(--ease); }
  @keyframes uh-intro-sheet {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: none; }
  }
  .uh-intro::backdrop { background: rgba(16, 17, 17, .3); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .uh-intro { max-height: 86dvh; }
  .uh-intro-media { height: 200px; }
  .uh-intro-tag { bottom: 12px; }
  .uh-intro-tag.is-before { left: 12px; }
  .uh-intro-tag.is-after { right: 12px; }
  .uh-intro-badge { top: 12px; left: 12px; }
  .uh-intro-x { top: 10px; right: 10px; }
  .uh-intro-body { gap: 8px; padding: 24px 22px calc(18px + env(safe-area-inset-bottom)); }
  .uh-intro-title { font-size: 22px; padding-right: 2px; }
  .uh-intro-sub { font-size: 14.5px; }
  .uh-intro-steps { margin-top: 10px; }
  .uh-intro-steps li { font-size: 12.5px; gap: 6px; }
  /* 4 грузинских шага в одну строку — от ~352 px строки (экран ~400 px); на 390 и 360 —
     перенос целыми шагами, 3 + 1 (чёрточек на телефоне нет, перенос выглядит ровно) */
  .uh-intro-steps { flex-wrap: wrap; gap: 8px 10px; }
  .uh-intro-steps li { white-space: nowrap; }
  .uh-intro-steps li + li::before { display: none; }
  .uh-intro-steps span { width: 24px; height: 24px; font-size: 12px; }
  /* на телефоне: кнопка во всю ширину, «позже» — под ней */
  .uh-intro-cta { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 18px; }
  .uh-intro-go { min-height: 56px; font-size: 15.5px; }
  .uh-intro-later { padding: 10px 0 4px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .uh-intro[open], .uh-intro[open]::backdrop,
  .uh-intro-before, .uh-intro-split { animation: none; }
}

/* 2026-11-18 (Лука: «фон, внутри белое, потом опять как фон — выглядит как дырки»): поля, плитки и кнопки
   внутри белых карточек — свой серый (--fill), не цвет фона страницы (--paper). */
:root { --fill: #ececec; --fill-hover: #e2e2e2; }

/* ==========================================================
   Блок визуализации (viz-block.js): дом → фото → декор → номер → результат.
   На странице — белая карточка с полосой шагов сверху. Внутренних прокруток
   нет: прокручивается страница вместе со сценой (с 2026-11-18 фото не прилипает), кнопка
   «ჩემი სახლის ნახვა» — снизу (на телефоне — плавающей панелью).
   В окне чата (студия, .is-embedded) — без карточки, прокручивается сама студия.
   ========================================================== */
.vz {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(330px, 1fr);
  grid-template-areas: "steps steps" "stage side";
  align-items: start;
  gap: 18px 30px;
  padding: 20px;
  background: #fff; color: var(--ink);
  border-radius: var(--r);
  font-family: 'Noto Sans Georgian', Inter, Arial, sans-serif;
  font-size: 15px; line-height: 1.55;
  text-align: left;
}
.vz *, .vz *::before, .vz *::after { box-sizing: border-box; }
.vz button { font-family: inherit; }
.vz button:focus:not(:focus-visible) { outline: none; }
.vz button:focus-visible, .vz a:focus-visible, .vz select:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
/* поле выбора файла — не display:none, иначе старый Safari не открывает выбор по метке */
.vz-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* только для экранных чтецов */
.vz-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Пока блок на виду, плашка ассистента и кружок контактов не закрывают кнопку блока */
.vz-dock-off .uh-ai-pill,
.vz-dock-off .messenger { opacity: 0 !important; visibility: hidden; pointer-events: none; }

/* ——— полоса шагов ——— */
.vz-steps {
  grid-area: steps;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px;
  margin: 0; padding: 2px 4px 0;
  list-style: none;
}
.vz-steps li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; line-height: 1.2;
  color: #8a908e; white-space: nowrap;
}
.vz-steps li + li::before {
  content: ""; flex: none;
  width: 22px; height: 2px; margin-right: 2px;
  border-radius: 2px; background: #e8e7e0;
}
.vz-steps b {
  flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--fill); color: #8a908e;
  font: 700 12px/1 var(--display);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.vz-steps li.is-done { color: var(--ink); }
.vz-steps li.is-done b {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/11px no-repeat;
  color: transparent;
}
.vz-steps li.is-done + li::before { background: var(--ink); }
.vz-steps li.is-now { color: var(--ink); font-weight: 700; }
.vz-steps li.is-now b { background: var(--yellow); color: var(--ink); }

/* ——— шаг 1: первый экран (правка Луки 2026-10-20: карточки-пути не читались как кнопки) ———
   Слева пример «до / после» со шторкой, справа «რა გაქვთ?» — две опции-радио
   и одна главная кнопка загрузки. Наведение — только смена фона: без подъёма и без тени. */
.vz[data-step="start"] {
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 1fr);
  grid-template-areas: "steps steps" "demo entry";
  align-items: stretch;
  gap: 18px 44px;
}

/* пример: та же пара снимков, что в окне знакомства с ассистентом; шторка проезжает один раз */
@property --vz-demo { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.vz-demo {
  grid-area: demo;
  position: relative; overflow: hidden;
  width: 100%; min-width: 0; min-height: 360px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  background: #e9ebe5;
}
.vz-demo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 56%;
}
.vz-demo-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--vz-demo, 50%)) 0 0); }
.vz-demo .vz-cmp-line { left: var(--vz-demo, 50%); }
.vz-demo.is-play { animation: vz-demo 3.4s cubic-bezier(.45, .05, .35, 1) .8s both; }
@keyframes vz-demo { 0% { --vz-demo: 50%; } 32% { --vz-demo: 80%; } 70% { --vz-demo: 24%; } 100% { --vz-demo: 50%; } }
.vz-demo-range {
  position: absolute; z-index: 3; inset: 0;
  width: 100%; height: 100%; margin: 0;
  opacity: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
}
.vz-demo:has(.vz-demo-range:focus-visible) .vz-cmp-knob { box-shadow: 0 0 0 4px var(--yellow), 0 8px 22px rgba(0, 0, 0, .3); }
.vz-demo .vz-tag.is-before { top: auto; bottom: 16px; left: 16px; }
.vz-demo .vz-tag.is-after { top: auto; bottom: 16px; left: auto; right: 16px; }
.vz-demo .vz-tag.is-demo { top: 16px; left: 16px; background: rgba(255, 255, 255, .92); color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* панель справа: вопрос, две опции, кнопка, подсказки */
.vz-entry {
  grid-area: entry;
  position: relative;
  align-self: center;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
  padding: 4px 4px 4px 0;
}
/* 2026-11-16: две плитки в одну строку — значок без кружка, выбранная тёмная, без галочек */
.vz-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vz-kind {
  position: relative;
  display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 11px;
  min-height: 68px; padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--fill); color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.vz-kind:hover { background: var(--fill-hover); }
/* выбранная опция — как активные кнопки на всём сайте: тёмная заливка, светлый текст, без контуров */
.vz-kind.is-on, .vz-kind.is-on:hover { background: var(--ink); color: #fff; }
.vz-kind.is-on .vz-kind-text small { color: rgba(255, 255, 255, .62); }
.vz-kind input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.vz-kind:has(input:focus-visible) { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.vz-kind-ico { display: grid; place-items: center; width: 26px; height: 26px; color: var(--gold-ink); transition: color .2s var(--ease); }
.vz-kind.is-on .vz-kind-ico { color: var(--yellow-soft); }
.vz-kind-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vz-kind-text { display: grid; gap: 2px; min-width: 0; }
.vz-kind-text b { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.vz-kind-text small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.vz-k-s { display: none; }

.vz .vz-up-title { font-size: 27px; line-height: 1.18; }
.vz .vz-up-lead { margin: -6px 0 2px; }
.vz-up { display: grid; gap: 10px; }
/* зона для фото: бросить файл или нажать; кнопка выбора — в ней (на телефоне — галерея и камера) */
.vz-dz {
  display: grid; justify-items: center; gap: 8px;
  padding: 26px 20px 22px;
  border-radius: var(--r-sm);
  background: var(--fill);
  text-align: center;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.vz-dz:hover { background: var(--fill-hover); }
.vz.is-drag .vz-dz { background: #f3e5c1; }
.vz-dz.is-bad { background: #f9ece9; }
.vz-dz.is-busy { cursor: progress; }
.vz-dz-ico { position: relative; width: 52px; height: 52px; margin-bottom: 2px; border-radius: 50%; background: var(--yellow); }
.vz-dz-ico::after {
  content: ''; position: absolute; inset: 15px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M12 15V4M7.5 8.5 12 4l4.5 4.5M4 14.5v4A1.5 1.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5v-4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M12 15V4M7.5 8.5 12 4l4.5 4.5M4 14.5v4A1.5 1.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5v-4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-dz-t { font-family: var(--display); font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.vz-dz-or { margin-top: -4px; font-size: 12.5px; line-height: 1.3; color: #8a908e; }
.vz-dz-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
/* .vz .vz-…: кнопки первого экрана сильнее общих .vz-btn (те объявлены ниже) */
.vz .vz-upload { min-width: min(250px, 100%); min-height: 52px; padding: 8px 22px; font-size: 15px; text-wrap: balance; }
.vz-upload .vz-ico { width: 19px; height: 19px; }
.vz-upload .vz-spin { width: 19px; height: 19px; }
.vz .vz-upload:disabled { opacity: 1; cursor: progress; }
.vz-up-g { display: none; }
/* камера — только на телефоне (сенсорный экран), «перетащите сюда» — только с мышью */
.vz .vz-camera { display: none; min-height: 52px; }
.vz-camera .vz-ico { width: 19px; height: 19px; }
.vz-dz-hint { max-width: 380px; font-size: 12px; line-height: 1.5; color: #8a908e; }
.vz .vz-up-err { margin: 0; padding: 10px 14px; border-radius: var(--r-sm); background: #f6e3e1; color: #7a2a24; font-size: 13px; line-height: 1.5; }
.vz .vz-up-meta { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.vz-up-meta .vz-ico { width: 15px; height: 15px; margin-top: 2px; color: var(--gold-ink); }
.vz-up-meta a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.vz-up-meta a:hover { color: var(--gold-ink); }
@media (hover: none) and (pointer: coarse) {
  .vz-dz { cursor: default; padding: 16px 14px 14px; }
  .vz-dz-ico, .vz-dz-t, .vz-dz-or { display: none; }
  .vz-dz-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vz .vz-upload, .vz .vz-camera { width: 100%; min-width: 0; padding: 8px 12px; }
  .vz .vz-camera { display: inline-flex; }
  .vz-up-l { display: none; }
  .vz-up-g { display: inline; }
}
.vz-entry-picked {
  justify-self: start; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 100%;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--fill); font-size: 13px; line-height: 1.3; color: var(--muted);
}
.vz-entry-picked b { color: var(--ink); }
.vz-entry-picked .vz-sw { flex: none; width: 28px; height: 28px; border-radius: 50%; }


/* файл тащат на блок: весь первый экран — одна большая цель */
.vz-entry-over {
  position: absolute; z-index: 6; inset: 0;
  display: grid; place-items: center;
  border-radius: inherit;
  background: rgba(215, 170, 69, .92); color: var(--ink);
  font-family: var(--display); font-size: 24px; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease);
}
.vz.is-drag .vz-entry-over { opacity: 1; }

/* ——— сцена: загрузка, фото, «рисую», шторка ——— */
/* 2026-11-16 (Лука: «основная фотка не вытянута, а это вытянутый»): кадр — ровно в пропорциях снимка (--ar),
   без размытых полос; «до» и «после» одного размера и места. Не выше окна: высокий кадр сужается по центру */
/* 2026-11-18 (Лука: фото «фиксированно скроллится» — остаётся сверху, потом уходит): сцена больше не прилипает,
   прокручивается вместе со страницей */
.vz-stage {
  grid-area: stage;
  position: relative;
  display: flex; justify-content: center; align-items: flex-start;
  min-width: 0;
}
/* результат: под фото — «другой декор / другое фото», ссылки и пометка (viz-block.js underHtml), панель справа
   короче и не оставляет пустоты под картинкой; лишняя высота панели уходит в нижнюю строку */
.vz:not(.is-embedded)[data-step="done"] { grid-template-areas: "steps steps" "stage side" "under side"; grid-template-rows: auto auto 1fr; }
.vz-under { grid-area: under; align-self: start; display: grid; gap: 12px; min-width: 0; }
.vz-under .vz-row .vz-btn { min-height: 46px; }
.vz-under .vz-links { padding: 0 2px; }
.vz-stage.is-drop, .vz-stage.is-off {
  display: grid;
  height: clamp(420px, calc(100vh - 128px), 620px);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--fill);
}
.vz-stage.is-drop > *, .vz-stage.is-off > * { grid-area: 1 / 1; }

.vz-drop {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 64px 32px 44px;
  text-align: center;
  background: var(--fill);
  cursor: pointer;
  transition: background .25s var(--ease);
}
.vz-drop:hover { background: #f0ebdc; }
.vz-drop.is-drag { background: #f3e5c1; }
.vz-drop:has(.vz-file:focus-visible) { box-shadow: inset 0 0 0 3px var(--yellow); }
/* декор выбран раньше фото: зона загрузки дважды мягко вспыхивает */
.vz-drop.is-nudge { animation: vz-nudge 1.3s var(--ease) 2; }
.vz-drop.is-nudge .vz-drop-ico { animation: vz-bump 1.3s var(--ease) 2; }
@keyframes vz-nudge { 0%, 100% { background: var(--fill); } 40% { background: #f3e5c1; } }
@keyframes vz-bump { 0%, 100% { transform: none; } 40% { transform: translateY(-5px) scale(1.06); } }
.vz-drop-ico {
  position: relative;
  width: 78px; height: 78px; margin-bottom: 8px;
  border-radius: 50%;
  background: var(--yellow);
  transition: transform .3s var(--ease);
}
.vz-drop-ico::after {
  content: ''; position: absolute; inset: 22px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13.5V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h7'/%3E%3Cpath d='m4 16 4.2-4.2a1.5 1.5 0 0 1 2.1 0L16 17.5'/%3E%3Cpath d='M18 10V3M15.3 5.7 18 3l2.7 2.7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13.5V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h7'/%3E%3Cpath d='m4 16 4.2-4.2a1.5 1.5 0 0 1 2.1 0L16 17.5'/%3E%3Cpath d='M18 10V3M15.3 5.7 18 3l2.7 2.7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-drop-title {
  max-width: 460px;
  font-family: var(--display); font-size: 26px; line-height: 1.2;
  font-weight: 700; letter-spacing: -.01em; color: var(--ink);
}
.vz-drop-text { max-width: 400px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.vz-drop.is-bad .vz-drop-text { color: #a33028; }
.vz-drop-btn {
  display: inline-flex; align-items: center;
  height: 50px; margin-top: 8px; padding: 0 26px;
  border-radius: var(--r-sm);
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700;
  transition: background .2s var(--ease);
}
.vz-drop:hover .vz-drop-btn { background: #303534; }
.vz-drop-hint { max-width: 420px; margin-top: 4px; font-size: 12px; line-height: 1.55; color: #8a908e; }
.vz-drop-over {
  position: absolute; inset: 14px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: rgba(215, 170, 69, .92); color: var(--ink);
  font-family: var(--display); font-size: 22px; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease);
}
.vz-drop.is-drag .vz-drop-over { opacity: 1; }

/* переключатель пути поверх сцены */
.vz-switch {
  position: absolute; z-index: 3; top: 14px; left: 14px;
  display: inline-flex; gap: 2px;
  padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 6px 18px rgba(16, 17, 17, .12);
}
.vz-switch-opt {
  height: 32px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.vz-switch-opt:hover { color: var(--ink); }
.vz-switch-opt[aria-pressed="true"] { background: var(--ink); color: #fff; }

.vz-photo,
.vz-compare {
  position: relative; flex: none; overflow: hidden;
  width: min(100%, calc((100vh - 170px) * var(--ar, 1.3333)));
  aspect-ratio: var(--ar, 1.3333);
  border-radius: var(--r-sm);
  background: #e9e8e1;
}
.vz-photo.is-off { width: 100%; height: 100%; aspect-ratio: auto; }
.vz-photo.is-drag::after { content: ''; position: absolute; inset: 0; z-index: 3; background: rgba(215, 170, 69, .4); }
.vz-photo-img,
.vz-cmp-after,
.vz-cmp-before img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
}
/* лист чертежа — целиком на белом (модель снимает дом своим кадром) */
.vz-photo.is-sheet .vz-photo-img, .vz-compare.is-sheet .vz-cmp-before img { object-fit: contain; background: #fff; }
.vz-photo.is-working::after { content: ''; position: absolute; inset: 0; background: rgba(16, 17, 17, .16); }

.vz-tag {
  position: absolute; z-index: 3; top: 14px; left: 14px;
  padding: 7px 12px; border-radius: 8px;
  background: rgba(16, 17, 17, .62); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.2;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.vz-compare .vz-tag { top: auto; bottom: 16px; left: 16px; }
.vz-compare .vz-tag.is-after { left: auto; right: 16px; }
.vz-change {
  position: absolute; z-index: 3; top: 14px; right: 14px;
  height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(16, 17, 17, .12);
  cursor: pointer;
  transition: background .2s var(--ease);
}
.vz-change:hover { background: #fff; }
/* выбранный декор поверх фото: «ваш дом + этот декор» */
.vz-chip {
  position: absolute; z-index: 2; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 9px;
  max-width: calc(100% - 32px);
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  font-size: 13px; font-weight: 700; line-height: 1.2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  pointer-events: none;
}
.vz-chip .vz-sw { flex: none; width: 28px; height: 28px; border-radius: 50%; }
.vz-chip b { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.vz-chip:empty { display: none; }
/* декор выбран до фото: плашка внизу зоны загрузки — место под неё, чтобы не легла на подсказку */
.vz-stage:has(.vz-chip.is-drop:not(:empty)) .vz-drop { padding-bottom: 78px; }

/* подсказка автоопределения: «похоже на чертёж — переключить на новый дом?» */
.vz-suggest {
  position: absolute; z-index: 3; left: 14px; right: 14px; top: 66px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 12px 12px 12px 16px; border-radius: var(--r-sm);
  background: rgba(16, 17, 17, .86); color: #fff;
  font-size: 13px; line-height: 1.45;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.vz-suggest-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.vz-suggest button { height: 34px; padding: 0 13px; border: 0; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.vz-suggest-yes { background: var(--yellow); color: var(--ink); }
.vz-suggest-yes:hover { background: var(--yellow-soft); }
.vz-suggest-no { background: rgba(255, 255, 255, .14); color: #fff; }
.vz-suggest-no:hover { background: rgba(255, 255, 255, .24); }

/* «рисую»: по фото проходит мягкий свет, внизу — что сейчас происходит и тонкая полоса хода */
.vz-scan { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.vz-scan i {
  position: absolute; top: 0; bottom: 0; left: -45%; width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .26) 50%, rgba(255, 255, 255, 0));
  animation: vz-sheen 2.6s cubic-bezier(.45, .05, .55, .95) infinite;
}
@keyframes vz-sheen { from { transform: translateX(0); } to { transform: translateX(330%); } }
.vz-work-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .35); }
.vz-work-bar i { display: block; width: 0; height: 100%; background: var(--yellow); transition: width 1s linear; }
.vz-work-badge {
  position: absolute; z-index: 2; left: 50%; bottom: 20px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 999px;
  background: rgba(16, 17, 17, .8); color: #fff;
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
  white-space: nowrap;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.vz-work-badge .vz-spark { color: var(--yellow); animation: vz-pulse 1.6s ease-in-out infinite; }
.vz-work-now { overflow: hidden; text-overflow: ellipsis; }
@keyframes vz-pulse { 0%, 100% { opacity: 1; transform: none; } 50% { opacity: .45; transform: scale(.82); } }

/* шторка «до / после» */
.vz-cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.vz-cmp-line {
  position: absolute; z-index: 1; top: 0; bottom: 0; left: var(--split, 50%);
  width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 14px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.vz-cmp-knob {
  position: absolute; top: 50%; left: 50%;
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}
.vz-cmp-knob::after {
  content: ''; position: absolute; inset: 13px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-cmp-range {
  position: absolute; z-index: 3; inset: 0;
  width: 100%; height: 100%; margin: 0;
  opacity: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
}
.vz-compare:has(.vz-cmp-range:focus-visible) .vz-cmp-knob { box-shadow: 0 0 0 4px var(--yellow), 0 8px 22px rgba(0, 0, 0, .3); }

/* скачать · поделиться · во весь размер — поверх результата */
.vz-tools { position: absolute; z-index: 4; top: 12px; right: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.vz-tool {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  font-size: 12.5px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
  cursor: pointer;
  transition: background .2s var(--ease);
}
.vz-tool:hover { background: #fff; }
.vz-tool.vz-full { width: 38px; padding: 0; justify-content: center; }
.vz-ico { flex: none; display: inline-block; width: 16px; height: 16px; background: currentColor; }
.vz-ico.is-down {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-ico.is-share {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M12 15V4M8 8l4-4 4 4M5 13v6a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M12 15V4M8 8l4-4 4 4M5 13v6a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-ico.is-full {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* загрузка, камера, снимок, время, замок — первый экран */
.vz-ico.is-pic {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2'/%3E%3Ccircle cx='9' cy='9.8' r='1.6'/%3E%3Cpath d='m4 17 4.6-4.4a1.5 1.5 0 0 1 2 0L16 17.5M14 15.5l1.6-1.5a1.5 1.5 0 0 1 2 0l2.4 2.2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2'/%3E%3Ccircle cx='9' cy='9.8' r='1.6'/%3E%3Cpath d='m4 17 4.6-4.4a1.5 1.5 0 0 1 2 0L16 17.5M14 15.5l1.6-1.5a1.5 1.5 0 0 1 2 0l2.4 2.2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-ico.is-up {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M12 15V4M7.5 8.5 12 4l4.5 4.5M4 14.5v4A1.5 1.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5v-4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M12 15V4M7.5 8.5 12 4l4.5 4.5M4 14.5v4A1.5 1.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5v-4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-ico.is-cam {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5A1.5 1.5 0 0 1 5 7h2.6l1.5-2.2h5.8L16.4 7H19a1.5 1.5 0 0 1 1.5 1.5v9.5a1.5 1.5 0 0 1-1.5 1.5H5A1.5 1.5 0 0 1 3.5 18z'/%3E%3Ccircle cx='12' cy='12.8' r='3.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5A1.5 1.5 0 0 1 5 7h2.6l1.5-2.2h5.8L16.4 7H19a1.5 1.5 0 0 1 1.5 1.5v9.5a1.5 1.5 0 0 1-1.5 1.5H5A1.5 1.5 0 0 1 3.5 18z'/%3E%3Ccircle cx='12' cy='12.8' r='3.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-ico.is-clock {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-ico.is-lock {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='9.5' rx='2'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='9.5' rx='2'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ——— панель справа: декоры, номер, ход работы, итог ——— */
.vz-side { grid-area: side; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 4px 6px 0 0; }
.vz .vz-title {
  margin: 0;
  font-family: var(--display); font-size: 23px; line-height: 1.22;
  font-weight: 700; letter-spacing: -.01em; color: var(--ink);
}
.vz .vz-lead { margin: -6px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.vz .vz-lead.is-err { color: #7a2a24; }
.vz .vz-note { margin: 0; font-size: 12.5px; line-height: 1.55; color: #8a908e; }
/* ожидание дольше минуты: «не закрывайте страницу» должно читаться */
.vz .vz-note.is-slow { color: var(--ink); font-weight: 600; }

/* ——— выбор декора (viz-block.js → pickBodyHtml): поиск, «პოპულარული», материал, фактура, список ———
   Только заливки: выбранное — тёмное с белым текстом, без обводок; галочка — мягким золотом. */
.vz-pick { display: grid; gap: 18px; min-width: 0; border-radius: var(--r-sm); }
.vz-pick.is-flash { animation: vz-flash .9s var(--ease); }
.vz-pick-body { display: grid; gap: 22px; min-width: 0; }

.vz-q {
  position: relative;
  display: flex; align-items: center;
  height: 48px; padding: 0 6px 0 44px;
  border-radius: var(--r-sm);
  background: var(--fill);
  transition: background .2s var(--ease);
}
.vz-q:focus-within { background: var(--fill-hover); }
.vz-q-ico {
  position: absolute; left: 15px; top: 50%;
  width: 18px; height: 18px; margin-top: -9px;
  background: #69706f;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-q-input {
  flex: 1 1 auto; min-width: 0; height: 100%;
  margin: 0; padding: 0;
  border: 0; outline: none; background: transparent;
  color: var(--ink); font: inherit; font-size: 15px;
  -webkit-appearance: none; appearance: none;
}
.vz-q-input::placeholder { color: #8a908e; }
.vz-q-input::-webkit-search-cancel-button, .vz-q-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.vz-q-clear {
  position: relative; flex: none;
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
}
.vz-q-clear[hidden] { display: none; }
.vz-q-clear::before {
  content: ''; position: absolute; inset: 11px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-q-clear:hover { background: #d8d8d8; }

.vz-sec { display: grid; gap: 12px; min-width: 0; }
.vz .vz-sub {
  display: flex; align-items: center; gap: 8px;
  margin: 0;
  font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink);
}
.vz .vz-sub small { font-size: 13px; font-weight: 600; color: #8a908e; }
.vz-sec-head { display: grid; gap: 2px; }
.vz .vz-sec-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: #8a908e; }
.vz-star {
  flex: none; display: block; width: 22px; height: 22px; border-radius: 50%;
  background: var(--yellow-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23101111' d='M12 3.8l2.4 5 5.4.6-4 3.7 1.1 5.4L12 15.8l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* «პოპულარული»: крупнее остальных — три в ряд */
.vz-pop-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vz-tile.is-big { padding: 7px 7px 11px; }
.vz-tile.is-big .vz-sw { aspect-ratio: 4 / 3; }
.vz-tile.is-big .vz-tile-name { font-size: 13.5px; }
.vz-tile.is-big .vz-tile-code { font-size: 11.5px; }
/* популярный в общем списке — та же звёздочка на образце */
.vz-pop {
  position: absolute; top: 6px; left: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--yellow-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23101111' d='M12 3.8l2.4 5 5.4.6-4 3.7 1.1 5.4L12 15.8l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* материал — сегменты, фактура — фильтры; числа рядом */
.vz-seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-sm); background: var(--fill); }
.vz-seg-opt, .vz-fchip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.vz-seg-opt { flex: 1 1 0; flex-direction: column; gap: 0; min-width: 0; min-height: 48px; padding: 4px 6px; line-height: 1.2; }
.vz-seg-opt b { max-width: 100%; overflow: hidden; font-size: 13.5px; font-weight: 700; text-overflow: ellipsis; }
.vz-seg-opt b i { font-size: 11.5px; font-style: normal; font-weight: 600; opacity: .55; }
.vz-seg-opt[aria-pressed="true"] b i { opacity: .7; }
.vz-seg-opt small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.vz-seg-opt small, .vz-fchip small { font-size: 11.5px; font-weight: 600; opacity: .55; }
.vz-seg-opt:hover:not([aria-pressed="true"]):not(:disabled) { background: var(--fill-hover); }
.vz-seg-opt[aria-pressed="true"], .vz-fchip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.vz-seg-opt[aria-pressed="true"] small, .vz-fchip[aria-pressed="true"] small { opacity: .7; }
.vz-seg-opt:disabled { opacity: .4; cursor: default; }
.vz-fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.vz-fchips::-webkit-scrollbar { display: none; }
.vz-fchip { flex: none; background: var(--fill); }
.vz-fchip:hover:not([aria-pressed="true"]) { background: var(--fill-hover); }
.vz-x {
  display: block; width: 10px; height: 10px; margin-left: 2px; background: var(--yellow-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5 5 19'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5 5 19'/%3E%3C/svg%3E") center/contain no-repeat;
}

.vz-empty { display: grid; justify-items: start; gap: 10px; padding: 18px; border-radius: var(--r-sm); background: var(--fill); }
.vz-empty p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.vz-empty .vz-btn { width: auto; min-height: 44px; background: #fff; }

.vz-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px;
  align-content: start;
  border-radius: var(--r-sm);
}
.vz-grid.is-flash { animation: vz-flash .9s var(--ease); }
@keyframes vz-flash { 0%, 100% { background: transparent; box-shadow: 0 0 0 0 rgba(215, 170, 69, 0); } 30% { background: rgba(215, 170, 69, .24); box-shadow: 0 0 0 8px rgba(215, 170, 69, .24); } }
.vz-tile {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 6px 10px;
  border: 0; border-radius: var(--r-sm);
  background: var(--fill); color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.vz-tile:hover { background: var(--fill-hover); }
/* «მეტის ჩვენება 24 / 168» — следующие 24 плитки (viz-block.js → pickBodyHtml) */
.vz-more {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 0 16px;
  border: 0; border-radius: var(--r-sm);
  background: var(--fill); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.vz-more small { font-size: 12px; font-weight: 600; opacity: .55; }
.vz-more:hover { background: var(--fill-hover); }
.vz-tile[aria-pressed="true"] { background: var(--ink); color: #fff; }
.vz-tile[aria-pressed="true"]::after {
  content: ''; position: absolute; top: 11px; right: 11px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23101111' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.vz-tile[aria-pressed="true"] .vz-pop { display: none; }
.vz-tile-media { position: relative; display: block; margin-bottom: 6px; }
.vz-tile .vz-sw { width: 100%; aspect-ratio: 16 / 11; }
.vz-tile-name { padding: 0 3px; font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.vz-tile-code { padding: 0 3px; font-size: 11px; line-height: 1.3; color: #8a908e; }
.vz-tile[aria-pressed="true"] .vz-tile-code { color: rgba(255, 255, 255, .6); }
.vz-tile .vz-price { margin-top: 3px; padding: 0 3px; }
/* наличие — строкой под кодом (правка 2026-10-20: с остатком «მარაგშია · 100 მ²» плашка на образце не помещалась):
   «в наличии» с золотой точкой, «под заказ» — приглушённо */
.vz-stock {
  display: flex; align-items: flex-start; gap: 5px;
  margin-top: 3px; padding: 0 3px;
  color: #8a908e;
  font-size: 10.5px; font-weight: 700; line-height: 1.3;
}
.vz-stock.is-in { color: var(--ink); }
.vz-tile[aria-pressed="true"] .vz-stock { color: rgba(255, 255, 255, .6); }
.vz-tile[aria-pressed="true"] .vz-stock.is-in { color: #fff; }
.vz-stock.is-in::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: .4em; border-radius: 50%; background: var(--yellow); }

/* цена за м² — в валюте прайса (лари — по кнопке ₾ на сайте, разметка .money) */
.vz-price { display: block; font-size: 12px; line-height: 1.35; color: var(--ink); }
.vz-price b { font-weight: 700; }
.vz-price small { font-size: 11px; font-weight: 500; color: #8a908e; }
.vz-price.is-req { font-size: 11.5px; color: #8a908e; }
.vz-tile[aria-pressed="true"] .vz-price { color: var(--yellow-soft); }
.vz-tile[aria-pressed="true"] .vz-price small,
.vz-tile[aria-pressed="true"] .vz-price.is-req { color: rgba(255, 255, 255, .6); }

/* образец: тень вместо обводки отделяет белые декоры от светлой плитки */
.vz-sw {
  position: relative; display: block; overflow: hidden;
  border-radius: 7px;
  background: #e9ebe5;
  box-shadow: 0 1px 2px rgba(16, 17, 17, .08), 0 3px 10px rgba(16, 17, 17, .06);
}
.vz-sw img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.3); }
.vz-sum .vz-sw { width: 52px; height: 52px; }

/* материал — строкой без плашки (2026-11-16: без «серое в белом»); список — между тонкими линиями */
.vz-sum {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 0;
}
.vz-side > .vz-sum, .vz-pair { border-top: 1px solid #ecebe5; border-bottom: 1px solid #ecebe5; }
.vz-go > .vz-sum { padding: 0; border: 0; }
.vz-sum-text { display: grid; gap: 1px; min-width: 0; }
.vz-sum-text b { overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.vz-sum-text small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.vz-sum-text .vz-price { margin-top: 2px; font-size: 12.5px; }
.vz-plink { font-size: 12.5px; font-weight: 700; color: var(--gold-ink); white-space: nowrap; text-decoration: none; }
.vz-plink:hover { color: var(--ink); }
/* ссылка на товар и «შეცვლა» у акцента — столбиком справа (на телефоне — строкой под названием) */
.vz-sum-links { display: grid; justify-items: end; gap: 3px; }
.vz .vz-acc-change { padding: 2px 0; font-size: 12.5px; }
/* роль материала над названием: «ფასადი», «აქცენტი · ცოკოლი, სვეტები, სოფიტები» */
.vz-role {
  display: block; overflow: hidden;
  font-size: 11px; font-weight: 700; line-height: 1.35; letter-spacing: .02em;
  color: var(--gold-ink); text-overflow: ellipsis; white-space: nowrap;
}
/* два материала: основной и акцент — две строки одна под другой */
.vz-pair { display: grid; gap: 0; }
.vz-pair > .vz-sum + .vz-sum { border-top: 1px solid #ecebe5; }
/* два образца внахлёст: на фото («ваш дом + оба материала») и над кнопкой шага «акцент» */
.vz-sw2 { position: relative; display: inline-flex; flex: none; }
.vz-sw2 .vz-sw + .vz-sw { margin-left: -9px; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(16, 17, 17, .14); }
.vz-sum.is-pair { grid-template-columns: auto minmax(0, 1fr); }
.vz-sum.is-pair .vz-sw { width: 42px; height: 42px; }

/* кнопка запуска прилипает к низу экрана, пока видна панель */
.vz-go {
  position: sticky; bottom: 0; z-index: 5;
  display: grid; gap: 10px;
  margin: 0 -6px 0 -6px; padding: 18px 6px 4px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 16px);
}
.vz-nudge {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 10px 14px 10px 10px;
  border: 0; border-radius: var(--r-sm);
  background: #f6efdc; color: var(--ink);
  font-size: 13.5px; font-weight: 600; line-height: 1.45; text-align: left;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.vz-nudge:hover { background: #f3e5c1; }
.vz-nudge-ico { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); }
.vz-nudge-ico::after {
  content: ''; position: absolute; inset: 9px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M12 16V5M7 10l5-5 5 5M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M12 16V5M7 10l5-5 5 5M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 8px 22px;
  border: 0; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.vz-btn-gold { background: var(--yellow); color: var(--ink); }
.vz-btn-gold:hover { background: var(--yellow-soft); }
.vz-btn-dark { background: var(--ink); color: #fff; }
.vz-btn-dark:hover { background: #303534; }
.vz-btn-soft { min-height: 48px; padding: 8px 16px; background: var(--fill); color: var(--ink); font-size: 14px; font-weight: 600; }
.vz-btn-soft:hover { background: var(--fill-hover); }
.vz-btn.is-dim { opacity: .55; }
.vz-btn:disabled { opacity: .55; cursor: default; }
.vz-hint { font-size: 12.5px; line-height: 1.4; color: var(--muted); text-align: center; }
.vz-spark {
  flex: none; display: inline-block;
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.2L20.5 10l-6.3 1.8L12 18l-2.2-6.2L3.5 10l6.3-1.8z'/%3E%3Cpath d='M19 15l.9 2.4 2.4.9-2.4.9-.9 2.4-.9-2.4-2.4-.9 2.4-.9z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.2L20.5 10l-6.3 1.8L12 18l-2.2-6.2L3.5 10l6.3-1.8z'/%3E%3Cpath d='M19 15l.9 2.4 2.4.9-2.4.9-.9 2.4-.9-2.4-2.4-.9 2.4-.9z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.vz-back {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 0; border: 0; background: none;
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer;
}
.vz-back:hover { color: var(--ink); }
.vz-form { display: grid; gap: 14px; }
.vz-form .uh-gate-input { height: 52px; }
.vz-opt { font-size: 12px; font-weight: 500; color: #8a908e; }
/* код страны: Грузия, Армения, Азербайджан */
.vz-cc {
  height: 52px; padding: 0 30px 0 14px;
  border: 0; border-radius: var(--r-sm);
  background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23101111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 11px center/12px no-repeat;
  color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 700;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
.vz-cc:hover { background-color: var(--fill-hover); }

.vz-wk { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2px 0 -8px; }
.vz-wk-pct { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.vz-wk-eta { font-size: 13px; font-weight: 600; color: var(--muted); }
.vz-progress { height: 6px; overflow: hidden; border-radius: 6px; background: var(--fill-hover); }
.vz-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--yellow); transition: width 1s linear; }
.vz-worklist { display: grid; gap: 11px; margin: 4px 0 0; padding: 0; list-style: none; }
.vz-worklist li { position: relative; padding-left: 32px; font-size: 14px; line-height: 1.45; color: #a3a8a6; transition: color .3s var(--ease); }
.vz-worklist li::before {
  content: ''; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--fill-hover);
}
.vz-worklist li.is-done { color: var(--ink); }
.vz-worklist li.is-done::before {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/10px no-repeat;
}
.vz-worklist li.is-now { color: var(--ink); font-weight: 600; }
.vz-worklist li.is-now::before,
.vz-spin {
  background: conic-gradient(var(--yellow) 0 30%, #e2e1da 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: vz-turn .8s linear infinite;
}
.vz-spin { flex: none; display: block; width: 18px; height: 18px; border-radius: 50%; }
@keyframes vz-turn { to { transform: rotate(360deg); } }
.vz-wait { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 14px 4px; font-size: 13.5px; color: var(--muted); }

.vz-actions { display: grid; gap: 10px; }
.vz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vz-row:empty { display: none; }
.vz-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; }
.vz-link {
  justify-self: start;
  padding: 6px 0; border: 0; background: none;
  font-size: 14px; font-weight: 700; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.vz-link:hover { color: var(--gold-ink); }
.vz-link:disabled { opacity: .5; cursor: default; }
.vz .vz-msg { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: #f6efdc; font-size: 13.5px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.vz .vz-msg:empty { display: none; }
.vz[data-step="off"] { grid-template-areas: "stage side"; }
.vz[data-step="off"] .vz-side { align-self: center; }
/* значок ошибки: «!» — сбой, часы — дольше обычного или лимит */
.vz-err-ico { position: relative; width: 48px; height: 48px; border-radius: 50%; background: #f6e3e1; }
.vz-err-ico::after {
  content: ''; position: absolute; inset: 13px; background: #a33028;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' d='M12 5v9M12 19v.2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' d='M12 5v9M12 19v.2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-err-ico.is-soft { background: #f6efdc; }
.vz-err-ico.is-soft::after {
  background: var(--gold-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.5' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.5' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ——— шаг «акцент» (viz-block.js → accentHtml, 2026-11-11): второй материал на цоколь, колонны, софиты ———
   Те же приёмы, что у выбора декора: только заливки, выбранное — тёмное с золотой галочкой, без обводок. */
.vz .vz-title:focus { outline: none; }
.vz .vz-title:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; border-radius: 4px; }
.vz-go-arrow { font-size: 18px; line-height: 1; }
.vz-acc { display: grid; gap: 12px; min-width: 0; }
.vz .vz-acc-tip { display: flex; align-items: flex-start; gap: 9px; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.vz-acc-tip b { color: var(--ink); font-weight: 700; }
.vz-acc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vz-tile.is-acc { padding: 6px 6px 9px; }
.vz-tile.is-acc .vz-sw { aspect-ratio: 1 / 1; }
.vz-tile.is-acc .vz-tile-name {
  display: -webkit-box; overflow: hidden;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-size: 12.5px; overflow-wrap: break-word; hyphens: auto;
}
.vz-tile.is-acc[aria-pressed="true"]::after { top: 10px; right: 10px; }
/* «наш совет» — первая подсказка: золотая звёздочка на образце (как у популярных) */
.vz-rec {
  position: absolute; top: 6px; left: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--yellow-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23101111' d='M12 3.8l2.4 5 5.4.6-4 3.7 1.1 5.4L12 15.8l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z'/%3E%3C/svg%3E") center/13px no-repeat;
  box-shadow: 0 2px 6px rgba(16, 17, 17, .18);
}
/* «აქცენტის გარეშე» — весь фасад одним декором */
.vz-acc-none {
  position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px;
  width: 100%; min-height: 60px; padding: 8px 48px 8px 8px;
  border: 0; border-radius: var(--r-sm);
  background: var(--fill); color: var(--ink);
  font: inherit; text-align: left;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.vz-acc-none:hover { background: var(--fill-hover); }
.vz-acc-none[aria-pressed="true"] { background: var(--ink); color: #fff; }
.vz-acc-none[aria-pressed="true"]::after {
  content: ''; position: absolute; top: 50%; right: 14px;
  width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  background: var(--yellow-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23101111' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.vz-acc-none-ico { position: relative; width: 44px; height: 44px; }
.vz-acc-none-ico::after {
  content: ''; position: absolute; inset: 9px; background: #8a908e;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M6 18 18 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M6 18 18 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-acc-none[aria-pressed="true"] .vz-acc-none-ico::after { background: var(--yellow-soft); }
.vz-acc-none-text { display: grid; gap: 1px; min-width: 0; }
.vz-acc-none-text b { font-size: 14px; font-weight: 700; line-height: 1.3; }
.vz-acc-none-text small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.vz-acc-none[aria-pressed="true"] .vz-acc-none-text small { color: rgba(255, 255, 255, .62); }
/* весь список декоров для акцента — по кнопке под подсказками */
.vz-pick.is-acc { gap: 14px; }
.vz-acc-list { display: grid; gap: 18px; min-width: 0; }
.vz-acc-list[hidden] { display: none; }
.vz-chev {
  flex: none; display: block; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s var(--ease);
}
.vz-acc-all[aria-expanded="true"] .vz-chev { transform: rotate(180deg); }
/* итог без акцента: «დაამატეთ აქცენტი» — мягкой золотой плашкой, как просьба загрузить фото */
.vz-acc-add {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px;
  width: 100%; padding: 10px 14px 10px 10px;
  border: 0; border-radius: var(--r-sm);
  background: #f6efdc; color: var(--ink);
  font: inherit; text-align: left;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.vz-acc-add:hover { background: #f3e5c1; }
.vz-acc-add-ico { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); }
.vz-acc-add-ico::after {
  content: ''; position: absolute; inset: 10px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vz-acc-add-text { display: grid; gap: 1px; min-width: 0; }
.vz-acc-add-text b { font-size: 14px; font-weight: 700; line-height: 1.3; }
.vz-acc-add-text small { font-size: 12px; line-height: 1.4; color: var(--muted); }
/* итог полной сметы в панели результата: «Фасад целиком · 150 м² — 11 738,57 €» (событие uh:calc) */
.vz-esum {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 14px;
  min-height: 64px; padding: 2px 0 4px;
}
.vz-esum-k { font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--muted); }
.vz-esum-v { justify-self: end; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vz-esum-s { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.45; color: #8a908e; }
.vz-esum.is-wait { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 10px; }
.vz-esum .money .m-gel { display: none; }
.vz-to-est .vz-go-arrow { font-size: 17px; }

/* под карточкой — полная смета: тот же калькулятор, что на /calculator (calc.css, .cx-body.is-embed) */
.vz-est { margin-top: 28px; scroll-margin-top: 84px; text-align: left; }
.vz-est[hidden] { display: none; }
.vz-est-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; margin: 0 0 16px; padding: 0 4px; }
.vz-est-ht { min-width: 0; max-width: 860px; }
.vz-est-title { margin: 0; font-family: var(--display); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
.vz-est-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.vz-est-mats { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.vz-est-mats b { font-weight: 700; }
.vz-est-mats .vz-sw { width: 28px; height: 28px; border-radius: 50%; }
.vz-est-open {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.vz-est-open:hover { background: var(--ink); color: #fff; }
.vz-est-skel { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: 240px 76px 76px; gap: 14px 20px; }
.vz-est-skel span { display: block; border-radius: var(--r); background: linear-gradient(90deg, #eceae3 0%, #f6f5f1 50%, #eceae3 100%); background-size: 200% 100%; animation: vz-shimmer 1.4s linear infinite; }
.vz-est-skel .is-d { grid-column: 2; grid-row: 1 / 4; background: linear-gradient(90deg, #2a2d2e 0%, #34383a 50%, #2a2d2e 100%); background-size: 200% 100%; }
.vz-est-skel .is-a { grid-column: 1; grid-row: 1; }
.vz-est-skel .is-b { grid-column: 1; grid-row: 2; }
.vz-est-skel .is-c { grid-column: 1; grid-row: 3; }
.vz-est-fail { display: grid; justify-items: start; gap: 14px; padding: 24px; border-radius: var(--r); background: #fff; }
.vz-est-fail p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
/* полоса цены сметы (телефон) не ложится на карточку результата: пока та на виду — полосы нет */
html.vz-dock-off .vz-est .cx-bar.is-on { transform: translateY(150%); opacity: 0; pointer-events: none; }

/* под кнопкой расчёта: площадь акцента в калькуляторе — оценка */
.vz .vz-calc-note { margin: -4px 0 2px; font-size: 12px; line-height: 1.5; color: #8a908e; text-align: center; }
/* AI-студия с этим же фото: тихая плашка, золотая искра на тёмном круге (знак Urban AI) */
.vz-studio {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--r-sm);
  background: var(--fill); color: var(--ink);
  text-decoration: none;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.vz-studio:hover { background: var(--fill-hover); }
.vz-studio.is-busy { opacity: .7; cursor: progress; }
.vz-studio-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--yellow); }
.vz-studio-ico .vz-spark { width: 18px; height: 18px; }
.vz-studio-text { display: grid; gap: 1px; min-width: 0; }
.vz-studio-text b { font-size: 14px; font-weight: 700; line-height: 1.3; }
.vz-studio-text small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.vz-studio-go { font-size: 18px; font-weight: 700; line-height: 1; color: var(--gold-ink); transition: transform .2s var(--ease); }
.vz-studio:hover .vz-studio-go { transform: translateX(3px); }

/* ——— скелет: пока скрипт не загрузился, место блока не пустое (та же сетка, что у первого экрана) ——— */
.vz-skel { min-height: 520px; }
.vz-skel-dots { grid-area: steps; display: flex; gap: 10px; padding: 2px 4px 0; }
.vz-skel-demo { grid-area: demo; display: block; width: 100%; min-height: 360px; aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.vz-skel-entry { grid-area: entry; align-self: center; display: grid; gap: 10px; padding: 4px 4px 4px 0; }
.vz-skel-dots i, .vz-skel-line, .vz-skel-card, .vz-skel-demo, .vz-skel-btn {
  display: block;
  background: linear-gradient(90deg, #f1f0ea 0%, #f8f7f3 50%, #f1f0ea 100%);
  background-size: 200% 100%;
  animation: vz-shimmer 1.4s linear infinite;
}
.vz-skel-dots i { width: 78px; height: 26px; border-radius: 999px; }
.vz-skel-line { width: min(200px, 60%); height: 26px; margin-bottom: 6px; border-radius: 8px; }
.vz-skel-line.is-short { width: min(320px, 80%); height: 14px; margin: 4px auto 0; }
.vz-skel-card { height: 80px; border-radius: var(--r-sm); }
.vz-skel-btn { height: 60px; margin-top: 6px; border-radius: var(--r-sm); }
@keyframes vz-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ——— студия в окне чата ——— */
.uh-ai-layer.is-studio { display: block; }
.vz.is-embedded {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
  grid-template-areas: "head head" "steps steps" "stage side";
  gap: 18px 28px;
  height: 100%; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 24px 26px 26px;
  border-radius: 0;
  box-shadow: none;
}
.vz.is-embedded[data-step="start"] { grid-template-areas: "head head" "steps steps" "demo entry"; }
.vz.is-embedded .vz-stage { top: 0; height: clamp(320px, 62vh, 540px); }
.vz.is-embedded .vz-side { padding: 0; }
.vz-emb-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
.vz .vz-emb-title { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.vz .vz-emb-lead { max-width: 640px; margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

@media (max-width: 1100px) {
  .vz { grid-template-columns: minmax(0, 1.15fr) minmax(310px, 1fr); gap: 16px 22px; }
  .vz[data-step="start"] { grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 16px 28px; }
}
@media (max-width: 900px) {
  .vz, .vz.is-embedded { grid-template-columns: minmax(0, 1fr); grid-template-areas: "steps" "stage" "side"; }
  /* телефон: сначала выбор и большая кнопка загрузки, пример «до / после» — под ними */
  .vz[data-step="start"], .vz.is-embedded[data-step="start"] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "steps" "entry" "demo"; }
  .vz.is-embedded { grid-template-areas: "head" "steps" "stage" "side"; }
  .vz.is-embedded[data-step="start"] { grid-template-areas: "head" "steps" "entry" "demo"; }
  .vz-entry, .vz-skel-entry { align-self: start; padding: 0 2px; }
  .vz-demo, .vz-skel-demo { min-height: 0; }
  .vz[data-step="off"] { grid-template-areas: "stage" "side"; }
  .vz { padding: 14px; gap: 14px; }
  .vz-stage, .vz.is-embedded .vz-stage { position: relative; top: auto; }
  .vz:not(.is-embedded)[data-step="done"] { grid-template-areas: "steps" "stage" "side" "under"; grid-template-rows: none; }
  .vz-stage.is-drop, .vz-stage.is-off { height: auto; }
  .vz-drop { padding: 64px 22px 34px; }
  .vz-photo, .vz-compare { width: min(100%, calc(72vh * var(--ar, 1.3333))); }
  .vz-photo.is-off { aspect-ratio: 4 / 3; }
  .vz-est { margin-top: 20px; }
  .vz-est-skel { grid-template-columns: minmax(0, 1fr); grid-template-rows: 200px 160px 76px; }
  .vz-est-skel .is-d { grid-column: 1; grid-row: 2; }
  .vz-est-skel .is-b { grid-row: 3; }
  .vz-est-skel .is-c { display: none; }
  .vz-side { padding: 0 2px; }
  /* на телефоне кнопка — плавающая панель у нижнего края экрана */
  .vz-go {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    margin: 4px -6px 0; padding: 12px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 34px rgba(16, 17, 17, .16), 0 2px 6px rgba(16, 17, 17, .06);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .vz-go .vz-sum { display: none; }
  .vz-go .vz-btn { min-height: 52px; }
  .vz-go .vz-hint { margin-top: -2px; }
}
@media (max-width: 680px) {
  .vz-side { gap: 14px; }
  .vz-steps { flex-wrap: nowrap; gap: 4px; padding: 0 2px; }
  .vz-steps li { gap: 6px; font-size: 12.5px; }
  .vz-steps li + li::before { width: 14px; }
  .vz-steps b { width: 24px; height: 24px; }
  /* четыре шага по-грузински в строку на 360–390 px не помещаются: подпись — у текущего шага
     и следующего, у остальных номер или галочка (подписи остаются для экранных чтецов) */
  .vz-steps li:not(.is-now):not(.is-now + li) span {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .vz-steps:not(:has(.is-now)) li:last-child span { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .vz-actions .vz-btn { font-size: 14px; text-wrap: balance; }
  .vz-calc > span[aria-hidden] { display: none; }
  .vz-entry { gap: 12px; }
  .vz .vz-up-title { font-size: 22px; }
  .vz-kind { grid-template-columns: 22px minmax(0, 1fr); gap: 9px; min-height: 58px; padding: 10px 12px; }
  .vz-kind-ico, .vz-kind-ico svg { width: 22px; height: 22px; }
  .vz-kind-text b { font-size: 13.5px; }
  .vz-kind-text small { display: none; }
  .vz-k-l { display: none; }
  .vz-k-s { display: inline; }
  .vz .vz-upload { min-height: 52px; font-size: 15px; }
  .vz-esum-v { font-size: 24px; }
  .vz-est-head { padding: 0 2px; margin-bottom: 12px; }
  .vz-est-title { font-size: 24px; }
  .vz-est-open { min-height: 44px; }
  .vz-demo .vz-tag.is-before { bottom: 12px; left: 12px; }
  .vz-demo .vz-tag.is-after { bottom: 12px; right: 12px; }
  .vz-demo .vz-tag.is-demo { top: 12px; left: 12px; }
  .vz-entry-over { font-size: 20px; }
  /* телефон: «პოპულარული» и фактуры — лентой вбок до краёв блока, без прокрутки страницы вбок */
  .vz-pick-body { gap: 20px; }
  .vz-pop-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(138px, 42%);
    margin: 0 -16px; padding: 0 16px 2px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .vz-pop-row::-webkit-scrollbar { display: none; }
  .vz-pop-row .vz-tile { scroll-snap-align: start; }
  .vz-fchips { flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .vz-fchip { min-height: 42px; }
  .vz-q { height: 50px; }
  .vz-q-input { font-size: 16px; } /* 16 px — iPhone не увеличивает страницу при вводе */
  .vz-drop { gap: 8px; padding: 62px 18px 28px; }
  .vz-drop-ico { width: 60px; height: 60px; }
  .vz-drop-ico::after { inset: 17px; }
  .vz-drop-title { font-size: 20px; }
  .vz-drop-text { font-size: 13.5px; }
  .vz-drop-hint { font-size: 11.5px; }
  .vz .vz-title { font-size: 20px; }
  .vz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .vz-tile { padding: 5px 5px 8px; }
  .vz-tile-name { font-size: 12px; }
  .vz-stock { font-size: 10px; }
  .vz-price { font-size: 11.5px; }
  .vz-price small { font-size: 10.5px; }
  .vz-tag { top: 12px; left: 12px; }
  .vz-switch { top: 10px; left: 10px; }
  .vz-switch-opt { height: 30px; padding: 0 12px; font-size: 12px; }
  .vz-change { top: 10px; right: 10px; height: 38px; padding: 0 13px; }
  .vz-suggest { left: 10px; right: 10px; top: 56px; padding: 10px 10px 10px 12px; font-size: 12.5px; }
  .vz-suggest-btns { margin-left: 0; }
  .vz-chip { left: 12px; bottom: 12px; }
  .vz-compare .vz-tag { bottom: 12px; left: 12px; }
  .vz-compare .vz-tag.is-after { right: 12px; }
  .vz-tools { top: 10px; right: 10px; left: 10px; }
  .vz-tool { height: 36px; padding: 0 12px; font-size: 12px; }
  .vz-tool.vz-full { width: 36px; }
  .vz-work-badge { left: 12px; right: 12px; bottom: 12px; max-width: none; transform: none; padding: 10px 14px; border-radius: var(--r-sm); font-size: 12.5px; white-space: normal; }
  .vz-sum { grid-template-columns: 52px minmax(0, 1fr); row-gap: 2px; padding: 10px 0; }
  .vz-sum .vz-sw { grid-row: span 2; }
  .vz-plink { grid-column: 2; }   /* старая разметка (ссылка без обёртки) — пока кэш отдаёт прежний скрипт */
  /* ссылка на товар и «შეცვლა» — строкой под названием */
  .vz-sum-links { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; }
  .vz-role { white-space: normal; }
  .vz-acc-row { gap: 6px; }
  .vz-tile.is-acc { padding: 5px 5px 8px; }
  .vz-tile.is-acc .vz-tile-name { font-size: 11.5px; }
  .vz-tile.is-acc[aria-pressed="true"]::after { top: 8px; right: 8px; width: 22px; height: 22px; background-size: 11px; }
  .vz-rec { top: 5px; left: 5px; width: 20px; height: 20px; background-size: 12px; }
  .vz-acc-none { min-height: 56px; }
  .vz .vz-acc-tip { font-size: 13px; }
  /* пальцем: «← მთავარი დეკორი», «← назад» и ссылки итога («პროდუქტის გვერდი ↗», «შეცვლა») — не ниже 36–44 px */
  .vz-back { min-height: 44px; }
  /* gap: во flex пробел перед «↗» обрезается — без него стрелка липнет к слову («გვერდი↗») */
  .vz-sum-links a, .vz-sum-links button { display: inline-flex; align-items: center; gap: .25em; min-height: 36px; }
  .vz.is-embedded { gap: 14px; padding: 16px 14px 20px; }
  .vz.is-embedded .vz-pop-row, .vz.is-embedded .vz-fchips { margin: 0 -14px; padding-left: 14px; padding-right: 14px; scroll-padding: 0 14px; }
  .vz .vz-emb-title { font-size: 20px; }
}
/* телефоны до 440 px (360, 390, 412, 430): четыре плитки акцента по ~72–86 px не вмещали «Anthracite Grey»
   и «39.50 €-დან» — две колонны, образец пониже, чтобы ряд не вырос вдвое */
@media (max-width: 440px) {
  .vz-acc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vz-tile.is-acc .vz-sw { aspect-ratio: 2 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .vz-scan { display: none; }
  .vz-work-badge .vz-spark, .vz-grid.is-flash, .vz-pick.is-flash, .vz-drop.is-nudge, .vz-drop.is-nudge .vz-drop-ico,
  .vz-skel-dots i, .vz-skel-line, .vz-skel-card, .vz-skel-demo, .vz-skel-btn, .vz-demo.is-play { animation: none; }
}

/* ==========================================================
   2026-11-18 (2). Лука: «фиксация левой стороны должна быть — фото всё время слева, а правая сторона
   листается; странно было, что фото уезжало к низу карточки и потом листалась вся карточка».
   На компьютере блок — рабочее место высотой в окно: фото (и под ним кнопки на шаге «готово») стоят на
   месте, правая колонка листается сама; страница листается дальше, когда правая колонка кончилась.
   Телефон — как раньше, одной лентой.
   ========================================================== */
@media (min-width: 901px) {
  .vz:not(.is-embedded):not([data-step="start"]):not([data-step="off"]) {
    --vzh: min(calc(100vh - 104px), 920px);
    height: var(--vzh);
    min-height: 560px;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }
  .vz:not(.is-embedded)[data-step="done"] { grid-template-rows: auto auto minmax(0, 1fr); }
  .vz:not(.is-embedded):not([data-step="start"]):not([data-step="off"]) .vz-side {
    align-self: stretch;
    min-height: 0;
    overflow-y: auto;
    margin-right: -12px; padding-right: 14px;
    scrollbar-width: thin; scrollbar-color: #d0d0d0 transparent;
  }
  .vz:not(.is-embedded):not([data-step="start"]):not([data-step="off"]) .vz-side::-webkit-scrollbar { width: 8px; }
  .vz:not(.is-embedded):not([data-step="start"]):not([data-step="off"]) .vz-side::-webkit-scrollbar-thumb { border-radius: 8px; background: #d0d0d0; }
  /* кадр не выше рабочего места; на шаге «готово» под ним ещё кнопки */
  .vz:not(.is-embedded) .vz-photo,
  .vz:not(.is-embedded) .vz-compare { width: min(100%, calc((var(--vzh, 100vh) - 132px) * var(--ar, 1.3333))); }
  .vz:not(.is-embedded)[data-step="done"] .vz-compare { width: min(100%, calc((var(--vzh, 100vh) - 300px) * var(--ar, 1.3333))); }
  .vz:not(.is-embedded) .vz-stage.is-drop,
  .vz:not(.is-embedded) .vz-stage.is-off { height: 100%; }
}

/* ——— «сгенерировать заново» по смете: внизу сметы (viz-block.js regenHtml) ——— */
.vz-regen {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 24px;
  margin-top: 20px; padding: 20px 22px;
  border-radius: var(--r); background: #fff;
  transition: box-shadow .2s var(--ease);
}
.vz-regen[hidden] { display: none; }
.vz-regen.is-changed { box-shadow: inset 0 0 0 2px var(--yellow); }
.vz-regen-t { display: grid; gap: 4px; flex: 1 1 320px; min-width: 0; }
.vz-regen-t b { color: var(--ink); font-family: var(--display); font-size: 17px; line-height: 1.3; }
.vz-regen-t small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.vz-regen-t .vz-regen-left { color: var(--gold-ink); font-weight: 700; }
.vz-regen-go { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 240px; }
.vz-regen-go:disabled { opacity: .55; cursor: default; }
.vz-regen-ico { font-size: 18px; line-height: 1; }
/* новая смета грузится — прежняя видна приглушённой, без вспышки */
.vz-est.is-reloading .vz-est-body { opacity: .55; pointer-events: none; transition: opacity .2s var(--ease); }
@media (max-width: 680px) {
  .vz-regen { padding: 18px 16px; }
  .vz-regen-go { width: 100%; min-width: 0; }
}
