/**
 * Заметки (выдержки из статей) — витрина FAQ + /pages/notes.html
 * Визуальный язык близок к .designer-maintenance-gate__quote*
 */

.site-note {
    --sn-ink: #1a1f26;
    --sn-muted: #5c6570;
    --sn-rule: #d8dde3;
    --sn-navy: #2c3e50;
    --sn-mark: #8b1e1e;
    position: relative;
    margin: 0;
    padding: 1.1rem 0.75rem 1.05rem 0.75rem;
    border-bottom: 1px solid var(--sn-rule);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.55) 0%, transparent 100%);
}

.site-note__index {
    position: absolute;
    top: 0.75rem;
    right: 0.25rem;
    font-family: "Roboto Condensed", "Roboto", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--sn-muted);
}

.site-note__body {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.site-note__mark {
    flex: 0 0 auto;
    margin-top: 0.05rem;
    font-family: "Montserrat", "Roboto", sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 0.9;
    color: var(--sn-mark);
    opacity: 0.9;
    pointer-events: none;
    user-select: none;
}

.site-note__content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.15rem 0 0 0.75rem;
    border-left: 3px solid var(--sn-mark);
}

.site-note blockquote {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--sn-ink);
}

.site-note blockquote p {
    margin: 0;
}

.site-note figcaption {
    margin-top: 0.55rem;
    font-family: "Roboto Condensed", "Roboto", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--sn-muted);
}

.site-note figcaption a {
    color: var(--sn-navy);
    text-decoration: none;
    border-bottom: 1px solid rgba(44, 62, 80, 0.35);
}

.site-note figcaption a:hover {
    color: var(--sn-mark);
    border-bottom-color: var(--sn-mark);
}

.site-notes-empty {
    margin: 0;
    padding: 0.75rem 0;
    color: var(--sn-muted, #5c6570);
    font-size: 0.92rem;
}

/* —— FAQ split (главная) —— */
body.landing-scroll #faq .faq-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
}

body.landing-scroll #faq .faq-split__main .section-title {
    margin-bottom: 1.1rem;
}

body.landing-scroll #faq .faq-split__main .faq-list {
    max-width: none;
    margin: 0;
}

body.landing-scroll #faq .faq-notes {
    margin: 0;
    padding: 0;
    min-width: 0;
}

body.landing-scroll #faq .faq-notes__head {
    margin: 0 0 0.85rem;
}

body.landing-scroll #faq .faq-notes__title {
    margin: 0 0 0.35rem;
    font-family: "Montserrat", "Roboto", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--landing-ink, #1a1f26);
    letter-spacing: -0.01em;
}

body.landing-scroll #faq .faq-notes__dek {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--landing-muted, #5c6570);
}

body.landing-scroll #faq .faq-notes__list {
    border-top: 1px solid var(--landing-line, #d8dde3);
    opacity: 1;
    transition: opacity 0.18s ease;
}

body.landing-scroll #faq .faq-notes__list.is-fading {
    opacity: 0;
}

body.landing-scroll #faq .faq-notes__list .site-note:last-child {
    border-bottom: none;
}

body.landing-scroll #faq .faq-notes__all {
    display: inline-block;
    margin-top: 0.85rem;
    font-family: "Roboto Condensed", "Roboto", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--landing-ink, #2c3e50);
    text-decoration: none;
    border-bottom: 1px solid rgba(44, 62, 80, 0.4);
}

body.landing-scroll #faq .faq-notes__all:hover {
    color: #8b1e1e;
    border-bottom-color: #8b1e1e;
}

@media (min-width: 992px) {
    body.landing-scroll #faq .faq-split {
        grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.72fr);
        gap: 2rem 2.25rem;
    }

    body.landing-scroll #faq .faq-notes {
        position: sticky;
        top: calc(var(--site-header-h, 72px) + 1rem);
    }

    body.landing-scroll #faq .faq-notes__list .site-note {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    body.landing-scroll #faq .faq-notes__list .site-note blockquote {
        font-size: 0.9rem;
    }
}

/* —— Полная страница заметок —— */
.notes-page .notes-pool {
    max-width: 860px;
    margin: 0 auto;
    border-top: 1px solid #d8dde3;
}

.notes-page .notes-pool .site-note:nth-child(odd) {
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.7) 0%, transparent 100%);
}

.notes-page .notes-pool-meta {
    max-width: 860px;
    margin: 0 auto 1.25rem;
    font-size: 0.92rem;
    color: #5c6570;
}

.notes-page .notes-anti-dupe {
    max-width: 860px;
    margin: 0.5rem auto 0;
    font-size: 0.88rem;
    color: #5c6570;
}

@media (min-width: 800px) {
    .notes-page .notes-pool {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 0;
    }

    .notes-page .notes-pool .site-note:nth-child(odd) {
        border-right: 1px solid #d8dde3;
        padding-right: 1.35rem;
    }

    .notes-page .notes-pool .site-note:nth-child(even) {
        padding-left: 1.35rem;
    }

    .notes-page .notes-pool .site-note:nth-child(-n + 2) {
        border-top: 1px solid #d8dde3;
    }
}
