/* Один компонент навигации для всей фронтальной части. Размеры и палитра
   не зависят от наличия административных стилей на странице кабинета. */
.site-header{box-sizing:border-box;display:block;width:100%;margin:0;padding:16px 0;border:0;border-bottom:1px solid #dce7ee;background:#fff;color:#253747;font:14px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
.site-main{max-width:1480px}
.site-nav-inner{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;max-width:1480px;margin:0 auto;padding:0 20px}
.site-header .brand-logo{display:inline-flex;align-items:center;flex-shrink:0;gap:8px;margin:0;padding:0;font-family:inherit;font-size:20px;font-weight:800;line-height:1.5;letter-spacing:.05em;color:#243e52;text-decoration:none;white-space:nowrap}
.site-header .brand-lightning{width:21px;height:31px;filter:drop-shadow(0 0 4px #ffa43766)}
.site-header nav{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin:0;padding:0}
.site-header nav form{display:flex;margin:0;padding:0}
.site-header nav .btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:8px;width:auto;height:40px;min-height:40px;margin:0;padding:8px 16px;border:1px solid var(--nav-border);border-radius:9px;background:var(--nav-bg);color:var(--nav-color);font:600 13px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;box-shadow:none;cursor:pointer;--nav-bg:#fff;--nav-color:#253747;--nav-border:#dce7ee;--nav-hover-bg:#e9f2f7;--nav-hover-color:#253747;--nav-hover-border:#bcd8e5;--nav-active-bg:#dcecf4;--nav-active-color:#253747;--nav-active-border:#9dc9dc}
.site-header nav .btn-light{--nav-bg:#f5f8fa}
.site-header nav .btn-outline-secondary{--nav-color:#617587;--nav-border:#cddce7}
.site-header nav .btn-primary{--nav-bg:#269fce;--nav-color:#fff;--nav-border:#269fce;--nav-hover-bg:#208bb5;--nav-hover-color:#fff;--nav-hover-border:#208bb5;--nav-active-bg:#19799f;--nav-active-color:#fff;--nav-active-border:#19799f}
.site-header nav .btn:hover{background:var(--nav-hover-bg);color:var(--nav-hover-color);border-color:var(--nav-hover-border)}
.site-header nav .btn:active{background:var(--nav-active-bg);color:var(--nav-active-color);border-color:var(--nav-active-border)}
.site-header nav .btn:focus-visible{outline:3px solid #269fce55;outline-offset:2px;box-shadow:none}
.site-header .nav-icon{display:block;flex-shrink:0;width:20px;height:20px}
@media(max-width:800px){.site-nav-inner{gap:12px;padding-inline:16px}.site-header nav{width:auto;gap:6px;flex-wrap:nowrap}.site-header nav>.btn,.site-header nav form{flex:none}.site-header nav .nav-label{display:none}.site-header nav .btn{width:40px;padding:0}.site-header .brand-logo{font-size:17px}}
@media(max-width:600px){.site-nav-inner{gap:8px}.site-header nav{gap:4px}.site-header nav .btn{width:36px;height:36px;min-height:36px}.site-header .brand-logo{font-size:15px;gap:4px}}

/* Общая геометрия страницы: короткая главная и длинный кабинет не меняют
   доступную ширину окна при появлении вертикальной полосы прокрутки. */
html.site-front{--site-content-width:1480px;--site-inline-padding:20px;scrollbar-gutter:stable}
.site-front .site-main,.site-front .site-nav-inner{box-sizing:border-box;width:100%;max-width:var(--site-content-width);margin-inline:auto;padding-inline:var(--site-inline-padding)}
@media(max-width:800px){html.site-front{--site-inline-padding:16px}}
@supports not (scrollbar-gutter:stable){html.site-front{overflow-y:scroll}}
/* Bootstrap компенсирует скрытую прокрутку padding'ом body. При уже
   зарезервированном gutter повторная компенсация сдвинула бы страницу. */
@supports (scrollbar-gutter:stable){html.site-front body.modal-open{padding-right:0!important}}

/* Публичная шапка: единая ширина на главной и в кабинете. */
.site-header{position:relative;z-index:20;padding:18px 0}
.site-brand-group{display:flex;align-items:center;gap:24px;flex:none}
.site-brand-description{padding-left:22px;border-left:1px solid #d5e3ed;color:#6d8297;font-size:11px;line-height:1.5}
.site-navigation-panel{display:flex;flex:1;align-items:center;justify-content:space-between;gap:25px;min-width:0}
.site-navigation-panel[hidden]{display:none!important}
.site-header .site-section-links{flex-wrap:nowrap;justify-content:flex-start;gap:24px}
.site-section-links a{font-size:13px;font-weight:600;white-space:nowrap;color:#34556f;text-decoration:none}
.site-section-links a:hover{color:#1488ba}
.site-section-links a:focus-visible{outline:2px solid #269fce;outline-offset:6px;border-radius:2px}
.site-header .site-account-links{margin-left:auto;flex-wrap:nowrap}
.site-header .site-account-links .btn{border-radius:24px;padding-inline:18px}
.site-menu-toggle{display:none;width:42px;height:42px;padding:10px;background:white;border:1px solid #ccdfec;border-radius:9px;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#244b67}
.site-menu-toggle span{height:2px;width:20px;background:currentColor;transition:transform .18s,opacity .18s}
.site-menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.site-menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.site-menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.site-menu-toggle:focus-visible{outline:3px solid #269fce77;outline-offset:3px}
@media(max-width:1250px){.site-brand-description{display:none}.site-header .site-section-links{gap:18px}.site-navigation-panel{gap:20px}}
@media(max-width:1000px){.site-header{padding:13px 0}.site-nav-inner{flex-wrap:wrap}.site-menu-toggle:not([hidden]){display:flex;margin-left:auto}.site-navigation-panel{flex:0 0 100%;width:100%;align-items:stretch;flex-direction:column;gap:20px;padding:18px 0 8px;border-top:1px solid #e0eaf1}.site-header .site-section-links{flex-direction:column;align-items:stretch;gap:0;width:100%}.site-section-links a{display:block;padding:11px 2px;font-size:15px;border-bottom:1px solid #edf3f7}.site-header .site-account-links{width:100%;margin:0;justify-content:flex-start;gap:10px;flex-wrap:wrap}.site-header .site-account-links .nav-label{display:inline}.site-header .site-account-links .btn{width:auto;height:42px;min-height:42px;padding:8px 16px}.site-header .brand-logo{font-size:20px;gap:8px}}
@media(max-width:480px){.site-header .brand-logo{font-size:18px}.site-header .site-account-links>a,.site-header .site-account-links>form{flex:1;min-width:0}.site-header .site-account-links .btn{width:100%;padding-inline:10px;font-size:12px}.site-header .site-account-links .nav-icon{width:17px;height:17px}}
@media(prefers-reduced-motion:reduce){.site-menu-toggle span{transition:none}}

/* Объёмный знак профиля в общей шапке фронта. */
.site-header .brand-profile-icon{display:block;flex:0 0 40px;width:40px;height:40px;object-fit:contain}
@media(max-width:480px){.site-header .brand-profile-icon{flex-basis:36px;width:36px;height:36px}}

/* Компактный зазор между знаком и названием. */
.site-header .brand-logo{gap:4px}

/* Размер названия в логотипе для десктопа и мобильной навигации. */
.site-header .brand-logo{font-size:22px}
@media(max-width:1000px){.site-header .brand-logo{font-size:20px}}

/* На десктопе отделяем текстовую навигацию от логотипа. */
@media(min-width:1001px){.site-header .site-section-links{margin-inline-start:28px}}
