/* Шапка и футер сайта — скопированы с лендинга (landing/index.html), чтобы блог
   совпадал с salesvisor.ru один-в-один. Палитра/токены берутся из blog.css (:root),
   который грузится на тех же страницах. index.html не трогаем (он самодостаточный). */

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ─── Кнопки ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px; border-radius: 7px;
  font-family: var(--mono); font-weight: 600; font-size: 12.5px; line-height: 1;
  letter-spacing: .09em; text-transform: uppercase;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap; text-decoration: none;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--pri { background: var(--blue); color: #fff; }
.btn--pri:hover { background: var(--blue-2); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--ghostd { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghostd:hover { border-color: #fff; transform: translateY(-1px); }
.btn--sm { padding: 11px 16px; font-size: 11px; }

/* ─── Header ─── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(250, 250, 247, .82);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.header.is-scrolled { background: rgba(250, 250, 247, .95); }
.header__in { display: flex; align-items: center; gap: 30px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; }
.logo__mark { height: 30px; flex: none; display: grid; place-items: center; }
.logo__mark img { height: 28px; width: auto; display: block; }
.logo__word {
  font-family: var(--disp); font-weight: 600; font-size: 14.5px; line-height: 1.04;
  letter-spacing: -.01em; color: var(--ink); text-transform: lowercase;
}
.logo__word b { display: block; padding-left: 1.05em; color: var(--blue); font-weight: 600; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a {
  font-family: var(--mono); color: var(--mut); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; transition: color .15s; white-space: nowrap; text-decoration: none;
}
.nav a:hover { color: var(--ink); }
.header__cta { display: flex; gap: 8px; margin-left: 6px; }
.burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s ease, opacity .2s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { display: none; }
.mback { display: none; position: fixed; inset: 0; z-index: 48; background: rgba(16, 17, 20, .32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
body.menu-open { overflow: hidden; }
@keyframes mnavin { from { opacity: 0; transform: translateY(-10px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: none; } }

/* ─── Footer ─── */
.footer { background: var(--night); color: var(--nmut); border-top: 1px solid var(--nline); padding: 54px 0 0; font-size: 13.5px; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.35fr .8fr .85fr; gap: 34px; width: 100%; }
.footer__col > small {
  display: block; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ndim); margin-bottom: 14px;
}
.footer__col a:not(.logo) { display: block; color: var(--nmut); font-size: 13.5px; padding: 4px 0; font-weight: 500; text-decoration: none; }
.footer__col a:not(.logo):hover { color: #fff; }
.footer .logo__word { color: #fff; }
.footer .logo__word b { color: #9fc0ff; }
.footer__brandtxt { color: var(--ndim); font-size: 12.5px; line-height: 1.65; margin-top: 14px; max-width: 340px; }
.footer__legal { margin-top: 26px; font-family: var(--mono); font-size: 10.5px; line-height: 1.8; color: rgba(255, 255, 255, .32); letter-spacing: .02em; }
.footer__giant {
  margin-top: 40px; font-family: var(--disp); font-weight: 700; line-height: .82;
  font-size: clamp(64px, 12.5vw, 178px); letter-spacing: -.045em; color: rgba(255, 255, 255, .06);
  user-select: none; pointer-events: none; text-transform: lowercase; white-space: nowrap;
  transform: translateY(8%);
}

/* ─── Responsive ─── */
.show-xs { display: none; }
@media (max-width: 1080px) {
  .header__cta .btn--ghost { display: none; }
}
@media (max-width: 880px) {
  .nav { display: none; }
  .header__cta { margin-left: auto; }
  .burger { display: block; margin-right: -8px; }
  .mback.open { display: block; animation: fadein .25s ease; }
  .mnav {
    position: fixed; top: 74px; left: 14px; right: 14px; z-index: 49;
    max-height: calc(100dvh - 92px); overflow: auto;
    background: var(--paper); border: 1px solid var(--line-2);
    border-radius: 14px; padding: 10px 10px 14px;
    box-shadow: 0 30px 80px rgba(16, 17, 20, .18);
  }
  .mnav.open { display: block; animation: mnavin .26s ease; }
  .mnav > a {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 12px; border-bottom: 1px solid var(--line);
    font-family: var(--disp); font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none;
    transition: background .15s;
  }
  .mnav > a:last-of-type { border-bottom: 0; }
  .mnav > a:hover, .mnav > a:active { background: rgba(16, 17, 20, .03); }
  .mnav > a > span {
    font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .05em; color: var(--blue);
    font-variant-numeric: tabular-nums;
  }
  .mnav > a > i { margin-left: auto; font-style: normal; color: var(--dim); font-weight: 400; }
  .mnav__btns { display: flex; gap: 10px; margin-top: 12px; padding: 2px; }
  .mnav__btns .btn { flex: 1; justify-content: center; }
  .mnav.open > * { opacity: 0; animation: rise .32s ease forwards; }
  .mnav.open > :nth-child(1) { animation-delay: .02s; }
  .mnav.open > :nth-child(2) { animation-delay: .05s; }
  .mnav.open > :nth-child(3) { animation-delay: .08s; }
  .mnav.open > :nth-child(4) { animation-delay: .11s; }
  .mnav.open > :nth-child(5) { animation-delay: .14s; }
  .mnav.open > :nth-child(6) { animation-delay: .17s; }
  .mnav.open > :nth-child(7) { animation-delay: .21s; }
}
@media (prefers-reduced-motion: reduce) {
  .mnav.open, .mback.open, .mnav.open > * { animation: none; opacity: 1; }
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer__col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .hide-xs { display: none; }
  .show-xs { display: inline; }
  .header__in { gap: 14px; }
  .logo__word { font-size: 13px; }
}
