/* Сгенерировано scripts/make-site-header-css.mjs из assets/styles.css и assets/touch.css: правила шапки syntha.pro. Не править руками. */
:root{
  --bg:#faf9f7; --panel:#fffefc; --ink:#17171a; --muted:#6c6a66;
  --line:#e4e0da; --accent:#a8492b; --accent-soft:#f3e7e1;
  --shadow:0 1px 2px rgba(23,23,26,.05), 0 12px 32px rgba(23,23,26,.06);
  --r-s:8px; --r-m:12px; --r-l:16px; --radius:var(--r-l); --maxw:1040px;
  --serif:ui-serif,"Iowan Old Style",Georgia,"Times New Roman",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]){
    --bg:#0e0e10; --panel:#161618; --ink:#f0eee9; --muted:#9b9791;
    --line:#2a2a2e; --accent:#e0805f; --accent-soft:#2a1e19;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"]{
  --bg:#0e0e10; --panel:#161618; --ink:#f0eee9; --muted:#9b9791;
  --line:#2a2a2e; --accent:#e0805f; --accent-soft:#2a1e19;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.45);
}
html[data-text-size="lg"] header.topbar,html[data-text-size="lg"] main,
html[data-text-size="lg"] .modal-body,html[data-text-size="lg"] .photo-modal img,html[data-text-size="lg"] .photo-modal video{zoom:1.15}
html[data-text-size="xl"] header.topbar,html[data-text-size="xl"] main,
html[data-text-size="xl"] .modal-body,html[data-text-size="xl"] .photo-modal img,html[data-text-size="xl"] .photo-modal video{zoom:1.3}
@media (min-width:1024px){
html[data-text-size="xl"]{--maxw:calc(100vw - 64px)}
html[data-text-size="lg"]{--maxw:1320px}
}
.topbar{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; gap:16px;
  padding:12px 16px; padding-top:max(12px,env(safe-area-inset-top));
  background:color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
}
.topbar::after{
  /* мягкая растушёвка под шапкой — без неё заголовок, уходя под полупрозрачный
     блюр, на границе на миг остаётся резким сгустком текста */
  content:''; position:absolute; left:0; right:0; top:100%; height:18px;
  background:linear-gradient(to bottom, color-mix(in srgb, var(--bg) 55%, transparent), transparent);
  pointer-events:none;
}
.nav{display:none; gap:24px; margin-right:auto}
.burger{
  width:40px; height:36px; border:1px solid var(--line); border-radius:var(--r-m);
  background:var(--panel); cursor:pointer; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:5px; padding:0; flex:0 0 auto;
}
.burger span{display:block; width:17px; height:1.6px; background:var(--ink); border-radius:2px; transition:transform .2s ease, opacity .2s ease}
.burger[aria-expanded="true"] span:first-child{transform:translateY(3.3px) rotate(45deg)}
.burger[aria-expanded="true"] span:last-child{transform:translateY(-3.3px) rotate(-45deg)}
.nav a{color:var(--muted); text-decoration:none; font-size:14px}
.nav a:hover{color:var(--ink)}
.switches{display:flex; align-items:center; gap:8px; margin-left:auto; flex:0 0 auto}
.lang,.theme{
  border:1px solid var(--line); background:var(--panel); color:var(--ink);
  border-radius:999px; height:32px; cursor:pointer; font-size:12px; letter-spacing:.08em;
  display:inline-flex; align-items:center; justify-content:center;
}
.lang{width:48px}
.theme{width:32px}
.lang:hover,.theme:hover{border-color:var(--ink)}
.lang,.theme,.modal-close,.modal-icon-btn,.to-top,.photo-nav,.post-share,
.shot-expand,#photo-zoom{
  transition:transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.lang:hover,.theme:hover,.modal-close:hover,.modal-icon-btn:hover,.to-top:hover,
.photo-nav:hover,.post-share:hover,.shot-expand:hover{
  transform:scale(1.08);
}
.lang:active,.theme:active,.modal-close:active,.modal-icon-btn:active,.to-top:active,
.photo-nav:active,.post-share:active,.shot-expand:active{
  transform:scale(.96); background:var(--accent-soft); border-color:var(--accent); color:var(--accent);
}
.lang:focus-visible,.theme:focus-visible,.modal-close:focus-visible,.modal-icon-btn:focus-visible,
.to-top:focus-visible,.photo-nav:focus-visible,.post-share:focus-visible,
.shot-expand:focus-visible,#photo-zoom:focus-visible{
  outline:2px solid var(--accent); outline-offset:2px;
}
.lang:focus:not(:focus-visible),.theme:focus:not(:focus-visible),.modal-close:focus:not(:focus-visible),
.modal-icon-btn:focus:not(:focus-visible),.to-top:focus:not(:focus-visible),
.photo-nav:focus:not(:focus-visible),.post-share:focus:not(:focus-visible),
.shot-expand:focus:not(:focus-visible){
  outline:none;
}
@media (max-width:759px), (max-width:873px) and (min-width:760px), (max-width:987px) and (min-width:760px){
.nav.open{
    display:flex; flex-direction:column; gap:0; position:absolute;
    left:0; right:0; top:100%; background:var(--panel);
    border-bottom:1px solid var(--line); box-shadow:var(--shadow); padding:6px 0;
  }
.nav.open a{padding:13px 16px; font-size:16px; color:var(--ink); border-bottom:1px solid var(--line)}
.nav.open a:last-child{border-bottom:none}
}
@media (min-width:760px){
.nav{display:flex}
.burger{display:none}
}
@media (max-width:873px){
html[data-text-size="lg"] .nav:not(.open){display:none}
html[data-text-size="lg"] .burger{display:flex}
}
@media (max-width:987px){
html[data-text-size="xl"] .nav:not(.open){display:none}
html[data-text-size="xl"] .burger{display:flex}
}
@media (min-width:1024px){
html[data-text-size="xl"] .summary-list li,
  html[data-text-size="xl"] .doc-block p,
  html[data-text-size="xl"] .doc-note,
  html[data-text-size="xl"] .case p,
  html[data-text-size="xl"] .faq dd{max-width:none}
}
@media (max-width:759px){
.topbar{background:var(--bg); backdrop-filter:none; -webkit-backdrop-filter:none}
.topbar::after{display:none}
}
.nav:not(.open){display:none !important}
.burger{display:flex !important}
.nav.open{
  display:flex; flex-direction:column; gap:0; position:absolute; left:0; right:0; top:100%;
  background:var(--panel); border-bottom:1px solid var(--line); box-shadow:var(--shadow); padding:6px 0;
}
.nav.open a{padding:13px 16px; font-size:16px; color:var(--ink); border-bottom:1px solid var(--line); text-decoration:none}
.nav.open a:last-child{border-bottom:none}
@media (min-width:760px){
.nav.open{left:16px; right:auto; width:min(340px,92vw); top:calc(100% + 6px); border:1px solid var(--line); border-radius:var(--r-l); padding:6px 0}
.nav.open a{padding:11px 18px}
}
.burger{border-radius:999px}
:root[data-theme="dark"] .seeking{color:var(--muted)}
@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]) .seeking{color:var(--muted)}
}
:root[data-theme="dark"] .cta-fab{background:var(--panel); color:var(--ink); border:1px solid var(--ink)}
@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]) .cta-fab{background:var(--panel); color:var(--ink); border:1px solid var(--ink)}
}
.top-news + .switches{margin-left:0}
.lang,.theme,.burger,.modal-close,.modal-icon-btn,.photo-nav,.to-top,.post-share,.qr-trigger{min-width:var(--hit);min-height:var(--hit)}
.lang,.theme{box-sizing:border-box}
@media (min-width:1025px){
.nav a{display:inline-flex;align-items:center;min-height:var(--hit)}
}
@media (min-width:1100px){
html[data-text-size="xl"] .doc-block p,
  html[data-text-size="xl"] .doc-note,
  html[data-text-size="xl"] .case p,
  html[data-text-size="xl"] .faq dd{max-width:96ch}
}
.site-switch{display:flex;align-items:center;gap:0;margin:0 auto;padding:0 4px}
.site-switch a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:var(--muted);text-decoration:none;border-bottom:2px solid transparent}
.site-switch a:hover{color:var(--ink)}
.site-switch a[aria-current="page"]{color:var(--ink);border-bottom-color:var(--accent)}
.site-switch .sw-ico{display:block}
.site-switch .sw-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (min-width:900px){
.site-switch{gap:2px;padding:0 12px}
.site-switch a{padding:0 14px;font-size:15px}
.site-switch a[aria-current="page"]{font-weight:500}
.site-switch a{gap:8px}
.site-switch .sw-ico{width:18px;height:18px}
.site-switch .sw-t{position:static;width:auto;height:auto;overflow:visible;clip:auto}
}
@media (max-width:430px){
.topbar{padding-left:12px;padding-right:8px}
.site-switch{padding:0}
.brand-word{font-size:17px}
.brand-tag{font-size:10px;letter-spacing:.06em}
.site-switch a{min-width:44px}
}
.profile-lang,.lang,.theme,.burger,.hs-dot{min-width:var(--hit);min-height:var(--hit);display:inline-flex;align-items:center;justify-content:center}
.nav a[aria-current="page"]{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:7px}
@media (min-width:1700px){
html[data-text-size="xl"]{--maxw:1560px}
}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/source-serif-4-600-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+2000-206F,U+20AC}
:root{--brand:#14283f}
html[data-theme="dark"]{--brand:#9fb8d8}
.brand-mark{display:flex;align-items:center;gap:12px;margin-left:auto;padding-left:10px;text-decoration:none;flex:0 0 auto;line-height:1;color:var(--brand)}
.brand-word{font:600 26px/1 "Source Serif 4",Georgia,"Times New Roman",serif;letter-spacing:-.01em;color:var(--brand)}
.brand-word i{font-style:normal;font-weight:600;opacity:.62}
.brand-vr{width:1px;align-self:stretch;min-height:22px;background:var(--brand);opacity:.45}
.brand-tag{font:500 11px/1.25 -apple-system,"Helvetica Neue",Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
@media (max-width:759px){
.brand-vr,.brand-tag{display:none}
.brand-word{font-size:23px}
}
.top-news + .switches{margin-left:0}
.nav ~ .switches{margin-left:0}
.brand-mark{padding-right:2px}
@media (max-width:759px){
.brand-mark{flex-direction:column;align-items:flex-end;gap:4px}
.brand-mark .brand-vr{display:block;width:100%;height:1px;min-height:0;align-self:stretch}
.brand-mark .brand-tag{display:block;font-size:10px;letter-spacing:.02em;line-height:1;white-space:nowrap}
.brand-mark{padding-left:4px;min-width:0}
.brand-mark .brand-word{font-size:21px}
header.topbar .switches{gap:6px}
header.topbar .lang{width:40px}
}
@media (max-width:399px){
.brand-mark .brand-tag{letter-spacing:0;font-size:9.5px}
.brand-mark .brand-word{font-size:20px}
}
@media (max-width:759px){
html[data-text-size="xl"] header.topbar,html[data-text-size="xl"] main,html[data-text-size="xl"] .modal-body,
  html[data-text-size="xl"] .photo-modal img,html[data-text-size="xl"] .photo-modal video,
  html[data-text-size="lg"] header.topbar,html[data-text-size="lg"] main,html[data-text-size="lg"] .modal-body,
  html[data-text-size="lg"] .photo-modal img,html[data-text-size="lg"] .photo-modal video{zoom:1!important}
}
@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]){--brand:#9fb8d8}
}
@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]) .btn:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .lang:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .theme:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .burger:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .modal-close:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .modal-icon-btn:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .to-top:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .post-share:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .qr-trigger:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .season-chip:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .inv-chip:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .persona-chip:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .news-filter:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .hs-btn:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .role-pick button:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) #news-filter-select:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) #persona-select:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .file-btn:not(:hover):not(:focus-visible):not(:disabled),:root:not([data-theme="light"]) .opt:not(:hover):not(:focus-visible):not(:disabled){border-color:#6b6972!important}
}
:root[data-theme="dark"] .btn:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .lang:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .theme:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .burger:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .modal-close:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .modal-icon-btn:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .to-top:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .post-share:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .qr-trigger:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .season-chip:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .inv-chip:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .persona-chip:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .news-filter:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .hs-btn:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .role-pick button:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] #news-filter-select:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] #persona-select:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .file-btn:not(:hover):not(:focus-visible):not(:disabled),:root[data-theme="dark"] .opt:not(:hover):not(:focus-visible):not(:disabled){border-color:#6b6972!important}
@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]) .wg-tab:hover,:root:not([data-theme="light"]) .wg-tab:focus-visible,:root:not([data-theme="light"]) .wg-step:hover,:root:not([data-theme="light"]) .wg-step:focus-visible{border-color:var(--ink)!important}
}
:root[data-theme="dark"] .wg-tab:hover,:root[data-theme="dark"] .wg-tab:focus-visible,:root[data-theme="dark"] .wg-step:hover,:root[data-theme="dark"] .wg-step:focus-visible{border-color:var(--ink)!important}
@media (max-width:759px){
.theme.text-size,#text-size{display:none!important}
}
@media (max-width:759px){
#text-size-toggle{display:none!important}
}
.nav a.nav-lab{display:inline-flex;align-items:center;gap:7px}
.nav a.nav-lab .lab-ico{flex:none;color:var(--accent)}
@media (max-width:759px){
.brand-mark .brand-tag{font-size:11px;letter-spacing:.04em}
}
@media (max-width:480px){
.brand-mark .brand-vr,.brand-mark .brand-tag{display:none}
.brand-mark{padding-left:2px}
.brand-mark .brand-word{font-size:17px}
header.topbar .switches{gap:4px}
}
@media (max-width:399px){
.brand-mark .brand-word{font-size:15px}
}
.brand-mark{min-height:var(--hit)}

/* размер цели касания: на syntha.pro задан в styles.css/touch.css, а каталог и Lab их не подключают (без него кнопки языка и темы были 32px) */
:root{--hit:44px}
/* текущий раздел в меню (каталог проектов, Lab) */
.nav a[aria-current="page"]{color:var(--ink)}
/* узкий телефон: промежутки шапки как на syntha.pro, иначе логотип вылезает за край на 375px */
@media (max-width:480px){header.topbar{gap:4px;padding-left:12px;padding-right:max(12px,env(safe-area-inset-right))}}
@media (max-width:399px){header.topbar{gap:3px;padding-left:8px;padding-right:max(8px,env(safe-area-inset-right))}.brand-mark .brand-word{font-size:15px}}
