/* Редакционный макет страницы статьи. Заголовки — Playfair (кириллица),
   тело — Inter, моно-акценты — IBM Plex Mono, акцент — оранжевый #ff6b35. */
.ed-page {
    --paper: #F6F6F3;
    --ink: #191B1F;
    --muted: #63666E;
    --faint: #8B8E95;
    --line: #E4E2DB;
    --ember: #ff6b35;
    --ember-ink: #e85520;
    --glow: rgba(255,107,53,.13);
    --display: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.ed-wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.ed-wrap--wide { max-width: 1060px; }
.ed-cards-block { margin: 6px 0 8px; }

/* Masthead */
.ed-masthead { position: relative; overflow: hidden; padding: 60px 0 8px; }
.ed-masthead::before {
    content: ""; position: absolute; top: -160px; left: 50%; transform: translateX(-42%);
    width: 620px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 68%);
    pointer-events: none; z-index: 0;
}
.ed-masthead .ed-wrap { position: relative; z-index: 1; }
.ed-eyebrow {
    font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 24px; display: flex; align-items: center; gap: 10px;
}
.ed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); flex: none; }
.ed-eyebrow--accent { color: var(--ember-ink); }
.ed-title {
    font-family: var(--display); font-weight: 600;
    font-size: clamp(30px, 5.4vw, 50px); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 24px;
}
.ed-title__accent { color: var(--ember-ink); }
.ed-lead {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(19px, 2.4vw, 22px); line-height: 1.55; color: #33353B; margin: 0 0 28px;
}
.ed-byline {
    font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--faint);
    padding-top: 20px; border-top: 1px solid var(--line); margin: 0;
}

/* Body */
.ed-body { padding: 12px 0 0; }
.ed-content p { margin: 0 0 20px; }
.ed-content h2 {
    font-family: var(--display); font-weight: 600;
    font-size: clamp(23px, 3.2vw, 29px); line-height: 1.2; letter-spacing: -.005em; margin: 0 0 16px;
}
.ed-content h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 28px 0 12px; }
.ed-content a { color: var(--ember-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* Списки: маркер — кольцо в акцентном цвете (как в исходнике) */
.ed-content ul { list-style: none; margin: 6px 0 22px; padding: 0; }
.ed-content ul li { position: relative; padding: 0 0 14px 26px; margin: 0; }
.ed-content ul li::before {
    content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px;
    border-radius: 50%; border: 2px solid var(--ember);
}
.ed-content ol { margin: 6px 0 22px; padding-left: 22px; }
.ed-content ol li { margin-bottom: 12px; padding-left: 4px; }
.ed-content img { max-width: 100%; height: auto; border-radius: 12px; }
.ed-content blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ember); color: var(--muted); font-style: italic; }
.ed-content strong, .ed-content b { font-weight: 600; }

/* Нумерованный «кик» перед h2 */
.ed-kick {
    font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; color: var(--ember-ink);
    margin: 48px 0 8px; display: flex; align-items: center; gap: 12px;
}
.ed-num { font-weight: 500; }
.ed-rule { flex: 1; height: 1px; background: var(--line); }

/* Источники — приглушённый стиль (как в исходнике) */
.ed-sources { margin: 56px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.ed-label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.ed-sources ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.ed-sources ol li { margin-bottom: 10px; padding-left: 0; }
.ed-sources ol li::marker { color: var(--faint); }

/* Обложка */
.ed-cover { margin: 20px 0 0; }
.ed-cover img, .ed-cover picture { display: block; width: 100%; height: auto; border-radius: 16px; }
.ed-cover--bottom { margin: 44px 0 0; }

/* Автор / теги / похожие */
.ed-author { display: flex; align-items: center; gap: 14px; margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.ed-author__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.ed-author__name { margin: 2px 0 0; font-weight: 600; }
.ed-author__name a { color: var(--ink); text-decoration: none; }
.ed-author__name a:hover { color: var(--ember-ink); }
.ed-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.ed-tag { font-family: var(--mono); font-size: 12px; color: var(--muted); text-decoration: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 20px; }
.ed-tag:hover { border-color: var(--ember); color: var(--ember-ink); }
.ed-similar { margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.ed-similar__list { list-style: none; margin: 0; padding: 0; }
.ed-similar__list li { margin-bottom: 16px; }
.ed-similar__list a { text-decoration: none; display: block; }
.ed-similar__h { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.ed-similar__list a:hover .ed-similar__h { color: var(--ember-ink); }
.ed-similar__x { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Footer */
.ed-footer { padding: 44px 0 56px; text-align: center; }
.ed-footer__mk { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* Кнопки и callout (страницы «О нас» / «Контакты») */
.ed-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 12px;
    background: var(--ember); color: #fff; font-weight: 700; font-size: .98rem;
    text-decoration: none; border: 2px solid var(--ember);
    transition: background .15s ease, transform .15s ease, color .15s ease;
}
.ed-btn:hover { background: var(--ember-ink); border-color: var(--ember-ink); color: #fff; transform: translateY(-2px); }
.ed-btn--outline { background: #fff; color: var(--ember-ink); }
.ed-btn--outline:hover { background: #fff5f0; color: var(--ember-ink); }
.ed-callout { margin: 6px 0 8px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ed-callout > p { margin: 0 0 16px; color: #3d4756; line-height: 1.6; }
.ed-callout__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ed-callout__alt { color: var(--muted); font-size: .92rem; text-decoration: none; }
.ed-callout__alt:hover { color: var(--ember-ink); }
.ed-morelink { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--ember-ink); font-weight: 600; text-decoration: none; }
.ed-morelink:hover { text-decoration: underline; }
/* «Коротко» (TL;DR) — светлый бокс */
.ed-tldr { margin: 4px 0 10px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.ed-tldr .ed-label { margin-bottom: 8px; }
.ed-tldr ul { margin: 0; padding-left: 20px; color: #3d4756; }
.ed-tldr li { margin-bottom: 8px; line-height: 1.5; }
.ed-note { color: var(--muted); font-size: .95rem; }

@media (max-width: 560px) {
    .ed-page { font-size: 17px; }
    .ed-masthead { padding: 44px 0 4px; }
}
@media (prefers-reduced-motion: no-preference) {
    .ed-masthead .ed-wrap > * { animation: ed-rise .7s cubic-bezier(.2,.7,.2,1) both; }
    .ed-eyebrow { animation-delay: .02s; }
    .ed-title { animation-delay: .08s; }
    .ed-lead { animation-delay: .16s; }
    .ed-byline { animation-delay: .24s; }
    @keyframes ed-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
