/* ── Тема ─────────────────────────────────────────────── */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --text: #1a2332;
  --muted: #5c6a80;
  --border: #dde3ec;
  --accent: #0b6e99;
  --accent-hover: #095a7e;
  --accent-soft: rgba(11, 110, 153, .09);
  --logo-red: #d42a2a;
  --ok: #2c8a4b;
  --shadow: 0 1px 3px rgba(16, 24, 40, .07), 0 8px 24px -12px rgba(16, 24, 40, .12);
  --shadow-hover: 0 4px 8px rgba(16, 24, 40, .08), 0 16px 32px -12px rgba(16, 24, 40, .18);
  --radius: 12px;
}

[data-theme="dark"] {
  --bg: #0e131a;
  --surface: #161d27;
  --surface-2: #1d2632;
  --text: #e4e9f1;
  --muted: #8b98ab;
  --border: #263140;
  --accent: #4aa8d0;
  --accent-hover: #6bbcde;
  --accent-soft: rgba(74, 168, 208, .12);
  --logo-red: #ff5a5a;
  --ok: #4fbf75;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, .5);
}

/* ── База ─────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, "PT Sans", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ── Шапка ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 60px;
}

.logo {
  font-size: 19px; font-weight: 400; color: var(--text);
  letter-spacing: -.3px; white-space: nowrap;
}
.logo b { font-weight: 700; }
.logo-spb { color: var(--logo-red); font-weight: 700; text-transform: uppercase; }
.logo-dot { color: var(--logo-red); font-weight: 700; text-transform: uppercase; }
.logo:hover { color: var(--text); }

.main-nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.main-nav a {
  position: relative;
  padding: 6px 10px; border-radius: 8px;
  color: var(--muted); font-size: 14.5px; white-space: nowrap;
  transition: color .15s ease;
}
/* подчёркивание в цвете раздела на hover */
.main-nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 1px;
  height: 2px; border-radius: 2px;
  background: var(--cat, var(--accent));
  transform: scaleX(0); transform-origin: center;
  transition: transform .2s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); }
.nav-cta {
  color: var(--accent) !important;
  font-weight: 600;
}

.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--muted); }

[data-theme="light"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: none; }

.burger { display: none; }

/* ── Поиск с подсказками ──────────────────────────────── */
.search-box { position: relative; }
.search-box input {
  width: 190px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text);
  font-size: 14px; transition: width .2s ease;
}
.search-box input:focus { width: 260px; outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.suggest {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: 340px; max-width: 85vw;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.suggest a {
  display: block; padding: 10px 14px; font-size: 14px;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.suggest a:last-child { border-bottom: none; }
.suggest a:hover, .suggest a.active { background: var(--accent-soft); }
.suggest .s-cat { display: block; font-size: 12px; color: var(--muted); }

/* ── Герой ────────────────────────────────────────────── */
.hero {
  border-bottom: 1px solid var(--border); background: var(--surface);
  position: relative; overflow: hidden;
}
/* техничная точечная сетка вместо стоковой картинки/градиента */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--border) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, #000, transparent 62%);
  mask-image: linear-gradient(115deg, #000, transparent 62%);
  opacity: .6;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: center; padding: 56px 20px;
}
.hero h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.2; letter-spacing: -.5px; }
.hero-text p { margin: 16px 0 24px; color: var(--muted); font-size: 17px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 10px 22px; border-radius: 9px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* панель «на поддержке» — вместо стоковой картинки */
.hero-panel {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 14px; box-shadow: var(--shadow);
}
.panel-title { color: var(--muted); margin-bottom: 12px; }
.panel-title::after {
  content: "_"; color: var(--accent); font-weight: 700;
  animation: caret 1.1s steps(1) infinite;
}
.panel-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 7px 0; border-top: 1px dashed var(--border);
}
.panel-row .ok { color: var(--ok); }
.panel-row .ok::before {
  content: "● "; font-size: 10px; vertical-align: 1px;
  display: inline-block; animation: pulse 2.4s ease-in-out infinite;
}
.panel-row:nth-child(3) .ok::before { animation-delay: .6s; }
.panel-row:nth-child(4) .ok::before { animation-delay: 1.2s; }
.panel-row:nth-child(5) .ok::before { animation-delay: 1.8s; }

@keyframes caret { 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .panel-title::after, .panel-row .ok::before { animation: none; }
}

/* ── Секции ───────────────────────────────────────────── */
.section { padding: 36px 20px 8px; }
.section-title {
  font-size: 22px; letter-spacing: -.3px; margin-bottom: 18px;
  position: relative; padding-left: 14px;
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em;
  width: 4px; border-radius: 2px; background: var(--accent);
}

/* ── Читают сейчас ────────────────────────────────────── */
.trending-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.trending-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text);
}
.trending-item:hover { border-color: var(--accent); color: var(--text); }
.trending-num {
  font-size: 22px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.trending-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35;
}
.trending-cat { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ── Карточки статей ──────────────────────────────────── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-link { display: block; color: var(--text); height: 100%; }
.card-link:hover { color: var(--text); }
.card-photo { aspect-ratio: 16/8; overflow: hidden; background: var(--surface-2); }
.card-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card-photo img { transform: scale(1.045); }

/* ── Сетка «Свежие статьи» на главной ─────────────────── */
/* Ровные ряды: ПК 3, планшет 2, телефон 1. Неполный последний
   ряд скрывается через quantity-queries ниже. Первая карточка —
   крупная (lead) только на ПК. */
.latest-grid { display: grid; gap: 20px; }

/* ПК: 3 в ряд, lead во всю ширину горизонтальной карточкой */
@media (min-width: 901px) {
  .latest-grid { grid-template-columns: repeat(3, 1fr); }

  .card--lead { grid-column: 1 / -1; }
  .card--lead .card-link {
    display: grid; grid-template-columns: 1.25fr 1fr; height: 100%;
  }
  .card--lead .card-photo { aspect-ratio: auto; height: 100%; min-height: 260px; }
  .card--lead .card-body {
    padding: 28px 32px; display: flex; flex-direction: column; justify-content: center;
  }
  .card--lead .card-title { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.4px; }
  .card--lead .card-summary { -webkit-line-clamp: 3; font-size: 15px; margin-top: 10px; }
  .card--lead .card-foot { margin-top: 16px; }

  /* обрезка неполного ряда (lead + N-1 карточек по 3) */
  .latest-grid > .card:last-child:nth-child(3n+2)     { display: none; } /* остаток 1 */
  .latest-grid > .card:last-child:nth-child(3n)       { display: none; } /* остаток 2 */
  .latest-grid > .card:nth-last-child(2):nth-child(3n+2) { display: none; }
}

/* планшет / горизонтальный телефон: 2 в ряд, lead — обычная карточка */
@media (min-width: 561px) and (max-width: 900px) {
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-grid > .card:last-child:nth-child(2n+1) { display: none; } /* нечётный хвост */
}

/* телефон вертикально: 1 в ряд, ничего не режем */
@media (max-width: 560px) {
  .latest-grid { grid-template-columns: 1fr; }
}
.card-body { padding: 16px 18px 14px; }
.card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); margin-bottom: 8px;
}
.card-title { font-size: 17px; line-height: 1.35; letter-spacing: -.2px; }
.card-summary {
  margin-top: 8px; font-size: 14px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  display: flex; gap: 14px; margin-top: 12px;
  font-size: 12.5px; color: var(--muted);
}

/* ── Чипы категорий ───────────────────────────────────── */
.chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip-row .chip { padding: 5px 14px; font-size: 13.5px; }
.chip-active { background: var(--accent); color: #fff; }
.chip-active:hover { color: #fff; }

.chip-novosti       { background: rgba(59, 130, 199, .14); color: #3b82c7; }
.chip-windows       { background: rgba(37, 99, 168, .14);  color: #2563a8; }
.chip-linux         { background: rgba(202, 138, 4, .16);  color: #b07c06; }
.chip-network       { background: rgba(13, 148, 136, .14); color: #0d9488; }
.chip-cybersecurity { background: rgba(190, 60, 60, .13);  color: #c05050; }
.chip-mobile        { background: rgba(90, 130, 60, .15);  color: #5f8a3c; }
.chip-likbez        { background: rgba(120, 90, 190, .13); color: #7a63c0; }
.chip-ai            { background: rgba(160, 70, 140, .13); color: #a8509a; }

/* ── Сетка категорий на главной ───────────────────────── */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; padding-bottom: 32px;
}
.cat-card {
  position: relative; overflow: hidden;
  padding: 22px 20px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); display: flex; flex-direction: column; gap: 4px;
  transition: transform .15s ease, box-shadow .15s ease;
}
/* заметная цветная полоса категории сверху */
.cat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--cat, var(--accent));
}
.cat-card:hover {
  color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow);
}
.cat-name {
  font-size: 17px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
/* цветная точка-маркер рядом с названием */
.cat-name::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--cat, var(--accent)); flex: none;
}
.cat-count { font-size: 12.5px; color: var(--cat, var(--accent)); font-weight: 600; }
.cat-desc { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

.cat-novosti       { --cat: #3b82c7; }
.cat-windows       { --cat: #2563a8; }
.cat-linux         { --cat: #b07c06; }
.cat-network       { --cat: #0d9488; }
.cat-cybersecurity { --cat: #c05050; }
.cat-mobile        { --cat: #5f8a3c; }
.cat-likbez        { --cat: #7a63c0; }
.cat-ai            { --cat: #a8509a; }

/* ── Страницы ─────────────────────────────────────────── */
.breadcrumbs { font-size: 13.5px; color: var(--muted); margin: 22px 0 6px; }
.breadcrumbs span { color: var(--muted); }

.page-head { margin: 10px 0 22px; }
.page-head h1 { font-size: clamp(24px, 3.5vw, 32px); letter-spacing: -.4px; }
.page-sub { margin-top: 8px; color: var(--muted); max-width: 70ch; }

.empty-note { color: var(--muted); padding: 24px 0 48px; max-width: 60ch; }

/* читаемая длина строки для текстовых страниц (конфиденциальность) */
.prose { max-width: 68ch; padding-bottom: 32px; }

/* ── Пагинация ────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 32px 0 44px; font-size: 15px;
}
.pagination a {
  padding: 8px 18px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); font-weight: 600;
}
.pagination a:hover { border-color: var(--accent); }
.page-info { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Статья ───────────────────────────────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 100;
}

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px; padding-bottom: 48px;
}
.article-title { font-size: clamp(24px, 3.5vw, 34px); line-height: 1.25; letter-spacing: -.4px; margin: 8px 0 14px; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 14px; color: var(--muted);
  padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}

.article-content { font-size: 16.5px; line-height: 1.75; }
.article-content p { margin: 0 0 16px; }
.article-content h2, .article-content h3 { margin: 28px 0 12px; letter-spacing: -.3px; }
.article-content img {
  border-radius: 10px; margin: 8px 0 16px;
  display: block;
}
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 26px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  margin: 0 0 16px; padding: 12px 20px;
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
}
.article-content code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 14px; background: var(--surface-2);
  padding: 2px 6px; border-radius: 5px;
}
.article-content pre {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px; overflow-x: auto; margin: 0 0 16px;
}
.article-content pre code { background: none; padding: 0; }
.article-content table {
  border-collapse: collapse; width: 100%; margin: 0 0 16px;
  font-size: 14.5px; display: block; overflow-x: auto;
}
.article-content th, .article-content td {
  border: 1px solid var(--border); padding: 8px 12px; text-align: left;
}
.article-content th { background: var(--surface-2); }

.article-aside { padding-top: 52px; }
.aside-list { display: flex; flex-direction: column; gap: 10px; }
.aside-item {
  padding: 12px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text);
}
.aside-item:hover { border-color: var(--section-accent, var(--accent)); color: var(--text); }
.aside-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.aside-item time { font-size: 12.5px; color: var(--muted); }

/* "Ещё в разделе" — полоска и рамка при наведении в цвет раздела (см. .chip-*) */
.article-aside .section-title::before { background: var(--section-accent, var(--accent)); }
.article-aside.cat-novosti       { --section-accent: #3b82c7; }
.article-aside.cat-windows       { --section-accent: #2563a8; }
.article-aside.cat-linux         { --section-accent: #b07c06; }
.article-aside.cat-network       { --section-accent: #0d9488; }
.article-aside.cat-cybersecurity { --section-accent: #c05050; }
.article-aside.cat-mobile        { --section-accent: #5f8a3c; }
.article-aside.cat-likbez        { --section-accent: #7a63c0; }
.article-aside.cat-ai            { --section-accent: #a8509a; }

/* ── Услуги ───────────────────────────────────────────── */
/* Ровные ряды: ПК 3, планшет 2, телефон 1; неполный хвост скрываем */
.services-grid { display: grid; gap: 18px; }

@media (min-width: 901px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid > .service-card:last-child:nth-child(3n+1)     { display: none; } /* остаток 1 */
  .services-grid > .service-card:last-child:nth-child(3n+2)     { display: none; } /* остаток 2 */
  .services-grid > .service-card:nth-last-child(2):nth-child(3n+1) { display: none; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid > .service-card:last-child:nth-child(2n+1) { display: none; } /* нечётный хвост */
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.service-card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.2px; }
.service-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin: 36px 0 48px; padding: 28px 32px;
  border-radius: var(--radius); background: var(--accent-soft);
  border: 1px solid var(--border);
}
.cta-band h2 { font-size: 20px; }
.cta-band p { color: var(--muted); margin-top: 4px; }

/* ── Контакты ─────────────────────────────────────────── */
.trust-points {
  display: flex; flex-direction: column; gap: 12px;
  list-style: none; margin: 20px 0 32px; padding: 20px 22px;
  max-width: 420px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--border);
}
.trust-points li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--text); font-weight: 500; line-height: 1.5;
}
.trust-points li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px;
  border-radius: 50%; background: var(--accent);
}

.consent-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted); margin-bottom: 8px; cursor: pointer;
}
.consent-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.consent-error { color: var(--logo-red); font-size: 13.5px; margin: 0 0 16px; }

/* ── Уведомление о cookie ─────────────────────────────── */
.cookie-notice {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100vw - 24px); padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-hover);
  font-size: 13.5px; color: var(--muted);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { white-space: nowrap; }
.cookie-notice a { color: var(--text); text-decoration: underline; }
.cookie-notice #cookie-close {
  flex: none; width: 26px; height: 26px; font-size: 14px;
  border-radius: 50%; color: var(--muted);
}
@media (max-width: 480px) {
  .cookie-notice { left: 12px; right: 12px; bottom: 12px; max-width: none; transform: none; }
  .cookie-notice p { white-space: normal; }
}

.contact-list { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.contact-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.contact-item:hover { border-color: var(--accent); }
.no-copy { user-select: none; }
.contact-label { color: var(--muted); font-size: 14px; }
.contact-value { font-weight: 600; }

/* ── Ошибки ───────────────────────────────────────────── */
.error-page { text-align: center; padding: 72px 20px 96px; }
.error-code {
  font-size: 84px; font-weight: 800; color: var(--accent);
  font-family: ui-monospace, Consolas, monospace; line-height: 1;
}
.error-page h1 { margin: 12px 0 8px; }
.error-page p { color: var(--muted); margin-bottom: 24px; }
.error-page .hero-actions { justify-content: center; }

/* ── Подвал ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border); background: var(--surface);
  margin-top: 48px; font-size: 14px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 32px; padding: 36px 20px 20px;
}
.footer-note { color: var(--muted); margin-top: 10px; max-width: 40ch; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-title { font-weight: 700; margin-bottom: 4px; }
.copyright { padding: 14px 20px 22px; color: var(--muted); font-size: 13px; }

/* ── Адаптив ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px; }
  .article-layout { grid-template-columns: 1fr; gap: 12px; }
  .article-aside { padding-top: 12px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .main-nav {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; padding: 10px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 12px; font-size: 16px; }
  .burger { display: inline-flex; }
}

@media (max-width: 560px) {
  .search-box input { width: 130px; }
  .search-box input:focus { width: 170px; }
  .footer-inner { grid-template-columns: 1fr; }
}
