/* Loopius: телефон с бесконечной симуляцией работы браузера. Экран — 402×874 точки (iPhone 16 Pro),
   весь телефон масштабируется под свободное место (JS ставит --s). */
/* Временная раскладка (Макс 20.11.2026): на широком экране телефон слева, список справа;
   на узком — телефон на первом экране, список под ним. */
main.loopius { flex: 1; max-width: 1100px; padding: 0; display: flex; flex-direction: column; }
main.loopius i { font-style: normal; }
.lp-stage { position: relative; flex: none; height: max(440px, calc(100svh - 110px)); overflow: hidden; }
.lp-about { padding: 24px 16px 8px; text-align: center; }
.lp-about ul { list-style: none; margin: 0; padding: 0; font-size: 22px; line-height: 1.3; }
.lp-about li + li { margin-top: 14px; }
@media (min-width: 760px) {
	main.loopius { flex-direction: row; justify-content: center; align-items: stretch; min-height: min(560px, calc(100svh - 90px)); }
	.lp-stage { flex: 0 1 calc((100svh - 150px) * .5); height: auto; }
	.lp-about { flex: none; align-self: center; white-space: nowrap; padding: 24px 24px 24px 56px; }
	.lp-about ul { font-size: 24px; }
}
.lp-phone {
	position: absolute; left: 50%; top: 50%; width: 420px; height: 892px; margin: -446px 0 0 -210px;
	transform: scale(var(--s, .5)); border-radius: 64px; background: #000;
	border: 1.5px solid color-mix(in srgb, var(--fg) 50%, transparent);
}
/* боковые кнопки: слева действие и громкость, справа питание */
.lp-phone::before, .lp-phone::after {
	content: ""; position: absolute; width: 3px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 50%, transparent);
}
.lp-phone::before { left: -5px; top: 170px; height: 30px; box-shadow: 0 70px 0 0 color-mix(in srgb, var(--fg) 50%, transparent), 0 140px 0 0 color-mix(in srgb, var(--fg) 50%, transparent); }
.lp-phone::after { right: -5px; top: 260px; height: 92px; }

.lp-screen {
	position: absolute; left: 7.5px; top: 7.5px; width: 402px; height: 874px; border-radius: 55px; overflow: hidden;
	background: #000; color: #fff; font: 17px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-user-select: none; user-select: none; pointer-events: none;
	--d: .45s; --e: cubic-bezier(.2, .9, .25, 1);
}
.lp-screen > * { position: absolute; }
.lp-a {
	transition-property: left, top, right, bottom, width, height, border-radius, transform, opacity, border-color, background-color, box-shadow, filter;
	transition-duration: var(--d); transition-timing-function: var(--e);
}
.lp-now, .lp-now * { transition: none !important; }
.lp-gone { transform: scale(.3) !important; opacity: 0 !important; }
.lp-screen svg { display: block; }

/* Строка состояния, «остров», полоска «Домой» */
.lp-status { left: 0; top: 0; width: 402px; height: 56px; z-index: 90; transition: color .3s; }
.lp-status span { position: absolute; left: 52px; top: 20px; width: 46px; text-align: center; font-weight: 600; }
.lp-status svg { position: absolute; left: 288px; top: 25px; }
.lp-island { left: 138px; top: 11px; width: 126px; height: 37px; border-radius: 19px; background: #000; z-index: 95; }
.lp-home { left: 134px; bottom: 8px; width: 134px; height: 5px; border-radius: 3px; background: #fff; z-index: 95; transition: background-color .3s; }
.lp-screen.lit .lp-status { color: #000; }
.lp-screen.lit .lp-home { background: #1d1d1f; }

/* Головастик: голова и три кольца хвоста; в поиске голова становится строкой ввода */
.lp-tad { left: 176px; top: 426px; width: 50px; height: 50px; z-index: 20; }
.lp-head {
	position: absolute; inset: 0; border: 3px solid #ffd60a; border-radius: 25px;
	box-shadow: 0 0 6px #ffd60a, inset 0 0 3px #ffd60a;
}
.lp-tad.on .lp-head { border-color: #fff; border-radius: 10px; background-color: #000; box-shadow: none; }
.lp-loop {
	position: absolute; left: 50%; top: 50%; border: 2px solid; border-radius: 50%;
	box-shadow: 0 0 4px currentColor, inset 0 0 2px currentColor;
}
.lp-loop:nth-of-type(1) { width: 33px; height: 33px; margin: -16.5px; color: #ff453a; transform: translate(34px, 8px); }
.lp-loop:nth-of-type(2) { width: 20px; height: 20px; margin: -10px; color: #30d158; transform: translate(56px, 9px); }
.lp-loop:nth-of-type(3) { width: 10px; height: 10px; margin: -5px; color: #0a84ff; transform: translate(67px, 10px); }

/* Поле ввода: подсказка «поиск | сайт», текст, курсор */
.lp-field {
	position: absolute; left: 52px; right: 52px; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center;
	white-space: nowrap; opacity: 0; transition: opacity .2s;
}
.on > .lp-head > .lp-field, .lp-bar.on .lp-field { opacity: 1; }
.lp-pr { position: absolute; left: -52px; right: -52px; top: 0; bottom: 0; display: flex; align-items: center; color: rgba(255, 255, 255, .5); transition: transform .1s ease-in; }
.lp-pr span { flex: 1; text-align: right; padding-right: 25px; }
.lp-pr span + span { text-align: left; padding: 0 0 0 25px; }
.lp-field.full .lp-pr { transform: scale(0); }
.lp-txt { overflow: hidden; text-overflow: clip; }
.lp-caret { flex: none; width: 2.5px; height: 22px; margin-left: 1px; border-radius: 1.4px; background: #fff; animation: lp-blink 1s infinite; }
.lp-field.typing .lp-caret { animation: none; }
.lp-field.sel .lp-txt { background: rgba(255, 255, 255, .3); }
.lp-field.sel .lp-caret { visibility: hidden; }
@keyframes lp-blink { 0%, 45% { opacity: 1; } 55%, 95% { opacity: 0; } }

/* Значки 45×45, как BarIcon */
.lp-i { position: absolute; top: 50%; width: 45px; height: 45px; margin-top: -22.5px; display: grid; place-items: center; }
.lp-i svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Вкладка: страница, рамка, свечение, строка */
.lp-tab { left: 0; top: 0; width: 402px; height: 250px; overflow: hidden; border-radius: 10px; z-index: 10; }
.lp-tab.under { transform: scale(.92); filter: brightness(.75); }
.lp-web { position: absolute; left: 0; top: 0; width: 402px; height: 874px; overflow: hidden; background: #fff; }
.lp-doc { position: absolute; left: 0; top: 0; width: 402px; opacity: 1; transition: opacity .25s; }
.lp-doc.blank { opacity: 0; }
.lp-frame { position: absolute; inset: 0; border: 2px solid #fff; border-radius: 10px; }
.lp-glow { position: absolute; left: 0; right: 0; border-radius: 25px; filter: blur(15px); }
.lp-bar { position: absolute; box-sizing: border-box; overflow: hidden; background: #000; border: 3px solid #fff; box-shadow: 0 0 1px #000; }
.lp-prog { position: absolute; inset: 0; background: rgba(255, 255, 255, .3); transform: scaleX(0); opacity: 0; transition: transform .6s ease-out, opacity .3s; }
.lp-tools { position: absolute; left: 0; right: 0; top: 0; bottom: 44px; display: flex; justify-content: space-evenly; align-items: center; overflow: hidden; }
.lp-tools .lp-i { position: relative; top: auto; margin: 0; flex: none; }
.lp-sep { position: absolute; left: 15px; right: 15px; bottom: 44px; height: 1px; background: rgba(255, 255, 255, .6); transform: scaleX(0); }
.lp-bar.tb .lp-sep { transform: scaleX(1); }
.lp-row { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; }
.lp-title { position: absolute; left: 50px; right: 50px; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; transition: opacity .2s; }
.lp-title span { overflow: hidden; text-overflow: ellipsis; }
.lp-bar.on .lp-title { opacity: 0; }
.lp-rb { right: 5px; }
.lp-rb svg { transition: transform .3s; }
.lp-bar.tb .lp-rb svg { transform: rotate(180deg); }
.lp-fav { left: 5px; transform: scale(0); }
.lp-fav.show { transform: scale(1); }
.lp-nav {
	position: absolute; width: 25px; height: 25px; border-radius: 50%; border: 2px solid #fff;
	background: radial-gradient(#000 45%, rgba(0, 0, 0, .55)); box-shadow: 0 0 1px #000; transform: scale(0);
}
.lp-nav.show { transform: scale(1); }

/* Значок сайта */
.fv { width: 24px; height: 24px; border-radius: 6px; background: #e5e5ea; color: #1d1d1f; display: grid; place-items: center; font: normal 700 14px/1 -apple-system, BlinkMacSystemFont, sans-serif; text-transform: uppercase; }
.fv.se { background: #fff; border-radius: 50%; }
.fv.se::before { content: ""; width: 9px; height: 9px; border: 2.5px solid #1d1d1f; border-radius: 50%; }

/* Ячейки: подсказки поиска и закладки */
.lp-cell { z-index: 15; }
.lp-ci {
	position: absolute; inset: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 0 50px;
	background: #000; border: 2px solid #fff; border-radius: 10px; white-space: nowrap; transition: transform .35s var(--e);
}
.lp-ct { overflow: hidden; text-overflow: ellipsis; }
.lp-ci .lp-i { left: 6px; }
.lp-acts { position: absolute; right: 8px; top: 2.5px; width: 90px; height: 45px; }
.lp-acts .lp-i { top: 0; margin: 0; }
.lp-acts .lp-i + .lp-i { left: 45px; }

/* Полоска над строкой поиска: история, настройки */
.lp-dock { left: 0; width: 402px; height: 60px; z-index: 25; }
.lp-dock .lp-i { transform: scale(0); }
.lp-dock.show .lp-i { transform: scale(1); }

/* Клавиатура (тёмная, как в iOS) */
.lp-kb { left: 0; top: 583px; width: 402px; height: 291px; background: #2b2b2b; z-index: 70; transform: translateY(301px); }
.lp-k {
	position: absolute; height: 42px; border-radius: 5px; background: #6b6b6b; box-shadow: 0 1px 0 rgba(0, 0, 0, .4);
	display: grid; place-items: center; font-size: 23px; transition: background-color .15s;
}
.lp-k.sp { background: #474747; font-size: 16px; }
.lp-k.go { background: #0a84ff; font-size: 15px; }
.lp-k.dn { background: #8e8e8e; transition: none; }
.lp-k.sp.dn { background: #6b6b6b; }
.lp-k.go.dn { background: #4aa3ff; }
.lp-k svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.lp-pop {
	position: absolute; width: 48px; height: 58px; border-radius: 9px; background: #8e8e8e; display: grid; place-items: center;
	font-size: 34px; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); opacity: 0; z-index: 2;
}
.lp-mic { left: 336px; top: 226px; width: 45px; height: 45px; display: grid; place-items: center; position: absolute; }

/* Окно «Закладка» */
.lp-dim { left: 0; top: 0; width: 402px; height: 874px; background: #000; opacity: 0; z-index: 55; }
.lp-sheet { left: 0; top: 884px; width: 402px; height: 830px; background: #000; border-radius: 12px 12px 0 0; z-index: 60; box-shadow: 0 -1px 0 rgba(255, 255, 255, .12); }
.sh-nav { position: relative; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.sh-nav b { position: absolute; left: 0; right: 0; text-align: center; font-weight: 600; }
.sh-nav span { position: relative; }
.sh-box { display: flex; align-items: center; gap: 12px; margin: 8px 16px; padding: 12px; border-radius: 12px; background: #1c1c1e; }
.sh-ic { flex: none; width: 56px; height: 56px; border-radius: 12px; background: #000; display: grid; place-items: center; }
.sh-ic svg { width: 27px; height: 27px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; }
.sh-f { flex: 1; min-width: 0; }
.sh-t, .sh-u { display: flex; align-items: center; height: 24px; white-space: nowrap; overflow: hidden; }
.sh-t span, .sh-u { text-overflow: ellipsis; overflow: hidden; }
.sh-f hr { height: 1.5px; margin: 5px 0; border: 0; background: rgba(255, 255, 255, .3); }

/* Палец */
.lp-finger {
	left: 201px; top: 437px; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; z-index: 100; opacity: 0;
	background: rgba(190, 190, 190, .5); border: 1.5px solid rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
	transition: left .38s cubic-bezier(.45, 0, .25, 1), top .38s cubic-bezier(.45, 0, .25, 1), transform .12s, opacity .25s, background-color .12s;
}
.lp-finger.dn { transform: scale(.82); background-color: rgba(130, 130, 130, .7); }

/* Псевдостраницы: только серые, текст — полосками */
.pg { font-size: 15px; line-height: 1.35; color: #1d1d1f; padding-bottom: 150px; }
.pg a { color: inherit; text-decoration: none; display: block; }
.pg-hd { padding: 62px 16px 12px; background: #fff; border-bottom: 1px solid #e5e5ea; }
.pg-hd.dk { background: #1c1c1e; color: #fff; border: 0; }
.pg-hd.dk .fv { background: #fff; }
.pg-nav { display: flex; align-items: center; gap: 10px; height: 40px; font-weight: 700; font-size: 18px; }
.pg-burger { margin-left: auto; width: 22px; display: grid; gap: 4px; }
.pg-burger i { height: 2px; border-radius: 1px; background: currentColor; }
.pg-se { display: flex; justify-content: center; align-items: center; height: 44px; }
.pg-se i { width: 24px; height: 24px; margin: 0 -3px; border: 3px solid #ff7a85; border-radius: 50%; }
.pg-se i + i { border-color: #ffc24b; }
.pg-se i + i + i { border-color: #4fb3ff; }
.pg-q { display: flex; align-items: center; gap: 10px; height: 46px; margin-top: 6px; padding: 0 14px; border-radius: 23px; background: #f2f2f7; font-size: 17px; }
.pg-q svg { width: 20px; height: 20px; fill: none; stroke: #6e6e73; stroke-width: 2; stroke-linecap: round; flex: none; }
.pg-chips { display: flex; gap: 8px; margin-top: 12px; overflow: hidden; }
.pg-chips b { flex: none; padding: 5px 13px; border-radius: 15px; background: #f2f2f7; font-size: 14px; font-weight: 500; color: #3c3c43; }
.pg-chips b.on { background: #1d1d1f; color: #fff; }
.pg-res { padding: 14px 16px 10px; border-bottom: 1px solid #f2f2f7; transition: background-color .15s; }
.pg-src { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6e6e73; }
.pg-src .fv { width: 22px; height: 22px; border-radius: 50%; font-size: 12px; }
.pg-t { margin: 6px 0 6px; font-size: 19px; line-height: 1.25; font-weight: 500; }
.pg-tx { margin: 0; padding: 6px 16px 10px; color: #3c3c43; line-height: 1.45; }
.pg-sn { padding: 0; color: #6e6e73; font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pg-meta { margin: 0 16px 8px; color: #8e8e93; font-size: 13px; }
.pg-h { margin: 18px 16px 6px; font-size: 27px; line-height: 1.15; font-weight: 700; }
.pg-img { height: 230px; }
.pg-img.in { height: 180px; margin: 10px 16px; border-radius: 14px; }
.pg-rel { display: grid; gap: 10px; padding: 12px 16px; }
.pg-card { display: flex !important; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: #f2f2f7; font-weight: 600; transition: background-color .15s; }
.pg-card .pg-img { flex: none; width: 64px; height: 64px; border-radius: 9px; }
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 6px 16px; }
.pg-tile { transition: opacity .15s; }
.pg-tile .pg-img { height: 150px; border-radius: 14px; }
.pg-tile b { display: block; margin: 8px 0 2px; font-size: 15px; }
.pg-foot { height: 170px; margin-top: 24px; background: #f2f2f7; }
.pg .hl { background-color: #e5e5ea; }
.pg .pg-card.hl { background-color: #d1d1d6; }
.pg .pg-tile.hl { background: none; opacity: .6; }

/* Суперэллипс там, где он есть (радиусы крупнее — у суперэллипса угол визуально острее) */
@supports (corner-shape: squircle) {
	.lp-phone { border-radius: 92px; corner-shape: squircle; }
	.lp-screen { border-radius: 80px; corner-shape: squircle; }
	.lp-k { border-radius: 8px; corner-shape: squircle; }
	.lp-pop, .sh-box, .sh-ic, .pg-card, .pg-img.in, .pg-tile .pg-img { border-radius: 20px; corner-shape: squircle; }
	.lp-ci, .lp-frame { border-radius: 15px; corner-shape: squircle; }
	.lp-tab, .lp-bar { corner-shape: squircle; }
	.lp-sheet { border-radius: 18px 18px 0 0; corner-shape: squircle; }
	.fv { border-radius: 9px; corner-shape: squircle; }
}
