/* ==========================================================================
   ЮМЕДИА · Blog — shared (topbar + footer)
   Используется в /blog/{slug}/index.html. /blog/index.html подключает только
   foundation.css + свой inline-стиль (topbar внутри страницы).
   ========================================================================== */

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── TOPBAR (зеркало /blog/index.html) ────────────────────────────────────── */
body { background: #ECECEF; margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

.blog-top-bar {
  padding: 18px 20px 0;
}
.blog-top-bar-wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 3vw, 36px);
  background: var(--bg, #fff);
  border: 1px solid var(--border, #E8E8EC);
  border-radius: var(--radius-section, 28px);
  box-shadow: var(--shadow-card, 0 1px 2px rgba(14,14,18,.05), 0 18px 40px -28px rgba(14,14,18,.18));
}
.blog-top-bar .brand-lockup {
  display: inline-flex; align-items: center;
  height: 44px;
}
.blog-top-bar .brand-lockup img {
  height: 38px; width: auto; display: block;
}
.blog-top-bar-right {
  display: inline-flex; align-items: center; gap: 18px;
}
.blog-top-bar .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--ink-2, #2A2A2E);
  transition: color 0.16s ease;
}
.blog-top-bar .back-link:hover { color: var(--brand, #E5106A); }

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.blog-footer {
  margin-top: 56px;
  padding: 48px 20px 36px;
  background: #0D0D0F;
  color: #d4d4d8;
}
.blog-footer-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 36px);
}
.blog-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2a2a2e;
}
.blog-footer-brand {
  display: inline-flex; align-items: center;
  margin-bottom: 14px;
}
.blog-footer-brand img {
  height: 36px; width: auto;
  filter: brightness(0) invert(1);
}
.blog-footer-tag {
  margin: 0;
  font-size: 14.5px;
  color: #a1a1a7;
  line-height: 1.55;
  max-width: 380px;
}
.blog-footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}
.blog-footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 9px;
}
.blog-footer-col a {
  font-size: 14.5px;
  color: #d4d4d8;
  transition: color 0.16s ease;
}
.blog-footer-col a:hover { color: var(--brand, #E5106A); }
.blog-footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #6b6b72;
}
.blog-footer-bottom a { color: #d4d4d8; }
.blog-footer-bottom a:hover { color: var(--brand, #E5106A); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .blog-top-bar { padding: 14px 12px 0; }
  .blog-top-bar-wrap {
    flex-direction: column; align-items: flex-start; gap: 14px;
    padding: 16px 20px;
  }
  .blog-top-bar-right { width: 100%; justify-content: space-between; }
  .blog-top-bar .brand-lockup img { height: 32px; }
  .phone-cta-num .label { display: none; }

  .blog-footer { padding: 40px 14px 24px; margin-top: 40px; }
  .blog-footer-wrap { padding: 0 6px; }
  .blog-footer-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
}
