/*
 * GreatGuest — общий CSS для блога и SEO-лендингов (/blog/, /registraciya-gostey/,
 * /uchet-gostey/, /programma-loyalnosti/, /qr-check-in/, /crm-dlya-meropriyatiy/,
 * /elektronnye-priglasheniya/). Использует токены из /theme.css (подключается
 * до этого файла). Компоненты .faq-item/.faq-arrow/.faq-a скопированы
 * дословно из index.html, чтобы FAQ выглядел одинаково everywhere.
 */

body { background: var(--bg); }

/* ── Шапка (общая для блога и лендингов) ── */
header.blog-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.blog-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent-strong); }
.blog-nav-right { display: flex; align-items: center; gap: 20px; }
.blog-home-link { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.blog-home-link:hover { color: var(--text); }

/* ── Хлебные крошки ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-strong); }
.breadcrumb span[aria-hidden] { color: var(--border); }
.breadcrumb .current { color: var(--text); }

/* ── Каталог статей (блог) ── */
.blog-hero { padding: 40px 0 32px; }
.blog-hero .eyebrow { margin-bottom: 16px; }
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.12;
  text-wrap: balance;
  margin-bottom: 14px;
}
.blog-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.55;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 8px 0 72px;
}
.post-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
}
.post-card:hover { border-color: var(--accent-strong); transform: translateY(-2px); }
.post-card .post-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
  color: var(--text);
}
.post-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.post-card .post-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── Заголовок статьи / лендинга ── */
.post-header { padding: 28px 0 8px; }
.post-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
  display: block;
}
.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 16px;
  max-width: 760px;
}
.post-meta {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

/* ── Текст статьи / лендинга ── */
article.post-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 0 64px;
  font-size: 17px;
  line-height: 1.75;
}
article.post-body > .container { padding: 0; }
article.post-body.wide { max-width: 860px; }
.post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin: 40px 0 14px;
}
.post-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.post-body p { margin-bottom: 18px; color: var(--text); }
.post-body p.lead {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.post-body ul, .post-body ol { margin: 0 0 20px 22px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { font-weight: 700; }
.post-body a { color: var(--accent-strong); text-decoration: underline; text-decoration-color: var(--border); }
.post-body a:hover { text-decoration-color: var(--accent-strong); }

.post-body blockquote {
  border-left: 3px solid var(--accent-strong);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-size: 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.4;
}

.fact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 22px 24px;
  margin: 28px 0;
}
.fact-box h3 { margin-top: 0; font-size: 16px; }
.fact-box ul { margin-bottom: 0; }

.post-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}
.post-cta h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
}
.post-cta p { color: var(--text-secondary); margin-bottom: 20px; }

.post-body table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.post-body table :is(th, td) { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 15px; }
.post-body table th { font-weight: 700; color: var(--text-secondary); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }

/* ── Процесс из пронумерованных шагов ── */
.process-steps {
  list-style: none;
  margin: 8px 0 32px;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-steps li {
  counter-increment: step;
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.process-steps li:last-child { border-bottom: none; }
.process-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-steps .step-title { font-weight: 700; margin-bottom: 4px; }
.process-steps .step-body { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* ── Сетка "кому подходит" ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 8px 0 32px;
}
.audience-card {
  padding: 20px;
  font-size: 14.5px;
  line-height: 1.55;
}
.audience-card strong { display: block; font-size: 15.5px; margin-bottom: 6px; }

/* ── FAQ — идентично index.html ── */
.faq-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface);
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary:hover { background: var(--bg); }
details.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-arrow {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; color: var(--text-secondary);
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
details.faq-item[open] .faq-arrow { transform: rotate(45deg); background: var(--accent-bg); color: var(--accent-strong); }
.faq-a { padding: 0 22px 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  article.post-body { font-size: 16px; }
  .process-steps li { gap: 14px; }
}
