.section--01-header { padding: 0; position: sticky; top: 0; z-index: var(--z-header); background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-1); transition: padding 200ms var(--ease-out); }
.section--01-header.is-shrunk { padding: 0; }
.s-header { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; height: 72px; position: relative; transition: height 200ms var(--ease-out); }
.s-header.is-shrunk { height: 56px; }
.s-header__nav > ul { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; flex-wrap: nowrap; }
.s-header__nav a { font: 500 15px var(--font-sans); color: var(--fg-1); transition: color 120ms; white-space: nowrap; }
.s-header__nav a:hover { color: var(--accent); }
.s-header__companies { position: relative; }
.s-header__companies-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--fg-1); font: 500 15px var(--font-sans); white-space: nowrap; }
.s-header__companies-toggle:hover { color: var(--accent); }
.s-header__companies-toggle svg { transition: transform 160ms var(--ease-out); }
.s-header__companies.is-open .s-header__companies-toggle svg { transform: rotate(180deg); }
.s-header__companies-pop { position: absolute; top: calc(100% + 17px); left: -14px; width: 244px; padding: 8px; background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-md, 14px); box-shadow: 0 16px 48px rgba(15,20,25,.14), 0 4px 12px rgba(15,20,25,.06); animation: city-pop-in 160ms var(--ease-out, ease); }
.s-header__companies-pop[hidden] { display: none; }
.s-header__companies-all { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; margin-bottom: 4px; border-radius: var(--r-sm, 10px); background: var(--surface-1); color: var(--fg-1); font-weight: 600; }
.s-header__companies-all:hover { color: var(--accent); }
.s-header__companies-list { display: grid; gap: 2px; padding: 0; margin: 0; list-style: none; }
.s-header__companies-list li a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: var(--r-sm, 10px); }
.s-header__companies-list li a:hover { background: var(--surface-1); color: var(--fg-1); }
.s-header__companies-mark { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--company-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--company-color) 15%, transparent); }
.s-header__actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.s-header__actions .btn { white-space: nowrap; }
.s-header__cta-short { display: none; }
.s-header__city-wrap { position: relative; }
.s-header__city { display: inline-flex; gap: 6px; align-items: center; min-width: 0; background: transparent; border: 1px solid var(--border-1); border-radius: var(--r-sm); padding: 8px 12px; font: 500 14px var(--font-sans); color: var(--fg-1); cursor: pointer; transition: border-color 120ms var(--ease-out), background 120ms var(--ease-out); max-width: 180px; }
.s-header__city > svg { flex-shrink: 0; }
.s-header__city span[data-js="city-select-label"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-header__city:hover { border-color: var(--fg-1); }
.s-header__city-wrap.is-open .s-header__city { border-color: var(--fg-1); background: var(--surface-1); }
.s-header__city-chev { transition: transform 200ms var(--ease-out); opacity: 0.5; }
.s-header__city-wrap.is-open .s-header__city-chev { transform: rotate(180deg); opacity: 1; }

.s-header__city-pop {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-md, 14px);
  width: 320px; max-width: calc(100vw - 32px);
  box-shadow: 0 16px 48px rgba(15,20,25,0.14), 0 4px 12px rgba(15,20,25,0.06);
  padding: 8px; z-index: calc(var(--z-header) + 1);
  display: flex; flex-direction: column; gap: 6px;
  animation: city-pop-in 160ms var(--ease-out, ease);
}
.s-header__city-pop[hidden] { display: none; }
@keyframes city-pop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.s-header__city-search { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--border-1); border-radius: var(--r-sm, 10px); }
.s-header__city-search i { color: var(--fg-3); flex-shrink: 0; }
.s-header__city-search input { flex: 1; border: 0; outline: 0; font: 400 14px var(--font-sans); background: transparent; color: var(--fg-1); min-width: 0; }
.s-header__city-search input::placeholder { color: var(--fg-3); }

.s-header__city-list { list-style: none; padding: 0; margin: 0; max-height: 320px; overflow-y: auto; }
.s-header__city-list li a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm, 10px);
  font: 500 14px var(--font-sans); color: var(--fg-1);
  text-decoration: none; transition: background 120ms;
}
.s-header__city-list li a:hover { background: var(--surface-1); }
.s-header__city-list li[aria-selected="true"] a { background: rgba(255,84,54,0.08); color: var(--accent); }
.s-header__city-list li small { font: 500 12px var(--font-sans); color: var(--fg-3); }
.s-header__city-list li[aria-selected="true"] small { color: var(--accent); opacity: 0.7; }

.s-header__city-empty { font-size: 13px; color: var(--fg-3); text-align: center; padding: 12px; margin: 0; }

.s-header__burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border-1); border-radius: var(--r-sm); padding: 0; color: var(--fg-1); }
@media (max-width: 1024px) {
  .s-header__burger { display: inline-flex; }
  .s-header__nav { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 12px 24px 20px; background: var(--surface-0); border-bottom: 1px solid var(--border-1); box-shadow: var(--shadow-2); }
  .s-header.is-open .s-header__nav { display: block; }
  .s-header__nav > ul { flex-direction: column; gap: 0; }
  .s-header__nav a { display: block; padding: 13px 0; }
  .s-header__companies-toggle { width: 100%; justify-content: space-between; padding: 13px 0; }
  .s-header__companies-pop { position: static; width: auto; margin: 0 0 8px; box-shadow: none; border-radius: var(--r-sm); background: var(--surface-1); }
}
@media (max-width: 720px) {
  .s-header { height: 56px; gap: 8px; }
  .s-header__logo img { height: 24px; width: auto; }
  .s-header__actions { gap: 8px; min-width: 0; }
  .s-header__city { max-width: 88px; padding: 8px 9px; gap: 4px; }
  .s-header__city-chev { display: none; }
  .s-header__cta-full { display: none; }
  .s-header__cta-short { display: inline; }
  .s-header .btn { padding: 9px 12px; font-size: 14px; }
  .s-header__city-pop { right: -56px; width: 280px; }
}
@media (max-width: 375px) {
  .s-header__city span[data-js="city-select-label"] { display: none; }
  .s-header__city { width: 42px; }
  .s-header__cta { display: none; }
}
