/* ============================================
   МОБИЛЬНАЯ ШАПКА — общие стили для всех страниц
   ============================================ */
.header__logo-img--mobile { display: none; }
.header__mobile-right { display: none; }

/* Двухстрочные контакты в выпадашке */
.header__contact-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.header__contact-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.header__contact-value { font-size: 14px; font-weight: 600; color: var(--dark); }

@media (max-width: 768px) {
  .header { top: 8px; width: calc(100% - 16px); border-radius: 14px; }
  .header.scrolled { max-width: none; }
  .header__inner {
    grid-template-columns: auto 1fr auto;
    padding: 0 12px;
    height: 56px;
    gap: 8px;
  }

  .header__logo img.header__logo-img--desktop { display: block; height: 23px; width: auto; }
  .header__logo img.header__logo-img--mobile { display: none; }

  .header__nav,
  .header__right,
  .header__contact-compact { display: none !important; }

  .header__center { gap: 6px; justify-self: center; }

  .header__home,
  .header.scrolled .header__home {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .header__home svg { width: 16px; height: 16px; }

  .header__dropdown-wrap,
  .header.scrolled .header__dropdown-wrap {
    max-width: none;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
  }
  .header__dropdown-toggle {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
    gap: 4px;
  }
  .header__dropdown-menu { right: auto; left: 50%; transform: translate(-50%, -8px); min-width: 240px; white-space: nowrap; }
  .header__dropdown-wrap.open .header__dropdown-menu { transform: translate(-50%, 0); }
  .header__dropdown-menu a { white-space: nowrap; }

  .header__mobile-right {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 3;
    justify-self: end;
  }

  .header__contacts-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--yellow);
    color: var(--dark);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.15s;
  }
  .header__contacts-icon:hover { background: var(--yellow-soft); transform: translateY(-1px); }
  .header__contacts-icon svg { width: 18px; height: 18px; display: block; }

  .header__mobile-right .header__contact-menu { right: 0; left: auto; min-width: 240px; }
}

@media (max-width: 600px) {
  .header__logo img.header__logo-img--desktop { display: none; }
  .header__logo img.header__logo-img--mobile { display: block; height: 28px; width: auto; }
}
