/* 3D-квиз — вёрстка 1:1 с образцом (токены/структура), бренд ZL */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,600&family=JetBrains+Mono:wght@500&family=Manrope:wght@500;600;700&display=swap');

html, body.sq-body {
  height: 100%;
  margin: 0;
  background: #e9e6e1;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

:root {
  --ink: #1d2126;
  --ink-2: #353b42;
  --plaster: #f5f2ed;
  --line: #e3dcd1;
  --oak: #7b6a58;
  --copper: #c4602a;
  --copper-2: #ad521f;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --card-w: min(440px, 40vw);
  --gap: 20px;
}

.st { position: fixed; inset: 0; overflow: hidden; }
.st-stage { position: absolute; inset: 0; background: #e9e6e1; }
.st-stage canvas { touch-action: none; width: 100% !important; height: 100% !important; display: block; }

.st-top {
  pointer-events: none;
  align-items: center;
  gap: 10px;
  display: flex;
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 5;
  max-width: calc(100% - 150px);
}
.st-badge {
  background: var(--ink);
  width: 30px; height: 30px;
  color: var(--plaster);
  font: 700 11.5px/1 var(--sans);
  letter-spacing: .02em;
  border-radius: 8px;
  place-items: center;
  display: grid;
}
.st-name { letter-spacing: -.01em; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.st-tag {
  height: 20px;
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--oak);
  border: 1px solid #7b6a5866;
  border-radius: 999px;
  align-items: center;
  padding: 0 7px;
  display: inline-flex;
}

.st-pill {
  font: 500 12.5px/1 var(--mono);
  letter-spacing: .01em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #f5f2ede0;
  border: 0;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  display: inline-flex;
  position: absolute;
  box-shadow: 0 6px 20px -10px #1d212673;
  color: var(--ink);
  z-index: 4;
}
.st-pill .st-ico { width: 15px; height: 15px; display: inline-flex; }
.st-pill .st-ico svg { width: 15px; height: 15px; }

.st-spec {
  max-width: calc(100% - var(--card-w) - 3 * var(--gap) - 230px);
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  bottom: 24px;
  left: 24px;
  overflow: hidden;
  z-index: 4;
}
.st-hint {
  right: calc(var(--card-w) + 2 * var(--gap) + 144px);
  color: var(--oak);
  pointer-events: none;
  bottom: 24px;
}
.st-hint .sm { display: none; }
.st-mirror { bottom: 24px; left: calc(24px + 200px); cursor: pointer; }
.st-mirror.hide, .st.intro .st-hint, .st.intro .st-mirror { opacity: 0; pointer-events: none; }

.st-price {
  top: 18px;
  right: calc(var(--card-w) + 2 * var(--gap) + 4px);
  background: var(--copper);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  border: 0;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  position: absolute;
  z-index: 5;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px #c4602ad9;
}
.st:not(.intro) .st-price { opacity: 1; pointer-events: auto; }
.st-price:hover { background: var(--copper-2); }

.st-reel {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  background: #f5f2ede0;
  border-radius: 18px;
  gap: 2px;
  min-width: 250px;
  padding: 14px 18px 13px;
  display: grid;
  position: absolute;
  bottom: 24px;
  left: 24px;
  box-shadow: 0 10px 30px -14px #1d212673;
  z-index: 4;
}
.st.intro .st-reel { opacity: 1; }
.st-reel .k {
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--oak);
}
.st-reel b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.st-reel .m { color: #5a5249; font-size: 13px; margin-top: 2px; }
.st-reel .dots { display: flex; gap: 4px; margin-top: 10px; }
.st-reel .dots i { width: 18px; height: 3px; border-radius: 99px; background: #d5cdc0; display: block; }
.st-reel .dots i.on { background: var(--ink); }

.st-card {
  top: var(--gap);
  right: var(--gap);
  bottom: var(--gap);
  width: var(--card-w);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  background: #f5f2ede0;
  border: 1px solid #ffffffbf;
  border-radius: 28px;
  flex-direction: column;
  display: flex;
  position: absolute;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px #1d21268c;
  z-index: 6;
}
.st-inner {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 26px 28px 18px;
  display: flex;
  overflow-y: auto;
}
.st.intro .st-inner { justify-content: center; padding: 30px 30px 26px; }

.st-eyebrow {
  font: 500 11px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--oak);
  margin: 0;
}
.st-h1 {
  font: 600 clamp(46px, 4.6vw, 64px)/.94 var(--display);
  letter-spacing: -.012em;
  margin: 14px 0 16px;
  color: var(--ink);
}
.st-h1 em { color: var(--oak); font-style: italic; }
.st-h2 {
  font: 600 clamp(32px, 2.7vw, 40px)/1 var(--display);
  letter-spacing: -.01em;
  margin: 22px 0 8px;
  color: var(--ink);
}
.st-lead { color: #5a5249; margin: 0 0 22px; font-size: 15.5px; line-height: 1.45; }

.st-gets {
  border: 1.5px solid var(--line);
  background: #ffffffa3;
  border-radius: 18px;
  margin: 0 0 22px;
  padding: 16px 18px 14px;
}
.st-gets ul { gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; display: grid; }
.st-gets li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.st-gets .ck {
  width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: #fff;
  display: inline-grid; place-items: center; flex-shrink: 0;
}
.st-gets .ck svg { width: 12px; height: 12px; }

.st-cta { flex-direction: column; margin-bottom: 26px; display: flex; }
.st-note {
  font: 500 11.5px/1.3 var(--mono);
  color: var(--oak);
  letter-spacing: .02em;
  margin: 12px 0 0;
}

.st-pros {
  border-top: 1px solid #1d21261a;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
  padding-top: 22px;
  display: grid;
}
.st-pro { grid-template-columns: 34px 1fr; align-items: start; column-gap: 10px; display: grid; }
.st-pro .st-ico { width: 28px; height: 28px; color: var(--oak); }
.st-pro .st-ico svg { width: 28px; height: 28px; }
.st-pro b { font-size: 13px; display: block; margin-bottom: 2px; }
.st-pro span { font-size: 12px; color: #5a5249; line-height: 1.3; }

.st-btn {
  border: 1.5px solid var(--ink);
  height: 52px;
  color: var(--ink);
  white-space: nowrap;
  background: transparent;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--sans);
  transition: transform .12s, background .15s, opacity .15s;
  display: inline-flex;
  cursor: pointer;
}
.st-btn:disabled { opacity: .35; cursor: not-allowed; }
.st-btn.accent.big, .st-btn.accent {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
  box-shadow: 0 14px 28px -16px #c4602acc;
}
.st-btn.accent:hover { background: var(--copper-2); }
.st-btn.primary { background: var(--ink); color: var(--plaster); border-color: var(--ink); flex: 1; }
.st-btn.ghost { color: var(--oak); border-color: transparent; padding: 0 12px; }
.st-btn.ghost:hover { color: var(--ink); }

.st-head { justify-content: space-between; align-items: center; gap: 12px; display: flex; }
.st-count {
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--oak);
}
.st-bar { gap: 4px; display: flex; flex: 1; max-width: 160px; }
.st-bar i { flex: 1; height: 3px; border-radius: 99px; background: #ddd5c8; display: block; }
.st-bar i.now, .st-bar i.on { background: var(--ink); }

.st-grid { grid-template-columns: 1fr 1fr; gap: 10px; display: grid; }
.st-grid.four { margin-bottom: 10px; }
.st-tile {
  text-align: left;
  border: 1.5px solid var(--line);
  background: #ffffffb3;
  border-radius: 18px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 132px;
  padding: 16px 16px 15px;
  transition: border-color .15s, background .15s, transform .15s;
  display: flex;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--ink);
}
.st-tile:hover { border-color: #cbbfae; transform: translateY(-1px); }
.st-tile.on, .st-tile[aria-pressed="true"] {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 24px -18px #1d2126aa;
}
.st-tile .st-ico { width: 36px; height: 36px; color: var(--oak); margin-bottom: 4px; }
.st-tile .st-ico svg { width: 36px; height: 36px; }
.st-tile .t { font-size: 15px; font-weight: 700; }
.st-tile .s { font-size: 12.5px; color: #5a5249; line-height: 1.3; }

.st-row {
  text-align: left;
  border: 1.5px solid var(--line);
  background: #ffffffb3;
  border-radius: 16px;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  display: flex;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--ink);
}
.st-row.soft .t { font-weight: 700; font-size: 14.5px; }
.st-row.soft .m { color: var(--oak); font-size: 13px; border-bottom: 1px dotted #7b6a5880; }
.st-row.on, .st-row[aria-pressed="true"] { border-color: var(--ink); background: #fff; }

.st-swatches { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.st-swatch {
  color: #5a5249;
  background: transparent;
  border: 0;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: 13px;
  display: flex;
  cursor: pointer;
  font-family: var(--sans);
}
.st-swatch i {
  width: 44px; height: 44px; border-radius: 999px;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px #00000014;
  display: block;
}
.st-swatch.on { color: var(--ink); font-weight: 700; }
.st-swatch.on i { border-color: var(--ink); }

.st-list { display: flex; flex-direction: column; gap: 8px; }
.st-fine {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 14px 16px; border-radius: 16px;
  border: 1.5px solid var(--line); background: #ffffffb3; font-size: 14px;
}
.st-fine input {
  width: 88px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 8px 10px; font: 600 14px var(--sans); background: #fff; color: var(--ink);
}

.st-nav {
  border-top: 1px solid #1d21261a;
  flex-wrap: wrap;
  flex: none;
  gap: 10px;
  padding: 14px 28px 20px;
  display: flex;
  align-items: center;
}
.st-left {
  text-align: center;
  font: 500 11px/1.2 var(--mono);
  letter-spacing: .04em;
  color: var(--oak);
  flex-basis: 100%;
  margin: 2px 0 0;
}

.st-form { display: flex; flex-direction: column; gap: 10px; }
.st-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--oak); font-weight: 600; }
.st-form input, .st-form textarea {
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px;
  font: 500 15px var(--sans); background: #fff; color: var(--ink);
}
.st-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: var(--sans);
}
.st-chip.on { background: var(--ink); color: var(--plaster); border-color: var(--ink); }
.st-legal { font-size: 11.5px; color: #5a5249; line-height: 1.4; margin: 4px 0 0; }
.st-legal a { color: var(--oak); }
.st-summary {
  display: inline-flex; padding: 10px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 700; margin-bottom: 10px;
}
.st-next-list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.st-next-list li {
  padding: 12px 14px; border-radius: 14px; background: #ffffffb3; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 600;
}

.st-pins { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.st-pin { position: absolute; opacity: 0; }
.st-pins.show .st-pin { opacity: 1; }
.st-pin i {
  width: 10px; height: 10px; border-radius: 999px; background: var(--copper);
  box-shadow: 0 0 0 4px #c4602a33; display: block;
}
.st-pin .tag {
  position: absolute; left: 16px; top: -10px;
  background: #fffc; border-radius: 12px; padding: 8px 12px;
  box-shadow: 0 8px 20px -12px #1d212680; white-space: nowrap;
}
.st-pin .tag b { display: block; font: 500 10px/1 var(--mono); color: var(--oak); text-transform: uppercase; letter-spacing: .08em; }
.st-pin .tag span, .st-pin .tag { font-size: 13px; font-weight: 700; color: var(--ink); }

@media (max-width: 900px) {
  :root { --card-w: 100%; --gap: 0; }
  .st-card {
    background: var(--plaster);
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 24px 24px 0 0;
    width: auto;
    max-height: calc(100% - 42vh);
    inset: auto 0 0;
    box-shadow: 0 -18px 40px -24px #1d212673;
  }
  .st-stage { bottom: 42%; }
  .st-price { top: 12px; right: 12px; }
  .st-top { top: 12px; left: 12px; }
  .st-spec, .st-reel { bottom: calc(42% + 12px); left: 12px; }
  .st-hint { display: none; }
  .st-pros { grid-template-columns: 1fr 1fr; }
  .st-h1 { font-size: 40px; }
  .st-tile { min-height: 110px; }
}
