/* Меню v4, карта сайта в подвале и хлебные крошки (php/src/SiteNav.php, site/redesign/nav/nav.js). Стиль «Табло»:
   без скруглений и теней, фиолетовый логотипа #5d2e8e / #3e286a, светло-сиреневый #ece3f0. Подключается последним стилем,
   после style.css, pages.css и site-tablo.css, поэтому перебивает их без лишних !important.
   Контраст: #3e286a на белом ≈ 11:1, #5d2e8e на белом ≈ 8:1, белый на #5d2e8e ≈ 8:1. */
.site-header { --nav-panel: #fff; --nav-ink: #1b1530; --nav-mute: #5b5266; --nav-line: rgba(62, 40, 106, .18); --nav-hover: #ece3f0; --nav-accent: #5d2e8e; }
html[data-theme="dark"] .site-header { --nav-panel: #111827; --nav-ink: #f7fbff; --nav-mute: #aebacc; --nav-line: rgba(255, 255, 255, .16); --nav-hover: rgba(165, 129, 186, .2); --nav-accent: #d9b8f0; }

/* ---------- строка меню (компьютер, от 1280 px) ---------- */
.site-header .nav { position: relative; }
.nav__links .nav-item { position: relative; display: inline-flex; align-items: center; }
.nav__links .nav-item--mega { position: static; }
.nav__links .nav-label { display: inline-flex; align-items: center; min-height: 38px; padding: 0 4px 0 clamp(8px, 1vw, 14px); font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--nav-ink); }
html body .site-header .nav__links .nav-item > a { padding-right: 2px; }
.nav__links .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 38px; margin: 0 0 0 -2px; padding: 0; border: 0; background: none; color: var(--nav-ink); cursor: pointer; }
.nav__links .nav-toggle svg { width: 12px; height: 12px; transition: transform .15s ease; }
.nav__links .nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__links .nav-toggle:hover, .nav__links .nav-toggle[aria-expanded="true"] { color: var(--nav-accent); }
.nav__links .nav-toggle:focus-visible, .nav__links .nav-sub a:focus-visible, .nav-bar a:focus-visible, .nav-contacts a:focus-visible, .site-crumbs a:focus-visible { outline: 2px solid var(--nav-accent, #5d2e8e); outline-offset: 2px; }

.nav__links .nav-sub { position: absolute; z-index: 60; top: 100%; left: 0; min-width: 260px; margin-top: 0; padding: 8px 0; background: var(--nav-panel); color: var(--nav-ink); border: 1px solid var(--nav-line); border-top: 2px solid var(--nav-accent); }
.nav__links .nav-sub[hidden] { display: none; }
.nav__links .nav-item:nth-last-child(-n+2) > .nav-sub { left: auto; right: 0; }
.nav__links .nav-list, .nav__links .nav-col ul { display: block; margin: 0; padding: 0; list-style: none; }
html body .site-header .nav__links .nav-sub a { display: flex; justify-content: flex-start; width: auto; min-height: 40px; padding: 8px 18px; border-radius: 0; font-size: 15px; font-weight: 400 !important; line-height: 1.3; white-space: normal; color: var(--nav-ink) !important; background: none !important; text-decoration: none; text-align: left; }
html body .site-header .nav__links .nav-sub a:hover { background: var(--nav-hover) !important; color: var(--nav-accent) !important; }
html body .site-header .nav__links .nav-sub a[aria-current="page"] { color: var(--nav-accent) !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* мега-меню «Перевозки»: четыре колонки на всю ширину строки */
.nav__links .nav-sub--mega { left: 0; right: 0; min-width: 0; padding: 0; }
.nav__links .nav-mega { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nav__links .nav-col { padding: 22px 24px 20px; border-right: 1px solid var(--nav-line); min-width: 0; }
.nav__links .nav-col:last-child { border-right: 0; }
.nav__links .nav-col__h { margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--nav-mute); }
.nav__links .nav-col__t { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--nav-mute); }
html body .site-header .nav__links .nav-col ul a { padding-left: 0; padding-right: 0; }
.nav__links .nav-col--map { background: rgba(236, 227, 240, .5); }
.nav__links .nav-globe { display: block; width: 64px; height: 64px; margin-bottom: 10px; color: var(--nav-accent); }
html body .site-header .nav__links .nav-sub .nav-col__go { display: inline-flex; padding: 8px 0; min-height: 40px; color: var(--nav-accent) !important; font-weight: 500 !important; background: none !important; text-decoration: none; }
html body .site-header .nav__links .nav-sub .nav-col__go:hover { text-decoration: underline; text-underline-offset: 4px; }
html body .site-header .nav__links .nav-sub .nav-col__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 0; background: #5d2e8e !important; color: #fff !important; font-weight: 500 !important; text-decoration: none; }
html body .site-header .nav__links .nav-sub .nav-col__btn:hover { background: #3e286a !important; }

/* ---------- телефон и WhatsApp: шапка (компьютер) и полоса внизу экрана вместе с «Рассчитать» (до 1279 px) ---------- */
.nav-bar, .nav-contacts { display: none; }
html.has-nav-cta .g-sticky { display: none !important; }

/* ---------- телефон и планшет (до 1279 px): список с раскрытием ---------- */
@media (max-width: 1279px) {
  html body .site-header .nav__links { position: fixed; inset: var(--nav-h, 76px) 0 0 0; display: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 0 16px 96px; overflow-y: auto; border-radius: 0; background: var(--nav-panel) !important; border: 0 !important; border-top: 1px solid var(--nav-line) !important; box-shadow: none; z-index: 70; }
  body.menu-open .site-header .nav__links { display: flex !important; }
  html body .site-header .menu-toggle { display: block; }
  html body .site-header .nav__actions .button { display: none; }
  .nav__links .nav-item, .nav__links .nav-item--mega { position: static; display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid var(--nav-line); }
  html body .site-header .nav__links .nav-item > a, .nav__links .nav-label { flex: 1 1 0; min-width: 0; min-height: 52px; padding: 0 4px; justify-content: flex-start; font-size: 17px; font-weight: 500 !important; }
  .nav__links .nav-toggle { width: 52px; height: 52px; margin: 0; }
  .nav__links .nav-toggle svg { width: 16px; height: 16px; }
  .nav__links .nav-sub, .nav__links .nav-item:nth-last-child(-n+2) > .nav-sub { position: static; flex: 0 0 100%; min-width: 0; margin: 0 0 8px; padding: 0; border: 0; border-left: 2px solid var(--nav-accent); background: none; }
  .nav__links .nav-mega { display: block; }
  .nav__links .nav-col { padding: 8px 0 8px 14px; border-right: 0; }
  .nav__links .nav-col--map { background: none; }
  .nav__links .nav-col--map .nav-globe { display: none; }
  html body .site-header .nav__links .nav-sub a { min-height: 44px; padding: 10px 14px; font-size: 16px; }
  html body .site-header .nav__links .nav-col ul a { padding-left: 0; }
  .nav-bar { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: flex; padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid rgba(62, 40, 106, .18); font: 500 15px/1 "Tilda Sans", "Onest", system-ui, sans-serif; }
  .nav-bar a { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; padding: 0 4px; text-decoration: none; white-space: nowrap; }
  .nav-bar__c { color: #3e286a; border-right: 1px solid rgba(62, 40, 106, .18); }
  .nav-bar__c:last-child { border-right: 0; }
  .nav-bar__c:hover { background: #ece3f0; color: #3e286a; }
  .nav-bar__c svg { flex: 0 0 auto; width: 18px; height: 18px; }
  .nav-fixed-cta { background: #5d2e8e; color: #fff; }
  .nav-fixed-cta:hover { background: #3e286a; color: #fff; }
  html.has-nav-cta body .site-shell, html.has-nav-cta body .page { padding-bottom: 56px; }
}
@media (min-width: 1280px) {
  html body .site-header .container.nav { width: min(1360px, calc(100% - 32px)); }   /* семь пунктов с раскрытием — шире прежних 1180 px, как в макете */
  html body .site-header .nav__actions .button { padding: 0 16px; }
  html body .site-header .nav__links { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 0; padding: 0; }
  html body .site-header .nav__links .nav-item > a, html body .site-header .nav__links .nav-label { white-space: nowrap; padding: 0 2px 0 clamp(8px, .9vw, 13px); font-size: 15px; }
}
@media (max-width: 359px) { .nav-bar__c svg { display: none; } }
/* шапка: номер виден от 1360 px, WhatsApp — значок; на 1280–1359 px места нет — оба значками */
@media (min-width: 1280px) {
  .nav-contacts { display: flex; align-items: center; gap: 4px; }
  html body .site-header .nav-contacts a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid rgba(62, 40, 106, .18); background: transparent; color: #3e286a; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none; }
  html body .site-header .nav-contacts a:hover { background: #ece3f0; }
  .nav-contacts span { display: none; }
  html body .site-header .nav__actions .button { min-width: 0; }
}
@media (min-width: 1280px) and (max-width: 1599px) {
  html body .site-header .nav__links .nav-item > a, html body .site-header .nav__links .nav-label { font-size: 14px; padding-left: 4px; }
  html body .site-header .logo img { width: 168px; }
  html body .site-header .container.nav { gap: 8px; }
  html body .site-header .nav__actions { gap: 4px; }
}
@media (min-width: 1360px) {
  html body .site-header .nav-contacts .nav-contacts__tel { padding: 0 10px; }
  .nav-contacts .nav-contacts__tel span { display: inline; }
  .nav-contacts .nav-contacts__tel svg { display: none; }
}
@media (min-width: 1400px) and (max-width: 1599px) { html body .site-header .nav__links .nav-item > a, html body .site-header .nav__links .nav-label { padding-left: 8px; } }
@media (min-width: 1600px) {
  html body .site-header .container.nav { width: min(1460px, calc(100% - 32px)); }
  html body .site-header .nav__links .nav-item > a, html body .site-header .nav__links .nav-label { padding-left: 8px; }
}
html[data-theme="dark"] body .site-header .nav-contacts a { color: #ece3f0; border-color: rgba(165, 129, 186, .4); }
html[data-theme="dark"] body .site-header .nav-contacts a:hover { background: rgba(165, 129, 186, .18); }
html[data-theme="dark"] .nav-bar { background: #111827; border-top-color: rgba(165, 129, 186, .4); }
html[data-theme="dark"] .nav-bar__c { color: #ece3f0; border-right-color: rgba(165, 129, 186, .4); }
html[data-theme="dark"] .nav-bar__c:hover { background: #111827; color: #d9b8f0; }

/* ---------- карта сайта в подвале: 5 колонок по дереву ---------- */
.footer__map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 24px; padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line-dark, rgba(255, 255, 255, .14)); }
.footer__map-col h3 { margin: 0 0 12px; font-size: 16px; font-weight: 500; }
.footer__map-col h3 a { color: #fff; }
.footer__map-col ul { gap: 8px; }
.footer__map-col a { font-size: 14px; line-height: 1.35; }
@media (max-width: 1020px) { .footer__map { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .footer__map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .footer__map { grid-template-columns: minmax(0, 1fr); } }

/* ---------- хлебные крошки на страницах разделов ---------- */
.site-crumbs { padding-top: 22px; padding-bottom: 0; }
.site-crumbs .a-crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #5b5266); }
.site-crumbs .a-crumbs li + li::before { content: "›"; margin: 0 8px; opacity: .6; }
.site-crumbs .a-crumbs a { color: inherit; text-decoration: none; }
.site-crumbs .a-crumbs a:hover { color: #5d2e8e; text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .site-crumbs .a-crumbs a:hover { color: #d9b8f0; }
