/* ==========================================================================
   KIYIZGROUP — KIYIZ AI Designer (/designer), ADR-332.
   Токены и общие компоненты — из /site/base.css. Здесь только раздел.
   ========================================================================== */

.dz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dz-lbl { margin: 0; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.dz-small { margin: 8px 0 0; font-size: 0.78rem; line-height: 1.55; color: var(--ink-mute); }
.dz-h3 { margin: 26px 0 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.dz-h3:first-child { margin-top: 0; }
mark { background: #fff1c9; color: inherit; padding: 0 3px; border-radius: 3px; }

/* ---- Первый экран: тот же кадр, что у полосы «В МИР» на главной ---- */
.dz-hero {
  position: relative;
  overflow: hidden;
  min-height: min(100svh, 860px);
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 72px;
  background: var(--dark);
  color: #fff;
}
.dz-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(118% 78% at 50% 50%, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 58%, rgba(0, 0, 0, 0.34) 100%),
    url('/home/assets/constructor-poster.jpg') center / cover no-repeat;
}
.dz-hero__in { position: relative; z-index: 2; text-align: center; }
.dz-hero .eyebrow { justify-content: center; color: rgba(255, 255, 255, 0.8); }
.dz-crumbs { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); }
.dz-crumbs a { color: inherit; }
.dz-hero__title { margin: 10px auto 0; max-width: 22ch; font-size: clamp(1.8rem, 4.4vw, 3.3rem); font-weight: 700; line-height: 1.12; text-wrap: balance; }
.dz-hero__lead { margin: 20px auto 0; max-width: 62ch; color: rgba(255, 255, 255, 0.88); }
.dz-note {
  position: absolute; z-index: 3; bottom: 14px; left: 14px;
  padding: 5px 11px; border-radius: 30px; background: rgba(0, 0, 0, 0.5);
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85);
}
[dir='rtl'] .dz-note { left: auto; right: 14px; }

.dz-ask {
  margin: 34px auto 0; max-width: 780px; text-align: start;
  background: rgba(255, 255, 255, 0.97); color: var(--ink);
  border-radius: 22px; padding: 16px 16px 12px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.dz-ask textarea {
  width: 100%; border: 0; outline: 0; resize: vertical; min-height: 78px;
  font: inherit; font-size: 1rem; line-height: 1.55; color: var(--ink); background: transparent;
}
.dz-ask__row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.dz-ask__count { margin-inline-end: auto; font-size: 0.72rem; color: var(--ink-mute); }
.dz-mic {
  order: -1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; background: #fff; cursor: pointer;
}
.dz-mic svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.dz-mic.is-on { background: #c8102e; border-color: #c8102e; animation: dz-pulse 1.2s infinite; }
.dz-mic.is-on svg { stroke: #fff; }
@keyframes dz-pulse { 50% { box-shadow: 0 0 0 8px rgba(200, 16, 46, 0.18); } }
.dz-go {
  height: 46px; padding: 0 24px; border: 0; border-radius: 40px; cursor: pointer;
  background: #c8102e; color: #fff; font: 600 0.95rem var(--mont);
  display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s;
}
.dz-go:hover { background: #a50d26; }
.dz-go[disabled] { opacity: 0.6; cursor: progress; }
.dz-ask__err { margin: 10px 0 0; font-size: 0.85rem; color: #b4523f; }
.dz-chips, .dz-rooms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.dz-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1);
  color: #fff; font: 500 0.8rem var(--mont); cursor: pointer; text-decoration: none;
}
.dz-chip:hover { background: rgba(255, 255, 255, 0.2); }
.dz-hint { margin: 14px auto 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); }

/* ---- Ожидание ---- */
.dz-wait__steps { list-style: none; margin: 0 auto; padding: 0; max-width: 520px; display: grid; gap: 12px; }
.dz-wait__steps li { display: flex; align-items: center; gap: 12px; color: var(--ink-mute); font-size: 1rem; }
.dz-wait__steps li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; }
.dz-wait__steps li.is-now { color: var(--ink); font-weight: 600; }
.dz-wait__steps li.is-now::before { border-color: #c8102e; background: #c8102e; animation: dz-pulse 1.2s infinite; }
.dz-wait__steps li.is-done { color: var(--ink-soft); }
.dz-wait__steps li.is-done::before { border-color: var(--ink); background: var(--ink); }

/* ---- Результат ---- */
.dz-heard { background: var(--bg-sand); border-radius: 16px; padding: 16px 20px; }
.dz-heard__text { margin: 6px 0 0; font-size: 1rem; line-height: 1.75; }
.dz-res__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 34px; }
.dz-res__title { margin: 0; }
.dz-vars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.dz-var {
  display: flex; flex-direction: column; gap: 6px; padding: 12px; text-align: start; cursor: pointer;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; font: inherit; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dz-var:hover { border-color: var(--ink-mute); }
.dz-var.is-on { border: 2px solid var(--ink); padding: 11px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.dz-var__pv { display: grid; place-items: center; height: 280px; border-radius: 10px; background: #efebe6; }
.dz-var__pv svg { height: 250px; max-width: 90%; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18)); }
.dz-var__t { margin-top: 6px; font-size: 1rem; font-weight: 600; }
.dz-var__s { font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }
.dz-var__m { display: flex; flex-wrap: wrap; gap: 6px; }
.dz-mini { padding: 3px 9px; border-radius: 30px; background: var(--bg-sand); font-size: 0.74rem; font-weight: 500; }
.dz-var__f { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 0.8rem; color: var(--ink-soft); }

.dz-stage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; margin-top: 30px; align-items: start; }
.dz-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 40px; background: #f1eee9; }
.dz-tab { padding: 8px 16px; border: 0; border-radius: 40px; background: transparent; font: 600 0.82rem var(--mont); color: #6f6a64; cursor: pointer; }
.dz-tab[aria-selected='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.dz-view { margin-top: 14px; }
.dz-room { position: relative; border-radius: 18px; overflow: hidden; background: #ece7df; }
.dz-room img { display: block; width: 100%; height: auto; }
.dz-room__panel { position: absolute; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.32)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2)); }
.dz-flat { display: block; margin: 0 auto; max-height: 620px; max-width: 100%; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.2)); }
.dz-view--flat { background: #efebe6; border-radius: 18px; padding: 28px; }
.dz-rooms { justify-content: flex-start; }
.dz-rooms .dz-chip, .dz-culture .dz-chip { border-color: var(--line); background: #fff; color: var(--ink); }
.dz-rooms .dz-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dz-wall { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: center; background: var(--bg-sand); border-radius: 18px; padding: 22px; }
.dz-wall__pv svg { width: 100%; height: auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18)); }
.dz-wall__txt p:first-child { margin-top: 0; }
.dz-wall__row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.dz-side { position: sticky; top: calc(var(--nav-h) + 16px); padding: 20px; border-radius: 16px; background: var(--bg-sand); }
.dz-side__title { margin: 6px 0 0; font-size: 1.35rem; font-weight: 600; }
.dz-side__sum { margin: 8px 0 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
.dz-spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.dz-spec dt { color: var(--ink-mute); }
.dz-spec dd { margin: 0; font-weight: 600; }
.dz-actions { display: grid; gap: 10px; margin-top: 18px; }
.dz-actions .btn { justify-content: center; }
.dz-actions__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dz-order-btn { background: #c8102e; border-color: #c8102e; }
.dz-order-btn:hover { background: #a50d26; border-color: #a50d26; }
.dz-more { border: 0; background: none; font: 600 0.85rem var(--mont); color: var(--ink-soft); cursor: pointer; padding: 6px; }
.dz-more:hover { color: var(--ink); }

/* ---- Почему так ---- */
.dz-why__lead { max-width: 75ch; }
.dz-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dz-steps li { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 0.8rem; line-height: 1.5; color: var(--ink-soft); }
.dz-steps b { color: var(--ink); font-size: 0.86rem; }
.dz-steps__n { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; color: #c8102e; }
.dz-why__loading { margin-top: 22px; padding: 12px 16px; border-radius: 12px; background: #fff; font-size: 0.9rem; color: var(--ink-soft); }
.dz-why__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; margin-top: 28px; }
.dz-map { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.dz-map__ic { position: relative; width: 64px; height: 64px; border-radius: 12px; background: #1d2b4f; display: grid; place-items: center; }
.dz-map__ic svg { width: 46px; height: 46px; }
.dz-pin { position: absolute; top: -7px; left: -7px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: #c8102e; color: #fff; display: grid; place-items: center; font-size: 0.68rem; font-weight: 700; }
.dz-map p { margin: 0; }
.dz-map__q { font-size: 0.82rem; color: var(--ink-mute); }
.dz-map__t { margin-top: 4px !important; font-size: 1rem; font-weight: 600; }
.dz-map__d { margin-top: 4px !important; font-size: 0.88rem; line-height: 1.55; }
.dz-map__w { margin-top: 6px !important; padding-inline-start: 12px; border-inline-start: 3px solid #c8102e; font-size: 0.88rem; line-height: 1.55; }
.dz-map__s { margin-top: 8px !important; font-size: 0.74rem; color: var(--ink-mute); }
.dz-map__a { display: inline-block; margin-top: 4px; font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.dz-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 0.88rem; line-height: 1.55; }
.dz-card__p { margin: 10px 0 0; }
.dz-card__p:first-child { margin-top: 0; }
.dz-sw { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; margin-bottom: 10px; }
.dz-sw i { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.1); }
.dz-sw p { margin: 2px 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.dz-no { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.dz-no:last-child { margin-bottom: 0; }
.dz-no__ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px; background: var(--bg-sand); display: grid; place-items: center; }
.dz-no__ic svg { width: 26px; height: 26px; }
.dz-no p { margin: 0; }
.dz-wish { margin: 0; font-size: 1.25rem; font-style: italic; font-weight: 500; }
.dz-culture { display: flex; flex-wrap: wrap; gap: 8px; }

.dz-trust__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dz-trust__item b { display: block; font-size: 1rem; }
.dz-trust__item p { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); }

/* ---- Окна ---- */
.dz-dlg { border: 0; border-radius: 18px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.dz-dlg::backdrop { background: rgba(0, 0, 0, 0.45); }
.dz-dlg__in { position: relative; display: grid; gap: 12px; padding: 26px 24px 22px; }
.dz-dlg__t { margin: 0; padding-inline-end: 30px; font-size: 1.2rem; font-weight: 600; }
.dz-dlg__x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: var(--ink-mute); }
[dir='rtl'] .dz-dlg__x { right: auto; left: 12px; }
.dz-field { display: grid; gap: 5px; font-size: 0.8rem; color: var(--ink-soft); }
.dz-field input, .dz-field textarea { font: inherit; font-size: 0.95rem; padding: 10px 12px; border: 1px solid var(--line-2, rgba(17, 17, 17, 0.26)); border-radius: 10px; color: var(--ink); background: #fff; }
.dz-dlg form { display: grid; gap: 12px; }

/* ---- Узкие экраны ---- */
@media (max-width: 1080px) {
  .dz-stage { grid-template-columns: 1fr; }
  .dz-side { position: static; }
  .dz-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dz-why__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dz-vars { grid-template-columns: 1fr; }
  .dz-var__pv { height: 230px; }
  .dz-var__pv svg { height: 205px; }
  .dz-trust__grid { grid-template-columns: 1fr; }
  .dz-wall { grid-template-columns: 1fr; }
  .dz-wall__pv { max-width: 180px; }
  .dz-ask { padding: 14px; }
  .dz-go { padding: 0 18px; }
  .dz-ask__count { display: none; }
  .dz-actions__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dz-mic.is-on, .dz-wait__steps li.is-now::before { animation: none; }
}

/* ---- Изделия каталога с принтом ---- */
.dz-res__link { text-decoration: none; }
.dz-res__lead { margin-top: 6px; max-width: 70ch; }
.dz-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.dz-prod { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.dz-prod__pv { display: grid; place-items: center; height: 270px; padding: 18px; background: linear-gradient(180deg, #f3efe9, #e9e3da); }
.dz-prod__pv svg, .dz-prod__pv img { max-width: 100%; max-height: 100%; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.22)); }
.dz-prod__b { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.dz-prod__t { margin: 0; font-size: 1rem; font-weight: 600; }
.dz-prod__p { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.dz-prod__m { margin: 0; }
.dz-prod__w { margin: 0; font-size: 0.84rem; line-height: 1.5; color: var(--ink-soft); }
.dz-prod__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; padding-top: 8px; }
.dz-prod__row .btn { justify-content: center; }
.dz-pending { color: #8a6b1f; font-size: 0.78rem; }

/* ---- Арт-объект ИИ ---- */
.dz-art { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 22px; padding: 20px 22px; border-radius: 16px; background: #1d2b4f; color: #fff; }
.dz-art .dz-lbl { color: rgba(255, 255, 255, 0.7); }
.dz-art .dz-small { color: rgba(255, 255, 255, 0.78); }
.dz-art__t { margin: 6px 0 0; font-size: 1.15rem; font-weight: 600; }
.dz-art__row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.dz-art__subj { flex: 1 1 260px; min-width: 0; padding: 10px 14px; border: 0; border-radius: 40px; font: inherit; font-size: 0.9rem; color: var(--ink); background: #fff; }
.dz-art .btn--solid { background: #c8102e; border-color: #c8102e; color: #fff; }
.dz-art__pv { display: grid; gap: 8px; width: 240px; }
.dz-art__pv svg { width: 100%; height: auto; border-radius: 12px; }
.dz-art__pv .btn { justify-content: center; }
.dz-art__pv .btn--line { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.dz-art .dz-ask__err { color: #ffd3c9; }
@media (max-width: 1080px) {
  .dz-prods { grid-template-columns: 1fr 1fr; }
  .dz-art { grid-template-columns: 1fr; }
  .dz-art__pv { width: min(260px, 100%); }
}
@media (max-width: 760px) {
  .dz-prods { grid-template-columns: 1fr; }
}
