*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;color:#173a56;background:linear-gradient(180deg,#e9f5fd 0,#f7fbfe 54%,#fff 100%)}body{font-size:15px}.top{height:88px;border-bottom:1px solid rgba(0,126,196,.1);background:rgba(255,255,255,.55);backdrop-filter:blur(10px)}.top-inner{max-width:1440px;margin:auto;height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.brand{display:flex;align-items:center;gap:16px;text-decoration:none;color:#0788cf}.brand strong{display:block;font-size:20px;font-weight:600;letter-spacing:.1px}.brand small{display:block;margin-top:4px;color:#47718b;font-size:12px}.logo{position:relative;width:55px;height:42px;border:7px solid #0b86c9;border-radius:50%;display:block;transform:rotate(-8deg)}.logo i,.logo b,.logo em{position:absolute;border-radius:50%;width:25px;height:10px;display:block}.logo i{background:#86bd25;left:10px;top:-10px}.logo b{background:#f2c600;right:-12px;top:8px}.logo em{background:#e85249;left:-10px;bottom:-5px}.admin-link{color:#0b83c6;text-decoration:none;font-weight:600;font-size:13px}.shell{max-width:1440px;margin:0 auto;padding:44px 28px 110px}.menu{display:grid;grid-template-columns:repeat(10,1fr);gap:12px;align-items:start}.menu-item{min-width:0;min-height:108px;border-radius:12px;background:rgba(255,255,255,.92);border:1px solid #e3edf3;text-decoration:none;color:#087ebd;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;box-shadow:0 7px 20px rgba(37,104,137,.06);transition:.18s}.menu-item:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(37,104,137,.12)}.menu-item.active{background:#0798dc;color:#fff;border-color:#0798dc;box-shadow:0 10px 26px rgba(0,139,208,.25)}.menu-item>span:last-child{font-size:11px;font-weight:700;text-align:center}.ico{width:40px;height:40px;position:relative;display:block;border:2px solid currentColor;border-radius:9px}.ico:before,.ico:after{content:"";position:absolute;border:2px solid currentColor}.ico-check:after{width:15px;height:8px;border-top:0;border-right:0;transform:rotate(-45deg);left:10px;top:11px}.ico-notice:before{width:18px;height:20px;left:9px;top:7px;border-radius:3px}.ico-doc:before{width:20px;height:24px;left:8px;top:6px;border-radius:2px}.ico-grid{border:0}.ico-grid:before{inset:4px;border-radius:3px;background:linear-gradient(currentColor 0 0) 0 0/9px 9px,linear-gradient(currentColor 0 0) 100% 0/9px 9px,linear-gradient(currentColor 0 0) 0 100%/9px 9px,linear-gradient(currentColor 0 0) 100% 100%/9px 9px;background-repeat:no-repeat;border:0}.ico-calendar:before{inset:7px;border-radius:2px}.ico-users:before{width:11px;height:11px;border-radius:50%;left:12px;top:5px}.ico-users:after{width:25px;height:12px;border-radius:15px 15px 0 0;left:6px;bottom:5px}.ico-camera:before{width:23px;height:15px;left:6px;top:11px;border-radius:4px}.ico-camera:after{width:7px;height:7px;border-radius:50%;left:15px;top:15px}.ico-phone:before{width:10px;height:22px;left:12px;top:7px;border-radius:8px;transform:rotate(-35deg)}.ico-pin:before{width:14px;height:14px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);left:11px;top:6px}.ico-edit:before{width:20px;height:5px;left:8px;top:17px;transform:rotate(-50deg);border-radius:3px}.content-card{margin-top:42px;background:rgba(255,255,255,.92);border:1px solid #e2edf3;border-radius:18px;padding:38px;min-height:410px;box-shadow:0 18px 55px rgba(43,104,133,.08)}.page-head{display:flex;justify-content:space-between;gap:25px;align-items:flex-start;border-bottom:1px solid #e8f0f4;padding-bottom:25px;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#0792d5;margin-bottom:7px}.page-head h1{margin:0;font-size:32px;color:#123e5d}.date-badge{background:#eaf7ff;color:#087fb9;border-radius:9px;padding:10px 14px;font-size:12px;font-weight:700;white-space:nowrap}.prose{font-size:16px;line-height:1.8;color:#3b5c70}.prose h2{color:#123e5d}.doc-list{display:grid;gap:10px}.doc{display:flex;align-items:center;gap:14px;padding:15px;border:1px solid #e3edf2;border-radius:12px;text-decoration:none;color:#173a56}.doc:hover{background:#f6fbfe}.doc-icon{font-size:10px;font-weight:800;color:#fff;background:#e94e52;border-radius:6px;padding:7px}.doc b{display:block}.doc small{display:block;color:#78909e;margin-top:3px}.arrow{margin-left:auto;color:#0788cf;font-size:20px}.gallery{display:flex;flex-direction:column;gap:24px;width:100%}.photo{display:block;width:100%;border-radius:14px;overflow:hidden;background:#fff;text-decoration:none;color:#173a56;border:1px solid #e3edf3;box-shadow:0 8px 24px rgba(37,104,137,.07);cursor:zoom-in}.photo img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;background:#f4f8fa}.photo span{display:block;padding:12px 14px;font-size:13px;line-height:1.4;font-weight:600;background:#fff}.empty{padding:40px;border:1px dashed #c9dce7;border-radius:12px;color:#75909f;text-align:center}footer{position:relative;background:#058fd0;color:#fff;min-height:68px;padding:14px 28px;display:flex;align-items:center;justify-content:space-between;font-size:12px}.home-fab{display:none;text-decoration:none;color:#0788cf;background:#fff;width:42px;height:42px;border-radius:50%;align-items:center;justify-content:center;font-size:25px;font-weight:500;box-shadow:0 4px 16px rgba(0,0,0,.18)}footer strong{background:#fff;color:#087fb9;border-radius:6px;padding:7px 10px}.admin-body{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:30px;background:#edf8fe}.login-card{width:min(460px,100%);background:#fff;padding:35px;border-radius:18px;box-shadow:0 20px 60px #4a7c9518}.login-card h1{margin-top:0}.login-card form{display:grid;gap:16px}.login-card label,.form label{font-size:12px;font-weight:700;color:#426274}.login-card input,.form input,.form textarea,.form select{width:100%;margin-top:7px;padding:12px;border:1px solid #d4e4ec;border-radius:9px;font:inherit;background:#fff}.form textarea{min-height:280px;resize:vertical}.btn{display:inline-flex;justify-content:center;align-items:center;border:0;border-radius:9px;padding:11px 16px;text-decoration:none;cursor:pointer;font-weight:700}.primary{background:#078fd1;color:#fff}.danger{background:#e95757;color:#fff}.flash{padding:12px;border-radius:9px;background:#eaf8f0;color:#26734a;margin-bottom:15px}.admin-wrap{max-width:1250px;margin:auto;padding:25px}.admin-nav{background:#fff;border-radius:14px;padding:13px 18px;display:flex;gap:18px;align-items:center;box-shadow:0 8px 30px #3d758c12;margin-bottom:20px}.admin-nav a{color:#087fb9;text-decoration:none;font-weight:600;font-size:13px}.admin-card{background:#fff;border-radius:14px;padding:25px;box-shadow:0 8px 30px #3d758c12}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:12px;border-bottom:1px solid #edf2f5}.actions{display:flex;gap:7px}.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.muted{color:#77909d;font-size:12px}@media(max-width:1000px){.menu{grid-template-columns:repeat(5,1fr)}}@media(max-width:650px){.top{height:auto}.top-inner{padding:18px}.brand strong{font-size:15px}.shell{padding:20px 14px 145px}.menu{grid-template-columns:repeat(3,1fr);gap:8px}.menu-item{min-height:90px}.content-card{padding:20px;margin-top:25px}.page-head{display:block}.date-badge{display:inline-block;margin-top:15px}.page-head h1{font-size:25px}.gallery{gap:18px}.photo span{padding:11px 13px;font-size:13px}footer{position:fixed;z-index:50;left:0;right:0;bottom:0;min-height:76px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;box-shadow:0 -4px 18px rgba(0,80,120,.16)}footer .footer-text{flex:1;min-width:0;padding-right:4px;font-size:10px;line-height:1.35}footer strong{font-size:10px;white-space:nowrap}footer .home-fab{display:flex;flex:0 0 42px}.row{grid-template-columns:1fr}.admin-wrap{padding:12px}.admin-nav{overflow:auto;white-space:nowrap}}
.site-logo{width:58px;height:58px;object-fit:contain}.event-head{max-width:1440px;margin:0 auto;padding:18px 28px 4px;display:flex;align-items:center;gap:16px}.event-logos{display:flex;gap:6px}.event-logos img{width:56px;height:56px;object-fit:contain;background:#fff;border-radius:8px}.event-title{font-size:13px;font-weight:700;color:#087ebd;text-transform:uppercase}.breadcrumbs{max-width:1440px;margin:0 auto 20px;padding:0 4px;color:#7b95a4;font-size:13px}.breadcrumbs a{color:#0788cf;text-decoration:none}.subpage{background:transparent;padding-top:18px}.subpage h1{font-size:30px;margin:0 0 24px;color:#123e5d}.sub-menu{grid-template-columns:repeat(10,1fr)}.menu-icon-img{width:48px;height:48px;object-fit:contain;border-radius:8px}.error{padding:12px;border-radius:9px;background:#fff0f0;color:#a33;margin-bottom:15px}.icon-edit{display:grid;gap:5px;min-width:150px}.icon-edit input[type=file]{font-size:10px}.logo-settings{display:grid;grid-template-columns:1fr 100px;gap:15px;align-items:center;margin-bottom:18px}.logo-settings img{width:90px;height:70px;object-fit:contain;border:1px solid #e3edf2;border-radius:8px;background:#fff}.admin-card h2{margin-top:0;color:#123e5d}.table select{max-width:180px}@media(max-width:1000px){.sub-menu{grid-template-columns:repeat(5,1fr)}}@media(max-width:650px){.event-head{padding:12px 14px}.event-title{font-size:10px}.sub-menu{grid-template-columns:repeat(3,1fr)}}

/* v4 */
.page-cta{margin:30px 0 0}.cta-button{display:inline-flex;align-items:center;gap:10px;padding:13px 20px;border-radius:11px;background:#078fd1;color:#fff;text-decoration:none;font-weight:800;box-shadow:0 8px 22px rgba(0,139,208,.22)}.cta-button:hover{transform:translateY(-1px);background:#087fb9}.cta-button span{font-size:18px}.home-fab{display:flex}.photo-link-mark{color:#0788cf;font-size:15px}.table-scroll{overflow:auto}.admin-link-box{margin:18px 0;padding:18px;border:1px solid #e1edf3;border-radius:12px;background:#f7fbfd}.admin-link-box h3{margin:0 0 14px;color:#123e5d;font-size:15px}.checkline{display:flex!important;align-items:center;gap:8px}.checkline input{width:auto!important;margin:0!important}.photo-admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.photo-admin{border:1px solid #e1edf3;border-radius:12px;padding:14px;display:grid;gap:10px}.photo-admin img{width:100%;height:180px;object-fit:cover;border-radius:8px;background:#eef6fa}.photo-admin label{font-size:12px;font-weight:700;color:#426274}.photo-admin input[type=text],.photo-admin input[type=url],.photo-admin input:not([type]){width:100%;margin-top:6px;padding:10px;border:1px solid #d4e4ec;border-radius:8px;font:inherit}.actions{display:flex;gap:7px;flex-wrap:wrap}@media(max-width:1000px){.photo-admin-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.photo-admin-grid{grid-template-columns:1fr}.home-fab{display:flex;flex:0 0 42px}.site-footer .home-fab{order:3}.page-cta .cta-button{width:100%;justify-content:center}}


/* v4.1 — redesigned header/footer */
html,body{min-height:100%}
body:not(.admin-body){min-height:100vh;display:flex;flex-direction:column}
.top{height:auto;min-height:112px}
.top-inner{min-height:112px;justify-content:flex-start}
.brand{display:flex;width:100%;align-items:center}
.site-logo{display:block;width:auto;max-width:min(520px,72vw);height:auto;max-height:88px;object-fit:contain;object-position:left center}
.shell{width:100%;flex:1}
.site-footer{margin-top:auto;min-height:92px;padding:12px 28px;display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:20px;background:#058fd0}
.footer-side{min-width:0}.footer-text{font-size:12px;line-height:1.4}.footer-date{display:flex;justify-content:flex-end}.site-footer .home-fab{display:flex;position:static;transform:none;flex:0 0 42px}.footer-logos{display:flex;align-items:center;justify-content:center;gap:18px;min-width:0}.footer-logos img{display:block;width:auto;height:52px;max-width:120px;object-fit:contain;background:#fff;border-radius:7px;padding:3px}.footer-logos:empty{display:none}.site-footer:has(.footer-logos:empty){grid-template-columns:1fr auto auto}
.logo-settings{grid-template-columns:1fr 180px}.main-logo-preview{width:170px!important;height:80px!important;object-fit:contain!important}
.footer-logo-admin-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:15px 0 22px}.footer-logo-admin{border:1px solid #e1edf3;border-radius:12px;padding:12px;display:grid;gap:9px;background:#f9fcfd}.footer-logo-admin strong{font-size:12px;color:#123e5d}.footer-logo-admin img,.logo-placeholder{width:100%;height:72px;object-fit:contain;border:1px solid #e3edf2;border-radius:8px;background:#fff}.logo-placeholder{display:flex;align-items:center;justify-content:center;color:#8aa0ac;font-size:11px}.footer-logo-admin input[type=file]{font-size:10px}.footer-logo-admin .checkline{font-size:10px}
@media(max-width:1000px){.footer-logo-admin-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.top{min-height:88px}.top-inner{min-height:88px;padding:10px 14px}.site-logo{max-width:88vw;max-height:72px}.shell{padding-top:24px;padding-bottom:145px}.site-footer{position:fixed;z-index:50;left:0;right:0;bottom:0;margin:0;min-height:84px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));grid-template-columns:auto 1fr auto auto;gap:8px;box-shadow:0 -4px 18px rgba(0,80,120,.16)}.footer-text{font-size:9px}.footer-date{justify-content:flex-end}.footer-logos{gap:6px;overflow:hidden}.footer-logos img{height:40px;max-width:88px;width:auto;object-fit:contain;display:block;border:0;border-radius:0;padding:0;background:transparent}.site-footer:has(.footer-logos:empty){grid-template-columns:1fr auto auto}.footer-logo-admin-grid{grid-template-columns:1fr}.logo-settings{grid-template-columns:1fr}.main-logo-preview{width:100%!important;height:90px!important}}

/* v5: transparent footer logos without white badges */
.footer-logos{display:flex;align-items:center;gap:14px;min-width:0}
.footer-logos img{height:42px;max-width:100px;width:auto;object-fit:contain;display:block;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none}
@media(max-width:650px){.footer-logos{gap:7px;overflow:hidden}.footer-logos img{height:40px;max-width:70px;flex:0 1 auto}.footer-text{min-width:0}.footer-date{flex:0 0 auto}}

/* v6: WebApp / PWA installation tile */
.pwa-install-item{display:none!important}
.pwa-install-item .ico-install{border:2px solid currentColor;border-radius:9px}
.ico-install:before{content:"";position:absolute;width:16px;height:16px;left:10px;top:6px;border:2px solid currentColor;border-top:0;border-radius:0 0 3px 3px}
.ico-install:after{content:"↓";position:absolute;left:9px;top:5px;font-size:22px;line-height:26px;font-weight:800;border:0}
.pwa-help-overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(10,38,55,.42);backdrop-filter:blur(5px)}
.pwa-help-card{position:relative;width:min(430px,100%);background:#fff;border-radius:22px;padding:28px;box-shadow:0 24px 80px rgba(20,65,90,.28);text-align:center;color:#173a56}
.pwa-help-card h2{margin:10px 0 8px;font-size:22px;color:#123e5d}
.pwa-help-card p{margin:0 0 20px;line-height:1.6;color:#4c6c7e}
.pwa-help-icon{width:76px;height:76px;margin:0 auto;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(0,100,150,.12)}
.pwa-help-icon img{width:100%;height:100%;display:block}
.pwa-help-close{position:absolute;right:12px;top:8px;width:36px;height:36px;border:0;background:transparent;font-size:28px;line-height:36px;color:#78909e;cursor:pointer}
.pwa-help-ok{width:100%}
@media(max-width:650px){
  .pwa-install-item{display:flex!important}
  .pwa-help-card{padding:26px 20px 22px}
}
@media (display-mode: standalone){.pwa-install-item{display:none!important}}

/* v6.1: mobile menu labels must wrap cleanly (including "Установить ярлык") */
.menu-item>span:last-child{min-width:0;width:100%;max-width:100%;padding:0 5px;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.18}
.pwa-install-item>span:last-child{font-size:11px;line-height:1.12}
@media(max-width:650px){
  .menu-item{min-height:104px;padding:10px 5px;gap:8px}
  .menu-item>span:last-child{font-size:11px;line-height:1.15;padding:0 2px}
  .pwa-install-item>span:last-child{font-size:10px;line-height:1.12;max-width:82px}
  .pwa-install-item .ico{flex:0 0 40px}
}

/* v6.2 — configurable application icon + stable mobile install tile */
.app-icon-preview{width:120px!important;height:120px!important;object-fit:contain!important;border:0!important;background:transparent!important}
.pwa-install-item{overflow:hidden}
.pwa-install-item>span:last-child{white-space:normal;overflow-wrap:normal;word-break:normal;text-align:center}
@media(max-width:650px){
  .pwa-install-item{min-height:104px}
  .pwa-install-item>span:last-child{font-size:10px;line-height:1.12;max-width:90px}
}


/* v6.3 visual polish — layout only, no data or routing changes */
.top{height:72px;background:rgba(255,255,255,.72);box-shadow:0 1px 0 rgba(7,143,209,.06)}
.top-inner{padding:0 24px}
.site-logo{width:54px;height:50px}
.shell{padding-top:34px;padding-bottom:96px}
.site-footer{min-height:58px;padding:8px 24px;justify-content:flex-start;gap:18px}
.footer-right{margin-left:auto;display:flex;align-items:center;gap:14px}
.footer-logos{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.footer-logos img{width:auto;height:34px;max-width:76px;object-fit:contain;background:transparent;border:0;border-radius:0;display:block}
.footer-side.footer-date{display:flex;align-items:center}
.footer-side.footer-date strong{font-size:11px;border-radius:9px;padding:8px 11px;white-space:nowrap;box-shadow:0 2px 8px rgba(0,70,110,.08)}
.home-fab{display:flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:42px;height:40px;padding:0 13px;border-radius:12px;color:#0788cf;background:#fff;text-decoration:none;font-size:13px;font-weight:800;box-shadow:0 4px 16px rgba(0,0,0,.12);transition:.18s}
.home-fab span{font-size:27px;line-height:1;margin-top:-2px}
.home-fab b{font-size:11px;font-weight:800}
.home-fab:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(0,0,0,.15)}
@media(max-width:650px){
  .top{height:66px}
  .top-inner{padding:8px 14px}
  .site-logo{width:54px;height:48px}
  .shell{padding:18px 14px 126px}
  .site-footer{left:0;right:0;bottom:0;min-height:70px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));gap:8px;box-shadow:0 -4px 18px rgba(0,80,120,.14)}
  .footer-right{gap:8px}
  .footer-logos{gap:7px}
  .footer-logos img{height:30px;max-width:54px}
  .footer-side.footer-date strong{font-size:9px;padding:7px 8px}
  .home-fab{height:38px;min-width:38px;padding:0 10px;border-radius:11px}
  .home-fab b{display:none}
  .home-fab span{font-size:29px}
}


/* v6.4 — compact header + balanced footer
   UI-only patch. Database, routing, PWA and uploads are untouched. */
.top{height:88px;min-height:88px}
.top-inner{min-height:88px;height:88px;padding:0 24px}
.site-logo{width:auto;height:auto;max-width:min(520px,72vw);max-height:76px;object-fit:contain;object-position:left center}
.site-footer{min-height:64px;height:64px;padding:8px 24px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px}
.footer-right{margin:0;display:contents}
.footer-logos{justify-content:flex-start;gap:12px}
.footer-logos img{height:38px;max-width:92px}
.site-footer .home-fab{grid-column:2;grid-row:1;justify-self:center}
.footer-side.footer-date{grid-column:3;grid-row:1;justify-content:flex-end}

@media(max-width:650px){
  .top{height:76px;min-height:76px}
  .top-inner{height:76px;min-height:76px;padding:7px 14px}
  .site-logo{max-width:88vw;max-height:64px;width:auto;height:auto}
  .shell{padding-top:18px;padding-bottom:92px}
  .site-footer{height:64px;min-height:64px;padding:7px 12px calc(7px + env(safe-area-inset-bottom));display:flex;justify-content:center;align-items:center;gap:0}
  .site-footer .footer-logos,.site-footer .footer-date{display:none}
  .site-footer .home-fab{display:flex;position:static;grid-column:auto;grid-row:auto;justify-self:auto;height:44px;min-width:44px;padding:0 16px;border-radius:14px}
  .site-footer .home-fab span{font-size:31px}
  .site-footer .home-fab b{display:none}
}


/* v6.5 final footer/header layout override */
.top-inner{height:88px;min-height:88px}
.site-logo{max-width:min(520px,72vw);max-height:84px;width:auto;height:auto}

.site-footer{
  min-height:64px;
  height:64px;
  padding:8px 24px;
  display:grid;
  grid-template-columns:auto minmax(220px,1fr) auto;
  align-items:center;
  gap:20px;
}
.footer-logos{
  grid-column:1;
  grid-row:1;
  justify-content:flex-start;
  align-items:center;
  gap:12px;
  min-width:0;
  overflow:hidden;
}
.footer-logos img{
  height:38px;
  max-width:92px;
  width:auto;
  object-fit:contain;
  display:block;
  border:0;
  border-radius:0;
  padding:0;
  background:transparent;
  box-shadow:none;
}
.site-footer .home-fab{
  grid-column:2;
  grid-row:1;
  justify-self:stretch;
  width:100%;
  min-width:0;
  height:46px;
  padding:0 22px;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  color:#0788cf;
  background:#fff;
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  box-shadow:0 4px 16px rgba(0,0,0,.12);
}
.site-footer .home-fab span{font-size:28px;line-height:1;margin-top:-2px}
.site-footer .home-fab b{display:block;font-size:14px;font-weight:800}
.footer-side.footer-date{
  grid-column:3;
  grid-row:1;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:0;
}
.footer-side.footer-date strong{
  font-size:11px;
  border-radius:9px;
  padding:8px 11px;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,70,110,.08);
}

@media(max-width:650px){
  .top-inner{height:76px;min-height:76px;padding:6px 14px}
  .site-logo{max-width:88vw;max-height:70px;width:auto;height:auto}
  .site-footer{
    height:72px;
    min-height:72px;
    padding:7px 12px calc(7px + env(safe-area-inset-bottom));
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:8px;
  }
  .footer-logos{
    grid-column:1;
    grid-row:1;
    justify-content:flex-start;
    gap:7px;
    max-width:30vw;
    overflow:hidden;
  }
  .footer-logos img{height:32px;max-width:58px;flex:0 0 auto}
  .site-footer .home-fab{
    grid-column:2;
    grid-row:1;
    justify-self:stretch;
    width:100%;
    height:48px;
    min-width:0;
    padding:0 12px;
    border-radius:13px;
  }
  .site-footer .home-fab span{font-size:27px}
  .site-footer .home-fab b{display:block;font-size:13px;white-space:nowrap}
  .footer-side.footer-date{
    grid-column:3;
    grid-row:1;
    justify-content:flex-end;
    max-width:31vw;
  }
  .footer-side.footer-date strong{
    font-size:9px;
    line-height:1.15;
    padding:7px 8px;
    white-space:normal;
    text-align:center;
  }
}

/* v6.6: удобный режим карт/маршрутов */
.travel-gallery{display:flex;flex-direction:column;gap:24px}
.travel-photo{display:block;width:100%;background:#fff;border:1px solid #e3edf3;border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(37,104,137,.07);cursor:zoom-in}
.travel-photo img{width:100%;height:auto;max-height:none;object-fit:contain;display:block;background:#f4f8fa}
.travel-photo span{display:block;padding:14px 16px;font-size:15px;line-height:1.45;font-weight:700;color:#173a56;background:#fff}
.travel-photo:active{transform:scale(.997)}
.photo-lightbox{position:fixed;inset:0;z-index:200;background:rgba(8,31,46,.94);display:flex;align-items:center;justify-content:center;padding:24px;cursor:zoom-out}
.photo-lightbox[hidden]{display:none}
.photo-lightbox img{display:block;max-width:96vw;max-height:88vh;width:auto;height:auto;object-fit:contain;border-radius:8px;box-shadow:0 20px 70px rgba(0,0,0,.35)}
.photo-lightbox-close{position:absolute;right:18px;top:12px;width:46px;height:46px;border:0;border-radius:50%;background:rgba(255,255,255,.95);color:#173a56;font-size:32px;line-height:1;cursor:pointer}
.photo-lightbox div:last-child{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);max-width:90vw;padding:9px 14px;border-radius:10px;background:rgba(255,255,255,.95);color:#173a56;font-size:14px;font-weight:700;text-align:center}
.lightbox-open{overflow:hidden}
@media(max-width:650px){.travel-gallery{gap:14px}.travel-photo{border-radius:12px}.travel-photo span{padding:12px 13px;font-size:14px}.photo-lightbox{padding:10px}.photo-lightbox img{max-width:100vw;max-height:82vh;border-radius:4px}.photo-lightbox-close{right:10px;top:8px;width:42px;height:42px;font-size:29px}.photo-lightbox div:last-child{bottom:calc(12px + env(safe-area-inset-bottom));font-size:13px;max-width:92vw}}

/* v6.8.6 — page content and responsive embedded forms */
.prose iframe{display:block;width:100% !important;max-width:100% !important;border:0;box-sizing:border-box}
.prose{min-width:0;overflow-wrap:anywhere}
@media(max-width:650px){.prose iframe{width:100% !important;max-width:100% !important}}

/* v6.8.7 — preserve line breaks entered in page content */
.prose{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.prose p,.prose ul,.prose ol,.prose h2,.prose h3{white-space:normal}

/* v6.8.2 — header text settings + footer cleanup */
.top-inner{justify-content:flex-start;gap:22px}
.site-heading{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px}
.site-event-title{font-size:20px;line-height:1.15;font-weight:800;color:#123e5d}
.site-subtitle{font-size:13px;line-height:1.35;font-weight:600;color:#47718b}
@media(max-width:650px){.top-inner{gap:12px}.site-event-title{font-size:14px}.site-subtitle{font-size:11px}}

/* v6.8.3 — simple rich text editor + admin mascot */
.editor-help{display:flex;align-items:center;gap:16px}.admin-mascot{flex:0 0 auto;width:52px;height:52px;border-radius:14px;background:linear-gradient(145deg,#eaf7ff,#fff);border:1px solid #d7e9f2;display:flex;align-items:center;justify-content:center;font-size:30px;box-shadow:0 7px 20px rgba(37,104,137,.08)}.admin-mascot-large{width:78px;height:78px;font-size:46px}.admin-welcome{display:flex;align-items:center;gap:20px}.admin-welcome h1{margin:0 0 6px}.editor-examples{display:flex;gap:14px;flex-wrap:wrap;margin-top:9px;font-size:12px;color:#426274}.rich-editor{margin-top:7px;border:1px solid #d4e4ec;border-radius:10px;background:#fff;overflow:hidden}.rich-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:8px;border-bottom:1px solid #dceaf1;background:#f5fafc}.rich-toolbar button{min-width:34px;height:32px;border:1px solid #d5e5ec;border-radius:7px;background:#fff;color:#174b68;font:700 13px/1 inherit;cursor:pointer}.rich-toolbar button:hover{background:#eaf6fc;border-color:#a9d5e8}.rich-toolbar button:focus-visible{outline:2px solid #078fd1;outline-offset:1px}.rich-sep{width:1px;height:22px;background:#d8e5eb;margin:0 3px}.rich-content{min-height:280px;padding:14px;outline:0;font:inherit;line-height:1.7;color:#173a56;overflow:auto}.rich-content:focus{box-shadow:inset 0 0 0 2px rgba(7,143,209,.12)}.rich-content:empty:before{content:'Начните писать здесь…';color:#8aa0ac}.rich-content p{margin:0 0 12px}.rich-content h2{font-size:24px;margin:18px 0 10px;color:#123e5d}.rich-content h3{font-size:19px;margin:16px 0 8px;color:#123e5d}.rich-content blockquote{margin:14px 0;padding:10px 14px;border-left:4px solid #078fd1;background:#f5fbfe;color:#527487}.rich-content a{color:#0788cf;text-decoration:underline}.rich-content img{max-width:100%;height:auto}.rich-content ul,.rich-content ol{padding-left:28px}.rich-source{display:none;width:100%;min-height:280px;box-sizing:border-box;padding:14px;border:0;outline:0;resize:vertical;background:#fff;color:#173a56;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.rich-editor.source-mode .rich-content{display:none}.rich-editor.source-mode .rich-source{display:block!important}.rich-tip{padding:8px 12px;border-top:1px solid #edf3f6;background:#fbfdfe;color:#78909e;font-size:11px}.admin-mascot + div .muted{margin:0}.pages-nav-current{display:inline-flex;align-items:center;gap:5px}
@media(max-width:650px){.editor-help,.admin-welcome{align-items:flex-start}.editor-help{gap:10px}.admin-mascot{width:44px;height:44px;font-size:25px}.admin-mascot-large{width:60px;height:60px;font-size:36px}.editor-examples{display:block}.editor-examples span{display:block;margin-top:4px}.rich-toolbar{gap:3px;padding:6px}.rich-toolbar button{min-width:30px;height:30px}.rich-content{min-height:240px}}

@media(max-width:650px){.rich-editor.source-mode .rich-source{min-height:240px;font-size:12px}}

/* prod v1.15 — compact single-line editor toolbar */
.field-label{display:block;margin:0 0 4px;font-weight:700;color:#173a56}
.rich-editor{position:relative}
.rich-toolbar{position:relative;z-index:5;display:flex;align-items:center;flex-wrap:nowrap;gap:4px;white-space:nowrap;overflow-x:auto;overflow-y:hidden;padding:4px 2px}
.rich-toolbar button{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:30px;height:28px;min-width:30px;padding:0;border-radius:4px}
.rich-toolbar button[data-cmd="superbold"]{width:34px;min-width:34px}
.rich-toolbar .rich-sep{display:block;flex:0 0 1px;width:1px;height:20px;margin:0 2px;background:#d5dbe0}
.rich-content,.rich-source{position:relative;z-index:1}
.rich-toolbar .rich-color-preset,.rich-toolbar .rich-preset,.rich-toolbar .rich-color{display:none}

/* prod v1 — safe Menu -> Page workflow */
.pages-card-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:22px}.page-tile{background:#fff;border:1px solid #e1edf3;border-radius:14px;overflow:hidden;box-shadow:0 8px 30px #3d758c12}.page-tile-main{min-height:170px;padding:20px 14px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;color:#087ebd}.page-tile-main b{font-size:15px}.page-tile-main small{color:#78909e;font-size:11px}.page-tile-main em{font-style:normal;font-size:10px;color:#a45b32;background:#fff6ed;border-radius:7px;padding:5px 7px}.pages-tile-icon{width:48px;height:48px;object-fit:contain}.pages-tile-icon-fallback{width:42px;height:42px}.page-tile-actions{display:flex;gap:7px;padding:10px;border-top:1px solid #edf3f6;background:#f8fcfe}.page-tile-actions .btn{flex:1;min-width:0;padding:9px 7px;font-size:11px}.secondary{background:#eef7fc;color:#087fb9;border:1px solid #d5e9f3}.page-tile-missing{border-style:dashed}.warn-text{color:#a45b32!important}.page-editor-card{scroll-margin-top:20px;margin-bottom:15px}.page-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.page-editor-heading h2{margin:0 0 6px}.page-editor-meta{font-size:12px;color:#78909e}.page-editor-meta code{background:#f2f8fb;border-radius:5px;padding:3px 6px;color:#315c73}.readonly-label{font-weight:400;color:#78909e;font-size:10px;margin-left:5px}.field-help{display:block;color:#78909e;font-size:10px;margin-top:4px}.optional{font-weight:400;color:#78909e}.add-check{margin-top:25px}.menu-duplicate-warning{margin:12px 0}.menu-row-conflict td{background:#fff9f7}@media(max-width:1100px){.pages-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:900px){.pages-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.pages-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.page-tile-main{min-height:145px;padding:14px 8px}.page-tile-actions{flex-direction:column}.page-editor-heading{display:block}.page-editor-heading .btn{margin-top:10px}}

.page-tile-conflict{border-color:#e7b08f;box-shadow:0 8px 30px rgba(164,91,50,.08)}


/* prod v1.4 — raw HTML page content + right-aligned footer logos */
.html-editor .rich-toolbar{justify-content:flex-start;gap:8px}
.html-editor .rich-toolbar-label{font-size:12px;font-weight:800;color:#174b68;margin-right:2px}
.html-editor .rich-color{width:42px;height:32px;padding:3px;border:1px solid #d5e5ec;border-radius:7px;background:#fff;cursor:pointer}
.html-editor .rich-color-apply{min-width:90px!important}
.html-editor .rich-source-main{display:block;width:100%;min-height:300px;margin:0;box-sizing:border-box;padding:14px;border:0;outline:0;resize:vertical;background:#fff;color:#173a56;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;tab-size:2}
.html-editor .rich-source-main:focus{box-shadow:inset 0 0 0 2px rgba(7,143,209,.12)}
.site-footer{display:flex!important;align-items:center;justify-content:space-between;gap:20px;min-height:64px;height:64px;padding:8px 24px}
.site-footer .home-fab{order:1;flex:0 1 auto;width:auto;min-width:42px;justify-self:auto}
.site-footer .footer-logos{order:2;margin-left:auto;flex:0 1 auto;max-width:72%;justify-content:flex-end;align-items:center;gap:12px;overflow:hidden}
.site-footer .footer-logos img{height:38px;max-width:92px;flex:0 1 auto}
@media(max-width:650px){
  .html-editor .rich-toolbar{gap:6px;padding:7px}
  .html-editor .rich-source-main{min-height:240px;font-size:12px}
  .site-footer{height:64px;min-height:64px;padding:7px 12px calc(7px + env(safe-area-inset-bottom));gap:8px}
  .site-footer .home-fab{height:44px;min-width:44px;padding:0 12px;border-radius:13px}
  .site-footer .home-fab b{display:block;font-size:12px;white-space:nowrap}
  .site-footer .footer-logos{max-width:62%;gap:6px;margin-left:auto;overflow:hidden}
  .site-footer .footer-logos img{height:30px;max-width:52px;min-width:0}
}

/* prod v1.6 — footer logos stay on the right on desktop and mobile */
.site-footer{display:flex!important;align-items:center;justify-content:flex-end!important;gap:12px;}
.site-footer .home-fab{margin-right:auto;order:1;}
.site-footer .footer-logos{order:2;margin-left:0!important;max-width:none!important;width:auto;display:flex!important;align-items:center;justify-content:flex-end!important;gap:12px;overflow:visible;}
.site-footer .footer-logos img{flex:0 0 auto;height:38px;max-width:92px;}
@media(max-width:650px){
  .site-footer{display:flex!important;justify-content:flex-end!important;align-items:center;gap:8px;}
  .site-footer .home-fab{margin-right:auto;}
  .site-footer .footer-logos{display:flex!important;max-width:calc(100% - 50px)!important;gap:6px;margin-left:0!important;justify-content:flex-end!important;overflow:visible;}
  .site-footer .footer-logos img{height:30px;max-width:52px;min-width:0;flex:0 1 auto;}
}


/* v7.2 — footer: home button pinned left, logos pinned right */
.site-footer{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  justify-content:normal!important;
  gap:16px;
  min-height:64px;
  height:64px;
  padding:8px 24px;
  box-sizing:border-box;
}
.site-footer .home-fab{
  grid-column:1;
  grid-row:1;
  justify-self:start;
  order:initial;
  margin:0!important;
  width:250px;
  min-width:250px;
  height:44px;
  box-sizing:border-box;
}
.site-footer .footer-logos{
  grid-column:3;
  grid-row:1;
  justify-self:end;
  order:initial;
  margin:0!important;
  width:auto;
  max-width:none!important;
  display:flex!important;
  align-items:center;
  justify-content:flex-end!important;
  gap:10px;
  overflow:visible!important;
}
.site-footer .footer-logos img{
  flex:0 0 auto;
  height:38px;
  max-width:92px;
}
@media(max-width:650px){
  .site-footer{
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    height:70px;
    min-height:70px;
    padding:7px 12px calc(7px + env(safe-area-inset-bottom));
    gap:8px;
  }
  .site-footer .home-fab{
    width:210px;
    min-width:210px;
    height:46px;
    padding:0 14px;
    border-radius:14px;
  }
  .site-footer .home-fab b{display:block;font-size:13px;white-space:nowrap}
  .site-footer .home-fab span{font-size:29px}
  .site-footer .footer-logos{gap:6px}
  .site-footer .footer-logos img{height:30px;max-width:52px}
}

/* v7.2.1 — explicit left/right footer anchors on every viewport */
.site-footer .home-fab{grid-column:1!important;grid-row:1!important;justify-self:start!important;margin:0!important;}
.site-footer .footer-logos{grid-column:3!important;grid-row:1!important;justify-self:end!important;margin-left:0!important;}
.rich-color-wrap{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 5px;border:1px solid #d5e5ec;border-radius:7px;background:#fff;color:#174b68;font:700 12px/1 inherit;cursor:pointer;}
.rich-color-wrap .rich-color{width:28px;height:26px;padding:1px;border:0;background:transparent;cursor:pointer;}

/* v7.3 — header subtitle gets the full right-hand column and never wraps */
.top-inner{justify-content:flex-start;gap:20px}
.brand{width:auto;flex:0 0 auto;min-width:0}
.site-heading{flex:1 1 auto;min-width:0;width:auto;display:flex;align-items:center;justify-content:flex-end}
.site-subtitle{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:clip;text-align:right}
@media(max-width:650px){
  .top-inner{gap:10px}
  .brand{flex:0 0 auto;width:auto}
  .site-logo{max-width:56vw;max-height:64px}
  .site-heading{flex:1 1 0;min-width:0;width:auto}
  .site-subtitle{font-size:clamp(9px,2.65vw,11px);line-height:1.15;white-space:nowrap;text-align:right;overflow:visible}
}

/* prod v1.10 — isolate page HTML from admin layout */
.admin-wrap{width:100%;max-width:1250px;margin-left:auto;margin-right:auto;min-width:0;}
.page-editor-card{display:block!important;width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
.page-editor-card .form{display:block;width:100%;min-width:0;}
.page-editor-card .rich-editor{display:block;width:100%;max-width:100%;min-width:0;}
.page-editor-card .rich-content,.page-editor-card .rich-source{width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
.pages-card-grid{width:100%;max-width:100%;min-width:0;}
