/* iMacTorrent — main.css
   Светлый «алюминиевый» каталог. Порядок: переменные и сброс → типографика → раскладка →
   компоненты → страницы → медиазапросы. Стили только по классам (data-mn-* на сайте маскируются). */

/* ---------- переменные и сброс ---------- */
:root {
  --paper: #eef0f3;
  --panel: #ffffff;
  --ink: #1a1c21;
  --mute: #5a606c;
  --line: #d6dae1;
  --line-strong: #b9bfc9;
  --berry: #b3305c;
  --berry-deep: #8f2147;
  --berry-wash: #f8e6ec;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* прагматично: компоненты ниже задают display */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 136px; } /* шапка липкая — якоря не прячем под неё */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--berry); text-underline-offset: 3px; }
a:hover { color: var(--berry-deep); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
ul, ol { margin: 0; }
h1, h2, h3, p { margin: 0; }
table { border-collapse: collapse; }

.dk-ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.dk-vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.dk-skip {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.dk-skip:focus { top: 8px; color: #fff; }

/* ---------- типографика ---------- */
.dk-copy {
  font-family: var(--serif);
  font-size: 1.0625rem; /* 17px на телефоне, 18 с планшета */
  line-height: 1.65;
  color: #24272e;
  max-width: 68ch;
}
.dk-copy > * + * { margin-top: 1em; }
.dk-copy h2 {
  font: 700 1.4rem/1.25 var(--sans);
  color: var(--ink);
  margin-top: 1.9em;
  scroll-margin-top: 16px;
}
.dk-copy h2:first-child { margin-top: 0; }
.dk-copy h3 {
  font: 700 1.15rem/1.3 var(--sans);
  color: var(--ink);
  margin-top: 1.6em;
}
.dk-copy h2 + p, .dk-copy h3 + p { margin-top: .5em; }
.dk-copy ul, .dk-copy ol { padding-left: 1.3em; }
.dk-copy li + li { margin-top: .35em; }
.dk-copy li::marker { color: var(--berry); }
.dk-copy strong { color: var(--ink); }
.dk-copy code {
  font: .92em var(--mono);
  background: #eceef2;
  padding: 1px 5px;
  border-radius: 4px;
}
.dk-copy pre {
  background: var(--ink);
  color: #eef0f3;
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
}
.dk-copy pre code { background: none; padding: 0; color: inherit; font-size: 15px; }
.dk-copy table {
  width: 100%;
  font: 15px/1.45 var(--sans);
  display: block;
  overflow-x: auto;
}
.dk-copy th, .dk-copy td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
}
.dk-copy thead th { color: var(--mute); font-weight: 600; border-bottom-color: var(--line-strong); }
.dk-copy tbody th { font-weight: 600; width: 34%; }

/* ---------- раскладка ---------- */
.dk-wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px;
}
body { display: flex; flex-direction: column; min-height: 100vh; }
main.dk-wrap { flex: 1 0 auto; width: 100%; } /* подвал прижат к низу на коротких страницах */

/* шапка */
.dk-mast {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.dk-mast__top {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "logo . who burger" "find find find find";
  align-items: center;
  gap: 10px 8px;
  padding-top: 10px;
  padding-bottom: 12px;
}
.dk-logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.dk-logo:hover { color: var(--ink); }
.dk-logo__word { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.dk-logo__word b { font-weight: 700; color: var(--berry); }
.dk-logo--small .dk-logo__word { font-size: 1.1rem; }

.dk-find {
  grid-area: find;
  position: relative;
  display: flex;
}
.dk-find .dk-ic {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
  pointer-events: none;
}
.dk-find__q {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px 0 42px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #f7f8fa;
  font-size: 16px; /* меньше — iOS приближает поле */
}
.dk-find__q:focus { background: #fff; border-color: var(--berry); outline: 3px solid rgba(179, 48, 92, .22); outline-offset: 0; }
.dk-find__go {
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.dk-find__go:hover { background: #343844; }

.dk-who { grid-area: who; display: flex; align-items: center; gap: 6px; }
.dk-who__in {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--berry);
  border-radius: 8px;
  background: var(--berry);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.dk-who__in:hover { background: var(--berry-deep); border-color: var(--berry-deep); color: #fff; }
.dk-who__me { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; min-height: 44px; }
.dk-who__name { display: none; font-weight: 600; }
.dk-who__out {
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--mute);
  font-weight: 600;
  display: none;
}
.dk-who__out:hover { color: var(--ink); }

.dk-bell { position: relative; }
.dk-bell__btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.dk-bell__n {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--berry);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}
.dk-bell__drop {
  position: absolute;
  right: 0; top: 52px;
  width: min(340px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(26, 28, 33, .16);
  padding: 8px 0;
}
.dk-bell__title { padding: 6px 16px 8px; font-weight: 700; }
.dk-bell__list { list-style: none; padding: 0; }
.dk-bell__item { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 15px; }
.dk-bell__item a { color: var(--ink); text-decoration: none; display: block; }
.dk-bell__item time { font-size: 13px; color: var(--mute); }
.dk-bell__item.is-unread { background: #fbf3f6; }
.dk-bell__item.is-unread a { font-weight: 600; }
.dk-bell__all { display: block; padding: 10px 16px 4px; font-weight: 600; border-top: 1px solid var(--line); }

.dk-burger {
  grid-area: burger;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 600;
}
.dk-ava {
  width: 40px; height: 40px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #dfe3ea;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.dk-ava--lg { width: 48px; height: 48px; font-size: 16px; }
.dk-ava--xl { width: 72px; height: 72px; font-size: 24px; background: var(--berry-wash); color: var(--berry-deep); }

/* рубрики */
.dk-rubrics { border-top: 1px solid var(--line); }
.dk-rubrics__list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: -12px; /* текст первой рубрики ровно по краю контента */
}
.dk-rubrics__list::-webkit-scrollbar { display: none; }
.dk-rubrics__a {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 transparent;
}
.dk-rubrics__a:hover { color: var(--berry); }
.dk-rubrics__a[aria-current="page"] { color: var(--berry); box-shadow: inset 0 -3px 0 var(--berry); }
.dk-rubrics__n { color: var(--mute); font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums; }

/* без JS бургер не нужен: рубрики видны всегда */
.dk-burger { display: none; }
.has-js .dk-burger { display: inline-flex; }
.has-js .dk-rubrics { display: none; }
.has-js .dk-mast.is-open .dk-rubrics { display: block; }
.has-js .dk-mast.is-open .dk-rubrics__list { display: grid; grid-template-columns: 1fr 1fr; padding: 6px 0 12px; margin-left: 0; }
.has-js .dk-mast.is-open .dk-rubrics__a { box-shadow: none; border-radius: 8px; }
.has-js .dk-mast.is-open .dk-rubrics__a[aria-current="page"] { background: var(--berry-wash); }

/* подвал */
.dk-foot {
  margin-top: 64px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 28px 0 20px;
  font-size: 15px;
  color: var(--mute);
}
.dk-foot__in { display: grid; gap: 16px; }
.dk-foot__about p { margin-top: 6px; max-width: 46ch; }
.dk-foot__how {
  border: 0; background: none; padding: 2px 0;
  color: var(--berry); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
  min-height: 24px;
}
.dk-foot__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.dk-foot__links a { display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: none; }
.dk-foot__links a:hover { color: var(--berry); text-decoration: underline; }
.dk-foot__copy { font-size: 14px; }

/* ---------- компоненты ---------- */

/* карточка программы */
.dk-tiles { display: grid; gap: 12px; }
.dk-prog {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-areas: "ico name size" "ico meta meta";
  align-content: center;
  column-gap: 14px;
  row-gap: 3px;
  min-height: 86px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.dk-prog:hover { border-color: #d9a3b6; color: var(--ink); }
.dk-prog:hover .dk-prog__name { color: var(--berry); }
.dk-prog__ico { grid-area: ico; width: 56px; height: 56px; align-self: center; }
/* нет иконки: квадрат с первой буквой, сетка не съезжает */
.dk-prog__ico--none, .dk-sheet__ico--none {
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e3e6eb;
  border: 1px solid var(--line);
  color: var(--mute);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.dk-prog__name {
  grid-area: name;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  min-width: 0;
}
.dk-prog__meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  font-size: 14px;
  color: var(--mute);
  min-width: 0;
}
.dk-prog__ver { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dk-prog__size {
  grid-area: size;
  align-self: start;
  padding-top: 1px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mute);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dk-prog__when { font-size: 13px; color: var(--berry-deep); font-weight: 600; }
.dk-prog__new {
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--berry-wash);
  color: var(--berry-deep);
}

.dk-prog__intel, .dk-sheet__intel {
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  white-space: nowrap;
}

/* строка в панели рубрики */
.dk-prog--row {
  min-height: 80px;
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.dk-prog--row:last-child { border-bottom: 0; }

/* блоки главной */
.dk-block { margin-top: 36px; }
.dk-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 14px;
}
.dk-block__h { font-size: 1.375rem; line-height: 1.25; }
.dk-block__aside { font-size: 14px; color: var(--mute); }
.dk-block__more { display: inline-block; padding: 6px 0; font-weight: 600; font-size: 15px; }

/* «Popular»: компактный нумерованный список */
.dk-hot {
  list-style: none;
  padding: 0 16px;
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  grid-auto-columns: 74%; /* телефон: лента из пяти столбцов по три, листается вбок */
  column-gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  counter-reset: hot;
}
.dk-hot::-webkit-scrollbar { display: none; }
.dk-hot li:nth-child(3n+1) { scroll-snap-align: start; }
.dk-hot li { counter-increment: hot; border-top: 1px solid var(--line); margin-top: -1px; } /* верхняя линия первого ряда уходит под край */
.dk-hot__a {
  display: grid;
  grid-template-columns: 18px 36px minmax(0, 1fr);
  grid-template-areas: "n ico name" "n ico ver";
  align-items: center;
  column-gap: 10px;
  min-height: 60px;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
}
.dk-hot__a::before {
  content: counter(hot);
  grid-area: n;
  font-size: 14px;
  font-weight: 700;
  color: var(--berry);
  font-variant-numeric: tabular-nums;
}
.dk-hot__ico { grid-area: ico; width: 36px; height: 36px; }
.dk-hot__name { grid-area: name; align-self: end; font-size: 15px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.dk-hot__ver { grid-area: ver; align-self: start; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dk-hot__a:hover { color: var(--ink); }
.dk-hot__a:hover .dk-hot__name { color: var(--berry); }

/* длинный текст главной — под первым блоком программ */
.dk-about { display: grid; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.dk-about__h { font-size: 1.375rem; line-height: 1.25; }
.dk-about__txt { color: var(--mute); max-width: 75ch; }
.dk-about__txt p + p { margin-top: .6em; }

.dk-rgrid { display: grid; gap: 16px; margin-top: 40px; }
.dk-rpanel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2px 18px 4px;
}
.dk-rpanel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 10px;
  border-bottom: 2px solid var(--ink);
}
.dk-rpanel__h { font-size: 1.2rem; }
.dk-rpanel__all { display: inline-block; padding: 6px 0; font-size: 15px; font-weight: 600; text-decoration: none; }
.dk-rpanel__all:hover { text-decoration: underline; }

/* крошки */
.dk-crumbs { margin: 16px 0 10px; font-size: 14px; color: var(--mute); }
.dk-crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.dk-crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--line-strong); }
.dk-crumbs a { display: inline-block; padding: 4px 0; color: var(--mute); }
.dk-crumbs a:hover { color: var(--berry); }

/* кнопки, поля */
.dk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--berry);
  border-radius: 8px;
  background: var(--berry);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.dk-btn:hover { background: var(--berry-deep); border-color: var(--berry-deep); color: #fff; }
.dk-btn--quiet { background: var(--panel); color: var(--ink); border-color: var(--line-strong); }
.dk-btn--quiet:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.dk-btn--wide { width: 100%; min-height: 48px; }

.dk-field {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
}
.dk-field:focus { border-color: var(--berry); outline: 3px solid rgba(179, 48, 92, .22); outline-offset: 0; }
.dk-field[readonly] { background: var(--paper); color: var(--mute); }
textarea.dk-field { resize: vertical; min-height: 96px; }
.dk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.dk-form__row { margin-bottom: 16px; }
.dk-form__lbl { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.dk-form__hint { margin-top: 6px; font-size: 14px; color: var(--mute); }
.dk-form__opt { font-weight: 400; color: var(--mute); }
.dk-form__err { margin-top: 6px; font-size: 14px; color: #a3192f; font-weight: 600; }
.dk-form__row.is-bad .dk-field { border-color: #c0283f; }
.dk-form__split { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dk-form__link { display: inline-block; padding: 2px 0 6px; font-size: 14px; }
.dk-form__set { border: 0; padding: 0; margin: 8px 0 8px; }
.dk-form__set legend { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 17px; }
.dk-check { display: flex; align-items: center; gap: 10px; min-height: 32px; margin: 0 0 18px; font-size: 15px; cursor: pointer; }
.dk-check input { width: 18px; height: 18px; accent-color: var(--berry); }

.dk-note { padding: 12px 14px; border-radius: 8px; font-size: 15px; margin-bottom: 18px; border: 1px solid; }
.dk-note--ok { background: #e8f4ec; color: #1d5e37; border-color: #bfe0cc; }
.dk-note--err { background: #fbeaea; color: #8a1c1c; border-color: #f0c4c4; }
.dk-flag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  background: #fff1d1;
  color: #6e4a00;
}
.dk-flag--no { background: #fbeaea; color: #8a1c1c; }
.dk-none {
  padding: 20px;
  border: 1px dashed #c3c8d0;
  border-radius: 10px;
  color: var(--mute);
  font-family: var(--sans);
  font-size: 16px;
  text-align: center;
}
.dk-empty {
  margin-top: 8px;
  padding: 28px 20px;
  border: 1px dashed #c3c8d0;
  border-radius: 12px;
  text-align: center;
  color: var(--mute);
}
.dk-empty__h { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.dk-empty .dk-btn { margin-top: 14px; }
.dk-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0; }
.dk-chip {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none;
}
.dk-chip:hover { border-color: var(--berry); color: var(--berry); }

/* модалка */
.dk-dlg {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dk-dlg__bg { position: absolute; inset: 0; background: rgba(20, 22, 27, .55); }
.dk-dlg__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 26px 24px 20px;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20, 22, 27, .3);
  animation: dlg-in .18s ease-out;
}
.dk-dlg__x {
  position: absolute;
  top: 10px; right: 10px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: none;
  color: var(--mute);
}
.dk-dlg__x:hover { background: var(--paper); color: var(--ink); }
.dk-dlg__h { font-size: 1.375rem; line-height: 1.25; margin: 0 44px 14px 0; }
.dk-dlg__box > p + p { margin-top: .8em; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dk-steps { padding-left: 1.4em; line-height: 1.55; margin-bottom: 8px; }
.dk-steps li + li { margin-top: 6px; }
.dk-steps li::marker { font-weight: 700; color: var(--berry); }
.dk-steps code { font: 14px var(--mono); background: #eceef2; padding: 1px 4px; border-radius: 4px; }
.dk-build { border-top: 1px solid var(--line); padding: 16px 0 6px; margin-top: 12px; }
.dk-build__h { font-size: 16px; margin-bottom: 10px; }
.dk-build__meta { display: block; font-size: 14px; font-weight: 400; color: var(--mute); }
.dk-build__links { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-build__a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none;
}
.dk-build__a:hover { border-color: var(--ink); color: var(--ink); }
.dk-build__a--main { background: var(--berry); border-color: var(--berry); color: #fff; }
.dk-build__a--main:hover { background: var(--berry-deep); border-color: var(--berry-deep); color: #fff; }
.dk-older { list-style: none; padding: 0; }
.dk-older__item { border-top: 1px solid var(--line); padding: 12px 0; }
.dk-older__name { font-weight: 600; }
.dk-older__name span { font-weight: 400; color: var(--mute); }
.dk-older__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 2px; font-size: 15px; }
.dk-older__links a { display: inline-block; padding: 4px 0; font-weight: 600; }
.dk-older__size { color: var(--mute); font-size: 14px; font-variant-numeric: tabular-nums; }

/* просмотр скриншота */
.dk-lbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 56px 16px 16px; }
.dk-lbox__bg { position: absolute; inset: 0; background: rgba(15, 16, 20, .88); }
.dk-lbox__fig { position: relative; margin: 0; width: min(1100px, 100%); }
.dk-lbox__img { width: 100%; border-radius: 8px; }
.dk-lbox__cap { margin-top: 10px; color: #e8eaee; text-align: center; font-size: 15px; }
.dk-lbox__x {
  position: fixed; top: 12px; right: 12px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #fff; color: var(--ink);
}

.dk-totop {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 100;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 18px rgba(26, 28, 33, .25);
}

/* ---------- страницы ---------- */

/* главная */
.dk-intro { padding: 22px 0 4px; display: grid; gap: 10px; }
.dk-intro__h { font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.015em; }
.dk-intro__txt { color: var(--mute); font-size: 16px; max-width: 75ch; }
.dk-intro__txt p + p { margin-top: .6em; }

/* рубрика */
.dk-cathead { margin: 4px 0 20px; }
.dk-cathead__h { font-size: 2rem; line-height: 1.15; letter-spacing: -0.015em; }
.dk-cathead__n { margin-top: 4px; font-size: 15px; color: var(--mute); }
.dk-cathead__txt { margin-top: 10px; font-size: 17px; max-width: 75ch; color: #3a3f48; }
.dk-sortby { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.dk-sortby__lbl { font-size: 14px; color: var(--mute); margin-right: 4px; }
.dk-sortby__a {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none;
}
.dk-sortby__a:hover { border-color: var(--ink); color: var(--ink); }
.dk-sortby__a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.dk-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 36px 0 8px; }
.dk-pager__a {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink); font-weight: 600; text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.dk-pager__a:hover { border-color: var(--ink); color: var(--ink); }
.dk-pager__a.is-current { background: var(--berry); border-color: var(--berry); color: #fff; }

/* программа: «экран» и «подбородок» */
.dk-sheet {
  margin: 4px 0 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.dk-sheet__screen { display: flex; align-items: flex-start; gap: 16px; padding: 20px 18px 18px; }
.dk-sheet__ico { width: 64px; height: 64px; flex: none; }
.dk-sheet__ico--none { font-size: 28px; border-radius: 15px; }
.dk-sheet__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dk-sheet__txt { min-width: 0; }
.dk-sheet__cat {
  display: inline-flex; align-items: center;
  min-height: 26px; padding: 0 10px;
  border-radius: 999px;
  background: var(--berry-wash);
  color: var(--berry-deep);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.dk-sheet__cat:hover { background: #f1d3de; color: var(--berry-deep); }
.dk-sheet__h { margin: 8px 0 6px; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.dk-sheet__lede { font-size: 17px; color: #3a3f48; max-width: 62ch; }
.dk-sheet__upd { margin-top: 8px; font-size: 14px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 2px 14px; }
.dk-sheet__by a { color: var(--mute); }

.dk-chin {
  background: var(--berry);
  color: #fff;
  padding: 16px 18px 18px;
  display: grid;
  gap: 16px;
}
.dk-chin__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.dk-chin__fact dt { font-size: 13px; color: #f7dbe5; }
.dk-chin__fact dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dk-chin__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; order: -1; } /* телефон: скачать — сразу под заголовком, факты ниже */
.dk-chin__dl {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 6px 22px;
  border-radius: 10px;
  background: #fff;
  color: var(--berry-deep);
  font-size: 17px; font-weight: 700; text-decoration: none; text-align: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}
.dk-chin__dl:hover { background: #fdf1f5; color: var(--berry-deep); }
.dk-chin__dl:focus-visible, .dk-chin__btn:focus-visible { outline-color: #fff; }
.dk-chin__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 12px;
  border: 1.5px solid rgba(255, 255, 255, .6);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.dk-chin__btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.dk-chin__fav[aria-pressed="true"], .dk-chin__fav.is-on { background: #fff; color: var(--berry-deep); border-color: #fff; }
.dk-chin__fav[aria-pressed="true"] .dk-ic, .dk-chin__fav.is-on .dk-ic { fill: currentColor; }

.dk-pbody { display: grid; gap: 28px; }
.dk-pmain { min-width: 0; }
.dk-pside { display: grid; gap: 16px; align-content: start; }

.dk-shots { position: relative; margin-bottom: 28px; }
.dk-shots__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.dk-shots__track::-webkit-scrollbar { display: none; }
.dk-shots__item {
  flex: 0 0 86%;
  max-width: 600px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
}
.dk-shots__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dk-shots__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(26, 28, 33, .14);
}
.dk-shots__nav--prev { left: 10px; }
.dk-shots__nav--next { right: 10px; }
.dk-shots__nav:disabled { opacity: .35; cursor: default; }
.dk-shots--one .dk-shots__item { flex-basis: 100% !important; }
.dk-shots--one .dk-shots__nav { display: none !important; }

.dk-tabs__bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.dk-tabs__btn {
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--mute);
  font-weight: 600;
  white-space: nowrap;
}
.dk-tabs__btn:hover { color: var(--ink); }
.dk-tabs__btn.is-on, .dk-tabs__btn[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--berry); }
.dk-tabs__panel { padding-top: 22px; }

.dk-faq { margin-top: 44px; max-width: 68ch; }
.dk-faq__h { font-size: 1.375rem; margin-bottom: 8px; }
.dk-faq__item { border-top: 1px solid var(--line); }
.dk-faq__item:last-child { border-bottom: 1px solid var(--line); }
.dk-faq__item summary {
  position: relative;
  list-style: none;
  padding: 15px 40px 15px 0;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
}
.dk-faq__item summary::-webkit-details-marker { display: none; }
.dk-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--berry);
}
.dk-faq__item[open] summary::after { content: "\2212"; }
.dk-faq__item p { padding: 0 0 16px; color: #3a3f48; }

/* комментарии */
.dk-talk { margin-top: 44px; max-width: 760px; }
.dk-talk__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dk-talk__h { font-size: 1.375rem; }
.dk-talk__n {
  display: inline-block;
  margin-left: 4px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e3e6eb;
  font-size: 15px;
  line-height: 26px;
  vertical-align: 3px;
  font-variant-numeric: tabular-nums;
}
.dk-talk__sort { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.dk-talk__sortbtn { min-height: 36px; padding: 0 14px; border: 0; background: var(--panel); font-size: 14px; font-weight: 600; color: var(--mute); }
.dk-talk__sortbtn + .dk-talk__sortbtn { border-left: 1px solid var(--line-strong); }
.dk-talk__sortbtn.is-on, .dk-talk__sortbtn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.dk-talk__form {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
}
.dk-talk__form--reply { margin: 10px 0 4px; padding: 12px; }
.dk-talk__lbl { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.dk-talk__send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.dk-talk__hint { font-size: 14px; color: var(--mute); }
.dk-talk__err { margin-top: 8px; font-size: 14px; color: #a3192f; font-weight: 600; }
.dk-talk__guest { padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.dk-talk__guest a { font-weight: 600; }
.dk-talk__empty { padding: 20px; border: 1px dashed #c3c8d0; border-radius: 10px; color: var(--mute); text-align: center; }

.dk-cmt { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.dk-cmt__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; }
.dk-cmt__when { font-size: 14px; color: var(--mute); }
.dk-cmt__txt { margin: 4px 0 10px; line-height: 1.55; }
.dk-cmt__acts { display: flex; gap: 8px; }
.dk-cmt__like, .dk-cmt__reply {
  min-height: 34px; padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--mute);
  font-size: 14px; font-weight: 600;
}
.dk-cmt__like:hover, .dk-cmt__reply:hover { border-color: var(--line-strong); color: var(--ink); }
.dk-cmt__like.is-on, .dk-cmt__like[aria-pressed="true"] { color: var(--berry-deep); background: var(--berry-wash); border-color: #efc6d4; }
.dk-cmt__replies { margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--line); }
.dk-cmt--reply { padding: 10px 0; border-top: 0; }
.dk-cmt.is-held { opacity: .62; }

/* боковая колонка программы */
.dk-side {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.dk-side__h { font-size: 16px; margin-bottom: 8px; }
.dk-specs { margin: 0; }
.dk-specs__row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.dk-specs__row:first-child { border-top: 0; }
.dk-specs dt { font-size: 14px; color: var(--mute); }
.dk-specs dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.dk-toc { list-style: none; padding: 0; }
.dk-toc a {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}
.dk-toc a:hover { border-left-color: var(--berry); color: var(--berry); }
.dk-desk__who { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.dk-desk__more {
  margin-top: 8px; min-height: 32px; padding: 0;
  border: 0; background: none;
  color: var(--berry); font-weight: 600; font-size: 15px;
  text-decoration: underline; text-underline-offset: 3px;
}
.dk-pop { list-style: none; padding: 0; }
.dk-pop__a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.dk-pop li:first-child .dk-pop__a { border-top: 0; }
.dk-pop__a img { width: 36px; height: 36px; }
.dk-pop__name { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.dk-pop__ver { font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.dk-pop__a:hover .dk-pop__name { color: var(--berry); }

/* аккаунт */
.dk-acct { display: flex; align-items: center; gap: 16px; margin: 24px 0 18px; }
.dk-acct__name { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.dk-acct__since { font-size: 14px; color: var(--mute); }
.dk-acct__tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.dk-acct__tab {
  display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 14px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  color: var(--mute); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.dk-acct__tab:hover { color: var(--ink); }
.dk-acct__tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--berry); }
.dk-acct__body { padding-top: 24px; }
.dk-acct__body--narrow { max-width: 560px; }
.dk-acct__h { font-size: 1.5rem; margin-bottom: 16px; }
.dk-acct__count { margin-left: 6px; font-size: 15px; font-weight: 400; color: var(--mute); }
.dk-nlist, .dk-mycmts { list-style: none; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.dk-nlist__item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.dk-nlist__item:first-child, .dk-mycmt:first-child { border-top: 0; }
.dk-nlist__item a { color: var(--ink); text-decoration: none; }
.dk-nlist__item a:hover { color: var(--berry); text-decoration: underline; }
.dk-nlist__item time { font-size: 14px; color: var(--mute); white-space: nowrap; }
.dk-nlist__item.is-unread a { font-weight: 600; }
.dk-nlist__item.is-unread a::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: var(--berry);
}
.dk-mycmt { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.dk-mycmt img { width: 40px; height: 40px; }
.dk-mycmt__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; }
.dk-mycmt__top a { font-weight: 600; }
.dk-mycmt__top time { font-size: 14px; color: var(--mute); }
.dk-mycmt__txt { margin-top: 4px; }

/* вход */
.dk-auth {
  max-width: 440px;
  margin: 36px auto 0;
  padding: 28px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.dk-auth__h { font-size: 1.75rem; line-height: 1.2; }
.dk-auth__sub { margin: 6px 0 20px; color: var(--mute); font-size: 15px; }
.dk-auth__alt { margin-top: 18px; text-align: center; font-size: 15px; }
.dk-auth__alt a { font-weight: 600; }

/* ошибки */
.dk-oops { max-width: 640px; margin: 56px auto 0; text-align: center; }
.dk-oops__code { font-weight: 700; color: var(--berry); }
.dk-oops__h { margin-top: 6px; font-size: 2rem; line-height: 1.15; letter-spacing: -0.015em; }
.dk-oops__txt { margin-top: 10px; font-size: 18px; color: #3a3f48; }
.dk-oops__find { display: flex; gap: 8px; max-width: 460px; margin: 24px auto 0; }
.dk-oops__find .dk-field { flex: 1; min-width: 0; }

/* служебные и справка */
.dk-doc {
  padding: 24px 20px 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: none;
}
.dk-doc h1 { font: 700 2rem/1.15 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
.dk-doc > * { max-width: 68ch; }
.dk-doc__lede { font-size: 1.2rem; color: #3a3f48; }
.dk-doc h1 + .dk-copy { margin-top: 18px; } /* dmca: текст отдельным блоком перед формой */
.dk-helpwrap { display: grid; gap: 20px; }
.dk-helpwrap > * { min-width: 0; } /* иначе pre с командой распирает колонку на телефоне */
.dk-helpwrap__toc { align-self: start; }

/* поиск */
.dk-found { margin: 4px 0 20px; }
.dk-found__h { font-size: 2rem; line-height: 1.15; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.dk-found__n { margin-top: 4px; font-size: 15px; color: var(--mute); }
.dk-nothing { text-align: left; padding: 24px 20px; margin-bottom: 8px; }
.dk-nothing ul { margin: 10px 0 0; padding-left: 1.2em; }
.dk-nothing li + li { margin-top: 4px; }
.dk-nothing .dk-chips { justify-content: flex-start; margin: 16px 0 0; padding-left: 0; }

/* DMCA */
.dk-dmca { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.dk-dmca__h { font: 700 1.4rem/1.25 var(--sans); margin-bottom: 16px; }
.dk-dmca__pair { display: grid; gap: 0 16px; }
.dk-dmca .dk-check { align-items: flex-start; min-height: 0; margin-bottom: 12px; }
.dk-dmca .dk-check input { width: 24px; height: 24px; margin: 0; flex: none; } /* две обязательные галочки — крупнее, чем «Keep me signed in» */
.dk-dmca__send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }

/* ---------- медиазапросы ---------- */
@media (min-width: 600px) {
  .dk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-chin__facts { grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px 0; }
  .dk-chin__fact { padding: 0 20px; border-left: 1px solid rgba(255, 255, 255, .28); }
  .dk-chin__fact:first-child { padding-left: 0; border-left: 0; }
  .dk-chin__acts { display: flex; flex-wrap: wrap; order: 0; }
  .dk-hot { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; overflow: hidden; }
  .dk-dmca__pair { grid-template-columns: 1fr 1fr; }
  .dk-chin__dl { grid-column: auto; }
  .dk-foot__in { grid-template-columns: 1fr auto; align-items: start; }
  .dk-foot__copy { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .dk-wrap { padding-inline: 24px; }
  .has-js .dk-burger { display: none; }
  .has-js .dk-rubrics { display: block; }
  .dk-mast__top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo find who";
    gap: 20px;
    padding-top: 12px;
  }
  .dk-find { max-width: 620px; }
  .dk-who__out { display: inline-flex; align-items: center; }
  .dk-copy { font-size: 1.125rem; }
  .dk-copy h2 { font-size: 1.6rem; }
  .dk-intro__h { font-size: 2.25rem; }
  .dk-sheet__screen { padding: 28px 28px 24px; gap: 22px; }
  .dk-sheet__h { font-size: 2.25rem; }
  .dk-chin { padding: 18px 28px; }
  .dk-shots__item { flex-basis: 74%; }
  .dk-shots__nav { display: grid; }
  .dk-auth { padding: 32px 32px 28px; }
  .dk-doc { padding: 36px 44px 44px; }
}

@media (min-width: 1024px) {
  .dk-who__name { display: inline; }
  .dk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dk-intro { grid-template-columns: 5fr 6fr; gap: 40px; align-items: start; padding: 28px 0 6px; }
  .dk-intro__h { padding-top: 2px; }
  .dk-about { grid-template-columns: 5fr 6fr; gap: 40px; align-items: start; }
  .dk-hot { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 20px; column-gap: 24px; }
  .dk-rgrid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .dk-chin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
  .dk-pbody { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .dk-side--toc { position: sticky; top: 136px; } /* под липкой шапкой */
  .dk-helpwrap { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .dk-helpwrap__toc { position: sticky; top: 136px; }
  .dk-foot__in { grid-template-columns: 1fr auto auto; gap: 24px 40px; }
  .dk-foot__copy { grid-column: auto; padding-top: 6px; }
}

@media (max-width: 419px) {
  .dk-who__in { padding: 0 12px; }
  .dk-chin__btn { padding: 0 8px; font-size: 14px; }
  .dk-chin__btn .dk-ic { display: none; }
  .dk-tabs__btn { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* safari: без этого лента скриншотов дёргается при snap внутри grid */
.dk-pmain .dk-shots__track { -webkit-overflow-scrolling: touch; }

/* страница рубрики: на десктопе вводный текст и сортировка рядом */
@media (min-width: 1024px) {
  .dk-pg-cat .dk-cathead { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
  .dk-pg-cat .dk-cathead > * { grid-column: 1; }
  .dk-pg-cat .dk-cathead > .dk-sortby { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0; }
}

/* сеть: только то, чего в макете нет (данные сайта, состояния после проверки на живых данных) */
/* заглушка-буква в мелких списках: «Popular» главной (36), «Popular this week» (36), «My comments» кабинета (40) */
.dk-hot__ico.dk-prog__ico--none, .dk-pop__ph { width: 36px; height: 36px; flex: none; border-radius: 9px; font-size: 16px; }
.dk-mycmt__ph { width: 40px; height: 40px; flex: none; border-radius: 10px; font-size: 17px; }
/* пропуск в пагинации (много страниц в рубрике) */
.dk-pager__gap { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--mute); }
/* окно скачивания: тело собирается скриптом, отступ между шагами и сборками */
.dk-dlg__body > * + * { margin-top: 14px; }
/* шапка вошедшего на узком телефоне: колокольчик + аватар + «Menu» не влезают рядом с логотипом — у «Menu» остаётся значок */
@media (max-width: 419px) {
  .dk-mast__top:has(.dk-who--in) .dk-burger span { display: none; }
  .dk-mast__top:has(.dk-who--in) .dk-burger { padding-inline: 10px; }
}

/* программа без иконки: вместо букв — обложка (скриншот), обрезанная в квадрат иконки */
img.is-cover { object-fit: cover; object-position: center top; }
