/* Тихие страницы — пастельный фон, чёрный шрифт, изумрудный акцент.
   У каждого обоя свой оттенок линии: он приходит в разметку как --c. */

:root {
  --bg: #f4f1ea;
  --bg-2: #ebe6db;
  --ink: #0b0b0b;
  --em: #0e7c5a;
  --em-ink: #0a5c43;

  --line: rgba(11, 11, 11, 0.12);
  --line-strong: rgba(11, 11, 11, 0.28);
  --muted: rgba(11, 11, 11, 0.58);
  --em-soft: rgba(14, 124, 90, 0.1);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "PT Serif", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --page: 1280px;
  --gap: clamp(16px, 2.2vw, 32px);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* без голубой плашки при нажатии на телефоне; отклик дают свои :active */
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; color: var(--em); }
:focus-visible { outline: 2px solid var(--em); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--em); color: var(--bg); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 8px 14px; background: var(--ink); color: var(--bg);
  font-family: var(--sans); font-size: 13px;
}
.skip:focus { top: 12px; }

/* ---------- кнопки и мелочи ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--em); border-color: var(--em); color: #fff; }
.btn-solid:hover { background: var(--em-ink); border-color: var(--em-ink); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

.swatch {
  --c: var(--em);
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(11, 11, 11, 0.18);
}
.swatch-sm { width: 8px; height: 8px; display: inline-block; margin-right: 7px; vertical-align: 1px; }

.reset {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--em);
  border-bottom: 1px solid var(--em-soft);
  transition: border-color 0.15s;
}
.reset:hover { border-color: var(--em); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- шапка ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 241, 234, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 16px var(--gap);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 10px; height: 10px;
  background: var(--em);
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(45deg); }
.brand-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.top-nav { display: flex; align-items: center; gap: 20px; font-family: var(--sans); }
.count { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.15s, color 0.15s;
}
.top-link:hover { border-color: var(--em); color: var(--em); }
.top-link-icon { transition: transform 0.4s var(--ease); }
.top-link:hover .top-link-icon { transform: rotate(180deg); }

/* ---------- первый экран ---------- */

main { max-width: var(--page); margin: 0 auto; padding: 0 var(--gap) 80px; }

.hero { padding: clamp(48px, 7vw, 104px) 0 clamp(36px, 5vw, 64px); }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.lead {
  margin-top: 24px;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

/* три телефона веером */
.showcase {
  position: relative;
  height: clamp(360px, 40vw, 520px);
}
.phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  aspect-ratio: 768 / 1344;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
  border: 6px solid var(--ink);
  box-shadow: 0 30px 60px -20px rgba(11, 11, 11, 0.45), 0 0 0 1px rgba(11, 11, 11, 0.4);
  transition: transform 0.6s var(--ease);
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 22px; }
.phone-1 { transform: translate(-115%, -48%) rotate(-9deg); }
.phone-2 { transform: translate(-50%, -50%); z-index: 2; width: 44%; }
.phone-3 { transform: translate(15%, -48%) rotate(9deg); }
.showcase:hover .phone-1 { transform: translate(-125%, -50%) rotate(-12deg); }
.showcase:hover .phone-3 { transform: translate(25%, -50%) rotate(12deg); }
.phone:hover { z-index: 3; }

/* ---------- каталог и фильтры ---------- */

.catalog { padding-top: 28px; border-top: 1px solid var(--line); }

.filter-block {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}
.filter-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* лента с прокруткой и мягкими краями вместо стены из кнопок */
.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 24px 6px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}
.filters::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, 0.45); }
.chip-on, .chip-on:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip-n { font-size: 11px; opacity: 0.55; font-variant-numeric: tabular-nums; }

.sorts {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
}
.sort {
  position: relative;
  padding: 7px 22px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
/* тонкий разделитель между пунктами; рядом с выбранным он не нужен */
.sort + .sort::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--line-strong);
}
.sort-on::before, .sort-on + .sort::before { display: none; }
.sort:hover { color: var(--ink); }
.sort-on, .sort-on:hover { background: var(--ink); color: var(--bg); }

.catalog-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.result { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.result-page { margin-left: 4px; }

/* ---------- сетка ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: calc(var(--gap) * 1.25) calc(var(--gap) * 0.75);
}

.card-link { display: block; }

.thumb {
  --c: var(--em);
  position: relative;
  aspect-ratio: 768 / 1344;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.thumb-light { background: var(--bg-2); }
.thumb-dark { background: var(--ink); }

/* цветной ореол оттенка линии при наведении */
.card-link:hover .thumb {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent),
    0 22px 40px -18px color-mix(in srgb, var(--c) 70%, rgba(11, 11, 11, 0.6));
}

.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.card-link:hover .thumb img { transform: scale(1.04); }

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--sans);
  color: var(--em);
  background: var(--bg);
  border-radius: 999px;
}

.thumb-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--sans);
}

.card-text { padding: 14px 2px 0; }
.card-text h2 { font-size: 18px; line-height: 1.25; transition: color 0.15s; }
.card-link:hover .card-text h2 { color: var(--em); }
.card-text p {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--sans);
}
.dot { padding: 0 6px; opacity: 0.5; }

.empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 48px 0;
  color: var(--muted);
  font-size: 20px;
}

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

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13px;
}
.pager-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager-num, .pager-gap {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pager-num { border: 1px solid var(--line); transition: border-color 0.15s, color 0.15s; }
.pager-num:hover { border-color: var(--ink); color: var(--ink); }
.pager-on, .pager-on:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pager-step { color: var(--ink); white-space: nowrap; padding: 8px 4px; }
.pager-step:hover { color: var(--em); }
.pager-off { color: var(--muted); opacity: 0.45; }

/* ---------- страница обоя ---------- */

.back, .crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--sans);
}
.back { display: inline-block; }
.back:hover, .crumbs a:hover { color: var(--em); }
.crumbs span { opacity: 0.5; }

.detail {
  --c: var(--em);
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.detail-art {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(80% 60% at 50% 40%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%),
    var(--bg-2);
}

/* телефон с экраном блокировки поверх обоя */
.device {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 768 / 1344;
  border-radius: 40px;
  border: 9px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(11, 11, 11, 0.55), 0 0 0 1px rgba(11, 11, 11, 0.5);
}
.device img { width: 100%; height: 100%; object-fit: cover; display: block; }
.device::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 30%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--ink);
}

.lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18%;
  color: #fff;
  font-family: var(--sans);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s, transform 0.35s var(--ease);
  pointer-events: none;
}
.device-light .lock { color: var(--ink); text-shadow: none; }
.device-locked .lock { opacity: 1; transform: none; }
.lock-date { display: block; font-size: 13px; font-weight: 500; opacity: 0.85; }
.lock-date::first-letter { text-transform: uppercase; }
.lock-time { font-size: clamp(56px, 6vw, 72px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.lock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.lock-toggle input { accent-color: var(--em); width: 16px; height: 16px; margin: 0; }

.detail-meta { padding-top: 8px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  transition: border-color 0.15s;
}
.tag .swatch { --c: inherit; background: var(--c); }
.tag:hover { border-color: var(--ink); }

.detail-meta h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.detail-author { margin-top: 16px; font-size: 18px; }
.detail-author a { color: var(--em); border-bottom: 1px solid var(--em-soft); }
.detail-author a:hover { border-color: var(--em); }
.detail-work { color: var(--muted); margin-left: 6px; }

.specs {
  display: grid;
  grid-template-columns: repeat(6, auto);
  justify-content: start;
  gap: 8px 40px;
  margin: 34px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}
.specs dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-size: 14px; }

.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.like-form { display: contents; }
.like { cursor: pointer; font: inherit; font-family: var(--sans); font-size: 15px; }
.like-heart { color: var(--muted); transition: color 0.2s, transform 0.3s var(--ease); }
.like-n { font-variant-numeric: tabular-nums; opacity: 0.6; }
.like:hover .like-heart { color: #d4405a; }
.like-on { border-color: #d4405a; color: #d4405a; }
.like-on .like-heart { color: #d4405a; transform: scale(1.15); }
.like-on:hover { background: #d4405a; color: #fff; border-color: #d4405a; }
.like-on:hover .like-heart { color: #fff; }
.like:disabled { opacity: 0.6; }
.like-error { margin-top: 10px; font-family: var(--sans); font-size: 13px; color: #b3263e; }
.like-error:empty { display: none; }

.hint { margin-top: 16px; max-width: 46ch; font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* ---------- ещё у автора ---------- */

.more { margin-top: clamp(64px, 9vw, 120px); padding-top: 32px; border-top: 1px solid var(--line); }
.more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.more-title { font-size: clamp(26px, 3vw, 36px); }
.grid-more { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid-more .card-text h2 { font-size: 15px; }

/* ---------- подвал ---------- */

.foot { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 32px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 32px var(--gap) calc(32px + env(safe-area-inset-bottom));
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.brand-small .brand-name { font-size: 12px; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a:hover { color: var(--em); }

/* ---------- уведомление о cookie ---------- */

.cookie {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  width: min(560px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 18px;
  box-shadow: 0 20px 40px -12px rgba(11, 11, 11, 0.4);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  animation: rise 0.5s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1; }
.cookie p a { color: #7fd3b4; border-bottom: 1px solid rgba(127, 211, 180, 0.35); }
.cookie .btn { padding: 9px 18px; cursor: pointer; font: inherit; }

@keyframes rise { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ---------- текстовые страницы ---------- */

.doc { max-width: 68ch; padding-bottom: 24px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.03em; }
.doc-lead { margin-top: 18px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.doc h2 { margin: 44px 0 12px; font-size: 24px; }
.doc p + p { margin-top: 12px; }
.doc code { font-size: 0.86em; padding: 2px 6px; border-radius: 6px; background: var(--em-soft); }
.doc-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}
.doc-table th, .doc-table td { padding: 12px 10px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-table th { font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.doc-table td:last-child { white-space: nowrap; }

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

/* ---------- планшет ---------- */

@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; }
  .showcase { height: clamp(320px, 70vw, 460px); max-width: 520px; width: 100%; margin: 0 auto; }
  .detail { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
}

/* ---------- телефон ---------- */

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top-in { padding: 12px 16px; }
  .count { display: none; }
  .brand-name { font-size: 13px; }

  main { padding-bottom: 56px; }
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-actions .btn { flex: 1; padding-left: 12px; padding-right: 12px; }
  .showcase { height: 78vw; max-height: 380px; overflow: hidden; margin: 0 -16px; width: auto; }
  .phone { width: 36%; }
  .phone-2 { width: 40%; }
  .phone-1 { transform: translate(-108%, -48%) rotate(-8deg); }
  .phone-3 { transform: translate(8%, -48%) rotate(8deg); }
  .phone { border-width: 4px; border-radius: 20px; }
  .phone img { border-radius: 16px; }

  /* фильтры — горизонтальная лента, а не стена чипсов */
  .filter-block { grid-template-columns: 1fr; gap: 8px; }
  .filters { margin: 0 -16px; padding: 2px 32px 6px 16px; }
  .chip { padding: 8px 13px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .thumb { border-radius: 12px; }
  .card-link:hover .thumb { transform: none; }
  .card-text h2 { font-size: 15px; }

  .pager { flex-wrap: wrap; }
  .pager-pages { order: -1; width: 100%; }

  .detail { grid-template-columns: 1fr; }
  .detail-art { position: static; padding: 24px 16px; margin: 0 -16px; border-radius: 0; }
  .device { max-width: 270px; border-radius: 34px; border-width: 7px; }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
  .sorts { display: flex; }
  .sort { flex: 1; text-align: center; padding: 8px 6px; }
  .downloads .btn { flex: 1 1 100%; }
  .more-head { flex-direction: column; gap: 8px; }
  .grid-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .foot-in { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .cookie { flex-direction: column; align-items: stretch; padding: 16px; }

  .doc-table thead { display: none; }
  .doc-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc-table td { display: block; padding: 2px 0; border: 0; }
}


/* ---------- отклик на нажатие вместо системной подсветки ---------- */
.chip:active, .sort:active, .pager-num:active, .top-link:active, .tag:active { transform: scale(0.96); }
.card-link:active .thumb { transform: scale(0.98); }
.chip, .sort, .pager-num, .top-link, .tag { transition-property: color, background, border-color, transform; }
