/* Lore Log. Шрифты лежат локально: Unbounded (заголовки), Onest (текст), Share Tech Mono (даты-штампы). */
@font-face { font-family: 'Unbounded'; src: url(шрифты/unbounded-cyr.woff2) format('woff2'); font-weight: 400 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; src: url(шрифты/unbounded-lat.woff2) format('woff2'); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; src: url(шрифты/onest-cyr.woff2) format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; src: url(шрифты/onest-lat.woff2) format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Stamp'; src: url(шрифты/sharetech.woff2) format('woff2'); font-display: swap; }

/* Цвета: фотобумага, чернила и оранжевый штамп даты. Один акцент на весь сайт. */
:root {
  --bg: #edf0f3;
  --surface: #f9fafb;
  --surface-2: #e1e6ec;
  --ink: #142033;
  --muted: #536176;
  --line: #d3dae2;
  --stamp: #f26b1d;
  --on-stamp: #142033;
  --shadow: 0 1px 2px rgba(20, 32, 51, .06), 0 8px 24px rgba(20, 32, 51, .07);
  --shadow-up: 0 2px 4px rgba(20, 32, 51, .08), 0 16px 36px rgba(20, 32, 51, .12);
  --rasta: linear-gradient(90deg, #c8392f 0 33.3%, #e9b52c 33.3% 66.6%, #2f8048 66.6%);
  /* Скругления: карточки 20, фото внутри 14, поля 12, кнопки и теги пилюлей */
  --r-card: 20px; --r-photo: 14px; --r-field: 12px;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Stamp', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1420; --surface: #161e2d; --surface-2: #1f2a3d; --ink: #e8edf4; --muted: #9aa7ba;
    --line: #26324a; --stamp: #ff8a3d; --on-stamp: #0e1420;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-up: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 36px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1420; --surface: #161e2d; --surface-2: #1f2a3d; --ink: #e8edf4; --muted: #9aa7ba;
  --line: #26324a; --stamp: #ff8a3d; --on-stamp: #0e1420;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-up: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 36px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 2.5px solid var(--stamp); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.stamp { font-family: var(--mono); color: var(--stamp); letter-spacing: .02em; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 10; height: 68px;
  display: flex; align-items: center; gap: 16px; padding: 0 clamp(16px, 3vw, 40px);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font: 700 20px/1 var(--display); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link, .icon-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 999px; background: none; color: var(--ink); font: 500 15px var(--body);
  text-decoration: none; cursor: pointer; transition: background .2s var(--ease);
}
.nav-link:hover, .icon-btn:hover { background: var(--surface-2); }
.nav-link.on, .icon-btn.on { background: var(--ink); color: var(--bg); }
.icon-btn { padding: 0; width: 44px; justify-content: center; }
.top .btn { margin-left: 6px; }
@media (max-width: 860px) {
  .top { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; gap: 6px; }
  nav { width: 100%; margin: 0; justify-content: space-between; }
  .nav-link { padding: 0 10px; font-size: 14px; }
  .nav-link .label-opt, .top .btn .label-opt { display: none; }
  .top .btn { position: absolute; right: 16px; top: 8px; }
  html { scroll-padding-top: 130px; }
}

main { max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 40px) 96px; }

/* ---------- кнопки, теги ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1.5px solid transparent; background: var(--stamp); color: var(--on-stamp);
  font: 600 15px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px;
  border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 14px var(--body); cursor: pointer; text-decoration: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- первый экран ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(8px, 3vw, 40px) 0 clamp(24px, 4vw, 48px);
}
.hero h1 { font: 800 clamp(40px, 6.4vw, 84px)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 18px; }
.hero p { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual { position: relative; min-height: 320px; display: grid; place-items: center; }
.hero-stamp { font-family: var(--mono); color: var(--stamp); font-size: clamp(64px, 11vw, 150px); line-height: .9; text-align: right; width: 100%; }
.hero-stamp span { display: block; }
.stack { position: relative; width: min(100%, 420px); aspect-ratio: 1 / 1; }
.stack figure {
  position: absolute; margin: 0; width: 72%; aspect-ratio: 4 / 5; padding: 10px 10px 34px;
  background: var(--surface); border-radius: var(--r-photo); box-shadow: var(--shadow-up);
  transition: transform .5s var(--ease);
}
.stack figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.stack figure .stamp { position: absolute; right: 18px; bottom: 44px; font-size: 24px; text-shadow: 0 0 1px rgba(0, 0, 0, .9), 0 0 6px rgba(0, 0, 0, .55); }
.stack figure:nth-child(1) { left: 0; top: 8%; transform: rotate(-7deg); }
.stack figure:nth-child(2) { left: 14%; top: 2%; transform: rotate(3deg); }
.stack figure:nth-child(3) { right: 0; top: 12%; transform: rotate(9deg); }
.stack:hover figure:nth-child(1) { transform: rotate(-11deg) translateX(-6%); }
.stack:hover figure:nth-child(3) { transform: rotate(13deg) translateX(6%); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; }
  .hero-stamp { text-align: left; }
  .stack { width: min(100%, 320px); }
}

/* ---------- линейка лет (подпись: высота = сколько угаров за год) ---------- */
.rail {
  display: flex; align-items: flex-end; gap: 4px; padding: 16px 18px 10px; margin: 0 0 28px;
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow);
  overflow-x: auto; scrollbar-width: none;
}
.rail a {
  flex: 1 0 34px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--muted); font: 13px var(--mono); padding-top: 4px;
}
.rail i {
  display: block; width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px;
  height: calc(6px + var(--n) * 12px); max-height: 72px; background: var(--surface-2);
  transition: background .2s var(--ease), transform .2s var(--ease); transform-origin: bottom;
}
.rail a.has i { background: var(--stamp); }
.rail a.has { color: var(--ink); }
.rail a:hover i { transform: scaleY(1.08); }

/* ---------- фильтры ---------- */
.filters { display: grid; gap: 12px; margin-bottom: 8px; }
.search { position: relative; }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
  width: 100%; min-height: 50px; padding: 0 16px 0 46px; font: 16px var(--body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--ink); }

/* ---------- лента по годам ---------- */
.year-block { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.year-block:first-of-type { border-top: 0; }
.year-label { position: sticky; top: 92px; align-self: start; text-decoration: none; }
.year-label b { display: block; font: 400 52px/1 var(--mono); color: var(--stamp); }
.year-label span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .year-block { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .year-label { position: static; display: flex; align-items: baseline; gap: 10px; }
  .year-label b { font-size: 40px; }
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; align-items: start; }
@media (min-width: 900px) { .grid .card.wide { grid-column: span 2; } .grid .card.wide .card-photo { aspect-ratio: 16 / 9; } }

.card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card);
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.card:active { transform: scale(.985); }
.card-photo { position: relative; margin: 8px 8px 0; aspect-ratio: 4 / 3; border-radius: var(--r-photo); overflow: hidden; background: var(--surface-2); }
.card-photo img, .card-photo video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-photo img { transform: scale(1.04); }
/* штамп даты прямо на фото, как у плёночных мыльниц */
.card-photo .stamp { position: absolute; right: 12px; bottom: 8px; font-size: 24px; text-shadow: 0 0 1px rgba(0, 0, 0, .9), 0 0 6px rgba(0, 0, 0, .55); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 26px; }
.card-top .stamp { font-size: 20px; }
.card h3 { margin: 0; font: 600 18px/1.25 var(--display); letter-spacing: -.01em; }
.card .gist { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.card-foot span { display: inline-flex; align-items: center; gap: 5px; }

.empty {
  display: grid; justify-items: start; gap: 12px; padding: clamp(28px, 5vw, 56px);
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); max-width: 640px;
}
.empty h2 { margin: 0; font: 700 26px/1.2 var(--display); }
.empty p { margin: 0 0 6px; color: var(--muted); }

/* ---------- страницы ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin: 8px 0 28px; }
.page-head h1 { margin: 0; font: 800 clamp(34px, 5vw, 56px)/1.05 var(--display); letter-spacing: -.03em; }
.page-head h1.stamp { font: 400 clamp(64px, 10vw, 120px)/.9 var(--mono); letter-spacing: 0; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs { margin-bottom: 8px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--ink); }
h2.section { font: 700 24px/1.2 var(--display); margin: 48px 0 16px; letter-spacing: -.01em; }

.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.year-tile {
  display: grid; gap: 6px; padding: 18px; min-height: 150px; align-content: start;
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.year-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.year-tile b { font: 400 44px/1 var(--mono); color: var(--stamp); }
.year-tile span { font-size: 14px; color: var(--muted); }
.year-tile em { font-style: normal; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.year-tile.blank { background: transparent; box-shadow: none; border: 1.5px dashed var(--line); }
.year-tile.blank b { color: var(--muted); }

/* угар */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.story.solo { grid-template-columns: minmax(0, 720px); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.story h1 { font: 800 clamp(32px, 4.6vw, 54px)/1.06 var(--display); letter-spacing: -.03em; margin: 0 0 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.who-line { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.part { margin: 0 0 26px; max-width: 65ch; }
.part h3 { margin: 0 0 6px; font: 600 13px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.part div { white-space: pre-wrap; font-size: 18px; }
.quote { margin: 0 0 28px; font: 600 clamp(22px, 2.6vw, 30px)/1.3 var(--display); letter-spacing: -.015em; max-width: 30ch; }
.quote::before { content: '«'; color: var(--stamp); }
.quote::after { content: '»'; color: var(--stamp); }
.media { display: grid; gap: 12px; position: sticky; top: 92px; }
.media.tall { position: static; }
@media (max-width: 860px) { .media { position: static; } }
/* Первое фото крупно, остальные плиткой: клик по плитке ставит её на место главного. Главное по клику открывается целиком. */
.media img, .media video { display: block; width: 100%; border-radius: var(--r-photo); background: var(--surface-2); box-shadow: var(--shadow); }
.media img { cursor: zoom-in; object-fit: cover; object-position: center 30%; }
.media .lead img { max-height: min(62dvh, 620px); }
.media .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media .thumbs img { aspect-ratio: 4 / 5; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.media .thumbs img:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.media video { max-height: 62dvh; background: #0b0f17; }
.media .file { display: inline-flex; gap: 6px; align-items: center; }
.story-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.story-nav div { display: flex; flex-wrap: wrap; gap: 10px; }

.lightbox {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px;
  background: rgba(8, 12, 20, .9); cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 92dvh; border-radius: var(--r-photo); cursor: default; }
.lightbox .icon-btn { position: absolute; color: #e8edf4; background: rgba(255, 255, 255, .1); }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev, .lightbox .next { top: 50%; transform: translateY(-50%); }
.lightbox .prev { left: 16px; }
.lightbox .next { right: 16px; }
.lightbox .count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #e8edf4; font: 14px var(--mono); }

/* растаганг */
.gang-head { margin: 8px 0 32px; }
.gang-head h1 { margin: 0 0 10px; font: 800 clamp(40px, 7vw, 88px)/1 var(--display); letter-spacing: -.04em; }
.gang-head p { margin: 0 0 20px; color: var(--muted); font-size: 18px; max-width: 46ch; }
.rasta { height: 8px; width: min(100%, 220px); border-radius: 999px; background: var(--rasta); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.person {
  display: grid; gap: 4px; padding: 8px 8px 16px; background: var(--surface); border-radius: var(--r-card);
  box-shadow: var(--shadow); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.person b { font: 600 18px/1.2 var(--display); padding: 8px 10px 0; }
.person span { font-size: 13px; color: var(--muted); padding: 0 10px; }
.person.ghost { background: transparent; box-shadow: none; border: 1.5px dashed var(--line); }
.person .rasta { width: 40px; height: 4px; margin: 2px 10px 0; }
.avatar {
  aspect-ratio: 1; border-radius: var(--r-photo); overflow: hidden; background: var(--surface-2);
  display: grid; place-items: center; font: 800 56px/1 var(--display); color: var(--muted);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.profile .avatar { font-size: 96px; box-shadow: var(--shadow); }
@media (max-width: 700px) { .profile { grid-template-columns: 1fr; } .profile .avatar { max-width: 220px; } }

/* формы */
.form { display: grid; gap: 22px; max-width: 760px; padding: clamp(20px, 4vw, 40px); background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.form h1 { margin: 0; font: 800 clamp(28px, 4vw, 40px)/1.1 var(--display); letter-spacing: -.025em; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; align-items: start; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 15px; }
.field small { color: var(--muted); font-size: 13px; margin-top: -2px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 11px 14px; font: 16px var(--body); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-field);
  transition: border-color .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field .big { font: 600 22px var(--display); }
.field input[type=file] { padding: 10px; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; }
.previews img, .previews video { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.existing { display: flex; flex-wrap: wrap; gap: 10px; }
.existing-item { position: relative; width: 112px; height: 112px; border-radius: 12px; overflow: hidden; background: var(--surface-2); transition: opacity .2s; }
.existing-item img, .existing-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.existing-item .file { display: block; padding: 10px; font-size: 12px; word-break: break-all; }
.existing-item .icon-btn { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; min-height: 0; border-radius: 50%; background: rgba(8, 12, 20, .65); color: #fff; }
.existing-item.gone img, .existing-item.gone video, .existing-item.gone .file { opacity: .25; filter: grayscale(1); }
.existing-item.gone { outline: 2px dashed var(--stamp); outline-offset: -2px; }
.err { color: #c2361f; font-weight: 600; min-height: 0; }
:root[data-theme="dark"] .err { color: #ff8f7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #ff8f7a; } }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--stamp); }
.form.lock { max-width: 420px; margin: 8dvh auto 0; }

/* профиль: вход, пароль, аккаунты */
.account { display: grid; gap: 24px; max-width: 760px; }
.form h2 { margin: 0; font: 700 22px/1.2 var(--display); letter-spacing: -.01em; }
.note { font-weight: 600; }
.note:empty, .err:empty { display: none; }
.accounts { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.accounts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.accounts small { color: var(--muted); font-size: 14px; }
.accounts select {
  flex-basis: 100%; min-height: 44px; padding: 8px 12px; font: 15px var(--body); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-field);
}
.accounts select:focus { outline: none; border-color: var(--ink); }
.new-pass { padding: 14px 16px; background: var(--surface-2); border-radius: var(--r-field); line-height: 1.6; }
.new-pass b { user-select: all; }

/* появление: короткий каскад при открытии экрана */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .5s var(--ease) both; animation-delay: calc(min(var(--i, 0), 10) * 45ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  .lightbox { animation: fade .2s ease both; }
  @keyframes fade { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* стикеры растаганга */
.stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.stickers img, .stickers video {
  width: 100%; aspect-ratio: 1; object-fit: contain; padding: 6px;
  background: var(--surface); border-radius: var(--r-photo); box-shadow: var(--shadow); cursor: zoom-in;
  transition: transform .3s var(--ease);
}
.stickers img:hover { transform: translateY(-3px) rotate(-2deg); }

/* вход в ветку rastagang из ленты */
.tag-link { text-decoration: none; transition: background .2s var(--ease); }
.tag-link:hover { background: var(--line); }
.branch {
  display: flex; align-items: center; gap: 16px; margin: 20px 0 4px; padding: 18px 22px;
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.branch:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.branch .rasta { width: 8px; height: 44px; flex: none; background: linear-gradient(#c8392f 0 33.3%, #e9b52c 33.3% 66.6%, #2f8048 66.6%); }
.branch span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.branch b { font: 600 17px/1.3 var(--display); }
.branch small { color: var(--muted); font-size: 14px; }
.branch > .ic { width: 22px; height: 22px; }
