/* ---------- каркас ---------- */
.app { min-height: 100vh; padding-left: calc(var(--side-w) + 32px); }
.page { max-width: 1240px; margin: 0 auto; padding: 36px 40px 72px 8px; }
.page-head { display: grid; gap: 10px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 44px); }
.page-head p { color: var(--text-2); max-width: 62ch; }
.crumbs { font: 600 13px/1.4 var(--f-head); color: var(--text-2); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs b { color: var(--text); }
.section { margin-top: 56px; }
.section > h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 18px; }

/* ---------- левая панель (ПК) ---------- */
.side {
  position: fixed; z-index: 30; left: 16px; top: 16px; bottom: 16px; width: var(--side-w);
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-s);
  display: flex; flex-direction: column; align-items: center; padding: 14px 0 12px; gap: 4px;
}
.logo {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  display: grid; place-items: center; font: 800 16px var(--f-head); letter-spacing: -.02em;
  box-shadow: 0 6px 16px rgba(217, 101, 59, .35);
}
.nav-item {
  position: relative; width: 70px; padding: 9px 0 7px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-2); font: 600 11px/1.15 var(--f-head); text-align: center;
  transition: color .2s ease, background-color .2s ease;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item[aria-current="page"] { color: var(--accent-text); }
.nav-pill {
  position: absolute; left: 7px; width: 70px; border-radius: 12px; background: var(--accent-soft);
  transition: top .38s var(--ease-spring), height .3s ease, opacity .2s; pointer-events: none; z-index: -1;
}
.side .grow { flex: 1; }
.side .nav-item.tool { padding: 8px 0 6px; }

/* ---------- нижняя панель (телефон) ---------- */
.bottom { display: none; }
.sheet-scrim { display: none; }

/* ---------- подвал ---------- */
.footer {
  margin-top: 72px; padding: 26px 28px; border-radius: var(--r-l);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start;
}
.footer h3 { font-size: 18px; margin-bottom: 6px; }
.footer p { font-size: 14.5px; color: var(--text-2); }
.footer dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; font-size: 14.5px; }
.footer dt { color: var(--text-2); }
.footer dd { margin: 0; font-weight: 500; }

@media screen and (max-width: 1023px) {
  :root { --side-w: 64px; }
  .nav-item { width: 52px; font-size: 0; gap: 0; padding: 11px 0; }
  .nav-pill { left: 5px; width: 52px; }
  .page { padding: 28px 24px 64px 4px; }
}

@media screen and (max-width: 767px) {
  .app { padding-left: 0; }
  .side { display: none; }
  .page { padding: 16px 16px 120px; }
  .page-head { margin-bottom: 20px; }
  .section { margin-top: 40px; }
  .bottom {
    display: flex; position: fixed; z-index: 40; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    height: 64px; padding: 0 6px; border-radius: 18px;
    background: var(--panel); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--line); box-shadow: var(--shadow-m);
    justify-content: space-around; align-items: center;
  }
  .bottom .nav-item { width: auto; min-width: 58px; font-size: 11px; gap: 3px; padding: 7px 6px 5px; }
  .bottom .nav-item[aria-current="page"] { background: var(--accent-soft); }
  .sheet-scrim { display: block; position: fixed; inset: 0; z-index: 45; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .sheet-scrim.open { opacity: 1; pointer-events: auto; }
  .footer { grid-template-columns: 1fr; padding: 20px; margin-top: 48px; }
}
