/* kAPPel.ru V5.9.4 — reuse the exact app-subdomain header/footer HTML on non-app pages.
   Intentionally scoped. Homepage/category/search/legacy content remains unchanged. */
body.k594-site-shell .k4-global-header,
body.k594-site-shell .k4-footer {
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  color:#181d29;
  font-size:14px;
  line-height:1.5;
}
body.k594-site-shell .k4-global-header *,
body.k594-site-shell .k4-footer * {box-sizing:border-box}
body.k594-site-shell .k4-global-header a,
body.k594-site-shell .k4-footer a {text-decoration:none}
body.k594-site-shell .k4-global-header a:hover,
body.k594-site-shell .k4-footer a:hover {color:#086eff}
body.k594-site-shell .k4-global-header .wrap,
body.k594-site-shell .k4-footer .wrap {width:min(1280px,calc(100% - 48px));max-width:none;margin-left:auto;margin-right:auto}
/* Same shape/spacing as kappel_app_v41 + v45 + v46, without loading any app-only layout CSS. */
body.k594-site-shell .k4-global-header {
  position:relative;z-index:50;background:#fff;border-bottom:1px solid #eff0f3;
}
body.k594-site-shell .k4-header-inner {
  display:flex;align-items:center;gap:26px;min-height:88px;max-width:1280px;
}
body.k594-site-shell .k4-brand {
  display:inline-flex;align-items:baseline;flex-shrink:0;white-space:nowrap;
  color:#191919!important;font-size:26px;font-weight:430;letter-spacing:-1.45px;line-height:1;
}
body.k594-site-shell .k4-brand strong {font-weight:900;color:#151515;letter-spacing:-1.6px}
body.k594-site-shell .k4-global-header nav:not(.k43-mobile-menu) {
  display:flex;align-items:center;gap:27px;margin:0 auto;white-space:nowrap;
}
body.k594-site-shell .k4-global-header nav:not(.k43-mobile-menu) a {
  font-weight:500;font-size:15px;color:#161a21;
}
body.k594-site-shell .k4-global-header nav:not(.k43-mobile-menu) a:first-child {color:#086eff}
body.k594-site-shell .k4-header-search {
  display:flex;align-items:center;gap:7px;
  flex:0 1 205px;min-width:160px;max-width:205px;height:43px;
  margin:0;border:0;border-radius:11px;background:#f0f1f3;
  padding:5px 8px 5px 13px;
}
body.k594-site-shell .k4-header-search input[type="search"] {
  display:block;flex:1;width:70px;min-width:0;margin:0;padding:4px!important;
  border:0!important;border-radius:0;background:transparent!important;
  box-shadow:none!important;color:#282d3b;outline:0;font-size:12px;
}
body.k594-site-shell .k4-header-search input::placeholder {color:#848d9e}
body.k594-site-shell .k4-header-search button {
  display:grid;place-items:center;flex:0 0 44px;min-width:44px;width:44px;height:44px;
  margin:0;padding:0;border:0;background:transparent;color:#5c677a;
  cursor:pointer;line-height:1;
}
body.k594-site-shell .k4-header-search button svg {display:block;width:24px;height:24px}
body.k594-site-shell .k4-header-catalog {
  display:inline-flex;align-items:center;justify-content:center;
  color:#fff!important;background:#0d6af5;padding:12px 16px;
  border-radius:11px;font-weight:650;font-size:13px;white-space:nowrap;
}
body.k594-site-shell .k4-header-catalog:hover {background:#0758d1}
body.k594-site-shell .k43-burger {
  display:none;align-items:center;flex-direction:column;justify-content:center;
  gap:5px;flex:0 0 48px;width:48px;height:48px;padding:10px;
  border:1px solid #e4e8ed;border-radius:11px;background:#f2f4f6;cursor:pointer;
}
body.k594-site-shell .k43-burger span {width:19px;height:2px;border-radius:2px;background:#253045;display:block}
body.k594-site-shell .k43-mobile-menu[hidden] {display:none!important}
body.k594-site-shell .k43-mobile-menu {display:none}
body.k594-site-shell .k4-global-header :is(a,button,input):focus-visible,
body.k594-site-shell .k4-footer a:focus-visible {outline:3px solid #62acff;outline-offset:3px}
/* The actual footer.html is shared, so adding a link on subdomains automatically adds it here. */
body.k594-site-shell .k4-footer {
  margin-top:42px;padding:35px 0 24px;background:#f5f6f8;border-top:1px solid #eff0f3;
}
body.k594-site-shell .k4-footer-grid {
  display:grid;grid-template-columns:1.25fr repeat(4,minmax(0,1fr));gap:24px;
}
body.k594-site-shell .k4-footer h3 {
  margin:0 0 9px!important;font-size:12px!important;
  font-weight:730!important;letter-spacing:0!important;line-height:1.4;
  color:#191e2c;
}
body.k594-site-shell .k4-footer a:not(.k4-brand) {
  display:block;color:#8992a3;font-size:14px;line-height:1.6;
}
body.k594-site-shell .k4-footer a:not(.k4-brand):hover {color:#0a6df6}
body.k594-site-shell .k4-footer-tagline {
  margin-top:11px;color:#9099a8;font-size:12px;max-width:220px;line-height:1.6;
}
body.k594-site-shell .k4-footer-bottom {
  display:flex;justify-content:space-between;gap:15px;
  border-top:1px solid #e5e8ee;padding-top:14px;margin-top:24px;
  color:#9aa1ac;font-size:10px;line-height:1.5;
}
@media(max-width:1100px) {
  body.k594-site-shell .k4-header-inner{gap:17px}
  body.k594-site-shell .k4-global-header nav:not(.k43-mobile-menu){gap:13px}
  body.k594-site-shell .k4-header-search{max-width:190px}
  body.k594-site-shell .k4-footer-grid{gap:18px}
}
@media(max-width:900px) {
  body.k594-site-shell .k4-global-header nav:not(.k43-mobile-menu){display:none}
  body.k594-site-shell .k4-header-catalog{display:none}
  body.k594-site-shell .k43-burger{display:flex}
  body.k594-site-shell .k4-header-search{flex:1 1 auto;max-width:none;min-width:0;margin-left:auto}
  body.k594-site-shell .k43-mobile-menu:not([hidden]) {
    display:flex;position:absolute;z-index:1100;top:100%;right:max(16px,calc((100vw - 1280px)/2));
    flex-direction:column;gap:3px;padding:10px;width:min(310px,calc(100% - 32px));
    border:1px solid #e6e9ee;border-radius:0 0 14px 14px;
    background:#fff;box-shadow:0 14px 30px #11213822;
  }
  body.k594-site-shell .k43-mobile-menu a {
    display:block;padding:13px 12px;border-radius:8px;color:#233044;font-size:14px;
  }
  body.k594-site-shell .k43-mobile-menu a:hover {background:#f0f4fa}
  body.k594-site-shell .k4-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:23px}
}
@media(max-width:767px) {
  body.k594-site-shell .k4-global-header .wrap,
  body.k594-site-shell .k4-footer .wrap{width:calc(100% - 32px)}
  body.k594-site-shell .k4-header-inner{min-height:66px;gap:10px}
  body.k594-site-shell .k4-header-search {
    position:relative;justify-content:center;flex:0 0 48px!important;
    width:48px!important;max-width:48px!important;min-width:48px!important;
    height:48px;padding:0!important;margin-left:auto;border-radius:14px;
  }
  body.k594-site-shell .k4-header-search input[type="search"] {
    position:absolute;right:100%;top:0;width:0;min-width:0;opacity:0;
    pointer-events:none;background:#fff!important;
  }
  body.k594-site-shell .k4-header-search:is(:focus-within,.k594-search-open) input[type="search"] {
    width:min(55vw,280px);height:46px;opacity:1;pointer-events:auto;
    padding:8px 12px!important;border:1px solid #d7e0ed!important;
    border-radius:11px;background:#fff!important;
    box-shadow:0 4px 18px #00000019!important;
  }
  body.k594-site-shell .k4-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:25px}
  body.k594-site-shell .k4-footer-grid>:first-child{grid-column:1/-1}
}
@media(max-width:560px) {
  body.k594-site-shell .k4-global-header .wrap,
  body.k594-site-shell .k4-footer .wrap{width:calc(100% - 28px)}
  body.k594-site-shell .k4-header-inner{min-height:62px;gap:8px}
  body.k594-site-shell .k4-brand{font-size:22px}
  body.k594-site-shell .k4-header-search button{flex-basis:48px;width:48px;height:48px}
  body.k594-site-shell .k4-footer-bottom{flex-direction:column}
  body.k594-site-shell .k43-mobile-menu:not([hidden]){width:min(290px,calc(100% - 28px));right:14px}
}
@media(max-width:380px) {
  body.k594-site-shell .k4-brand{font-size:20px}
  body.k594-site-shell .k43-burger{flex-basis:42px;width:42px;height:44px}
}
