/* КОПИЯ prototypes-journal/system/site-chrome.css. Здесь не править: node tools/sync-chrome.mjs */
/* ============================================================
   ЭЙРА · общий каркас сайта: шапка, подвал, крошки, полоса проекта.
   Источник: prototypes-journal/system/site-chrome.css (рядом с tokens-v2.css).
   Копии: prototypes-b2b/assets/ds/ (tools/sync.mjs),
          prototypes-scroll/configurator/assets/chrome/ (tools/sync-chrome.mjs).
   Классы с приставкой ec-, чтобы не задеть классы страниц
   (у конфигуратора свои .tool, .steps, .sheet, .nums).
   Значения из tokens-v2.css; запасные числа на случай страницы без них.
   Шапка 68px, подвал на стене (не тёмный), теней и пилюль нет.
   ============================================================ */
:root { --ec-page: clamp(20px, 5vw, 72px); } /* поля шапки и подвала одни на всех страницах, как --page в tokens-v2 */
.ec-skip { position: absolute; left: 8px; top: -60px; background: var(--ink, #0f2226); color: #fff; padding: 10px 14px; border-radius: var(--radius, 3px); z-index: 100; text-decoration: none; }
.ec-skip:focus { top: 8px; }
.ec-in { max-width: calc(var(--max, 1440px) + 2 * var(--ec-page)); margin-inline: auto; padding-inline: var(--ec-page); }

/* ---------- шапка ---------- */
.ec-top { position: sticky; top: 0; z-index: 50; background: var(--ground, #e5e5dc); border-bottom: 1px solid var(--line, #c3c4b7); }
.ec-top .ec-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.ec-logo { display: block; flex: none; }
.ec-logo img { display: block; height: 30px; width: auto; }
.ec-nav ul { display: flex; gap: clamp(16px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.ec-nav a { display: block; text-decoration: none; font: 400 15px/1.2 var(--font-sans, "Golos Text", system-ui, sans-serif); color: var(--ink-2, #33494c); padding: 12px 0 11px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.ec-nav a:hover { color: var(--tide, #2f6f6b); }
.ec-nav a[aria-current="page"] { color: var(--ink, #0f2226); border-bottom-color: var(--ink, #0f2226); }
.ec-cta { font: 500 15px/1.2 var(--font-sans, "Golos Text", system-ui, sans-serif); color: var(--tide, #2f6f6b); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--tide, #2f6f6b) 55%, transparent); white-space: nowrap; padding: 12px 0; }
.ec-cta:hover { color: var(--tide-strong, #245a57); text-decoration-color: currentColor; }
.ec-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; padding: 0; cursor: pointer; }
.ec-burger span { display: block; width: 22px; height: 1px; background: var(--ink, #0f2226); position: relative; }
.ec-burger span::before, .ec-burger span::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--ink, #0f2226); }
.ec-burger span::before { top: -6px; }
.ec-burger span::after { top: 6px; }
.ec-menu { display: none; border-top: 1px solid var(--line, #c3c4b7); background: var(--ground, #e5e5dc); padding: 4px var(--ec-page) 24px; }
.ec-menu.open { display: grid; }
.ec-menu a { display: block; text-decoration: none; font: 500 22px/1 var(--font-display, "Onest", system-ui, sans-serif); letter-spacing: -0.01em; padding: 16px 0; border-bottom: 1px solid var(--line, #c3c4b7); color: var(--ink, #0f2226); }
.ec-menu a[aria-current="page"] { color: var(--tide, #2f6f6b); }
.ec-menu a.ec-menu__small { font: 400 16px/1.3 var(--font-sans, "Golos Text", system-ui, sans-serif); color: var(--ink-2, #33494c); }
@media (max-width: 959px) {
  .ec-nav, .ec-cta { display: none; }
  .ec-burger { display: flex; }
  .ec-top .ec-in { min-height: 56px; }
}

/* ---------- крошки ---------- */
.ec-crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding-top: 16px; font-size: var(--t-small, 14px); color: var(--muted, #4f6364); }
.ec-crumbs a { text-decoration: none; padding: 8px 0; color: inherit; }
.ec-crumbs a:hover { color: var(--tide, #2f6f6b); }
.ec-crumbs span { padding: 8px 0; }
.ec-crumbs span[aria-hidden] { color: var(--line-strong, #787d72); }
@media (max-width: 600px) { .ec-crumbs { padding-top: 10px; font-size: 13px; gap: 0 10px; } .ec-crumbs a, .ec-crumbs span { padding: 4px 0; } }
.ec-crumbs [aria-current="page"] { color: var(--ink-2, #33494c); }

/* ---------- полоса «Ваш проект»: под шапкой на широком экране ---------- */
.ec-pbar { position: sticky; top: 69px; z-index: 45; background: var(--paper, #eeeee6); border-bottom: 1px solid var(--line, #c3c4b7); font-size: var(--t-small, 14px); color: var(--ink-2, #33494c); }
.ec-pbar .ec-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; min-height: 44px; }
.ec-pbar__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-width: 0; flex: 1; }
.ec-pbar__t b { font: 500 14px/1.3 var(--font-display, "Onest", system-ui, sans-serif); color: var(--ink, #0f2226); }
.ec-pbar__t a { color: inherit; text-decoration: none; }
.ec-pbar__t a:hover { color: var(--tide, #2f6f6b); }
.ec-pbar__sum { font: 500 14px/1.3 var(--font-display, "Onest", system-ui, sans-serif); color: var(--ink, #0f2226); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-pbar__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.ec-pbar__acts .textlink, .ec-pbar__acts a { font-size: 14px; min-height: 40px; }
.ec-pbar .btn { min-height: 36px; padding: 0 16px; font-size: 14px; }
@media (max-width: 959px) {
  .ec-pbar { display: none; }
  .ec-top + .ec-pbar { display: none; }
}

/* ---------- нижняя полоса на телефоне: проект и одно действие ---------- */
.ec-dock { display: none; }
@media (max-width: 959px) {
  .ec-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px var(--ec-page) calc(10px + env(safe-area-inset-bottom)); background: var(--paper, #eeeee6); border-top: 1px solid var(--line-strong, #787d72); transform: translateY(110%); transition: transform .45s var(--ease, cubic-bezier(.16,1,.3,1)); }
  .ec-dock.on { transform: none; }
  .ec-dock.bare { background: transparent; border-top: 0; padding-top: 0; }
  .ec-dock__t { min-width: 0; display: grid; gap: 2px; text-decoration: none; color: var(--ink, #0f2226); }
  .ec-dock__t small { font: 400 12px/1.2 var(--font-sans, "Golos Text", system-ui, sans-serif); color: var(--muted, #4f6364); }
  .ec-dock__t b { font: 500 17px/1.15 var(--font-display, "Onest", system-ui, sans-serif); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ec-dock .btn { flex: none; padding: 0 18px; }
  .ec-dock.bare .btn { flex: 1; }
  .ec-dock .textlink { flex: none; font-size: 15px; }
  body.has-dock { padding-bottom: 84px; }
}

/* ---------- подвал: на стене, не на тёмном ---------- */
.ec-foot { border-top: 1px solid var(--line, #c3c4b7); background: var(--ground, #e5e5dc); color: var(--ink, #0f2226); padding-block: clamp(56px, 7vw, 104px) 32px; font-family: var(--font-sans, "Golos Text", system-ui, sans-serif); }
.ec-cols { display: grid; gap: 32px var(--gutter, 24px); grid-template-columns: 1fr 1fr; }
.ec-brand { grid-column: 1 / -1; max-width: 34ch; }
.ec-brand img { display: block; height: 30px; width: auto; }
.ec-brand p { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2, #33494c); }
.ec-foot h2 { font: 500 15px/1.2 var(--font-display, "Onest", system-ui, sans-serif); letter-spacing: 0; margin: 0 0 12px; color: var(--ink, #0f2226); }
.ec-foot ul { list-style: none; margin: 0; padding: 0; }
.ec-foot ul a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink-2, #33494c); font-size: 15px; transition: color .2s; }
.ec-foot ul a:hover { color: var(--tide, #2f6f6b); }
.ec-legal { margin-top: clamp(40px, 5vw, 72px); padding-top: 24px; border-top: 1px solid var(--line, #c3c4b7); display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 13px; }
.ec-legal a { color: var(--muted, #4f6364); text-decoration: none; }
.ec-legal a:hover { color: var(--tide, #2f6f6b); }
.ec-line { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted, #4f6364); }
.ec-line p { margin: 0; }
.ec-line a { color: inherit; }
@media (min-width: 900px) {
  .ec-cols { grid-template-columns: 5fr 2fr 2fr 3fr; }
  .ec-brand { grid-column: auto; }
}
@media print { .ec-top, .ec-foot, .ec-pbar, .ec-dock, .ec-crumbs, .ec-skip { display: none !important; } }
