/* ============================================================
   gasbase / FSE — хедер с меню
   Требует токены --gb-* (colors / typography / spacing / fonts).
   Точка перелома десктоп → мобильная: 1120px (та же в gb-header.js).
   ============================================================ */

.gb-container { max-width: 1240px; margin: 0 auto; padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px); }

.gb-header { font-family: var(--gb-font-sans); }
.gb-header a { text-decoration: none; }

/* ---------- утилити-бар ---------- */
.gb-utility { background: var(--gb-ink-900); color: var(--gb-ink-300); font-size: 13px; }
.gb-utility.is-hidden { display: none; }
.gb-utility__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.gb-utility__left, .gb-utility__right { display: flex; align-items: center; gap: 18px; }
.gb-geo { display: inline-flex; align-items: center; gap: 6px; color: var(--gb-ink-200); }
.gb-utility__lic { color: var(--gb-ink-400); }
.gb-utility a { color: var(--gb-ink-200); }
.gb-utility a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- основная строка ---------- */
.gb-bar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gb-border); }
.gb-bar__in { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.gb-logo { flex: none; display: inline-flex; align-items: center; }
.gb-logo img { height: 36px; width: auto; display: block; }

.gb-nav { display: flex; align-items: stretch; gap: 2px; flex: 1; margin-left: 8px; }
.gb-nav__item { position: relative; display: flex; align-items: center; }
.gb-nav__link { display: inline-flex; align-items: center; height: 44px; padding: 0 11px; font-size: 15px; font-weight: 600;
  color: var(--gb-ink-900); border-radius: var(--gb-radius-sm); transition: background 140ms ease; }
.gb-nav__item:hover .gb-nav__link { background: var(--gb-ink-50); }
.gb-nav__item.is-active .gb-nav__link { color: var(--gb-signal-600); box-shadow: inset 0 -3px 0 var(--gb-signal-500); }

/* выпадающее меню: пункт + строка выгоды, опциональная плашка с оффером */
.gb-drop { position: absolute; top: 100%; left: 0; display: none; gap: 12px; padding: 10px; max-width: min(92vw, 900px);
  background: #fff; border: 1px solid var(--gb-border); border-radius: var(--gb-radius-md); box-shadow: var(--gb-shadow-lg); }
.gb-nav__item:hover .gb-drop, .gb-nav__item:focus-within .gb-drop { display: flex; }
.gb-drop__list { display: grid; grid-template-columns: minmax(300px, 340px); gap: 2px; align-content: start; }
.gb-drop__list--2 { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
.gb-drop__list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--gb-radius-sm); }
.gb-drop__list a:hover { background: var(--gb-ink-50); }
.gb-drop__list b { font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--gb-text-strong); }
.gb-drop__list i { font-size: 13px; line-height: 1.35; font-style: normal; color: var(--gb-text-muted); }

.gb-promo { width: 260px; flex: none; display: flex; flex-direction: column; gap: 10px; padding: 20px;
  background: var(--gb-ink-900); border-radius: var(--gb-radius-md); }
.gb-promo__k { font-family: var(--gb-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gb-signal-500); }
.gb-promo__t { font-size: 17px; line-height: 1.25; font-weight: 700; color: #fff; }
.gb-promo__d { font-size: 14px; line-height: 1.45; color: var(--gb-ink-300); }
.gb-promo__a { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; color: #fff; }

/* телефон + кнопка */
.gb-bar__right { flex: none; display: flex; align-items: center; gap: 14px; }
.gb-phone { display: flex; flex-direction: column; align-items: flex-end; }
.gb-phone a { font-family: var(--gb-font-mono); font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--gb-ink-900); }
.gb-phone__note { font-size: 11px; color: var(--gb-text-muted); }

.gb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px;
  font-size: 15px; font-weight: 600; color: #fff; background: var(--gb-action); border: none;
  border-radius: var(--gb-radius-sm); cursor: pointer; transition: background 140ms ease, transform 100ms ease; }
.gb-btn:hover { background: var(--gb-action-hover); color: #fff; }
.gb-btn:active { transform: translateY(1px); }

/* ---------- мобильная ---------- */
.gb-mob-actions { display: none; flex: 1; align-items: center; justify-content: flex-end; gap: 10px; }
.gb-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gb-border-strong); border-radius: var(--gb-radius-sm); color: var(--gb-ink-900); }
.gb-burger { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--gb-ink-900); border: none; border-radius: var(--gb-radius-sm); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.gb-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.gb-burger.is-open span { width: 0; box-shadow: none; }
.gb-burger.is-open::before { content: '×'; font-size: 24px; }

.gb-sheet { position: fixed; left: 0; right: 0; top: 57px; bottom: 0; z-index: 98; display: flex; flex-direction: column;
  background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.gb-sheet[hidden] { display: none; }
.gb-sheet__body { padding: 8px clamp(16px, 4vw, 24px) 0; display: flex; flex-direction: column; }
.gb-acc { border-bottom: 1px solid var(--gb-divider); display: flex; flex-direction: column; }
.gb-acc__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px;
  padding: 14px 0; font-family: var(--gb-font-sans); font-size: 18px; font-weight: 700; color: var(--gb-ink-900);
  text-align: left; background: none; border: none; cursor: pointer; }
.gb-acc__sign { font-size: 20px; color: var(--gb-ink-400); transition: transform 150ms ease; }
.gb-acc.is-open .gb-acc__sign { transform: rotate(45deg); color: var(--gb-signal-500); }
.gb-acc__panel { display: none; flex-direction: column; padding-bottom: 12px; }
.gb-acc.is-open .gb-acc__panel { display: flex; }
.gb-acc__panel a { min-height: 48px; display: flex; align-items: center; font-size: 16px; line-height: 1.35; color: var(--gb-text-body); }
.gb-acc__panel a:first-child { font-weight: 600; color: var(--gb-signal-600); }
.gb-sheet__foot { display: flex; flex-direction: column; gap: 10px; padding: 22px clamp(16px, 4vw, 24px) 96px; }
.gb-sheet__phone { font-family: var(--gb-font-mono); font-size: 22px; font-weight: 700; color: var(--gb-ink-900); min-height: 44px; display: flex; align-items: center; }
.gb-sheet__note { font-size: 14px; color: var(--gb-text-muted); }
.gb-sheet__mail { font-size: 16px; min-height: 44px; display: flex; align-items: center; color: var(--gb-text-link); }
.gb-sheet__lic { font-size: 13px; line-height: 1.5; color: var(--gb-text-muted); padding-top: 4px; }
.gb-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.gb-pills a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; font-size: 15px;
  color: var(--gb-ink-900); border: 1px solid var(--gb-border-strong); border-radius: 999px; }

/* панель действий снизу */
.gb-dock { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 97;
  grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px clamp(12px, 4vw, 20px) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--gb-border); }
.gb-dock a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--gb-radius-sm); font-size: 16px; font-weight: 600; }
.gb-dock__call { border: 1px solid var(--gb-ink-900); color: var(--gb-ink-900); }
.gb-dock__cta { background: var(--gb-action); color: #fff; }
.gb-dock__cta:hover { color: #fff; }

@media (max-width: 1119px) {
  .gb-utility, .gb-nav, .gb-bar__right { display: none; }
  .gb-mob-actions { display: flex; }
  .gb-dock { display: grid; }
  /* страница должна оставить место под панель: body { padding-bottom: 72px } */
}

@media (min-width: 1120px) and (max-width: 1240px) {
  .gb-nav__link { padding: 0 9px; font-size: 14.5px; }
  .gb-phone__note { display: none; }
}
