/* M4Q — страницы возможностей и правовые документы. Обычная прокрутка, без параллакса.
   Общие токены, шапка, кнопки и рамки снимков находятся в core.css. */

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; color: var(--faint); }
.breadcrumbs a { color: var(--muted); transition: color .2s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .icon { width: 14px; height: 14px; }
.breadcrumbs [aria-current] { color: var(--ink-2); font-weight: 500; }

/* ——— Первый экран страницы возможностей ——— */
.feature-hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); background-color: var(--bg-soft); }
.feature-hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 70% at 80% 40%, var(--glow-1), transparent 70%), radial-gradient(40% 60% at 100% 100%, var(--glow-2), transparent 70%); }
.feature-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-hero--text .feature-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 4.5fr); }
.feature-hero-copy .breadcrumbs { margin-bottom: 28px; }
.feature-hero h1 { font-size: clamp(2.25rem, 1.3rem + 3.4vw, 3.75rem); line-height: 1.04; letter-spacing: -.04em; }
.feature-lead { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.feature-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.feature-caption { margin-top: 18px; font-size: .875rem; color: var(--faint); }
.feature-visual { position: relative; margin: 0; padding: 0 9% 9% 0; }
.feature-phone { position: absolute; right: 0; bottom: 0; width: 27%; }
.feature-visual figcaption { position: absolute; left: 0; bottom: 0; max-width: 60%; font-size: .8125rem; color: var(--faint); }
.feature-summary { padding: clamp(24px, 3vw, 36px); border-radius: 26px; background-color: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.summary-play { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; background-color: var(--btn-bg); background-image: var(--btn-grad); box-shadow: var(--btn-shadow); }
.summary-play svg { width: 26px; height: 26px; fill: currentColor; }
.summary-sync svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-summary h2 { margin-top: 22px; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.02em; }
.feature-summary ul { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 20px 0 24px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.feature-summary li { display: grid; gap: 4px; }
.feature-summary li span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 960px) {
  .feature-hero-grid, .feature-hero--text .feature-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-visual { padding-bottom: 12%; }
}
@media (max-width: 560px) {
  .feature-actions .btn { width: 100%; }
  .feature-visual figcaption { position: static; max-width: none; margin-top: 16px; }
  .feature-visual { padding-bottom: 0; }
  .feature-phone { bottom: 32px; width: 30%; }
}

/* ——— Колонки со списком разделов ——— */
.article-layout { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(40px, 6vw, 72px); }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
.article-main { min-width: 0; max-width: 760px; }
.page-toc > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 0 12px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); cursor: pointer; list-style: none; }
.page-toc > summary::-webkit-details-marker { display: none; }
.toc-chevron { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .25s; }
.page-toc:not([open]) .toc-chevron { transform: none; }
.page-toc nav { display: grid; grid-template-columns: minmax(0, 1fr); border-left: 1px solid var(--line); }
.page-toc nav a { position: relative; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: .875rem; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s; }
.page-toc nav a:hover { color: var(--ink); }
.page-toc nav a[aria-current] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.page-toc nav a.toc-subsection { padding-left: 28px; font-size: .8125rem; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; max-height: none; overflow: visible; }
  .page-toc { padding: 14px 18px; border-radius: 16px; background-color: var(--surface); border: 1px solid var(--line); }
  .page-toc > summary { padding: 0; }
  .page-toc[open] > summary { padding-bottom: 12px; }
}

/* ——— Типографика текста ——— */
.prose { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.75; }
.prose section + section { margin-top: 56px; }
.prose h2, .article-faq h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -.03em; }
.prose p, .prose ul, .prose ol { margin-top: 16px; }
.prose a, .doc-sheet .content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background-image: var(--grad-brand); }
.prose ol.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.prose ol.steps li { position: relative; counter-increment: step; padding: 18px 20px 18px 68px; border-radius: 18px; background-color: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.prose ol.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  font: 700 .9375rem/1 var(--font-mono); color: var(--accent); background-color: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line);
}
.prose ol:not(.steps) { padding-left: 1.4em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }

.article-faq { margin-top: clamp(56px, 8vw, 88px); }
.article-faq .faq-list { margin-top: 20px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px 0; font: 600 1.0625rem/1.45 var(--font-display); cursor: pointer; list-style: none; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .35s var(--ease-out), background-color .25s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; border-radius: 2px; background-color: currentColor; }
.faq-icon::after { transform: rotate(90deg); transition: transform .35s var(--ease-out); }
details[open] .faq-icon { transform: rotate(180deg); color: #fff; border-color: transparent; background-color: var(--btn-bg); background-image: var(--btn-grad); }
details[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 44px 22px 0; color: var(--muted); }
@media (max-width: 560px) { .faq-answer { padding-right: 0; } }

/* ——— Скачивание и соседние страницы ——— */
.feature-download { margin-top: clamp(64px, 9vw, 112px); }
.download-panel { position: relative; isolation: isolate; overflow: hidden; padding: clamp(32px, 6vw, 64px); border-radius: 28px; text-align: center; border: 1px solid rgb(255 255 255 / .08); }
.download-panel-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 0%, rgb(106 92 255 / .34), transparent 70%), radial-gradient(40% 60% at 90% 100%, rgb(31 150 255 / .2), transparent 70%); }
.download-panel h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); letter-spacing: -.035em; }
.download-panel > p { max-width: 680px; margin: 14px auto 0; color: var(--muted); }
.download-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.download-panel .download-note { margin-top: 16px; font-size: .875rem; color: var(--faint); }
.download-panel .download-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .download-buttons .btn { width: 100%; } }
.feature-related { margin-top: clamp(48px, 7vw, 80px); }
.feature-related h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.related-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 16px 20px; border-radius: 16px; background-color: var(--surface); border: 1px solid var(--line); font-weight: 600; transition: border-color .25s, transform .35s var(--ease-out); }
.related-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.related-card .icon { width: 18px; height: 18px; color: var(--accent); transition: transform .3s var(--ease-out); }
.related-card:hover .icon { transform: translateX(3px); }
@media (max-width: 960px) { .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .related-grid { grid-template-columns: minmax(0, 1fr); } }

/* ——— Правовые документы: обычный документ без анимаций ——— */
.doc-hero { border-bottom: 1px solid var(--line); background-color: var(--bg-soft); }
.doc-hero-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-block: 12px; }
.doc-layout { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
.aside-label { margin-bottom: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.doc-switch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.doc-switch a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: .9375rem; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s; }
.doc-switch a:hover { color: var(--ink); background-color: var(--surface-3); }
.doc-switch a[aria-current] { color: var(--ink); background-color: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); font-weight: 600; }
.doc-switch a[aria-current] .icon { color: var(--accent); }
.aside-support { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background-color: var(--surface); font-size: .875rem; font-weight: 600; color: var(--accent); }
.aside-support span { font-weight: 500; color: var(--muted); }
.doc-sheet { min-width: 0; max-width: 820px; padding: clamp(24px, 5vw, 56px); border-radius: 24px; background-color: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.sheet-label { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: .8125rem; font-weight: 600; color: var(--faint); }
.paper-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--accent); background-color: var(--accent-soft); }
.label-divider { margin: 0 4px; opacity: .6; }
.doc-sheet .content { color: var(--ink-2); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.doc-sheet .content:focus { outline: none; }
.doc-sheet .content h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; color: var(--ink); }
.document-subtitle { color: var(--muted); }
.document-edition { display: block; margin-top: 14px; font: 500 .9375rem/1.4 var(--font-sans); letter-spacing: 0; color: var(--faint); }
.doc-sheet .content h2 { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 1.375rem; line-height: 1.3; letter-spacing: -.02em; }
.doc-sheet .content h3 { margin-top: 28px; font-size: 1.125rem; letter-spacing: -.01em; }
.doc-sheet .content h2:focus, .doc-sheet .content h3:focus { outline: none; }
.doc-sheet .content p { margin-top: 12px; }
.doc-sheet .content p:empty { display: none; }
.doc-sheet .content strong { color: var(--ink); font-weight: 600; }
.doc-sheet .content ul { margin-top: 12px; padding-left: 1.4em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.doc-sheet .content li::marker { color: var(--accent); }
.doc-sheet .content .requisites { margin-top: 32px; padding: 20px 24px; border-radius: 16px; background-color: var(--surface-2); border: 1px solid var(--line); }
.doc-sheet .content .requisites h3 { margin-top: 0; }
.sheet-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .875rem; }
.sheet-bottom a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.sheet-bottom .icon { width: 16px; height: 16px; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc-switch a { justify-content: center; text-align: center; padding: 8px; font-size: .8125rem; min-height: 52px; }
  .doc-switch .icon { display: none; }
  .aside-label, .aside-support { display: none; }
}
@media (max-width: 560px) {
  .doc-sheet { padding: 22px 18px; border-radius: 18px; }
  .prose ol.steps li { padding: 16px 16px 16px 58px; }
  .prose ol.steps li::before { left: 14px; top: 16px; width: 30px; height: 30px; }
}
@media print {
  .doc-hero, .article-aside, .sheet-bottom, .feature-download, .feature-related { display: none !important; }
  .article-layout { display: block; padding: 0; }
  .doc-sheet { max-width: none; padding: 0; border: 0; box-shadow: none; background: #fff; }
  .doc-sheet .content, .doc-sheet .content * { color: #000 !important; }
}
