/* Canon chrome — шапка, футер, колонка.
   Цвета не хардкодить: только var() из tokens.css.
*/
body.skin-canon,
body.skin-myau.skin-canon {
  font-family: var(--font);
  color: var(--txt);
  background: var(--bg);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
body.skin-canon,
body.skin-canon button,
body.skin-canon input,
body.skin-canon select,
body.skin-canon textarea {
  font-family: var(--font);
}
body.skin-canon .page-main,
body.skin-canon .tool-frame {
  font-family: var(--font);
}
body.skin-canon .page-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 20px;
}

/* Марка: Чек + синий Рунет, как в макете. CTA не красим в синий. */
body.skin-canon .brand strong {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.03em;
  text-transform: uppercase;
  font-size: 15px;
}
body.skin-canon .brand__mark {
  font-style: normal;
  color: var(--hud);
}
body.skin-canon .logo-dot {
  border-radius: 0;
  width: 9px;
  height: 9px;
  background: var(--hud);
}


/* Шапка canon: квадрат, рамка, без пилюль. .brand, .nav-search, .theme-toggle */
header.topbar.top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--txt-mute, #5c574e);
  border-bottom: 2.5px solid var(--line, #0c0c0c);
  background: var(--bg, #ebe4d6);
  backdrop-filter: none;
  padding: 10px 0 12px;
}
header.topbar.top .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
header.topbar.top .brand strong {
  color: var(--txt, #0c0c0c);
  font-family: var(--display, inherit);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.logo-dot {
  width: 9px; height: 9px;
  background: var(--hud, #2550ff);
  border-radius: 0;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,80,255,.45); }
  50% { box-shadow: 4px 4px 0 rgba(37,80,255,.2); }
}
.nav-search { flex:1; max-width:440px; margin:0 8px; position:relative; display:flex; align-items:center; }
.nav-search input { width:100%; padding:8px 14px 8px 36px; border-radius:0; border:2.5px solid var(--line,#0c0c0c);
  background:var(--panel,#fffaf2); color:inherit; font-size:14px; outline:none; }
.nav-search input:focus { border-color:var(--hud,#2550ff); box-shadow: 3px 3px 0 var(--line,#0c0c0c); }
.nav-search input:focus-visible { outline: 3px solid var(--hud,#2550ff); outline-offset: 2px; }
.topnav--desktop { display:flex; align-items:stretch; gap:0; border:2.5px solid var(--line,#0c0c0c);
  background:var(--panel,#fffaf2); overflow:hidden; }
.topnav--desktop a { padding:8px 14px; border-radius:0; text-decoration:none; color:inherit;
  font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap;
  border-right:2px solid var(--line,#0c0c0c); }
.topnav--desktop a:last-child { border-right:0; }
.topnav--desktop a:hover { background:var(--soft,#e8edff); color:var(--hud,#2550ff); }
header.topbar.top .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border: 2.5px solid var(--line,#0c0c0c);
  background: var(--panel,#fffaf2);
  border-radius: 0;
  cursor: pointer;
}
header.topbar.top .burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  border-radius: 0;
  border: 2.5px solid var(--line,#0c0c0c);
  background: var(--panel,#fffaf2);
}
header.topbar.top .burger:hover,
header.topbar.top .theme-toggle:hover { background: var(--soft,#e8edff); }
.drawer, .drawer__overlay { display:none; }
@media (max-width:768px) {
  /* логотип не прячем. Поиск — вторая строка шапки, не display:none. */
  .topnav--desktop { display:none; }
  header.topbar.top {
    padding: 10px 0 !important;
    margin: 0 auto !important;
    gap: 8px !important;
    min-height: 48px !important;
    background: var(--bg,#ebe4d6) !important;
    border-bottom: 2.5px solid var(--line,#0c0c0c) !important;
    flex-wrap: wrap !important;
  }
  header.topbar.top .brand { display: inline-flex !important; }
  header.topbar.top .brand strong { display: inline !important; }
  header.topbar.top { flex-wrap: wrap !important; }
  header.topbar.top .nav-search {
    display: flex !important;
    flex: 1 0 100%;
    max-width: none;
    margin: 8px 0 0;
    order: 5;
  }
  header.topbar.top .theme-toggle { display: inline-flex !important; }
  header.topbar.top .burger {
    display: flex !important;
    position: static !important;
    top: auto; right: auto;
    width: 40px; height: 40px;
    box-shadow: none;
    background: var(--panel,#fffaf2);
    z-index: auto;
  }
  .drawer__overlay { display:block; position:fixed; inset:0; background:rgba(12,12,12,.45); z-index:90;
    opacity:0; pointer-events:none; transition:opacity .2s; }
  .drawer { display:flex; flex-direction:column; position:fixed; top:0; right:0; height:100%; width:80%;
    max-width:320px; background:var(--panel,#fffaf2); z-index:100; padding:64px 16px 16px;
    transform:translateX(100%); transition:transform .25s ease;
    border-left: 2.5px solid var(--line,#0c0c0c); box-shadow: none; }
  .drawer a { padding:14px 12px; font-size:16px; border-radius:0; text-decoration:none; color:inherit;
    border-bottom:2px solid var(--line,#0c0c0c); font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
  .drawer a:hover { background:var(--soft,#e8edff); }
  .nav-toggle:checked ~ .drawer { transform:translateX(0); }
  .nav-toggle:checked ~ .drawer__overlay { opacity:1; pointer-events:auto; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-dot { animation: none; }
  .drawer, .drawer__overlay { transition: none; }
}

.footer--v2 { margin-top:48px; padding:32px 20px 24px; border-top:2.5px solid var(--line); }
.footer__cols { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:24px; max-width:1100px; margin:0 auto; }
.footer__h, .footer__col h4 { font-size:14px; margin:0 0 10px; font-weight:600; color:var(--txt); }
.footer__col a { display:block; padding:5px 0; font-size:13px; color:var(--txt-dim); text-decoration:none; }
.footer__col a:hover { color:var(--hud); }
.footer__bottom { max-width:1100px; margin:24px auto 0; padding-top:16px; border-top:1px solid var(--border); }
.footer__bottom p { font-size:12px; color:var(--txt-mute); line-height:1.6; margin:0; }
