/* /confidentiality (pages/confidentiality.htm), design «Покупателям»: the title as the catalog's, the buyers' pages as
   a menu on the left, the text in a card. ~31px under the fixed header, as the journal, the promotions and the catalog */

.lfd-doc {
    --ink: #111; --muted: #6f6f6f; --line: #e9e6e1; --gold: #b08d57;
    max-width: 1100px; margin: 0 auto; padding: 168px 16px 72px; color: var(--ink);
    font-family: 'CenturyGothic', Arial, Helvetica, sans-serif;
}
.lfd-doc * { font-size: inherit; box-sizing: border-box; }   /* the theme sets «* { font-size: 20px }» */
.lfd-doc a { color: inherit; text-decoration: none; }
.lfd-doc a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* the title «Центр» */
.lfd-head { display: grid; justify-items: center; gap: 10px; margin: 0 auto 40px; text-align: center; }
.lfd-title { margin: 0; max-width: 760px; font-size: 34px; font-weight: normal; line-height: 1.2; letter-spacing: .02em; }
.lfd-line { width: 40px; height: 1px; margin-top: 6px; background: var(--gold); }

/* the menu and the card */
.lfd-split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1000px; margin: 0 auto; }
.lfd-menu { position: sticky; top: 130px; display: grid; border-left: 1px solid var(--line); }
.lfd-menu__title { margin-bottom: 10px; padding-left: 18px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lfd-menu a { margin-left: -1px; padding: 9px 0 9px 18px; border-left: 2px solid transparent; font-size: 14px; color: var(--muted); transition: color .2s, border-color .2s; }
.lfd-doc .lfd-menu a:hover { color: var(--ink); }
.lfd-doc .lfd-menu a.is-on { border-left-color: var(--gold); color: var(--ink); }
.lfd-card { display: grid; gap: 28px; padding: 40px 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.lfd-text { font-size: 16px; line-height: 1.75; color: #2a2a2a; }
.lfd-text p { margin: 0 0 1.1em; }
.lfd-text p:last-child { margin-bottom: 0; }

/* the texts as typed in the admin (blog posts): a lone <span> line is a subheading, the links underlined in gold,
   the pictures fit the card; the old pages' floating decorations (*_bg_img-N, placed for the old layout) are left out */
.lfd-cover { display: block; width: 100%; height: auto; border-radius: 6px; }
.lfd-text p > span:only-child { display: block; margin-top: .6em; font-size: 19px; color: var(--ink); }
/* the subheadings as real headings (2026-12-02, /delivery): the same look as the lone <span> lines above */
.lfd-text h2 { margin: 1.4em 0 .5em; font-size: 19px; font-weight: normal; line-height: 1.35; letter-spacing: normal; text-transform: none; color: var(--ink); }
.lfd-text h2 { text-decoration: underline 1px var(--gold); text-underline-offset: 8px; text-decoration-skip-ink: none; line-height: 1.6; } /* a gold line under the subheading, as under the page title, the length of its text (2026-12-02) */
.lfd-text h2:first-child { margin-top: 0; }
.lfd-text a { color: var(--ink); border-bottom: 1px solid var(--gold); transition: color .2s; }
.lfd-doc .lfd-text a:hover { color: var(--gold); }
.lfd-text img { display: block; max-width: 100%; height: auto; margin: 8px 0 0; border-radius: 6px; }
.lfd-text img[class*="_bg_img-"] { display: none; }
.lfd-text .blog_img { display: block; width: auto; margin: 1.4em 0 0; }
.lfd-text .delivery-img { margin: 0 0 1.1em; }   /* a plain paragraph, as the rest of the text */

/* tablets: the menu above the card */
@media (max-width: 991px) {
    .lfd-split { grid-template-columns: 1fr; gap: 28px; }
    .lfd-menu { position: static; }
}
/* phones: the menu as chips, wrapped onto the next line (none hidden off the screen) */
@media (max-width: 767px) {
    .lfd-doc { padding: 88px 16px 56px; }
    .lfd-title { font-size: 24px; }
    .lfd-head { margin-bottom: 28px; }
    .lfd-text { font-size: 15px; }
    .lfd-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; border-left: 0; }   /* all the chips in view, on two lines */
    .lfd-menu__title { display: none; }
    .lfd-menu a { flex: none; margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 18px; white-space: nowrap; }
    .lfd-doc .lfd-menu a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
    .lfd-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .lfd-doc * { transition: none !important; }
}

/* «О магазине» (2026-12-02): its text in blocks — the welcome larger, the list with dots, the advantages (the numbered
   list, «Почему покупают у нас») as cards: «<b>title</b> text» each. The blog editor keeps no classes, so the page is
   told by data-page on .lfd-doc (partials/site/buyers-page) */
.lfd-doc[data-page="about"] .lfd-text > p:first-child { font-size: 19px; line-height: 1.5; color: var(--ink); }
.lfd-doc[data-page="about"] .lfd-text ul { margin: 0 0 1.1em; padding-left: 1.2em; list-style: disc; }
.lfd-doc[data-page="about"] .lfd-text ul li { margin: .2em 0; list-style: disc; }
.lfd-doc[data-page="about"] .lfd-text ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: .6em 0 0; padding: 0; list-style: none; counter-reset: lfab; }
.lfd-doc[data-page="about"] .lfd-text ol li {
    position: relative; padding: 16px 16px 16px 50px; border: 1px solid var(--line); border-radius: 10px; background: #faf8f5;
    font-size: 14px; line-height: 1.5; color: #333; list-style: none; counter-increment: lfab;
}
.lfd-doc[data-page="about"] .lfd-text ol li::before {
    content: counter(lfab); position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--ink); color: #fff; font-size: 12px; line-height: 22px; text-align: center;
}
.lfd-doc[data-page="about"] .lfd-text ol b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: normal; color: var(--ink); }
@media (max-width: 767px) { .lfd-doc[data-page="about"] .lfd-text ol { grid-template-columns: 1fr; } }

/* The whole page (title, menu, text) on a white card over the site's grey, as a journal article (article.css),
   2026-12-02. A layer behind the content; the text stays a framed card inside it */
.lfd-doc { position: relative; z-index: 0; padding-top: 188px; }   /* 20px more: a gap between the header and the card */
.lfd-doc::before {
    content: ''; position: absolute; z-index: -1; top: 160px; right: -24px; bottom: 44px; left: -24px;
    border: 1px solid #e9e6e1; border-radius: 12px; background: #fff; pointer-events: none;
}
@media (max-width: 1151px) { .lfd-doc::before { right: 0; left: 0; } }   /* no room beside it: within the page's 16px */
@media (max-width: 767px) {
    .lfd-doc { padding: 100px 20px 56px; }   /* the header is 57px: the card 19px under it */
    .lfd-doc::before { top: 76px; right: 8px; bottom: 32px; left: 8px; }
}
.lfd-card { border: 0; }   /* the text without its own frame: the page's white card frames it (2026-12-02) */
