/* Soulence — страницы статей. Дополняет style.css (токены, шапка, кнопки, подвал). Без JS, cookies и трекеров. */

/* Доступность: ссылка «к тексту» */
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 12px; z-index: 40; background: var(--paper); color: var(--olive); padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); }

/* Шапка статьи: ссылка на главную, кнопка записи прячется на узких экранах (внизу есть mobile-cta) */
.back-home { font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--sage-deep); white-space: nowrap; }
.back-home:hover { color: var(--olive); }
.header-cta { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }
.nav a[aria-current="page"] { color: var(--sage-deep); font-weight: 700; }
.nav a { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1099px) { .back-home span { display: none; } .nav { gap: 18px; } }

/* Колонка чтения */
.article { padding: 28px 0 32px; }
@media (min-width: 900px) { .article { padding: 56px 0 48px; } }
.article-head,
.prose,
.listing { width: 100%; max-width: calc(68ch + 32px); margin: 0 auto; padding: 0 16px; }
.listing { max-width: var(--max); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 720px) {
  .article-head, .prose { max-width: calc(68ch + 64px); padding: 0 32px; }
  .listing { padding: 0 32px; }
}

/* Хлебные крошки и мета */
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--olive); }
.article-head .eyebrow { margin-bottom: .8rem; }
.article-head h1 { font-size: clamp(2rem, 6.4vw, 3.25rem); line-height: 1.1; overflow-wrap: break-word; }
.article-head .lead { max-width: none; font-size: 1.12rem; }
.article-meta { font-size: .88rem; color: var(--muted); margin: 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }

/* Текст */
.prose { font-size: 17px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (min-width: 720px) { .prose, .article-head { font-size: 18px; } } /* одинаковый ch у шапки и текста */
.prose > :first-child { margin-top: 0; }
.prose section { padding: 0; } /* style.css задаёт отступы всем section — здесь они не нужны */
.prose h2 { font-size: clamp(1.65rem, 4.2vw, 2.2rem); margin: 2.1em 0 .55em; scroll-margin-top: 84px; hyphens: manual; }
.prose h3 { font-size: clamp(1.3rem, 3vw, 1.5rem); margin: 1.6em 0 .45em; scroll-margin-top: 84px; hyphens: manual; }
.prose p, .prose li { line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold); }
.prose b, .prose strong { color: var(--olive); }
.prose a { overflow-wrap: anywhere; }

/* Цитата-вынос — в антикве, как на главной */
.pull { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.45rem, 3.8vw, 1.9rem); line-height: 1.3; color: var(--olive); margin: 1.6em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--gold); hyphens: manual; }
.pull p { margin: 0; }

/* Оглавление */
.toc { margin: 24px 0 8px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; font-size: .95rem; }
.toc-title { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); font-weight: 700; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .25em; line-height: 1.45; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--sage-deep); text-decoration: underline; }

/* «Узнаёте себя?» */
.prose .recognize { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 10px; margin: 2em 0; }
@media (min-width: 720px) { .prose .recognize { padding: 30px 32px 14px; } }
.recognize h2 { margin-top: 0; }
.recognize ul { list-style: none; padding: 0; margin: 0 0 1em; }
.recognize li { position: relative; padding-left: 26px; margin-bottom: .55em; font-family: var(--serif); font-style: italic; font-size: 1.28rem; line-height: 1.35; color: var(--olive); hyphens: manual; }
.recognize li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.recognize p { color: var(--muted); }

/* Шаги работы */
.process { counter-reset: p; list-style: none; padding: 0 !important; margin: 1.2em 0 1.4em; display: grid; gap: 12px; }
.process li { counter-increment: p; position: relative; margin: 0; padding: 16px 18px 16px 62px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.process li::before { content: counter(p); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 50%; background: var(--olive); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: .92rem; line-height: 1; }

/* Самостоятельные шаги — легче, чем шаги работы: цифры в антикве */
.prose .diy-steps { list-style: none; padding: 0; counter-reset: d; margin: 1em 0 1.3em; }
.diy-steps li { counter-increment: d; position: relative; padding-left: 38px; margin-bottom: .9em; }
.diy-steps li::before { content: counter(d); position: absolute; left: 0; top: -.05em; width: 26px; text-align: center; font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.2; color: var(--gold); }

/* Важная оговорка (безопасность) */
.notice.safety { margin: 1.6em 0; padding: 20px 22px; font-size: .95rem; }
.notice.safety p { margin: 0; }

/* FAQ — базовые стили details/summary в style.css */
.faq { margin-top: .5em; }
.prose details p { color: var(--ink); }
.prose summary { line-height: 1.45; }

/* Автор */
.author-box { display: flex; align-items: center; gap: 16px; margin: 2.6em 0 1.4em; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { width: 80px; height: 80px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--cream); box-shadow: 0 0 0 1.5px var(--gold); }
.author-box p { margin: 0; font-size: .95rem; line-height: 1.5; hyphens: manual; }
.author-box p + p { margin-top: 4px; color: var(--muted); }
.author-box b { font-family: var(--serif); font-size: 1.2rem; color: var(--olive); }

/* Запись */
.cta-box { background: var(--olive); color: var(--paper); border-radius: var(--radius); padding: 30px 22px; text-align: center; margin: 1.4em 0 2.4em; }
@media (min-width: 720px) { .cta-box { padding: 40px 40px; } }
.cta-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.55rem, 4.6vw, 2.1rem); line-height: 1.2; color: var(--paper); margin: 0 0 .45em; hyphens: manual; }
.cta-box p { color: #d9dfd2; margin-left: auto; margin-right: auto; max-width: 34em; }
.cta-box .btn { background: var(--paper); color: var(--olive); margin-top: 6px; max-width: 100%; }
.cta-box .btn:hover { background: var(--sand); color: var(--olive); }
.cta-box .cta-note { font-size: .85rem; margin: 14px auto 0; }
.cta-box a:not(.btn) { color: var(--paper); }

/* Читайте также */
.related { margin: 0 0 1em; }
.related-title { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); font-weight: 700; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 12px; }
.related li { margin: 0; }
.related a { display: block; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.25; color: var(--olive); hyphens: manual; }
.related a span { display: block; margin-top: 6px; font-family: var(--sans); font-weight: 400; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.related a:hover { border-color: var(--sage); }

/* Страница-список статей */
.listing-head { max-width: 760px; margin-bottom: 32px; }
.listing-head h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
.article-cards { display: grid; gap: 18px; margin-bottom: 40px; }
@media (min-width: 760px) { .article-cards { grid-template-columns: repeat(2, 1fr); } }
.article-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.article-card .eyebrow { margin-bottom: .7rem; }
.article-card h2 { font-size: clamp(1.55rem, 4vw, 1.9rem); margin-bottom: .45em; hyphens: manual; }
.article-card h2 a { color: var(--olive); text-decoration: none; }
.article-card h2 a:hover { text-decoration: underline; }
.article-card p { color: var(--muted); }
.article-card .more { margin-top: auto; font-weight: 700; color: var(--sage-deep); }
.listing .author-box, .listing .cta-box { max-width: calc(68ch + 32px); margin-left: auto; margin-right: auto; }

/* Блог: две главные статьи с обложками */
.featured-cards { display: grid; gap: 22px; margin-bottom: 22px; }
@media (min-width: 760px) { .featured-cards { grid-template-columns: repeat(2, 1fr); } }
.featured-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fc-cover { display: block; border-bottom: 1px solid var(--line); }
.fc-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.featured-card:hover .fc-cover img { transform: scale(1.015); }
.fc-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.fc-body .eyebrow { margin-bottom: .7rem; }
.fc-body h2 { font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.15; margin-bottom: .5em; hyphens: manual; }
.fc-body h2 a { color: var(--olive); text-decoration: none; }
.fc-body h2 a:hover { text-decoration: underline; }
.fc-body p { color: var(--muted); }
.fc-body .fc-meta { margin-top: auto; padding-top: .4rem; font-size: .88rem; color: var(--sage-deep); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .fc-cover img { transition: none; } }
