/* Общая обвязка сайта: шрифт, полоса навигации и подвал.
   Подключается ВСЕМИ страницами. Разметка — в partials/nav.html и
   partials/footer.html, вклеивается скриптом scripts/sync-chrome.py.

   Ширина обвязки (.chrome-w) НЕ зависит от .container страницы: у страницы
   цен контейнер 960px, у остальных 1200px, а шапка и подвал обязаны быть
   одинаковыми везде. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.chrome-w { max-width: 1200px; margin: 0 auto; }

/* ---------- Полоса навигации ---------- */

/* Горизонтальные поля задаёт header, а не .chrome-w: иначе border-box срезал бы
   ширину внутрь и контент встал бы на 24px правее логотипа. */
header {
  background: radial-gradient(ellipse at bottom right, #400000 0%, #111 60%);
  color: #fff;
  padding: 2rem 1.5rem;
}

/* min-height держит полосу одинаковой на всех страницах: на главной строку
   растягивает меню, на остальных страницах меню нет. */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  min-height: 63px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 86px; height: 24px; }

/* Действие справа в полосе (сейчас «Back to Canva» на страницах плагина).
   Высота подобрана так, чтобы не растягивать полосу выше 63px. */
.nav .back {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.4;
  padding: .25rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  transition: background .15s, color .15s;
}
.nav .back:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Подвал ---------- */

footer { background: #111; color: #fff; padding: 2rem 1.5rem; }

.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-in nav { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-in nav a { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 400; }
.footer-in nav a:hover { text-decoration: underline; }
.social { display: flex; align-items: center; gap: 1rem; }
.social a { display: flex; }
.footer-copy { text-align: center; margin-top: 1rem; font-size: 12px; color: #aaa; }
