/* BestFreeTemplates — shelf styles. Olivia's notes live in the markup. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c2836;
  --navy: #16324a;
  --coral: #e36b4a;
  --coral-deep: #c44e32;
  --paper: #f3efe8;
  --card: #fffdfb;
  --line: #e3dbd1;
  --muted: #5d6b78;
  --good: #1c7a4d;
  --bad: #9d2c2c;
  --stripe: #16324a;
  --wrap: 1180px;
}

/* rubrics — stripe on cards, pip on chips */
.adobe { --stripe: #d4532e; }
.games { --stripe: #2a6f97; }
.vst { --stripe: #b5812f; }
.apps { --stripe: #1f7a62; }
.office { --stripe: #3c5270; }
.video { --stripe: #c45c26; }
.screen { --stripe: #0f6e78; }
.macos { --stripe: #4a5560; }

* { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Nunito Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--coral-deep); }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
  text-decoration: none;
}
.skip:focus { top: 8px; color: #fff; }

.wrap {
  width: min(var(--wrap), calc(100% - 28px));
  margin-inline: auto;
}

h1, h2, h3, .brand-name, .card-name, .pick-name, .err-code {
  font-family: "Outfit", "Avenir Next", "Trebuchet MS", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
}

/* ---------- header ---------- */
.top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 4px 0 var(--coral);
}
.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 12px 0 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--navy);
}
.brand:hover { color: var(--navy); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
}
.brand-tag {
  display: block;
  margin-top: 1px;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  line-height: 1.3;
}
.top-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}
.signin, .signout {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 3px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 700;
}
.signin:hover, .signout:hover { background: var(--coral-deep); color: #fff; }
.signout { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.signout:hover { border-color: var(--coral); background: transparent; color: var(--coral-deep); }

.burger {
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 3px;
  padding: 0;
  color: var(--navy);
}
.burger .ico { display: block; margin: 0 auto; }
.ico { display: block; flex: none; }

.nav { padding-bottom: 8px; }
.nav-row { display: flex; flex-direction: column; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a {
  display: block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 3px;
  color: var(--ink);
}
.nav-item > a:hover { background: #f6f1ea; color: var(--navy); }
.nav-item > a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
}
.nav-item > a[aria-current="page"]:hover { color: #fff; }

.mega {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--stripe);
  padding: 12px;
}
.mega-lead {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  margin-bottom: 8px;
}
.mega-lead strong { display: block; font-family: Outfit, sans-serif; }
.mega-lead small { display: block; color: var(--muted); font-size: 13px; }
.mega-apps a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 5px 2px;
  font-size: 14px;
  min-width: 0;
}
.mega-apps img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.mega-apps a span { overflow-wrap: anywhere; }

.user { display: flex; align-items: center; gap: 8px; }
.me {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  min-width: 0;
}
.me-name { overflow-wrap: anywhere; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: 12px;
  flex: none;
}
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }

.bell { position: relative; }
.bell-btn {
  width: 40px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 3px;
  position: relative;
  color: var(--navy);
}
.bell-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
}
.bell-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(320px, 80vw);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  z-index: 30;
  padding: 6px 0 0;
}
.bell:focus-within .bell-panel { display: block; }
.bell-panel li a {
  display: block;
  padding: 8px 12px 0;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}
.bell-panel li.is-new a { font-weight: 700; }
.bell-panel li.is-new a::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  margin-right: 6px;
}
.bell-panel time {
  display: block;
  color: var(--muted);
  font-size: 12px;
  padding: 2px 12px 8px 25px;
}
.bell-panel li:not(.is-new) time { padding-left: 12px; }
.bell-all {
  display: block;
  text-align: center;
  padding: 8px;
  background: #f6f1ea;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- home ---------- */
.intro { padding: 26px 0 8px; }
.intro h1 { font-size: 2rem; max-width: 18ch; }
.lede {
  margin-top: 12px;
  max-width: 62ch;
  font-size: 1.05rem;
}
.lede p + p { margin-top: 0.75em; }
.lede ul { list-style: disc; padding-left: 1.2rem; margin-top: 0.7em; }
.lede li { margin: 0.2em 0; }
.intro-count {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}
.intro-count b {
  display: block;
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: var(--coral);
  letter-spacing: -0.04em;
  line-height: 1;
}

.picks { padding: 8px 0 22px; }
.kicker {
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 4px;
}
.picks h2, .band h2, .block-title { font-size: 1.55rem; }
.pick-note { color: var(--muted); margin: 4px 0 14px; max-width: 46ch; }
.pick-row {
  display: grid;
  gap: 14px;
}
.pick {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--stripe);
  border-radius: 4px;
  min-width: 0;
}
.pick a { display: block; text-decoration: none; color: inherit; height: 100%; }
.pick a:hover { color: inherit; }
.pick-shot { position: relative; background: #efe8df; }
.pick-shot img.cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.pick-ico {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 0 0 3px #fffdfb;
}
.pick-name { font-size: 1.25rem; padding: 12px 12px 0; overflow-wrap: anywhere; }
.pick-blurb { padding: 6px 12px 0; color: #3e4c59; font-size: 15px; }
.pick .card-meta { padding: 8px 12px 12px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 16px;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.is-on, .chip[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stripe);
  display: inline-block;
  font-style: normal;
}
.chip.is-on .pip { background: #fff; }

.band { padding: 6px 0 22px; }
.band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.band-head a { font-weight: 700; font-size: 14px; }
.band-head h2 { box-shadow: inset 4px 0 0 var(--stripe); padding-left: 10px; }

.masonry { columns: 1; column-gap: 14px; }
.masonry .card { display: inline-block; break-inside: avoid; margin: 0 0 14px; width: 100%; }

.grid, .catalog {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid #e6dfd6;
  border-top: 4px solid var(--stripe, var(--navy));
  border-radius: 4px;
  min-width: 0;
}
.card:hover { border-color: #d3cbc1; border-top-color: var(--stripe, var(--navy)); }
.card-hit { display: block; text-decoration: none; color: inherit; min-width: 0; }
.card-hit:hover { color: inherit; }
.card-shot { position: relative; background: #efe8df; }
.card-shot .cover { width: 100%; object-fit: cover; }
.card-ico {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(255, 253, 251, 0.95);
}
.card-name {
  font-size: 1.02rem;
  font-weight: 700;
  padding: 10px 12px 0;
  overflow-wrap: anywhere;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  padding: 6px 12px 12px;
  font-size: 13px;
  color: var(--muted);
}
.card-ver { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card-rubric { color: var(--navy); font-weight: 700; }
.card-size {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: 2px;
}
.card-fresh { color: var(--coral-deep); font-weight: 800; font-size: 12px; }

/* ---------- category / crumbs / pager ---------- */
.crumbs { padding: 16px 0 0; font-size: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "›"; margin: 0 6px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs span { overflow-wrap: anywhere; }

.page-head { padding: 10px 0 14px; }
.page-head h1 { font-size: 1.9rem; overflow-wrap: anywhere; }
.page-head .lede { margin-top: 8px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.count { color: var(--muted); font-size: 14px; }
.viewtoggle { display: flex; gap: 4px; }
.viewtoggle button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 3px;
  padding: 6px 8px;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
.viewtoggle button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 18px 0 36px;
}
.pager a, .pager span {
  min-width: 36px;
  text-align: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 3px;
}
.pager a[aria-current="page"] {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
.pager .is-off { color: #a3988c; background: #f6f1ea; }

/* list view — category only */
.catalog.as-list { display: flex; flex-direction: column; gap: 10px; }
.catalog.as-list .card-hit {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-areas: "shot name" "shot meta";
  column-gap: 12px;
  align-items: center;
}
.catalog.as-list .card-shot { grid-area: shot; }
.catalog.as-list .card-shot .cover { height: 76px; object-fit: cover; }
.catalog.as-list .card-ico { width: 32px; height: 32px; border-radius: 8px; left: 6px; bottom: 6px; }
.catalog.as-list .card-name { grid-area: name; padding: 8px 10px 0 0; align-self: end; }
.catalog.as-list .card-meta { grid-area: meta; padding: 2px 10px 8px 0; align-self: start; }

/* ---------- program ---------- */
.prog-head { padding: 12px 0 8px; }
.prog-id {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.prog-id img { width: 64px; height: 64px; border-radius: 16px; }
.prog-title { font-size: 1.7rem; overflow-wrap: anywhere; }
.prog-sub { margin-top: 4px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rubric-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: var(--stripe);
  padding: 2px 8px;
  border-radius: 2px;
}
.prog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn-dl, .btn-old, .btn-fav, .btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 3px;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid transparent;
}
.btn-dl { background: var(--coral); color: #fff; }
.btn-dl:hover { background: var(--coral-deep); color: #fff; }
.btn-old, .btn { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-old:hover, .btn:hover { color: var(--coral-deep); border-color: var(--coral); }
.btn-fav { background: #fff; border: 1px solid var(--line); color: var(--navy); }
.btn-fav .fav-on { display: none; }
.btn-fav[aria-pressed="true"] { background: #fde8e1; border-color: var(--coral); color: var(--coral-deep); }
.btn-fav[aria-pressed="true"] .fav-off { display: none; }
.btn-fav[aria-pressed="true"] .fav-on { display: inline; }

.prog-grid {
  display: grid;
  gap: 22px;
  padding-bottom: 10px;
}
.prog-grid > * { min-width: 0; }
.shots, .shots-track, .prose table { max-width: 100%; }
.specs {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: 12px 12px 4px;
}
.specs h2 { font-size: 1rem; margin-bottom: 8px; }
.specs dt { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.specs dd { margin: 0 0 10px; overflow-wrap: anywhere; }

.shots { position: relative; margin: 6px 0 16px; }
.shots-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* safari: иначе прыгает */
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.shots-track figure {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  min-width: 0;
}
.shots-track img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #efe8df; border: 1px solid var(--line); }
.shots-track figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.shot-nav { display: flex; gap: 6px; margin-bottom: 8px; }
.shot-nav button {
  width: 36px;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 3px;
  color: var(--navy);
  display: grid;
  place-items: center;
  padding: 0;
}

.tabs { margin-top: 8px; }
.tablist { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tablist button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font-weight: 800;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tablist button[aria-selected="true"] {
  color: var(--navy);
  border-bottom-color: var(--coral);
}

.prose { max-width: 68ch; padding-top: 14px; font-size: 1.03rem; line-height: 1.65; }
.prose h2 { font-size: 1.45rem; margin: 1.35em 0 0.4em; }
.prose h3 { font-size: 1.15rem; margin: 1.15em 0 0.3em; font-weight: 700; }
.prose p { margin: 0 0 0.85em; }
.prose ul, .prose ol { margin: 0 0 0.9em; padding-left: 1.25rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.25em 0; }
.prose li::marker { color: var(--coral-deep); }
.prose strong { font-weight: 700; }
.prose blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 14px;
  border-left: 3px solid var(--coral);
  color: var(--navy);
}
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: #f4ebe3;
  padding: 0 0.28em;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0 0 1em; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.prose th { background: #f6f1ea; font-size: 13px; }
.prose-fig { margin: 0 0 1em; }
.prose-fig img { border: 1px solid var(--line); }
.prose-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }

.faq { margin: 22px 0; max-width: 68ch; }
.faq h2 { font-size: 1.35rem; margin-bottom: 8px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1rem; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 10px 0;
  font-weight: 800;
  color: var(--navy);
  font-family: Outfit, sans-serif;
  letter-spacing: -0.02em;
}
.faq-item button::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--coral);
}
.faq-item button[aria-expanded="true"]::before { content: "–"; }
.faq-a { padding: 0 0 12px 1.2em; }

.sim { margin: 8px 0 22px; }
.sim h2 { font-size: 1.2rem; margin-bottom: 8px; }
.sim-row { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.sim-row a { text-decoration: none; width: 72px; text-align: center; font-size: 12px; color: var(--muted); }
.sim-row img { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 4px; }

.comments { margin: 10px 0 24px; max-width: 68ch; }
.comments-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.comments-head h2 { font-size: 1.35rem; }
.sort { display: flex; gap: 4px; }
.sort button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
}
.sort button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.cform label, .reply label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.cform textarea, .reply textarea { width: 100%; border: 1px solid #d9d1c7; padding: 8px 10px; border-radius: 3px; background: #fff; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0; }
.hp {
  position: absolute !important;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.cform .btn, .reply .btn { margin-top: 6px; }

.cmt { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.cmt-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Outfit, sans-serif;
  font-size: 13px;
  font-weight: 800;
}
.cmt-meta { font-size: 14px; }
.cmt-meta time { color: var(--muted); font-weight: 400; margin-left: 6px; }
.cmt-body { margin: 4px 0; overflow-wrap: anywhere; }
.cmt-tools { display: flex; gap: 8px; }
.cmt-tools button {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}
.cmt-tools [aria-pressed="true"] { color: var(--coral-deep); }
.replies { margin-top: 8px; }
.replies .cmt { border-top: 0; padding-top: 8px; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #f6e2b8;
  color: #6a4b10;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
}
.badge.bad { background: #f8d6d6; color: var(--bad); }
.cmt.is-pending .cmt-body,
.cmt.is-pending .cmt-meta strong,
.cmt.is-pending .cmt-meta time { opacity: 0.55; }
.reply { margin-top: 8px; }

.empty {
  background: #fff;
  border: 1px dashed #cfc6bb;
  padding: 14px;
  color: var(--muted);
  margin: 8px 0 16px;
}
.guest-note { background: #fff; border-left: 4px solid var(--coral); padding: 10px 12px; margin-bottom: 12px; }

.more { padding-bottom: 28px; }

/* ---------- modal ---------- */
.sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
}
.sheet:target { display: block; }
.sheet-bg {
  position: absolute;
  inset: 0;
  background: rgba(18, 32, 48, 0.48);
  color: transparent;
}
.sheet-box {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 24px));
  margin: 40px auto;
  background: #fffdfb;
  border-top: 4px solid var(--coral);
  padding: 16px 16px 20px;
  max-height: calc(100vh - 64px);
  overflow: auto;
}
.sheet-box h2 { font-size: 1.35rem; padding-right: 48px; }
.sheet-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  text-decoration: none;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #fff;
}
.sheet-box ol, .sheet-box ul { list-style: decimal; padding-left: 1.2rem; margin: 10px 0; }
.sheet-box li { margin: 0.3em 0; }
.vgroup { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.vgroup h3 { font-size: 1rem; overflow-wrap: anywhere; }
.mirror {
  display: inline-block;
  margin: 6px 8px 0 0;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 3px;
}
.mirror:hover { background: var(--coral-deep); color: #fff; }
.sheet .btn { margin-top: 8px; }

/* ---------- static, help, auth, account, errors ---------- */
.page-prose { padding: 8px 0 40px; }
.jumps { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 0; font-size: 14px; font-weight: 700; }

.help-grid { display: grid; gap: 18px; padding-bottom: 36px; }
.toc {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 14px;
}
.toc ol { list-style: decimal; padding-left: 1.1rem; }
.toc a { text-decoration: none; }
.toc li { margin: 4px 0; }

.auth { padding: 22px 0 40px; }
.auth-card {
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--coral);
  padding: 18px 16px 22px;
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card p.sub { color: var(--muted); margin-bottom: 12px; }
.field { margin-bottom: 10px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.field input, .find input, .acct-form input {
  width: 100%;
  border: 1px solid #d9d1c7;
  background: #fff;
  padding: 8px 10px;
  border-radius: 3px;
}
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 8px 0; }
.check input { width: auto; }
.form-error {
  background: #fdecea;
  color: var(--bad);
  padding: 8px 10px;
  font-size: 14px;
  margin-bottom: 10px;
}
.field-error { color: var(--bad); font-size: 13px; margin-top: 3px; }
.banner {
  background: #e7f4ee;
  color: #145c3a;
  padding: 10px 12px;
  border-left: 4px solid var(--good);
  margin-bottom: 12px;
  font-weight: 700;
}
.auth-links { margin-top: 12px; font-size: 14px; }
.auth-links a { font-weight: 700; }

.acct { padding: 18px 0 40px; }
.acct-id { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.acct-id h1 { font-size: 1.6rem; }
.acct-id p { color: var(--muted); font-size: 14px; }
.acct-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.acct-tabs a {
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 3px;
}
.acct-tabs a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.notes li, .mine li {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.notes li.is-new { border-left: 4px solid var(--coral); }
.notes a, .mine-app { font-weight: 800; text-decoration: none; }
.notes time, .mine time { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.acct-form { max-width: 460px; }
.save-note {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 3px 8px;
  margin-bottom: 10px;
}

.err { padding: 28px 0 36px; max-width: 62ch; }
.err-code {
  font-size: 64px;
  color: var(--coral);
  line-height: 0.9;
}
.err h1 { font-size: 1.8rem; margin: 6px 0 8px; }
.err p { margin-bottom: 10px; }
.err-home { margin-top: 14px; }
.find { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.find .btn { display: inline-flex; align-items: center; gap: 6px; }
.find input { flex: 1 1 180px; }
.rubric-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rubric-picks a {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--stripe);
  padding: 6px 8px;
  font-weight: 800;
  font-size: 14px;
}

.totop {
  position: fixed;
  right: 12px;
  bottom: 12px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 3px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.totop:hover { color: #fff; background: var(--coral-deep); }
.totop[hidden] { display: none !important; }

.foot {
  background: var(--navy);
  color: #e7eef3;
  padding: 22px 0 26px;
  margin-top: 10px;
}
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: #ffd2c6; }
.foot-brand {
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.foot-brand img { width: 28px; height: 28px; }
.foot-extra a { display: inline-flex; align-items: center; gap: 5px; }
.foot-tag { color: #c5d2dc; font-size: 14px; margin-top: 2px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0; font-weight: 700; }
.foot-copy { font-size: 14px; color: #c5d2dc; }
.foot-extra { margin-top: 8px; font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  .intro h1 { font-size: 2.5rem; }
  .grid, .catalog:not(.as-list) { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
  .pick-row { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 22px 22px 26px; }
}

@media (min-width: 960px) {
  .wrap { width: min(var(--wrap), calc(100% - 48px)); }
  .burger { display: none; }
  .nav-row { flex-direction: row; flex-wrap: wrap; gap: 0; }
  .nav-item > a { padding: 8px 9px; font-size: 14px; }
  .mega {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    width: 360px;
    z-index: 25;
    box-shadow: 0 14px 28px rgba(22, 40, 64, 0.08);
  }
  .nav-item:hover > .mega,
  .nav-item:focus-within > .mega { display: block; }
  .nav-item:nth-last-child(-n+3) > .mega { left: auto; right: 0; }
  .prog-grid { grid-template-columns: minmax(0, 1fr) 250px; align-items: start; column-gap: 28px; }
  .specs { position: sticky; top: 12px; }
  .shots-track figure { flex-basis: calc(50% - 6px); }
  .help-grid { grid-template-columns: 210px minmax(0, 1fr); align-items: start; }
  .toc { position: sticky; top: 12px; }
  .masonry { columns: 3; }
  .grid, .catalog:not(.as-list) { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 1200px) {
  .nav-item > a { padding: 8px 11px; font-size: 15px; }
  .pick-row { grid-template-columns: 1.35fr 1fr 1fr 1fr; }
  .pick:first-child .pick-name { font-size: 1.55rem; }
  .masonry { columns: 4; } /* tweak: 4-up only once the column isn't a sliver */
  .me-name { display: inline; }
}

@media (max-width: 959px) {
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .me-name { display: none; }
}

@media (max-width: 520px) {
  .top-tools { width: 100%; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; }
  .user { position: relative; }
  .bell-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(300px, calc(100vw - 28px));
  }
}

@media (max-width: 420px) {
  .brand-tag { display: none; }
  .catalog.as-list .card-hit { grid-template-columns: 84px minmax(0, 1fr); }
  .prog-title { font-size: 1.4rem; }
  .tablist button { padding: 8px 8px; font-size: 14px; }
}

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

/* ---------- audit fixes ---------- */
@media (max-width: 639px) {
  .top-bar { flex-wrap: nowrap; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 15px; }
  .brand-tag { display: none; }
  .top-tools { flex-wrap: nowrap; gap: 6px; }
  .signout { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 459px) {
  .top-bar:has([data-mn-logout]) .brand-text { display: none; }
}

/* seo: текст вступления после первого блока программ */
.home-about { margin-top: 32px; margin-bottom: 32px; }
.home-about__body { margin-top: 10px; }
/* seo: счётчик компактнее, витрина выше */
@media (max-width: 639px) {
  .intro-count { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; }
  .intro-count b { display: inline; font-size: 28px; }
  .pick-note { display: none; }
}


/* ---- натяжка на сайт ---- */
/* окно открывает наш скрипт */
.sheet.is-open { display: block; }
.sheet-body .vgroup p { display: flex; flex-wrap: wrap; gap: 8px; }
/* выпадашка колокольчика по клику */
.bell-panel.is-open { display: block; }
/* шапка прилипает; поиск в ней */
.top { position: sticky; top: 0; z-index: 40; background: var(--card); }
.top-find { display: none; order: 5; flex: 1 0 100%; gap: 6px; padding-bottom: 6px; }
.top-find.is-open { display: flex; }
.top-find input {
  flex: 1 1 auto; min-width: 0; height: 40px; box-sizing: border-box; padding: 0 12px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink);
}
.top-find input:focus { outline: 2px solid var(--coral); outline-offset: 0; border-color: var(--coral); }
.top-find button, .find-btn {
  width: 40px; height: 40px; box-sizing: border-box; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; cursor: pointer;
}
.top-find button { background: var(--navy); color: #fff; border: 0; }
.top-find button:hover { background: var(--coral-deep); }
.find-btn { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.top-tools .signin, .top-tools .signout { height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 16px; }
.top-tools .signin { background: var(--coral); }
.top-tools .signin:hover { background: var(--coral-deep); }
.burger { height: 40px; width: 40px; }
@media (min-width: 960px) {
  .find-btn { display: none; }
  .top-bar { flex-wrap: nowrap; }
  .top-find { display: flex; order: 0; flex: 0 1 360px; margin-left: auto; padding: 0; }
  .top-tools { margin-left: 0; }
}
/* поиск на странице поиска и 404 */
.find { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; max-width: 36rem; }
.find input { flex: 1 1 14rem; min-width: 0; height: 42px; box-sizing: border-box; padding: 0 12px; font: inherit; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
/* обложки карточек — разные пропорции у реальных картинок, держим рамку */
.card-shot .cover, .pick-shot .cover { aspect-ratio: 16 / 10; height: auto; object-fit: cover; display: block; }
.card-shot { min-height: 72px; }
/* кнопки программы одной высоты */
.prog-actions .btn-dl, .prog-actions .btn-old, .prog-actions .btn-fav { height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 18px; }
.prog-actions .btn-dl { padding: 0 24px; font-size: 16px; box-shadow: 0 3px 0 var(--coral-deep); }
.home-about__body, .home-about__body p { max-width: none; }
#notice { margin: 28px 0; }
#notice textarea, .cform textarea, .reply textarea { width: 100%; box-sizing: border-box; }

/* ---- скриншоты: «мудборд» ---- */
.shots.is-board .shots-track { display: none; }
.board { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.board-hero {
  position: relative; display: block; background: #efe8df; border: 1px solid var(--line); border-top: 4px solid var(--stripe);
  border-radius: 4px; overflow: hidden;
}
.board-hero img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #f6f1ea; }
.board-tag {
  position: absolute; right: 10px; bottom: 10px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800;
  padding: 3px 9px; border-radius: 999px;
}
.board-side { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.board-tile {
  flex: 0 0 104px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid var(--line); border-radius: 4px; background: #efe8df;
  cursor: pointer; overflow: hidden; transition: transform .15s ease, border-color .15s ease;
}
.board-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.board-tile:hover { transform: translateY(-2px); border-color: var(--stripe); }
.board-tile.is-on { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(227, 107, 74, .25); }
.board-cap { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
@media (min-width: 760px) {
  .board { grid-template-columns: minmax(0, 1fr) 120px; align-items: start; }
  .board-side { flex-direction: column; overflow: visible; max-height: none; }
  .board-tile { flex: none; width: 100%; }
}
/* телефон: логотип и кнопки в одну строку, поиск раскрывается под ними */
@media (max-width: 959px) {
  .top-bar { flex-wrap: wrap; column-gap: 8px; }
  .top-bar .brand { flex: 1 1 0; min-width: 0; }
  .top-bar .brand-text { min-width: 0; overflow: hidden; }
  .top-bar .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-bar .brand-tag { display: none; }
  .top-tools { flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; margin-left: 0; }
}
/* телефон: две карточки в ряд, обложка ниже */
@media (max-width: 639px) {
  .grid, .masonry, .catalog:not(.as-list) { columns: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-shot .cover { aspect-ratio: 4 / 3; }
  .card-ico { width: 40px; height: 40px; border-radius: 10px; left: 6px; bottom: 6px; }
  .card-name { font-size: 15px; }
  .card-meta { font-size: 12px; gap: 4px 6px; }
}
@media (max-width: 959px) { .top-tools { width: auto; } }
/* счётчик на главной — в строку, не отдельным блоком */
.intro-count { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.intro-count b { display: inline; font-size: 30px; }
/* один скриншот: кадр на всю ширину колонки, без пустой полосы под миниатюры и без «1 of 1» */
.board.is-single { grid-template-columns: minmax(0, 1fr); }
.board.is-single .board-tag { display: none; }
