
/* Ковчег — демо-каталог и вход, V5 */
.brand{min-width:160px}.brand>span>strong{font-size:20px!important;line-height:1.1;white-space:nowrap}.brand>span>small{font-size:11px;letter-spacing:0;white-space:nowrap}
.header-inner{max-width:1390px}.desktop-nav{gap:15px}.desktop-nav a{font-size:12px}
.v5-demo-notice{display:flex;align-items:flex-start;gap:10px;margin:9px 0 19px;padding:11px 14px;border:1px solid #e1e8f3;border-radius:12px;background:#f3f7fe;font-size:12px;line-height:1.55;color:#596d8e}
.v5-demo-tag{display:inline-block;flex:none;background:#385fb4;color:white;padding:3px 8px;border-radius:6px;font-size:10px;font-weight:800;letter-spacing:.04em}
.v5-pet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 26px}
.v5-pet-card{display:block;overflow:hidden;border:1px solid #e1e7ef;border-radius:15px;background:white;transition:transform .2s,box-shadow .2s}
.v5-pet-card:hover{transform:translateY(-3px);box-shadow:0 9px 22px rgba(47,75,115,.09)}
.v5-pet-photo{height:215px;position:relative;background:#e6edfa;overflow:hidden}
.v5-pet-photo img{width:100%;height:100%;object-fit:cover;display:block}
.v5-pet-photo>span{position:absolute;top:13px;left:13px;padding:5px 10px;border-radius:8px;color:#fff;background:#1c2d42b8;font-size:11px;font-weight:750}
.v5-pet-info{padding:16px}.v5-pet-info>span{font-size:11px;color:#6d82a0}.v5-pet-info h2{font-size:19px;margin:5px 0 8px;color:#203552}.v5-pet-info p{font-size:12px;color:#748196;line-height:1.6;margin:0 0 13px}.v5-pet-info strong{color:#345eae;font-size:11.5px}
.v5-real-heading{font-size:20px;margin:30px 0 13px}
.v5-pet-photo-placeholder{display:grid;place-items:center;color:#7292c4;font-size:60px}
.v5-demo-detail{display:grid;grid-template-columns:48% 1fr;gap:35px;align-items:center;padding:25px 0 55px}
.v5-demo-detail-photo{position:relative;height:410px;overflow:hidden;border-radius:18px}.v5-demo-detail-photo img{width:100%;height:100%;object-fit:cover}.v5-demo-detail-photo>span{position:absolute;top:12px;left:12px;background:#263e5bc9;color:#fff;padding:7px 13px;border-radius:9px;font-size:11px}
.v5-demo-detail-text h1{font-size:30px;margin:7px 0 14px}.v5-demo-detail-text>p{font-size:13.5px;color:#64768f}.v5-demo-detail-text dl{display:flex;gap:20px;flex-wrap:wrap;margin:20px 0}.v5-demo-detail-text dt{font-size:10px;color:#8792a4}.v5-demo-detail-text dd{font-size:14px;font-weight:700;margin:3px 0 0}.v5-demo-detail-text h2{font-size:17px}.v5-demo-traits{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.v5-demo-traits span{background:#ebf1fb;border-radius:20px;color:#395f9f;padding:5px 11px;font-size:11px}
.v5-demo-disclaimer{padding:12px;background:#f3f7ff;border-radius:9px;color:#5d7090!important;font-size:12px!important}
.v5-auth-wrap{width:min(930px,100%);display:grid;grid-template-columns:.85fr 1fr;border:1px solid #e4eaf3;border-radius:17px;overflow:hidden;margin:35px auto 50px;background:#fff}
.v5-auth-art{position:relative;overflow:hidden;background:linear-gradient(142deg,#fff5ed,#eef5ff);padding:30px 25px;min-height:480px}
.v5-auth-art>div{position:relative;z-index:3}.v5-auth-art h2{font-size:21px;margin:10px 0}.v5-auth-art p{font-size:12.5px;line-height:1.6;color:#667c9b;max-width:300px}
.v5-auth-art img{position:absolute;display:block;object-fit:cover;border:5px solid #fff;box-shadow:0 8px 20px #344c7828}
.v5-auth-dog{width:58%;height:47%;left:4%;bottom:6%;border-radius:38% 38% 15px 15px;transform:rotate(-4deg)}
.v5-auth-cat{width:43%;height:35%;right:5%;bottom:11%;border-radius:38% 38% 15px 15px;transform:rotate(7deg)}
.v5-auth-cloud{position:absolute;top:23%;right:-8%;width:140px;height:80px;filter:blur(12px);border-radius:50%;background:#fff}
.v5-auth-form{padding:27px 31px;min-width:0}.v5-auth-form h1{font-size:26px;font-weight:750;margin:8px 0 20px}.v5-auth-form .stack-form{gap:13px}.v5-auth-form .stack-form label{font-size:12px;display:grid;gap:6px;font-weight:650;color:#394b65}.v5-auth-form .stack-form label small{display:block;color:#8290a3;font-weight:400}
.v5-auth-form .stack-form input{border:1px solid #dce4ef;background:#fff;padding:11px 12px;border-radius:9px}
.v5-auth-form .stack-form button{justify-content:center;margin-top:5px}
.v5-auth-switch{font-size:12px;color:#697b90;margin:18px 0 0}.v5-auth-switch a{color:#305db9;font-weight:750}
.v5-honeypot{position:absolute!important;left:-9000px!important;width:1px;height:1px;opacity:0}
.v5-two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.v5-register-form{margin-top:5px}
.v5-success{padding:12px 15px;color:#3d5e6a;background:#eff9fa;border:1px solid #deeff0;border-radius:9px;margin-bottom:15px;font-size:13px}
.v5-consent{display:flex!important;gap:9px;align-items:flex-start;line-height:1.5;color:#6a7892;font-size:11px!important}.v5-consent input{width:auto!important;flex:none}
.v5-crm-demo-form{display:flex;flex-direction:column;align-items:flex-start;gap:15px;margin:18px 0 0}
.v5-crm-demo-form .v5-consent{font-size:13px!important;color:#354d72!important}
@media(max-width:970px){.desktop-nav{gap:10px}.desktop-nav a{font-size:11px}.brand>span>strong{font-size:18px!important}.brand>span>small{font-size:10px}}
@media(max-width:740px){.v5-pet-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.v5-pet-photo{height:180px}.v5-demo-detail{grid-template-columns:1fr}.v5-demo-detail-photo{height:320px}.v5-auth-wrap{grid-template-columns:1fr}.v5-auth-art{min-height:190px;padding:22px}.v5-auth-art img{width:27%;height:68%;bottom:7%}.v5-auth-dog{left:60%}.v5-auth-cat{right:0;display:none!important}.v5-auth-art p{max-width:60%}.v5-auth-form{padding:22px}}
@media(max-width:450px){.brand>span>strong{font-size:17px!important}.brand>span>small{font-size:9px}.v5-pet-grid{grid-template-columns:1fr}.v5-pet-photo{height:235px}.v5-two-fields{grid-template-columns:1fr;gap:12px}.v5-auth-art{min-height:145px}.v5-auth-art img{display:none}.v5-auth-art p{max-width:100%}}

/* Этап 56: единая ширина шапки и основного контента на ВСЕХ страницах приюта, сообщества и CRM. */
body .site-header .header-inner{
  width:min(1200px,calc(100% - 28px))!important;
  max-width:1200px!important;
  min-width:0;
  margin-inline:auto!important;
  gap:clamp(8px,1.2vw,20px)!important;
}
body:not(.is-crm) .site-main{
  width:min(1200px,calc(100% - 28px))!important;
  max-width:1200px!important;
  min-width:0;
  margin-inline:auto!important;
}
body .site-header .brand{flex:0 1 auto;min-width:0}
body .site-header .desktop-nav{min-width:0;gap:clamp(6px,.9vw,15px)}
body .site-header .header-actions{flex:0 0 auto;min-width:0;margin-left:auto}
body .site-header .account-dropdown{right:0;max-width:calc(100vw - 28px)}
body .site-header .kv-notice-panel{right:0;max-width:calc(100vw - 28px)}
body .site-header .mobile-nav{right:0;max-width:calc(100vw - 28px)}
@media(max-width:1130px){
 body .site-header .desktop-nav{display:none!important}
 body .site-header .mobile-menu{display:block!important}
}
@media(max-width:620px){
 body .site-header .header-inner{width:calc(100% - 28px)!important;gap:7px!important}
 body .site-header .brand>span>strong{font-size:clamp(14px,3.7vw,18px)!important}
 body .site-header .brand>span>small{font-size:9px}
}

/* Stage 58 — CRM single source navigation & consistent geometry. */
body.is-crm .crm-shell {
  display:grid; grid-template-columns:208px minmax(0,1fr);
  width:min(1200px,calc(100% - 28px));max-width:1200px;
  margin:0 auto; min-height:calc(100vh - 65px);
  align-items:stretch; overflow:visible;
}
body.is-crm .crm-sidebar {
  display:flex;flex-direction:column;gap:5px;
  padding:22px 10px 24px 0;min-width:0;
  background:transparent;border-right:1px solid #e0e7ef;
}
body.is-crm .crm-sidebar .sidebar-caption {
  padding:0 10px;margin:0 0 8px;letter-spacing:.09em;
  font-size:10px;font-weight:700;color:#8395a9;
}
body.is-crm .crm-sidebar>a{
  display:flex;align-items:center;gap:10px;
  min-height:40px;width:100%;padding:10px 12px;
  border:0;border-radius:7px;background:transparent;
  color:#416388;text-decoration:none;font-size:12.5px;line-height:1.35;
}
body.is-crm .crm-sidebar>a>span:first-child{font-size:17px;line-height:18px;min-width:18px;text-align:center}
body.is-crm .crm-sidebar>a>span:last-child{flex:1;min-width:0}
body.is-crm .crm-sidebar>a.selected,
body.is-crm .crm-sidebar>a:hover{background:#e8f0f8;color:#285b91}
body.is-crm .crm-main {
  display:block;position:relative;flex:1;min-width:0;
  min-height:calc(100vh - 65px);padding:24px 25px 48px;
  margin:0;background:#f5f7fb;
  color:#26344d;opacity:1;visibility:visible;
}
body.is-crm .crm-main .crm-head {
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:10px;margin:0 0 16px;
}
body.is-crm .crm-main .crm-head h1 {font-size:24px;line-height:1.2;color:#24344d;margin:0 0 3px}
body.is-crm .crm-main .crm-head p{font-size:12px;line-height:1.5;color:#72869c;margin:0}
body.is-crm .crm-main .crm-panel,
body.is-crm .crm-main .crm-stat{
  background:#fff;border:1px solid #e0e6ef;
  border-radius:10px;box-shadow:none;
}
body.is-crm .crm-main .crm-panel{padding:17px 18px;margin:0 0 12px}
body.is-crm .crm-main .crm-panel h2{font-size:16px;line-height:1.4;color:#2c4059;margin:0 0 10px}
body.is-crm .crm-main .crm-panel p{font-size:12.5px;line-height:1.55}
body.is-crm .crm-main .crm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
body.is-crm .crm-main .crm-stat{min-width:0;padding:14px}
body.is-crm .crm-main .crm-stat strong{font-size:24px;color:#28425f;line-height:1.2}
body.is-crm .crm-main .crm-stat span{display:block;margin-top:5px;font-size:11px;color:#72869c}
body.is-crm .crm-main .button,
body.is-crm .crm-main button:not(.kv-ads-delete button){
  display:inline-flex;align-items:center;justify-content:center;
  min-height:36px;padding:8px 12px;line-height:1.3;
  border-radius:6px;font-size:12px;font-weight:650;max-width:100%;
}
body.is-crm .crm-main .crm-search{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap}
body.is-crm .crm-main .crm-search label{min-width:160px;flex:1}
body.is-crm .crm-main .crm-search input,
body.is-crm .crm-main .crm-search select{min-height:36px;width:100%}
body.is-crm .crm-main .crm-table-wrap{max-width:100%;overflow-x:auto}
body.is-crm .crm-main .crm-table{width:100%;border-collapse:collapse}
body.is-crm .crm-main .crm-table th,body.is-crm .crm-main .crm-table td{
  padding:10px 9px;vertical-align:middle;border-bottom:1px solid #e9eef3;
  font-size:12px;white-space:normal;overflow-wrap:anywhere;
}
body.is-crm .kv-crm-shortcuts-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
}
body.is-crm .kv-crm-shortcuts-grid>a{
  display:grid;gap:4px;padding:13px 14px;min-height:70px;
  border:1px solid #e0e8f1;border-radius:7px;
  background:#f8fbfe;color:#2c5e88;text-decoration:none;
}
body.is-crm .kv-crm-shortcuts-grid>a:hover{background:#edf5fc;border-color:#b4cfe5}
body.is-crm .kv-crm-shortcuts-grid strong{font-size:12.5px;line-height:1.35}
body.is-crm .kv-crm-shortcuts-grid small{font-size:11px;color:#7c91a5;line-height:1.5}
body.is-crm .kv-site-branding-form{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;
  max-width:850px;margin-top:13px;
}
body.is-crm .kv-site-branding-form>label{
  display:grid;align-content:start;gap:6px;min-width:0;
  font-size:12px;font-weight:650;color:#4f6682;
}
body.is-crm .kv-site-branding-form>label:nth-of-type(n+3){grid-column:1/-1}
body.is-crm .kv-site-branding-form input,
body.is-crm .kv-site-branding-form textarea{
  display:block;box-sizing:border-box;width:100%;min-height:38px;min-width:0;
  padding:10px 12px;border:1px solid #d5e1ee;border-radius:6px;
  background:#fff;color:#263c54;resize:vertical;
}
body.is-crm .kv-site-branding-form textarea{min-height:90px}
body.is-crm .kv-site-branding-form>button{grid-column:1/-1;justify-self:start}
@media(max-width:850px){
 body.is-crm .crm-shell{grid-template-columns:180px minmax(0,1fr)}
 body.is-crm .crm-main{padding:18px}
 body.is-crm .crm-main .crm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
 body.is-crm .crm-shell{display:flex;flex-direction:column;width:calc(100% - 20px)}
 body.is-crm .crm-sidebar{flex-direction:row;flex-wrap:nowrap;gap:5px;
  padding:8px 0 9px;border:0;border-bottom:1px solid #dfe7ef;
  overflow-x:auto;scrollbar-width:none}
 body.is-crm .crm-sidebar::-webkit-scrollbar{display:none}
 body.is-crm .crm-sidebar .sidebar-caption{display:none}
 body.is-crm .crm-sidebar>a{width:auto;flex:0 0 auto;white-space:nowrap;min-height:37px;padding:8px 10px}
 body.is-crm .crm-main{padding:13px 0 24px;min-height:55vh}
 body.is-crm .crm-main .crm-head{align-items:flex-start}
 body.is-crm .crm-main .crm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.is-crm .crm-main .crm-panel{padding:13px}
 body.is-crm .kv-crm-shortcuts-grid{grid-template-columns:1fr}
 body.is-crm .kv-site-branding-form{grid-template-columns:1fr}
 body.is-crm .kv-site-branding-form>label:nth-of-type(n+3),
 body.is-crm .kv-site-branding-form>button{grid-column:auto}
}
