/* =====================================================================
   PROF-COSMETICS — стилі статей блогу (11.2026)
   Працюють і на сайті (blog-details.php: <div class="pc-article">), і всередині CKEditor
   (admin/add.art.php: contentsCss + bodyClass "pc-article") — у редакторі видно те саме, що на сайті.

   Готові блоки (вставляються кнопкою «Шаблони» або списком «Стилі» в редакторі):
     p.pc-lead            — вступний абзац
     div.pc-summary       — «Коротко про головне»
     div.pc-note          — порада косметолога
     div.pc-warn          — важливо / застереження
     div.pc-info          — довідка
     ol.pc-steps          — кроки (великі номери)
     ul.pc-check / pc-cross — список з галочками / хрестиками
     div.pc-columns       — дві колонки (плюси / мінуси)
     table.pc-table       — таблиця порівняння
     div.pc-cta + a.pc-btn — заклик до дії з кнопкою
     div.pc-faq           — питання (h3) і відповіді (p) → FAQ-розмітка для Google
     blockquote.pc-quote  — цитата-акцент
     span.pc-kicker       — дрібна мітка великими літерами
     [products: адреса-1, адреса-2] — картки товарів з актуальною ціною (лише на сайті)
   ===================================================================== */

.pc-article {
    --pa-ink: #1f1d19;
    --pa-text: #33302a;
    --pa-muted: #6f675a;
    --pa-gold: #b28a2e;
    --pa-gold-d: #8a6a1f;
    --pa-gold-l: #ddc98e;
    --pa-cream: #faf6ee;
    --pa-cream-2: #f4ecd8;
    --pa-line: #eadfbf;
    --pa-rose: #b02a67;
    color: var(--pa-text);
    font-size: 17px;
    line-height: 1.75;
    word-wrap: break-word;
    /* системний шрифт: латиниця й кирилиця одним шрифтом (Poppins сайту не має кирилиці — назви брендів «стрибали») */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.pc-article h1, .pc-article h2, .pc-article h3, .pc-article h4, .pcArt__h1, .pcToc, .pcArtAuthor, .pcArtRel, .pcArt__meta, .pcArtProducts__h {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
body.pc-article { max-width: 860px; margin: 20px auto; padding: 0 22px; background: #fff; font-family: "Poppins", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

.pc-article > *:first-child { margin-top: 0; }
.pc-article p { margin: 0 0 18px; font-size: 17px; line-height: 1.75; color: var(--pa-text); }
.pc-article strong, .pc-article b { color: var(--pa-ink); font-weight: 700; }
.pc-article a { color: var(--pa-gold-d); text-decoration: underline; text-decoration-color: rgba(178, 138, 46, .45); text-underline-offset: 3px; font-weight: 600; }
.pc-article a:hover { color: var(--pa-rose); text-decoration-color: currentColor; }

/* заголовки */
.pc-article h2 {
    position: relative; margin: 46px 0 18px !important; padding: 0 0 12px !important;
    font-size: 27px !important; line-height: 1.3 !important; font-weight: 800 !important; color: var(--pa-ink) !important;
    letter-spacing: .1px; text-transform: none !important; scroll-margin-top: 110px;
}
.pc-article h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--pa-gold), var(--pa-gold-l)); }
.pc-article h3 { margin: 30px 0 12px !important; font-size: 21px !important; line-height: 1.35 !important; font-weight: 700 !important; color: var(--pa-ink) !important; text-transform: none !important; scroll-margin-top: 110px; }
.pc-article h4 { margin: 22px 0 8px !important; font-size: 18px !important; font-weight: 700 !important; color: var(--pa-gold-d) !important; text-transform: none !important; }

/* списки */
.pc-article ul, .pc-article ol { margin: 0 0 22px; padding-left: 0; list-style: none; }
.pc-article li { position: relative; margin: 0 0 10px; padding-left: 28px; font-size: 17px; line-height: 1.65; color: var(--pa-text); }
.pc-article li::before { content: none; }
.pc-article ul > li::before { content: ""; position: absolute; left: 7px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--pa-gold); box-shadow: 0 0 0 3px rgba(178, 138, 46, .15); }
.pc-article ol { counter-reset: pa-ol; }
.pc-article ol > li { counter-increment: pa-ol; padding-left: 36px; }
.pc-article ol > li::before { content: counter(pa-ol); position: absolute; left: 0; top: .12em; width: 25px; height: 25px; border-radius: 50%; background: var(--pa-cream-2); color: var(--pa-gold-d); font-size: 13px; font-weight: 800; line-height: 25px; text-align: center; }
.pc-article li > ul, .pc-article li > ol { margin: 10px 0 0; }

/* список з галочками / хрестиками */
.pc-article ul.pc-check > li::before, .pc-article ul.pc-cross > li::before {
    left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; box-shadow: none;
    background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.pc-article ul.pc-check > li::before { background-color: #e7f3e8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.pc-article ul.pc-cross > li::before { background-color: #fbe9ef; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b02a67' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E"); }

/* кроки */
.pc-article ol.pc-steps { counter-reset: pa-step; margin: 8px 0 28px; }
.pc-article ol.pc-steps > li { counter-increment: pa-step; padding: 16px 18px 16px 72px; margin: 0 0 12px; background: #fff; border: 1px solid var(--pa-line); border-radius: 16px; box-shadow: 0 4px 16px rgba(60, 45, 10, .05); }
.pc-article ol.pc-steps > li::before { content: counter(pa-step); left: 16px; top: 16px; width: 40px; height: 40px; line-height: 40px; font-size: 17px; border-radius: 12px; background: linear-gradient(135deg, var(--pa-gold), var(--pa-gold-l)); color: #fff; }
.pc-article ol.pc-steps > li > strong:first-child { display: block; margin-bottom: 2px; font-size: 17.5px; }

/* вступ і мітка */
.pc-article .pc-lead { font-size: 19.5px; line-height: 1.7; color: var(--pa-ink); font-weight: 400; margin-bottom: 24px; }
.pc-article .pc-kicker { display: inline-block; margin: 0 0 8px; font-size: 12px !important; line-height: 1.2 !important; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--pa-gold-d) !important; }
.pc-article mark { background: linear-gradient(transparent 55%, rgba(221, 201, 142, .65) 55%); color: inherit; padding: 0 2px; }

/* інфо-блоки */
.pc-article .pc-note, .pc-article .pc-warn, .pc-article .pc-info, .pc-article .pc-summary {
    position: relative; margin: 26px 0; padding: 20px 22px 6px 66px; border-radius: 18px;
}
.pc-article .pc-note::before, .pc-article .pc-warn::before, .pc-article .pc-info::before, .pc-article .pc-summary::before {
    content: ""; position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 10px;
    background-repeat: no-repeat; background-position: center; background-size: 18px;
}
.pc-article .pc-note { background: var(--pa-cream); border: 1px solid var(--pa-line); }
.pc-article .pc-note::before { background-color: #fff; box-shadow: 0 2px 8px rgba(178, 138, 46, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b28a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.2 1 2V17h6v-.3c0-.8.4-1.5 1-2A7 7 0 0 0 12 2z'/%3E%3C/svg%3E"); }
.pc-article .pc-warn { background: #fdf2f5; border: 1px solid #f2cfdb; }
.pc-article .pc-warn::before { background-color: #fff; box-shadow: 0 2px 8px rgba(176, 42, 103, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b02a67' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3C/svg%3E"); }
.pc-article .pc-info { background: #f3f6f9; border: 1px solid #dde6ee; }
.pc-article .pc-info::before { background-color: #fff; box-shadow: 0 2px 8px rgba(40, 80, 120, .15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23365f86' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5h.01'/%3E%3C/svg%3E"); }
.pc-article .pc-summary { background: linear-gradient(135deg, #fffaf0 0%, #f6ecd2 100%); border: 1px solid var(--pa-gold-l); box-shadow: 0 8px 26px rgba(178, 138, 46, .12); }
.pc-article .pc-summary::before { background-color: var(--pa-gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E"); }
.pc-article .pc-note p, .pc-article .pc-warn p, .pc-article .pc-info p, .pc-article .pc-summary p,
.pc-article .pc-note li, .pc-article .pc-warn li, .pc-article .pc-info li, .pc-article .pc-summary li { font-size: 16px; line-height: 1.65; }
.pc-article .pc-note ul, .pc-article .pc-warn ul, .pc-article .pc-info ul, .pc-article .pc-summary ul { margin-bottom: 14px; }

/* цитата */
.pc-article blockquote {
    position: relative; margin: 30px 0; padding: 22px 26px 8px 66px; border: 0; border-radius: 18px;
    background: #fff; box-shadow: 0 6px 24px rgba(60, 45, 10, .07); border-left: 4px solid var(--pa-gold);
}
.pc-article blockquote::before { content: "“"; position: absolute; left: 18px; top: 2px; font-family: Georgia, serif; font-size: 72px; line-height: 1; color: var(--pa-gold-l); }
.pc-article blockquote p { font-size: 18px; font-style: italic; color: var(--pa-ink); }
.pc-article blockquote.pc-quote { text-align: center; padding: 30px 34px 14px; border-left: 0; background: var(--pa-ink); }
.pc-article blockquote.pc-quote::before { left: 50%; transform: translateX(-50%); top: -10px; color: var(--pa-gold); }
.pc-article blockquote.pc-quote p { color: #f3ead2; font-size: 20px; font-style: normal; font-weight: 600; }

/* таблиці */
.pc-article .pc-table-wrap { margin: 24px 0 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--pa-line); box-shadow: 0 6px 22px rgba(60, 45, 10, .06); }
.pc-article table { width: 100%; border-collapse: collapse; margin: 24px 0 28px; font-size: 15px; line-height: 1.5; background: #fff; }
.pc-article .pc-table-wrap table { margin: 0; }
.pc-article table th, .pc-article table td { padding: 12px 14px; border-bottom: 1px solid #f0e8d2; text-align: left; vertical-align: top; }
.pc-article table th { background: var(--pa-ink); color: #f3ead2; font-weight: 700; font-size: 14px; letter-spacing: .3px; white-space: nowrap; }
.pc-article table tr:nth-child(even) td { background: #fdfaf3; }
.pc-article table tr:last-child td { border-bottom: 0; }
.pc-article table td:first-child { font-weight: 600; color: var(--pa-ink); }
.pc-article table.pc-table { border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--pa-line), 0 6px 22px rgba(60, 45, 10, .06); }
@media (max-width: 767px) { .pc-article table { font-size: 14px; min-width: 560px; } }

/* дві колонки */
.pc-article .pc-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.pc-article .pc-columns > div { padding: 18px 18px 4px; border-radius: 16px; background: #fff; border: 1px solid var(--pa-line); }
@media (max-width: 767px) { .pc-article .pc-columns { grid-template-columns: 1fr; } }

/* заклик до дії */
.pc-article .pc-cta { margin: 34px 0; padding: 26px 26px 10px; border-radius: 20px; text-align: center; color: #f3ead2;
    background: radial-gradient(circle at 10% 10%, rgba(221, 201, 142, .3), transparent 45%), linear-gradient(120deg, #1f1c16, #4a3814); }
.pc-article .pc-cta p { color: #efe6cc; font-size: 17px; }
.pc-article .pc-cta strong { color: #fff; font-size: 19px; }
.pc-article a.pc-btn, .pc-article .pc-btn {
    display: inline-block; padding: 13px 28px; border-radius: 40px; background: var(--pa-gold-l); color: var(--pa-ink) !important;
    font-weight: 800; font-size: 15.5px; text-decoration: none !important; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); transition: transform .15s, background .15s;
}
.pc-article a.pc-btn:hover { background: #f1e2b5; transform: translateY(-2px); color: var(--pa-ink) !important; }

/* FAQ: h3 = питання, p = відповідь */
.pc-article .pc-faq { margin: 18px 0 30px; }
.pc-article .pc-faq h3 { position: relative; margin: 14px 0 0 !important; padding: 16px 18px 6px 52px !important; font-size: 18px !important; background: #fff; border: 1px solid var(--pa-line); border-bottom: 0; border-radius: 16px 16px 0 0; }
.pc-article .pc-faq h3::before { content: "?"; position: absolute; left: 16px; top: 15px; width: 26px; height: 26px; border-radius: 50%; background: var(--pa-cream-2); color: var(--pa-gold-d); font-size: 15px; font-weight: 800; line-height: 26px; text-align: center; }
.pc-article .pc-faq h3 + p { margin: 0 0 4px; padding: 4px 18px 16px 52px; background: #fff; border: 1px solid var(--pa-line); border-top: 0; border-radius: 0 0 16px 16px; font-size: 16px; }

/* зображення */
.pc-article img { max-width: 100%; height: auto; border-radius: 16px; }
.pc-article figure { margin: 26px 0; text-align: center; }
.pc-article figcaption { margin-top: 8px; font-size: 14px; color: var(--pa-muted); }
.pc-article hr { border: 0; height: 1px; margin: 40px auto; background: linear-gradient(90deg, transparent, var(--pa-gold-l), transparent); }

/* =================== лише на сайті (blog-details.php) =================== */
.pcArt { max-width: 860px; }
.pcArt__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 4px 0 22px; font-size: 14px; color: var(--pa-muted, #6f675a); }
.pcArt__meta span { display: inline-flex; align-items: center; gap: 6px; }
.pcArt__meta svg { width: 16px; height: 16px; color: #b28a2e; }
.pcArt__h1 { font-size: 36px !important; line-height: 1.22 !important; font-weight: 800 !important; color: #1f1d19 !important; margin: 18px 0 10px !important; text-transform: none !important; letter-spacing: 0 !important; }
@media (max-width: 767px) { .pcArt__h1 { font-size: 26px !important; } .pc-article { font-size: 16px; } .pc-article p, .pc-article li { font-size: 16px; } .pc-article h2 { font-size: 23px !important; } .pc-article h3 { font-size: 19px !important; } .pc-article .pc-lead { font-size: 17.5px; } }
.pcArt__cover { margin: 0 0 26px; border-radius: 20px; overflow: hidden; aspect-ratio: 1200 / 630; background: #f4ecd8; }
.pcArt__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pcToc { margin: 0 0 30px; padding: 18px 22px 10px; border-radius: 18px; background: #fbf8ef; border: 1px solid #eadfbf; }
.pcToc__t { font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #8a6a1f; margin-bottom: 8px; }
.pcToc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; columns: 2; column-gap: 26px; }
@media (max-width: 767px) { .pcToc ol { columns: 1; } }
.pcToc li { counter-increment: toc; break-inside: avoid; margin: 0 0 8px; padding-left: 26px; position: relative; font-size: 15px; line-height: 1.45; }
.pcToc li::before { content: counter(toc); position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 1px solid #ddc98e; color: #8a6a1f; font-size: 11px; font-weight: 800; line-height: 17px; text-align: center; }
.pcToc a { color: #33302a !important; text-decoration: none !important; }
.pcToc a:hover { color: #b02a67 !important; }

.pcArtProducts { margin: 22px 0 30px; }
.pcArtProducts .row { margin-left: -8px; margin-right: -8px; }
.pcArtProducts [class*="col-"] { padding-left: 8px; padding-right: 8px; }
.pcArtProducts .payne-product { margin-bottom: 16px; }
.pcArtProducts .product__title { font-size: 14px !important; }
.pcArtProducts__h { font-size: 22px !important; font-weight: 800 !important; margin: 40px 0 16px !important; text-transform: none !important; }

.pcArtAuthor { display: flex; gap: 16px; align-items: flex-start; margin: 36px 0 10px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid #eadfbf; }
.pcArtAuthor__ava { flex: 0 0 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #b28a2e, #ddc98e); color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pcArtAuthor p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; color: #4a453b; }
.pcArtAuthor b { color: #1f1d19; }

.pcArtRel { margin: 34px 0 10px; }
.pcArtRel__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 767px) { .pcArtRel__grid { grid-template-columns: 1fr; } }
.pcArtRel a { display: block; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #eadfbf; color: #1f1d19 !important; font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none !important; }
.pcArtRel a:hover { border-color: #b28a2e; box-shadow: 0 8px 20px rgba(0, 0, 0, .06); }
.pcArtRel a span { display: block; margin-top: 6px; font-weight: 400; font-size: 13px; color: #6f675a; }

/* ---- на сайті: перекриваємо старі стилі теми блогу (.content p 15px / Maven Pro, H1 по центру) ---- */
.post-details-body .content .pc-article p,
.post-details-body .content .pc-article li,
.post-details-body .content .pc-article td,
.post-details-body .content .pc-article th { font-family: inherit; }
.post-details-body .content .pc-article p { font-size: 17px; line-height: 1.75; margin: 0 0 18px; }
.post-details-body .content .pc-article .pc-lead { font-size: 19.5px; line-height: 1.7; margin-bottom: 24px; }
.post-details-body .content .pc-article .pc-note p, .post-details-body .content .pc-article .pc-warn p,
.post-details-body .content .pc-article .pc-info p, .post-details-body .content .pc-article .pc-summary p,
.post-details-body .content .pc-article .pc-faq h3 + p { font-size: 16px; line-height: 1.65; }
.post-details-body .content .pc-article .pc-faq h3 + p { margin: 0 0 4px; }
.post-details-body .content .pc-article .pc-cta p { font-size: 17px; }
.post-details-body .content .pc-article blockquote p { font-size: 18px; }
.post-details-body .content .pc-article blockquote.pc-quote p { font-size: 20px; }
.post-details-body .content h1.pcArt__h1 { text-align: left; }
.post-details-body .content .pcArt__meta { justify-content: flex-start; }
@media (max-width: 767px) {
    .post-details-body .content .pc-article p, .post-details-body .content .pc-article li { font-size: 16px; }
    .post-details-body .content .pc-article .pc-lead { font-size: 17.5px; }
}
