:root{
  --sp-bg:#ffffff; --sp-fg:#111; --sp-accent:#0b84ff; --sp-border:#d7d9dc;
  --sp-menubar:#f5f6f7; --tile-min:298px; --tile-gap:16px; --tile-ratio:3/2;
}
*{box-sizing:border-box}
html,body{height:100%}
body.tpl-sohoprint{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--sp-fg);background:var(--sp-bg);display:flex;flex-direction:column;min-height:100%}
.sp-main{max-width:1200px;margin:18px auto;padding:0 16px;flex:1 0 auto}
.sp-footer{border-top:1px solid var(--sp-border);margin-top:32px;flex-shrink:0}
.sp-footer__inner{max-width:1200px;margin:0 auto;padding:16px;display:flex;justify-content:space-between;color:#666}

/* Header */
.sp-header{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:1px solid var(--sp-border)}
.sp-header__inner{display:flex;align-items:center;justify-content:space-between;max-width:1200px;margin:0 auto;padding:10px 16px;gap:20px}
.sp-logo img{height:44px}
.sp-cta{display:flex;align-items:center;gap:12px}
.sp-button{background:var(--sp-accent);color:#fff;padding:10px 14px;border-radius:10px;font-weight:800;text-decoration:none}
.sp-phone{font-weight:900;color:#111;text-decoration:none}

/* Burger */
.sp-burger{display:none;width:44px;height:44px;border:1px solid var(--sp-border);border-radius:8px;background:#fff;cursor:pointer;position:relative}
.sp-burger span{position:absolute;left:10px;right:10px;height:3px;background:#111;transition:.2s}
.sp-burger span:nth-child(1){top:11px}.sp-burger span:nth-child(2){top:20px}.sp-burger span:nth-child(3){top:29px}

/* Menu */
.sp-header__menu{background:var(--sp-menubar);border-top:1px solid var(--sp-border);border-bottom:1px solid var(--sp-border)}
.sp-header__menu .sp-nav{max-width:1200px;margin:0 auto;padding:8px 16px}
.sp-header__menu .sp-nav ul{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;margin:0;padding:0;list-style:none}
.sp-header__menu .sp-nav li{display:flex;flex:0 0 auto}
.sp-header__menu .sp-nav a{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;background:#fff;border:2px solid var(--sp-border);border-radius:8px;color:#111;font-weight:700;text-decoration:none;line-height:1.1;white-space:nowrap;transition:border-color .15s,color .15s,box-shadow .15s,transform .08s}
.sp-header__menu .sp-nav a:hover,.sp-header__menu .sp-nav a:focus-visible{border-color:var(--sp-accent);color:var(--sp-accent);box-shadow:0 0 0 2px rgba(11,132,255,.22);transform:translateY(-2px);outline:none}
.sp-header__menu .sp-nav li.current>a,.sp-header__menu .sp-nav li.active>a{border-color:var(--sp-accent);color:var(--sp-accent)}

/* Responsive menu */
@media(max-width:960px){
  .sp-burger{display:block}
  .sp-header__menu .sp-nav{display:none}
  .sp-header__menu .sp-nav.is-open{display:block}
  .sp-header__menu .sp-nav ul{flex-direction:column;gap:8px}
  .sp-header__menu .sp-nav li{width:100%}
  .sp-header__menu .sp-nav a{width:100%;max-width:520px;margin:0 auto}
}

/* Tiles base */
.sp-tiles{--gap:var(--tile-gap)}
.sp-tiles__grid{display:grid;gap:var(--gap);grid-template-columns:repeat(3, minmax(var(--tile-min),1fr))}
@media (max-width:980px){.sp-tiles__grid{grid-template-columns:repeat(2, minmax(var(--tile-min),1fr))}}
@media (max-width:600px){.sp-tiles__grid{grid-template-columns:1fr}}
.sp-tile{display:flex;flex-direction:column;gap:10px;text-decoration:none;color:#111}
.sp-tile__media{display:block;position:relative;width:100%;aspect-ratio:var(--tile-ratio);border:2px solid var(--sp-border);border-radius:12px;background:#fff;overflow:hidden;transition:transform .12s, box-shadow .2s, border-color .2s}
.sp-tile__media img{display:block;width:100%;height:100%;object-fit:cover}
.sp-tile__title{font-weight:800;text-align:center;line-height:1.2}
.sp-tile:hover .sp-tile__media,.sp-tile:focus-visible .sp-tile__media{border-color:var(--sp-accent);box-shadow:0 8px 20px rgba(11,132,255,.18),0 0 0 2px rgba(11,132,255,.20)}
