/* v14: правки после просмотра v13 */

/* Слайд «Один промт…»: вместо списка модулей кирпичики LEGO складываются в стенку под каждый сайт */
.lib-l { display: flex; flex-direction: column; height: 627px; }
.lego { position: relative; margin-top: auto; width: 640px; height: 262px; }
.lego-plate { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; border-radius: 6px; background: var(--line); }
.lego-plate::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px;
  background: repeating-linear-gradient(90deg, transparent 0 10px, var(--line) 10px 34px, transparent 34px 40px); }
.lego-wall { position: absolute; inset: 0; }
.lg { position: absolute; width: 154px; height: 70px; left: calc(var(--c) * 158px); bottom: calc(20px + var(--r) * 70px);
  border-radius: 6px; background: var(--lg); box-shadow: inset 0 -8px 0 rgb(0 20 60 / .18);
  opacity: 0; transform: translateY(-150px); animation: lg-drop 560ms cubic-bezier(.34, 1.36, .64, 1) forwards; animation-delay: calc(var(--j) * 110ms); }
.lg::before, .lg::after { content: ''; position: absolute; top: -10px; width: 34px; height: 10px; border-radius: 4px 4px 0 0; background: var(--lg); }
.lg::before { left: 26px; } .lg::after { right: 26px; }
.lg.c0 { --lg: #D9E0E8; } .lg.c1 { --lg: #83A8E3; } .lg.c2 { --lg: #FFFFFF; } .lg.c3 { --lg: #99B3D8; }
@keyframes lg-drop { 0% { opacity: 0; transform: translateY(-150px); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lg { animation: none; opacity: 1; transform: none; } }

/* Переключатель темы на титуле */
.theme-sw { position: absolute; left: 120px; top: 96px; z-index: 6; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: var(--r-p); box-shadow: inset 0 0 0 1px var(--line); font-size: 18px; }
.theme-sw > span { padding: 0 10px 0 12px; color: var(--text-2); }
.theme-sw button { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 10px; border: 0; border-radius: var(--r-p); background: transparent; color: var(--text-2); font-size: 18px; cursor: pointer; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.theme-sw button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.theme-sw .sw { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.sw-brand { background: linear-gradient(90deg, #002F6C 50%, #D9E0E8 50%); box-shadow: inset 0 0 0 1px #6682A6; }
.sw-night { background: linear-gradient(90deg, #001E46 50%, #002F6C 50%); box-shadow: inset 0 0 0 1px #6682A6; }

/* Окно сайта на «Белой»: светлая рамка, синяя адресная плашка */
html[data-theme="white"] .lib-url { background: #002F6C; color: #F1F6FC; }
html[data-theme="white"] .lib-url .lib-kind { color: #CCD6E2; }
html[data-theme="white"] .lib-dots i { background: #99ACC4; }
html[data-theme="white"] .lib-dots i.on { background: #002F6C; }
