/* ============================================================
   Блог / статьи — Гостевой дом «Кристина»
   Опирается на переменные из styles.css
   ============================================================ */
.article-main { padding-top: 96px; padding-bottom: 80px; background: var(--cream); }
.article-wrap { max-width: 820px; }

.breadcrumbs {
  font-size: .9rem; color: var(--muted); margin: 8px 0 26px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.breadcrumbs a { color: var(--gold-600); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--muted); }

/* --- Заголовок статьи --- */
.article-head { margin-bottom: 30px; }
.article-head .kicker {
  display: inline-block; font-family: 'Karla', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: .76rem;
  color: var(--gold-600); margin-bottom: 14px;
}
.article-head h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); color: var(--navy-900); margin-bottom: 14px; }
.article-meta { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }

.article-summary {
  background: linear-gradient(135deg, rgba(16,159,173,.10), rgba(52,208,219,.06));
  border: 1px solid rgba(16,159,173,.22); border-left: 4px solid var(--gold-500);
  border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.summary-label {
  display: inline-block; font-weight: 700; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--gold-600); margin-bottom: 6px;
}
.article-summary p { margin: 0; font-size: 1.05rem; color: var(--ink); }

/* --- Тело статьи --- */
.article-body { font-size: 1.06rem; color: var(--ink); }
.article-body h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem); color: var(--navy-900);
  margin: 42px 0 14px; line-height: 1.2;
}
.article-body h3 { font-size: 1.25rem; color: var(--navy-800); margin: 28px 0 10px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 26px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--gold-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--gold-500); }
.article-body strong { color: var(--navy-900); }

.article-body blockquote {
  margin: 24px 0; padding: 16px 22px; background: var(--cream-2);
  border-left: 4px solid var(--gold-400); border-radius: 12px; font-style: italic; color: var(--navy-800);
}

.article-body table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .98rem;
  background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.article-body th, .article-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--cream-2); }
.article-body th { background: var(--navy-900); color: #fff; font-family: 'Karla', sans-serif; font-weight: 700; }
.article-body tr:nth-child(even) td { background: #fafdfd; }
.article-body td:first-child { font-weight: 600; }
.article-body table tr:first-child td strong { color: var(--navy-900); }

/* --- FAQ --- */
.article-faq { margin: 48px 0 10px; }
.article-faq > h2 { font-size: 1.7rem; color: var(--navy-900); margin-bottom: 18px; }
.faq-item {
  background: var(--white); border: 1px solid var(--cream-2); border-radius: 14px;
  margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy-900);
  list-style: none; position: relative; padding-right: 46px; font-size: 1.04rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold-500); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 20px 16px; color: var(--ink); }
.faq-answer p { margin: 0; }

/* --- CTA --- */
.article-cta {
  margin: 48px 0; padding: 30px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff;
  text-align: center; box-shadow: var(--shadow);
}
.article-cta h2 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.article-cta p { color: rgba(255,255,255,.86); margin-bottom: 20px; max-width: 560px; margin-inline: auto; }

/* --- Related --- */
.article-related { margin-top: 50px; }
.article-related > h2 { font-size: 1.6rem; color: var(--navy-900); margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.related-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 20px;
  background: var(--white); border: 1px solid var(--cream-2); border-radius: 14px;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.related-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-600); font-weight: 700; }
.related-title { font-family: 'Playfair Display', serif; font-weight: 600; color: var(--navy-900); font-size: 1.08rem; line-height: 1.25; }

/* --- Индекс блога --- */
.blog-head { text-align: center; max-width: 760px; margin: 8px auto 36px; }
.blog-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--navy-900); margin-bottom: 12px; }
.blog-head .kicker {
  display: inline-block; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; color: var(--gold-600); margin-bottom: 12px;
}
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--cream-2); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.post-card .kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-600); font-weight: 700; }
.post-card h2 { font-size: 1.3rem; color: var(--navy-900); line-height: 1.22; }
.post-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.post-more { color: var(--gold-600); font-weight: 700; font-size: .95rem; }

/* --- Footer legal --- */
.footer-legal p { font-size: .86rem; line-height: 1.5; margin-bottom: 4px; color: rgba(255,255,255,.72); }
.footer-legal strong { color: #fff; }

@media (max-width: 640px) {
  .article-body table { display: block; overflow-x: auto; white-space: nowrap; }
}
