/* ═══════════════════════════════════════════════════════════════
   PL · Актив ССт ЮФ — v2.1 «лёгкая» версия
   Дизайн-система по брендбуку Personal Lawyer.
   Шрифты: macherie (заголовки), Futura PT Book / Italic (текст),
           Futura PT Bold + наклон (важное), Kindentosca (акцент).

   Правила производительности (чтобы на Android не было лагов и артефактов):
   · нет backdrop-filter, mix-blend-mode, filter: blur, SVG-фильтров, 3D-трансформаций;
   · анимируются только transform и opacity (их считает видеокарта);
   · бесконечные анимации — только у красных кнопок и звёзд, и они ставятся
     на паузу, когда блок вне экрана (.anim-zone.off);
   · шум брендбука — готовая PNG-картинка, а не фильтр.
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: "Macherie"; src: url("assets/fonts/macherie.woff") format("woff"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Kindentosca"; src: url("assets/fonts/kindentosca.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Futura PT"; src: url("assets/fonts/futura-pt-book.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Futura PT"; src: url("assets/fonts/futura-pt-book-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Futura PT"; src: url("assets/fonts/futura-pt-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --plum: #4B204B;  --indigo: #5A54B3;  --periwinkle: #8A84E9;  --lilac: #D9BDFF;
  --wine: #720022;  --crimson: #B8022A; --coral: #F85858;       --blush: #FF958E;
  --cream: #FFF5E0; --graphite: #2E2E2E; --snow: #FFFDFD; --ink: #0A060F;

  --g-crimson-radial: radial-gradient(120% 120% at 50% 45%, #720022 0%, #B8022A 78%);
  --g-crimson-coral:  linear-gradient(90deg, #B8022A 0%, #F85858 100%);
  --g-coral:          linear-gradient(180deg, #FB716E 0%, #FF938C 100%);
  --g-lilac:          linear-gradient(180deg, #8D86EA 0%, #CDB4FC 100%);
  --g-indigo:         linear-gradient(180deg, #8882E7 0%, #615BBB 100%);
  --g-deep:           radial-gradient(90% 90% at 50% 50%, #5950AB 0%, #52397D 100%);
  --g-wine-plum:      linear-gradient(180deg, #B2042C 0%, #4F1F4A 100%);
  --g-rose-peri:      linear-gradient(180deg, #B54863 0%, #7F78B2 100%);
  --g-crimson-peri:   linear-gradient(180deg, #B8022A 0%, #8D7BDB 100%);
  --g-beige:          radial-gradient(75% 75% at 50% 50%, #FFF3DE 0%, #FF968F 100%);

  --f-head: "Macherie", "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  --f-body: "Futura PT", "Futura", "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
  --f-acc:  "Kindentosca", "Snell Roundhand", "Segoe Script", cursive;
  --lh-body: .97;   /* брендбук: межстрочный у основного текста 97% */
  --lh-acc:  .8;    /* брендбук: акцент в несколько строк — 80% */
  --lh-read: 1.14;

  --r-xl: 30px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --pad: 20px;
  --top-h: 58px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --noise: url("assets/noise.png");

  /* отступы под вырез/статус-бар: JS выставляет их только в полноэкранном режиме Telegram */
  --sat: 0px;
  --sab: env(safe-area-inset-bottom, 0px);
}

:root, [data-theme="dark"] {
  --bg: #0A060F; --bg-2: #140A18;
  --text: #FFF5E0; --muted: rgba(255,245,224,.66); --faint: rgba(255,245,224,.4);
  --line: rgba(255,245,224,.13); --surface: rgba(255,245,224,.055); --surface-2: rgba(255,245,224,.09);
  --bar: #150B1A;          /* сплошной фон панелей вместо «стекла» */
  --accent: #F85858; --accent-2: #D9BDFF;
  --paper: #FFF5E0; --paper-ink: #2E2E2E;
  --shadow: 0 20px 44px -24px rgba(0,0,0,.85);
}
[data-theme="light"] {
  --bg: #FFF5E0; --bg-2: #FFEBD2;
  --text: #0A060F; --muted: rgba(46,46,46,.74); --faint: rgba(46,46,46,.48);
  --line: rgba(10,6,15,.12); --surface: rgba(255,253,253,.7); --surface-2: #FFFDFD;
  --bar: #FFF9EE;
  --accent: #B8022A; --accent-2: #5A54B3;
  --paper: #FFFDFD; --paper-ink: #2E2E2E;
  --shadow: 0 18px 40px -24px rgba(75,32,75,.5);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + var(--sat) + 8px); background: var(--bg); }
body {
  font-family: var(--f-body); font-size: 17px; line-height: var(--lh-body);
  color: var(--text); background: var(--bg); min-height: 100vh; overflow-x: hidden; overflow-x: clip;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--coral); color: var(--cream); }
b, strong { font-weight: 700; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.ico--fill { fill: currentColor; stroke: none; width: 16px; height: 16px; }

/* Шум брендбука («добавляйте на каждую плашку») — статичная PNG, без режимов наложения */
.noisy, .plate, .proj, .feat, .step, .footer, .sh-hero, .rg { position: relative; isolation: isolate; }
.noisy::after, .plate::after, .proj::after, .feat::after, .step::after, .footer::after, .sh-hero::after, .rg::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: var(--noise); background-size: 160px 160px;
}

/* Бесконечные анимации на паузе, пока блок не на экране */
.anim-zone.off, .anim-zone.off *, .anim-zone.off *::before, .anim-zone.off *::after { animation-play-state: paused !important; }

#progress { position: fixed; z-index: 45; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #B8022A, #F85858, #8A84E9, #D9BDFF);
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; opacity: 0; }
body.in-app #progress { opacity: 1; }

.accent { font-family: var(--f-acc); font-weight: 400; text-transform: none; letter-spacing: 0; line-height: var(--lh-acc); color: var(--accent); }
.kicker { font-family: var(--f-body); font-weight: 700; font-style: italic; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.kicker--dim { opacity: .55; }
.h-display { font-family: var(--f-head); text-transform: uppercase; font-weight: 600; line-height: .92; letter-spacing: .01em; }

.screen { display: none; }
.screen.is-active { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes boom { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }

/* ── Шторка перехода (3 полосы цветов бренда; только transform) ── */
.curtain { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; grid-template-rows: 1fr 1fr 1fr; visibility: hidden; }
.curtain i { display: block; margin: -1px 0; transform: translateX(-101%); will-change: transform; }
.curtain i:nth-child(1) { background: #B8022A; }
.curtain i:nth-child(2) { background: #5A54B3; }
.curtain i:nth-child(3) { background: #4B204B; }
.curtain.is-cover { visibility: visible; }
.curtain.is-cover i { animation: curIn .42s var(--ease-io) forwards; }
.curtain.is-cover i:nth-child(2) { animation-delay: .06s; }
.curtain.is-cover i:nth-child(3) { animation-delay: .12s; }
.curtain.is-reveal { visibility: visible; }
.curtain.is-reveal i { transform: none; animation: curOut .48s var(--ease-io) forwards; }
.curtain.is-reveal i:nth-child(2) { animation-delay: .06s; }
.curtain.is-reveal i:nth-child(3) { animation-delay: .12s; }
@keyframes curIn { from { transform: translateX(-101%); } to { transform: none; } }
@keyframes curOut { from { transform: none; } to { transform: translateX(101%); } }

/* ── Boot ── */
.boot { position: fixed; inset: 0; z-index: 50; background: var(--ink); display: none; place-items: center; }
.boot.is-active { display: grid; }
.boot__mark { width: 190px; }
.boot__mark img { width: 100%; height: auto; }
.boot__line { position: absolute; bottom: calc(18% + var(--sab)); width: 120px; height: 2px; background: rgba(255,245,224,.12); overflow: hidden; }
.boot__line span { position: absolute; inset: 0; width: 40%; background: var(--g-crimson-coral); animation: load 1.1s var(--ease-out) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ═════════════ GATE ═════════════ */
.gate { position: fixed; inset: 0; z-index: 40; overflow: hidden; color: var(--cream);
  background: radial-gradient(70% 45% at 100% 0%, rgba(184,2,42,.75), transparent 70%), radial-gradient(70% 45% at 0% 100%, rgba(90,84,179,.7), transparent 70%), var(--ink);
  padding: calc(18px + var(--sat)) 26px calc(14px + var(--sab)); flex-direction: column; align-items: center; }
.gate.is-active { display: flex; }
.gate__star { position: absolute; pointer-events: none; }
.gate__star--1 { width: 64px; height: 64px; top: 22%; left: -14px; fill: var(--coral); }
.gate__star--2 { width: 24px; height: 24px; top: 16%; right: 18%; fill: var(--cream); }
.gate__top { position: relative; width: 100%; display: flex; justify-content: space-between; z-index: 2; }
.gate__hero { position: relative; z-index: 2; text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }
.gate__logo { width: min(42vw, 176px); height: auto; }
.gate__title { margin: 0; display: flex; flex-direction: column; align-items: center; }
.gate__title-main { display: block; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: clamp(54px, 17vw, 84px); line-height: .9; letter-spacing: .02em; }
/* правка №3: надпись-акцент сдвинута вниз и вправо — не налезает на «Д» */
.gate__title-acc { display: block; margin: -.02em 0 0 1.4em; transform: rotate(-4deg); white-space: nowrap; font-size: clamp(30px, 9vw, 42px); color: var(--blush); }
.gate__hint { margin: 16px 0 0; color: rgba(255,245,224,.72); font-size: 16px; min-height: 1em; }
.gate__hint.is-error { color: var(--blush); }
.pin { position: relative; z-index: 2; margin: 12px 0 16px; min-height: 26px; display: grid; place-items: center; width: 100%; }
.pin__dots { display: flex; gap: 16px; }
.pin__dot { width: 15px; height: 15px; transform: rotate(45deg); border: 1.6px solid rgba(255,245,224,.55); transition: transform .3s var(--ease-spring), background-color .2s, border-color .2s; }
.pin__dot.is-on { background: var(--coral); border-color: var(--coral); transform: rotate(225deg) scale(1.15); }
.pin.is-shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97); }
.pin.is-ok .pin__dot { background: var(--lilac); border-color: var(--lilac); }
@keyframes shake { 10%,90% { transform: translateX(-2px); } 20%,80% { transform: translateX(4px); } 30%,50%,70% { transform: translateX(-8px); } 40%,60% { transform: translateX(8px); } }
.pin__text { width: min(100%, 300px); height: 52px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255,245,224,.3); background: rgba(255,245,224,.06); color: var(--cream); font: 20px var(--f-body); text-align: center; letter-spacing: .1em; outline: none; }
.pin__text:focus { border-color: var(--lilac); }
.keypad { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 22px; width: min(100%, 300px); }
.key { position: relative; aspect-ratio: 1; width: 100%; max-width: 74px; justify-self: center; border-radius: 50%;
  font-family: var(--f-head); font-size: 30px; font-weight: 600; color: var(--cream);
  background: rgba(255,245,224,.08); border: 1px solid rgba(255,245,224,.15);
  display: grid; place-items: center; transition: transform .14s, background-color .14s; }
.key:active, .key.is-press { transform: scale(.88); background: rgba(248,88,88,.45); }
.key--void { visibility: hidden; }
.key--ghost { background: transparent; border-color: transparent; }
.key--ghost:active { background: rgba(255,245,224,.1); }
.gate__abc { position: relative; z-index: 2; margin-top: 12px; padding: 6px 10px; font-size: 14px; font-style: italic; color: rgba(255,245,224,.58); text-decoration: underline; text-underline-offset: 3px; }
.gate__submit { position: relative; z-index: 2; margin-top: 14px; width: min(100%, 300px); }
.gate__foot { position: relative; z-index: 2; margin: 10px 0 0; font-size: 13px; font-style: italic; color: rgba(255,245,224,.48); text-align: center; }
.gate.is-in .gate__hero, .gate.is-in .keypad { animation: fadeUp .5s var(--ease-out) backwards; }
.gate.is-in .keypad { animation-delay: .08s; }
@media (max-height: 680px) { .gate__logo { width: 96px; } .gate__title-main { font-size: 46px; } .key { max-width: 58px; font-size: 24px; } .keypad { gap: 8px 22px; } }

.outside { min-height: 100vh; padding: 40px 28px; background: var(--g-wine-plum); color: var(--cream); text-align: center; }
.outside.is-active { display: grid; place-content: center; justify-items: center; gap: 10px; }
.outside img { width: 170px; height: auto; }
.outside h1 { font-size: 46px; margin: 10px 0 0; }
.outside p { max-width: 300px; opacity: .8; }

/* ═════════════ APP ═════════════ */
/* Верхняя панель: прозрачная над фото, сплошная после прокрутки (без размытия) */
.topbar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: calc(var(--top-h) + var(--sat)); display: flex; align-items: center; justify-content: space-between;
  padding: var(--sat) var(--pad) 0; color: var(--cream); background: transparent; border-bottom: 1px solid transparent; transition: background-color .25s, color .25s, border-color .25s; }
.topbar.is-solid { background: var(--bar); color: var(--text); border-bottom-color: var(--line); }
.topbar__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.topbar__brand img { width: 30px; height: 30px; border-radius: 9px; }
.topbar__brand i { font-weight: 400; opacity: .6; }
.topbar__actions { display: flex; gap: 8px; }
.topbar__btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(10,6,15,.35); border: 1px solid rgba(255,245,224,.25); transition: transform .15s; }
.topbar__btn:active { transform: scale(.88); }
.topbar.is-solid .topbar__btn { background: var(--surface-2); border-color: var(--line); }

/* ── HERO: дуотон-фото (цвет уже «запечён» в картинку) ── */
.hero { position: relative; min-height: clamp(560px, 94vh, 860px); overflow: hidden; color: var(--cream); background: linear-gradient(165deg, #B8022A, #4B204B 60%, #2a1450); isolation: isolate; }
.hero__photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: 0; transition: opacity .7s ease; }
.hero__photo.is-loaded { opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(10,6,15,.62) 0%, rgba(10,6,15,0) 20%, rgba(10,6,15,.12) 45%, rgba(10,6,15,.72) 74%, var(--bg) 100%); }
.hero__pen { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.pen-draw { fill: none; stroke: rgba(255,245,224,.7); stroke-width: 1.3; stroke-linecap: square; stroke-dasharray: 900; stroke-dashoffset: 900; }
.hero.is-in .pen-draw { animation: draw 1.6s var(--ease-out) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__star { position: absolute; z-index: -1; width: 104px; height: 104px; right: -24px; top: calc(var(--top-h) + var(--sat) + 40px); fill: var(--coral); opacity: .92; animation: spin 40s linear infinite; }
.hero__inner { position: relative; padding: calc(var(--top-h) + var(--sat) + 40px) var(--pad) 70px; min-height: inherit; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__hello { margin: 0 0 6px; font-weight: 700; font-style: italic; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--lilac); }
.hero__title { display: block; width: 100%; height: auto; overflow: visible; margin: 0 -2px; }
.svg-head { font-family: var(--f-head); font-weight: 600; font-size: 108px; fill: url(#titleGrad); letter-spacing: 0; }
.svg-acc { font-family: var(--f-acc); font-size: 74px; fill: url(#accGrad); }
.svg-acc--knock { fill: #000; stroke: #000; stroke-width: 11; stroke-linejoin: round; }
.hero__lead { max-width: 340px; margin: 12px 0 20px; font-size: 18px; color: rgba(255,245,224,.94); text-shadow: 0 2px 12px rgba(10,6,15,.55); }
.hero__lead b { font-style: italic; }
.hero__cta { display: flex; align-items: center; gap: 14px; }
.hero__side { display: grid; gap: 10px; flex: 1; min-width: 0; justify-items: start; }
.hero__note { margin: 0; font-size: 13.5px; color: rgba(255,245,224,.8); }
.hin { opacity: 0; transform: translateY(26px); }
.hero.is-in .hin { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.hero.is-in .hin:nth-child(2) { transition-delay: .08s; }
.hero.is-in .hin:nth-child(3) { transition-delay: .16s; }
.hero.is-in .hin:nth-child(4) { transition-delay: .24s; }

/* ── Правка №1: круглая большая красная кнопка с текстом по кругу ── */
.redbtn { position: relative; flex: none; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; }
.redbtn__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 20s linear infinite; overflow: visible; will-change: transform; }
.redbtn__ring text { font-family: var(--f-body); font-weight: 700; font-size: 14.5px; letter-spacing: .12em; fill: var(--cream); }
.redbtn__core { position: relative; width: 102px; height: 102px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #FF958E 0%, #F85858 30%, #B8022A 70%, #720022 100%);
  box-shadow: 0 0 0 5px rgba(255,245,224,.14), 0 16px 34px -8px rgba(184,2,42,.9), inset 0 -10px 18px rgba(114,0,34,.6), inset 0 6px 12px rgba(255,255,255,.25);
  transition: transform .2s var(--ease-out); }
.redbtn:active .redbtn__core { transform: scale(.88); }
.redbtn__label { font-family: var(--f-head); font-weight: 600; font-size: 25px; letter-spacing: .08em; color: var(--cream); }
.redbtn__pulse { position: absolute; width: 102px; height: 102px; border-radius: 50%; border: 2px solid rgba(248,88,88,.85); animation: pulse 2.4s var(--ease-out) infinite; pointer-events: none; }

/* ── Кнопки ── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: .01em; transition: transform .15s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.95); }
.btn--lg { min-height: 56px; padding: 0 24px; font-size: 17px; }
.btn--red { background: var(--g-crimson-coral); color: var(--cream); box-shadow: 0 12px 28px -12px rgba(184,2,42,.9); }
.btn--glass { background: rgba(10,6,15,.38); color: var(--cream); border: 1px solid rgba(255,245,224,.4); }
.btn--cream { background: var(--cream); color: var(--ink); }
[data-theme="light"] .btn--cream { background: var(--ink); color: var(--cream); }
.btn--violet { background: var(--g-indigo); color: var(--cream); box-shadow: 0 12px 28px -14px rgba(90,84,179,.9); }
.btn--outline { border: 1.5px solid var(--line); color: var(--text); background: transparent; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy > * { visibility: hidden; }
.btn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 2.5px solid rgba(255,245,224,.35); border-top-color: var(--cream); animation: spin .7s linear infinite; }
.btn--outline.is-busy::after { border-color: var(--line); border-top-color: var(--text); }
[data-theme="light"] .btn--cream.is-busy::after { border-color: rgba(255,245,224,.35); border-top-color: var(--cream); }

/* ── Текст по кривой (двигается только при прокрутке и только на экране) ── */
.pathline { position: relative; height: 128px; margin: -44px 0 0; z-index: 3; pointer-events: none; }
.pathline svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pathline__pen { fill: none; stroke: var(--accent-2); stroke-width: .7; opacity: .7; stroke-dasharray: 2 5; }
.pathline__text { font-family: var(--f-head); font-weight: 600; font-size: 18px; letter-spacing: .03em; fill: var(--text); }
.pathline__text .acc { font-family: var(--f-acc); font-weight: 400; font-size: 25px; fill: var(--coral); letter-spacing: 0; }
.pathline__text .st { fill: var(--periwinkle); }

/* ═════════════ Секции ═════════════ */
.section { position: relative; padding: 40px var(--pad) 26px; }
.sec-head { position: relative; margin-bottom: 22px; }
.sec-head__n { display: inline-block; font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--accent); letter-spacing: .1em; padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px; margin-bottom: 12px; }
.sec-head__t { margin: 0; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: clamp(34px, 10vw, 46px); line-height: .92; letter-spacing: .005em; }
.sec-head__t .accent { display: block; width: max-content; max-width: 100%; margin: -.1em 0 0 .6em; font-size: 1.05em; color: var(--accent); transform: rotate(-3deg); transform-origin: left; }
.sec-head__d { margin: 12px 0 0; max-width: 340px; color: var(--muted); font-size: 16px; }

/* Появление при прокрутке: один раз, только opacity + transform */
.rv { opacity: 0; transform: translateY(22px); }
.rv.in { opacity: 1; transform: none; transition: opacity .55s var(--ease-out), transform .65s var(--ease-out); }
.sec-head.rv { transform: none; }
.sec-head.rv > * { opacity: 0; transform: translateY(16px); }
.sec-head.rv.in > * { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.sec-head.rv.in > :nth-child(2) { transition-delay: .06s; }
.sec-head.rv.in > :nth-child(3) { transition-delay: .14s; }
.sec-head.rv .accent { opacity: 0; transform: rotate(-3deg) translateX(-14px); }
.sec-head.rv.in .accent { opacity: 1; transform: rotate(-3deg); transition: opacity .6s .22s, transform .8s var(--ease-out) .22s; }

/* ── Бенто ── */
.bento { display: grid; grid-template-columns: 1fr; gap: 12px; }
.plate { overflow: hidden; text-align: left; border-radius: var(--r-xl); padding: 18px; min-height: 200px; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: var(--cream); box-shadow: var(--shadow); transition: transform .18s var(--ease-out); }
.plate:active { transform: scale(.975); }
.plate > * { position: relative; z-index: 2; }
.plate--urgent { min-height: 360px; background: var(--g-crimson-radial); align-items: center; text-align: center; padding-top: 34px; }
.plate--idea { min-height: 200px; background: var(--g-lilac); color: var(--plum); }
.plate__tag { position: absolute !important; top: 16px; left: 16px; font-weight: 700; font-style: italic; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: rgba(255,245,224,.16); border: 1px solid rgba(255,245,224,.35); }
.plate__tag--dark { background: rgba(75,32,75,.1); border-color: rgba(75,32,75,.3); }
.plate__title { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 34px; line-height: .9; }
.plate__acc { font-size: 40px; color: var(--crimson); transform: rotate(-6deg); margin: 0 0 2px 44%; width: max-content; }
.plate__text { font-size: 16px; max-width: 310px; opacity: .92; }
.plate--idea .plate__text { padding-right: 56px; }
.plate__go { position: absolute !important; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--crimson); }
.plate__go--dark { background: var(--plum); color: var(--cream); }
.plate__deco { position: absolute !important; z-index: 0 !important; pointer-events: none; }
.plate__deco--burst { width: 240px; height: 240px; right: -80px; top: -80px; fill: rgba(138,132,233,.38); }
.plate__deco--flower { width: 90px; height: 90px; right: -18px; top: -18px; fill: rgba(184,2,42,.28); }

/* большая круглая кнопка в плашке — «ударные волны» */
.bigred { position: relative; width: 180px; height: 180px; margin: 6px auto 12px; display: grid; place-items: center; }
.bigred__wave { position: absolute; inset: 26px; border-radius: 50%; border: 1.5px solid rgba(255,245,224,.75); animation: pulse 2.8s var(--ease-out) infinite; }
.bigred__wave--2 { animation-delay: 1.4s; }
.bigred__core { position: relative; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #FF958E 0%, #F85858 32%, #B8022A 72%, #5a0019 100%);
  box-shadow: 0 0 0 7px rgba(255,245,224,.14), 0 0 0 15px rgba(138,132,233,.28), 0 20px 40px -10px rgba(0,0,0,.6), inset 0 -12px 20px rgba(114,0,34,.6), inset 0 8px 14px rgba(255,255,255,.28);
  transition: transform .2s var(--ease-out); }
.plate--urgent:active .bigred__core { transform: scale(.9); }
.bigred__core svg { width: 46px; height: 46px; fill: var(--cream); }

.myrep { margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); font-weight: 700; text-align: left; transition: transform .15s; }
.myrep:active { transform: scale(.98); }
.myrep span { flex: 1; }

/* ── Закреп ── */
.feat { overflow: hidden; display: block; width: 100%; text-align: left; border-radius: var(--r-xl); padding: 20px; margin-bottom: 14px; min-height: 170px; color: var(--cream); box-shadow: var(--shadow); transition: transform .18s var(--ease-out);
  background: radial-gradient(55% 60% at 92% 0%, rgba(184,2,42,.95), transparent 70%), var(--g-deep); }
.feat:active { transform: scale(.98); }
.feat > * { position: relative; z-index: 2; }
.feat__badge { position: absolute !important; right: 16px; top: 16px; width: 74px; height: 74px; display: grid; place-items: center; }
.feat__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--cream); }
.feat__badge span { position: relative; z-index: 1; font-family: var(--f-head); font-weight: 600; font-size: 26px; color: var(--crimson); }
.feat__k { display: block; font-weight: 700; font-style: italic; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .78; }
.feat__t { display: block; padding-right: 84px; margin: 34px 0 4px; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 34px; line-height: .92; }
.feat__acc { display: block; font-family: var(--f-acc); text-transform: none; font-size: 34px; color: var(--blush); margin: -4px 0 6px 30px; transform: rotate(-4deg); width: max-content; }
.feat__d { display: block; font-size: 16px; opacity: .86; max-width: 250px; }
.feat__url { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: rgba(255,245,224,.14); border: 1px solid rgba(255,245,224,.3); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.links.rv { transform: none; }
.links.rv li { opacity: 0; transform: translateY(14px); }
.links.rv.in li { opacity: 1; transform: none; transition: opacity .45s var(--ease-out) var(--d, 0s), transform .55s var(--ease-out) var(--d, 0s); }
.link { position: relative; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; transition: background-color .15s; }
.link:active { background: var(--surface-2); }
.link__n { font-family: var(--f-head); font-weight: 600; font-size: 30px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); text-align: center; }
.link:active .link__n { color: var(--accent); }
.link__t { display: block; font-weight: 700; font-size: 19px; line-height: 1.15; }
.link__d { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.link__u { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; word-break: break-all; }
.link__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: transform .2s var(--ease-out); }
.link:active .link__go { transform: rotate(45deg); }

/* ── Галерея: колода полароидов (swipe-стек) ── */
.section--gallery { overflow: hidden; padding-bottom: 34px; }
.deck { position: relative; height: min(122vw, 520px); margin: 0 auto; max-width: 420px; touch-action: pan-y; }
.polaroid { position: absolute; left: 50%; top: 50%; margin: 0; width: min(78vw, 320px); padding: 12px 12px 56px; background: #FFFDFD; border-radius: 6px;
  box-shadow: 0 18px 36px -18px rgba(0,0,0,.75); color: var(--ink);
  transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transition: transform .45s var(--ease-out), opacity .3s; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.polaroid.is-top { will-change: transform; }
.polaroid.is-drag { transition: none; }
.polaroid.is-fly { transition: transform .32s cubic-bezier(.4,0,.7,.4), opacity .32s; opacity: 0; }
.polaroid__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e8dccc; }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.polaroid__dim { position: absolute; inset: 0; background: rgba(10,6,15,.28); opacity: 1; transition: opacity .3s; }
.polaroid.is-top .polaroid__dim { opacity: 0; }
.polaroid__cap { position: absolute; left: 0; right: 0; bottom: 13px; text-align: center; font-family: var(--f-acc); font-size: 28px; color: var(--crimson); line-height: 1; transform: rotate(-2deg); }
.polaroid__tape { position: absolute; z-index: 2; top: -11px; left: 50%; width: 88px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgba(217,189,255,.85); }
.deck__nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 4px; }
.deck__btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); transition: transform .15s; }
.deck__btn:active { transform: scale(.86); }
.deck__count { font-family: var(--f-head); font-weight: 600; font-size: 18px; min-width: 64px; text-align: center; }

/* ── Методички ── */
.section--paper { background: var(--bg-2); border-radius: 36px 36px 0 0; margin-top: 20px; }
[data-theme="dark"] .section--paper { background: linear-gradient(180deg, #160B1B, #0A060F); }
.seg { display: flex; gap: 6px; margin: 0 calc(var(--pad) * -1) 18px; padding: 4px var(--pad); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.seg::-webkit-scrollbar { display: none; }
.seg__b { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); border: 1px solid var(--line); transition: color .2s, background-color .2s, border-color .2s; }
.seg__b.is-on { color: var(--cream); background: var(--crimson); border-color: transparent; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc { position: relative; overflow: hidden; text-align: left; border-radius: 18px 18px 18px 4px; padding: 14px 14px 16px; min-height: 196px;
  display: flex; flex-direction: column; gap: 6px; color: var(--paper-ink); background-color: var(--paper);
  background-image: linear-gradient(rgba(90,84,179,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(90,84,179,.12) 1px, transparent 1px);
  background-size: 14px 14px; background-position: -1px -1px; box-shadow: 0 14px 26px -18px rgba(10,6,15,.7); transition: transform .15s; }
.docs.rv { transform: none; }
.docs.rv .doc { opacity: 0; transform: translateY(20px); }
.docs.rv.in .doc { opacity: 1; transform: none; transition: opacity .45s var(--ease-out) var(--d, 0s), transform .55s var(--ease-out) var(--d, 0s); }
.docs .doc.is-new { animation: docIn .4s var(--ease-out) var(--d, 0s) backwards; }
@keyframes docIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.docs .doc:active { transform: scale(.96); transition: transform .12s; }
.doc::after { content: ""; position: absolute; right: 0; top: 0; width: 26px; height: 26px; background: linear-gradient(225deg, var(--bg-2) 50%, rgba(0,0,0,.12) 50%, #E9DFCB 60%); }
[data-theme="dark"] .doc::after { background: linear-gradient(225deg, #140a18 50%, rgba(0,0,0,.2) 50%, #E9DFCB 60%); }
.doc__type { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--cream); background: var(--g-crimson-coral); }
.doc--rules .doc__type { background: var(--g-indigo); }
.doc--pr .doc__type { background: var(--g-rose-peri); }
.doc--new .doc__type { background: var(--g-crimson-peri); }
.doc__t { margin-top: auto; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: min(16px, 3.75vw); letter-spacing: -.01em; line-height: .95; color: var(--ink); }
.doc__d { font-size: 13.5px; color: rgba(46,46,46,.78); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doc__m { font-size: 12px; font-weight: 700; font-style: italic; color: var(--crimson); }
.doc__star { position: absolute; right: 12px; top: 32px; width: 26px; height: 26px; fill: var(--periwinkle); opacity: .8; }
.doc.is-hidden { display: none; }
.doc--wide { grid-column: 1 / -1; min-height: 150px; }
.doc--wide .doc__t { font-size: 20px; }
.doc--wide .doc__d { max-width: 80%; }
@media (min-width: 560px) { .doc__t { font-size: 17px; } }

/* ── Проекты: карусель со «щелчком» (нативная прокрутка браузера — без JS-анимаций и наложений) ── */
.projs { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
  margin: 0 calc(var(--pad) * -1); padding: 6px var(--pad) 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; outline: none; }
.projs::-webkit-scrollbar { display: none; }
.proj { flex: 0 0 min(84%, 400px); scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; min-height: 390px;
  border-radius: var(--r-xl); padding: 20px; color: var(--cream); box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-align: left; }
.proj > * { position: relative; z-index: 2; }
.proj--red { background: var(--g-wine-plum); }
.proj--violet { background: var(--g-crimson-peri); }
.proj--coral { background: var(--g-coral); color: var(--ink); }
.proj--lilac { background: var(--g-lilac); color: var(--plum); }
.proj__top { display: flex; justify-content: space-between; align-items: center; }
.proj__size { font-weight: 700; font-style: italic; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; border: 1px solid currentColor; opacity: .85; }
.proj__idx { font-family: var(--f-head); font-weight: 600; font-size: 15px; opacity: .7; }
.proj__short { position: absolute !important; z-index: 0 !important; right: -8px; top: 40px; font-family: var(--f-head); font-weight: 600; font-size: 128px; line-height: .8; opacity: .16; letter-spacing: -.02em; pointer-events: none; }
.proj__t { margin: auto 0 10px; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 36px; line-height: .9; max-width: 92%; }
.proj__t--long { font-size: min(25px, 6.4vw); }
.proj__l { font-size: 16px; opacity: .92; max-width: 320px; margin: 0; }
.proj__more { margin-top: 16px; align-self: flex-start; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s; }
.proj__more:active { transform: scale(.94); }
.proj--coral .proj__more, .proj--lilac .proj__more { background: var(--ink); color: var(--cream); }
.proj__star { position: absolute !important; z-index: 0 !important; width: 54px; height: 54px; right: 20px; top: 70px; fill: rgba(255,245,224,.85); pointer-events: none; }
.proj--coral .proj__star { fill: var(--indigo); }
.proj--lilac .proj__star { fill: var(--crimson); }

/* ── Путь ГО ── */
.score { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 14px; margin-bottom: 22px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
/* правка №7: число 68 строго по центру фестона */
.score__badge { position: relative; width: 116px; height: 116px; display: grid; place-items: center; }
.score__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--crimson); animation: spin 28s linear infinite; }
.score__num { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-family: var(--f-head); font-weight: 600; font-size: 46px; line-height: 1; color: var(--cream); }
.odo { display: inline-flex; height: 1em; overflow: hidden; line-height: 1; }
.odo__d { display: flex; flex-direction: column; transition: transform 1.4s var(--ease-out); }
.odo__d span { height: 1em; line-height: 1; display: block; text-align: center; }
.score__txt { font-size: 16px; color: var(--muted); }
.score__txt b { color: var(--text); font-style: italic; display: block; font-size: 18px; margin-bottom: 4px; }

.timeline { position: relative; list-style: none; margin: 0 0 24px; padding: 0 0 0 46px; }
.timeline.rv { opacity: 1; transform: none; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 26px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--periwinkle)); transform-origin: 50% 0; transform: scaleY(0); }
.timeline.in::before { transform: none; transition: transform 1.2s var(--ease-out); }
.tl { position: relative; padding: 0 0 22px; opacity: 0; transform: translateX(14px); }
.timeline.in .tl { opacity: 1; transform: none; transition: opacity .45s var(--ease-out) var(--d, 0s), transform .55s var(--ease-out) var(--d, 0s); }
.tl__n { position: absolute; left: -46px; top: -4px; width: 32px; height: 32px; display: grid; place-items: center; }
.tl__n svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--bg); stroke: var(--accent); stroke-width: 4; }
.tl__n span { position: relative; font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--accent); }
.tl__t { font-weight: 700; font-size: 18px; line-height: 1; }
.tl__d { margin-top: 5px; color: var(--muted); font-size: 15px; }

.rg { border-radius: var(--r-lg); padding: 18px; color: var(--ink); overflow: hidden;
  background: radial-gradient(60% 60% at 100% 100%, rgba(138,132,233,.55), transparent), var(--g-beige); }
.rg > * { position: relative; z-index: 2; }
.rg h3 { margin: 0 0 4px; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 24px; line-height: .95; }
.rg h3 .accent { color: var(--crimson); font-size: 1.2em; }
.rg__legend { font-size: 13px; color: rgba(46,46,46,.78); margin: 0 0 12px; }
.rg__legend svg { width: 12px; height: 12px; fill: var(--crimson); vertical-align: -1px; }
.rg__group { margin-top: 10px; }
.rg__label { font-weight: 700; font-style: italic; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); margin-bottom: 6px; }
.rg__list { display: flex; flex-wrap: wrap; gap: 6px; }
.rg__item { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,253,253,.78); font-size: 14px; font-weight: 700; border: 1px solid rgba(75,32,75,.12); }
.rg__item svg { width: 12px; height: 12px; fill: var(--crimson); }
.rg__item--tmp { background: transparent; border-style: dashed; border-color: rgba(75,32,75,.35); }
.rg .btn { margin-top: 14px; min-height: 44px; white-space: normal; text-align: center; line-height: 1.05; padding: 8px 18px; }

/* ── ПВР: ступени «падают» сверху ── */
.ladder { display: grid; gap: 10px; margin-bottom: 18px; }
.ladder.rv { opacity: 1; transform: none; }
.step { overflow: hidden; border-radius: var(--r-lg); padding: 16px 16px 16px 76px; min-height: 86px; display: flex; flex-direction: column; justify-content: center; color: var(--cream);
  opacity: 0; transform: translateY(-40px) rotate(var(--rot, -3deg)); }
.ladder.in .step { opacity: 1; transform: none; transition: transform .7s cubic-bezier(.22,1.4,.4,1) var(--d, 0s), opacity .3s var(--d, 0s); }
.step > * { position: relative; z-index: 2; }
.step:nth-child(1) { background: var(--g-rose-peri); margin-right: 40px; --rot: -4deg; }
.step:nth-child(2) { background: var(--g-crimson-peri); margin: 0 20px; --rot: 3deg; }
.step:nth-child(3) { background: var(--g-crimson-radial); margin-left: 40px; --rot: -3deg; }
.step__i { position: absolute !important; left: 14px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; font-family: var(--f-head); font-weight: 600; font-size: 22px; color: var(--crimson); }
.step__i svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--cream); }
.step__i span { position: relative; }
.step__t { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 24px; line-height: 1; }
.step__d { margin-top: 4px; font-size: 14.5px; opacity: .92; }
.notes { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.notes li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15.5px; }
.notes li svg { position: absolute; left: 0; top: 1px; width: 14px; height: 14px; fill: var(--accent); }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.row-btns .btn { flex: 1 1 140px; }

/* ── Кричалка ── */
.footer { overflow: hidden; margin-top: 30px; padding: 62px var(--pad) calc(120px + var(--sab)); text-align: center; color: var(--cream); border-radius: 36px 36px 0 0;
  background: radial-gradient(60% 40% at 50% 40%, rgba(138,132,233,.55), transparent 70%), var(--g-wine-plum); }
.footer > * { position: relative; z-index: 2; }
.footer__star { position: absolute !important; width: 90px; height: 90px; left: -20px; top: -20px; fill: var(--blush); opacity: .6; animation: spin 30s linear infinite; }
.chant p { margin: 0; }
.chant__l1, .chant__l2 { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 22px; letter-spacing: .02em; }
.chant__l2 { margin-top: 8px; opacity: .92; }
.chant__ave { font-family: var(--f-acc); font-size: 78px; line-height: .95; color: var(--blush); transform: rotate(-4deg); margin: 2px 0 -4px; }
.chant__yf { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: clamp(42px, 13.5vw, 70px); line-height: 1.02; margin-top: 4px; color: var(--lilac);
  background: linear-gradient(90deg, #FFF5E0, #D9BDFF 50%, #FF958E); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.chant.rv { transform: none; }
.chant.rv p { opacity: 0; transform: translateY(20px); }
.chant.rv.in p { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.chant.rv.in p:nth-child(2) { transition-delay: .12s; }
.chant.rv.in p:nth-child(3) { transition-delay: .24s; }
.chant.rv.in p:nth-child(4) { transition-delay: .36s; }
.chant.is-shout .chant__yf { animation: boom .55s var(--ease-spring); }
.chant.is-shout .chant__ave { animation: boom .45s var(--ease-spring); }
.shout { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px; background: var(--cream); color: var(--crimson); font-weight: 700; font-size: 17px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); transition: transform .15s; }
.shout:active { transform: scale(.92); }
.shout__count { margin: 10px 0 0; min-height: 1.2em; font-style: italic; font-size: 14px; opacity: .85; }
.echo { position: fixed; z-index: 85; left: 0; top: 0; pointer-events: none; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; color: var(--cream); white-space: nowrap; will-change: transform, opacity; }
.footer__logo { width: 170px; height: 134px; margin: 30px auto 10px; background: linear-gradient(135deg, #FF958E, #D9BDFF 60%, #FFF5E0);
  -webkit-mask: url("assets/logo_line_mask.png") center / contain no-repeat; mask: url("assets/logo_line_mask.png") center / contain no-repeat; }
.footer__sig { font-size: 13px; font-style: italic; opacity: .72; max-width: 300px; margin: 0 auto; }

/* ── Нижняя панель: сплошной фон, индикатор двигается transform'ом ── */
.dock { position: fixed; z-index: 35; left: 12px; right: 12px; bottom: calc(12px + var(--sab)); margin: 0 auto; max-width: 420px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: 66px; padding: 0 6px;
  border-radius: 24px; background: var(--bar); border: 1px solid var(--line);
  box-shadow: 0 16px 34px -16px rgba(0,0,0,.65); transition: transform .4s var(--ease-out); will-change: transform; }
.dock.is-away { transform: translateY(calc(100% + 30px + var(--sab))); }
.dock__ind { position: absolute; left: 0; top: 50%; width: 56px; height: 46px; margin-top: -23px; border-radius: 16px; background: rgba(248,88,88,.2); opacity: 0;
  transition: transform .4s var(--ease-out), opacity .25s; pointer-events: none; }
.dock__ind.is-on { opacity: 1; }
.dock a { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: 3px; height: 100%; text-decoration: none; font-size: 11px; font-weight: 700; color: var(--faint); transition: color .2s; }
.dock a.is-on { color: var(--text); }
.dock a.is-on .ico { color: var(--accent); }
.dock__sos { position: relative; z-index: 1; justify-self: center; width: 58px; height: 58px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; background: var(--g-crimson-coral); box-shadow: 0 10px 22px -6px rgba(184,2,42,.9), 0 0 0 5px var(--bg); transition: transform .15s; }
.dock__sos:active { transform: scale(.9); }
.dock__sos span { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); }
.dock__sos span::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cream); animation: pulse 1.8s var(--ease-out) infinite; }
.dock.is-away .dock__sos span::after { animation-play-state: paused; }
.dock__sos::after { content: "SOS"; position: absolute; bottom: -17px; font-size: 10px; font-weight: 700; letter-spacing: .15em; color: var(--accent); }

/* ═════════════ Шторка (bottom sheet) ═════════════ */
.sheet-wrap { position: fixed; inset: 0; z-index: 70; visibility: hidden; pointer-events: none; transition: visibility 0s .34s; }
.sheet-wrap.is-open { visibility: visible; pointer-events: auto; transition: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10,6,15,.62); opacity: 0; transition: opacity .3s; }
.sheet-wrap.is-open .sheet-backdrop { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 36px - var(--sat)); display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); border-radius: 28px 28px 0 0; box-shadow: 0 -16px 40px -20px rgba(0,0,0,.6); overflow: hidden;
  transform: translateY(105%); transition: transform .34s var(--ease-out); will-change: transform; }
.sheet-wrap.is-open .sheet { transform: translateY(var(--drag, 0px)); }
.sheet.is-dragging { transition: none; }
.sheet__grab { position: absolute; z-index: 6; left: 0; right: 0; top: 0; height: 26px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet__grab span { width: 44px; height: 5px; border-radius: 99px; background: rgba(255,245,224,.55); }
[data-theme="light"] .sheet__grab span { background: rgba(10,6,15,.25); }
.sheet__close { position: absolute; z-index: 6; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,6,15,.35); color: var(--cream); transition: transform .15s; }
.sheet__close:active { transform: scale(.86); }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--pad) calc(26px + var(--sab)); -webkit-overflow-scrolling: touch; }
.sheet-wrap.is-open .sheet__body > :not(.sh-hero) { animation: fadeUp .4s var(--ease-out) .08s backwards; }

.sh-hero { overflow: hidden; margin: 0 calc(var(--pad) * -1) 18px; padding: 30px var(--pad) 22px; color: var(--cream); }
.sh-hero > * { position: relative; z-index: 2; }
.sh-hero--red { background: radial-gradient(60% 70% at 100% 0%, rgba(138,132,233,.8), transparent 70%), var(--g-crimson-radial); }
.sh-hero--violet { background: radial-gradient(60% 70% at 100% 0%, rgba(248,88,88,.75), transparent 70%), var(--g-indigo); }
.sh-hero--deep { background: radial-gradient(60% 70% at 100% 0%, rgba(184,2,42,.7), transparent 70%), var(--g-deep); }
.sh-hero--coral { background: radial-gradient(60% 70% at 100% 0%, rgba(138,132,233,.7), transparent 70%), var(--g-coral); color: var(--ink); }
.sh-hero--lilac { background: radial-gradient(60% 70% at 100% 0%, rgba(248,88,88,.6), transparent 70%), var(--g-lilac); color: var(--plum); }
.sh-hero--wine { background: radial-gradient(60% 70% at 100% 0%, rgba(138,132,233,.75), transparent 70%), var(--g-wine-plum); }
.sh-hero svg.sh-star { position: absolute; z-index: 1; right: 22px; bottom: 14px; width: 54px; height: 54px; fill: currentColor; opacity: .85; }
.sh-k { font-weight: 700; font-style: italic; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .82; padding-right: 50px; }
.sh-t { margin: 8px 0 0; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 34px; line-height: .92; max-width: 88%; }
.sh-t .accent { display: block; width: max-content; max-width: 100%; color: inherit; opacity: .95; font-size: 1.05em; margin: -.05em 0 0 .5em; transform: rotate(-3deg); transform-origin: left; }
.sh-hero--red .sh-t .accent { color: var(--blush); }
.sh-hero--violet .sh-t .accent { color: var(--lilac); }
.sh-p { margin: 10px 0 0; font-size: 16px; opacity: .95; line-height: var(--lh-read); max-width: calc(100% - 70px); }
.sh-p b { font-style: italic; }

.field { margin: 0 0 16px; }
.field__l { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.field__l small { font-weight: 400; color: var(--faint); font-size: 13px; }
.input, .textarea { width: 100%; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 17px/1.2 var(--f-body); padding: 14px 15px; outline: none; transition: border-color .2s; resize: none; -webkit-appearance: none; appearance: none; }
.textarea { min-height: 130px; }
.input:focus, .textarea:focus { border-color: var(--accent-2); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { flex: none; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--muted); transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.chip:active { transform: scale(.94); }
.chip--red.is-on { background: var(--crimson); border-color: transparent; color: var(--cream); }
.chip--violet.is-on { background: var(--indigo); border-color: transparent; color: var(--cream); }
.toggle { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.toggle:last-of-type { border-bottom: 1px solid var(--line); }
.toggle__txt b { display: block; font-size: 16px; }
.toggle__txt small { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.05; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { flex: none; position: relative; width: 52px; height: 30px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: var(--text); transition: transform .25s var(--ease-out), background-color .2s; }
.toggle input:checked + .switch { background: var(--crimson); border-color: transparent; }
.toggle--violet input:checked + .switch { background: var(--indigo); }
.toggle input:checked + .switch::after { transform: translateX(22px); background: var(--cream); }
.toggle.is-disabled { opacity: .4; pointer-events: none; }

/* Кнопка «удерживай» с кольцом прогресса (кольцо крутится через stroke-dashoffset из JS) */
.holdwrap { display: grid; justify-items: center; gap: 8px; margin: 20px 0 6px; }
.hold { position: relative; width: 156px; height: 156px; border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; display: grid; place-items: center; }
.hold__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.hold__ring circle { fill: none; stroke-width: 6; }
.hold__ring .bg { stroke: var(--line); }
.hold__ring .fg { stroke: var(--coral); stroke-linecap: round; stroke-dasharray: 452.4; stroke-dashoffset: 452.4; opacity: 0; transition: stroke-dashoffset .25s ease-out, opacity .25s; }
.hold.is-holding .hold__ring .fg { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset 1.1s linear, opacity .1s; }
.hold.is-done .hold__ring .fg { stroke-dashoffset: 0; opacity: 1; transition: none; }
.hold__core { position: relative; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; text-align: center; pointer-events: none;
  background: radial-gradient(circle at 35% 28%, #FF958E 0%, #F85858 32%, #B8022A 72%, #720022 100%);
  box-shadow: 0 14px 30px -10px rgba(184,2,42,.9), inset 0 -10px 18px rgba(114,0,34,.6), inset 0 6px 12px rgba(255,255,255,.25);
  color: var(--cream); font-weight: 700; font-size: 14px; line-height: 1.05; padding: 12px; transition: transform .2s var(--ease-out); }
.hold.is-holding .hold__core { transform: scale(.9); transition: transform 1.1s linear; }
.hold.is-done .hold__core { animation: boom .5s var(--ease-spring); }
.hold__hint { font-size: 13px; font-style: italic; color: var(--faint); text-align: center; margin: 0; }
.err { color: var(--coral); font-size: 14px; margin-top: 8px; min-height: 1em; text-align: center; }

.done { text-align: center; padding: 34px 0 10px; }
.done__burst { position: relative; width: 150px; height: 150px; margin: 10px auto 8px; display: grid; place-items: center; }
.done__burst svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: pop .6s var(--ease-spring) both; }
.done__burst span { position: relative; font-family: var(--f-head); font-weight: 600; font-size: 30px; color: var(--cream); animation: pop .6s var(--ease-spring) .1s both; }
.done h3 { margin: 6px 0; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 30px; line-height: .95; }
.done h3 .accent { display: block; font-size: 1.1em; }
.done p { color: var(--muted); margin: 8px auto 20px; max-width: 300px; line-height: var(--lh-read); }
.spark { position: fixed; z-index: 85; left: 0; top: 0; pointer-events: none; width: 16px; height: 16px; will-change: transform, opacity; }

.stack-btns { display: grid; gap: 10px; margin: 6px 0 12px; }
.form-note { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--faint); font-style: italic; line-height: 1.15; }
.read { line-height: var(--lh-read); }
.read h4 { margin: 20px 0 8px; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 20px; line-height: 1; }
.read p { margin: 0 0 10px; color: var(--muted); font-size: 16px; }
.read ul { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 8px; }
.read li { position: relative; padding-left: 22px; font-size: 16px; }
.read li svg { position: absolute; left: 0; top: 3px; width: 13px; height: 13px; fill: var(--accent); }
.pm { display: grid; gap: 10px; margin: 8px 0 10px; }
.pm > div { border-radius: var(--r-md); padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); }
.pm b { display: block; font-style: italic; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.pm .plus b { color: var(--periwinkle); } .pm .minus b { color: var(--coral); } .pm .hard b { color: var(--blush); }
[data-theme="light"] .pm .plus b { color: var(--indigo); } [data-theme="light"] .pm .minus b, [data-theme="light"] .pm .hard b { color: var(--crimson); }
.pm p { margin: 0; color: var(--text); font-size: 15px; }
.past { display: grid; gap: 10px; }
.past__y { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.past__y > b { font-family: var(--f-head); font-weight: 600; font-size: 22px; color: var(--accent); }
.past__y div { font-size: 15px; color: var(--muted); line-height: 1.12; }
.past__y div strong { color: var(--text); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.tile { border-radius: var(--r-md); padding: 14px; background: var(--surface); border: 1px solid var(--line); }
.tile b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 34px; line-height: 1; }
.tile span { color: var(--muted); font-size: 14px; }
.tile--red b { color: var(--coral); } .tile--violet b { color: var(--periwinkle); }
.rep { padding: 12px 0; border-top: 1px solid var(--line); }
.rep__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); margin-bottom: 4px; }
.rep__h b { color: var(--text); }
.rep p { margin: 0; font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.12; }
.status { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.status--work { background: rgba(138,132,233,.25); color: var(--accent-2); }
.status--sent { background: rgba(248,88,88,.18); color: var(--coral); }
.h-sub { margin: 22px 0 10px; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 20px; }

/* Поиск */
.search { position: relative; margin-bottom: 14px; }
.search .input { padding-left: 46px; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.res { display: grid; gap: 6px; }
.res__i { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-align: left; width: 100%; transition: transform .12s; }
.res__i:active { transform: scale(.98); }
.res__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--g-crimson-coral); color: var(--cream); }
.res__ic svg { width: 18px; height: 18px; }
.res__ic--doc { background: var(--g-indigo); } .res__ic--proj { background: var(--g-rose-peri); } .res__ic--sec { background: var(--g-deep); }
.res__t { font-weight: 700; font-size: 16px; line-height: 1.1; }
.res__d { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.1; }
.res mark { background: rgba(248,88,88,.32); color: inherit; border-radius: 3px; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; background: rgba(10,6,15,.95); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; padding: calc(56px + var(--sat)) 12px calc(56px + var(--sab)); }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; transform: scale(.94); transition: transform .3s var(--ease-out); }
.lightbox.is-open img { transform: none; }
.lightbox__cap { position: absolute; bottom: calc(12px + var(--sab)); left: 0; right: 0; text-align: center; margin: 0; font-family: var(--f-acc); font-size: 32px; color: var(--blush); }
.lightbox__close { position: absolute; top: calc(12px + var(--sat)); right: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,245,224,.14); color: var(--cream); }

.toast { position: fixed; z-index: 96; left: 50%; top: calc(var(--top-h) + var(--sat) + 8px); transform: translate(-50%, -14px); opacity: 0; visibility: hidden; max-width: calc(100% - 32px); width: max-content; padding: 12px 18px; border-radius: 18px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 15px; line-height: 1.1; box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); text-align: center;
  transition: transform .3s var(--ease-out), opacity .2s, visibility 0s .3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .3s var(--ease-out), opacity .2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .rv, .rv > *, .rv li, .rv p, .rv .doc, .rv .accent, .hin, .tl, .step { opacity: 1 !important; transform: none !important; }
}
@media (min-width: 560px) {
  .app { max-width: 520px; margin: 0 auto; }
  .topbar { max-width: 520px; margin: 0 auto; }
  .sheet { max-width: 520px; margin: 0 auto; }
}

/* ═════════════ v2.2: анонсы, переписка, Пульт ═════════════ */
.hero__next { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: -6px 0 18px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(10,6,15,.45); border: 1px solid rgba(255,245,224,.3); color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .15s; }
.hero__next:active { transform: scale(.96); }
.hero__next-k { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--coral); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-style: italic; }
.hero__next-w { font-weight: 400; opacity: .8; }

.evs { display: grid; gap: 12px; }
.ev { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ev.is-soon { border-color: rgba(248,88,88,.55); background: linear-gradient(135deg, rgba(248,88,88,.14), transparent 60%), var(--surface); }
.ev.is-past { opacity: .55; }
.ev__date { position: relative; display: grid; justify-items: center; align-content: center; height: 92px; border-radius: 18px; background: var(--g-crimson-peri); color: var(--cream); overflow: hidden; isolation: isolate; }
.ev--deadline .ev__date { background: var(--g-crimson-radial); }
.ev--selection .ev__date { background: var(--g-indigo); }
.ev--meeting .ev__date { background: var(--g-rose-peri); }
.ev__star { position: absolute; z-index: -1; width: 74px; height: 74px; right: -22px; top: -22px; fill: rgba(255,245,224,.18); }
.ev__date b { font-family: var(--f-head); font-weight: 600; font-size: 38px; line-height: .9; }
.ev__date span { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.ev__date i { font-size: 12px; opacity: .8; }
.ev__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ev__top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.ev__kind { font-weight: 700; font-style: italic; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ev__when { font-weight: 700; color: var(--muted); white-space: nowrap; }
.ev.is-soon .ev__when { color: var(--accent); }
.ev__t { margin: 0; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 20px; line-height: .98; overflow-wrap: anywhere; }
.ev__d { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.1; }
.ev__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.ev__bell, .ev__link { min-height: 36px; padding: 0 13px; border-radius: 999px; font-weight: 700; font-size: 13.5px; border: 1.5px solid var(--line); transition: transform .15s, background-color .2s, color .2s; }
.ev__bell:active, .ev__link:active { transform: scale(.94); }
.ev__bell.is-on { background: var(--crimson); color: var(--cream); border-color: transparent; }
.ev__all { font-size: 13px; font-weight: 700; color: var(--muted); }
.ev__time { margin-left: auto; font-family: var(--f-head); font-weight: 600; font-size: 18px; }
.ev-empty { position: relative; display: grid; gap: 6px; padding: 22px 18px; border-radius: var(--r-lg); border: 1.5px dashed var(--line); color: var(--muted); font-size: 15px; overflow: hidden; }
.ev-empty b { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 20px; color: var(--text); }
.ev-empty__star { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; fill: var(--accent); }

.badge { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--coral); color: var(--cream); font-size: 12px; font-weight: 700; white-space: nowrap; }
.topbar__btn { position: relative; }
.topbar__btn.has-dot::after { content: attr(data-n); position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--coral); color: var(--cream); font: 700 11px/18px var(--f-body); text-align: center; }

/* переписка по обращению */
.rep2 { padding: 14px 0; border-top: 1px solid var(--line); }
.rep2 > p { margin: 6px 0 0; font-size: 15px; color: var(--text); line-height: 1.15; overflow-wrap: anywhere; }
.rep2__meta { font-size: 12.5px; color: var(--faint); }
.rep2__meta a { color: var(--accent-2); }
.rep2__new { color: var(--coral); }
.rep2__reply { display: grid; gap: 8px; margin-top: 10px; }
.rep2__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.textarea--sm { min-height: 76px; font-size: 16px; }
.thr { display: grid; gap: 6px; margin-top: 10px; }
.thr__m { max-width: 88%; justify-self: start; padding: 9px 12px 7px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.15; overflow-wrap: anywhere; white-space: pre-wrap; }
.thr__m--me { justify-self: end; border-radius: 16px 16px 4px 16px; background: rgba(90,84,179,.22); }
.thr__m b { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; white-space: normal; }
.thr__m--me b { color: var(--accent-2); }
.thr__m i { display: block; margin-top: 4px; font-size: 11px; color: var(--faint); font-style: normal; text-align: right; white-space: normal; }
.status.st--new { background: rgba(248,88,88,.18); color: var(--coral); }
.status.st--work { background: rgba(138,132,233,.25); color: var(--accent-2); }
.status.st--done { background: rgba(80,180,120,.2); color: #3fae73; }

/* Пульт */
.seg--adm { margin-bottom: 14px; }
.btn--sm { min-height: 40px; padding: 0 15px; font-size: 14px; }
.chips--f { margin-bottom: 4px; }
.aform { padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.aform .chips { margin-bottom: 12px; }
.aform--inline { margin: 0 0 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 .field { min-width: 0; }
.row2 .field__l { display: block; }
.input[type="date"], .input[type="time"] { min-height: 50px; color-scheme: dark; }
[data-theme="light"] .input[type="date"], [data-theme="light"] .input[type="time"] { color-scheme: light; }
.aitem { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.aitem.is-off .aitem__main { opacity: .5; }
.aitem__main { flex: 1; min-width: 0; }
.aitem__main b { display: block; font-size: 15.5px; line-height: 1.1; overflow-wrap: anywhere; }
.aitem__main span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aitem__acts { flex: none; display: flex; gap: 4px; }
.ibtn { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); font-size: 15px; transition: transform .12s; }
.ibtn:active { transform: scale(.88); }
.ibtn[disabled] { opacity: .3; pointer-events: none; }
.upl { position: relative; display: grid; place-items: center; min-height: 64px; margin-bottom: 12px; padding: 10px; border-radius: var(--r-md); border: 1.5px dashed var(--line); color: var(--muted); font-weight: 700; font-size: 14.5px; text-align: center; overflow-wrap: anywhere; }
.upl input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.dgprev { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.dgprev a { color: var(--accent-2); }
@media (max-width: 370px) { .ev { grid-template-columns: 70px 1fr; gap: 12px; } .ev__date { height: 84px; } .ev__date b { font-size: 32px; } .row2 { grid-template-columns: 1fr; } }
