/* ═══════════════════════════════════════════════════════════════
   Маткапитал24 — AUTHOR PAGE (Ирина Смирнова)
   Стили 1:1 из HTML-шаблона ТЗ. Изолированы под .author-page,
   чтобы не конфликтовать с темой.
   ═══════════════════════════════════════════════════════════════ */

.author-page {
    --ink:#0b1220;
    --ink-2:#1f2937;
    --muted:#5b6577;
    --faded:#8a92a3;

    --bg-card:#eef3fb;
    --bg-card-2:#f6f8fc;
    --line:#dbe3f0;
    --line-soft:#e8edf6;

    --blue:#2563eb;
    --blue-deep:#1d4ed8;
    --blue-soft:#dde8fb;

    --max:1100px;
    --gutter:clamp(20px,4vw,40px);
    --radius:16px;
    --radius-sm:12px;

    font-family:'Manrope',-apple-system,sans-serif;
    color:var(--ink);
    font-size:16px;
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
}

.author-page,
.author-page *,
.author-page *::before,
.author-page *::after { box-sizing: border-box; }

.author-page .container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.author-page img { max-width: 100%; display: block; }
.author-page a   { color: inherit; text-decoration: none; }

/* ── Crumbs ──────────────────────────────────────────────── */
.author-page .crumbs {
    padding: 24px 0 18px;
    font-size: 14px;
    color: var(--faded);
}
.author-page .crumbs a { transition: color .2s; }
.author-page .crumbs a:hover { color: var(--blue); }
.author-page .crumbs .sep { margin: 0 8px; opacity: .6; }

/* ── HERO ─────────────────────────────────────────────────── */
.author-page .ap-hero { padding-bottom: 24px; }
.author-page .ap-hero .hero-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}
.author-page .hero-tag {
    display: inline-block;
    background: #fff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
}
.author-page .ap-hero h1 {
    font-weight: 800;
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: var(--ink);
}
.author-page .hero-role {
    color: var(--blue);
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 28px;
}
.author-page .hero-text p {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink-2);
    margin: 0 0 14px;
    max-width: 480px;
}
.author-page .hero-stats {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.author-page .stat-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    min-width: 200px;
}
.author-page .stat-pill .ic {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.author-page .stat-pill .ic svg { width: 20px; height: 20px; }
.author-page .stat-pill .num {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.1;
}
.author-page .stat-pill .lbl {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.author-page .hero-photo {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    overflow: hidden;
    background: #d9d4cc;
    max-width: 420px;
    justify-self: end;
    width: 100%;
}
.author-page .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 880px) {
    .author-page .ap-hero .hero-card { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
    .author-page .hero-photo { justify-self: center; max-width: 340px; }
}

/* ── VALUES ──────────────────────────────────────────────── */
.author-page .ap-values { padding: 24px 0; }
.author-page .values-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 44px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.author-page .value {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
}
.author-page .value .ic {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dbe6f7;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.author-page .value .ic svg { width: 28px; height: 28px; }
.author-page .value h4 {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    color: var(--ink);
    line-height: 1.2;
}
.author-page .value p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 880px) {
    .author-page .values-card { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; }
}

/* ── TOPICS ──────────────────────────────────────────────── */
.author-page .ap-topics { padding: 48px 0 24px; }
.author-page .topics-head { margin-bottom: 28px; max-width: 780px; }
.author-page .topics-head h2 {
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: var(--ink);
    line-height: 1.15;
}
.author-page .topics-head p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 10px;
}
.author-page .topics-head p:last-child { margin-bottom: 0; }

.author-page .topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.author-page .topic-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: all .25s ease;
}
.author-page .topic-card:hover {
    border-color: var(--blue-soft);
    box-shadow: 0 14px 30px -18px rgba(37, 99, 235, .25);
    transform: translateY(-2px);
}
.author-page .topic-card .ic {
    width: 38px;
    height: 38px;
    color: var(--blue);
    margin-bottom: 18px;
}
.author-page .topic-card .ic svg { width: 38px; height: 38px; }
.author-page .topic-card h3 {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    color: var(--ink);
    line-height: 1.2;
}
.author-page .topic-card ul { list-style: none; margin: 0; padding: 0; }
.author-page .topic-card li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-2);
    padding: 5px 0 5px 14px;
    position: relative;
}
.author-page .topic-card li::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted);
    position: absolute;
    left: 0;
    top: 13px;
}

@media (max-width: 980px) { .author-page .topics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .author-page .topics-grid { grid-template-columns: 1fr; } }

/* ── PUBLICATIONS ────────────────────────────────────────── */
.author-page .ap-publications { padding: 48px 0 24px; }
.author-page .pubs-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 40px 44px;
}
.author-page .pubs-card h2 {
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin: 0 0 24px;
    color: var(--ink);
}
.author-page .pub-list { list-style: none; margin: 0; padding: 0; }
.author-page .pub-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-soft);
}
.author-page .pub-item:last-child { border-bottom: none; }
.author-page .pub-date {
    flex-shrink: 0;
    background: var(--bg-card-2);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
}
.author-page .pub-link {
    font-size: 15.5px;
    color: var(--ink-2);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
    transition: color .2s, text-decoration-color .2s;
}
.author-page .pub-link:hover {
    color: var(--blue);
    text-decoration-color: var(--blue);
}
.author-page .pub-empty {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}
.author-page .pubs-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
    text-align: right;
}
.author-page .pubs-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    transition: gap .2s;
}
.author-page .pubs-all:hover { gap: 12px; }

@media (max-width: 640px) {
    .author-page .pubs-card { padding: 28px 22px; }
    .author-page .pubs-card h2 { font-size: 20px; }
    .author-page .pub-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 0; }
}

/* ── SUBSCRIBE ───────────────────────────────────────────── */
.author-page .ap-subscribe { padding: 48px 0; }
.author-page .sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.author-page .sub-left {
    background: var(--bg-card-2);
    border-radius: var(--radius);
    padding: 44px 40px;
}
.author-page .sub-left h2 {
    font-weight: 800;
    font-size: clamp(28px, 3.4vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 22px;
    color: var(--ink);
}
.author-page .sub-left p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-2);
    margin: 0 0 14px;
    max-width: 440px;
}
.author-page .sub-bullets {
    list-style: none;
    margin: 24px 0 28px;
    padding: 0;
}
.author-page .sub-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14.5px;
    color: var(--ink-2);
}
.author-page .sub-bullets li svg {
    flex-shrink: 0;
    color: var(--blue);
    width: 18px;
    height: 18px;
}

.author-page .ap-lead-magnet { margin-top: 8px; }

/* ── Checklist (карточка-триггер попапа лид-магнита) ─────── */
.author-page .checklist {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 22px;
    margin-top: 8px;
}
.author-page .checklist-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.author-page .checklist-pdf {
    flex-shrink: 0;
    width: 48px;
    height: 56px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--line);
}
.author-page .checklist-pdf::before {
    content: "PDF";
    font-size: 9px;
    font-weight: 800;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 2px 5px;
    border-radius: 3px;
    position: absolute;
    bottom: 6px;
    line-height: 1;
}
.author-page .checklist-pdf svg {
    width: 22px;
    height: 22px;
    color: var(--blue);
    margin-bottom: 14px;
}
.author-page .checklist-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-2);
}
.author-page .checklist-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* Кнопка primary внутри страницы автора */
.author-page .checklist-cta .btn,
.author-page a.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--blue);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .5);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}
.author-page .checklist-cta .btn:hover,
.author-page a.btn:hover,
.author-page .checklist-cta .btn:focus-visible,
.author-page a.btn:focus-visible {
    background: var(--blue-deep);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
    outline: none;
}
.author-page .checklist-cta .btn svg { color: #fff; }
.author-page .checklist-cta .meta {
    font-size: 13px;
    color: var(--muted);
}

.author-page .sub-right {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 40px 36px;
}
.author-page .sub-right h3 {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 6px;
}
.author-page .sub-right .sub-note {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 24px;
}
.author-page .msg-link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line-soft);
    transition: padding-left .2s ease;
}
.author-page .msg-link:last-child { border-bottom: none; }
.author-page .msg-link:hover { padding-left: 10px; }
.author-page .msg-ic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
}
.author-page .msg-ic svg { width: 22px; height: 22px; }
.author-page .msg-text { flex: 1; }
.author-page .msg-text .name {
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 2px;
}
.author-page .msg-text .desc {
    font-size: 13.5px;
    color: var(--muted);
}
.author-page .msg-arrow {
    color: var(--faded);
    font-size: 18px;
    transition: color .2s;
}
.author-page .msg-link:hover .msg-arrow { color: var(--blue); }

@media (max-width: 880px) {
    .author-page .sub-grid { grid-template-columns: 1fr; }
    .author-page .sub-left  { padding: 32px 24px; }
    .author-page .sub-right { padding: 28px 22px; }
}
