/* ═══════════════════════════════════════════════════════════
   BLOG.CSS — стили для статей блога
   Подключать вместе с style.css:
   <link rel="stylesheet" href="/style.css">
   <link rel="stylesheet" href="/blog.css">
   ═══════════════════════════════════════════════════════════ */

/* ── Blog Hero ── */
.blog-hero {
  position: relative;
  padding: 72px 24px 48px;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(214,51,108,.07) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.blog-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.blog-category-badge.safety  { background: var(--pink-light);  color: var(--pink); }
.blog-category-badge.tips    { background: var(--green-light); color: var(--green); }
.blog-category-badge.travel  { background: var(--accent-light); color: var(--accent-bright); }

.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--text);
}
.blog-hero h1 em { color: var(--pink); font-style: italic; }

.blog-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.blog-hero-meta .dot { color: var(--border-card); }
.blog-hero-meta strong { color: var(--text); }

.blog-hero-intro {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

/* Hero cover image */
.blog-hero-cover {
  max-width: 860px;
  margin: 32px auto 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, #1a2547 0%, #2c3e6b 50%, #d6336c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* ── Blog Layout ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  align-items: start;
}
.blog-main { min-width: 0; }
.blog-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Article Body ── */
.blog-body {
  font-size: 1.07rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.blog-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  margin: 44px 0 14px;
  padding-top: 8px;
  border-top: 2px solid var(--border);
  line-height: 1.25;
}
.blog-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.blog-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}
.blog-body p { margin-bottom: 18px; }
.blog-body p:last-child { margin-bottom: 0; }
.blog-body strong { color: var(--text); font-weight: 700; }
.blog-body a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.blog-body a:hover { color: var(--navy); }

/* ── Callout boxes ── */
.blog-callout {
  border-radius: 14px;
  padding: 20px 22px;
  margin: 28px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.blog-callout-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.blog-callout-body {}
.blog-callout-title { font-weight: 800; font-size: 1rem; margin-bottom: 5px; }
.blog-callout-text { font-size: .97rem; line-height: 1.6; margin: 0; }

.blog-callout.warning  { background: #fff4f6; border: 1px solid #f2b8c9; }
.blog-callout.warning .blog-callout-title { color: var(--pink); }
.blog-callout.tip      { background: var(--green-light); border: 1px solid #a8dfc0; }
.blog-callout.tip .blog-callout-title { color: var(--green); }
.blog-callout.info     { background: #eef2ff; border: 1px solid #c5cdf5; }
.blog-callout.info .blog-callout-title { color: var(--navy); }
.blog-callout.highlight { background: var(--accent-light); border: 1px solid #f5d4a0; }
.blog-callout.highlight .blog-callout-title { color: var(--accent-bright); }

/* ── Numbered / tip lists ── */
.blog-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.02rem;
  line-height: 1.55;
}
.blog-list-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.blog-list-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ── Stat / highlight strip ── */
.blog-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.blog-stat-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.blog-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.blog-stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ── Red flag / green flag cards ── */
.flag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.flag-card {
  border-radius: 13px;
  padding: 18px 16px;
}
.flag-card.red   { background: #fff4f6; border: 1px solid #f2b8c9; }
.flag-card.green { background: var(--green-light); border: 1px solid #a8dfc0; }
.flag-card-title {
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.flag-card.red .flag-card-title   { color: var(--pink); }
.flag-card.green .flag-card-title { color: var(--green); }
.flag-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.flag-list li {
  font-size: .9rem;
  color: var(--text-mid);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}
.flag-card.red   li::before { content: '✗'; color: var(--pink);  font-weight: 800; flex-shrink: 0; }
.flag-card.green li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }

/* ── Message example ── */
.msg-example {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}
.msg-example-header {
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.msg-example-body {
  padding: 16px;
}
.msg-bubble {
  background: var(--pink-light);
  border: 1px solid #f2b8c9;
  border-radius: 0 14px 14px 14px;
  padding: 14px 16px;
  font-size: .97rem;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 90%;
  margin-bottom: 8px;
  font-style: italic;
}
.msg-note {
  font-size: .84rem;
  color: var(--text-muted);
  padding: 0 4px;
}
.msg-note strong { color: var(--green); }

/* ── Checklist ── */
.blog-checklist {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 24px 22px;
  margin: 28px 0;
}
.blog-checklist-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-checklist-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-checklist-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .98rem;
  line-height: 1.5;
}
.blog-checklist-list li::before {
  content: '☐';
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── CTA Box (in-article) ── */
.blog-cta-box {
  background: linear-gradient(135deg, #1a2547, #2c3e6b);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin: 40px 0;
  color: #fff;
}
.blog-cta-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: #fff;
}
.blog-cta-box h3 em { color: #ff8fb5; font-style: italic; }
.blog-cta-box p {
  font-size: .97rem;
  color: rgba(255,255,255,.7);
  margin: 0 auto 18px;
  max-width: 420px;
  line-height: 1.55;
}
.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 32px;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  font-size: .97rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 4px 18px rgba(214,51,108,.35);
  transition: transform .2s, box-shadow .2s;
}
.blog-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 24px rgba(214,51,108,.45); }

/* ── Related Articles (bottom) ── */
.blog-related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}
.blog-related-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.blog-related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px 14px;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.blog-related-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.blog-related-emoji {
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blog-related-card:nth-child(2) .blog-related-emoji { background: var(--accent-light); }
.blog-related-body {}
.blog-related-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--pink); margin-bottom: 3px; }
.blog-related-card:nth-child(2) .blog-related-tag { color: var(--accent-bright); }
.blog-related-card-title { font-size: .9rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.blog-related-card:hover .blog-related-card-title { color: var(--pink); }

/* ── Sidebar TOC ── */
.blog-toc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.blog-toc-header {
  background: var(--navy);
  color: #fff;
  padding: 13px 16px;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.blog-toc-list {
  list-style: none;
  padding: 12px 0;
  margin: 0;
}
.blog-toc-list li { }
.blog-toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 16px;
  font-size: .88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .15s, color .15s;
  line-height: 1.35;
}
.blog-toc-list a:hover { background: var(--bg); color: var(--navy); }
.blog-toc-list .toc-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--pink-light);
  color: var(--pink);
  font-size: .68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ── Author box ── */
.blog-author {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 40px;
  margin-bottom: 32px;
}
.blog-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.blog-author-name { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.blog-author-role { font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.blog-author-bio { font-size: .9rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ── MOBILE ── */
@media (max-width: 1024px) {
  .blog-layout { display: block; padding: 32px 16px 56px; }
  .blog-sidebar { display: none; }
  .blog-hero { padding: 48px 16px 32px; }
  .blog-hero-intro { font-size: 1.05rem; }
  .blog-stat-strip { grid-template-columns: repeat(3, 1fr); }
  .flag-grid { grid-template-columns: 1fr; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-body h2 { font-size: 1.3rem; }
  .blog-checklist { padding: 18px 14px; }
}

@media (max-width: 480px) {
  .blog-stat-strip { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 1.7rem; }
}
