/* ============================================================
   UPSIDEFLOW — персональный лендинг · надстройка над Data House v6
   Только новое: переключатель языка, блок решения в фазе 3
   воронки, мелкие правки метода и услуг.
   ============================================================ */

/* --- ссылки в тексте (по умолчанию, для правок в редакторе) --- */
a:not([class]) { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
a:not([class]):hover { border-bottom-color: var(--accent); }
.sec.dark a:not([class]) { color: #D98A6A; }

/* --- переключатель языка в шапке --- */
.navtools { display: flex; align-items: center; gap: 18px; }
.langsw { display: inline-flex; border: 1px solid var(--line-2); border-radius: 2px; overflow: hidden; }
.langsw button { appearance: none; background: transparent; border: 0; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; padding: 7px 10px; color: var(--muted); transition: color .25s ease, background .25s ease; }
.langsw button + button { border-left: 1px solid var(--line-2); }
.langsw button.on { color: var(--paper); background: var(--ink); }
.langsw button:hover:not(.on) { color: var(--ink); }
@media (max-width: 760px) { .navtools .btn { display: none; } }

/* --- 02 · фаза «решение»: что меняется в цифрах --- */
.fs.p2 { max-width: 700px; }
.fs .fdec { display: grid; gap: 12px; margin-top: 26px; }
.fs .fdec .d { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; align-items: baseline; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper); }
.fs .fdec .d i { font-style: normal; color: var(--accent); font-size: 15px; line-height: 1; }
.fs .fdec .d s { text-decoration: none; color: var(--w-mut); letter-spacing: .06em; text-transform: none; font-size: 12.5px; display: block; margin-top: 4px; }
.fs.p2 p { margin-top: 26px; }

/* --- 01 · портрет: дуотон в цветах бренда, тени = фон секции, шва нет --- */
#hero { isolation: isolate; }
#hero .hportrait { position: absolute; z-index: 1; right: 0; top: 0; height: 100%; width: min(48vw, 820px); object-fit: cover; object-position: 50% 16%; pointer-events: none; mix-blend-mode: lighten; }
/* ультраширокие: портрет держится контентной колонки, а не края экрана */
@media (min-width: 1680px) {
  #hero .hportrait { right: calc((100vw - var(--wide)) / 2 - 120px); }
}
@media (min-width: 1100px) { #hero .lead { max-width: min(44ch, 50%); } #hero h1.t { max-width: 60%; } }
@media (max-width: 900px) {
  /* портрет уходит в поток под текст — никаких наложений на заголовок и лид */
  #hero { display: flex; flex-direction: column; }
  #hero > .in { order: 1; padding-bottom: 24px; }
  #hero .hportrait { order: 2; position: relative; inset: auto; width: 100%; height: auto; max-height: 96vw; object-position: 50% 10%; }
  .hero-eyerow .rule { display: none; }
}
html.v6 #hero .hportrait { opacity: 0; transition: opacity 1.8s var(--ease-out) .2s; }
html.v6.hero-go #hero .hportrait { opacity: 1; }


/* --- 04 · РЕЗУЛЬТАТЫ: чёрное поле, кейсы строками таблицы.
   Радар из фона убран — он остаётся приёмом сцены услуг ниже.
   Терракота в блоке одна: маркер строки на линейке + знак операции
   в наведённой цифре. --- */
#proof { position: relative; overflow: hidden; }
#proof > .in { position: relative; z-index: 1; }
#proof .cases { --crail: 190px; --cgap: clamp(26px, 3.2vw, 56px); position: relative; margin-top: 92px; border-top: 1px solid var(--w-line2); }
/* линейка таблицы + маркер, который едет за наведением */
#proof .cases::before { content: ""; position: absolute; z-index: 0; left: calc(var(--crail) + var(--cgap) / 2); top: 0; bottom: 0; width: 1px; background: var(--w-line); pointer-events: none; }
#proof .cases::after { content: ""; position: absolute; z-index: 2; left: calc(var(--crail) + var(--cgap) / 2); top: var(--cy, 0px); width: 1px; height: 34px; background: var(--accent); transform: translateY(-50%); opacity: var(--cmo, 0); pointer-events: none; transition: top .6s var(--ease-out), opacity .35s ease; }
#proof .case { position: relative; display: grid; grid-template-columns: var(--crail) minmax(0, 1fr) minmax(0, 1.04fr); align-items: start; gap: var(--cgap); padding: clamp(36px, 4.8vh, 58px) 0; transition: background .55s var(--ease-out); }
#proof .case:hover { background: linear-gradient(90deg, rgba(245, 241, 234, .05), rgba(245, 241, 234, .012) 58%, transparent); }
/* нижняя линейка строки прочерчивается при появлении */
#proof .case::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--w-line); transform: scaleX(1); transform-origin: left; }
html[data-motion="on"] #proof .case[data-rev]::after { transform: scaleX(0); }
html[data-motion="on"] #proof .case[data-rev].is-in::after { transform: scaleX(1); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * .1s + .3s); }
#proof .crail { padding-top: 0; }
#proof .cno { font-family: var(--num); font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: transparent; -webkit-text-stroke: 1px var(--w-line2); transition: -webkit-text-stroke-color .5s ease; }
#proof .case:hover .cno { -webkit-text-stroke-color: var(--paper); }
#proof .csrc { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.7; color: var(--w-txt); transition: color .4s ease; }
#proof .case:hover .csrc { color: var(--paper); }
#proof .cvm { display: block; overflow: hidden; }
#proof .cvm > span { display: block; font-family: var(--num); font-weight: 700; font-size: clamp(42px, 4.6vw, 78px); line-height: .92; letter-spacing: -0.042em; color: var(--paper); font-variant-numeric: tabular-nums; white-space: nowrap; }
#proof .cv .u { display: inline; color: rgba(245, 241, 234, .3); transition: color .45s ease; }
#proof .case:hover .cv .u { color: var(--accent); }
html[data-motion="on"] #proof .case[data-rev] .cvm > span { transform: translateY(108%); transition: transform 1s var(--ease-out) .15s; }
html[data-motion="on"] #proof .case[data-rev].is-in .cvm > span { transform: none; }
#proof .ck { margin: 0; padding-top: 5px; font-size: 16px; line-height: 1.62; color: var(--w-txt); max-width: 44ch; text-wrap: pretty; transition: color .4s ease; }
#proof .case:hover .ck { color: var(--paper); }
/* проблеск по нижней границе строки — светлый, не терракотовый */
#proof .csweep { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(245, 241, 234, .6) 44%, transparent); transform: scaleX(0); transform-origin: left; opacity: 0; transition: transform .95s var(--ease-out), opacity .5s ease; }
#proof .case:hover .csweep { transform: scaleX(1); opacity: 1; }
@media (max-width: 900px) {
  #proof .cases::before, #proof .cases::after { display: none; }
  #proof .case { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 34px 0; }
  #proof .crail { padding-top: 0; }
  #proof .cno { font-size: 40px; }
  #proof .csrc { margin-top: 14px; }
  #proof .cvm > span { font-size: clamp(38px, 12vw, 62px); }
  #proof .ck { padding-top: 0; max-width: 52ch; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-motion="on"] #proof .case[data-rev] .cvm > span { transform: none; transition: none; }
  html[data-motion="on"] #proof .case[data-rev]::after { transform: scaleX(1); }
  #proof .csweep, #proof .cases::after { transition: none; }
}

/* --- 03 · сакральная геометрия переехала из hero в «Кто я», по левому краю.
   Круг держится в поле целиком: обрезанная краем экрана дуга читалась
   как ошибка вёрстки, а не как приём. --- */
#me .hgeo { right: auto; left: max(-40px, -2vw); top: 63%; width: min(31vw, 50vh, 440px); opacity: .46; }
/* планшет в альбомной: круг тише и ближе к краю.
   Уже 900px круг не показывается вовсе — так решено в land-v6.css,
   поэтому правил для телефона здесь нет. */
@media (max-width: 1180px) { #me .hgeo { left: -8vw; top: 52%; width: min(46vw, 48vh, 390px); opacity: .32; } }

/* --- полоса клиентов (как в деке, компактная) --- */
.clients-strip { border-top: 1px solid var(--line); }
.clients-strip > .in { padding-top: clamp(52px, 7vh, 80px); padding-bottom: clamp(56px, 8vh, 88px); }
.clients-strip .chead { display: flex; align-items: baseline; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.clients-strip .chead .kick { margin: 0; }
.clients-strip .ct { margin: 0; font-family: var(--display); font-weight: 550; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.clients-strip .clients4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 44px; }
.clients-strip .client4 { display: block; text-decoration: none; color: inherit; border-top: 1px solid var(--line-2); padding-top: 18px; transition: border-color .35s ease; }
.clients-strip a.client4:hover { border-top-color: var(--accent); }
.clients-strip .logo-wrap { display: flex; align-items: center; height: 54px; }
.clients-strip .clogo { display: block; max-width: 100%; width: auto; object-fit: contain; }
.clients-strip .clogo-inv { filter: invert(1) brightness(0.05); }
.clients-strip .nm { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.008em; margin-top: 14px; color: var(--ink); }
.clients-strip .ds { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin-top: 14px; max-width: 30ch; }
.clients-strip .cplus { font-family: var(--num); font-weight: 700; font-size: 34px; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
@media (max-width: 1020px) { .clients-strip .clients4 { grid-template-columns: repeat(2, 1fr); gap: 36px 30px; } }
@media (max-width: 560px) { .clients-strip .clients4 { grid-template-columns: 1fr; } }

/* --- контакт: симметричные колонки --- */
#contact .cta-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
#contact .chan { display: flex; flex-direction: column; border-top: 1px solid var(--w-line2); }
#contact .chan .lab { padding: 16px 0 18px; border-bottom: 0; font-size: 11px; letter-spacing: .12em; }
#contact .chan .cbtn { flex: 1; align-items: center; }
#contact .chan .fine2 { margin-top: 22px; }
@media (max-width: 900px) { #contact .cta-grid { grid-template-columns: 1fr; } #contact .chan .cbtn { flex: none; } }

/* --- тост после отправки формы --- */
.uf-toast { position: fixed; left: 50%; bottom: 28px; z-index: 5000; display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 18px; background: var(--ink); color: var(--paper); border: 1px solid var(--w-line2, rgba(245,241,234,.25)); box-shadow: 0 18px 50px rgba(20,18,16,.35); opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); cursor: pointer; max-width: min(92vw, 460px); }
.uf-toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.uf-toast .tk { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 14px; line-height: 1; }
.uf-toast .tx { display: grid; gap: 3px; }
.uf-toast .tx b { font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.uf-toast .tx span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; color: var(--w-mut); }

/* --- 03 · метод: карточки без иконок --- */
.mth .dl h4 { margin-top: 30px; }
.mth .dl .dn { color: var(--accent); }

/* --- 04 · услуги: leдер вопросов --- */
.qsrc .srcs-head { padding-bottom: 22px; }
.qsrc .src { padding: 38px 0; row-gap: 14px; }
.qsrc .snm { color: var(--ink); }
.qsrc .sgives b { white-space: nowrap; }

/* --- 05 · контакт: одна колонка каналов --- */
#contact .chan .fine2 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(245,241,234,.42); margin-top: 20px; line-height: 1.6; }

/* ============================================================
   05 · ГДЕ Я ПОЛЕЗЕН — вопросы по скроллу (sticky-scrub).
   Механику ведёт land-v3.js (.lstage), стили — здесь.
   ============================================================ */
#svc.lstage { overflow: visible; }
/* Лентой (телефон, планшет, режим без анимаций) сцена теряет обрезку
   вместе с sticky — и фоновый радар начинает раздвигать страницу вбок.
   Возвращаем обрезку: прокрутки вбок на странице быть не должно. */
html[data-motion="off"] #svc.lstage, #svc.static.lstage { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { #svc.lstage { overflow: hidden; } }
#svc .lscroll { position: relative; height: 380vh; }
#svc .lstick { position: sticky; top: 0; height: 100vh; min-height: 680px; overflow: hidden; display: flex; }
#svc .lstick > .in { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
#svc .ls-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 40px; align-items: baseline; }
#svc .ls-head h2.t { margin: 20px 0 0; font-size: clamp(36px, 3.4vw, 54px); line-height: 1.04; letter-spacing: -0.028em; max-width: 22ch; }
#svc .ls-grid { display: grid; grid-template-columns: minmax(220px, 272px) minmax(0, 1fr); gap: clamp(44px, 5.5vw, 96px); align-items: center; margin-top: clamp(30px, 4.4vh, 52px); padding-top: clamp(26px, 3.4vh, 40px); }

/* навигатор направлений: геометрия не двигается, меняется только тон */
#svc .ls-stack { position: relative; border-top: 1px solid var(--line-2); }
#svc .ls-cell { appearance: none; background: none; border: none; border-bottom: 1px solid var(--line); width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: baseline; text-align: left; padding: 24px 0 24px 6px; cursor: pointer; font-family: var(--sans); color: var(--muted); transition: color .35s ease; }
#svc .ls-cell .ci { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--line-2); transition: color .35s ease; }
#svc .ls-cell .cn { font-size: 15.5px; font-weight: 450; letter-spacing: .004em; }
#svc .ls-cell::after { content: ""; position: absolute; left: 0; width: 0; height: 1px; background: var(--accent); }
#svc .ls-cell:hover { color: var(--ink-2); }
#svc .ls-cell:hover .ci { color: var(--muted); }
#svc .ls-cell.past { color: var(--muted); }
#svc .ls-cell.on { color: var(--ink); }
#svc .ls-cell.on .cn { font-weight: 550; }
#svc .ls-cell.on .ci { color: var(--accent); }
#svc .ls-cell:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* кадр направления */
#svc .ls-slides { position: relative; min-height: clamp(360px, 44vh, 470px); }
#svc .ls-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility 0s linear .5s; }
#svc .ls-slide.on { opacity: 1; visibility: visible; transition: opacity .55s var(--ease-out); }
#svc .ls-ghost { position: absolute; right: 0; top: 50%; transform: translateY(-52%); pointer-events: none; user-select: none; font-family: var(--num); font-weight: 700; font-size: clamp(120px, 13vw, 200px); line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--line-2); opacity: .34; }
#svc .ls-idx { position: relative; z-index: 1; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); opacity: 0; transform: translateY(-8px); transition: opacity .5s ease, transform .5s var(--ease-out); }
#svc .ls-slide.on .ls-idx { opacity: 1; transform: none; transition-delay: .08s; }
#svc .ls-name { position: relative; z-index: 1; margin: 14px 0 0; font-family: var(--display); font-weight: 550; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); overflow: hidden; max-width: 20ch; }
#svc .ls-name span { display: block; transform: translateY(112%); transition: transform .8s var(--ease-out); }
#svc .ls-slide.on .ls-name span { transform: none; transition-delay: .1s; }
#svc .ls-items { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
#svc .ls-it { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
#svc .ls-slide.on .ls-it { opacity: 1; transform: none; transition-delay: .22s; }
#svc .ls-slide.on .ls-it:last-child { transition-delay: .32s; }
#svc .ls-it h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink); }
#svc .ls-it p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.58; color: var(--ink-2); max-width: 34ch; }

@media (max-width: 1180px) { #svc .ls-head { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 1180px) and (min-width: 901px) {
  #svc .ls-grid { grid-template-columns: minmax(180px, 216px) minmax(0, 1fr); gap: 36px; }
  #svc .ls-items { grid-template-columns: 1fr; gap: 22px; }
  #svc .ls-it p { max-width: 52ch; }
  #svc .ls-ghost { display: none; }
}

/* статика · reduced-motion · мобильный: вопросы лентой */
html[data-motion="off"] #svc .lscroll, #svc.static .lscroll { height: auto; }
html[data-motion="off"] #svc .lstick, #svc.static .lstick { position: relative; height: auto; min-height: 0; padding: 110px 0; overflow: visible; }
html[data-motion="off"] #svc .ls-grid, #svc.static .ls-grid { grid-template-columns: 1fr; align-items: start; }
html[data-motion="off"] #svc .ls-stack, #svc.static .ls-stack,
html[data-motion="off"] #svc .ls-hint, #svc.static .ls-hint { display: none; }
html[data-motion="off"] #svc .ls-slides, #svc.static .ls-slides { min-height: 0; }
html[data-motion="off"] #svc .ls-slide, #svc.static .ls-slide { position: relative; opacity: 1; visibility: visible; padding: 34px 0; border-bottom: 1px solid var(--line); justify-content: flex-start; }
html[data-motion="off"] #svc .ls-name span, #svc.static .ls-name span { transform: none; }
html[data-motion="off"] #svc .ls-idx, #svc.static .ls-idx,
html[data-motion="off"] #svc .ls-it, #svc.static .ls-it { opacity: 1; transform: none; }
html[data-motion="off"] #svc .ls-name, #svc.static .ls-name { font-size: clamp(30px, 4vw, 44px); }
html[data-motion="off"] #svc .ls-ghost, #svc.static .ls-ghost { font-size: clamp(110px, 14vw, 170px); }
@media (prefers-reduced-motion: reduce) {
  #svc .lscroll { height: auto; }
  #svc .lstick { position: relative; height: auto; min-height: 0; padding: 110px 0; overflow: visible; }
  #svc .ls-grid { grid-template-columns: 1fr; }
  #svc .ls-stack, #svc .ls-hint { display: none; }
  #svc .ls-slides { min-height: 0; }
  #svc .ls-slide { position: relative; opacity: 1; visibility: visible; padding: 34px 0; border-bottom: 1px solid var(--line); }
  #svc .ls-name span { transform: none; }
  #svc .ls-idx, #svc .ls-it { opacity: 1; transform: none; }
}

/* ============================================================
   01 · ТИТУЛЬНЫЙ ЭКРАН — минимализм: чёрное поле, портрет, воздух.
   Звёздное небо и цветовая подложка убраны из разметки.
   ============================================================ */
#hero .hero-eyerow { gap: 16px; }
#hero .hero-eyerow .rule { width: 40px; background: var(--w-line2); }
#hero .kick { display: block; font-size: 11px; letter-spacing: .22em; line-height: 1.8; }
#hero .hero-eyerow { align-items: baseline; }
#hero .hero-eyerow .rule { position: relative; top: -4px; }
#hero h1.t { margin-top: 30px; font-weight: 500; font-size: clamp(48px, 6.6vw, 110px); line-height: 1.03; letter-spacing: -0.04em; }
#hero .lead { margin-top: 32px; font-size: clamp(16.5px, 1.2vw, 19px); line-height: 1.68; color: var(--w-mut); max-width: 40ch; }
#hero .cta-row { margin-top: 46px; }
@media (min-width: 1100px) { #hero h1.t { max-width: 52%; } #hero .lead { max-width: min(40ch, 46%); } }

/* ============================================================
   ЛОГОТИП — словесный знак: Upsideflow + терракотовая точка
   ============================================================ */
.brand { gap: 0; }
.brand .bw { font-family: var(--sans); font-weight: 300; font-size: 13.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--paper); }
.brand .bdot { color: var(--accent); font-weight: 500; font-size: 17px; line-height: 1; }
.boot-word { font-weight: 300; font-size: 15px; text-transform: uppercase; letter-spacing: .32em; text-indent: .32em; margin-top: 0; }
.boot-word .bdot { color: var(--accent); font-weight: 500; }
.boot-sub { font-weight: 400; font-size: 8.5px; letter-spacing: .4em; text-indent: .4em; color: var(--w-mut); }

/* ============================================================
   ШАПКА — не закрепляется: тихая строка поверх титульного экрана
   ============================================================ */
.nav { position: absolute; top: 0; left: 0; right: 0; background: none; backdrop-filter: none; border-bottom: none; }
.nav.scrolled { border-bottom-color: transparent; }
.nav > .in, .nav.scrolled > .in { height: 108px; }
.nav .langsw { border: none; border-radius: 0; gap: 9px; align-items: baseline; }
.nav .langsw button { padding: 0; color: rgba(245,241,234,.34); font-size: 10.5px; letter-spacing: .2em; }
.nav .langsw button + button { border-left: none; }
.nav .langsw button + button::before { content: "/"; margin-right: 9px; color: rgba(245,241,234,.18); }
.nav .langsw button.on { color: var(--paper); background: none; }
.nav .langsw button:hover:not(.on) { color: rgba(245,241,234,.7); }
.navtools { gap: 26px; }
.navmail { white-space: nowrap; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--w-line2, rgba(245,241,234,.3)); padding-bottom: 3px; transition: border-color .2s ease, color .2s ease; }
.navmail:hover { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 600px) { .navmail { display: none; } .nav > .in, .nav.scrolled > .in { height: 84px; } }

/* --- 05b · «Как работаем и сколько это стоит» (из презентации) --- */
#svc .svc-how { padding-top: clamp(90px, 11vh, 130px); border-top: 1px solid var(--line); }
#svc .how-head h2.t { margin-top: 18px; font-size: clamp(30px, 2.6vw, 42px); max-width: 24ch; }
#svc .how-head .lead { font-size: 18px; max-width: 58ch; }
#svc .how-grid { margin-top: 72px; }
#svc .how-grid .dl .dn { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
#svc .how-grid .dl h4 { margin-top: 30px; }
#svc .how-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
#svc .hm .hlbl { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#svc .hm .hlbl em { font-style: normal; color: var(--ink); }
#svc .hm p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
#svc .svc-how .go { display: inline-block; margin-top: 56px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
#svc .svc-how .go:hover { border-bottom-color: var(--ink); }
@media (max-width: 760px) {
  #svc .how-modes { grid-template-columns: 1fr; gap: 28px; }
  #svc .ls-items { grid-template-columns: 1fr; gap: 24px; }
}

/* --- аудит: мелкая вёрстка --- */
.btn { white-space: nowrap; }

/* ============================================================
   РЕДАКТОР ТЕКСТА — плавающая пилюля + подсветка правимого
   ============================================================ */
.uf-panel { position: fixed; left: 18px; bottom: 18px; z-index: 4000; display: flex; align-items: center; gap: 10px; font-family: var(--mono); }
.uf-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--ink); color: var(--paper); border: 1px solid var(--w-line2, rgba(255,255,255,.25)); cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; transition: opacity .25s ease, border-color .25s ease; }
.uf-toggle svg { width: 12px; height: 12px; }
.uf-toggle:hover { opacity: 1; }
.uf-panel.on .uf-toggle { opacity: 1; border-color: var(--accent); color: var(--accent); }
.uf-tools { display: none; align-items: center; gap: 14px; padding: 9px 14px; background: var(--ink); color: var(--w-mut); border: 1px solid var(--w-line2, rgba(255,255,255,.25)); font-size: 10.5px; letter-spacing: .06em; }
.uf-panel.on .uf-tools { display: flex; }
.uf-hint { max-width: 34ch; line-height: 1.45; }
.uf-count { color: var(--accent); white-space: nowrap; }
.uf-tools button { background: none; border: none; cursor: pointer; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper); border-bottom: 1px solid var(--w-line2, rgba(255,255,255,.3)); padding: 0 0 2px; }
.uf-tools button:hover { color: var(--accent); border-bottom-color: var(--accent); }
.uf-tools .uf-reset { color: var(--w-mut); }
html.uf-edit [data-uf] { cursor: text; }
html.uf-edit [data-uf]:hover { outline: 1px dashed color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: 3px; }
html.uf-edit [data-uf]:focus { outline: 1px solid var(--accent); outline-offset: 3px; box-shadow: none; }
/* фирменные цвета выделения */
.uf-color.uf-c-accent { color: var(--accent); }
.uf-color.uf-c-ink { color: var(--ink); }
.uf-color.uf-c-muted { color: var(--muted); }
.uf-color.uf-c-paper { color: var(--paper); }
/* пузырь палитры над выделением */
.uf-bubble { position: fixed; z-index: 4100; display: flex; gap: 6px; padding: 8px 10px; background: var(--ink); border: 1px solid var(--w-line2, rgba(245,241,234,.25)); opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
.uf-bubble.show { opacity: 1; pointer-events: auto; transform: none; }
.uf-sw { display: grid; place-items: center; width: 24px; height: 24px; background: none; border: 1px solid var(--w-line2, rgba(245,241,234,.25)); cursor: pointer; padding: 0; }
.uf-sw i { display: block; width: 14px; height: 14px; }
.uf-sw:hover { border-color: var(--accent); }
.uf-sw-x { color: var(--w-mut); font-size: 13px; line-height: 1; font-family: var(--mono); }
@media (max-width: 720px) { .uf-panel { left: 12px; bottom: 12px; flex-wrap: wrap; justify-content: flex-start; } .uf-hint { display: none; } }
@media print { .uf-panel { display: none; } }

/* ============================================================
   ЖУРНАЛЬНАЯ ВЁРСТКА — больше поля, крупнее поля секций, тише лента
   ============================================================ */
@media (min-width: 1181px) { :root { --pad: 96px; } }
.sec > .in { padding-top: clamp(140px, 16vh, 200px); padding-bottom: clamp(140px, 16vh, 200px); }
.shead { grid-template-columns: 190px minmax(0, 1fr); gap: 56px; }
.kick { letter-spacing: .2em; }
#hero > .in { padding-top: 180px; padding-bottom: 140px; }
#hero .lead { margin-top: 36px; }
#hero .cta-row { margin-top: 64px; }
#proof .cases { margin-top: 112px; }
.pos-grid { margin-top: 110px; }
.pos-it { padding-top: 42px; }
.tickerstrip .track { padding: 18px 0; }
.tickerstrip .it { font-size: 12px; padding: 0 40px; }
#svc .ls-grid { margin-top: clamp(40px, 5.5vh, 64px); }
#svc .svc-how { padding-top: clamp(110px, 13vh, 160px); }
#svc .how-grid { margin-top: 84px; }
#svc .how-modes { margin-top: 76px; }
.foot > .in { padding-top: 64px; padding-bottom: 72px; }
@media (max-width: 900px) { .sec > .in { padding-top: 104px; padding-bottom: 104px; } #hero > .in { padding-top: 132px; } }

/* ============================================================
   КУРСОР — терракотовая точка. Меняет форму на том, что живое:
   кольцо на ссылках и кнопках, мягкий диск на строках кейсов.
   Включается только на мыши; в режиме правки текста возвращаем
   системный курсор.
   ============================================================ */
html.uf-cur, html.uf-cur * { cursor: none !important; }
html.uf-cur input, html.uf-cur textarea, html.uf-cur [contenteditable="true"] { cursor: text !important; }
html.uf-cur.uf-edit, html.uf-cur.uf-edit * { cursor: auto !important; }
html.uf-cur.uf-edit [data-uf] { cursor: text !important; }
html.uf-cur.uf-edit .ufc { display: none; }
.ufc { position: fixed; left: 0; top: 0; z-index: 5200; pointer-events: none; opacity: 0; transition: opacity .28s ease; }
.ufc.on { opacity: 1; }
.ufc i { position: absolute; display: block; box-sizing: border-box; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border: 1px solid transparent; border-radius: 50%; background: var(--accent); transition: width .42s var(--ease-out), height .42s var(--ease-out), margin .42s var(--ease-out), background .3s ease, border-color .3s ease, transform .28s var(--ease-out); }
.ufc::after { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .3s ease; }
/* ссылка, кнопка — точка раскрывается в кольцо с центром */
.ufc.link i { width: 38px; height: 38px; margin: -19px 0 0 -19px; background: transparent; border-color: var(--accent); }
.ufc.link::after { opacity: 1; }
/* крупная живая зона (строка кейса, карточка) — тихий диск */
.ufc.zone i { width: 20px; height: 20px; margin: -10px 0 0 -10px; background: color-mix(in srgb, var(--accent) 26%, transparent); border-color: color-mix(in srgb, var(--accent) 58%, transparent); }
.ufc.press i { transform: scale(.62); }
@media (hover: none), (pointer: coarse) { .ufc { display: none; } }
@media (prefers-reduced-motion: reduce) { .ufc i { transition: none; } }

/* --- Radar Clear: архитектурная сетка радара в фоне сцены услуг --- */
#svc .ls-radar { position: absolute; z-index: 0; right: -16vw; bottom: -32vw; width: min(112vh, 1180px); height: min(112vh, 1180px); pointer-events: none; }
#svc .ls-radar circle, #svc .ls-radar line { fill: none; stroke: var(--ink); vector-effect: non-scaling-stroke; }
#svc .ls-radar .rr circle { stroke-width: 1; opacity: .09; }
#svc .ls-radar .rx line { stroke-width: 1; opacity: .07; }
#svc .ls-radar .rsig { fill: var(--accent); stroke: none; opacity: .45; transition: transform 1.1s var(--ease-out); transform-box: fill-box; transform-origin: 50% 50%; }
#svc .ls-radar .rdot { fill: var(--ink); stroke: none; opacity: .16; }
/* сигнал смещается вместе с активным направлением — сцена «сканирует» */
#svc[data-lact="1"] .ls-radar .rsig { transform: translate(-190px, 150px); }
#svc[data-lact="2"] .ls-radar .rsig { transform: translate(-330px, -120px); }
#svc[data-lact="3"] .ls-radar .rsig { transform: translate(60px, 260px); }
#svc .ls-hint { display: none; }
@media (max-width: 900px) { #svc .ls-radar { right: -40vw; bottom: -46vw; width: 148vw; height: 148vw; } }
@media (prefers-reduced-motion: reduce) { #svc .ls-radar .rsig { transition: none; } }

/* ============================================================
   ПРАВКИ ПО АУДИТУ · 04.08.2026
   ============================================================ */
/* 01 · планшет и телефон: шапка секции в одну колонку */
@media (max-width: 1180px) { .shead { grid-template-columns: 1fr; gap: 12px; } }
/* 02 · телефон: карточки и шаги в одну колонку */
@media (max-width: 620px) { .pos-grid, .steps { grid-template-columns: 1fr; } }
/* 03 · тач: зоны нажатия от 44px, рисунок не меняется */
@media (pointer: coarse) {
  .langsw button { min-height: 44px; padding: 0 14px; }
  .navmail, .brand { position: relative; }
  .navmail::before, .brand::before { content: ""; position: absolute; inset: -12px -10px; }
  .hlink { padding-top: 14px; margin-top: -14px; }
}
/* 04 · созвездие 03: тише там, где может коснуться текста */
@media (max-width: 1440px) and (min-width: 901px) { #me .hgeo { opacity: .38; } }
/* 05 · сцена воронки на телефоне: компактная, во всю ширину */
@media (max-width: 700px) {
  .fs { left: var(--pad); right: var(--pad); bottom: 60px; max-width: none; }
  .fs h2 { font-size: 23px; }
  .fs p { font-size: 14px; line-height: 1.55; margin-top: 12px; max-width: none; }
  .fs.p2 p { margin-top: 12px; }
  .fs .fdec { margin-top: 14px; gap: 9px; }
  .fs .fdec .d { font-size: 11.5px; gap: 10px; }
  .fs .fdec .d s { font-size: 11.5px; }
  .fhint { display: none; }
}
/* 07 · терракота в мелком кегле: #C9714F на тёмном, --accent-dk на светлом */
.sec.dark .kick, .sec.dark .sidx b, .pos-it .cn, .fs .fdec .d i { color: #C9714F; }
#svc .kick, #svc .sidx b, #svc .ls-idx, #svc .ls-cell.on .ci { color: var(--accent-dk); }
/* 09 · строка Email: адрес при подписи, стрелка справа */
.cbtn { justify-content: flex-start; gap: 18px; }
.cbtn .cv { margin-right: auto; }
/* 10 · колонка каналов упирается в нижнюю линию формы */
.cta-grid { align-items: stretch; }
.chan { display: flex; flex-direction: column; }
.chan .cbtn { margin-top: auto; }
/* 11 · карточки 03: тексты начинаются с одной линии */
@media (min-width: 901px) { .pos-it h4 { min-height: 2.5em; } }
/* 12 · услуги: счётчик направления заполняет нижнее поле сцены */
#svc .ls-count { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 3; display: flex; gap: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--line-2); }
#svc .ls-count i { font-style: normal; transition: color .35s ease; }
#svc[data-lact="0"] .ls-count i:nth-child(1), #svc[data-lact="1"] .ls-count i:nth-child(2), #svc[data-lact="2"] .ls-count i:nth-child(3), #svc[data-lact="3"] .ls-count i:nth-child(4), #svc[data-lact="4"] .ls-count i:nth-child(4) { color: var(--accent-dk); }
#svc.static .ls-count { display: none; }
@media (max-width: 900px) { #svc .ls-count { display: none; } }
/* 15 · сигнал радара держится в поле, дальше от текста */
#svc .ls-radar .rsig { transform: translate(70px, 200px); }
#svc[data-lact="2"] .ls-radar .rsig { transform: translate(-240px, 320px); }

/* ============================================================
   BOOT · «прыжок сквозь кольцо»: астролябия собирает созвездие,
   игла находит узел — геометрия уносится сквозь экран.
   Тайминги согласованы с land-v6.js: warp 1.62s, boot-done 2.45s.
   ============================================================ */
.boot-geo { width: 212px; height: 212px; overflow: visible; color: var(--paper); animation: bootJump .64s cubic-bezier(.62, 0, .92, .46) 1.72s both; }
.boot-geo circle, .boot-geo line { fill: none; stroke: currentColor; vector-effect: non-scaling-stroke; }
.bg-rot { transform-box: view-box; transform-origin: 50% 50%; animation: bootSpin 64s linear infinite; }
.bg-ring { stroke-width: 1; opacity: .34; stroke-dasharray: 1; stroke-dashoffset: 1; animation: bootDraw 1.15s var(--ease-out) .08s both; }
.bg-tick { stroke-width: 5; opacity: 0; animation: bootToTick .6s ease .55s both; }
.bg-orb { stroke-width: 1; opacity: 0; animation: bootToOrb .7s ease .78s both; }
.bg-const .bg-l { stroke-width: 1; opacity: .44; stroke-dasharray: 1; stroke-dashoffset: 1; animation: bootDraw .5s var(--ease-out) both; animation-delay: calc(.55s + var(--i) * .08s); }
.bg-const .bg-n { fill: currentColor; stroke: none; opacity: 0; transform-box: fill-box; transform-origin: center; animation: bootPopN .45s var(--ease-out) both; animation-delay: calc(.85s + var(--i) * .07s); }
.bg-needle { stroke-width: 1; opacity: .6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: bootDraw .4s var(--ease-out) 1.26s both; }
.bg-star { fill: var(--accent); stroke: none; transform-box: fill-box; transform-origin: center; animation: bootPopA .5s var(--ease-out) 1.4s both; }
.bg-halo { stroke: var(--accent); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.bg-halo.h1 { animation: bootHalo 1.1s var(--ease-out) 1.48s both; }
.bg-halo.h2 { animation: bootHalo 1.1s var(--ease-out) 1.78s both; }
/* волны прыжка: кольцо «отпускает» две окружности наружу */
.bg-wave { stroke: currentColor; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.bg-wave.w1 { animation: bootWave .58s var(--ease-out) 1.72s both; }
.bg-wave.w2 { stroke: var(--accent); animation: bootWave .66s var(--ease-out) 1.8s both; }
@keyframes bootSpin { to { transform: rotate(360deg); } }
@keyframes bootToTick { to { opacity: .22; } }
@keyframes bootToOrb { to { opacity: .3; } }
@keyframes bootHalo { from { opacity: .7; transform: scale(.4); } to { opacity: 0; transform: scale(3.2); } }
@keyframes bootJump { 55% { opacity: 1; } to { transform: scale(7.5); opacity: 0; } }
@keyframes bootWave { from { opacity: .5; transform: scale(1); } to { opacity: 0; transform: scale(2.7); } }
/* подпись: контраст мелкой терракоты (аудит 07) */
.boot-sub { color: #C9714F; }
@media (prefers-reduced-motion: reduce) {
  .boot-geo, .boot-geo * { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
  .bg-wave, .bg-halo { opacity: 0 !important; }
}

/* ============================================================
   ФОРМА ЗАЯВКИ — ответ под кнопкой + ловушка для ботов
   ============================================================ */
.uf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.uf-formnote { min-height: 1.4em; margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; line-height: 1.5; color: var(--w-mut); }
.uf-formnote[data-state="ok"] { color: var(--accent); }
.uf-formnote[data-state="err"] { color: #D98A6A; }
.uf-formnote[data-state="wait"] { opacity: .7; }
.form button[disabled] { opacity: .55; cursor: progress; }
/* состояние сохранения правки — рядом со счётчиком в панели */
.uf-state { white-space: nowrap; color: var(--w-mut); }
.uf-state[data-bad="1"] { color: #D98A6A; }

/* ============================================================
   01 · ТИТУЛЬНЫЙ ЭКРАН НА ТЕЛЕФОНЕ (вертикально)
   Раньше портрет уходил за нижний край: блок текста занимал
   весь экран, и от лица оставалась макушка. Собираем экран
   заново — заголовок, лид, портрет, подпись под ним, ссылка
   прижата к низу. Всё умещается в один экран без прокрутки.
   ============================================================ */
@media (max-width: 700px) and (orientation: portrait) {
  /* Портрет показывается ЦЕЛИКОМ, в своих пропорциях. Две подписи ложатся
     поверх него — в тёмные зоны кадра: имя над головой, ссылка на уровне
     плеч. Так ничего не режется и не остаётся пустого провала.
     Отступы подписей заданы в процентах от ширины, поэтому вся раскладка
     масштабируется вместе с кадром на любом телефоне. */
  #hero { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto auto;
    padding: 0 var(--pad) 30px; }
  /* дети .in встают прямыми участниками сетки — иначе подписи не положить
     в один слой с портретом */
  #hero > .in { display: contents; }

  #hero h1.t { grid-row: 1; margin-top: 104px; font-size: clamp(40px, 12.5vw, 52px); }
  #hero .lead { grid-row: 2; margin-top: 18px; font-size: 16px; line-height: 1.6; max-width: none; }

  /* портрет и обе подписи — в одной ячейке, слоями */
  /* Верх кадра — пустое поле над головой; оно совпадает по цвету с фоном
     секции, поэтому спокойно заводим его под текст: снимок остаётся целым,
     а лицо поднимается в первый экран. */
  #hero .hportrait { grid-row: 3; grid-column: 1; position: relative; inset: auto;
    width: calc(100% + var(--pad) * 2); margin: 30px calc(var(--pad) * -1) -12%;
    height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }

  #hero .hero-eyerow { grid-row: 3; grid-column: 1; position: relative; z-index: 2;
    align-self: start; margin-top: 5%; }
  #hero .hero-eyerow .kick { font-size: 10.5px; letter-spacing: .2em; }

  #hero .cta-row { grid-row: 3; grid-column: 1; position: relative; z-index: 2;
    align-self: start; margin-top: 140%; }
}

/* ============================================================
   ПЛАВНОСТЬ НА ТЕЛЕФОНЕ
   Прокрутка рвалась там, где браузер держал слишком много живых
   слоёв и переходов одновременно. Ниже — только про мобильные,
   рисунок сцен не меняется.
   ============================================================ */
/* Появившийся блок больше не претендует на отдельный слой: пока стоит
   will-change, телефон держит под каждый такой элемент память и такт. */
html.v3 [data-rev].is-in,
html.v3 [data-stagger].is-in,
html.v3 [data-draw].is-in { will-change: auto; }

@media (max-width: 900px) {
  /* лента услуг: сцена не переключается, значит и переходы не нужны */
  #svc .ls-radar .rsig { transition: none; }
  #svc .ls-slide { transition: none; }
  #svc .ls-it { transition: none; }
  /* радар — крупный чертёж во весь экран; в ленте он фон, рисуем его
     дешевле и не заставляем перерисовывать обводку при каждом кадре */
  #svc .ls-radar circle, #svc .ls-radar line { vector-effect: none; }
  #svc .ls-radar { opacity: .5; }
}

/* Портрет в шапке смешивается с фоном — на телефоне это дорогой режим
   на большой площади. Тон снимка тёмный, поверх чёрного фона разницы
   не видно, поэтому смешивание там выключаем. */
@media (max-width: 700px) and (orientation: portrait) {
  #hero .hportrait { mix-blend-mode: normal; }
}

/* ============================================================
   ЧИТАЕМОСТЬ ПРИГЛУШЁННОГО (по аудиту)
   Неактивные пункты в услугах и мелкие надзаголовки были почти
   не видны: номера направлений давали контраст 1.6 при норме 4.5.
   Приём «активное ярче остальных» сохраняем — просто поднимаем
   нижнюю границу до читаемой.
   ============================================================ */
#svc .ls-cell { color: #6E6455; }
#svc .ls-cell .ci { color: #8B8173; }
#svc .ls-cell.past { color: #6E6455; }
#svc .ls-cell:hover { color: var(--ink); }
#svc .ls-cell:hover .ci { color: var(--ink-2); }
/* активный пункт по-прежнему заметно контрастнее соседей */
#svc .ls-cell.on { color: var(--ink); }
#svc .ls-cell.on .ci { color: var(--accent-dk); }
/* надзаголовки секций на светлом поле */
#svc .kick, #clients .kick { color: #6E6455; }
#svc .sidx, #clients .sidx { color: #6E6455; }

/* ============================================================
   05 · УСЛУГИ НА ТЕЛЕФОНЕ — сцена, а не лента
   Кадр держится на экране, направления сменяют друг друга по мере
   прокрутки — тем же приёмом, что и сцена с орбитами. Боковой
   список направлений на узком экране не помещается, поэтому шаг
   показывает счётчик внизу.
   ============================================================ */
@media (max-width: 900px) {
  #svc .lscroll { height: 340vh; }
  #svc .lstick { position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; padding: 0; }
  #svc .lstick > .in { justify-content: center; padding-top: 88px; padding-bottom: 76px; }

  #svc .ls-grid { grid-template-columns: 1fr; gap: 0; margin-top: clamp(20px, 3vh, 32px); padding-top: clamp(18px, 2.4vh, 26px); }
  #svc .ls-stack { display: none; }

  #svc .ls-slides { position: relative; min-height: clamp(320px, 52vh, 460px); }
  #svc .ls-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden;
    padding: 0; border-bottom: 0; justify-content: center;
    transition: opacity .45s var(--ease-out), visibility 0s linear .45s; }
  #svc .ls-slide.on { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-out); }
  #svc .ls-name { font-size: clamp(26px, 7.4vw, 34px); max-width: 16ch; }
  #svc .ls-name span { transform: translateY(112%); transition: transform .7s var(--ease-out); }
  #svc .ls-slide.on .ls-name span { transform: none; transition-delay: .06s; }
  #svc .ls-idx, #svc .ls-it { opacity: 0; transform: translateY(12px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
  #svc .ls-slide.on .ls-idx { opacity: 1; transform: none; transition-delay: .05s; }
  #svc .ls-slide.on .ls-it { opacity: 1; transform: none; transition-delay: .16s; }
  #svc .ls-slide.on .ls-it:last-child { transition-delay: .24s; }
  #svc .ls-items { grid-template-columns: 1fr; gap: 20px; margin-top: 26px; padding-top: 20px; }
  #svc .ls-it p { max-width: none; }
  #svc .ls-ghost { display: block; right: -4px; top: 8%; transform: none;
    font-size: clamp(96px, 30vw, 150px); opacity: .18; }

  /* шаг сцены: четыре засечки внизу экрана */
  #svc .ls-count { display: flex; bottom: 26px; gap: 14px; }
  #svc.static .ls-count { display: none; }
  #svc .ls-radar { right: -34vw; bottom: -40vw; width: 132vw; height: 132vw; opacity: .42; }
}

/* ============================================================
   03 · КТО Я НА ТЕЛЕФОНЕ — сцена вместо трёх карточек подряд
   Экран держится, карточки сменяют друг друга по прокрутке.
   Класс me-stage ставит upsideflow.js — без него секция остаётся
   обычной, как на десктопе.
   ============================================================ */
@media (max-width: 900px) {
  /* обрезку снимаем: внутри неё липкий блок прилипал бы к самой секции,
     а не к экрану. Декоративный круг на телефоне и так не показывается,
     обрезать больше нечего. */
  #me.me-stage { position: relative; height: 280vh; padding: 0; overflow: visible; }
  #me.me-stage > .in { position: sticky; top: 0; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 92px; padding-bottom: 84px; }
  #me.me-stage .shead { flex: none; }

  #me.me-stage .pos-grid { position: relative; display: block; flex: none;
    margin-top: clamp(26px, 4vh, 44px); min-height: clamp(220px, 34vh, 300px); }
  #me.me-stage .pos-it { position: absolute; inset: 0; padding-top: 26px;
    border-top: 1px solid var(--w-line2);
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), visibility 0s linear .45s; }
  #me.me-stage .pos-it.on { opacity: 1; visibility: visible; transform: none;
    transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
  #me.me-stage .pos-it h4 { min-height: 0; margin-top: 12px; font-size: clamp(21px, 5.6vw, 26px); }
  #me.me-stage .pos-it p { margin-top: 14px; font-size: 15.5px; line-height: 1.6; }

  /* шаг сцены */
  #me.me-stage > .in { position: sticky; }
  #me.me-stage .me-count { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    z-index: 3; display: flex; gap: 14px; font-family: var(--mono); font-size: 11px;
    letter-spacing: .12em; color: rgba(245, 241, 234, .3); }
  #me.me-stage .me-count i { font-style: normal; transition: color .35s ease; }
  #me.me-stage[data-meact="0"] .me-count i:nth-child(1),
  #me.me-stage[data-meact="1"] .me-count i:nth-child(2),
  #me.me-stage[data-meact="2"] .me-count i:nth-child(3) { color: #C9714F; }
}

/* счётчик шагов секции «Кто я» существует только в режиме сцены */
#me .me-count { display: none; }
@media (max-width: 900px) { #me.me-stage .me-count { display: flex; } }

/* ============================================================
   01 · СТЫК ПОРТРЕТА С ФОНОМ
   Тени снимка светлее фона секции на 1–10 уровней — следы сжатия
   в плоской тёмной зоне. Портрет наложен в режиме «светлее», то
   есть берётся максимум из двух слоёв; поэтому прямоугольник кадра
   проступал чуть более светлым полем с чёткой вертикальной кромкой.
   Поднимаем контраст снимка: тени уходят НИЖЕ фона, максимум всегда
   берёт фон — граница исчезает арифметически, без размытия и масок.
   Средние тона и лицо не меняются (150 → 153).
   ============================================================ */
#hero .hportrait { filter: contrast(1.14); }

/* На очень широких портрет отходит от края экрана — там правая кромка
   режет плечо. Растворяем последние проценты кадра. */
@media (min-width: 1680px) {
  #hero .hportrait {
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 4%);
            mask-image: linear-gradient(to left, transparent 0, #000 4%);
  }
}

/* На телефоне смешивание выключено ради плавности — там снимок ложится
   как есть, и фильтр не нужен: он увёл бы тени ниже фона уже буквально. */
@media (max-width: 700px) and (orientation: portrait) {
  #hero .hportrait { filter: none; }
}
