.restaurant-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  background: var(--color-dark);
  color: var(--color-surface);
}

.restaurant-header::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 35, 41, 0.91), rgba(24, 35, 41, 0.68) 58%, rgba(24, 35, 41, 0.34));
  content: "";
  pointer-events: none;
}

.restaurant-header-cover {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
}

.restaurant-header-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--restaurant-position, center);
}

.restaurant-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-end;
}

.restaurant-header-heading {
  position: relative;
  display: grid;
  align-items: end;
  padding: 51px 0 18px;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.restaurant-header-identity {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 20px;
}

.restaurant-header-visual {
  display: grid;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  overflow: visible;
  place-items: center;
  background: transparent;
}

.restaurant-header-logo {
  display: block;
  width: 100%;
  height: 100%;
}

.restaurant-header-logo img {
  width: 100%;
  height: 100%;
  padding: 2px;
  filter:
    drop-shadow(0 1px 1px rgba(255, 255, 255, 0.22))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.38));
  object-fit: contain;
}

.restaurant-header-logo-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--color-surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  color: var(--color-dark);
  font-size: 1.45rem;
  font-weight: 850;
}

.restaurant-header-meta {
  position: absolute;
  top: 18px;
  right: 0;
  left: 0;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.restaurant-header-context,
.restaurant-header-state {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.restaurant-header-context span,
.restaurant-header-state > span {
  color: rgba(255, 255, 255, 0.83);
  font-size: 0.75rem;
  font-weight: 650;
}

.restaurant-header-context span + span::before {
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.44);
  content: "•";
}

.restaurant-header-state .restaurant-header-demo,
.restaurant-header-state .restaurant-header-status {
  min-height: 23px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(23, 63, 74, 0.2);
}

.restaurant-header-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.restaurant-header-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-danger);
}

.restaurant-header-status.is-open i {
  background: #61d79b;
}

.restaurant-header-status-short {
  display: none;
}

.restaurant-header-heading h1 {
  max-width: 760px;
  margin: 0 0 6px;
  color: var(--color-surface);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.restaurant-header-identity > div:last-child > p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
}

.restaurant-header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.restaurant-header-actions .button {
  min-height: 44px;
  padding-inline: 15px;
  font-size: 0.8125rem;
}

.restaurant-header-actions .button-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(36, 52, 61, 0.4);
  color: var(--color-surface);
}

.restaurant-header-actions .button-secondary:hover {
  border-color: var(--color-surface);
  background: var(--color-surface);
  color: var(--color-dark);
}

.restaurant-header-nav {
  display: flex;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  gap: 26px;
  scrollbar-width: none;
}

.restaurant-header-nav::-webkit-scrollbar {
  display: none;
}

.restaurant-header-nav a {
  position: relative;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  font-weight: 720;
  white-space: nowrap;
}

.restaurant-header-nav a:hover,
.restaurant-header-nav a[aria-current="page"] {
  color: var(--color-surface);
}

.restaurant-header-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--color-primary);
  content: "";
}

@media (max-width: 900px) {
  .restaurant-header-heading {
    grid-template-columns: 1fr;
  }

  .restaurant-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .restaurant-header,
  .restaurant-header-content {
    min-height: 0;
  }

  .restaurant-header::after {
    background: linear-gradient(180deg, rgba(24, 35, 41, 0.48), rgba(24, 35, 41, 0.94));
  }

  .restaurant-header-heading {
    position: relative;
    padding: 17px 0 13px;
    gap: 12px;
  }

  .restaurant-header-identity {
    align-items: flex-end;
    padding-top: 31px;
    gap: 13px;
  }

  .restaurant-header-visual {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }

  .restaurant-header-heading h1 {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .restaurant-header-identity > div:last-child > p {
    display: none;
  }

  .restaurant-header-meta {
    position: absolute;
    top: 17px;
    right: 0;
    left: 0;
    gap: 7px;
  }

  .restaurant-header-context,
  .restaurant-header-state {
    gap: 6px;
  }

  .restaurant-header-context > span:nth-child(2) {
    display: none;
  }

  .restaurant-header-context span + span::before {
    margin-right: 6px;
  }

  .restaurant-header-status-full {
    display: none;
  }

  .restaurant-header-status-short {
    display: inline;
  }

  .restaurant-header-context span,
  .restaurant-header-state > span {
    font-size: 0.6875rem;
  }

  .restaurant-header-state .restaurant-header-demo,
  .restaurant-header-state .restaurant-header-status {
    padding-inline: 6px;
  }

  .restaurant-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .restaurant-header-actions .button {
    padding-inline: 10px;
  }

  .restaurant-header-actions .button:nth-child(3) {
    display: none;
  }

  .restaurant-header-nav {
    gap: 22px;
  }

  .restaurant-header-nav a {
    min-height: 50px;
  }
}
