/* Статейник «В ДВИЖЕНИИ» - токены сайта (tailwind.config.js): paper / espresso / терракота.
   Mobile-first. Анимации - только transform и opacity. */

:root {
  --paper: #F2F2F0;
  --paper-50: #FCFCFB;
  --paper-200: #E9E9E6;
  --paper-300: #DAD9D5;
  --ink: #1A1917;
  --ink-700: #45423C;
  --ink-600: #67645C;
  --ink-500: #8C8980;
  --line: rgba(26, 25, 23, .1);
  --amber: #BF5E26;
  --amber-400: #D98A52;
  --amber-500: #CC7336;
  --amber-700: #974817;
  --graphite: #1A1812;
  --graphite-900: #13110C;
  --grad: linear-gradient(135deg, #CF8048 0%, #BF5E26 48%, #99491A 100%);
  --shadow: 0 1px 1px rgba(28,23,18,.03), 0 4px 10px -4px rgba(28,23,18,.06), 0 24px 56px -28px rgba(28,23,18,.22);
  --shadow-hover: 0 2px 4px rgba(28,23,18,.05), 0 10px 24px -8px rgba(28,23,18,.10), 0 40px 80px -30px rgba(28,23,18,.30);
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Manrope', 'Inter', sans-serif;
  --f-hero: 'Unbounded', 'Manrope', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 76px; /* место под мобильную панель */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--amber); color: #fff; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1.4 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-600);
}
.kicker::before { content: ''; width: 7px; height: 7px; background: var(--amber); transform: rotate(45deg); flex: none; }
.kicker-dark { color: rgba(242, 242, 240, .75); }
.muted { color: var(--ink-500); font-weight: 400; }

/* ── Кнопки ── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px/1.2 var(--f-sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .9s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -14px rgba(153, 73, 24, .5); }
.btn-dark { background: var(--ink); color: var(--paper-50); box-shadow: 0 12px 34px -14px rgba(28, 23, 18, .55); }
.btn-ghost { border-color: rgba(26,25,23,.2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: rgba(26,25,23,.5); }
.btn-ghost-dark { border-color: rgba(255,255,255,.22); color: var(--paper-50); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--amber-400); }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn svg { width: 16px; height: 16px; }

/* ── Прогресс чтения ── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }

/* ── Шапка ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 242, 240, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo img { height: 36px; width: auto; }
.nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(26,25,23,.15);
  font: 600 14px var(--f-sans); text-decoration: none; color: var(--ink);
}
.header-phone svg { color: var(--amber); width: 16px; height: 16px; }
.header-phone span { display: none; }
.hide-sm { display: none; }

.burger { position: relative; }
.burger summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(26,25,23,.15);
}
.burger summary::-webkit-details-marker { display: none; }
.burger-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(84vw, 320px);
  display: flex; flex-direction: column; padding: 10px; gap: 2px;
  background: var(--paper-50); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-hover);
}
.burger[open] .burger-panel { animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.burger-panel > a:not(.btn) {
  padding: 12px 14px; border-radius: 10px; text-decoration: none;
  font: 700 18px/1.2 var(--f-display); letter-spacing: -.02em;
}
.burger-panel > a:not(.btn):hover, .burger-panel > a.is-active { background: var(--paper-200); }
.burger-panel .btn { margin-top: 8px; }

/* ── Крошки, мета ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 400 12px/1.5 var(--f-mono); color: var(--ink-500); }
.crumbs a { text-decoration: none; color: var(--ink-600); }
.crumbs a:hover { color: var(--amber-700); }
.crumbs-dark, .crumbs-dark a { color: rgba(242,242,240,.7); }
.art-meta, .card .meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font: 500 12px/1.4 var(--f-mono); color: var(--ink-600); letter-spacing: .02em;
}
.cat {
  display: inline-block; padding: 4px 10px; border-radius: 99px;
  background: rgba(191, 94, 38, .1); color: var(--amber-700); font-weight: 500;
}

/* ── Статья: герой ── */
.art-hero { padding-top: 28px; padding-bottom: 24px; }
.art-hero .art-meta { margin-top: 22px; }
.art-hero h1 {
  margin: 16px 0 0; max-width: 920px;
  font: 800 clamp(30px, 7.4vw, 58px)/1.06 var(--f-display); letter-spacing: -.03em; color: var(--ink);
  text-wrap: balance;
}
.art-desc { margin: 18px 0 0; max-width: 760px; font-size: 17px; line-height: 1.6; color: var(--ink-700); }
.art-cover { margin-top: 4px; margin-bottom: 0; }
.art-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); background: var(--paper-300); }

/* ── Статья: сетка ── */
.art-grid { display: block; padding-top: 32px; }
.art-side { display: none; }
.art-body { min-width: 0; max-width: 760px; }

/* Оглавление на мобиле */
.toc-mobile {
  margin-bottom: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-50);
}
.toc-mobile summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; font: 700 15px var(--f-display);
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile ol { margin: 0; padding: 0 10px 12px; list-style: none; }

/* Плюс-минус (FAQ, мобильное оглавление) */
summary i { position: relative; width: 14px; height: 14px; flex: none; margin-left: 16px; }
summary i::before, summary i::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: var(--amber); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s;
}
summary i::after { transform: rotate(90deg); }
details[open] > summary i::after { transform: rotate(0); opacity: 0; }

.toc ol, .toc-mobile ol { counter-reset: none; }
.toc a, .toc-mobile a {
  display: flex; gap: 12px; padding: 8px 10px; border-radius: 8px;
  text-decoration: none; font-size: 14px; line-height: 1.4; color: var(--ink-700);
  transition: background-color .2s, color .2s;
}
.toc a span, .toc-mobile a span { font: 500 11px/1.9 var(--f-mono); color: var(--ink-500); flex: none; }
.toc a:hover, .toc-mobile a:hover { background: var(--paper-200); color: var(--ink); }
.toc a.is-active { background: rgba(191,94,38,.09); color: var(--amber-700); }
.toc a.is-active span { color: var(--amber); }

/* Коротко */
.summary {
  position: relative; margin: 0 0 36px; padding: 24px 22px 10px; border-radius: 16px;
  background: var(--paper-50); border: 1px solid rgba(26,25,23,.07); box-shadow: var(--shadow);
}
.summary::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, transparent, rgba(191,94,38,.55), transparent);
}
.summary ol { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: s; }
.summary li {
  counter-increment: s; position: relative; padding: 0 0 16px 44px; font-size: 15.5px; line-height: 1.6; color: var(--ink-700);
}
.summary li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font: 800 20px/1.25 var(--f-display); letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Текст статьи ── */
.prose { font-size: 17px; line-height: 1.75; color: #2A2824; }
.prose > * { margin: 0 0 20px; }
.prose .lead { font-size: 19px; line-height: 1.65; color: var(--ink); }
.prose h2, .faq h2 {
  display: flex; align-items: baseline; gap: 14px;
  margin: 52px 0 18px; font: 800 clamp(24px, 5.4vw, 32px)/1.15 var(--f-display); letter-spacing: -.025em; color: var(--ink);
  text-wrap: balance;
}
.h-num {
  flex: none; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--amber);
  padding: 6px 8px; border: 1px solid rgba(191,94,38,.35); border-radius: 6px; transform: translateY(-4px);
}
.prose h3 { margin: 34px 0 12px; font: 700 21px/1.3 var(--f-display); letter-spacing: -.015em; color: var(--ink); }
.prose a { color: var(--amber-700); text-decoration: underline; text-decoration-color: rgba(191,94,38,.35); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: var(--amber); }
.prose strong { font-weight: 650; color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 28px; margin: 0 0 10px; }
.prose ul > li::before {
  content: ''; position: absolute; left: 6px; top: .72em; width: 7px; height: 7px; background: var(--amber); transform: rotate(45deg);
}
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; }
.prose ol > li::before {
  content: counter(li); position: absolute; left: 0; top: .15em;
  width: 21px; height: 21px; border-radius: 6px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper-50); font: 600 11px/1 var(--f-mono);
}

/* Таблицы */
.table-wrap {
  margin: 24px 0 28px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper-50); box-shadow: var(--shadow);
}
.prose table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; min-width: 480px; }
.table-wrap table.prices { min-width: 0; }
th {
  text-align: left; padding: 13px 16px; background: var(--paper-200);
  font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-600);
}
td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
td:first-child { font-weight: 600; color: var(--ink); }
tbody tr:hover td { background: rgba(191,94,38,.035); }
td.num { white-space: nowrap; font: 600 15px var(--f-display); color: var(--amber-700); }
.note-small { font-size: 13.5px; color: var(--ink-600); }

/* Врезки */
.callout {
  position: relative; margin: 28px 0; padding: 18px 20px 18px 22px; border-radius: 14px;
  background: var(--paper-50); border: 1px solid var(--line); overflow: hidden;
}
.callout::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.callout-label { font: 500 11px/1.4 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--amber-700); margin-bottom: 6px; }
.callout-text { font-size: 16px; line-height: 1.65; color: var(--ink-700); }
.callout-warn { background: #FBF1EA; border-color: rgba(191,94,38,.22); }
.callout-note::before { background: var(--ink-500); }
.callout-note .callout-label { color: var(--ink-600); }

/* FAQ */
.faq { margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 2px; font: 700 18px/1.35 var(--f-display); letter-spacing: -.015em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--amber-700); }
.faq-a { padding: 0 2px 20px; color: var(--ink-700); }
.faq-a p { margin: 0 0 12px; }
.faq details[open] .faq-a { animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Источники */
.sources { margin-top: 44px; padding: 22px 22px 8px; border-radius: 14px; background: var(--paper-200); }
.sources ul { list-style: none; padding: 0; margin: 14px 0 0; }
.sources li { position: relative; padding: 0 0 12px 18px; font-size: 14px; line-height: 1.55; color: var(--ink-700); }
.sources li::before { content: '§'; position: absolute; left: 0; top: 0; color: var(--amber); font-family: var(--f-mono); }
.disclaimer { margin: 18px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-500); }

/* ── CTA ── */
.cta-card {
  position: relative; overflow: hidden; padding: 24px; border-radius: 18px; color: var(--paper-50);
  background: radial-gradient(420px 220px at 100% 0%, rgba(207,128,72,.35), transparent 60%), var(--graphite);
}
.cta-card .kicker { color: rgba(242,242,240,.6); }
.cta-title { margin-top: 12px; font: 800 22px/1.2 var(--f-display); letter-spacing: -.02em; }
.cta-card p { margin: 10px 0 18px; font-size: 14px; line-height: 1.6; color: rgba(242,242,240,.75); }
.cta-card .btn { width: 100%; }
.cta-phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font: 600 15px var(--f-sans); text-decoration: none; color: var(--paper-50); }
.cta-phone svg { color: var(--amber-400); width: 16px; height: 16px; }

.cta-band {
  position: relative; overflow: hidden; margin: 64px 0 0; border-radius: 22px; color: var(--paper-50);
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(207,128,72,.38), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(191,94,38,.18), transparent 60%),
    var(--graphite-900);
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.topo {
  position: absolute; z-index: 0; right: -30%; top: -10%; width: 120%; height: auto; opacity: .35;
  fill: none; stroke: #D98A52; stroke-width: 1; pointer-events: none;
}
.cta-band-in { position: relative; z-index: 1; padding: 36px 22px; max-width: 760px; }
.cta-band .kicker { color: rgba(242,242,240,.65); }
.cta-band-title { margin: 14px 0 0; font: 800 clamp(26px, 6vw, 42px)/1.08 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
.cta-band p { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: rgba(242,242,240,.75); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.contact-btns .btn { padding: 11px 16px; font-size: 13px; }
.contact-btns .btn-accent { background: rgba(255,255,255,.08); box-shadow: none; border-color: rgba(255,255,255,.22); }

/* ── Карточки статей ── */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.link-all { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--f-sans); text-decoration: none; color: var(--amber-700); }
.related { margin-top: 64px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  border-radius: 18px; background: var(--paper-50); border: 1px solid rgba(26,25,23,.07); box-shadow: var(--shadow);
  transition: transform .45s var(--ease);
}
.card::after { /* тень-ховер отдельным слоем: анимируем opacity, а не box-shadow */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: var(--shadow-hover); opacity: 0; transition: opacity .45s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card:hover::after { opacity: 1; }
.card-img { overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-300); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.045); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.card h3 { margin: 14px 0 0; font: 800 20px/1.25 var(--f-display); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.card p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-700); }
.card-more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--f-sans); color: var(--amber-700); }
.card-more svg { transition: transform .3s var(--ease); width: 16px; height: 16px; }
.card:hover .card-more svg { transform: translateX(4px); }
.card[hidden] { display: none; }

/* ── Журнал (индекс) ── */
.idx-hero { position: relative; overflow: hidden; color: var(--paper-50); background: var(--graphite-900); margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); }
.idx-hero-bg { position: absolute; inset: 0; }
.idx-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.idx-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,17,12,.55) 0%, rgba(19,17,12,.35) 40%, rgba(19,17,12,.92) 100%),
              linear-gradient(90deg, rgba(19,17,12,.7), transparent 75%);
}
.idx-hero-in { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 56px; }
.idx-hero .kicker { margin-top: 28px; }
.idx-hero h1 {
  margin: 14px 0 0; font: 800 clamp(40px, 11vw, 92px)/1 var(--f-hero); letter-spacing: -.03em; text-transform: lowercase;
}
.idx-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #E3A070 0%, #D98A52 35%, #BF5E26 75%, #9A4A18 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.idx-hero p { margin: 20px 0 0; max-width: 620px; font-size: 17px; line-height: 1.6; color: rgba(242,242,240,.82); }
.page-index .site-header { background: rgba(242,242,240,.9); }

.idx-body { padding-top: 36px; }
.chips[hidden] { display: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; cursor: pointer; padding: 9px 16px; border-radius: 99px;
  border: 1px solid rgba(26,25,23,.15); background: transparent; color: var(--ink-700);
  font: 500 14px var(--f-sans); transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: rgba(26,25,23,.4); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper-50); }
.feature { margin-bottom: 20px; }
.feature .card h3 { font-size: clamp(22px, 5vw, 34px); line-height: 1.12; letter-spacing: -.03em; }

/* ── Подвал ── */
.site-footer { margin-top: 80px; background: var(--paper-300); border-top: 2px solid rgba(26,25,23,.12); }
.footer-grid { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 28px; }
.footer-grid img { height: 38px; width: auto; }
.footer-grid p { margin: 14px 0 0; max-width: 340px; font-size: 14px; line-height: 1.6; color: var(--ink-600); }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-col h4 { margin: 0 0 6px; font: 600 11px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; }
.footer-col a, .footer-col span { color: var(--ink-600); text-decoration: none; }
.footer-col a:hover { color: var(--amber-700); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(26,25,23,.12);
  font-size: 12.5px; color: var(--ink-600);
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--amber-700); }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(242,242,240,.95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { padding: 12px 10px; font-size: 14px; }

/* ── Планшет ── */
@media (min-width: 700px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  .header-phone { width: auto; height: auto; border: 0; border-radius: 0; }
  .header-phone span { display: inline; }
  .hide-sm { display: inline-flex; }
  .cards { grid-template-columns: 1fr 1fr; }
  .summary { padding: 28px 30px 12px; }
  .cta-band-in { padding: 52px 48px; }
  .topo { right: -12%; top: -14%; width: 72%; opacity: .55; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .feature .card { display: grid; grid-template-columns: 1.25fr 1fr; }
  .feature .card-img { aspect-ratio: auto; min-height: 340px; }
  .feature .card-body { padding: 32px; justify-content: center; }
  .feature .card-more { margin-top: 24px; }
  .idx-hero-in { padding-top: 72px; padding-bottom: 88px; }
}

/* ── Десктоп ── */
@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; font-size: 18px; }
  .mobile-bar { display: none; }
  .logo img { height: 42px; }
  .nav { display: flex; gap: 26px; }
  .nav a { position: relative; font: 500 14px var(--f-sans); text-decoration: none; color: rgba(26,25,23,.7); transition: color .2s; }
  .nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--amber-500);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease);
  }
  .nav a:hover, .nav a.is-active { color: var(--ink); }
  .nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
  .burger { display: none; }

  .art-hero { padding-top: 44px; padding-bottom: 36px; }
  .art-desc { font-size: 19px; }
  .art-cover img { border-radius: 22px; aspect-ratio: 21 / 9; }
  .art-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; padding-top: 56px; }
  .art-side { display: block; }
  .side-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
  .toc ol { list-style: none; margin: 14px 0 0; padding: 0; max-height: calc(100vh - var(--header-h) - 400px); overflow-y: auto; scrollbar-width: thin; }
  .art-side .cta-card { padding: 22px; }
  .art-side .cta-title { font-size: 20px; }
  .toc-mobile { display: none; }
  .prose { font-size: 18px; }
  .prose .lead { font-size: 21px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .feature .card-img { min-height: 440px; }
  .feature .card-body { padding: 44px; }
  .idx-hero-in { padding-top: 96px; padding-bottom: 112px; }
}

@media (min-width: 1000px) and (max-height: 960px) {
  .art-side .cta-card p { display: none; }
  .art-side .cta-card .btn { margin-top: 16px; }
  .toc ol { max-height: calc(100vh - var(--header-h) - 300px); }
}

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