/* Home Art: единые шапка и подвал всех страниц school-homeart.ru (решение владельца 20.11.2026).
   Источник: ~/Desktop/РИС/homeart-design-system/shapka-podval/. На сайте руками не править: выкладывает homeart-shapka-sync.
   Все правила под двойным классом (.shp.shp / .pdv.pdv), чтобы стили посадочных (header{…}, footer a{…}, p{…}) их не перебивали. */
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('/assets/fonts/Manrope-normal-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('/assets/fonts/Manrope-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

.shp.shp,.pdv.pdv{--k-paper:#F8F3EA;--k-sand:#F1E9DB;--k-white:#FFFFFF;--k-line:#E6DCCB;--k-ink:#3D241B;--k-ink-2:#6B5248;--k-ink-3:#7D6A5F;--k-terra:#B84E28;--k-terra-d:#9C3F1D;--k-on:#F8F3EA;--k-on-2:rgba(248,243,234,.8);--k-on-3:rgba(248,243,234,.64);--k-on-line:rgba(248,243,234,.16);--k-font:'Manrope',-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
.shp.shp *,.pdv.pdv *{box-sizing:border-box;margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;letter-spacing:normal;text-transform:none;text-decoration:none;text-align:left;text-shadow:none;box-shadow:none;float:none;position:static;overflow-wrap:normal;word-break:normal;opacity:1;transform:none;list-style:none;min-width:0;max-width:none}
.shp.shp *::before,.shp.shp *::after,.pdv.pdv *::before,.pdv.pdv *::after{content:none;display:none}

/* ---------- Шапка ---------- */
header.shp.shp{display:block;position:-webkit-sticky;position:sticky;top:0;top:env(safe-area-inset-top,0px);left:auto;right:auto;bottom:auto;z-index:80;box-sizing:border-box;width:100%;max-width:none;height:auto;min-height:0;margin:0;padding:10px max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px));background:transparent;border:0;border-radius:0;box-shadow:none;transform:none;flex:none;align-self:stretch;justify-self:stretch;grid-column:1/-1;font-family:var(--k-font);font-size:16px;font-weight:400;line-height:1.4;color:var(--k-ink);text-align:left;-webkit-font-smoothing:antialiased;font-variant-numeric:lining-nums}
.shp.shp .shp__in{position:relative;max-width:1180px;margin:0 auto}
.shp.shp .shp__bar{display:flex;align-items:center;gap:14px;background:var(--k-white);border-radius:20px;padding:8px 8px 8px 20px;box-shadow:0 6px 24px rgba(61,36,27,.08)}
.shp.shp .shp__logo{display:flex;align-items:center;min-height:40px;flex:none}
.shp.shp .shp__logo img{display:block;width:auto;height:30px;max-width:none;border-radius:0}
.shp.shp .shp__nav{display:flex;flex-wrap:wrap;align-items:center;column-gap:18px;height:40px;overflow:hidden;margin-left:10px;flex:1 1 auto}
.shp.shp .shp__nav a{display:flex;align-items:center;height:40px;font-weight:700;font-size:14px;color:var(--k-ink-2);white-space:nowrap}
.shp.shp .shp__nav a:hover{color:var(--k-ink)}
.shp.shp .shp__login{display:inline-flex;align-items:center;gap:6px;margin-left:auto;padding:10px;border-radius:12px;font-weight:700;font-size:14px;color:var(--k-ink);white-space:nowrap;flex:none}
.shp.shp .shp__nav+.shp__login{margin-left:0}
.shp.shp .shp__login:hover{background:var(--k-paper)}
.shp.shp .shp__login svg{width:20px;height:20px;flex:none}
.shp.shp .shp__cta{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 18px;border-radius:999px;background:var(--k-ink);color:var(--k-on);font-weight:800;font-size:14px;line-height:1;white-space:nowrap;cursor:pointer;flex:none}
.shp.shp .shp__cta:hover{background:#2B1912;color:var(--k-on)}
.shp.shp .shp__cta .s{display:none}
.shp.shp .shp__burger{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 14px;border-radius:12px;background:var(--k-paper);color:var(--k-ink);font-weight:700;font-size:14px;line-height:1;cursor:pointer;flex:none;-webkit-appearance:none;appearance:none}
.shp.shp .shp__burger:hover{background:var(--k-sand)}
.shp.shp .shp__burger svg{width:22px;height:22px;flex:none}
.shp.shp .shp__burger .x{display:none}
/* 20.11 v3 (владелец): без «Войти» в строке шапки, вход в кабинет внутри меню (.shp__acc). Подпись «Меню» на компьютере остаётся, на телефоне её нет */
.shp.shp .shp__login{display:none}
.shp.shp .shp__burger[aria-expanded="true"] .x{display:block}
.shp.shp .shp__burger[aria-expanded="true"] .m{display:none}
.shp.shp a:focus-visible,.shp.shp button:focus-visible{outline:3px solid rgba(184,78,40,.45);outline-offset:2px}
.shp.shp .shp__menu{position:absolute;top:calc(100% + 8px);right:0;z-index:2;display:grid;gap:16px;width:380px;max-width:100%;max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px);overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;background:var(--k-white);border-radius:20px;padding:20px;box-shadow:0 20px 48px rgba(61,36,27,.18)}
.shp.shp .shp__menu[hidden]{display:none}
.shp.shp .shp__grp{display:grid;gap:0}
.shp.shp .shp__h{margin:0 0 4px;font-size:13px;font-weight:700;color:var(--k-ink-3)}
.shp.shp .shp__grp a{display:block;padding:8px 0;border-bottom:1px solid var(--k-line);font-weight:700;font-size:16px;line-height:1.35;color:var(--k-ink)}
.shp.shp .shp__grp a:last-child{border-bottom:0}
.shp.shp .shp__grp a:hover{color:var(--k-terra)}
.shp.shp .shp__grp--two{grid-template-columns:1fr 1fr;column-gap:16px}
.shp.shp .shp__grp--two .shp__h{grid-column:1/-1}
.shp.shp .shp__grp--two a{border-bottom:0;padding:6px 0}
.shp.shp .shp__row{display:grid;grid-template-columns:1fr auto;gap:8px}
.shp.shp .shp__btn{display:flex;align-items:center;justify-content:center;height:48px;padding:0 16px;border-radius:999px;background:var(--k-terra);color:#fff;font-weight:800;font-size:15px;line-height:1;white-space:nowrap;cursor:pointer;width:100%}
.shp.shp .shp__btn:hover{background:var(--k-terra-d);color:#fff}
.shp.shp .shp__acc{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 18px;border-radius:999px;border:1px solid var(--k-line);color:var(--k-ink);font-weight:700;font-size:15px;white-space:nowrap}
.shp.shp .shp__acc:hover{border-color:var(--k-ink-3)}
.shp.shp .shp__acc svg{width:18px;height:18px;flex:none}
.shp.shp .shp__msgr{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.shp.shp .shp__msgr a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border-radius:14px;background:var(--k-paper);color:var(--k-ink);font-size:13px;font-weight:700;text-align:center}
.shp.shp .shp__msgr a:hover{background:var(--k-sand)}
.shp.shp .shp__msgr img{display:block;width:32px;height:32px;border-radius:0}
@media (max-width:900px){
  header.shp.shp{padding-top:8px}
  .shp.shp .shp__nav,.shp.shp .shp__login{display:none}
  .shp.shp .shp__bar{gap:8px;padding:8px 8px 8px 14px}
  .shp.shp .shp__logo img{height:26px}
  .shp.shp .shp__cta{margin-left:auto;padding:0 16px}
  .shp.shp .shp__cta--long{display:none}
  .shp.shp .shp__cta .l{display:none}
  .shp.shp .shp__cta .s{display:inline}
  .shp.shp .shp__burger{width:44px;padding:0;margin-left:auto}
  .shp.shp .shp__cta+.shp__burger{margin-left:0}
  /* 20.11 v3: длинная кнопка на телефоне скрыта, бургер прижимаем вправо (иначе вставал у логотипа) */
  .shp.shp .shp__cta--long+.shp__burger{margin-left:auto}
  .shp.shp .shp__burger .t{display:none}
  .shp.shp .shp__menu{left:0;width:auto;max-height:calc(100vh - 84px);max-height:calc(100dvh - 84px)}
}
@media (max-width:360px){.shp.shp .shp__cta{padding:0 12px;font-size:13px}.shp.shp .shp__logo img{height:22px}}

/* ---------- Подвал ---------- */
footer.pdv.pdv{display:block;position:relative;z-index:auto;box-sizing:border-box;width:100%;max-width:none;margin:0;padding:56px max(16px,env(safe-area-inset-right,0px)) calc(28px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));background:var(--k-ink);border:0;border-radius:0;box-shadow:none;flex:none;align-self:stretch;justify-self:stretch;grid-column:1/-1;font-family:var(--k-font);font-size:15px;font-weight:400;line-height:1.5;color:var(--k-on-2);text-align:left;-webkit-font-smoothing:antialiased;font-variant-numeric:lining-nums}
.pdv.pdv .pdv__in{max-width:1180px;margin:0 auto}
.pdv.pdv a{color:var(--k-on-2)}
.pdv.pdv a:hover{color:var(--k-on);text-decoration:underline}
.pdv.pdv a:focus-visible{outline:3px solid rgba(232,180,154,.6);outline-offset:2px}
.pdv.pdv .pdv__top{display:grid;grid-template-columns:1.2fr .9fr 1.15fr 1.25fr;gap:32px 40px;padding-bottom:40px;border-bottom:1px solid var(--k-on-line)}
.pdv.pdv .pdv__logo{display:inline-block;width:150px}
.pdv.pdv .pdv__logo img{display:block;width:100%;height:auto;border-radius:0}
.pdv.pdv .pdv__slogan{margin:16px 0 8px;font-weight:700;font-size:18px;line-height:1.35;color:var(--k-on)}
.pdv.pdv .pdv__about{font-size:14px;color:var(--k-on-3);max-width:32ch}
.pdv.pdv a.pdv__btn{display:inline-flex;align-items:center;height:46px;margin-top:20px;padding:0 22px;border-radius:999px;background:var(--k-on);color:var(--k-ink);font-weight:800;font-size:15px;line-height:1;white-space:nowrap}
.pdv.pdv a.pdv__btn:hover{background:#fff;color:var(--k-ink);text-decoration:none}
.pdv.pdv .pdv__soc{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:20px;font-size:14px}
.pdv.pdv .pdv__soc a{display:inline-flex;align-items:center;gap:8px}
.pdv.pdv .pdv__soc img{display:block;width:20px;height:20px}
.pdv.pdv .pdv__h{margin:0 0 14px;font-size:16px;font-weight:800;line-height:1.3;color:var(--k-on)}
.pdv.pdv ul{display:grid;gap:10px}
.pdv.pdv .pdv__ico a,.pdv.pdv .pdv__ico li>span{display:flex;align-items:center;gap:10px}
.pdv.pdv .pdv__ico img,.pdv.pdv .pdv__ico svg{display:block;width:24px;height:24px;flex:none}
.pdv.pdv .pdv__ico svg{color:var(--k-on)}
.pdv.pdv .pdv__ico small{display:block;font-size:13px;line-height:1.35;color:var(--k-on-3)}
.pdv.pdv .pdv__legal{display:grid;gap:6px;padding:28px 0 18px;font-size:14px;color:var(--k-on-3)}
.pdv.pdv .pdv__legal b{font-weight:700;color:var(--k-on)}
.pdv.pdv .pdv__legal a{color:var(--k-on);text-decoration:underline}
.pdv.pdv .pdv__cookie{margin:0 0 22px;max-width:110ch;font-size:12.5px;color:var(--k-on-3)}
.pdv.pdv .pdv__cookie a{color:inherit;text-decoration:underline}
.pdv.pdv .pdv__bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:20px;border-top:1px solid var(--k-on-line);font-size:13px;color:var(--k-on-3)}
.pdv.pdv .pdv__age{padding:2px 8px;border:1.5px solid var(--k-on-3);border-radius:6px;font-size:15px;font-weight:800;color:var(--k-on)}
@media (max-width:900px){
  .pdv.pdv .pdv__top{grid-template-columns:1fr 1fr}
  .pdv.pdv .pdv__brand,.pdv.pdv .pdv__contacts{grid-column:1/-1}
  .pdv.pdv .pdv__contacts ul{grid-template-columns:1fr 1fr;column-gap:24px}
}
@media (max-width:560px){
  footer.pdv.pdv{padding-top:40px}
  .pdv.pdv .pdv__top{grid-template-columns:1fr;gap:28px}
  .pdv.pdv .pdv__contacts ul{grid-template-columns:1fr}
  .pdv.pdv .pdv__school ul{grid-template-columns:1fr 1fr;column-gap:16px}
}
@media print{header.shp.shp,footer.pdv.pdv{display:none}}
