/* ============================================================
   WebLoop — blocks-v7.css: финальный футер, фиксы брифа
   ============================================================ */

/* ----- Бриф: соседний шаг больше не «подсматривает» справа ----- */
.brief__viewport { margin-inline: 0; padding-inline: 0; overflow: hidden; clip-path: inset(-6px 0 -6px 0); }
.brief__step { padding: 4px 4px 6px; }
.brief__when .chip { gap: .35rem; }
.brief-trust a, .brief__agree a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ----- Футер ----- */
.footer.footer7 { position: relative; background: var(--bg); border-top: 0; padding-block: 0 1.4rem; overflow: hidden; isolation: isolate; }
.ft7__aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 70% at 12% 30%, rgba(34,227,255,.10), transparent 70%), radial-gradient(40% 70% at 50% 60%, rgba(139,92,246,.12), transparent 70%), radial-gradient(40% 70% at 90% 30%, rgba(255,61,138,.09), transparent 70%); }
.ft7 { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.2fr) minmax(0, .85fr); gap: clamp(1.4rem, 3vw, 3rem); align-items: center; padding-top: 2.2rem; }
.ft7::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #22e3ff 25%, #8b5cf6 50%, #ff3d8a 75%, transparent); opacity: .6; }

/* почта */
.ft7__mail { display: grid; gap: .8rem; justify-items: start; min-width: 0; }
.ft7__kick { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ft7__email { position: relative; display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; font-size: clamp(1.5rem, .8rem + 1.9vw, 2.55rem); line-height: 1; letter-spacing: -.035em; padding-bottom: .35rem; }
.ft7__email-t { background: linear-gradient(100deg, #fff 0%, #c9d1ff 30%, #22e3ff 55%, #8b5cf6 75%, #ff3d8a 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ftgrad 8s linear infinite; white-space: nowrap; }
.ft7__email-t { transition: letter-spacing .5s var(--ease-out); } .ft7__email:hover .ft7__email-t { letter-spacing: -.01em; }
@keyframes ftgrad { to { background-position: -200% 0; } }
.ft7__email::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad-loop); transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease-out); }
.ft7__email:hover::after { transform: scaleX(1); }
.ft7__email-arrow { flex: none; color: var(--accent); transition: transform .4s var(--ease-spring); }
.ft7__email:hover .ft7__email-arrow { transform: translate(4px, -4px) rotate(8deg); }
.ft7__mail-btns { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ft7__copy { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 99px; font-size: .7rem; color: var(--ink-2); border: 1px solid var(--line-2); transition: .25s; }
.ft7__copy:hover { color: var(--ink); border-color: var(--accent); }
.ft7__copy.is-done { color: #07080d; background: var(--lime); border-color: var(--lime); }
.ft7__soon { font-size: .64rem; color: var(--ink-3); padding: .45rem .75rem; border-radius: 99px; border: 1px dashed var(--line-2); }

/* часы работы */
.ft7__hours { display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 26px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 80%, transparent), color-mix(in srgb, var(--bg-2) 70%, transparent)); border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(0,0,0,.8); }
.ft7__dial { position: relative; width: 150px; aspect-ratio: 1; }
.ft7__dial svg { width: 100%; height: 100%; overflow: visible; }
.ft7__track { fill: none; stroke: color-mix(in srgb, var(--ink) 8%, transparent); stroke-width: 10; }
.ft7__arc { fill: none; stroke: url(#ft-arc); stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(139,92,246,.6)); }
#ft-ticks line { stroke: color-mix(in srgb, var(--ink) 20%, transparent); stroke-width: 1.3; } #ft-ticks line.on { stroke: color-mix(in srgb, var(--ink) 55%, transparent); }
#ft-ticks text { font-family: var(--font-mono); font-size: 9px; fill: var(--ink-3); text-anchor: middle; }
.ft7__hand line { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.ft7__hand circle { fill: #fff; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px var(--accent)); }
.ft7__hand { transition: transform 1s var(--ease-out); }
.ft7__hub { fill: var(--ink); }
.ft7__dial-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.ft7__dial-c b { font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .ft7__dial-c span { font-size: .56rem; letter-spacing: .2em; color: var(--ink-3); }
.ft7__hours-info { display: grid; gap: .45rem; justify-items: start; min-width: 0; }
.ft7__state { display: inline-flex; align-items: center; gap: .45rem; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 99px; color: #0cce6b; background: rgba(12,206,107,.12); }
.ft7__state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: livepulse 1.4s infinite; }
.is-closed .ft7__state { color: #a78bfa; background: rgba(139,92,246,.14); } .is-closed .ft7__state i { animation: none; }
.is-closed .ft7__hand circle { filter: drop-shadow(0 0 6px #a78bfa); }
.ft7__range { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); letter-spacing: -.03em; }
.ft7__left { font-size: .7rem; color: var(--ink-2); line-height: 1.4; }
.ft7__days { list-style: none; display: flex; gap: .3rem; margin: .2rem 0 0; padding: 0; }
.ft7__days li { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: .62rem; color: var(--ink); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.ft7__days li.is-today { color: #07080d; background: var(--grad-loop); border-color: transparent; font-weight: 700; box-shadow: 0 6px 18px -6px rgba(139,92,246,.9); }
.ft7__note { font-size: .6rem; color: var(--ink-3); letter-spacing: .04em; }

/* навигация */
.ft7__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.ft7__nav div { display: grid; gap: .45rem; align-content: start; font-size: .78rem; }
.ft7__nav b { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .2rem; }
.ft7__nav a { color: var(--ink-2); width: fit-content; transition: color .2s, transform .2s; }
.ft7__nav a:hover { color: var(--accent); transform: translateX(3px); }

/* низ */
.ft7__legal { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .66rem; color: var(--ink-3); }
.ft7__legal a, .ft7__legal button { color: var(--ink-3); font: inherit; transition: color .2s; } .ft7__legal a:hover, .ft7__legal button:hover { color: var(--ink); }
.ft7__made { margin-left: auto; }

@media (max-width: 1100px) { .ft7 { grid-template-columns: 1fr 1fr; } .ft7__nav { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 220px)); } }
@media (max-width: 720px) {
  .ft7 { grid-template-columns: 1fr; }
  .ft7__hours { grid-template-columns: 112px 1fr; gap: .9rem; padding: .9rem; } .ft7__dial { width: 112px; } .ft7__dial-c b { font-size: 1.15rem; }
  .ft7__days li { width: 26px; height: 26px; font-size: .56rem; }
  .ft7__made { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .ft7__email-t { animation: none; } }

.ft7__tg { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 99px; font-size: .7rem; color: #fff; background: linear-gradient(120deg, #2aabee, #229ed9); box-shadow: 0 8px 22px -10px rgba(42,171,238,.9); transition: transform .25s var(--ease-spring), box-shadow .25s; }
.ft7__tg:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(42,171,238,1); }
.fab__tg { display: inline-flex; justify-content: center; align-items: center; gap: .4rem; padding: .6rem; border-radius: 12px; font-size: .74rem; color: #fff; background: linear-gradient(120deg, #2aabee, #229ed9); }
.fab__tg:hover { filter: brightness(1.1); }

.fab__agree { font-size: .66rem; line-height: 1.4; gap: .55rem; align-items: flex-start; }
.fab__agree i { width: 18px; height: 18px; border-radius: 6px; margin-top: 1px; }
.brief__agree a, .fab__agree a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.brief__agree.is-error i { border-color: var(--pink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 25%, transparent); animation: shake .35s; }
.ft7__disc { margin: 1.6rem auto 0; font-size: .64rem; line-height: 1.6; color: var(--ink-3); padding: .7rem 1rem; border-radius: 12px; border: 1px dashed var(--line-2); }
.ft7__disc + .ft7__legal { margin-top: 1rem; }

/* fix: метка «Блок 01» на мобильных растягивалась на весь Hero (top из v3 + bottom из sections) */
.hero .block-tag { bottom: auto; }
@media (max-width: 860px) { .hero .block-tag { top: auto; bottom: 0.8rem; } }

/* v8 адаптив: узкие телефоны — длинные слова в заголовках (Unbounded широкий) не должны распирать экран */
@media (max-width: 480px) {
  :root { --fs-3xl: clamp(1.6rem, .55rem + 6.2vw, 2.3rem); --fs-2xl: clamp(1.45rem, .5rem + 5.4vw, 2rem); }
}
/* .w без max-width: длинное слово меряет js/fit.js */
/* слова в заголовках не рвём посередине («Инструмен-ты») — js/fit.js уменьшает шрифт, если длинное слово не влезает в колонку */
.split-words .w > span { overflow-wrap: normal; }
h1, h2, h3, .display { overflow-wrap: normal; }
.fit-guard { overflow-wrap: anywhere; }

/* ===== v9 производительность (визуально без изменений) ===== */
/* зерно: вместо full-screen mix-blend-mode (пересчёт смешивания всего экрана на каждом кадре скролла) — готовая текстура ± вокруг нуля */
.noise::before { background-image: url("../assets/noise.png"); background-size: 160px 160px; mix-blend-mode: normal; opacity: .32; }
/* светящиеся пятна: мягкость тем же градиентом, без blur(80px)-фильтра на анимируемом слое */
.orb { filter: none; scale: 1.4; background: radial-gradient(circle closest-side, color-mix(in srgb, var(--orb, var(--violet)) 62%, transparent) 0%, color-mix(in srgb, var(--orb, var(--violet)) 44%, transparent) 22%, color-mix(in srgb, var(--orb, var(--violet)) 20%, transparent) 48%, color-mix(in srgb, var(--orb, var(--violet)) 6%, transparent) 72%, transparent 100%); }
/* CSS-анимации блоков вне экрана стоят на паузе (класс ставит js/perf.js) */
/* (тройной класс — перебивает .pstep.is-on …; псевдоэлементы тоже) */
.is-offscreen.is-offscreen.is-offscreen, .is-offscreen.is-offscreen.is-offscreen *, .is-offscreen.is-offscreen.is-offscreen *::before, .is-offscreen.is-offscreen.is-offscreen *::after, .is-offscreen.is-offscreen.is-offscreen::before, .is-offscreen.is-offscreen.is-offscreen::after { animation-play-state: paused !important; }
/* те же эффекты, но через transform/opacity (композитор), а не через перерисовку каждого кадра */
.pulse-dot { position: relative; animation: none; box-shadow: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--lime) 60%, transparent); animation: pulse-ring 1.8s infinite; pointer-events: none; }
@keyframes pulse-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.fab[data-stage="3"] .fab__bubble, .fab[data-stage="4"] .fab__bubble { animation: none; }
.fab[data-stage="3"] .fab__bubble::before, .fab[data-stage="4"] .fab__bubble::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 40px -6px rgba(139,92,246,.75); opacity: 0; animation: bubglow-o 2.4s ease-in-out infinite; }
.fab[data-stage="4"] .fab__bubble::before { box-shadow: 0 0 46px -4px rgba(139,92,246,.9); animation-duration: 1.4s; }
@keyframes bubglow-o { 50% { opacity: 1; } }
/* градиентный текст «Loop» в шапке и почта в футере: 20 обновлений/с вместо 60 — сдвиг градиента не заметен, а шапка с размытием фона не перерисовывается каждый кадр */
.logo__loop { animation-timing-function: steps(120); }
.ft7__email-t { animation-timing-function: steps(100); }
@media (prefers-reduced-motion: reduce) { .pulse-dot::after, .fab__bubble::before { animation: none !important; } }
.section:has(> .orb) { overflow-x: clip; }
/* блок 07 на телефоне: «ноутбук» не шире экрана (новый Chrome считает рамку устройства шире 88vw) */
@media (max-width: 860px) { .scrolly__grid > * { min-width: 0; } .device { --w: min(560px, calc(100vw - 2 * var(--gutter) - 2 * var(--b) - 6px)); max-width: 100%; } }

/* v10 фиксы по фидбеку */
/* 30 — гравитация: удар подсвечивается кольцом-подложкой (opacity), текст не фильтруется и не мерцает */
.gb.is-hit { animation: none; }
.gb::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 0 26px 2px var(--c1); opacity: 0; }
.gb.is-hit::after { animation: gbring .42s ease-out; }
@keyframes gbring { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.gb b, .gb small { -webkit-user-select: none; user-select: none; pointer-events: none; }
.grav, .grav * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* 19 — солнце пульсирует свечением-подложкой (opacity), а не перерисовкой огромной тени каждый кадр */
.sol__core { animation: none; }
.sol__core::before { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: 0 0 80px 18px rgba(139,92,246,.6), 0 0 180px 40px rgba(34,227,255,.3); opacity: 0; animation: sunglow 4s ease-in-out infinite; }
@keyframes sunglow { 50% { opacity: 1; } }
/* 28 — жидкий металл: при перетаскивании капли текст не выделяется */
.rm.is-grab, .rm.is-grab * { -webkit-user-select: none; user-select: none; }
#rm-canvas { touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) { .sol__core::before { animation: none; } }
.no-sel, .no-sel * { -webkit-user-select: none !important; user-select: none !important; }
/* блок 07 на планшетах/небольших ноутбуках (861–1200px): «ноутбук» не шире своей колонки */
@media (min-width: 861px) and (max-width: 1200px) { .scrolly__grid > * { min-width: 0; } .device[data-device="desktop"] { --w: min(560px, calc(50vw - 5rem)); --h: calc(var(--w) * .607); } }
/* 26 — «волна по буквам»: у ключевых кадров было общее имя с волной взрыва из блока 30 → буквы раздувало в 22 раза */
.wd { display: inline-block; white-space: nowrap; animation: none !important; transform: none !important; font-weight: inherit; color: inherit; }

/* v11 Hero: чистый чёрный фон, без сетки — справа только 3D-логотип ∞ */
:root:not([data-theme="light"]) .hero { background: #000; }
.hero__grid { display: none; }
@media (max-width: 860px) { .hero__top { margin-top: 150px; } } /* место под ∞ над заголовком */

/* v12 мобильная производительность: блоки далеко от экрана браузер не рисует и не держит в слоях
   (content-visibility). Высоту каждого блока js/perf.js замеряет заранее — прокрутка и якоря не прыгают. */
.cv-auto { content-visibility: auto; }
