/* =====================================================================
   SwipAi: петля «путь серии» в разделе «Авторам» (промпт → кадры → монтаж → лента)
   ===================================================================== */
.ailoop { position: relative; max-width: 1320px; margin: 0 auto clamp(28px, 4vw, 48px); padding: clamp(18px, 2.4vw, 28px);
  border-radius: 28px; background: linear-gradient(140deg, rgba(42,20,112,.55), rgba(12,6,32,.92)); border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 40px 100px -40px rgba(0,0,0,.8); }
.ailoop__k { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blush); margin: 0 0 14px; }
.ailoop__prompt, .ailoop__title { margin: 0; }
.ailoop.is-built .ailoop__prompt, .ailoop.is-built .ailoop__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* шаги вверху: активный подсвечен, полоска показывает ход шага */
.ailoop__steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: al; }
.ailoop__steps li { position: relative; overflow: hidden; padding: 10px 12px 12px; border-radius: 12px; background: rgba(241,234,255,.05);
  font-size: 14px; font-weight: 700; color: var(--dim); counter-increment: al; transition: color .3s, background-color .3s; }
.ailoop__steps li::before { content: '0' counter(al) ' · '; color: var(--blush); font-weight: 600; letter-spacing: .08em; }
.ailoop__steps li.is-on { color: var(--paper); background: rgba(217,70,239,.14); }
.ailoop__steps li.is-done { color: var(--text); }
.al__fill { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--cy), var(--orchid)); transform: scaleX(0); transform-origin: left; }

/* сцена: слои сменяют друг друга */
.al__stage { position: relative; height: clamp(380px, 46vw, 520px); border-radius: 18px; overflow: hidden;
  background: radial-gradient(80% 90% at 50% 0%, rgba(109,40,217,.25), transparent 70%), rgba(6,3,14,.7); border: 1px solid rgba(255,255,255,.08); }
.al__layer { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(16px, 3vw, 40px); visibility: hidden; }

/* 1. промпт */
.al--prompt { align-content: center; gap: 22px; }
.al__field { width: min(760px, 100%); padding: 18px 22px 22px; border-radius: 18px; background: rgba(241,234,255,.06); border: 1px solid rgba(241,234,255,.16);
  box-shadow: 0 0 0 4px rgba(0,229,255,.06), 0 20px 60px -30px rgba(0,229,255,.4); }
.al__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cy); margin-bottom: 10px; }
.al__text { margin: 0; min-height: 2.6em; font-size: clamp(18px, 2vw, 28px); font-weight: 600; line-height: 1.3; color: var(--paper); }
.al__caret { display: inline-block; width: .5em; height: 1.05em; margin-bottom: -.18em; background: var(--orchid); box-shadow: 0 0 10px var(--orchid); animation: blink .9s steps(2) infinite; }
.al__go { justify-self: center; padding: 14px 28px; border-radius: 99px; font-weight: 800; font-size: 16px; color: #06030e;
  background: linear-gradient(90deg, var(--cy), #d946ef); box-shadow: 0 10px 40px -10px rgba(217,70,239,.8); transition: box-shadow .3s; }
.al__go.is-hit { box-shadow: 0 0 0 6px rgba(0,229,255,.25), 0 0 60px rgba(217,70,239,.9); }

/* 2. кадры */
.al--frames { align-content: center; gap: 16px; }
.al__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1.2vw, 14px); width: 100%; max-width: 1000px; }
.al__fr { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden;
  background: repeating-linear-gradient(0deg, rgba(241,234,255,.06) 0 2px, transparent 2px 5px), linear-gradient(160deg, rgba(109,40,217,.35), rgba(6,3,14,.9)); border: 1px solid rgba(255,255,255,.1); }
.al__fr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.al__scan { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; }
.al__scan::after { content: ''; position: absolute; left: -4%; right: -4%; top: 0; height: 2px; background: #fff; box-shadow: 0 0 12px var(--cy), 0 0 26px rgba(217,70,239,.8); }
.al__meta { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--text); }
.al__meta b { font-variant-numeric: tabular-nums; color: var(--cy); }

/* 3. монтаж */
.al--edit { grid-template-rows: 1fr auto; gap: 16px; place-items: stretch; }
.al__mon { position: relative; justify-self: center; height: 100%; aspect-ratio: 9 / 16; max-height: 100%; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.14); min-height: 0; }
.al__mon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al__tc { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.6); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--cy); }
.al__rec { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55); font-size: 11px; font-weight: 700; color: var(--paper); }
.al__track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; height: clamp(52px, 6vw, 72px); padding: 4px; border-radius: 10px; background: rgba(241,234,255,.06); border: 1px solid rgba(255,255,255,.1); }
.al__track img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; opacity: .85; }
.al__head { position: absolute; top: -6px; bottom: -6px; left: 2px; width: 2px; background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px var(--cy); }
.al__head::before { content: ''; position: absolute; top: -2px; left: -5px; width: 12px; height: 8px; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* 4. в ленте */
.al--feed { grid-template-columns: 1fr auto; gap: clamp(20px, 4vw, 60px); justify-items: center; }
.al__upload { display: grid; gap: 10px; width: min(380px, 100%); }
.al__ulabel { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blush); }
.al__up { height: 6px; border-radius: 6px; background: rgba(241,234,255,.12); overflow: hidden; }
.al__up b { display: block; height: 100%; background: linear-gradient(90deg, var(--cy), #d946ef); transform: scaleX(0); transform-origin: left; }
.al__done { justify-self: start; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 800; color: #06030e; background: var(--cy); box-shadow: 0 0 18px rgba(0,229,255,.6); }
.al__done::before { content: '✓ '; }
.phone--al { border-radius: 30px; }
.al__phone { position: relative; height: clamp(300px, 36vw, 440px); aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: #000;
  border: 7px solid #17102e; box-shadow: 0 0 0 1.5px rgba(241,234,255,.22), 0 40px 100px -30px rgba(217,70,239,.6); }
.al__phone > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone--al { --ph-h: clamp(300px, 36vw, 440px); }
.al__cap { position: absolute; left: 12px; right: 12px; bottom: 14px; font-size: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.al__hearts { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; }
.al__heart { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; background: var(--orchid);
  clip-path: path('M9 16.5S1.5 12 1.5 6.75A3.75 3.75 0 0 1 9 4.6a3.75 3.75 0 0 1 7.5 2.15C16.5 12 9 16.5 9 16.5z'); filter: drop-shadow(0 0 6px var(--orchid)); }

@media (max-width: 759px) {
  .ailoop { border-radius: 22px; }
  .ailoop__steps { grid-template-columns: repeat(2, 1fr); }
  .ailoop__steps li { font-size: 13px; padding: 8px 10px 10px; }
  .al__stage { height: 470px; }
  .al__grid { grid-template-columns: repeat(3, 1fr); max-width: 300px; }
  .al--feed { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: center; gap: 16px; }
  .al__phone { height: 330px; }
  .phone--al { --ph-h: 330px; }
}
/* абсолютные слои внутри карточки-сетки не должны привязываться к колонке, иначе опорой становится ячейка, а не карточка */
.how__item > .how__fx, .how__item > .pw { grid-column: auto !important; grid-row: auto !important; }
.al__cap b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; padding-right: 26px; }
@media (max-width: 759px) { .al__cap { left: 10px; right: 8px; } .al__cap b { font-size: 12px; padding-right: 20px; } }

/* ===== итерация 8: типографика, карточки, стыки разделов ===== */
/* «Найди своё» без кадра между слов: обычный заголовок с пробелом */
.find__title { gap: .22em; }
.find__l, .find__r { transform: none !important; }

/* лента: фраза и подзаголовок одной группой рядом с телефоном */
.feed__words { grid-template-rows: auto auto; align-content: center; }
.feed__w { grid-area: 1 / 1; align-self: end; line-height: .92; }
.manifest__stage.is-feed .feed__words .manifest__sub { grid-row: 2; margin: clamp(16px, 2vw, 28px) 0 0; max-width: 24ch; font-size: clamp(20px, 2.1vw, 34px); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--text); text-align: left; }
@media (max-width: 759px) {
  .manifest__stage.is-feed { padding: 76px var(--g) 64px; align-content: center; }
  .feed { gap: 20px; }
  .feed__phone { height: 50svh; }
  .feed__w { font-size: 10.5vw; }
  .feed__words { justify-items: center; }
  .manifest__stage.is-feed .feed__words .manifest__sub { margin-top: 12px; font-size: 19px; text-align: center; max-width: 21ch; }
}

/* реакции: маленькие, у правого края экрана, как кнопки лайков в ленте */
.react { width: 26px; height: 26px; margin: -13px; background: rgba(12,6,32,.55); box-shadow: 0 0 12px rgba(217,70,239,.45); }
.react svg { width: 14px; height: 14px; }

/* «Как смотреть» на телефоне: телефон крупный и уходит за нижний край карточки, без пустых полей */
@media (max-width: 759px) {
  .how.is-list .how__item { overflow: hidden; padding-bottom: 0; gap: 12px; }
  .how.is-list .how__item > img { width: 78%; height: auto; max-height: none; justify-self: center; margin-top: 8px; margin-bottom: -34%; }
}

/* стыки разделов: первый экран и финал растворяются в общем фоне, без ровной линии */
.hero .reel, .hero .reel__scrim { -webkit-mask-image: linear-gradient(#000 55%, transparent 98%); mask-image: linear-gradient(#000 55%, transparent 98%); }
.final .reel, .final .reel__scrim { -webkit-mask-image: linear-gradient(transparent, #000 28%); mask-image: linear-gradient(transparent, #000 28%); }

/* ===== подвал v2: контакты, большое интерактивное SwipAi, реквизиты ===== */
.foot--v2 { display: grid; gap: clamp(28px, 4vw, 48px); padding: clamp(50px, 7vw, 90px) var(--g) max(90px, env(safe-area-inset-bottom)); max-width: 1320px; margin: 0 auto; }
.foot__contact { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.foot__label { font-size: clamp(18px, 1.6vw, 22px); font-weight: 800; color: var(--paper); margin-right: 6px; }
.foot__ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid rgba(241,234,255,.35); color: var(--paper);
  transition: transform .4s cubic-bezier(.2,1.4,.4,1), border-color .3s, background-color .3s, box-shadow .3s; }
.foot__ic svg { width: 24px; height: 24px; fill: currentColor; }
.foot__ic svg[fill="none"] { fill: none; }
@media (hover: hover) and (pointer: fine) { .foot__ic:hover { transform: translateY(-4px); border-color: var(--orchid); background: rgba(217,70,239,.14); box-shadow: 0 0 24px rgba(217,70,239,.45); } }
.foot__ic:focus-visible { outline: 2px solid var(--cy); outline-offset: 4px; }
.foot__brand { display: flex; justify-content: center; margin: 0; font-size: clamp(76px, 19vw, 300px); font-weight: 900; letter-spacing: -.05em; line-height: .9; user-select: none; cursor: default; }
.fb__l { position: relative; display: inline-block; overflow: hidden; padding: 0 .01em .06em; transform-origin: 50% 100%; will-change: transform; }
.fb__c { display: inline-block; background: linear-gradient(180deg, var(--paper) 30%, rgba(217,70,239,.85)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fb__g { position: absolute; left: .01em; top: 0; opacity: 0; pointer-events: none; color: transparent; background: linear-gradient(180deg, #fff, var(--cy) 55%, var(--orchid)); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 18px rgba(0,229,255,.6)); }
.foot__legal { display: grid; gap: 10px; color: var(--dim); font-size: 15px; line-height: 1.5; }
.foot__legal b { font-size: clamp(18px, 1.6vw, 22px); color: var(--text); }
.foot__legal p { margin: 0; }
@media (max-width: 759px) { .foot__ic { width: 52px; height: 52px; } .foot__ic svg { width: 21px; height: 21px; } }
/* исправление: буквы не обрезаются (хвост «p»), свечение мягкое, за буквой, без квадратных краёв */
.fb__l { overflow: visible; padding: 0 .01em; }
.fb__c { position: relative; z-index: 1; padding-bottom: .12em; }
.fb__g { z-index: 0; color: var(--cy); background: none; -webkit-background-clip: border-box; background-clip: border-box; filter: blur(.12em); text-shadow: 0 0 .2em var(--orchid); }
