/* TrackTak
   Checklist layout: rows, ticks, tight gaps.
   Purple is only for ticks and .btn — do not reuse it on links. */

:root {
  --ink: #2a2a2e;
  --muted: #5c5c66;
  --line: #d8d8de;
  --paper: #fff;
  --wash: #f4f4f6;
  --tick: #4b3fd1;
  --wrap: 1080px;
  --side: 250px;
}

/* reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

img { border: 0; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0 0 0.8rem; padding-left: 1.2rem; }
p { margin: 0 0 0.75rem; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; margin: 0 0 0.5rem; }
a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #1c1c20;
  outline-offset: 2px;
}

::selection { background: #d9d9de; color: #1a1a1e; }

input[type="checkbox"] {
  accent-color: var(--tick);
  width: 15px;
  height: 15px;
}

/* type */
h1 { font-size: 1.55rem; letter-spacing: -0.02em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }

.tick {
  width: 15px;
  height: 15px;
  display: inline-block;
  background: url("../img/icons/tick.svg") center / 15px 15px no-repeat;
  vertical-align: -2px;
  flex: none;
}

/* layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -40px;
  background: var(--tick);
  color: #fff;
  padding: 6px 10px;
  z-index: 40;
  text-decoration: none;
}

.skip:focus { top: 8px; }

.readbar {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: #e6e6ea;
  z-index: 25;
  pointer-events: none;
}

.readbar__fill {
  display: block;
  height: 3px;
  width: 0;
  background: var(--ink);
}

main { padding: 14px 0 56px; min-width: 0; }

.site-head { border-bottom: 1px solid var(--line); }

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  max-width: calc(100% - 132px);
}

.brand__mark {
  flex: none;
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand__name {
  display: block;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand__tag {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.25;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px 8px;
  font-size: 13px;
}

.nav-toggle__ico {
  display: block;
  width: 14px;
  height: 14px;
}

.nav { width: 100%; min-width: 0; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav a {
  display: block;
  text-decoration: none;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.nav a:hover { text-decoration: underline; }

.nav a[aria-current="page"],
.acctabs a[aria-current="page"] { font-weight: 600; }

.nav a[aria-current="page"]::before,
.acctabs a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 4px;
  background: url("../img/icons/tick.svg") center / 15px 15px no-repeat;
  vertical-align: -2px;
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  font-size: 14px;
}

.user > a { text-decoration: none; }
.user > a:hover { text-decoration: underline; }

.who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
}

.who:hover { text-decoration: underline; }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2a2a2e;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.02em;
  flex: none;
}

.bell {
  position: relative;
  border: 0;
  background: transparent;
  padding: 2px;
  line-height: 0;
}

.bell img { display: block; }

.bell__count {
  position: absolute;
  top: -4px;
  right: -7px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
}

.drop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(320px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #c8c8d0;
  z-index: 12;
  padding: 4px 0 0;
}

.drop[hidden] { display: none; }

.drop ul { list-style: none; margin: 0; padding: 0; }

.drop li a {
  display: block;
  padding: 7px 10px;
  text-decoration: none;
}

.drop li a:hover { background: var(--wash); }

.drop li.is-unread a { background: var(--wash); }

.drop time {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.drop__all {
  display: block;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.out {
  border: 0;
  background: transparent;
  padding: 0;
  text-decoration: underline;
  font-size: 14px;
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 16px 0 22px;
  font-size: 14px;
}

.site-foot ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

.site-foot p { margin: 0; color: var(--muted); font-size: 13px; }

.totop {
  position: fixed;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  z-index: 15;
}

.totop img { display: block; }

.js .totop { opacity: 0; pointer-events: none; }
.js .totop.is-on { opacity: 1; pointer-events: auto; }

/* components */
.stamp {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

.stamp .tick { margin-right: 4px; }

.lede { max-width: 40rem; }
.lede h1 { margin-bottom: 8px; }

.home-top { min-width: 0; }

.feed {
  border: 1px solid var(--line);
  padding: 8px 10px 4px;
  margin-top: 16px;
  min-width: 0;
}

.feed h2 { font-size: 15px; margin: 0 0 4px; }
.feed h2 .tick { margin-right: 5px; }

.feed__list { list-style: none; margin: 0; padding: 0; }

.feed__list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.feed__list a { text-decoration: none; font-weight: 600; }
.feed__list a:hover { text-decoration: underline; }

.feed__list time {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.block { margin: 22px 0 0; min-width: 0; }

.block__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 6px;
}

.block__head h2 { margin: 0; }
.block__head h2 .tick { margin-right: 5px; }
.block__more { font-size: 14px; }

.plist {
  border-top: 1px solid var(--line);
  min-width: 0;
}

.prow {
  display: grid;
  grid-template-columns: 16px 56px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.plist .prow:nth-child(odd) { background: #fafafa; }
.prow:hover { background: var(--wash); }
.prow:hover .prow__name { text-decoration: underline; }

.prow__tick { grid-column: 1; grid-row: 1 / span 2; }
.prow__icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  max-width: none;
  border: 1px solid var(--line);
  background: var(--wash);
  object-fit: cover;
}

.prow__name {
  grid-column: 3;
  grid-row: 1;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.prow__meta {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
}

.prow__ver {
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.prow__size {
  border: 1px solid #c5c5cc;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  white-space: nowrap;
}

.prow__cat { overflow-wrap: anywhere; }

.prow__flag { color: var(--ink); font-size: 12px; white-space: nowrap; }
.prow__flag:empty { display: none; }

.prow__flag::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 5px;
  margin-right: 4px;
  border-left: 1.5px solid var(--tick);
  border-bottom: 1.5px solid var(--tick);
  transform: rotate(-45deg);
  vertical-align: 1px;
}

.crumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.crumbs li { min-width: 0; overflow-wrap: anywhere; }
.crumbs a { color: var(--ink); }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 4px; }

.layout { min-width: 0; }
.layout__side { min-width: 0; margin: 14px 0; }
.layout__body { min-width: 0; }

.prog-head { min-width: 0; }

.prog-id {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.prog-id img {
  width: 64px;
  height: 64px;
  max-width: none;
  border: 1px solid var(--line);
  background: var(--wash);
  flex: none;
}

.prog-id > div { min-width: 0; }
.prog-id h1 { overflow-wrap: anywhere; }

.catlink { font-size: 14px; }

.prog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.updated-line { font-size: 13px; color: var(--muted); margin: 0; }

.side h2 { font-size: 15px; }
.side h2 .tick { margin-right: 5px; }

.before { margin: 0 0 16px; }

.before__item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 8px;
  font-weight: 400;
  font-size: 14px;
}

.before__item input { margin-top: 3px; }

.before__item input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

.before__note { font-size: 12px; color: var(--muted); margin: 0; }

.specs {
  display: grid;
  grid-template-columns: minmax(6.5rem, 40%) minmax(0, 1fr);
  gap: 4px 8px;
  margin: 0 0 16px;
  font-size: 13px;
}

.specs dt { margin: 0; color: var(--muted); }
.specs dd { margin: 0; overflow-wrap: anywhere; }

.glance {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0 0 8px;
}

.glance caption {
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  caption-side: top;
  margin: 0 0 6px;
}

.glance th,
.glance td {
  border-bottom: 1px solid var(--line);
  padding: 3px 4px;
  text-align: left;
  vertical-align: top;
}

.glance th { font-weight: 600; color: var(--muted); width: 42%; }

.btn {
  display: inline-block;
  background: var(--tick);
  color: #fff;
  border: 1px solid #3c32ab;
  padding: 7px 11px;
  text-decoration: none;
  line-height: 1.2;
  border-radius: 0;
  font-size: 14px;
  text-align: center;
}

a.btn { color: #fff; }
.btn:hover { background: #3f34b8; color: #fff; }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: #b9b9c2;
}

a.btn--ghost,
.btn--ghost:hover { color: var(--ink); background: #f3f3f5; }

.btn--ico,
.btn--fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn .ico,
.btn--ico img {
  display: block;
  flex: none;
}

.btn.is-on {
  background: #fff;
  color: var(--ink);
  border-color: #2a2a2e;
}

.pager__dir {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pager__dir img { display: block; }

.shots { margin: 8px 0 16px; min-width: 0; }

.shots__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.shots__bar h2 { margin: 0; font-size: 15px; }

.shots__nav { display: flex; gap: 6px; }

.shots__strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 100%;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* safari: иначе прыгает */
  padding-bottom: 6px;
}

.shots__frame {
  flex: 0 0 86%;
  scroll-snap-align: start;
  min-width: 0;
  margin: 0;
}

.shots__frame.is-big { flex-basis: 100%; }

.shots__frame img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: var(--wash);
  cursor: zoom-in;
}

.shots__frame figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.shots__hint { font-size: 12px; color: var(--muted); margin: 4px 0 0; }

.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin: 8px 0 12px;
}

.tabbar button {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  padding: 6px 10px;
  margin-bottom: -1px;
  font-size: 14px;
}

.tabbar button.is-on,
.tabbar button[aria-selected="true"] {
  border-color: var(--line);
  background: #fff;
  font-weight: 600;
}

.prose { font-size: 16.5px; line-height: 1.65; max-width: 42rem; }
.prose h2 { margin-top: 1.4rem; font-size: 1.2rem; }
.prose h3 { margin-top: 1.1rem; }
.prose ul, .prose ol { margin-bottom: 0.9rem; }
.prose li { margin: 0.2rem 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 1rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 5px 7px;
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--wash); font-weight: 600; }

.prose code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.92em;
  background: var(--wash);
  padding: 0 3px;
}

.prose pre {
  background: var(--wash);
  border: 1px solid var(--line);
  padding: 10px 12px;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prose pre code { background: none; padding: 0; }

.prose blockquote {
  margin: 0 0 1rem;
  padding-left: 12px;
  border-left: 3px solid var(--ink);
  color: #3a3a40;
}

.faq { margin-top: 8px; max-width: 42rem; }
.faq h2 { font-size: 1.15rem; }

.faq__q {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-weight: 600;
}

.faq__a { padding: 0 0 8px; }

.faq.is-ready .faq__a { display: none; }
.faq.is-ready .faq__item.is-open .faq__a { display: block; }

.comments { margin-top: 26px; max-width: 42rem; }

.comments__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.sorts { display: flex; gap: 6px; }

.sorts button {
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px 8px;
  font-size: 13px;
}

.sorts button[aria-pressed="true"] {
  border-color: var(--ink);
  font-weight: 600;
}

.cmt { border-top: 1px solid var(--line); padding: 10px 0; }
.cmt--wait { opacity: 0.55; }
.cmt--reply { margin-left: 22px; border-top: 0; padding-top: 4px; }

.cmt__top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  margin-bottom: 4px;
}

.cmt__name { font-weight: 600; }
.cmt time { color: var(--muted); font-size: 13px; }

.cmt__tools { display: flex; gap: 12px; align-items: center; }

.like {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
}

.like.is-on { color: var(--tick); }

.reply-btn {
  border: 0;
  background: transparent;
  padding: 0;
  text-decoration: underline;
  font-size: 14px;
}

.badge {
  display: inline-block;
  border: 1px solid var(--ink);
  font-size: 12px;
  line-height: 1.3;
  padding: 0 4px;
  font-weight: 600;
}

.reply-form { margin: 6px 0 4px 22px; }

.hint { font-size: 13px; color: var(--muted); }
.form-err { color: #8a1f1f; font-size: 13px; margin: 4px 0; }
.form-ok {
  border: 1px solid var(--line);
  background: var(--wash);
  padding: 8px 10px;
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { margin: 0 0 12px; }

.field label,
.checkline {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 4px;
}

.checkline { font-weight: 400; }

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="search"],
.form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid #b9b9c2;
  background: #fff;
  padding: 7px 8px;
  border-radius: 0;
}

.form textarea { min-height: 7rem; resize: vertical; }

.auth { max-width: 28rem; }
.auth h1 { font-size: 1.45rem; }
.auth .links { font-size: 14px; }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 14px;
  font-size: 14px;
}

.pager ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.pager a,
.pager span {
  display: inline-block;
  min-width: 2rem;
  text-align: center;
  padding: 4px 6px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: #fff;
}

.pager [aria-current="page"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.empty {
  border: 1px dashed #c5c5cc;
  padding: 12px;
  color: var(--muted);
  margin: 8px 0 16px;
}

.acctabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin: 10px 0 14px;
}

.acctabs a {
  text-decoration: none;
  padding: 6px 10px;
  margin-bottom: -1px;
  border: 1px solid transparent;
  font-size: 14px;
}

.acctabs a[aria-current="page"] {
  border-color: var(--line);
  border-bottom-color: #fff;
}

.note-list { list-style: none; padding: 0; margin: 0; }
.note-list li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.note-list time { display: block; color: var(--muted); font-size: 13px; }

.toc {
  border: 1px solid var(--line);
  background: var(--wash);
  padding: 8px 12px;
  margin: 0 0 16px;
  max-width: 42rem;
}

.toc ol { margin: 0; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 6px;
}

.modal[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal__back {
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 26, 0.46);
  border: 0;
  padding: 0;
}

.modal__sheet {
  position: relative;
  background: #fff;
  border: 1px solid #2a2a2e;
  box-shadow: 4px 4px 0 #2a2a2e;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 14px 14px 16px;
  z-index: 1;
}

.modal__x {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  line-height: 0;
}

.modal__x img { display: block; }

.modal__body h3 { margin-top: 1rem; }
.modal__body .btn { margin: 0 8px 8px 0; }

.oldver { list-style: none; padding: 0; margin: 0; }
.oldver li { border-top: 1px solid var(--line); padding: 8px 0; }
.oldver p { margin: 0 0 4px; font-weight: 600; }

.find { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; max-width: 28rem; }
.find .field { flex: 1 1 12rem; margin: 0; position: relative; }
.find .field input[type="search"] { padding-left: 2rem; }
.find .field::before {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 9px;
  width: 14px;
  height: 14px;
  background: url("../img/icons/search.svg") center / 14px 14px no-repeat;
  pointer-events: none;
}

.rubric-jump { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; }

.saved { margin: 0 0 10px; font-weight: 600; }

/* pages */
.page-home .lede { margin-bottom: 4px; }

/* media */
@media (min-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 1.75rem; }
  .shots__frame { flex-basis: 70%; }
  .cmt--reply, .reply-form { margin-left: 36px; }
}

@media (min-width: 760px) {
  .js .nav-toggle { display: none; }
  .js .nav { display: block; width: 100%; }
  .nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 12px;
    padding-top: 0;
  }
  .nav a { border-bottom: 0; padding: 4px 0; }
  .brand { max-width: none; }
}

@media (min-width: 960px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .head { gap: 10px 16px; }
  .nav { width: auto; flex: 1 1 16rem; min-width: 0; }
  .nav ul { justify-content: flex-end; }
  .home-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
  }
  .feed { margin-top: 0; }
  .lede h1 { font-size: 2rem; }
  .prow {
    grid-template-columns: 16px 56px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    column-gap: 12px;
    padding: 7px 8px;
  }
  .prow__tick,
  .prow__icon,
  .prow__name,
  .prow__meta { grid-row: 1; }
  .prow__name { grid-column: 3; align-self: center; }
  .prow__meta {
    grid-column: 4;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px 12px;
  }
  .prow__ver {
    flex: 0 1 auto;
    max-width: 11rem;
    text-align: left;
  }
  .layout {
    display: grid;
    grid-template-columns: var(--side) minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
  }
  .prog-head { grid-column: 2; grid-row: 1; }
  .layout__side {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 12px;
    margin: 0;
  }
  .layout__body { grid-column: 2; grid-row: 2; }
  .shots__frame { flex-basis: 62%; }
}

@media (max-width: 759px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* page tweaks — kept at the end on purpose */
.page-program .prog-head { margin-bottom: 6px; }
.page-program .prog-head h1 { font-size: 1.45rem; padding-right: 0; }

.page-auth .form-err { margin-top: -2px; }

.page-help .prose h2,
.page-help .prose h3 { scroll-margin-top: 12px; }

.note-list li.is-unread { background: var(--wash); padding-left: 6px; padding-right: 6px; }
.page-account .who { max-width: 9rem; }
.page-account .who span:last-child {
  overflow-wrap: anywhere;
}

/* audit fixes */
.find .field input { width: 100%; box-sizing: border-box; }
/* галочка только у строк, где сборка правда свежая */
.prow:not(:has(.prow__flag:not(:empty))) .prow__tick { visibility: hidden; }
@media (min-width: 960px) {
  .brand { order: 1; }
  .nav { order: 2; }
  .user { order: 3; margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
}
.find { margin-bottom: 20px; }

/* seo: текст вступления после первого блока программ */
.home-about { margin-top: 32px; margin-bottom: 32px; }
.home-about__body { margin-top: 10px; }
/* seo: на телефоне в боковой ленте три последних, дальше сразу список */
@media (max-width: 959px) { .feed__list > li:nth-child(n+4) { display: none; } }

/* сеть: шапка липнет; «Find on the list» — в шапке на десктопе, на телефоне строкой у нижнего края */
:root { --ctl: 36px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.site-head { position: sticky; top: 0; z-index: 30; background: var(--paper); }
.listfind { display: flex; align-items: center; height: var(--ctl); border: 1px solid #b9b9c2; background: #fff; min-width: 0; }
.listfind__box { flex: none; width: 14px; height: 14px; margin: 0 6px 0 10px; border: 1.5px solid var(--tick); border-radius: 3px; }
.listfind input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 8px 0 2px; font: inherit; font-size: 14px; color: var(--ink); appearance: none; outline-offset: -2px; }
.listfind .btn { height: 100%; border: 0; border-left: 1px solid #3c32ab; padding: 0 12px; display: inline-grid; place-items: center; }
.listfind .btn img { filter: invert(1); }
.user .signin { height: var(--ctl); display: inline-flex; align-items: center; padding: 0 16px; background: var(--tick); color: #fff; font-weight: 600; text-decoration: none; }
.user .signin:hover { background: #3f34b8; text-decoration: none; }
.bell { width: var(--ctl); height: var(--ctl); display: inline-grid; place-items: center; border: 1px solid #b9b9c2; background: #fff; position: relative; padding: 0; }
.who .avatar { width: var(--ctl); height: var(--ctl); }
.user .out { height: var(--ctl); padding: 0 12px; border: 1px solid #b9b9c2; background: #fff; text-decoration: none; font-weight: 600; cursor: pointer; }
.user .out:hover { border-color: var(--ink); }
.nav-toggle { height: var(--ctl); padding: 0 10px; }
.prog-actions .btn { min-height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; }
.prog-actions .btn:first-child { font-weight: 600; }
.btn--fav.is-on { border-color: var(--tick); color: var(--tick); }
@media (min-width: 760px) {
  .head { flex-wrap: wrap; }
  .listfind { order: 2; flex: 1 1 280px; max-width: 380px; margin-left: auto; }
  .user { order: 3; }
  .nav { order: 5; width: 100%; flex: 1 0 100%; }
  .nav ul { justify-content: flex-start; }
}
@media (min-width: 960px) {
  .nav { order: 5; width: 100%; flex: 1 0 100%; }
  .nav ul { justify-content: flex-start; }
  .user { margin-left: 0; padding-left: 0; border-left: 0; }
  .layout__side { top: 112px; }
}
@media (max-width: 759px) {
  .listfind { position: fixed; z-index: 35; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 44px; box-shadow: 0 10px 28px -12px rgba(42, 42, 46, .5); border-color: var(--ink); }
  body { padding-bottom: 66px; }
  .totop { bottom: 66px; }
  .who__name { display: none; }
  .brand__tag { display: none; }
  .brand { max-width: none; flex: 1 1 auto; }
  .nav-toggle { margin-left: 0; }
}

/* сеть: текст во всю ширину рабочей области */
.lede, .prose, .comments, .home-about__body { max-width: none; }
.prow__note { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.prow__ph { display: grid; place-items: center; background: var(--wash); color: var(--tick); font-weight: 700; font-size: 20px; }
.plist--team .prow__tick { visibility: visible !important; }
.cnote { display: grid; gap: 8px; margin: 8px 0 14px; position: relative; }
.cnote textarea { width: 100%; min-height: 100px; border: 1px solid #b9b9c2; padding: 8px 10px; font: inherit; }
.cnote .btn { justify-self: start; }
.comments__bar h2 { margin: 0; }

/* сеть: «перемотка» — кадр крупно, бегунок с засечками */
.is-scrub .shots__strip, .is-scrub .shots__bar, .is-scrub .shots__hint { display: none; }
.scrub { margin: 8px 0 16px; }
.scrub__view { margin: 0; border: 1px solid var(--line); background: var(--wash); padding: 8px; cursor: zoom-in; }
.scrub__view img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; }
.scrub__view figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.scrub.is-big .scrub__view { position: fixed; inset: 0; z-index: 90; padding: 3vh 3vw; background: rgba(42, 42, 46, .92); cursor: zoom-out; }
.scrub.is-big .scrub__view img { height: 90vh; aspect-ratio: auto; background: transparent; }
.scrub.is-big .scrub__view figcaption { color: #fff; text-align: center; }
.scrub__bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.scrub__bar .btn--ico { width: 34px; height: 34px; justify-content: center; padding: 0; font-size: 18px; line-height: 1; }
.scrub__track { position: relative; flex: 1 1 auto; height: 34px; }
.scrub__ticks { position: absolute; left: 9px; right: 9px; top: 50%; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.scrub__ticks span { width: 2px; height: 12px; background: var(--line); }
.scrub__ticks span.is-seen { background: var(--tick); }
.scrub__range { position: relative; width: 100%; height: 34px; margin: 0; background: transparent; accent-color: var(--tick); cursor: pointer; }
.scrub__count { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); min-width: 56px; text-align: right; }
