/* A sample route, kept distinct from the visitor's generated plan. */
.igly-issue { display:flex; flex-direction:column; gap:22px; padding:clamp(20px,3vw,30px); border:1px solid var(--warm-text,#F2B26B); background:linear-gradient(135deg,rgba(242,178,107,.13),rgba(242,178,107,.035)); border-radius:22px; }
.igly-issue-mark { display:grid; place-items:center; width:40px; height:40px; border:1px solid var(--warm-text,#F2B26B); border-radius:50%; color:var(--warm-text,#F2B26B); font-size:22px; font-weight:500; }
.igly-issue-question { margin:0; color:var(--text,#E9F1F5); font-size:clamp(16px,1.7vw,20px); line-height:1.6; font-weight:500; text-wrap:pretty; overflow-wrap:anywhere; }
.igly-issue .igly-preview-cta { background:var(--bg,#070C12); }
#igly-result .igly-preview { display:flex; flex-direction:column; gap:20px; }
.igly-preview-scene { display:grid; grid-template-columns:repeat(12,1fr); gap:7px; padding:26px 26px 14px; position:relative; max-width:360px; width:100%; box-sizing:border-box; margin:0 auto; }
.igly-preview-scene::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 50% 70%,rgba(242,178,107,.17),transparent 70%); pointer-events:none; }
.igly-preview-scene span { height:30px; border:1px solid var(--line2,#344653); border-radius:7px; background:var(--surface,#0D151E); position:relative; }
.igly-preview-scene span:first-child { grid-column:5/9; border-radius:55px 55px 7px 7px; height:36px; }
.igly-preview-scene span:nth-child(2) { grid-column:3/7; }
.igly-preview-scene span:nth-child(3) { grid-column:7/11; }
.igly-preview-scene span:nth-child(4) { grid-column:2/6; }
.igly-preview-scene span:nth-child(5) { grid-column:6/9; }
.igly-preview-scene span:nth-child(6) { grid-column:9/12; }
.igly-preview-scene span:nth-child(n+7) { grid-column:span 3; }
.igly-preview-scene span:nth-child(3n) { background:#F2B26B; border-color:#F2B26B; box-shadow:0 5px 24px rgba(242,178,107,.12); }
.igly-preview-note { margin:0; color:var(--muted,#8D9CA6); font-size:13px; line-height:1.5; text-align:center; }
.igly-preview-services { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; list-style:none; padding:0; margin:0; }
.igly-preview-services li { border:1px solid var(--line2,#344653); border-radius:30px; padding:7px 11px; font-size:13px; line-height:1.4; color:var(--text,#E9F1F5); }
.igly-preview-phases { margin:3px 0 0; padding:0; list-style:none; }
.igly-preview-phases li { position:relative; display:grid; grid-template-columns:35px minmax(0,1fr); gap:13px; padding:0 0 23px; }
.igly-preview-phases li:not(:last-child)::after { content:''; position:absolute; left:17px; top:36px; bottom:4px; width:1px; background:var(--line2,#344653); }
.igly-preview-number { border:1px solid var(--line2,#344653); width:34px; height:34px; display:grid; place-items:center; border-radius:50%; color:var(--warm-text,#F2B26B); font-size:12px; }
.igly-preview-phases h4 { margin:3px 0 5px; font-size:17px; font-weight:500; line-height:1.3; letter-spacing:-.02em; }
.igly-preview-phases p { margin:0; font-size:14px; line-height:1.6; color:var(--muted,#8D9CA6); }
.igly-preview-cta { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; border:1px solid var(--line2,#344653); background:var(--surface,#0D151E); color:var(--text,#E9F1F5); border-radius:16px; padding:15px 18px; min-height:52px; font:inherit; font-size:15px; text-align:left; cursor:pointer; transition:border-color .2s,background .2s; }
.igly-preview-cta:hover { border-color:#F2B26B; }
.igly-preview-cta:focus-visible { outline:2px solid #F2B26B; outline-offset:4px; }
.igly-preview-cta span { color:var(--warm-text,#F2B26B); font-size:22px; }
.igly-preview.is-visible .igly-preview-scene span { animation:igly-preview-build .75s both; }
.igly-preview.is-visible .igly-preview-scene span:nth-child(2n) { animation-delay:.15s; }
.igly-preview.is-visible .igly-preview-scene span:nth-child(3n) { animation-delay:.3s; }
.igly-preview.is-visible .igly-preview-phases li { animation:igly-preview-build .6s both; animation-delay:.35s; }
.igly-preview.is-visible .igly-preview-phases li:nth-child(2) { animation-delay:.55s; }
.igly-preview.is-visible .igly-preview-phases li:nth-child(3) { animation-delay:.75s; }
@keyframes igly-preview-build { from { opacity:.2; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.igly-wait { display:flex; flex:1; flex-direction:column; justify-content:center; gap:24px; min-width:0; }
.igly-wait-visual { position:relative; display:grid; place-items:center; min-height:240px; isolation:isolate; }
.igly-wait-visual::before { content:''; position:absolute; width:78%; height:80%; border-radius:50%; background:radial-gradient(ellipse,rgba(242,178,107,.16),transparent 68%); }
.igly-wait-orbit { position:absolute; inset:12% 4%; border:1px solid var(--line2,#344653); border-radius:50%; transform:rotate(-14deg); opacity:.5; }
.igly-wait-orbit::after { content:''; position:absolute; width:9px; height:9px; top:17%; left:12%; border-radius:50%; background:#F2B26B; box-shadow:0 0 22px rgba(242,178,107,.7); }
.igly-wait .igly-wait-scene { padding:22px 24px; max-width:340px; gap:6px; }
.igly-wait-scene span { overflow:hidden; background:var(--surface,#0D151E); border-color:var(--line2,#344653); box-shadow:none; }
.igly-wait-scene span::after { content:''; position:absolute; inset:0; background:linear-gradient(110deg,transparent 10%,rgba(242,178,107,.7) 50%,transparent 90%); transform:translateX(-150%); }
.igly-wait-door { position:absolute; bottom:17%; left:calc(50% - 16px); width:32px; height:36px; border-radius:20px 20px 4px 4px; background:#F2B26B; box-shadow:0 10px 30px rgba(242,178,107,.25); }
.igly-wait-copy { text-align:center; max-width:420px; margin:0 auto; }
.igly-wait-eyebrow { font-size:12px; letter-spacing:.04em; color:var(--warm-text,#F2B26B); }
.igly-wait-copy p { margin:10px 0 0; font-size:15px; line-height:1.65; color:var(--muted,#8D9CA6); text-wrap:pretty; }
.igly-wait-track { width:96px; height:3px; background:var(--line2,#344653); border-radius:3px; overflow:hidden; margin:0 auto; }
.igly-wait-track span { display:block; width:35%; height:100%; border-radius:inherit; background:#F2B26B; }
.igly-wait.is-in-view .igly-wait-scene span::after { animation:igly-wait-shimmer 3.8s ease-in-out infinite; }
.igly-wait.is-in-view .igly-wait-scene span:nth-child(2n)::after { animation-delay:.25s; }
.igly-wait.is-in-view .igly-wait-scene span:nth-child(3n)::after { animation-delay:.5s; }
.igly-wait.is-in-view .igly-wait-door { animation:igly-wait-glow 3.8s ease-in-out infinite; }
.igly-wait.is-in-view .igly-wait-track span { animation:igly-wait-scan 3s ease-in-out infinite alternate; }
.igly-wait[data-state="loading"].is-in-view .igly-wait-scene span { animation:igly-wait-assemble 3.2s ease-in-out infinite; }
.igly-wait[data-state="loading"].is-in-view .igly-wait-scene span:nth-child(2n) { animation-delay:.15s; }
.igly-wait[data-state="loading"].is-in-view .igly-wait-scene span:nth-child(3n) { animation-delay:.3s; }
.igly-wait[data-state="ready"] .igly-wait-track span { width:100%; animation:none; }
.igly-wait:not(.is-in-view) *, .igly-wait:not(.is-in-view) *::after { animation-play-state:paused!important; }
@keyframes igly-wait-shimmer { 0%,15% { transform:translateX(-150%); } 65%,100% { transform:translateX(150%); } }
@keyframes igly-wait-assemble { 0%,65%,100% { transform:translateY(0); } 25% { transform:translateY(-7px); } }
@keyframes igly-wait-glow { 0%,100% { opacity:.65; } 50% { opacity:1; } }
@keyframes igly-wait-scan { from { transform:translateX(0); } to { transform:translateX(185%); } }
@media(max-width:600px) { .igly-wait { gap:20px; } .igly-wait-visual { min-height:195px; } .igly-wait .igly-wait-scene { padding:16px; max-width:280px; } .igly-wait-copy p { font-size:14px; } }
@media(prefers-reduced-motion:reduce) { .igly-wait *, .igly-wait *::after { animation:none!important; transition:none!important; } .igly-wait-scene span:nth-child(3n) { background:rgba(242,178,107,.25); } }
@media(max-width:600px) { #igly-result .igly-preview { gap:16px; } .igly-preview-scene { max-width:270px; padding-top:10px; gap:5px; } .igly-preview-scene span { height:22px; } .igly-preview-scene span:first-child { height:27px; } .igly-preview-phases li { padding-bottom:19px; } }
@media(prefers-reduced-motion:reduce) { .igly-preview *, .igly-preview.is-visible .igly-preview-scene span, .igly-preview.is-visible .igly-preview-phases li { animation:none!important; transition:none!important; } }

/* Одноразовые анимации: после первого проигрывания не перезапускаются при re-render */
#igly-result[data-preview-played] .igly-preview .igly-preview-scene span,
#igly-result[data-preview-played] .igly-preview .igly-preview-phases li { animation:none!important; }
ol[data-phases] li { animation:igly-preview-build .55s both; }
ol[data-phases] li:nth-child(2) { animation-delay:.12s; }
ol[data-phases] li:nth-child(3) { animation-delay:.24s; }
#igly-result[data-plan-played] ol[data-phases] li { animation:none!important; }
.igly-block-detail { animation:igly-preview-build .45s both; }
#igly-result[data-plan-played] .igly-block-detail { animation:none!important; }
.igly-service-brick { transition:background .2s,border-color .2s,box-shadow .2s,transform .15s; }
.igly-service-brick:hover { transform:translateY(-2px); }
@media(prefers-reduced-motion:reduce) { ol[data-phases] li,.igly-block-detail { animation:none!important; } .igly-service-brick:hover { transform:none; } }

/* Стабильная высота панели деталей: hover по кирпичам не дёргает макет */
.igly-block-detail { min-height:500px; }
@media(max-width:600px) { .igly-block-detail { min-height:640px; } }

/* Frosted blocks echo the hero without adding another WebGL context. */
.igly-preview-scene span,.igly-wait-scene span,.igly-service-brick {
  background:linear-gradient(135deg,rgba(211,245,255,.19),rgba(122,180,202,.08) 48%,rgba(220,248,255,.2));
  border-color:rgba(165,218,236,.38);
  box-shadow:inset 1px 1px 0 rgba(238,253,255,.24),inset -2px -3px 8px rgba(3,22,38,.18),0 5px 12px rgba(0,8,16,.08);
}
.igly-preview-scene span:nth-child(3n),.igly-service-brick[data-included="true"] {
  background:linear-gradient(135deg,#ffdda8,#e8ae70 53%,#f6ce9e);border-color:#f5d4ac;
  box-shadow:inset 1px 1px 0 rgba(255,249,230,.8),inset -2px -3px 7px rgba(116,69,23,.2),0 6px 18px rgba(242,178,107,.13);
}

.igly-service-brick[data-included="false"] {background:linear-gradient(135deg,rgba(211,245,255,.16),rgba(122,180,202,.055) 48%,rgba(220,248,255,.14))!important;}
.igly-service-brick[data-included="true"] {background:linear-gradient(135deg,#ffdda8,#e8ae70 53%,#f6ce9e)!important;}
