/* Переключение разделов — кнопки в шапке и на сайте услуг */
.site-topbar,
.svc-topbar {
  background: #1a2f4a;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
}

.site-topbar__inner,
.svc-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.svc-topbar__meta {
  line-height: 1.4;
}

.svc-chrome-sticky {
  position: sticky;
  top: 0;
  z-index: 120;
  background: #fff;
}

.svc-chrome-sticky .svc-header {
  position: static;
  top: auto;
}

.header-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.header-section-link:hover {
  color: #fff;
}

.header-section-link--build {
  background: #3d4f63;
  border-color: #3d4f63;
}

.header-section-link--build:hover {
  background: #2f3d4d;
  border-color: #2f3d4d;
}

.header-section-link--shop {
  background: linear-gradient(135deg, #0e5c80, #1a7f8c);
}

.header-section-link__short {
  display: none;
}

.header-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}

.header-call-phone {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0e5c80;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.15;
}

.header-call-phone:hover {
  color: #1a7f8c;
  text-decoration: underline;
}

.header-call-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-btn, 6px);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--color-primary, #1a5f7a);
  white-space: nowrap;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.header-call-link:hover {
  background: var(--accent-soft, #e6f2f6);
  border-color: var(--color-primary, #1a5f7a);
  color: var(--color-primary-hover, #164a61);
}

.header-call-link__short {
  display: none;
}

.trust-strip-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.trust-strip-section-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.trust-strip-section-link__short {
  display: none;
}

.site-division-bar__switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-division-bar__switch:hover {
  color: #fff;
}

.site-division-bar__switch--build {
  background: #3d4f63;
  border-color: #3d4f63;
}

.site-division-bar__switch--build:hover {
  background: #2f3d4d;
  border-color: #2f3d4d;
}

.site-division-bar__switch--shop {
  background: linear-gradient(135deg, #0e5c80, #1a7f8c);
}

@media (max-width: 1100px) {
  .trust-strip-section-link__long {
    display: none;
  }

  .trust-strip-section-link__short {
    display: inline;
  }
}

@media (max-width: 900px) {
  .header-section-link__long {
    display: none;
  }

  .header-section-link__short {
    display: inline;
  }

  .header-call-link__long {
    display: none;
  }

  .header-call-link__short {
    display: inline;
  }

  .header-call-phone {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-section-link {
    display: none;
  }

  .site-header .header-call-link {
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 0;
    border: none;
    background: transparent;
  }

  .svc-topbar__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .svc-topbar .site-division-bar__switch {
    width: 100%;
    font-size: 0.75rem;
    padding: 8px 12px;
    white-space: normal;
    text-align: center;
  }
}

/* Шапка магазина — иконки с подписью (как WB) */
@media (min-width: 769px) {
  .site-header .header-actions {
    align-items: center;
    gap: 8px;
  }

  .site-header .header-call-link,
  .site-header .header-action-btn,
  .site-header .header-actions .cart-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 56px;
    min-height: var(--header-search-h, 52px);
    padding: 0 6px;
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--text);
    text-decoration: none;
    position: relative;
  }

  .site-header .header-call-link:hover,
  .site-header .header-action-btn:hover,
  .site-header .header-actions .cart-btn:hover {
    color: var(--accent);
    background: transparent;
    border-color: transparent;
  }

  .site-header .header-action-btn__icon,
  .site-header .header-call-link__icon,
  .site-header .cart-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: inherit;
  }

  .site-header .cart-btn__text,
  .site-header .header-action-btn__label,
  .site-header .header-call-link__long {
    display: block;
    text-align: center;
    white-space: nowrap;
  }

  .site-header .cart-btn__badge {
    top: 0;
    right: 2px;
  }
}
