/* ============================================================
   Піксель: споживчі технології
   Light warm consumer-tech theme.
   (c) 2026 vii-studio.com
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-warm: #fff1ec;
  --ink: #26201c;
  --ink-soft: #57504a;
  --ink-mute: #877d75;
  --line: #ecdfd8;
  --line-warm: #f3d6ca;
  --accent: #ff5a3c;
  --accent-text: #cc3413;
  --r-lg: 16px;
  --r-sm: 8px;
  --font-d: 'Montserrat', 'Helvetica Neue', system-ui, sans-serif;
  --font-t: 'Source Sans 3', system-ui, sans-serif;
  --shadow: 0 16px 44px rgba(38, 32, 28, 0.1);
  --shadow-soft: 0 8px 24px rgba(38, 32, 28, 0.07);
  --skel-base: rgba(38, 32, 28, 0.07);
  --skel-sheen: rgba(255, 255, 255, 0.6);
  --skel-radius: 8px;
  /* Потолок высоты главной картинки статьи. Один и тот же для самой картинки
     и для серой заглушки загрузки, чтобы страница не дёргалась. */
  --article-hero-max-h: clamp(280px, 44vh, 470px);
}

/* ---------- reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  /* Страховка от горизонтальной прокрутки: clip, а не hidden, чтобы не сломать
     липкую шапку. Полоса прокрутки сужает окно на несколько пикселей, и любой
     расчёт в vw может дать лишний выход за правый край. */
  overflow-x: clip;
  font-family: var(--font-t);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 120;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: var(--r-sm); font-family: var(--font-d); font-weight: 700; font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- skeleton system (adapted from _spec/skeleton-base.css) ---------- */
.skel {
  position: relative;
  overflow: hidden;
  background: var(--skel-base);
  border-radius: var(--skel-radius);
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--skel-sheen), transparent);
  animation: skel-sheen 1.4s ease-in-out infinite;
}
@keyframes skel-sheen { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .skel::after { animation: none; display: none; }
  html { scroll-behavior: auto; }
}

.skel-line { height: 0.85em; }
.skel-line.w-40 { width: 40%; }
.skel-line.w-60 { width: 60%; }
.skel-line.w-80 { width: 80%; }
.skel-title { height: 1.6em; width: 70%; }
.skel-kicker { height: 0.75em; width: 110px; }
.skel-media { aspect-ratio: 16 / 9; width: 100%; border-radius: var(--r-lg); }
.skel-avatar { width: 40px; height: 40px; border-radius: 50%; }

.skel-thumb { width: 84px; height: 84px; border-radius: 12px; flex: 0 0 84px; }
.skel-mini-row { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.skel-mini-lines { flex: 1; display: grid; gap: 9px; }
.skel-chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.skel-card .skel-media { margin-bottom: 14px; }
.skel-article { max-width: 1040px; margin: 20px auto 0; }
/* Заглушка под главную картинку статьи: тот же потолок высоты, что и у самой
   картинки, иначе при загрузке сначала виден высокий серый прямоугольник,
   а потом контент прыгает вверх. Ширина 100% уже задана в .skel-media, поэтому
   блок не схлопывается по aspect-ratio. Заглушки карточек не трогаем. */
.skel-article > .skel-media { max-height: var(--article-hero-max-h); }
.skel-article .center { margin-left: auto; margin-right: auto; }
.skel-prose { max-width: 720px; margin: 0 auto; display: grid; gap: 13px; }

main.is-loading { min-height: 70vh; }

/* image loading: every <img> sits inside .media */
.media {
  position: relative;
  overflow: hidden;
  background: var(--skel-base);
  border-radius: var(--r-lg);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.media > img.loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .media > img { transition: none; }
}
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-1610 { aspect-ratio: 16 / 10; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-11 { aspect-ratio: 1 / 1; }

/* route progress bar */
#route-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 110;
  background: var(--accent);
  opacity: 0;
  transition: width 0.4s ease, opacity 0.2s ease;
  pointer-events: none;
}
#route-progress.is-active { width: 70%; opacity: 1; }

/* ---------- reveal on scroll ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}
.logo {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  transition: color 0.25s ease;
}
.logo:hover { color: var(--accent-text); }
.logo-dot {
  width: 9px; height: 9px;
  margin-left: 5px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(-1px);
  transition: transform 0.3s ease;
}
.logo:hover .logo-dot { transform: translateY(-1px) rotate(45deg); }

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.main-nav a {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: var(--bg-warm); color: var(--accent-text); }
.main-nav a.is-active { color: var(--accent-text); background: var(--bg-warm); }

.header-actions { margin-left: auto; display: flex; gap: 10px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 20px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { background: var(--bg-warm); color: var(--accent-text); border-color: var(--line-warm); }
.icon-btn:active { transform: scale(0.94); }
.burger { display: none; }

/* ---------- buttons, chips, kickers ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { background: #3d342d; transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-warm); color: var(--accent-text); box-shadow: none; }

.kicker, .kicker-text {
  display: inline-block;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
}
a.kicker { transition: color 0.2s ease; }
a.kicker:hover { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- meta rows ---------- */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-mute);
}
.meta > * + *::before { content: "\00B7"; margin: 0 8px; color: var(--ink-mute); }
.meta .author { font-weight: 600; color: var(--ink-soft); }

/* ---------- sections ---------- */
.section { margin: 72px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  /* flex-элемент без min-width: 0 не сжимается уже своего min-content:
     длинный заголовок рубрики распирал строку и вылезал за контейнер. */
  min-width: 0;
}
.section-head .more {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease, color 0.2s ease;
}
.section-head .more:hover { gap: 10px; color: var(--ink); }

/* minmax(0, ...) обязателен: дорожка fr по умолчанию не сжимается уже своего
   содержимого, и карточка с картинкой на широком экране распирает колонку,
   схлопывая соседние в столбик по одному слову. */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.grid-2 > *, .grid-3 > * { min-width: 0; }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line-warm);
}
.card-media { display: block; }
.card-media .media { border-radius: 0; }
.card-media img { transition: opacity 0.35s ease, transform 0.6s ease; }
.card:hover .card-media img.loaded { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .card, .card-media img { transition: none; }
  .card:hover { transform: none; }
  .card:hover .card-media img.loaded { transform: none; }
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body .meta { margin-top: auto; }
.card-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.card-title-lg { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -0.015em; }
.card-title a, .card-title-lg a { transition: color 0.2s ease; }
.card-title a:hover, .card-title-lg a:hover { color: var(--accent-text); }
.card-lead { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.card-text { background: var(--bg-warm); border-color: var(--line-warm); }
.card-text .card-body { padding: 26px 24px; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  /* Слева лежит крупная картинка: без minmax(0, ...) её собственная ширина
     задирает дорожку, и текстовая колонка сжимается в вертикальную строку. */
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding-top: 40px;
}
.hero > * { min-width: 0; }
.hero-media { display: block; border-radius: var(--r-lg); overflow: hidden; }
.hero-media img { transition: opacity 0.35s ease, transform 0.7s ease; }
.hero-media:hover img.loaded { transform: scale(1.025); }
.hero-body { display: flex; flex-direction: column; gap: 14px; }
.hero-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.hero-title a { transition: color 0.2s ease; }
.hero-title a:hover { color: var(--accent-text); }
.hero-lead { color: var(--ink-soft); font-size: 17.5px; margin: 0; }
.hero-mini {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
}
.mini {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}
.mini + .mini { border-top: 1px solid var(--line); }
.mini-media { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 12px; }
.mini-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  transition: color 0.2s ease;
}
.mini:hover .mini-title { color: var(--accent-text); }
.mini-body time { font-size: 13px; color: var(--ink-mute); }

/* ---------- mosaic ---------- */
.mosaic {
  display: grid;
  /* В колонках карточки с изображениями: minmax(0, ...) не даёт картинке
     растянуть дорожку шире доли и сплющить соседние колонки. */
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.mosaic > * { min-width: 0; }
.mosaic-col { display: flex; flex-direction: column; gap: 26px; min-width: 0; }

/* ---------- horizontal strip ---------- */
.strip-nav { display: flex; gap: 10px; }
.strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  margin: -4px -4px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line-warm) transparent;
}
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--line-warm); border-radius: 3px; }
.strip::-webkit-scrollbar-track { background: transparent; }
.strip .card {
  flex: 0 0 322px;
  scroll-snap-align: start;
}

/* ---------- warm band + feed ---------- */
.band {
  background: var(--bg-warm);
  padding: 64px 0 56px;
  margin: 88px 0;
}
.feed { list-style: none; }
.feed li {
  display: grid;
  /* Средняя дорожка — заголовок: без minmax(0, ...) длинное слово (модель,
     ссылка) расширяет её и выталкивает колонку рубрики за край полосы. */
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-warm);
}
.feed li:last-child { border-bottom: 0; }
.feed time {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-text);
  letter-spacing: 0.04em;
}
.feed-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.feed-title:hover { color: var(--accent-text); }
.feed-cat {
  font-size: 13.5px;
  color: var(--ink-mute);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.feed-cat:hover { color: var(--accent-text); }

/* ---------- duo columns + newsletter ---------- */
.duo {
  display: grid;
  /* Гибкие колонки со списками мини-карточек: minmax(0, ...) держит их
     в своей доле, иначе миниатюра 84px + длинный заголовок распирают сетку. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}
.duo > * { min-width: 0; }
.duo-col h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.duo-col h2 a { transition: color 0.2s ease; }
.duo-col h2 a:hover { color: var(--accent-text); }
.duo-col .mini:first-of-type { border-top: 0; }

.newsletter-card {
  background: var(--bg-warm);
  border: 1px solid var(--line-warm);
  border-radius: var(--r-lg);
  padding: 28px 26px;
}
.newsletter-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.newsletter-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.newsletter-card label {
  display: block;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}
.newsletter-card input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-warm);
  border-radius: var(--r-sm);
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.newsletter-card input::placeholder { color: var(--ink-mute); }
.newsletter-card input:focus { border-color: var(--accent); outline: none; }
.newsletter-card .btn { width: 100%; margin-top: 12px; }
.form-ok {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-text);
  margin: 0;
}

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 28px 0 6px;
  font-size: 13.5px;
  color: var(--ink-mute);
}
.crumbs a { transition: color 0.2s ease; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs .sep { color: var(--line-warm); font-weight: 700; }
.crumbs [aria-current] { color: var(--ink-soft); }

/* ---------- listing ---------- */
.listing-head { margin: 18px 0 40px; max-width: 760px; }
.listing-head h1 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.listing-head .listing-desc { color: var(--ink-soft); font-size: 18px; margin-bottom: 24px; }
.listing-grid {
  display: grid;
  /* Основная колонка держит карточки с картинками: minmax(0, ...) не даёт ей
     раздуться и вытолкнуть боковую колонку за правый край. */
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: start;
}
.listing-grid > * { min-width: 0; }
.listing-main > h2 { font-size: 1.25rem; font-weight: 800; margin: 40px 0 22px; }
.listing-main > h2:first-child { margin-top: 0; }

/* minmax(0, ...) обязателен: дорожка fr по умолчанию не сжимается уже
   содержимого, и широкая картинка распирает колонку, схлопывая текст. */
.card-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.card-feature > * { min-width: 0; }
.card-feature .card-media .media { height: 100%; min-height: 280px; }
.card-feature .card-body { padding: 28px; gap: 12px; }

.rail { display: flex; flex-direction: column; gap: 30px; position: sticky; top: 92px; }
.rail-box {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.rail-box h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.top-list { list-style: none; counter-reset: top; }
.top-list li {
  counter-increment: top;
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.top-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.top-list li::before {
  content: counter(top, decimal-leading-zero);
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  flex: 0 0 26px;
}
.top-list a {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  transition: color 0.2s ease;
  /* flex-элемент в узкой боковой колонке: без min-width: 0 длинный заголовок
     не даёт строке сжаться и распирает бокс рейтинга. */
  min-width: 0;
}
.top-list a:hover { color: var(--accent-text); }

/* ---------- pagination ---------- */
.pagination {
  display: flex;
  gap: 10px;
  margin-top: 44px;
  align-items: center;
}
.page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
a.page:hover { background: var(--bg-warm); color: var(--accent-text); transform: translateY(-2px); }
.page.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page.is-disabled { color: var(--ink-mute); cursor: not-allowed; background: transparent; }

/* ---------- article ---------- */
.article-head {
  max-width: 780px;
  margin: 24px auto 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.article-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.article-head .lead {
  font-size: 19.5px;
  color: var(--ink-soft);
  margin: 0;
}
.article-head .meta { justify-content: center; }

.article-hero { max-width: 1040px; margin: 0 auto 44px; }
/* Обёртка картинки статьи. Раньше 1040 пикселей ширины при пропорции 16:9
   давали 585 пикселей высоты, и на ноутбуке до текста надо было скроллить.
   Режем высоту: у .media уже есть overflow: hidden, а у картинки height: 100%
   и object-fit: cover, поэтому кадр обрезается по центру, а не сплющивается.
   width: 100% обязателен: при ширине auto браузер пересчитывает ширину блока
   из ограниченной высоты по aspect-ratio, и картинка вместо обрезки просто
   съезжает в узкую колонку 704 пикселя посреди текста.
   На телефоне высота и так меньше нижней границы clamp, там ничего не меняется. */
.article-hero .media { width: 100%; max-height: var(--article-hero-max-h); }
.article-hero figcaption {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin-top: 12px;
  text-align: center;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18.5px;
  line-height: 1.75;
}
.prose p { margin: 0 0 1.35em; }
.prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 1.9em 0 0.8em;
}
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose blockquote {
  margin: 2em 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.prose blockquote p { margin: 0; }
/* Код в тексте статьи не переносится: прокручиваем сам блок, иначе длинная
   строка распирает колонку и появляется горизонтальная прокрутка страницы. */
.prose pre { max-width: 100%; overflow-x: auto; }
.prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-t);
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-mute);
}

.readalso {
  background: var(--bg-warm);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin: 2.2em 0;
}
.readalso-label {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.readalso ul { list-style: none; }
.readalso li + li { margin-top: 10px; }
.readalso a {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.readalso a:hover { color: var(--accent-text); }

.source-box {
  max-width: 720px;
  margin: 44px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 15px 20px;
  font-size: 15px;
}
.source-box .source-label { color: var(--ink-mute); }
.source-box a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--accent-text);
  transition: color 0.2s ease;
}
.source-box a:hover { color: var(--ink); }

.related { margin-top: 88px; }

/* ---------- search ---------- */
.search-page { max-width: 760px; margin: 24px auto 0; }
.search-page h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.search-hint { color: var(--ink-mute); font-size: 15px; margin-bottom: 26px; }
.search-form label {
  display: block;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}
.search-row { display: flex; gap: 12px; }
.search-row input {
  flex: 1;
  /* У input своя внутренняя минимальная ширина: без min-width: 0 он не
     сжимается и на узких экранах выталкивает кнопку за край строки. */
  min-width: 0;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease;
}
.search-row input::placeholder { color: var(--ink-mute); }
.search-row input:focus { border-color: var(--accent); outline: none; }
#search-results { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.results-count { font-family: var(--font-d); font-weight: 700; font-size: 15px; color: var(--ink-soft); margin: 0 0 4px; }
.results-empty { color: var(--ink-mute); margin: 0; }
.result {
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.result:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.result-media { width: 112px; flex: 0 0 112px; border-radius: 10px; }
.result-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.result-title { font-family: var(--font-d); font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.result:hover .result-title { color: var(--accent-text); }
.result-body time { font-size: 13px; color: var(--ink-mute); }
.result-skel { display: flex; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }

/* ---------- static pages ---------- */
.static-page { max-width: 720px; margin: 24px auto 0; }
.static-page h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.static-page .prose { margin: 0; }
.static-page .prose ul { list-style: disc; padding-left: 24px; margin: 0 0 1.35em; }
.static-page .prose li { margin-bottom: 8px; }

.contact-list { list-style: none; margin: 0 0 1.35em; display: grid; gap: 14px; }
.contact-list li {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 22px;
}
.contact-list .contact-label {
  display: block;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 4px;
}
.contact-list a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.contact-list a:hover { color: var(--ink); }

/* ---------- 404 ---------- */
.page-404 {
  max-width: 640px;
  margin: 60px auto 0;
  text-align: center;
}
.err-code {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(5rem, 14vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.err-code .px { color: var(--accent); }
.page-404 h1 { font-size: 1.6rem; font-weight: 800; margin: 18px 0 10px; }
.page-404 p { color: var(--ink-soft); margin-bottom: 26px; }
.err-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 48px; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 110px;
  background: var(--bg-warm);
  border-top: 1px solid var(--line-warm);
}
.footer-grid {
  display: grid;
  /* minmax(0, ...): длинная строка меню не должна раздувать свою дорожку
     и уводить соседние колонки за пределы подвала. */
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  padding: 60px 24px 44px;
}
.footer-grid > * { min-width: 0; }
.footer-brand p { color: var(--ink-soft); font-size: 15px; margin: 14px 0 0; max-width: 320px; }
.site-footer h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.footer-nav ul { list-style: none; display: grid; gap: 10px; }
.footer-nav a {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 14.5px;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--accent-text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px 26px;
  border-top: 1px solid var(--line-warm);
  font-size: 13.5px;
  color: var(--ink-mute);
}
.footer-bottom p { margin: 0; }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 105;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.cookie p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; }
.cookie a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie .btn { min-height: 44px; padding: 9px 18px; }

/* ---------- responsive ---------- */
/* В медиазапросах те же дорожки переопределяются заново, поэтому minmax(0, ...)
   нужен и здесь — иначе на планшетах возвращается исходная поломка. */
@media (max-width: 1060px) {
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .duo .newsletter-card { grid-column: 1 / -1; }
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; flex-direction: row; flex-wrap: wrap; }
  /* min-width: 0 — чтобы боксы рейтинга сжимались, а не рвали строку flex. */
  .rail > * { flex: 1 1 300px; min-width: 0; }
  .mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mosaic-col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px 20px 22px;
    margin: 0;
    flex-direction: column;
    gap: 2px;
  }
  .site-header.is-open .main-nav { display: flex; }
  .main-nav a { padding: 13px 14px; font-size: 16px; }
  .burger { display: inline-flex; }
  /* Даже одиночная дорожка должна быть minmax(0, 1fr): картинка внутри
     иначе задаёт ширину сетки шире экрана. */
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .card-feature { grid-template-columns: minmax(0, 1fr); }
  .card-feature .card-media .media { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  /* Одна колонка на телефоне — тоже minmax(0, 1fr): иначе широкая картинка
     карточки задаёт ширину сетки и появляется горизонтальная прокрутка. */
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .mosaic-col:last-child { grid-column: auto; display: flex; }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .section { margin: 54px 0; }
  .band { padding: 44px 0 38px; margin: 60px 0; }
  .feed li { grid-template-columns: 64px minmax(0, 1fr); }
  .feed .feed-cat { display: none; }
  .strip .card { flex-basis: 280px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 44px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .search-row { flex-direction: column; }
  .article-head { text-align: left; align-items: flex-start; }
  .article-head .meta { justify-content: flex-start; }
  .err-actions { flex-direction: column; align-items: center; }
  .prose { font-size: 17px; }
}

/* ============================================================
   Кнопки «поделиться» под материалом
   ============================================================
   Разметка общая для всех изданий (resources/views/shared/share.blade.php),
   вид каждая тема задаёт сама. «Піксель» — самое яркое издание сети, про
   гаджеты и игры, поэтому блок сделан не серым рядом иконок, а тёплой
   карточкой в духе «Читайте також» (.readalso): фон --bg-warm, скругление
   --r-lg, заголовок-надзаголовок цветом --accent-text, как .readalso-label.
   Кнопки — круглые белые «клавиши» на этом фоне, при наведении заливаются
   фирменным кораллом --accent и приподнимаются на 2 пикселя: тот же жест
   hover, что у .chip, a.page и карточек темы. Ширина 720 пикселей и центр
   — как у .prose и .source-box, чтобы блок стоял в колонке текста. */
.share {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 22px 26px 24px;
  background: var(--bg-warm);
  border-radius: var(--r-lg);
}

.share-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 14px;
}

.share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-warm);
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Фокус с клавиатуры: глобальный :focus-visible даёт квадратную рамку
   (border-radius: 4px), а кнопки здесь круглые — возвращаем круг. */
.share-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 50%;
  color: var(--accent-text);
  border-color: var(--accent);
}

/* Ссылка скопирована: тёмная заливка --ink, как у активного состояния
   .chip.is-active и текущей страницы .page.is-current. Отличается и от
   покоя, и от коралловой подсветки при наведении. */
.share-btn.is-copied,
.share-btn.is-copied:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .share-btn { transition: none; }
  .share-btn:hover { transform: none; }
}

/* Телефон: карточка растягивается на всю колонку, кнопки чуть меньше, но
   не мельче 40 пикселей — палец должен попадать. */
@media (max-width: 768px) {
  .share { padding: 18px 18px 20px; margin-top: 32px; }
  .share-list { gap: 9px; }
  .share-btn { width: 42px; height: 42px; font-size: 19px; }
}

@media (max-width: 380px) {
  .share-list { gap: 8px; }
  .share-btn { width: 40px; height: 40px; font-size: 18px; }
}
