/*
 * Спільні стилі для SEO-сторінок і статей блогу «Є привід».
 * Підключається на сторінках-хабах (наприклад, /zaproshennia-na-vesillia/)
 * і на всіх статтях /blog/. Палітра та шрифти — ті самі, що на головній.
 */

/* ===== Палітра бренду ===== */
:root {
  --cocoa: #3A2C25;   /* основний темний: текст, кнопки */
  --cream: #F4EBDD;   /* фон сторінки */
  --champ: #E8D7BD;   /* шампань: другорядні блоки */
  --gold: #B8955F;    /* золото: акценти, маркери */
  --muted: #7A6A5E;   /* приглушений текст */
  --card: #FFF8EF;    /* фон карток */
  --blush: #F3DDD6;   /* м'який рожевий */
}

/* ===== Основа ===== */
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--cocoa); font-family: Manrope, system-ui, sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.kicker { letter-spacing: .2em; font-size: 12px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 4.6vw, 40px); margin: 0 0 16px; }
h3 { font-size: 24px; margin: 0 0 8px; }
p { margin: 0 0 16px; }

/* ===== Кнопки ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--cocoa); color: var(--cream); padding: 14px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; min-height: 44px; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(58,44,37,.22); }
.btn.ghost { background: transparent; color: var(--cocoa); box-shadow: inset 0 0 0 1.5px var(--cocoa); }
.btn.light { background: var(--champ); color: var(--cocoa); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Шапка ===== */
header.top { position: sticky; top: 0; z-index: 30; background: rgba(244,235,221,.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(184,149,95,.25); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 50%; }
.logo span { font-family: 'Playfair Display', serif; font-style: italic; font-size: 22px; }
.bar nav { display: none; gap: 24px; font-size: 14px; }
.bar nav a { text-decoration: none; opacity: .8; }
@media (min-width: 900px) { .bar nav { display: flex; } }
.bar .btn { padding: 10px 20px; font-size: 14px; }

/* ===== Хлібні крихти ===== */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ===== Перший екран сторінки ===== */
.intro { padding: 34px 0 48px; }
.intro .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .intro .wrap { grid-template-columns: 1.1fr 1fr; } }
.intro h1 { font-size: clamp(36px, 6.4vw, 58px); margin: 12px 0 18px; }
.intro .lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 24px; }
.intro .meta { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Віяло з трьох телефонів (картинки прикладів) */
.phones { position: relative; height: 460px; }
.phones .ph { position: absolute; width: 200px; top: 16px; left: 50%; border-radius: 30px; padding: 6px; background: var(--cocoa); box-shadow: 0 24px 46px rgba(58,44,37,.26); }
.phones .ph img { border-radius: 24px; aspect-ratio: 390/844; object-fit: cover; object-position: top; width: 100%; }
.phones .p1 { transform: translateX(-118%) rotate(-7deg) translateY(28px); }
.phones .p2 { transform: translateX(-50%); z-index: 2; }
.phones .p3 { transform: translateX(18%) rotate(7deg) translateY(28px); }
@media (max-width: 520px) { .phones { height: 360px; } .phones .ph { width: 150px; } }

/* ===== Зміст сторінки ===== */
.toc { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; margin: 0 0 8px; }
.toc a { flex: none; font-size: 14px; text-decoration: none; background: var(--card); border: 1px solid rgba(184,149,95,.3); border-radius: 999px; padding: 8px 14px; }

/* ===== Секції ===== */
section.part { padding: 56px 0; scroll-margin-top: 72px; }
section.part.alt { background: var(--champ); }
section.part.dark { background: var(--cocoa); color: var(--cream); }
section.part.dark .muted { color: rgba(244,235,221,.75); }
.muted { color: var(--muted); }

/* Список-чек з золотими маркерами */
ul.check { list-style: none; padding: 0; margin: 0 0 16px; }
ul.check li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid rgba(184,149,95,.22); }
ul.check li::before { content: "✦"; position: absolute; left: 4px; top: 9px; color: var(--gold); }
ul.check li b { display: block; }
ul.check li span { color: var(--muted); font-size: 15px; }

/* Таблиця */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: 20px; padding: 6px 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(184,149,95,.22); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* Картки з текстами запрошень */
.texts { display: grid; gap: 16px; }
@media (min-width: 760px) { .texts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.textcard { background: var(--card); border-radius: 22px; padding: 22px 22px 16px; display: flex; flex-direction: column; }
.textcard .tag { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.textcard blockquote { margin: 0 0 14px; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 18px; line-height: 1.5; white-space: pre-line; flex: 1; }
.copy { align-self: flex-start; border: 1.5px solid var(--cocoa); background: none; color: var(--cocoa); border-radius: 999px; padding: 8px 16px; font: 600 13px Manrope, sans-serif; cursor: pointer; min-height: 40px; }
.copy.done { background: var(--cocoa); color: var(--cream); }

/* Сітка прикладів */
.styles { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .styles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.style { background: var(--card); border-radius: 22px; padding: 18px 14px 16px; text-align: center; text-decoration: none; display: block; }
.style .ph { width: min(170px, 78%); margin: 0 auto 12px; border-radius: 24px; padding: 5px; background: var(--cocoa); transition: transform .3s; }
.style:hover .ph { transform: translateY(-5px) rotate(-1.5deg); }
.style .ph img { border-radius: 19px; width: 100%; aspect-ratio: 390/844; object-fit: cover; object-position: top; }
.style b { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500; font-size: 21px; display: block; }
.style span { color: var(--muted); font-size: 13px; }

/* Цінова плашка */
.pricebox { display: grid; gap: 20px; background: var(--cocoa); color: var(--cream); border-radius: 26px; padding: 28px; }
@media (min-width: 760px) { .pricebox { grid-template-columns: 1fr 1fr; padding: 36px 40px; } }
.pricebox .sum { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(40px, 7vw, 58px); line-height: 1; margin: 8px 0 6px; color: var(--champ); }
.pricebox ul { list-style: none; padding: 0; margin: 0; }
.pricebox li { padding: 6px 0; border-bottom: 1px solid rgba(232,215,189,.18); font-size: 15px; }
.pricebox li::before { content: "✦ "; color: var(--gold); }

/* Питання й відповіді */
.faq details { background: var(--card); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* Фінальний заклик */
.final { text-align: center; padding: 72px 0; background: var(--cocoa); color: var(--cream); }
.final h2 { margin-bottom: 12px; }
.final p { opacity: .8; margin: 0 auto 26px; max-width: 560px; }

/* ===== Стаття блогу ===== */
article.post { padding: 10px 22px 40px; }
article.post h2 { margin-top: 40px; }
article.post ul, article.post ol { padding-left: 22px; }
article.post li { margin-bottom: 6px; }
.note { background: var(--card); border-left: 3px solid var(--gold); border-radius: 0 16px 16px 0; padding: 16px 20px; margin: 20px 0; }

/* ===== Підвал ===== */
footer { background: #2D221C; color: var(--cream); padding: 26px 0; font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; opacity: .85; }
footer a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .style .ph { transition: none; } }
